Last modified by Mengting Qiu on 2025/07/08 11:26

Show last authors
1
2
3 [[image:image-20240106103059-2.png||data-xwiki-image-style-alignment="center"]]
4
5
6
7
8
9
10
11
12
13
14 **Table of Contents :**
15
16 {{toc/}}
17
18
19
20
21
22
23 = 1. Introduction =
24
25 == 1.1 What is LoRaWAN 4-Channels Distance Sensor ==
26
27
28 The Dragino DDS04-LB/LS is a (% style="color:blue" %)**LoRaWAN 4-Channels Distance Sensor**(%%) for Internet of Things solution. It is capable to add up to four Ultrasonic Sensors to measure four distances at the same time.
29
30 The DDS04-LB/LS can be applied to scenarios such as horizontal distance measurement, parking management system, object proximity and presence detection, intelligent trash can management system, robot obstacle avoidance, automatic control, sewer, etc.
31
32 It detects the (% style="color:blue" %)**distance between the measured object and the sensor**(%%), and uploads the value via wireless to LoRaWAN IoT Server.
33
34 The LoRa wireless technology used in DDS04-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.
35
36 DDS04-LB/LS (% style="color:blue" %)**supports BLE configure**(%%) and (% style="color:blue" %)**wireless OTA update**(%%) which make user easy to use.
37
38 DDS04-LB/LS is powered by (% style="color:blue" %)**8500mAh Li-SOCI2 battery **(%%)or (% style="color:blue" %)**solar powered + Li-ion battery**(%%), it is designed for long term use up to 5 years.
39
40 Each DDS04-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.
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 * Detect Range: Base on External Probe
50 * Monitor Battery Level
51 * Support Bluetooth v5.1 and LoRaWAN remote configure
52 * Support wireless OTA update firmware
53 * AT Commands to change parameters
54 * Downlink to change configure
55 * 8500mAh Li/SOCl2 Battery (DDS04-LB)
56 * Solar panel + 3000mAh Li-ion battery (DDS04-LS)
57
58 == 1.3 Specification ==
59
60
61 (% style="color:#037691" %)**Common DC Characteristics:**
62
63 * Supply Voltage: Built-in Battery , 2.5v ~~ 3.6v
64 * Operating Temperature: -40 ~~ 85°C
65
66 (% style="color:#037691" %)**LoRa Spec:**
67
68 * Frequency Range,  Band 1 (HF): 862 ~~ 1020 Mhz
69 * Max +22 dBm constant RF output vs.
70 * RX sensitivity: down to -139 dBm.
71 * Excellent blocking immunity
72
73 (% style="color:#037691" %)**Battery:**
74
75 * Li/SOCI2 un-chargeable battery
76 * Capacity: 8500mAh
77 * Self-Discharge: <1% / Year @ 25°C
78 * Max continuously current: 130mA
79 * Max boost current: 2A, 1 second
80
81 (% style="color:#037691" %)**Power Consumption**
82
83 * Sleep Mode: 5uA @ 3.3v
84 * LoRa Transmit Mode: 125mA @ 20dBm, 82mA @ 14dBm
85
86 == 1.4 Probe Options ==
87
88 === 1.4.1 Probes Comparation ===
89
90
91 (% border="1" cellspacing="5" style="width:505px" %)
92 |=(% style="width: 80px;background-color:#4F81BD;color:white" %)**Model**|=(% style="width: 147px;background-color:#4F81BD;color:white" %)**Photo**|=(% style="width: 278px;background-color:#4F81BD;color:white" %)**Description**
93 |(% style="width:78px" %)A01A-15|(% style="width:145px" %)(((
94 [[image:image-20250411105813-2.jpeg]]
95 )))|(% style="width:277px" %)(((
96 (((
97 Detect Distance: 28 cm ~~ 750 cm
98 )))
99
100 (((
101 Blind Spot Distance: 0 ~~ 28cm
102 )))
103
104 (((
105 Accuracy: ±(1cm+S*0.3%) (S: Distance)
106 )))
107
108 (((
109 Measure Angle: ~~ 40°
110 )))
111
112 (((
113 Cable Length: 1.5 meter
114 )))
115
116 (((
117 Temperature Compensation
118 )))
119
120 (((
121 Suitable for Flat Object Detect
122 )))
123
124 (((
125 IP67 Water Proof
126 )))
127 )))
128 |(% style="width:78px" %)A02-15|(% style="width:145px" %)(((
129 [[image:image-20250411105832-3.jpeg]]
130 )))|(% style="width:277px" %)(((
131 (((
132 Detect Distance: 3cm ~~ 450cm
133 )))
134
135 (((
136 Blind Spot Distance: 0 ~~ 3cm
137 )))
138
139 (((
140 Accuracy: ±(1cm+S*0.3%) (S: Distance)
141 )))
142
143 (((
144 Measure Angle: ~~ 60°
145 )))
146
147 (((
148 Cable Length: 1.5 meter
149 )))
150
151 (((
152 Temperature Compensation
153 )))
154
155 (((
156 Suitable for Flat Object Detect, Rubbish Bin
157 )))
158
159 (((
160 IP67 Water Proof
161 )))
162 )))
163 |(% style="width:78px" %)A13-15|(% style="width:145px" %)(((
164 [[image:image-20250411105848-4.jpeg]]
165 )))|(% style="width:277px" %)(((
166 (((
167 Detect Distance: 25cm ~~ 200cm
168 )))
169
170 (((
171 Blind Spot Distance: 0 ~~ 25cm
172 )))
173
174 (((
175 Accuracy: ±(1cm+S*0.3%) (S: Distance)
176 )))
177
178 (((
179 Measure Angle: ~~ 20°
180 )))
181
182 (((
183 Cable Length: 1.5 meter
184 )))
185
186 (((
187 Temperature Compensation
188 )))
189
190 (((
191 Suitable for Flat Object Detect, Rubbish Bin
192 )))
193
194 (((
195 IP67 Water Proof
196 )))
197 )))
198 |(% style="width:78px" %)A16-15|(% style="width:145px" %)(((
199 [[image:image-20250411110016-5.jpeg]]
200 )))|(% style="width:277px" %)(((
201 (((
202 Detect Distance: 50cm ~~ 1500cm
203 )))
204
205 (((
206 Blind Spot Distance: 0 ~~ 50cm
207 )))
208
209 (((
210 Accuracy: ±(1cm+S*0.3%) (S: Distance)
211 )))
212
213 (((
214 Measure Angle: ~~ 40°
215 )))
216
217 (((
218 Cable Length: 1.5 meter
219 )))
220
221 (((
222 Temperature Compensation
223 )))
224
225 (((
226 Suitable for Long Distance Detect
227 )))
228
229 (((
230 IP67 Water Proof
231 )))
232 )))
233
234 === 1.4.2 A01A-15 probe ===
235
236
237 (((
238 A01A-15 is mainly used for plane distance measurement; it can carry out targeted measurement on plane objects and can measure long distances and high accuracy.
239 )))
240
241
242 (((
243 (% style="color:blue" %)**Beam Chart:**
244 )))
245
246 (((
247 **(1) The tested object is a white cylindrical tube made of PVC, with a height of 100cm and a diameter of 7.5cm.**
248 )))
249
250 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411110820-6.jpeg]]
251
252
253 (((
254 **(2)** **The object to be tested is a "corrugated cardboard box" perpendicular to the central axis of 0 °, and the length * width is 60cm * 50cm.**
255 )))
256
257 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411110854-7.jpeg]]
258
259
260 (% style="color:blue" %)**Mechanical:**
261
262 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411111010-8.jpeg]]
263
264 [[image:image-20250411111040-9.jpeg]]
265
266 [[image:image-20250411111059-10.jpeg]]
267
268
269 (% style="color:blue" %)**Application:**
270
271 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411111157-11.jpeg]]
272
273
274 === 1.4.3 A02-15 probe ===
275
276 (% id="cke_bm_620491S" style="color:blue; display:none" %)** **
277
278
279 (((
280 (% style="color:blue" %)**Beam Chart:**
281 )))
282
283 (((
284 **(1) The tested object is a white cylindrical tube made of PVC, with a height of 100cm and a diameter of 7.5cm.**
285 )))
286
287 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411113659-16.jpeg]]
288
289
290 (((
291 **(2)** **The object to be tested is a "corrugated cardboard box" perpendicular to the central axis of 0 °, and the length * width is 60cm * 50cm.**
292 )))
293
294 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411113355-13.jpeg]]
295
296
297 (% style="color:blue" %)**Mechanical:**(% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
298
299 [[image:image-20250411113434-14.jpeg]]
300
301
302 (% style="color:blue" %)**Application:**
303
304 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411113501-15.jpeg]]
305
306
307 === 1.4.4 A13-15 probe ===
308
309 (% id="cke_bm_695100S" style="color:blue; display:none" %)** **
310
311
312 (((
313 (% style="color:blue" %)**Beam Chart:**
314 )))
315
316 (((
317 **(1) The tested object is a white cylindrical tube made of PVC, with a height of 100cm and a diameter of 7.5cm.**
318 )))
319
320 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411114332-17.jpeg]]
321
322
323 (((
324 **(2)** **The object to be tested is a "corrugated cardboard box" perpendicular to the central axis of 0 °, and the length * width is 60cm * 50cm.**
325 )))
326
327
328 (((
329 (% style="color:blue" %)**Mechanical:**
330 )))
331
332 [[image:image-20250411114406-18.jpeg]]
333
334 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
335
336 (% style="color:blue" %)**Installation Requirement:**
337
338 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411114450-19.jpeg]]
339
340
341 (% style="color:blue" %)**Application:**
342
343 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411114523-20.jpeg]]
344
345
346 === 1.4.5 A13-16 probe ===
347
348 (% id="cke_bm_695100S" style="color:blue; display:none" %)** **
349
350
351 (((
352 (% style="color:blue" %)**Beam Chart:**
353 )))
354
355 (((
356 **(1) The tested object is a white cylindrical tube made of PVC, with a height of 100cm and a diameter of 7.5cm.**
357 )))
358
359 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411114729-21.jpeg]]
360
361
362 (((
363 **(2)** **The object to be tested is a "corrugated cardboard box" perpendicular to the central axis of 0 °, and the length * width is 60cm * 50cm.**
364 )))
365
366 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411114812-22.jpeg]]
367
368
369 (% style="color:blue" %)**Mechanical:**
370
371 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411114859-23.jpeg]]
372
373
374 (% style="color:blue" %)**Application:**
375
376 (% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​[[image:image-20250411115026-24.jpeg]]
377
378
379 == 1.5 Applications ==
380
381
382 * Horizontal distance measurement
383 * Parking management system
384 * Object proximity and presence detection
385 * Intelligent trash can management system
386 * Robot obstacle avoidance
387 * Automatic control
388 * Sewer
389
390 == 1.6 Sleep mode and working mode ==
391
392
393 (% 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.
394
395 (% 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.
396
397
398 == 1.7 Button & LEDs ==
399
400
401 [[image:image-20250411115736-25.jpeg]]
402
403 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
404 |=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 225px;background-color:#4F81BD;color:white" %)**Action**
405 |[[image:1749547564726-360.png]] 1~~3s|(% style="width:117px" %)Send an uplink|(% style="width:225px" %)(((
406 If sensor is already Joined to LoRaWAN network, sensor will send an uplink packet, (% style="color:blue" %)**blue led** (%%)will blink once.
407 Meanwhile, BLE module will be active and user can connect via BLE to configure device.
408 )))
409 |[[image:1749547567052-248.png]] >3s|(% style="width:117px" %)Active Device|(% style="width:225px" %)(((
410 (% 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.
411 (% style="color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after joined in network.
412 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.
413 )))
414 |[[image:1749547540352-122.png]] x5|(% 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.
415
416 == 1.8 BLE connection ==
417
418
419 DDS04-LB/LS support BLE remote configure.
420
421
422 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:
423
424 * Press button to send an uplink
425 * Press button to active device.
426 * Device Power on or reset.
427
428 If there is no activity connection on BLE in 60 seconds, sensor will shut down BLE module to enter low power mode.
429
430
431 == 1.9 Pin Definitions ==
432
433
434 [[image:image-20250218145939-1.jpeg||height="358" width="779"]]
435
436
437 == 1.10 Mechanical ==
438
439 === 1.10.1 for LB version ===
440
441 [[image:image-20250411115850-26.jpeg]]
442
443
444 === 1.10.2 for LS version ===
445
446 [[image:image-20250411115917-27.jpeg]]
447
448
449 = 2. Configure DDS04-LB/LS to connect to LoRaWAN network =
450
451 == 2.1 How it works ==
452
453
454 The DDS04-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 DDS04-LB/LS. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.
455
456
457 == 2.2 Connect Probe ==
458
459
460 DDS04-LB/LS has a converter, User need to connect the Ultrasonic Probes to the convert as below. Different probes are supported, please see this link for the probe options.
461
462 [[image:image-20250411133441-28.jpeg]]
463
464
465
466 **Probe mapping as below.**
467
468 [[image:image-20250411133637-29.jpeg]]
469
470
471 == 2.3 ​Quick guide to connect to LoRaWAN server (OTAA) ==
472
473
474 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.
475
476 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.
477
478 [[image:image-20250411102325-1.png]](% style="display:none" %)
479
480
481 (% style="color:blue" %)**Step 1:**(%%) Create a device in TTN with the OTAA keys from DDS04-LB/LS.
482
483 Each DDS04-LB/LS is shipped with a sticker with the default device EUI as below:
484
485 [[image:image-20230426084152-1.png||alt="图片-20230426084152-1.png" height="233" width="502"]]
486
487
488 === 2.3.1 Creating an application ===
489
490
491 Sign up for a free account with [[The Things Stack Sandbox>>url:https://eu1.cloud.thethings.network/]] if you do not have one yet. Then, create an application as shown in the screenshots below.
492
493 **Application ID:** Provide a unique name to identify your application within The Things Stack, e.g., //dragino-docs//.
494
495 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/WQS-LB--LoRaWAN_Water_Quality_Sensor_Transmitter_User_Manual/WebHome/tti-new-application.png?rev=1.2||alt="tti-new-application.png" height="757" width="1211"]]
496
497
498 === 2.3.2 Adding manually ===
499
500
501 You can refer to the screenshots below to register your WQS-LB using The Things Stack's manual option.
502
503 On The Things Stack console:
504
505 ~1. Click **Applications**.
506
507 2. Click <**your application**>. E.g. dragino-docs
508
509 3 Click **End devices**.
510
511 4. Click **+ Register end device** button.
512
513 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N-VIB_LoRaWAN_Vibration_Sensor_Manual/WebHome/lht65n-vib-1.png?rev=1.1||alt="lht65n-vib-1.png" height="731" width="1066"]]
514
515 5. Select **Enter end device specifies manually** option.
516
517 6. **Frequency plan**: Select the frequency plan that matches your device. E.g.: Europe 863-870 MHz (SF9 for RX2 - recommended).
518
519 7. **LoRaWAN version**: LoRaWAN Specification 1.0.3
520
521 8. **Regional Parameters version**: You can't change it and it will select automatically.
522
523 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N-VIB_LoRaWAN_Vibration_Sensor_Manual/WebHome/lht65n-vib-3.png?rev=1.1||alt="lht65n-vib-3.png" height="664" width="968"]]
524
525 9. Click on the **Show advanced activation, LoRaWAN class and cluster settings **to expand the section.
526
527 10. Select **Over the air activation (OTAA**) option.
528
529 ~11. Select **None (class A only)**.
530
531 12. **JoinEUI**: Enter the **AppEUI** of the device (see the registration information sticker) and Click the **Confirm** button.
532
533 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N-VIB_LoRaWAN_Vibration_Sensor_Manual/WebHome/lht65n-vib-4.png?rev=1.1||alt="lht65n-vib-4.png" height="610" width="889"]]
534
535 13. **DevEUI**: Enter the DevEUI of the device (see the registration information sticker).
536
537 14. **AppKey**: Enter the AppKey of the device (see the registration information sticker).
538
539 15. **End device ID**: Enter a name for your end device to uniquely identify it within this application.
540
541 16. Click **View registered end device** option.
542
543 17. Click **Register end device** button.
544
545 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/WQS-LB--LoRaWAN_Water_Quality_Sensor_Transmitter_User_Manual/WebHome/wqs-lb-4.png?rev=1.1||alt="wqs-lb-4.png" height="619" width="903"]]
546
547 You will be navigated to the **Device overview **page.
548
549
550 (% style="color:blue" %)**Step 2:**(%%) Activate on DDS04-LB/LS
551
552
553 Press the button for 5 seconds to activate the DDS04-LB/LS.
554
555 (% 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.
556
557 After join success, it will start to upload messages to TTN and you can see the messages in the panel.
558
559
560 === 2.3.3 Uplink Decoder in The Things Stack ===
561
562
563 When the uplink payload arrives in The Things Stack, it is displayed in HEX format, which is not easy to read. You can add the WQS-LB decoder in The Things Stack for easier readability of each sensor reading.
564
565 The uplink decoder can be added to the** Payload Formatters** of your device in The Things Stack. Refer to the screenshot below.
566
567 ~1. Click **Uplink** tab.
568
569 2. **Formatter type:** Select Custom Javascript formatter.
570
571 3. **Formatter code**: Copy the uplink payload formatter code from our [[dragino-end-node-decoder GitHub repository>>url:https://github.com/dragino/dragino-end-node-decoder/blob/main/WQS-LB/WQS-LB_TTN_Decoder.txt]] and paste it here.
572
573 4. Finally, click on the **Save changes** button.
574
575 [[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N-VIB_LoRaWAN_Vibration_Sensor_Manual/WebHome/Screenshot%202024-12-03%20at%2017.34.15.png?rev=1.1||alt="Screenshot 2024-12-03 at 17.34.15.png" height="575" width="1046"]]
576
577
578 == 2.4  ​Uplink Payload ==
579
580 === 2.4.1 Device Status, FPORT~=5 ===
581
582
583 Users can use the downlink command(**0x26 01**) to ask DDS04-LB/LS to send device configure detail, include device configure status. DDS04-LB/LS will uplink a payload via FPort=5 to server.
584
585 The Payload format is as below.
586
587 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
588 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
589 **Size(bytes)**
590 )))|=(% style="width: 100px; background-color: #4F81BD;color:white;" %)**1**|=(% style="width: 100px; background-color: #4F81BD;color:white;" %)**2**|=(% style="background-color: #4F81BD;color:white; width: 100px;" %)**1**|=(% style="background-color: #4F81BD;color:white; width: 100px;" %)**1**|=(% style="background-color: #4F81BD;color:white; width: 50px;" %)**2**
591 |(% style="width:62.5px" %)Value|(% style="width:110px" %)Sensor Model|(% style="width:48px" %)Firmware Version|(% style="width:94px" %)Frequency Band|(% style="width:91px" %)Sub-band|(% style="width:60px" %)BAT
592
593 Example parse in TTNv3
594
595 [[image:image-20230805170720-3.png||height="147" width="751"]]
596
597 (% style="color:blue" %)**Sensor Model**(%%): For DDS04-LB/LS, this value is 0x23
598
599 (% style="color:blue" %)**Firmware Version**(%%): 0x0100, Means: v1.0.0 version
600
601 (% style="color:blue" %)**Frequency Band**:
602
603 0x01: EU868
604
605 0x02: US915
606
607 0x03: IN865
608
609 0x04: AU915
610
611 0x05: KZ865
612
613 0x06: RU864
614
615 0x07: AS923
616
617 0x08: AS923-1
618
619 0x09: AS923-2
620
621 0x0a: AS923-3
622
623 0x0b: CN470
624
625 0x0c: EU433
626
627 0x0d: KR920
628
629 0x0e: MA869
630
631 (% style="color:blue" %)**Sub-Band**:
632
633 AU915 and US915:value 0x00 ~~ 0x08
634
635 CN470: value 0x0B ~~ 0x0C
636
637 Other Bands: Always 0x00
638
639 (% style="color:blue" %)**Battery Info**:
640
641 Check the battery voltage.
642
643 Ex1: 0x0B45 = 2885mV
644
645 Ex2: 0x0B49 = 2889mV
646
647
648 === 2.4.2 Uplink Payload, FPORT~=2 ===
649
650
651 (((
652 DDS04-LB/LS will send this uplink **after** Device Status once join the LoRaWAN network successfully. And DDS04-LB/LS will:
653
654 periodically send this uplink every 20 minutes, this interval [[can be changed>>||anchor="H3.3.1SetTransmitIntervalTime"]].
655 )))
656
657 (((
658 Uplink payload includes in total 11 bytes.
659 )))
660
661 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
662 |=(% style="width: 62.5px;background-color:#4F81BD;color:white" %)(((
663 **Size(bytes)**
664 )))|=(% style="width: 62.5px;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
665 |(% style="width:62.5px" %)Value|(((
666 [[BAT>>||anchor="HBatteryInfo"]]
667 &
668 [[Interrupt  flag>>||anchor="HInterruptflag26A0Interruptlevel"]]
669 &
670 [[Interrupt  level>>||anchor="HInterruptflag26A0Interruptlevel"]]
671 )))|(((
672 [[Distance of UT sensor1>>||anchor="HDistance"]]
673 )))|(((
674 [[Distance of UT sensor2>>||anchor="HDistance"]]
675 )))|(((
676 [[Distance of UT sensor3>>||anchor="HDistance"]]
677 )))|(((
678 [[Distance of UT sensor4>>||anchor="HDistance"]]
679 )))|(((
680 [[Message Type>>||anchor="HMessageType"]]
681 )))
682
683 [[image:image-20230805170701-2.png||height="139" width="755"]]
684
685
686 ==== (% style="color:blue" %)**Battery Info**(%%) ====
687
688
689 Check the battery voltage for DDS04-LB/LS.
690
691 Ex1: 0x0B45 & 0x3FFF = 2885mV
692
693 Ex2: 0x0B49 & 0x3FFF = 2889mV
694
695
696 ==== (% style="color:blue" %)**Interrupt flag & Interrupt level**(%%) ====
697
698
699 (((
700 This data field shows if this packet is generated by interrupt or not. [[Click here>>||anchor="H3.3.2SetInterruptMode"]] for the hardware and software set up.
701 )))
702
703 (((
704 (% style="color:red" %)**Note: **(%%)The Internet Pin is a separate pin in the screw terminal. See [[pin mapping>>||anchor="H1.9PinDefinitions"]] of GPIO_EXTI.
705 )))
706
707 (((
708
709 )))
710
711 (((
712 **Example:**
713 )))
714
715 (((
716 (0x0D4A & 0x4000) >>14 = 0: Normal uplink packet.
717 )))
718
719 (((
720 (0x4D41 & (% title="Click and drag to resize" %)0x4000)(%%) >>14 = 1: Interrupt Uplink Packet.
721 )))
722
723
724 (((
725 (0x0D4A & 0x8000) >>15 = 0: Pin of GPIO_EXTI is low level.
726 )))
727
728 (((
729 (0x8D41 & (% title="Click and drag to resize" %)0x8000)(%%) >>15 = 1: Pin of GPIO_EXTI is high level.
730 )))
731
732
733 ==== (% style="color:blue" %)**Distance**(%%) ====
734
735
736 (((
737 (((
738 The measuring distance of the four distance measuring modules, the default unit is cm.(% style="display:none" %)
739 )))
740
741 (((
742 **Example**:
743 )))
744
745 (((
746 Uplink Payload: 0D 4A 03 16 03 18 03 1A 03 15 01
747 )))
748
749 (((
750 (% title="Click and drag to resize" %)**Data analysis:**
751 )))
752
753 (((
754 Distance of UT sensor1 : 0316(H) = 790 (D)/10 = 79cm.
755 )))
756
757 (((
758 Distance of UT sensor2 : 0318(H) = 792 (D)/10 = 79.2cm.
759 )))
760
761 (((
762 Distance of UT sensor3 : 031A(H) = 794 (D)/10 = 79.4cm.
763 )))
764
765 (((
766 Distance of UT sensor4 : 0315(H) = 789 (D)/10 = 78.9cm.
767 )))
768 )))
769
770
771 ==== (% style="color:blue" %)**Message Type**(%%) ====
772
773
774 (((
775 For a normal uplink payload, the message type is always 0x01.
776 )))
777
778 (((
779 Valid Message Type:(% style="display:none" %) 
780 )))
781
782 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:499px" %)
783 |=(% style="width: 161px;background-color:#4F81BD;color:white" %)**Message Type Code**|=(% style="width: 164px;background-color:#4F81BD;color:white" %)**Description**|=(% style="width: 174px;background-color:#4F81BD;color:white" %)**Payload**
784 |(% style="width:160px" %)0x01|(% style="width:163px" %)Normal Uplink|(% style="width:173px" %)Normal Uplink Payload
785 |(% style="width:160px" %)0x02|(% style="width:163px" %)Reply configures info|(% style="width:173px" %)Configure Info Payload
786
787 (% class="wikigeneratedid" %)
788 [[image:image-20230805170631-1.png||height="227" width="752"]]
789
790
791 === 2.4.3 Historical measuring distance, FPORT~=3 ===
792
793
794 DDS04-LB/LS stores sensor values and users can retrieve these history values via the [[downlink command>>||anchor="H2.6.4Pollsensorvalue"]].
795
796 The historical payload includes one or multiplies entries and every entry has the same payload as Real-Time measuring distance.
797
798 (% style="color:red" %)**Note: Due to the byte limit, the history record can only save the data of the first, second, third measurement distance channels.**
799
800 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %)
801 |=(% style="width: 62.5px;background-color:#4F81BD;color:white" %)(((
802 **Size(bytes)**
803 )))|=(% style="width: 70px;background-color:#4F81BD;color:white" %)**1**|=(% 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" %)**4**
804 |(% style="width:62.5px" %)Value|(((
805 Interrupt flag & Interrupt_level
806 )))|(((
807 Distance1
808 )))|(((
809 Distance2
810 )))|(((
811 Distance3
812 )))|(((
813 Unix TimeStamp
814 )))
815
816 **Interrupt flag & Interrupt level:**
817
818 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:480px" %)
819 |=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
820 **Size(bit)**
821 )))|=(% style="width: 90px; background-color:#4F81BD; color: white;" %)**bit7**|=(% style="background-color:#4F81BD; color: white; width: 90px;" %)**bit7**|=(% style="background-color:#4F81BD; color: white; width: 60px;" %)**[bit5:bit2]**|=(% style="background-color:#4F81BD; color: white; width: 90px;" %)**bit1**|=(% style="background-color:#4F81BD; color: white; width: 90px;" %)**bit0**
822 |(% style="width:62.5px" %)Value|(% style="width:85px" %)(((
823 No ACK message
824 )))|(% style="width:87px" %)(((
825 Poll Message Flag
826 )))|(% style="width:93px" %)(((
827 Reserve
828 )))|(% style="width:80px" %)(((
829 Interrupt level
830 )))|(% style="width:82px" %)(((
831 Interrupt flag
832 )))
833
834 * (((
835 Each data entry is 11 bytes and has the same structure as [[Uplink Payload>>||anchor="H2.4.2UplinkPayload2CFPORT3D2"]], to save airtime and battery, DDS04-LB/LS will send max bytes according to the current DR and Frequency bands.
836 )))
837
838 For example, in the US915 band, the max payload for different DR is:
839
840 **a) DR0:** max is 11 bytes so one entry of data
841
842 **b) DR1:** max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
843
844 **c) DR2:** total payload includes 11 entries of data
845
846 **d) DR3:** total payload includes 22 entries of data.
847
848 If DDS04-LB/LS doesn't have any data in the polling time. It will uplink 11 bytes of 0
849
850
851 **Downlink:**
852
853 0x31 64 CC C6 9E 64 CC C7 70 05
854
855 [[image:image-20230805173511-4.png||height="127" width="768"]]
856
857 **Uplink:**
858
859 43 01 BB 0B ED 0B FE 64 CC C6 A4 40 01 BE 0B 5B 0D 31 64 CC C6 C0 40 01 BE 0B 55 0C 02 64 CC C6 FC 41 01 BE 0B 4E 0B FD 64 CC C7 17 40 01 BE 0B F4 0B F7 64 CC C7 61
860
861
862 **Parsed Value:**
863
864 [DISTANCE1 , DISTANCE2,DISTANCE3,EXTI_STATUS , EXTI_FLAG , TIME]
865
866
867 [44.3,305.3,307,High,True,2023-08-04 09:36:36],
868
869 [44.6,290.7,337.7,Low,False,2023-08-04 09:37:04],
870
871 [44.6,290.1,307.4,Low,False,2023-08-04 09:38:04],
872
873 [44.6,289.4,306.9,Low,True,2023-08-04 09:38:31],
874
875 [44.6,306,306.3,Low,False,2023-08-04 09:39:45],
876
877
878 **History read from serial port:**
879
880 [[image:image-20230805173637-5.png]]
881
882
883 === 2.4.4  Decode payload in The Things Network ===
884
885
886 While using TTN network, you can add the payload format to decode the payload.
887
888 [[image:image-20250411134038-30.jpeg]]
889
890
891 The payload decoder function for TTN is here:
892
893 DDS04-LB/LS TTN Payload Decoder:  [[ttps:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
894
895
896 == 2.5 ​Show Data in DataCake IoT Server ==
897
898
899 (((
900 [[DATACAKE>>url:https://datacake.co/]] provides a human friendly interface to show the sensor data, once we have data in TTN, we can use [[DATACAKE>>url:https://datacake.co/]] to connect to TTN and see the data in DATACAKE. Below are the steps:
901 )))
902
903
904 (((
905 (% style="color:blue" %)**Step 1**(%%)**: Be sure that your device is programmed and properly connected to the network at this time.**
906 )))
907
908 (((
909 (% style="color:blue" %)**Step 2**(%%)**: To configure the Application to forward data to DATACAKE you will need to add integration. To add the DATACAKE integration, perform the following steps:**
910 )))
911
912 [[image:image-20250411134104-31.jpeg]]
913
914
915 [[image:image-20250411134123-32.jpeg]]
916
917
918 (% style="color:blue" %)**Step 3**(%%)**: Create an account or log in Datacake.**
919
920 (% style="color:blue" %)**Step 4**(%%)**: Search the DDS04-LB/LS and add DevEUI.**
921
922
923 [[image:image-20250411134145-33.jpeg]]
924
925
926 [[image:image-20250411134247-34.jpeg]]
927
928
929 [[image:image-20250411134307-35.jpeg]]
930
931
932 (% style="color:blue" %)**Step 5**(%%)**: Add payload decode**
933
934 [[image:image-20250411134333-36.jpeg]]
935
936
937 [[image:image-20250411134351-37.jpeg]]
938
939
940 [[image:image-20250411134424-38.jpeg]]
941
942
943 **After added, the sensor data arrive TTN, it will also arrive and show in Datacake.**
944
945 [[image:image-20250411134506-39.jpeg]]
946
947
948 [[image:image-20250411134536-40.jpeg]]
949
950
951 [[image:image-20250411134557-41.jpeg]]
952
953
954 == 2.6 Datalog Feature ==
955
956
957 Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, DDS04-LB/LS will store the reading for future retrieving purposes.
958
959
960 === 2.6.1 How datalog works ===
961
962
963 DDS04-LB/LS will wait for ACK for every uplink, when there is no LoRaWAN network,DDS04-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.
964
965 * (((
966 a) DDS04-LB/LS will do an ACK check for data records sending to make sure every data arrive server.
967 )))
968 * (((
969 b) DDS04-LB/LS will send data in **CONFIRMED Mode**, but DDS04-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 DDS04-LB/LS gets a ACK, DDS04-LB/LS will consider there is a network connection and resend all NONE-ACK messages.
970
971
972 )))
973
974 === 2.6.2 Enable Datalog ===
975
976
977 User need to make sure below two settings are enable to use datalog;
978
979 * (% style="color:blue" %)**SYNCMOD=1(Default)**(%%) to enable sync time via LoRaWAN MAC command, click here ([[AT+SYNCMOD>>https://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H4.6Settimesynchronizationmethod28ThenetworkservermustsupportLoRaWANv1.0.329]]) for detailed instructions.
980 * (% style="color:blue" %)**PNACKMD=1**(%%)** **to enable datalog feature, click here ([[AT+PNACKMD>>https://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#H7.26RequesttheservertosendanACK]]) for detailed instructions.
981
982
983
984 Once DDS04-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 DDS04-LB/LS. If DDS04-LB/LS fails to get the time from the server, DDS04-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).
985
986 (% 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.**
987
988
989 === 2.6.3 Unix TimeStamp ===
990
991
992 DDS04-LB/LS uses Unix TimeStamp format based on
993
994 [[image:image-20250411135314-42.jpeg]]
995
996 User can get this time from link:  [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :
997
998 Below is the converter example
999
1000 [[image:image-20250411135327-43.jpeg]]
1001
1002
1003 So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
1004
1005
1006 === 2.6.4 Poll sensor value ===
1007
1008
1009 Users can poll sensor values based on timestamps. Below is the downlink command.
1010
1011 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:425.818px" %)
1012 |(% colspan="4" style="background-color:#4f81bd; color:white; width:423px" %)**Downlink Command to poll Open/Close status (0x31)**
1013 |(% style="width:58px" %)**1byte**|(% style="width:127px" %)**4bytes**|(% style="width:124px" %)**4bytes**|(% style="width:114px" %)**1byte**
1014 |(% style="width:58px" %)31|(% style="width:127px" %)Timestamp start|(% style="width:124px" %)Timestamp end|(% style="width:114px" %)Uplink Interval
1015
1016 (((
1017 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.
1018 )))
1019
1020 (((
1021 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"]]
1022 )))
1023
1024 (((
1025 Is to check 2021/11/12 12:00:00 to 2021/11/12 15:00:00's data
1026 )))
1027
1028 (((
1029 Uplink Internal =5s,means DDS04-LB/LS will send one packet every 5s. range 5~~255s.
1030 )))
1031
1032
1033
1034
1035 == 2.7 Frequency Plans ==
1036
1037
1038 The DDS04-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.
1039
1040 [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/>>http://wiki.dragino.com/xwiki/bin/view/Main/End%20Device%20Frequency%20Band/]]
1041
1042
1043 = 3. Configure DDS04-LB/LS =
1044
1045 == 3.1 Configure Methods ==
1046
1047
1048 DDS04-LB/LS supports below configure method:
1049
1050 * AT Command via Bluetooth Connection (**Recommended**): [[BLE Configure Instruction>>http://wiki.dragino.com/xwiki/bin/view/Main/BLE%20Bluetooth%20Remote%20Configure/]].
1051
1052 * 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]].
1053
1054 * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
1055
1056 == 3.2 General Commands ==
1057
1058
1059 These commands are to configure:
1060
1061 * General system settings like: uplink interval.
1062
1063 * LoRaWAN protocol & radio related command.
1064
1065 They are same for all Dragino Devices which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki:
1066
1067 [[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/]]
1068
1069
1070 == 3.3 Commands special design for DDS04-LB/LS ==
1071
1072
1073 These commands only valid for DDS04-LB/LS, as below:
1074
1075
1076 === 3.3.1 Set Transmit Interval Time ===
1077
1078
1079 (((
1080 Feature: Change LoRaWAN End Node Transmit Interval.
1081 )))
1082
1083 (((
1084 (% style="color:blue" %)**AT Command: AT+TDC**
1085 )))
1086
1087 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
1088 |=(% 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**
1089 |(% style="width:156px" %)AT+TDC=?|(% style="width:137px" %)Show current transmit Interval|(((
1090 30000
1091 OK
1092 the interval is 30000ms = 30s
1093 )))
1094 |(% style="width:156px" %)AT+TDC=60000|(% style="width:137px" %)Set Transmit Interval|(((
1095 OK
1096 Set transmit interval to 60000ms = 60 seconds
1097 )))
1098
1099 (((
1100 (% style="color:blue" %)**Downlink Command: 0x01**
1101 )))
1102
1103 (((
1104 Format: Command Code (0x01) followed by 3 bytes time value.
1105 )))
1106
1107 (((
1108 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
1109 )))
1110
1111 * (((
1112 Example 1: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
1113 )))
1114 * (((
1115 Example 2: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
1116
1117
1118
1119 )))
1120
1121 === 3.3.2 Set Interrupt Mode ===
1122
1123
1124 Feature, Set Interrupt mode for pin of GPIO_EXTI.
1125
1126 When AT+INTMOD=0 is set, GPIO_EXTI is used as a digital input port.
1127
1128 (% style="color:blue" %)**AT Command: AT+INTMOD**
1129
1130 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
1131 |=(% 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**
1132 |(% style="width:154px" %)AT+INTMOD=?|(% style="width:196px" %)Show current interrupt mode|(% style="width:157px" %)(((
1133 0
1134 OK
1135 the mode is 0 =Disable Interrupt
1136 )))
1137 |(% style="width:154px" %)(((
1138 AT+INTMOD=2
1139
1140 (default)
1141 )))|(% style="width:196px" %)(((
1142 Set Transmit Interval
1143 0. (Disable Interrupt),
1144 ~1. (Trigger by rising and falling edge)
1145 2. (Trigger by falling edge)
1146 3. (Trigger by rising edge)
1147 )))|(% style="width:157px" %)OK
1148
1149 (% style="color:blue" %)**Downlink Command: 0x06**
1150
1151 Format: Command Code (0x06) followed by 3 bytes.
1152
1153 This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
1154
1155 * Example 1: Downlink Payload: 06000000  ~/~/  Turn off interrupt mode
1156
1157 * Example 2: Downlink Payload: 06000003  ~/~/  Set the interrupt mode to rising edge trigger
1158
1159 === 3.3.3 Set Power Output Duration ===
1160
1161
1162 Control the output duration 3V3 (pin of VBAT_OUT). Before each sampling, device will
1163
1164 ~1. first enable the power output to external sensor,
1165
1166 2. keep it on as per duration, read sensor value and construct uplink payload
1167
1168 3. final, close the power output.
1169
1170 (% style="color:blue" %)**AT Command: AT+3V3T**
1171
1172 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
1173 |=(% 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**
1174 |(% style="width:154px" %)AT+3V3T=?|(% style="width:196px" %)Show 3V3 open time.|(% style="width:157px" %)0 (default)
1175 OK
1176 |(% style="width:154px" %)AT+3V3T=1000|(% style="width:196px" %)Close after a delay of 1000 milliseconds.|(% style="width:157px" %)OK
1177 |(% style="width:154px" %)AT+3V3T=0|(% style="width:196px" %)Always turn on the power supply of 3V3 pin.|(% style="width:157px" %)OK
1178 |(% style="width:154px" %)AT+3V3T=65535|(% style="width:196px" %)Always turn off the power supply of 3V3 pin.|(% style="width:157px" %)OK
1179
1180 (% style="color:blue" %)**Downlink Command: 0x07**
1181
1182 Format: Command Code (0x07) followed by 3 bytes.
1183
1184 The first byte is 01,the second and third bytes are the time to turn on.
1185
1186 * Example 1: Downlink Payload: 07 01 00 00  **~-~-->**  AT+3V3T=0
1187 * Example 2: Downlink Payload: 07 01 01 F4  **~-~-->**  AT+3V3T=500
1188 * Example 3: Downlink Payload: 07 01 FF FF  **~-~-->**  AT+3V3T=65535
1189
1190 === 3.3.4 Set enable or disable of the measurement channel ===
1191
1192
1193 This command can be used when user connects **less than four distance sensors**. This command can turn off unused measurement channels to **save battery life**.
1194
1195 (% style="color:blue" %)**AT Command: AT+ENCHANNEL**
1196
1197
1198 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
1199 |=(% style="width: 185px; background-color: #4F81BD; color: white;" %)**Command Example**|=(% style="width: 193px; background-color: #4F81BD; color: white;" %)**Function**|=(% style="width: 122px; background-color: #4F81BD; color: white;" %)**Response**
1200 |(% style="width:199px" %)AT+ENCHANNEL=?|(% style="width:199px" %)Get enabled channels.|(% style="width:150px" %)1,1,1,1 (default)
1201 OK
1202 |(% style="width:199px" %)AT+ENCHANNEL=1,1,1,0|(% style="width:199px" %)Channel 4 disabled.|(% style="width:150px" %)OK
1203 |(% style="width:199px" %)AT+ENCHANNEL=1,1,0,0|(% style="width:199px" %)Channel 3 and 4 disabled.|(% style="width:150px" %)OK
1204
1205 (% style="color:blue" %)**Downlink Command: 0x08**
1206
1207 Format: Command Code (0x08) followed by 4 bytes.
1208
1209 The first byte means the first channel, the second byte means the second channel, the third byte means the third channel, and the fourth byte means the fourth channel.And 1 means enable channel, 0 means disable channel.
1210
1211 * Example 1: Downlink Payload: 08 01 01 01 01  **~-~-->**  AT+ENCHANNEL=1,1,1,1  ~/~/All channels are enabled
1212
1213 * Example 2: Downlink Payload: 08 01 01 01 00  **~-~-->**  AT+ENCHANNEL=1,1,1,0  ~/~/Channel 4 disabled
1214
1215 * Example 3: Downlink Payload: 08 01 01 00 00  **~-~-->**  AT+ENCHANNEL=1,1,0,0  ~/~/Channel 3 and 4 disabled
1216
1217 = 4. Battery & Power Consumption =
1218
1219
1220 DDS04-LB use ER26500 + SPC1520 battery pack and DDS04-LS use 3000mAh Recharable Battery with Solar Panel. See below link for detail information about the battery info and how to replace.
1221
1222 [[**Battery Info & Power Consumption Analyze**>>http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20calculate%20the%20battery%20life%20of%20Dragino%20sensors%3F/]] .
1223
1224
1225 = 5. OTA Firmware update =
1226
1227
1228 (% class="wikigeneratedid" %)
1229 User can change firmware DDS04-LB/LS to:
1230
1231 * Change Frequency band/ region.
1232
1233 * Update with new features.
1234
1235 * Fix bugs.
1236
1237 Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/sh/z4y0v06hajv6omk/AAAgddLEpwawt9uLw6PR-_X1a?dl=0]]**
1238
1239 Methods to Update Firmware:
1240
1241 * (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/]]**
1242
1243 * 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]]**.
1244
1245 = 6. FAQ =
1246
1247 == 6.1  What is the frequency plan for DDS04-LB/LS? ==
1248
1249
1250 DDS04-LB/LS use the same frequency as other Dragino products. User can see the detail from this link:  [[Introduction>>doc:Main.End Device Frequency Band.WebHome||anchor="H1.Introduction"]]
1251
1252
1253 = 7.  Trouble Shooting =
1254
1255 == 7.1  Why I can't join TTN V3 in US915 / AU915 bands? ==
1256
1257
1258 It is due to channel mapping. Please see below link:  [[Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]]
1259
1260
1261 == 7.2  AT Command input doesn't work ==
1262
1263
1264 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:blue" %)**ENTER**(%%) while sending out the command. Some serial tool doesn't send (% style="color:blue" %)**ENTER**(%%) while press the send key, user need to add ENTER in their string.
1265
1266
1267 == 7.3  Why does the sensor reading show 0 or "No sensor" ==
1268
1269
1270 ~1. The measurement object is very close to the sensor, but in the blind spot of the sensor.
1271
1272 2. Sensor wiring is disconnected
1273
1274 3. Not using the correct decoder
1275
1276
1277 = 8. Order Info =
1278
1279 == 8.1  Main Device DDS04-LB/LS ==
1280
1281
1282 **Part Number : (% style="color:blue" %)DDS04-LB-XX (%%)or (% style="color:blue" %)DDS04-LS-XX(%%)**
1283
1284 (% style="color:blue" %)**XX**(%%)**: **The default frequency band
1285
1286 * (% style="color:red" %)**AS923 **(%%)**:** LoRaWAN AS923 band
1287 * (% style="color:red" %)**AU915 **(%%)**:** LoRaWAN AU915 band
1288 * (% style="color:red" %)**EU433 **(%%)**:** LoRaWAN EU433 band
1289 * (% style="color:red" %)**EU868 **(%%)**:** LoRaWAN EU868 band
1290 * (% style="color:red" %)**KR920 **(%%)**:** LoRaWAN KR920 band
1291 * (% style="color:red" %)**US915 **(%%)**:** LoRaWAN US915 band
1292 * (% style="color:red" %)**IN865 **(%%)**:**  LoRaWAN IN865 band
1293 * (% style="color:red" %)**CN470 **(%%)**:** LoRaWAN CN470 band
1294
1295 == 8.2  Probe Model ==
1296
1297
1298 Detail See [[Probe Option>>||anchor="H1.4ProbeOptions"]] Section
1299
1300 * A01A-15
1301 * A02-15
1302 * A13-15
1303 * A16-15
1304
1305 = 9. ​Packing Info =
1306
1307
1308 (% style="color:#037691" %)**Package Includes**:
1309
1310 * DDS04-LB or DDS04-LS LoRaWAN 4-Channels Distance Detection Sensor x 1
1311
1312 (% style="color:#037691" %)**Dimension and weight**:
1313
1314 * Device Size: cm
1315
1316 * Device Weight: g
1317
1318 * Package Size / pcs : cm
1319
1320 * Weight / pcs : g
1321
1322 = 10. Support =
1323
1324
1325 * 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.
1326
1327 * 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]].