Show last authors
1 (% style="text-align:center" %)
2 [[image:image-20240105090614-2.png]]
3
4
5
6
7
8
9
10
11
12 **Table of Contents :**
13
14 {{toc/}}
15
16
17
18
19
20
21 = 1. Introduction =
22
23 == 1.1 What is LoRaWAN Soil Moisture & EC Sensor ==
24
25
26 The Dragino SE01-LB/LS 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.
27
28 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.
29
30 The LoRa wireless technology used in SE01-LB/LS 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.
31
32 SE01-LB/LS (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use.
33
34 SE01-LB/LS is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery**(%%) or (% style="color:blue" %)**solar powered + li-on battery**(%%) it is designed for long term use up to 5 years.
35
36 Each SE01-LB/LS 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
38 [[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"]]
39
40 [[image:image-20230530181051-1.png||height="403" width="806"]]
41
42
43 == 1.2 ​Features ==
44
45
46 * LoRaWAN 1.0.3 Class A
47 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865
48 * Ultra-low power consumption
49 * Monitor Soil Moisture
50 * Monitor Soil Temperature
51 * Monitor Soil Conductivity
52 * Support Bluetooth v5.1 and LoRaWAN remote configure
53 * Support wireless OTA update firmware
54 * AT Commands to change parameters
55 * Downlink to change configure
56 * IP66 Waterproof Enclosure
57 * 8500mAh Li/SOCl2 Battery (SE01-LB)
58 * Solar panel + 3000mAh Li-on battery (SE01-LS)
59
60 == 1.3 Specification ==
61
62
63 (% style="color:blue" %)**Common DC Characteristics:**
64
65 * Supply Voltage: Built-in Battery , 2.5v ~~ 3.6v
66 * Operating Temperature: -40 ~~ 85°C
67
68 (% style="color:blue" %)**Soil Moisture:**
69
70 * Range: 0-100.00 V/V %
71 * Resolution: 0.01 V/V %
72 * Accuracy: ±3% (0-53%)V/V %, ±5% (>53%) V/V %
73 * Measure Method: FDR , with temperature &EC compensate
74
75 (% style="color:blue" %)**Soil Temperature**
76
77 * Range: -40.00℃~85.00℃
78 * Resolution: 0.01℃
79 * Accuracy: -10℃~50℃:<0.3℃ ,All other: <0.6℃
80 * Measure Method: RTD, and calibrate
81
82 (% style="color:blue" %)**Soil Conductivity**
83
84 * Range: 0-20000 uS/cm(25℃)(0-20.0EC)
85 * Resolution: 1 uS/cm
86 * Accuracy: 2%FS
87 * Measure Method: Conductivity , with temperature compensate
88
89 (% style="color:blue" %)**LoRa Spec:**
90
91 * Frequency Range,  Band 1 (HF): 862 ~~ 1020 Mhz
92 * Max +22 dBm constant RF output vs.
93 * RX sensitivity: down to -139 dBm.
94 * Excellent blocking immunity
95
96 (% style="color:blue" %)**Battery:**
97
98 * Li/SOCI2 un-chargeable battery
99 * Capacity: 8500mAh
100 * Self-Discharge: <1% / Year @ 25°C
101 * Max continuously current: 130mA
102 * Max boost current: 2A, 1 second
103
104 (% style="color:blue" %)**Power Consumption**
105
106 * Sleep Mode: 5uA @ 3.3v
107 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm
108
109 == 1.4 Applications ==
110
111
112 * Smart Agriculture
113
114 == 1.5 Sleep mode and working mode ==
115
116
117 (% 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.
118
119 (% 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.
120
121
122 == 1.6 Button & LEDs ==
123
124
125 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/RS485-LB_Waterproof_RS485UART_to_LoRaWAN_Converter/WebHome/image-20240103160425-4.png?rev=1.1||alt="image-20240103160425-4.png" height="448" width="629"]]
126
127 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
128 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 226px;background-color:#4F81BD;color:white" %)**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.
131 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
132 )))
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.
136 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.
137 )))
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 device is in Deep Sleep Mode.
139
140 == 1.7 BLE connection ==
141
142
143 SE01-LB/LS support BLE remote configure.
144
145
146 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:
147
148 * Press button to send an uplink
149 * Press button to active device.
150 * Device Power on or reset.
151
152 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
153
154
155 == 1.8 Pin Definitions ==
156
157
158
159 == 1.9 Mechanical ==
160
161 === 1.9.1 for LB version ===
162
163 (% style="color:blue" %)**Main Device Dimension:**
164
165 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143884058-338.png]]
166
167
168 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143899218-599.png]]
169
170
171 [[image:Main.User Manual for LoRaWAN End Nodes.D20-LBD22-LBD23-LB_LoRaWAN_Temperature_Sensor_User_Manual.WebHome@1675143909447-639.png]]
172
173
174 (% style="color:blue" %)**Probe Dimension:**
175
176 [[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"]]
177
178
179 === 1.9.2 for LS version ===
180
181
182 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20231231203439-3.png?width=886&height=385&rev=1.1||alt="image-20231231203439-3.png"]]
183
184
185 = 2. Configure SE01-LB/LS to connect to LoRaWAN network =
186
187 == 2.1 How it works ==
188
189
190 The SE01-LB/LS 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/LS. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.
191
192 (% style="display:none" %) (%%)
193
194 == 2.2 ​Quick guide to connect to LoRaWAN server (OTAA) ==
195
196
197 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.
198
199 [[image:image-20230530181115-2.png||height="403" width="806"]]
200
201 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.
202
203 (% style="display:none" %)
204
205
206 (% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from SE01-LB/LS.
207
208 Each SE01-LB/LS is shipped with a sticker with the default device EUI as below:
209
210 [[image:image-20230426084152-1.png||alt="图片-20230426084152-1.png" height="233" width="502"]]
211
212
213 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
214
215
216 (% style="color:blue" %)**Register the device**
217
218 [[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"]]
219
220
221 (% style="color:blue" %)**Add APP EUI and DEV EUI**
222
223 [[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"]]
224
225
226 (% style="color:blue" %)**Add APP EUI in the application**
227
228
229 [[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"]]
230
231
232 (% style="color:blue" %)**Add APP KEY**
233
234 [[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"]]
235
236
237 (% style="color:blue" %)**Step 2:**(%%) Activate on SE01-LB/LS
238
239
240 Press the button for 5 seconds to activate the SE01-LB/LS.
241
242 (% 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.
243
244 After join success, it will start to upload messages to TTN and you can see the messages in the panel.
245
246
247 == 2.3 ​Uplink Payload ==
248
249 === 2.3.1 MOD~=0(Default Mode)(% style="display:none" %) (%%) ===
250
251
252 SE01-LB/LS will uplink payload via LoRaWAN with below payload format: 
253
254 (((
255 Uplink payload includes in total 11 bytes.
256 )))
257
258 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
259 |(% style="background-color:#4f81bd; color:white" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**1**
260 |Value|[[BAT>>||anchor="H2.3.4BatteryInfo"]]|(((
261 Temperature
262 (Reserve, Ignore now)
263 )))|[[Soil Moisture>>||anchor="H2.3.5SoilMoisture"]]|[[Soil Temperature>>||anchor="H2.3.6SoilTemperature"]]|[[Soil Conductivity (EC)>>||anchor="H2.3.7SoilConductivity28EC29"]]|(((
264 MOD & Digital Interrupt(Optional)
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="4" style="background-color:#f2f2f2; width:500px" %)
273 |(% style="background-color:#4f81bd; color:white" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**1**
274 |Value|[[BAT>>||anchor="H2.3.4BatteryInfo"]]|(((
275 Temperature
276 (Reserve, Ignore now)
277 )))|[[Soil Conductivity (EC)>>||anchor="H2.3.7SoilConductivity28EC29"]](raw)|[[Soil Moisture>>||anchor="H2.3.5SoilMoisture"]](raw)|[[Dielectric constant>>||anchor="H2.3.7SoilConductivity28EC29"]](raw)|(((
278 MOD & Digital Interrupt(Optional)
279 )))
280
281 === 2.3.3 Device Status, FPORT~=5 ===
282
283
284 (((
285 Users can use the downlink command(**0x26 01**) to ask SE01-LB/LS to send device configure detail, include device configure status. SE01-LB/LS will uplink a payload via FPort=5 to server.
286
287 The Payload format is as below.
288 )))
289
290 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:490px" %)
291 |=(% colspan="6" style="background-color:#4F81BD;color:white" %)Device Status (FPORT=5)
292 |(% style="width:60px" %)**Size(bytes)**|(% style="width:80px" %)**1**|(% style="width:140px" %)**2**|(% style="width:140px" %)**1**|(% style="width:70px" %)**1**|(% style="width:70px" %)**2**
293 |(% style="width:94px" %)Value|(% style="width:68px" %)Sensor Model|(% style="width:80px" %)Firmware Version|(% style="width:86px" %)Frequency Band|(% style="width:61px" %)Sub-band|(% style="width:61px" %)BAT
294
295 [[image:SE01.png]]
296
297
298 * (% style="color:#037691" %)**Sensor Model**(%%)**:** For SE01-LB/LS, this value is 0x26
299
300 * (% style="color:#037691" %)**Firmware Version**(%%)**:** 0x0100, Means: v1.0.0 version
301
302 * (% style="color:#037691" %)**Frequency Band**(%%)**:**
303
304 0x01: EU868
305
306 0x02: US915
307
308 0x03: IN865
309
310 0x04: AU915
311
312 0x05: KZ865
313
314 0x06: RU864
315
316 0x07: AS923
317
318 0x08: AS923-1
319
320 0x09: AS923-2
321
322 0x0a: AS923-3
323
324 0x0b: CN470
325
326 0x0c: EU433
327
328 0x0d: KR920
329
330 0x0e: MA869
331
332 * (% style="color:#037691" %)**Sub-Band**(%%)**:**
333 ** AU915 and US915: value 0x00 ~~ 0x08
334 ** CN470: value 0x0B ~~ 0x0C
335 ** Other Bands: Always 0x00
336
337 * (% style="color:#037691" %)**Battery Info:**
338
339 Check the battery voltage.
340
341 Ex1: 0x0B45 = 2885mV
342
343 Ex2: 0x0B49 = 2889mV
344
345
346 === 2.3.4 Battery Info ===
347
348
349 (((
350 Check the battery voltage for SE01-LB/LS.
351 )))
352
353 (((
354 Ex1: 0x0B45 = 2885mV
355 )))
356
357 (((
358 Ex2: 0x0B49 = 2889mV
359 )))
360
361
362 === 2.3.5 Soil Moisture ===
363
364
365 (((
366 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.
367 )))
368
369 (((
370 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%.**
371 )))
372
373
374 === 2.3.6 Soil Temperature ===
375
376
377 (((
378 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
379 )))
380
381 (((
382 **Example**:
383 )))
384
385 (((
386 If payload is 0105H: ((0x0105 & 0x8000)>>15 === 0),temp = 0105(H)/100 = 2.61 °C
387 )))
388
389 (((
390 If payload is FF7EH: ((FF7E & 0x8000)>>15 ===1),temp = (FF7E(H)-FFFF(H))/100 = -1.29 °C
391 )))
392
393
394 === 2.3.7 Soil Conductivity (EC) ===
395
396
397 (((
398 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).
399 )))
400
401 (((
402 For example, if the data you get from the register is 0x00 0xC8, the soil conductivity is 00C8(H) = 200(D) = 200 uS/cm.
403 )))
404
405 (((
406 Generally, the EC value of irrigation water is less than 800uS / cm.
407 )))
408
409 (((
410
411 )))
412
413 === 2.3.8 MOD ===
414
415
416 Firmware version at least v2.1 supports changing mode.
417
418 For example, bytes[10]=90
419
420 mod=(bytes[10]>>7)&0x01=1.
421
422
423 (% style="color:blue" %)**Downlink Command:**
424
425 If payload = 0x0A00, workmode=0
426
427 If** **payload =** **0x0A01, workmode=1
428
429
430 === 2.3.9 ​Decode payload in The Things Network ===
431
432
433 While using TTN network, you can add the payload format to decode the payload.
434
435 [[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"]]
436
437 (((
438 The payload decoder function for TTN is here:
439 )))
440
441 (((
442 SE01-LB/LS TTN Payload Decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>url:https://github.com/dragino/dragino-end-node-decoder]]
443
444
445 )))
446
447 == 2.4 Uplink Interval ==
448
449
450 The SE01-LB/LS 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"]]
451
452
453 == 2.5 Downlink Payload ==
454
455
456 By default, LSE01 prints the downlink payload to console port.
457
458 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:480px" %)
459 |=(% style="width: 184px; background-color:#4F81BD;color:white" %)**Downlink Control Type**|=(% style="width: 56px; background-color:#4F81BD;color:white" %)FPort|=(% style="width: 94px; background-color:#4F81BD;color:white" %)**Type Code**|=(% style="width: 146px; background-color:#4F81BD;color:white" %)**Downlink payload size(bytes)**
460 |(% style="width:183px" %)TDC (Transmit Time Interval)|(% style="width:55px" %)Any|(% style="width:93px" %)01|(% style="width:146px" %)4
461 |(% style="width:183px" %)RESET|(% style="width:55px" %)Any|(% style="width:93px" %)04|(% style="width:146px" %)2
462 |(% style="width:183px" %)AT+CFM|(% style="width:55px" %)Any|(% style="width:93px" %)05|(% style="width:146px" %)4
463 |(% style="width:183px" %)INTMOD|(% style="width:55px" %)Any|(% style="width:93px" %)06|(% style="width:146px" %)4
464 |(% style="width:183px" %)MOD|(% style="width:55px" %)Any|(% style="width:93px" %)0A|(% style="width:146px" %)2
465
466 (((
467 (% style="color:blue" %)**Examples:**
468 )))
469
470 * (((
471 (% style="color:blue" %)**Set TDC**
472 )))
473
474 (((
475 If the payload=0100003C, it means set the END Node's TDC to 0x00003C=60(S), while type code is 01.
476 )))
477
478 (((
479 Payload:    01 00 00 1E    TDC=30S
480 )))
481
482 (((
483 Payload:    01 00 00 3C    TDC=60S
484 )))
485
486 (((
487
488 )))
489
490 * (((
491 (% style="color:blue" %)**Reset**
492 )))
493
494 (((
495 If payload = 0x04FF, it will reset the SE01-LB/LS
496 )))
497
498
499 * (% style="color:blue" %)**CFM**
500
501 Downlink Payload: 05000001, Set AT+CFM=1 or 05000000 , set AT+CFM=0
502
503
504 == 2.6 Datalog Feature ==
505
506
507 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/LS will store the reading for future retrieving purposes.
508
509
510 === 2.6.1 Ways to get datalog via LoRaWAN ===
511
512
513 Set PNACKMD=1, SE01-LB/LS will wait for ACK for every uplink, when there is no LoRaWAN network,SE01-LB/LS 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.
514
515 * (((
516 a) SE01-LB/LS will do an ACK check for data records sending to make sure every data arrive server.
517 )))
518 * (((
519 b) SE01-LB/LS will send data in **CONFIRMED Mode** when PNACKMD=1, but SE01-LB/LS 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/LS gets a ACK, SE01-LB/LS will consider there is a network connection and resend all NONE-ACK messages.
520
521
522 )))
523
524 === 2.6.2 Unix TimeStamp ===
525
526
527 SE01-LB/LS uses Unix TimeStamp format based on
528
529 [[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"]]
530
531 User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
532
533 Below is the converter example
534
535 [[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"]]
536
537
538 So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
539
540
541 === 2.6.3 Set Device Time ===
542
543
544 User need to set (% style="color:blue" %)**SYNCMOD=1**(%%) to enable sync time via MAC command.
545
546 Once SE01-LB/LS 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/LS. If SE01-LB fails to get the time from the server, SE01-LB/LS will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days).
547
548 (% 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.**
549
550
551 === 2.6.4 Datalog Uplink payload (FPORT~=3) ===
552
553
554 The Datalog uplinks will use below payload format.
555
556 **Retrieval data payload:**
557
558 (% style="color:blue" %)**MOD=0:**
559
560 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
561 |=(% style="width:60px;background-color:#4F81BD;color:white" %)(((
562 **Size(bytes)**
563 )))|=(% style="background-color:#4F81BD;color:white" %)**2**|=(% style="background-color:#4F81BD;color:white" %)**2**|=(% style="background-color:#4F81BD;color:white" %)**2**|=(% style="background-color:#4F81BD;color:white" %)**1**|=(% style="background-color:#4F81BD;color:white" %)**4**
564 |Value|Humidity|(((
565 Temperature
566 )))|Soil Conductivity (EC)|(((
567 MOD& Level of PA8
568 )))|Unix Time Stamp
569
570 (% style="color:blue" %)**MOD=1:**
571
572
573 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
574 |=(% style="width:60px;background-color:#4F81BD;color:white" %)(((
575 **Size(bytes)**
576 )))|=(% style="background-color:#4F81BD;color:white" %)**2**|=(% style="background-color:#4F81BD;color:white" %)**2**|=(% style="background-color:#4F81BD;color:white" %)**2**|=(% style="background-color:#4F81BD;color:white" %)**1**|=(% style="background-color:#4F81BD;color:white" %)**4**
577 |Value|soil dielectric constant|(((
578 raw water soil
579 )))|raw conduct soil|(((
580 MOD& Level of PA8
581 )))|Unix Time Stamp
582
583 (% style="color:blue" %)**Poll Message Flag**(%%): 1: This message is a poll message reply.
584
585 * Poll Message Flag is set to 1.
586
587 * Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands.
588
589 For example, in US915 band, the max payload for different DR is:
590
591 (% style="color:blue" %)**a) DR0:**(%%) max is 11 bytes so one entry of data
592
593 (% style="color:blue" %)**b) DR1:**(%%) max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
594
595 (% style="color:blue" %)**c) DR2:**(%%) total payload includes 11 entries of data
596
597 (% style="color:blue" %)**d) DR3:**(%%) total payload includes 22 entries of data.
598
599 If devise doesn't have any data in the polling time. Device will uplink 11 bytes of 0   
600
601
602 **Example:**
603
604 If SE01-LB/LS has below data inside Flash:
605
606 [[image:image-20230606163540-1.png]]
607
608 If user sends below downlink command: 31646D84E1646D856C05
609
610 Where : Start time: 646D84E1 = time 23/5/24 03:30:41
611
612 Stop time: 646D856C= time 23/5/24 03:33:00
613
614
615 === 2.6.5 Poll sensor value ===
616
617
618 Users can poll sensor values based on timestamps. Below is the downlink command.
619
620 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:425.818px" %)
621 |(% colspan="4" style="background-color:#4f81bd; color:white; width:423px" %)**Downlink Command to poll Open/Close status (0x31)**
622 |(% style="width:58px" %)**1byte**|(% style="width:127px" %)**4bytes**|(% style="width:124px" %)**4bytes**|(% style="width:114px" %)**1byte**
623 |(% style="width:58px" %)31|(% style="width:127px" %)Timestamp start|(% style="width:124px" %)Timestamp end|(% style="width:114px" %)Uplink Interval
624
625 (((
626 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.
627 )))
628
629 (((
630 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"]]
631 )))
632
633 (((
634 Is to check 2021/11/12 12:00:00 to 2021/11/12 15:00:00's data
635 )))
636
637 (((
638 Uplink Internal =5s,means SE01-LB/LS will send one packet every 5s. range 5~~255s.
639 )))
640
641
642 == 2.7 Frequency Plans ==
643
644
645 The SE01-LB/LS uses OTAA mode and below frequency plans by default. Each frequency band use different firmware, user update the firmware to the corresponding band for their country.
646
647 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
648
649
650 == 2.8 Installation in Soil ==
651
652
653 (% style="color:blue" %)**Measurement the soil surface**
654
655 [[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"]] ​
656
657 (((
658 (((
659 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.
660 )))
661 )))
662
663
664 [[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"]]
665
666 (((
667 Dig a hole with diameter > 20CM.
668 )))
669
670 (((
671 Horizontal insert the probe to the soil and fill the hole for long term measurement.
672
673
674 )))
675
676 = 3. Configure SE01-LB/LS =
677
678 == 3.1 Configure Methods ==
679
680
681 SE01-LB/LS supports below configure method:
682
683 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
684
685 * 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]].
686
687 * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
688
689 == 3.2 General Commands ==
690
691
692 These commands are to configure:
693
694 * General system settings like: uplink interval.
695
696 * LoRaWAN protocol & radio related command.
697
698 They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
699
700 [[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/]]
701
702
703 == 3.3 Commands special design for SE01-LB/LS ==
704
705
706 These commands only valid for SE01-LB/LS, as below:
707
708
709 === 3.3.1 Set Transmit Interval Time ===
710
711
712 (((
713 Feature: Change LoRaWAN End Node Transmit Interval.
714 )))
715
716 (((
717 (% style="color:blue" %)**AT Command: AT+TDC**
718 )))
719
720 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
721 |=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Function**|=(% style="background-color:#4F81BD;color:white" %)**Response**
722 |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
723 30000
724 OK
725 the interval is 30000ms = 30s
726 )))
727 |(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
728 OK
729 Set transmit interval to 60000ms = 60 seconds
730 )))
731
732 (((
733 (% style="color:blue" %)**Downlink Command: 0x01**
734 )))
735
736 (((
737 Format: Command Code (0x01) followed by 3 bytes time value.
738 )))
739
740 (((
741 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
742 )))
743
744 * (((
745 Example 1: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
746 )))
747
748 * (((
749 Example 2: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
750
751
752
753 )))
754
755 === 3.3.2 Quit AT Command ===
756
757
758 Feature: Quit AT Command mode, so user needs to input the password again before using AT Commands.
759
760 (% style="color:blue" %)**AT Command: AT+DISAT**
761
762 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:452px" %)
763 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 198px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 99px;background-color:#4F81BD;color:white" %)**Response**
764 |(% style="width:155px" %)AT+DISAT|(% style="width:198px" %)Quit AT Commands mode|(% style="width:96px" %)OK
765
766 (% style="color:blue" %)**Downlink Command:**
767
768 No downlink command for this feature.
769
770
771 === 3.3.3 Set Interrupt Mode ===
772
773
774 Feature, Set Interrupt mode for GPIO_EXTI of pin.
775
776 When AT+INTMOD=0 is set, GPIO_EXTI is used as a digital input port.
777
778 (% style="color:blue" %)**AT Command: AT+INTMOD**
779
780 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
781 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
782 |(% style="width:154px" %)AT+INTMOD=?|(% style="width:196px" %)Show current interrupt mode|(% style="width:157px" %)(((
783 0
784 OK
785 the mode is 0 =Disable Interrupt
786 )))
787 |(% style="width:154px" %)AT+INTMOD=2|(% style="width:196px" %)(((
788 Set Transmit Interval
789 0. (Disable Interrupt),
790 ~1. (Trigger by rising and falling edge)
791 2. (Trigger by falling edge)
792 3. (Trigger by rising edge)
793 )))|(% style="width:157px" %)OK
794
795 (% style="color:blue" %)**Downlink Command: 0x06**
796
797 Format: Command Code (0x06) followed by 3 bytes.
798
799 This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
800
801 * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
802
803 * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
804
805 === 3.3.4 Set Power Output Duration ===
806
807
808 Control the output duration 5V . Before each sampling, device will
809
810 ~1. first enable the power output to external sensor,
811
812 2. keep it on as per duration, read sensor value and construct uplink payload
813
814 3. final, close the power output.
815
816 (% style="color:blue" %)**AT Command: AT+5VT**
817
818 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
819 |=(% style="width: 155px;background-color:#4F81BD;color:white" %)**Command Example**|=(% style="width: 197px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 158px;background-color:#4F81BD;color:white" %)**Response**
820 |(% style="width:154px" %)AT+5VT=?|(% style="width:196px" %)Show 5V open time.|(% style="width:157px" %)0 (default)
821 OK
822 |(% style="width:154px" %)AT+5VT=500|(% style="width:196px" %)Close after a delay of 1000 milliseconds.|(% style="width:157px" %)OK
823
824 (% style="color:blue" %)**Downlink Command: 0x07**
825
826 Format: Command Code (0x07) followed by 2 bytes.
827
828 The first and second bytes are the time to turn on.
829
830 * Example 1: Downlink Payload: 070000  **~-~-->**  AT+5VT=0
831
832 * Example 2: Downlink Payload: 0701F4  **~-~-->**  AT+5VT=500
833
834 = 4. Battery & Power Consumption =
835
836
837 SE01-LB use ER26500 + SPC1520 battery pack and SE01-LS use 3000mAh Recharable Battery with Solar Panel. See below link for detail information about the battery info and how to replace.
838
839 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
840
841
842 = 5. OTA Firmware update =
843
844
845 (% class="wikigeneratedid" %)
846 User can change firmware SE01-LB/LS to:
847
848 * Change Frequency band/ region.
849
850 * Update with new features.
851
852 * Fix bugs.
853
854 Firmware and changelog can be downloaded from : [[**Firmware download link**>>https://www.dropbox.com/sh/sl7fhggzqy0tcbx/AAAIESNEZiKyiHQQz8XIf4e_a?dl=0]]
855
856 Methods to Update Firmware:
857
858 * (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/]]
859
860 * 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]]**.
861
862 = 6. FAQ =
863
864 == 6.1  AT Commands input doesn't work ==
865
866
867 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.
868
869
870 == 6.2 ​Can I calibrate SE01-LB/LS to different soil types? ==
871
872 SE01-LB can be used to measure EC/Moisture in different type of soil event concrete.
873
874 (((
875 SE01-LB/LS 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]].
876 )))
877
878
879 == 6.3 ​Why I can't join TTN in US915 / AU915 bands? ==
880
881
882 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.
883
884
885 = 7. Order Info =
886
887
888 **Part Number: (% style="color:blue" %)SE01-LB-XX (%%) or (% style="color:blue" %)SE01-LS-XX(%%)**
889
890 (% style="color:red" %)**XX**(%%): The default frequency band
891
892 * (% style="color:red" %)**AS923**(%%): LoRaWAN AS923 band
893
894 * (% style="color:red" %)**AU915**(%%): LoRaWAN AU915 band
895
896 * (% style="color:red" %)**EU433**(%%): LoRaWAN EU433 band
897
898 * (% style="color:red" %)**EU868**(%%): LoRaWAN EU868 band
899
900 * (% style="color:red" %)**KR920**(%%): LoRaWAN KR920 band
901
902 * (% style="color:red" %)**US915**(%%): LoRaWAN US915 band
903
904 * (% style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
905
906 * (% style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
907
908 = 8. ​Packing Info =
909
910
911 (% style="color:#037691" %)**Package Includes**:
912
913 * SE01-LB or SE01-LS LoRaWAN Soil Moisture & EC Sensor
914
915 (% style="color:#037691" %)**Dimension and weight**:
916
917 * Device Size: cm
918
919 * Device Weight: g
920
921 * Package Size / pcs : cm
922
923 * Weight / pcs : g
924
925 = 9. Support =
926
927
928 * 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.
929
930 * 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