Changes for page NDDS75 -- NB-IoT Distance Detect Sensor User Manual
Last modified by Bei Jinggeng on 2024/05/31 09:53
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -73,6 +73,8 @@ 73 73 74 74 75 75 76 + 77 + 76 76 == 1.3 Specification == 77 77 78 78 ... ... @@ -105,6 +105,8 @@ 105 105 106 106 107 107 110 + 111 + 108 108 == 1.4 Applications == 109 109 110 110 ... ... @@ -120,6 +120,7 @@ 120 120 121 121 122 122 127 + 123 123 == 1.5 Pin Definitions == 124 124 125 125 ... ... @@ -204,13 +204,13 @@ 204 204 [[image:image-20220709092052-2.png]] 205 205 206 206 207 - (% style="color:blue" %)**Connection:**212 +**Connection:** 208 208 209 - (% style="background-color:yellow" %) **USB TTL GND <~-~-~-~-> GND**214 + (% style="background-color:yellow" %)USB TTL GND <~-~-~-~-> GND 210 210 211 - **~(% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD(%%)**216 + (% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD 212 212 213 - **~(% style="background-color:yellow" %)USB TTL RXD <~-~-~-~-> UART_TXD(%%)**218 + (% style="background-color:yellow" %)USB TTL RXD <~-~-~-~-> UART_TXD 214 214 215 215 216 216 In the PC, use below serial tool settings: ... ... @@ -248,10 +248,10 @@ 248 248 (% style="color:blue" %)**AT+PRO=1** (%%) ~/~/ Set to use CoAP protocol to uplink 249 249 ))) 250 250 * ((( 251 -(% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5683 ** (%%)~/~/ 256 +(% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5683 ** (%%)~/~/ to set CoAP server address and port 252 252 ))) 253 253 * ((( 254 -(% style="color:blue" %)**AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** (%%) ~/~/ 259 +(% style="color:blue" %)**AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** (%%) ~/~/Set COAP resource path 255 255 256 256 257 257 ... ... @@ -280,9 +280,9 @@ 280 280 === 2.2.5 Use UDP protocol to uplink data(Default protocol) === 281 281 282 282 283 -* (% style="color:blue" %)**AT+PRO=2 ** (%%) ~/~/ 284 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5601 ** (%%) ~/~/ 285 -* (% style="color:blue" %)**AT+CFM=1 ** (%%) ~/~/ 288 +* (% style="color:blue" %)**AT+PRO=2 ** (%%) ~/~/ Set to use UDP protocol to uplink 289 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5601 ** (%%) ~/~/ to set UDP server address and port 290 +* (% style="color:blue" %)**AT+CFM=1 ** (%%) ~/~/ If the server does not respond, this command is unnecessary 286 286 287 287 [[image:1657330501006-241.png]] 288 288 ... ... @@ -294,13 +294,13 @@ 294 294 === 2.2.6 Use MQTT protocol to uplink data === 295 295 296 296 297 -* (% style="color:blue" %)**AT+PRO=3 ** (%%) ~/~/ 298 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,1883 ** (%%) ~/~/ 299 -* (% style="color:blue" %)**AT+CLIENT=CLIENT ** (%%)~/~/ 300 -* (% style="color:blue" %)**AT+UNAME=UNAME **(%%)~/~/ 301 -* (% style="color:blue" %)**AT+PWD=PWD **(%%)~/~/ 302 -* (% style="color:blue" %)**AT+PUBTOPIC=NDDS75_PUB **(%%)~/~/ 303 -* (% style="color:blue" %)**AT+SUBTOPIC=NDDS75_SUB **(%%) ~/~/ 302 +* (% style="color:blue" %)**AT+PRO=3 ** (%%) ~/~/Set to use MQTT protocol to uplink 303 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,1883 ** (%%) ~/~/Set MQTT server address and port 304 +* (% style="color:blue" %)**AT+CLIENT=CLIENT ** (%%)~/~/Set up the CLIENT of MQTT 305 +* (% style="color:blue" %)**AT+UNAME=UNAME **(%%)~/~/Set the username of MQTT 306 +* (% style="color:blue" %)**AT+PWD=PWD **(%%)~/~/Set the password of MQTT 307 +* (% style="color:blue" %)**AT+PUBTOPIC=NDDS75_PUB **(%%)~/~/Set the sending topic of MQTT 308 +* (% style="color:blue" %)**AT+SUBTOPIC=NDDS75_SUB **(%%) ~/~/Set the subscription topic of MQTT 304 304 305 305 [[image:1657249978444-674.png]] 306 306 ... ... @@ -317,8 +317,8 @@ 317 317 === 2.2.7 Use TCP protocol to uplink data === 318 318 319 319 320 -* (% style="color:blue" %)**AT+PRO=4 ** (%%) ~/~/ 321 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5600 **(%%) ~/~/ 325 +* (% style="color:blue" %)**AT+PRO=4 ** (%%) ~/~/ Set to use TCP protocol to uplink 326 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5600 **(%%) ~/~/ to set TCP server address and port 322 322 323 323 [[image:image-20220709093918-1.png]] 324 324 ... ... @@ -332,7 +332,7 @@ 332 332 333 333 User can use below command to change the (% style="color:green" %)**uplink interval**. 334 334 335 -* (% style="color:blue" %)**AT+TDC=600 ** (%%)~/~/ 340 +* (% style="color:blue" %)**AT+TDC=600 ** (%%)~/~/ Set Update Interval to 600s 336 336 337 337 ((( 338 338 ... ... @@ -352,7 +352,7 @@ 352 352 == 2.3 Uplink Payload == 353 353 354 354 355 -=== 2.3.1 Before Firmware v1.3.2 ===360 +=== 2.3.1 Before Firmware 1.3.2 === 356 356 357 357 358 358 In this mode, uplink payload includes in total 14 bytes ... ... @@ -371,27 +371,39 @@ 371 371 [[image:1657331036973-987.png]] 372 372 373 373 374 - 379 +((( 375 375 The payload is **ASCII** string, representative same HEX: 381 +))) 376 376 377 -(% style="background-color:yellow" %)**0x 724031556159 0064 0c6c 19 0292 00 ** 383 +((( 384 +0x72403155615900640c6c19029200 where: 385 +))) 378 378 379 -**where :** 387 +* ((( 388 +Device ID: 0x724031556159 = 724031556159 389 +))) 390 +* ((( 391 +Version: 0x0064=100=1.0.0 392 +))) 380 380 381 -* (% style="color:#037691" %)**Device ID:**(%%) 0x724031556159 = 724031556159 394 +* ((( 395 +BAT: 0x0c6c = 3180 mV = 3.180V 396 +))) 397 +* ((( 398 +Signal: 0x19 = 25 399 +))) 400 +* ((( 401 +Distance: 0x0292= 658 mm 402 +))) 403 +* ((( 404 +Interrupt: 0x00 = 0 382 382 383 -* (% style="color:#037691" %)**Version:**(%%) 0x0064=100=1.0.0 384 384 385 -* (% style="color:#037691" %)**BAT:** (%%) 0x0c6c = 3180 mV = 3.180V 386 386 387 -* (% style="color:#037691" %)**Signal:**(%%) 0x19 = 25 388 388 389 -* (% style="color:#037691" %)**Distance:** (%%)0x0292= 658 mm 409 + 410 +))) 390 390 391 -* (% style="color:#037691" %)**Interrupt:**(%%) 0x00 = 0 392 - 393 - 394 - 395 395 === **2.3.2 Since firmware v1.3.2** === 396 396 397 397 ... ... @@ -410,32 +410,23 @@ 410 410 411 411 The payload is ASCII string, representative same HEX: 412 412 413 - **0x#00b0f0" %)1e#7030a0" %)01#d60093" %)00(% style="color:#a14d07" %)(% style="color:#0020b0" %)6315537b(% style="color:#663300" %)00396319baf0**430 +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: 414 414 415 -**where:** 432 +* (% style="color:green" %)Device ID: f867787050213317 = f867787050213317 433 +* (% style="color:red" %)Version: 0x0084=132=1.3.2 434 +* (% style="color:green" %)BAT: 0x0cf4 = 3316 mV = 3.316V 435 +* (% style="color:blue" %)Singal: 0x1e = 30 436 +* (% style="color:red" %)Mod: 0x01 = 1 437 +* Interrupt: 0x00= 0 438 +* Distance: 0x0039= 57 = 57 439 +* Time stamp : 0x6315537b =1662342011 ([[Unix Epoch Time>>url:http://www.epochconverter.com/]]) 440 +* Distance,Time stamp : 00396319baf0 441 +* (% style="color:red" %) 8 sets of recorded data: Distance,Time stamp : //**00396319ba3c**//,....... 416 416 417 -* (% style="color:#037691" %)**Device ID:**(%%) f867787050213317 = f867787050213317 418 418 419 -* (% style="color:#037691" %)**Version:**(%%) 0x0084=132=1.3.2 420 420 421 -* (% style="color:#037691" %)**BAT:**(%%) 0x0cf4 = 3316 mV = 3.316V 422 422 423 -* (% style="color:#037691" %)**Singal:**(%%) 0x1e = 30 424 424 425 -* (% style="color:#037691" %)**Mod:**(%%)** **0x01 = 1 426 - 427 -* (% style="color:#037691" %)**Interrupt:**(%%) 0x00= 0 428 - 429 -* (% style="color:#037691" %)**Distance:**(%%) 0x0039= 57 = 57 430 - 431 -* (% style="color:#037691" %)**Time stamp:**(%%) 0x6315537b =1662342011 ([[Unix Epoch Time>>url:http://www.epochconverter.com/]]) 432 - 433 -* (% style="color:#037691" %)**Distance,Time stamp:**(%%) 00396319baf0 434 - 435 -* (% style="color:#037691" %)**8 sets of recorded data: Distance,Time stamp :**(%%) //**00396319ba3c**//,....... 436 - 437 - 438 - 439 439 == 2.4 Payload Explanation and Sensor Interface == 440 440 441 441 ... ... @@ -572,7 +572,7 @@ 572 572 ))) 573 573 574 574 ((( 575 -(% style="color:blue" %)**AT+INTMOD=3 **(%%) ~/~/ 583 +(% 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]])**.** 576 576 ))) 577 577 578 578 ... ... @@ -699,23 +699,22 @@ 699 699 700 700 (% style="color:blue" %)** ➢ AT Command:** 701 701 702 -* (% style="color:#037691" %)** AT+TR=900** (%%) 703 -* (% style="color:#037691" %)** AT+NOUD=8** 710 +* (% 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) 711 +* (% 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. 704 704 705 - The diagram below explains the relationship between TR, NOUD, and TDC more clearly**:** 706 706 707 -[[image:image-20221009001114-1.png||height="687" width="955"]] 708 708 709 709 710 - 711 711 == 2.8 Read or Clear cached data == 712 712 713 713 714 714 (% style="color:blue" %)** ➢ AT Command:** 715 715 716 -* (% style="color:#037691" %)** AT+CDP ** (%%) 717 -* (% style="color:#037691" %)** AT+CDP=0** (%%) 721 +* (% style="color:#037691" %)** AT+CDP ** (%%) ~/~/ Read cached data 722 +* (% style="color:#037691" %)** AT+CDP=0** (%%) ~/~/ Clear cached data 718 718 724 + 725 + 719 719 [[image:image-20220908175333-2.png]] 720 720 721 721 ... ... @@ -865,90 +865,90 @@ 865 865 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]] 866 866 867 867 868 -AT+<CMD>? : 875 +AT+<CMD>? : Help on <CMD> 869 869 870 -AT+<CMD> : 877 +AT+<CMD> : Run <CMD> 871 871 872 -AT+<CMD>=<value> : 879 +AT+<CMD>=<value> : Set the value 873 873 874 -AT+<CMD>=? : 881 +AT+<CMD>=? : Get the value 875 875 876 876 877 877 (% style="color:#037691" %)**General Commands**(%%) 878 878 879 -AT : 886 +AT : Attention 880 880 881 -AT? : 888 +AT? : Short Help 882 882 883 -ATZ : 890 +ATZ : MCU Reset 884 884 885 -AT+TDC : 892 +AT+TDC : Application Data Transmission Interval 886 886 887 -AT+CFG : 894 +AT+CFG : Print all configurations 888 888 889 -AT+CFGMOD : 896 +AT+CFGMOD : Working mode selection 890 890 891 -AT+INTMOD : 898 +AT+INTMOD : Set the trigger interrupt mode 892 892 893 -AT+5VT : 900 +AT+5VT : Set extend the time of 5V power 894 894 895 -AT+PRO : 902 +AT+PRO : Choose agreement 896 896 897 -AT+WEIGRE : 904 +AT+WEIGRE : Get weight or set weight to 0 898 898 899 -AT+WEIGAP : 906 +AT+WEIGAP : Get or Set the GapValue of weight 900 900 901 -AT+RXDL : 908 +AT+RXDL : Extend the sending and receiving time 902 902 903 -AT+CNTFAC : 910 +AT+CNTFAC : Get or set counting parameters 904 904 905 -AT+SERVADDR : 912 +AT+SERVADDR : Server Address 906 906 907 -AT+TR 914 +AT+TR : Get or Set record time" 908 908 909 -AT+APN : 916 +AT+APN : Get or set the APN 910 910 911 -AT+FBAND : 918 +AT+FBAND : Get or Set whether to automatically modify the frequency band 912 912 913 -AT+DNSCFG : Get or Set DNS Server 920 +AT+DNSCFG : Get or Set DNS Server 914 914 915 -AT+GETSENSORVALUE : 922 +AT+GETSENSORVALUE : Returns the current sensor measurement 916 916 917 -AT+NOUD : 924 +AT+NOUD : Get or Set the number of data to be uploaded 918 918 919 -AT+CDP : 926 +AT+CDP : Read or Clear cached data 920 920 921 -AT+LDDSALARM : 928 +AT+LDDSALARM : Get or Set alarm of distance 922 922 923 923 924 924 (% style="color:#037691" %)**COAP Management** 925 925 926 -AT+URI : 933 +AT+URI : Resource parameters 927 927 928 928 929 929 (% style="color:#037691" %)**UDP Management** 930 930 931 -AT+CFM : 938 +AT+CFM : Upload confirmation mode (only valid for UDP) 932 932 933 933 934 934 (% style="color:#037691" %)**MQTT Management** 935 935 936 -AT+CLIENT 943 +AT+CLIENT : Get or Set MQTT client 937 937 938 -AT+UNAME :Get or Set MQTT Username945 +AT+UNAME : Get or Set MQTT Username 939 939 940 -AT+PWD 947 +AT+PWD : Get or Set MQTT password 941 941 942 -AT+PUBTOPIC :Get or Set MQTT publish topic949 +AT+PUBTOPIC : Get or Set MQTT publish topic 943 943 944 -AT+SUBTOPIC :Get or Set MQTT subscription topic951 +AT+SUBTOPIC : Get or Set MQTT subscription topic 945 945 946 946 947 947 (% style="color:#037691" %)**Information** 948 948 949 -AT+FDR : 956 +AT+FDR : Factory Data Reset 950 950 951 -AT+PWORD : 958 +AT+PWORD : Serial Access Password 952 952 953 953 954 954
- image-20221009001114-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Edwin - Size
-
... ... @@ -1,1 +1,0 @@ 1 -282.9 KB - Content