Changes for page SDI-12-LB/LS -- SDI-12 to LoRaWAN Converter User Manual
Last modified by Mengting Qiu on 2025/07/03 15:42
From version 171.2
edited by Mengting Qiu
on 2025/06/09 14:18
on 2025/06/09 14:18
Change comment:
There is no comment for this version
To version 129.1
edited by Mengting Qiu
on 2024/11/18 16:59
on 2024/11/18 16:59
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 24 removed)
- 1747289896656-580.png
- image-20250329133856-1.jpeg
- image-20250329133946-2.jpeg
- image-20250329134001-3.jpeg
- image-20250416150535-1.jpeg
- image-20250416151346-2.png
- image-20250416151406-3.jpeg
- image-20250416151419-4.jpeg
- image-20250416154628-5.jpeg
- image-20250416154700-6.jpeg
- image-20250416154716-7.jpeg
- image-20250516100849-1.png
- image-20250516103205-2.png
- image-20250516103652-3.png
- image-20250516144559-1.png
- image-20250516145402-2.png
- image-20250519110640-1.jpeg
- image-20250519111322-2.jpeg
- image-20250519111415-3.jpeg
- image-20250519111732-4.jpeg
- image-20250605091006-1.png
- image-20250609134137-1.png
- image-20250609134901-2.png
- image-20250609141343-1.png
Details
- Page properties
-
- Content
-
... ... @@ -55,6 +55,9 @@ 55 55 ))) 56 56 57 57 58 +[[image:image-20230201084414-1.png||_mstalt="427765" height="464" width="1108"]] 59 + 60 + 58 58 == 1.2 Features == 59 59 60 60 ... ... @@ -135,7 +135,7 @@ 135 135 == 1.6 Button & LEDs == 136 136 137 137 138 -[[image:i mage-20250416151419-4.jpeg]]141 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/WebHome/image-20240103160425-4.png?rev=1.1||alt="image-20240103160425-4.png"]] 139 139 140 140 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 141 141 |=(% 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** ... ... @@ -175,13 +175,17 @@ 175 175 === 1.9.1 for LB version === 176 176 177 177 178 -[[image:image-202 50416151406-3.jpeg]]181 +[[image:image-20230201090139-2.png||_mstalt="428623"]] 179 179 183 +[[image:image-20230201090139-3.png||_mstalt="428987"]] 180 180 185 +[[image:image-20230201090139-4.png||_mstalt="429351"]] 186 + 187 + 181 181 === 1.9.2 for LS version === 182 182 183 183 184 -[[image:i mage-20250329133856-1.jpeg]]191 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20231231203439-3.png?width=886&height=385&rev=1.1||alt="image-20231231203439-3.png"]] 185 185 186 186 187 187 = 2. Configure SDI-12 to connect to LoRaWAN network = ... ... @@ -197,9 +197,10 @@ 197 197 198 198 Following is an example for how to join the [[TTN v3 LoRaWAN Network>>url:https://console.cloud.thethings.network/]]. Below is the network structure; we use the [[LPS8v2>>url:https://www.dragino.com/products/lora-lorawan-gateway/item/228-lps8v2.html]] as a LoRaWAN gateway in this example. 199 199 200 -[[image:image-20250416151346-2.png]] 201 201 208 +[[image:image-20230201090528-5.png||_mstalt="430300" height="442" width="1056"]] 202 202 210 + 203 203 The LPS8V2 is already set to connected to [[TTN network >>url:https://console.cloud.thethings.network/]], so what we need to now is configure the TTN server. 204 204 205 205 ... ... @@ -210,34 +210,33 @@ 210 210 [[image:image-20230426084456-1.png||height="241" width="519"]] 211 211 212 212 213 - Youcan enter this key in the LoRaWAN Server portal. Below is TTN screen shot:221 +User can enter this key in their LoRaWAN Server portal. Below is TTN V3 screen shot: 214 214 215 -**Create the application.** 223 +* **Create the application.** 216 216 217 -[[image:http s://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SAC01L_LoRaWAN_Temperature%26Humidity_Sensor_User_Manual/WebHome/image-20250423093843-1.png?width=756&height=264&rev=1.1||alt="image-20250423093843-1.png"]]225 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111048-1.png?width=1001&height=183&rev=1.1||alt="image-20240907111048-1.png"]] 218 218 219 -[[image:http s://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111305-2.png?width=1000&height=572&rev=1.1||alt="image-20240907111305-2.png"]]227 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111305-2.png?width=1000&height=572&rev=1.1||alt="image-20240907111305-2.png"]] 220 220 221 221 222 -**Add devices to the created Application.** 223 223 224 - [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111659-3.png?width=977&height=185&rev=1.1||alt="image-20240907111659-3.png"]]231 +* **Add devices to the created Application.** 225 225 226 -[[image:http s://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111820-5.png?width=975&height=377&rev=1.1||alt="image-20240907111820-5.png"]]233 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111659-3.png?width=977&height=185&rev=1.1||alt="image-20240907111659-3.png"]] 227 227 235 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907111820-5.png?width=975&height=377&rev=1.1||alt="image-20240907111820-5.png"]] 228 228 229 -**Enter end device specifics manually.** 230 230 231 - [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907112136-6.png?width=697&height=687&rev=1.1||alt="image-20240907112136-6.png"]]238 +* **Enter end device specifics manually.** 232 232 240 +[[image:image-20241118164859-1.png||height="561" width="642"]] 233 233 234 - **Add DevEUIand AppKey.**242 +[[image:image-20241118165221-2.png||height="426" width="630"]] 235 235 236 -**Customize a platform ID for the device.** 237 237 238 -[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LTC2-LB--LoRaWAN_Temperature_Transmitter_User_Manual/WebHome/image-20240907112427-7.png?rev=1.1||alt="image-20240907112427-7.png"]] 239 239 240 240 247 + 241 241 (% style="color:blue" %)**Step 2: **(%%)Add decoder 242 242 243 243 While using TTN network, you can add the payload format to decode the payload. ... ... @@ -498,7 +498,7 @@ 498 498 === 2.3.4 Define periodically SDI-12 commands and uplink. === 499 499 500 500 501 -AT+COMMANDx & AT+DATACUTx **&AT+DATACONVx**508 +AT+COMMANDx & AT+DATACUTx 502 502 503 503 User can define max 15 SDI-12 Commands (AT+COMMAND1 ~~ AT+COMMANDF). On each uplink period (TDC time, default 20 minutes), SDI-12-LB/LS will send these SDI-12 commands and wait for return from SDI-12 sensors. SDI-12-LB/LS will then combine these returns and uplink via LoRaWAN. 504 504 ... ... @@ -511,10 +511,8 @@ 511 511 512 512 (% style="color:red" %)**var2**(%%): Wait timeout for return. (unit: second) 513 513 514 -(% style="color:red" %)**var3**(%%): Whether to send //addrD0!// to get return after var2 timeout. 0: Don't Send //addrD0! //; 1: Send //addrD0!//. (% style="color:red" %)**2: When set to 2, AT+ALDATAMOD=1 does not intercept data returned by the current COMMAND command.(since v1.3.0)**521 +(% style="color:red" %)**var3**(%%): Whether to send //addrD0!// to get return after var2 timeout. 0: Don't Send //addrD0! //; 1: Send //addrD0!//. 515 515 516 -(% style="color:red" %)**(Function set to 2: When the device is connected to more than two sensors with different sampling addresses, concurrent measurement can be used to reduce data acquisition time and save battery power; for example, when the device is connected to two sensors with different addresses, the concurrent measurement function can be used and the two sensors can collect data at the same time.)** 517 - 518 518 (% style="color:red" %)**var4**(%%): validation check for return. If return invalid, SDI-12-LB/LS will resend this command. Max 3 retries. 519 519 520 520 (% style="color:red" %)**0 **(%%) No validation check; ... ... @@ -656,108 +656,6 @@ 656 656 (% style="color:red" %)**When AT+DATAUP=1 and AT+ADR=0, the maximum number of bytes of each payload is determined by the DR value.** 657 657 658 658 659 - 660 -(% style="color:blue" %)**Automatically converts polled data to hex format for uplinking(Since v1.3.0)** 661 - 662 - 663 -This command can retrieve the returned data, convert the number after the positive or negative sign into a data, and then set the number of bytes to upload the data. 664 - 665 - 666 -* (% style="color:blue" %)**AT Command:** 667 - 668 -The maximum number can be set to 5 groups and the format of the command is as follows: 669 - 670 -(% style="color:#037691" %)**Example 1:AT+DATACONVx=var1, var2** 671 - 672 -(% style="color:#037691" %)**Example 2:AT+DATACONVx=var1, var2+ var3, var4** 673 - 674 -(% style="color:#037691" %)**Example 3:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6** 675 - 676 -(% style="color:#037691" %)**Example 4:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6+ var7, var8** 677 - 678 -(% style="color:#037691" %)**Example 5:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6+ var7, var8+ var9, var10** 679 - 680 -(% style="color:red" %)**Notice: Among them, var1, var3, var5, var7, and var9 are the data to be selected for conversion, and var2, var4, var6, var8, and var10 are the number of bytes to be uploaded. The values of var2, var4, var6, var8, and var10 range from 1 to 4.** 681 - 682 -* (% style="color:blue" %)**Downlink Command:** 683 - 684 -Format: Command code (0xAC) followed by up to 20 bytes. 685 - 686 - 687 -Example 1 1:AT+DATACONVx=var1, var2 688 - 689 -Downlink Command:AC x var1 var2 690 - 691 -Example 1 2:AT+DATACONVx=var1, var2+ var3, var4 692 - 693 -Downlink Command:AC x var1 var2 var3 var4 694 - 695 -Example 1 3:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6 696 - 697 -Downlink Command:AC x var1 var2 var3 var4 var5 var6 698 - 699 -Example 1 4:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6+ var7, var8 700 - 701 -Downlink Command:AC x var1 var2 var3 var4 var5 var6 var7 var8 702 - 703 -Example 1 5:AT+DATACONVx=var1, var2+ var3, var4+ var5, var6+ var7, var8+ var9, var10 704 - 705 -Downlink Command:AC x var1 var2 var3 var4 var5 var6 var7 var8 var9 var10 706 - 707 - 708 -Example: 709 - 710 -* Example 1: Downlink Payload: AC 01 01 02 02 02 ~/~/ AT+DATACONV1=1,2+2,2 711 -* Example 2: Downlink Payload: AC 02 01 02 02 02 03 02 ~/~/ AT+DATACONV2=1,2+2,2+3,2 712 - 713 - 714 -**For example:** 715 - 716 -This is my configuration: 717 - 718 -[[image:image-20250609134137-1.png]] 719 - 720 - 721 -* AT+COMMAND1=0C!,0,2,0 After sending the concurrent command of device 0, the data will not be cut, and the next command will be sent immediately. 722 -* AT+COMMAND2=1C!,1,2,0 After sending a concurrent command to device 1, do not truncate the data and wait for one second. (Concurrent commands will be sampled with the command with the longest waiting time; for example, if the waiting time in the current device is set to 1s, the concurrent command will default to a maximum waiting time of 1s.) 723 -* AT+COMMAND3=0D0!,0,0,0 Query the data measured by device 0 724 -* AT+COMMAND4=1D0!,0,0,0 Query the data measured by device 1 725 - 726 -This is the data obtained: 727 - 728 -[[image:image-20250609134901-2.png]] 729 - 730 - 731 -When using the AT+DATACONVx command, 732 - 733 -The data of RETURN3 will be converted into 2 data, the first data is +95, and the second data is +260. 734 - 735 -* AT+DATACONV3=1,2+2,2 The first data is uploaded as 2 bytes and the second data is uploaded as 2 bytes. The form converted to hexadecimal is as shown above,as below: 736 -* ((( 737 -AT+DATACONV4=1,3+2,2+3,2 The first data uploads 3 bytes, the second data also uploads 2 bytes, and the third data also uploads 2 bytes. The hexadecimal form is shown above and as shown in the following figure: 738 -))) 739 - 740 -[[image:image-20250609141343-1.png]] 741 - 742 -**For example,the uplink payload as below:** 743 - 744 -0CE4 01 00C6 0103 02DB99 00FD 0001 745 - 746 -(% style="color:#037691" %)**BAT**(%%): 0x0CE4 = 3300mV = 3.300V 747 - 748 -(% style="color:#037691" %)**Payload Version**(%%): 0x01, Means: v1.0 version 749 - 750 -(% style="color:#037691" %)**Data 1: **(%%)0x00C6(H) = 198(D) / 100 = 19.8 751 - 752 -(% style="color:#037691" %)**Data 2: **(%%)0x0103(H) = 259(D) / 10 = 25.9 753 - 754 -(% style="color:#037691" %)**Data 3: **(%%)0x02DB99(H) = 187289(D) / 100 = 1872.89 755 - 756 -(% style="color:#037691" %)**Data 4: **(%%)0x00FD(H) = 253(D) / 10 = 25.3 757 - 758 -(% style="color:#037691" %)**Data 5: **(%%)0x0001(H) = 1(D) = 1 759 - 760 - 761 761 == 2.4 Uplink Payload == 762 762 763 763 === 2.4.1 Device Payload, FPORT~=5 === ... ... @@ -1263,191 +1263,6 @@ 1263 1263 [[https:~~/~~/www.dropbox.com/sh/qrbgbikb109lkiv/AACBR-v_ZhZAMengcY7Nsa1ja?dl=0>>https://www.dropbox.com/sh/qrbgbikb109lkiv/AACBR-v_ZhZAMengcY7Nsa1ja?dl=0]] 1264 1264 1265 1265 1266 - 1267 -== 2.9 Datalog Feature(Since v1.3.0) == 1268 - 1269 - 1270 -((( 1271 -Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, SDI-12-LB will store the reading for future retrieving purposes. There are two ways for IoT servers to get datalog from SDI-12-LB. 1272 -))) 1273 - 1274 - 1275 -=== 2.9.1 Ways to get datalog via LoRaWAN === 1276 - 1277 - 1278 -There are two methods: 1279 - 1280 -(% style="color:blue" %)**Method 1:** (%%)IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.8.4Pollsensorvalue"]] for specified time range. 1281 - 1282 - 1283 -(% style="color:blue" %)**Method 2: **(%%)Set PNACKMD=1, SDI-12-LB will wait for ACK for every uplink, when there is no LoRaWAN network, SDI-12-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. 1284 - 1285 - 1286 -(% style="color:red" %)**Note for method 2:** 1287 - 1288 -* a) SDI-12-LB will do an ACK check for data records sending to make sure every data arrive server. 1289 -* b) SDI-12-LB will send data in **CONFIRMED Mode** when PNACKMD=1, but SDI-12-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 SDI-12-LB gets a ACK, SDI-12-LB will consider there is a network connection and resend all NONE-ACK Message. 1290 - 1291 -=== 2.9.2 Unix TimeStamp === 1292 - 1293 - 1294 -SDI-12-LB uses Unix TimeStamp format based on 1295 - 1296 -[[image:https://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="image-20220523001219-11.png"]] 1297 - 1298 - 1299 -User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 1300 - 1301 -Below is the converter example 1302 - 1303 -[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-12.png?width=720&height=298&rev=1.1||alt="image-20220523001219-12.png"]] 1304 - 1305 -So, we can use AT+TIMESTAMP=1742889625 or downlink 3067E26299 to set the current time 2025 – March ~-~- 25 Tuesday 08:00:25 1306 - 1307 - 1308 -=== 2.9.3 Set Device Time === 1309 - 1310 - 1311 -((( 1312 -(% style="color:blue" %)**There are two ways to set device's time:** 1313 -))) 1314 - 1315 -((( 1316 -**1. Through LoRaWAN MAC Command (Default settings)** 1317 -))) 1318 - 1319 -((( 1320 -User need to set SYNCMOD=1 to enable sync time via MAC command. 1321 -))) 1322 - 1323 -((( 1324 -Once SDI-12-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to SDI-12-LB. If SDI-12-LB fails to get the time from the server, SDI-12-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days). 1325 -))) 1326 - 1327 -((( 1328 -(% 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.** 1329 -))) 1330 - 1331 - 1332 -((( 1333 -**2. Manually Set Time** 1334 -))) 1335 - 1336 -((( 1337 -User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server. 1338 -))) 1339 - 1340 - 1341 -=== 2.9.4 Poll sensor value === 1342 - 1343 - 1344 -User can poll sensor value based on timestamps from the server. Below is the downlink command. 1345 - 1346 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:438.778px" %) 1347 -|(% style="background-color:#4f81bd; color:white; width:59px" %)**1byte**|(% style="background-color:#4f81bd; color:white; width:123px" %)**4bytes**|(% style="background-color:#4f81bd; color:white; width:114px" %)**4bytes**|(% style="background-color:#4f81bd; color:white; width:142.778px" %)**1byte** 1348 -|(% style="width:58px" %)31|(% style="width:123px" %)Timestamp start|(% style="width:114px" %)Timestamp end|(% style="width:137px" %)((( 1349 -Uplink Interval(range 5~~255s) 1350 -))) 1351 - 1352 -Timestamp start and Timestamp end use Unix TimeStamp format as mentioned above. Devices will reply with all data log during this time period, use the uplink interval. 1353 - 1354 -For example, downlink command (% _mstmutation="1" %)**31 68253B6E 68253E23 05**(%%) 1355 - 1356 -Is to check 2025/05/15 00:55:10 to 2025/05/15 01:06:43's data 1357 - 1358 -Uplink Internal =5s, means SDI-12-LB will send one packet every 5s. 1359 - 1360 - 1361 -=== 2.9.5 Datalog Uplink payload === 1362 - 1363 - 1364 -The Datalog poll reply uplink will use below payload format. 1365 - 1366 -**Retrieval data payload:** 1367 - 1368 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:480px" %) 1369 -|=(% style="width: 60px;background-color:#4F81BD;color:white" %)((( 1370 -**Size(bytes)** 1371 -)))|=(% style="width: 100px; background-color: rgb(79, 129, 189); color: white;" %)**4**|=(% style="width: 100px; background-color: rgb(79, 129, 189); color: white;" %)**1**|=(% style="width: 220px; background-color: rgb(79, 129, 189); color: white;" %)**Length depends on the return from the commands** 1372 -|(% style="width:97px" %)Value|(% style="width:104px" %)Unix Time Stamp|(% style="width:109px" %)Payload Length|(% style="width:165px" %)Data returned by the sensor 1373 - 1374 -**Example:** 1375 - 1376 -If SDI-12-LB has below data inside Flash: 1377 - 1378 -(Soil sensors using the SDI-12 protocol are used for testing.) 1379 - 1380 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 1381 -|=(% style="width: 88px; background-color:#4F81BD;color:white" %)Flash Add|=(% style="width: 98px; background-color: rgb(79, 129, 189); color: white;" %)**Unix Time**|=(% style="width: 82px; background-color: rgb(79, 129, 189); color: white;" %)Payload Length|=(% style="width: 86px; background-color: rgb(79, 129, 189); color: white;" %)**BAT voltage**|=(% style="width: 92px; background-color: rgb(79, 129, 189); color: white;" %)Payload Version|=(% style="width: 64px; background-color:#4F81BD;color:white" %)**Value** 1382 -|(% style="width:89px" %)((( 1383 -0001 1384 -)))|(% style="width:98px" %)((( 1385 -2025/3/25 08:09:30 1386 -)))|(% style="width:82px" %)5|(% style="width:86px" %)((( 1387 -0c a8 1388 -)))|(% style="width:92px" %)01|(% style="width:131px" %)((( 1389 -08 21 1390 -))) 1391 -|(% style="width:89px" %)0002|(% style="width:98px" %)((( 1392 -2025/3/25 08:10:30 1393 -)))|(% style="width:82px" %)5|(% style="width:86px" %)((( 1394 -0c ae 1395 -)))|(% style="width:92px" %)01|(% style="width:131px" %)((( 1396 -08 22 1397 -))) 1398 -|(% style="width:89px" %)0003|(% style="width:98px" %)((( 1399 -2025/3/25 08:11:30 1400 -)))|(% style="width:82px" %)5|(% style="width:86px" %)0c ae|(% style="width:92px" %)01|(% style="width:131px" %)08 22 1401 -|(% style="width:89px" %)0004|(% style="width:98px" %)((( 1402 -2025/3/25 08:12:30 1403 -)))|(% style="width:82px" %)5|(% style="width:86px" %)0c ae|(% style="width:92px" %)01|(% style="width:131px" %)08 22 1404 -|(% style="width:89px" %)0005|(% style="width:98px" %)((( 1405 -2025/3/25 08:13:30 1406 -)))|(% style="width:82px" %)5|(% style="width:86px" %)((( 1407 -0c b4 1408 -)))|(% style="width:92px" %)01|(% style="width:131px" %)08 23 1409 -|(% style="width:89px" %)0006|(% style="width:98px" %)((( 1410 -2025/3/25 08:14:30 1411 -)))|(% style="width:82px" %)5|(% style="width:86px" %)0c ae|(% style="width:92px" %)01|(% style="width:131px" %)08 22 1412 -|(% style="width:89px" %)0007|(% style="width:98px" %)((( 1413 -2025/3/25 08:15:30 1414 -)))|(% style="width:82px" %)5|(% style="width:86px" %)0c b4|(% style="width:92px" %)01|(% style="width:131px" %)08 23 1415 -|(% style="width:89px" %)0008|(% style="width:98px" %)((( 1416 -2025/3/25 08:16:30 1417 -)))|(% style="width:82px" %)5|(% style="width:86px" %)0c ae|(% style="width:92px" %)01|(% style="width:131px" %)08 22 1418 - 1419 -If user sends below downlink command: (% style="background-color:yellow" %)3168253B6E68253E2305 1420 - 1421 -Where : Start time: (% _mstmutation="1" %)68253B6E (%%)= time 2025/05/15 00:55:10 1422 - 1423 - Stop time: (% _mstmutation="1" %)68253E23 (%%)= time 2025/05/15 01:06:43 1424 - 1425 - 1426 -**SDI-12-LB will uplink this payload.** 1427 - 1428 -**68253B6E 12 0C7801F10D302B312E31372B32362E390D0A ** 1429 -68253C5D 12 0C7801F10D302B312E31372B32372E340D0A 1430 -68253D33 12 0C7201F10D302B312E31352B32382E390D0A 1431 -68253DAB 12 0C7201F10D302B312E31342B32392E340D0A 1432 -68253E23 12 0C7201F10D302B312E31332B33302E300D0A 1433 - 1434 - 1435 -Where the first 23 bytes is for the first entry: 1436 - 1437 -**68253B6E 12 0C7801F10D302B312E31372B32362E390D0A** 1438 - 1439 -Unix Time Stamp: 68253B6E(H)=1747270510(D) ~-~-> time=2025-05-15 8:55:00 1440 - 1441 -Payload Length: 0x12(H)=18 bytes 1442 - 1443 -Battery voltage: 0x0C78(H)=3192 mV 1444 - 1445 -Payload Version: 01 1446 - 1447 -Value: For the distance sensor used for testing, this value is the mm distance value, 0xF10D302B312E31372B32362E390D0A(H) 1448 - 1449 - 1450 - 1451 1451 = 3. Configure SDI-12-LB/LS via AT Command or LoRaWAN Downlink = 1452 1452 1453 1453 ... ... @@ -1683,281 +1683,6 @@ 1683 1683 * Example 1: Downlink Payload: AE 01 ~/~/ AT+PAYVER=1 1684 1684 * Example 2: Downlink Payload: AE 05 ~/~/ AT+PAYVER=5 1685 1685 1686 -== 3.7 Print data entries base on page(Since v1.3.0) == 1687 - 1688 - 1689 -Feature: Print the sector data from start page to stop page (max is 416 pages). 1690 - 1691 -(% style="color:#4f81bd" %)**AT Command: AT+PDTA** 1692 - 1693 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 1694 -|(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function** 1695 -|(% style="width:156px" %)((( 1696 -AT+PDTA=1,2 1697 -Print page 1 to 2 1698 -)))|(% style="width:311px" %)((( 1699 -Stop Tx and RTP events when read sensor data 1700 - 1701 -8033330 2025/5/14 12:27:32 18 0c 84 01 f1 0d 30 2b 31 2e 30 1702 - 1703 -8033340 38 2b 32 34 2e 36 0d 0a 1704 - 1705 -8033350 2025/5/14 12:29:32 18 0c 72 01 f1 0d 30 2b 31 2e 30 1706 - 1707 -8033360 38 2b 32 34 2e 36 0d 0a 1708 - 1709 -8033370 2025/5/14 12:31:32 18 0c 78 01 f1 0d 30 2b 31 2e 30 1710 - 1711 -8033380 38 2b 32 34 2e 36 0d 0a 1712 - 1713 -8033390 2025/5/14 12:33:32 18 0c 72 01 f1 0d 30 2b 31 2e 30 1714 - 1715 -80333A0 38 2b 32 34 2e 36 0d 0a 1716 - 1717 -80333B0 2025/5/14 12:35:32 18 0c 72 01 f1 0d 30 2b 31 2e 30 1718 - 1719 -80333C0 38 2b 32 34 2e 36 0d 0a 1720 - 1721 - 1722 -OK 1723 -))) 1724 - 1725 -(% style="color:#4f81bd" %)**Downlink Command:** 1726 - 1727 -No downlink commands for feature 1728 - 1729 - 1730 -== 3.8 Print last few data entries(Since v1.3.0) == 1731 - 1732 - 1733 -Feature: Print the last few data entries 1734 - 1735 -(% style="color:#4f81bd" %)**AT Command: AT+PLDTA** 1736 - 1737 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:437px" %) 1738 -|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 192px;background-color:#4F81BD;color:white" %)**Function** 1739 -|(% style="background-color:#f2f2f2; width:158px" %)AT+PLDTA=10,0|(% style="background-color:#f2f2f2; width:192px" %)Printing the last ten data in hex format 1740 -|(% style="background-color:#f2f2f2; width:158px" %)AT+PLDTA=10,1|(% style="background-color:#f2f2f2; width:192px" %)Print the last ten data in string format 1741 - 1742 -* **Prints in hex format:** 1743 - 1744 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 1745 -|(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function** 1746 -|(% style="width:156px" %)((( 1747 -AT+PLDTA=10,0 1748 -Print last 10 entries 1749 -)))|(% style="width:311px" %)((( 1750 -Stop Tx events when read sensor data 1751 - 1752 -0001-0001 2025/5/16 06:48:04 7 0c 7e 01 00 5f 01 05 1753 - 1754 -0002-0002 2025/5/16 06:50:04 7 0c 72 01 00 5f 01 05 1755 - 1756 -0003-0003 2025/5/16 06:52:04 7 0c 72 01 00 5f 01 05 1757 - 1758 -0004-0004 2025/5/16 06:54:04 7 0c 7e 01 00 5f 01 05 1759 - 1760 -0005-0005 2025/5/16 06:56:04 7 0c 7e 01 00 5f 01 07 1761 - 1762 -0006-0006 2025/5/16 06:58:04 7 0c 8a 01 00 60 01 07 1763 - 1764 -0007-0007 2025/5/16 07:00:04 7 0c 84 01 00 61 01 07 1765 - 1766 -0008-0008 2025/5/16 07:02:04 7 0c 72 01 00 61 01 07 1767 - 1768 -0009-0009 2025/5/16 07:04:04 7 0c 78 01 00 61 01 07 1769 - 1770 -0010-0010 2025/5/16 07:06:04 7 0c 78 01 00 61 01 07 1771 - 1772 -Start Tx events 1773 - 1774 -OK 1775 -))) 1776 - 1777 -* **Printing in String Format:** 1778 - 1779 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %) 1780 -|(% style="background-color:#4f81bd; color:white; width:158px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:352px" %)**Function** 1781 -|(% style="width:156px" %)((( 1782 -AT+PLDTA=10,1 1783 -Print last 10 entries 1784 - 1785 -((( 1786 -(Printing in String Format) 1787 -))) 1788 -)))|(% style="width:311px" %)((( 1789 -Stop Tx events when read sensor data 1790 - 1791 -0001-0001 2025/5/16 06:48:04 7 ~~_ 1792 - 1793 -0002-0002 2025/5/16 06:50:04 7 r_ 1794 - 1795 -0003-0003 2025/5/16 06:52:04 7 r_ 1796 - 1797 -0004-0004 2025/5/16 06:54:04 7 ~~_ 1798 - 1799 -0005-0005 2025/5/16 06:56:04 7 ~~_ 1800 - 1801 -0006-0006 2025/5/16 06:58:04 7 ` 1802 - 1803 -0007-0007 2025/5/16 07:00:04 7 a 1804 - 1805 -0008-0008 2025/5/16 07:02:04 7 ra 1806 - 1807 -0009-0009 2025/5/16 07:04:04 7 xa 1808 - 1809 -0010-0010 2025/5/16 07:06:04 7 xa 1810 - 1811 -Start Tx events 1812 - 1813 -OK 1814 -))) 1815 - 1816 -(% style="color:#4f81bd" %)**Downlink Command:** 1817 - 1818 -No downlink commands for feature 1819 - 1820 - 1821 -== 3.9 Clear Flash Record(Since v1.3.0) == 1822 - 1823 - 1824 -Feature: Clear flash storage for data log feature. 1825 - 1826 -(% style="color:#4f81bd" %)**AT Command: AT+CLRDTA** 1827 - 1828 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:503px" %) 1829 -|(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:137px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:209px" %)**Response** 1830 -|(% style="width:155px" %)AT+CLRDTA |(% style="width:134px" %)Clear date record|(% style="width:209px" %)((( 1831 -Clear all stored sensor data… 1832 - 1833 -OK 1834 -))) 1835 - 1836 -(% style="color:#4f81bd" %)**Downlink Command: 0xA3** 1837 - 1838 -* Example: 0xA301 ~/~/ Same as AT+CLRDTA 1839 - 1840 -== 3.10 SDI12 timing(Since v1.3.0) == 1841 - 1842 - 1843 -Feature: Get or set the time of SDI12 timing. 1844 - 1845 -[[image:1747289896656-580.png||height="414" width="566"]] 1846 - 1847 - 1848 -(% style="color:#4f81bd" %)**AT Command: AT+SDITIMING** 1849 - 1850 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:503px" %) 1851 -|(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:167px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:177px" %)**Response** 1852 -|(% style="width:155px" %)((( 1853 -AT+SDITIMING=13,9 1854 - 1855 - 1856 -)))|(% style="width:167px" %)Get or set the time of SDI12 timing|(% style="width:177px" %)((( 1857 -OK 1858 - 1859 -Default: 13,9 1860 -))) 1861 - 1862 -(% style="color:#4f81bd" %)**Downlink Command: 0xA9** 1863 - 1864 -* Example: 0xA90D09 ~/~/ Same as AT+SDITIMING=13,9 1865 - 1866 -== 3.11 add Pulse_count, VDC_input, IDC_input(Since firmware V1.3.0) == 1867 - 1868 - 1869 -(% style="color:blue" %)**Setting up external sensors:** 1870 - 1871 -* (% style="color:#037691" %)**AT Command:** 1872 - 1873 -(% style="color:#4472c4" %)**AT+EXT=a,b,c**(%%) 1874 - 1875 -(% style="color:#4472c4" %)**a:**(%%) **0:** Disable Counting function ( doesn't effect interrupt ). **1:** Enable Counting function(4 bytes). 1876 -(% style="color:#4472c4" %)**b: **(%%) **0:** Disable voltage acquisition function. **1:** Enable voltage acquisition function(2 bytes) 1877 -(% style="color:#4472c4" %)**c:**(%%) **0:** Disable current acquisition function. **1:** Enable current acquisition function(2 bytes). 1878 - 1879 -**Example:** 1880 - 1881 -(% style="color:#4472c4" %)**AT+EXT=1,1,1** 1882 - 1883 -Device will add counting, voltage and current acquisition function. 1884 - 1885 -The payload will be: 1886 -Battery(mV) & Interrupt _Flag + PAYLOAD_VER + ***counting + ** ***VDC_INPUT** + ***IDC_INPUT** + Length depends on the return from the commands 1887 - 1888 -(% style="color:#4472c4" %)**AT+EXT=1,0,0** 1889 - 1890 -Device will add counting support. 1891 - 1892 -The payload will be: 1893 -Battery(mV) & Interrupt _Flag + PAYLOAD_VER + ***counting** + Length depends on the return from the commands 1894 - 1895 -* (% style="color:#037691" %)**Downlink Command: 0x0B aa bb cc** 1896 - 1897 -Format: Command Code (0x0B) followed by 3 bytes. 1898 - 1899 -(% style="color:#037691" %)**aa:**(%%) Set Disable or Enable Counting Support. **00**: Disable, **01**: Enable. 1900 - 1901 -(% style="color:#037691" %)**bb:**(%%) Set Disable or Enable voltage acquisition. **00**: Disable, **01**: Enable. 1902 - 1903 -(% style="color:#037691" %)**cc:**(%%) Set Disable or Enable current acquisition. **00**: Disable, **01**: Enable. 1904 - 1905 -**Example:** 1906 - 1907 -Downlink payload: 0B 00 00 01 ~/~/AT+EXT=0,0,1 Enable current acquisition 1908 - 1909 -Downlink payload: 0B 01 00 01 ~/~/AT+EXT=1,0,1 Enable Counting Support and Current acquisition 1910 - 1911 - 1912 -(% style="color:blue" %)**Set the pulse count value:** 1913 - 1914 -* (% style="color:#037691" %)**AT Command:** 1915 - 1916 -(% style="color:#4472c4" %)**AT+SETCNT=aa **(%%)~/~/ Set the pulse count value. 1917 - 1918 -**Example:** 1919 - 1920 -AT+SETCNT=100 (% style="display:none" %) (%%)~/~/ Set the pulse count to 100.(% style="display:none" %) 1921 - 1922 -* (% style="color:#037691" %)**Downlink Command: 0x0C** 1923 - 1924 -Format: Command Code (0x0C) followed by 4 bytes. 1925 - 1926 -**Example:** 1927 - 1928 -Downlink Payload: 0C 00 00 00 64 ~/~/ AT+SETCNT=100 1929 - 1930 - 1931 -(% style="color:blue" %)**Connect counting sensor:** 1932 - 1933 -The counting sensor cables are connected to the **3V3 pin** and **GPIO_EXTI** pin of the **SIB v1.3** motherboard. 1934 - 1935 -[[image:image-20250519110640-1.jpeg||height="318" width="708"]] 1936 - 1937 - 1938 -(% id="cke_bm_1699404S" style="color:blue; display:none" %)** **(% style="color:blue" %)**Connect Voltage output sensor:** 1939 - 1940 -Example: 1941 - 1942 -**RED <~-~-~-~-> VDC_INPUT** 1943 - 1944 -**BLACK <~-~-~-~-~-~-> GND** 1945 - 1946 -[[image:image-20250519111415-3.jpeg||height="338" width="710"]] 1947 - 1948 - 1949 -(% style="color:blue" %)**Connect Current output sensor:** 1950 - 1951 -Example: 1952 - 1953 -**RED <~-~-~-~-~-~-~-~--> IDC_INPUT** 1954 - 1955 -**BLACK <~-~-~-~-~-~-> GND** 1956 - 1957 -[[image:image-20250519111732-4.jpeg||height="373" width="708"]] 1958 - 1959 - 1960 - 1961 1961 = 4. Battery & Power Consumption = 1962 1962 1963 1963
- 1747289896656-580.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -37.0 KB - Content
- image-20250329133856-1.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -31.2 KB - Content
- image-20250329133946-2.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -29.6 KB - Content
- image-20250329134001-3.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -59.0 KB - Content
- image-20250416150535-1.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -47.6 KB - Content
- image-20250416151346-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -79.6 KB - Content
- image-20250416151406-3.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -44.8 KB - Content
- image-20250416151419-4.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -47.6 KB - Content
- image-20250416154628-5.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -40.4 KB - Content
- image-20250416154700-6.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -65.6 KB - Content
- image-20250416154716-7.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -50.8 KB - Content
- image-20250516100849-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -37.2 KB - Content
- image-20250516103205-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -37.3 KB - Content
- image-20250516103652-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -14.5 KB - Content
- image-20250516144559-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -55.1 KB - Content
- image-20250516145402-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -9.6 KB - Content
- image-20250519110640-1.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -230.2 KB - Content
- image-20250519111322-2.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -228.0 KB - Content
- image-20250519111415-3.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -192.7 KB - Content
- image-20250519111732-4.jpeg
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -193.7 KB - Content
- image-20250605091006-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -37.1 KB - Content
- image-20250609134137-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -48.0 KB - Content
- image-20250609134901-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -16.6 KB - Content
- image-20250609141343-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.ting - Size
-
... ... @@ -1,1 +1,0 @@ 1 -76.1 KB - Content