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