Show last authors
1 (% style="text-align:center" %)
2 [[image:image-20220611143226-1.png||height="568" width="437"]]
3
4
5
6
7 **Contents:**
8
9 {{toc/}}
10
11
12
13
14
15
16
17
18
19 = 1.  Introduction =
20
21 == 1.1 ​ What is LoRaWAN 4-Channels Distance Sensor ==
22
23 (((
24
25
26 (((
27 The Dragino LDDS04 is a (% style="color:#4472c4" %)**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.
28 )))
29
30 (((
31 The LDDS04 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.
32 )))
33
34 (((
35 It detects the distance between the measured object and the sensor, and uploads the value via wireless to LoRaWAN IoT Server.
36 )))
37
38 (((
39 The LoRa wireless technology used in LDDS04 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.
40 )))
41
42 (((
43 LDDS04 is powered by (% style="color:#4472c4" %)**8500mAh Li-SOCI2 battery**(%%), it is designed for long term use up to 5 years.
44 )))
45
46 (((
47 Each LDDS04 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.
48 )))
49
50 (((
51 (((
52
53
54 [[image:1654929411930-747.png]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
55 )))
56 )))
57 )))
58
59
60
61 == ​1.2  Features ==
62
63 * LoRaWAN 1.0.3 Class A
64 * Ultra-low power consumption
65 * Detect Range: Base on External Probe
66 * Monitor Battery Level
67 * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865
68 * AT Commands to change parameters
69 * Uplink on periodically
70 * Downlink to change configure
71 * 8500mAh Battery for long term use
72
73 (% style="display:none" %) ** **
74
75
76
77 == 1.3 ​ Applications ==
78
79 * Horizontal distance measurement
80 * Parking management system
81 * Object proximity and presence detection
82 * Intelligent trash can management system
83 * Robot obstacle avoidance
84 * Automatic control
85 * Sewer
86
87
88
89 == 1.4  Pin mapping and power on ==
90
91 [[image:1654930101285-501.png]]
92
93 (% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
94
95 == 1.5  Probe Options ==
96
97 === 1.5.1  Probes Comparation ===
98
99
100 (% border="1" cellspacing="10" style="background-color:#f7faff; width:505px" %)
101 |=(% style="width: 78px;" %)**Model**|=(% style="width: 145px;" %)**Photo**|=(% style="width: 277px;" %)**Description**
102 |(% style="width:78px" %)A01A-15|(% style="width:145px" %)(((
103 [[image:1654931296150-422.png||height="180" width="180"]]
104
105
106
107 )))|(% style="width:277px" %)(((
108 Detect Distance: 28 cm ~~ 750 cm
109
110 Bling Spot Distance: 0 ~~ 28cm
111
112 Accuracy: ±(1cm+S*0.3%) (S: Distance)
113
114 Measure Angle: ~~ 40°
115
116 Cable Length: 1.5 meter
117
118 Temperature Compensation
119
120 Suitable for Flat Object Detect
121
122 IP67 Water Proof
123 )))
124 |(% style="width:78px" %)A02-15|(% style="width:145px" %)(((
125 [[image:image-20220611150955-2.png||height="180" width="180"]]
126
127
128
129 )))|(% style="width:277px" %)(((
130 Detect Distance: 3cm ~~ 450cm
131
132 Bling Spot Distance: 0 ~~ 3cm
133
134 Accuracy: ±(1cm+S*0.3%) (S: Distance)
135
136 Measure Angle: ~~ 60°
137
138 Cable Length: 1.5 meter
139
140 Temperature Compensation
141
142 Suitable for Flat Object Detect, Rubbish Bin
143
144 IP67 Water Proof
145 )))
146 |(% style="width:78px" %)A13-15|(% style="width:145px" %)(((
147 [[image:1654931353123-552.png||height="180" width="180"]]
148
149
150
151 )))|(% style="width:277px" %)(((
152 Detect Distance: 25cm ~~ 200cm
153
154 Bling Spot Distance: 0 ~~ 25cm
155
156 Accuracy: ±(1cm+S*0.3%) (S: Distance)
157
158 Measure Angle: ~~ 20°
159
160 Cable Length: 1.5 meter
161
162 Temperature Compensation
163
164 Suitable for Flat Object Detect, Rubbish Bin
165
166 IP67 Water Proof
167 )))
168 |(% style="width:78px" %)A16-15|(% style="width:145px" %)(((
169 [[image:1654931363281-306.png||height="180" width="180"]]
170
171
172
173 )))|(% style="width:277px" %)(((
174 Detect Distance: 50cm ~~ 1500cm
175
176 Bling Spot Distance: 0 ~~ 50cm
177
178 Accuracy: ±(1cm+S*0.3%) (S: Distance)
179
180 Measure Angle: ~~ 40°
181
182 Cable Length: 1.5 meter
183
184 Temperature Compensation
185
186 Suitable for Long Distance Detect
187
188 IP67 Water Proof
189 )))
190
191
192 === 1.5.2  P01A-15 probe ===
193
194 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.
195
196
197 (% style="color:blue" %)**Beam Chart:**
198
199 **(1) The tested object is a white cylindrical tube made of PVC, with a height of 100cm and a diameter of 7.5cm.**
200
201 [[image:1654852253176-749.png||data-widget="image"]]
202
203
204 **(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.**
205
206 [[image:1654852175653-550.png||data-widget="image"]]
207
208
209 (% style="color:blue" %)**Mechanical:**
210
211 [[image:image-20220611152848-11.png]]
212
213
214 [[image:1654932546845-829.png]]
215
216
217 [[image:image-20220611152934-12.png]]
218
219
220
221 (% style="color:blue" %)**Application:**
222
223 [[image:image-20220611153001-13.png]] [[image:1654932667221-964.png]] [[image:image-20220611153001-15.png]]
224
225
226
227 === 1.5.3  A02-15 probe ===
228
229 (% id="cke_bm_620491S" style="color:blue; display:none" %)** **
230
231 (% style="color:blue" %)**Beam Chart:**
232
233 **(1) The tested object is a white cylindrical tube made of PVC, with a height of 100cm and a diameter of 7.5cm.**
234
235 [[image:1654934329751-424.png]]
236
237
238 **(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.**
239
240 [[image:1654934343649-264.png]]
241
242
243 (% style="color:blue" %)**Mechanical:**
244
245 [[image:1654932923252-110.png]]
246
247
248
249 (% style="color:blue" %)**Application:**
250
251 [[image:image-20220611153001-13.png]]
252
253
254
255 === 1.5.4  A13-15 probe ===
256
257 (% id="cke_bm_695100S" style="color:blue; display:none" %)** **
258
259 (% style="color:blue" %)**Beam Chart:**
260
261 **(1) The tested object is a white cylindrical tube made of PVC, with a height of 100cm and a diameter of 7.5cm.**
262
263 [[image:1654934363730-880.png]]
264
265
266 **(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.**
267
268
269 (% style="color:blue" %)**Mechanical:**
270
271
272 [[image:image-20220611154330-16.png]]
273
274
275
276 (% style="color:blue" %)**Installation Requirement:**
277
278 [[image:1654933425011-311.png||height="649" width="747"]]
279
280
281
282 (% style="color:blue" %)**Application:**
283
284 [[image:image-20220611154426-17.png]] [[image:image-20220611154426-18.png]] [[image:image-20220611154426-19.png]]
285
286
287
288 === 1.5.5  A13-16 probe ===
289
290 (% id="cke_bm_695100S" style="color:blue; display:none" %)** **
291
292 (% style="color:blue" %)**Beam Chart:**
293
294 **(1) The tested object is a white cylindrical tube made of PVC, with a height of 100cm and a diameter of 7.5cm.**
295
296 [[image:1654934415156-713.png]]
297
298
299 **(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.**
300
301 [[image:1654934424571-232.png]]
302
303
304 (% style="color:blue" %)**Mechanical:**
305
306 [[image:image-20220611160117-1.png]]
307
308
309
310 (% style="color:blue" %)**Application:**
311
312 [[image:image-20220611155020-22.png]] [[image:1654934606943-694.png]]
313
314
315 [[image:image-20220611155020-24.png]] [[image:image-20220611155020-25.png||height="347" width="292"]]
316
317
318
319 = 2.  Configure LDDS04 to connect to LoRaWAN network =
320
321 == 2.1  How it works ==
322
323 (((
324 (((
325 The LDDS04 is configured as 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 power on the LDDS04. It will automatically join the network via OTAA and start to send the sensor value. The default uplink interval is 20 minutes.
326 )))
327 )))
328
329 (((
330
331 )))
332
333
334 == 2.2  Connect Probe ==
335
336 (((
337 (((
338 LDDS04 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.
339 )))
340 )))
341
342
343 [[image:image-20220611160853-2.png||height="351" width="407"]]
344
345
346 Probe mapping as below.
347
348 [[image:image-20220611160853-3.png||height="463" width="746"]]
349
350
351
352 == 2.3  ​Quick guide to connect to LoRaWAN server (OTAA) ==
353
354 (((
355 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 [[LG308>>url:http://www.dragino.com/products/lora/item/140-lg308.html]] as a LoRaWAN gateway in this example.
356
357 [[image:1654935011447-935.png||height="410" width="802"]]
358 )))
359
360 (% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
361
362 (((
363 The LG308 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.
364 )))
365
366 (((
367 (% style="color:blue" %)**Step 1**(%%): Create a device in TTN with the OTAA keys from LDDS04.
368 )))
369
370 (((
371 Each LDDS04 is shipped with a sticker with the default device keys, user can find this sticker in the box. it looks like below:
372 )))
373
374 (% aria-label="image-20220607170145-1.jpeg image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220607170145-1.jpeg||data-widget="image"]](% 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" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
375
376
377
378 (((
379 You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
380
381 **Register the device:**
382 )))
383
384 (% 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:1654935135620-998.png]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[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" %)​​
385
386 (% 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" %)​
387
388
389 **Add APP EUI and DEV EUI:**
390
391
392 [[image:image-20220611161308-4.png||height="551" width="753"]]
393
394
395
396 **Add APP EUI in the application:**
397
398
399 [[image:image-20220611161308-5.png||height="601" width="742"]]
400
401
402 **Add APP KEY**
403
404 [[image:image-20220611161308-6.png||height="485" width="744"]]
405
406 (% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]]
407
408 (% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
409
410 (% style="color:blue" %)**Step 2**(%%): Power on LDDS04
411
412
413 Put a Jumper on JP2 to power on the device. ( The Switch must be in FLASH position).
414
415 (% 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:1654935407017-525.png]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
416
417
418 (((
419 (% style="color:blue" %)**Step 3**(%%)**:** The LDDS04 will auto join to the TTN network. After join success, it will start to upload messages to TTN and you can see the messages in the panel.
420 )))
421
422 (% 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:1654935473814-664.png||height="203" width="744"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[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" %)​​
423
424
425
426 == 2.4  ​Uplink Payload ==
427
428 (((
429 (((
430 (((
431 LDDS04 will uplink payload via LoRaWAN with below payload format: 
432 )))
433
434 (((
435 Uplink payload includes in total 11 bytes.
436 )))
437 )))
438 )))
439
440 (((
441
442 )))
443
444 (% border="1" cellspacing="10" style="background-color:#ffffcc; width:510px" %)
445 |=(% style="width: 62.5px;" %)(((
446 **Size (bytes)**
447 )))|=(% style="width: 62.5px;" %)**2**|=**2**|=2|=2|=**2**|=1
448 |(% style="width:62.5px" %)**Value**|(((
449 [[BAT>>||anchor="H2.4.1A0BatteryInfo"]]
450
451 &
452
453 [[Interrupt  flag>>||anchor="H2.4.2A0InterruptPin"]]
454 )))|(((
455 [[Distance of UT sensor1>>||anchor="H2.4.3A0Distance"]]
456 )))|(((
457 [[Distance of UT sensor2>>||anchor="H2.4.3A0Distance"]]
458 )))|(((
459 [[Distance of UT sensor3>>||anchor="H2.4.3A0Distance"]]
460 )))|(((
461 [[Distance of UT sensor4>>||anchor="H2.4.3A0Distance"]]
462 )))|(((
463 [[Message Type>>||anchor="H2.4.4A0MessageType"]]
464 )))
465
466 [[image:1654935473814-664.png||height="199" width="729"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
467
468
469
470 === 2.4.1  Battery Info ===
471
472
473 Check the battery voltage for LDDS45.
474
475 Ex1: 0x0B45 = 2885mV
476
477 Ex2: 0x0B49 = 2889mV
478
479
480
481 === 2.4.2  Interrupt Pin ===
482
483 This data field shows if this packet is generated by interrupt or not. [[Click here>>||anchor="H3.2A0SetInterruptMode"]] for the hardware and software set up.
484
485 Note: The Internet Pin is a separate pin in the screw terminal. See [[pin mapping>>||anchor="H1.4A0Pinmappingandpoweron"]].
486
487
488 **Example:**
489
490 (0x0D4A & 0x8000) >>15 = 0: Normal uplink packet.
491
492 (0x8D41 & 0x8000) >>15 = 1: Interrupt Uplink Packet.
493
494
495
496 === 2.4.3  Distance ===
497
498 (((
499 The measuring distance of the four distance measuring modules, the default unit is cm.
500
501
502 **Example**:
503
504 Uplink Payload: 0D 4A 03 16 03 18 03 1A 03 15 01
505
506
507 Data analysis:
508
509 Distance of UT sensor1 : 0316(H) = 790 (D)/10 = 79cm.
510
511 Distance of UT sensor2 : 0318(H) = 792 (D)/10 = 79.2cm.
512
513 Distance of UT sensor3 : 031A(H) = 794 (D)/10 = 79.4cm.
514
515 Distance of UT sensor4 : 0315(H) = 789 (D)/10 = 78.9cm.
516
517
518 )))
519
520
521 === 2.4.4  Message Type ===
522
523 (((
524 For a normal uplink payload, the message type is always 0x01.
525 )))
526
527 (((
528 Valid Message Type:
529 )))
530
531
532 (% border="1" cellspacing="10" style="background-color:#ffffcc; width:499px" %)
533 |=(% style="width: 160px;" %)**Message Type Code**|=(% style="width: 163px;" %)**Description**|=(% style="width: 173px;" %)**Payload**
534 |(% style="width:160px" %)0x01|(% style="width:163px" %)Normal Uplink|(% style="width:173px" %)[[Normal Uplink Payload>>||anchor="H2.4A0200BUplinkPayload"]]
535 |(% style="width:160px" %)0x02|(% style="width:163px" %)Reply configures info|(% style="width:173px" %)[[Configure Info Payload>>||anchor="H3.3A0GetFirmwareVersionInfo"]]
536
537 [[image:1654936589640-122.png||height="248" width="806"]]
538
539
540
541 === 2.4.5  Decode payload in The Things Network ===
542
543 While using TTN network, you can add the payload format to decode the payload.
544
545 [[image:1654936675588-151.png||height="379" width="762"]]
546
547 (% 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" %)​
548
549 The payload decoder function for TTN is here:
550
551 LDDS04 TTN Payload Decoder: [[https:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDDS04/Decoder/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LLDS12/Decoder/]]
552
553
554 **//function Decoder(bytes, port) {//**
555
556 **// var decode = {};//**
557
558 **// var value=(bytes[0]<<8 | bytes[1]) & 0x3FFF;//**
559
560 **// decode.BatV= value/1000;//**
561
562 **// decode.EXTI_Trigger=(bytes[0] & 0x80)? "TRUE":"FALSE";//**
563
564 **// decode.distance1_cm=(bytes[2]<<8 | bytes[3])/10;//**
565
566 **// decode.distance2_cm=(bytes[4]<<8 | bytes[5])/10;//**
567
568 **// decode.distance3_cm=(bytes[6]<<8 | bytes[7])/10//**
569
570 **// decode.distance4_cm=(bytes[8]<<8 | bytes[9])/10;//**
571
572 **// decode.mes_type= bytes[10];//**
573
574
575 **// if(!((bytes[0]==0x03)&&(bytes[10]==0x02~)~)~)//**
576
577 **// {//**
578
579 **// return decode;//**
580
581 **// }//**
582
583 **//}//**
584
585 (% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[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" %)​​
586
587 (((
588
589 )))
590
591
592
593 == 2.5  Uplink Interval ==
594
595 The LDDS04 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"]]
596
597
598
599 == 2.6  ​Show Data in DataCake IoT Server ==
600
601 (((
602 [[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:
603 )))
604
605 (((
606
607 )))
608
609 (((
610 (% style="color:blue" %)**Step 1**(%%)**: Be sure that your device is programmed and properly connected to the network at this time.**
611 )))
612
613 (((
614 (% 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:**
615 )))
616
617
618 (% aria-label="1654592790040-760.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654592790040-760.png||data-widget="image"]](% 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" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
619
620
621 (% aria-label="1654592800389-571.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654592800389-571.png||data-widget="image"]](% 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" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
622
623
624 (% style="color:blue" %)**Step 3**(%%)**: Create an account or log in Datacake.**
625
626 (% style="color:blue" %)**Step 4**(%%)**: Create LDDS04 product. **
627
628
629
630 [[image:image-20220611164604-7.png]]
631
632
633
634 [[image:image-20220611164604-8.png]]
635
636
637 [[image:image-20220611164604-9.png]]
638
639
640 (% style="color:blue" %)**Step 5**(%%)**: ** **add payload decode**
641
642
643 [[image:image-20220611164604-10.png||height="394" width="923"]]
644
645
646 [[image:image-20220611164604-11.png||height="303" width="931"]]
647
648
649 [[image:image-20220611164604-12.png||height="331" width="897"]]
650
651
652 After added, the sensor data arrive TTN, it will also arrive and show in Datacake.
653
654 [[image:image-20220611164604-13.png||height="215" width="899"]]
655
656
657 [[image:image-20220611164604-14.png||height="632" width="824"]]
658
659
660 [[image:image-20220611164604-15.png]]
661
662
663 [[image:image-20220611164604-16.png||height="409" width="833"]]
664
665
666
667 == 2.7  Frequency Plans ==
668
669 (((
670 The LDDS45 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.
671 )))
672
673
674
675 === 2.7.1  EU863-870 (EU868) ===
676
677 (((
678 (% style="color:blue" %)**Uplink:**
679 )))
680
681 (((
682 868.1 - SF7BW125 to SF12BW125
683 )))
684
685 (((
686 868.3 - SF7BW125 to SF12BW125 and SF7BW250
687 )))
688
689 (((
690 868.5 - SF7BW125 to SF12BW125
691 )))
692
693 (((
694 867.1 - SF7BW125 to SF12BW125
695 )))
696
697 (((
698 867.3 - SF7BW125 to SF12BW125
699 )))
700
701 (((
702 867.5 - SF7BW125 to SF12BW125
703 )))
704
705 (((
706 867.7 - SF7BW125 to SF12BW125
707 )))
708
709 (((
710 867.9 - SF7BW125 to SF12BW125
711 )))
712
713 (((
714 868.8 - FSK
715 )))
716
717 (((
718
719 )))
720
721 (((
722 (% style="color:blue" %)**Downlink:**
723 )))
724
725 (((
726 Uplink channels 1-9 (RX1)
727 )))
728
729 (((
730 869.525 - SF9BW125 (RX2 downlink only)
731 )))
732
733
734
735 === 2.7.2  US902-928(US915) ===
736
737 (((
738
739
740 Used in USA, Canada, and South America. Frequency band as per definition in LoRaWAN 1.0.3 Regional document.
741
742 To make sure the end node supports all sub band by default. In the OTAA Join process, the end node will use frequency 1 from sub-band1, then frequency 1 from sub-band2, then frequency 1 from sub-band3, etc to process the OTAA join.
743
744
745 After Join success, the end node will switch to the correct sub band by:
746
747 * Check what sub-band the LoRaWAN server ask from the OTAA Join Accept message and switch to that sub-band
748 * Use the Join successful sub-band if the server doesn’t include sub-band info in the OTAA Join Accept message ( TTN v2 doesn't include)
749
750
751 )))
752
753
754
755
756
757 === 2.7.3  CN470-510 (CN470) ===
758
759 (((
760 Used in China, Default use CHE=1
761 )))
762
763 (((
764 (% style="color:blue" %)**Uplink:**
765 )))
766
767 (((
768 486.3 - SF7BW125 to SF12BW125
769 )))
770
771 (((
772 486.5 - SF7BW125 to SF12BW125
773 )))
774
775 (((
776 486.7 - SF7BW125 to SF12BW125
777 )))
778
779 (((
780 486.9 - SF7BW125 to SF12BW125
781 )))
782
783 (((
784 487.1 - SF7BW125 to SF12BW125
785 )))
786
787 (((
788 487.3 - SF7BW125 to SF12BW125
789 )))
790
791 (((
792 487.5 - SF7BW125 to SF12BW125
793 )))
794
795 (((
796 487.7 - SF7BW125 to SF12BW125
797 )))
798
799 (((
800
801 )))
802
803 (((
804 (% style="color:blue" %)**Downlink:**
805 )))
806
807 (((
808 506.7 - SF7BW125 to SF12BW125
809 )))
810
811 (((
812 506.9 - SF7BW125 to SF12BW125
813 )))
814
815 (((
816 507.1 - SF7BW125 to SF12BW125
817 )))
818
819 (((
820 507.3 - SF7BW125 to SF12BW125
821 )))
822
823 (((
824 507.5 - SF7BW125 to SF12BW125
825 )))
826
827 (((
828 507.7 - SF7BW125 to SF12BW125
829 )))
830
831 (((
832 507.9 - SF7BW125 to SF12BW125
833 )))
834
835 (((
836 508.1 - SF7BW125 to SF12BW125
837 )))
838
839 (((
840 505.3 - SF12BW125 (RX2 downlink only)
841 )))
842
843
844
845 === 2.7.4  AU915-928(AU915) ===
846
847 (((
848
849
850 (((
851 Frequency band as per definition in LoRaWAN 1.0.3 Regional document.
852 )))
853
854 (((
855 To make sure the end node supports all sub band by default. In the OTAA Join process, the end node will use frequency 1 from sub-band1, then frequency 1 from sub-band2, then frequency 1 from sub-band3, etc to process the OTAA join.
856 )))
857
858 (((
859
860 )))
861
862 (((
863 After Join success, the end node will switch to the correct sub band by:
864 )))
865
866 * (((
867 Check what sub-band the LoRaWAN server ask from the OTAA Join Accept message and switch to that sub-band
868 )))
869 * (((
870 Use the Join successful sub-band if the server doesn’t include sub-band info in the OTAA Join Accept message ( TTN v2 doesn't include)
871 )))
872
873
874 )))
875
876 === 2.7.5  AS920-923 & AS923-925 (AS923) ===
877
878 (((
879 (% style="color:blue" %)**Default Uplink channel:**
880 )))
881
882 (((
883 923.2 - SF7BW125 to SF10BW125
884 )))
885
886 (((
887 923.4 - SF7BW125 to SF10BW125
888 )))
889
890 (((
891
892 )))
893
894 (((
895 (% style="color:blue" %)**Additional Uplink Channel**:
896 )))
897
898 (((
899 (OTAA mode, channel added by JoinAccept message)
900 )))
901
902 (((
903
904 )))
905
906 (((
907 (% style="color:blue" %)**AS920~~AS923 for Japan, Malaysia, Singapore**:
908 )))
909
910 (((
911 922.2 - SF7BW125 to SF10BW125
912 )))
913
914 (((
915 922.4 - SF7BW125 to SF10BW125
916 )))
917
918 (((
919 922.6 - SF7BW125 to SF10BW125
920 )))
921
922 (((
923 922.8 - SF7BW125 to SF10BW125
924 )))
925
926 (((
927 923.0 - SF7BW125 to SF10BW125
928 )))
929
930 (((
931 922.0 - SF7BW125 to SF10BW125
932 )))
933
934 (((
935
936 )))
937
938 (((
939 (% style="color:blue" %)**AS923 ~~ AS925 for Brunei, Cambodia, Hong Kong, Indonesia, Laos, Taiwan, Thailand, Vietnam**:
940 )))
941
942 (((
943 923.6 - SF7BW125 to SF10BW125
944 )))
945
946 (((
947 923.8 - SF7BW125 to SF10BW125
948 )))
949
950 (((
951 924.0 - SF7BW125 to SF10BW125
952 )))
953
954 (((
955 924.2 - SF7BW125 to SF10BW125
956 )))
957
958 (((
959 924.4 - SF7BW125 to SF10BW125
960 )))
961
962 (((
963 924.6 - SF7BW125 to SF10BW125
964 )))
965
966 (((
967
968 )))
969
970 (((
971 (% style="color:blue" %)**Downlink:**
972 )))
973
974 (((
975 Uplink channels 1-8 (RX1)
976 )))
977
978 (((
979 923.2 - SF10BW125 (RX2)
980 )))
981
982
983
984 === 2.7.6  KR920-923 (KR920) ===
985
986 (((
987 (% style="color:blue" %)**Default channel:**
988 )))
989
990 (((
991 922.1 - SF7BW125 to SF12BW125
992 )))
993
994 (((
995 922.3 - SF7BW125 to SF12BW125
996 )))
997
998 (((
999 922.5 - SF7BW125 to SF12BW125
1000 )))
1001
1002 (((
1003
1004 )))
1005
1006 (((
1007 (% style="color:blue" %)**Uplink: (OTAA mode, channel added by JoinAccept message)**
1008 )))
1009
1010 (((
1011 922.1 - SF7BW125 to SF12BW125
1012 )))
1013
1014 (((
1015 922.3 - SF7BW125 to SF12BW125
1016 )))
1017
1018 (((
1019 922.5 - SF7BW125 to SF12BW125
1020 )))
1021
1022 (((
1023 922.7 - SF7BW125 to SF12BW125
1024 )))
1025
1026 (((
1027 922.9 - SF7BW125 to SF12BW125
1028 )))
1029
1030 (((
1031 923.1 - SF7BW125 to SF12BW125
1032 )))
1033
1034 (((
1035 923.3 - SF7BW125 to SF12BW125
1036 )))
1037
1038 (((
1039
1040 )))
1041
1042 (((
1043 (% style="color:blue" %)**Downlink:**
1044 )))
1045
1046 (((
1047 Uplink channels 1-7(RX1)
1048 )))
1049
1050 (((
1051 921.9 - SF12BW125 (RX2 downlink only; SF12BW125 might be changed to SF9BW125)
1052 )))
1053
1054
1055
1056 === 2.7.7  IN865-867 (IN865) ===
1057
1058 (((
1059 (% style="color:blue" %)**Uplink:**
1060 )))
1061
1062 (((
1063 865.0625 - SF7BW125 to SF12BW125
1064 )))
1065
1066 (((
1067 865.4025 - SF7BW125 to SF12BW125
1068 )))
1069
1070 (((
1071 865.9850 - SF7BW125 to SF12BW125
1072 )))
1073
1074 (((
1075
1076 )))
1077
1078 (((
1079 (% style="color:blue" %)**Downlink:**
1080 )))
1081
1082 (((
1083 Uplink channels 1-3 (RX1)
1084 )))
1085
1086 (((
1087 866.550 - SF10BW125 (RX2)
1088 )))
1089
1090
1091
1092 == 2.8  LED Indicator ==
1093
1094 The LDDS04 has an internal LED which is used to show the status of different state.
1095
1096
1097 * After LDDS04 is turned on, if the 4 channels converter is detected, the LED will (% style="color:green" %)**flash 4 times quickly**(%%).  
1098 * (% style="color:green" %)**Blink once**(%%) when device transmit a packet.
1099 * Solid ON for (% style="color:green" %)**Five Seconds**(%%) when OTAA Join Successfully.
1100
1101
1102
1103 == 2.9  ​Firmware Change Log ==
1104
1105
1106 **Firmware download link: **[[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDDS04/Firmware/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LLDS12/Firmware/]]
1107
1108
1109 **Firmware Upgrade Method: **[[Firmware Upgrade Instruction>>doc:Main.Firmware Upgrade Instruction for STM32 base products.WebHome]]
1110
1111
1112
1113
1114 = 3.  Configure LDDS04 via AT Command or LoRaWAN Downlink =
1115
1116 (((
1117 (((
1118 Use can configure LDDS04 via AT Command or LoRaWAN Downlink.
1119 )))
1120 )))
1121
1122 * (((
1123 (((
1124 AT Command Connection: See [[FAQ>>||anchor="H6.A0FAQ"]].
1125 )))
1126 )))
1127 * (((
1128 (((
1129 LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
1130 )))
1131 )))
1132
1133 (((
1134 (((
1135
1136 )))
1137
1138 (((
1139 There are two kinds of commands to configure LDDS04, they are:
1140 )))
1141 )))
1142
1143 * (((
1144 (((
1145 (% style="color:#4f81bd" %)** General Commands**.
1146 )))
1147 )))
1148
1149 (((
1150 (((
1151 These commands are to configure:
1152 )))
1153 )))
1154
1155 * (((
1156 (((
1157 General system settings like: uplink interval.
1158 )))
1159 )))
1160 * (((
1161 (((
1162 LoRaWAN protocol & radio related command.
1163 )))
1164 )))
1165
1166 (((
1167 (((
1168 They are same for all Dragino Device which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
1169 )))
1170 )))
1171
1172 (((
1173 (((
1174
1175 )))
1176 )))
1177
1178 * (((
1179 (((
1180 (% style="color:#4f81bd" %)** Commands special design for LDDS04**
1181 )))
1182 )))
1183
1184 (((
1185 (((
1186 These commands only valid for LDDS04, as below:(% title="Click and drag to resize" %)​
1187 )))
1188 )))
1189
1190 (% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]]
1191
1192
1193
1194
1195 == 3.1  Set Transmit Interval Time ==
1196
1197 Feature: Change LoRaWAN End Node Transmit Interval.
1198
1199 (% style="color:#037691" %)**AT Command: AT+TDC**
1200
1201 (% aria-label="image-20220610173409-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220610173409-7.png||data-widget="image"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
1202
1203
1204 (((
1205 (% style="color:#037691" %)**Downlink Command: 0x01**
1206 )))
1207
1208 (((
1209 (((
1210 Format: Command Code (0x01) followed by 3 bytes time value.
1211
1212 (((
1213 If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
1214 )))
1215
1216 * Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
1217 * Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
1218 )))
1219 )))
1220
1221
1222
1223 == 3.2  Set Interrupt Mode ==
1224
1225 Feature, Set Interrupt mode for GPIO_EXIT.
1226
1227 (% style="color:#037691" %)**Downlink Command: AT+INTMOD**
1228
1229 (% aria-label="image-20220610174917-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220610174917-9.png||data-widget="image"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
1230
1231
1232 (% style="color:#037691" %)**Downlink Command: 0x06**
1233
1234 Format: Command Code (0x06) followed by 3 bytes.
1235
1236 (((
1237 This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
1238 )))
1239
1240 * Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode
1241 * Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger
1242
1243
1244 == 3.3  Get Firmware Version Info ==
1245
1246 Feature: use downlink to get firmware version.
1247
1248 (% style="color:#037691" %)**Downlink Command: 0x26**
1249
1250 [[image:image-20220607171917-10.png]]
1251
1252 * Reply to the confirmation package: 26 01
1253 * Reply to non-confirmed packet: 26 00
1254
1255 Device will send an uplink after got this downlink command. With below payload:
1256
1257 Configures info payload:
1258
1259 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
1260 |=(((
1261 **Size(bytes)**
1262 )))|=**1**|=**1**|=**1**|=**2**|=**1**|=**4**|=**1**
1263 |**Value**|Software Type|(((
1264 Frequency
1265
1266 Band
1267 )))|Sub-band|(((
1268 Firmware
1269
1270 Version
1271 )))|Sensor Type|Reserve|(((
1272 [[Message Type>>||anchor="H2.4.4A0MessageType"]]
1273 Always 0x02
1274 )))
1275
1276 [[image:1654939064380-661.png]]
1277
1278
1279 **Software Type**: Always 0x03 for LDDS04
1280
1281
1282 **Frequency Band**:
1283
1284 *0x01: EU868
1285
1286 *0x02: US915
1287
1288 *0x03: IN865
1289
1290 *0x04: AU915
1291
1292 *0x05: KZ865
1293
1294 *0x06: RU864
1295
1296 *0x07: AS923
1297
1298 *0x08: AS923-1
1299
1300 *0x09: AS923-2
1301
1302 *0xa0: AS923-3
1303
1304
1305 **Sub-Band**: value 0x00 ~~ 0x08
1306
1307
1308 **Firmware Version**: 0x0100, Means: v1.0.0 version
1309
1310
1311 **Sensor Type**:
1312
1313 0x01: LSE01
1314
1315 0x02: LDDS75
1316
1317 0x03: LDDS20
1318
1319 0x04: LLMS01
1320
1321 0x05: LSPH01
1322
1323 0x06: LSNPK01
1324
1325 0x07: LLDS12
1326
1327
1328
1329 = 4. Battery & How to replace =
1330
1331 == 4.1 Battery Type ==
1332
1333 (((
1334 LDDS04 is equipped with a [[8500mAH ER26500 Li-SOCI2 battery>>url:https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]]. The battery is un-rechargeable battery with low discharge rate targeting for 8~~10 years use. This type of battery is commonly used in IoT target for long-term running, such as water meter.
1335 )))
1336
1337 (((
1338 The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance.
1339 )))
1340
1341 (% aria-label="1654593587246-335.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654593587246-335.png||data-widget="image"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
1342
1343
1344 Minimum Working Voltage for the LDDS04:
1345
1346 LDDS04:  2.45v ~~ 3.6v
1347
1348
1349
1350 == 4.2 Replace Battery ==
1351
1352 (((
1353 Any battery with range 2.45 ~~ 3.6v can be a replacement. We recommend to use Li-SOCl2 Battery.
1354 )))
1355
1356 (((
1357 And make sure the positive and negative pins match.
1358 )))
1359
1360
1361
1362 == 4.3 Power Consumption Analyze ==
1363
1364 (((
1365 Dragino Battery powered product are all runs in Low Power mode. We have an update battery calculator which base on the measurement of the real device. User can use this calculator to check the battery life and calculate the battery life if want to use different transmit interval.
1366 )))
1367
1368 (((
1369 Instruction to use as below:
1370 )))
1371
1372
1373 **Step 1 :**  Downlink the up-to-date DRAGINO_Battery_Life_Prediction_Table.xlsx from:
1374
1375 [[https:~~/~~/www.dragino.com/downloads/index.pHp?dir=LoRa_End_Node/Battery_Analyze/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/]]
1376
1377
1378 **Step 2 :**  Open it and choose
1379
1380 * Product Model
1381 * Uplink Interval
1382 * Working Mode
1383
1384 And the Life expectation in difference case will be shown on the right.
1385
1386 (% aria-label="1654593605679-189.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654593605679-189.png||data-widget="image"]](% 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" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png) rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" 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; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
1387
1388
1389 The battery related documents as below:
1390
1391 * (((
1392 [[Battery Dimension>>url:http://www.dragino.com/downloads/index.php?dir=datasheet/Battery/&file=LSN50-Battery-Dimension.pdf]],
1393 )))
1394 * (((
1395 [[Lithium-Thionyl Chloride Battery  datasheet>>url:https://www.dragino.com/downloads/downloads/datasheet/Battery/ER26500/ER26500_Datasheet-EN.pdf]],
1396 )))
1397 * (((
1398 [[Lithium-ion Battery-Capacitor datasheet>>url:http://www.dragino.com/downloads/downloads/datasheet/Battery/SPC_1520_datasheet.jpg]], [[Tech Spec>>url:http://www.dragino.com/downloads/downloads/datasheet/Battery/SPC1520%20Technical%20Specification20171123.pdf]]
1399 )))
1400
1401 (% aria-label="image-20220607172042-11.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220607172042-11.png||data-widget="image"]](% 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" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" 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; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
1402
1403
1404
1405 === 4.3.1 ​Battery Note ===
1406
1407 (((
1408 The Li-SICO battery is designed for small current / long period application. It is not good to use a high current, short period transmit method. The recommended minimum period for use of this battery is 5 minutes. If you use a shorter period time to transmit LoRa, then the battery life may be decreased.
1409 )))
1410
1411
1412
1413 === ​4.3.2 Replace the battery ===
1414
1415 (((
1416 You can change the battery in the LSPH01.The type of battery is not limited as long as the output is between 3v to 3.6v. On the main board, there is a diode (D1) between the battery and the main circuit. If you need to use a battery with less than 3.3v, please remove the D1 and shortcut the two pads of it so there won’t be voltage drop between battery and main board.
1417 )))
1418
1419
1420 (((
1421 The default battery pack of LSPH01 includes a ER26500 plus super capacitor. If user can’t find this pack locally, they can find ER26500 or equivalence, which will also work in most case. The SPC can enlarge the battery life for high frequency use (update period below 5 minutes).
1422 )))
1423
1424
1425 = 5.  Use AT Command =
1426
1427 == 5.1  Access AT Commands ==
1428
1429 LDDS04 supports AT Command set in the stock firmware. You can use a USB to TTL adapter to connect to LDDS04 for using AT command, as below.
1430
1431 [[image:1654940081538-914.png]]
1432
1433
1434 **Connection:**
1435
1436 (% style="background-color:yellow" %)** USB TTL GND <~-~-~-~-> GND**
1437
1438 (% style="background-color:yellow" %)** USB TTL TXD  <~-~-~-~-> UART_RXD**
1439
1440 (% style="background-color:yellow" %)** USB TTL RXD  <~-~-~-~-> UART_TXD**
1441
1442
1443 (((
1444 (((
1445 In the PC, you need to set the serial baud rate to (% style="color:green" %)**9600**(%%) to access the serial console for LDDS04.
1446 )))
1447
1448 (((
1449 LDDS04 will output system info once power on as below:
1450 )))
1451 )))
1452
1453
1454 [[image:1654593712276-618.png]]
1455
1456 Valid AT Command please check [[Configure Device>>||anchor="H3.A0ConfigureLDDS04viaATCommandorLoRaWANDownlink"]].
1457
1458
1459
1460 = 6.  FAQ =
1461
1462 == 6.1  How to change the LoRa Frequency Bands/Region ==
1463
1464 You can follow the instructions for [[how to upgrade image>>||anchor="H2.9A0200BFirmwareChangeLog"]].
1465 When downloading the images, choose the required image file for download. ​
1466
1467
1468
1469 = 7.  Trouble Shooting =
1470
1471 == 7.1  AT Command input doesn't work ==
1472
1473 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.
1474
1475 (((
1476
1477 )))
1478
1479
1480 = 8.  Order Info =
1481
1482 == 8.1  Main Device LDDS04 ==
1483
1484 Part Number **:** (% style="color:blue" %)**LDDS04-XX**
1485
1486
1487 (% style="color:blue" %)**XX**(%%)**: **The default frequency band
1488
1489 * (% style="color:red" %)**AS923 **(%%)**:** LoRaWAN AS923 band
1490 * (% style="color:red" %)**AU915 **(%%)**:** LoRaWAN AU915 band
1491 * (% style="color:red" %)**EU433 **(%%)**:** LoRaWAN EU433 band
1492 * (% style="color:red" %)**EU868 **(%%)**:** LoRaWAN EU868 band
1493 * (% style="color:red" %)**KR920 **(%%)**:** LoRaWAN KR920 band
1494 * (% style="color:red" %)**US915 **(%%)**:** LoRaWAN US915 band
1495 * (% style="color:red" %)**IN865 **(%%)**:**  LoRaWAN IN865 band
1496 * (% style="color:red" %)**CN470 **(%%)**:** LoRaWAN CN470 band
1497
1498
1499
1500 == 8.2  Probe Model ==
1501
1502 Detail See [[Probe Option>>path:#Probe_Option]] Section
1503
1504 * A01A-15
1505 * A02-15
1506 * A13-15
1507 * A16-15
1508
1509
1510
1511 = 9. ​ Packing Info =
1512
1513
1514 **Package Includes**:
1515
1516 * LDDS04 LoRaWAN 4-Channels Distance Sensor x 1
1517
1518 **Dimension and weight**:
1519
1520 * Device Size: cm
1521 * Device Weight: g
1522 * Package Size / pcs : cm
1523 * Weight / pcs : g
1524
1525
1526
1527 = 10.  ​Support =
1528
1529 * 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.
1530 * 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.com>>url:http://../../../../../../D:%5C%E5%B8%82%E5%9C%BA%E8%B5%84%E6%96%99%5C%E8%AF%B4%E6%98%8E%E4%B9%A6%5CLoRa%5CLT%E7%B3%BB%E5%88%97%5Csupport@dragino.com]].
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0