Changes for page SDI-12-LB/LS -- SDI-12 to LoRaWAN Converter User Manual
Last modified by Xiaoling on 2025/04/25 08:58
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 == ... ... @@ -79,6 +79,8 @@ 79 79 (% style="color:#037691" %)**Common DC Characteristics:** 80 80 81 81 * Supply Voltage: 2.5v ~~ 3.6v 82 +* Support current: 5V 300mA 83 + 12V 100mA 82 82 * Operating Temperature: -40 ~~ 85°C 83 83 84 84 (% style="color:#037691" %)**LoRa Spec:** ... ... @@ -119,7 +119,7 @@ 119 119 120 120 121 121 122 -[[image:1675212538524-889.png]] 124 +[[image:1675212538524-889.png||_mstalt="298272"]] 123 123 124 124 125 125 == 1.5 Sleep mode and working mode == ... ... @@ -133,7 +133,7 @@ 133 133 == 1.6 Button & LEDs == 134 134 135 135 136 -[[image:1675212633011-651.png]] 138 +[[image:1675212633011-651.png||_mstalt="291538"]] 137 137 138 138 139 139 (% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %) ... ... @@ -154,7 +154,7 @@ 154 154 == 1.7 Pin Mapping == 155 155 156 156 157 -[[image:1675213198663-754.png]] 159 +[[image:1675213198663-754.png||_mstalt="297167"]] 158 158 159 159 160 160 == 1.8 BLE connection == ... ... @@ -174,11 +174,11 @@ 174 174 == 1.9 Mechanical == 175 175 176 176 177 -[[image:image-20230201090139-2.png]] 179 +[[image:image-20230201090139-2.png||_mstalt="428623"]] 178 178 179 -[[image:image-20230201090139-3.png]] 181 +[[image:image-20230201090139-3.png||_mstalt="428987"]] 180 180 181 -[[image:image-20230201090139-4.png]] 183 +[[image:image-20230201090139-4.png||_mstalt="429351"]] 182 182 183 183 184 184 = 2. Configure SDI-12 to connect to LoRaWAN network = ... ... @@ -195,7 +195,7 @@ 195 195 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. 196 196 197 197 198 -[[image:image-20230201090528-5.png||height="465" width="1111"]] 200 +[[image:image-20230201090528-5.png||_mstalt="430300" height="465" width="1111"]] 199 199 200 200 201 201 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. ... ... @@ -206,7 +206,7 @@ 206 206 Each SDI-12-LB is shipped with a sticker with the default device EUI as below: 207 207 208 208 209 -[[image:image-20230201152430-20.jpeg]] 211 +[[image:image-20230201152430-20.jpeg||_mstalt="492245"]] 210 210 211 211 212 212 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: ... ... @@ -214,24 +214,24 @@ 214 214 215 215 (% style="color:blue" %)**Register the device** 216 216 217 -[[image:1675213652444-622.png]] 219 +[[image:1675213652444-622.png||_mstalt="293657"]] 218 218 219 219 220 220 (% style="color:blue" %)**Add APP EUI and DEV EUI** 221 221 222 222 223 -[[image:1675213661769-223.png]] 225 +[[image:1675213661769-223.png||_mstalt="295217"]] 224 224 225 225 226 226 (% style="color:blue" %)**Add APP EUI in the application** 227 227 228 228 229 -[[image:1675213675852-577.png]] 231 +[[image:1675213675852-577.png||_mstalt="297947"]] 230 230 231 231 232 232 (% style="color:blue" %)**Add APP KEY** 233 233 234 -[[image:1675213686734-883.png]] 236 +[[image:1675213686734-883.png||_mstalt="298064"]] 235 235 236 236 237 237 (% style="color:blue" %)**Step 2**(%%): Activate on SDI-12-LB ... ... @@ -242,7 +242,7 @@ 242 242 (% 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. 243 243 244 244 245 -[[image:1675213704414-644.png]] 247 +[[image:1675213704414-644.png||_mstalt="293748"]] 246 246 247 247 248 248 == 2.3 SDI-12 Related Commands == ... ... @@ -261,10 +261,10 @@ 261 261 The following is the display information on the serial port and the server. 262 262 263 263 264 -[[image:image-20230201091027-6.png]] 266 +[[image:image-20230201091027-6.png||_mstalt="429065"]] 265 265 266 266 267 -[[image:image-20230201091027-7.png||height="261" width="1179"]] 269 +[[image:image-20230201091027-7.png||_mstalt="429429" height="261" width="1179"]] 268 268 269 269 270 270 ... ... @@ -282,10 +282,10 @@ 282 282 The following is the display information on the serial port and the server. 283 283 284 284 285 -[[image:image-20230201091257-8.png]] 287 +[[image:image-20230201091257-8.png||_mstalt="431392"]] 286 286 287 287 288 -[[image:image-20230201091257-9.png||height="225" width="1242"]] 290 +[[image:image-20230201091257-9.png||_mstalt="431756" height="225" width="1242"]] 289 289 290 290 291 291 ==== (% style="color:blue" %)**aM!,aMC!, aM1!- aM9!, aMC1!- aMC9!**(%%) ==== ... ... @@ -318,10 +318,10 @@ 318 318 The following is the display information on the serial port and the server. 319 319 320 320 321 -[[image:image-20230201091630-10.png]] 323 +[[image:image-20230201091630-10.png||_mstalt="449995"]] 322 322 323 323 324 -[[image:image-20230201091630-11.png||height="247" width="1165"]] 326 +[[image:image-20230201091630-11.png||_mstalt="450372" height="247" width="1165"]] 325 325 326 326 327 327 ... ... @@ -355,10 +355,10 @@ 355 355 The following is the display information on the serial port and the server. 356 356 357 357 358 -[[image:image-20230201091954-12.png]] 360 +[[image:image-20230201091954-12.png||_mstalt="453687"]] 359 359 360 360 361 -[[image:image-20230201091954-13.png||height="203" width="1117"]] 363 +[[image:image-20230201091954-13.png||_mstalt="454064" height="203" width="1117"]] 362 362 363 363 364 364 ... ... @@ -388,10 +388,10 @@ 388 388 The following is the display information on the serial port and the server. 389 389 390 390 391 -[[image:image-20230201092208-14.png]] 393 +[[image:image-20230201092208-14.png||_mstalt="452283"]] 392 392 393 393 394 -[[image:image-20230201092208-15.png||height="214" width="1140"]] 396 +[[image:image-20230201092208-15.png||_mstalt="452660" height="214" width="1140"]] 395 395 396 396 397 397 === 2.3.2 Advance SDI-12 Debug command === ... ... @@ -423,10 +423,10 @@ 423 423 The following is the display information on the serial port and the server. 424 424 425 425 426 -[[image:image-20230201092355-16.png]] 428 +[[image:image-20230201092355-16.png||_mstalt="453960"]] 427 427 428 428 429 -[[image:image-20230201092355-17.png||height="426" width="1135"]] 431 +[[image:image-20230201092355-17.png||_mstalt="454337" height="426" width="1135"]] 430 430 431 431 432 432 === 2.3.3 Convert ASCII to String === ... ... @@ -441,12 +441,12 @@ 441 441 442 442 1) AT+CONVFORM=0, string Convert String from String to ASCII 443 443 444 -[[image:1675214845056-885.png]] 446 +[[image:1675214845056-885.png||_mstalt="297622"]] 445 445 446 446 447 447 2) AT+CONVFORM=1, ASCII Convert ASCII to String. 448 448 449 -[[image:1675214856590-846.png]] 451 +[[image:1675214856590-846.png||_mstalt="297739"]] 450 450 451 451 452 452 === 2.3.4 Define periodically SDI-12 commands and uplink. === ... ... @@ -523,7 +523,7 @@ 523 523 524 524 (% style="color:blue" %)**Example:** 525 525 526 -[[image:image-20230201094129-18.png]] 528 +[[image:image-20230201094129-18.png||_mstalt="455065"]] 527 527 528 528 529 529 ... ... @@ -550,7 +550,7 @@ 550 550 551 551 Below shows a screen shot how the results combines together to a uplink payload. 552 552 553 -[[image:1675215745275-920.png]] 555 +[[image:1675215745275-920.png||_mstalt="295334"]] 554 554 555 555 556 556 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. ... ... @@ -561,7 +561,7 @@ 561 561 (% 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. 562 562 563 563 564 -[[image:1675215782925-448.png]] 566 +[[image:1675215782925-448.png||_mstalt="297466"]] 565 565 566 566 567 567 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. ... ... @@ -579,7 +579,7 @@ 579 579 Where PAYVER is defined by AT+PAYVER, below is an example screen shot. 580 580 581 581 582 -[[image:1675215828102-844.png]] 584 +[[image:1675215828102-844.png||_mstalt="294645"]] 583 583 584 584 585 585 (% style="color:#4f81bd" %)**AT+DATAUP=1** ... ... @@ -594,7 +594,7 @@ 594 594 1. PAYLOAD# (1 byte): Number of this uplink. (from 0,1,2,3…,to PAYLOAD COUNT) 595 595 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 596 596 597 -[[image:1675215848113-696.png]] 599 +[[image:1675215848113-696.png||_mstalt="296998"]] 598 598 599 599 600 600 (% style="color:red" %)**Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below:** ... ... @@ -625,7 +625,7 @@ 625 625 626 626 Example parse in TTNv3 627 627 628 -[[image:1675215946738-635.png]] 630 +[[image:1675215946738-635.png||_mstalt="297778"]] 629 629 630 630 631 631 (% style="color:#037691" %)**Sensor Model**(%%): For SDI-12-LB, this value is 0x17 ... ... @@ -703,7 +703,7 @@ 703 703 Payload length in server,server will show payload not provided in the LoRaWAN server. 704 704 ))) 705 705 706 -[[image:1675216282284-923.png]] 708 +[[image:1675216282284-923.png||_mstalt="295633"]] 707 707 708 708 709 709 === 2.4.3 Battery Info === ... ... @@ -738,7 +738,7 @@ 738 738 739 739 While using TTN network, you can add the payload format to decode the payload. 740 740 741 -[[image:1675216779406-595.png]] 743 +[[image:1675216779406-595.png||_mstalt="298376"]] 742 742 743 743 744 744 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. ... ... @@ -761,7 +761,7 @@ 761 761 762 762 COM port and SDI-12 sensor communication converted to SDI-12-LB and SDI-12 sensor communication. 763 763 764 -[[image:image-20230222143809-1.png||height="564" width="729"]] 766 +[[image:image-20230222143809-1.png||_mstalt="429962" height="564" width="729"]] 765 765 766 766 767 767 (% style="color:blue" %)**1) The AT+COMMANDx command is applied to the red arrow part, and sends the SDI12 command to the SDI12 sensor:** ... ... @@ -803,19 +803,19 @@ 803 803 804 804 a. The first reply, all 34 characters: ”113TRUEBNERSMT100038220303182331<CR><LF>” 805 805 806 -Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=34,2,1~~34**; 808 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=34,2,1~~34**(% style="color:#037691" %); 807 807 808 808 b. The sixth reply, all 31 characters:”1+19210+1.04+0.00+22.49+11.75<CR><LF>” 809 809 810 -Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**; 812 +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 c. The eighth reply, all 31 characters:”2+18990+1.08+0.00+22.24+11.80<CR><LF>” 813 813 814 -Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**; 816 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**(% style="color:#037691" %); 815 815 816 816 d. The tenth reply, all 15 characters:”3-2919.8+24.0<CR><LF>” 817 817 818 -Cut out all characters: (% style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=15,2,1~~15**; 820 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=15,2,1~~15**(% style="color:#037691" %); 819 819 820 820 e. The twelfth reply, all 25 characters:”4+30.8+22.84+4.7+954.38<CR><LF>” 821 821 ... ... @@ -1092,7 +1092,7 @@ 1092 1092 1093 1093 The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance. 1094 1094 1095 -[[image:1675234124233-857.png]] 1097 +[[image:1675234124233-857.png||_mstalt="295035"]] 1096 1096 1097 1097 1098 1098 Minimum Working Voltage for the SDI-12-LB: ... ... @@ -1126,7 +1126,7 @@ 1126 1126 And the Life expectation in difference case will be shown on the right. 1127 1127 1128 1128 1129 -[[image:1675234155374-163.png]] 1131 +[[image:1675234155374-163.png||_mstalt="294411"]] 1130 1130 1131 1131 1132 1132 The battery related documents as below: ... ... @@ -1135,7 +1135,7 @@ 1135 1135 * [[Lithium-Thionyl Chloride Battery datasheet, Tech Spec>>https://www.dropbox.com/sh/d4oyfnp8o94180o/AABQewCNSh5GPeQH86UxRgQQa?dl=0]] 1136 1136 * [[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]] 1137 1137 1138 -[[image:image-20230201145019-19.png]] 1140 +[[image:image-20230201145019-19.png||_mstalt="453947"]] 1139 1139 1140 1140 1141 1141 === 4.3.1 Battery Note === ... ... @@ -1216,6 +1216,7 @@ 1216 1216 ))) 1217 1217 1218 1218 1221 + 1219 1219 = 9. Packing Info = 1220 1220 1221 1221