Wiki source code of LMDS200 - LoRaWAN Microwave Radar Distance Sensor User Manual
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% style="text-align:center" %) | ||
2 | [[image:image-20220615144725-2.jpeg]] | ||
3 | |||
4 | **Table of Contents:** | ||
5 | |||
6 | |||
7 | |||
8 | |||
9 | |||
10 | |||
11 | |||
12 | = 1. Introduction = | ||
13 | |||
14 | == 1.1 What is LMDS200 Microwave Radar DistanceSensor == | ||
15 | |||
16 | ((( | ||
17 | |||
18 | |||
19 | ((( | ||
20 | ((( | ||
21 | ((( | ||
22 | ((( | ||
23 | The Dragino LMDS200 is a (% style="color:#4472c4" %)**LoRaWAN Microwave Radar distance sensor**(%%). It uses (% style="color:#4472c4" %)**24Ghz Microwave**(%%) to detect the distance between sensor and different objects. Compare vs ultrasonic or Lidar measurement method, Microwave Radar is (% style="color:#4472c4" %)**more reliable for condensation / dusty environment**(%%). It can sense correct distance even there is water or thick dust on top of the sensor. | ||
24 | ))) | ||
25 | |||
26 | ((( | ||
27 | |||
28 | ))) | ||
29 | |||
30 | ((( | ||
31 | The LMDS200 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 | |||
36 | ))) | ||
37 | |||
38 | ((( | ||
39 | LMDS200 can (% style="color:#4472c4" %)**measure two distances**(%%): the closest object and next object behind the closest one. | ||
40 | ))) | ||
41 | |||
42 | ((( | ||
43 | |||
44 | ))) | ||
45 | |||
46 | ((( | ||
47 | LMDS200 supports (% style="color:#4472c4" %)**Alarm Feature**(%%), user can set the LMDS200 to uplink data in a short interval when the distance is out of configured range. | ||
48 | ))) | ||
49 | |||
50 | ((( | ||
51 | |||
52 | ))) | ||
53 | |||
54 | ((( | ||
55 | The LoRa wireless technology used in LMDS200 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. | ||
56 | ))) | ||
57 | |||
58 | ((( | ||
59 | |||
60 | ))) | ||
61 | |||
62 | ((( | ||
63 | LMDS200 is powered by 8500mAh Li-SOCI2 battery, it is designed for long term use up to 5 years. | ||
64 | ))) | ||
65 | |||
66 | ((( | ||
67 | |||
68 | ))) | ||
69 | |||
70 | ((( | ||
71 | Each LMDS200 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. | ||
72 | ))) | ||
73 | |||
74 | ((( | ||
75 | |||
76 | ))) | ||
77 | |||
78 | ((( | ||
79 | *Battery life depends on how often to send data, please see [[battery analyzer>>||anchor="H4. Battery & how to replace"]]. | ||
80 | ))) | ||
81 | ))) | ||
82 | ))) | ||
83 | ))) | ||
84 | ))) | ||
85 | |||
86 | |||
87 | [[image:1655277036890-950.png]] | ||
88 | |||
89 | |||
90 | |||
91 | == 1.2 Features == | ||
92 | |||
93 | * LoRaWAN 1.0.3 Class A | ||
94 | * Ultra-low power consumption | ||
95 | * Microwave Radar for distance detection | ||
96 | * Short uplink interval for Distance Alarm | ||
97 | * Monitor Battery Level | ||
98 | * Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/IN865 | ||
99 | * AT Commands to change parameters | ||
100 | * Uplink on periodically | ||
101 | * Downlink to change configure | ||
102 | * 8500mAh Battery for long term use | ||
103 | * Wall Mountable | ||
104 | * Outdoor Use | ||
105 | |||
106 | == 1.3 Radar probe specification == | ||
107 | |||
108 | * Measuring Method: FMCW | ||
109 | * Frequency: 24.000 ~~ 24.500 GHz | ||
110 | * Measurement output power: 6dBm | ||
111 | * Measure range: 0.5 ~~ 20m | ||
112 | * Accuracy: ±0.1m | ||
113 | * Resolution: 0.01m | ||
114 | * Horizontal Angel: 78° | ||
115 | * Vertical Angel: 23° | ||
116 | |||
117 | == 1.4 Storage & Operation Temperature == | ||
118 | |||
119 | -20°C to +85°C | ||
120 | |||
121 | |||
122 | |||
123 | == 1.5 Applications == | ||
124 | |||
125 | * Horizontal distance measurement | ||
126 | * Liquid level measurement | ||
127 | * Parking management system | ||
128 | * Object proximity and presence detection | ||
129 | * Intelligent trash can management system | ||
130 | * Robot obstacle avoidance | ||
131 | * Automatic control | ||
132 | * Sewer | ||
133 | * Bottom water level monitoring | ||
134 | |||
135 | == 1.6 Installation == | ||
136 | |||
137 | Sensor measure direction and angle is as below. When install the sensor, please make sure the sensor direct to object. | ||
138 | |||
139 | [[image:image-20220615152454-3.png]] | ||
140 | |||
141 | |||
142 | [[image:image-20220615152454-4.png]] | ||
143 | |||
144 | |||
145 | |||
146 | |||
147 | == 1.7 Pin mapping and power on == | ||
148 | |||
149 | |||
150 | [[image:1655257026882-201.png]] | ||
151 | |||
152 | |||
153 | |||
154 | = 2. Operation Mode = | ||
155 | |||
156 | |||
157 | == 2.1 How it works == | ||
158 | |||
159 | ((( | ||
160 | Each LMDS200 is shipped with a worldwide unique set of OTAA keys. To use LMDS200 in a LoRaWAN network, user needs to input the OTAA keys in the LoRaWAN network server. So LMDS200 can join the LoRaWAN network and start to transmit sensor data. | ||
161 | ))) | ||
162 | |||
163 | |||
164 | |||
165 | == 2.2 Example to use for LoRaWAN network == | ||
166 | |||
167 | ((( | ||
168 | 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. | ||
169 | ))) | ||
170 | |||
171 | ((( | ||
172 | [[image:1655278047781-517.png]] | ||
173 | |||
174 | * In this user case, the LMDS200 is installed on top of river to detect the water level and send the level info to the LoRaWAN server. The LMDS200 will uplink different types of messages to the LoRaWAN server. See [[Uplink payload>>path:#Uplink_Payload]] for detail. | ||
175 | ))) | ||
176 | |||
177 | ((( | ||
178 | Assume the LoRaWAN Gateway DLOS8 is already set to connect to the [[TTN V3 network >>url:https://eu1.cloud.thethings.network]]. We need to add the LMDS200 device in TTN V3: | ||
179 | ))) | ||
180 | |||
181 | ((( | ||
182 | ((( | ||
183 | |||
184 | ))) | ||
185 | |||
186 | ((( | ||
187 | (% style="color:blue" %)**Step 1**(%%): Create a device in TTN with the OTAA keys from LMDS200. | ||
188 | ))) | ||
189 | ))) | ||
190 | |||
191 | ((( | ||
192 | ((( | ||
193 | Each LMDS200 is shipped with a sticker with the default device keys, user can find this sticker in the box. it looks like below. | ||
194 | |||
195 | [[image:1655278302970-688.png]] | ||
196 | |||
197 | |||
198 | |||
199 | ))) | ||
200 | ))) | ||
201 | |||
202 | Users can enter these keys in the LoRaWAN Server portal. Below is the TTN V3 screenshot: | ||
203 | |||
204 | __**Add APP EUI**__ in the application. | ||
205 | |||
206 | |||
207 | [[image:image-20220610161353-4.png]] | ||
208 | |||
209 | [[image:image-20220610161353-5.png]] | ||
210 | |||
211 | [[image:image-20220610161353-6.png]] | ||
212 | |||
213 | |||
214 | [[image:image-20220610161353-7.png]] | ||
215 | |||
216 | |||
217 | |||
218 | You can also choose to create the device manually. | ||
219 | |||
220 | [[image:image-20220610161538-8.png]] | ||
221 | |||
222 | |||
223 | |||
224 | **Add APP KEY and DEV EUI** | ||
225 | |||
226 | [[image:1655278497961-944.png]] | ||
227 | |||
228 | |||
229 | |||
230 | (% style="color:blue" %)**Step 2**(%%): Power on LMDS200 | ||
231 | |||
232 | |||
233 | Put a Jumper on JP2 to power on the device. ( The Switch must be in FLASH position). | ||
234 | |||
235 | [[image:1655278589727-228.png]] | ||
236 | |||
237 | Put the jumper to power on LMDS200 and it will auto-join to the TTN V3 network. After join success, it will start to upload sensor data to TTN V3 and the user can see it in the panel. | ||
238 | |||
239 | |||
240 | |||
241 | == 2.3 Uplink Payload == | ||
242 | |||
243 | Uplink payloads have two types: | ||
244 | |||
245 | * Distance Value: Use FPORT=2 | ||
246 | * Other control commands: Use other FPORT fields. | ||
247 | |||
248 | The application server should parse the correct value based on FPORT settings. | ||
249 | |||
250 | ((( | ||
251 | ((( | ||
252 | ((( | ||
253 | |||
254 | |||
255 | |||
256 | ))) | ||
257 | ))) | ||
258 | ))) | ||
259 | |||
260 | === 2.3.1 Device Status, FPORT~=5 === | ||
261 | |||
262 | Include device configure status. Once LMDS200 Joined the network, it will uplink this message to the server. | ||
263 | |||
264 | Users can also use the downlink command (0x26 01) to ask LMDS200 to resend Device Status. | ||
265 | |||
266 | [[image:image-20220615154327-2.png]] | ||
267 | |||
268 | |||
269 | [[image:image-20220615154022-1.png]](% style="display:none" %) | ||
270 | |||
271 | |||
272 | * (% style="color:#037691" %)**Sensor Model**(%%)**:** For LMDS200, this value is 0x0C | ||
273 | |||
274 | * (% style="color:#037691" %)**Firmware Version**(%%)**:** 0x0100, Means: v1.0.0 version | ||
275 | |||
276 | * (% style="color:#037691" %)**Frequency Band**(%%)**:** | ||
277 | |||
278 | *0x01: EU868 | ||
279 | |||
280 | *0x02: US915 | ||
281 | |||
282 | *0x03: IN865 | ||
283 | |||
284 | *0x04: AU915 | ||
285 | |||
286 | *0x05: KZ865 | ||
287 | |||
288 | *0x06: RU864 | ||
289 | |||
290 | *0x07: AS923 | ||
291 | |||
292 | *0x08: AS923-1 | ||
293 | |||
294 | *0x09: AS923-2 | ||
295 | |||
296 | *0x0a: AS923-3 | ||
297 | |||
298 | *0x0b: CN470 | ||
299 | |||
300 | *0x0c: EU433 | ||
301 | |||
302 | *0x0d: KR920 | ||
303 | |||
304 | *0x0e: MA869 | ||
305 | |||
306 | |||
307 | * (% style="color:#037691" %)**Sub-Band**(%%)**:** | ||
308 | ** AU915 and US915:value 0x00 ~~ 0x08 | ||
309 | ** CN470: value 0x0B ~~ 0x0C | ||
310 | ** Other Bands: Always 0x00 | ||
311 | |||
312 | * (% style="color:#037691" %)**Battery Info:** | ||
313 | |||
314 | Check the battery voltage. | ||
315 | |||
316 | Ex1: 0x0B45 = 2885mV | ||
317 | |||
318 | Ex2: 0x0B49 = 2889mV | ||
319 | |||
320 | |||
321 | |||
322 | === 2.3.2 Sensor Configuration, FPORT~=4 === | ||
323 | |||
324 | ((( | ||
325 | LMDS200 will only send this command after getting the downlink command (0x26 02) from the server. | ||
326 | |||
327 | (% border="1" cellspacing="10" style="background-color:#ffffcc; width:494px" %) | ||
328 | |(% colspan="5" style="width:491px" %)**Sensor Configuration FPORT=4** | ||
329 | |**Size (bytes)**|(% style="width:84px" %)**3**|(% style="width:73px" %)**1**|(% style="width:117px" %)**4**|(% style="width:136px" %)**1** | ||
330 | |**Value**|(% style="width:84px" %)((( | ||
331 | [[TDC (unit:sec)>>||anchor="H"]] | ||
332 | )))|(% style="width:73px" %)((( | ||
333 | [[ATDC (unit:min)>>||anchor="H"]] | ||
334 | )))|(% style="width:117px" %)[[Alarm Settings>>||anchor="H"]]|(% style="width:136px" %)[[Interrupt Settings>>||anchor="H"]] | ||
335 | ))) | ||
336 | |||
337 | [[image:1655279779620-413.png]] | ||
338 | |||
339 | |||
340 | === 2.3.3 Interrupt Pin === | ||
341 | |||
342 | 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. | ||
343 | |||
344 | **Example:** | ||
345 | |||
346 | 0x00: Normal uplink packet. | ||
347 | |||
348 | 0x01: Interrupt Uplink Packet. | ||
349 | |||
350 | |||
351 | |||
352 | === 2.3.4 DS18B20 Temperature sensor === | ||
353 | |||
354 | This is optional, user can connect external DS18B20 sensor to the +3.3v, 1-wire and GND pin . and this field will report temperature. | ||
355 | |||
356 | **Example**: | ||
357 | |||
358 | If payload is: 0105H: (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree | ||
359 | |||
360 | If payload is: FF3FH : (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees. | ||
361 | |||
362 | (% style="color:red" %)Note: DS18B20 feature is supported in the hardware version > v1.3 which made since early of 2021. | ||
363 | |||
364 | |||
365 | |||
366 | === 2.3.5 Sensor Flag === | ||
367 | |||
368 | ((( | ||
369 | 0x01: Detect Ultrasonic Sensor | ||
370 | ))) | ||
371 | |||
372 | ((( | ||
373 | 0x00: No Ultrasonic Sensor | ||
374 | ))) | ||
375 | |||
376 | |||
377 | |||
378 | === 2.3.6 Decode payload in The Things Network === | ||
379 | |||
380 | While using TTN network, you can add the payload format to decode the payload. | ||
381 | |||
382 | |||
383 | [[image:1655261164557-670.png]] | ||
384 | |||
385 | ((( | ||
386 | The payload decoder function for TTN V3 is here: | ||
387 | ))) | ||
388 | |||
389 | ((( | ||
390 | ((( | ||
391 | LDDS20 TTN V3 Payload Decoder: [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDDS20/Payload_Decoder/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSE01/Payload_Decoder/]] | ||
392 | ))) | ||
393 | ))) | ||
394 | |||
395 | |||
396 | |||
397 | == 2.4 Downlink Payload == | ||
398 | |||
399 | By default, LDDS20 prints the downlink payload to console port. | ||
400 | |||
401 | [[image:image-20220615100930-15.png]] | ||
402 | |||
403 | |||
404 | **Examples:** | ||
405 | |||
406 | |||
407 | * (% style="color:blue" %)**Set TDC** | ||
408 | |||
409 | If the payload=0100003C, it means set the END Node's TDC to 0x00003C=60(S), while type code is 01. | ||
410 | |||
411 | Payload: 01 00 00 1E TDC=30S | ||
412 | |||
413 | Payload: 01 00 00 3C TDC=60S | ||
414 | |||
415 | |||
416 | * (% style="color:blue" %)**Reset** | ||
417 | |||
418 | If payload = 0x04FF, it will reset the LDDS20 | ||
419 | |||
420 | |||
421 | * (% style="color:blue" %)**CFM** | ||
422 | |||
423 | Downlink Payload: 05000001, Set AT+CFM=1 or 05000000 , set AT+CFM=0 | ||
424 | |||
425 | |||
426 | |||
427 | == 2.5 Show Data in DataCake IoT Server == | ||
428 | |||
429 | ((( | ||
430 | [[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: | ||
431 | ))) | ||
432 | |||
433 | ((( | ||
434 | |||
435 | ))) | ||
436 | |||
437 | ((( | ||
438 | (% style="color:blue" %)**Step 1**(%%)**: Be sure that your device is programmed and properly connected to the network at this time.** | ||
439 | ))) | ||
440 | |||
441 | ((( | ||
442 | (% 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:** | ||
443 | ))) | ||
444 | |||
445 | |||
446 | [[image:1654592790040-760.png]] | ||
447 | |||
448 | |||
449 | [[image:1654592800389-571.png]] | ||
450 | |||
451 | |||
452 | (% style="color:blue" %)**Step 3**(%%)**: Create an account or log in Datacake.** | ||
453 | |||
454 | (% style="color:blue" %)**Step 4**(%%)**: Search the LDDS75 and add DevEUI.(% style="color:red" %)(Note: LDDS20 use same payload as LDDS75)(%%)** | ||
455 | |||
456 | [[image:1654851029373-510.png]] | ||
457 | |||
458 | |||
459 | After added, the sensor data arrive TTN V3, it will also arrive and show in Datacake. | ||
460 | |||
461 | [[image:image-20220610165129-11.png||height="595" width="1088"]] | ||
462 | |||
463 | |||
464 | == 2.6 LED Indicator == | ||
465 | |||
466 | The LDDS20 has an internal LED which is to show the status of different state. | ||
467 | |||
468 | |||
469 | * Blink once when device power on. | ||
470 | * The device detects the sensor and flashes 5 times. | ||
471 | * Solid ON for 5 seconds once device successful Join the network. | ||
472 | * Blink once when device transmit a packet. | ||
473 | |||
474 | == 2.7 Firmware Change Log == | ||
475 | |||
476 | |||
477 | ((( | ||
478 | **Firmware download link: **[[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSE01/Firmware/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSE01/Firmware/]] | ||
479 | ))) | ||
480 | |||
481 | ((( | ||
482 | |||
483 | ))) | ||
484 | |||
485 | ((( | ||
486 | **Firmware Upgrade Method: [[Firmware Upgrade Instruction>>doc:Main.Firmware Upgrade Instruction for STM32 base products.WebHome]]** | ||
487 | ))) | ||
488 | |||
489 | |||
490 | |||
491 | == 2.8 Battery Analysis == | ||
492 | |||
493 | |||
494 | === 2.8.1 Battery Type === | ||
495 | |||
496 | ((( | ||
497 | The LDDS20 battery is a combination of a 8500mAh Li/SOCI2 Battery and a Super Capacitor. The battery is non-rechargeable battery type with a low discharge rate (<2% per year). This type of battery is commonly used in IoT devices such as water meter. | ||
498 | ))) | ||
499 | |||
500 | ((( | ||
501 | |||
502 | ))) | ||
503 | |||
504 | ((( | ||
505 | The battery related documents as below: | ||
506 | ))) | ||
507 | |||
508 | * ((( | ||
509 | ((( | ||
510 | [[Battery Dimension>>https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]], | ||
511 | ))) | ||
512 | ))) | ||
513 | * ((( | ||
514 | ((( | ||
515 | [[Lithium-Thionyl Chloride Battery datasheet>>https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]], | ||
516 | ))) | ||
517 | ))) | ||
518 | * ((( | ||
519 | ((( | ||
520 | [[Lithium-ion Battery-Capacitor datasheet>>https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]] | ||
521 | ))) | ||
522 | ))) | ||
523 | |||
524 | [[image:image-20220615111024-1.png]] | ||
525 | |||
526 | |||
527 | |||
528 | === 2.8.2 Battery Note === | ||
529 | |||
530 | 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 uplink data, then the battery life may be decreased. | ||
531 | |||
532 | |||
533 | |||
534 | === 2.8.3 Replace the battery === | ||
535 | |||
536 | ((( | ||
537 | ((( | ||
538 | You can change the battery in the NBSN95.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. | ||
539 | ))) | ||
540 | |||
541 | ((( | ||
542 | |||
543 | ))) | ||
544 | |||
545 | ((( | ||
546 | The default battery pack of NBSN95 includes a ER26500 plus super capacitor. If user can't find this pack locally, they can find ER26500 or equivalence without the SPC1520 capacitor, which will also work in most case. The SPC can enlarge the battery life for high frequency use (update period below 5 minutes) | ||
547 | ))) | ||
548 | ))) | ||
549 | |||
550 | |||
551 | |||
552 | === 2.8.4 Battery Life Analyze === | ||
553 | |||
554 | ((( | ||
555 | Dragino battery powered products are all run in Low Power mode. User can check the guideline from this link to calculate the estimate battery life: | ||
556 | ))) | ||
557 | |||
558 | ((( | ||
559 | [[https:~~/~~/www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf>>url:https://www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf]] | ||
560 | ))) | ||
561 | |||
562 | |||
563 | |||
564 | = 3. Using the AT Commands = | ||
565 | |||
566 | ((( | ||
567 | ((( | ||
568 | |||
569 | ))) | ||
570 | ))) | ||
571 | |||
572 | == 3.1 Access AT Commands == | ||
573 | |||
574 | LDDS20 supports AT Command set in the stock firmware. You can use a USB to TTL adapter to connect to LDDS20 for using AT command, as below. | ||
575 | |||
576 | |||
577 | [[image:image-20220610172924-4.png||height="483" width="988"]] | ||
578 | |||
579 | |||
580 | Or if you have below board, use below connection: | ||
581 | |||
582 | |||
583 | [[image:image-20220610172924-5.png]] | ||
584 | |||
585 | |||
586 | ((( | ||
587 | In the PC, you need to set the serial baud rate to (% style="color:green" %)**9600**(%%) to access the serial console for LDDS20. LDDS20 will output system info once power on as below: | ||
588 | ))) | ||
589 | |||
590 | |||
591 | [[image:image-20220610172924-6.png||height="601" width="860"]] | ||
592 | |||
593 | Below are the available commands, a more detailed AT Command manual can be found at [[AT Command Manual>>https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSE01/]]. | ||
594 | |||
595 | |||
596 | AT+<CMD>? : Help on <CMD> | ||
597 | |||
598 | AT+<CMD> : Run <CMD> | ||
599 | |||
600 | AT+<CMD>=<value> : Set the value | ||
601 | |||
602 | AT+<CMD>=? : Get the value | ||
603 | |||
604 | |||
605 | (% style="color:#037691" %)** General Commands :** | ||
606 | |||
607 | AT : Attention | ||
608 | |||
609 | AT? : Short Help | ||
610 | |||
611 | ATZ : MCU Reset | ||
612 | |||
613 | AT+TDC : Application Data Transmission Interval | ||
614 | |||
615 | |||
616 | (% style="color:#037691" %)** Keys, IDs and EUIs management :** | ||
617 | |||
618 | AT+APPEUI : Application EUI | ||
619 | |||
620 | AT+APPKEY : Application Key | ||
621 | |||
622 | AT+APPSKEY : Application Session Key | ||
623 | |||
624 | AT+DADDR : Device Address | ||
625 | |||
626 | AT+DEUI : Device EUI | ||
627 | |||
628 | AT+NWKID : Network ID (You can enter this command change only after successful network connection) | ||
629 | |||
630 | AT+NWKSKEY : Network Session Key Joining and sending date on LoRa network | ||
631 | |||
632 | AT+CFM : Confirm Mode | ||
633 | |||
634 | AT+CFS : Confirm Status | ||
635 | |||
636 | AT+JOIN : Join LoRa? Network | ||
637 | |||
638 | AT+NJM : LoRa? Network Join Mode | ||
639 | |||
640 | AT+NJS : LoRa? Network Join Status | ||
641 | |||
642 | AT+RECV : Print Last Received Data in Raw Format | ||
643 | |||
644 | AT+RECVB : Print Last Received Data in Binary Format | ||
645 | |||
646 | AT+SEND : Send Text Data | ||
647 | |||
648 | AT+SENB : Send Hexadecimal Data | ||
649 | |||
650 | |||
651 | (% style="color:#037691" %)** LoRa Network Management :** | ||
652 | |||
653 | AT+ADR : Adaptive Rate | ||
654 | |||
655 | AT+CLASS : LoRa Class(Currently only support class A | ||
656 | |||
657 | AT+DCS : Duty Cycle Setting | ||
658 | |||
659 | AT+DR : Data Rate (Can Only be Modified after ADR=0) | ||
660 | |||
661 | AT+FCD : Frame Counter Downlink | ||
662 | |||
663 | AT+FCU : Frame Counter Uplink | ||
664 | |||
665 | AT+JN1DL : Join Accept Delay1 | ||
666 | |||
667 | AT+JN2DL : Join Accept Delay2 | ||
668 | |||
669 | AT+PNM : Public Network Mode | ||
670 | |||
671 | AT+RX1DL : Receive Delay1 | ||
672 | |||
673 | AT+RX2DL : Receive Delay2 | ||
674 | |||
675 | AT+RX2DR : Rx2 Window Data Rate | ||
676 | |||
677 | AT+RX2FQ : Rx2 Window Frequency | ||
678 | |||
679 | AT+TXP : Transmit Power | ||
680 | |||
681 | |||
682 | (% style="color:#037691" %)** Information :** | ||
683 | |||
684 | AT+RSSI : RSSI of the Last Received Packet | ||
685 | |||
686 | AT+SNR : SNR of the Last Received Packet | ||
687 | |||
688 | AT+VER : Image Version and Frequency Band | ||
689 | |||
690 | AT+FDR : Factory Data Reset | ||
691 | |||
692 | AT+PORT : Application Port | ||
693 | |||
694 | AT+CHS : Get or Set Frequency (Unit: Hz) for Single Channel Mode | ||
695 | |||
696 | AT+CHE : Get or Set eight channels mode, Only for US915, AU915, CN470 | ||
697 | |||
698 | |||
699 | |||
700 | == 3.2 Set Interrupt Mode == | ||
701 | |||
702 | Feature, Set Interrupt mode for GPIO_EXIT. | ||
703 | |||
704 | (% style="color:#037691" %)**Downlink Command: AT+INTMOD** | ||
705 | |||
706 | [[image:image-20220610174917-9.png]] | ||
707 | |||
708 | |||
709 | ((( | ||
710 | (% style="color:#037691" %)**Downlink Command: 0x06** | ||
711 | ))) | ||
712 | |||
713 | ((( | ||
714 | Format: Command Code (0x06) followed by 3 bytes. | ||
715 | ))) | ||
716 | |||
717 | ((( | ||
718 | ((( | ||
719 | This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06. | ||
720 | ))) | ||
721 | ))) | ||
722 | |||
723 | * ((( | ||
724 | Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode | ||
725 | ))) | ||
726 | * ((( | ||
727 | Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger | ||
728 | ))) | ||
729 | |||
730 | ((( | ||
731 | |||
732 | ))) | ||
733 | |||
734 | ((( | ||
735 | |||
736 | ))) | ||
737 | |||
738 | = 4. FAQ = | ||
739 | |||
740 | == 4.1 What is the frequency plan for LDDS20? == | ||
741 | |||
742 | LDDS20 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"]] | ||
743 | |||
744 | |||
745 | |||
746 | == 4.2 How to change the LoRa Frequency Bands/Region == | ||
747 | |||
748 | You can follow the instructions for [[how to upgrade image>>||anchor="H2.7A0200BFirmwareChangeLog"]]. | ||
749 | When downloading the images, choose the required image file for download. | ||
750 | |||
751 | |||
752 | |||
753 | = 5. Trouble Shooting = | ||
754 | |||
755 | == 5.1 Why I can't join TTN V3 in US915 / AU915 bands? == | ||
756 | |||
757 | It is due to channel mapping. Please see below link: [[Frequency band>>doc:Main.LoRaWAN Communication Debug.WebHome||anchor="H2.NoticeofUS9152FCN4702FAU915Frequencyband"]] | ||
758 | |||
759 | |||
760 | == 5.2 AT Command input doesn't work == | ||
761 | |||
762 | 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. | ||
763 | |||
764 | ((( | ||
765 | |||
766 | ))) | ||
767 | |||
768 | |||
769 | = 6. Order Info = | ||
770 | |||
771 | |||
772 | Part Number **:** (% style="color:blue" %)**LDDS20-XX** | ||
773 | |||
774 | |||
775 | (% style="color:blue" %)**XX**(%%)**: **The default frequency band | ||
776 | |||
777 | * (% style="color:red" %)**AS923 **(%%)**:** LoRaWAN AS923 band | ||
778 | * (% style="color:red" %)**AU915 **(%%)**:** LoRaWAN AU915 band | ||
779 | * (% style="color:red" %)**EU433 **(%%)**:** LoRaWAN EU433 band | ||
780 | * (% style="color:red" %)**EU868 **(%%)**:** LoRaWAN EU868 band | ||
781 | * (% style="color:red" %)**KR920 **(%%)**:** LoRaWAN KR920 band | ||
782 | * (% style="color:red" %)**US915 **(%%)**:** LoRaWAN US915 band | ||
783 | * (% style="color:red" %)**IN865 **(%%)**:** LoRaWAN IN865 band | ||
784 | * (% style="color:red" %)**CN470 **(%%)**:** LoRaWAN CN470 band | ||
785 | |||
786 | = 7. Packing Info = | ||
787 | |||
788 | |||
789 | ((( | ||
790 | **Package Includes**: | ||
791 | ))) | ||
792 | |||
793 | * ((( | ||
794 | LDDS20 LoRaWAN Liquid Level Sensor x 1 | ||
795 | ))) | ||
796 | |||
797 | ((( | ||
798 | (% style="color:red" %)**Note:** | ||
799 | ))) | ||
800 | |||
801 | ((( | ||
802 | ((( | ||
803 | (% style="color:red" %)**Ultrasonic coupling paste**(%%) and(% style="color:red" %)** Eproxy AB glue**(%%) are subjected in most shipping way. So the default package doesn't include it and user needs to purchase locally. | ||
804 | ))) | ||
805 | ))) | ||
806 | |||
807 | ((( | ||
808 | |||
809 | ))) | ||
810 | |||
811 | ((( | ||
812 | **Dimension and weight**: | ||
813 | ))) | ||
814 | |||
815 | * ((( | ||
816 | Device Size: cm | ||
817 | ))) | ||
818 | * ((( | ||
819 | Device Weight: g | ||
820 | ))) | ||
821 | * ((( | ||
822 | Package Size / pcs : cm | ||
823 | ))) | ||
824 | * ((( | ||
825 | Weight / pcs : g | ||
826 | |||
827 | |||
828 | |||
829 | ))) | ||
830 | |||
831 | = 8. Support = | ||
832 | |||
833 | * 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. | ||
834 | * 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]]. |