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

From version 82.40
edited by Xiaoling
on 2022/06/25 15:14
Change comment: There is no comment for this version
To version 77.79
edited by Xiaoling
on 2022/06/10 09:25
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -19,8 +19,6 @@
19 19  == 1.1 What is LT Series I/O Controller ==
20 20  
21 21  (((
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 26  
... ... @@ -50,7 +50,6 @@
50 50  
51 51  )))
52 52  
53 -
54 54  == 1.2  Specifications ==
55 55  
56 56  (((
... ... @@ -79,8 +79,6 @@
79 79  )))
80 80  
81 81  (((
82 -
83 -
84 84  **Interface for Model: LT22222-L:**
85 85  )))
86 86  
... ... @@ -104,8 +104,6 @@
104 104  )))
105 105  
106 106  (((
107 -
108 -
109 109  **LoRa Spec:**
110 110  )))
111 111  
... ... @@ -166,8 +166,6 @@
166 166  * (((
167 167  Packet engine up to 256 bytes with CRC.
168 168  
169 -
170 -
171 171  
172 172  )))
173 173  
... ... @@ -181,10 +181,6 @@
181 181  * Firmware upgradable via program port
182 182  * Counting
183 183  
184 -
185 -
186 -
187 -
188 188  == 1.4  Applications ==
189 189  
190 190  * Smart Buildings & Home Automation
... ... @@ -194,10 +194,6 @@
194 194  * Smart Cities
195 195  * Smart Factory
196 196  
197 -
198 -
199 -
200 -
201 201  == 1.5 Hardware Variants ==
202 202  
203 203  (% border="1" style="background-color:#f7faff; width:500px" %)
... ... @@ -211,8 +211,6 @@
211 211  * 1 x Counting Port
212 212  )))
213 213  
214 -
215 -
216 216  = 2. Power ON Device =
217 217  
218 218  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.
... ... @@ -235,9 +235,12 @@
235 235  
236 236  (((
237 237  In case user can’t set the OTAA keys in the network server and has to use the existing keys from server. User can [[use AT Command>>||anchor="H4.UseATCommand"]] to set the keys in the devices.
219 +
220 +
238 238  )))
239 239  
240 240  
224 +
241 241  == 3.2 Example to join LoRaWAN network ==
242 242  
243 243  (((
... ... @@ -246,13 +246,12 @@
246 246  
247 247  [[image:image-20220523172350-1.png||height="266" width="864"]]
248 248  
249 -
250 250  (((
251 251  The LG308 is already set to connect to [[TTN network >>url:https://www.thethingsnetwork.org/]]. So what we need to do now is only configure register this device to TTN:
252 252  )))
253 253  
254 254  (((
255 -(% style="color:blue" %)**Step 1**(%%): Create a device in TTN with the OTAA keys from LT IO controller.
238 +**Step 1**: Create a device in TTN with the OTAA keys from LT IO controller.
256 256  )))
257 257  
258 258  (((
... ... @@ -261,7 +261,6 @@
261 261  
262 262  [[image:1653297924498-393.png]]
263 263  
264 -
265 265  Input these keys in the LoRaWAN Server portal. Below is TTN screen shot:
266 266  
267 267  Add APP EUI in the application.
... ... @@ -275,7 +275,7 @@
275 275  
276 276  
277 277  (((
278 -(% 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.
260 +**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.
279 279  )))
280 280  
281 281  [[image:1653298044601-602.png||height="405" width="709"]]
... ... @@ -293,11 +293,6 @@
293 293  * **MOD5**: Single DI Counting + 2 x AVI + 1 x ACI + DO + RO
294 294  * **ADDMOD6**: Trigger Mode, Optional, used together with MOD1 ~~ MOD5
295 295  
296 -
297 -
298 -
299 -
300 -
301 301  === 3.3.1 AT+MOD~=1, 2ACI+2AVI ===
302 302  
303 303  The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by default.
... ... @@ -305,8 +305,6 @@
305 305  [[image:image-20220523174024-3.png]]
306 306  
307 307  (((
308 -
309 -
310 310  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
311 311  )))
312 312  
... ... @@ -320,7 +320,6 @@
320 320  
321 321  For example if payload is: [[image:image-20220523175847-2.png]]
322 322  
323 -
324 324  **The value for the interface is:  **
325 325  
326 326  AVI1 channel voltage is 0x04AB/1000=1195(DEC)/1000=1.195V
... ... @@ -336,7 +336,6 @@
336 336  * [1] RO1 relay channel is close and the RO1 LED is ON.
337 337  * [0] RO2 relay channel is open and RO2 LED is OFF;
338 338  
339 -
340 340  **LT22222-L:**
341 341  
342 342  * [1] DI2 channel is high input and DI2 LED is ON;
... ... @@ -352,14 +352,8 @@
352 352  ** DO1 is high in case there is load between DO1 and V+.
353 353  ** DO1 LED is off in both case
354 354  
355 -
356 -
357 -
358 -
359 -
360 360  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
361 361  
362 -
363 363  **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins.
364 364  
365 365  (((
... ... @@ -368,7 +368,6 @@
368 368  
369 369  [[image:image-20220523180452-3.png]]
370 370  
371 -
372 372  (((
373 373  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DO3, DO2 and DO1. Totally 1bytes as below
374 374  )))
... ... @@ -384,8 +384,6 @@
384 384  )))
385 385  
386 386  (((
387 -
388 -
389 389  **To use counting mode, please run:**
390 390  )))
391 391  
... ... @@ -393,33 +393,65 @@
393 393  (((
394 394  (((
395 395  **AT+MOD=2**
360 +)))
361 +)))
396 396  
363 +(% class="box infomessage" %)
364 +(((
365 +(((
397 397  **ATZ**
398 398  )))
399 399  )))
400 400  
401 401  (((
402 -
403 -
404 404  (% style="color:#4f81bd" %)**AT Commands for counting:**
405 405  )))
406 406  
407 407  (((
408 408  **For LT22222-L:**
376 +)))
409 409  
378 +(% class="box infomessage" %)
379 +(((
380 +(((
381 +**AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) **
382 +)))
383 +)))
410 410  
411 -(% style="color:blue" %)**AT+TRIG1=0,100**(%%)**  (set DI1 port to trigger on low level, valid signal is 100ms) **
385 +(% class="box infomessage" %)
386 +(((
387 +(((
388 +**AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) **
389 +)))
390 +)))
412 412  
413 -(% style="color:blue" %)**AT+TRIG1=1,100**(%%)**  (set DI1 port to trigger on high level, valid signal is 100ms ) **
392 +(% class="box infomessage" %)
393 +(((
394 +(((
395 +**AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) **
396 +)))
397 +)))
414 414  
415 -(% style="color:blue" %)**AT+TRIG2=0,100**(%%)**  (set DI2 port to trigger on low level, valid signal is 100ms) **
399 +(% class="box infomessage" %)
400 +(((
401 +(((
402 +**AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) **
403 +)))
404 +)))
416 416  
417 -(% style="color:blue" %)**AT+TRIG2=1,100**(%%)**  (set DI2 port to trigger on high level, valid signal is 100ms ) **
406 +(% class="box infomessage" %)
407 +(((
408 +(((
409 +**AT+SETCNT=1,60   (Set COUNT1 value to 60)**
410 +)))
411 +)))
418 418  
419 -(% style="color:blue" %)**AT+SETCNT=1,60**(%%)**   (Set COUNT1 value to 60)**
420 -
421 -(% style="color:blue" %)**AT+SETCNT=2,60**(%%)**   (Set COUNT2 value to 60)**
413 +(% class="box infomessage" %)
414 +(((
415 +(((
416 +**AT+SETCNT=2,60   (Set COUNT2 value to 60)**
422 422  )))
418 +)))
423 423  
424 424  
425 425  
... ... @@ -451,7 +451,12 @@
451 451  (((
452 452  (((
453 453  **AT+MOD=3**
450 +)))
451 +)))
454 454  
453 +(% class="box infomessage" %)
454 +(((
455 +(((
455 455  **ATZ**
456 456  )))
457 457  )))
... ... @@ -458,6 +458,8 @@
458 458  
459 459  (((
460 460  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
462 +
463 +
461 461  )))
462 462  
463 463  
... ... @@ -464,7 +464,6 @@
464 464  
465 465  === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting ===
466 466  
467 -
468 468  **LT22222-L**: This mode the DI1 is used as a counting pin.
469 469  
470 470  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.
... ... @@ -471,7 +471,6 @@
471 471  
472 472  [[image:image-20220523181903-8.png]]
473 473  
474 -
475 475  (((
476 476  (% style="color:#4f81bd" %)**DIDORO **(%%)is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
477 477  )))
... ... @@ -487,8 +487,6 @@
487 487  )))
488 488  
489 489  (((
490 -
491 -
492 492  **To use this mode, please run:**
493 493  )))
494 494  
... ... @@ -496,37 +496,60 @@
496 496  (((
497 497  (((
498 498  **AT+MOD=4**
498 +)))
499 +)))
499 499  
501 +(% class="box infomessage" %)
502 +(((
503 +(((
500 500  **ATZ**
501 501  )))
502 502  )))
503 503  
508 +(((
509 +
510 +)))
504 504  
505 -
506 506  (((
507 507  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
508 508  )))
509 509  
510 510  (((
511 -
512 -
513 513  **Plus below command for AVI1 Counting:**
518 +)))
514 514  
520 +(% class="box infomessage" %)
521 +(((
522 +(((
523 +**AT+SETCNT=3,60   (set AVI Count to 60)**
524 +)))
525 +)))
515 515  
516 -(% style="color:blue" %)**AT+SETCNT=3,60**(%%)**  (set AVI Count to 60)**
527 +(% class="box infomessage" %)
528 +(((
529 +(((
530 +**AT+VOLMAX=20000   (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)**
531 +)))
532 +)))
517 517  
518 -(% style="color:blue" %)**AT+VOLMAX=20000**(%%)**  (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)**
534 +(% class="box infomessage" %)
535 +(((
536 +(((
537 +**AT+VOLMAX=20000,0   (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)**
538 +)))
539 +)))
519 519  
520 -(% style="color:blue" %)**AT+VOLMAX=20000,0**(%%)**  (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)**
521 -
522 -(% style="color:blue" %)**AT+VOLMAX=20000,1**(%%)**  (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)**
541 +(% class="box infomessage" %)
542 +(((
543 +(((
544 +**AT+VOLMAX=20000,1   (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)**
523 523  )))
546 +)))
524 524  
525 525  
526 526  
527 527  === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI ===
528 528  
529 -
530 530  **LT22222-L**: This mode the DI1 is used as a counting pin.
531 531  
532 532  [[image:image-20220523182334-9.png]]
... ... @@ -557,7 +557,12 @@
557 557  (((
558 558  (((
559 559  **AT+MOD=5**
582 +)))
583 +)))
560 560  
585 +(% class="box infomessage" %)
586 +(((
587 +(((
561 561  **ATZ**
562 562  )))
563 563  )))
... ... @@ -570,7 +570,6 @@
570 570  
571 571  === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) ===
572 572  
573 -
574 574  (% style="color:#4f81bd" %)**This mode is an optional mode for trigger purpose. It can run together with other mode.**
575 575  
576 576  For example, if user has configured below commands:
... ... @@ -578,13 +578,15 @@
578 578  * **AT+MOD=1 ** **~-~->** The normal working mode
579 579  * **AT+ADDMOD6=1**   **~-~->** Enable trigger
580 580  
607 +
581 581  LT will keep monitoring AV1/AV2/AC1/AC2 every 5 seconds; LT will send uplink packets in two cases:
582 582  
583 583  1. Periodically uplink (Base on TDC time). Payload is same as the normal MOD (MOD 1 for above command). This uplink uses LoRaWAN (% style="color:#4f81bd" %)**unconfirmed**(%%) data type
584 584  1. Trigger uplink when meet the trigger condition. LT will sent two packets in this case, the first uplink use payload specify in this mod (mod=6), the second packets use the normal mod payload(MOD=1 for above settings). Both Uplinks use LoRaWAN (% style="color:#4f81bd" %)**CONFIRMED data type.**
585 585  
586 -(% style="color:#037691" %)**AT Command to set Trigger Condition**:
587 587  
614 +**AT Command to set Trigger Condition**:
615 +
588 588  (% style="color:#4f81bd" %)**Trigger base on voltage**:
589 589  
590 590  Format: AT+AVLIM=<AV1_LIMIT_LOW>,< AV1_LIMIT_HIGH>,<AV2_LIMIT_LOW>,< AV2_LIMIT_HIGH>
... ... @@ -596,7 +596,6 @@
596 596  AT+AVLIM=5000,0,0,0   (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore)
597 597  
598 598  
599 -
600 600  (% style="color:#4f81bd" %)**Trigger base on current**:
601 601  
602 602  Format: AT+ACLIM=<AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH>
... ... @@ -606,7 +606,6 @@
606 606  AT+ACLIM=10000,15000,0,0   (If ACI1 voltage lower than 10mA or higher than 15mA, trigger an uplink)
607 607  
608 608  
609 -
610 610  (% style="color:#4f81bd" %)**Trigger base on DI status**:
611 611  
612 612  DI status trigger Flag.
... ... @@ -613,13 +613,12 @@
613 613  
614 614  Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >
615 615  
616 -
617 617  **Example:**
618 618  
619 619  AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
620 620  
621 621  
622 -(% style="color:#037691" %)**Downlink Command to set Trigger Condition:**
647 +**Downlink Command to set Trigger Condition**
623 623  
624 624  Type Code: 0xAA. Downlink command same as AT Command **AT+AVLIM, AT+ACLIM**
625 625  
... ... @@ -648,7 +648,6 @@
648 648  Same as AT+ DTRI =1,0  (Enable DI1 trigger / disable DI2 trigger)
649 649  
650 650  
651 -
652 652  (% style="color:#4f81bd" %)**Trigger Settings Payload Explanation:**
653 653  
654 654  MOD6 Payload : total 11 bytes payload
... ... @@ -662,6 +662,7 @@
662 662  
663 663  * Each bits shows if the corresponding trigger has been configured.
664 664  
689 +
665 665  **Example:**
666 666  
667 667  10100000: Means the system has configure to use the trigger: AC1_LOW and AV2_LOW
... ... @@ -673,6 +673,7 @@
673 673  
674 674  * Each bits shows which status has been trigger on this uplink.
675 675  
701 +
676 676  **Example:**
677 677  
678 678  10000000: Means this packet is trigger by AC1_LOW. Means voltage too low.
... ... @@ -684,6 +684,7 @@
684 684  
685 685  * Each bits shows which status has been trigger on this uplink.
686 686  
713 +
687 687  **Example:**
688 688  
689 689  00000111: Means both DI1 and DI2 trigger are enabled and this packet is trigger by DI1.
... ... @@ -704,8 +704,6 @@
704 704  === 3.3.7 Payload Decoder ===
705 705  
706 706  (((
707 -
708 -
709 709  **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/]]
710 710  
711 711  
... ... @@ -712,6 +712,7 @@
712 712  )))
713 713  
714 714  
740 +
715 715  == 3.4 ​Configure LT via AT or Downlink ==
716 716  
717 717  User can configure LT I/O Controller via AT Commands or LoRaWAN Downlink Commands
... ... @@ -724,6 +724,8 @@
724 724  
725 725  * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for LT-22222-L.  User can see these commands below:
726 726  
753 +
754 +
727 727  === 3.4.1 Common Commands ===
728 728  
729 729  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]]
... ... @@ -736,50 +736,61 @@
736 736  
737 737  Set device uplink interval.
738 738  
739 -* (% style="color:#037691" %)**AT Command:**
767 +* AT Command:
740 740  
769 +(% class="box infomessage" %)
770 +(((
741 741  **AT+TDC=N **
772 +)))
742 742  
743 -
744 744  **Example: **AT+TDC=30000. Means set interval to 30 seconds
745 745  
746 746  
747 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x01):**
777 +* Downlink Payload (prefix 0x01):
748 748  
779 +(% class="box infomessage" %)
780 +(((
749 749  **0x01 aa bb cc     ~/~/ Same as AT+TDC=0x(aa bb cc)**
782 +)))
750 750  
751 751  
752 752  
753 -
754 754  ==== 3.4.2.2 Set Work Mode (AT+MOD) ====
755 755  
756 756  Set work mode.
757 757  
758 -* (% style="color:#037691" %)**AT Command:**
790 +* AT Command:
759 759  
792 +(% class="box infomessage" %)
793 +(((
760 760  **AT+MOD=N  **
795 +)))
761 761  
762 -
763 763  **Example**: AT+MOD=2. Set work mode to Double DI counting mode
764 764  
765 765  
766 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x0A):**
800 +* Downlink Payload (prefix 0x0A):
767 767  
768 -**0x0A aa    ** ~/~/ Same as AT+MOD=aa
802 +(% class="box infomessage" %)
803 +(((
804 +**0x0A aa     ~/~/ Same as AT+MOD=aa**
805 +)))
769 769  
770 770  
771 771  
772 -
773 773  ==== 3.4.2.3 Poll an uplink ====
774 774  
775 -* (% style="color:#037691" %)**AT Command:**
811 +* AT Command:
776 776  
777 777  There is no AT Command to poll uplink
778 778  
779 779  
780 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x08):**
816 +* Downlink Payload (prefix 0x08):
781 781  
782 -**0x08 FF     **~/~/ Poll an uplink
818 +(% class="box infomessage" %)
819 +(((
820 +**0x08 FF     ~/~/ Poll an uplink,**
821 +)))
783 783  
784 784  **Example**: 0x08FF, ask device to send an Uplink
785 785  
... ... @@ -789,9 +789,12 @@
789 789  
790 790  Use of trigger mode, please check [[ADDMOD6>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
791 791  
792 -* (% style="color:#037691" %)**AT Command:**
831 +* AT Command:
793 793  
833 +(% class="box infomessage" %)
834 +(((
794 794  **AT+ADDMOD6=1 or 0**
836 +)))
795 795  
796 796  1: Enable Trigger Mode
797 797  
... ... @@ -798,36 +798,43 @@
798 798  0: Disable Trigger Mode
799 799  
800 800  
801 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x0A 06):**
843 +* Downlink Payload (prefix 0x0A 06):
802 802  
803 -**0x0A 06 aa    ** ~/~/ Same as AT+ADDMOD6=aa
845 +(% class="box infomessage" %)
846 +(((
847 +**0x0A 06 aa     ~/~/ Same as AT+ADDMOD6=aa,**
848 +)))
804 804  
805 805  
806 806  
807 -
808 808  ==== 3.4.2.5 Poll trigger settings ====
809 809  
810 810  Poll trigger settings,
811 811  
812 -* (% style="color:#037691" %)**AT Command:**
856 +* AT Command:
813 813  
814 814  There is no AT Command for this feature.
815 815  
816 816  
817 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x AB 06):**
861 +* Downlink Payload (prefix 0x AB 06):
818 818  
819 -**0xAB 06         **~/~/ Poll trigger settings, device will uplink trigger settings once receive this command
863 +(% class="box infomessage" %)
864 +(((
865 +**0xAB 06  ~/~/ Poll trigger settings, device will uplink trigger settings once receive this command**
866 +)))
820 820  
821 821  
822 822  
823 -
824 824  ==== 3.4.2.6 Enable / Disable DI1/DI2/DI3 as trigger ====
825 825  
826 826  Enable Disable DI1/DI2/DI2 as trigger,
827 827  
828 -* (% style="color:#037691" %)**AT Command:**
874 +* AT Command:
829 829  
876 +(% class="box infomessage" %)
877 +(((
830 830  **Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >**
879 +)))
831 831  
832 832  
833 833  **Example:**
... ... @@ -834,20 +834,25 @@
834 834  
835 835  AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
836 836  
837 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 02):**
886 +* Downlink Payload (prefix 0xAA 02):
838 838  
839 -**0xAA 02 aa bb        **~/~/ Same as AT+DTRI=aa,bb
888 +(% class="box infomessage" %)
889 +(((
890 +**0xAA 02 aa bb  ~/~/ Same as AT+DTRI=aa,bb**
891 +)))
840 840  
841 841  
842 842  
843 -
844 844  ==== 3.4.2.7 Trigger1 – Set DI1 or DI3 as trigger ====
845 845  
846 846  Set DI1 or DI3(for LT-33222-L) trigger.
847 847  
848 -* (% style="color:#037691" %)**AT Command:**
899 +* AT Command:
849 849  
901 +(% class="box infomessage" %)
902 +(((
850 850  **AT+TRIG1=a,b**
904 +)))
851 851  
852 852  a : Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
853 853  
... ... @@ -859,20 +859,26 @@
859 859  AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms )
860 860  
861 861  
862 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x09 01 ):**
863 -* **0x09 01 aa bb cc    ** ~/~/ same as AT+TRIG1=aa,0x(bb cc)
916 +* Downlink Payload (prefix 0x09 01 ):
864 864  
918 +(% class="box infomessage" %)
919 +(((
920 +**0x09 01 aa bb cc ~/~/ same as AT+TRIG1=aa,0x(bb cc)**
921 +)))
865 865  
866 866  
924 +
867 867  ==== 3.4.2.8 Trigger2 – Set DI2 as trigger ====
868 868  
869 869  Set DI2 trigger.
870 870  
871 -* (% style="color:#037691" %)**AT Command:**
929 +* AT Command:
872 872  
931 +(% class="box infomessage" %)
932 +(((
873 873  **AT+TRIG2=a,b**
934 +)))
874 874  
875 -
876 876  a : Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
877 877  
878 878  b : delay timing.
... ... @@ -883,72 +883,93 @@
883 883  AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms )
884 884  
885 885  
886 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x09 02 ):**
946 +* Downlink Payload (prefix 0x09 02 ):
887 887  
888 -**0x09 02 aa bb cc           **~/~/ same as AT+TRIG1=aa,0x(bb cc)
948 +(% class="box infomessage" %)
949 +(((
950 +**0x09 02 aa bb cc ~/~/ same as AT+TRIG1=aa,0x(bb cc)**
951 +)))
889 889  
890 890  
891 891  
892 -
893 893  ==== 3.4.2.9 Trigger – Set AC (current) as trigger ====
894 894  
895 895  Set current trigger , base on AC port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
896 896  
897 -* (% style="color:#037691" %)**AT Command**
959 +* AT Command:
898 898  
899 -**AT+ACLIM**
961 +(% class="box infomessage" %)
962 +(((
963 +**AT+ACLIM. **
964 +)))
900 900  
901 901  
902 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 01 )**
967 +* Downlink Payload (prefix 0xAA 01 ):
903 903  
904 -**0x AA 01 aa bb cc dd ee ff gg hh        ** ~/~/ same as AT+ACLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
969 +(% class="box infomessage" %)
970 +(((
971 +**0x AA 01 aa bb cc dd ee ff gg hh ~/~/ same as AT+ACLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
972 +)))
905 905  
906 906  
907 907  
908 -
909 909  ==== 3.4.2.10 Trigger – Set AV (voltage) as trigger ====
910 910  
911 911  Set current trigger , base on AV port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
912 912  
913 -* (% style="color:#037691" %)**AT Command**
980 +* AT Command:
914 914  
915 -**AT+AVLIM  See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
982 +(% class="box infomessage" %)
983 +(((
984 +**AT+AVLIM. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
985 +)))
916 916  
917 917  
918 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 00 )**
988 +* Downlink Payload (prefix 0xAA 00 ):
919 919  
920 -**0x AA 00 aa bb cc dd ee ff gg hh    ** ~/~/ same as AT+AVLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
990 +(% class="box infomessage" %)
991 +(((
992 +**0x AA 00 aa bb cc dd ee ff gg hh ~/~/ same as AT+AVLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]] **
993 +)))
921 921  
922 922  
923 923  
924 -
925 925  ==== 3.4.2.11 Trigger – Set minimum interval ====
926 926  
927 -Set AV and AC trigger minimum interval, system won't response to the second trigger within this set time after the first trigger.
999 +Set AV and AC trigger minimum interval, system wont response to the second trigger within this set time after the first trigger.
928 928  
929 -* (% style="color:#037691" %)**AT Command**
1001 +* AT Command:
930 930  
931 -**AT+ATDC=5        ** Device won't response the second trigger within 5 minute after the first trigger.
1003 +(% class="box infomessage" %)
1004 +(((
1005 +**AT+ATDC=5. Device won’t response the second trigger within 5 minute after the first trigger.**
1006 +)))
932 932  
933 933  
934 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xAC )**
1009 +* Downlink Payload (prefix 0xAC ):
935 935  
936 -**0x AC aa bb   ** ~/~/ same as AT+ATDC=0x(aa bb)   . Unit (min)
1011 +(% class="box infomessage" %)
1012 +(((
1013 +**0x AC aa bb ~/~/ same as AT+ATDC=0x(aa bb)   . Unit (min)**
1014 +)))
937 937  
938 938  
939 939  
940 -
941 941  ==== 3.4.2.12 DO ~-~- Control Digital Output DO1/DO2/DO3 ====
942 942  
943 -* (% style="color:#037691" %)**AT Command**
1020 +* AT Command:
944 944  
945 945  There is no AT Command to control Digital Output
946 946  
947 947  
948 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x02)**
949 -* **0x02 aa bb cc     **~/~/ Set DO1/DO2/DO3 output
1025 +* Downlink Payload (prefix 0x02):
950 950  
1027 +(% class="box infomessage" %)
951 951  (((
1029 +**0x02 aa bb cc     ~/~/ Set DO1/DO2/DO3 output**
1030 +)))
1031 +
1032 +(((
952 952  If payload = 0x02010001, while there is load between V+ and DOx, it means set DO1 to low, DO2 to high and DO3 to low.
953 953  )))
954 954  
... ... @@ -968,19 +968,22 @@
968 968  
969 969  
970 970  
971 -
972 972  ==== 3.4.2.13 DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ====
973 973  
974 -* (% style="color:#037691" %)**AT Command**
1054 +* AT Command:
975 975  
976 976  There is no AT Command to control Digital Output
977 977  
978 978  
979 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA9)**
1059 +* Downlink Payload (prefix 0xA9):
980 980  
981 -**0xA9 aa bb cc     **~/~/ Set DO1/DO2/DO3 output with time control
1061 +(% class="box infomessage" %)
1062 +(((
1063 +(((
1064 +**0xA9 aa bb cc     ~/~/ Set DO1/DO2/DO3 output with time control**
1065 +)))
1066 +)))
982 982  
983 -
984 984  This is to control the digital output time of DO pin. Include four bytes:
985 985  
986 986  (% style="color:#4f81bd" %)**First Byte**(%%)**:** Type code (0xA9)
... ... @@ -1034,19 +1034,20 @@
1034 1034  
1035 1035  
1036 1036  
1037 -
1038 1038  ==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
1039 1039  
1040 -* (% style="color:#037691" %)**AT Command:**
1123 +* AT Command:
1041 1041  
1042 1042  There is no AT Command to control Relay Output
1043 1043  
1044 1044  
1045 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x03):**
1128 +* Downlink Payload (prefix 0x03):
1046 1046  
1047 -**0x03 aa bb     **~/~/ Set RO1/RO2 output
1130 +(% class="box infomessage" %)
1131 +(((
1132 +**0x03 aa bb     ~/~/ Set RO1/RO2 output**
1133 +)))
1048 1048  
1049 -
1050 1050  (((
1051 1051  If payload = 0x030100, it means set RO1 to close and RO2 to open.
1052 1052  )))
... ... @@ -1063,19 +1063,20 @@
1063 1063  
1064 1064  
1065 1065  
1066 -
1067 1067  ==== 3.4.2.15 Relay ~-~- Control Relay Output RO1/RO2 with time control ====
1068 1068  
1069 -* (% style="color:#037691" %)**AT Command:**
1153 +* AT Command:
1070 1070  
1071 1071  There is no AT Command to control Relay Output
1072 1072  
1073 1073  
1074 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x05):**
1158 +* Downlink Payload (prefix 0x05):
1075 1075  
1076 -**0x05 aa bb cc dd     **~/~/ Set RO1/RO2 relay with time control
1160 +(% class="box infomessage" %)
1161 +(((
1162 +**0x05 aa bb cc dd     ~/~/ Set RO1/RO2 relay with time control:**
1163 +)))
1077 1077  
1078 -
1079 1079  This is to control the relay output time of relay. Include four bytes:
1080 1080  
1081 1081  (% style="color:#4f81bd" %)**First Byte **(%%)**:** Type code (0x05)
... ... @@ -1117,28 +1117,35 @@
1117 1117  
1118 1118  
1119 1119  
1120 -
1121 1121  ==== 3.4.2.16 Counting ~-~- Voltage threshold counting ====
1122 1122  
1123 1123  When voltage exceed the threshold, count. Feature see [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1124 1124  
1125 -* (% style="color:#037691" %)**AT Command:**
1210 +* AT Command:
1126 1126  
1127 -**AT+VOLMAX   ** ~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1212 +(% class="box infomessage" %)
1213 +(((
1214 +**AT+VOLMAX    ~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]**
1215 +)))
1128 1128  
1129 1129  
1130 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA5):**
1218 +* Downlink Payload (prefix 0xA5):
1131 1131  
1132 -**0xA5 aa bb cc   **~/~/ Same as AT+VOLMAX=(aa bb),cc
1220 +(% class="box infomessage" %)
1221 +(((
1222 +**0xA5 aa bb cc   ~/~/ Same as AT+VOLMAX=(aa bb),cc**
1223 +)))
1133 1133  
1134 1134  
1135 1135  
1136 -
1137 1137  ==== 3.4.2.17 Counting ~-~- Pre-configure the Count Number ====
1138 1138  
1139 -* (% style="color:#037691" %)**AT Command:**
1229 +* AT Command:
1140 1140  
1231 +(% class="box infomessage" %)
1232 +(((
1141 1141  **AT+SETCNT=aa,(bb cc dd ee) **
1234 +)))
1142 1142  
1143 1143  aa: 1: Set count1,
1144 1144  
... ... @@ -1149,40 +1149,51 @@
1149 1149  Bb cc dd ee: number to be set
1150 1150  
1151 1151  
1152 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA8):**
1245 +* Downlink Payload (prefix 0xA8):
1153 1153  
1154 -**0x A8 aa bb cc dd ee     **~/~/ same as AT+SETCNT=aa,(bb cc dd ee)
1247 +(% class="box infomessage" %)
1248 +(((
1249 +**0x A8 aa bb cc dd ee     ~/~/ same as AT+SETCNT=aa,(bb cc dd ee)**
1250 +)))
1155 1155  
1156 1156  
1157 1157  
1158 -
1159 1159  ==== 3.4.2.18 Counting ~-~- Clear Counting ====
1160 1160  
1161 1161  Clear counting for counting mode
1162 1162  
1163 -* (% style="color:#037691" %)**AT Command:**
1258 +* AT Command:
1164 1164  
1165 -**AT+CLRCOUNT ** ~/~/ clear all counting
1260 +(% class="box infomessage" %)
1261 +(((
1262 +**AT+CLRCOUNT ~/~/ clear all counting**
1263 +)))
1166 1166  
1265 +* Downlink Payload (prefix 0xA6):
1167 1167  
1168 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA6):**
1267 +(% class="box infomessage" %)
1268 +(((
1269 +**0x A6 01     ~/~/ clear all counting,**
1270 +)))
1169 1169  
1170 -**0x A6 01    ** ~/~/ clear all counting
1171 1171  
1172 1172  
1173 -
1174 -
1175 1175  ==== 3.4.2.19 Counting ~-~- Change counting mode save time ====
1176 1176  
1177 -* (% style="color:#037691" %)**AT Command:**
1276 +* AT Command:
1178 1178  
1179 -**AT+COUTIME=60  **~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30)
1278 +(% class="box infomessage" %)
1279 +(((
1280 +**AT+COUTIME=60  ~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30)**
1281 +)))
1180 1180  
1283 +* Downlink Payload (prefix 0xA7):
1181 1181  
1182 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA7):**
1285 +(% class="box infomessage" %)
1286 +(((
1287 +**0x A7 aa bb cc     ~/~/ same as AT+COUTIME =aa bb cc,**
1288 +)))
1183 1183  
1184 -**0x A7 aa bb cc     **~/~/ same as AT+COUTIME =aa bb cc,
1185 -
1186 1186  (((
1187 1187  range: aa bb cc:0 to 16777215,  (unit:second)
1188 1188  
... ... @@ -1190,7 +1190,6 @@
1190 1190  )))
1191 1191  
1192 1192  
1193 -
1194 1194  == 3.5 Integrate with Mydevice ==
1195 1195  
1196 1196  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:
... ... @@ -1420,7 +1420,6 @@
1420 1420  [[image:image-20220524100748-11.png]]
1421 1421  
1422 1422  
1423 -
1424 1424  = 4. Use AT Command =
1425 1425  
1426 1426  == 4.1 Access AT Command ==
... ... @@ -1623,6 +1623,8 @@
1623 1623  
1624 1624  (((
1625 1625  AT+CFG: Print all settings
1728 +
1729 +
1626 1626  )))
1627 1627  
1628 1628  
... ... @@ -1668,6 +1668,8 @@
1668 1668  
1669 1669  (((
1670 1670  (% style="background-color:#dcdcdc" %)ATZ
1775 +
1776 +
1671 1671  )))
1672 1672  
1673 1673  
... ... @@ -1874,22 +1874,11 @@
1874 1874  == 5.5 Can i use point to point communication for LT-22222-L? ==
1875 1875  
1876 1876  Yes, please refer [[Point to Point Communication>>doc:Main. Point to Point Communication of LT-22222-L.WebHome]]
1877 -
1878 -
1879 1879  )))
1880 1880  
1881 1881  (((
1882 -== 5.6 Why does the relay output become the default and open relay after the lt22222 is powered off? ==
1986 +
1883 1883  
1884 -If the device is not shut down, but directly powered off.
1885 -
1886 -It will default that this is a power-off state.
1887 -
1888 -In modes 2 to 5, DO RO status and pulse count are saved in flash.
1889 -
1890 -After restart, the status before power failure will be read from flash.
1891 -
1892 -
1893 1893  = 6. Trouble Shooting =
1894 1894  )))
1895 1895  
... ... @@ -1943,8 +1943,6 @@
1943 1943  * (% style="color:#4f81bd" %)**IN865**(%%): LT with frequency bands IN865
1944 1944  * (% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779
1945 1945  
1946 -
1947 -
1948 1948  = 8. Packing Info =
1949 1949  
1950 1950  
... ... @@ -1962,8 +1962,6 @@
1962 1962  * Package Size / pcs : 14.5 x 8 x 5 cm
1963 1963  * Weight / pcs : 170g
1964 1964  
1965 -
1966 -
1967 1967  = 9. Support =
1968 1968  
1969 1969  * (((
... ... @@ -1971,10 +1971,6 @@
1971 1971  )))
1972 1972  * (((
1973 1973  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]]
1974 -
1975 -
1976 -
1977 -
1978 1978  )))
1979 1979  
1980 1980  = 10. Reference​​​​​ =