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/TSL2561.lib
|34:9c8966cd66a2||22 months ago||update to using mbed-6||File Diff Annotate|
|12:ed33c53afcaf||2017-07-05||add sensor demo option||File Diff Annotate|