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

From version 77.95
edited by Xiaoling
on 2022/06/10 09:31
Change comment: There is no comment for this version
To version 77.60
edited by Xiaoling
on 2022/06/10 09:13
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -275,7 +275,6 @@
275 275  * **MOD5**: Single DI Counting + 2 x AVI + 1 x ACI + DO + RO
276 276  * **ADDMOD6**: Trigger Mode, Optional, used together with MOD1 ~~ MOD5
277 277  
278 -
279 279  === 3.3.1 AT+MOD~=1, 2ACI+2AVI ===
280 280  
281 281  The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by default.
... ... @@ -283,8 +283,6 @@
283 283  [[image:image-20220523174024-3.png]]
284 284  
285 285  (((
286 -
287 -
288 288  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
289 289  )))
290 290  
... ... @@ -298,7 +298,6 @@
298 298  
299 299  For example if payload is: [[image:image-20220523175847-2.png]]
300 300  
301 -
302 302  **The value for the interface is:  **
303 303  
304 304  AVI1 channel voltage is 0x04AB/1000=1195(DEC)/1000=1.195V
... ... @@ -329,10 +329,8 @@
329 329  ** DO1 is high in case there is load between DO1 and V+.
330 330  ** DO1 LED is off in both case
331 331  
332 -
333 333  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
334 334  
335 -
336 336  **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins.
337 337  
338 338  (((
... ... @@ -341,7 +341,6 @@
341 341  
342 342  [[image:image-20220523180452-3.png]]
343 343  
344 -
345 345  (((
346 346  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DO3, DO2 and DO1. Totally 1bytes as below
347 347  )))
... ... @@ -357,8 +357,6 @@
357 357  )))
358 358  
359 359  (((
360 -
361 -
362 362  **To use counting mode, please run:**
363 363  )))
364 364  
... ... @@ -377,8 +377,6 @@
377 377  )))
378 378  
379 379  (((
380 -
381 -
382 382  (% style="color:#4f81bd" %)**AT Commands for counting:**
383 383  )))
384 384  
... ... @@ -475,9 +475,9 @@
475 475  )))
476 476  
477 477  
467 +
478 478  === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting ===
479 479  
480 -
481 481  **LT22222-L**: This mode the DI1 is used as a counting pin.
482 482  
483 483  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.
... ... @@ -484,7 +484,6 @@
484 484  
485 485  [[image:image-20220523181903-8.png]]
486 486  
487 -
488 488  (((
489 489  (% style="color:#4f81bd" %)**DIDORO **(%%)is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
490 490  )))
... ... @@ -500,8 +500,6 @@
500 500  )))
501 501  
502 502  (((
503 -
504 -
505 505  **To use this mode, please run:**
506 506  )))
507 507  
... ... @@ -528,8 +528,6 @@
528 528  )))
529 529  
530 530  (((
531 -
532 -
533 533  **Plus below command for AVI1 Counting:**
534 534  )))
535 535  
... ... @@ -565,14 +565,11 @@
565 565  
566 566  === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI ===
567 567  
568 -
569 569  **LT22222-L**: This mode the DI1 is used as a counting pin.
570 570  
571 571  [[image:image-20220523182334-9.png]]
572 572  
573 573  (((
574 -
575 -
576 576  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
577 577  )))
578 578  
... ... @@ -587,8 +587,6 @@
587 587  )))
588 588  
589 589  (((
590 -
591 -
592 592  **To use this mode, please run:**
593 593  )))
594 594  
... ... @@ -608,6 +608,8 @@
608 608  
609 609  (((
610 610  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
590 +
591 +
611 611  )))
612 612  
613 613  
... ... @@ -614,7 +614,6 @@
614 614  
615 615  === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) ===
616 616  
617 -
618 618  (% style="color:#4f81bd" %)**This mode is an optional mode for trigger purpose. It can run together with other mode.**
619 619  
620 620  For example, if user has configured below commands:
... ... @@ -627,8 +627,6 @@
627 627  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
628 628  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.**
629 629  
630 -
631 -
632 632  **AT Command to set Trigger Condition**:
633 633  
634 634  (% style="color:#4f81bd" %)**Trigger base on voltage**:
... ... @@ -642,7 +642,6 @@
642 642  AT+AVLIM=5000,0,0,0   (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore)
643 643  
644 644  
645 -
646 646  (% style="color:#4f81bd" %)**Trigger base on current**:
647 647  
648 648  Format: AT+ACLIM=<AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH>
... ... @@ -652,7 +652,6 @@
652 652  AT+ACLIM=10000,15000,0,0   (If ACI1 voltage lower than 10mA or higher than 15mA, trigger an uplink)
653 653  
654 654  
655 -
656 656  (% style="color:#4f81bd" %)**Trigger base on DI status**:
657 657  
658 658  DI status trigger Flag.
... ... @@ -659,13 +659,12 @@
659 659  
660 660  Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >
661 661  
662 -
663 663  **Example:**
664 664  
665 665  AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
666 666  
667 667  
668 -**Downlink Command to set Trigger Condition:**
643 +**Downlink Command to set Trigger Condition**
669 669  
670 670  Type Code: 0xAA. Downlink command same as AT Command **AT+AVLIM, AT+ACLIM**
671 671  
... ... @@ -683,18 +683,14 @@
683 683  
684 684   Yy4 yy4: AC2 or AV2 high limit.
685 685  
686 -
687 687  **Example1**: AA 00 13 88 00 00 00 00 00 00
688 688  
689 689  Same as AT+AVLIM=5000,0,0,0   (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore)
690 690  
691 -
692 692  **Example2**: AA 02 01 00
693 693  
694 694  Same as AT+ DTRI =1,0  (Enable DI1 trigger / disable DI2 trigger)
695 695  
696 -
697 -
698 698  (% style="color:#4f81bd" %)**Trigger Settings Payload Explanation:**
699 699  
700 700  MOD6 Payload : total 11 bytes payload
... ... @@ -701,7 +701,6 @@
701 701  
702 702  [[image:image-20220524085923-1.png]]
703 703  
704 -
705 705  (% style="color:#4f81bd" %)**TRI FLAG1**(%%) is a combination to show if trigger is set for this part. Totally 1byte as below
706 706  
707 707  [[image:image-20220524090106-2.png]]
... ... @@ -708,8 +708,6 @@
708 708  
709 709  * Each bits shows if the corresponding trigger has been configured.
710 710  
711 -
712 -
713 713  **Example:**
714 714  
715 715  10100000: Means the system has configure to use the trigger: AC1_LOW and AV2_LOW
... ... @@ -721,8 +721,6 @@
721 721  
722 722  * Each bits shows which status has been trigger on this uplink.
723 723  
724 -
725 -
726 726  **Example:**
727 727  
728 728  10000000: Means this packet is trigger by AC1_LOW. Means voltage too low.
... ... @@ -734,8 +734,6 @@
734 734  
735 735  * Each bits shows which status has been trigger on this uplink.
736 736  
737 -
738 -
739 739  **Example:**
740 740  
741 741  00000111: Means both DI1 and DI2 trigger are enabled and this packet is trigger by DI1.
... ... @@ -756,8 +756,6 @@
756 756  === 3.3.7 Payload Decoder ===
757 757  
758 758  (((
759 -
760 -
761 761  **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/]]
762 762  
763 763  
... ... @@ -777,8 +777,6 @@
777 777  
778 778  * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for LT-22222-L.  User can see these commands below:
779 779  
780 -
781 -
782 782  === 3.4.1 Common Commands ===
783 783  
784 784  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]]
... ... @@ -800,7 +800,6 @@
800 800  
801 801  **Example: **AT+TDC=30000. Means set interval to 30 seconds
802 802  
803 -
804 804  * Downlink Payload (prefix 0x01):
805 805  
806 806  (% class="box infomessage" %)
... ... @@ -823,7 +823,6 @@
823 823  
824 824  **Example**: AT+MOD=2. Set work mode to Double DI counting mode
825 825  
826 -
827 827  * Downlink Payload (prefix 0x0A):
828 828  
829 829  (% class="box infomessage" %)
... ... @@ -839,7 +839,6 @@
839 839  
840 840  There is no AT Command to poll uplink
841 841  
842 -
843 843  * Downlink Payload (prefix 0x08):
844 844  
845 845  (% class="box infomessage" %)
... ... @@ -866,7 +866,6 @@
866 866  
867 867  0: Disable Trigger Mode
868 868  
869 -
870 870  * Downlink Payload (prefix 0x0A 06):
871 871  
872 872  (% class="box infomessage" %)
... ... @@ -884,7 +884,6 @@
884 884  
885 885  There is no AT Command for this feature.
886 886  
887 -
888 888  * Downlink Payload (prefix 0x AB 06):
889 889  
890 890  (% class="box infomessage" %)
... ... @@ -905,7 +905,6 @@
905 905  **Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >**
906 906  )))
907 907  
908 -
909 909  **Example:**
910 910  
911 911  AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
... ... @@ -934,12 +934,10 @@
934 934  
935 935  b : delay timing.
936 936  
937 -
938 938  **Example:**
939 939  
940 940  AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms )
941 941  
942 -
943 943  * Downlink Payload (prefix 0x09 01 ):
944 944  
945 945  (% class="box infomessage" %)
... ... @@ -964,12 +964,10 @@
964 964  
965 965  b : delay timing.
966 966  
967 -
968 968  **Example:**
969 969  
970 970  AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms )
971 971  
972 -
973 973  * Downlink Payload (prefix 0x09 02 ):
974 974  
975 975  (% class="box infomessage" %)
... ... @@ -990,7 +990,6 @@
990 990  **AT+ACLIM. **
991 991  )))
992 992  
993 -
994 994  * Downlink Payload (prefix 0xAA 01 ):
995 995  
996 996  (% class="box infomessage" %)
... ... @@ -1011,7 +1011,6 @@
1011 1011  **AT+AVLIM. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
1012 1012  )))
1013 1013  
1014 -
1015 1015  * Downlink Payload (prefix 0xAA 00 ):
1016 1016  
1017 1017  (% class="box infomessage" %)
... ... @@ -1032,7 +1032,6 @@
1032 1032  **AT+ATDC=5. Device won’t response the second trigger within 5 minute after the first trigger.**
1033 1033  )))
1034 1034  
1035 -
1036 1036  * Downlink Payload (prefix 0xAC ):
1037 1037  
1038 1038  (% class="box infomessage" %)
... ... @@ -1048,7 +1048,6 @@
1048 1048  
1049 1049  There is no AT Command to control Digital Output
1050 1050  
1051 -
1052 1052  * Downlink Payload (prefix 0x02):
1053 1053  
1054 1054  (% class="box infomessage" %)
... ... @@ -1082,7 +1082,6 @@
1082 1082  
1083 1083  There is no AT Command to control Digital Output
1084 1084  
1085 -
1086 1086  * Downlink Payload (prefix 0xA9):
1087 1087  
1088 1088  (% class="box infomessage" %)
... ... @@ -1102,22 +1102,18 @@
1102 1102  
1103 1103  00: DO pins will change to an inverter state after timeout 
1104 1104  
1105 -
1106 1106  (% style="color:#4f81bd" %)**Third Byte**(%%): Control Method and Ports status:
1107 1107  
1108 1108  [[image:image-20220524093238-6.png]]
1109 1109  
1110 -
1111 1111  (% style="color:#4f81bd" %)**Fourth Byte**(%%): Control Method and Ports status:
1112 1112  
1113 1113  [[image:image-20220524093328-7.png]]
1114 1114  
1115 -
1116 1116  (% style="color:#4f81bd" %)**Fifth Byte**(%%): Control Method and Ports status:
1117 1117  
1118 1118  [[image:image-20220524093351-8.png]]
1119 1119  
1120 -
1121 1121  (% style="color:#4f81bd" %)**Sixth and Seventh Byte**:
1122 1122  
1123 1123   Latching time. Unit: ms
... ... @@ -1124,7 +1124,6 @@
1124 1124  
1125 1125  Device will upload a packet if downlink code executes successfully.
1126 1126  
1127 -
1128 1128  **Example payload:**
1129 1129  
1130 1130  **~1. A9 01 01 01 01 07 D0**
... ... @@ -1145,13 +1145,12 @@
1145 1145  
1146 1146  
1147 1147  
1148 -==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
1088 +=== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ===
1149 1149  
1150 1150  * AT Command:
1151 1151  
1152 1152  There is no AT Command to control Relay Output
1153 1153  
1154 -
1155 1155  * Downlink Payload (prefix 0x03):
1156 1156  
1157 1157  (% class="box infomessage" %)
... ... @@ -1181,7 +1181,6 @@
1181 1181  
1182 1182  There is no AT Command to control Relay Output
1183 1183  
1184 -
1185 1185  * Downlink Payload (prefix 0x05):
1186 1186  
1187 1187  (% class="box infomessage" %)
... ... @@ -1199,17 +1199,14 @@
1199 1199  
1200 1200  00: Relays will change to an inverter state after timeout
1201 1201  
1202 -
1203 1203  (% style="color:#4f81bd" %)**Third Byte(bb)**(%%): Control Method and Ports status:
1204 1204  
1205 1205  [[image:image-20220524093831-10.png]]
1206 1206  
1207 -
1208 1208  (% style="color:#4f81bd" %)**Fourth/Fifth Bytes(cc)**(%%): Latching time. Unit: ms
1209 1209  
1210 1210  Device will upload a packet if downlink code executes successfully.
1211 1211  
1212 -
1213 1213  **Example payload:**
1214 1214  
1215 1215  **~1. 05 01 11 07 D0**
... ... @@ -1241,7 +1241,6 @@
1241 1241  **AT+VOLMAX    ~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]**
1242 1242  )))
1243 1243  
1244 -
1245 1245  * Downlink Payload (prefix 0xA5):
1246 1246  
1247 1247  (% class="box infomessage" %)
... ... @@ -1268,7 +1268,6 @@
1268 1268  
1269 1269  Bb cc dd ee: number to be set
1270 1270  
1271 -
1272 1272  * Downlink Payload (prefix 0xA8):
1273 1273  
1274 1274  (% class="box infomessage" %)
... ... @@ -1321,6 +1321,7 @@
1321 1321  )))
1322 1322  
1323 1323  
1257 +
1324 1324  == 3.5 Integrate with Mydevice ==
1325 1325  
1326 1326  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: