Skip to content

Send LoRaWan messages from a RAK11310 core module using RP2040 SDK and Visual Studio Code

License

Notifications You must be signed in to change notification settings

m-nahirny/wisblock-lorawan

Repository files navigation

wisblock-lorawan

Enable LoRaWAN communications on a RAK11310 WisBlock Core module. this module is based on a RAspberry Pi RP2040 processor and Semtech SX1262 LoRa transceiver. This software is based on the pico-lorawan project (https://github.com/sandeepmistry/pico-lorawan.git and https://github.com/siuwahzhong/lorawan-library-for-pico) which in turn are based on the Semtech's LoRaWAN end-device stack implementation and example projects.

The main addition to these libraries is a modification to store the LoRa dev-nonce in EEPROM on the RAK12002 RTC. The LoRaWan specification indicates that a device can only use a dev-nonce once. If the device powers down and needs to re-establish a connection to a LoRa Gateway it either needs to start at 1 and step through each value until one that has not been used is found, or it needs to store the last dev-nonce value that was used and increment that value. It is this latter more efficient approach that is implemented ehre.

Hardware

Examples

See examples folder.

There is a config.h file to your ABP or OTAA node configuration for each example.

Cloning

git clone --recurse-submodules https://github.com/m-nahirny/wisblock-lorawan.git 

Building

  1. Set up the Pico C/C++ SDK
  2. Set PICO_SDK_PATH
export PICO_SDK_PATH=/path/to/pico-sdk
  1. Create build dir, run cmake and make:
mkdir build
cd build
cmake .. -DPICO_BOARD=pico
make
  1. Copy example .uf2 to RAK11310 when in BOOT mode.

About

Send LoRaWan messages from a RAK11310 core module using RP2040 SDK and Visual Studio Code

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages