Changes for page NLMS01-NB-IoT Leaf Moisture Sensor User Manual
Last modified by Mengting Qiu on 2024/04/02 16:54
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
-
... ... @@ -71,7 +71,6 @@ 71 71 * - B20 @H-FDD: 800MHz 72 72 * - B28 @H-FDD: 700MHz 73 73 74 - 75 75 == 1.4 Probe Specification == 76 76 77 77 ... ... @@ -91,13 +91,11 @@ 91 91 * IP67 Protection 92 92 * Length: 3.5 meters 93 93 94 - 95 95 == 1.5 Applications == 96 96 97 97 98 98 * Smart Agriculture 99 99 100 - 101 101 == 1.6 Pin mapping and power on == 102 102 103 103 ... ... @@ -196,6 +196,8 @@ 196 196 * (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,5683 ** (%%) ~/~/ to set CoAP server address and port 197 197 * (% style="color:#037691" %)**AT+URI=5,11,"mqtt",11,"coap",12,"0",15,"c=text1",23,"0" ** (%%) ~/~/ Set COAP resource path 198 198 196 + 197 + 199 199 For parameter description, please refer to AT command set 200 200 201 201 [[image:image-20220907171221-9.png]] ... ... @@ -213,9 +213,11 @@ 213 213 This feature is supported since firmware version v1.0.1 214 214 215 215 * (% style="color:#037691" %)**AT+PRO=2 ** (%%) ~/~/ Set to use UDP protocol to uplink 216 -* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,5601 215 +* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,5601 ** (%%) ~/~/ to set UDP server address and port 217 217 * (% style="color:#037691" %)**AT+CFM=1 ** (%%) ~/~/ If the server does not respond, this command is unnecessary 218 218 218 + 219 + 219 219 [[image:image-20220907171221-11.png]] 220 220 221 221 ... ... @@ -237,6 +237,8 @@ 237 237 * (% style="color:#037691" %)**AT+PUBTOPIC=PUB ** (%%) ~/~/ Set the sending topic of MQTT 238 238 * (% style="color:#037691" %)**AT+SUBTOPIC=SUB ** (%%) ~/~/ Set the subscription topic of MQTT 239 239 241 + 242 + 240 240 [[image:image-20220907171221-13.png]] 241 241 242 242 ... ... @@ -257,6 +257,8 @@ 257 257 * (% style="color:#037691" %)**AT+PRO=4 ** (%%) ~/~/ Set to use TCP protocol to uplink 258 258 * (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,5600 ** (%%) ~/~/ to set TCP server address and port 259 259 263 + 264 + 260 260 [[image:image-20220907171221-15.png]] 261 261 262 262 ... ... @@ -273,6 +273,8 @@ 273 273 274 274 * (% style="color:#037691" %)**AT+TDC=7200 ** (%%) ~/~/ Set Update Interval to 7200s (2 hour) 275 275 281 + 282 + 276 276 (% style="color:red" %)**NOTE: By default, the device will send an uplink message every 2 hour. Each Uplink Include 8 set of records in this 2 hour (15 minute interval / record).** 277 277 278 278 ... ... @@ -289,6 +289,7 @@ 289 289 |(% style="width:96px" %)**Size(bytes)**|(% style="width:82px" %)**8**|(% style="width:42px" %)**2**|(% style="width:48px" %)**2**|(% style="width:124px" %)1|(% style="width:58px" %)1|(% style="width:82px" %)1|(% style="width:113px" %)2|(% style="width:134px" %)2|(% style="width:100px" %)4|(% style="width:137px" %)2|(% style="width:110px" %)2|(% style="width:122px" %)4 290 290 |(% style="width:96px" %)**Value**|(% style="width:82px" %)Device ID|(% style="width:42px" %)Ver|(% style="width:48px" %)BAT|(% style="width:124px" %)Signal Strength|(% style="width:58px" %)MOD|(% style="width:82px" %)Interrupt|(% style="width:113px" %)Leaf moisture|(% style="width:134px" %)Leaf Temperature|(% style="width:100px" %)Time stamp|(% style="width:137px" %)Leaf Temperature|(% style="width:110px" %)Leaf moisture|(% style="width:122px" %)Time stamp ..... 291 291 299 + 292 292 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NLMS01 uplink data. 293 293 294 294 ... ... @@ -297,23 +297,24 @@ 297 297 298 298 The payload is ASCII string, representative same HEX: 299 299 300 - **0x__f868411056754138__(% style="color:blue" %)__0064__(% style="color:green" %)__0c78__(% style="color:#00b0f0" %)__17__(% style="color:#7030a0" %)__01__(% style="color:#d60093" %)__00__(% style="color:#a14d07" %)__0225__ (% style="color:#0020b0" %) __010b__ (% style="color:#420042" %)__6315537b__ (% style="color:#663300" %)//__010b0226631550fb__ __010e022663154d77__//(%%)**308 +0x(% style="color:red" %)f868411056754138(% style="color:blue" %)0064(% style="color:green" %)0c78(% style="color:red" %)17(% style="color:blue" %)01(% style="color:green" %)00(% style="color:blue" %)**0225010b6315537b**010b0226631550fb**010e022663154d77**01110225631549f1**011502246315466b**01190223631542e5**011d022163153f62**011e022163153bde**011e022163153859**(%%)** **where: 301 301 302 -where: 303 - 304 -* Device ID: 0xf868411056754138 = f868411056754138 305 -* Version: 0x0064=100=1.0.0 306 -* BAT: 0x0c78 = 3192 mV = 3.192V 307 -* Singal: 0x17 = 23 308 -* Mod: 0x01 = 1 309 -* Interrupt: 0x00= 0 310 +* (% style="color:red" %)Device ID: 0xf868411056754138 = f868411056754138 311 +* (% style="color:blue" %)Version: 0x0064=100=1.0.0 312 +* (% style="color:green" %)BAT: 0x0c78 = 3192 mV = 3.192V 313 +* (% style="color:red" %)Singal: 0x17 = 23 314 +* (% style="color:blue" %)Mod: 0x01 = 1 315 +* (% style="color:green" %)Interrupt: 0x00= 0 310 310 * Leaf moisture: 0x0225= 549 = 54.9% 311 311 * Leaf Temperature:0x010B =267=26.7 °C 312 312 * Time stamp : 0x6315537b =1662342011 ([[Unix Epoch Time>>https://www.epochconverter.com/]]) 313 313 * Leaf Temperature, Leaf moisture,Time stamp : 010b0226631550fb 314 -* 8 sets of recorded data: Leaf Temperature, Leaf moisture,Time stamp : 010e022663154d77,....... 320 +* (% style="color:blue" %)8 sets of recorded data: Leaf Temperature, Leaf moisture,Time stamp : 010e022663154d77,....... 315 315 316 316 323 + 324 + 325 + 317 317 == 2.4 Payload Explanation and Sensor Interface == 318 318 319 319 ... ... @@ -322,10 +322,10 @@ 322 322 323 323 By default, the Device ID equal to the last 15 bits of IMEI. 324 324 325 -User can use (% style="color:#037691" %)**AT+DEUI**(%%)to set Device ID334 +User can use **AT+DEUI** to set Device ID 326 326 327 327 328 - (% style="color:blue" %)**Example**:337 +**Example:** 329 329 330 330 AT+DEUI=868411056754138 331 331 ... ... @@ -358,9 +358,8 @@ 358 358 359 359 NB-IoT Network signal Strength. 360 360 370 +**Ex1: 0x1d = 29** 361 361 362 -(% style="color:blue" %)**Ex1: 0x1d = 29** 363 - 364 364 **0** -113dBm or less 365 365 366 366 **1** -111dBm ... ... @@ -376,11 +376,11 @@ 376 376 === 2.4.5 Leaf moisture === 377 377 378 378 379 -Get the moisture of the (% style="color:#037691" %)**Leaf**(%%). The value range of the register is 300-1000(Decimal), divide this value by 100 to get the percentage of moisture in the Leaf.387 +Get the moisture of the **Leaf**. The value range of the register is 300-1000(Decimal), divide this value by 100 to get the percentage of moisture in the **Leaf**. 380 380 381 -For example, if the data you get from the register is (% style="color:#037691" %)**__0x05 0xDC__**(%%), the moisture content in the(% style="color:#037691" %)**Leaf**(%%)is389 +For example, if the data you get from the register is **__0x05 0xDC__**, the moisture content in the **Leaf** is 382 382 383 - (% style="color:blue" %)**0229(H) = 549(D) /100 = 54.9.**391 +**0229(H) = 549(D) /100 = 54.9.** 384 384 385 385 386 386 ... ... @@ -387,13 +387,13 @@ 387 387 === 2.4.6 Leaf Temperature === 388 388 389 389 390 -Get the temperature in the Leaf. The value range of the register is -4000 - +800(Decimal), divide this value by 100 to get the temperature in the Leaf. For example, if the data you get from the register is (% style="color:#037691" %)**__0x09 0xEC__**(%%), the temperature content in the(% style="color:#037691" %)**Leaf **(%%)is398 +Get the temperature in the **Leaf**. The value range of the register is -4000 - +800(Decimal), divide this value by 100 to get the temperature in the **Leaf**. For example, if the data you get from the register is **__0x09 0xEC__**, the temperature content in the **Leaf **is 391 391 392 - (% style="color:blue" %)**Example**:400 +**Example**: 393 393 394 -If payload is **0105H**: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/10 = 26.1 °C402 +If payload is 0105H: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/10 = 26.1 °C 395 395 396 -If payload is **FF7EH**: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/10 = -12.9 °C404 +If payload is FF7EH: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/10 = -12.9 °C 397 397 398 398 399 399 ... ... @@ -405,15 +405,14 @@ 405 405 Convert Unix timestamp to time 2022-9-5 9:40:11. 406 406 407 407 408 - 409 409 === 2.4.8 Digital Interrupt === 410 410 411 411 412 -Digital Interrupt refers to pin (% style="color:#037691" %)**GPIO_EXTI**(%%), and there are different trigger methods. When there is a trigger, the NLMS01 will send a packet to the server.419 +Digital Interrupt refers to pin **GPIO_EXTI**, and there are different trigger methods. When there is a trigger, the NLMS01 will send a packet to the server. 413 413 414 414 The command is: 415 415 416 - (% style="color:blue" %)**AT+INTMOD=3 **(%%)~/~/423 +**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]])**.** 417 417 418 418 The lower four bits of this data field shows if this packet is generated by interrupt or not. Click here for the hardware and software set up. 419 419 ... ... @@ -432,7 +432,7 @@ 432 432 433 433 The 5V output time can be controlled by AT Command. 434 434 435 - (% style="color:blue" %)**AT+5VT=1000**442 +**AT+5VT=1000** 436 436 437 437 Means set 5V valid time to have 1000ms. So the real 5V output will actually have 1000ms + sampling time for other sensors.** ** 438 438 ... ... @@ -446,11 +446,10 @@ 446 446 [[image:image-20220907171221-18.png]] 447 447 448 448 449 - (% style="color:blue" %)**Examples:**456 +**Examples:** 450 450 458 +* **Set TDC** 451 451 452 -* (% style="color:#037691" %)**Set TDC** 453 - 454 454 If the payload=0100003C, it means set the END Node's TDC to 0x00003C=60(S), while type code is 01. 455 455 456 456 Payload: 01 00 00 1E TDC=30S ... ... @@ -457,16 +457,12 @@ 457 457 458 458 Payload: 01 00 00 3C TDC=60S 459 459 466 +* **Reset** 460 460 461 - 462 -* (% style="color:#037691" %)**Reset** 463 - 464 464 If payload = 0x04FF, it will reset the NLMS01 465 465 470 +* **INTMOD** 466 466 467 - 468 -* (% style="color:#037691" %)**INTMOD** 469 - 470 470 Downlink Payload: 06000003, Set AT+INTMOD=3 471 471 472 472 ... ... @@ -482,6 +482,8 @@ 482 482 * For each uplink probe, LED will be on for 500ms. 483 483 484 484 487 + 488 + 485 485 == 2.7 Installation == 486 486 487 487 ... ... @@ -495,9 +495,9 @@ 495 495 == 2.8 Moisture and Temperature alarm function == 496 496 497 497 498 - (% style="color:blue" %)**➢ AT Command:**502 +**➢ AT Command:** 499 499 500 - (% style="color:#037691" %)**AT+ HUMALARM =min,max**504 +**AT+ HUMALARM =min,max** 501 501 502 502 ² When min=0, and max≠0, Alarm higher than max 503 503 ... ... @@ -506,7 +506,7 @@ 506 506 ² When min≠0 and max≠0, Alarm higher than max or lower than min 507 507 508 508 509 - (% style="color:blue" %)**Example:**513 +**Example:** 510 510 511 511 AT+ HUMALARM =50,60 ~/~/ Alarm when moisture lower than 50. 512 512 ... ... @@ -519,7 +519,7 @@ 519 519 ² When min≠0 and max≠0, Alarm higher than max or lower than min 520 520 521 521 522 - (% style="color:blue" %)**Example:**526 +**Example:** 523 523 524 524 AT+ TEMPALARM=20,30 ~/~/ Alarm when temperature lower than 20. 525 525 ... ... @@ -528,25 +528,24 @@ 528 528 == 2.9 Set the number of data to be uploaded and the recording time == 529 529 530 530 531 - (% style="color:blue" %)**➢ AT Command:**535 +**➢ AT Command:** 532 532 533 -* (% 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) 534 -* (% 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. 537 +**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) 535 535 539 +**AT+NOUD=8** ~/~/ The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded. 536 536 537 -This link explains the relationship between TR, NOUD and TDC more clearly. 538 538 539 -[[https:~~/~~/www.processon.com/view/link/6340e606e401fd390891af87>>https://www.processon.com/view/link/6340e606e401fd390891af87]] 540 540 541 - 542 542 == 2.10 Read or Clear cached data == 543 543 544 544 545 - (% style="color:blue" %)**➢ AT Command:**546 +**➢ AT Command:** 546 546 547 -* (% style="color:#037691" %)**AT+CDP** (%%) ~/~/ Read cached data 548 -* (% style="color:#037691" %)**AT+CDP=0 ** (%%) ~/~/ Clear cached data 548 +**AT+CDP** ~/~/ Read cached data 549 549 550 +**AT+CDP=0 ** ~/~/ Clear cached data 551 + 552 + 550 550 [[image:image-20220907171221-20.png]] 551 551 552 552 ... ... @@ -554,9 +554,9 @@ 554 554 == 2.11 Firmware Change Log == 555 555 556 556 557 -Download URL & Firmware Change log: [[https:~~/~~/www.dropbox.com/sh/ qdc3js2iu1vlipx/AACMHI3CvVb8g7YQMrIHY673a?dl=0>>https://www.dropbox.com/sh/qdc3js2iu1vlipx/AACMHI3CvVb8g7YQMrIHY673a?dl=0]]560 +Download URL & Firmware Change log: [[https:~~/~~/www.dropbox.com/sh/1zmcakvbkf24f8x/AACmq2dZ3iRB9F1nVWeEB9Moa?dl=0>>url:https://www.dropbox.com/sh/1zmcakvbkf24f8x/AACmq2dZ3iRB9F1nVWeEB9Moa?dl=0]] 558 558 559 -Upgrade Instruction: [[Upgrade Firmware>> ||anchor="H5.1200BHowtoUpgradeFirmware"]]562 +Upgrade Instruction: [[Upgrade Firmware>>path:#H5.1200BHowtoUpgradeFirmware]] 560 560 561 561 562 562 ... ... @@ -587,9 +587,9 @@ 587 587 588 588 Instruction to use as below: 589 589 590 - (% style="color:blue" %)**Step 1: **(%%)Downlink the up-to-date DRAGINO_Battery_Life_Prediction_Table.xlsx from: [[https:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/]]593 +**Step 1: **Downlink the up-to-date DRAGINO_Battery_Life_Prediction_Table.xlsx from: [[https:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/]] 591 591 592 - (% style="color:blue" %)**Step 2: **(%%)Open it and choose595 +**Step 2: ** Open it and choose 593 593 594 594 * Product Model 595 595 * Uplink Interval ... ... @@ -634,86 +634,86 @@ 634 634 635 635 See this link for detail: [[https:~~/~~/www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0>>url:https://www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0]] 636 636 637 -AT+<CMD>? : 640 +AT+<CMD>? : Help on <CMD> 638 638 639 -AT+<CMD> :Run <CMD>642 +AT+<CMD> : Run <CMD> 640 640 641 -AT+<CMD>=<value>: 644 +AT+<CMD>=<value> : Set the value 642 642 643 -AT+<CMD>=? :Get the value646 +AT+<CMD>=? : Get the value 644 644 645 645 646 - (% style="color:#037691" %)**General Commands**649 +**General Commands** 647 647 648 -AT :Attention651 +AT : Attention 649 649 650 -AT? :Short Help653 +AT? : Short Help 651 651 652 -ATZ :MCU Reset655 +ATZ : MCU Reset 653 653 654 -AT+TDC : 657 +AT+TDC : Application Data Transmission Interval 655 655 656 -AT+CFG : 659 +AT+CFG : Print all configurations 657 657 658 -AT+CFGMOD : 661 +AT+CFGMOD : Working mode selection 659 659 660 -AT+INTMOD : 663 +AT+INTMOD : Set the trigger interrupt mode 661 661 662 -AT+5VT :Set extend the time of 5V power665 +AT+5VT : Set extend the time of 5V power 663 663 664 -AT+PRO :Choose agreement667 +AT+PRO : Choose agreement 665 665 666 -AT+RXDL :Extend the sending and receiving time669 +AT+RXDL : Extend the sending and receiving time 667 667 668 -AT+SERVADDR :Server Address671 +AT+SERVADDR : Server Address 669 669 670 -AT+APN :Get or set the APN673 +AT+APN : Get or set the APN 671 671 672 -AT+FBAND :Get or Set whether to automatically modify the frequency band675 +AT+FBAND : Get or Set whether to automatically modify the frequency band 673 673 674 -AT+DNSCFG : Get or Set DNS Server 677 +AT+DNSCFG : Get or Set DNS Server 675 675 676 676 AT+GETSENSORVALUE : Returns the current sensor measurement 677 677 678 -AT+TR : 681 +AT+TR : Get or Set record time" 679 679 680 -AT+NOUD : 683 +AT+NOUD : Get or Set the number of data to be uploaded 681 681 682 -AT+CDP : 685 +AT+CDP : Read or Clear cached data 683 683 684 -AT+TEMPALARM : 687 +AT+TEMPALARM : Get or Set alarm of temp 685 685 686 -AT+HUMALARM : humidity689 +AT+HUMALARM : Get or Set alarm of PH 687 687 688 688 689 - (% style="color:#037691" %)**COAP Management**692 +**COAP Management** 690 690 691 -AT+URI : 694 +AT+URI : Resource parameters 692 692 693 693 694 - (% style="color:#037691" %)**UDP Management**697 +**UDP Management** 695 695 696 -AT+CFM : 699 +AT+CFM : Upload confirmation mode (only valid for UDP) 697 697 698 698 699 - (% style="color:#037691" %)**MQTT Management**702 +**MQTT Management** 700 700 701 -AT+CLIENT : 704 +AT+CLIENT : Get or Set MQTT client 702 702 703 -AT+UNAME : Get or Set MQTT Username 706 +AT+UNAME : Get or Set MQTT Username 704 704 705 -AT+PWD 708 +AT+PWD : Get or Set MQTT password 706 706 707 -AT+PUBTOPIC :Get or Set MQTT publish topic710 +AT+PUBTOPIC : Get or Set MQTT publish topic 708 708 709 -AT+SUBTOPIC :Get or Set MQTT subscription topic712 +AT+SUBTOPIC : Get or Set MQTT subscription topic 710 710 711 711 712 - (% style="color:#037691" %)**Information**715 +**Information** 713 713 714 -AT+FDR :Factory Data Reset717 +AT+FDR : Factory Data Reset 715 715 716 -AT+PWORD :Serial Access Password719 +AT+PWORD : Serial Access Password 717 717 718 718 719 719 ... ... @@ -727,11 +727,10 @@ 727 727 728 728 Please see this link for how to upgrade: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H2.HardwareUpgradeMethodSupportList>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H2.HardwareUpgradeMethodSupportList]] 729 729 733 +**Notice, NLMS01** **and LLMS01** **share the same mother board. They use the same connection and method to update.** 730 730 731 -(% style="color:red" %)**Notice, NLMS01 and LLMS01 share the same mother board. They use the same connection and method to update.** 732 732 733 733 734 - 735 735 = 6. Trouble Shooting = 736 736 737 737 ... ... @@ -745,7 +745,7 @@ 745 745 == 6.2 AT Command input doesn't work == 746 746 747 747 748 -In the case if user can see the console output but can't type input to the device. Please check if you already include the (% style="color:green" %)**ENTER**(%%)while sending out the command. Some serial tool doesn't send(% style="color:green" %)**ENTER**(%%)while press the send key, user need to add ENTER in their string.750 +In the case if user can see the console output but can't type input to the device. Please check if you already include the **ENTER** while sending out the command. Some serial tool doesn't send **ENTER** while press the send key, user need to add ENTER in their string. 749 749 750 750 751 751 ... ... @@ -759,11 +759,11 @@ 759 759 = 8. Packing Info = 760 760 761 761 762 - (% style="color:#037691" %)**Package Includes:**764 +**Package Includes**: 763 763 764 764 * NLMS01 NB-IoT Leaf Moisture Sensor x 1 765 765 766 - (% style="color:#037691" %)**Dimension and weight**:768 +**Dimension and weight**: 767 767 768 768 * Device Size: cm 769 769 * Device Weight: g ... ... @@ -771,6 +771,8 @@ 771 771 * Weight / pcs : g 772 772 773 773 776 + 777 + 774 774 = 9. Support = 775 775 776 776