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
-
... ... @@ -16,36 +16,34 @@ 16 16 17 17 18 18 19 -1. Introduction 20 -11. What is LoRaWAN Pressure Sensor 19 += 1. Introduction = 21 21 22 - TheDragino **SDI-12-LB**isa **SDI-12 to LoRaWAN Convert**designed forSmart Agriculture solution.21 +== 1.1 What is SDI-12 to LoRaWAN Converter == 23 23 24 24 24 +The Dragino **SDI-12-LB** is a **SDI-12 to LoRaWAN Converter **designed for Smart Agriculture solution. 25 + 25 25 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. 26 26 27 - 28 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. 29 29 30 - 31 31 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. 32 32 33 - 34 34 **SDI-12-LB** is powered by **8500mAh Li-SOCI2 battery**, it is designed for long term use up to 5 years. 35 35 36 - 37 37 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. 38 38 39 39 37 +[[image:image-20230201084414-1.png||height="464" width="1108"]] 40 40 41 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png]] 42 42 43 43 44 44 45 45 46 46 47 -* 48 -*1. Features 44 +== 1.2 Features == 45 + 46 + 49 49 * LoRaWAN 1.0.3 Class A 50 50 * Ultra-low power consumption 51 51 * Controllable 5v and 12v output to power external sensor ... ... @@ -58,9 +58,8 @@ 58 58 * Downlink to change configure 59 59 * 8500mAh Battery for long term use 60 60 59 +== 1.3 Specification == 61 61 62 -1. 63 -11. Specification 64 64 65 65 **Micro Controller:** 66 66 ... ... @@ -80,7 +80,6 @@ 80 80 * RX sensitivity: down to -139 dBm. 81 81 * Excellent blocking immunity 82 82 83 - 84 84 **Current Input Measuring :** 85 85 86 86 * Range: 0 ~~ 20mA ... ... @@ -87,7 +87,6 @@ 87 87 * Accuracy: 0.02mA 88 88 * Resolution: 0.001mA 89 89 90 - 91 91 **Voltage Input Measuring:** 92 92 93 93 * Range: 0 ~~ 30v ... ... @@ -94,7 +94,6 @@ 94 94 * Accuracy: 0.02v 95 95 * Resolution: 0.001v 96 96 97 - 98 98 **Battery:** 99 99 100 100 * Li/SOCI2 un-chargeable battery ... ... @@ -103,68 +103,57 @@ 103 103 * Max continuously current: 130mA 104 104 * Max boost current: 2A, 1 second 105 105 106 - 107 107 **Power Consumption** 108 108 109 109 * Sleep Mode: 5uA @ 3.3v 110 110 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm 111 111 105 +== 1.4 Connect to SDI-12 Sensor == 112 112 113 -1. 114 -11. Connect to SDI-12 Sensor 115 115 116 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image002.png]] 117 117 109 +[[image:1675212538524-889.png]] 118 118 119 119 120 -1. 121 -11. Sleep mode and working mode 112 +== 1.5 Sleep mode and working mode == 122 122 123 123 124 -**Deep Sleep Mode: Sensor doesn ’t have any LoRaWAN activate. This mode is used for storage and shipping to save battery life.**115 +**Deep Sleep Mode: **Sensor doesn't have any LoRaWAN activate. This mode is used for storage and shipping to save battery life. 125 125 117 +**Working Mode: **In this mode, Sensor will work as LoRaWAN Sensor to Join LoRaWAN network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode. 126 126 127 -**Working Mode: In this mode, Sensor will work as LoRaWAN Sensor to Join LoRaWAN network and send out sensor data to server. Between each sampling/tx/rx periodically, sensor will be in IDLE mode), in IDLE mode, sensor has the same power consumption as Deep Sleep mode.** 128 128 120 +== 1.6 Button & LEDs == 129 129 130 130 123 +[[image:1675212633011-651.png]] 131 131 132 132 133 -1. 134 -11. Button & LEDs 135 135 136 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image003.png]] 137 - 138 - 139 - 140 -|**Behavior on ACT**|**Function**|**Action** 141 -|Pressing ACT between 1s < time < 3s|Send an uplink|((( 142 -If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, **blue led** will blink once. 143 - 127 +(% border="1" cellspacing="4" style="background-color:#f7faff; color:black; width:510px" %) 128 +|=(% style="width: 167px;" %)**Behavior on ACT**|=(% style="width: 117px;" %)**Function**|=(% style="width: 225px;" %)**Action** 129 +|(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)((( 130 +If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once. 144 144 Meanwhile, BLE module will be active and user can connect via BLE to configure device. 145 145 ))) 146 -|Pressing ACT for more than 3s|Active Device|((( 147 -**Green led** will fast blink 5 times, device will enter **OTA mode** for 3 seconds. And then start to JOIN LoRaWAN network. 148 - 149 -**Green led** will solidly turn on for 5 seconds after joined in network. 150 - 133 +|(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)((( 134 +(% style="color:green" %)**Green led**(%%) will fast blink 5 times, device will enter (% style="color:#037691" %)**OTA mode**(%%) for 3 seconds. And then start to JOIN LoRaWAN network. 135 +(% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network. 151 151 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. 152 152 ))) 153 -|Fast press ACT 5 times.|Deactivate Device|red led will solid on for 5 seconds. Means S DI-12-LBarein Deep Sleep Mode.138 +|(% style="width:167px" %)Fast press ACT 5 times.|(% style="width:117px" %)Deactivate Device|(% style="width:225px" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means PS-LB is in Deep Sleep Mode. 154 154 140 +== 1.7 Pin Mapping == 155 155 156 156 157 -1. 158 -11. Pin Mapping 143 +[[image:1675213198663-754.png]] 159 159 160 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image004.png]] 161 161 162 -1. 163 -11. BLE connection 146 +== 1.8 BLE connection == 164 164 148 + 165 165 SDI-12-LB support BLE remote configure. 166 166 167 - 168 168 BLE can be used to configure the parameter of sensor or see the console output from sensor. BLE will be only activate on below case: 169 169 170 170 * Press button to send an uplink ... ... @@ -174,20 +174,23 @@ 174 174 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode. 175 175 176 176 160 +== 1.9 Mechanical == 177 177 178 178 179 -1. 180 -11. Mechanical 181 181 182 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image005.png]] 183 183 184 -[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image006.png]] 185 185 186 -[[image: file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image007.png]]166 +[[image:image-20230201090139-2.png]] 187 187 168 +[[image:image-20230201090139-3.png]] 188 188 170 +[[image:image-20230201090139-4.png]] 189 189 190 190 173 + 174 + 175 + 176 + 191 191 1. Configure SDI-12 to connect to LoRaWAN network 192 192 11. How it works 193 193 ... ... @@ -257,10 +257,9 @@ 257 257 258 258 259 259 260 -1. 246 +1. 261 261 11. SDI-12 Related Commands 262 262 263 - 264 264 User need to configure SDI-12-LB to communicate with SDI-12 sensors otherwise the uplink payload will only include a few bytes. 265 265 266 266 ... ... @@ -392,7 +392,7 @@ 392 392 393 393 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image024.png]] 394 394 395 -1. 380 +1. 396 396 11. 397 397 111. Advance SDI-12 Debug command 398 398 ... ... @@ -427,7 +427,7 @@ 427 427 428 428 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image026.png]] 429 429 430 -1. 415 +1. 431 431 11. 432 432 111. Convert ASCII to String 433 433 ... ... @@ -449,7 +449,7 @@ 449 449 450 450 451 451 452 -1. 437 +1. 453 453 11. 454 454 111. Define periodically SDI-12 commands and uplink. 455 455 ... ... @@ -494,7 +494,6 @@ 494 494 c: define the position for valid value. 495 495 ))) 496 496 497 - 498 498 For example, if return from AT+COMMAND1 is “013METER TER12 112T12-00024895” ,. Below AT+DATACUT1 will get different result to combine payload: 499 499 500 500 ... ... @@ -503,8 +503,6 @@ 503 503 |34,2,1~~8+12~~16|0D 00 01 30 31 33 4D 45 54 45 52 54 45 52 31 32 504 504 |34,2,1~~34|0D 00 01 30 31 33 4D 45 54 45 52 20 20 20 54 45 52 31 32 20 31 31 32 54 31 32 2D 30 30 30 32 34 38 39 35 0D 0A 505 505 506 - 507 - 508 508 * ** Downlink Payload:** 509 509 510 510 **0xAF** downlink command can be used to set AT+COMMANDx or AT+DATACUTx. ... ... @@ -525,7 +525,7 @@ 525 525 526 526 Example: 527 527 528 -**AF 03 01 07 30 4D 43 21 01 01 01 00**: Same as AT+COMMAND3=**0MC!**,** 510 +**AF 03 01 07 30 4D 43 21 01 01 01 00**: Same as AT+COMMAND3=**0MC!**,** 1**,** 1**,** 1** 529 529 530 530 **AF 03 02 06 10 01 05 06 09 0A 00**: Same as AT+DATACUT3=**16**,**1**,**5+6+9+10** 531 531 ... ... @@ -622,7 +622,6 @@ 622 622 1. 623 623 11. Uplink Payload 624 624 625 - 626 626 Uplink payloads have two types: 627 627 628 628 * Distance Value: Use FPORT=2 ... ... @@ -645,7 +645,6 @@ 645 645 |**Size (bytes)**|**1**|**2**|**1**|**1**|**2** 646 646 |**Value**|Sensor Model|Firmware Version|Frequency Band|Sub-band|BAT 647 647 648 - 649 649 Example parse in TTNv3 650 650 651 651 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image033.png]] ... ... @@ -707,7 +707,6 @@ 707 707 11. 708 708 111. Uplink Payload, FPORT=2 709 709 710 - 711 711 There are different cases for uplink. See below 712 712 713 713 * SDI-12 Debug Command return: FPORT=100 ... ... @@ -714,7 +714,6 @@ 714 714 715 715 * Periodically Uplink: FPORT=2 716 716 717 - 718 718 |((( 719 719 **Size** 720 720 ... ... @@ -732,12 +732,11 @@ 732 732 Payload length in server,server will show payload not provided in the LoRaWAN server. 733 733 ))) 734 734 735 - 736 736 [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image034.png]] 737 737 738 738 739 739 740 -1. 717 +1. 741 741 11. 742 742 111. Battery Info 743 743 ... ... @@ -770,8 +770,6 @@ 770 770 771 771 772 772 773 - 774 - 775 775 1. 776 776 11. 777 777 111. Decode payload in The Things Network ... ... @@ -1038,7 +1038,6 @@ 1038 1038 Set transmit interval to 60000ms = 60 seconds 1039 1039 ))) 1040 1040 1041 - 1042 1042 **Downlink Command: 0x01** 1043 1043 1044 1044 Format: Command Code (0x01) followed by 3 bytes time value. ... ... @@ -1048,8 +1048,6 @@ 1048 1048 * Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds 1049 1049 * Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 1050 1050 1051 - 1052 - 1053 1053 1. 1054 1054 11. Set Interrupt Mode 1055 1055 ... ... @@ -1074,7 +1074,6 @@ 1074 1074 1. (Trigger by rising edge) 1075 1075 )))|OK 1076 1076 1077 - 1078 1078 **Downlink Command: 0x06** 1079 1079 1080 1080 Format: Command Code (0x06) followed by 3 bytes. ... ... @@ -1084,7 +1084,6 @@ 1084 1084 * Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode 1085 1085 * Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger 1086 1086 1087 - 1088 1088 1. 1089 1089 11. Set the output time 1090 1090 ... ... @@ -1114,7 +1114,6 @@ 1114 1114 1115 1115 ))) 1116 1116 1117 - 1118 1118 **AT Command: AT+5VT** 1119 1119 1120 1120 |**Command Example**|**Function**|**Response** ... ... @@ -1139,7 +1139,6 @@ 1139 1139 1140 1140 ))) 1141 1141 1142 - 1143 1143 **AT Command: AT+12VT** 1144 1144 1145 1145 |**Command Example**|**Function**|**Response** ... ... @@ -1155,7 +1155,6 @@ 1155 1155 1156 1156 ))) 1157 1157 1158 - 1159 1159 **Downlink Command: 0x07** 1160 1160 1161 1161 Format: Command Code (0x07) followed by 3 bytes. ... ... @@ -1169,7 +1169,6 @@ 1169 1169 * Example 5: Downlink Payload: 070301F4 -> AT+12VT=500 1170 1170 * Example 6: Downlink Payload: 07030000 -> AT+12VT=0 1171 1171 1172 - 1173 1173 1. 1174 1174 11. Set the all data mode 1175 1175 ... ... @@ -1186,7 +1186,6 @@ 1186 1186 ))) 1187 1187 |AT+ALLDATAMOD=1|Set all data mode is 1.|OK 1188 1188 1189 - 1190 1190 **Downlink Command: 0xAB** 1191 1191 1192 1192 Format: Command Code (0xAB) followed by 1 bytes. ... ... @@ -1194,7 +1194,6 @@ 1194 1194 * Example 1: Downlink Payload: AB 00 ~/~/ AT+ALLDATAMOD=0 1195 1195 * Example 2: Downlink Payload: AB 01 ~/~/ AT+ALLDATAMOD=1 1196 1196 1197 - 1198 1198 1. 1199 1199 11. Set the splicing payload for uplink 1200 1200 ... ... @@ -1225,7 +1225,6 @@ 1225 1225 1226 1226 )))|OK 1227 1227 1228 - 1229 1229 **Downlink Command: 0xAD** 1230 1230 1231 1231 Format: Command Code (0xAD) followed by 1 bytes or 5 bytes. ... ... @@ -1253,7 +1253,6 @@ 1253 1253 ))) 1254 1254 |AT+PAYVER=5|Set payload version is 5.|OK 1255 1255 1256 - 1257 1257 **Downlink Command: 0xAE** 1258 1258 1259 1259 Format: Command Code (0xAE) followed by 1 bytes. ... ... @@ -1261,8 +1261,6 @@ 1261 1261 * Example 1: Downlink Payload: AE 01 ~/~/ AT+PAYVER=1 1262 1262 * Example 2: Downlink Payload: AE 05 ~/~/ AT+PAYVER=5 1263 1263 1264 - 1265 - 1266 1266 1. Battery & how to replace 1267 1267 11. Battery Type 1268 1268 ... ... @@ -1291,7 +1291,6 @@ 1291 1291 1. 1292 1292 11. Power Consumption Analyze 1293 1293 1294 - 1295 1295 Dragino Battery powered product are all runs in Low Power mode. We have an update battery calculator which base on the measurement of the real device. User can use this calculator to check the battery life and calculate the battery life if want to use different transmit interval. 1296 1296 1297 1297 ... ... @@ -1320,8 +1320,6 @@ 1320 1320 * [[Lithium-Thionyl Chloride Battery>>url:http://www.dragino.com/downloads/downloads/datasheet/Battery/ER18505_datasheet-EN.pdf]] datasheet, [[Tech Spec>>url:http://www.dragino.com/downloads/downloads/datasheet/Battery/ER18505_datasheet_PM-ER18505-S-02-LF_EN.pdf]] 1321 1321 * [[Lithium-ion Battery-Capacitor datasheet>>url:http://www.dragino.com/downloads/downloads/datasheet/Battery/SPC_1520_datasheet.jpg]], [[Tech Spec>>url:http://www.dragino.com/downloads/downloads/datasheet/Battery/SPC1520%20Technical%20Specification20171123.pdf]] 1322 1322 1323 - 1324 - 1325 1325 |((( 1326 1326 JST-XH-2P connector 1327 1327 ))) ... ... @@ -1330,7 +1330,7 @@ 1330 1330 1331 1331 1332 1332 1333 -1. 1290 +1. 1334 1334 11. 1335 1335 111. Battery Note 1336 1336 ... ... @@ -1354,7 +1354,6 @@ 1354 1354 1. Remote Configure device 1355 1355 11. Connect via BLE 1356 1356 1357 - 1358 1358 Please see this instruction for how to configure via BLE: 1359 1359 1360 1360 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]] ... ... @@ -1363,8 +1363,6 @@ 1363 1363 1. 1364 1364 11. AT Command Set 1365 1365 1366 - 1367 - 1368 1368 1. OTA firmware update 1369 1369 1370 1370 Please see this link for how to do OTA firmware update. ... ... @@ -1387,7 +1387,6 @@ 1387 1387 1388 1388 * SDI-12-LB SDI-12 to LoRaWAN Converter 1389 1389 1390 - 1391 1391 **Dimension and weight**: 1392 1392 1393 1393 * Device Size: cm ... ... @@ -1397,8 +1397,6 @@ 1397 1397 1398 1398 1399 1399 1400 - 1401 - 1402 1402 1. Support 1403 1403 1404 1404 * Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule.