Changes for page NDDS75 -- NB-IoT Distance Detect Sensor User Manual
Last modified by Bei Jinggeng on 2024/05/31 09:53
Change comment:
Uploaded new attachment "image-20221009001114-1.png", version {1}
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -201,13 +201,13 @@ 201 201 [[image:image-20220709092052-2.png]] 202 202 203 203 204 -**Connection:** 204 +(% style="color:blue" %)**Connection:** 205 205 206 - (% style="background-color:yellow" %)USB TTL GND <~-~-~-~-> GND 206 + (% style="background-color:yellow" %)**USB TTL GND <~-~-~-~-> GND** 207 207 208 - (% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD 208 +**~ (% style="background-color:yellow" %)USB TTL TXD <~-~-~-~-> UART_RXD(%%)** 209 209 210 - (% style="background-color:yellow" %)USB TTL RXD <~-~-~-~-> UART_TXD 210 +**~ (% 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 ** (%%)~/~/ to set CoAP server address and port 248 +(% 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" ** (%%) ~/~/Set COAP resource path 251 +(% 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,6 +256,8 @@ 256 256 257 257 ((( 258 258 For parameter description, please refer to AT command set 259 + 260 + 259 259 ))) 260 260 261 261 [[image:1657330452568-615.png]] ... ... @@ -264,6 +264,8 @@ 264 264 265 265 ((( 266 266 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 + 267 267 ))) 268 268 269 269 [[image:1657330472797-498.png]] ... ... @@ -273,9 +273,9 @@ 273 273 === 2.2.5 Use UDP protocol to uplink data(Default protocol) === 274 274 275 275 276 -* (% style="color:blue" %)**AT+PRO=2 ** (%%) ~/~/ Set to use UDP protocol to uplink 277 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5601 ** (%%) ~/~/ to set UDP server address and port 278 -* (% style="color:blue" %)**AT+CFM=1 ** (%%) ~/~/ If the server does not respond, this command is unnecessary 280 +* (% style="color:blue" %)**AT+PRO=2 ** (%%) ~/~/ Set to use UDP protocol to uplink 281 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5601 ** (%%) ~/~/ to set UDP server address and port 282 +* (% style="color:blue" %)**AT+CFM=1 ** (%%) ~/~/ If the server does not respond, this command is unnecessary 279 279 280 280 [[image:1657330501006-241.png]] 281 281 ... ... @@ -287,13 +287,13 @@ 287 287 === 2.2.6 Use MQTT protocol to uplink data === 288 288 289 289 290 -* (% style="color:blue" %)**AT+PRO=3 ** (%%) ~/~/Set to use MQTT protocol to uplink 291 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,1883 ** (%%) ~/~/Set MQTT server address and port 292 -* (% style="color:blue" %)**AT+CLIENT=CLIENT ** (%%)~/~/Set up the CLIENT of MQTT 293 -* (% style="color:blue" %)**AT+UNAME=UNAME **(%%)~/~/Set the username of MQTT 294 -* (% style="color:blue" %)**AT+PWD=PWD **(%%)~/~/Set the password of MQTT 295 -* (% style="color:blue" %)**AT+PUBTOPIC=NDDS75_PUB **(%%)~/~/Set the sending topic of MQTT 296 -* (% style="color:blue" %)**AT+SUBTOPIC=NDDS75_SUB **(%%) ~/~/Set the subscription topic of MQTT 294 +* (% style="color:blue" %)**AT+PRO=3 ** (%%) ~/~/ Set to use MQTT protocol to uplink 295 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,1883 ** (%%) ~/~/ Set MQTT server address and port 296 +* (% style="color:blue" %)**AT+CLIENT=CLIENT ** (%%)~/~/ Set up the CLIENT of MQTT 297 +* (% style="color:blue" %)**AT+UNAME=UNAME **(%%)~/~/ Set the username of MQTT 298 +* (% style="color:blue" %)**AT+PWD=PWD **(%%)~/~/ Set the password of MQTT 299 +* (% style="color:blue" %)**AT+PUBTOPIC=NDDS75_PUB **(%%)~/~/ Set the sending topic of MQTT 300 +* (% style="color:blue" %)**AT+SUBTOPIC=NDDS75_SUB **(%%) ~/~/ Set the subscription topic of MQTT 297 297 298 298 [[image:1657249978444-674.png]] 299 299 ... ... @@ -310,8 +310,8 @@ 310 310 === 2.2.7 Use TCP protocol to uplink data === 311 311 312 312 313 -* (% style="color:blue" %)**AT+PRO=4 ** (%%) ~/~/ Set to use TCP protocol to uplink 314 -* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5600 **(%%) ~/~/ to set TCP server address and port 317 +* (% style="color:blue" %)**AT+PRO=4 ** (%%) ~/~/ Set to use TCP protocol to uplink 318 +* (% style="color:blue" %)**AT+SERVADDR=120.24.4.116,5600 **(%%) ~/~/ to set TCP server address and port 315 315 316 316 [[image:image-20220709093918-1.png]] 317 317 ... ... @@ -325,24 +325,29 @@ 325 325 326 326 User can use below command to change the (% style="color:green" %)**uplink interval**. 327 327 328 -* (% style="color:blue" %)**AT+TDC=600 ** (%%)~/~/ Set Update Interval to 600s 332 +* (% style="color:blue" %)**AT+TDC=600 ** (%%)~/~/ Set Update Interval to 600s 329 329 330 330 ((( 331 -(% style="color:red" %)**NOTE: By default, the device will send an uplink message every 1 hour.** 332 - 333 333 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:** 334 334 ))) 335 335 336 -** NOTE:Whenthefirmware version isv1.3.2andlaterfirmware:**345 +(% 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).** 337 337 338 -**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 340 341 341 == 2.3 Uplink Payload == 342 342 343 343 344 -=== 2.3.1 Before Firmware 1.3.2 === 352 +=== 2.3.1 Before Firmware v1.3.2 === 345 345 354 + 346 346 In this mode, uplink payload includes in total 14 bytes 347 347 348 348 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:440px" %) ... ... @@ -360,7 +360,7 @@ 360 360 361 361 362 362 ((( 363 -The payload is ASCII string, representative same HEX: 372 +The payload is **ASCII** string, representative same HEX: 364 364 ))) 365 365 366 366 ((( ... ... @@ -371,11 +371,11 @@ 371 371 Device ID: 0x724031556159 = 724031556159 372 372 ))) 373 373 * ((( 374 -Version: 0x0064=100=1.0.0 383 +Version: 0x0064=100=1.0.0 375 375 ))) 376 376 377 377 * ((( 378 -BAT: 0x0c6c = 3180 mV = 3.180V 387 +BAT: 0x0c6c = 3180 mV = 3.180V 379 379 ))) 380 380 * ((( 381 381 Signal: 0x19 = 25 ... ... @@ -386,22 +386,28 @@ 386 386 * ((( 387 387 Interrupt: 0x00 = 0 388 388 398 + 399 + 400 + 389 389 390 390 ))) 391 391 392 -=== **2.3.2 Since firmware v1.3.2** === 404 +=== **2.3.2 Since firmware v1.3.2** === 393 393 406 + 394 394 In this mode, uplink payload includes 69 bytes in total by default. 395 395 396 396 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. 397 397 398 -|**Size(bytes)**|**8**|2|2|1|1|1|2|4|2|4 399 -|**Value**|Device ID|Ver|BAT|Signal Strength|MOD|Interrupt|Distance|Timestamp|Distance|Timestamp....... 411 +(% border="2" style="background-color:#ffffcc; color:green; width:896px" %) 412 +|(% 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 413 +|(% 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....... 400 400 401 401 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NDDS75 uplink data. 402 402 403 403 [[image:image-20220908175246-1.png]] 404 404 419 + 405 405 The payload is ASCII string, representative same HEX: 406 406 407 407 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: ... ... @@ -434,7 +434,7 @@ 434 434 ))) 435 435 436 436 ((( 437 -**Example:** 452 +(% style="color:blue" %)**Example :** 438 438 ))) 439 439 440 440 ((( ... ... @@ -442,20 +442,23 @@ 442 442 ))) 443 443 444 444 ((( 445 -The Device ID is stored in a none-erase area, Upgrade the firmware or run **AT+FDR** won't erase Device ID. 460 +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 446 ))) 447 447 448 448 449 -**NOTE:When the firmware version is v1.3.2 and later firmware:** 464 +(% style="color:red" %)**NOTE: When the firmware version is v1.3.2 and later firmware:** 450 450 451 -By default, the Device ID equal to the last 15 bits of IMEI. 466 +(% style="color:red" %)**By default, the Device ID equal to the last 15 bits of IMEI.** 452 452 453 -User can use **AT+DEUI** to set Device ID 468 +User can use (% style="color:blue" %)**AT+DEUI**(%%) to set Device ID 454 454 455 -**Example:** 456 456 471 +(% style="color:blue" %)**Example :** 472 + 457 457 AT+DEUI=868411056754138 458 458 475 + 476 + 459 459 === 2.4.2 Version Info === 460 460 461 461 ... ... @@ -550,7 +550,7 @@ 550 550 ))) 551 551 552 552 ((( 553 -(% 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]])**.** 571 +(% 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]])**.** 554 554 ))) 555 555 556 556 ... ... @@ -651,12 +651,14 @@ 651 651 ))) 652 652 653 653 654 -== 2.6 Distance alarm function(Since firmware v1.3.2) == 655 655 656 - ➢ATCommand:673 +== 2.6 Distance alarm function(Since firmware v1.3.2) == 657 657 658 -AT+ LDDSALARM=min,max 659 659 676 +(% style="color:blue" %)** ➢ AT Command:** 677 + 678 +(% style="color:#037691" %)** AT+ LDDSALARM=min,max** 679 + 660 660 ² When min=0, and max≠0, Alarm higher than max 661 661 662 662 ² When min≠0, and max=0, Alarm lower than min ... ... @@ -663,29 +663,39 @@ 663 663 664 664 ² When min≠0 and max≠0, Alarm higher than max or lower than min 665 665 666 -Example: 667 667 668 - AT+LDDSALARM=260,2000 ~/~/ Alarm when distancewerthan260.687 +(% style="color:blue" %)** Example:** 669 669 689 +**AT+ LDDSALARM=260,2000** ~/~/ Alarm when distance lower than 260. 670 670 671 -== 2.7 Set the number of data to be uploaded and the recording time == 672 672 673 -➢ AT Command: 674 674 675 - AT+TR=900~/~/Theunitis seconds, andthedefaultistorecordataonceevery900 seconds.( The minimum can beset to 180 seconds)693 +== 2.7 Set the number of data to be uploaded and the recording time == 676 676 677 -AT+NOUD=8 ~/~/The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded. 678 678 679 - ==2.8 ReadorClearcacheddata==696 +(% style="color:blue" %)** ➢ AT Command:** 680 680 681 -➢ AT Command: 698 +* (% 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) 699 +* (% 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 682 683 - AT+CDP~/~/ Readcacheddata701 + The diagram below explains the relationship between TR, NOUD, and TDC more clearly**:** 684 684 703 +[[image:image-20221009000513-1.png||height="732" width="1018"]] 704 + 705 + 706 + 707 +== 2.8 Read or Clear cached data == 708 + 709 + 710 +(% style="color:blue" %)** ➢ AT Command:** 711 + 712 +* (% style="color:#037691" %)** AT+CDP ** (%%) ~/~/ Read cached data 713 +* (% style="color:#037691" %)** AT+CDP=0** (%%) ~/~/ Clear cached data 714 + 685 685 [[image:image-20220908175333-2.png]] 686 686 687 -AT+CDP=0 ~/~/ Clear cached data 688 688 718 + 689 689 == 2.9 LED Indicator == 690 690 691 691 ... ... @@ -831,90 +831,90 @@ 831 831 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]] 832 832 833 833 834 -AT+<CMD>? : Help on <CMD> 864 +AT+<CMD>? : Help on <CMD> 835 835 836 -AT+<CMD> : Run <CMD> 866 +AT+<CMD> : Run <CMD> 837 837 838 -AT+<CMD>=<value> : Set the value 868 +AT+<CMD>=<value> : Set the value 839 839 840 -AT+<CMD>=? : Get the value 870 +AT+<CMD>=? : Get the value 841 841 842 842 843 843 (% style="color:#037691" %)**General Commands**(%%) 844 844 845 -AT : Attention 875 +AT : Attention 846 846 847 -AT? : Short Help 877 +AT? : Short Help 848 848 849 -ATZ : MCU Reset 879 +ATZ : MCU Reset 850 850 851 -AT+TDC : Application Data Transmission Interval 881 +AT+TDC : Application Data Transmission Interval 852 852 853 -AT+CFG : Print all configurations 883 +AT+CFG : Print all configurations 854 854 855 -AT+CFGMOD : Working mode selection 885 +AT+CFGMOD : Working mode selection 856 856 857 -AT+INTMOD : Set the trigger interrupt mode 887 +AT+INTMOD : Set the trigger interrupt mode 858 858 859 -AT+5VT : Set extend the time of 5V power 889 +AT+5VT : Set extend the time of 5V power 860 860 861 -AT+PRO : Choose agreement 891 +AT+PRO : Choose agreement 862 862 863 -AT+WEIGRE : Get weight or set weight to 0 893 +AT+WEIGRE : Get weight or set weight to 0 864 864 865 -AT+WEIGAP : Get or Set the GapValue of weight 895 +AT+WEIGAP : Get or Set the GapValue of weight 866 866 867 -AT+RXDL : Extend the sending and receiving time 897 +AT+RXDL : Extend the sending and receiving time 868 868 869 -AT+CNTFAC : Get or set counting parameters 899 +AT+CNTFAC : Get or set counting parameters 870 870 871 -AT+SERVADDR 901 +AT+SERVADDR : Server Address 872 872 873 -AT+TR 903 +AT+TR : Get or Set record time" 874 874 875 -AT+APN : Get or set the APN 905 +AT+APN : Get or set the APN 876 876 877 -AT+FBAND 907 +AT+FBAND : Get or Set whether to automatically modify the frequency band 878 878 879 -AT+DNSCFG 909 +AT+DNSCFG : Get or Set DNS Server 880 880 881 -AT+GETSENSORVALUE : Returns the current sensor measurement 911 +AT+GETSENSORVALUE : Returns the current sensor measurement 882 882 883 -AT+NOUD 913 +AT+NOUD : Get or Set the number of data to be uploaded 884 884 885 -AT+CDP : Read or Clear cached data 915 +AT+CDP : Read or Clear cached data 886 886 887 -AT+LDDSALARM : Get or Set alarm of distance 917 +AT+LDDSALARM : Get or Set alarm of distance 888 888 889 889 890 890 (% style="color:#037691" %)**COAP Management** 891 891 892 -AT+URI : Resource parameters 922 +AT+URI : Resource parameters 893 893 894 894 895 895 (% style="color:#037691" %)**UDP Management** 896 896 897 -AT+CFM : Upload confirmation mode (only valid for UDP) 927 +AT+CFM : Upload confirmation mode (only valid for UDP) 898 898 899 899 900 900 (% style="color:#037691" %)**MQTT Management** 901 901 902 -AT+CLIENT 932 +AT+CLIENT : Get or Set MQTT client 903 903 904 -AT+UNAME 934 +AT+UNAME : Get or Set MQTT Username 905 905 906 -AT+PWD 936 +AT+PWD : Get or Set MQTT password 907 907 908 -AT+PUBTOPIC 938 +AT+PUBTOPIC : Get or Set MQTT publish topic 909 909 910 -AT+SUBTOPIC 940 +AT+SUBTOPIC : Get or Set MQTT subscription topic 911 911 912 912 913 913 (% style="color:#037691" %)**Information** 914 914 915 -AT+FDR : Factory Data Reset 945 +AT+FDR : Factory Data Reset 916 916 917 -AT+PWORD : Serial Access Password 947 +AT+PWORD : Serial Access Password 918 918 919 919 920 920
- image-20221009001114-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Edwin - Size
-
... ... @@ -1,0 +1,1 @@ 1 +282.9 KB - Content