<
From version < 67.14 >
edited by Xiaoling
on 2023/05/31 13:50
To version < 67.15 >
edited by Xiaoling
on 2023/05/31 14:04
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -332,6 +332,8 @@
332 332  |(% style="width:160px" %)0x02|(% style="width:163px" %)Reply configures info|(% style="width:173px" %)[[Configure Info Payload>>||anchor="H3.4GetFirmwareVersionInfo"]]
333 333  |(% style="width:160px" %)0x03|(% style="width:163px" %)Reply Calibration Info|(% style="width:173px" %)[[Calibration Payload>>||anchor="H2.7Calibration"]]
334 334  
335 +
336 +
335 335  === 2.3.7 Decode payload in The Things Network ===
336 336  
337 337  
... ... @@ -338,40 +338,37 @@
338 338  While using TTN network, you can add the payload format to decode the payload.
339 339  
340 340  
341 -[[image:1654592762713-715.png]]
343 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSPH01-LoRaWAN%20Soil%20pH%20Sensor%20User%20Manual/WebHome/1654592762713-715.png?rev=1.1||alt="1654592762713-715.png"]]
342 342  
343 343  (((
344 344  The payload decoder function for TTN is here:
345 345  )))
346 346  
347 -(((
348 -LSPH01 TTN Payload Decoder:  [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
349 -)))
349 +In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
350 350  
351 -== 2.4 Payload Decoder file ==
352 352  
352 +== 2.4 Uplink Interval ==
353 353  
354 -In TTN, use can add a custom payload so it shows friendly reading
355 355  
356 -In the page (% style="color:#037691" %)**Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder**(%%) to add the decoder from: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
355 +The LSPH01 by default uplink the sensor data every 20 minutes. User can change this interval by AT Command or LoRaWAN Downlink Command. See this link: [[Change Uplink Interval>>doc:Main.End Device AT Commands and Downlink Command.WebHome||anchor="H4.1ChangeUplinkInterval"]]
357 357  
358 358  
359 359  == 2.5 Datalog Feature ==
360 360  
361 361  
362 -Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, CPL03-LB will store the reading for future retrieving purposes.
361 +Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, SPH01-LB will store the reading for future retrieving purposes.
363 363  
364 364  
365 365  === 2.5.1 Ways to get datalog via LoRaWAN ===
366 366  
367 367  
368 -Set PNACKMD=1, CPL03-LB will wait for ACK for every uplink, when there is no LoRaWAN network,CPL03-LB will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.
367 +Set PNACKMD=1, SPH01-LB will wait for ACK for every uplink, when there is no LoRaWAN network,CPL03-LB will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.
369 369  
370 370  * (((
371 -a) CPL03-LB will do an ACK check for data records sending to make sure every data arrive server.
370 +a) SPH01-LB will do an ACK check for data records sending to make sure every data arrive server.
372 372  )))
373 373  * (((
374 -b) CPL03-LB will send data in **CONFIRMED Mode** when PNACKMD=1, but CPL03-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if CPL03-LB gets a ACK, CPL03-LB will consider there is a network connection and resend all NONE-ACK messages.
373 +b) SPH01-LB will send data in **CONFIRMED Mode** when PNACKMD=1, but SPH01-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if SPH01-LB gets a ACK, SPH01-LB will consider there is a network connection and resend all NONE-ACK messages.
375 375  )))
376 376  
377 377  Below is the typical case for the auto-update datalog feature (Set PNACKMD=1)
... ... @@ -382,7 +382,7 @@
382 382  === 2.5.2 Unix TimeStamp ===
383 383  
384 384  
385 -CPL03-LB uses Unix TimeStamp format based on
384 +SPH01-LB uses Unix TimeStamp format based on
386 386  
387 387  [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-11.png?width=627&height=97&rev=1.1||alt="图片-20220523001219-11.png" height="97" width="627"]]
388 388  
... ... @@ -441,6 +441,147 @@
441 441  [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
442 442  
443 443  
443 +== 2.7 Installation and Maintain ==
444 +
445 +=== 2.7.1 Before measurement ===
446 +
447 +
448 +
449 +(((
450 +If the LSPH01 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. 
451 +)))
452 +
453 +
454 +
455 +=== 2.7.2 Measurement ===
456 +
457 +
458 +(((
459 +(% style="color:#4f81bd" %)**Measurement the soil surface:**
460 +)))
461 +
462 +(((
463 +[[image:1654592946732-634.png]]
464 +
465 +
466 +)))
467 +
468 +(((
469 +Choose the proper measuring position. Split the surface soil according to the measured deep.
470 +)))
471 +
472 +(((
473 +Put pure water, or rainwater to make the soil of measurement point to moist mud. Remove rocks or hard things.
474 +)))
475 +
476 +(((
477 +Slowly insert the probe to the measure point. Don't use large force which will break the probe. Make sure not shake when inserting.
478 +)))
479 +
480 +(((
481 +Put soil over the probe after insert. And start to measure.
482 +)))
483 +
484 +(((
485 +
486 +)))
487 +
488 +(((
489 +(% style="color:#4f81bd" %)**Measurement inside soil:**
490 +)))
491 +
492 +(((
493 +Dig a hole with diameter > 20CM.
494 +)))
495 +
496 +(((
497 +Insert the probe inside, method like measure the surface.
498 +)))
499 +
500 +
501 +=== 2.7.3 Maintain Probe ===
502 +
503 +
504 +1. (((
505 +pH probe electrode is fragile and no strong. User must avoid strong force or hitting it.
506 +)))
507 +1. (((
508 +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.
509 +)))
510 +1. (((
511 +Probe reference electrode is also no strong, need to avoid strong force or hitting.
512 +)))
513 +1. (((
514 +User should keep reference electrode wet while not use.
515 +)))
516 +1. (((
517 +Avoid the probes to touch oily matter. Which will cause issue in accuracy.
518 +)))
519 +1. (((
520 +The probe is IP68 can be put in water.
521 +)))
522 +
523 +
524 +== 2.8 Calibration ==
525 +
526 +
527 +(((
528 +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).
529 +)))
530 +
531 +(((
532 +After stable, user can use below command to calibrate.
533 +
534 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:520px" %)
535 +|(% style="background-color:#d9e2f3; color:#0070c0; width:120px" %)**pH buffer solution**|(% style="background-color:#d9e2f3; color:#0070c0; width:150px" %)**AT Command to calibrate**|(% style="background-color:#d9e2f3; color:#0070c0; width:150px" %)**Downlink Command**|(% style="background-color:#d9e2f3; color:#0070c0; width:100px" %)**Read Cal Value**
536 +|(% style="width:149px" %)4.00|(% style="width:197px" %)AT+PHCAL=4|(% style="width:206px" %)(((
537 +0x13 04
538 +Reply with Calibrate payload
539 +)))|(% style="width:136px" %)(((
540 +AT+PHCAL=?
541 +Example 41,61,91
542 +)))
543 +|(% style="width:149px" %)6.86|(% style="width:197px" %)AT+PHCAL=6|(% style="width:206px" %)(((
544 +0x13 06
545 +Reply with Calibrate payload
546 +)))|(% style="width:136px" %)AT+PHCAL=?
547 +|(% style="width:149px" %)9.18|(% style="width:197px" %)AT+PHCAL=9|(% style="width:206px" %)(((
548 +0x13 09
549 +Reply with Calibrate payload
550 +)))|(% style="width:136px" %)AT+PHCAL=?
551 +|(% style="width:149px" %)Factory Default|(% style="width:197px" %)AT+PHCAL=15|(% style="width:206px" %)(((
552 +0x13 15
553 +Reply with Calibrate payload
554 +)))|(% style="width:136px" %)(((
555 +AT+PHCAL=?
556 +Example 151
557 +)))
558 +)))
559 +
560 +
561 +(% style="color:#037691" %)**Calibration Payload**
562 +
563 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:500px" %)
564 +|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)(((
565 +**Size(bytes)**
566 +)))|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)**7**|=(% style="width: 90px;background-color:#D9E2F3;color:#0070C0" %)**1**
567 +|Value|(((
568 +PH4 Calibrate value
569 +)))|PH6.86 Calibrate value|(((
570 +PH9.18 Calibrate value
571 +)))|Reserve|(((
572 +[[Message Type>>||anchor="H2.3.6MessageType"]]
573 +Always 0x03
574 +)))
575 +
576 +User can also send 0x14 downlink command to poll the current calibration payload.
577 +
578 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:480px" %)
579 +|=(% style="width: 183px; background-color:#D9E2F3;color:#0070C0" %)**Downlink Control Type**|=(% style="width: 55px; background-color:#D9E2F3;color:#0070C0" %)FPort|=(% style="width: 93px; background-color:#D9E2F3;color:#0070C0" %)**Type Code**|=(% style="width: 146px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)**Downlink payload size(bytes)**
580 +|(% style="width:183px" %)Get Calibration Version Info|(% style="width:55px" %)Any|(% style="width:93px" %)14|(% style="width:146px" %)2
581 +
582 +* Reply to the confirmation package: 14 01
583 +* Reply to non-confirmed packet: 14 00
444 444  = 3. Configure CPL03-LB =
445 445  
446 446  == 3.1 Configure Methods ==
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0