Switch LoRaWAN server by rejoin feature
Version 3.3 by Mengting Qiu on 2023/10/27 17:10
Table of Contents:
1. introduction
This chapter describes switch LoRaWAN server by rejoin feature.
2. What is the rejoin feature?
rejoin feature is that if the ACK packet sent by the platform to the node is not received within the set time range, the offline detection will be started.
offline rejoining (LWS007)
AT Command: AT+DDETECT
AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880)
- ACK_Timout_1: Unit: min
- ACK_Timout_2: Unit: min
Command Example | Function | Response |
AT+DDETECT=1,1440,2880 value1 | Enable online detect | 1 OK |
AT+DDETECT=1,?,2880 value2 | Online detection packet sending time |
OK |
AT+DDETECT=1,1440,? value3 | Process rejoin |
OK |
Downlink Command: 0x32
Format: Command Code (0x32) followed by 2 bytes mode value.
If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32.
- Example 1: Downlink Payload: 320105A00B40 // Set AT+DDETECT=1,1440,2880
- 0x01 : Flag
0x05A0 : ACK_Timout_1 : 1440minutes (24 hours)
0x0B40 : ACK_Timout_2 : 2880minutes (48 hours)
- Explain: Enable Online Detect, if end node doesn't receive any downlink within ACK_Timout_1( 1440 minutes or 24 hours). End node will use confirmed uplink to send packets during ACK_Timout_1 (the 24th hour) to ACK_Timout_2 ( the 48th hour). If from the 24th to 48th hour, end node got an downlink from server, it will switch back to unconfirmed uplink. end node will restart ACK_Timout_1. If from the 24th to 48th hour, end node still not got any downlink, means device doesn't get ACK from server within last 48 hours. Device will process rejoin, rejoin request interval is AT+RJTDC period. For AU915/ US915, device will use the sub-band used for last join.