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

From version 230.10
edited by Xiaoling
on 2024/12/09 09:57
Change comment: There is no comment for this version
To version 234.1
edited by Dilisi S
on 2024/12/17 04:57
Change comment: Dec 16 edits - minor edits

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Xiaoling
1 +XWiki.pradeeka
Content
... ... @@ -21,6 +21,7 @@
21 21  
22 22  == 1.1 What is the LT-22222-L I/O Controller? ==
23 23  
24 +
24 24  (((
25 25  (((
26 26  {{info}}
... ... @@ -99,6 +99,7 @@
99 99  
100 100  == 1.3 Features ==
101 101  
103 +
102 102  * LoRaWAN Class A & Class C modes
103 103  * Optional Customized LoRa Protocol
104 104  * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/RU864/IN865/MA869
... ... @@ -109,6 +109,7 @@
109 109  
110 110  == 1.4 Applications ==
111 111  
114 +
112 112  * Smart buildings & home automation
113 113  * Logistics and supply chain management
114 114  * Smart metering
... ... @@ -119,11 +119,11 @@
119 119  == 1.5 Hardware Variants ==
120 120  
121 121  
122 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
125 +(% border="1" cellspacing="3" style="width:510px" %)
123 123  |(% 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**
124 124  |(% style="width:94px" %)**LT-22222-L**|(% style="width:172px" %)(((
125 125  (% style="text-align:center" %)
126 -[[image:lt33222-l.jpg||height="116" width="100"]]
129 +[[image:lt33222-l.jpg||height="110" width="95"]]
127 127  )))|(% style="width:256px" %)(((
128 128  * 2 x Digital Input (Bi-direction)
129 129  * 2 x Digital Output
... ... @@ -137,6 +137,7 @@
137 137  
138 138  == 2.1 Connecting the antenna ==
139 139  
143 +
140 140  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.
141 141  
142 142  {{warning}}
... ... @@ -143,38 +143,41 @@
143 143  **Warning! Do not power on the device without connecting the antenna.**
144 144  {{/warning}}
145 145  
150 +
146 146  == 2.2 Terminals ==
147 147  
153 +
148 148  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.
149 149  
150 150  **Upper screw terminal block (from left to right):**
151 151  
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
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
160 160  
161 161  **Lower screw terminal block (from left to right):**
162 162  
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
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
175 175  
176 176  == 2.3 Connecting LT-22222-L to a Power Source ==
177 177  
184 +
178 178  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.
179 179  
180 180  {{warning}}
... ... @@ -187,23 +187,27 @@
187 187  
188 188  = 3. Registering LT-22222-L with a LoRaWAN Network Server =
189 189  
197 +
190 190  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.
191 191  
192 192  
193 -=== 3.2.1 Prerequisites ===
201 +== 3.1 Prerequisites ==
194 194  
203 +
195 195  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.
196 196  
197 197  [[image:image-20230425173427-2.png||height="246" width="530"]]
198 198  
199 199  {{info}}
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.
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.
201 201  {{/info}}
202 202  
203 203  The following subsections explain how to register the LT-22222-L with different LoRaWAN network server providers.
204 204  
205 -=== 3.2.2 The Things Stack ===
206 206  
215 +== 3.2 The Things Stack ==
216 +
217 +
207 207  This section guides you through how to register your LT-22222-L with The Things Stack Sandbox.
208 208  
209 209  {{info}}
... ... @@ -214,7 +214,7 @@
214 214  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.
215 215  
216 216  
217 -[[image:dragino-lorawan-nw-lt-22222-n.jpg]]
228 +[[image:dragino-lorawan-nw-lt-22222-n.jpg||height="374" width="1400"]]
218 218  
219 219  {{info}}
220 220   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.
... ... @@ -221,8 +221,9 @@
221 221  {{/info}}
222 222  
223 223  
224 -==== 3.2.2.1 Setting up ====
235 +=== 3.2.1 Setting up ===
225 225  
237 +
226 226  * Sign up for a free account with [[The Things Stack Sandbox>>https://eu1.cloud.thethings.network]] if you do not have one yet.
227 227  * Log in to your The Things Stack Sandbox account.
228 228  * Create an **application** with The Things Stack if you do not have one yet (E.g., dragino-docs).
... ... @@ -229,8 +229,9 @@
229 229  * Go to your application's page and click on the **End devices** in the left menu.
230 230  * On the End devices page, click on **+ Register end device**. Two registration options are available:
231 231  
232 -==== 3.2.2.2 Using the LoRaWAN Device Repository ====
244 +==== 3.2.1.1 Using the LoRaWAN Device Repository ====
233 233  
246 +
234 234  * On the **Register end device** page:
235 235  ** Select the option **Select the end device in the LoRaWAN Device Repository **under **Input method**.
236 236  ** Select the **End device brand**, **Model**, **Hardware version**, **Firmware version**, and **Profile (Region)** from the respective dropdown lists.
... ... @@ -254,8 +254,9 @@
254 254  [[image:lt-22222-l-dev-repo-reg-p2.png]]
255 255  
256 256  
257 -==== 3.2.2.3 Adding device manually ====
270 +==== 3.2.1.2 Adding device manually ====
258 258  
272 +
259 259  * On the **Register end device** page:
260 260  ** Select the option **Enter end device specifies manually** under **Input method**.
261 261  ** Select the **Frequency plan** that matches your device from the **Frequency plan** dropdown list.
... ... @@ -285,8 +285,9 @@
285 285  [[image:lt-22222-device-overview.png]]
286 286  
287 287  
288 -==== 3.2.2.4 Joining ====
302 +=== 3.2.2 Joining ===
289 289  
304 +
290 290  On the Device's page, click on **Live data** tab. The Live data panel for your device will display.
291 291  
292 292  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.
... ... @@ -295,10 +295,9 @@
295 295  [[image:lt-22222-l-joining.png]]
296 296  
297 297  
313 +=== 3.2.3 Uplinks ===
298 298  
299 -==== 3.2.2.5 Uplinks ====
300 300  
301 -
302 302  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.
303 303  
304 304  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.
... ... @@ -321,8 +321,9 @@
321 321  [[image:lt-22222-l-js-custom-payload-formatter.png]]
322 322  
323 323  
324 -==== 3.2.2.6 Downlinks ====
338 +=== 3.2.4 Downlinks ===
325 325  
340 +
326 326  When the LT-22222-L receives a downlink message from the server, the **RX LED** turns on for **1 second**.
327 327  
328 328  
... ... @@ -345,8 +345,10 @@
345 345  
346 346  The uplink messages are sent over LoRaWAN FPort=2. By default, an uplink message is sent every 10 minutes.
347 347  
363 +
348 348  === 3.3.1 AT+MOD~=1, 2ACI+2AVI ===
349 349  
366 +
350 350  (((
351 351  This is the default mode.
352 352  
... ... @@ -419,6 +419,7 @@
419 419  
420 420  MOD = 1
421 421  
439 +
422 422  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
423 423  
424 424  
... ... @@ -497,6 +497,7 @@
497 497  
498 498  === 3.3.3 AT+MOD~=3, Single DI Counting + 2 x ACI ===
499 499  
518 +
500 500  (% style="color:red" %)**Note: The maximum count depends on the bytes it is.
501 501  The maximum count for four bytes is FFFFFFFF (hex) = 4294967295 (dec).
502 502  It starts counting again when it reaches the maximum value.**
... ... @@ -550,6 +550,7 @@
550 550  
551 551  === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting ===
552 552  
572 +
553 553  (% style="color:red" %)**Note:The maximum count depends on the bytes it is.
554 554  The maximum count for four bytes is FFFFFFFF (hex) = 4294967295 (dec).
555 555  It starts counting again when it reaches the maximum value.**
... ... @@ -619,6 +619,7 @@
619 619  
620 620  === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI ===
621 621  
642 +
622 622  (% style="color:red" %)**Note:The maximum count depends on the bytes it is.
623 623  The maximum count for four bytes is FFFFFFFF (hex) = 4294967295 (dec).
624 624  It starts counting again when it reaches the maximum value.**
... ... @@ -868,6 +868,7 @@
868 868  
869 869  == 3.4 ​Configure LT-22222-L via AT Commands or Downlinks ==
870 870  
892 +
871 871  (((
872 872  You can configure LT-22222-L I/O Controller via AT Commands or LoRaWAN Downlinks.
873 873  )))
... ... @@ -884,17 +884,22 @@
884 884  
885 885  === 3.4.1 Common commands ===
886 886  
909 +
887 887  (((
888 888  These are available for each sensors and include actions such as changing the uplink interval or resetting the device. For firmware v1.5.4, you can find the supported common commands under: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]]s.
912 +
913 +
889 889  )))
890 890  
891 891  === 3.4.2 Sensor-related commands ===
892 892  
918 +
893 893  These commands are specially designed for the LT-22222-L. Commands can be sent to the device using options such as an AT command or a LoRaWAN downlink payload.
894 894  
895 895  
896 896  ==== 3.4.2.1 Set Transmit/Uplink Interval ====
897 897  
924 +
898 898  Sets the uplink interval of the device. The default uplink transmission interval is 10 minutes.
899 899  
900 900  (% style="color:#037691" %)**AT command**
... ... @@ -941,6 +941,7 @@
941 941  
942 942  ==== 3.4.2.2 Set the Working Mode (AT+MOD) ====
943 943  
971 +
944 944  Sets the working mode.
945 945  
946 946  (% style="color:#037691" %)**AT command**
... ... @@ -998,6 +998,7 @@
998 998  
999 999  ==== 3.4.2.3 Request an uplink from the device ====
1000 1000  
1029 +
1001 1001  Requests an uplink from LT-22222-L. The content of the uplink payload varies based on the device's current working mode.
1002 1002  
1003 1003  (% style="color:#037691" %)**AT command**
... ... @@ -1017,6 +1017,7 @@
1017 1017  
1018 1018  ==== 3.4.2.4 Enable/Disable Trigger Mode ====
1019 1019  
1049 +
1020 1020  Enable or disable the trigger mode for the current working mode (see also [[ADDMOD6>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]).
1021 1021  
1022 1022  (% style="color:#037691" %)**AT Command**
... ... @@ -1054,6 +1054,7 @@
1054 1054  
1055 1055  ==== 3.4.2.5 Request trigger settings ====
1056 1056  
1087 +
1057 1057  Requests the trigger settings.
1058 1058  
1059 1059  (% style="color:#037691" %)**AT Command:**
... ... @@ -1073,6 +1073,7 @@
1073 1073  
1074 1074  ==== 3.4.2.6 Enable/Disable DI1/DI2/DI3 as a trigger ====
1075 1075  
1107 +
1076 1076  Enable or disable DI1/DI2/DI3 as a trigger.
1077 1077  
1078 1078  (% style="color:#037691" %)**AT Command**
... ... @@ -1127,9 +1127,9 @@
1127 1127  
1128 1128  ==== 3.4.2.7 Trigger1 – Set DI or DI3 as a trigger ====
1129 1129  
1162 +
1130 1130  Sets DI1 or DI3 (for LT-33222-L) as a trigger.
1131 1131  
1132 -
1133 1133  (% style="color:#037691" %)**AT Command**
1134 1134  
1135 1135  (% border="2" style="width:500px" %)
... ... @@ -1166,9 +1166,9 @@
1166 1166  
1167 1167  ==== 3.4.2.8 Trigger2 – Set DI2 as a trigger ====
1168 1168  
1201 +
1169 1169  Sets DI2 as a trigger.
1170 1170  
1171 -
1172 1172  (% style="color:#037691" %)**AT Command**
1173 1173  
1174 1174  (% border="2" style="width:500px" %)
... ... @@ -1200,6 +1200,7 @@
1200 1200  
1201 1201  ==== 3.4.2.9 Trigger – Set AC (current) as a trigger ====
1202 1202  
1235 +
1203 1203  Sets the current trigger based on the AC port. See also [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1204 1204  
1205 1205  (% style="color:#037691" %)**AT Command**
... ... @@ -1249,6 +1249,7 @@
1249 1249  
1250 1250  ==== 3.4.2.10 Trigger – Set AV (voltage) as trigger ====
1251 1251  
1285 +
1252 1252  Sets the current trigger based on the AV port. See also [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1253 1253  
1254 1254  (% style="color:#037691" %)**AT Command**
... ... @@ -1296,6 +1296,7 @@
1296 1296  
1297 1297  ==== 3.4.2.11 Trigger – Set minimum interval ====
1298 1298  
1333 +
1299 1299  Sets the AV and AC trigger minimum interval. The device won't respond to a second trigger within this set time after the first trigger.
1300 1300  
1301 1301  (% style="color:#037691" %)**AT Command**
... ... @@ -1331,6 +1331,7 @@
1331 1331  
1332 1332  ==== 3.4.2.12 DO ~-~- Control Digital Output DO1/DO2/DO3 ====
1333 1333  
1369 +
1334 1334  Controls the digital outputs DO1, DO2, and DO3
1335 1335  
1336 1336  (% style="color:#037691" %)**AT Command**
... ... @@ -1382,80 +1382,82 @@
1382 1382  ==== 3.4.2.13 DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ====
1383 1383  
1384 1384  
1385 -* (% style="color:#037691" %)**AT Command**
1421 +(% style="color:#037691" %)**AT command**
1386 1386  
1387 1387  There is no AT command to control the digital output.
1388 1388  
1389 1389  
1390 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA9)**
1426 +(% style="color:#037691" %)**Downlink payload**
1391 1391  
1392 -(% style="color:blue" %)**0xA9 aa bb cc     **(%%) ~/~/ Sets DO1/DO2/DO3 outputs with time control
1393 1393  
1394 -This is to control the digital output time of DO pin. Include four bytes:
1429 +(% border="2" style="width:500px" %)
1430 +|(% style="width:116px" %)**Prefix**|(% style="width:382px" %)0xA9
1431 +|(% style="width:116px" %)**Parameters**|(% style="width:382px" %)(((
1432 +**inverter_mode**: 1 byte in hex.
1395 1395  
1396 -(% style="color:#4f81bd" %)**First byte**(%%)**:** Type code (0xA9)
1397 -
1398 -(% style="color:#4f81bd" %)**Second byte**(%%): Inverter Mode
1399 -
1400 1400  **01:** DO pins revert to their original state after the timeout.
1401 1401  **00:** DO pins switch to an inverted state after the timeout.
1402 1402  
1403 1403  
1404 -(% style="color:#4f81bd" %)**Third Byte**(%%): Control Method and Port status:
1438 +**DO1_control_method_and_port_status **- 1 byte in hex
1405 1405  
1406 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1407 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1408 -|0x01|DO1 set to low
1409 -|0x00|DO1 set to high
1410 -|0x11|DO1 NO Action
1440 +0x01 : DO1 set to low
1411 1411  
1412 -(% style="color:#4f81bd" %)**Fourth byte**(%%): Control Method and Port status:
1442 +0x00 : DO1 set to high
1413 1413  
1414 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1415 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1416 -|0x01|DO2 set to low
1417 -|0x00|DO2 set to high
1418 -|0x11|DO2 NO Action
1444 +0x11 : DO1 NO action
1419 1419  
1420 -(% style="color:#4f81bd" %)**Fifth byte**(%%): Control Method and Port status:
1421 1421  
1422 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1423 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1424 -|0x01|DO3 set to low
1425 -|0x00|DO3 set to high
1426 -|0x11|DO3 NO Action
1447 +**DO2_control_method_and_port_status** - 1 byte in hex
1427 1427  
1428 -(% style="color:#4f81bd" %)**Sixth, Seventh, Eighth, and Ninth bytes**:(%%) Latching time (Unit: ms)
1449 +0x01 : DO2 set to low
1429 1429  
1451 +0x00 : DO2 set to high
1430 1430  
1431 -(% style="color:red" %)**Note: **
1453 +0x11 : DO2 NO action
1432 1432  
1433 - Since firmware v1.6.0, the latch time support 4 bytes and 2 bytes
1434 1434  
1435 - Before firmware v1.6.0, the latch time only supported 2 bytes.
1456 +**DO3_control_method_and_port_status **- 1 byte in hex
1436 1436  
1437 -(% style="color:red" %)**The device will uplink a packet if the downlink code executes successfully.**
1458 +0x01 : DO3 set to low
1438 1438  
1460 +0x00 : DO3 set to high
1439 1439  
1440 -**Example payload:**
1462 +0x11 : DO3 NO action
1441 1441  
1442 -**~1. A9 01 01 01 01 07 D0**
1443 1443  
1465 +**latching_time** : 4 bytes in hex
1466 +
1467 +(% style="color:red" %)**Note: **
1468 +
1469 + Since firmware v1.6.0, the latch time support 4 bytes or 2 bytes
1470 +
1471 + Before firmware v1.6.0, the latch time only supported 2 bytes.
1472 +
1473 +(% style="color:red" %)**The device will uplink a packet if the downlink code executes successfully.**
1474 +)))
1475 +|(% 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>
1476 +|(% style="width:116px" %)**Example**|(% style="width:382px" %)(((
1477 +**A9 01 01 01 01 07 D0**
1478 +
1444 1444  DO1 pin, DO2 pin, and DO3 pin will be set to low, last for 2 seconds, and then revert to their original state.
1445 1445  
1446 -**2. A9 01 00 01 11 07 D0**
1447 1447  
1482 +**A9 01 00 01 11 07 D0**
1483 +
1448 1448  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.
1449 1449  
1450 -**3. A9 00 00 00 00 07 D0**
1451 1451  
1487 +**A9 00 00 00 00 07 D0**
1488 +
1452 1452  DO1 pin, DO2 pin, and DO3 pin will be set to high, last for 2 seconds, and then all change to low.
1453 1453  
1454 -**4. A9 00 11 01 00 07 D0**
1455 1455  
1492 +**A9 00 11 01 00 07 D0**
1493 +
1456 1456  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.
1495 +)))
1457 1457  
1458 -
1459 1459  ==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
1460 1460  
1461 1461  
... ... @@ -1493,6 +1493,7 @@
1493 1493  
1494 1494  ==== 3.4.2.15 Relay ~-~- Control Relay Output RO1/RO2 with time control ====
1495 1495  
1534 +
1496 1496  Controls the relay output time.
1497 1497  
1498 1498  * (% style="color:#037691" %)**AT Command:**
... ... @@ -1692,6 +1692,7 @@
1692 1692  
1693 1693  ==== 3.4.2.19 Counting ~-~- Set Saving Interval for 'Counting Result' ====
1694 1694  
1734 +
1695 1695  This command allows you to configure the device to save its counting result to internal flash memory at specified intervals. By setting a save time, the device will periodically store the counting data to prevent loss in case of power failure. The save interval can be adjusted to suit your requirements, with a minimum value of 30 seconds.
1696 1696  
1697 1697  (% style="color:#037691" %)**AT Command**
... ... @@ -1723,6 +1723,7 @@
1723 1723  
1724 1724  ==== 3.4.2.20 Reset saved RO and DO states ====
1725 1725  
1766 +
1726 1726  This command allows you to reset the saved relay output (RO) and digital output (DO) states when the device joins the network. By configuring this setting, you can control whether the device should retain or reset the relay states after a reset and rejoin to the network.
1727 1727  
1728 1728  (% style="color:#037691" %)**AT Command**
... ... @@ -1772,6 +1772,7 @@
1772 1772  
1773 1773  ==== 3.4.2.21 Encrypted payload ====
1774 1774  
1816 +
1775 1775  This command allows you to configure whether the device should upload data in an encrypted format or in plaintext. By default, the device encrypts the payload before uploading. You can toggle this setting to either upload encrypted data or transmit it without encryption.
1776 1776  
1777 1777  (% style="color:#037691" %)**AT Command:**
... ... @@ -1801,6 +1801,7 @@
1801 1801  
1802 1802  ==== 3.4.2.22 Get sensor value ====
1803 1803  
1846 +
1804 1804  This command allows you to retrieve and optionally uplink sensor readings through the serial port.
1805 1805  
1806 1806  (% style="color:#037691" %)**AT Command**
... ... @@ -1830,6 +1830,7 @@
1830 1830  
1831 1831  ==== 3.4.2.23 Resetting the downlink packet count ====
1832 1832  
1876 +
1833 1833  This command manages how the node handles mismatched downlink packet counts. It offers two modes: one disables the reception of further downlink packets if discrepancies occur, while the other resets the downlink packet count to align with the server, ensuring continued communication.
1834 1834  
1835 1835  (% style="color:#037691" %)**AT Command**
... ... @@ -1908,6 +1908,7 @@
1908 1908  
1909 1909  ==== 3.4.2.25 Copy downlink to uplink ====
1910 1910  
1955 +
1911 1911  This command enables the device to immediately uplink the payload of a received downlink packet back to the server. The command allows for quick data replication from downlink to uplink, with a fixed port number of 100.
1912 1912  
1913 1913  (% style="color:#037691" %)**AT Command**(%%)**:**
... ... @@ -1933,6 +1933,7 @@
1933 1933  
1934 1934  ==== 3.4.2.26 Query firmware version, frequency band, sub band, and TDC time ====
1935 1935  
1981 +
1936 1936  This command is used to query key information about the device, including its firmware version, frequency band, sub band, and TDC time. By sending the specified payload as a downlink, the server can retrieve this essential data from the device.
1937 1937  
1938 1938  * (((
... ... @@ -1951,10 +1951,13 @@
1951 1951  
1952 1952  == 3.5 Integrating with ThingsEye.io ==
1953 1953  
2000 +
1954 1954  The Things Stack application supports integration with ThingsEye.io. Once integrated, ThingsEye.io acts as an MQTT client for The Things Stack MQTT broker, allowing it to subscribe to upstream traffic and publish downlink traffic.
1955 1955  
2003 +
1956 1956  === 3.5.1 Configuring The Things Stack ===
1957 1957  
2006 +
1958 1958  We use The Things Stack Sandbox in this example:
1959 1959  
1960 1960  * In **The Things Stack Sandbox**, go to the **Application **for the LT-22222-L you added.
... ... @@ -1968,8 +1968,10 @@
1968 1968  
1969 1969  [[image:tts-mqtt-integration.png]]
1970 1970  
2020 +
1971 1971  === 3.5.2 Configuring ThingsEye.io ===
1972 1972  
2023 +
1973 1973  The ThingsEye.io IoT platform is not open for self-registration at the moment. If you are interested in testing the platform, please send your project information to admin@thingseye.io, and we will create an account for you.
1974 1974  
1975 1975  * Login to your [[ThingsEye.io >>https://thingseye.io]]account.
... ... @@ -2039,6 +2039,7 @@
2039 2039  
2040 2040  ==== 3.5.2.1 Viewing integration details ====
2041 2041  
2093 +
2042 2042  Click on your integration from the list. The **Integration details** window will appear with the **Details **tab selected. The **Details **tab shows all the settings you have provided for this integration.
2043 2043  
2044 2044  [[image:integration-details.png]]
... ... @@ -2050,8 +2050,10 @@
2050 2050  See also [[ThingsEye documentation>>https://wiki.thingseye.io/xwiki/bin/view/Main/]].
2051 2051  {{/info}}
2052 2052  
2053 -==== **3.5.2.2 Viewing events** ====
2054 2054  
2106 +==== 3.5.2.2 Viewing events ====
2107 +
2108 +
2055 2055  The **Events **tab displays all the uplink messages from the LT-22222-L.
2056 2056  
2057 2057  * Select **Debug **from the **Event type** dropdown.
... ... @@ -2060,21 +2060,27 @@
2060 2060  [[image:thingseye-events.png]]
2061 2061  
2062 2062  
2063 -* To view the **JSON payload** of a message, click on the **three dots (...)** in the Message column of the desired message.
2117 +* To view the **JSON payload** of a message, click on the **three dots (...)** in the **Message** column of the desired message.
2064 2064  
2065 2065  [[image:thingseye-json.png]]
2066 2066  
2067 2067  
2068 -==== **3.5.2.3 Deleting an integration** ====
2122 +==== 3.5.2.3 Deleting an integration ====
2069 2069  
2124 +
2070 2070  If you want to delete an integration, click the **Delete integratio**n button on the Integrations page.
2071 2071  
2072 2072  
2073 -==== 3.5.2.4 Creating a Dashboard to Display and Analyze LT-22222-L Data ====
2128 +==== 3.5.2.4 Viewing sensor data on a dashboard ====
2074 2074  
2075 -This will be added soon.
2076 2076  
2131 +You can create a dashboard with ThingsEye to visualize the sensor data coming from the LHT65N-VIB. The following image shows a dashboard created for the LT-22222-L. See **Creating a dashboard** in ThingsEye documentation for more information.
2077 2077  
2133 +
2134 +
2135 +[[image:lt-22222-l-dashboard.png]]
2136 +
2137 +
2078 2078  == 3.6 Interface Details ==
2079 2079  
2080 2080  === 3.6.1 Digital Input Ports: DI1/DI2/DI3 (For LT-33222-L, Low Active) ===
... ... @@ -2288,6 +2288,7 @@
2288 2288  
2289 2289  == 3.7 LED Indicators ==
2290 2290  
2351 +
2291 2291  The table below lists the behavior of LED indicators for each port function.
2292 2292  
2293 2293  (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
... ... @@ -2320,10 +2320,13 @@
2320 2320  
2321 2321  = 4. Using AT Commands =
2322 2322  
2384 +
2323 2323  The LT-22222-L supports programming using AT Commands.
2324 2324  
2387 +
2325 2325  == 4.1 Connecting the LT-22222-L to a PC ==
2326 2326  
2390 +
2327 2327  (((
2328 2328  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.
2329 2329  
... ... @@ -2343,7 +2343,10 @@
2343 2343  (((
2344 2344  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/]]
2345 2345  
2410 +
2346 2346  == 4.2 LT-22222-L related AT commands ==
2412 +
2413 +
2347 2347  )))
2348 2348  
2349 2349  (((
... ... @@ -2540,16 +2540,19 @@
2540 2540  
2541 2541  == 5.1 Counting how many objects pass through the flow line ==
2542 2542  
2610 +
2543 2543  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]]?
2544 2544  
2545 2545  
2546 2546  = 6. FAQ =
2547 2547  
2616 +
2548 2548  This section contains some frequently asked questions, which can help you resolve common issues and find solutions quickly.
2549 2549  
2550 2550  
2551 2551  == 6.1 How to update the firmware? ==
2552 2552  
2622 +
2553 2553  Dragino frequently releases firmware updates for the LT-22222-L. Updating your LT-22222-L with the latest firmware version helps to:
2554 2554  
2555 2555  * Support new features
... ... @@ -2602,6 +2602,8 @@
2602 2602  (((
2603 2603  (((
2604 2604  == 6.2 How to change the LoRaWAN frequency band/region? ==
2675 +
2676 +
2605 2605  )))
2606 2606  )))
2607 2607  
... ... @@ -2613,6 +2613,8 @@
2613 2613  
2614 2614  
2615 2615  == 6.3 How to setup LT-22222-L to work with a Single Channel Gateway, such as LG01/LG02? ==
2688 +
2689 +
2616 2616  )))
2617 2617  
2618 2618  (((
... ... @@ -2686,11 +2686,13 @@
2686 2686  
2687 2687  == 6.4 How to change the uplink interval? ==
2688 2688  
2763 +
2689 2689  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/]]
2690 2690  
2691 2691  
2692 2692  == 6.5 Can I see the counting event in the serial output? ==
2693 2693  
2769 +
2694 2694  (((
2695 2695  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.
2696 2696  
... ... @@ -2697,6 +2697,7 @@
2697 2697  
2698 2698  == 6.6 Can I use point-to-point communication with LT-22222-L? ==
2699 2699  
2776 +
2700 2700  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]].
2701 2701  
2702 2702  
... ... @@ -2705,6 +2705,7 @@
2705 2705  (((
2706 2706  == 6.7 Why does the relay output default to an open relay after the LT-22222-L is powered off? ==
2707 2707  
2785 +
2708 2708  * If the device is not properly shut down and is directly powered off.
2709 2709  * It will default to a power-off state.
2710 2710  * In modes 2 to 5, the DO/RO status and pulse count are saved to flash memory.
... ... @@ -2712,6 +2712,7 @@
2712 2712  
2713 2713  == 6.8 Can I setup LT-22222-L as a NC (Normally Closed) relay? ==
2714 2714  
2793 +
2715 2715  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:
2716 2716  
2717 2717  
... ... @@ -2720,16 +2720,19 @@
2720 2720  
2721 2721  == 6.9 Can the LT-22222-L save the RO state? ==
2722 2722  
2802 +
2723 2723  To enable this feature, the firmware version must be 1.6.0 or higher.
2724 2724  
2725 2725  
2726 2726  == 6.10 Why does the LT-22222-L always report 15.585V when measuring the AVI? ==
2727 2727  
2808 +
2728 2728  It is likely that the GND is not connected during the measurement, or that the wire connected to the GND is loose.
2729 2729  
2730 2730  
2731 2731  = 7. Troubleshooting =
2732 2732  
2814 +
2733 2733  This section provides some known troubleshooting tips.
2734 2734  
2735 2735  
... ... @@ -2738,6 +2738,8 @@
2738 2738  (((
2739 2739  (((
2740 2740  == 7.1 Downlink isn't working. How can I solve this? ==
2823 +
2824 +
2741 2741  )))
2742 2742  )))
2743 2743  
... ... @@ -2749,6 +2749,8 @@
2749 2749  
2750 2750  
2751 2751  == 7.2 Having trouble uploading an image? ==
2836 +
2837 +
2752 2752  )))
2753 2753  
2754 2754  (((
... ... @@ -2759,6 +2759,8 @@
2759 2759  
2760 2760  
2761 2761  == 7.3 Why can't I join TTN in the US915 /AU915 bands? ==
2848 +
2849 +
2762 2762  )))
2763 2763  
2764 2764  (((
... ... @@ -2768,6 +2768,7 @@
2768 2768  
2769 2769  == 7.4 Why can the LT-22222-L perform uplink normally, but cannot receive downlink? ==
2770 2770  
2859 +
2771 2771  The FCD count of the gateway is inconsistent with the FCD count of the node, causing the downlink to remain in the queue.
2772 2772  Use this command to synchronize their counts: [[Resets the downlink packet count>>||anchor="H3.4.2.23Resetsthedownlinkpacketcount"]]
2773 2773  
... ... @@ -2774,6 +2774,7 @@
2774 2774  
2775 2775  = 8. Ordering information =
2776 2776  
2866 +
2777 2777  (% style="color:#4f81bd" %)**LT-22222-L-XXX:**
2778 2778  
2779 2779  (% style="color:#4f81bd" %)**XXX:**
... ... @@ -2790,6 +2790,7 @@
2790 2790  
2791 2791  = 9. Package information =
2792 2792  
2883 +
2793 2793  **Package includes**:
2794 2794  
2795 2795  * 1 x LT-22222-L I/O Controller
... ... @@ -2806,6 +2806,7 @@
2806 2806  
2807 2807  = 10. Support =
2808 2808  
2900 +
2809 2809  * (((
2810 2810  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.
2811 2811  )))
... ... @@ -2817,6 +2817,7 @@
2817 2817  
2818 2818  = 11. Reference​​​​​ =
2819 2819  
2912 +
2820 2820  * 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]]
2821 2821  * [[Datasheet, Document Base>>https://www.dropbox.com/sh/gxxmgks42tqfr3a/AACEdsj_mqzeoTOXARRlwYZ2a?dl=0]]
2822 2822  * [[Hardware Source>>url:https://github.com/dragino/Lora/tree/master/LT/LT-33222-L/v1.0]]
lt-22222-l-dashboard.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.pradeeka
Size
... ... @@ -1,0 +1,1 @@
1 +352.8 KB
Content