<
From version < 10.2 >
edited by Xiaoling
on 2022/11/12 13:56
To version < 9.1 >
edited by Xiaoling
on 2022/11/12 13:43
>
Change comment: Uploaded new attachment "1668231789502-211.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -149,13 +149,13 @@
149 149  
150 150  (% style="color:#037691" %)**1. Set and query the communication protocol**
151 151  
152 -**Send: ** AT+PRO=<val>  Val: 0:TCP 1:UDP
152 + Send:  AT+PRO=<val>  Val: 0:TCP 1:UDP
153 153  
154 -**Reply: **OK
154 + Reply: OK
155 155  
156 -**Send: ** AT+PRO?  ~/~/ Inquire
156 + Send:  AT+PRO?  ~/~/ Inquire
157 157  
158 -**Reply:** +PRO:0
158 + Reply: +PRO:0
159 159  
160 160  OK
161 161  
... ... @@ -162,13 +162,13 @@
162 162  
163 163  (% style="color:#037691" %)**2. Set and query the server address**
164 164  
165 -**Send:** AT+SERVADDR=<server>,<port>        
165 +Send: AT+SERVADDR=<server>,<port>        
166 166  
167 -**Reply:** OK
167 +Reply: OK
168 168  
169 -**Send:** AT+SERVADDR?  ~/~/ Inquire
169 +Send: AT+SERVADDR?  ~/~/ Inquire
170 170  
171 -**Reply: **+SERVADDR:<server>,<port>
171 +Reply: +SERVADDR:<server>,<port>
172 172  
173 173  OK
174 174  
... ... @@ -175,13 +175,13 @@
175 175  
176 176  (% style="color:#037691" %)**3. Set and query the TDC**
177 177  
178 -**Send:** AT+TDC=<value>  ~/~/ Heartbeat time, in seconds, the default is 86400s,which is 24 hours
178 +Send:AT+TDC=<value>  ~/~/ Heartbeat time, in seconds, the default is 86400s,which is 24 hours
179 179  
180 -**Reply:** OK
180 +Reply: OK
181 181  
182 -**Send:** AT+TDC?       ~/~/ Inquire
182 +Send: AT+TDC?       ~/~/ Inquire
183 183  
184 -**Reply:** +TDC:<value>
184 +Reply: +TDC:<value>
185 185  
186 186  OK
187 187  
... ... @@ -188,9 +188,9 @@
188 188  
189 189  (% style="color:#037691" %)**4. Query parameters**
190 190  
191 -**Send:** AT+CFG?            
191 +Send: AT+CFG?            
192 192  
193 -**Reply:** +PRO:0
193 +Reply: +PRO:0
194 194  
195 195  +SERVADDR:120.27.12.119,2023
196 196  
... ... @@ -209,7 +209,7 @@
209 209  
210 210  (% style="color:#037691" %)**5. Set and query the APN**
211 211  
212 -**Send:** AT+APN="<apn>"  ~/~/ Set APN          
212 +Send: AT+APN="<apn>"  ~/~/ Set APN          
213 213  
214 214  **Reply:** OK
215 215  
... ... @@ -228,31 +228,28 @@
228 228  
229 229  
230 230  
231 +
231 231  === 2.2.4 Use UDP protocol to uplink data (Default protocol) ===
232 232  
233 -
234 234  * (% style="color:blue" %)**AT+PRO=1   **(%%) ~/~/ Set to use UDP protocol to uplink
235 235  * (% style="color:blue" %)**AT+SERVADDR=119.91.62.30,1999   ** (%%) ~/~/ to set UDP server address and port
236 236  
237 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]]
237 237  
238 238  
239 -[[image:1668231759500-524.png]]
240 240  
241 -
242 -
243 243  === 2.2.5 Use TCP protocol to uplink data ===
244 244  
245 -
246 246  * (% style="color:blue" %)**AT+PRO=0   ** (%%) ~/~/ Set to use TCP protocol to uplink
247 247  * (% style="color:blue" %)**AT+SERVADDR=119.91.62.30,2002   **(%%) ~/~/ to set TCP server address and port
248 248  
249 -[[image:1668231789502-211.png]]
246 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]]
250 250  
251 251  
252 252  
250 +
253 253  === 2.2.6 Change Update Interval ===
254 254  
255 -
256 256  User can use below command to change the (% style="color:blue" %)**uplink interval**.
257 257  
258 258  (% style="color:blue" %)**AT+TDC=86400      ** (%%)~/~/ Set Update Interval to 86400s
... ... @@ -260,63 +260,59 @@
260 260  
261 261  (% style="color:red" %)**NOTE:**
262 262  
263 -~1. By default, the device will send an uplink message every 24 hour (86400s).
260 +1. By default, the device will send an uplink message every 24 hour (86400s).
264 264  
262 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image008.png]]
265 265  
266 -[[image:1668231824288-204.png]]
267 267  
268 268  
269 269  
270 270  == 2.3 Uplink Payload ==
271 271  
272 -
273 273  registration package, uplink payload includes in total 61 bytes
274 274  
275 275  
276 -(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:520px" %)
277 -|(% style="width:94px" %)(((
278 -**Size(bytes)**
279 -)))|(% style="width:51px" %)**2**|(% style="width:68px" %)**1**|(% style="width:81px" %)**1**|(% style="width:96px" %)**1**|(% style="width:94px" %)**1**|(% style="width:80px" %)**15**|(% style="width:49px" %)**15**|(% style="width:57px" %)**20**|(% style="width:43px" %)**1**|(% style="width:59px" %)**1**|(% style="width:41px" %)**3**
280 -|(% style="width:94px" %)**Value**|(% style="width:51px" %)head|(% style="width:68px" %)Version|(% style="width:81px" %)data type|(% style="width:96px" %)Data length|(% style="width:94px" %)device type|(% style="width:80px" %)device ID|(% style="width:49px" %)IMSI|(% style="width:57px" %)ICCID|(% style="width:43px" %)BAT|(% style="width:59px" %)Signal|(% style="width:41px" %)tail
272 +|(((
273 +**Size**
281 281  
282 -The payload is ASCII string, representative same HEX: 0x (% style="color:red" %)4B57 (% style="color:blue" %)10 (% style="color:green" %)01 (% style="color:#00b0f0" %)34 (% style="color:#7030a0" %) 01 (% style="color:#d60093" %)383639393735303334343431303832 (% style="color:#a14d07" %343630313133313138373433373332 (% style="color:#0020b0" %)3839383631313230323234303134333938373632 (% style="color:#420042" %)1E (% style="color:#663300" %)15 (% style="color:#660066" %)494F54 where:
275 +**(bytes)**
276 +)))|**2**|**1**|**1**|**1**|**1**|**15**|**15**|**20**|**1**|**1**|**3**
277 +|**Value**|head|Version|data type|Data length|device type|device ID|IMSI|ICCID|BAT|Signal|tail
283 283  
284 -* (% style="color:#037691" %)Head: (%%)0x4B57(fixed)
279 +The payload is ASCII string, representative same HEX: 0x4B5710013401383639393735303334343431303832343630313133313138373433373332
285 285  
286 -* (% style="color:#037691" %)Version: (%%)0x10=”V1.0”
281 +38393836313132303232343031343339383736321E15494F54 where:
287 287  
288 -* (% style="color:#037691" %)Data type: (%%)0x01=1(1:register,2:data sending)
283 +* Head: 0x4B57(fixed)
284 +* Version: 0x10=”V1.0”
285 +* Data type: 0x01=1(1:register,2:data sending)
286 +* Data length: 0x34=52(Valid data is 52 bytes)
289 289  
290 -* (% style="color:#037691" %)Data length: (%%)0x34=52(Valid data is 52 bytes)
288 +* Device type: 0x01 = 1(Representative NDS01)
289 +* Device ID:0x383639393735303334343431303832=869975034441082(ASCII)
290 +* IMSI: 0x343630313133313138373433373332 = 460113118743732(ASCII)
291 +* ICCID: 0x3839383631313230323234303134333938373632=89861120224014398762(ASCII)
292 +* Bat: 0x1E = 30/10=3.0V
293 +* Signal: 0x15=21
291 291  
292 -* (% style="color:#037691" %)Device type:(%%) 0x01 = 1(Representative NDS01)
295 +**0** -113dBm or less
293 293  
294 -* (% style="color:#037691" %)Device ID: (%%)0x383639393735303334343431303832=869975034441082(ASCII)
297 +**1** -111dBm
295 295  
296 -* (% style="color:#037691" %)IMSI:(%%) 0x343630313133313138373433373332 = 460113118743732(ASCII)
299 +**2...30** -109dBm... -53dBm
297 297  
298 -* (% style="color:#037691" %)ICCID:(%%) 0x3839383631313230323234303134333938373632=89861120224014398762(ASCII)
301 +**31** -51dBm or greater
299 299  
300 -* (% style="color:#037691" %)Bat: (%%)0x1E = 30/10=3.0V
303 +**99** Not known or not detectable
301 301  
302 -* (% style="color:#037691" %)Signal:(%%) 0x15=21
305 +* Tail:0x494F54(fixed)
303 303  
304 -**(% style="color:red" %)0**(%%) -113dBm or less
305 -
306 -**(% style="color:red" %)1** (%%)-111dBm
307 -
308 -**(% style="color:red" %)2...30**(%%) -109dBm... -53dBm
309 -
310 -**(% style="color:red" %)31** (%%)-51dBm or greater
311 -
312 -**(% style="color:red" %)99** (%%)Not known or not detectable
313 -
314 -* (% style="color:#037691" %)Tail: 0x494F54(fixed)
315 -
316 316  data upload, uplink payload includes in total 32 bytes
317 317  
318 318  |(((
319 -**Size(bytes)**
310 +**Size**
311 +
312 +**(bytes)**
320 320  )))|**2**|**1**|**1**|**1**|**1**|**15**|**1**|**1**|**1**|**1**|**1**|**1**|**1**|**1**|**3**
321 321  |**Value**|head|Version|data type|Data length|device type|device ID|event type|Door magnetic state|BAT|Signal|(((
322 322  Temp
... ... @@ -339,17 +339,12 @@
339 339  The payload is ASCII string, representative same HEX: 0x4B5710021401383639393735303334343431303832010020151c552312494F54 where:
340 340  
341 341  * Head: 0x4B57(fixed)
342 -
343 343  * Version: 0x10=”V1.0”
344 -
345 345  * Data type: 0x02=2(1:register,2:data sending)
346 -
347 347  * Data length: 0x14=20(Valid data is 20 bytes)
348 348  
349 349  * Device type: 0x01 = 1(Representative NDS01)
350 -
351 351  * Device ID:0x383639393735303334343431303832=869975034441082(ASCII)
352 -
353 353  * Event type:0x01
354 354  
355 355   01:TDC
... ... @@ -373,7 +373,6 @@
373 373   01:Door sensor is open
374 374  
375 375  * Bat: 0x20 = 32/10=3.2V
376 -
377 377  * Signal: 0x15=21
378 378  
379 379  **0** -113dBm or less
... ... @@ -387,13 +387,11 @@
387 387  **99** Not known or not detectable
388 388  
389 389  * Temp integer:0x1c=28
390 -
391 391  * Temp decimal:0x55=85
392 392  
393 393   Temp =Temp integer+(Temp decimal)/100=28+85/100=28.85℃
394 394  
395 395  * Hum integer:0x23=35
396 -
397 397  * Hum decimal:0x12=18
398 398  
399 399   Hum =Hum integer+(Hum decimal)/100=35+18/100=35.18**%rh**
... ... @@ -400,7 +400,6 @@
400 400  
401 401  * Tail:0x494F54(fixed)
402 402  
403 -
404 404  == 2.4 Node-Red Example ==
405 405  
406 406  Please refer to this link for the use of Node-RED:
1668231824288-204.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -111.6 KB
Content
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0