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)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. David1 +XWiki.Xiaoling - Content
-
... ... @@ -72,6 +72,7 @@ 72 72 * 8500mAh Battery for long term use 73 73 74 74 75 + 75 75 == 1.3 Specification == 76 76 77 77 ... ... @@ -103,6 +103,7 @@ 103 103 * Max transmit power: 350mA@3.3v 104 104 105 105 107 + 106 106 == 1.4 Applications == 107 107 108 108 ... ... @@ -203,13 +203,13 @@ 203 203 [[image:image-20220709092052-2.png]] 204 204 205 205 206 -**Connection:** 208 +(% style="color:blue" %)**Connection:** 207 207 208 - (% style="background-color:yellow" %)USB TTL GND <~-~-~-~-> GND 210 + (% style="background-color:yellow" %)**USB TTL GND <~-~-~-~-> GND** 209 209 210 - (% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD 212 +**~ (% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD(%%)** 211 211 212 - (% style="background-color:yellow" %)USB TTL RXD <~-~-~-~-> UART_TXD 214 +**~ (% style="background-color:yellow" %)USB TTL RXD <~-~-~-~-> UART_TXD(%%)** 213 213 214 214 215 215 In the PC, use below serial tool settings: ... ... @@ -247,10 +247,10 @@ 247 247 (% style="color:blue" %)**AT+PRO=1** (%%) ~/~/ Set to use CoAP protocol to uplink 248 248 ))) 249 249 * ((( 250 -(% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5683 ** (%%)~/~/ to set CoAP server address and port 252 +(% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5683 ** (%%)~/~/ to set CoAP server address and port 251 251 ))) 252 252 * ((( 253 -(% style="color:blue" %)**AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** (%%) ~/~/Set COAP resource path 255 +(% style="color:blue" %)**AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** (%%) ~/~/ Set COAP resource path 254 254 255 255 256 256 ... ... @@ -258,6 +258,8 @@ 258 258 259 259 ((( 260 260 For parameter description, please refer to AT command set 263 + 264 + 261 261 ))) 262 262 263 263 [[image:1657330452568-615.png]] ... ... @@ -266,6 +266,8 @@ 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. 273 + 274 + 269 269 ))) 270 270 271 271 [[image:1657330472797-498.png]] ... ... @@ -275,10 +275,12 @@ 275 275 === 2.2.5 Use UDP protocol to uplink data(Default protocol) === 276 276 277 277 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 284 +* (% style="color:blue" %)**AT+PRO=2 ** (%%) ~/~/ Set to use UDP protocol to uplink 285 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5601 ** (%%) ~/~/ to set UDP server address and port 286 +* (% style="color:blue" %)**AT+CFM=1 ** (%%) ~/~/ If the server does not respond, this command is unnecessary 281 281 288 + 289 + 282 282 [[image:1657330501006-241.png]] 283 283 284 284 ... ... @@ -289,13 +289,13 @@ 289 289 === 2.2.6 Use MQTT protocol to uplink data === 290 290 291 291 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 300 +* (% style="color:blue" %)**AT+PRO=3 ** (%%) ~/~/ Set to use MQTT protocol to uplink 301 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,1883 ** (%%) ~/~/ Set MQTT server address and port 302 +* (% style="color:blue" %)**AT+CLIENT=CLIENT ** (%%)~/~/ Set up the CLIENT of MQTT 303 +* (% style="color:blue" %)**AT+UNAME=UNAME **(%%)~/~/ Set the username of MQTT 304 +* (% style="color:blue" %)**AT+PWD=PWD **(%%)~/~/ Set the password of MQTT 305 +* (% style="color:blue" %)**AT+PUBTOPIC=NDDS75_PUB **(%%)~/~/ Set the sending topic of MQTT 306 +* (% style="color:blue" %)**AT+SUBTOPIC=NDDS75_SUB **(%%) ~/~/ Set the subscription topic of MQTT 299 299 300 300 [[image:1657249978444-674.png]] 301 301 ... ... @@ -312,8 +312,8 @@ 312 312 === 2.2.7 Use TCP protocol to uplink data === 313 313 314 314 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 323 +* (% style="color:blue" %)**AT+PRO=4 ** (%%) ~/~/ Set to use TCP protocol to uplink 324 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5600 **(%%) ~/~/ to set TCP server address and port 317 317 318 318 [[image:image-20220709093918-1.png]] 319 319 ... ... @@ -327,25 +327,31 @@ 327 327 328 328 User can use below command to change the (% style="color:green" %)**uplink interval**. 329 329 330 -* (% style="color:blue" %)**AT+TDC=600 ** (%%)~/~/ Set Update Interval to 600s 338 +* (% style="color:blue" %)**AT+TDC=600 ** (%%)~/~/ Set Update Interval to 600s 331 331 332 332 ((( 333 -(% style="color:red" %)**NOTE: By default, the device will send an uplink message every 1 hour.** 334 - 335 335 342 + 343 + 344 +(% style="color:red" %)**NOTE:** 345 + 346 +(% style="color:red" %)**1. By default, the device will send an uplink message every 1 hour.** 347 + 348 +(% style="color:red" %)**2. When the firmware version is v1.3.2 and later firmware:** 336 336 ))) 337 337 338 -** NOTE:Whenthefirmware version isv1.3.2andlaterfirmware:**351 +(% style="color:red" %)**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).** 339 339 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).** 341 341 342 342 343 343 == 2.3 Uplink Payload == 344 344 345 345 346 - Inthismode,uplink payload includesin total14bytes358 +=== 2.3.1 Before Firmware v1.3.2 === 347 347 348 348 361 +In this mode, uplink payload includes in total 14 bytes 362 + 349 349 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:440px" %) 350 350 |=(% style="width: 60px;" %)((( 351 351 **Size(bytes)** ... ... @@ -361,7 +361,7 @@ 361 361 362 362 363 363 ((( 364 -The payload is ASCII string, representative same HEX: 378 +The payload is **ASCII** string, representative same HEX: 365 365 ))) 366 366 367 367 ((( ... ... @@ -372,11 +372,11 @@ 372 372 Device ID: 0x724031556159 = 724031556159 373 373 ))) 374 374 * ((( 375 -Version: 0x0064=100=1.0.0 389 +Version: 0x0064=100=1.0.0 376 376 ))) 377 377 378 378 * ((( 379 -BAT: 0x0c6c = 3180 mV = 3.180V 393 +BAT: 0x0c6c = 3180 mV = 3.180V 380 380 ))) 381 381 * ((( 382 382 Signal: 0x19 = 25 ... ... @@ -387,22 +387,28 @@ 387 387 * ((( 388 388 Interrupt: 0x00 = 0 389 389 404 + 405 + 406 + 390 390 391 391 ))) 392 392 393 -** NOTE:Whenthe firmware version is v1.3.2and later firmware:**410 +=== **2.3.2 Since firmware v1.3.2** === 394 394 412 + 395 395 In this mode, uplink payload includes 69 bytes in total by default. 396 396 397 397 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. 398 398 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....... 417 +(% border="2" style="background-color:#ffffcc; color:green; width:896px" %) 418 +|(% 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 419 +|(% 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....... 401 401 402 402 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NDDS75 uplink data. 403 403 404 404 [[image:image-20220908175246-1.png]] 405 405 425 + 406 406 The payload is ASCII string, representative same HEX: 407 407 408 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: ... ... @@ -418,6 +418,8 @@ 418 418 * Distance,Time stamp : 00396319baf0 419 419 * (% style="color:red" %) 8 sets of recorded data: Distance,Time stamp : //**00396319ba3c**//,....... 420 420 441 + 442 + 421 421 == 2.4 Payload Explanation and Sensor Interface == 422 422 423 423 ... ... @@ -435,7 +435,7 @@ 435 435 ))) 436 436 437 437 ((( 438 -**Example:** 460 +(% style="color:blue" %)**Example :** 439 439 ))) 440 440 441 441 ((( ... ... @@ -443,20 +443,23 @@ 443 443 ))) 444 444 445 445 ((( 446 -The Device ID is stored in a none-erase area, Upgrade the firmware or run **AT+FDR** won't erase Device ID. 468 +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. 447 447 ))) 448 448 449 449 450 -**NOTE:When the firmware version is v1.3.2 and later firmware:** 472 +(% style="color:red" %)**NOTE: When the firmware version is v1.3.2 and later firmware:** 451 451 452 -By default, the Device ID equal to the last 15 bits of IMEI. 474 +(% style="color:red" %)**By default, the Device ID equal to the last 15 bits of IMEI.** 453 453 454 -User can use **AT+DEUI** to set Device ID 476 +User can use (% style="color:blue" %)**AT+DEUI**(%%) to set Device ID 455 455 456 -**Example:** 457 457 479 +(% style="color:blue" %)**Example :** 480 + 458 458 AT+DEUI=868411056754138 459 459 483 + 484 + 460 460 === 2.4.2 Version Info === 461 461 462 462 ... ... @@ -551,7 +551,7 @@ 551 551 ))) 552 552 553 553 ((( 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]])**.** 579 +(% 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]])**.** 555 555 ))) 556 556 557 557 ... ... @@ -652,12 +652,14 @@ 652 652 ))) 653 653 654 654 655 -== 2.6 Distance alarm function == 656 656 657 - ➢ATCommand:681 +== 2.6 Distance alarm function(Since firmware v1.3.2) == 658 658 659 -AT+ LDDSALARM=min,max 660 660 684 +(% style="color:blue" %)** ➢ AT Command:** 685 + 686 +(% style="color:#037691" %)** AT+ LDDSALARM=min,max** 687 + 661 661 ² When min=0, and max≠0, Alarm higher than max 662 662 663 663 ² When min≠0, and max=0, Alarm lower than min ... ... @@ -664,29 +664,36 @@ 664 664 665 665 ² When min≠0 and max≠0, Alarm higher than max or lower than min 666 666 667 -Example: 668 668 669 - AT+LDDSALARM=260,2000 ~/~/ Alarm when distancewerthan260.695 +(% style="color:blue" %)** Example:** 670 670 697 +**AT+ LDDSALARM=260,2000** ~/~/ Alarm when distance lower than 260. 671 671 672 -== 2.7 Set the number of data to be uploaded and the recording time == 673 673 674 -➢ AT Command: 675 675 676 - AT+TR=900~/~/Theunitis seconds, andthedefaultistorecordataonceevery900 seconds.( The minimum can beset to 180 seconds)701 +== 2.7 Set the number of data to be uploaded and the recording time == 677 677 678 -AT+NOUD=8 ~/~/The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded. 679 679 680 - ==2.8 ReadorClearcacheddata==704 +(% style="color:blue" %)** ➢ AT Command:** 681 681 682 -➢ AT Command: 706 +* (% 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) 707 +* (% 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. 683 683 684 -AT+CDP ~/~/ Read cached data 685 685 710 + 711 + 712 +== 2.8 Read or Clear cached data == 713 + 714 + 715 +(% style="color:blue" %)** ➢ AT Command:** 716 + 717 +* (% style="color:#037691" %)** AT+CDP ** (%%) ~/~/ Read cached data 718 +* (% style="color:#037691" %)** AT+CDP=0** (%%) ~/~/ Clear cached data 719 + 686 686 [[image:image-20220908175333-2.png]] 687 687 688 -AT+CDP=0 ~/~/ Clear cached data 689 689 723 + 690 690 == 2.9 LED Indicator == 691 691 692 692 ... ... @@ -832,90 +832,90 @@ 832 832 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]] 833 833 834 834 835 -AT+<CMD>? : Help on <CMD> 869 +AT+<CMD>? : Help on <CMD> 836 836 837 -AT+<CMD> : Run <CMD> 871 +AT+<CMD> : Run <CMD> 838 838 839 -AT+<CMD>=<value> : Set the value 873 +AT+<CMD>=<value> : Set the value 840 840 841 -AT+<CMD>=? : Get the value 875 +AT+<CMD>=? : Get the value 842 842 843 843 844 844 (% style="color:#037691" %)**General Commands**(%%) 845 845 846 -AT : Attention 880 +AT : Attention 847 847 848 -AT? : Short Help 882 +AT? : Short Help 849 849 850 -ATZ : MCU Reset 884 +ATZ : MCU Reset 851 851 852 -AT+TDC : Application Data Transmission Interval 886 +AT+TDC : Application Data Transmission Interval 853 853 854 -AT+CFG : Print all configurations 888 +AT+CFG : Print all configurations 855 855 856 -AT+CFGMOD : Working mode selection 890 +AT+CFGMOD : Working mode selection 857 857 858 -AT+INTMOD : Set the trigger interrupt mode 892 +AT+INTMOD : Set the trigger interrupt mode 859 859 860 -AT+5VT : Set extend the time of 5V power 894 +AT+5VT : Set extend the time of 5V power 861 861 862 -AT+PRO : Choose agreement 896 +AT+PRO : Choose agreement 863 863 864 -AT+WEIGRE : Get weight or set weight to 0 898 +AT+WEIGRE : Get weight or set weight to 0 865 865 866 -AT+WEIGAP : Get or Set the GapValue of weight 900 +AT+WEIGAP : Get or Set the GapValue of weight 867 867 868 -AT+RXDL : Extend the sending and receiving time 902 +AT+RXDL : Extend the sending and receiving time 869 869 870 -AT+CNTFAC : Get or set counting parameters 904 +AT+CNTFAC : Get or set counting parameters 871 871 872 -AT+SERVADDR 906 +AT+SERVADDR : Server Address 873 873 874 -AT+TR 908 +AT+TR : Get or Set record time" 875 875 876 -AT+APN : Get or set the APN 910 +AT+APN : Get or set the APN 877 877 878 -AT+FBAND 912 +AT+FBAND : Get or Set whether to automatically modify the frequency band 879 879 880 -AT+DNSCFG 914 +AT+DNSCFG : Get or Set DNS Server 881 881 882 -AT+GETSENSORVALUE : Returns the current sensor measurement 916 +AT+GETSENSORVALUE : Returns the current sensor measurement 883 883 884 -AT+NOUD 918 +AT+NOUD : Get or Set the number of data to be uploaded 885 885 886 -AT+CDP : Read or Clear cached data 920 +AT+CDP : Read or Clear cached data 887 887 888 -AT+LDDSALARM : Get or Set alarm of distance 922 +AT+LDDSALARM : Get or Set alarm of distance 889 889 890 890 891 891 (% style="color:#037691" %)**COAP Management** 892 892 893 -AT+URI : Resource parameters 927 +AT+URI : Resource parameters 894 894 895 895 896 896 (% style="color:#037691" %)**UDP Management** 897 897 898 -AT+CFM : Upload confirmation mode (only valid for UDP) 932 +AT+CFM : Upload confirmation mode (only valid for UDP) 899 899 900 900 901 901 (% style="color:#037691" %)**MQTT Management** 902 902 903 -AT+CLIENT 937 +AT+CLIENT : Get or Set MQTT client 904 904 905 -AT+UNAME 939 +AT+UNAME : Get or Set MQTT Username 906 906 907 -AT+PWD 941 +AT+PWD : Get or Set MQTT password 908 908 909 -AT+PUBTOPIC 943 +AT+PUBTOPIC : Get or Set MQTT publish topic 910 910 911 -AT+SUBTOPIC 945 +AT+SUBTOPIC : Get or Set MQTT subscription topic 912 912 913 913 914 914 (% style="color:#037691" %)**Information** 915 915 916 -AT+FDR : Factory Data Reset 950 +AT+FDR : Factory Data Reset 917 917 918 -AT+PWORD : Serial Access Password 952 +AT+PWORD : Serial Access Password 919 919 920 920 921 921