Version 72.1 by Ellie Zhang on 2023/08/08 11:33

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