end node on synchronous star LoRa network.
radio chip selection
Radio chip driver is not included, allowing choice of radio device.
If you're using SX1272 or SX1276, then import sx127x driver into your program.
if you're using SX1261 or SX1262, then import sx126x driver into your program.
if you're using SX1280, then import sx1280 driver into your program.
If you're using NAmote72 or Murata discovery, then you must import only sx127x driver.
LoRaWAN on single radio channel
Network description is at gateway project page. Synchronous star network.
This project supports SX1276 and SX1272, sx126x kit, sx126x shield, and sx128x 2.4GHz. The ST board B-L072Z-LRWAN1 is also supported (TypeABZ module). When
B-L072Z-LRWAN1 target is selected,
TARGET_DISCO_L072CZ_LRWAN1 is defined by tools, allowing correct radio driver configuration for this platform. Alternately, any mbed board that can use LoRa radio shield board should work, but NUCLEO boards are tested.
End-node Unique ID
DevEUI is created from CPU serial number. AppEUI and AppKey are declared as software constants.
Data rate definition
LORAMAC_DEFAULT_DATARATE configured in
LoRaMac-definitions.h. See gateway project page for configuration of gateway.
LoRaWAN addressing is configured in
Comissioning.h; only OTA mode is functional.
board/lora_config.h, selects application layer options (i.e. sensors) to be compiled in.
Serial port operates at 115200bps.
single_us915_main.cpp User button triggers uplink (i.e. blue button on nucleo board), or jumper enables continuously sends repeated uplink packets. The MAC layer holds each uplink request until the allocated timeslot.
|-||print available commands|
|-||print status (DevEUI, DevAddr, etc)|
|length integer||set payload length of test uplink packets|
Selected grove sensors may be plugged into SX1272 shield.
To enable, edit
lora_config.h to define
Sensor connections on SX1272MB2xAS:
|D8 D9: button||RX TX: (unused)||A3 A4: Rotary Angle Sensor|
|D6 D7: RGB LED||SCL SDA: digital light sensor||A1 A2: Rotary Angle Sensor|
Digital input pin, state reported via uplink:
Digital output pin, controlled via downlink:
Jumper enables auto-repeated transmit:
PC12 on NUCLEO board, located on end of morpho headers nearby JP4.
Revisions of board/board.cpp
|34:9c8966cd66a2||18 months ago||update to using mbed-6||File Diff Annotate|
|29:ad409c68c0a6||2018-12-07||update to latest radio HAL||File Diff Annotate|
|18:9ac71c0eb70d||2017-08-02||add pwm commands and 434MHz band||File Diff Annotate|
|16:915815632c1f||2017-07-27||simplify MAC beacon timer||File Diff Annotate|
|10:00997daeb0c0||2017-06-17||add sensor support for grove connectors||File Diff Annotate|
|9:08692264148b||2017-06-12||remove TYPE_ABZ preprocessor directive, instead use TARGET_DISCO_L072CZ_LRWAN1||File Diff Annotate|
|7:e238827f0e47||2017-06-06||Randomize join-retry delay. Use RawSerial for getc() in ISR.||File Diff Annotate|
|3:aead8f8fdc1f||2017-05-26||add choice of radio chip||File Diff Annotate|
|1:53c30224eda8||2017-05-22||prevent lockup from printing in ISR||File Diff Annotate|
|0:8f0d0ae0a077||2017-05-18||initial commit||File Diff Annotate|