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 == ... ... @@ -65,6 +65,7 @@ 65 65 * Downlink to change configure 66 66 * 8500mAh Battery for long term use 67 67 68 + 68 68 == 1.3 Specification == 69 69 70 70 ... ... @@ -77,6 +77,8 @@ 77 77 (% style="color:#037691" %)**Common DC Characteristics:** 78 78 79 79 * Supply Voltage: 2.5v ~~ 3.6v 81 +* Support current: 5V 300mA 82 + 12V 100mA 80 80 * Operating Temperature: -40 ~~ 85°C 81 81 82 82 (% style="color:#037691" %)**LoRa Spec:** ... ... @@ -111,11 +111,12 @@ 111 111 * Sleep Mode: 5uA @ 3.3v 112 112 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm 113 113 117 + 114 114 == 1.4 Connect to SDI-12 Sensor == 115 115 116 116 117 117 118 -[[image:1675212538524-889.png]] 122 +[[image:1675212538524-889.png||_mstalt="298272"]] 119 119 120 120 121 121 == 1.5 Sleep mode and working mode == ... ... @@ -129,7 +129,7 @@ 129 129 == 1.6 Button & LEDs == 130 130 131 131 132 -[[image:1675212633011-651.png]] 136 +[[image:1675212633011-651.png||_mstalt="291538"]] 133 133 134 134 135 135 (% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %) ... ... @@ -145,10 +145,11 @@ 145 145 ))) 146 146 |(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:109px" %)Deactivate Device|(% style="width:231px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means SDI-12-LB is in Deep Sleep Mode. 147 147 152 + 148 148 == 1.7 Pin Mapping == 149 149 150 150 151 -[[image:1675213198663-754.png]] 156 +[[image:1675213198663-754.png||_mstalt="297167"]] 152 152 153 153 154 154 == 1.8 BLE connection == ... ... @@ -168,11 +168,11 @@ 168 168 == 1.9 Mechanical == 169 169 170 170 171 -[[image:image-20230201090139-2.png]] 176 +[[image:image-20230201090139-2.png||_mstalt="428623"]] 172 172 173 -[[image:image-20230201090139-3.png]] 178 +[[image:image-20230201090139-3.png||_mstalt="428987"]] 174 174 175 -[[image:image-20230201090139-4.png]] 180 +[[image:image-20230201090139-4.png||_mstalt="429351"]] 176 176 177 177 178 178 = 2. Configure SDI-12 to connect to LoRaWAN network = ... ... @@ -189,7 +189,7 @@ 189 189 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. 190 190 191 191 192 -[[image:image-20230201090528-5.png||height="465" width="1111"]] 197 +[[image:image-20230201090528-5.png||_mstalt="430300" height="465" width="1111"]] 193 193 194 194 195 195 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. ... ... @@ -200,7 +200,7 @@ 200 200 Each SDI-12-LB is shipped with a sticker with the default device EUI as below: 201 201 202 202 203 -[[image:image-20230201152430-20.jpeg]] 208 +[[image:image-20230201152430-20.jpeg||_mstalt="492245"]] 204 204 205 205 206 206 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot: ... ... @@ -208,24 +208,24 @@ 208 208 209 209 (% style="color:blue" %)**Register the device** 210 210 211 -[[image:1675213652444-622.png]] 216 +[[image:1675213652444-622.png||_mstalt="293657"]] 212 212 213 213 214 214 (% style="color:blue" %)**Add APP EUI and DEV EUI** 215 215 216 216 217 -[[image:1675213661769-223.png]] 222 +[[image:1675213661769-223.png||_mstalt="295217"]] 218 218 219 219 220 220 (% style="color:blue" %)**Add APP EUI in the application** 221 221 222 222 223 -[[image:1675213675852-577.png]] 228 +[[image:1675213675852-577.png||_mstalt="297947"]] 224 224 225 225 226 226 (% style="color:blue" %)**Add APP KEY** 227 227 228 -[[image:1675213686734-883.png]] 233 +[[image:1675213686734-883.png||_mstalt="298064"]] 229 229 230 230 231 231 (% style="color:blue" %)**Step 2**(%%): Activate on SDI-12-LB ... ... @@ -236,7 +236,7 @@ 236 236 (% 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. 237 237 238 238 239 -[[image:1675213704414-644.png]] 244 +[[image:1675213704414-644.png||_mstalt="293748"]] 240 240 241 241 242 242 == 2.3 SDI-12 Related Commands == ... ... @@ -255,10 +255,10 @@ 255 255 The following is the display information on the serial port and the server. 256 256 257 257 258 -[[image:image-20230201091027-6.png]] 263 +[[image:image-20230201091027-6.png||_mstalt="429065"]] 259 259 260 260 261 -[[image:image-20230201091027-7.png||height="261" width="1179"]] 266 +[[image:image-20230201091027-7.png||_mstalt="429429" height="261" width="1179"]] 262 262 263 263 264 264 ... ... @@ -276,10 +276,10 @@ 276 276 The following is the display information on the serial port and the server. 277 277 278 278 279 -[[image:image-20230201091257-8.png]] 284 +[[image:image-20230201091257-8.png||_mstalt="431392"]] 280 280 281 281 282 -[[image:image-20230201091257-9.png||height="225" width="1242"]] 287 +[[image:image-20230201091257-9.png||_mstalt="431756" height="225" width="1242"]] 283 283 284 284 285 285 ==== (% style="color:blue" %)**aM!,aMC!, aM1!- aM9!, aMC1!- aMC9!**(%%) ==== ... ... @@ -312,10 +312,10 @@ 312 312 The following is the display information on the serial port and the server. 313 313 314 314 315 -[[image:image-20230201091630-10.png]] 320 +[[image:image-20230201091630-10.png||_mstalt="449995"]] 316 316 317 317 318 -[[image:image-20230201091630-11.png||height="247" width="1165"]] 323 +[[image:image-20230201091630-11.png||_mstalt="450372" height="247" width="1165"]] 319 319 320 320 321 321 ... ... @@ -349,10 +349,10 @@ 349 349 The following is the display information on the serial port and the server. 350 350 351 351 352 -[[image:image-20230201091954-12.png]] 357 +[[image:image-20230201091954-12.png||_mstalt="453687"]] 353 353 354 354 355 -[[image:image-20230201091954-13.png||height="203" width="1117"]] 360 +[[image:image-20230201091954-13.png||_mstalt="454064" height="203" width="1117"]] 356 356 357 357 358 358 ... ... @@ -382,10 +382,10 @@ 382 382 The following is the display information on the serial port and the server. 383 383 384 384 385 -[[image:image-20230201092208-14.png]] 390 +[[image:image-20230201092208-14.png||_mstalt="452283"]] 386 386 387 387 388 -[[image:image-20230201092208-15.png||height="214" width="1140"]] 393 +[[image:image-20230201092208-15.png||_mstalt="452660" height="214" width="1140"]] 389 389 390 390 391 391 === 2.3.2 Advance SDI-12 Debug command === ... ... @@ -417,10 +417,10 @@ 417 417 The following is the display information on the serial port and the server. 418 418 419 419 420 -[[image:image-20230201092355-16.png]] 425 +[[image:image-20230201092355-16.png||_mstalt="453960"]] 421 421 422 422 423 -[[image:image-20230201092355-17.png||height="426" width="1135"]] 428 +[[image:image-20230201092355-17.png||_mstalt="454337" height="426" width="1135"]] 424 424 425 425 426 426 === 2.3.3 Convert ASCII to String === ... ... @@ -435,12 +435,12 @@ 435 435 436 436 1) AT+CONVFORM=0, string Convert String from String to ASCII 437 437 438 -[[image:1675214845056-885.png]] 443 +[[image:1675214845056-885.png||_mstalt="297622"]] 439 439 440 440 441 441 2) AT+CONVFORM=1, ASCII Convert ASCII to String. 442 442 443 -[[image:1675214856590-846.png]] 448 +[[image:1675214856590-846.png||_mstalt="297739"]] 444 444 445 445 446 446 === 2.3.4 Define periodically SDI-12 commands and uplink. === ... ... @@ -517,7 +517,7 @@ 517 517 518 518 (% style="color:blue" %)**Example:** 519 519 520 -[[image:image-20230201094129-18.png]] 525 +[[image:image-20230201094129-18.png||_mstalt="455065"]] 521 521 522 522 523 523 ... ... @@ -544,7 +544,7 @@ 544 544 545 545 Below shows a screen shot how the results combines together to a uplink payload. 546 546 547 -[[image:1675215745275-920.png]] 552 +[[image:1675215745275-920.png||_mstalt="295334"]] 548 548 549 549 550 550 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. ... ... @@ -555,7 +555,7 @@ 555 555 (% 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. 556 556 557 557 558 -[[image:1675215782925-448.png]] 563 +[[image:1675215782925-448.png||_mstalt="297466"]] 559 559 560 560 561 561 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. ... ... @@ -573,7 +573,7 @@ 573 573 Where PAYVER is defined by AT+PAYVER, below is an example screen shot. 574 574 575 575 576 -[[image:1675215828102-844.png]] 581 +[[image:1675215828102-844.png||_mstalt="294645"]] 577 577 578 578 579 579 (% style="color:#4f81bd" %)**AT+DATAUP=1** ... ... @@ -588,7 +588,7 @@ 588 588 1. PAYLOAD# (1 byte): Number of this uplink. (from 0,1,2,3…,to PAYLOAD COUNT) 589 589 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 590 590 591 -[[image:1675215848113-696.png]] 596 +[[image:1675215848113-696.png||_mstalt="296998"]] 592 592 593 593 594 594 (% style="color:red" %)**Notice: the Max bytes is according to the max support bytes in different Frequency Bands for lowest SF. As below:** ... ... @@ -619,7 +619,7 @@ 619 619 620 620 Example parse in TTNv3 621 621 622 -[[image:1675215946738-635.png]] 627 +[[image:1675215946738-635.png||_mstalt="297778"]] 623 623 624 624 625 625 (% style="color:#037691" %)**Sensor Model**(%%): For SDI-12-LB, this value is 0x17 ... ... @@ -697,7 +697,7 @@ 697 697 Payload length in server,server will show payload not provided in the LoRaWAN server. 698 698 ))) 699 699 700 -[[image:1675216282284-923.png]] 705 +[[image:1675216282284-923.png||_mstalt="295633"]] 701 701 702 702 703 703 === 2.4.3 Battery Info === ... ... @@ -732,7 +732,7 @@ 732 732 733 733 While using TTN network, you can add the payload format to decode the payload. 734 734 735 -[[image:1675216779406-595.png]] 740 +[[image:1675216779406-595.png||_mstalt="298376"]] 736 736 737 737 738 738 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. ... ... @@ -745,7 +745,7 @@ 745 745 746 746 The SDI-12-LB by default uplink the sensor data every 20 minutes. User can change this interval by AT Command or LoRaWAN Downlink Command. See this link: 747 747 748 -[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.1ChangeUplinkInterval>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.1ChangeUplinkInterval]] ]]753 +[[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.1ChangeUplinkInterval>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.1ChangeUplinkInterval]] 749 749 750 750 751 751 == 2.6 Examples To Set SDI commands. == ... ... @@ -752,68 +752,69 @@ 752 752 753 753 === 2.6.1 Examples 1 === 754 754 760 + 755 755 COM port and SDI-12 sensor communication converted to SDI-12-LB and SDI-12 sensor communication. 756 756 757 -[[image:image-20230222143809-1.png||height="564" width="729"]] 763 +[[image:image-20230222143809-1.png||_mstalt="429962" height="564" width="729"]] 758 758 759 -1)The AT+COMMANDx command is applied to the red arrow part, and sends the SDI12 command to the SDI12 sensor: 760 760 761 - a.Sendthefirstcommand andget thefirstreply:766 +(% style="color:blue" %)**1) The AT+COMMANDx command is applied to the red arrow part, and sends the SDI12 command to the SDI12 sensor:** 762 762 763 - AT+COMMANDx=1I!,0,0,1768 +a. Send the first command and get the first reply: 764 764 765 - b.Sendthesecond command and getthesecond reply:770 +(% style="color:#037691" %)**AT+COMMANDx=1I!,0,0,1** 766 766 767 - AT+COMMANDx=2I!,0,0,1772 +b. Send the second command and get the second reply: 768 768 769 - c.Sendthethirdcommand and get the thirdreply:774 +(% style="color:#037691" %)**AT+COMMANDx=2I!,0,0,1** 770 770 771 - AT+COMMANDx=3I!,0,0,1776 +c. Send the third command and get the third reply: 772 772 773 - d.Sendthefourthcommand and get the fourthreply:778 +(% style="color:#037691" %)**AT+COMMANDx=3I!,0,0,1** 774 774 775 - AT+COMMANDx=4I!,0,0,1780 +d. Send the fourth command and get the fourth reply: 776 776 777 - e.Sendthefifthcommand plus the sixth command,get the sixth reply:782 +(% style="color:#037691" %)**AT+COMMANDx=4I!,0,0,1** 778 778 779 - AT+COMMANDx=1M!,2,1,1784 +e. Send the fifth command plus the sixth command, get the sixth reply: 780 780 781 - f.Sendtheseventh command plus theeighthcommand, get the eighth reply:786 +(% style="color:#037691" %)**AT+COMMANDx=1M!,2,1,1** 782 782 783 - AT+COMMANDx=2M!,2,1,1788 +f. Send the seventh command plus the eighth command, get the eighth reply: 784 784 785 - g.Sendtheninthcommand plus the tenth command, get the tenthreply:790 +(% style="color:#037691" %)**AT+COMMANDx=2M!,2,1,1** 786 786 787 - AT+COMMANDx=3M!,1,1,1792 +g. Send the ninth command plus the tenth command, get the tenth reply: 788 788 789 - h.Sendthe eleventhcommand plus the twelfth command, get the twelfthreply:794 +(% style="color:#037691" %)**AT+COMMANDx=3M!,1,1,1** 790 790 791 - AT+COMMANDx=4M!,1,1,1796 +h. Send the eleventh command plus the twelfth command, get the twelfth reply: 792 792 798 +(% style="color:#037691" %)**AT+COMMANDx=4M!,1,1,1** 793 793 794 -2) The AT+DATACUTx command is applied to the green arrow part, receiving and cut out data from the SDI12 sensor: 795 795 796 - a.Thefirst reply, all34characters: ”113TRUEBNERSMT100038220303182331<CR><LF>”801 +(% style="color:blue" %)**2) The AT+DATACUTx command is applied to the green arrow part, receiving and cut out data from the SDI12 sensor:** 797 797 798 - Cutout all characters:AT+ALLDATAMOD=1or AT+DATACUTx=34,2,1~~34;803 +a. The first reply, all 34 characters: ”113TRUEBNERSMT100038220303182331<CR><LF>” 799 799 805 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=34,2,1~~34**(% style="color:#037691" %); 806 + 800 800 b. The sixth reply, all 31 characters:”1+19210+1.04+0.00+22.49+11.75<CR><LF>” 801 801 802 -Cut out all characters: AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31; 809 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31**(% style="color:#037691" %); 803 803 804 804 c. The eighth reply, all 31 characters:”2+18990+1.08+0.00+22.24+11.80<CR><LF>” 805 805 806 -Cut out all characters: AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31; 813 +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 d. The tenth reply, all 15 characters:”3-2919.8+24.0<CR><LF>” 809 809 810 -Cut out all characters: AT+ALLDATAMOD=1 or AT+DATACUTx=15,2,1~~15; 817 +Cut out all characters: (% _mstmutation="1" style="color:#037691" %)**AT+ALLDATAMOD=1 or AT+DATACUTx=15,2,1~~15**(% style="color:#037691" %); 811 811 812 812 e. The twelfth reply, all 25 characters:”4+30.8+22.84+4.7+954.38<CR><LF>” 813 813 814 -Partial cut, the cut sensor address and the first two parameters:AT+DATACUTx=25,2,1~~12, cut out the character field ” 4+30.8+22.84”. 821 +Partial cut, the cut sensor address and the first two parameters:(% style="color:#037691" %)**AT+DATACUTx=25,2,1~~12, cut out the character field ” 4+30.8+22.84”**. 815 815 816 -== == 817 817 818 818 == 2.7 Frequency Plans == 819 819 ... ... @@ -887,6 +887,7 @@ 887 887 * Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds 888 888 * Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 889 889 896 + 890 890 == 3.2 Set Interrupt Mode == 891 891 892 892 ... ... @@ -918,6 +918,7 @@ 918 918 * Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode 919 919 * Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger 920 920 928 + 921 921 == 3.3 Set the output time == 922 922 923 923 ... ... @@ -987,6 +987,7 @@ 987 987 * Example 5: Downlink Payload: 070301F4 **~-~-->** AT+12VT=500 988 988 * Example 6: Downlink Payload: 07030000 **~-~-->** AT+12VT=0 989 989 998 + 990 990 == 3.4 Set the all data mode == 991 991 992 992 ... ... @@ -1009,6 +1009,7 @@ 1009 1009 * Example 1: Downlink Payload: AB 00 ~/~/ AT+ALLDATAMOD=0 1010 1010 * Example 2: Downlink Payload: AB 01 ~/~/ AT+ALLDATAMOD=1 1011 1011 1021 + 1012 1012 == 3.5 Set the splicing payload for uplink == 1013 1013 1014 1014 ... ... @@ -1065,6 +1065,7 @@ 1065 1065 * Example 1: Downlink Payload: AE 01 ~/~/ AT+PAYVER=1 1066 1066 * Example 2: Downlink Payload: AE 05 ~/~/ AT+PAYVER=5 1067 1067 1078 + 1068 1068 = 4. Battery & how to replace = 1069 1069 1070 1070 == 4.1 Battery Type == ... ... @@ -1075,7 +1075,7 @@ 1075 1075 1076 1076 The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance. 1077 1077 1078 -[[image:1675234124233-857.png]] 1089 +[[image:1675234124233-857.png||_mstalt="295035"]] 1079 1079 1080 1080 1081 1081 Minimum Working Voltage for the SDI-12-LB: ... ... @@ -1109,7 +1109,7 @@ 1109 1109 And the Life expectation in difference case will be shown on the right. 1110 1110 1111 1111 1112 -[[image:1675234155374-163.png]] 1123 +[[image:1675234155374-163.png||_mstalt="294411"]] 1113 1113 1114 1114 1115 1115 The battery related documents as below: ... ... @@ -1118,7 +1118,7 @@ 1118 1118 * [[Lithium-Thionyl Chloride Battery datasheet, Tech Spec>>https://www.dropbox.com/sh/d4oyfnp8o94180o/AABQewCNSh5GPeQH86UxRgQQa?dl=0]] 1119 1119 * [[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]] 1120 1120 1121 -[[image:image-20230201145019-19.png]] 1132 +[[image:image-20230201145019-19.png||_mstalt="453947"]] 1122 1122 1123 1123 1124 1124 === 4.3.1 Battery Note === ... ... @@ -1157,7 +1157,7 @@ 1157 1157 1158 1158 = 7. FAQ = 1159 1159 1160 -== 7.1 How to use AT Command to access device? == 1171 +== 7.1 How to use AT Command via UART to access device? == 1161 1161 1162 1162 1163 1163 See: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]] ... ... @@ -1199,6 +1199,7 @@ 1199 1199 ))) 1200 1200 1201 1201 1213 + 1202 1202 = 9. Packing Info = 1203 1203 1204 1204 ... ... @@ -1213,6 +1213,7 @@ 1213 1213 * Package Size / pcs : cm 1214 1214 * Weight / pcs : g 1215 1215 1228 + 1216 1216 = 10. Support = 1217 1217 1218 1218