Changes for page NSPH01-NB-IoT Soil pH Sensor User Manual
Last modified by Bei Jinggeng on 2024/03/30 17: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. Xiaoling1 +XWiki.David - Content
-
... ... @@ -1,15 +1,10 @@ 1 1 (% style="text-align:center" %) 2 2 [[image:)YK]Y_LZJIO]J2~~VA}OQJM2.png]] 3 3 4 += **1. Introduction** = 4 4 5 - {{toc/}}6 +== **1.1 What is NSPH01 Soil pH Sensor** == 6 6 7 - 8 - 9 -= 1. Introduction = 10 - 11 -== 1.1 What is NSPH01 Soil pH Sensor == 12 - 13 13 The Dragino NSPH01 is a **NB-IOT soil ph sensor** for IoT of Agriculture. It is designed to measure the soil PH and soil temperature, so to send to the platform to analyze the soil acid or alkali level. The probe is IP68 waterproof. 14 14 15 15 NSPH01 probe is made by Solid AgCl reference electrode and Pure metal pH sensitive electrode. It can detect soil's** pH **with high accuracy and stable value. The NSPH01 probe can be buried into soil for long time use. ... ... @@ -25,7 +25,7 @@ 25 25 (% style="text-align:center" %) 26 26 [[image:M_K`YF9`CAYAE\@}3T]FHT$9.png]] 27 27 28 - ==1.2 Features==23 +**1.2 Features** 29 29 30 30 * NB-IoT Bands: B1/B3/B8/B5/B20/B28 @H-FDD 31 31 * Monitor soil pH with temperature compensation. ... ... @@ -42,7 +42,7 @@ 42 42 * Micro SIM card slot for NB-IoT SIM 43 43 * 8500mAh Battery for long term use 44 44 45 - ==1.3 Specification==40 +**1.3 Specification** 46 46 47 47 **Common DC Characteristics:** 48 48 ... ... @@ -58,7 +58,7 @@ 58 58 * - B20 @H-FDD: 800MHz 59 59 * - B28 @H-FDD: 700MHz 60 60 61 - ==1.4 Probe Specification==56 +**1.4 Probe Specification** 62 62 63 63 **Soil pH:** 64 64 ... ... @@ -77,19 +77,19 @@ 77 77 * IP68 Protection 78 78 * Length: 3.5 meters 79 79 80 - ==1.5 Applications==75 +**1.5 Applications** 81 81 82 82 * Smart Agriculture 83 83 84 - ==1.6 Pin mapping and power on==79 +**1.6 Pin mapping and power on** 85 85 86 86 (% style="text-align:center" %) 87 87 [[image:image-20220907153300-2.png]] 88 88 89 89 90 - =2. Use NSPH01 to communicate with IoT Server=85 +**2. Use NSPH01 to communicate with IoT Server** 91 91 92 - ==2.1 How it works==87 +**2.1 How it works** 93 93 94 94 The NSPH01 is equipped with a NB-IoT module, the pre-loaded firmware in NSPH01 will get environment data from sensors and send the value to local NB-IoT network via the NB-IoT module. The NB-IoT network will forward this value to IoT server via the protocol defined by NSPH01. 95 95 ... ... @@ -98,9 +98,9 @@ 98 98 (% style="text-align:center" %) 99 99 [[image:image-20220907153416-3.png]] 100 100 101 - ==2.2 Configure the NSPH01==96 +**2.2 Configure the NSPH01** 102 102 103 - ===2.2.1 Test Requirement===98 +**2.2.1 Test Requirement** 104 104 105 105 To use NSPH01 in your city, make sure meet below requirements: 106 106 ... ... @@ -114,7 +114,7 @@ 114 114 [[image:image-20220907153445-4.png]] 115 115 116 116 117 - ===2.2.2 Insert SIM card===112 +**2.2.2 Insert SIM card** 118 118 119 119 Insert the NB-IoT Card get from your provider. 120 120 ... ... @@ -123,7 +123,7 @@ 123 123 (% style="text-align:center" %) 124 124 [[image:image-20220907153505-5.png]] 125 125 126 - ===2.2.3 Connect USB – TTL to NSPH01 to configure it===121 +**2.2.3 Connect USB – TTL to NSPH01 to configure it** 127 127 128 128 User need to configure NSPH01 via serial port to set the **Server Address** / **Uplink Topic** to define where and how-to uplink packets. NSPH01 support AT Commands, user can use a USB to TTL adapter to connect to NSPH01 and use AT Commands to configure it, as below. 129 129 ... ... @@ -150,7 +150,7 @@ 150 150 151 151 **Note: the valid AT Commands can be found at: **[[**https:~~/~~/www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0**>>url:https://www.dropbox.com/sh/351dwor6joz8nwh/AADn1BQaAAxLF_QMyU8NkW47a?dl=0]] 152 152 153 - ===2.2.4 Use CoAP protocol to uplink data===148 +**2.2.4 Use CoAP protocol to uplink data** 154 154 155 155 **Note: if you don't have CoAP server, you can refer this link to set up one: **[[**http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/**>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Set%20up%20CoAP%20Server/]] 156 156 ... ... @@ -171,7 +171,7 @@ 171 171 [[image:image-20220907153612-8.png||height="529" width="729"]] 172 172 173 173 174 - ===2.2.5 Use UDP protocol to uplink data(Default protocol)===169 +**2.2.5 Use UDP protocol to uplink data(Default protocol)** 175 175 176 176 This feature is supported since firmware version v1.0.1 177 177 ... ... @@ -186,7 +186,7 @@ 186 186 [[image:image-20220907153703-10.png||height="309" width="738"]] 187 187 188 188 189 - ===2.2.6 Use MQTT protocol to uplink data===184 +**2.2.6 Use MQTT protocol to uplink data** 190 190 191 191 This feature is supported since firmware version v110 192 192 ... ... @@ -206,7 +206,7 @@ 206 206 207 207 MQTT protocol has a much higher power consumption compare vs UDP / CoAP protocol. Please check the power analyze document and adjust the uplink period to a suitable interval. 208 208 209 - ===2.2.7 Use TCP protocol to uplink data===204 +**2.2.7 Use TCP protocol to uplink data** 210 210 211 211 This feature is supported since firmware version v110 212 212 ... ... @@ -219,7 +219,7 @@ 219 219 (% style="text-align:center" %) 220 220 [[image:image-20220907153827-14.png||height="236" width="684"]] 221 221 222 - ===2.2.8 Change Update Interval===217 +**2.2.8 Change Update Interval** 223 223 224 224 User can use below command to change the **uplink interval**. 225 225 ... ... @@ -227,9 +227,9 @@ 227 227 228 228 **NOTE:** 229 229 230 -**~1. By default, the device will send an uplink message every 2hour.**225 +**~1. By default, the device will send an uplink message every 1 hour.** 231 231 232 - ==2.3 Uplink Payload==227 +**2.3 Uplink Payload** 233 233 234 234 In this mode, uplink payload includes 87 bytes in total by default. 235 235 ... ... @@ -239,9 +239,6 @@ 239 239 |(% style="width:93px" %)**Size(bytes)**|(% style="width:82px" %)**8**|(% style="width:43px" %)**2**|(% style="width:41px" %)**2**|(% style="width:126px" %)**1**|(% style="width:54px" %)**1**|(% style="width:84px" %)1|(% style="width:75px" %)2|(% style="width:133px" %)2|(% style="width:70px" %)2|(% style="width:127px" %)4 240 240 |(% style="width:93px" %)**Value**|(% style="width:82px" %)Device ID|(% style="width:43px" %)Ver|(% style="width:41px" %)BAT|(% style="width:126px" %)Signal Strength|(% style="width:54px" %)MOD|(% style="width:84px" %)Interrupt|(% style="width:75px" %)Soil PH|(% style="width:133px" %)Soil Temperature|(% style="width:70px" %)Soil PH|(% style="width:127px" %)Time stamp ..... 241 241 242 -|**Size(bytes)**|**8**|**2**|**2**|1|1|1|2|2|4|2|2|4 243 -|**Value**|Device ID|Ver|BAT|Signal Strength|MOD|Interrupt|Soil PH|Soil Temperature|Time stamp|Soil Temperature|Soil PH|Time stamp ..... 244 - 245 245 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NSPH01 uplink data. 246 246 247 247 (% style="text-align:center" %) ... ... @@ -262,12 +262,12 @@ 262 262 * Soil PH: 0x0225= 549 = 5.49 263 263 * Soil Temperature:0x010B =267=26.7 °C 264 264 * Time stamp : 0x6315537b =1662342011 265 -* Soil Temperature,Soil PH,Time stamp : 010b0226631550fb 257 +* Soil Temperature,Soil PH,Time stamp : 010b0226631550fb,Soil 266 266 * 8 sets of recorded data: Temperature,Soil PH,Time stamp : 010e022663154d77,....... 267 267 268 - ==2.4 Payload Explanation and Sensor Interface==260 +**2.4 Payload Explanation and Sensor Interface** 269 269 270 - ===2.4.1 Device ID===262 +**2.4.1 Device ID** 271 271 272 272 By default, the Device ID equal to the last 15 bits of IMEI. 273 273 ... ... @@ -279,13 +279,13 @@ 279 279 280 280 The Device ID is stored in a none-erase area, Upgrade the firmware or run AT+FDR won't erase Device ID. 281 281 282 - ===2.4.2 Version Info===274 +**2.4.2 Version Info** 283 283 284 284 Specify the software version: 0x64=100, means firmware version 1.00. 285 285 286 286 For example: 0x00 64 : this device is NSPH01 with firmware version 1.0.0. 287 287 288 - ===2.4.3 Battery Info===280 +**2.4.3 Battery Info** 289 289 290 290 Check the battery voltage for NSPH01. 291 291 ... ... @@ -293,7 +293,7 @@ 293 293 294 294 Ex2: 0x0B49 = 2889mV 295 295 296 - ===2.4.4 Signal Strength===288 +**2.4.4 Signal Strength** 297 297 298 298 NB-IoT Network signal Strength. 299 299 ... ... @@ -309,7 +309,7 @@ 309 309 310 310 **99** Not known or not detectable 311 311 312 - ===2.4.5 Soil PH===304 +**2.4.5 Soil PH** 313 313 314 314 Get the PH content of the soil. The value range of the register is 300-1000(Decimal), divide this value by 100 to get the percentage of PH in the soil. 315 315 ... ... @@ -317,23 +317,23 @@ 317 317 318 318 **0229(H) = 549(D) /100 = 5.49.** 319 319 320 - ===2.4.6 Soil Temperature===312 +**2.4.6 Soil Temperature** 321 321 322 322 Get the temperature in the soil. The value range of the register is -4000 - +800(Decimal), divide this value by 100 to get the temperature in the soil. For example, if the data you get from the register is **__0x09 0xEC__**, the temperature content in the soil is 323 323 324 324 **Example**: 325 325 326 -If payload is 0105H: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/10 = 2 6.1 °C318 +If payload is 0105H: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/100 = 2.61 °C 327 327 328 -If payload is FF7EH: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/10 = -1 2.9 °C320 +If payload is FF7EH: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/100 = -1.29 °C 329 329 330 - ===2.4.7 Timestamp===322 +**2.4.7 Timestamp** 331 331 332 332 Time stamp : 0x6315537b =1662342011 333 333 334 334 Convert Unix timestamp to time 2022-9-5 9:40:11. 335 335 336 - ===2.4.8 Digital Interrupt===328 +**2.4.8 Digital Interrupt** 337 337 338 338 Digital Interrupt refers to pin **GPIO_EXTI**, and there are different trigger methods. When there is a trigger, the NSPH01 will send a packet to the server. 339 339 ... ... @@ -349,7 +349,7 @@ 349 349 350 350 0x(01): Interrupt Uplink Packet. 351 351 352 - ===2.4.9 +5V Output===344 +**2.4.9 +5V Output** 353 353 354 354 NSPH01 will enable +5V output before all sampling and disable the +5v after all sampling. 355 355 ... ... @@ -360,9 +360,9 @@ 360 360 Means set 5V valid time to have 1000ms. So the real 5V output will actually have 1000ms + sampling time for other sensors.** ** 361 361 362 362 363 - ==2.5 Downlink Payload==355 +**2.5 Downlink Payload** 364 364 365 -By default, NS PH01 prints the downlink payload to console port.357 +By default, NSE01 prints the downlink payload to console port. 366 366 367 367 (% style="text-align:center" %) 368 368 [[image:image-20220907154636-17.png]] ... ... @@ -385,13 +385,13 @@ 385 385 386 386 * **Reset** 387 387 388 -If payload = 0x04FF, it will reset the NS PH01380 +If payload = 0x04FF, it will reset the NSE01 389 389 390 390 * **INTMOD** 391 391 392 392 Downlink Payload: 06000003, Set AT+INTMOD=3 393 393 394 - ==2.6 LED Indicator==386 +**2.6 LED Indicator** 395 395 396 396 The NSPH01 has an internal LED which is to show the status of different state. 397 397 ... ... @@ -400,13 +400,13 @@ 400 400 * After NSPH01 join NB-IoT network. The LED will be ON for 3 seconds. 401 401 * For each uplink probe, LED will be on for 500ms. 402 402 403 - ==2.7 Installation and Maintain==395 +**2.7 Installation and Maintain** 404 404 405 - ===2.7.1 Before measurement===397 +**2.7.1 Before measurement** 406 406 407 407 If the NSPH01 has more than 7 days not use or just clean the pH probe. User should put the probe inside pure water for more than 24 hours for activation. If no put in water, user need to put inside soil for more than 24 hours to ensure the measurement accuracy. 408 408 409 - ===2.7.2 Measurement===401 +**2.7.2 Measurement** 410 410 411 411 **Measurement the soil surface:** 412 412 ... ... @@ -426,7 +426,7 @@ 426 426 427 427 Insert the probe inside, method like measure the surface. 428 428 429 - ===2.7.3 Maintain Probe===421 +**2.7.3 Maintain Probe** 430 430 431 431 1. pH probe electrode is fragile and no strong. User must avoid strong force or hitting it. 432 432 1. After long time use (3~~ 6 months). The probe electrode needs to be clean; user can use high grade sandpaper to polish it or put in 5% hydrochloric acid for several minutes. After the metal probe looks like new, user can use pure water to wash it. ... ... @@ -435,7 +435,7 @@ 435 435 1. Avoid the probes to touch oily matter. Which will cause issue in accuracy. 436 436 1. The probe is IP68 can be put in water. 437 437 438 - ==2.8 PH and Temperature alarm function==430 +**2.8 PH and Temperature alarm function** 439 439 440 440 ➢ AT Command: 441 441 ... ... @@ -449,7 +449,7 @@ 449 449 450 450 Example: 451 451 452 -AT+ PHALARM = 5,8~/~/ Alarm when PH lower than 5.444 +AT+ PHALARM =3,5 ~/~/ Alarm when PH lower than 5. 453 453 454 454 AT+ TEMPALARM=min,max 455 455 ... ... @@ -461,10 +461,10 @@ 461 461 462 462 Example: 463 463 464 -AT+ TEMPALARM= 20,30 ~/~/ Alarm when temperature lower than 20.456 +AT+ TEMPALARM=0,20 ~/~/ Alarm when temperature lower than 20. 465 465 466 466 467 - ==2.9 Set the number of data to be uploaded and the recording time==459 +**2.9 Set the number of data to be uploaded and the recording time** 468 468 469 469 ➢ AT Command: 470 470 ... ... @@ -473,7 +473,7 @@ 473 473 474 474 AT+NOUD=8 ~/~/The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded. 475 475 476 - ==2.10 Read or Clear cached data==468 +**2.10 Read or Clear cached data** 477 477 478 478 ➢ AT Command: 479 479 ... ... @@ -485,7 +485,7 @@ 485 485 AT+CDP=0 ~/~/ Clear cached data 486 486 487 487 488 - ==2.11 Calibration==480 +**2.11 Calibration** 489 489 490 490 User can do calibration for the probe. It is limited to use below pH buffer solution to calibrate: 4.00, 6.86, 9.18. When calibration, user need to clean the electrode and put the probe in the pH buffer solution to wait the value stable ( a new clean electrode might need max 24 hours to be stable). 491 491 ... ... @@ -493,15 +493,15 @@ 493 493 494 494 [[image:image-20220907154700-20.png]] 495 495 496 - ==2.12Firmware Change Log==488 +**2.8 Firmware Change Log** 497 497 498 498 Download URL & Firmware Change log: [[https:~~/~~/www.dropbox.com/sh/1zmcakvbkf24f8x/AACmq2dZ3iRB9F1nVWeEB9Moa?dl=0>>url:https://www.dropbox.com/sh/1zmcakvbkf24f8x/AACmq2dZ3iRB9F1nVWeEB9Moa?dl=0]] 499 499 500 500 Upgrade Instruction: [[Upgrade Firmware>>path:#H5.1200BHowtoUpgradeFirmware]] 501 501 502 - ==2.13Battery Analysis==494 +**2.9 Battery Analysis** 503 503 504 - ===2.13.1 Battery Type===496 +**2.9.1 Battery Type** 505 505 506 506 The NSPH01 battery is a combination of an 8500mAh Li/SOCI2 Battery and a Super Capacitor. The battery is none-rechargeable battery type with a low discharge rate (<2% per year). This type of battery is commonly used in IoT devices such as water meter. 507 507 ... ... @@ -515,7 +515,7 @@ 515 515 516 516 [[image:image-20220907154700-21.png]] 517 517 518 - ===2.13.2 Power consumption Analyze===510 +**2.9.2 Power consumption Analyze** 519 519 520 520 Dragino battery powered product are all runs in Low Power mode. We have an update battery calculator which base on the measurement of the real device. User can use this calculator to check the battery life and calculate the battery life if want to use different transmit interval. 521 521 ... ... @@ -536,15 +536,15 @@ 536 536 537 537 538 538 539 - ===2.13.3 Battery Note===531 +**2.9.3 Battery Note** 540 540 541 541 The Li-SICO battery is designed for small current / long period application. It is not good to use a high current, short period transmit method. The recommended minimum period for use of this battery is 5 minutes. If you use a shorter period time to transmit LoRa, then the battery life may be decreased. 542 542 543 - ===2.13.4 Replace the battery===535 +**2.9.4 Replace the battery** 544 544 545 545 The default battery pack of NSPH01 includes a ER26500 plus super capacitor. If user can't find this pack locally, they can find ER26500 or equivalence without the SPC1520 capacitor, which will also work in most case. The SPC can enlarge the battery life for high frequency use (update period below 5 minutes). 546 546 547 - =3. Access NB-IoT Module=539 +**3. Access NB-IoT Module** 548 548 549 549 Users can directly access the AT command set of the NB-IoT module. 550 550 ... ... @@ -555,9 +555,9 @@ 555 555 556 556 557 557 558 - =4. Using the AT Commands=550 +**4. Using the AT Commands** 559 559 560 - ==4.1 Access AT Commands==552 +**4.1 Access AT Commands** 561 561 562 562 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]] 563 563 ... ... @@ -635,9 +635,9 @@ 635 635 636 636 AT+PWORD : Serial Access Password 637 637 638 - =5. FAQ=630 +**5. FAQ** 639 639 640 - ==5.1 How to Upgrade Firmware==632 +**5.1 How to Upgrade Firmware** 641 641 642 642 User can upgrade the firmware for 1) bug fix, 2) new feature release. 643 643 ... ... @@ -645,25 +645,25 @@ 645 645 646 646 **Notice, **NSPH01 **and **NSPH01 **share the same mother board. They use the same connection and method to update.** 647 647 648 - ==5.2 Can I calibrate NSPH01 to different soil types?==640 +**5.2 Can I calibrate NSPH01 to different soil types?** 649 649 650 650 NSPH01 is calibrated for saline-alkali soil and loamy soil. If users want to use it for other soil, they can calibrate the value in the IoT platform base on the value measured by saline-alkali soil and loamy soil. The formula can be found at [[this link>>url:https://www.dragino.com/downloads/downloads/LoRa_End_Node/LSE01/Calibrate_to_other_Soil_20220605.pdf]]. 651 651 652 - =6. Trouble Shooting=644 +**6. Trouble Shooting** 653 653 654 - ==6.1 Connection problem when uploading firmware==646 +**6.1 Connection problem when uploading firmware** 655 655 656 656 **Please see: **[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H3.3Troubleshooting>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/#H3.3Troubleshooting]] 657 657 658 - ==6.2 AT Command input doesn't work==650 +**6.2 AT Command input doesn't work** 659 659 660 660 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. 661 661 662 - =7. Order Info=654 +**7. Order Info** 663 663 664 664 Part Number**:** NSPH01 665 665 666 - =8. Packing Info=658 +**8. Packing Info** 667 667 668 668 **Package Includes**: 669 669 ... ... @@ -675,7 +675,7 @@ 675 675 * Size: 195 x 125 x 55 mm 676 676 * Weight: 420g 677 677 678 - =9. Support=670 +**9. Support** 679 679 680 680 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule. 681 681 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[support@dragino.com>>url:http://../../../../../../D:%5C%E5%B8%82%E5%9C%BA%E8%B5%84%E6%96%99%5C%E8%AF%B4%E6%98%8E%E4%B9%A6%5CLoRa%5CLT%E7%B3%BB%E5%88%97%5Csupport@dragino.com]]