Last modified by Mengting Qiu on 2025/06/04 10:46

From version 259.2
edited by Xiaoling
on 2022/06/23 09:57
Change comment: There is no comment for this version
To version 254.8
edited by Xiaoling
on 2022/06/23 08:50
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -84,6 +84,10 @@
84 84  * Sleeping Mode: 20uA
85 85  * LoRaWAN Transmit Mode: 125mA @ 20dBm 44mA @ 14dBm
86 86  
87 +
88 +
89 +
90 +
87 87  == ​1.3  Features ==
88 88  
89 89  * LoRaWAN v1.0.3 Class A
... ... @@ -142,6 +142,10 @@
142 142  Cable Drawing: [[See This Link>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Cable_Drawing/&file=CAB0-35IC-K31G-210811.pdf]]
143 143  )))
144 144  
149 +
150 +
151 +
152 +
145 145  == 1.6  Pin Definitions and Switch ==
146 146  
147 147  (% class="wikigeneratedid" %)
... ... @@ -177,6 +177,9 @@
177 177  1. When boot the device in flash mode
178 178  1. Send an uplink packet
179 179  
188 +
189 +
190 +
180 180  == 1.7  Hardware Change log ==
181 181  
182 182  LSN50v2-D20 v1.0:  Release.
... ... @@ -219,6 +219,7 @@
219 219  (% aria-label="image-20220607170145-1.jpeg image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220607170145-1.jpeg||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)​(%%)​
220 220  
221 221  
233 +
222 222  (((
223 223  You can enter this key in the LoRaWAN Server portal. Below is TTN screen shot:
224 224  
... ... @@ -267,13 +267,9 @@
267 267  
268 268  == 2.3  ​Uplink Payload ==
269 269  
270 -(((
271 271  Normal Upload Payload:
272 -)))
273 273  
274 -(((
275 275  LSN50v2-D2x use the same payload as LSn50v2 mod1, as below.
276 -)))
277 277  
278 278  
279 279  (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:709px" %)
... ... @@ -297,7 +297,7 @@
297 297  [[image:image-20220622180351-1.png||height="589" width="1096"]]
298 298  
299 299  
300 -=== (% style="color:#4472c4" %)**Battery:**(%%) ===
308 +=== **(% style="color:#4472C4" %)Battery:** ===
301 301  
302 302  Check the battery voltage.
303 303  
... ... @@ -306,7 +306,7 @@
306 306  Ex2: 0x0B49 = 2889mV
307 307  
308 308  
309 -=== (% style="color:#4472c4" %)**Temperature RED or Temperature White :**(%%) ===
317 +=== **(% style="color:#4472C4" %)Temperature RED or Temperature White :** ===
310 310  
311 311  **This point to the Red probe in LSN50 v2-D20 or the probe of LSN50v2- D22/D23 White**
312 312  
... ... @@ -318,7 +318,7 @@
318 318  If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
319 319  
320 320  
321 -=== (% style="color:#4472c4" %)**Temperature White:**(%%) ===
329 +=== **(% style="color:#4472C4" %)Temperature White:** ===
322 322  
323 323  **This point to the Red probe in LSN50 v2-D22/D23**
324 324  
... ... @@ -330,11 +330,10 @@
330 330  If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
331 331  
332 332  
333 -=== (% style="color:#4472c4" %)**Temperature Black:**(%%) ===
341 +=== **Temperature Black:** ===
334 334  
335 335  **This point to the BLACK probe in LSN50 v2-D23**
336 336  
337 -
338 338  **Example**:
339 339  
340 340  If payload is: 0105H:  (0105 & FC00 == 0), temp = 0105H /10 = 26.1 degree
... ... @@ -342,207 +342,973 @@
342 342  If payload is: FF3FH :  (FF3F & FC00 == 1) , temp = (FF3FH - 65536)/10 = -19.3 degrees.
343 343  
344 344  
345 -=== (% style="color:#4472c4" %)**Alarm Flag& MOD:**(%%) ===
346 346  
353 +
354 +=== **(% style="color:#4472C4" %)Alarm Flag& MOD:** ===
355 +
356 +Example:
357 +
358 +If payload & 0x01 = 0x01  à This is an Alarm Message
359 +
360 +If payload & 0x01 = 0x00  à This is a normal uplink message, no alarm
361 +
362 +If payload >> 2 = 0x00 à means MOD=1, This is a sampling uplink message
363 +
364 +If payload >> 2 = 0x31 à means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see [[this link>>path:#Poll_Alarm]] for detail.
365 +
366 +(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)​(%%)​
367 +
368 +
369 +
370 +=== 2.4.1  Battery Info ===
371 +
372 +
373 +Check the battery voltage for LDDS45.
374 +
375 +Ex1: 0x0B45 = 2885mV
376 +
377 +Ex2: 0x0B49 = 2889mV
378 +
379 +
380 +
381 +=== 2.4.2  Interrupt Pin ===
382 +
383 +(((
384 +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.
385 +)))
386 +
387 +(((
388 +**Note: **The Internet Pin is a separate pin in the screw terminal. See [[pin mapping>>||anchor="H1.4A0Pinmappingandpoweron"]].
389 +)))
390 +
391 +(((
392 +
393 +)))
394 +
395 +(((
347 347  **Example:**
397 +)))
348 348  
349 -If payload & 0x01 = 0x01  **~-~->** This is an Alarm Message
399 +(((
400 +(0x0D4A & 0x8000) >>15 = 0: Normal uplink packet.
401 +)))
350 350  
351 -If payload & 0x01 = 0x00  **~-~->** This is a normal uplink message, no alarm
403 +(((
404 +(0x8D41 & 0x8000) >>15 = 1: Interrupt Uplink Packet.
405 +)))
352 352  
353 -If payload >> 2 = 0x00  **~-~->**  means MOD=1, This is a sampling uplink message
354 354  
355 -If payload >> 2 = 0x31  **~-~->**  means MOD=31, this message is a reply message for polling, this message contains the alarm settings. see [[this link>>path:#Poll_Alarm]] for detail.
356 356  
357 -(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
409 +=== 2.4.3  Distance ===
358 358  
411 +(((
412 +(((
413 +The measuring distance of the four distance measuring modules, the default unit is cm.
414 +)))
359 359  
360 -=== 2.3.2  Decode payload in The Things Network ===
416 +(((
417 +
418 +)))
361 361  
362 -In TTN, use can add a custom payload so it shows friendly. 
420 +(((
421 +**Example**:
422 +)))
363 363  
364 -In the page Applications ~-~-> Payload Formats ~-~-> Custom ~-~-> decoder to add the decoder from:
424 +(((
425 +Uplink Payload: 0D 4A 03 16 03 18 03 1A 03 15 01
426 +)))
365 365  
366 -[[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Decoder/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LSN50v2-D20/Decoder/]]
428 +(((
429 +
430 +)))
367 367  
432 +(((
433 +Data analysis:
434 +)))
368 368  
369 -(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​
436 +(((
437 +Distance of UT sensor1 : 0316(H) = 790 (D)/10 = 79cm.
438 +)))
370 370  
371 -== 2.4  Temperature Alarm Feature ==
440 +(((
441 +Distance of UT sensor2 : 0318(H) = 792 (D)/10 = 79.2cm.
442 +)))
372 372  
373 -LSN50V2-D20 work flow with Alarm feature.
444 +(((
445 +Distance of UT sensor3 : 031A(H) = 794 (D)/10 = 79.4cm.
446 +)))
374 374  
375 -[[image:image-20220623090437-1.png||height="747" width="1067"]]
448 +(((
449 +Distance of UT sensor4 : 0315(H) = 789 (D)/10 = 78.9cm.
450 +)))
376 376  
452 +
453 +)))
377 377  
455 +
456 +=== 2.4.4  Message Type ===
457 +
378 378  (((
379 -User can use (% style="color:#4472c4" %)**AT+18ALARM **(%%)command to set the alarm low limit or high limit. Device will check the temperature every minute, if the temperature lower than low limit or greater than high limit. LSN50v2-D20 will send an (% style="color:#4472c4" %)**Alarm packet base on Confirmed Uplink Mode**(%%) to server.
459 +For a normal uplink payload, the message type is always 0x01.
380 380  )))
381 381  
462 +(((
463 +Valid Message Type:
464 +)))
382 382  
383 -Below is an example of the Alarm Packet.
384 384  
385 -[[image:image-20220623090437-2.png||height="618" width="1246"]]
467 +(% border="1" cellspacing="10" style="background-color:#ffffcc; width:499px" %)
468 +|=(% style="width: 160px;" %)**Message Type Code**|=(% style="width: 163px;" %)**Description**|=(% style="width: 173px;" %)**Payload**
469 +|(% style="width:160px" %)0x01|(% style="width:163px" %)Normal Uplink|(% style="width:173px" %)[[Normal Uplink Payload>>||anchor="H2.4A0200BUplinkPayload"]]
470 +|(% style="width:160px" %)0x02|(% style="width:163px" %)Reply configures info|(% style="width:173px" %)[[Configure Info Payload>>||anchor="H3.3A0GetFirmwareVersionInfo"]]
386 386  
472 +(% aria-label="1654936589640-122.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654936589640-122.png||data-widget="image" height="248" width="806"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
387 387  
388 388  
389 -== 2.5  ​Configure LSN50v2-D20 ==
390 390  
391 -LSN50V2-D20 supports configuration via LoRaWAN downlink command or AT Commands.
476 +=== 2.4.5  Decode payload in The Things Network ===
392 392  
393 -* Downlink command instructions for different platform: [[Use Note for Server>>doc:Main.WebHome]](IoT LoRaWAN Server)
394 -* AT Command Access Instructions: [[LINK>>path:#AT_Command]]
478 +While using TTN network, you can add the payload format to decode the payload.
395 395  
396 -There are two parts of commands: General one and Special for this model.
480 +(% aria-label="1654936675588-151.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654936675588-151.png||data-widget="image" height="379" width="762"]](% 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" %)​
397 397  
482 +(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​
398 398  
484 +The payload decoder function for TTN is here:
399 399  
400 -=== 2.5.1 General Configure Commands ===
486 +LDDS04 TTN Payload Decoder: [[https:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDDS04/Decoder/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LLDS12/Decoder/]]
401 401  
402 -These commands are to configure:
403 403  
404 -* General system settings like: uplink interval.
405 -* LoRaWAN protocol & radio related command.
489 +**//function Decoder(bytes, port) {//**
406 406  
407 -These commands can be found on the wiki:  [[End Device AT Commands and Downlink Commands>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
491 +**// var decode = {};//**
408 408  
493 +**// var value=(bytes[0]<<8 | bytes[1]) & 0x3FFF;//**
409 409  
495 +**// decode.BatV= value/1000;//**
410 410  
411 -=== 2.5.2 Sensor related commands ===
497 +**// decode.EXTI_Trigger=(bytes[0] & 0x80)? "TRUE":"FALSE";//**
412 412  
413 -(% class="wikigeneratedid" %)
414 -==== ====
499 +**// decode.distance1_cm=(bytes[2]<<8 | bytes[3])/10;//**
415 415  
416 -==== (% style="color:red" %)**Set Alarm Threshold:**(%%) ====
501 +**// decode.distance2_cm=(bytes[4]<<8 | bytes[5])/10;//**
417 417  
418 -(% style="color:#4472c4" %)**1.  Set All Probes:**
503 +**// decode.distance3_cm=(bytes[6]<<8 | bytes[7])/10//**
419 419  
420 -(% style="color:#037691" %)**AT+18ALARM=min,max**
505 +**// decode.distance4_cm=(bytes[8]<<8 | bytes[9])/10;//**
421 421  
422 -* When min=0, and max≠0, Alarm trigger when higher than max
423 -* When min≠0, and max=0, Alarm trigger when lower than min
424 -* When min≠0 and max≠0, Alarm trigger when higher than max or lower than min
507 +**// decode.mes_type= bytes[10];//**
425 425  
426 426  
427 -**Example:**
510 +**// if(!((bytes[0]==0x03)&&(bytes[10]==0x02~)~)~)//**
428 428  
429 - AT+18ALARM=-10,30  ~/~/ Alarm when < -10 or higher than 30.
512 +**// {//**
430 430  
514 +**// return decode;//**
431 431  
432 -* (% style="color:#037691" %)**Downlink Payload:**
516 +**// }//**
433 433  
434 -0x(0B F6 1E)   ~/~/ Same as AT+18ALARM=-10,30
518 +**//}//**
435 435  
436 -(note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10)
520 +(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​​
437 437  
522 +(((
523 +
524 +)))
438 438  
439 -(% style="color:#4472c4" %)**2.  Set Separate Probe:**
440 440  
441 -(% style="color:#037691" %)**AT+18ALARM=min,max,index**
442 442  
443 -Index:
528 +== 2.5  Uplink Interval ==
444 444  
445 -* 1: Temperature_Red
446 -* 2: Temperature_White
447 -* 3: Temperature_Black
530 +The LDDS04 by default uplink the sensor data every 20 minutes. User can change this interval by AT Command or LoRaWAN Downlink Command. See this link: [[Change Uplink Interval>>doc:Main.End Device AT Commands and Downlink Command.WebHome||anchor="H4.1ChangeUplinkInterval"]]
448 448  
449 449  
450 -**Example:**
451 451  
452 - AT+18ALARM=-10,30,1   ~/~/ Alarm when temperature_red < -10 or higher than 30.
534 +== 2.6  ​Show Data in DataCake IoT Server ==
453 453  
536 +(((
537 +[[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:
538 +)))
454 454  
455 -* (% style="color:#037691" %)**Downlink Payload:**
540 +(((
541 +
542 +)))
456 456  
457 -0x(0B F6 1E 01)   ~/~/ Same as AT+18ALARM=-10,30,1
544 +(((
545 +(% style="color:blue" %)**Step 1**(%%)**: Be sure that your device is programmed and properly connected to the network at this time.**
546 +)))
458 458  
459 -(note: 0x1E= 30, 0xF6 means: 0xF6-0x100 = -10)
548 +(((
549 +(% 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:**
550 +)))
460 460  
461 461  
553 +(% aria-label="1654592790040-760.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654592790040-760.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)​(%%)​
462 462  
463 -==== (% style="color:red" %)**Set Alarm Interval:**(%%) ====
464 464  
465 -The shortest time of two Alarm packet. (unit: min)
556 +(% aria-label="1654592800389-571.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654592800389-571.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)​(%%)​
466 466  
467 -* (% style="color:#037691" %)**AT Command:**
468 468  
469 -AT+ATDC=30  ~/~/ The shortest interval of two Alarm packets is 30 minutes, Means is there is an alarm packet uplink, there won't be another one in the next 30 minutes.
559 +(% style="color:blue" %)**Step 3**(%%)**: Create an account or log in Datacake.**
470 470  
561 +(% style="color:blue" %)**Step 4**(%%)**: Create LDDS04 product. **
471 471  
472 -* (% style="color:#037691" %)**Downlink Payload:**
473 473  
474 -0x(0D 00 1E)     **~-~-->** Set AT+ATDC=0x 00 1E = 30 minutes
475 475  
565 +(% aria-label="image-20220611164604-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-7.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
476 476  
477 477  
478 -==== (% style="color:red" %)**Poll the Alarm settings:**(%%) ====
479 479  
480 -Send a LoRaWAN downlink to ask device send Alarm settings.
569 +(% aria-label="image-20220611164604-8.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-8.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
481 481  
482 -* (% style="color:#037691" %)**Downlink Payload:**
483 483  
484 -0x0E 01
572 +(% aria-label="image-20220611164604-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-9.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
485 485  
486 486  
487 -**Example:**
575 +(% style="color:blue" %)**Step 5**(%%)**: ** **add payload decode**
488 488  
489 -[[image:1655948182791-225.png]]
490 490  
491 -**Explain:**
578 +(% aria-label="image-20220611164604-10.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-10.png||data-widget="image" height="394" width="923"]](% 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" %)​
492 492  
493 -* Alarm & MOD bit is 0x7C, 0x7C >> 2 = 0x31: Means this message is the Alarm settings message.
494 494  
581 +(% aria-label="image-20220611164604-11.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-11.png||data-widget="image" height="303" width="931"]](% 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" %)​
495 495  
496 496  
497 -== 2.6  LED Status ==
584 +(% aria-label="image-20220611164604-12.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-12.png||data-widget="image" height="331" width="897"]](% 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" %)​
498 498  
499 -LSN50-v2-D20 has an internal LED, it will active in below situation:
500 500  
501 -* LED will fast blink 5 times when boot, this means the temperature sensor is detected.
502 -* After the fast blinks on boot, the LED will flash once which means device is trying to send Join Packet to the network.
503 -* If device successful join LoRaWAN network, the LED will be solid on for 5 seconds.
587 +After added, the sensor data arrive TTN, it will also arrive and show in Datacake.
504 504  
589 +(% aria-label="image-20220611164604-13.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-13.png||data-widget="image" height="215" width="899"]](% 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" %)​
505 505  
506 506  
592 +(% aria-label="image-20220611164604-14.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-14.png||data-widget="image" height="632" width="824"]](% 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" %)​
507 507  
508 -== 2.7  Button Function ==
509 509  
510 -**Internal RESET button:**
595 +(% aria-label="image-20220611164604-15.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-15.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
511 511  
512 -Press this button will reboot the device. Device will process OTAA Join to network again.
513 513  
598 +(% aria-label="image-20220611164604-16.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220611164604-16.png||data-widget="image" height="409" width="833"]](% 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" %)​
514 514  
515 -(% style="color:inherit; font-family:inherit; font-size:26px" %)2.8  ​Firmware Change Log
516 516  
517 -**Firmware download link: **[[https:~~/~~/www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/Firmware/LSN50.hex/>>url:https://www.dragino.com/downloads/index.php?dir=LSN50-LoRaST/Firmware/LSN50.hex/]]
518 518  
602 +== 2.7  Frequency Plans ==
519 519  
604 +(((
605 +The LDDS45 uses OTAA mode and below frequency plans by default. If user want to use it with different frequency plan, please refer the AT command sets.
606 +)))
607 +
608 +
609 +
610 +=== 2.7.1  EU863-870 (EU868) ===
611 +
612 +(((
613 +(% style="color:blue" %)**Uplink:**
614 +)))
615 +
616 +(((
617 +868.1 - SF7BW125 to SF12BW125
618 +)))
619 +
620 +(((
621 +868.3 - SF7BW125 to SF12BW125 and SF7BW250
622 +)))
623 +
624 +(((
625 +868.5 - SF7BW125 to SF12BW125
626 +)))
627 +
628 +(((
629 +867.1 - SF7BW125 to SF12BW125
630 +)))
631 +
632 +(((
633 +867.3 - SF7BW125 to SF12BW125
634 +)))
635 +
636 +(((
637 +867.5 - SF7BW125 to SF12BW125
638 +)))
639 +
640 +(((
641 +867.7 - SF7BW125 to SF12BW125
642 +)))
643 +
644 +(((
645 +867.9 - SF7BW125 to SF12BW125
646 +)))
647 +
648 +(((
649 +868.8 - FSK
650 +)))
651 +
652 +(((
653 +
654 +)))
655 +
656 +(((
657 +(% style="color:blue" %)**Downlink:**
658 +)))
659 +
660 +(((
661 +Uplink channels 1-9 (RX1)
662 +)))
663 +
664 +(((
665 +869.525 - SF9BW125 (RX2 downlink only)
666 +)))
667 +
668 +
669 +
670 +=== 2.7.2  US902-928(US915) ===
671 +
672 +(((
673 +
674 +
675 +(((
676 +Used in USA, Canada, and South America. Frequency band as per definition in LoRaWAN 1.0.3 Regional document.
677 +)))
678 +
679 +(((
680 +To make sure the end node supports all sub band by default. In the OTAA Join process, the end node will use frequency 1 from sub-band1, then frequency 1 from sub-band2, then frequency 1 from sub-band3, etc to process the OTAA join.
681 +)))
682 +
683 +(((
684 +
685 +)))
686 +
687 +(((
688 +After Join success, the end node will switch to the correct sub band by:
689 +)))
690 +
691 +* (((
692 +Check what sub-band the LoRaWAN server ask from the OTAA Join Accept message and switch to that sub-band
693 +)))
694 +* (((
695 +Use the Join successful sub-band if the server doesn’t include sub-band info in the OTAA Join Accept message ( TTN v2 doesn't include)
696 +)))
697 +
698 +
699 +)))
700 +
701 +
702 +
703 +
704 +
705 +=== 2.7.3  CN470-510 (CN470) ===
706 +
707 +(((
708 +Used in China, Default use CHE=1
709 +)))
710 +
711 +(((
712 +(% style="color:blue" %)**Uplink:**
713 +)))
714 +
715 +(((
716 +486.3 - SF7BW125 to SF12BW125
717 +)))
718 +
719 +(((
720 +486.5 - SF7BW125 to SF12BW125
721 +)))
722 +
723 +(((
724 +486.7 - SF7BW125 to SF12BW125
725 +)))
726 +
727 +(((
728 +486.9 - SF7BW125 to SF12BW125
729 +)))
730 +
731 +(((
732 +487.1 - SF7BW125 to SF12BW125
733 +)))
734 +
735 +(((
736 +487.3 - SF7BW125 to SF12BW125
737 +)))
738 +
739 +(((
740 +487.5 - SF7BW125 to SF12BW125
741 +)))
742 +
743 +(((
744 +487.7 - SF7BW125 to SF12BW125
745 +)))
746 +
747 +(((
748 +
749 +)))
750 +
751 +(((
752 +(% style="color:blue" %)**Downlink:**
753 +)))
754 +
755 +(((
756 +506.7 - SF7BW125 to SF12BW125
757 +)))
758 +
759 +(((
760 +506.9 - SF7BW125 to SF12BW125
761 +)))
762 +
763 +(((
764 +507.1 - SF7BW125 to SF12BW125
765 +)))
766 +
767 +(((
768 +507.3 - SF7BW125 to SF12BW125
769 +)))
770 +
771 +(((
772 +507.5 - SF7BW125 to SF12BW125
773 +)))
774 +
775 +(((
776 +507.7 - SF7BW125 to SF12BW125
777 +)))
778 +
779 +(((
780 +507.9 - SF7BW125 to SF12BW125
781 +)))
782 +
783 +(((
784 +508.1 - SF7BW125 to SF12BW125
785 +)))
786 +
787 +(((
788 +505.3 - SF12BW125 (RX2 downlink only)
789 +)))
790 +
791 +
792 +
793 +=== 2.7.4  AU915-928(AU915) ===
794 +
795 +(((
796 +
797 +
798 +(((
799 +Frequency band as per definition in LoRaWAN 1.0.3 Regional document.
800 +)))
801 +
802 +(((
803 +To make sure the end node supports all sub band by default. In the OTAA Join process, the end node will use frequency 1 from sub-band1, then frequency 1 from sub-band2, then frequency 1 from sub-band3, etc to process the OTAA join.
804 +)))
805 +
806 +(((
807 +
808 +)))
809 +
810 +(((
811 +After Join success, the end node will switch to the correct sub band by:
812 +)))
813 +
814 +* (((
815 +Check what sub-band the LoRaWAN server ask from the OTAA Join Accept message and switch to that sub-band
816 +)))
817 +* (((
818 +Use the Join successful sub-band if the server doesn’t include sub-band info in the OTAA Join Accept message ( TTN v2 doesn't include)
819 +)))
820 +
821 +
822 +)))
823 +
824 +=== 2.7.5  AS920-923 & AS923-925 (AS923) ===
825 +
826 +(((
827 +(% style="color:blue" %)**Default Uplink channel:**
828 +)))
829 +
830 +(((
831 +923.2 - SF7BW125 to SF10BW125
832 +)))
833 +
834 +(((
835 +923.4 - SF7BW125 to SF10BW125
836 +)))
837 +
838 +(((
839 +
840 +)))
841 +
842 +(((
843 +(% style="color:blue" %)**Additional Uplink Channel**:
844 +)))
845 +
846 +(((
847 +(OTAA mode, channel added by JoinAccept message)
848 +)))
849 +
850 +(((
851 +
852 +)))
853 +
854 +(((
855 +(% style="color:blue" %)**AS920~~AS923 for Japan, Malaysia, Singapore**:
856 +)))
857 +
858 +(((
859 +922.2 - SF7BW125 to SF10BW125
860 +)))
861 +
862 +(((
863 +922.4 - SF7BW125 to SF10BW125
864 +)))
865 +
866 +(((
867 +922.6 - SF7BW125 to SF10BW125
868 +)))
869 +
870 +(((
871 +922.8 - SF7BW125 to SF10BW125
872 +)))
873 +
874 +(((
875 +923.0 - SF7BW125 to SF10BW125
876 +)))
877 +
878 +(((
879 +922.0 - SF7BW125 to SF10BW125
880 +)))
881 +
882 +(((
883 +
884 +)))
885 +
886 +(((
887 +(% style="color:blue" %)**AS923 ~~ AS925 for Brunei, Cambodia, Hong Kong, Indonesia, Laos, Taiwan, Thailand, Vietnam**:
888 +)))
889 +
890 +(((
891 +923.6 - SF7BW125 to SF10BW125
892 +)))
893 +
894 +(((
895 +923.8 - SF7BW125 to SF10BW125
896 +)))
897 +
898 +(((
899 +924.0 - SF7BW125 to SF10BW125
900 +)))
901 +
902 +(((
903 +924.2 - SF7BW125 to SF10BW125
904 +)))
905 +
906 +(((
907 +924.4 - SF7BW125 to SF10BW125
908 +)))
909 +
910 +(((
911 +924.6 - SF7BW125 to SF10BW125
912 +)))
913 +
914 +(((
915 +
916 +)))
917 +
918 +(((
919 +(% style="color:blue" %)**Downlink:**
920 +)))
921 +
922 +(((
923 +Uplink channels 1-8 (RX1)
924 +)))
925 +
926 +(((
927 +923.2 - SF10BW125 (RX2)
928 +)))
929 +
930 +
931 +
932 +=== 2.7.6  KR920-923 (KR920) ===
933 +
934 +(((
935 +(% style="color:blue" %)**Default channel:**
936 +)))
937 +
938 +(((
939 +922.1 - SF7BW125 to SF12BW125
940 +)))
941 +
942 +(((
943 +922.3 - SF7BW125 to SF12BW125
944 +)))
945 +
946 +(((
947 +922.5 - SF7BW125 to SF12BW125
948 +)))
949 +
950 +(((
951 +
952 +)))
953 +
954 +(((
955 +(% style="color:blue" %)**Uplink: (OTAA mode, channel added by JoinAccept message)**
956 +)))
957 +
958 +(((
959 +922.1 - SF7BW125 to SF12BW125
960 +)))
961 +
962 +(((
963 +922.3 - SF7BW125 to SF12BW125
964 +)))
965 +
966 +(((
967 +922.5 - SF7BW125 to SF12BW125
968 +)))
969 +
970 +(((
971 +922.7 - SF7BW125 to SF12BW125
972 +)))
973 +
974 +(((
975 +922.9 - SF7BW125 to SF12BW125
976 +)))
977 +
978 +(((
979 +923.1 - SF7BW125 to SF12BW125
980 +)))
981 +
982 +(((
983 +923.3 - SF7BW125 to SF12BW125
984 +)))
985 +
986 +(((
987 +
988 +)))
989 +
990 +(((
991 +(% style="color:blue" %)**Downlink:**
992 +)))
993 +
994 +(((
995 +Uplink channels 1-7(RX1)
996 +)))
997 +
998 +(((
999 +921.9 - SF12BW125 (RX2 downlink only; SF12BW125 might be changed to SF9BW125)
1000 +)))
1001 +
1002 +
1003 +
1004 +=== 2.7.7  IN865-867 (IN865) ===
1005 +
1006 +(((
1007 +(% style="color:blue" %)**Uplink:**
1008 +)))
1009 +
1010 +(((
1011 +865.0625 - SF7BW125 to SF12BW125
1012 +)))
1013 +
1014 +(((
1015 +865.4025 - SF7BW125 to SF12BW125
1016 +)))
1017 +
1018 +(((
1019 +865.9850 - SF7BW125 to SF12BW125
1020 +)))
1021 +
1022 +(((
1023 +
1024 +)))
1025 +
1026 +(((
1027 +(% style="color:blue" %)**Downlink:**
1028 +)))
1029 +
1030 +(((
1031 +Uplink channels 1-3 (RX1)
1032 +)))
1033 +
1034 +(((
1035 +866.550 - SF10BW125 (RX2)
1036 +)))
1037 +
1038 +
1039 +
1040 +== 2.8  LED Indicator ==
1041 +
1042 +The LDDS04 has an internal LED which is used to show the status of different state.
1043 +
1044 +
1045 +* After LDDS04 is turned on, if the 4 channels converter is detected, the LED will (% style="color:green" %)**flash 4 times quickly**(%%).  
1046 +* (% style="color:green" %)**Blink once**(%%) when device transmit a packet.
1047 +* Solid ON for (% style="color:green" %)**Five Seconds**(%%) when OTAA Join Successfully.
1048 +
1049 +== 2.9  ​Firmware Change Log ==
1050 +
1051 +
1052 +**Firmware download link: **[[http:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LDDS04/Firmware/>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/LLDS12/Firmware/]]
1053 +
1054 +
520 520  **Firmware Upgrade Method: **[[Firmware Upgrade Instruction>>doc:Main.Firmware Upgrade Instruction for STM32 base products.WebHome]]
521 521  
522 522  
523 523  
524 -= 3.  Battery & How to replace =
525 525  
526 -== 3.1  Battery Type ==
1060 += 3.  Configure LDDS04 via AT Command or LoRaWAN Downlink =
527 527  
528 528  (((
529 -LSN50V2-D2X is equipped with a [[8500mAH ER26500 Li-SOCI2 battery>>url:https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]]. The battery is un-rechargeable battery with low discharge rate targeting for 8~~10 years use. This type of battery is commonly used in IoT target for long-term running, such as water meter.
1063 +(((
1064 +Use can configure LDDS04 via AT Command or LoRaWAN Downlink.
530 530  )))
1066 +)))
531 531  
1068 +* (((
532 532  (((
533 -The discharge curve is not linear so can't simply use percentage to show the battery level. Below is the battery performance.
1070 +AT Command Connection: See [[FAQ>>||anchor="H6.A0FAQ"]].
534 534  )))
1072 +)))
1073 +* (((
1074 +(((
1075 +LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]]
1076 +)))
1077 +)))
535 535  
1079 +(((
1080 +(((
1081 +
1082 +)))
1083 +
1084 +(((
1085 +There are two kinds of commands to configure LDDS04, they are:
1086 +)))
1087 +)))
1088 +
1089 +* (((
1090 +(((
1091 +(% style="color:#4f81bd" %)** General Commands**.
1092 +)))
1093 +)))
1094 +
1095 +(((
1096 +(((
1097 +These commands are to configure:
1098 +)))
1099 +)))
1100 +
1101 +* (((
1102 +(((
1103 +General system settings like: uplink interval.
1104 +)))
1105 +)))
1106 +* (((
1107 +(((
1108 +LoRaWAN protocol & radio related command.
1109 +)))
1110 +)))
1111 +
1112 +(((
1113 +(((
1114 +They are same for all Dragino Device which support DLWS-005 LoRaWAN Stack. These commands can be found on the wiki: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
1115 +)))
1116 +)))
1117 +
1118 +(((
1119 +(((
1120 +
1121 +)))
1122 +)))
1123 +
1124 +* (((
1125 +(((
1126 +(% style="color:#4f81bd" %)** Commands special design for LDDS04**
1127 +)))
1128 +)))
1129 +
1130 +(((
1131 +(((
1132 +These commands only valid for LDDS04, as below:(% title="Click and drag to resize" %)​
1133 +)))
1134 +)))
1135 +
1136 +(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​
1137 +
1138 +
1139 +
1140 +
1141 +== 3.1  Set Transmit Interval Time ==
1142 +
1143 +Feature: Change LoRaWAN End Node Transmit Interval.
1144 +
1145 +(% style="color:#037691" %)**AT Command: AT+TDC**
1146 +
1147 +(% aria-label="image-20220610173409-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220610173409-7.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)​(%%)​
1148 +
1149 +
1150 +(((
1151 +(% style="color:#037691" %)**Downlink Command: 0x01**
1152 +)))
1153 +
1154 +(((
1155 +(((
1156 +Format: Command Code (0x01) followed by 3 bytes time value.
1157 +
1158 +(((
1159 +If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
1160 +)))
1161 +
1162 +* Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
1163 +* Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
1164 +)))
1165 +)))
1166 +
1167 +
1168 +
1169 +== 3.2  Set Interrupt Mode ==
1170 +
1171 +(((
1172 +Feature, Set Interrupt mode for GPIO_EXIT.
1173 +)))
1174 +
1175 +(((
1176 +(% style="color:#037691" %)**Downlink Command: AT+INTMOD**
1177 +)))
1178 +
1179 +(% aria-label="image-20220610174917-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220610174917-9.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" tabindex="-1" %)​(%%)​
1180 +
1181 +
1182 +(((
1183 +(% style="color:#037691" %)**Downlink Command: 0x06**
1184 +)))
1185 +
1186 +(((
1187 +Format: Command Code (0x06) followed by 3 bytes.
1188 +)))
1189 +
1190 +(((
1191 +(((
1192 +This means that the interrupt mode of the end node is set to 0x000003=3 (rising edge trigger), and the type code is 06.
1193 +)))
1194 +)))
1195 +
1196 +* (((
1197 +Example 1: Downlink Payload: 06000000 ~/~/ Turn off interrupt mode
1198 +)))
1199 +* (((
1200 +Example 2: Downlink Payload: 06000003 ~/~/ Set the interrupt mode to rising edge trigger
1201 +)))
1202 +
1203 +(((
1204 +
1205 +)))
1206 +
1207 +(((
1208 +
1209 +)))
1210 +
1211 +== 3.3  Get Firmware Version Info ==
1212 +
1213 +Feature: use downlink to get firmware version.
1214 +
1215 +(% style="color:#037691" %)**Downlink Command: 0x26**
1216 +
1217 +(% aria-label="image-20220607171917-10.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220607171917-10.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
1218 +
1219 +* Reply to the confirmation package: 26 01
1220 +* Reply to non-confirmed packet: 26 00
1221 +
1222 +Device will send an uplink after got this downlink command. With below payload:
1223 +
1224 +Configures info payload:
1225 +
1226 +(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %)
1227 +|=(((
1228 +**Size(bytes)**
1229 +)))|=**1**|=**1**|=**1**|=**2**|=**1**|=**4**|=**1**
1230 +|**Value**|Software Type|(((
1231 +Frequency
1232 +
1233 +Band
1234 +)))|Sub-band|(((
1235 +Firmware
1236 +
1237 +Version
1238 +)))|Sensor Type|Reserve|(((
1239 +[[Message Type>>||anchor="H2.4.4A0MessageType"]]
1240 +Always 0x02
1241 +)))
1242 +
1243 +(% aria-label="1654939064380-661.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654939064380-661.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​
1244 +
1245 +
1246 +**Software Type**: Always 0x03 for LDDS04
1247 +
1248 +
1249 +**Frequency Band**:
1250 +
1251 +*0x01: EU868
1252 +
1253 +*0x02: US915
1254 +
1255 +*0x03: IN865
1256 +
1257 +*0x04: AU915
1258 +
1259 +*0x05: KZ865
1260 +
1261 +*0x06: RU864
1262 +
1263 +*0x07: AS923
1264 +
1265 +*0x08: AS923-1
1266 +
1267 +*0x09: AS923-2
1268 +
1269 +*0xa0: AS923-3
1270 +
1271 +
1272 +**Sub-Band**: value 0x00 ~~ 0x08
1273 +
1274 +
1275 +**Firmware Version**: 0x0100, Means: v1.0.0 version
1276 +
1277 +
1278 +**Sensor Type**:
1279 +
1280 +0x01: LSE01
1281 +
1282 +0x02: LDDS75
1283 +
1284 +0x03: LDDS20
1285 +
1286 +0x04: LLMS01
1287 +
1288 +0x05: LSPH01
1289 +
1290 +0x06: LSNPK01
1291 +
1292 +0x07: LLDS12
1293 +
1294 +
1295 +
1296 += 4. Battery & How to replace =
1297 +
1298 +== 4.1 Battery Type ==
1299 +
1300 +(((
1301 +LDDS04 is equipped with a [[8500mAH ER26500 Li-SOCI2 battery>>url:https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/ER26500/]]. The battery is un-rechargeable battery with low discharge rate targeting for 8~~10 years use. This type of battery is commonly used in IoT target for long-term running, such as water meter.
1302 +)))
1303 +
1304 +(((
1305 +The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance.
1306 +)))
1307 +
536 536  (% aria-label="1654593587246-335.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654593587246-335.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" %)​(%%)​
537 537  
538 -Minimum Working Voltage for the LSN50V2-D2X:
539 539  
540 -LSN50V2-D2X:  2.45v ~~ 3.6v
1311 +Minimum Working Voltage for the LDDS04:
541 541  
1313 +LDDS04:  2.45v ~~ 3.6v
542 542  
543 543  
544 -== 4.2  Replace Battery ==
545 545  
1317 +== 4.2 Replace Battery ==
1318 +
546 546  (((
547 547  Any battery with range 2.45 ~~ 3.6v can be a replacement. We recommend to use Li-SOCl2 Battery.
548 548  )))
... ... @@ -553,7 +553,7 @@
553 553  
554 554  
555 555  
556 -== 4.3  Power Consumption Analyze ==
1329 +== 4.3 Power Consumption Analyze ==
557 557  
558 558  (((
559 559  Dragino Battery powered product are all runs in Low Power mode. We have an update battery calculator which base on the measurement of the real device. User can use this calculator to check the battery life and calculate the battery life if want to use different transmit interval.
... ... @@ -566,7 +566,7 @@
566 566  
567 567  **Step 1 :**  Downlink the up-to-date DRAGINO_Battery_Life_Prediction_Table.xlsx from:
568 568  
569 -[[https:~~/~~/www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/]]
1342 +[[https:~~/~~/www.dragino.com/downloads/index.pHp?dir=LoRa_End_Node/Battery_Analyze/>>url:https://www.dragino.com/downloads/index.php?dir=LoRa_End_Node/Battery_Analyze/]]
570 570  
571 571  
572 572  **Step 2 :**  Open it and choose
... ... @@ -577,21 +577,19 @@
577 577  
578 578  And the Life expectation in difference case will be shown on the right.
579 579  
580 -[[image:image-20220623094856-3.jpeg||height="393" width="1214"]]
1353 +(% aria-label="1654593605679-189.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654593605679-189.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png) rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png) rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" %)​(%%)​
581 581  
582 582  
583 -(% 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"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png) rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" %)​(%%)​
584 -
585 585  The battery related documents as below:
586 586  
587 587  * (((
588 -[[Battery Dimension>>https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/]],
1359 +[[Battery Dimension>>url:http://www.dragino.com/downloads/index.php?dir=datasheet/Battery/&file=LSN50-Battery-Dimension.pdf]],
589 589  )))
590 590  * (((
591 -[[Lithium-Thionyl Chloride Battery  datasheet>>https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/]],
1362 +[[Lithium-Thionyl Chloride Battery  datasheet>>url:https://www.dragino.com/downloads/downloads/datasheet/Battery/ER26500/ER26500_Datasheet-EN.pdf]],
592 592  )))
593 593  * (((
594 -[[Lithium-ion Battery-Capacitor datasheet>>https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/]], [[Tech Spec>>https://www.dragino.com/downloads/index.php?dir=datasheet/Battery/]]
1365 +[[Lithium-ion Battery-Capacitor datasheet>>url:http://www.dragino.com/downloads/downloads/datasheet/Battery/SPC_1520_datasheet.jpg]], [[Tech Spec>>url:http://www.dragino.com/downloads/downloads/datasheet/Battery/SPC1520%20Technical%20Specification20171123.pdf]]
595 595  )))
596 596  
597 597  (% aria-label="image-20220607172042-11.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220607172042-11.png||data-widget="image"]](% style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background-image:url(http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220, 220, 220, 0.5); display:none; left:0px; top:-15px" tabindex="-1" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||data-widget="image" draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]][[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]](% title="Click and drag to resize" %)​(% aria-label="Data URI image image widget" contenteditable="false" role="region" style="background:url(~"http://wiki1.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png~") rgba(220, 220, 220, 0.5); left:0px; top:-15px" tabindex="-1" %)​(%%)​
... ... @@ -598,32 +598,26 @@
598 598  
599 599  
600 600  
601 -=== 4.3.1  ​Battery Note ===
1372 +=== 4.3.1 ​Battery Note ===
602 602  
603 603  (((
604 -(((
605 605  The Li-SICO battery is designed for small current / long period application. It is not good to use a high current, short period transmit method. The recommended minimum period for use of this battery is 5 minutes. If you use a shorter period time to transmit LoRa, then the battery life may be decreased.
606 606  )))
607 -)))
608 608  
609 609  
610 610  
611 -=== ​4.3.2  Replace the battery ===
1380 +=== ​4.3.2 Replace the battery ===
612 612  
613 613  (((
614 -(((
615 -You can change the battery in the LSN50V2-D2X.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.
1383 +You can change the battery in the LSPH01.The type of battery is not limited as long as the output is between 3v to 3.6v. On the main board, there is a diode (D1) between the battery and the main circuit. If you need to use a battery with less than 3.3v, please remove the D1 and shortcut the two pads of it so there won’t be voltage drop between battery and main board.
616 616  )))
617 617  
618 618  
619 619  (((
620 -The default battery pack of LSN50V2-D2X includes a ER26500 plus super capacitor. If user can't find this pack locally, they can find ER26500 or equivalence, which will also work in most case. The SPC can enlarge the battery life for high frequency use (update period below 5 minutes)
1388 +The default battery pack of LSPH01 includes a ER26500 plus super capacitor. If user cant find this pack locally, they can find ER26500 or equivalence, which will also work in most case. The SPC can enlarge the battery life for high frequency use (update period below 5 minutes).
621 621  )))
622 622  
623 -
624 -)))
625 625  
626 -
627 627  = 5.  Use AT Command =
628 628  
629 629  == 5.1  Access AT Commands ==
1655948182791-225.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -95.1 KB
Content
1655948911890-793.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -138.2 KB
Content
image-20220623090437-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -117.2 KB
Content
image-20220623090437-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -120.4 KB
Content
image-20220623094856-3.jpeg
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -102.7 KB
Content