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. David1 +XWiki.Xiaoling - Content
-
... ... @@ -1,10 +1,15 @@ 1 1 (% style="text-align:center" %) 2 2 [[image:)YK]Y_LZJIO]J2~~VA}OQJM2.png]] 3 3 4 -= **1. Introduction** = 5 5 6 - == **1.1 Whatis NSPH01 Soil pH Sensor** ==5 +{{toc/}} 7 7 7 + 8 + 9 += 1. Introduction = 10 + 11 +== 1.1 What is NSPH01 Soil pH Sensor == 12 + 8 8 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. 9 9 10 10 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. ... ... @@ -20,7 +20,7 @@ 20 20 (% style="text-align:center" %) 21 21 [[image:M_K`YF9`CAYAE\@}3T]FHT$9.png]] 22 22 23 - **1.2 Features**28 +== 1.2 Features == 24 24 25 25 * NB-IoT Bands: B1/B3/B8/B5/B20/B28 @H-FDD 26 26 * Monitor soil pH with temperature compensation. ... ... @@ -37,7 +37,7 @@ 37 37 * Micro SIM card slot for NB-IoT SIM 38 38 * 8500mAh Battery for long term use 39 39 40 - **1.3 Specification**45 +== 1.3 Specification == 41 41 42 42 **Common DC Characteristics:** 43 43 ... ... @@ -53,7 +53,7 @@ 53 53 * - B20 @H-FDD: 800MHz 54 54 * - B28 @H-FDD: 700MHz 55 55 56 - **1.4 Probe Specification**61 +== 1.4 Probe Specification == 57 57 58 58 **Soil pH:** 59 59 ... ... @@ -72,19 +72,19 @@ 72 72 * IP68 Protection 73 73 * Length: 3.5 meters 74 74 75 - **1.5 Applications**80 +== 1.5 Applications == 76 76 77 77 * Smart Agriculture 78 78 79 - **1.6 Pin mapping and power on**84 +== 1.6 Pin mapping and power on == 80 80 81 81 (% style="text-align:center" %) 82 82 [[image:image-20220907153300-2.png]] 83 83 84 84 85 - **2. Use NSPH01 to communicate with IoT Server**90 += 2. Use NSPH01 to communicate with IoT Server = 86 86 87 - **2.1 How it works**92 +== 2.1 How it works == 88 88 89 89 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. 90 90 ... ... @@ -93,9 +93,9 @@ 93 93 (% style="text-align:center" %) 94 94 [[image:image-20220907153416-3.png]] 95 95 96 - **2.2 Configure the NSPH01**101 +== 2.2 Configure the NSPH01 == 97 97 98 - **2.2.1 Test Requirement**103 +=== 2.2.1 Test Requirement === 99 99 100 100 To use NSPH01 in your city, make sure meet below requirements: 101 101 ... ... @@ -109,7 +109,7 @@ 109 109 [[image:image-20220907153445-4.png]] 110 110 111 111 112 - **2.2.2 Insert SIM card**117 +=== 2.2.2 Insert SIM card === 113 113 114 114 Insert the NB-IoT Card get from your provider. 115 115 ... ... @@ -118,7 +118,7 @@ 118 118 (% style="text-align:center" %) 119 119 [[image:image-20220907153505-5.png]] 120 120 121 - **2.2.3 Connect USB – TTL to NSPH01 to configure it**126 +=== 2.2.3 Connect USB – TTL to NSPH01 to configure it === 122 122 123 123 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. 124 124 ... ... @@ -145,7 +145,7 @@ 145 145 146 146 **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]] 147 147 148 - **2.2.4 Use CoAP protocol to uplink data**153 +=== 2.2.4 Use CoAP protocol to uplink data === 149 149 150 150 **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/]] 151 151 ... ... @@ -166,7 +166,7 @@ 166 166 [[image:image-20220907153612-8.png||height="529" width="729"]] 167 167 168 168 169 - **2.2.5 Use UDP protocol to uplink data(Default protocol)**174 +=== 2.2.5 Use UDP protocol to uplink data(Default protocol) === 170 170 171 171 This feature is supported since firmware version v1.0.1 172 172 ... ... @@ -181,7 +181,7 @@ 181 181 [[image:image-20220907153703-10.png||height="309" width="738"]] 182 182 183 183 184 - **2.2.6 Use MQTT protocol to uplink data**189 +=== 2.2.6 Use MQTT protocol to uplink data === 185 185 186 186 This feature is supported since firmware version v110 187 187 ... ... @@ -201,7 +201,7 @@ 201 201 202 202 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. 203 203 204 - **2.2.7 Use TCP protocol to uplink data**209 +=== 2.2.7 Use TCP protocol to uplink data === 205 205 206 206 This feature is supported since firmware version v110 207 207 ... ... @@ -214,7 +214,7 @@ 214 214 (% style="text-align:center" %) 215 215 [[image:image-20220907153827-14.png||height="236" width="684"]] 216 216 217 - **2.2.8 Change Update Interval**222 +=== 2.2.8 Change Update Interval === 218 218 219 219 User can use below command to change the **uplink interval**. 220 220 ... ... @@ -222,9 +222,9 @@ 222 222 223 223 **NOTE:** 224 224 225 -**~1. By default, the device will send an uplink message every 1hour.**230 +**~1. By default, the device will send an uplink message every 2 hour.** 226 226 227 - **2.3 Uplink Payload**232 +== 2.3 Uplink Payload == 228 228 229 229 In this mode, uplink payload includes 87 bytes in total by default. 230 230 ... ... @@ -234,6 +234,9 @@ 234 234 |(% 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 235 235 |(% 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 ..... 236 236 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 + 237 237 If we use the MQTT client to subscribe to this MQTT topic, we can see the following information when the NSPH01 uplink data. 238 238 239 239 (% style="text-align:center" %) ... ... @@ -254,12 +254,12 @@ 254 254 * Soil PH: 0x0225= 549 = 5.49 255 255 * Soil Temperature:0x010B =267=26.7 °C 256 256 * Time stamp : 0x6315537b =1662342011 257 -* Soil Temperature,Soil PH,Time stamp : 010b0226631550fb ,Soil265 +* Soil Temperature,Soil PH,Time stamp : 010b0226631550fb 258 258 * 8 sets of recorded data: Temperature,Soil PH,Time stamp : 010e022663154d77,....... 259 259 260 - **2.4 Payload Explanation and Sensor Interface**268 +== 2.4 Payload Explanation and Sensor Interface == 261 261 262 - **2.4.1 Device ID**270 +=== 2.4.1 Device ID === 263 263 264 264 By default, the Device ID equal to the last 15 bits of IMEI. 265 265 ... ... @@ -271,13 +271,13 @@ 271 271 272 272 The Device ID is stored in a none-erase area, Upgrade the firmware or run AT+FDR won't erase Device ID. 273 273 274 - **2.4.2 Version Info**282 +=== 2.4.2 Version Info === 275 275 276 276 Specify the software version: 0x64=100, means firmware version 1.00. 277 277 278 278 For example: 0x00 64 : this device is NSPH01 with firmware version 1.0.0. 279 279 280 - **2.4.3 Battery Info**288 +=== 2.4.3 Battery Info === 281 281 282 282 Check the battery voltage for NSPH01. 283 283 ... ... @@ -285,7 +285,7 @@ 285 285 286 286 Ex2: 0x0B49 = 2889mV 287 287 288 - **2.4.4 Signal Strength**296 +=== 2.4.4 Signal Strength === 289 289 290 290 NB-IoT Network signal Strength. 291 291 ... ... @@ -301,7 +301,7 @@ 301 301 302 302 **99** Not known or not detectable 303 303 304 - **2.4.5 Soil PH**312 +=== 2.4.5 Soil PH === 305 305 306 306 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. 307 307 ... ... @@ -309,23 +309,23 @@ 309 309 310 310 **0229(H) = 549(D) /100 = 5.49.** 311 311 312 - **2.4.6 Soil Temperature**320 +=== 2.4.6 Soil Temperature === 313 313 314 314 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 315 315 316 316 **Example**: 317 317 318 -If payload is 0105H: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/10 0= 2.61 °C326 +If payload is 0105H: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/10 = 26.1 °C 319 319 320 -If payload is FF7EH: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/10 0= -1.29 °C328 +If payload is FF7EH: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/10 = -12.9 °C 321 321 322 - **2.4.7 Timestamp**330 +=== 2.4.7 Timestamp === 323 323 324 324 Time stamp : 0x6315537b =1662342011 325 325 326 326 Convert Unix timestamp to time 2022-9-5 9:40:11. 327 327 328 - **2.4.8 Digital Interrupt**336 +=== 2.4.8 Digital Interrupt === 329 329 330 330 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. 331 331 ... ... @@ -341,7 +341,7 @@ 341 341 342 342 0x(01): Interrupt Uplink Packet. 343 343 344 - **2.4.9 +5V Output**352 +=== 2.4.9 +5V Output === 345 345 346 346 NSPH01 will enable +5V output before all sampling and disable the +5v after all sampling. 347 347 ... ... @@ -352,11 +352,12 @@ 352 352 Means set 5V valid time to have 1000ms. So the real 5V output will actually have 1000ms + sampling time for other sensors.** ** 353 353 354 354 355 - **2.5 Downlink Payload**363 +== 2.5 Downlink Payload == 356 356 357 -By default, NS E01 prints the downlink payload to console port.365 +By default, NSPH01 prints the downlink payload to console port. 358 358 359 -[[image:image-20220907154636-17.png||style="float:left"]] 367 +(% style="text-align:center" %) 368 +[[image:image-20220907154636-17.png]] 360 360 361 361 362 362 ... ... @@ -376,13 +376,13 @@ 376 376 377 377 * **Reset** 378 378 379 -If payload = 0x04FF, it will reset the NS E01388 +If payload = 0x04FF, it will reset the NSPH01 380 380 381 381 * **INTMOD** 382 382 383 383 Downlink Payload: 06000003, Set AT+INTMOD=3 384 384 385 - **2.6 LED Indicator**394 +== 2.6 LED Indicator == 386 386 387 387 The NSPH01 has an internal LED which is to show the status of different state. 388 388 ... ... @@ -391,13 +391,13 @@ 391 391 * After NSPH01 join NB-IoT network. The LED will be ON for 3 seconds. 392 392 * For each uplink probe, LED will be on for 500ms. 393 393 394 - **2.7 Installation and Maintain**403 +== 2.7 Installation and Maintain == 395 395 396 - **2.7.1 Before measurement**405 +=== 2.7.1 Before measurement === 397 397 398 398 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. 399 399 400 - **2.7.2 Measurement**409 +=== 2.7.2 Measurement === 401 401 402 402 **Measurement the soil surface:** 403 403 ... ... @@ -417,7 +417,7 @@ 417 417 418 418 Insert the probe inside, method like measure the surface. 419 419 420 - **2.7.3 Maintain Probe**429 +=== 2.7.3 Maintain Probe === 421 421 422 422 1. pH probe electrode is fragile and no strong. User must avoid strong force or hitting it. 423 423 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. ... ... @@ -426,7 +426,7 @@ 426 426 1. Avoid the probes to touch oily matter. Which will cause issue in accuracy. 427 427 1. The probe is IP68 can be put in water. 428 428 429 - **2.8 PH and Temperature alarm function**438 +== 2.8 PH and Temperature alarm function == 430 430 431 431 ➢ AT Command: 432 432 ... ... @@ -440,7 +440,7 @@ 440 440 441 441 Example: 442 442 443 -AT+ PHALARM = 3,5 ~/~/ Alarm when PH lower than 5.452 +AT+ PHALARM =5,8 ~/~/ Alarm when PH lower than 5. 444 444 445 445 AT+ TEMPALARM=min,max 446 446 ... ... @@ -452,10 +452,10 @@ 452 452 453 453 Example: 454 454 455 -AT+ TEMPALARM=0, 20 ~/~/ Alarm when temperature lower than 20.464 +AT+ TEMPALARM=20,30 ~/~/ Alarm when temperature lower than 20. 456 456 457 457 458 - **2.9 Set the number of data to be uploaded and the recording time**467 +== 2.9 Set the number of data to be uploaded and the recording time == 459 459 460 460 ➢ AT Command: 461 461 ... ... @@ -464,7 +464,7 @@ 464 464 465 465 AT+NOUD=8 ~/~/The device uploads 8 sets of recorded data by default. Up to 32 sets of record data can be uploaded. 466 466 467 - **2.10 Read or Clear cached data**476 +== 2.10 Read or Clear cached data == 468 468 469 469 ➢ AT Command: 470 470 ... ... @@ -476,7 +476,7 @@ 476 476 AT+CDP=0 ~/~/ Clear cached data 477 477 478 478 479 - **2.11 Calibration**488 +== 2.11 Calibration == 480 480 481 481 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). 482 482 ... ... @@ -484,15 +484,15 @@ 484 484 485 485 [[image:image-20220907154700-20.png]] 486 486 487 - **2.8Firmware Change Log**496 +== 2.12 Firmware Change Log == 488 488 489 489 Download URL & Firmware Change log: [[https:~~/~~/www.dropbox.com/sh/1zmcakvbkf24f8x/AACmq2dZ3iRB9F1nVWeEB9Moa?dl=0>>url:https://www.dropbox.com/sh/1zmcakvbkf24f8x/AACmq2dZ3iRB9F1nVWeEB9Moa?dl=0]] 490 490 491 491 Upgrade Instruction: [[Upgrade Firmware>>path:#H5.1200BHowtoUpgradeFirmware]] 492 492 493 - **2.9Battery Analysis**502 +== 2.13 Battery Analysis == 494 494 495 - **2.9.1 Battery Type**504 +=== 2.13.1 Battery Type === 496 496 497 497 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. 498 498 ... ... @@ -506,7 +506,7 @@ 506 506 507 507 [[image:image-20220907154700-21.png]] 508 508 509 - **2.9.2 Power consumption Analyze**518 +=== 2.13.2 Power consumption Analyze === 510 510 511 511 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. 512 512 ... ... @@ -527,15 +527,15 @@ 527 527 528 528 529 529 530 - **2.9.3 Battery Note**539 +=== 2.13.3 Battery Note === 531 531 532 532 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. 533 533 534 - **2.9.4 Replace the battery**543 +=== 2.13.4 Replace the battery === 535 535 536 536 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). 537 537 538 - **3. Access NB-IoT Module**547 += 3. Access NB-IoT Module = 539 539 540 540 Users can directly access the AT command set of the NB-IoT module. 541 541 ... ... @@ -546,9 +546,9 @@ 546 546 547 547 548 548 549 - **4. Using the AT Commands**558 += 4. Using the AT Commands = 550 550 551 - **4.1 Access AT Commands**560 +== 4.1 Access AT Commands == 552 552 553 553 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]] 554 554 ... ... @@ -626,9 +626,9 @@ 626 626 627 627 AT+PWORD : Serial Access Password 628 628 629 - **5. FAQ**638 += 5. FAQ = 630 630 631 - **5.1 How to Upgrade Firmware**640 +== 5.1 How to Upgrade Firmware == 632 632 633 633 User can upgrade the firmware for 1) bug fix, 2) new feature release. 634 634 ... ... @@ -636,25 +636,25 @@ 636 636 637 637 **Notice, **NSPH01 **and **NSPH01 **share the same mother board. They use the same connection and method to update.** 638 638 639 - **5.2 Can I calibrate NSPH01 to different soil types?**648 +== 5.2 Can I calibrate NSPH01 to different soil types? == 640 640 641 641 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]]. 642 642 643 - **6. Trouble Shooting**652 += 6. Trouble Shooting = 644 644 645 - **6.1 Connection problem when uploading firmware**654 +== 6.1 Connection problem when uploading firmware == 646 646 647 647 **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]] 648 648 649 - **6.2 AT Command input doesn't work**658 +== 6.2 AT Command input doesn't work == 650 650 651 651 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. 652 652 653 - **7. Order Info**662 += 7. Order Info = 654 654 655 655 Part Number**:** NSPH01 656 656 657 - **8. Packing Info**666 += 8. Packing Info = 658 658 659 659 **Package Includes**: 660 660 ... ... @@ -666,7 +666,7 @@ 666 666 * Size: 195 x 125 x 55 mm 667 667 * Weight: 420g 668 668 669 - **9. Support**678 += 9. Support = 670 670 671 671 * 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. 672 672 * 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]]