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
-
... ... @@ -55,7 +55,7 @@ 55 55 56 56 * LoRaWAN 1.0.3 Class A 57 57 * Ultra-low power consumption 58 -* Controllable 5v and 12v output to power external sensor 58 +* Controllable 3.3v, 5v and 12v output to power external sensor 59 59 * SDI-12 Protocol to connect to SDI-12 Sensor 60 60 * Monitor Battery Level 61 61 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865 ... ... @@ -66,7 +66,6 @@ 66 66 * 8500mAh Battery for long term use 67 67 68 68 69 - 70 70 == 1.3 Specification == 71 71 72 72 ... ... @@ -114,7 +114,6 @@ 114 114 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm 115 115 116 116 117 - 118 118 == 1.4 Connect to SDI-12 Sensor == 119 119 120 120 ... ... @@ -147,10 +147,9 @@ 147 147 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 148 148 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. 149 149 ))) 150 -|(% 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 PS-LB is in Deep Sleep Mode.148 +|(% 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. 151 151 152 152 153 - 154 154 == 1.7 Pin Mapping == 155 155 156 156 ... ... @@ -467,7 +467,7 @@ 467 467 468 468 (% style="color:red" %)**var3**(%%): Whether to send //addrD0!// to get return after var2 timeout. 0: Don't Send //addrD0! //; 1: Send //addrD0!//. 469 469 470 -(% style="color:red" %)**var4**(%%): validation check for return. If return invalid, SDI-12-LB will resend this command. Max 2retries.467 +(% style="color:red" %)**var4**(%%): validation check for return. If return invalid, SDI-12-LB will resend this command. Max 4 retries. 471 471 472 472 (% style="color:red" %)**0 **(%%) No validation check; 473 473 ... ... @@ -494,7 +494,7 @@ 494 494 **c**: define the position for valid value. 495 495 ))) 496 496 497 -For example, if return from AT+COMMAND1 is “013METER TER12 112T12-00024895” , Below AT+DATACUT1 will get different result to combine payload: 494 +For example, if return from AT+COMMAND1 is “013METER TER12 112T12-00024895<CR><LF>” , Below AT+DATACUT1 will get different result to combine payload: 498 498 499 499 500 500 (% border="1" cellspacing="4" style="background-color:#f7faff; width:510px" %) ... ... @@ -516,10 +516,10 @@ 516 516 Where: 517 517 518 518 * (% style="color:#037691" %)**MM **(%%): the AT+COMMAND or AT+DATACUT to be set. Value from 01 ~~ 0F, 519 -* (% style="color:#037691" %)**NN **(%%): 1: set the AT+ DATACUTvalue ; 2: set the AT+DATACUT value.516 +* (% style="color:#037691" %)**NN **(%%): 1: set the AT+COMMAND value ; 2: set the AT+DATACUT value. 520 520 * (% style="color:#037691" %)**LL **(%%): The length of AT+COMMAND or AT+DATACUT command 521 521 * (% style="color:#037691" %)**XX XX XX XX **(%%): AT+COMMAND or AT+DATACUT command 522 -* (% style="color:#037691" %)**YY **(%%): If YY=0, RS485-LNwill execute the downlink command without uplink; if YY=1,RS485-LNwill execute an uplink after got this command.519 +* (% style="color:#037691" %)**YY **(%%): If YY=0, SDI-12-LB will execute the downlink command without uplink; if YY=1, SDI-12-LB will execute an uplink after got this command. 523 523 524 524 (% style="color:blue" %)**Example:** 525 525 ... ... @@ -611,15 +611,6 @@ 611 611 612 612 == 2.4 Uplink Payload == 613 613 614 - 615 -Uplink payloads have two types: 616 - 617 -* Distance Value: Use FPORT=2 618 -* Other control commands: Use other FPORT fields. 619 - 620 -The application server should parse the correct value based on FPORT settings. 621 - 622 - 623 623 === 2.4.1 Device Payload, FPORT~=5 === 624 624 625 625 ... ... @@ -739,6 +739,7 @@ 739 739 740 740 === 2.4.5 Payload version === 741 741 730 +The version number of the payload, mainly used for decoding. The default is 01. 742 742 743 743 744 744 === 2.4.6 Decode payload in The Things Network === ... ... @@ -762,15 +762,83 @@ 762 762 [[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]]]] 763 763 764 764 765 -== 2.6 FrequencyPlans ==754 +== 2.6 Examples To Set SDI commands. == 766 766 756 +=== 2.6.1 Examples 1 === 767 767 758 +COM port and SDI-12 sensor communication converted to SDI-12-LB and SDI-12 sensor communication. 759 + 760 +[[image:image-20230222143809-1.png||height="564" width="729"]] 761 + 762 +1)The AT+COMMANDx command is applied to the red arrow part, and sends the SDI12 command to the SDI12 sensor: 763 + 764 +a.Send the first command and get the first reply: 765 + 766 +AT+COMMANDx=1I!,0,0,1 767 + 768 +b.Send the second command and get the second reply: 769 + 770 +AT+COMMANDx=2I!,0,0,1 771 + 772 +c.Send the third command and get the third reply: 773 + 774 +AT+COMMANDx=3I!,0,0,1 775 + 776 +d.Send the fourth command and get the fourth reply: 777 + 778 +AT+COMMANDx=4I!,0,0,1 779 + 780 +e.Send the fifth command plus the sixth command, get the sixth reply: 781 + 782 +AT+COMMANDx=1M!,2,1,1 783 + 784 +f.Send the seventh command plus the eighth command, get the eighth reply: 785 + 786 +AT+COMMANDx=2M!,2,1,1 787 + 788 +g.Send the ninth command plus the tenth command, get the tenth reply: 789 + 790 +AT+COMMANDx=3M!,1,1,1 791 + 792 +h.Send the eleventh command plus the twelfth command, get the twelfth reply: 793 + 794 +AT+COMMANDx=4M!,1,1,1 795 + 796 + 797 +2) The AT+DATACUTx command is applied to the green arrow part, receiving and cut out data from the SDI12 sensor: 798 + 799 +a.The first reply, all 34 characters: ”113TRUEBNERSMT100038220303182331<CR><LF>” 800 + 801 +Cut out all characters: AT+ALLDATAMOD=1 or AT+DATACUTx=34,2,1~~34; 802 + 803 +b. The sixth reply, all 31 characters:”1+19210+1.04+0.00+22.49+11.75<CR><LF>” 804 + 805 +Cut out all characters: AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31; 806 + 807 +c. The eighth reply, all 31 characters:”2+18990+1.08+0.00+22.24+11.80<CR><LF>” 808 + 809 +Cut out all characters: AT+ALLDATAMOD=1 or AT+DATACUTx=31,2,1~~31; 810 + 811 +d. The tenth reply, all 15 characters:”3-2919.8+24.0<CR><LF>” 812 + 813 +Cut out all characters: AT+ALLDATAMOD=1 or AT+DATACUTx=15,2,1~~15; 814 + 815 +e. The twelfth reply, all 25 characters:”4+30.8+22.84+4.7+954.38<CR><LF>” 816 + 817 +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”. 818 + 819 +(% class="wikigeneratedid" %) 820 +== == 821 + 822 +== 2.7 Frequency Plans == 823 + 824 + 768 768 The SDI-12-LB uses OTAA mode and below frequency plans by default. If user want to use it with different frequency plan, please refer the AT command sets. 769 769 770 770 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]] 771 771 772 772 773 -== 2. 7Firmware Change Log ==830 +== 2.8 Firmware Change Log == 774 774 775 775 776 776 **Firmware download link:** ... ... @@ -805,7 +805,7 @@ 805 805 These commands only valid for SDI-12-LB, as below: 806 806 807 807 808 -== 3.1 Set Transmit Interval Time ==865 +== 3.1 Set Transmit Interval Time == 809 809 810 810 811 811 Feature: Change LoRaWAN End Node Transmit Interval. ... ... @@ -835,7 +835,6 @@ 835 835 * Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 836 836 837 837 838 - 839 839 == 3.2 Set Interrupt Mode == 840 840 841 841 ... ... @@ -848,14 +848,14 @@ 848 848 |(% style="width:156px" %)AT+INTMOD=?|(% style="width:187px" %)Show current interrupt mode|(% style="width:165px" %)((( 849 849 0 850 850 OK 851 -the mode is 0 = Nointerruption907 +the mode is 0 = Disable Interrupt 852 852 ))) 853 853 |(% style="width:156px" %)AT+INTMOD=2|(% style="width:187px" %)((( 854 854 Set Transmit Interval 855 - ~1. (Disable Interrupt),856 - 2. (Trigger by rising and falling edge)857 - 3. (Trigger by falling edge)858 - 4. (Trigger by rising edge)911 +0. (Disable Interrupt), 912 +~1. (Trigger by rising and falling edge) 913 +2. (Trigger by falling edge) 914 +3. (Trigger by rising edge) 859 859 )))|(% style="width:165px" %)OK 860 860 861 861 (% style="color:blue" %)**Downlink Command: 0x06** ... ... @@ -868,7 +868,6 @@ 868 868 * Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger 869 869 870 870 871 - 872 872 == 3.3 Set the output time == 873 873 874 874 ... ... @@ -939,7 +939,6 @@ 939 939 * Example 6: Downlink Payload: 07030000 **~-~-->** AT+12VT=0 940 940 941 941 942 - 943 943 == 3.4 Set the all data mode == 944 944 945 945 ... ... @@ -963,7 +963,6 @@ 963 963 * Example 2: Downlink Payload: AB 01 ~/~/ AT+ALLDATAMOD=1 964 964 965 965 966 - 967 967 == 3.5 Set the splicing payload for uplink == 968 968 969 969 ... ... @@ -1021,7 +1021,6 @@ 1021 1021 * Example 2: Downlink Payload: AE 05 ~/~/ AT+PAYVER=5 1022 1022 1023 1023 1024 - 1025 1025 = 4. Battery & how to replace = 1026 1026 1027 1027 == 4.1 Battery Type == ... ... @@ -1171,7 +1171,6 @@ 1171 1171 * Weight / pcs : g 1172 1172 1173 1173 1174 - 1175 1175 = 10. Support = 1176 1176 1177 1177