Hide last authors
Mengting Qiu 1.3 1 **Table of Contents:**
Mengting Qiu 1.2 2
Mengting Qiu 1.1 3 {{toc/}}
4
5
6
7
8
9
Mengting Qiu 2.2 10 = 1. introduction =
Mengting Qiu 3.2 11
Mengting Qiu 3.3 12 This chapter describes switch LoRaWAN server by rejoin feature.
Mengting Qiu 3.2 13
14
15 = 2. What is the rejoin feature? =
16
Mengting Qiu 3.3 17 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.
Mengting Qiu 3.2 18
Mengting Qiu 5.1 19 == 2.1offline rejoining (LWS007) ==
Mengting Qiu 3.2 20
21
22 (% style="color:blue" %)**AT Command: AT+DDETECT**
23
24 AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880)
25
26 * ACK_Timout_1: Unit: min
27
28 * ACK_Timout_2: Unit: min
29
30 (% border="1" style="background-color:#f2f2f2; width:562px" %)
31 |(% style="background-color:#4f81bd; color:white; width:160px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:272px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:89px" %)**Response**
32 |(% style="width:160px" %)(((
33 AT+DDETECT=1,1440,2880
34
35 value1
36 )))|(% style="width:272px" %)Enable online detect|(% style="width:89px" %)(((
37 1
38
39 OK
40 )))
41 |(% style="width:160px" %)(((
42 AT+DDETECT=1,?,2880
43
44 value2
45 )))|(% style="width:272px" %)Online detection packet sending time|(% style="width:89px" %)(((
46
47
48 OK
49 )))
50 |(% style="width:160px" %)(((
51 AT+DDETECT=1,1440,?
52
53 value3
54 )))|(% style="width:272px" %)Process rejoin|(% style="width:89px" %)(((
55
56
57 OK
58 )))
59
60 (% style="color:blue" %)**Downlink Command: 0x32**
61
62 Format: Command Code (0x32) followed by 2 bytes mode value.
63
64 If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32.
65
66 * **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
67
Mengting Qiu 5.1 68 *
Mengting Qiu 3.2 69 ** 0x01** : Flag**
70
71 **0x05A0 **: ACK_Timout_1 : 1440minutes (24 hours)
72
73 **0x0B40 **: ACK_Timout_2 : 2880minutes (48 hours)
74
75 * **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.
76
Mengting Qiu 5.1 77 == 2.2 Change Uplink Interval ==
78
79 Feature: Change LoRaWAN End Node Transmit Interval.
80
81
82 (% style="color:blue" %)**AT Command: AT+TDC**
83
84 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:727.222px" %)
85 |(% style="background-color:#4f81bd; color:white; width:165px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:227px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:329px" %)**Response**
86 |(% style="width:165px" %)AT+TDC=?|(% style="width:227px" %)Show current transmit Interval|(% style="width:329px" %)30000(((
87 OK
88
89 the interval is 30000ms = 30s
90 )))
91 |(% style="width:165px" %)AT+TDC=60000|(% style="width:227px" %)Set Transmit Interval|(% style="width:329px" %)OK(((
92 Set transmit interval to 60000ms = 60 seconds
93 )))
94
95 (((
96 (% style="color:blue" %)**Downlink Command: 0x01**
97
98 Format: Command Code (0x01) followed by 3 bytes time value.
99 )))
100
101 (((
102 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
103 )))
104
105 * **Example 1**: Downlink Payload:** 0100001E**  ~/~/ Set Transmit Interval (TDC) = 30 seconds
106
107 * **Example 2**: Downlink Payload:** 0100003C**  ~/~/ Set Transmit Interval (TDC) = 60 seconds
108
Mengting Qiu 3.2 109 (% style="display:none" %) (%%)
110
Mengting Qiu 5.1 111
Mengting Qiu 3.6 112 = 3. Examples and Explanations =
Mengting Qiu 3.2 113
Mengting Qiu 3.6 114 (% style="color:blue" %)**Switching platforms by rejoin function: Use device LHT65N to switch from TTN to ChirpStack as an example.**
Mengting Qiu 3.2 115
Mengting Qiu 3.6 116 The following example shows the parameters of the LHT65N. Users need to check the Wiki instructions to confirm the parameters of the equipment they have purchased.
117 ([[User Manual for LoRaWAN End Nodes)>>http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes]])
Mengting Qiu 3.2 118
Mengting Qiu 5.1 119
Mengting Qiu 3.6 120 == 3.1 Configure appropriate operation times ==
Mengting Qiu 3.2 121
Mengting Qiu 5.1 122 (% style="color:blue" %)**Firstly, the user sent downlink commands through the original registration platform (TTN) to modify the required TDC time and offline detection time.**(%%) 
Mengting Qiu 3.2 123
Mengting Qiu 5.1 124 (% style="color:red" %)**Note: Users need to set the TDC time shorter than the offline detection ACK_Timeout_1, the best offline detection time is more than twice the TDC time.**
Mengting Qiu 3.2 125
Mengting Qiu 5.1 126 Configuration via TTN downlink:
Mengting Qiu 3.2 127
128
129
130
131
132
Mengting Qiu 3.4 133
Mengting Qiu 3.6 134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
Mengting Qiu 3.2 159
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0