Changes for page NDDS75 -- NB-IoT Distance Detect Sensor User Manual
Last modified by Bei Jinggeng on 2024/05/31 09:53
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.David - Content
-
... ... @@ -71,6 +71,7 @@ 71 71 * Micro SIM card slot for NB-IoT SIM 72 72 * 8500mAh Battery for long term use 73 73 74 + 74 74 == 1.3 Specification == 75 75 76 76 ... ... @@ -101,6 +101,7 @@ 101 101 * STOP Mode: 10uA @ 3.3v 102 102 * Max transmit power: 350mA@3.3v 103 103 105 + 104 104 == 1.4 Applications == 105 105 106 106 ... ... @@ -201,13 +201,13 @@ 201 201 [[image:image-20220709092052-2.png]] 202 202 203 203 204 - (% style="color:blue" %)**Connection:**206 +**Connection:** 205 205 206 - (% style="background-color:yellow" %) **USB TTL GND <~-~-~-~-> GND**208 + (% style="background-color:yellow" %)USB TTL GND <~-~-~-~-> GND 207 207 208 - **~(% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD(%%)**210 + (% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD 209 209 210 - **~(% style="background-color:yellow" %)USB TTL RXD <~-~-~-~-> UART_TXD(%%)**212 + (% style="background-color:yellow" %)USB TTL RXD <~-~-~-~-> UART_TXD 211 211 212 212 213 213 In the PC, use below serial tool settings: ... ... @@ -245,10 +245,10 @@ 245 245 (% style="color:blue" %)**AT+PRO=1** (%%) ~/~/ Set to use CoAP protocol to uplink 246 246 ))) 247 247 * ((( 248 -(% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5683 ** (%%)~/~/ 250 +(% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5683 ** (%%)~/~/ to set CoAP server address and port 249 249 ))) 250 250 * ((( 251 -(% style="color:blue" %)**AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** (%%) ~/~/ 253 +(% style="color:blue" %)**AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** (%%) ~/~/Set COAP resource path 252 252 253 253 254 254 ... ... @@ -256,8 +256,6 @@ 256 256 257 257 ((( 258 258 For parameter description, please refer to AT command set 259 - 260 - 261 261 ))) 262 262 263 263 [[image:1657330452568-615.png]] ... ... @@ -266,8 +266,6 @@ 266 266 267 267 ((( 268 268 After configure the server address and (% style="color:green" %)**reset the device**(%%) (via AT+ATZ ), NDDS75 will start to uplink sensor values to CoAP server. 269 - 270 - 271 271 ))) 272 272 273 273 [[image:1657330472797-498.png]] ... ... @@ -277,9 +277,9 @@ 277 277 === 2.2.5 Use UDP protocol to uplink data(Default protocol) === 278 278 279 279 280 -* (% style="color:blue" %)**AT+PRO=2 ** (%%) ~/~/ 281 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5601 ** (%%) ~/~/ 282 -* (% style="color:blue" %)**AT+CFM=1 ** (%%) ~/~/ 278 +* (% style="color:blue" %)**AT+PRO=2 ** (%%) ~/~/ Set to use UDP protocol to uplink 279 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5601 ** (%%) ~/~/ to set UDP server address and port 280 +* (% style="color:blue" %)**AT+CFM=1 ** (%%) ~/~/ If the server does not respond, this command is unnecessary 283 283 284 284 [[image:1657330501006-241.png]] 285 285 ... ... @@ -291,13 +291,13 @@ 291 291 === 2.2.6 Use MQTT protocol to uplink data === 292 292 293 293 294 -* (% style="color:blue" %)**AT+PRO=3 ** (%%) ~/~/ 295 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,1883 ** (%%) ~/~/ 296 -* (% style="color:blue" %)**AT+CLIENT=CLIENT ** (%%)~/~/ 297 -* (% style="color:blue" %)**AT+UNAME=UNAME **(%%)~/~/ 298 -* (% style="color:blue" %)**AT+PWD=PWD **(%%)~/~/ 299 -* (% style="color:blue" %)**AT+PUBTOPIC=NDDS75_PUB **(%%)~/~/ 300 -* (% style="color:blue" %)**AT+SUBTOPIC=NDDS75_SUB **(%%) ~/~/ 292 +* (% style="color:blue" %)**AT+PRO=3 ** (%%) ~/~/Set to use MQTT protocol to uplink 293 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,1883 ** (%%) ~/~/Set MQTT server address and port 294 +* (% style="color:blue" %)**AT+CLIENT=CLIENT ** (%%)~/~/Set up the CLIENT of MQTT 295 +* (% style="color:blue" %)**AT+UNAME=UNAME **(%%)~/~/Set the username of MQTT 296 +* (% style="color:blue" %)**AT+PWD=PWD **(%%)~/~/Set the password of MQTT 297 +* (% style="color:blue" %)**AT+PUBTOPIC=NDDS75_PUB **(%%)~/~/Set the sending topic of MQTT 298 +* (% style="color:blue" %)**AT+SUBTOPIC=NDDS75_SUB **(%%) ~/~/Set the subscription topic of MQTT 301 301 302 302 [[image:1657249978444-674.png]] 303 303 ... ... @@ -314,8 +314,8 @@ 314 314 === 2.2.7 Use TCP protocol to uplink data === 315 315 316 316 317 -* (% style="color:blue" %)**AT+PRO=4 ** (%%) ~/~/ 318 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5600 **(%%) ~/~/ 315 +* (% style="color:blue" %)**AT+PRO=4 ** (%%) ~/~/ Set to use TCP protocol to uplink 316 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5600 **(%%) ~/~/ to set TCP server address and port 319 319 320 320 [[image:image-20220709093918-1.png]] 321 321 ... ... @@ -329,31 +329,25 @@ 329 329 330 330 User can use below command to change the (% style="color:green" %)**uplink interval**. 331 331 332 -* (% style="color:blue" %)**AT+TDC=600 ** (%%)~/~/ 330 +* (% style="color:blue" %)**AT+TDC=600 ** (%%)~/~/ Set Update Interval to 600s 333 333 334 334 ((( 335 - 333 +(% style="color:red" %)**NOTE: By default, the device will send an uplink message every 1 hour.** 336 336 337 - 338 -(% style="color:red" %)**NOTE:** 339 - 340 -(% style="color:red" %)**1. By default, the device will send an uplink message every 1 hour.** 341 - 342 -(% style="color:red" %)**2. When the firmware version is v1.3.2 and later firmware:** 335 + 343 343 ))) 344 344 345 - (% style="color:red" %)**By default,thedevicewill sendan uplink messageevery 2 hours. Each Uplink Include 8 setof records inthis 2hour (15 minute interval /record).**338 +**NOTE:When the firmware version is v1.3.2 and later firmware:** 346 346 340 +**By default, the device will send an uplink message every 2 hours. Each Uplink Include 8 set of records in this 2 hour (15 minute interval / record).** 347 347 348 348 349 349 == 2.3 Uplink Payload == 350 350 351 351 352 -=== 2.3.1 Before Firmware v1.3.2 === 353 - 354 - 355 355 In this mode, uplink payload includes in total 14 bytes 356 356 348 + 357 357 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:440px" %) 358 358 |=(% style="width: 60px;" %)((( 359 359 **Size(bytes)** ... ... @@ -368,73 +368,64 @@ 368 368 [[image:1657331036973-987.png]] 369 369 370 370 363 +((( 364 +The payload is ASCII string, representative same HEX: 365 +))) 371 371 372 -The payload is **ASCII** string, representative same HEX: 367 +((( 368 +0x72403155615900640c6c19029200 where: 369 +))) 373 373 374 -(% style="background-color:yellow" %)**0x724031556159 0064 0c6c 19 0292 00 ** 371 +* ((( 372 +Device ID: 0x724031556159 = 724031556159 373 +))) 374 +* ((( 375 +Version: 0x0064=100=1.0.0 376 +))) 375 375 376 -**where :** 378 +* ((( 379 +BAT: 0x0c6c = 3180 mV = 3.180V 380 +))) 381 +* ((( 382 +Signal: 0x19 = 25 383 +))) 384 +* ((( 385 +Distance: 0x0292= 658 mm 386 +))) 387 +* ((( 388 +Interrupt: 0x00 = 0 377 377 378 -* (% style="color:#037691" %)**Device ID:**(%%) 0x724031556159 = 724031556159 390 + 391 +))) 379 379 380 -* (% style="color:#037691"%)**Version:**(%%)0x0064=100=1.0.0393 +**NOTE:When the firmware version is v1.3.2 and later firmware:** 381 381 382 -* (% style="color:#037691" %)**BAT:** (%%) 0x0c6c = 3180 mV = 3.180V 383 - 384 -* (% style="color:#037691" %)**Signal:**(%%) 0x19 = 25 385 - 386 -* (% style="color:#037691" %)**Distance:** (%%)0x0292= 658 mm 387 - 388 -* (% style="color:#037691" %)**Interrupt:**(%%) 0x00 = 0 389 - 390 - 391 - 392 - 393 -=== **2.3.2 Since firmware v1.3.2** === 394 - 395 - 396 396 In this mode, uplink payload includes 69 bytes in total by default. 397 397 398 398 Each time the device uploads a data package, 8 sets of recorded data will be attached. Up to 32 sets of recorded data can be uploaded. 399 399 400 -(% border="2" style="background-color:#ffffcc; color:green; width:896px" %) 401 -|(% style="width:95px" %)**Size(bytes)**|(% style="width:84px" %)**8**|(% style="width:44px" %)2|(% style="width:48px" %)2|(% style="width:123px" %)1|(% style="width:55px" %)1|(% style="width:80px" %)1|(% style="width:77px" %)2|(% style="width:94px" %)4|(% style="width:77px" %)2|(% style="width:116px" %)4 402 -|(% style="width:95px" %)**Value**|(% style="width:84px" %)Device ID|(% style="width:44px" %)Ver|(% style="width:48px" %)BAT|(% style="width:123px" %)Signal Strength|(% style="width:55px" %)MOD|(% style="width:80px" %)Interrupt|(% style="width:77px" %)Distance|(% style="width:94px" %)Timestamp|(% style="width:77px" %)Distance|(% style="width:116px" %)Timestamp....... 399 +|**Size(bytes)**|**8**|2|2|1|1|1|2|4|2|4 400 +|**Value**|Device ID|Ver|BAT|Signal Strength|MOD|Interrupt|Distance|Timestamp|Distance|Timestamp....... 403 403 404 404 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NDDS75 uplink data. 405 405 406 406 [[image:image-20220908175246-1.png]] 407 407 408 - 409 409 The payload is ASCII string, representative same HEX: 410 410 411 - **0x#00b0f0" %)1e#7030a0" %)01#d60093" %)00(% style="color:#a14d07" %)(% style="color:#0020b0" %)6315537b(% style="color:#663300" %)00396319baf0**408 +0x(% style="color:red" %)f867787050213317(% style="color:blue" %)0084(% style="color:green" %)0cf4(% style="color:red" %)1e(% style="color:blue" %)01(% style="color:green" %)00(% style="color:red" %)**//00396319bb32//**00396319baf0//**00396319ba3c**//00396319b988//**00396319b8d4**//00396319b820//**00396319b76c**//00396319b6b8//**00396319b604**//(%%) where: 412 412 413 -**where:** 410 +* (% style="color:green" %)Device ID: f867787050213317 = f867787050213317 411 +* (% style="color:red" %)Version: 0x0084=132=1.3.2 412 +* (% style="color:green" %)BAT: 0x0cf4 = 3316 mV = 3.316V 413 +* (% style="color:blue" %)Singal: 0x1e = 30 414 +* (% style="color:red" %)Mod: 0x01 = 1 415 +* Interrupt: 0x00= 0 416 +* Distance: 0x0039= 57 = 57 417 +* Time stamp : 0x6315537b =1662342011 ([[Unix Epoch Time>>url:http://www.epochconverter.com/]]) 418 +* Distance,Time stamp : 00396319baf0 419 +* (% style="color:red" %) 8 sets of recorded data: Distance,Time stamp : //**00396319ba3c**//,....... 414 414 415 -* (% style="color:#037691" %)**Device ID:**(%%) f867787050213317 = f867787050213317 416 - 417 -* (% style="color:#037691" %)**Version:**(%%) 0x0084=132=1.3.2 418 - 419 -* (% style="color:#037691" %)**BAT:**(%%) 0x0cf4 = 3316 mV = 3.316V 420 - 421 -* (% style="color:#037691" %)**Singal:**(%%) 0x1e = 30 422 - 423 -* (% style="color:#037691" %)**Mod:**(%%)** **0x01 = 1 424 - 425 -* (% style="color:#037691" %)**Interrupt:**(%%) 0x00= 0 426 - 427 -* (% style="color:#037691" %)**Distance:**(%%) 0x0039= 57 = 57 428 - 429 -* (% style="color:#037691" %)**Time stamp:**(%%) 0x6315537b =1662342011 ([[Unix Epoch Time>>url:http://www.epochconverter.com/]]) 430 - 431 -* (% style="color:#037691" %)**Distance,Time stamp:**(%%) 00396319baf0 432 - 433 -* (% style="color:#037691" %) **8 sets of recorded data: Distance,Time stamp :**(%%) //**00396319ba3c**//,....... 434 - 435 - 436 - 437 - 438 438 == 2.4 Payload Explanation and Sensor Interface == 439 439 440 440 ... ... @@ -452,7 +452,7 @@ 452 452 ))) 453 453 454 454 ((( 455 - (% style="color:blue" %)**Example438 +**Example:** 456 456 ))) 457 457 458 458 ((( ... ... @@ -460,23 +460,20 @@ 460 460 ))) 461 461 462 462 ((( 463 -The Device ID is stored in a none-erase area, Upgrade the firmware or run (% style="color:blue" %)**AT+FDR**(%%)won't erase Device ID.446 +The Device ID is stored in a none-erase area, Upgrade the firmware or run **AT+FDR** won't erase Device ID. 464 464 ))) 465 465 466 466 467 - (% style="color:red" %)**NOTE:450 +**NOTE:When the firmware version is v1.3.2 and later firmware:** 468 468 469 - (% style="color:red" %)**By default, the Device ID equal to the last 15 bits of IMEI.**452 +By default, the Device ID equal to the last 15 bits of IMEI. 470 470 471 -User can use (% style="color:blue" %)**AT+DEUI**(%%)to set Device ID454 +User can use **AT+DEUI** to set Device ID 472 472 456 +**Example:** 473 473 474 -(% style="color:blue" %)**Example :** 475 - 476 476 AT+DEUI=868411056754138 477 477 478 - 479 - 480 480 === 2.4.2 Version Info === 481 481 482 482 ... ... @@ -571,7 +571,7 @@ 571 571 ))) 572 572 573 573 ((( 574 -(% style="color:blue" %)**AT+INTMOD=3 **(%%) ~/~/ 554 +(% style="color:blue" %)**AT+INTMOD=3 **(%%) ~/~/(more info about INMOD please refer [[**AT Command Manual**>>url:https://www.dragino.com/downloads/downloads/NB-IoT/NBSN95/DRAGINO_NBSN95-NB_AT%20Commands_v1.1.0.pdf]])**.** 575 575 ))) 576 576 577 577 ... ... @@ -672,14 +672,12 @@ 672 672 ))) 673 673 674 674 655 +== 2.6 Distance alarm function == 675 675 676 - ==2.6Distance alarm function(Since firmware v1.3.2) ==657 +➢ AT Command: 677 677 659 +AT+ LDDSALARM=min,max 678 678 679 -(% style="color:blue" %)** ➢ AT Command:** 680 - 681 -(% style="color:#037691" %)** AT+ LDDSALARM=min,max** 682 - 683 683 ² When min=0, and max≠0, Alarm higher than max 684 684 685 685 ² When min≠0, and max=0, Alarm lower than min ... ... @@ -686,39 +686,29 @@ 686 686 687 687 ² When min≠0 and max≠0, Alarm higher than max or lower than min 688 688 667 +Example: 689 689 690 - (%style="color:blue"%)** Example:**669 +AT+ LDDSALARM=260,2000 ~/~/ Alarm when distance lower than 260. 691 691 692 -**AT+ LDDSALARM=260,2000** ~/~/ Alarm when distance lower than 260. 693 693 672 +== 2.7 Set the number of data to be uploaded and the recording time == 694 694 674 +➢ AT Command: 695 695 696 -= = 2.7Setthe numberofdatatobeuploadedandhe recording time==676 +AT+TR=900 ~/~/The unit is seconds, and the default is to record data once every 900 seconds.( The minimum can be set to 180 seconds) 697 697 678 +AT+NOUD=8 ~/~/The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded. 698 698 699 - (%style="color:blue"%)** ➢ AT Command:**680 +== 2.8 Read or Clear cached data == 700 700 701 -* (% style="color:#037691" %)** AT+TR=900** (%%) ~/~/ The unit is seconds, and the default is to record data once every 900 seconds.( The minimum can be set to 180 seconds) 702 -* (% style="color:#037691" %)** AT+NOUD=8** (%%) ~/~/ The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded. 682 +➢ AT Command: 703 703 704 - hediagrambelowexplainstherelationship between TR, NOUD, andTDC moreclearly**:**684 +AT+CDP ~/~/ Read cached data 705 705 706 -[[image:image-20221009001114-1.png||height="687" width="955"]] 707 - 708 - 709 - 710 -== 2.8 Read or Clear cached data == 711 - 712 - 713 -(% style="color:blue" %)** ➢ AT Command:** 714 - 715 -* (% style="color:#037691" %)** AT+CDP ** (%%) ~/~/ Read cached data 716 -* (% style="color:#037691" %)** AT+CDP=0** (%%) ~/~/ Clear cached data 717 - 718 718 [[image:image-20220908175333-2.png]] 719 719 688 +AT+CDP=0 ~/~/ Clear cached data 720 720 721 - 722 722 == 2.9 LED Indicator == 723 723 724 724 ... ... @@ -864,90 +864,90 @@ 864 864 See this link for detail: [[https:~~/~~/www.dropbox.com/sh/aaq2xcl0bzfu0yd/AAAEAHRa7Io_465ds4Y7-F3aa?dl=0>>https://www.dropbox.com/sh/aaq2xcl0bzfu0yd/AAAEAHRa7Io_465ds4Y7-F3aa?dl=0]] 865 865 866 866 867 -AT+<CMD>? : 835 +AT+<CMD>? : Help on <CMD> 868 868 869 -AT+<CMD> : 837 +AT+<CMD> : Run <CMD> 870 870 871 -AT+<CMD>=<value> : 839 +AT+<CMD>=<value> : Set the value 872 872 873 -AT+<CMD>=? : 841 +AT+<CMD>=? : Get the value 874 874 875 875 876 876 (% style="color:#037691" %)**General Commands**(%%) 877 877 878 -AT : 846 +AT : Attention 879 879 880 -AT? : 848 +AT? : Short Help 881 881 882 -ATZ : 850 +ATZ : MCU Reset 883 883 884 -AT+TDC : 852 +AT+TDC : Application Data Transmission Interval 885 885 886 -AT+CFG : 854 +AT+CFG : Print all configurations 887 887 888 -AT+CFGMOD : 856 +AT+CFGMOD : Working mode selection 889 889 890 -AT+INTMOD : 858 +AT+INTMOD : Set the trigger interrupt mode 891 891 892 -AT+5VT : 860 +AT+5VT : Set extend the time of 5V power 893 893 894 -AT+PRO : 862 +AT+PRO : Choose agreement 895 895 896 -AT+WEIGRE : 864 +AT+WEIGRE : Get weight or set weight to 0 897 897 898 -AT+WEIGAP : 866 +AT+WEIGAP : Get or Set the GapValue of weight 899 899 900 -AT+RXDL : 868 +AT+RXDL : Extend the sending and receiving time 901 901 902 -AT+CNTFAC : 870 +AT+CNTFAC : Get or set counting parameters 903 903 904 -AT+SERVADDR : 872 +AT+SERVADDR : Server Address 905 905 906 -AT+TR 874 +AT+TR : Get or Set record time" 907 907 908 -AT+APN : 876 +AT+APN : Get or set the APN 909 909 910 -AT+FBAND : 878 +AT+FBAND : Get or Set whether to automatically modify the frequency band 911 911 912 -AT+DNSCFG : Get or Set DNS Server 880 +AT+DNSCFG : Get or Set DNS Server 913 913 914 -AT+GETSENSORVALUE : 882 +AT+GETSENSORVALUE : Returns the current sensor measurement 915 915 916 -AT+NOUD : 884 +AT+NOUD : Get or Set the number of data to be uploaded 917 917 918 -AT+CDP : 886 +AT+CDP : Read or Clear cached data 919 919 920 -AT+LDDSALARM : 888 +AT+LDDSALARM : Get or Set alarm of distance 921 921 922 922 923 923 (% style="color:#037691" %)**COAP Management** 924 924 925 -AT+URI : 893 +AT+URI : Resource parameters 926 926 927 927 928 928 (% style="color:#037691" %)**UDP Management** 929 929 930 -AT+CFM : 898 +AT+CFM : Upload confirmation mode (only valid for UDP) 931 931 932 932 933 933 (% style="color:#037691" %)**MQTT Management** 934 934 935 -AT+CLIENT 903 +AT+CLIENT : Get or Set MQTT client 936 936 937 -AT+UNAME :Get or Set MQTT Username905 +AT+UNAME : Get or Set MQTT Username 938 938 939 -AT+PWD 907 +AT+PWD : Get or Set MQTT password 940 940 941 -AT+PUBTOPIC :Get or Set MQTT publish topic909 +AT+PUBTOPIC : Get or Set MQTT publish topic 942 942 943 -AT+SUBTOPIC :Get or Set MQTT subscription topic911 +AT+SUBTOPIC : Get or Set MQTT subscription topic 944 944 945 945 946 946 (% style="color:#037691" %)**Information** 947 947 948 -AT+FDR : 916 +AT+FDR : Factory Data Reset 949 949 950 -AT+PWORD : 918 +AT+PWORD : Serial Access Password 951 951 952 952 953 953
- image-20221009001114-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Edwin - Size
-
... ... @@ -1,1 +1,0 @@ 1 -282.9 KB - Content