Last modified by Xiaoling on 2025/07/10 16:21

From version 149.1
edited by Xiaoling
on 2025/07/10 16:21
Change comment: There is no comment for this version
To version 144.1
edited by Xiaoling
on 2025/06/10 15:27
Change comment: Uploaded new attachment "1749540420016-961.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -245,16 +245,20 @@
245 245  
246 246  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
247 247  |=(% style="width: 167px;background-color:#4F81BD;color:white" %)Behavior on ACT|=(% style="width: 117px;background-color:#4F81BD;color:white" %)Function|=(% style="width: 226px;background-color:#4F81BD;color:white" %)Action
248 -|[[image:1749540420016-961.png]] 1~~3s|(% style="background-color:#f2f2f2; width:117px" %)Send an uplink|(% style="background-color:#f2f2f2; width:225px" %)(((
248 +|[[image:1749521239729-288.png]] 1~~3s|(% style="background-color:#f2f2f2; width:117px" %)Send an uplink|(% style="background-color:#f2f2f2; width:225px" %)(((
249 +
250 +
249 249  If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, blue led will blink once.
250 250  Meanwhile, BLE module will be active and user can connect via BLE to configure device.
251 251  )))
252 -|[[image:1749540423574-437.png]] >3s|(% style="background-color:#f2f2f2; width:117px" %)Active Device|(% style="background-color:#f2f2f2; width:225px" %)(((
254 +|[[image:1749521245437-170.png]] >3s|(% style="background-color:#f2f2f2; width:117px" %)Active Device|(% style="background-color:#f2f2f2; width:225px" %)(((
255 +
256 +
253 253  Green led will fast blink 5 times, device will enter OTA mode for 3 seconds. And then start to JOIN LoRaWAN network.
254 254  Green led will solidly turn on for 5 seconds after joined in network.
255 255  Once sensor is active, BLE module will be active and user can connect via BLE to configure device, no matter if device join or not join LoRaWAN network.
256 256  )))
257 -|[[image:1749540397649-875.png]] x5|(% style="background-color:#f2f2f2; width:117px" %)Deactivate Device|(% style="background-color:#f2f2f2; width:225px" %)Red led will solid on for 5 seconds. Means PS-LB is in Deep Sleep Mode.
261 +|[[image:1749521282079-419.png]] x5|(% style="background-color:#f2f2f2; width:117px" %)Deactivate Device|(% style="background-color:#f2f2f2; width:225px" %)Red led will solid on for 5 seconds. Means PS-LB is in Deep Sleep Mode.
258 258  
259 259  == 1.8 Pin Mapping ==
260 260  
... ... @@ -551,6 +551,8 @@
551 551  **Size(bytes)**
552 552  )))|(% style="background-color:#4f81bd; color:white; width:35px" %)**2**|(% style="background-color:#4f81bd; color:white; width:400px" %)**n**
553 553  |(% style="width:94px" %)Value|(% style="width:43px" %)[[BAT>>||anchor="H2.3.3BatteryInfo"]]|(% style="width:367px" %)(((
558 +
559 +
554 554  Voltage value, each 2 bytes is a set of voltage values.
555 555  )))
556 556  
... ... @@ -622,54 +622,45 @@
622 622  == 2.6 Datalog Feature (Since V1.1) ==
623 623  
624 624  
625 -Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, PS-LB will store the reading for future retrieving purposes.
631 +When a user wants to retrieve sensor value, he can send a poll command from the IoT platform to ask the sensor to send value in the required time slot.
626 626  
627 627  
628 -=== 2.6.1 How datalog works ===
634 +=== 2.6.1 Unix TimeStamp ===
629 629  
630 630  
631 -PS-LB will wait for ACK for every uplink, when there is no LoRaWAN network,PS-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.
637 +PS-LB uses Unix TimeStamp format based on
632 632  
633 -* (((
634 -a) PS-LB will do an ACK check for data records sending to make sure every data arrive server.
635 -)))
636 -* (((
637 -b) PS-LB will send data in **CONFIRMED Mode**, but PS-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 PS-LB gets a ACK, PS-LB will consider there is a network connection and resend all NONE-ACK messages.
639 +[[image:image-20250401163826-3.jpeg]]
638 638  
639 -
640 -)))
641 +Users can get this time from the link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
641 641  
642 -=== 2.6.2 Enable Datalog ===
643 +Below is the converter example:
643 643  
645 +[[image:image-20250401163906-4.jpeg]]
644 644  
645 -User need to make sure below two settings are enable to use datalog;
646 646  
647 -* (% style="color:blue" %)**SYNCMOD=1(Default)**(%%) to enable sync time via LoRaWAN MAC command, click here ([[AT+SYNCMOD>>https://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.6Settimesynchronizationmethod28ThenetworkservermustsupportLoRaWANv1.0.329]]) for detailed instructions.
648 -* (% style="color:blue" %)**PNACKMD=1**(%%)** **to enable datalog feature, click here ([[AT+PNACKMD>>https://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H7.26RequesttheservertosendanACK]]) for detailed instructions.
648 +=== 2.6.2 Set Device Time ===
649 649  
650 650  
651 +There are two ways to set the device's time:
651 651  
652 -Once PS-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to PS-LB. If PS-LB fails to get the time from the server, PS-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days).
653 653  
654 -(% style="color:red" %)**Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 v2 doesn't support. If server doesn't support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN V3 v2 if SYNCMOD=1.**
654 +~1. Through LoRaWAN MAC Command (Default settings)
655 655  
656 +Users need to set SYNCMOD=1 to enable sync time via the MAC command.
656 656  
657 -=== 2.6.3 Unix TimeStamp ===
658 +Once CPL01 Joined the LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to CPL01. If CPL01 fails to get the time from the server, CPL01 will use the internal time and wait for the next time request ~[[[via Device Status (FPORT=5)>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/#H2.3.1DeviceStatus2CFPORT3D5]]].
658 658  
660 +Note: LoRaWAN Server needs to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature.
659 659  
660 -PS-LB uses Unix TimeStamp format based on
661 661  
662 -[[image:image-20250401163826-3.jpeg]]
663 + 2. Manually Set Time
663 663  
664 -Users can get this time from the link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
665 +Users need to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server.
665 665  
666 -Below is the converter example:
667 667  
668 -[[image:image-20250401163906-4.jpeg]]
668 +=== 2.6.3 Poll sensor value ===
669 669  
670 -
671 -=== 2.6.4 Poll sensor value ===
672 -
673 673  Users can poll sensor values based on timestamps. Below is the downlink command.
674 674  
675 675  (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:470px" %)
... ... @@ -688,7 +688,7 @@
688 688  Uplink Internal =5s,means PS-LB will send one packet every 5s. range 5~~255s.
689 689  
690 690  
691 -=== 2.6.5 Datalog Uplink payload (FPORT~=3) ===
688 +=== 2.6.4 Datalog Uplink payload (FPORT~=3) ===
692 692  
693 693  
694 694  The Datalog uplinks will use below payload format.
... ... @@ -788,7 +788,7 @@
788 788  Note: water_deep in the data needs to be converted using decoding to get it.
789 789  
790 790  
791 -=== 2.6.6 Decoder in TTN V3 ===
788 +=== 2.6.5 Decoder in TTN V3 ===
792 792  
793 793  [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/WebHome/1652862574387-195.png?width=722&height=359&rev=1.1||alt="1652862574387-195.png" height="359" width="722"]]
794 794  
... ... @@ -1212,7 +1212,7 @@
1212 1212  (0~~100Pa->01,0~~200Pa->02,0~~300Pa->03,0~~1KPa->04,0~~2KPa->05,0~~3KPa->06,0~~4KPa->07,0~~5KPa->08,0~~10KPa->09,-100~~ 100Pa->0A,-200~~ 200Pa->0B,-1~~ 1KPa->0C)
1213 1213  
1214 1214  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
1215 -|(% style="background-color:#4f81bd; color:white; width:154px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:269px" %)**Function**|(% style="background-color:#4f81bd; color:white" %)**Response**
1212 +|(% style="background-color:#4f81bd; color:white; width:154px" %)Command Example|(% style="background-color:#4f81bd; color:white; width:269px" %)Function|(% style="background-color:#4f81bd; color:white" %)Response
1216 1216  |(% style="background-color:#f2f2f2; width:154px" %)AT+PROBE=?|(% style="background-color:#f2f2f2; width:269px" %)Get or Set the probe model.|(% style="background-color:#f2f2f2" %)0
1217 1217  OK
1218 1218  |(% style="background-color:#f2f2f2; width:154px" %)AT+PROBE=0003|(% style="background-color:#f2f2f2; width:269px" %)Set water depth sensor mode, 3m type.|(% style="background-color:#f2f2f2" %)OK
... ... @@ -1247,7 +1247,7 @@
1247 1247  cc: the number of collection times, the value is 1~~120
1248 1248  
1249 1249  (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1250 -|(% style="background-color:#4f81bd; color:white; width:160px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:215px" %)**Function**|(% style="background-color:#4f81bd; color:white" %)**Response**
1247 +|(% style="background-color:#4f81bd; color:white; width:160px" %)Command Example|(% style="background-color:#4f81bd; color:white; width:215px" %)Function|(% style="background-color:#4f81bd; color:white" %)Response
1251 1251  |(% style="background-color:#f2f2f2; width:160px" %)AT+STDC=?|(% style="background-color:#f2f2f2; width:215px" %)Get the mode of multiple acquisitions and one uplink.|(% style="background-color:#f2f2f2" %)1,10,18
1252 1252  OK
1253 1253  |(% style="background-color:#f2f2f2; width:160px" %)AT+STDC=1,10,18|(% style="background-color:#f2f2f2; width:215px" %)Set the mode of multiple acquisitions and one uplink, collect once every 10 seconds, and report after 18 times.|(% style="background-color:#f2f2f2" %)(((
... ... @@ -1255,6 +1255,8 @@
1255 1255  OK
1256 1256  )))
1257 1257  |(% style="background-color:#f2f2f2; width:160px" %)AT+STDC=0, 0,0|(% style="background-color:#f2f2f2; width:215px" %)(((
1255 +
1256 +
1258 1258  Use the TDC interval to send packets.(default)
1259 1259  
1260 1260  
... ... @@ -1369,7 +1369,7 @@
1369 1369  |(% style="width:155px" %)AT+CLRDTA |(% style="width:134px" %)Clear date record|(% style="width:209px" %)(((
1370 1370  Clear all stored sensor data…
1371 1371  
1372 -OK
1371 +OK
1373 1373  )))
1374 1374  
1375 1375  (% style="color:#4f81bd" %)**Downlink Command: 0xA3**
... ... @@ -1483,7 +1483,7 @@
1483 1483  == 8.1 Thread Installation Type & Immersion Type Pressure Sensor ==
1484 1484  
1485 1485  
1486 -Part Number: (% style="color:blue" %)**PS-LB/LS-Txx-YY  or  PS-LB/LS-Ixx-YY**
1485 +Part Number: (% style="color:blue" %)**PS-NB/NS-Txx-YY  or  PS-NB/NS-Ixx-YY**
1487 1487  
1488 1488  (% style="color:blue" %)**XX:**(%%)** Pressure Range and Thread Type **
1489 1489  
1749540423574-437.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -1.9 KB
Content