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

From version 232.1
edited by Dilisi S
on 2024/12/16 00:55
Change comment: Dec 15 edits - convert remaining AT commands to table format
To version 230.11
edited by Xiaoling
on 2024/12/09 10:06
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.pradeeka
1 +XWiki.Xiaoling
Content
... ... @@ -21,7 +21,6 @@
21 21  
22 22  == 1.1 What is the LT-22222-L I/O Controller? ==
23 23  
24 -
25 25  (((
26 26  (((
27 27  {{info}}
... ... @@ -100,7 +100,6 @@
100 100  
101 101  == 1.3 Features ==
102 102  
103 -
104 104  * LoRaWAN Class A & Class C modes
105 105  * Optional Customized LoRa Protocol
106 106  * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/RU864/IN865/MA869
... ... @@ -111,7 +111,6 @@
111 111  
112 112  == 1.4 Applications ==
113 113  
114 -
115 115  * Smart buildings & home automation
116 116  * Logistics and supply chain management
117 117  * Smart metering
... ... @@ -122,11 +122,11 @@
122 122  == 1.5 Hardware Variants ==
123 123  
124 124  
125 -(% border="1" cellspacing="3" style="width:510px" %)
122 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
126 126  |(% style="background-color:#4f81bd; color:white; width:94px" %)**Model**|(% style="background-color:#4f81bd; color:white; width:172px" %)**Photo**|(% style="background-color:#4f81bd; color:white; width:244px" %)**Description**
127 127  |(% style="width:94px" %)**LT-22222-L**|(% style="width:172px" %)(((
128 128  (% style="text-align:center" %)
129 -[[image:lt33222-l.jpg||height="110" width="95"]]
126 +[[image:lt33222-l.jpg||height="116" width="100"]]
130 130  )))|(% style="width:256px" %)(((
131 131  * 2 x Digital Input (Bi-direction)
132 132  * 2 x Digital Output
... ... @@ -140,7 +140,6 @@
140 140  
141 141  == 2.1 Connecting the antenna ==
142 142  
143 -
144 144  Connect the LoRa antenna to the antenna connector, **ANT**,** **located on the top right side of the device, next to the upper screw terminal block. Secure the antenna by tightening it clockwise.
145 145  
146 146  {{warning}}
... ... @@ -147,41 +147,38 @@
147 147  **Warning! Do not power on the device without connecting the antenna.**
148 148  {{/warning}}
149 149  
150 -
151 151  == 2.2 Terminals ==
152 152  
153 -
154 154  The  LT-22222-L has two screw terminal blocks. The upper screw treminal block has 6 screw terminals and the lower screw terminal block has 10 screw terminals.
155 155  
156 156  **Upper screw terminal block (from left to right):**
157 157  
158 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:381px" %)
159 -|=(% style="width: 139px;background-color:#4f81bd;color:white" %)Screw Terminal|=(% style="width: 242px;background-color:#4f81bd;color:white" %)Function
160 -|(% style="width:139px" %)GND|(% style="width:242px" %)Ground
161 -|(% style="width:139px" %)VIN|(% style="width:242px" %)Input Voltage
162 -|(% style="width:139px" %)AVI2|(% style="width:242px" %)Analog Voltage Input Terminal 2
163 -|(% style="width:139px" %)AVI1|(% style="width:242px" %)Analog Voltage Input Terminal 1
164 -|(% style="width:139px" %)ACI2|(% style="width:242px" %)Analog Current Input Terminal 2
165 -|(% style="width:139px" %)ACI1|(% style="width:242px" %)Analog Current Input Terminal 1
152 +(% style="width:634px" %)
153 +|=(% style="width: 295px;" %)Screw Terminal|=(% style="width: 338px;" %)Function
154 +|(% style="width:295px" %)GND|(% style="width:338px" %)Ground
155 +|(% style="width:295px" %)VIN|(% style="width:338px" %)Input Voltage
156 +|(% style="width:295px" %)AVI2|(% style="width:338px" %)Analog Voltage Input Terminal 2
157 +|(% style="width:295px" %)AVI1|(% style="width:338px" %)Analog Voltage Input Terminal 1
158 +|(% style="width:295px" %)ACI2|(% style="width:338px" %)Analog Current Input Terminal 2
159 +|(% style="width:295px" %)ACI1|(% style="width:338px" %)Analog Current Input Terminal 1
166 166  
167 167  **Lower screw terminal block (from left to right):**
168 168  
169 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:253px" %)
170 -|=(% style="width: 125px;background-color:#4f81bd;color:white" %)Screw Terminal|=(% style="width: 128px;background-color:#4f81bd;color:white" %)Function
171 -|(% style="width:125px" %)RO1-2|(% style="width:128px" %)Relay Output 1
172 -|(% style="width:125px" %)RO1-1|(% style="width:128px" %)Relay Output 1
173 -|(% style="width:125px" %)RO2-2|(% style="width:128px" %)Relay Output 2
174 -|(% style="width:125px" %)RO2-1|(% style="width:128px" %)Relay Output 2
175 -|(% style="width:125px" %)DI2+|(% style="width:128px" %)Digital Input 2
176 -|(% style="width:125px" %)DI2-|(% style="width:128px" %)Digital Input 2
177 -|(% style="width:125px" %)DI1+|(% style="width:128px" %)Digital Input 1
178 -|(% style="width:125px" %)DI1-|(% style="width:128px" %)Digital Input 1
179 -|(% style="width:125px" %)DO2|(% style="width:128px" %)Digital Output 2
180 -|(% style="width:125px" %)DO1|(% style="width:128px" %)Digital Output 1
163 +(% style="width:633px" %)
164 +|=(% style="width: 296px;" %)Screw Terminal|=(% style="width: 334px;" %)Function
165 +|(% style="width:296px" %)RO1-2|(% style="width:334px" %)Relay Output 1
166 +|(% style="width:296px" %)RO1-1|(% style="width:334px" %)Relay Output 1
167 +|(% style="width:296px" %)RO2-2|(% style="width:334px" %)Relay Output 2
168 +|(% style="width:296px" %)RO2-1|(% style="width:334px" %)Relay Output 2
169 +|(% style="width:296px" %)DI2+|(% style="width:334px" %)Digital Input 2
170 +|(% style="width:296px" %)DI2-|(% style="width:334px" %)Digital Input 2
171 +|(% style="width:296px" %)DI1+|(% style="width:334px" %)Digital Input 1
172 +|(% style="width:296px" %)DI1-|(% style="width:334px" %)Digital Input 1
173 +|(% style="width:296px" %)DO2|(% style="width:334px" %)Digital Output 2
174 +|(% style="width:296px" %)DO1|(% style="width:334px" %)Digital Output 1
181 181  
182 182  == 2.3 Connecting LT-22222-L to a Power Source ==
183 183  
184 -
185 185  The LT-22222-L I/O Controller can be powered by a **7–24V DC** power source. Connect your power supply’s **positive wire** to the **VIN** and the **negative wire** to the **GND** screw terminals. The power indicator **(PWR) LED** will turn on when the device is properly powered.
186 186  
187 187  {{warning}}
... ... @@ -194,27 +194,23 @@
194 194  
195 195  = 3. Registering LT-22222-L with a LoRaWAN Network Server =
196 196  
197 -
198 198  The LT-22222-L supports both OTAA (Over-the-Air Activation) and ABP (Activation By Personalization) methods to activate with a LoRaWAN Network Server. However, OTAA is the most secure method for activating a device with a LoRaWAN Network Server. OTAA regenerates session keys upon initial registration and regenerates new session keys after any subsequent reboots. By default, the LT-22222-L is configured to operate in LoRaWAN Class C mode.
199 199  
200 200  
201 -== 3.1 Prerequisites ==
193 +=== 3.2.1 Prerequisites ===
202 202  
203 -
204 204  The LT-22222-L comes with device registration information such as DevEUI, AppEUI, and AppKey that allows you to register it with a LoRaWAN network. These registration information can be found on a sticker that can be found inside the package. Please keep the **registration information** sticker in a safe place for future reference.
205 205  
206 206  [[image:image-20230425173427-2.png||height="246" width="530"]]
207 207  
208 208  {{info}}
209 -If you are unable to set the provided root key and other identifiers in the network server, you must generate new keys and identifiers with the network server and configure the device with them using AT commands.
200 +In case you can't set the root key and other identifiers in the network server and must use them from the server, you can use [[AT Commands>>||anchor="H4.UseATCommand"]] to configure them on the device.
210 210  {{/info}}
211 211  
212 212  The following subsections explain how to register the LT-22222-L with different LoRaWAN network server providers.
213 213  
205 +=== 3.2.2 The Things Stack ===
214 214  
215 -== 3.2 The Things Stack ==
216 -
217 -
218 218  This section guides you through how to register your LT-22222-L with The Things Stack Sandbox.
219 219  
220 220  {{info}}
... ... @@ -225,7 +225,7 @@
225 225  The network diagram below illustrates the connection between the LT-22222-L and The Things Stack, as well as how the data can be integrated with the ThingsEye IoT platform.
226 226  
227 227  
228 -[[image:dragino-lorawan-nw-lt-22222-n.jpg||height="374" width="1400"]]
217 +[[image:dragino-lorawan-nw-lt-22222-n.jpg]]
229 229  
230 230  {{info}}
231 231   You can use a LoRaWAN gateway, such as the [[Dragino LPS8N>>https://www.dragino.com/products/lora-lorawan-gateway/item/200-lps8n.html]], to expand or create LoRaWAN coverage in your area.
... ... @@ -232,9 +232,8 @@
232 232  {{/info}}
233 233  
234 234  
235 -=== 3.2.1 Setting up ===
224 +==== 3.2.2.1 Setting up ====
236 236  
237 -
238 238  * Sign up for a free account with [[The Things Stack Sandbox>>https://eu1.cloud.thethings.network]] if you do not have one yet.
239 239  * Log in to your The Things Stack Sandbox account.
240 240  * Create an **application** with The Things Stack if you do not have one yet (E.g., dragino-docs).
... ... @@ -241,10 +241,8 @@
241 241  * Go to your application's page and click on the **End devices** in the left menu.
242 242  * On the End devices page, click on **+ Register end device**. Two registration options are available:
243 243  
232 +==== 3.2.2.2 Using the LoRaWAN Device Repository ====
244 244  
245 -==== 3.2.1.1 Using the LoRaWAN Device Repository ====
246 -
247 -
248 248  * On the **Register end device** page:
249 249  ** Select the option **Select the end device in the LoRaWAN Device Repository **under **Input method**.
250 250  ** Select the **End device brand**, **Model**, **Hardware version**, **Firmware version**, and **Profile (Region)** from the respective dropdown lists.
... ... @@ -268,9 +268,8 @@
268 268  [[image:lt-22222-l-dev-repo-reg-p2.png]]
269 269  
270 270  
271 -==== 3.2.1.2 Adding device manually ====
257 +==== 3.2.2.3 Adding device manually ====
272 272  
273 -
274 274  * On the **Register end device** page:
275 275  ** Select the option **Enter end device specifies manually** under **Input method**.
276 276  ** Select the **Frequency plan** that matches your device from the **Frequency plan** dropdown list.
... ... @@ -300,9 +300,8 @@
300 300  [[image:lt-22222-device-overview.png]]
301 301  
302 302  
303 -=== 3.2.2 Joining ===
288 +==== 3.2.2.4 Joining ====
304 304  
305 -
306 306  On the Device's page, click on **Live data** tab. The Live data panel for your device will display.
307 307  
308 308  Now power on your LT-22222-L. The **TX LED** will **fast-blink 5 times** which means the LT-22222-L will enter the **work mode** and start to **join** The Things Stack network server. The **TX LED** will be on for **5 seconds** after joining the network. In the **Live data** panel, you can see the **join-request** and **join-accept** messages exchanged between the device and the network server.
... ... @@ -311,9 +311,10 @@
311 311  [[image:lt-22222-l-joining.png]]
312 312  
313 313  
314 -=== 3.2.3 Uplinks ===
315 315  
299 +==== 3.2.2.5 Uplinks ====
316 316  
301 +
317 317  After successfully joining, the device will send its first **uplink data message** to the application it belongs to (in this example, **dragino-docs**). When the LT-22222-L sends an uplink message to the server, the **TX LED** turns on for **1 second**. By default, you will receive an uplink data message from the device every 10 minutes.
318 318  
319 319  Click on one of a **Forward uplink data messages **to see its payload content. The payload content is encapsulated within the decode_payload {} JSON object.
... ... @@ -336,9 +336,8 @@
336 336  [[image:lt-22222-l-js-custom-payload-formatter.png]]
337 337  
338 338  
339 -=== 3.2.4 Downlinks ===
324 +==== 3.2.2.6 Downlinks ====
340 340  
341 -
342 342  When the LT-22222-L receives a downlink message from the server, the **RX LED** turns on for **1 second**.
343 343  
344 344  
... ... @@ -361,10 +361,8 @@
361 361  
362 362  The uplink messages are sent over LoRaWAN FPort=2. By default, an uplink message is sent every 10 minutes.
363 363  
364 -
365 365  === 3.3.1 AT+MOD~=1, 2ACI+2AVI ===
366 366  
367 -
368 368  (((
369 369  This is the default mode.
370 370  
... ... @@ -437,7 +437,6 @@
437 437  
438 438  MOD = 1
439 439  
440 -
441 441  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
442 442  
443 443  
... ... @@ -516,7 +516,6 @@
516 516  
517 517  === 3.3.3 AT+MOD~=3, Single DI Counting + 2 x ACI ===
518 518  
519 -
520 520  (% style="color:red" %)**Note: The maximum count depends on the bytes it is.
521 521  The maximum count for four bytes is FFFFFFFF (hex) = 4294967295 (dec).
522 522  It starts counting again when it reaches the maximum value.**
... ... @@ -570,7 +570,6 @@
570 570  
571 571  === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting ===
572 572  
573 -
574 574  (% style="color:red" %)**Note:The maximum count depends on the bytes it is.
575 575  The maximum count for four bytes is FFFFFFFF (hex) = 4294967295 (dec).
576 576  It starts counting again when it reaches the maximum value.**
... ... @@ -640,7 +640,6 @@
640 640  
641 641  === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI ===
642 642  
643 -
644 644  (% style="color:red" %)**Note:The maximum count depends on the bytes it is.
645 645  The maximum count for four bytes is FFFFFFFF (hex) = 4294967295 (dec).
646 646  It starts counting again when it reaches the maximum value.**
... ... @@ -905,6 +905,7 @@
905 905  
906 906  * (% style="color:blue" %)**Sensor-related commands**(%%):
907 907  
886 +
908 908  === 3.4.1 Common commands ===
909 909  
910 910  
... ... @@ -1025,6 +1025,7 @@
1025 1025  Sets the device to working mode 2 (Double DI Counting + DO + RO)
1026 1026  )))
1027 1027  
1007 +
1028 1028  ==== 3.4.2.3 Request an uplink from the device ====
1029 1029  
1030 1030  
... ... @@ -1045,6 +1045,7 @@
1045 1045  Requests an uplink from LT-22222-L.
1046 1046  )))
1047 1047  
1028 +
1048 1048  ==== 3.4.2.4 Enable/Disable Trigger Mode ====
1049 1049  
1050 1050  
... ... @@ -1083,6 +1083,7 @@
1083 1083  Enable trigger mode for the current working mode
1084 1084  )))
1085 1085  
1067 +
1086 1086  ==== 3.4.2.5 Request trigger settings ====
1087 1087  
1088 1088  
... ... @@ -1103,6 +1103,7 @@
1103 1103  Uplinks the trigger settings.
1104 1104  )))
1105 1105  
1088 +
1106 1106  ==== 3.4.2.6 Enable/Disable DI1/DI2/DI3 as a trigger ====
1107 1107  
1108 1108  
... ... @@ -1158,6 +1158,7 @@
1158 1158  Enable DI1 trigger, disable DI2 trigger
1159 1159  )))
1160 1160  
1144 +
1161 1161  ==== 3.4.2.7 Trigger1 – Set DI or DI3 as a trigger ====
1162 1162  
1163 1163  
... ... @@ -1197,6 +1197,7 @@
1197 1197  Set the DI1 port to trigger on a rising edge; the valid signal duration is 100 ms.
1198 1198  )))
1199 1199  
1184 +
1200 1200  ==== 3.4.2.8 Trigger2 – Set DI2 as a trigger ====
1201 1201  
1202 1202  
... ... @@ -1231,6 +1231,7 @@
1231 1231  )))
1232 1232  |(% style="width:96px" %)**Example**|(% style="width:402px" %)09 02 **00 00 64**
1233 1233  
1219 +
1234 1234  ==== 3.4.2.9 Trigger – Set AC (current) as a trigger ====
1235 1235  
1236 1236  
... ... @@ -1281,6 +1281,7 @@
1281 1281  )))
1282 1282  |(% style="width:104px" %)Note|(% style="width:394px" %)See also, [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1283 1283  
1270 +
1284 1284  ==== 3.4.2.10 Trigger – Set AV (voltage) as trigger ====
1285 1285  
1286 1286  
... ... @@ -1329,6 +1329,7 @@
1329 1329  )))
1330 1330  |(% style="width:104px" %)**Note**|(% style="width:394px" %)See also, [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1331 1331  
1319 +
1332 1332  ==== 3.4.2.11 Trigger – Set minimum interval ====
1333 1333  
1334 1334  
... ... @@ -1365,6 +1365,7 @@
1365 1365  )))
1366 1366  |(% style="width:112px" %)Note|(% style="width:386px" %)(% style="color:red" %)**The time must be greater than 5 minutes.**
1367 1367  
1356 +
1368 1368  ==== 3.4.2.12 DO ~-~- Control Digital Output DO1/DO2/DO3 ====
1369 1369  
1370 1370  
... ... @@ -1416,84 +1416,82 @@
1416 1416  )))
1417 1417  )))
1418 1418  
1408 +
1419 1419  ==== 3.4.2.13 DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ====
1420 1420  
1421 1421  
1422 -(% style="color:#037691" %)**AT command**
1412 +* (% style="color:#037691" %)**AT Command**
1423 1423  
1424 1424  There is no AT command to control the digital output.
1425 1425  
1426 1426  
1427 -(% style="color:#037691" %)**Downlink payload**
1417 +* (% style="color:#037691" %)**Downlink Payload (prefix 0xA9)**
1428 1428  
1419 +(% style="color:blue" %)**0xA9 aa bb cc     **(%%) ~/~/ Sets DO1/DO2/DO3 outputs with time control
1429 1429  
1430 -(% border="2" style="width:500px" %)
1431 -|(% style="width:116px" %)**Prefix**|(% style="width:382px" %)0xA9
1432 -|(% style="width:116px" %)**Parameters**|(% style="width:382px" %)(((
1433 -**inverter_mode**: 1 byte in hex.
1421 +This is to control the digital output time of DO pin. Include four bytes:
1434 1434  
1423 +(% style="color:#4f81bd" %)**First byte**(%%)**:** Type code (0xA9)
1424 +
1425 +(% style="color:#4f81bd" %)**Second byte**(%%): Inverter Mode
1426 +
1435 1435  **01:** DO pins revert to their original state after the timeout.
1436 1436  **00:** DO pins switch to an inverted state after the timeout.
1437 1437  
1438 1438  
1439 -**DO1_control_method_and_port_status **- 1 byte in hex
1431 +(% style="color:#4f81bd" %)**Third Byte**(%%): Control Method and Port status:
1440 1440  
1441 -0x01 : DO1 set to low
1433 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1434 +|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1435 +|0x01|DO1 set to low
1436 +|0x00|DO1 set to high
1437 +|0x11|DO1 NO Action
1442 1442  
1443 -0x00 : DO1 set to high
1439 +(% style="color:#4f81bd" %)**Fourth byte**(%%): Control Method and Port status:
1444 1444  
1445 -0x11 : DO1 NO action
1441 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1442 +|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1443 +|0x01|DO2 set to low
1444 +|0x00|DO2 set to high
1445 +|0x11|DO2 NO Action
1446 1446  
1447 +(% style="color:#4f81bd" %)**Fifth byte**(%%): Control Method and Port status:
1447 1447  
1448 -**DO2_control_method_and_port_status** - 1 byte in hex
1449 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1450 +|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1451 +|0x01|DO3 set to low
1452 +|0x00|DO3 set to high
1453 +|0x11|DO3 NO Action
1449 1449  
1450 -0x01 : DO2 set to low
1455 +(% style="color:#4f81bd" %)**Sixth, Seventh, Eighth, and Ninth bytes**:(%%) Latching time (Unit: ms)
1451 1451  
1452 -0x00 : DO2 set to high
1453 1453  
1454 -0x11 : DO2 NO action
1455 -
1456 -
1457 -**DO3_control_method_and_port_status **- 1 byte in hex
1458 -
1459 -0x01 : DO3 set to low
1460 -
1461 -0x00 : DO3 set to high
1462 -
1463 -0x11 : DO3 NO action
1464 -
1465 -
1466 -**latching_time** : 4 bytes in hex
1467 -
1468 1468  (% style="color:red" %)**Note: **
1469 1469  
1470 - Since firmware v1.6.0, the latch time support 4 bytes or 2 bytes
1460 + Since firmware v1.6.0, the latch time support 4 bytes and 2 bytes
1471 1471  
1472 1472   Before firmware v1.6.0, the latch time only supported 2 bytes.
1473 1473  
1474 1474  (% style="color:red" %)**The device will uplink a packet if the downlink code executes successfully.**
1475 -)))
1476 -|(% style="width:116px" %)**Payload format**|(% style="width:382px" %)<prefix><inverter_mode><DO1_control_method_and_port_status><DO2_control_method_and_port_status><DO2_control_method_and_port_status><latching_time>
1477 -|(% style="width:116px" %)**Example**|(% style="width:382px" %)(((
1478 -**A9 01 01 01 01 07 D0**
1479 1479  
1480 -DO1 pin, DO2 pin, and DO3 pin will be set to low, last for 2 seconds, and then revert to their original state.
1481 1481  
1467 +**Example payload:**
1482 1482  
1483 -**A9 01 00 01 11 07 D0**
1469 +**~1. A9 01 01 01 01 07 D0**
1484 1484  
1485 -DO1 pin is set to high, DO2 pin is set to low, and DO3 pin takes no action. This lasts for 2 seconds and then reverts to the original state.
1471 +DO1 pin, DO2 pin, and DO3 pin will be set to low, last for 2 seconds, and then revert to their original state.
1486 1486  
1473 +**2. A9 01 00 01 11 07 D0**
1487 1487  
1488 -**A9 00 00 00 00 07 D0**
1475 +DO1 pin is set to high, DO2 pin is set to low, and DO3 pin takes no action. This lasts for 2 seconds and then reverts to the original state.
1489 1489  
1477 +**3. A9 00 00 00 00 07 D0**
1478 +
1490 1490  DO1 pin, DO2 pin, and DO3 pin will be set to high, last for 2 seconds, and then all change to low.
1491 1491  
1481 +**4. A9 00 11 01 00 07 D0**
1492 1492  
1493 -**A9 00 11 01 00 07 D0**
1494 -
1495 1495  DO1 pin takes no action, DO2 pin is set to low, and DO3 pin is set to high. This lasts for 2 seconds, after which DO1 pin takes no action, DO2 pin is set to high, and DO3 pin is set to low.
1496 -)))
1497 1497  
1498 1498  
1499 1499  ==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
... ... @@ -1731,6 +1731,7 @@
1731 1731  )))
1732 1732  |(% style="width:141px" %)**Example**|(% style="width:357px" %)A6 **01**
1733 1733  
1721 +
1734 1734  ==== 3.4.2.19 Counting ~-~- Set Saving Interval for 'Counting Result' ====
1735 1735  
1736 1736  
... ... @@ -1763,6 +1763,7 @@
1763 1763  Sets the device to save its counting results to the memory every 60 seconds.
1764 1764  )))
1765 1765  
1754 +
1766 1766  ==== 3.4.2.20 Reset saved RO and DO states ====
1767 1767  
1768 1768  
... ... @@ -1813,6 +1813,7 @@
1813 1813  After the device is reset, the previously saved RODO state (limited to MOD2 to MOD5) is read, and it will not change when the device reconnects to the network.
1814 1814  )))
1815 1815  
1805 +
1816 1816  ==== 3.4.2.21 Encrypted payload ====
1817 1817  
1818 1818  
... ... @@ -1952,6 +1952,7 @@
1952 1952  Set DISMACANS=1
1953 1953  )))
1954 1954  
1945 +
1955 1955  ==== 3.4.2.25 Copy downlink to uplink ====
1956 1956  
1957 1957  
... ... @@ -2346,7 +2346,6 @@
2346 2346  
2347 2347  == 3.7 LED Indicators ==
2348 2348  
2349 -
2350 2350  The table below lists the behavior of LED indicators for each port function.
2351 2351  
2352 2352  (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
... ... @@ -2379,13 +2379,10 @@
2379 2379  
2380 2380  = 4. Using AT Commands =
2381 2381  
2382 -
2383 2383  The LT-22222-L supports programming using AT Commands.
2384 2384  
2385 -
2386 2386  == 4.1 Connecting the LT-22222-L to a PC ==
2387 2387  
2388 -
2389 2389  (((
2390 2390  You can use a USB-to-TTL adapter/converter along with a 3.5mm Program Cable to connect the LT-22222-L to a PC, as shown below.
2391 2391  
... ... @@ -2405,10 +2405,7 @@
2405 2405  (((
2406 2406  You can find more details in the [[AT Command Manual>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/]]
2407 2407  
2408 -
2409 2409  == 4.2 LT-22222-L related AT commands ==
2410 -
2411 -
2412 2412  )))
2413 2413  
2414 2414  (((
... ... @@ -2605,19 +2605,16 @@
2605 2605  
2606 2606  == 5.1 Counting how many objects pass through the flow line ==
2607 2607  
2608 -
2609 2609  See [[How to set up to setup counting for objects passing through the flow line>>How to set up to count objects pass in flow line]]?
2610 2610  
2611 2611  
2612 2612  = 6. FAQ =
2613 2613  
2614 -
2615 2615  This section contains some frequently asked questions, which can help you resolve common issues and find solutions quickly.
2616 2616  
2617 2617  
2618 2618  == 6.1 How to update the firmware? ==
2619 2619  
2620 -
2621 2621  Dragino frequently releases firmware updates for the LT-22222-L. Updating your LT-22222-L with the latest firmware version helps to:
2622 2622  
2623 2623  * Support new features
... ... @@ -2670,8 +2670,6 @@
2670 2670  (((
2671 2671  (((
2672 2672  == 6.2 How to change the LoRaWAN frequency band/region? ==
2673 -
2674 -
2675 2675  )))
2676 2676  )))
2677 2677  
... ... @@ -2683,8 +2683,6 @@
2683 2683  
2684 2684  
2685 2685  == 6.3 How to setup LT-22222-L to work with a Single Channel Gateway, such as LG01/LG02? ==
2686 -
2687 -
2688 2688  )))
2689 2689  
2690 2690  (((
... ... @@ -2758,13 +2758,11 @@
2758 2758  
2759 2759  == 6.4 How to change the uplink interval? ==
2760 2760  
2761 -
2762 2762  Please see this link: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/How%20to%20set%20the%20transmit%20time%20interval/]]
2763 2763  
2764 2764  
2765 2765  == 6.5 Can I see the counting event in the serial output? ==
2766 2766  
2767 -
2768 2768  (((
2769 2769  You can run the AT command **AT+DEBUG** to view the counting event in the serial output. If the firmware is too old and doesn’t support AT+DEBUG, update to the latest firmware first.
2770 2770  
... ... @@ -2771,7 +2771,6 @@
2771 2771  
2772 2772  == 6.6 Can I use point-to-point communication with LT-22222-L? ==
2773 2773  
2774 -
2775 2775  Yes, you can. Please refer to the [[Point-to-Point Communication of LT-22222-L>>https://wiki.dragino.com/xwiki/bin/view/Main/%20Point%20to%20Point%20Communication%20of%20LT-22222-L/]] page. The firmware that supports point-to-point communication can be found [[here>>https://github.com/dragino/LT-22222-L/releases]].
2776 2776  
2777 2777  
... ... @@ -2780,7 +2780,6 @@
2780 2780  (((
2781 2781  == 6.7 Why does the relay output default to an open relay after the LT-22222-L is powered off? ==
2782 2782  
2783 -
2784 2784  * If the device is not properly shut down and is directly powered off.
2785 2785  * It will default to a power-off state.
2786 2786  * In modes 2 to 5, the DO/RO status and pulse count are saved to flash memory.
... ... @@ -2788,7 +2788,6 @@
2788 2788  
2789 2789  == 6.8 Can I setup LT-22222-L as a NC (Normally Closed) relay? ==
2790 2790  
2791 -
2792 2792  The LT-22222-L's built-in relay is Normally Open (NO). You can use an external relay to achieve a Normally Closed (NC) configuration. The circuit diagram is shown below:
2793 2793  
2794 2794  
... ... @@ -2797,19 +2797,16 @@
2797 2797  
2798 2798  == 6.9 Can the LT-22222-L save the RO state? ==
2799 2799  
2800 -
2801 2801  To enable this feature, the firmware version must be 1.6.0 or higher.
2802 2802  
2803 2803  
2804 2804  == 6.10 Why does the LT-22222-L always report 15.585V when measuring the AVI? ==
2805 2805  
2806 -
2807 2807  It is likely that the GND is not connected during the measurement, or that the wire connected to the GND is loose.
2808 2808  
2809 2809  
2810 2810  = 7. Troubleshooting =
2811 2811  
2812 -
2813 2813  This section provides some known troubleshooting tips.
2814 2814  
2815 2815  
... ... @@ -2818,8 +2818,6 @@
2818 2818  (((
2819 2819  (((
2820 2820  == 7.1 Downlink isn't working. How can I solve this? ==
2821 -
2822 -
2823 2823  )))
2824 2824  )))
2825 2825  
... ... @@ -2831,8 +2831,6 @@
2831 2831  
2832 2832  
2833 2833  == 7.2 Having trouble uploading an image? ==
2834 -
2835 -
2836 2836  )))
2837 2837  
2838 2838  (((
... ... @@ -2843,8 +2843,6 @@
2843 2843  
2844 2844  
2845 2845  == 7.3 Why can't I join TTN in the US915 /AU915 bands? ==
2846 -
2847 -
2848 2848  )))
2849 2849  
2850 2850  (((
... ... @@ -2854,7 +2854,6 @@
2854 2854  
2855 2855  == 7.4 Why can the LT-22222-L perform uplink normally, but cannot receive downlink? ==
2856 2856  
2857 -
2858 2858  The FCD count of the gateway is inconsistent with the FCD count of the node, causing the downlink to remain in the queue.
2859 2859  Use this command to synchronize their counts: [[Resets the downlink packet count>>||anchor="H3.4.2.23Resetsthedownlinkpacketcount"]]
2860 2860  
... ... @@ -2861,7 +2861,6 @@
2861 2861  
2862 2862  = 8. Ordering information =
2863 2863  
2864 -
2865 2865  (% style="color:#4f81bd" %)**LT-22222-L-XXX:**
2866 2866  
2867 2867  (% style="color:#4f81bd" %)**XXX:**
... ... @@ -2878,7 +2878,6 @@
2878 2878  
2879 2879  = 9. Package information =
2880 2880  
2881 -
2882 2882  **Package includes**:
2883 2883  
2884 2884  * 1 x LT-22222-L I/O Controller
... ... @@ -2895,7 +2895,6 @@
2895 2895  
2896 2896  = 10. Support =
2897 2897  
2898 -
2899 2899  * (((
2900 2900  Support is available Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different time zones, we cannot offer live support. However, your questions will be answered as soon as possible within the aforementioned schedule.
2901 2901  )))
... ... @@ -2907,7 +2907,6 @@
2907 2907  
2908 2908  = 11. Reference​​​​​ =
2909 2909  
2910 -
2911 2911  * LT-22222-L: [[http:~~/~~/www.dragino.com/products/lora-lorawan-end-node/item/156-lt-22222-l.html>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/156-lt-22222-l.html]]
2912 2912  * [[Datasheet, Document Base>>https://www.dropbox.com/sh/gxxmgks42tqfr3a/AACEdsj_mqzeoTOXARRlwYZ2a?dl=0]]
2913 2913  * [[Hardware Source>>url:https://github.com/dragino/Lora/tree/master/LT/LT-33222-L/v1.0]]