LoRa Basics™ Station - The LoRaWAN Gateway Software
LoRa Basics™ Station - The LoRaWAN Gateway Software
Basic Station is a LoRaWAN Gateway implementation, including features like
Ready for LoRaWAN Classes A, B, and C
Unified Radio Abstraction Layer supporting Concentrator Reference Designs v1.5, v2 and Corecell
Powerful Backend Protocols (read here and here)
Lean Design
The full documentation is available at https://doc.sm.tc/station.
Building the Station binary from source, requires
The following is a three-step quick start guide on how to build and run Station. It uses a Raspberry Pi as host platform and assumes a Concentrator Reference Design 1.5 compatible radio board connected via SPI, and assumes that SPI port is enabled using the raspi-config tool. In this example the build process is done on the target platform itself (the make environment also supports cross compilation in which case the toolchain is expected in ~/toolchain-$platform - see setup.gmk).
git clone https://github.com/lorabasics/basicstation.gitcd basicstation
make platform=rpi variant=stdThe build process consists of the following steps:
build-$platform-$variant/build-$platform-$variant/bin/stationcd examples/live-s2.sm.tc
RADIODEV=/dev/spidev0.0 ../../build-rpi-std/bin/stationNote: The SPI device for the radio MAY be passed as an environment variable using RADIODEV.
The example configuration connects to a public test server s2.sm.tc through which Station fetches all required credentials and a channel plan matching the region as determined from the IP address of the gateway. Provided there are active LoRa devices in proximity, received LoRa frames are printed in the log output on stderr.
cd basicstation
make platform=corecell variant=std
cd examples/corecell
./start-station.sh -l ./lns-ttnThis example configuration for Corecell connects to The Things Network public LNS. The example station.conf file holds the required radio configurations and station fetches the channel plan from the configured LNS url (tc.uri).
Note: SPI port requires to be activated on Raspberry Pi thanks to raspi-config tool.
cd basicstation
make platform=linuxpico variant=std
cd examples/live-s2.sm.tc
RADIODEV=/dev/ttyACM0 ../../build-linuxpico-std/bin/stationNote: The serial device for the PicoCell MAY be passed as an environment variable using RADIODEV.
Next,
station --help,station.conf and cups-boot.* example configuration files,Check out the other examples:
The Station binary accepts the following command-line options:
…No open issues yet, or sync has not completed.