Changes for page SDI-12-LB/LS -- SDI-12 to LoRaWAN Converter User Manual
Last modified by Xiaoling on 2025/04/25 08:58
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,5 +1,5 @@ 1 1 (% style="text-align:center" %) 2 -[[image:image-20230131183542-1.jpeg||height="694" width="694"]] 2 +[[image:image-20230131183542-1.jpeg||_mstalt="470678" height="694" width="694"]] 3 3 4 4 **Table of Contents:** 5 5 ... ... @@ -47,7 +47,7 @@ 47 47 ))) 48 48 49 49 50 -[[image:image-20230201084414-1.png||height="464" width="1108"]] 50 +[[image:image-20230201084414-1.png||_mstalt="427765" height="464" width="1108"]] 51 51 52 52 53 53 == 1.2 Features == ... ... @@ -117,7 +117,7 @@ 117 117 118 118 119 119 120 -[[image:1675212538524-889.png]] 120 +[[image:1675212538524-889.png||_mstalt="298272"]] 121 121 122 122 123 123 == 1.5 Sleep mode and working mode == ... ... @@ -131,7 +131,7 @@ 131 131 == 1.6 Button & LEDs == 132 132 133 133 134 -[[image:1675212633011-651.png]] 134 +[[image:1675212633011-651.png||_mstalt="291538"]] 135 135 136 136 137 137 (% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %) ... ... @@ -150,7 +150,7 @@ 150 150 == 1.7 Pin Mapping == 151 151 152 152 153 -[[image:1675213198663-754.png]] 153 +[[image:1675213198663-754.png||_mstalt="297167"]] 154 154 155 155 156 156 == 1.8 BLE connection == ... ... @@ -170,11 +170,11 @@ 170 170 == 1.9 Mechanical == 171 171 172 172 173 -[[image:image-20230201090139-2.png]] 173 +[[image:image-20230201090139-2.png||_mstalt="428623"]] 174 174 175 -[[image:image-20230201090139-3.png]] 175 +[[image:image-20230201090139-3.png||_mstalt="428987"]] 176 176 177 -[[image:image-20230201090139-4.png]] 177 +[[image:image-20230201090139-4.png||_mstalt="429351"]] 178 178 179 179 180 180 = 2. Configure SDI-12 to connect to LoRaWAN network = ... ... @@ -191,7 +191,7 @@ 191 191 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. 192 192 193 193 194 -[[image:image-20230201090528-5.png||height="465" width="1111"]] 194 +[[image:image-20230201090528-5.png||_mstalt="430300" height="465" width="1111"]] 195 195 196 196 197 197 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. ... ... @@ -202,7 +202,7 @@ 202 202 Each SDI-12-LB is shipped with a sticker with the default device EUI as below: 203 203 204 204 205 -[[image:image-20230201152430-20.jpeg]] 205 +[[image:image-20230201152430-20.jpeg||_mstalt="492245"]] 206 206 207 207 208 208 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: ... ... @@ -210,24 +210,24 @@ 210 210 211 211 (% style="color:blue" %)**Register the device** 212 212 213 -[[image:1675213652444-622.png]] 213 +[[image:1675213652444-622.png||_mstalt="293657"]] 214 214 215 215 216 216 (% style="color:blue" %)**Add APP EUI and DEV EUI** 217 217 218 218 219 -[[image:1675213661769-223.png]] 219 +[[image:1675213661769-223.png||_mstalt="295217"]] 220 220 221 221 222 222 (% style="color:blue" %)**Add APP EUI in the application** 223 223 224 224 225 -[[image:1675213675852-577.png]] 225 +[[image:1675213675852-577.png||_mstalt="297947"]] 226 226 227 227 228 228 (% style="color:blue" %)**Add APP KEY** 229 229 230 -[[image:1675213686734-883.png]] 230 +[[image:1675213686734-883.png||_mstalt="298064"]] 231 231 232 232 233 233 (% style="color:blue" %)**Step 2**(%%): Activate on SDI-12-LB ... ... @@ -238,7 +238,7 @@ 238 238 (% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:blue" %)**OTA mode** (%%)for 3 seconds. And then start to JOIN LoRaWAN network. (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 239 239 240 240 241 -[[image:1675213704414-644.png]] 241 +[[image:1675213704414-644.png||_mstalt="293748"]] 242 242 243 243 244 244 == 2.3 SDI-12 Related Commands == ... ... @@ -257,10 +257,10 @@ 257 257 The following is the display information on the serial port and the server. 258 258 259 259 260 -[[image:image-20230201091027-6.png]] 260 +[[image:image-20230201091027-6.png||_mstalt="429065"]] 261 261 262 262 263 -[[image:image-20230201091027-7.png||height="261" width="1179"]] 263 +[[image:image-20230201091027-7.png||_mstalt="429429" height="261" width="1179"]] 264 264 265 265 266 266 ... ... @@ -278,10 +278,10 @@ 278 278 The following is the display information on the serial port and the server. 279 279 280 280 281 -[[image:image-20230201091257-8.png]] 281 +[[image:image-20230201091257-8.png||_mstalt="431392"]] 282 282 283 283 284 -[[image:image-20230201091257-9.png||height="225" width="1242"]] 284 +[[image:image-20230201091257-9.png||_mstalt="431756" height="225" width="1242"]] 285 285 286 286 287 287 ==== (% style="color:blue" %)**aM!,aMC!, aM1!- aM9!, aMC1!- aMC9!**(%%) ==== ... ... @@ -314,10 +314,10 @@ 314 314 The following is the display information on the serial port and the server. 315 315 316 316 317 -[[image:image-20230201091630-10.png]] 317 +[[image:image-20230201091630-10.png||_mstalt="449995"]] 318 318 319 319 320 -[[image:image-20230201091630-11.png||height="247" width="1165"]] 320 +[[image:image-20230201091630-11.png||_mstalt="450372" height="247" width="1165"]] 321 321 322 322 323 323 ... ... @@ -351,10 +351,10 @@ 351 351 The following is the display information on the serial port and the server. 352 352 353 353 354 -[[image:image-20230201091954-12.png]] 354 +[[image:image-20230201091954-12.png||_mstalt="453687"]] 355 355 356 356 357 -[[image:image-20230201091954-13.png||height="203" width="1117"]] 357 +[[image:image-20230201091954-13.png||_mstalt="454064" height="203" width="1117"]] 358 358 359 359 360 360 ... ... @@ -384,10 +384,10 @@ 384 384 The following is the display information on the serial port and the server. 385 385 386 386 387 -[[image:image-20230201092208-14.png]] 387 +[[image:image-20230201092208-14.png||_mstalt="452283"]] 388 388 389 389 390 -[[image:image-20230201092208-15.png||height="214" width="1140"]] 390 +[[image:image-20230201092208-15.png||_mstalt="452660" height="214" width="1140"]] 391 391 392 392 393 393 === 2.3.2 Advance SDI-12 Debug command === ... ... @@ -419,10 +419,10 @@ 419 419 The following is the display information on the serial port and the server. 420 420 421 421 422 -[[image:image-20230201092355-16.png]] 422 +[[image:image-20230201092355-16.png||_mstalt="453960"]] 423 423 424 424 425 -[[image:image-20230201092355-17.png||height="426" width="1135"]] 425 +[[image:image-20230201092355-17.png||_mstalt="454337" height="426" width="1135"]] 426 426 427 427 428 428 === 2.3.3 Convert ASCII to String === ... ... @@ -437,12 +437,12 @@ 437 437 438 438 1) AT+CONVFORM=0, string Convert String from String to ASCII 439 439 440 -[[image:1675214845056-885.png]] 440 +[[image:1675214845056-885.png||_mstalt="297622"]] 441 441 442 442 443 443 2) AT+CONVFORM=1, ASCII Convert ASCII to String. 444 444 445 -[[image:1675214856590-846.png]] 445 +[[image:1675214856590-846.png||_mstalt="297739"]] 446 446 447 447 448 448 === 2.3.4 Define periodically SDI-12 commands and uplink. === ... ... @@ -519,7 +519,7 @@ 519 519 520 520 (% style="color:blue" %)**Example:** 521 521 522 -[[image:image-20230201094129-18.png]] 522 +[[image:image-20230201094129-18.png||_mstalt="455065"]] 523 523 524 524 525 525 ... ... @@ -546,7 +546,7 @@ 546 546 547 547 Below shows a screen shot how the results combines together to a uplink payload. 548 548 549 -[[image:1675215745275-920.png]] 549 +[[image:1675215745275-920.png||_mstalt="295334"]] 550 550 551 551 552 552 If user don't want to use DATACUT for some command, he simply want to uplink all returns. AT+ALLDATAMOD can be set to 1. ... ... @@ -557,7 +557,7 @@ 557 557 (% style="color:#4f81bd" %)**For example: **(%%) as below photo, AT+ALLDATAMOD=1, but AT+DATACUT1 has been set, AT+DATACUT1 will be still effect the result. 558 558 559 559 560 -[[image:1675215782925-448.png]] 560 +[[image:1675215782925-448.png||_mstalt="297466"]] 561 561 562 562 563 563 If AT+ALLDATAMOD=1, (% style="color:#4f81bd" %)**FX,X**(%%) will be added in the payload, FX specify which command is used and X specify the length of return. for example in above screen, F1 05 means the return is from AT+COMMAND1 and the return is 5 bytes. ... ... @@ -575,7 +575,7 @@ 575 575 Where PAYVER is defined by AT+PAYVER, below is an example screen shot. 576 576 577 577 578 -[[image:1675215828102-844.png]] 578 +[[image:1675215828102-844.png||_mstalt="294645"]] 579 579 580 580 581 581 (% style="color:#4f81bd" %)**AT+DATAUP=1** ... ... @@ -590,7 +590,7 @@ 590 590 1. PAYLOAD# (1 byte): Number of this uplink. (from 0,1,2,3…,to PAYLOAD COUNT) 591 591 1. DATA: Valid value: max 6 bytes(US915 version here, Notice*!) for each uplink so each uplink <= 11 bytes. For the last uplink, DATA will might less than 6 bytes 592 592 593 -[[image:1675215848113-696.png]] 593 +[[image:1675215848113-696.png||_mstalt="296998"]] 594 594 595 595 596 596 (% style="color:red" %)**Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below:** ... ... @@ -621,7 +621,7 @@ 621 621 622 622 Example parse in TTNv3 623 623 624 -[[image:1675215946738-635.png]] 624 +[[image:1675215946738-635.png||_mstalt="297778"]] 625 625 626 626 627 627 (% style="color:#037691" %)**Sensor Model**(%%): For SDI-12-LB, this value is 0x17 ... ... @@ -699,7 +699,7 @@ 699 699 Payload length in server,server will show payload not provided in the LoRaWAN server. 700 700 ))) 701 701 702 -[[image:1675216282284-923.png]] 702 +[[image:1675216282284-923.png||_mstalt="295633"]] 703 703 704 704 705 705 === 2.4.3 Battery Info === ... ... @@ -734,7 +734,7 @@ 734 734 735 735 While using TTN network, you can add the payload format to decode the payload. 736 736 737 -[[image:1675216779406-595.png]] 737 +[[image:1675216779406-595.png||_mstalt="298376"]] 738 738 739 739 740 740 There is no fix payload decoder in LoRaWAN server because the SDI-12 sensors returns are different. User need to write the decoder themselves for their case. ... ... @@ -757,7 +757,7 @@ 757 757 758 758 COM port and SDI-12 sensor communication converted to SDI-12-LB and SDI-12 sensor communication. 759 759 760 -[[image:image-20230222143809-1.png||height="564" width="729"]] 760 +[[image:image-20230222143809-1.png||_mstalt="429962" height="564" width="729"]] 761 761 762 762 763 763 (% style="color:blue" %)**1) The AT+COMMANDx command is applied to the red arrow part, and sends the SDI12 command to the SDI12 sensor:** ... ... @@ -799,19 +799,19 @@ 799 799 800 800 a. The first reply, all 34 characters: ”113TRUEBNERSMT100038220303182331<CR><LF>” 801 801 802 -Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=34,2,1~~34**; 802 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=34,2,1~~34**(% style="color:#037691" %); 803 803 804 804 b. The sixth reply, all 31 characters:”1+19210+1.04+0.00+22.49+11.75<CR><LF>” 805 805 806 -Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**; 806 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**(% style="color:#037691" %); 807 807 808 808 c. The eighth reply, all 31 characters:”2+18990+1.08+0.00+22.24+11.80<CR><LF>” 809 809 810 -Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**; 810 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**(% style="color:#037691" %); 811 811 812 812 d. The tenth reply, all 15 characters:”3-2919.8+24.0<CR><LF>” 813 813 814 -Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=15,2,1~~15**; 814 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=15,2,1~~15**(% style="color:#037691" %); 815 815 816 816 e. The twelfth reply, all 25 characters:”4+30.8+22.84+4.7+954.38<CR><LF>” 817 817 ... ... @@ -1078,7 +1078,7 @@ 1078 1078 1079 1079 The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance. 1080 1080 1081 -[[image:1675234124233-857.png]] 1081 +[[image:1675234124233-857.png||_mstalt="295035"]] 1082 1082 1083 1083 1084 1084 Minimum Working Voltage for the SDI-12-LB: ... ... @@ -1112,7 +1112,7 @@ 1112 1112 And the Life expectation in difference case will be shown on the right. 1113 1113 1114 1114 1115 -[[image:1675234155374-163.png]] 1115 +[[image:1675234155374-163.png||_mstalt="294411"]] 1116 1116 1117 1117 1118 1118 The battery related documents as below: ... ... @@ -1121,7 +1121,7 @@ 1121 1121 * [[Lithium-Thionyl Chloride Battery datasheet, Tech Spec>>https://www.dropbox.com/sh/d4oyfnp8o94180o/AABQewCNSh5GPeQH86UxRgQQa?dl=0]] 1122 1122 * [[Lithium-ion Battery-Capacitor datasheet>>https://www.dropbox.com/s/791gjes2lcbfi1p/SPC_1520_datasheet.jpg?dl=0]], [[Tech Spec>>https://www.dropbox.com/s/4pkepr9qqqvtzf2/SPC1520%20Technical%20Specification20171123.pdf?dl=0]] 1123 1123 1124 -[[image:image-20230201145019-19.png]] 1124 +[[image:image-20230201145019-19.png||_mstalt="453947"]] 1125 1125 1126 1126 1127 1127 === 4.3.1 Battery Note ===