Last modified by Mengting Qiu on 2025/06/04 18:42

From version 118.7
edited by Xiaoling
on 2023/05/17 11:09
Change comment: There is no comment for this version
To version 90.2
edited by Xiaoling
on 2022/08/18 11:36
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -20,13 +20,11 @@
20 20  (((
21 21  
22 22  
23 -(((
24 24  The Dragino (% style="color:blue" %)**LT series I/O Modules**(%%) are Long Range LoRaWAN I/O Controller. It contains different I/O Interfaces such as:** (% style="color:blue" %)analog current Input, analog voltage input(%%)**(% style="color:blue" %), **relay output**, **digital input**(%%) and (% style="color:blue" %)**digital output**(%%) etc. The LT I/O Modules are designed to simplify the installation of I/O monitoring.
25 25  )))
26 -)))
27 27  
28 28  (((
29 -The LT I/O Controllers allows the user to send data and reach extremely long ranges. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. It targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, building automation, and so on.
27 +The LT I/O Controllers allows the user to send data and reach extremely long ranges. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. It targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, smartphone detection, building automation, and so on.
30 30  )))
31 31  
32 32  (((
... ... @@ -38,7 +38,7 @@
38 38  )))
39 39  
40 40  (((
41 -1) If user's area has LoRaWAN service coverage, they can just install the I/O controller and configure it to connect the LoRaWAN provider via wireless.
39 +1) If users area has LoRaWAN service coverage, they can just install the I/O controller and configure it to connect the LoRaWAN provider via wireless.
42 42  )))
43 43  
44 44  (((
... ... @@ -53,16 +53,17 @@
53 53  
54 54  )))
55 55  
54 +
56 56  == 1.2  Specifications ==
57 57  
58 58  (((
59 59  
60 60  
61 -(% style="color:#037691" %)**Hardware System:**
60 +**Hardware System:**
62 62  )))
63 63  
64 64  * (((
65 -STM32L072xxxx MCU
64 +STM32L072CZT6 MCU
66 66  )))
67 67  * (((
68 68  SX1276/78 Wireless Chip 
... ... @@ -83,7 +83,7 @@
83 83  (((
84 84  
85 85  
86 -(% style="color:#037691" %)**Interface for Model: LT22222-L:**
85 +**Interface for Model: LT22222-L:**
87 87  )))
88 88  
89 89  * (((
... ... @@ -108,7 +108,7 @@
108 108  (((
109 109  
110 110  
111 -(% style="color:#037691" %)**LoRa Spec:**
110 +**LoRa Spec:**
112 112  )))
113 113  
114 114  * (((
... ... @@ -169,6 +169,7 @@
169 169  Packet engine up to 256 bytes with CRC.
170 170  
171 171  
171 +
172 172  
173 173  )))
174 174  
... ... @@ -176,43 +176,37 @@
176 176  
177 177  
178 178  * LoRaWAN Class A & Class C protocol
179 -
180 180  * Optional Customized LoRa Protocol
181 -
182 -* Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/RU864/IN865/MA869
183 -
180 +* Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/RU864/IN865
184 184  * AT Commands to change parameters
185 -
186 186  * Remote configure parameters via LoRa Downlink
187 -
188 188  * Firmware upgradable via program port
189 -
190 190  * Counting
191 191  
186 +
187 +
188 +
189 +
192 192  == 1.4  Applications ==
193 193  
194 194  
195 195  * Smart Buildings & Home Automation
196 -
197 197  * Logistics and Supply Chain Management
198 -
199 199  * Smart Metering
200 -
201 201  * Smart Agriculture
202 -
203 203  * Smart Cities
204 -
205 205  * Smart Factory
206 206  
200 +
201 +
202 +
203 +
207 207  == 1.5 Hardware Variants ==
208 208  
209 209  
210 -(% border="1" style="background-color:#f2f2f2; width:500px" %)
211 -|(% style="background-color:#d9e2f3; color:#0070c0; width:103px" %)**Model**|(% style="background-color:#d9e2f3; color:#0070c0; width:131px" %)**Photo**|(% style="background-color:#d9e2f3; color:#0070c0; width:334px" %)**Description**
212 -|(% style="width:103px" %)**LT22222-L**|(% style="width:131px" %)(((
213 -(% style="text-align:center" %)
214 -[[image:image-20230424115112-1.png||height="106" width="58"]]
215 -)))|(% style="width:334px" %)(((
207 +(% border="1" style="background-color:#f7faff; width:500px" %)
208 +|(% style="width:103px" %)**Model**|(% style="width:131px" %)**Photo**|(% style="width:334px" %)**Description**
209 +|(% style="width:103px" %)**LT22222-L**|(% style="width:131px" %)[[image:1653296302983-697.png]]|(% style="width:334px" %)(((
216 216  * 2 x Digital Input (Bi-direction)
217 217  * 2 x Digital Output
218 218  * 2 x Relay Output (5A@250VAC / 30VDC)
... ... @@ -221,22 +221,22 @@
221 221  * 1 x Counting Port
222 222  )))
223 223  
218 +
219 +
220 +
224 224  = 2. Power ON Device =
225 225  
226 226  
227 -(((
228 228  The LT controller can be powered by 7 ~~ 24V DC power source. Connect VIN to Power Input V+ and GND to power input V- to power the LT controller.
229 -)))
230 230  
231 231  (((
232 232  PWR will on when device is properly powered.
233 -
234 -
235 235  )))
236 236  
237 237  [[image:1653297104069-180.png]]
238 238  
239 239  
233 +
240 240  = 3. Operation Mode =
241 241  
242 242  == 3.1 How it works? ==
... ... @@ -251,6 +251,7 @@
251 251  )))
252 252  
253 253  
248 +
254 254  == 3.2 Example to join LoRaWAN network ==
255 255  
256 256  
... ... @@ -277,34 +277,31 @@
277 277  Each LT is shipped with a sticker with the default device EUI as below:
278 278  )))
279 279  
280 -[[image:image-20230425173427-2.png||height="246" width="530"]]
275 +[[image:1653297924498-393.png]]
281 281  
282 282  
283 283  Input these keys in the LoRaWAN Server portal. Below is TTN screen shot:
284 284  
285 -**Add APP EUI in the application.**
280 +Add APP EUI in the application.
286 286  
287 287  [[image:1653297955910-247.png||height="321" width="716"]]
288 288  
289 289  
290 -**Add APP KEY and DEV EUI**
285 +Add APP KEY and DEV EUI
291 291  
292 292  [[image:1653298023685-319.png]]
293 293  
294 294  
295 -
296 296  (((
297 297  (% style="color:blue" %)**Step 2**(%%): Power on LT and it will auto join to the TTN network. After join success, it will start to upload message to TTN and user can see in the panel.
298 -
299 -
300 300  )))
301 301  
302 302  [[image:1653298044601-602.png||height="405" width="709"]]
303 303  
304 304  
297 +
305 305  == 3.3 Uplink Payload ==
306 306  
307 -
308 308  There are five working modes + one interrupt mode on LT for different type application:
309 309  
310 310  * (% style="color:blue" %)**MOD1**(%%): (default setting): 2 x ACI + 2AVI + DI + DO + RO
... ... @@ -316,46 +316,23 @@
316 316  
317 317  === 3.3.1 AT+MOD~=1, 2ACI+2AVI ===
318 318  
311 +The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by default.
319 319  
320 -(((
321 -The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by default. (% style="display:none" %)
313 +[[image:image-20220523174024-3.png]]
322 322  
323 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
324 -|Size(bytes)(% style="display:none" %) |2|2|2|2|1|1|1
325 -|Value|(((
326 -AVI1
327 -voltage
328 -)))|(((
329 -AVI2
330 -voltage
331 -)))|(((
332 -ACI1
333 -Current
334 -)))|(((
335 -ACI2
336 -Current
337 -)))|DIDORO*|(((
338 -Reserve
339 -)))|MOD
340 -)))
341 -
342 -
343 343  (((
344 344  
345 345  
346 346  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
347 -
348 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
349 -|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0
350 -|RO1|RO2|DI3|DI2|DI1|DO3|DO2|DO1
351 351  )))
352 352  
321 +[[image:image-20220523174254-4.png]]
353 353  
354 354  * RO is for relay. ROx=1 : close,ROx=0 always open.
355 355  * DI is for digital input. DIx=1: high or float, DIx=0: low.
356 356  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
357 357  
358 -(% style="color:red" %)**Note: DI3 and DO3 bit are not valid for LT-22222-L**
327 +(% style="color:red" %)Note: DI3 and DO3 bit are not valid for LT-22222-L
359 359  
360 360  For example if payload is: [[image:image-20220523175847-2.png]]
361 361  
... ... @@ -393,39 +393,27 @@
393 393  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
394 394  
395 395  
396 -(((
397 397  **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins.
398 -)))
399 399  
400 400  (((
401 401  Total : 11 bytes payload
369 +)))
402 402  
403 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
404 -|Size(bytes)|4|4|1|1|1
405 -|Value|COUNT1|COUNT2 |DIDORO*|(((
406 -Reserve
371 +[[image:image-20220523180452-3.png]]
407 407  
408 -
409 -)))|MOD
410 -)))
411 411  
412 412  (((
413 -
414 -
415 415  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DO3, DO2 and DO1. Totally 1bytes as below
416 -
417 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
418 -|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0
419 -|RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1
420 -
421 -RO is for relay. ROx=1 : close,ROx=0 always open.
422 422  )))
423 423  
378 +[[image:image-20220523180506-4.png]]
379 +
380 +* RO is for relay. ROx=1 : close,ROx=0 always open.
424 424  * FIRST: Indicate this is the first packet after join network.
425 425  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
426 426  
427 427  (((
428 -(% style="color:red" %)**Note: DO3 bit is not valid for LT-22222-L.**
385 +(% style="color:red" %)Note: DO3 bit is not valid for LT-22222-L.
429 429  )))
430 430  
431 431  (((
... ... @@ -437,22 +437,16 @@
437 437  (% class="box infomessage" %)
438 438  (((
439 439  (((
440 -(((
441 441  **AT+MOD=2**
442 -)))
443 443  
444 -(((
445 445  **ATZ**
446 446  )))
447 447  )))
448 -)))
449 449  
450 450  (((
451 451  
452 452  
453 453  (% style="color:#4f81bd" %)**AT Commands for counting:**
454 -
455 -
456 456  )))
457 457  
458 458  (((
... ... @@ -473,29 +473,20 @@
473 473  )))
474 474  
475 475  
427 +
476 476  === 3.3.3 AT+MOD~=3, Single DI Counting + 2 x ACI ===
477 477  
478 -
479 479  **LT22222-L**: This mode the DI1 is used as a counting pin.
480 480  
481 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
482 -|Size(bytes)|4|2|2|1|1|1
483 -|Value|COUNT1|(((
484 -ACI1 Current
485 -)))|(((
486 -ACI2 Current
487 -)))|DIDORO*|Reserve|MOD
432 +[[image:image-20220523181246-5.png]]
488 488  
489 489  (((
490 490  
491 491  
492 492  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
493 -
494 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
495 -|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0
496 -|RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1
497 497  )))
498 498  
440 +[[image:image-20220523181301-6.png]]
499 499  
500 500  * RO is for relay. ROx=1 : close,ROx=0 always open.
501 501  * FIRST: Indicate this is the first packet after join network.
... ... @@ -502,7 +502,7 @@
502 502  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
503 503  
504 504  (((
505 -(% style="color:red" %)**Note: DO3 is not valid for LT-22222-L.**
447 +(% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
506 506  )))
507 507  
508 508  
... ... @@ -513,15 +513,11 @@
513 513  (% class="box infomessage" %)
514 514  (((
515 515  (((
516 -(((
517 517  **AT+MOD=3**
518 -)))
519 519  
520 -(((
521 521  **ATZ**
522 522  )))
523 523  )))
524 -)))
525 525  
526 526  (((
527 527  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
... ... @@ -528,35 +528,22 @@
528 528  )))
529 529  
530 530  
469 +
531 531  === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting ===
532 532  
533 533  
534 -(((
535 535  **LT22222-L**: This mode the DI1 is used as a counting pin.
536 -)))
537 537  
538 -(((
539 539  The AVI1 is also used for counting. AVI1 is used to monitor the voltage. It will check the voltage **every 60s**, if voltage is higher or lower than VOLMAX mV, the AVI1 Counting increase 1, so AVI1 counting can be used to measure a machine working hour.
540 540  
541 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
542 -|Size(bytes)|4|4|1|1|1
543 -|Value|COUNT1|AVI1 Counting|DIDORO*|(((
544 -Reserve
477 +[[image:image-20220523181903-8.png]]
545 545  
546 -
547 -)))|MOD
548 -)))
549 549  
550 -
551 -
552 552  (((
553 553  (% style="color:#4f81bd" %)**DIDORO **(%%)is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
554 -
555 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
556 -|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0
557 -|RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1
558 558  )))
559 559  
484 +[[image:image-20220523181727-7.png]]
560 560  
561 561  * RO is for relay. ROx=1 : close,ROx=0 always open.
562 562  * FIRST: Indicate this is the first packet after join network.
... ... @@ -563,7 +563,7 @@
563 563  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
564 564  
565 565  (((
566 -(% style="color:red" %)**Note: DO3 is not valid for LT-22222-L.**
491 +(% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
567 567  )))
568 568  
569 569  (((
... ... @@ -575,17 +575,14 @@
575 575  (% class="box infomessage" %)
576 576  (((
577 577  (((
578 -(((
579 579  **AT+MOD=4**
580 -)))
581 581  
582 -(((
583 583  **ATZ**
584 584  )))
585 585  )))
586 -)))
587 587  
588 588  
510 +
589 589  (((
590 590  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
591 591  )))
... ... @@ -606,34 +606,18 @@
606 606  )))
607 607  
608 608  
531 +
609 609  === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI ===
610 610  
611 611  
612 612  **LT22222-L**: This mode the DI1 is used as a counting pin.
613 613  
614 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
615 -|Size(bytes)|2|2|2|2|1|1|1
616 -|Value|(((
617 -AVI1
618 -voltage
619 -)))|(((
620 -AVI2
621 -voltage
622 -)))|(((
623 -ACI1
624 -Current
625 -)))|COUNT1|DIDORO*|(((
626 -Reserve
627 -)))|MOD
537 +[[image:image-20220523182334-9.png]]
628 628  
629 629  (((
630 630  
631 631  
632 632  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
633 -
634 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
635 -|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0
636 -|RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1
637 637  )))
638 638  
639 639  * RO is for relay. ROx=1 : close,ROx=0 always open.
... ... @@ -643,7 +643,7 @@
643 643  )))
644 644  
645 645  (((
646 -(% style="color:red" %)**Note: DO3 is not valid for LT-22222-L.**
552 +(% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
647 647  )))
648 648  
649 649  (((
... ... @@ -655,15 +655,11 @@
655 655  (% class="box infomessage" %)
656 656  (((
657 657  (((
658 -(((
659 659  **AT+MOD=5**
660 -)))
661 661  
662 -(((
663 663  **ATZ**
664 664  )))
665 665  )))
666 -)))
667 667  
668 668  (((
669 669  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
... ... @@ -670,6 +670,7 @@
670 670  )))
671 671  
672 672  
575 +
673 673  === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) ===
674 674  
675 675  
... ... @@ -692,7 +692,6 @@
692 692  
693 693  Format: AT+AVLIM=<AV1_LIMIT_LOW>,< AV1_LIMIT_HIGH>,<AV2_LIMIT_LOW>,< AV2_LIMIT_HIGH>
694 694  
695 -
696 696  **Example:**
697 697  
698 698  AT+AVLIM=3000,6000,0,2000   (If AVI1 voltage lower than 3v or higher than 6v. or AV2 voltage is higher than 2v, LT will trigger Uplink)
... ... @@ -705,7 +705,6 @@
705 705  
706 706  Format: AT+ACLIM=<AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH>
707 707  
708 -
709 709  **Example:**
710 710  
711 711  AT+ACLIM=10000,15000,0,0   (If ACI1 voltage lower than 10mA or higher than 15mA, trigger an uplink)
... ... @@ -758,52 +758,12 @@
758 758  
759 759  MOD6 Payload : total 11 bytes payload
760 760  
761 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
762 -|Size(bytes)|1|1|1|6|1|1
763 -|Value|(((
764 -TRI_A
765 -FLAG
766 -)))|(((
767 -TRI_A
768 -Status
769 -)))|(((
770 -TRI_DI
771 -FLAG+STA
772 -)))|Reserve|Enable/Disable MOD6|(((
773 -MOD
774 -(6)
775 -)))
662 +[[image:image-20220524085923-1.png]]
776 776  
777 777  
778 778  (% style="color:#4f81bd" %)**TRI FLAG1**(%%) is a combination to show if trigger is set for this part. Totally 1byte as below
779 779  
780 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
781 -|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0
782 -|(((
783 -AV1_
784 -LOW
785 -)))|(((
786 -AV1_
787 -HIGH
788 -)))|(((
789 -AV2_
790 -LOW
791 -)))|(((
792 -AV2_
793 -HIGH
794 -)))|(((
795 -AC1_
796 -LOW
797 -)))|(((
798 -AC1_
799 -HIGH
800 -)))|(((
801 -AC2_
802 -LOW
803 -)))|(((
804 -AC2_
805 -HIGH
806 -)))
667 +[[image:image-20220524090106-2.png]]
807 807  
808 808  * Each bits shows if the corresponding trigger has been configured.
809 809  
... ... @@ -812,37 +812,8 @@
812 812  10100000: Means the system has configure to use the trigger: AC1_LOW and AV2_LOW
813 813  
814 814  
815 -
816 816  (% style="color:#4f81bd" %)**TRI Status1**(%%) is a combination to show which condition is trigger. Totally 1byte as below
817 817  
818 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
819 -|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0
820 -|(((
821 -AV1_
822 -LOW
823 -)))|(((
824 -AV1_
825 -HIGH
826 -)))|(((
827 -AV2_
828 -LOW
829 -)))|(((
830 -AV2_
831 -HIGH
832 -)))|(((
833 -AC1_
834 -LOW
835 -)))|(((
836 -AC1_
837 -HIGH
838 -)))|(((
839 -AC2_
840 -LOW
841 -)))|(((
842 -AC2_
843 -HIGH
844 -)))
845 -
846 846  [[image:image-20220524090249-3.png]]
847 847  
848 848  * Each bits shows which status has been trigger on this uplink.
... ... @@ -854,11 +854,8 @@
854 854  
855 855  (% style="color:#4f81bd" %)**TRI_DI FLAG+STA **(%%)is a combination to show which condition is trigger. Totally 1byte as below
856 856  
857 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
858 -|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0
859 -|N/A|N/A|N/A|N/A|DI2_STATUS|DI2_FLAG|DI1_STATUS|DI1_FLAG
689 +[[image:image-20220524090456-4.png]]
860 860  
861 -
862 862  * Each bits shows which status has been trigger on this uplink.
863 863  
864 864  **Example:**
... ... @@ -877,50 +877,46 @@
877 877  When device got this command, it will send the MOD6 payload.
878 878  
879 879  
709 +
880 880  === 3.3.7 Payload Decoder ===
881 881  
882 882  (((
883 883  
884 884  
885 -**Decoder for TTN/loraserver/ChirpStack**:  [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]
715 +**Decoder for TTN/loraserver/ChirpStack**: [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/Payload_decoder/>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/Payload_decoder/]]
716 +
717 +
886 886  )))
887 887  
888 888  
889 889  == 3.4 ​Configure LT via AT or Downlink ==
890 890  
891 -
892 -(((
893 893  User can configure LT I/O Controller via AT Commands or LoRaWAN Downlink Commands
894 -)))
895 895  
896 896  (((
897 -(((
898 898  There are two kinds of Commands:
899 899  )))
900 -)))
901 901  
902 -* (% style="color:blue" %)**Common Commands**(%%): They should be available for each sensor, such as: change uplink interval, reset device. For firmware v1.5.4, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
729 +* (% style="color:#4f81bd" %)**Common Commands**(%%): They should be available for each sensor, such as: change uplink interval, reset device. For firmware v1.5.4, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
903 903  
904 -* (% style="color:blue" %)**Sensor Related Commands**(%%): These commands are special designed for LT-22222-L.  User can see these commands below:
731 +* (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for LT-22222-L.  User can see these commands below:
905 905  
906 906  === 3.4.1 Common Commands ===
907 907  
908 -
909 -(((
910 910  They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.5.4, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]
911 -)))
912 912  
913 913  
738 +
914 914  === 3.4.2 Sensor related commands ===
915 915  
741 +
916 916  ==== 3.4.2.1 Set Transmit Interval ====
917 917  
918 -
919 919  Set device uplink interval.
920 920  
921 921  * (% style="color:#037691" %)**AT Command:**
922 922  
923 -(% style="color:blue" %)**AT+TDC=N **
748 +**AT+TDC=N **
924 924  
925 925  
926 926  **Example: **AT+TDC=30000. Means set interval to 30 seconds
... ... @@ -928,18 +928,18 @@
928 928  
929 929  * (% style="color:#037691" %)**Downlink Payload (prefix 0x01):**
930 930  
931 -(% style="color:blue" %)**0x01 aa bb cc  **(%%)** ~/~/ Same as AT+TDC=0x(aa bb cc)**
756 +**0x01 aa bb cc     ~/~/ Same as AT+TDC=0x(aa bb cc)**
932 932  
933 933  
934 934  
760 +
935 935  ==== 3.4.2.2 Set Work Mode (AT+MOD) ====
936 936  
937 -
938 938  Set work mode.
939 939  
940 940  * (% style="color:#037691" %)**AT Command:**
941 941  
942 -(% style="color:blue" %)**AT+MOD=N  **
767 +**AT+MOD=N  **
943 943  
944 944  
945 945  **Example**: AT+MOD=2. Set work mode to Double DI counting mode
... ... @@ -947,13 +947,13 @@
947 947  
948 948  * (% style="color:#037691" %)**Downlink Payload (prefix 0x0A):**
949 949  
950 -(% style="color:blue" %)**0x0A aa  **(%%)** ** ~/~/ Same as AT+MOD=aa
775 +**0x0A aa    ** ~/~/ Same as AT+MOD=aa
951 951  
952 952  
953 953  
779 +
954 954  ==== 3.4.2.3 Poll an uplink ====
955 955  
956 -
957 957  * (% style="color:#037691" %)**AT Command:**
958 958  
959 959  There is no AT Command to poll uplink
... ... @@ -961,36 +961,35 @@
961 961  
962 962  * (% style="color:#037691" %)**Downlink Payload (prefix 0x08):**
963 963  
964 -(% style="color:blue" %)**0x08 FF  **(%%)** **~/~/ Poll an uplink
789 +**0x08 FF     **~/~/ Poll an uplink
965 965  
966 -
967 967  **Example**: 0x08FF, ask device to send an Uplink
968 968  
969 969  
970 970  
795 +
971 971  ==== 3.4.2.4 Enable Trigger Mode ====
972 972  
973 -
974 974  Use of trigger mode, please check [[ADDMOD6>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
975 975  
976 976  * (% style="color:#037691" %)**AT Command:**
977 977  
978 -(% style="color:blue" %)**AT+ADDMOD6=1 or 0**
802 +**AT+ADDMOD6=1 or 0**
979 979  
980 -(% style="color:red" %)**1:** (%%)Enable Trigger Mode
804 +1: Enable Trigger Mode
981 981  
982 -(% style="color:red" %)**0: **(%%)Disable Trigger Mode
806 +0: Disable Trigger Mode
983 983  
984 984  
985 985  * (% style="color:#037691" %)**Downlink Payload (prefix 0x0A 06):**
986 986  
987 -(% style="color:blue" %)**0x0A 06 aa    **(%%) ~/~/ Same as AT+ADDMOD6=aa
811 +**0x0A 06 aa    ** ~/~/ Same as AT+ADDMOD6=aa
988 988  
989 989  
990 990  
815 +
991 991  ==== 3.4.2.5 Poll trigger settings ====
992 992  
993 -
994 994  Poll trigger settings,
995 995  
996 996  * (% style="color:#037691" %)**AT Command:**
... ... @@ -1000,18 +1000,18 @@
1000 1000  
1001 1001  * (% style="color:#037691" %)**Downlink Payload (prefix 0x AB 06):**
1002 1002  
1003 -(% style="color:blue" %)**0xAB 06  ** (%%) ~/~/ Poll trigger settings, device will uplink trigger settings once receive this command
827 +**0xAB 06         **~/~/ Poll trigger settings, device will uplink trigger settings once receive this command
1004 1004  
1005 1005  
1006 1006  
831 +
1007 1007  ==== 3.4.2.6 Enable / Disable DI1/DI2/DI3 as trigger ====
1008 1008  
1009 -
1010 1010  Enable Disable DI1/DI2/DI2 as trigger,
1011 1011  
1012 1012  * (% style="color:#037691" %)**AT Command:**
1013 1013  
1014 -(% style="color:blue" %)**Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >**
838 +**Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >**
1015 1015  
1016 1016  
1017 1017  **Example:**
... ... @@ -1020,22 +1020,22 @@
1020 1020  
1021 1021  * (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 02):**
1022 1022  
1023 -(% style="color:blue" %)**0xAA 02 aa bb   ** (%%) ~/~/ Same as AT+DTRI=aa,bb
847 +**0xAA 02 aa bb        **~/~/ Same as AT+DTRI=aa,bb
1024 1024  
1025 1025  
1026 1026  
851 +
1027 1027  ==== 3.4.2.7 Trigger1 – Set DI1 or DI3 as trigger ====
1028 1028  
1029 -
1030 1030  Set DI1 or DI3(for LT-33222-L) trigger.
1031 1031  
1032 1032  * (% style="color:#037691" %)**AT Command:**
1033 1033  
1034 -(% style="color:blue" %)**AT+TRIG1=a,b**
858 +**AT+TRIG1=a,b**
1035 1035  
1036 -(% style="color:red" %)**a :** (%%)Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
860 +a : Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
1037 1037  
1038 -(% style="color:red" %)**b :** (%%)delay timing.
862 +b : delay timing.
1039 1039  
1040 1040  
1041 1041  **Example:**
... ... @@ -1044,25 +1044,22 @@
1044 1044  
1045 1045  
1046 1046  * (% style="color:#037691" %)**Downlink Payload (prefix 0x09 01 ):**
871 +* **0x09 01 aa bb cc    ** ~/~/ same as AT+TRIG1=aa,0x(bb cc)
1047 1047  
1048 -(% style="color:blue" %)**0x09 01 aa bb cc    ** (%%) ~/~/ same as AT+TRIG1=aa,0x(bb cc)
1049 -
1050 -
1051 -
1052 1052  ==== 3.4.2.8 Trigger2 – Set DI2 as trigger ====
1053 1053  
1054 -
1055 1055  Set DI2 trigger.
1056 1056  
1057 1057  * (% style="color:#037691" %)**AT Command:**
1058 1058  
1059 -(% style="color:blue" %)**AT+TRIG2=a,b**
879 +**AT+TRIG2=a,b**
1060 1060  
1061 -(% style="color:red" %)**a :** (%%)Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
1062 1062  
1063 -(% style="color:red" %)**b :** (%%)delay timing.
882 +a : Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
1064 1064  
884 +b : delay timing.
1065 1065  
886 +
1066 1066  **Example:**
1067 1067  
1068 1068  AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms )
... ... @@ -1070,67 +1070,67 @@
1070 1070  
1071 1071  * (% style="color:#037691" %)**Downlink Payload (prefix 0x09 02 ):**
1072 1072  
1073 -(% style="color:blue" %)**0x09 02 aa bb cc   ** (%%)~/~/ same as AT+TRIG2=aa,0x(bb cc)
894 +**0x09 02 aa bb cc           **~/~/ same as AT+TRIG1=aa,0x(bb cc)
1074 1074  
1075 1075  
1076 1076  
898 +
1077 1077  ==== 3.4.2.9 Trigger – Set AC (current) as trigger ====
1078 1078  
1079 -
1080 1080  Set current trigger , base on AC port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1081 1081  
1082 1082  * (% style="color:#037691" %)**AT Command**
1083 1083  
1084 -(% style="color:blue" %)**AT+ACLIM**
905 +**AT+ACLIM**
1085 1085  
1086 1086  
1087 1087  * (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 01 )**
1088 1088  
1089 -(% style="color:blue" %)**0x AA 01 aa bb cc dd ee ff gg hh        ** (%%) ~/~/ same as AT+ACLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
910 +**0x AA 01 aa bb cc dd ee ff gg hh        ** ~/~/ same as AT+ACLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1090 1090  
1091 1091  
1092 1092  
914 +
1093 1093  ==== 3.4.2.10 Trigger – Set AV (voltage) as trigger ====
1094 1094  
1095 -
1096 1096  Set current trigger , base on AV port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1097 1097  
1098 1098  * (% style="color:#037691" %)**AT Command**
1099 1099  
1100 -(% style="color:blue" %)**AT+AVLIM    **(%%)** See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
921 +**AT+AVLIM  See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
1101 1101  
1102 1102  
1103 1103  * (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 00 )**
1104 1104  
1105 -(% style="color:blue" %)**0x AA 00 aa bb cc dd ee ff gg hh    ** (%%) ~/~/ same as AT+AVLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
926 +**0x AA 00 aa bb cc dd ee ff gg hh    ** ~/~/ same as AT+AVLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1106 1106  
1107 1107  
1108 1108  
930 +
1109 1109  ==== 3.4.2.11 Trigger – Set minimum interval ====
1110 1110  
1111 -
1112 1112  Set AV and AC trigger minimum interval, system won't response to the second trigger within this set time after the first trigger.
1113 1113  
1114 1114  * (% style="color:#037691" %)**AT Command**
1115 1115  
1116 -(% style="color:blue" %)**AT+ATDC=5        ** (%%)Device won't response the second trigger within 5 minute after the first trigger.
937 +**AT+ATDC=5        ** Device won't response the second trigger within 5 minute after the first trigger.
1117 1117  
1118 1118  
1119 1119  * (% style="color:#037691" %)**Downlink Payload (prefix 0xAC )**
1120 1120  
1121 -(% style="color:blue" %)**0x AC aa bb   **(%%) ~/~/ same as AT+ATDC=0x(aa bb)   . Unit (min)
942 +**0x AC aa bb   ** ~/~/ same as AT+ATDC=0x(aa bb)   . Unit (min)
1122 1122  
1123 1123  (((
1124 1124  
1125 1125  
1126 -(% style="color:red" %)**Note: ATDC setting must be more than 5min**
947 +(% style="color:red" %)Note: ATDC setting must be more than 5min
1127 1127  )))
1128 1128  
1129 1129  
1130 1130  
952 +
1131 1131  ==== 3.4.2.12 DO ~-~- Control Digital Output DO1/DO2/DO3 ====
1132 1132  
1133 -
1134 1134  * (% style="color:#037691" %)**AT Command**
1135 1135  
1136 1136  There is no AT Command to control Digital Output
... ... @@ -1137,7 +1137,7 @@
1137 1137  
1138 1138  
1139 1139  * (% style="color:#037691" %)**Downlink Payload (prefix 0x02)**
1140 -* (% style="color:blue" %)**0x02 aa bb cc     ** (%%)~/~/ Set DO1/DO2/DO3 output
961 +* **0x02 aa bb cc     **~/~/ Set DO1/DO2/DO3 output
1141 1141  
1142 1142  (((
1143 1143  If payload = 0x02010001, while there is load between V+ and DOx, it means set DO1 to low, DO2 to high and DO3 to low.
... ... @@ -1150,18 +1150,18 @@
1150 1150  [[image:image-20220524092754-5.png]]
1151 1151  
1152 1152  (((
1153 -(% style="color:red" %)**Note: For LT-22222-L, there is no DO3, the last byte can use any value.**
974 +(% style="color:red" %)Note: For LT-22222-L, there is no DO3, the last byte can use any value.
1154 1154  )))
1155 1155  
1156 1156  (((
1157 -(% style="color:red" %)**Device will upload a packet if downlink code executes successfully.**
978 +(% style="color:red" %)Device will upload a packet if downlink code executes successfully.
1158 1158  )))
1159 1159  
1160 1160  
1161 1161  
983 +
1162 1162  ==== 3.4.2.13 DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ====
1163 1163  
1164 -
1165 1165  * (% style="color:#037691" %)**AT Command**
1166 1166  
1167 1167  There is no AT Command to control Digital Output
... ... @@ -1169,7 +1169,7 @@
1169 1169  
1170 1170  * (% style="color:#037691" %)**Downlink Payload (prefix 0xA9)**
1171 1171  
1172 -(% style="color:blue" %)**0xA9 aa bb cc     **(%%) ~/~/ Set DO1/DO2/DO3 output with time control
993 +**0xA9 aa bb cc     **~/~/ Set DO1/DO2/DO3 output with time control
1173 1173  
1174 1174  
1175 1175  This is to control the digital output time of DO pin. Include four bytes:
... ... @@ -1198,21 +1198,13 @@
1198 1198  [[image:image-20220524093351-8.png]]
1199 1199  
1200 1200  
1201 -(% style="color:#4f81bd" %)**Sixth and Seventh and Eighth and Ninth Byte**:
1022 +(% style="color:#4f81bd" %)**Sixth and Seventh Byte**:
1202 1202  
1203 1203   Latching time. Unit: ms
1204 1204  
1026 +Device will upload a packet if downlink code executes successfully.
1205 1205  
1206 -(% style="color:red" %)**Note: **
1207 1207  
1208 - Since Firmware v1.6.0, the latch time support 4 bytes and 2 bytes
1209 -
1210 - Before Firmwre v1.6.0 the latch time only suport 2 bytes.
1211 -
1212 -
1213 -(% style="color:red" %)**Device will upload a packet if downlink code executes successfully.**
1214 -
1215 -
1216 1216  **Example payload:**
1217 1217  
1218 1218  **~1. A9 01 01 01 01 07 D0**
... ... @@ -1233,8 +1233,8 @@
1233 1233  
1234 1234  
1235 1235  
1236 -==== 3.4.2. 14 Relay ~-~- Control Relay Output RO1/RO2 ====
1237 1237  
1050 +==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
1238 1238  
1239 1239  * (% style="color:#037691" %)**AT Command:**
1240 1240  
... ... @@ -1243,7 +1243,7 @@
1243 1243  
1244 1244  * (% style="color:#037691" %)**Downlink Payload (prefix 0x03):**
1245 1245  
1246 -(% style="color:blue" %)**0x03 aa bb     ** (%%)~/~/ Set RO1/RO2 output
1059 +**0x03 aa bb     **~/~/ Set RO1/RO2 output
1247 1247  
1248 1248  
1249 1249  (((
... ... @@ -1255,16 +1255,16 @@
1255 1255  )))
1256 1256  
1257 1257  (((
1258 -[[image:image-20230426161322-1.png]]
1071 +[[image:image-20220524093724-9.png]]
1259 1259  )))
1260 1260  
1261 -(% style="color:red" %)**Device will upload a packet if downlink code executes successfully.**
1074 +Device will upload a packet if downlink code executes successfully.
1262 1262  
1263 1263  
1264 1264  
1078 +
1265 1265  ==== 3.4.2.15 Relay ~-~- Control Relay Output RO1/RO2 with time control ====
1266 1266  
1267 -
1268 1268  * (% style="color:#037691" %)**AT Command:**
1269 1269  
1270 1270  There is no AT Command to control Relay Output
... ... @@ -1272,7 +1272,7 @@
1272 1272  
1273 1273  * (% style="color:#037691" %)**Downlink Payload (prefix 0x05):**
1274 1274  
1275 -(% style="color:blue" %)**0x05 aa bb cc dd     ** (%%)~/~/ Set RO1/RO2 relay with time control
1088 +**0x05 aa bb cc dd     **~/~/ Set RO1/RO2 relay with time control
1276 1276  
1277 1277  
1278 1278  This is to control the relay output time of relay. Include four bytes:
... ... @@ -1288,25 +1288,17 @@
1288 1288  
1289 1289  (% style="color:#4f81bd" %)**Third Byte(bb)**(%%): Control Method and Ports status:
1290 1290  
1291 -[[image:image-20221008095908-1.png||height="364" width="564"]]
1104 +[[image:image-20220714135731-1.png||height="406" width="627"]]
1292 1292  
1293 1293  
1294 -(% style="color:#4f81bd" %)**Fourth/Fifth/Sixth/Seventh Bytes(cc)**(%%): Latching time. Unit: ms
1107 +(% style="color:#4f81bd" %)**Fourth/Fifth Bytes(cc)**(%%): Latching time. Unit: ms
1295 1295  
1109 +Device will upload a packet if downlink code executes successfully.
1296 1296  
1297 -(% style="color:red" %)**Note:**
1298 1298  
1299 - Since Firmware v1.6.0, the latch time support 4 bytes and 2 bytes
1300 -
1301 - Before Firmwre v1.6.0 the latch time only suport 2 bytes.
1302 -
1303 -
1304 -(% style="color:red" %)**Device will upload a packet if downlink code executes successfully.**
1305 -
1306 -
1307 1307  **Example payload:**
1308 1308  
1309 -**~1. 05 01 11 07 D0**
1114 +**~1. 05 01 11 07 D**
1310 1310  
1311 1311  Relay1 and Relay 2 will be set to NC , last 2 seconds, then change back to original state.
1312 1312  
... ... @@ -1324,180 +1324,82 @@
1324 1324  
1325 1325  
1326 1326  
1132 +
1327 1327  ==== 3.4.2.16 Counting ~-~- Voltage threshold counting ====
1328 1328  
1329 -
1330 1330  When voltage exceed the threshold, count. Feature see [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1331 1331  
1332 1332  * (% style="color:#037691" %)**AT Command:**
1333 1333  
1334 -(% style="color:blue" %)**AT+VOLMAX   ** (%%)~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1139 +**AT+VOLMAX   ** ~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1335 1335  
1336 1336  
1337 1337  * (% style="color:#037691" %)**Downlink Payload (prefix 0xA5):**
1338 1338  
1339 -(% style="color:blue" %)**0xA5 aa bb cc   ** (%%)~/~/ Same as AT+VOLMAX=(aa bb),cc
1144 +**0xA5 aa bb cc   **~/~/ Same as AT+VOLMAX=(aa bb),cc
1340 1340  
1341 1341  
1342 1342  
1148 +
1343 1343  ==== 3.4.2.17 Counting ~-~- Pre-configure the Count Number ====
1344 1344  
1345 -
1346 1346  * (% style="color:#037691" %)**AT Command:**
1347 1347  
1348 -(% style="color:blue" %)**AT+SETCNT=aa,(bb cc dd ee) **
1153 +**AT+SETCNT=aa,(bb cc dd ee) **
1349 1349  
1350 -(% style="color:red" %)**aa:**(%%) 1: Set count1; 2: Set count2; 3: Set AV1 count
1155 +aa: 1: Set count1,
1351 1351  
1352 -(% style="color:red" %)**bb cc dd ee: **(%%)number to be set
1157 +2: Set count2,
1353 1353  
1159 +3: Set AV1 count
1354 1354  
1161 +Bb cc dd ee: number to be set
1162 +
1163 +
1355 1355  * (% style="color:#037691" %)**Downlink Payload (prefix 0xA8):**
1356 1356  
1357 -(% style="color:blue" %)**0x A8 aa bb cc dd ee     ** (%%)~/~/ same as AT+SETCNT=aa,(bb cc dd ee)
1166 +**0x A8 aa bb cc dd ee     **~/~/ same as AT+SETCNT=aa,(bb cc dd ee)
1358 1358  
1359 1359  
1360 1360  
1170 +
1361 1361  ==== 3.4.2.18 Counting ~-~- Clear Counting ====
1362 1362  
1363 -
1364 1364  Clear counting for counting mode
1365 1365  
1366 1366  * (% style="color:#037691" %)**AT Command:**
1367 1367  
1368 -(% style="color:blue" %)**AT+CLRCOUNT **(%%) ~/~/ clear all counting
1177 +**AT+CLRCOUNT ** ~/~/ clear all counting
1369 1369  
1370 1370  
1371 1371  * (% style="color:#037691" %)**Downlink Payload (prefix 0xA6):**
1372 1372  
1373 -(% style="color:blue" %)**0x A6 01    ** (%%)~/~/ clear all counting
1182 +**0x A6 01    ** ~/~/ clear all counting
1374 1374  
1375 1375  
1376 1376  
1186 +
1377 1377  ==== 3.4.2.19 Counting ~-~- Change counting mode save time ====
1378 1378  
1379 -
1380 1380  * (% style="color:#037691" %)**AT Command:**
1381 1381  
1382 -(% style="color:blue" %)**AT+COUTIME=60  **(%%)~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30)
1191 +**AT+COUTIME=60  **~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30)
1383 1383  
1384 1384  
1385 1385  * (% style="color:#037691" %)**Downlink Payload (prefix 0xA7):**
1386 1386  
1387 -(% style="color:blue" %)**0x A7 aa bb cc     ** (%%)~/~/ same as AT+COUTIME =aa bb cc,
1196 +**0x A7 aa bb cc     **~/~/ same as AT+COUTIME =aa bb cc,
1388 1388  
1389 1389  (((
1390 1390  range: aa bb cc:0 to 16777215,  (unit:second)
1391 -)))
1392 1392  
1393 -
1394 -
1395 -==== 3.4.2.20 Reset save RO DO state ====
1396 -
1397 -
1398 -* (% style="color:#037691" %)**AT Command:**
1399 -
1400 -(% style="color:blue" %)**AT+RODORESET=1    **(%%)~/~/ RODO will close when the device joining the network. (default)
1401 -
1402 -(% style="color:blue" %)**AT+RODORESET=0    **(%%)~/~/ After the device is reset, the previously saved RODO state (only MOD2 to MOD5) is read, and its state is not changed when it is reconnected to the network.
1403 -
1404 -
1405 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xAD):**
1406 -
1407 -(% style="color:blue" %)**0x AD aa      ** (%%)~/~/ same as AT+RODORET =aa
1408 -
1409 -
1410 -
1411 -==== 3.4.2.21 Encrypted payload ====
1412 -
1413 -
1414 -* (% style="color:#037691" %)**AT Command:**
1415 -
1416 -(% style="color:blue" %)**AT+DECRYPT=1  ** (%%)~/~/ The payload is uploaded without encryption
1417 -
1418 -(% style="color:blue" %)**AT+DECRYPT=0    **(%%)~/~/  Encrypt when uploading payload (default)
1419 -
1420 -
1421 -
1422 -==== 3.4.2.22 Get sensor value ====
1423 -
1424 -
1425 -* (% style="color:#037691" %)**AT Command:**
1426 -
1427 -(% style="color:blue" %)**AT+GETSENSORVALUE=0    **(%%)~/~/ The serial port gets the reading of the current sensor
1428 -
1429 -(% style="color:blue" %)**AT+GETSENSORVALUE=1    **(%%)~/~/ The serial port gets the current sensor reading and uploads it.
1430 -
1431 -
1432 -
1433 -==== 3.4.2.23 Resets the downlink packet count ====
1434 -
1435 -
1436 -* (% style="color:#037691" %)**AT Command:**
1437 -
1438 -(% style="color:blue" %)**AT+DISFCNTCHECK=0   **(%%)~/~/ When the downlink packet count sent by the server is less than the node downlink packet count or exceeds 16384, the node will no longer receive downlink packets (default)
1439 -
1440 -(% style="color:blue" %)**AT+DISFCNTCHECK=1   **(%%)~/~/ When the downlink packet count sent by the server is less than the node downlink packet count or exceeds 16384, the node resets the downlink packet count and keeps it consistent with the server downlink packet count.
1441 -
1442 -
1443 -
1444 -==== 3.4.2.24 When the limit bytes are exceeded, upload in batches ====
1445 -
1446 -
1447 -* (% style="color:#037691" %)**AT Command:**
1448 -
1449 -(% style="color:blue" %)**AT+DISMACANS=0**   (%%) ~/~/ When the MACANS of the reply server plus the payload exceeds the maximum number of bytes of 11 bytes (DR0 of US915, DR2 of AS923, DR2 of AU195), the node will send a packet with a payload of 00 and a port of 4. (default)
1450 -
1451 -(% style="color:blue" %)**AT+DISMACANS=1**  (%%) ~/~/ When the MACANS of the reply server plus the payload exceeds the maximum number of bytes of the DR, the node will ignore the MACANS and not reply, and only upload the payload part.
1452 -
1453 -
1454 -* (% style="color:#037691" %)**Downlink Payload **(%%)**:**
1455 -
1456 -(% style="color:blue" %)**0x21 00 01 ** (%%) ~/~/ Set  the DISMACANS=1
1457 -
1458 -
1459 -
1460 -==== 3.4.2.25 Copy downlink to uplink ====
1461 -
1462 -
1463 -* (% style="color:#037691" %)**AT Command**(%%)**:**
1464 -
1465 -(% style="color:blue" %)**AT+RPL=5**   (%%) ~/~/ After receiving the package from the server, it will immediately upload the content of the package to the server, the port number is 100.
1466 -
1467 -Example:**aa xx xx xx xx**         ~/~/ aa indicates whether the configuration has changed, 00 is yes, 01 is no; xx xx xx xx are the bytes sent.
1468 -
1469 -
1470 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173747-6.png?width=1124&height=165&rev=1.1||alt="image-20220823173747-6.png"]]
1471 -
1472 -For example, sending 11 22 33 44 55 66 77 will return invalid configuration 00 11 22 33 44 55 66 77.
1473 -
1474 -
1475 -
1476 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173833-7.png?width=1124&height=149&rev=1.1||alt="image-20220823173833-7.png"]]
1477 -
1478 -For example, if 01 00 02 58 is issued, a valid configuration of 01 01 00 02 58 will be returned.
1479 -
1480 -
1481 -
1482 -==== 3.4.2.26 Query version number and frequency band 、TDC ====
1483 -
1484 -
1485 -* (((
1486 -(% style="color:#037691" %)**Downlink Payload**(%%)**:**
1487 -
1488 -(% style="color:blue" %)**26 01  ** (%%) ~/~/  Downlink 26 01 can query device upload frequency, frequency band, software version number, TDC time.
1489 -
1490 1490  
1491 1491  )))
1492 1492  
1493 -**Example:**
1494 1494  
1495 -[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173929-8.png?width=1205&height=76&rev=1.1||alt="image-20220823173929-8.png"]]
1496 1496  
1497 -
1498 1498  == 3.5 Integrate with Mydevice ==
1499 1499  
1500 -
1501 1501  Mydevices provides a human friendly interface to show the sensor data, once we have data in TTN, we can use Mydevices to connect to TTN and see the data in Mydevices. Below are the steps:
1502 1502  
1503 1503  (((
... ... @@ -1506,8 +1506,6 @@
1506 1506  
1507 1507  (((
1508 1508  (% style="color:blue" %)**Step 2**(%%): To configure the Application to forward data to Mydevices you will need to add integration. To add the Mydevices integration, perform the following steps:
1509 -
1510 -
1511 1511  )))
1512 1512  
1513 1513  [[image:image-20220719105525-1.png||height="377" width="677"]]
... ... @@ -1544,19 +1544,19 @@
1544 1544  [[image:image-20220524094909-5.png||height="341" width="734"]]
1545 1545  
1546 1546  
1252 +
1547 1547  == 3.6 Interface Detail ==
1548 1548  
1549 1549  === 3.6.1 Digital Input Port: DI1/DI2 /DI3 ( For LT-33222-L, low active ) ===
1550 1550  
1551 -
1552 1552  Support NPN Type sensor
1553 1553  
1554 1554  [[image:1653356991268-289.png]]
1555 1555  
1556 1556  
1262 +
1557 1557  === 3.6.2 Digital Input Port: DI1/DI2 ( For LT-22222-L) ===
1558 1558  
1559 -
1560 1560  (((
1561 1561  The DI port of LT-22222-L can support NPN or PNP output sensor.
1562 1562  )))
... ... @@ -1563,9 +1563,7 @@
1563 1563  
1564 1564  (((
1565 1565  (((
1566 -Internal circuit as below, the NEC2501 is a photocoupler, the Active current (from NEC2501 pin 1 to pin 2 is 1ma and the max current is 50mA. When there is active current pass NEC2501 pin1 to pin2. The DI will be active high.
1567 -
1568 -
1271 +Internal circuit as below, the NEC2501 is a photocoupler, the Active current (from NEC2501 pin 1 to pin 2 is 1ma and the max current is 50mA. When there is active current pass NEC2501 pin1 to pin2. The DI will be active high
1569 1569  )))
1570 1570  )))
1571 1571  
... ... @@ -1590,10 +1590,10 @@
1590 1590  )))
1591 1591  
1592 1592  * (((
1593 -Connect sensor's output to DI1-
1296 +Connect sensors output to DI1-
1594 1594  )))
1595 1595  * (((
1596 -Connect sensor's VCC to DI1+.
1299 +Connect sensors VCC to DI1+.
1597 1597  )))
1598 1598  
1599 1599  (((
... ... @@ -1601,11 +1601,11 @@
1601 1601  )))
1602 1602  
1603 1603  (((
1604 -[[image:1653968155772-850.png||height="23" width="19"]]**= DI1**+** / 1K.**
1307 +[[image:1653968155772-850.png||height="23" width="19"]]**= DI1+ / 1K.**
1605 1605  )))
1606 1606  
1607 1607  (((
1608 -If** DI1+ **= **12v**, the [[image:1653968155772-850.png||height="23" width="19"]]= 12mA , So the LT-22222-L will be able to detect this active signal.
1311 +If DI1+ = 12v, the [[image:1653968155772-850.png||height="23" width="19"]]= 12mA , So the LT-22222-L will be able to detect this active signal.
1609 1609  )))
1610 1610  
1611 1611  (((
... ... @@ -1621,10 +1621,10 @@
1621 1621  )))
1622 1622  
1623 1623  * (((
1624 -Connect sensor's output to DI1+
1327 +Connect sensors output to DI1+
1625 1625  )))
1626 1626  * (((
1627 -Connect sensor's GND DI1-.
1330 +Connect sensors GND DI1-.
1628 1628  )))
1629 1629  
1630 1630  (((
... ... @@ -1652,10 +1652,10 @@
1652 1652  )))
1653 1653  
1654 1654  * (((
1655 -Connect sensor's output to DI1+ with a serial 50K resistor
1358 +Connect sensors output to DI1+ with a serial 50K resistor
1656 1656  )))
1657 1657  * (((
1658 -Connect sensor's GND DI1-.
1361 +Connect sensors GND DI1-.
1659 1659  )))
1660 1660  
1661 1661  (((
... ... @@ -1671,19 +1671,17 @@
1671 1671  )))
1672 1672  
1673 1673  
1377 +
1674 1674  === 3.6.3 Digital Output Port: DO1/DO2 /DO3 ===
1675 1675  
1380 +NPN output: GND or Float. Max voltage can apply to output pin is 36v.
1676 1676  
1677 -(% style="color:blue" %)**NPN output**(%%): GND or Float. Max voltage can apply to output pin is 36v.
1678 -
1679 -(% style="color:red" %)**Note: DO pins go to float when device is power off.**
1680 -
1681 1681  [[image:1653357531600-905.png]]
1682 1682  
1683 1683  
1385 +
1684 1684  === 3.6.4 Analog Input Interface ===
1685 1685  
1686 -
1687 1687  The analog input interface is as below. The LT will measure the IN2 voltage so to calculate the current pass the Load. The formula is:
1688 1688  
1689 1689  
... ... @@ -1696,13 +1696,13 @@
1696 1696  We take the wind speed sensor as an example for reference only.
1697 1697  
1698 1698  
1699 -(% style="color:blue" %)**Specifications of the wind speed sensor:**
1400 +**Specifications of the wind speed sensor:**
1700 1700  
1701 -(% style="color:red" %)**Red:  12~~24v**
1402 +Red:  12~~24v
1702 1702  
1703 -(% style="color:#ffc000" %)**Yellow:  4~~20mA**
1404 +Yellow:  4~~20mA
1704 1704  
1705 -**Black:  GND**
1406 +Black:  GND
1706 1706  
1707 1707  
1708 1708  **Connection diagram:**
... ... @@ -1712,40 +1712,31 @@
1712 1712  [[image:1653357648330-671.png||height="155" width="733"]]
1713 1713  
1714 1714  
1416 +
1715 1715  === 3.6.5 Relay Output ===
1716 1716  
1717 -
1718 1718  (((
1719 -The LT serial controller has two relay interfaces; each interface uses two pins of the screw terminal. User can connect other device's Power Line to in serial of RO1_1 and RO_2. Such as below:
1720 -
1721 -**Note**: RO pins go to Open(NO) when device is power off.
1420 +The LT serial controller has two relay interfaces; each interface uses two pins of the screw terminal. User can connect other device’s Power Line to in serial of RO1_1 and RO_2. Such as below:
1722 1722  )))
1723 1723  
1724 1724  [[image:image-20220524100215-9.png]]
1725 1725  
1726 -
1727 1727  [[image:image-20220524100215-10.png||height="382" width="723"]]
1728 1728  
1729 1729  
1428 +
1730 1730  == 3.7 LEDs Indicators ==
1731 1731  
1732 -
1733 1733  [[image:image-20220524100748-11.png]]
1734 1734  
1735 1735  
1434 +
1736 1736  = 4. Use AT Command =
1737 1737  
1738 1738  == 4.1 Access AT Command ==
1739 1739  
1740 -
1741 -(((
1742 1742  LT supports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to LT for using AT command, as below.
1743 -)))
1744 1744  
1745 -(((
1746 -
1747 -)))
1748 -
1749 1749  [[image:1653358238933-385.png]]
1750 1750  
1751 1751  
... ... @@ -1773,7 +1773,7 @@
1773 1773  )))
1774 1774  
1775 1775  (((
1776 -AT+<CMD>=?       :  Get the value
1468 +AT+<CMD>=?       : Get the value
1777 1777  )))
1778 1778  
1779 1779  (((
... ... @@ -1801,11 +1801,11 @@
1801 1801  )))
1802 1802  
1803 1803  (((
1804 -AT+APPSKEY:  Get or Set the Application Session Key
1496 +AT+APPSKEY: Get or Set the Application Session Key
1805 1805  )))
1806 1806  
1807 1807  (((
1808 -AT+APPEUI:  Get or Set the Application EUI
1500 +AT+APPEUI: Get or Set the Application EUI
1809 1809  )))
1810 1810  
1811 1811  (((
... ... @@ -1817,7 +1817,7 @@
1817 1817  )))
1818 1818  
1819 1819  (((
1820 -AT+DR:  Get or Set the Data Rate. (0-7 corresponding to DR_X)  
1512 +AT+DR: Get or Set the Data Rate. (0-7 corresponding to DR_X)  
1821 1821  )))
1822 1822  
1823 1823  (((
... ... @@ -1853,7 +1853,7 @@
1853 1853  )))
1854 1854  
1855 1855  (((
1856 -AT+NJM:  Get or Set the Network Join Mode. (0: ABP, 1: OTAA)
1548 +AT+NJM: Get or Set the Network Join Mode. (0: ABP, 1: OTAA)
1857 1857  )))
1858 1858  
1859 1859  (((
... ... @@ -1897,7 +1897,7 @@
1897 1897  )))
1898 1898  
1899 1899  (((
1900 -AT+VER:  Get current image version and Frequency Band
1592 +AT+VER: Get current image version and Frequency Band
1901 1901  )))
1902 1902  
1903 1903  (((
... ... @@ -1905,7 +1905,7 @@
1905 1905  )))
1906 1906  
1907 1907  (((
1908 -AT+CFS:  Get confirmation status of the last AT+SEND (0-1)
1600 +AT+CFS: Get confirmation status of the last AT+SEND (0-1)
1909 1909  )))
1910 1910  
1911 1911  (((
... ... @@ -1945,6 +1945,7 @@
1945 1945  )))
1946 1946  
1947 1947  
1640 +
1948 1948  == 4.2 Common AT Command Sequence ==
1949 1949  
1950 1950  === 4.2.1 Multi-channel ABP mode (Use with SX1301/LG308) ===
... ... @@ -1952,101 +1952,98 @@
1952 1952  (((
1953 1953  
1954 1954  
1955 -(((
1956 -(% style="color:blue" %)**If device has not joined network yet:**
1648 +**If device has not joined network yet:**
1957 1957  )))
1958 -)))
1959 1959  
1960 1960  (((
1961 -(% style="background-color:#dcdcdc" %)**123456**
1652 +(% style="background-color:#dcdcdc" %)123456
1962 1962  )))
1963 1963  
1964 1964  (((
1965 -(% style="background-color:#dcdcdc" %)**AT+FDR**
1656 +(% style="background-color:#dcdcdc" %)AT+FDR
1966 1966  )))
1967 1967  
1968 1968  (((
1969 -(% style="background-color:#dcdcdc" %)**123456**
1660 +(% style="background-color:#dcdcdc" %)123456
1970 1970  )))
1971 1971  
1972 1972  (((
1973 -(% style="background-color:#dcdcdc" %)**AT+NJM=0**
1664 +(% style="background-color:#dcdcdc" %)AT+NJM=0
1974 1974  )))
1975 1975  
1976 1976  (((
1977 -(% style="background-color:#dcdcdc" %)**ATZ**
1668 +(% style="background-color:#dcdcdc" %)ATZ
1978 1978  )))
1979 1979  
1980 1980  
1981 1981  (((
1982 -(% style="color:blue" %)**If device already joined network:**
1673 +**If device already joined network:**
1983 1983  )))
1984 1984  
1985 1985  (((
1986 -(% style="background-color:#dcdcdc" %)**AT+NJM=0**
1677 +(% style="background-color:#dcdcdc" %)AT+NJM=0
1987 1987  )))
1988 1988  
1989 1989  (((
1990 -(% style="background-color:#dcdcdc" %)**ATZ**
1681 +(% style="background-color:#dcdcdc" %)ATZ
1991 1991  )))
1992 1992  
1993 1993  
1685 +
1994 1994  === 4.2.2 Single-channel ABP mode (Use with LG01/LG02) ===
1995 1995  
1996 1996  (((
1997 1997  
1998 1998  
1999 -(((
2000 -(% style="background-color:#dcdcdc" %)**123456**(%%)  ~/~/ Enter Password to have AT access.
1691 +(% style="background-color:#dcdcdc" %)123456(%%)  Enter Password to have AT access.
2001 2001  )))
2002 -)))
2003 2003  
2004 2004  (((
2005 -(% style="background-color:#dcdcdc" %)** AT+FDR**(%%)  ~/~/ Reset Parameters to Factory Default, Keys Reserve
1695 +(% style="background-color:#dcdcdc" %) AT+FDR(%%)   Reset Parameters to Factory Default, Keys Reserve
2006 2006  )))
2007 2007  
2008 2008  (((
2009 -(% style="background-color:#dcdcdc" %)** 123456**(%%)  ~/~/ Enter Password to have AT access.
1699 +(% style="background-color:#dcdcdc" %) 123456(%%)  Enter Password to have AT access.
2010 2010  )))
2011 2011  
2012 2012  (((
2013 -(% style="background-color:#dcdcdc" %)** AT+CLASS=C**(%%)  ~/~/ Set to work in CLASS C
1703 +(% style="background-color:#dcdcdc" %) AT+CLASS=C(%%) Set to work in CLASS C
2014 2014  )))
2015 2015  
2016 2016  (((
2017 -(% style="background-color:#dcdcdc" %)** AT+NJM=0**(%%)  ~/~/ Set to ABP mode
1707 +(% style="background-color:#dcdcdc" %) AT+NJM=0(%%)  Set to ABP mode
2018 2018  )))
2019 2019  
2020 2020  (((
2021 -(% style="background-color:#dcdcdc" %) **AT+ADR=0**(%%)  ~/~/ Set the Adaptive Data Rate Off
1711 +(% style="background-color:#dcdcdc" %) AT+ADR=0(%%)  Set the Adaptive Data Rate Off
2022 2022  )))
2023 2023  
2024 2024  (((
2025 -(% style="background-color:#dcdcdc" %)** AT+DR=5**(%%)  ~/~/ Set Data Rate
1715 +(% style="background-color:#dcdcdc" %) AT+DR=5(%%)  Set Data Rate
2026 2026  )))
2027 2027  
2028 2028  (((
2029 -(% style="background-color:#dcdcdc" %)** AT+TDC=60000**(%%)  ~/~/ Set transmit interval to 60 seconds
1719 +(% style="background-color:#dcdcdc" %) AT+TDC=60000(%%)  Set transmit interval to 60 seconds
2030 2030  )))
2031 2031  
2032 2032  (((
2033 -(% style="background-color:#dcdcdc" %)** AT+CHS=868400000**(%%)  ~/~/ Set transmit frequency to 868.4Mhz
1723 +(% style="background-color:#dcdcdc" %) AT+CHS=868400000(%%)  Set transmit frequency to 868.4Mhz
2034 2034  )))
2035 2035  
2036 2036  (((
2037 -(% style="background-color:#dcdcdc" %)** AT+RX2FQ=868400000**(%%)  ~/~/ Set RX2Frequency to 868.4Mhz (according to the result from server)
1727 +(% style="background-color:#dcdcdc" %) AT+RX2FQ=868400000(%%)  Set RX2Frequency to 868.4Mhz (according to the result from server)
2038 2038  )))
2039 2039  
2040 2040  (((
2041 -(% style="background-color:#dcdcdc" %)** AT+RX2DR=5**(%%)** ** ~/~/ Set RX2DR to match the downlink DR from server. see below
1731 +(% style="background-color:#dcdcdc" %) AT+RX2DR=5(%%)  Set RX2DR to match the downlink DR from server. see below
2042 2042  )))
2043 2043  
2044 2044  (((
2045 -(% style="background-color:#dcdcdc" %)** AT+DADDR=26 01 1A F1** (%%) ~/~/ Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal.
1735 +(% style="background-color:#dcdcdc" %) AT+DADDR=26 01 1A F1 (%%) Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal.
2046 2046  )))
2047 2047  
2048 2048  (((
2049 -(% style="background-color:#dcdcdc" %)** ATZ**         (%%) ~/~/ Reset MCU
1739 +(% style="background-color:#dcdcdc" %) ATZ         (%%) Reset MCU
2050 2050  
2051 2051  
2052 2052  )))
... ... @@ -2056,16 +2056,10 @@
2056 2056  )))
2057 2057  
2058 2058  (((
2059 -**~1. Make sure the device is set to ABP mode in the IoT Server.**
2060 -
2061 -**2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.**
2062 -
2063 -**3. Make sure SF / bandwidth setting in LG01/LG02 match the settings of AT+DR. refer [[this link>>url:http://www.dragino.com/downloads/index.php?
2064 -dir=LoRa_Gateway/&file=LoRaWAN%201.0.3%20Regional%20Parameters.xlsx]] to see what DR means.**
2065 -
2066 -**4. The command AT+RX2FQ and AT+RX2DR is to let downlink work. to set the correct parameters, user can check the actually downlink parameters to be used. As below. Which shows the RX2FQ should use 868400000 and RX2DR should be 5.**
2067 -
2068 -
1749 +(% style="color:red" %)1. Make sure the device is set to ABP mode in the IoT Server.
1750 +2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting.
1751 +3. Make sure SF / bandwidth setting in LG01/LG02 match the settings of AT+DR. refer [[this link>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/&file=LoRaWAN%201.0.3%20Regional%20Parameters.xlsx]] to see what DR means.
1752 +4. The command AT+RX2FQ and AT+RX2DR is to let downlink work. to set the correct parameters, user can check the actually downlink parameters to be used. As below. Which shows the RX2FQ should use 868400000 and RX2DR should be 5
2069 2069  )))
2070 2070  
2071 2071  (((
... ... @@ -2076,30 +2076,19 @@
2076 2076  
2077 2077  )))
2078 2078  
1763 +
2079 2079  === 4.2.3 Change to Class A ===
2080 2080  
1766 +If sensor JOINED
1767 +(% style="background-color:#dcdcdc" %)AT+CLASS=A
1768 +ATZ
2081 2081  
2082 -(((
2083 -(% style="color:blue" %)**If sensor JOINED:**
2084 2084  
2085 -(% style="background-color:#dcdcdc" %)**AT+CLASS=A
2086 -ATZ**
2087 -)))
1771 += 5. FAQ =
2088 2088  
1773 +== 5.1 How to upgrade the image? ==
2089 2089  
2090 -= 5. Case Study =
2091 2091  
2092 -== 5.1 Counting how many objects pass in Flow Line ==
2093 -
2094 -
2095 -Reference Link: [[How to set up to count objects pass in flow line>>How to set up to count objects pass in flow line]]?
2096 -
2097 -
2098 -= 6. FAQ =
2099 -
2100 -== 6.1 How to upgrade the image? ==
2101 -
2102 -
2103 2103  The LT LoRaWAN Controller is shipped with a 3.5mm cable, the cable is used to upload image to LT to:
2104 2104  
2105 2105  * Support new features
... ... @@ -2113,38 +2113,31 @@
2113 2113  
2114 2114  (((
2115 2115  (% style="color:blue" %)**Step1**(%%)**:** Download [[flash loader>>url:https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/flasher-stm32.html]].
2116 -(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:https://www.dropbox.com/sh/g99v0fxcltn9r1y/AADKXQ2v5ZT-S3sxdmbvE7UAa/LT-22222-L/image?dl=0&subfolder_nav_tracking=1]].
1789 +(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]].
2117 2117  (% style="color:blue" %)**Step3**(%%)**:** Open flashloader; choose the correct COM port to update.
2118 2118  
2119 2119  
2120 -(((
2121 2121  (% style="color:blue" %)**For LT-22222-L**(%%):
2122 2122  Hold down the PRO button and then momentarily press the RST reset button and the (% style="color:red" %)**DO1 led**(%%) will change from OFF to ON. When (% style="color:red" %)**DO1 LED**(%%) is on, it means the device is in download mode.
2123 2123  )))
2124 2124  
2125 -
2126 -)))
2127 -
2128 2128   [[image:image-20220524103407-12.png]]
2129 2129  
2130 -
2131 2131  [[image:image-20220524103429-13.png]]
2132 2132  
2133 -
2134 2134  [[image:image-20220524104033-15.png]]
2135 2135  
2136 2136  
2137 2137  (% style="color:red" %)**Notice**(%%): In case user has lost the program cable. User can hand made one from a 3.5mm cable. The pin mapping is:
2138 2138  
2139 -
2140 2140  [[image:1653360054704-518.png||height="186" width="745"]]
2141 2141  
2142 2142  
2143 2143  (((
2144 2144  (((
2145 -== 6.2 How to change the LoRa Frequency Bands/Region? ==
2146 -
2147 2147  
1812 +
1813 +== 5.2 How to change the LoRa Frequency Bands/Region? ==
2148 2148  )))
2149 2149  )))
2150 2150  
... ... @@ -2155,9 +2155,7 @@
2155 2155  (((
2156 2156  
2157 2157  
2158 -== 6.3 How to set up LT to work with Single Channel Gateway such as LG01/LG02? ==
2159 -
2160 -
1824 +== 5.3 How to set up LT to work with Single Channel Gateway such as LG01/LG02? ==
2161 2161  )))
2162 2162  
2163 2163  (((
... ... @@ -2175,39 +2175,33 @@
2175 2175  )))
2176 2176  
2177 2177  (((
2178 -(% style="color:blue" %)**Step1**(%%):  Log in TTN, Create an ABP device in the application and input the network session key (NETSKEY), app session key (APPSKEY) from the device.
2179 -
2180 -
1842 +(% style="color:#4f81bd" %)**Step1**(%%): Log in TTN, Create an ABP device in the application and input the network session key (NETSKEY), app session key (APPSKEY) from the device.
2181 2181  )))
2182 2182  
2183 2183  (((
2184 2184  [[image:1653360231087-571.png||height="401" width="727"]]
2185 -
2186 -
2187 2187  )))
2188 2188  
2189 2189  (((
2190 -(% style="color:red" %)**Note: user just need to make sure above three keys match, User can change either in TTN or Device to make then match. In TTN, NETSKEY and APPSKEY can be configured by user in setting page, but Device Addr is generated by TTN.**
1850 +(% style="color:red" %)Note: user just need to make sure above three keys match, User can change either in TTN or Device to make then match. In TTN, NETSKEY and APPSKEY can be configured by user in setting page, but Device Addr is generated by TTN.
2191 2191  )))
2192 2192  
2193 2193  
2194 -
2195 2195  (((
2196 -(% style="color:blue" %)**Step2**(%%)**:  **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands:
2197 -
2198 -
1855 +(% style="color:#4f81bd" %)**Step2**(%%)**: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands:
2199 2199  )))
2200 2200  
2201 2201  (((
2202 -(% style="background-color:#dcdcdc" %)**123456** (%%) :  Enter Password to have AT access.
2203 -(% style="background-color:#dcdcdc" %)**AT+FDR**(%%)  :  Reset Parameters to Factory Default, Keys Reserve
2204 -(% style="background-color:#dcdcdc" %)**AT+NJM=0** (%%) :  Set to ABP mode
2205 -(% style="background-color:#dcdcdc" %)**AT+ADR=0** (%%) :  Set the Adaptive Data Rate Off
2206 -(% style="background-color:#dcdcdc" %)**AT+DR=5** (%%) :  Set Data Rate (Set AT+DR=3 for 915 band)
2207 -(% style="background-color:#dcdcdc" %)**AT+TDC=60000 **(%%) :  Set transmit interval to 60 seconds
2208 -(% style="background-color:#dcdcdc" %)**AT+CHS=868400000**(%%) : Set transmit frequency to 868.4Mhz
2209 -(% style="background-color:#dcdcdc" %)**AT+DADDR=26 01 1A F1**(%%)  :  Set Device Address to 26 01 1A F1
2210 -(% style="background-color:#dcdcdc" %)**ATZ**        (%%) :  Reset MCU
1859 +(% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access.
1860 +(% style="background-color:#dcdcdc" %)AT+FDR(%%)  Reset Parameters to Factory Default, Keys Reserve
1861 +(% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access.
1862 +(% style="background-color:#dcdcdc" %)AT+NJM=0 (%%) Set to ABP mode
1863 +(% style="background-color:#dcdcdc" %)AT+ADR=0 (%%) Set the Adaptive Data Rate Off
1864 +(% style="background-color:#dcdcdc" %)AT+DR=5 (%%) Set Data Rate (Set AT+DR=3 for 915 band)
1865 +(% style="background-color:#dcdcdc" %)AT+TDC=60000 (%%) Set transmit interval to 60 seconds
1866 +(% style="background-color:#dcdcdc" %)AT+CHS=868400000(%%)  Set transmit frequency to 868.4Mhz
1867 +(% style="background-color:#dcdcdc" %)AT+DADDR=26 01 1A F1(%%)  Set Device Address to 26 01 1A F1
1868 +(% style="background-color:#dcdcdc" %)ATZ        (%%) Reset MCU
2211 2211  )))
2212 2212  
2213 2213  
... ... @@ -2218,31 +2218,22 @@
2218 2218  [[image:1653360498588-932.png||height="485" width="726"]]
2219 2219  
2220 2220  
2221 -== 6.4 How to change the uplink interval ==
1879 +== 5.4 Can I see counting event in Serial? ==
2222 2222  
2223 -
2224 -Please see this link: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/]]
2225 -
2226 -
2227 -== 6.5 Can I see counting event in Serial? ==
2228 -
2229 -
2230 2230  (((
2231 -User can run AT+DEBUG command to see the counting event in serial. If firmware too old and doesn't support AT+DEBUG. User can update to latest firmware first.
1882 +User can run AT+DEBUG command to see the counting event in serial. If firmware too old and doesnt support AT+DEBUG. User can update to latest firmware first.
2232 2232  
2233 2233  
2234 -== 6.6 Can i use point to point communication for LT-22222-L? ==
1885 +== 5.5 Can i use point to point communication for LT-22222-L? ==
2235 2235  
1887 +Yes, please refer [[Point to Point Communication>>doc:Main. Point to Point Communication of LT-22222-L.WebHome]]
2236 2236  
2237 -Yes, please refer [[Point to Point Communication>>doc:Main. Point to Point Communication of LT-22222-L.WebHome]]  ,this is [[firmware>>https://github.com/dragino/LT-22222-L/releases]].
2238 -
2239 2239  
2240 2240  )))
2241 2241  
2242 2242  (((
2243 -== 6.7 Why does the relay output become the default and open relay after the lt22222 is powered off? ==
1893 +== 5.Why does the relay output become the default and open relay after the lt22222 is powered off? ==
2244 2244  
2245 -
2246 2246  If the device is not shut down, but directly powered off.
2247 2247  
2248 2248  It will default that this is a power-off state.
... ... @@ -2252,29 +2252,12 @@
2252 2252  After restart, the status before power failure will be read from flash.
2253 2253  
2254 2254  
2255 -== 6.8 Can i set up LT-22222-L as a NC(Normal Close) Relay? ==
2256 -
2257 -
2258 -LT-22222-L built-in relay is NO (Normal Open). User can use an external relay to achieve Normal Close purpose. Diagram as below:
2259 -
2260 -
2261 -[[image:image-20221006170630-1.png||height="610" width="945"]]
2262 -
2263 -
2264 -== 6.9 Can LT22222-L save RO state? ==
2265 -
2266 -
2267 -Firmware version needs to be no less than 1.6.0.
2268 -
2269 -
2270 -= 7. Trouble Shooting =
1904 += 6. Trouble Shooting =
2271 2271  )))
2272 2272  
2273 2273  (((
2274 2274  (((
2275 -== 7.1 Downlink doesn't work, how to solve it? ==
2276 -
2277 -
1909 +== 6.1 Downlink doesn't work, how to solve it? ==
2278 2278  )))
2279 2279  )))
2280 2280  
... ... @@ -2285,9 +2285,7 @@
2285 2285  (((
2286 2286  
2287 2287  
2288 -== 7.2 Have trouble to upload image. ==
2289 -
2290 -
1920 +== 6.2 Have trouble to upload image. ==
2291 2291  )))
2292 2292  
2293 2293  (((
... ... @@ -2297,9 +2297,7 @@
2297 2297  (((
2298 2298  
2299 2299  
2300 -== 7.3 Why I can't join TTN in US915 /AU915 bands? ==
2301 -
2302 -
1930 +== 6.3 Why I can't join TTN in US915 /AU915 bands? ==
2303 2303  )))
2304 2304  
2305 2305  (((
... ... @@ -2307,7 +2307,7 @@
2307 2307  )))
2308 2308  
2309 2309  
2310 -= 8. Order Info =
1938 += 7. Order Info =
2311 2311  
2312 2312  
2313 2313  (% style="color:#4f81bd" %)**LT-22222-L-XXX:**
... ... @@ -2324,7 +2324,7 @@
2324 2324  * (% style="color:red" %)**IN865**(%%):  LT with frequency bands IN865
2325 2325  * (% style="color:red" %)**CN779**(%%):  LT with frequency bands CN779
2326 2326  
2327 -= 9. Packing Info =
1955 += 8. Packing Info =
2328 2328  
2329 2329  
2330 2330  **Package Includes**:
... ... @@ -2341,22 +2341,18 @@
2341 2341  * Package Size / pcs : 14.5 x 8 x 5 cm
2342 2342  * Weight / pcs : 170g
2343 2343  
2344 -= 10. Support =
1972 += 9. Support =
2345 2345  
2346 -
2347 2347  * (((
2348 2348  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.
2349 2349  )))
2350 2350  * (((
2351 2351  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:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]]
2352 -
2353 -
2354 -
2355 2355  )))
2356 2356  
2357 -= 11. Reference​​​​​ =
1981 += 10. Reference​​​​​ =
2358 2358  
2359 -
2360 2360  * LT-22222-L: [[http:~~/~~/www.dragino.com/products/lora-lorawan-end-node/item/156-lt-22222-l.html>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/156-lt-22222-l.html]]
2361 -* [[Datasheet, Document Base>>https://www.dropbox.com/sh/gxxmgks42tqfr3a/AACEdsj_mqzeoTOXARRlwYZ2a?dl=0]]
1984 +* [[Image Download>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]]
1985 +* [[AT Command Manual>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/]]
2362 2362  * [[Hardware Source>>url:https://github.com/dragino/Lora/tree/master/LT/LT-33222-L/v1.0]]
image-20221006170630-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Edwin
Size
... ... @@ -1,1 +1,0 @@
1 -486.5 KB
Content
image-20221008095908-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bei
Size
... ... @@ -1,1 +1,0 @@
1 -41.8 KB
Content
image-20221112174847-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -102.6 KB
Content
image-20230424115112-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -27.1 KB
Content
image-20230425173351-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -207.8 KB
Content
image-20230425173427-2.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -150.1 KB
Content
image-20230426161322-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Bei
Size
... ... @@ -1,1 +1,0 @@
1 -15.2 KB
Content