2018-03-16 09:34:06 +01:00
|
|
|
LoRaWAN
|
|
|
|
=======
|
|
|
|
|
|
|
|
Description
|
|
|
|
-----------
|
|
|
|
|
|
|
|
This application shows a simple use case of LoRaWAN with RIOT.
|
|
|
|
|
|
|
|
By using the real time clock and low-power capabilities of a board, this
|
2018-06-26 20:56:57 +02:00
|
|
|
application shows how to program a LoRaWAN Class A device using RIOT.
|
2018-03-16 09:34:06 +01:00
|
|
|
|
|
|
|
This application is using the Over-The-Air Activation procedure.
|
|
|
|
|
|
|
|
Usage
|
|
|
|
-----
|
|
|
|
|
|
|
|
Simply build and flash the application for a ST B-L072Z-LRWAN1 board:
|
|
|
|
|
|
|
|
make flash term
|
|
|
|
|
2019-05-25 22:04:04 +02:00
|
|
|
Use the `BOARD`, `DRIVER` and `LORA_REGION` make variables to adapt the application
|
2018-03-16 09:34:06 +01:00
|
|
|
to your hardware setup and region of use:
|
|
|
|
|
|
|
|
- `BOARD` can be one of the nucleo-64 boards
|
|
|
|
- `DRIVER` can be either `sx1276` or `sx1272`
|
2019-05-25 22:04:04 +02:00
|
|
|
- `LORA_REGION` can be `EU868`, `US915`, etc (see LoRaWAN regional parameters for
|
2018-03-16 09:34:06 +01:00
|
|
|
details).
|
|
|
|
|
2018-06-26 20:56:57 +02:00
|
|
|
ST Nucleo-64 can be used with mbed LoRa shields: there's one based on
|
2018-03-16 09:34:06 +01:00
|
|
|
[the sx1276 radio](https://os.mbed.com/components/SX1276MB1xAS/) and one based
|
|
|
|
on the [the sx1272 radio](https://os.mbed.com/components/SX1272MB2xAS/).
|
|
|
|
|
|
|
|
Finally, to join a LoRaWAN network using OTAA activation, edit the application
|
|
|
|
`Makefile` and set your device information:
|
|
|
|
|
|
|
|
DEVEUI ?= 0000000000000000
|
|
|
|
APPEUI ?= 0000000000000000
|
|
|
|
APPKEY ?= 00000000000000000000000000000000
|