<
From version < 196.1 >
edited by Dilisi S
on 2024/11/17 06:09
To version < 198.1 >
edited by Dilisi S
on 2024/11/17 19:33
>
Change comment: Nov 17 - AT commands edits - part 1

Summary

Details

Page properties
Content
... ... @@ -23,6 +23,10 @@
23 23  
24 24  (((
25 25  (((
26 +{{info}}
27 +**This manual is also applicable to the LT-33222-L.**
28 +{{/info}}
29 +
26 26  The Dragino (% style="color:blue" %)**LT-22222-L I/O Controller**(%%) is an advanced LoRaWAN device designed to provide seamless wireless long-range connectivity with various I/O options, including analog current and voltage inputs, digital inputs and outputs, and relay outputs.
27 27  
28 28  The LT-22222-L I/O Controller simplifies and enhances I/O monitoring and controlling. It is ideal for professional applications in wireless sensor networks, including irrigation systems, smart metering, smart cities, building automation, and more. These controllers are designed for easy, cost-effective deployment using LoRa wireless technology.
... ... @@ -111,7 +111,7 @@
111 111  * Smart cities
112 112  * Smart factory
113 113  
114 -= 2. Assembling the device =
118 +== 2. Assembling the device ==
115 115  
116 116  == 2.1 Connecting the antenna ==
117 117  
... ... @@ -850,10 +850,10 @@
850 850  
851 851  (% style="color:#037691" %)**AT command**
852 852  
853 -(% style="width:500px" %)
854 -|**Command**|AT+TDC<time>
857 +(% border="2" style="width:500px" %)
858 +|**Command**|AT+TDC=<time>
855 855  |**Response**|
856 -|**Parameters**|time : uplink interval is in milliseconds
860 +|**Parameters**|**time** : uplink interval is in milliseconds
857 857  |**Example**|(((
858 858  AT+TDC=30000
859 859  
... ... @@ -862,14 +862,14 @@
862 862  
863 863  (% style="color:#037691" %)**Downlink payload**
864 864  
865 -(% style="width:500px" %)
869 +(% border="2" style="width:500px" %)
866 866  |**Payload**|(((
867 867  <prefix><time>
868 868  )))
869 869  |**Parameters**|(((
870 -prefix : 0x01
874 +**prefix** : 0x01
871 871  
872 -time : uplink interval is in milliseconds, represented by 3  bytes in hexadecimal.
876 +**time** : uplink interval is in milliseconds, represented by 3  bytes in hexadecimal.
873 873  )))
874 874  |**Example**|(((
875 875  01 **00 75 30**
... ... @@ -887,11 +887,11 @@
887 887  
888 888  (% style="color:#037691" %)**AT command**
889 889  
890 -(% style="width:500px" %)
891 -|(% style="width:97px" %)**Command**|(% style="width:413px" %)AT+MODE<working_mode>
894 +(% border="2" style="width:500px" %)
895 +|(% style="width:97px" %)**Command**|(% style="width:413px" %)AT+MODE=<working_mode>
892 892  |(% style="width:97px" %)**Response**|(% style="width:413px" %)
893 893  |(% style="width:97px" %)**Parameters**|(% style="width:413px" %)(((
894 -working_mode :
898 +**working_mode** :
895 895  
896 896  1 = (Default mode/factory set):  2ACI + 2AVI + DI + DO + RO
897 897  
... ... @@ -914,12 +914,12 @@
914 914  (% class="wikigeneratedid" %)
915 915  (% style="color:#037691" %)**Downlink payload**
916 916  
917 -(% style="width:500px" %)
921 +(% border="2" style="width:500px" %)
918 918  |(% style="width:98px" %)**Payload**|(% style="width:400px" %)<prefix><working_mode>
919 919  |(% style="width:98px" %)**Parameters**|(% style="width:400px" %)(((
920 -prefix : 0x0A
924 +**prefix** : 0x0A
921 921  
922 -working_mode : Working mode, represented by 1 byte in hexadecimal.
926 +**working_mode** : Working mode, represented by 1 byte in hexadecimal.
923 923  )))
924 924  |(% style="width:98px" %)**Example**|(% style="width:400px" %)(((
925 925  0A **02**
... ... @@ -937,9 +937,9 @@
937 937  
938 938  (% style="color:#037691" %)**Downlink payload**
939 939  
940 -(% style="width:500px" %)
944 +(% border="2" style="width:500px" %)
941 941  |(% style="width:101px" %)**Payload**|(% style="width:397px" %)<prefix>FF
942 -|(% style="width:101px" %)**Parameters**|(% style="width:397px" %)prefix : 0x08
946 +|(% style="width:101px" %)**Parameters**|(% style="width:397px" %)**prefix** : 0x08
943 943  |(% style="width:101px" %)**Example**|(% style="width:397px" %)(((
944 944  08 FF
945 945  
... ... @@ -952,11 +952,11 @@
952 952  
953 953  (% style="color:#037691" %)**AT Command**
954 954  
955 -(% style="width:500px" %)
959 +(% border="2" style="width:500px" %)
956 956  |(% style="width:95px" %)**Command**|(% style="width:403px" %)AT+ADDMOD6=<enable/disable trigger_mode>
957 957  |(% style="width:95px" %)**Response**|(% style="width:403px" %)
958 958  |(% style="width:95px" %)**Parameters**|(% style="width:403px" %)(((
959 -enable/disable trigger_mode :
963 +**enable/disable trigger_mode** :
960 960  
961 961  1 = enable trigger mode
962 962  
... ... @@ -970,12 +970,12 @@
970 970  
971 971  (% style="color:#037691" %)**Downlink payload**
972 972  
973 -(% style="width:500px" %)
977 +(% border="2" style="width:500px" %)
974 974  |(% style="width:97px" %)**Payload**|(% style="width:401px" %)<prefix><enable/disable trigger_mode>
975 975  |(% style="width:97px" %)**Parameters**|(% style="width:401px" %)(((
976 -prefix : 0x0A 06
980 +**prefix** : 0x0A 06
977 977  
978 -working mode : enable (1) or disable (0), represented by 1 byte in hexadecimal.
982 +**working mode** : enable (1) or disable (0), represented by 1 byte in hexadecimal.
979 979  )))
980 980  |(% style="width:97px" %)**Example**|(% style="width:401px" %)(((
981 981  0A 06 **01**
... ... @@ -995,7 +995,7 @@
995 995  
996 996  (% style="width:500px" %)
997 997  |(% style="width:95px" %)**Payload**|(% style="width:403px" %)<prefix>
998 -|(% style="width:95px" %)**Parameters**|(% style="width:403px" %)prefix : AB 06
1002 +|(% style="width:95px" %)**Parameters**|(% style="width:403px" %)**prefix **: AB 06
999 999  |(% style="width:95px" %)**Example**|(% style="width:403px" %)(((
1000 1000  AB 06
1001 1001  
... ... @@ -1002,29 +1002,29 @@
1002 1002  Uplinks the trigger settings.
1003 1003  )))
1004 1004  
1005 -==== 3.4.2.6 Enable/Disable DI1/DI2 as a trigger ====
1009 +==== 3.4.2.6 Enable/Disable DI1/DI2/DI3 as a trigger ====
1006 1006  
1007 -Enable or disable DI1/DI2 as a trigger.
1011 +Enable or disable DI1/DI2/DI3 as a trigger.
1008 1008  
1009 1009  (% style="color:#037691" %)**AT Command**
1010 1010  
1011 1011  (% style="width:500px" %)
1012 -|(% style="width:98px" %)Command|(% style="width:400px" %)AT+DTRI=<DI1_trigger><DI2_trigger>
1013 -|(% style="width:98px" %)Response|(% style="width:400px" %)
1014 -|(% style="width:98px" %)Parameters|(% style="width:400px" %)(((
1015 -DI1_trigger:
1016 +|(% style="width:98px" %)**Command**|(% style="width:400px" %)AT+DTRI=<DI1_trigger>,<DI2_trigger>
1017 +|(% style="width:98px" %)**Response**|(% style="width:400px" %)
1018 +|(% style="width:98px" %)**Parameters**|(% style="width:400px" %)(((
1019 +**DI1_trigger:**
1016 1016  
1017 1017  1 = enable DI1 trigger
1018 1018  
1019 1019  0 = disable DI1 trigger
1020 1020  
1021 -DI2 _trigger
1025 +**DI2 _trigger**
1022 1022  
1023 1023  1 = enable DI2 trigger
1024 1024  
1025 1025  0 = disable DI2 trigger
1026 1026  )))
1027 -|(% style="width:98px" %)Example|(% style="width:400px" %)(((
1031 +|(% style="width:98px" %)**Example**|(% style="width:400px" %)(((
1028 1028  AT+DTRI=1,0
1029 1029  
1030 1030  Enable DI1 trigger, disable DI2 trigger
... ... @@ -1034,23 +1034,23 @@
1034 1034  (% style="color:#037691" %)**Downlink Payload**
1035 1035  
1036 1036  (% style="width:500px" %)
1037 -|(% style="width:101px" %)Payload|(% style="width:397px" %)<prefix><DI1_trigger><DI2_trigger>
1038 -|(% style="width:101px" %)Parameters|(% style="width:397px" %)(((
1039 -prefix : AA 02
1041 +|(% style="width:101px" %)**Payload**|(% style="width:397px" %)<prefix><DI1_trigger><DI2_trigger>
1042 +|(% style="width:101px" %)**Parameters**|(% style="width:397px" %)(((
1043 +**prefix :** AA 02
1040 1040  
1041 -DI1_trigger:
1045 +**DI1_trigger:**
1042 1042  
1043 1043  1 = enable DI1 trigger, represented by 1 byte in hexadecimal.
1044 1044  
1045 1045  0 = disable DI1 trigger, represented by 1 byte in hexadecimal.
1046 1046  
1047 -DI2 _trigger
1051 +**DI2 _trigger**
1048 1048  
1049 1049  1 = enable DI2 trigger, represented by 1 byte in hexadecimal.
1050 1050  
1051 1051  0 = disable DI2 trigger, represented by 1 byte in hexadecimal.
1052 1052  )))
1053 -|(% style="width:101px" %)Example|(% style="width:397px" %)(((
1057 +|(% style="width:101px" %)**Example**|(% style="width:397px" %)(((
1054 1054  AA 02 **01 00**
1055 1055  
1056 1056  Enable DI1 trigger, disable DI2 trigger
... ... @@ -1074,13 +1074,41 @@
1074 1074  (% style="color:blue" %)**0x09 01 aa bb cc    ** (%%) ~/~/ same as AT+TRIG1=aa,0x(bb cc)
1075 1075  
1076 1076  
1081 +(% style="color:#037691" %)**AT Command**
1082 +
1077 1077  (% style="width:500px" %)
1078 -|(% style="width:101px" %)Command|(% style="width:397px" %)
1079 -|(% style="width:101px" %)Response|(% style="width:397px" %)
1080 -|(% style="width:101px" %)Parameters|(% style="width:397px" %)
1081 -|(% style="width:101px" %)Example|(% style="width:397px" %)
1084 +|(% style="width:101px" %)**Command**|(% style="width:397px" %)AT+TRIG1=<interrupt_mode>,<minimum_signal_duration>
1085 +|(% style="width:101px" %)**Response**|(% style="width:397px" %)
1086 +|(% style="width:101px" %)**Parameters**|(% style="width:397px" %)(((
1087 +**interrupt_mode** :  0: falling edge; 1: rising edge, 2: falling and raising edge (for MOD=1).
1082 1082  
1089 +**minimum_signal_duration** : the **minimum signal duration** required for the DI1 port to recognize a valid trigger.
1090 +)))
1091 +|(% style="width:101px" %)**Example**|(% style="width:397px" %)(((
1092 +AT+TRIG1=1,100
1083 1083  
1094 +Set the DI1 port to trigger on a rising edge; the valid signal duration is 100 ms.
1095 +)))
1096 +
1097 +(% class="wikigeneratedid" %)
1098 +(% style="color:#037691" %)**Downlink Payload**
1099 +
1100 +(% border="2" style="width:500px" %)
1101 +|(% style="width:101px" %)**Payload**|(% style="width:397px" %)<prefix><interrupt_mode><minimum_signal_duration>
1102 +|(% style="width:101px" %)**Parameters**|(% style="width:397px" %)(((
1103 +**prefix** : 09 01
1104 +
1105 +**interrupt_mode** : 0: falling edge; 1: rising edge, 2: falling and raising edge (for MOD=1), represented by 1 byte in hexadecimal.
1106 +
1107 +**minimum_signal_duration** : in milliseconds, represented two bytes in hexadecimal.
1108 +)))
1109 +|(% style="width:101px" %)**Example**|(% style="width:397px" %)(((
1110 +09 01 **01 00 64**
1111 +
1112 +Set the DI1 port to trigger on a rising edge; the valid signal duration is 100 ms.
1113 +)))
1114 +
1115 +
1084 1084  ==== 3.4.2.8 Trigger2 – Set DI2 as a trigger ====
1085 1085  
1086 1086  Sets DI2 as a trigger.
... ... @@ -1101,15 +1101,15 @@
1101 1101  
1102 1102  (% style="color:#037691" %)**AT Command**
1103 1103  
1104 -(% style="width:500px" %)
1105 -|(% style="width:94px" %)Command|(% style="width:404px" %)AT+TRIG=<interrupt_mode><minimum_signal_duration>
1106 -|(% style="width:94px" %)Response|(% style="width:404px" %)
1107 -|(% style="width:94px" %)Parameters|(% style="width:404px" %)(((
1108 -interrupt_mode :  0: falling edge; 1: rising edge, 2: falling and raising edge (for MOD=1).
1136 +(% border="2" style="width:500px" %)
1137 +|(% style="width:94px" %)**Command**|(% style="width:404px" %)AT+TRIG2=<interrupt_mode>,<minimum_signal_duration>
1138 +|(% style="width:94px" %)**Response**|(% style="width:404px" %)
1139 +|(% style="width:94px" %)**Parameters**|(% style="width:404px" %)(((
1140 +**interrupt_mode **:  0: falling edge; 1: rising edge, 2: falling and raising edge (for MOD=1).
1109 1109  
1110 -minimum_signal_duration : the **minimum signal duration** required for the DI1 port to recognize a valid trigger.
1142 +**minimum_signal_duration** : the **minimum signal duration** required for the DI1 port to recognize a valid trigger.
1111 1111  )))
1112 -|(% style="width:94px" %)Example|(% style="width:404px" %)(((
1144 +|(% style="width:94px" %)**Example**|(% style="width:404px" %)(((
1113 1113  AT+TRIG2=0,100
1114 1114  
1115 1115  Set the DI1 port to trigger on a falling edge; the valid signal duration is 100 ms.
... ... @@ -1117,16 +1117,16 @@
1117 1117  
1118 1118  (% style="color:#037691" %)**Downlink Payload**
1119 1119  
1120 -(% style="width:500px" %)
1121 -|(% style="width:96px" %)Payload|(% style="width:402px" %)<prefix><interrupt_mode><minimum_signal_duration>
1122 -|(% style="width:96px" %)Parameters|(% style="width:402px" %)(((
1123 -prefix : 09 02
1152 +(% border="2" style="width:500px" %)
1153 +|(% style="width:96px" %)**Payload**|(% style="width:402px" %)<prefix><interrupt_mode><minimum_signal_duration>
1154 +|(% style="width:96px" %)**Parameters**|(% style="width:402px" %)(((
1155 +**prefix** : 09 02
1124 1124  
1125 -interrupt_mode : 0: falling edge; 1: rising edge, 2: falling and raising edge (for MOD=1), represented by 1 byte in hexadecimal.
1157 +**interrupt_mode **: 0: falling edge; 1: rising edge, 2: falling and raising edge (for MOD=1), represented by 1 byte in hexadecimal.
1126 1126  
1127 -<minimum_signal_duration>, represented two bytes in hexadecimal
1159 +**minimum_signal_duration** : in milliseconds, represented two bytes in hexadecimal
1128 1128  )))
1129 -|(% style="width:96px" %)Example|(% style="width:402px" %)09 02 **00 00 64**
1161 +|(% style="width:96px" %)**Example**|(% style="width:402px" %)09 02 **00 00 64**
1130 1130  
1131 1131  ==== 3.4.2.9 Trigger – Set AC (current) as a trigger ====
1132 1132  
... ... @@ -1139,20 +1139,37 @@
1139 1139  (% 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"]]
1140 1140  
1141 1141  
1142 -(% style="width:500px" %)
1143 -|(% style="width:104px" %)Command|(% style="width:394px" %)AT+ACLIM
1144 -|(% style="width:104px" %)Response|(% style="width:394px" %)
1145 -|(% style="width:104px" %)Parameters|(% style="width:394px" %)-
1146 -|(% style="width:104px" %)Example|(% style="width:394px" %)AT+ACLIM
1174 +(% border="2" style="width:500px" %)
1175 +|(% style="width:104px" %)**Command**|(% style="width:394px" %)(((
1176 +AT+ACLIM=<AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH>
1177 +)))
1178 +|(% style="width:104px" %)**Response**|(% style="width:394px" %)
1179 +|(% style="width:104px" %)**Parameters**|(% style="width:394px" %)-
1180 +|(% style="width:104px" %)**Example**|(% style="width:394px" %)(((
1181 +AT+ACLIM=10000,15000,0,0
1147 1147  
1183 +Triggers an uplink if AC1 current is lower than 10mA or higher than 15mA
1184 +)))
1148 1148  
1186 +(% border="2" style="width:500px" %)
1187 +|(% style="width:104px" %)**Payload**|(% style="width:394px" %)<prefix><AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH>
1188 +|(% style="width:104px" %)**Parameters**|(% style="width:394px" %)(((
1189 +**prefix **: AA 01 - two bytes in hexadecimal
1149 1149  
1150 -(% style="width:500px" %)
1151 -|(% style="width:104px" %)Payload|(% style="width:394px" %)<prefix>
1152 -|(% style="width:104px" %)Parameters|(% style="width:394px" %)prefix : AA 01
1153 -|(% style="width:104px" %)Example|(% style="width:394px" %)AA 01 aa bb cc dd ee ff gg hh
1191 +**AC1_LIMIT_LOW** : lower limit of the current to be checked / threshold, two bytes in hexadecimal
1154 1154  
1193 +**AC1_LIMIT_HIGH **: higher limit of the current to be checked / threshold, two bytes in hexadecimal
1155 1155  
1195 +**AC2_LIMIT_HIGH **: lower limit of the current to be checked / threshold, two bytes in hexadecimal
1196 +
1197 +**AC2_LIMIT_HIGH** : higher limit of the current to be checked / threshold, two bytes in hexadecimal
1198 +)))
1199 +|(% style="width:104px" %)**Example**|(% style="width:394px" %)(((
1200 +AA 01 27 10 3A 98 00 00 00 00
1201 +
1202 +Triggers an uplink if AC1 current is lower than 10mA or higher than 15mA
1203 +)))
1204 +
1156 1156  ==== 3.4.2.10 Trigger – Set AV (voltage) as trigger ====
1157 1157  
1158 1158  Sets the current trigger based on the AV port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
... ... @@ -1679,10 +1679,10 @@
1679 1679  
1680 1680  == 3.6 Interface Details ==
1681 1681  
1682 -=== 3.6.1 Digital Input Port: DI1/DI2 /DI3 ( For LT-33222-L, low active ) ===
1731 +=== 3.6.1 Digital Input Ports: DI1/DI2/DI3 (For LT-33222-L, Low Active ) ===
1683 1683  
1684 1684  
1685 -Support NPN-type sensor
1734 +Supports NPN-type sensors.
1686 1686  
1687 1687  [[image:1653356991268-289.png]]
1688 1688  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0