Config LoRaWAN Networking Parameters for CubeCell (Dev EUI, App Key, etc.)
Summary
No matter what LoRa management platform is used, DevEui, AppKey, etc. parameters are must needed. And ensure that it is consistent with the relevant settings on the server.
The following parameters are essential for OTAA mode:
The following parameters are essential for ABP mode:
Tip
There are three methods to configuration LoRaWAN networking parameters, choose one of them.
Tip
Parameters such as frequency band need to be modified in “Tools”.
Via Modify Code
The relevant parameters of the LoRaWAN network are in the corresponding .ino
file:
Change the code and Compile/Upload again.
Note
The follows two methods need AT-Command enable.
Via AT Command
In order to use AT command, need enable AT command in the “Tools” menu before upload.
Serial Port Settings
Baud rate: 115200
Stop bit: 1
Data bits: 8
DTR, RTS requirement: None
Ending characters: None
Note
Make sure there is NO ending characters or new line in you serial monitor config!
With AT command support, the CubeCell is sleeping by default. Any content through the serial port will wake it up. It means the First command via serial port only wake up system.
For example, if send any contents such as hello
, you will get this reply:
ASR is Waked,LowPower Mode Stopped
DevEui
Tip
We take all zero just for example
Config DevEui to “0000000000000000”, send following command via serial port:
AT+DevEui=0000000000000000
Command running success will print feedback:
+OK
+DevEui=0000000000000000(For OTAA Mode)
AppEui
Config AppEui to “0000000000000000”, send following command via serial port:
AT+AppEui=0000000000000000
Command running success will print feedback:
+OK
+AppEui=0000000000000000(For OTAA Mode)
AppKey
Config AppKey to “00000000000000000000000000000000”, send following command via serial port:
AT+AppEui=00000000000000000000000000000000
Command running success will print feedback:
+OK
+AppEui=00000000000000000000000000000000(For OTAA Mode)
NwkSKey
Config NwkSKey to “00000000000000000000000000000000”, send following command via serial port:
AT+NwkSKey=00000000000000000000000000000000
Command running success will print feedback:
+OK
+NwkSKey=00000000000000000000000000000000(For ABP Mode)
AppSKey
Config AppSKey to “00000000000000000000000000000000”, send following command via serial port:
AT+AppSKey=00000000000000000000000000000000
Command running success will print feedback:
+OK
+AppSKey=00000000000000000000000000000000(For ABP Mode)
DevAddr
Config DevAddr to “00000000”, send following command via serial port:
AT+DevAddr=00000000
Command running success will print feedback:
+OK
+DevAddr=00000000(For ABP Mode)
Duty Cycle
LoRa Node’s default sending data period is 15 seconds, change this period to 60 seconds:
AT+DutyCycle=60000
Reset CubeCell
LoRaWAN parameters need reset to active, CubeCell can reset via three methods:
Push the RST key;
Use AT command:
AT+RESET=1
Provide a ≥10ms LOW signal to RST pin.
Looking for more AT commands? Please refer to CubeCell AT Command list.
Via CubeCell Configurator
Special thanks WASN made a configurator for CubeCell, now it’s only have Windows® support.
https://github.com/wasn-eu/CubeCell_Getting_Started