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 app/commands.h
|27:c8b432b2a4a8||2017-08-14||add sequency number to sensor polling||File Diff Annotate|
|26:8227a4edb216||2017-08-11||sensor sampling asychronous to uplink activity||File Diff Annotate|
|22:999a7e7698a8||2017-08-07||add remote tx-power-index control||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|
|12:ed33c53afcaf||2017-07-05||add sensor demo option||File Diff Annotate|
|11:4c337f5bbe4c||2017-06-19||sensor support in application layer||File Diff Annotate|