Show last authors
1 (% style="text-align:center" %)
2 [[image:image-20230530181154-3.jpeg||height="697" width="697"]]
3
4
5
6
7
8 **Table of Contents:**
9
10 {{toc/}}
11
12
13
14
15
16
17 = 1. Introduction =
18
19 == 1.1 What is LoRaWAN Soil Moisture & EC Sensor ==
20
21
22 The Dragino SE01-LB is a (% style="color:blue" %)**LoRaWAN Soil Moisture & EC Sensor**(%%) for IoT of Agriculture. It is designed to measure the (% style="color:blue" %)**soil moisture of saline-alkali soil and loamy soil**(%%). The soil sensor uses (% style="color:blue" %)**FDR method**(%%) to calculate the soil moisture with the compensation from soil temperature and conductivity. It also has been calibrated in factory for Mineral soil type.
23
24 It detects (% style="color:blue" %)**Soil Moisture**(%%), (% style="color:blue" %)**Soil Temperature**(%%) and (% style="color:blue" %)**Soil Conductivity**(%%), and uploads the value via wireless to LoRaWAN IoT Server.
25
26 The LoRa wireless technology used in SE01-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.
27
28 SE01-LB (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use.
29
30 SE01-LB is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long term use up to 5 years.
31
32 Each SE01-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.
33
34 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSE01-LoRaWAN%20Soil%20Moisture%20%26%20EC%20Sensor%20User%20Manual/WebHome/1654503236291-817.png?rev=1.1||alt="1654503236291-817.png"]]
35
36 [[image:image-20230530181051-1.png||height="403" width="806"]]
37
38
39 == 1.2 ​Features ==
40
41
42 * LoRaWAN 1.0.3 Class A
43 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865
44 * Ultra-low power consumption
45 * Monitor Soil Moisture
46 * Monitor Soil Temperature
47 * Monitor Soil Conductivity
48 * Support Bluetooth v5.1 and LoRaWAN remote configure
49 * Support wireless OTA update firmware
50 * AT Commands to change parameters
51 * Downlink to change configure
52 * IP66 Waterproof Enclosure
53 * 8500mAh Battery for long term use
54
55
56
57 == 1.3 Specification ==
58
59
60 (% style="color:blue" %)**Common DC Characteristics:**
61
62 * Supply Voltage: built in 8500mAh Li-SOCI2 battery , 2.5v ~~ 3.6v
63 * Operating Temperature: -40 ~~ 85°C
64
65 (% style="color:blue" %)**Soil Moisture:**
66
67 * Range: 0-100.00 V/V %
68 * Resolution: 0.01 V/V %
69 * Accuracy: ±3% (0-53%)V/V %, ±5% (>53%) V/V %
70 * Measure Method: FDR , with temperature &EC compensate
71
72 (% style="color:blue" %)**Soil Temperature**
73
74 * Range: -40.00℃~85.00℃
75 * Resolution: 0.01℃
76 * Accuracy: -10℃~50℃:<0.3℃ ,All other: <0.6℃
77 * Measure Method: RTD, and calibrate
78
79 (% style="color:blue" %)**Soil Conductivity**
80
81 * Range: 0-20000 uS/cm(25℃)(0-20.0EC)
82 * Resolution: 1 uS/cm
83 * Accuracy: 2%FS
84 * Measure Method: Conductivity , with temperature compensate
85
86 (% style="color:blue" %)**LoRa Spec:**
87
88 * Frequency Range,  Band 1 (HF): 862 ~~ 1020 Mhz
89 * Max +22 dBm constant RF output vs.
90 * RX sensitivity: down to -139 dBm.
91 * Excellent blocking immunity
92
93 (% style="color:blue" %)**Battery:**
94
95 * Li/SOCI2 un-chargeable battery
96 * Capacity: 8500mAh
97 * Self-Discharge: <1% / Year @ 25°C
98 * Max continuously current: 130mA
99 * Max boost current: 2A, 1 second
100
101 (% style="color:blue" %)**Power Consumption**
102
103 * Sleep Mode: 5uA @ 3.3v
104 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm
105
106
107
108 == 1.4 Applications ==
109
110
111 * Smart Agriculture
112
113
114
115 == 1.5 Sleep mode and working mode ==
116
117
118 (% style="color:blue" %)**Deep Sleep Mode: **(%%)Sensor doesn't have any LoRaWAN activate. This mode is used for storage and shipping to save battery life.
119
120 (% style="color:blue" %)**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.
121
122
123 == 1.6 Button & LEDs ==
124
125
126 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675071855856-879.png]]
127
128
129 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
130 |=(% style="width: 167px;background-color:#D9E2F3;color:#0070C0" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#D9E2F3;color:#0070C0" %)**Function**|=(% style="width: 225px;background-color:#D9E2F3;color:#0070C0" %)**Action**
131 |(% style="width:167px" %)Pressing ACT between 1s < time < 3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
132 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
133 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
134 )))
135 |(% style="width:167px" %)Pressing ACT for more than 3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
136 (% 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.
137 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
138 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.
139 )))
140 |(% 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 device is in Deep Sleep Mode.
141
142
143
144 == 1.7 BLE connection ==
145
146
147 SE01-LB support BLE remote configure.
148
149
150 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:
151
152 * Press button to send an uplink
153 * Press button to active device.
154 * Device Power on or reset.
155
156 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
157
158
159 == 1.8 Pin Definitions ==
160
161 [[image:image-20230523174230-1.png]]
162
163
164 == 1.9 Mechanical ==
165
166
167 (% style="color:blue" %)**Main Device Dimension:**
168
169 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143884058-338.png]]
170
171
172 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143899218-599.png]]
173
174
175 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143909447-639.png]]
176
177
178 (% style="color:blue" %)**Probe Dimension:**
179
180 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSE01-LoRaWAN%20Soil%20Moisture%20%26%20EC%20Sensor%20User%20Manual/WebHome/image-20221008135912-1.png?rev=1.1||alt="image-20221008135912-1.png"]]
181
182
183 = 2. Configure SE01-LB to connect to LoRaWAN network =
184
185 == 2.1 How it works ==
186
187
188 The SE01-LB is configured as (% style="color:#037691" %)**LoRaWAN OTAA Class A**(%%) mode by default. It has OTAA keys to join LoRaWAN network. To connect a local LoRaWAN network, you need to input the OTAA keys in the LoRaWAN IoT server and press the button to activate the SE01-LB. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.
189
190 (% style="display:none" %) (%%)
191
192 == 2.2 ​Quick guide to connect to LoRaWAN server (OTAA) ==
193
194
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
197 [[image:image-20230530181115-2.png||height="403" width="806"]]
198
199 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
201 (% style="display:none" %)
202
203
204 (% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from SE01-LB.
205
206 Each SE01-LB is shipped with a sticker with the default device EUI as below:
207
208 [[image:image-20230426084152-1.png||alt="图片-20230426084152-1.png" height="233" width="502"]]
209
210
211 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
212
213
214 (% style="color:blue" %)**Register the device**
215
216 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/1654935135620-998.png?rev=1.1||alt="1654935135620-998.png"]]
217
218
219 (% style="color:blue" %)**Add APP EUI and DEV EUI**
220
221 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-4.png?width=753&height=551&rev=1.1||alt="图片-20220611161308-4.png"]]
222
223
224 (% style="color:blue" %)**Add APP EUI in the application**
225
226
227 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-5.png?width=742&height=601&rev=1.1||alt="图片-20220611161308-5.png"]]
228
229
230 (% style="color:blue" %)**Add APP KEY**
231
232 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50v2-S31-S31B%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20User%20Manual/WebHome/image-20220611161308-6.png?width=744&height=485&rev=1.1||alt="图片-20220611161308-6.png"]]
233
234
235 (% style="color:blue" %)**Step 2:**(%%) Activate on SE01-LB
236
237
238 Press the button for 5 seconds to activate the SE01-LB.
239
240 (% 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.
241
242 After join success, it will start to upload messages to TTN and you can see the messages in the panel.
243
244
245 == 2.3 ​Uplink Payload ==
246
247 === 2.3.1 MOD~=0(Default Mode)(% style="display:none" %) (%%) ===
248
249
250 SE01-LB will uplink payload via LoRaWAN with below payload format: 
251
252 (((
253 Uplink payload includes in total 11 bytes.
254 )))
255
256 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:500px" %)
257 |(% style="background-color:#d9e2f3; color:#0070c0" %)**Size(bytes)**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**1**
258 |**Value**|[[BAT>>||anchor="H2.3.3BatteryInfo"]]|(((
259 Temperature
260 (Reserve, Ignore now)
261 )))|[[Soil Moisture>>||anchor="H2.3.4SoilMoisture"]]|[[Soil Temperature>>||anchor="H2.3.5SoilTemperature"]]|[[Soil Conductivity (EC)>>||anchor="H2.3.6SoilConductivity28EC29"]]|(((
262 MOD & Digital Interrupt(Optional)
263 )))
264
265
266
267 === 2.3.2 MOD~=1(Original value) ===
268
269
270 This mode can get the original AD value of moisture and original conductivity (with temperature drift compensation).
271
272 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:500px" %)
273 |(% style="background-color:#d9e2f3; color:#0070c0" %)**Size(bytes)**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**1**
274 |**Value**|[[BAT>>||anchor="H2.3.3BatteryInfo"]]|(((
275 Temperature
276 (Reserve, Ignore now)
277 )))|[[Soil Conductivity (EC)>>||anchor="H2.3.6SoilConductivity28EC29"]](raw)|[[Soil Moisture>>||anchor="H2.3.4SoilMoisture"]](raw)|[[Dielectric constant>>||anchor="H2.3.6SoilConductivity28EC29"]](raw)|(((
278 MOD & Digital Interrupt(Optional)
279 )))
280
281
282
283 === 2.3.3 Battery Info ===
284
285
286 (((
287 Check the battery voltage for SE01-LB.
288 )))
289
290 (((
291 Ex1: 0x0B45 = 2885mV
292 )))
293
294 (((
295 Ex2: 0x0B49 = 2889mV
296 )))
297
298
299 === 2.3.4 Soil Moisture ===
300
301
302 (((
303 Get the moisture content of the soil. The value range of the register is 0-10000(Decimal), divide this value by 100 to get the percentage of moisture in the soil.
304 )))
305
306 (((
307 For example, if the data you get from the register is **__0x05 0xDC__**, the moisture content in the soil is (% style="color:blue" %)**05DC(H) = 1500(D) /100 = 15%.**
308 )))
309
310
311 === 2.3.5 Soil Temperature ===
312
313
314 (((
315 Get the temperature in the soil. The value range of the register is -4000 - +800(Decimal), divide this value by 100 to get the temperature in the soil. For example, if the data you get from the register is 0x09 0xEC, the temperature content in the soil is
316 )))
317
318 (((
319 **Example**:
320 )))
321
322 (((
323 If payload is 0105H: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/100 = 2.61 °C
324 )))
325
326 (((
327 If payload is FF7EH: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/100 = -1.29 °C
328 )))
329
330
331 === 2.3.6 Soil Conductivity (EC) ===
332
333
334 (((
335 Obtain (% style="color:blue" %)**__soluble salt concentration__**(%%) in soil or (% style="color:blue" %)**__soluble ion concentration in liquid fertilizer__**(%%) or (% style="color:blue" %)**__planting medium__**(%%). The value range of the register is 0 - 20000(Decimal)( Can be greater than 20000).
336 )))
337
338 (((
339 For example, if the data you get from the register is 0x00 0xC8, the soil conductivity is 00C8(H) = 200(D) = 200 uS/cm.
340 )))
341
342 (((
343 Generally, the EC value of irrigation water is less than 800uS / cm.
344 )))
345
346 (((
347
348 )))
349
350 === 2.3.7 MOD ===
351
352
353 Firmware version at least v2.1 supports changing mode.
354
355 For example, bytes[10]=90
356
357 mod=(bytes[10]>>7)&0x01=1.
358
359
360 (% style="color:blue" %)**Downlink Command:**
361
362 If payload = 0x0A00, workmode=0
363
364 If** **payload =** **0x0A01, workmode=1
365
366
367 === 2.3.8 ​Decode payload in The Things Network ===
368
369
370 While using TTN network, you can add the payload format to decode the payload.
371
372 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSE01-LoRaWAN%20Soil%20Moisture%20%26%20EC%20Sensor%20User%20Manual/WebHome/1654505570700-128.png?rev=1.1||alt="1654505570700-128.png"]]
373
374 (((
375 The payload decoder function for TTN is here:
376 )))
377
378 (((
379 SE01-LB TTN Payload Decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]]
380
381
382 )))
383
384 == 2.4 Uplink Interval ==
385
386
387 The SE01-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: [[Change Uplink Interval>>doc:Main.End Device AT Commands and Downlink Command.WebHome||anchor="H4.1ChangeUplinkInterval"]]
388
389
390 == 2.5 Downlink Payload ==
391
392
393 By default, LSE01 prints the downlink payload to console port.
394
395 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:479.818px" %)
396 |=(% style="width: 183px; background-color:#D9E2F3;color:#0070C0" %)**Downlink Control Type**|=(% style="width: 55px; background-color:#D9E2F3;color:#0070C0" %)FPort|=(% style="width: 93px; background-color:#D9E2F3;color:#0070C0" %)**Type Code**|=(% style="width: 146px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)**Downlink payload size(bytes)**
397 |(% style="width:183px" %)TDC (Transmit Time Interval)|(% style="width:55px" %)Any|(% style="width:93px" %)01|(% style="width:146px" %)4
398 |(% style="width:183px" %)RESET|(% style="width:55px" %)Any|(% style="width:93px" %)04|(% style="width:146px" %)2
399 |(% style="width:183px" %)AT+CFM|(% style="width:55px" %)Any|(% style="width:93px" %)05|(% style="width:146px" %)4
400 |(% style="width:183px" %)INTMOD|(% style="width:55px" %)Any|(% style="width:93px" %)06|(% style="width:146px" %)4
401 |(% style="width:183px" %)MOD|(% style="width:55px" %)Any|(% style="width:93px" %)0A|(% style="width:146px" %)2
402
403 (((
404 (% style="color:blue" %)**Examples:**
405 )))
406
407 * (((
408 (% style="color:blue" %)**Set TDC**
409 )))
410
411 (((
412 If the payload=0100003C, it means set the END Node's TDC to 0x00003C=60(S), while type code is 01.
413 )))
414
415 (((
416 Payload:    01 00 00 1E    TDC=30S
417 )))
418
419 (((
420 Payload:    01 00 00 3C    TDC=60S
421 )))
422
423 (((
424
425 )))
426
427 * (((
428 (% style="color:blue" %)**Reset**
429 )))
430
431 (((
432 If payload = 0x04FF, it will reset the SE01-LB
433 )))
434
435
436 * (% style="color:blue" %)**CFM**
437
438 Downlink Payload: 05000001, Set AT+CFM=1 or 05000000 , set AT+CFM=0
439
440
441 == 2.6 Datalog Feature ==
442
443
444 Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, SE01-LB will store the reading for future retrieving purposes.
445
446
447 === 2.6.1 Ways to get datalog via LoRaWAN ===
448
449
450 Set PNACKMD=1, SE01-LB will wait for ACK for every uplink, when there is no LoRaWAN network,SE01-LB will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.
451
452 * (((
453 a) SE01-LB will do an ACK check for data records sending to make sure every data arrive server.
454 )))
455 * (((
456 b) SE01-LB will send data in **CONFIRMED Mode** when PNACKMD=1, but SE01-LB won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if SE01-LB gets a ACK, SE01-LB will consider there is a network connection and resend all NONE-ACK messages.
457 )))
458
459 Below is the typical case for the auto-update datalog feature (Set PNACKMD=1)
460
461 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220703111700-2.png?width=1119&height=381&rev=1.1||alt="图片-20220703111700-2.png" height="381" width="1119"]]
462
463
464 === 2.6.2 Unix TimeStamp ===
465
466
467 SE01-LB uses Unix TimeStamp format based on
468
469 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-11.png?width=627&height=97&rev=1.1||alt="图片-20220523001219-11.png" height="97" width="627"]]
470
471 User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
472
473 Below is the converter example
474
475 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/WebHome/image-20220523001219-12.png?width=720&height=298&rev=1.1||alt="图片-20220523001219-12.png" height="298" width="720"]]
476
477
478 So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
479
480
481 === 2.6.3 Set Device Time ===
482
483
484 User need to set (% style="color:blue" %)**SYNCMOD=1**(%%) to enable sync time via MAC command.
485
486 Once SE01-LB Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to SE01-LB. If SE01-LB fails to get the time from the server, SE01-LB will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days).
487
488 (% style="color:red" %)**Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 v2 doesn't support. If server doesn't support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN V3 v2 if SYNCMOD=1.**
489
490
491 === 2.6.4 Poll sensor value ===
492
493
494 Users can poll sensor values based on timestamps. Below is the downlink command.
495
496 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:425.818px" %)
497 |(% colspan="4" style="background-color:#d9e2f3; color:#0070c0; width:423px" %)**Downlink Command to poll Open/Close status (0x31)**
498 |(% style="width:58px" %)**1byte**|(% style="width:127px" %)**4bytes**|(% style="width:124px" %)**4bytes**|(% style="width:114px" %)**1byte**
499 |(% style="width:58px" %)31|(% style="width:127px" %)Timestamp start|(% style="width:124px" %)Timestamp end|(% style="width:114px" %)Uplink Interval
500
501 (((
502 Timestamp start and Timestamp end-use Unix TimeStamp format as mentioned above. Devices will reply with all data logs during this period, using the uplink interval.
503 )))
504
505 (((
506 For example, downlink command [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/CPL01%20LoRaWAN%20Outdoor%20PulseContact%20%20Sensor%20Manual/WebHome/image-20220518162852-1.png?rev=1.1||alt="image-20220518162852-1.png"]]
507 )))
508
509 (((
510 Is to check 2021/11/12 12:00:00 to 2021/11/12 15:00:00's data
511 )))
512
513 (((
514 Uplink Internal =5s,means SE01-LB will send one packet every 5s. range 5~~255s.
515 )))
516
517
518 == 2.7 Frequency Plans ==
519
520
521 The SE01-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.
522
523 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
524
525
526 == 2.8 Installation in Soil ==
527
528
529 (% style="color:blue" %)**Measurement the soil surface**
530
531 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSE01-LoRaWAN%20Soil%20Moisture%20%26%20EC%20Sensor%20User%20Manual/WebHome/1654506634463-199.png?rev=1.1||alt="1654506634463-199.png"]] ​
532
533 (((
534 (((
535 Choose the proper measuring position. Avoid the probe to touch rocks or hard things. Split the surface soil according to the measured deep. Keep the measured as original density. Vertical insert the probe into the soil to be measured. Make sure not shake when inserting.
536 )))
537 )))
538
539
540 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSE01-LoRaWAN%20Soil%20Moisture%20%26%20EC%20Sensor%20User%20Manual/WebHome/1654506665940-119.png?rev=1.1||alt="1654506665940-119.png"]]
541
542 (((
543 Dig a hole with diameter > 20CM.
544 )))
545
546 (((
547 Horizontal insert the probe to the soil and fill the hole for long term measurement.
548
549
550 )))
551
552 = 3. Configure SE01-LB =
553
554 == 3.1 Configure Methods ==
555
556
557 SE01-LB supports below configure method:
558
559 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
560
561 * AT Command via UART Connection : See [[UART Connection>>http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H2.3UARTConnectionforSN50v3basemotherboard]].
562
563 * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
564
565
566
567 == 3.2 General Commands ==
568
569
570 These commands are to configure:
571
572 * General system settings like: uplink interval.
573
574 * LoRaWAN protocol & radio related command.
575
576 They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
577
578 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/]]
579
580
581 == 3.3 Commands special design for SE01-LB ==
582
583
584 These commands only valid for SE01-LB, as below:
585
586
587 === 3.3.1 Set Transmit Interval Time ===
588
589
590 (((
591 Feature: Change LoRaWAN End Node Transmit Interval.
592 )))
593
594 (((
595 (% style="color:blue" %)**AT Command: AT+TDC**
596 )))
597
598 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
599 |=(% style="width: 156px;background-color:#D9E2F3; color:#0070c0" %)**Command Example**|=(% style="width: 137px;background-color:#D9E2F3; color:#0070c0" %)**Function**|=(% style="background-color:#D9E2F3; color:#0070c0" %)**Response**
600 |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
601 30000
602 OK
603 the interval is 30000ms = 30s
604 )))
605 |(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
606 OK
607 Set transmit interval to 60000ms = 60 seconds
608 )))
609
610 (((
611 (% style="color:blue" %)**Downlink Command: 0x01**
612 )))
613
614 (((
615 Format: Command Code (0x01) followed by 3 bytes time value.
616 )))
617
618 (((
619 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
620 )))
621
622 * (((
623 Example 1: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
624 )))
625
626 * (((
627 Example 2: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
628
629
630
631 )))
632
633 === 3.3.2 Quit AT Command ===
634
635
636 Feature: Quit AT Command mode, so user needs to input the password again before using AT Commands.
637
638 (% style="color:blue" %)**AT Command: AT+DISAT**
639
640 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:452px" %)
641 |=(% style="width: 155px;background-color:#D9E2F3;color:#0070C0" %)**Command Example**|=(% style="width: 198px;background-color:#D9E2F3;color:#0070C0" %)**Function**|=(% style="width: 99px;background-color:#D9E2F3;color:#0070C0" %)**Response**
642 |(% style="width:155px" %)AT+DISAT|(% style="width:198px" %)Quit AT Commands mode|(% style="width:96px" %)OK
643
644 (% style="color:blue" %)**Downlink Command:**
645
646 No downlink command for this feature.
647
648
649 === 3.3.3 Set Interrupt Mode ===
650
651
652 Feature, Set Interrupt mode for PA8 of pin.
653
654 When AT+INTMOD=0 is set, PA8 is used as a digital input port.
655
656 (% style="color:blue" %)**AT Command: AT+INTMOD**
657
658 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
659 |=(% style="width: 155px;background-color:#D9E2F3;color:#0070C0" %)**Command Example**|=(% style="width: 197px;background-color:#D9E2F3;color:#0070C0" %)**Function**|=(% style="width: 158px;background-color:#D9E2F3;color:#0070C0" %)**Response**
660 |(% style="width:154px" %)AT+INTMOD=?|(% style="width:196px" %)Show current interrupt mode|(% style="width:157px" %)(((
661 0
662 OK
663 the mode is 0 =Disable Interrupt
664 )))
665 |(% style="width:154px" %)AT+INTMOD=2|(% style="width:196px" %)(((
666 Set Transmit Interval
667 0. (Disable Interrupt),
668 ~1. (Trigger by rising and falling edge)
669 2. (Trigger by falling edge)
670 3. (Trigger by rising edge)
671 )))|(% style="width:157px" %)OK
672
673 (% style="color:blue" %)**Downlink Command: 0x06**
674
675 Format: Command Code (0x06) followed by 3 bytes.
676
677 This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
678
679 * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
680
681 * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
682
683
684
685 === 3.3.4 Set Power Output Duration ===
686
687
688 Control the output duration 5V . Before each sampling, device will
689
690 ~1. first enable the power output to external sensor,
691
692 2. keep it on as per duration, read sensor value and construct uplink payload
693
694 3. final, close the power output.
695
696 (% style="color:blue" %)**AT Command: AT+5VT**
697
698 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
699 |=(% style="width: 155px;background-color:#D9E2F3;color:#0070C0" %)**Command Example**|=(% style="width: 197px;background-color:#D9E2F3;color:#0070C0" %)**Function**|=(% style="width: 158px;background-color:#D9E2F3;color:#0070C0" %)**Response**
700 |(% style="width:154px" %)AT+5VT=?|(% style="width:196px" %)Show 5V open time.|(% style="width:157px" %)0 (default)
701 OK
702 |(% style="width:154px" %)AT+5VT=500|(% style="width:196px" %)Close after a delay of 1000 milliseconds.|(% style="width:157px" %)OK
703
704 (% style="color:blue" %)**Downlink Command: 0x07**
705
706 Format: Command Code (0x07) followed by 2 bytes.
707
708 The first and second bytes are the time to turn on.
709
710 * Example 1: Downlink Payload: 070000  **~-~-->**  AT+5VT=0
711
712 * Example 2: Downlink Payload: 0701F4  **~-~-->**  AT+5VT=500
713
714
715
716 = 4. Battery & Power Consumption =
717
718
719 SE01-LB use ER26500 + SPC1520 battery pack. See below link for detail information about the battery info and how to replace.
720
721 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
722
723
724 = 5. OTA Firmware update =
725
726
727 (% class="wikigeneratedid" %)
728 User can change firmware SE01-LB to:
729
730 * Change Frequency band/ region.
731
732 * Update with new features.
733
734 * Fix bugs.
735
736 Firmware and changelog can be downloaded from : **[[Firmware download link>>url:https://www.dropbox.com/sh/kwqv57tp6pejias/AAAopYMATh1GM6fZ-VRCLrpDa?dl=0]]**
737
738 Methods to Update Firmware:
739
740 * (Recommanded way) OTA firmware update via wireless:   [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]
741
742 * Update through UART TTL interface. **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**.
743
744
745
746 = 6. FAQ =
747
748 == 6.1  AT Commands input doesn't work ==
749
750
751 In the case if user can see the console output but can't type input to the device. Please check if you already include the (% style="color:green" %)**ENTER**(%%) while sending out the command. Some serial tool doesn't send (% style="color:green" %)**ENTER**(%%) while press the send key, user need to add ENTER in their string.
752
753
754 == 6.2 ​Can I calibrate SE01-LB to different soil types? ==
755
756
757 (((
758 SE01-LB is calibrated for saline-alkali soil and loamy soil. If users want to use it for other soil, they can calibrate the value in the IoT platform base on the value measured by saline-alkali soil and loamy soil. The formula can be found at [[this link>>https://www.dragino.com/downloads/downloads/LoRa_End_Node/LSE01/Calibrate_to_other_Soil_20230522.pdf]].
759 )))
760
761
762 == 6.3 ​Why I can't join TTN in US915 / AU915 bands? ==
763
764
765 It is due to channel mapping. Please see the [[Eight Channel Mode>>doc:Main.End Device AT Commands and Downlink Command.WebHome||anchor="H7.19EightChannelMode"]] section above for details.
766
767
768 = 7. Order Info =
769
770
771 Part Number: (% style="color:blue" %)**SE01-LB-XXX**
772
773 (% style="color:red" %)**XXX**(%%): The default frequency band
774
775 * (% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
776
777 * (% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
778
779 * (% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
780
781 * (% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
782
783 * (% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
784
785 * (% style="color:red" %)**US915**(%%): LoRaWAN US915 band
786
787 * (% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
788
789 * (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
790
791
792
793 = 8. ​Packing Info =
794
795
796 (% style="color:#037691" %)**Package Includes**:
797
798 * SE01-LB LoRaWAN Soil Moisture & EC Sensor
799
800 (% style="color:#037691" %)**Dimension and weight**:
801
802 * Device Size: cm
803
804 * Device Weight: g
805
806 * Package Size / pcs : cm
807
808 * Weight / pcs : g
809
810
811
812 = 9. Support =
813
814
815 * 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.
816
817 * Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to [[Support@dragino.cc>>mailto:Support@dragino.cc]].
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0