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

From version 82.30
edited by Xiaoling
on 2022/06/20 13:34
Change comment: There is no comment for this version
To version 77.62
edited by Xiaoling
on 2022/06/10 09:15
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  
... ... @@ -203,8 +203,6 @@
203 203  * 1 x Counting Port
204 204  )))
205 205  
206 -
207 -
208 208  = 2. Power ON Device =
209 209  
210 210  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.
... ... @@ -227,9 +227,12 @@
227 227  
228 228  (((
229 229  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 +
230 230  )))
231 231  
232 232  
224 +
233 233  == 3.2 Example to join LoRaWAN network ==
234 234  
235 235  (((
... ... @@ -238,13 +238,12 @@
238 238  
239 239  [[image:image-20220523172350-1.png||height="266" width="864"]]
240 240  
241 -
242 242  (((
243 243  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:
244 244  )))
245 245  
246 246  (((
247 -(% 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.
248 248  )))
249 249  
250 250  (((
... ... @@ -253,7 +253,6 @@
253 253  
254 254  [[image:1653297924498-393.png]]
255 255  
256 -
257 257  Input these keys in the LoRaWAN Server portal. Below is TTN screen shot:
258 258  
259 259  Add APP EUI in the application.
... ... @@ -267,7 +267,7 @@
267 267  
268 268  
269 269  (((
270 -(% 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.
271 271  )))
272 272  
273 273  [[image:1653298044601-602.png||height="405" width="709"]]
... ... @@ -292,8 +292,6 @@
292 292  [[image:image-20220523174024-3.png]]
293 293  
294 294  (((
295 -
296 -
297 297  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
298 298  )))
299 299  
... ... @@ -307,7 +307,6 @@
307 307  
308 308  For example if payload is: [[image:image-20220523175847-2.png]]
309 309  
310 -
311 311  **The value for the interface is:  **
312 312  
313 313  AVI1 channel voltage is 0x04AB/1000=1195(DEC)/1000=1.195V
... ... @@ -340,7 +340,6 @@
340 340  
341 341  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
342 342  
343 -
344 344  **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins.
345 345  
346 346  (((
... ... @@ -349,7 +349,6 @@
349 349  
350 350  [[image:image-20220523180452-3.png]]
351 351  
352 -
353 353  (((
354 354  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DO3, DO2 and DO1. Totally 1bytes as below
355 355  )))
... ... @@ -365,8 +365,6 @@
365 365  )))
366 366  
367 367  (((
368 -
369 -
370 370  **To use counting mode, please run:**
371 371  )))
372 372  
... ... @@ -374,33 +374,65 @@
374 374  (((
375 375  (((
376 376  **AT+MOD=2**
360 +)))
361 +)))
377 377  
363 +(% class="box infomessage" %)
364 +(((
365 +(((
378 378  **ATZ**
379 379  )))
380 380  )))
381 381  
382 382  (((
383 -
384 -
385 385  (% style="color:#4f81bd" %)**AT Commands for counting:**
386 386  )))
387 387  
388 388  (((
389 389  **For LT22222-L:**
376 +)))
390 390  
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 +)))
391 391  
392 -(% 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 +)))
393 393  
394 -(% 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 +)))
395 395  
396 -(% 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 +)))
397 397  
398 -(% 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 +)))
399 399  
400 -(% style="color:blue" %)**AT+SETCNT=1,60**(%%)**   (Set COUNT1 value to 60)**
401 -
402 -(% 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)**
403 403  )))
418 +)))
404 404  
405 405  
406 406  
... ... @@ -432,7 +432,12 @@
432 432  (((
433 433  (((
434 434  **AT+MOD=3**
450 +)))
451 +)))
435 435  
453 +(% class="box infomessage" %)
454 +(((
455 +(((
436 436  **ATZ**
437 437  )))
438 438  )))
... ... @@ -439,6 +439,8 @@
439 439  
440 440  (((
441 441  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
462 +
463 +
442 442  )))
443 443  
444 444  
... ... @@ -445,7 +445,6 @@
445 445  
446 446  === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting ===
447 447  
448 -
449 449  **LT22222-L**: This mode the DI1 is used as a counting pin.
450 450  
451 451  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.
... ... @@ -452,7 +452,6 @@
452 452  
453 453  [[image:image-20220523181903-8.png]]
454 454  
455 -
456 456  (((
457 457  (% style="color:#4f81bd" %)**DIDORO **(%%)is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
458 458  )))
... ... @@ -468,8 +468,6 @@
468 468  )))
469 469  
470 470  (((
471 -
472 -
473 473  **To use this mode, please run:**
474 474  )))
475 475  
... ... @@ -477,44 +477,65 @@
477 477  (((
478 478  (((
479 479  **AT+MOD=4**
498 +)))
499 +)))
480 480  
501 +(% class="box infomessage" %)
502 +(((
503 +(((
481 481  **ATZ**
482 482  )))
483 483  )))
484 484  
508 +(((
509 +
510 +)))
485 485  
486 -
487 487  (((
488 488  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
489 489  )))
490 490  
491 491  (((
492 -
493 -
494 494  **Plus below command for AVI1 Counting:**
518 +)))
495 495  
520 +(% class="box infomessage" %)
521 +(((
522 +(((
523 +**AT+SETCNT=3,60   (set AVI Count to 60)**
524 +)))
525 +)))
496 496  
497 -(% 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 +)))
498 498  
499 -(% 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 +)))
500 500  
501 -(% style="color:blue" %)**AT+VOLMAX=20000,0**(%%)**  (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)**
502 -
503 -(% 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)**
504 504  )))
546 +)))
505 505  
506 506  
507 507  
508 508  === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI ===
509 509  
510 -
511 511  **LT22222-L**: This mode the DI1 is used as a counting pin.
512 512  
513 513  [[image:image-20220523182334-9.png]]
514 514  
515 515  (((
516 -
517 -
518 518  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
519 519  )))
520 520  
... ... @@ -529,8 +529,6 @@
529 529  )))
530 530  
531 531  (((
532 -
533 -
534 534  **To use this mode, please run:**
535 535  )))
536 536  
... ... @@ -538,7 +538,12 @@
538 538  (((
539 539  (((
540 540  **AT+MOD=5**
578 +)))
579 +)))
541 541  
581 +(% class="box infomessage" %)
582 +(((
583 +(((
542 542  **ATZ**
543 543  )))
544 544  )))
... ... @@ -545,6 +545,8 @@
545 545  
546 546  (((
547 547  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
590 +
591 +
548 548  )))
549 549  
550 550  
... ... @@ -551,7 +551,6 @@
551 551  
552 552  === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) ===
553 553  
554 -
555 555  (% style="color:#4f81bd" %)**This mode is an optional mode for trigger purpose. It can run together with other mode.**
556 556  
557 557  For example, if user has configured below commands:
... ... @@ -564,9 +564,8 @@
564 564  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
565 565  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.**
566 566  
610 +**AT Command to set Trigger Condition**:
567 567  
568 -(% style="color:#037691" %)**AT Command to set Trigger Condition**:
569 -
570 570  (% style="color:#4f81bd" %)**Trigger base on voltage**:
571 571  
572 572  Format: AT+AVLIM=<AV1_LIMIT_LOW>,< AV1_LIMIT_HIGH>,<AV2_LIMIT_LOW>,< AV2_LIMIT_HIGH>
... ... @@ -578,7 +578,6 @@
578 578  AT+AVLIM=5000,0,0,0   (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore)
579 579  
580 580  
581 -
582 582  (% style="color:#4f81bd" %)**Trigger base on current**:
583 583  
584 584  Format: AT+ACLIM=<AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH>
... ... @@ -588,7 +588,6 @@
588 588  AT+ACLIM=10000,15000,0,0   (If ACI1 voltage lower than 10mA or higher than 15mA, trigger an uplink)
589 589  
590 590  
591 -
592 592  (% style="color:#4f81bd" %)**Trigger base on DI status**:
593 593  
594 594  DI status trigger Flag.
... ... @@ -595,13 +595,12 @@
595 595  
596 596  Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >
597 597  
598 -
599 599  **Example:**
600 600  
601 601  AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
602 602  
603 603  
604 -(% style="color:#037691" %)**Downlink Command to set Trigger Condition:**
643 +**Downlink Command to set Trigger Condition**
605 605  
606 606  Type Code: 0xAA. Downlink command same as AT Command **AT+AVLIM, AT+ACLIM**
607 607  
... ... @@ -619,18 +619,14 @@
619 619  
620 620   Yy4 yy4: AC2 or AV2 high limit.
621 621  
622 -
623 623  **Example1**: AA 00 13 88 00 00 00 00 00 00
624 624  
625 625  Same as AT+AVLIM=5000,0,0,0   (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore)
626 626  
627 -
628 628  **Example2**: AA 02 01 00
629 629  
630 630  Same as AT+ DTRI =1,0  (Enable DI1 trigger / disable DI2 trigger)
631 631  
632 -
633 -
634 634  (% style="color:#4f81bd" %)**Trigger Settings Payload Explanation:**
635 635  
636 636  MOD6 Payload : total 11 bytes payload
... ... @@ -637,7 +637,6 @@
637 637  
638 638  [[image:image-20220524085923-1.png]]
639 639  
640 -
641 641  (% style="color:#4f81bd" %)**TRI FLAG1**(%%) is a combination to show if trigger is set for this part. Totally 1byte as below
642 642  
643 643  [[image:image-20220524090106-2.png]]
... ... @@ -686,8 +686,6 @@
686 686  === 3.3.7 Payload Decoder ===
687 687  
688 688  (((
689 -
690 -
691 691  **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/]]
692 692  
693 693  
... ... @@ -694,6 +694,7 @@
694 694  )))
695 695  
696 696  
729 +
697 697  == 3.4 ​Configure LT via AT or Downlink ==
698 698  
699 699  User can configure LT I/O Controller via AT Commands or LoRaWAN Downlink Commands
... ... @@ -718,35 +718,39 @@
718 718  
719 719  Set device uplink interval.
720 720  
721 -* (% style="color:#037691" %)**AT Command:**
754 +* AT Command:
722 722  
756 +(% class="box infomessage" %)
757 +(((
723 723  **AT+TDC=N **
759 +)))
724 724  
725 -
726 726  **Example: **AT+TDC=30000. Means set interval to 30 seconds
727 727  
763 +* Downlink Payload (prefix 0x01):
728 728  
729 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x01):**
730 -
765 +(% class="box infomessage" %)
766 +(((
731 731  **0x01 aa bb cc     ~/~/ Same as AT+TDC=0x(aa bb cc)**
768 +)))
732 732  
733 733  
734 734  
735 -
736 736  ==== 3.4.2.2 Set Work Mode (AT+MOD) ====
737 737  
738 738  Set work mode.
739 739  
740 -* (% style="color:#037691" %)**AT Command:**
776 +* AT Command:
741 741  
778 +(% class="box infomessage" %)
779 +(((
742 742  **AT+MOD=N  **
781 +)))
743 743  
744 -
745 745  **Example**: AT+MOD=2. Set work mode to Double DI counting mode
746 746  
785 +* Downlink Payload (prefix 0x0A):
747 747  
748 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x0A):**
749 -
750 750  (% class="box infomessage" %)
751 751  (((
752 752  **0x0A aa     ~/~/ Same as AT+MOD=aa**
... ... @@ -756,13 +756,12 @@
756 756  
757 757  ==== 3.4.2.3 Poll an uplink ====
758 758  
759 -* (% style="color:#037691" %)AT Command:
796 +* AT Command:
760 760  
761 761  There is no AT Command to poll uplink
762 762  
800 +* Downlink Payload (prefix 0x08):
763 763  
764 -* (% style="color:#037691" %)Downlink Payload (prefix 0x08):
765 -
766 766  (% class="box infomessage" %)
767 767  (((
768 768  **0x08 FF     ~/~/ Poll an uplink,**
... ... @@ -776,7 +776,7 @@
776 776  
777 777  Use of trigger mode, please check [[ADDMOD6>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
778 778  
779 -* (% style="color:#037691" %)AT Command:
815 +* AT Command:
780 780  
781 781  (% class="box infomessage" %)
782 782  (((
... ... @@ -787,9 +787,8 @@
787 787  
788 788  0: Disable Trigger Mode
789 789  
826 +* Downlink Payload (prefix 0x0A 06):
790 790  
791 -* (% style="color:#037691" %)Downlink Payload (prefix 0x0A 06):
792 -
793 793  (% class="box infomessage" %)
794 794  (((
795 795  **0x0A 06 aa     ~/~/ Same as AT+ADDMOD6=aa,**
... ... @@ -801,13 +801,12 @@
801 801  
802 802  Poll trigger settings,
803 803  
804 -* (% style="color:#037691" %)AT Command:
839 +* AT Command:
805 805  
806 806  There is no AT Command for this feature.
807 807  
843 +* Downlink Payload (prefix 0x AB 06):
808 808  
809 -* (% style="color:#037691" %)Downlink Payload (prefix 0x AB 06):
810 -
811 811  (% class="box infomessage" %)
812 812  (((
813 813  **0xAB 06  ~/~/ Poll trigger settings, device will uplink trigger settings once receive this command**
... ... @@ -819,127 +819,154 @@
819 819  
820 820  Enable Disable DI1/DI2/DI2 as trigger,
821 821  
822 -* (% style="color:#037691" %)AT Command:
856 +* AT Command:
823 823  
858 +(% class="box infomessage" %)
859 +(((
824 824  **Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >**
861 +)))
825 825  
826 -
827 827  **Example:**
828 828  
829 829  AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
830 830  
831 -* (% style="color:#037691" %)Downlink Payload (prefix 0xAA 02):
867 +* Downlink Payload (prefix 0xAA 02):
832 832  
833 -**0xAA 02 aa bb        **~/~/ Same as AT+DTRI=aa,bb
869 +(% class="box infomessage" %)
870 +(((
871 +**0xAA 02 aa bb  ~/~/ Same as AT+DTRI=aa,bb**
872 +)))
834 834  
835 835  
836 836  
837 -
838 838  ==== 3.4.2.7 Trigger1 – Set DI1 or DI3 as trigger ====
839 839  
840 840  Set DI1 or DI3(for LT-33222-L) trigger.
841 841  
842 -* (% style="color:#037691" %)AT Command:
880 +* AT Command:
843 843  
882 +(% class="box infomessage" %)
883 +(((
844 844  **AT+TRIG1=a,b**
885 +)))
845 845  
846 846  a : Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
847 847  
848 848  b : delay timing.
849 849  
850 -
851 851  **Example:**
852 852  
853 853  AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms )
854 854  
895 +* Downlink Payload (prefix 0x09 01 ):
855 855  
856 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x09 01 ):**
857 -* **0x09 01 aa bb cc    ** ~/~/ same as AT+TRIG1=aa,0x(bb cc)
897 +(% class="box infomessage" %)
898 +(((
899 +**0x09 01 aa bb cc ~/~/ same as AT+TRIG1=aa,0x(bb cc)**
900 +)))
858 858  
859 859  
903 +
860 860  ==== 3.4.2.8 Trigger2 – Set DI2 as trigger ====
861 861  
862 862  Set DI2 trigger.
863 863  
864 -* (% style="color:#037691" %)**AT Command:**
908 +* AT Command:
865 865  
910 +(% class="box infomessage" %)
911 +(((
866 866  **AT+TRIG2=a,b**
913 +)))
867 867  
868 -
869 869  a : Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
870 870  
871 871  b : delay timing.
872 872  
873 -
874 874  **Example:**
875 875  
876 876  AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms )
877 877  
923 +* Downlink Payload (prefix 0x09 02 ):
878 878  
879 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x09 02 ):**
925 +(% class="box infomessage" %)
926 +(((
927 +**0x09 02 aa bb cc ~/~/ same as AT+TRIG1=aa,0x(bb cc)**
928 +)))
880 880  
881 -**0x09 02 aa bb cc           **~/~/ same as AT+TRIG1=aa,0x(bb cc)
882 882  
883 883  
884 -
885 -
886 886  ==== 3.4.2.9 Trigger – Set AC (current) as trigger ====
887 887  
888 888  Set current trigger , base on AC port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
889 889  
890 -* (% style="color:#037691" %)**AT Command**
936 +* AT Command:
891 891  
892 -**AT+ACLIM**
938 +(% class="box infomessage" %)
939 +(((
940 +**AT+ACLIM. **
941 +)))
893 893  
943 +* Downlink Payload (prefix 0xAA 01 ):
894 894  
895 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 01 )**
945 +(% class="box infomessage" %)
946 +(((
947 +**0x AA 01 aa bb cc dd ee ff gg hh ~/~/ same as AT+ACLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
948 +)))
896 896  
897 -**0x AA 01 aa bb cc dd ee ff gg hh        ** ~/~/ same as AT+ACLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
898 898  
899 899  
900 -
901 -
902 902  ==== 3.4.2.10 Trigger – Set AV (voltage) as trigger ====
903 903  
904 904  Set current trigger , base on AV port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
905 905  
906 -* (% style="color:#037691" %)**AT Command**
956 +* AT Command:
907 907  
908 -**AT+AVLIM  See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
958 +(% class="box infomessage" %)
959 +(((
960 +**AT+AVLIM. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
961 +)))
909 909  
963 +* Downlink Payload (prefix 0xAA 00 ):
910 910  
911 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 00 )**
965 +(% class="box infomessage" %)
966 +(((
967 +**0x AA 00 aa bb cc dd ee ff gg hh ~/~/ same as AT+AVLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]] **
968 +)))
912 912  
913 -**0x AA 00 aa bb cc dd ee ff gg hh    ** ~/~/ same as AT+AVLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
914 914  
915 915  
916 -
917 -
918 918  ==== 3.4.2.11 Trigger – Set minimum interval ====
919 919  
920 920  Set AV and AC trigger minimum interval, system won’t response to the second trigger within this set time after the first trigger.
921 921  
922 -* (% style="color:#037691" %)**AT Command**
976 +* AT Command:
923 923  
978 +(% class="box infomessage" %)
979 +(((
924 924  **AT+ATDC=5. Device won’t response the second trigger within 5 minute after the first trigger.**
981 +)))
925 925  
983 +* Downlink Payload (prefix 0xAC ):
926 926  
927 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xAC )**
985 +(% class="box infomessage" %)
986 +(((
987 +**0x AC aa bb ~/~/ same as AT+ATDC=0x(aa bb)   . Unit (min)**
988 +)))
928 928  
929 -**0x AC aa bb   ** ~/~/ same as AT+ATDC=0x(aa bb)   . Unit (min)
930 930  
931 931  
932 -
933 -
934 934  ==== 3.4.2.12 DO ~-~- Control Digital Output DO1/DO2/DO3 ====
935 935  
936 -* (% style="color:#037691" %)**AT Command**
994 +* AT Command:
937 937  
938 938  There is no AT Command to control Digital Output
939 939  
998 +* Downlink Payload (prefix 0x02):
940 940  
941 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x02)**
942 -* **0x02 aa bb cc     **~/~/ Set DO1/DO2/DO3 output
1000 +(% class="box infomessage" %)
1001 +(((
1002 +**0x02 aa bb cc     ~/~/ Set DO1/DO2/DO3 output**
1003 +)))
943 943  
944 944  (((
945 945  If payload = 0x02010001, while there is load between V+ and DOx, it means set DO1 to low, DO2 to high and DO3 to low.
... ... @@ -961,19 +961,21 @@
961 961  
962 962  
963 963  
964 -
965 965  ==== 3.4.2.13 DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ====
966 966  
967 -* (% style="color:#037691" %)**AT Command**
1027 +* AT Command:
968 968  
969 969  There is no AT Command to control Digital Output
970 970  
1031 +* Downlink Payload (prefix 0xA9):
971 971  
972 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA9)**
1033 +(% class="box infomessage" %)
1034 +(((
1035 +(((
1036 +**0xA9 aa bb cc     ~/~/ Set DO1/DO2/DO3 output with time control**
1037 +)))
1038 +)))
973 973  
974 -**0xA9 aa bb cc     **~/~/ Set DO1/DO2/DO3 output with time control
975 -
976 -
977 977  This is to control the digital output time of DO pin. Include four bytes:
978 978  
979 979  (% style="color:#4f81bd" %)**First Byte**(%%)**:** Type code (0xA9)
... ... @@ -984,22 +984,18 @@
984 984  
985 985  00: DO pins will change to an inverter state after timeout 
986 986  
987 -
988 988  (% style="color:#4f81bd" %)**Third Byte**(%%): Control Method and Ports status:
989 989  
990 990  [[image:image-20220524093238-6.png]]
991 991  
992 -
993 993  (% style="color:#4f81bd" %)**Fourth Byte**(%%): Control Method and Ports status:
994 994  
995 995  [[image:image-20220524093328-7.png]]
996 996  
997 -
998 998  (% style="color:#4f81bd" %)**Fifth Byte**(%%): Control Method and Ports status:
999 999  
1000 1000  [[image:image-20220524093351-8.png]]
1001 1001  
1002 -
1003 1003  (% style="color:#4f81bd" %)**Sixth and Seventh Byte**:
1004 1004  
1005 1005   Latching time. Unit: ms
... ... @@ -1006,7 +1006,6 @@
1006 1006  
1007 1007  Device will upload a packet if downlink code executes successfully.
1008 1008  
1009 -
1010 1010  **Example payload:**
1011 1011  
1012 1012  **~1. A9 01 01 01 01 07 D0**
... ... @@ -1027,19 +1027,19 @@
1027 1027  
1028 1028  
1029 1029  
1088 +=== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ===
1030 1030  
1031 -==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
1090 +* AT Command:
1032 1032  
1033 -* (% style="color:#037691" %)**AT Command:**
1034 -
1035 1035  There is no AT Command to control Relay Output
1036 1036  
1094 +* Downlink Payload (prefix 0x03):
1037 1037  
1038 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x03):**
1096 +(% class="box infomessage" %)
1097 +(((
1098 +**0x03 aa bb     ~/~/ Set RO1/RO2 output**
1099 +)))
1039 1039  
1040 -**0x03 aa bb     **~/~/ Set RO1/RO2 output
1041 -
1042 -
1043 1043  (((
1044 1044  If payload = 0x030100, it means set RO1 to close and RO2 to open.
1045 1045  )))
... ... @@ -1056,19 +1056,19 @@
1056 1056  
1057 1057  
1058 1058  
1059 -
1060 1060  ==== 3.4.2.15 Relay ~-~- Control Relay Output RO1/RO2 with time control ====
1061 1061  
1062 -* (% style="color:#037691" %)**AT Command:**
1119 +* AT Command:
1063 1063  
1064 1064  There is no AT Command to control Relay Output
1065 1065  
1123 +* Downlink Payload (prefix 0x05):
1066 1066  
1067 -* (% style="color:#037691" %)**Downlink Payload (prefix 0x05):**
1125 +(% class="box infomessage" %)
1126 +(((
1127 +**0x05 aa bb cc dd     ~/~/ Set RO1/RO2 relay with time control:**
1128 +)))
1068 1068  
1069 -**0x05 aa bb cc dd     **~/~/ Set RO1/RO2 relay with time control
1070 -
1071 -
1072 1072  This is to control the relay output time of relay. Include four bytes:
1073 1073  
1074 1074  (% style="color:#4f81bd" %)**First Byte **(%%)**:** Type code (0x05)
... ... @@ -1079,12 +1079,10 @@
1079 1079  
1080 1080  00: Relays will change to an inverter state after timeout
1081 1081  
1082 -
1083 1083  (% style="color:#4f81bd" %)**Third Byte(bb)**(%%): Control Method and Ports status:
1084 1084  
1085 1085  [[image:image-20220524093831-10.png]]
1086 1086  
1087 -
1088 1088  (% style="color:#4f81bd" %)**Fourth/Fifth Bytes(cc)**(%%): Latching time. Unit: ms
1089 1089  
1090 1090  Device will upload a packet if downlink code executes successfully.
... ... @@ -1110,28 +1110,34 @@
1110 1110  
1111 1111  
1112 1112  
1113 -
1114 1114  ==== 3.4.2.16 Counting ~-~- Voltage threshold counting ====
1115 1115  
1116 1116  When voltage exceed the threshold, count. Feature see [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1117 1117  
1118 -* (% style="color:#037691" %)**AT Command:**
1173 +* AT Command:
1119 1119  
1120 -**AT+VOLMAX   ** ~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1175 +(% class="box infomessage" %)
1176 +(((
1177 +**AT+VOLMAX    ~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]**
1178 +)))
1121 1121  
1180 +* Downlink Payload (prefix 0xA5):
1122 1122  
1123 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA5):**
1182 +(% class="box infomessage" %)
1183 +(((
1184 +**0xA5 aa bb cc   ~/~/ Same as AT+VOLMAX=(aa bb),cc**
1185 +)))
1124 1124  
1125 -**0xA5 aa bb cc   **~/~/ Same as AT+VOLMAX=(aa bb),cc
1126 1126  
1127 1127  
1128 -
1129 -
1130 1130  ==== 3.4.2.17 Counting ~-~- Pre-configure the Count Number ====
1131 1131  
1132 -* (% style="color:#037691" %)**AT Command:**
1191 +* AT Command:
1133 1133  
1134 -(% style="color:#037691" %)**​​​​​​​**(%%)**AT+SETCNT=aa,(bb cc dd ee) **
1193 +(% class="box infomessage" %)
1194 +(((
1195 +**AT+SETCNT=aa,(bb cc dd ee) **
1196 +)))
1135 1135  
1136 1136  aa: 1: Set count1,
1137 1137  
... ... @@ -1141,41 +1141,51 @@
1141 1141  
1142 1142  Bb cc dd ee: number to be set
1143 1143  
1206 +* Downlink Payload (prefix 0xA8):
1144 1144  
1145 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA8):**
1208 +(% class="box infomessage" %)
1209 +(((
1210 +**0x A8 aa bb cc dd ee     ~/~/ same as AT+SETCNT=aa,(bb cc dd ee)**
1211 +)))
1146 1146  
1147 -**0x A8 aa bb cc dd ee     **~/~/ same as AT+SETCNT=aa,(bb cc dd ee)
1148 1148  
1149 1149  
1150 -
1151 -
1152 1152  ==== 3.4.2.18 Counting ~-~- Clear Counting ====
1153 1153  
1154 1154  Clear counting for counting mode
1155 1155  
1156 -* (% style="color:#037691" %)**AT Command:**
1219 +* AT Command:
1157 1157  
1158 -(% style="color:#037691" %)​​​​​​​​​​​​​​(%%)**AT+CLRCOUNT ** ~/~/ clear all counting
1221 +(% class="box infomessage" %)
1222 +(((
1223 +**AT+CLRCOUNT ~/~/ clear all counting**
1224 +)))
1159 1159  
1226 +* Downlink Payload (prefix 0xA6):
1160 1160  
1161 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA6):**
1228 +(% class="box infomessage" %)
1229 +(((
1230 +**0x A6 01     ~/~/ clear all counting,**
1231 +)))
1162 1162  
1163 -**0x A6 01    ** ~/~/ clear all counting
1164 1164  
1165 1165  
1166 -
1167 -
1168 1168  ==== 3.4.2.19 Counting ~-~- Change counting mode save time ====
1169 1169  
1170 -* (% style="color:#037691" %)**AT Command:**
1237 +* AT Command:
1171 1171  
1172 -**AT+COUTIME=60  **~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30)
1239 +(% class="box infomessage" %)
1240 +(((
1241 +**AT+COUTIME=60  ~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30)**
1242 +)))
1173 1173  
1244 +* Downlink Payload (prefix 0xA7):
1174 1174  
1175 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA7):**
1246 +(% class="box infomessage" %)
1247 +(((
1248 +**0x A7 aa bb cc     ~/~/ same as AT+COUTIME =aa bb cc,**
1249 +)))
1176 1176  
1177 -**0x A7 aa bb cc     **~/~/ same as AT+COUTIME =aa bb cc,
1178 -
1179 1179  (((
1180 1180  range: aa bb cc:0 to 16777215,  (unit:second)
1181 1181  
... ... @@ -1183,7 +1183,6 @@
1183 1183  )))
1184 1184  
1185 1185  
1186 -
1187 1187  == 3.5 Integrate with Mydevice ==
1188 1188  
1189 1189  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:
... ... @@ -1873,16 +1873,8 @@
1873 1873  )))
1874 1874  
1875 1875  (((
1876 -== 5.6 Why does the relay output become the default and open relay after the lt22222 is powered off? ==
1947 +
1877 1877  
1878 -If the device is not shut down, but directly powered off.
1879 -
1880 -It will default that this is a power-off state.
1881 -
1882 -In modes 2 to 5, DO RO status and pulse count are saved in flash.
1883 -
1884 -After restart, the status before power failure will be read from flash.
1885 -
1886 1886  = 6. Trouble Shooting =
1887 1887  )))
1888 1888