<
From version < 37.7 >
edited by Xiaoling
on 2023/02/01 11:50
To version < 37.4 >
edited by Xiaoling
on 2023/02/01 10:27
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -3,7 +3,6 @@
3 3  
4 4  **Table of Contents:**
5 5  
6 -{{toc/}}
7 7  
8 8  
9 9  
... ... @@ -17,23 +17,22 @@
17 17  
18 18  
19 19  
20 -
21 21  = 1. Introduction =
22 22  
23 23  == 1.1 ​What is SDI-12 to LoRaWAN Converter ==
24 24  
25 25  
26 -The Dragino **(% style="color:blue" %)SDI-12-LB**(%%) is a **(% style="color:blue" %)SDI-12 to LoRaWAN Converter **(%%)designed for Smart Agriculture solution.
24 +The Dragino **SDI-12-LB** is a **SDI-12 to LoRaWAN Converter **designed for Smart Agriculture solution.
27 27  
28 28  SDI-12 (Serial Digital Interface at 1200 baud) is an asynchronous [[serial communications>>url:https://en.wikipedia.org/wiki/Serial_communication]] protocol for intelligent sensors that monitor environment data. SDI-12 protocol is widely used in Agriculture sensor and Weather Station sensors.
29 29  
30 -**(% style="color:blue" %)SDI-12-LB** has SDI-12 interface and support 12v output to power external SDI-12 sensor. It can get the environment data from SDI-12 sensor and sends out the data via LoRaWAN wireless protocol.
28 +**SDI-12-LB** has SDI-12 interface and support 12v output to power external SDI-12 sensor. It can get the environment data from SDI-12 sensor and sends out the data via LoRaWAN wireless protocol.
31 31  
32 -The LoRa wireless technology used in **(% style="color:blue" %)SDI-12-LB** allows device to send data and reach extremely long ranges at low data-rates. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption.
30 +The LoRa wireless technology used in **SDI-12-LB** allows device to send data and reach extremely long ranges at low data-rates. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption.
33 33  
34 -**(% style="color:blue" %)SDI-12-LB** is powered by **(% style="color:blue" %)8500mAh Li-SOCI2 battery**, it is designed for long term use up to 5 years.
32 +**SDI-12-LB** is powered by **8500mAh Li-SOCI2 battery**, it is designed for long term use up to 5 years.
35 35  
36 -Each **(% style="color:blue" %)SDI-12-LB** is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto connect after power on.
34 +Each **SDI-12-LB** is pre-load with a set of unique keys for LoRaWAN registrations, register these keys to local LoRaWAN server and it will auto connect after power on.
37 37  
38 38  
39 39  [[image:image-20230201084414-1.png||height="464" width="1108"]]
... ... @@ -423,6 +423,7 @@
423 423  
424 424  [[image:image-20230201092355-17.png||height="426" width="1135"]]
425 425  
424 +​​​​​​​
426 426  
427 427  === 2.3.3 Convert ASCII to String ===
428 428  
... ... @@ -443,6 +443,7 @@
443 443  
444 444  [[image:1675214856590-846.png]]
445 445  
445 +​​​​​​​
446 446  
447 447  === 2.3.4 Define periodically SDI-12 commands and uplink. ===
448 448  
... ... @@ -786,6 +786,7 @@
786 786  * AT Command Connection: See [[FAQ>>path:#AT_COMMAND]].
787 787  * LoRaWAN Downlink instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
788 788  
789 +
789 789  There are two kinds of commands to configure SDI-12-LB, they are:
790 790  
791 791  * **General Commands**.
... ... @@ -829,32 +829,31 @@
829 829  
830 830  Format: Command Code (0x01) followed by 3 bytes time value.
831 831  
832 -If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
833 +If the downlink payload=0100003C, it means set the END Nodes Transmit Interval to 0x00003C=60(S), while type code is 01.
833 833  
834 -* Example 1: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
835 -* Example 2: Downlink Payload: 0100003C  ~/~/  Set Transmit Interval (TDC) = 60 seconds
835 +* Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
836 +* Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
836 836  
837 837  == 3.2 Set Interrupt Mode ==
838 838  
839 -
840 840  Feature, Set Interrupt mode for GPIO_EXIT.
841 841  
842 842  (% style="color:blue" %)**AT Command: AT+INTMOD**
843 843  
844 844  (% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %)
845 -|=(% style="width: 156px;" %)**Command Example**|=(% style="width: 187px;" %)**Function**|=(% style="width: 165px;" %)**Response**
846 -|(% style="width:156px" %)AT+INTMOD=?|(% style="width:187px" %)Show current interrupt mode|(% style="width:165px" %)(((
845 +|=**Command Example**|=**Function**|=**Response**
846 +|AT+INTMOD=?|Show current interrupt mode|(((
847 847  0
848 848  OK
849 849  the mode is 0 = No interruption
850 850  )))
851 -|(% style="width:156px" %)AT+INTMOD=2|(% style="width:187px" %)(((
851 +|AT+INTMOD=2|(((
852 852  Set Transmit Interval
853 853  ~1. (Disable Interrupt),
854 854  2. (Trigger by rising and falling edge)
855 855  3. (Trigger by falling edge)
856 856  4. (Trigger by rising edge)
857 -)))|(% style="width:165px" %)OK
857 +)))|OK
858 858  
859 859  (% style="color:blue" %)**Downlink Command: 0x06**
860 860  
... ... @@ -862,9 +862,10 @@
862 862  
863 863  This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
864 864  
865 -* Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
866 -* Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
865 +* Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode
866 +* Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger
867 867  
868 +
868 868  == 3.3 Set the output time ==
869 869  
870 870  
... ... @@ -934,58 +934,58 @@
934 934  * Example 5: Downlink Payload: 070301F4  **~-~-->**  AT+12VT=500
935 935  * Example 6: Downlink Payload: 07030000  **~-~-->**  AT+12VT=0
936 936  
938 +
937 937  == 3.4 Set the all data mode ==
938 938  
939 -
940 940  Feature, Set the all data mode.
941 941  
942 -(% style="color:blue" %)**AT Command: AT+ALLDATAMOD**
943 +**AT Command: AT+ALLDATAMOD**
943 943  
944 -(% border="1" cellspacing="4" style="background-color:#f7faff; width:437px" %)
945 -|=**Command Example**|=**Function**|=**Response**
945 +|**Command Example**|**Function**|**Response**
946 946  |AT+ALLDATAMOD=?|Show current all data mode|(((
947 947  0
948 +
949 +
948 948  OK
949 949  )))
950 950  |AT+ALLDATAMOD=1|Set all data mode is 1.|OK
951 951  
952 -(% style="color:blue" %)**Downlink Command: 0xAB**
954 +**Downlink Command: 0xAB**
953 953  
954 954  Format: Command Code (0xAB) followed by 1 bytes.
955 955  
956 -* Example 1: Downlink Payload: AB 00  ~/~/  AT+ALLDATAMOD=0
957 -* Example 2: Downlink Payload: AB 01  ~/~/  AT+ALLDATAMOD=1
958 +* Example 1: Downlink Payload: AB 00 ~/~/ AT+ALLDATAMOD=0
959 +* Example 2: Downlink Payload: AB 01 ~/~/ AT+ALLDATAMOD=1
958 958  
961 +
959 959  == 3.5 Set the splicing payload for uplink ==
960 960  
961 -
962 962  Feature, splicing payload for uplink.
963 963  
964 -(% style="color:blue" %)**AT Command: AT+DATAUP**
966 +**AT Command: AT+DATAUP**
965 965  
966 -(% border="1" cellspacing="4" style="background-color:#f7faff; width:510px" %)
967 -|=(% style="width: 154px;" %)**Command Example**|=(% style="width: 266px;" %)**Function**|=**Response**
968 -|(% style="width:154px" %)AT+DATAUP =?|(% style="width:266px" %)Show current splicing payload for uplink mode|(((
968 +|**Command Example**|**Function**|**Response**
969 +|AT+DATAUP =?|Show current splicing payload for uplink mode|(((
969 969  0
970 970  OK
971 971  )))
972 -|(% style="width:154px" %)AT+DATAUP =0|(% style="width:266px" %)(((
973 +|AT+DATAUP =0|(((
973 973  Set splicing payload for uplink mode is 0.
974 974  )))|(((
975 975  OK
976 976  )))
977 -|(% style="width:154px" %)AT+DATAUP =1|(% style="width:266px" %)Set splicing payload for uplink mode is 1 , and the each splice uplink is sent sequentially.|OK
978 -|(% style="width:154px" %)AT+DATAUP =1,20000|(% style="width:266px" %)(((
978 +|AT+DATAUP =1|Set splicing payload for uplink mode is 1 , and the each splice uplink is sent sequentially.|OK
979 +|AT+DATAUP =1,20000|(((
979 979  Set splicing payload for uplink mode is 1, and the uplink interval of each splice to 20000 milliseconds.
980 980  )))|OK
981 981  
982 -(% style="color:blue" %)**Downlink Command: 0xAD**
983 +**Downlink Command: 0xAD**
983 983  
984 984  Format: Command Code (0xAD) followed by 1 bytes or 5 bytes.
985 985  
986 -* Example 1: Downlink Payload: AD 00  ~/~/  AT+DATAUP=0
987 -* Example 2: Downlink Payload: AD 01  ~/~/  AT+DATAUP =1
988 -* Example 3: Downlink Payload: AD 01 00 00 14  ~/~/  AT+DATAUP =1,20000
987 +* Example 1: Downlink Payload: AD 00 ~/~/ AT+DATAUP=0
988 +* Example 2: Downlink Payload: AD 01 ~/~/ AT+DATAUP =1
989 +* Example 3: Downlink Payload: AD 01 00 00 14~/~/ AT+DATAUP =1,20000
989 989  
990 990  This means that the interval is set to 0x000014=20S
991 991  
... ... @@ -994,22 +994,21 @@
994 994  
995 995  Feature, Set the payload version.
996 996  
997 -(% style="color:blue" %)**AT Command: AT+PAYVER**
998 +**AT Command: AT+PAYVER**
998 998  
999 -(% border="1" cellspacing="4" style="background-color:#f7faff; width:437px" %)
1000 -|=(% style="width: 158px;" %)**Command Example**|=(% style="width: 192px;" %)**Function**|=**Response**
1001 -|(% style="width:158px" %)AT+PAYVER=?|(% style="width:192px" %)Show current payload version|(((
1000 +|**Command Example**|**Function**|**Response**
1001 +|AT+PAYVER=?|Show current payload version|(((
1002 1002  1
1003 1003  OK
1004 1004  )))
1005 -|(% style="width:158px" %)AT+PAYVER=5|(% style="width:192px" %)Set payload version is 5.|OK
1005 +|AT+PAYVER=5|Set payload version is 5.|OK
1006 1006  
1007 -(% style="color:blue" %)**Downlink Command: 0xAE**
1007 +**Downlink Command: 0xAE**
1008 1008  
1009 1009  Format: Command Code (0xAE) followed by 1 bytes.
1010 1010  
1011 -* Example 1: Downlink Payload: AE 01  ~/~/  AT+PAYVER=1
1012 -* Example 2: Downlink Payload: AE 05  ~/~/  AT+PAYVER=5
1011 +* Example 1: Downlink Payload: AE 01 ~/~/ AT+PAYVER=1
1012 +* Example 2: Downlink Payload: AE 05 ~/~/ AT+PAYVER=5
1013 1013  
1014 1014  = 4. Battery & how to replace =
1015 1015  
... ... @@ -1016,7 +1016,7 @@
1016 1016  == 4.1 Battery Type ==
1017 1017  
1018 1018  
1019 -SDI-12-LB is equipped with a [[8500mAH ER26500 Li-SOCI2 battery>>https://www.dropbox.com/sh/w9l2oa3ytpculph/AAAPtt-apH4lYfCj-2Y6lHvQa?dl=0]]. The battery is un-rechargeable battery with low discharge rate targeting for 8~~10 years use. This type of battery is commonly used in IoT target for long-term running, such as water meter.
1019 +PS-LB is equipped with a [[8500mAH ER26500 Li-SOCI2 battery>>https://www.dropbox.com/sh/w9l2oa3ytpculph/AAAPtt-apH4lYfCj-2Y6lHvQa?dl=0]]. The battery is un-rechargeable battery with low discharge rate targeting for 8~~10 years use. This type of battery is commonly used in IoT target for long-term running, such as water meter.
1020 1020  
1021 1021  
1022 1022  The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance.
... ... @@ -1024,9 +1024,9 @@
1024 1024  [[image:1675146710956-626.png]]
1025 1025  
1026 1026  
1027 -Minimum Working Voltage for the SDI-12-LB:
1027 +Minimum Working Voltage for the PS-LB:
1028 1028  
1029 -SDI-12-LB:  2.45v ~~ 3.6v
1029 +PS-LB:  2.45v ~~ 3.6v
1030 1030  
1031 1031  
1032 1032  == 4.2 Replace Battery ==
... ... @@ -1075,9 +1075,9 @@
1075 1075  === 4.3.2 Replace the battery ===
1076 1076  
1077 1077  
1078 -You can change the battery in the SDI-12-LB.The type of battery is not limited as long as the output is between 3v to 3.6v. On the main board, there is a diode (D1) between the battery and the main circuit. If you need to use a battery with less than 3.3v, please remove the D1 and shortcut the two pads of it so there won't be voltage drop between battery and main board.
1078 +You can change the battery in the PS-LB.The type of battery is not limited as long as the output is between 3v to 3.6v. On the main board, there is a diode (D1) between the battery and the main circuit. If you need to use a battery with less than 3.3v, please remove the D1 and shortcut the two pads of it so there won't be voltage drop between battery and main board.
1079 1079  
1080 -The default battery pack of SDI-12-LB includes a ER26500 plus super capacitor. If user can't find this pack locally, they can find ER26500 or equivalence, which will also work in most case. The SPC can enlarge the battery life for high frequency use (update period below 5 minutes)
1080 +The default battery pack of PS-LB includes a ER26500 plus super capacitor. If user can't find this pack locally, they can find ER26500 or equivalence, which will also work in most case. The SPC can enlarge the battery life for high frequency use (update period below 5 minutes)
1081 1081  
1082 1082  
1083 1083  
... ... @@ -1093,6 +1093,7 @@
1093 1093  
1094 1094  
1095 1095  
1096 +
1096 1096  = 6. OTA firmware update =
1097 1097  
1098 1098  
... ... @@ -1114,7 +1114,7 @@
1114 1114  EU868: LoRaWAN EU868 band
1115 1115  KR920: LoRaWAN KR920 band
1116 1116  US915: LoRaWAN US915 band
1117 -IN865: LoRaWAN IN865 band
1118 +IN865: LoRaWAN IN865 band
1118 1118  CN470: LoRaWAN CN470 band
1119 1119  
1120 1120  
... ... @@ -1137,6 +1137,8 @@
1137 1137  * Package Size / pcs : cm
1138 1138  * Weight / pcs : g
1139 1139  
1141 +
1142 +
1140 1140  = 9. ​Support =
1141 1141  
1142 1142  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0