Firstly, thank you very much to .@sabas1080 for his contribution on RAK811 LoRa Tracker board + Arduino.
-
What is Arduino? If you know little about Arduino, please have a look below:
https://www.arduino.cc/ -
You have known Arduino. Install the IDE first:
https://www.arduino.cc/en/Main/Software -
What lib is used?
RAK811 is based on STM32L151.Therefore Arduino Core for Arduino_Core_STM32 is suitable for RAK811. -
How to install Arduino_Core_STM32 in Arduino?
https://github.com/stm32duino/Arduino_Core_STM32
add "https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json" to Additional Boards Manager URLs: option
Check the other lib below install or not?Then install the BSP for STM32. If install completed as following:
-
Download the LoRaWAN library from:
https://github.com/mcci-catena/arduino-lmic#selecting-the-lorawan-region-configuration
Add it to Arduino IDE:
-
OK, development environment is finished. Open the Arduino_RAK811_LoRaWAN.ino,config 3 parameters for LoRaWAN_OTAA:
And set Pins mapping:
-
Compile it,ingnore the Waring:
Download the *.bin, *.hex or *.elf file from the folder in the above path with JFlash,STM32CubeProgrammer,or any tool if it supports STM32 mcu. -
When download ok, the Gateway and server are working properly.
The RAK811 will be auto join LoRaWAN:
TTN receive data: