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

From version 229.1
edited by Dilisi S
on 2024/12/09 02:41
Change comment: Uploaded new attachment "Screenshot 2024-12-08 193946.png", version {1}
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
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.**
... ... @@ -763,7 +763,7 @@
763 763  
764 764  MOD6 Payload: total of 11 bytes
765 765  
766 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
787 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %)
767 767  |(% style="background-color:#4f81bd; color:white; width:60px" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white; width:69px" %)**1**|(% style="background-color:#4f81bd; color:white; width:69px" %)**1**|(% style="background-color:#4f81bd; color:white; width:109px" %)**1**|(% style="background-color:#4f81bd; color:white; width:49px" %)**6**|(% style="background-color:#4f81bd; color:white; width:109px" %)**1**|(% style="background-color:#4f81bd; color:white; width:50px" %)**1**
768 768  |Value|(((
769 769  TRI_A FLAG
... ... @@ -777,7 +777,7 @@
777 777  
778 778  (% style="color:#4f81bd" %)**TRI FLAG1**(%%) is a combination to show if the trigger is set for this part. Totally 1 byte as below
779 779  
780 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
801 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %)
781 781  |**bit 7**|**bit 6**|**bit 5**|**bit 4**|**bit 3**|**bit 2**|**bit 1**|**bit 0**
782 782  |(((
783 783  AV1_LOW
... ... @@ -806,7 +806,7 @@
806 806  
807 807  (% style="color:#4f81bd" %)**TRI Status1**(%%) is a combination to show which condition is trigger. Totally 1 byte as below
808 808  
809 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
830 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %)
810 810  |**bit 7**|**bit 6**|**bit 5**|**bit 4**|**bit 3**|**bit 2**|**bit 1**|**bit 0**
811 811  |(((
812 812  AV1_LOW
... ... @@ -835,9 +835,9 @@
835 835  
836 836  (% style="color:#4f81bd" %)**TRI_DI FLAG+STA **(%%)is a combination to show which condition is trigger. Totally 1byte as below
837 837  
838 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:674px" %)
839 -|(% style="width:64px" %)**bit 7**|(% style="width:68px" %)**bit 6**|(% style="width:63px" %)**bit 5**|(% style="width:66px" %)**bit 4**|(% style="width:109px" %)**bit 3**|(% style="width:93px" %)**bit 2**|(% style="width:109px" %)**bit 1**|(% style="width:99px" %)**bit 0**
840 -|(% style="width:64px" %)N/A|(% style="width:68px" %)N/A|(% style="width:63px" %)N/A|(% style="width:66px" %)N/A|(% style="width:109px" %)DI2_STATUS|(% style="width:93px" %)DI2_FLAG|(% style="width:109px" %)DI1_STATUS|(% style="width:99px" %)DI1_FLAG
859 +(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %)
860 +|(% style="width:50px" %)**bit 7**|(% style="width:50px" %)**bit 6**|(% style="width:50px" %)**bit 5**|(% style="width:50px" %)**bit 4**|(% style="width:90px" %)**bit 3**|(% style="width:80px" %)**bit 2**|(% style="width:90px" %)**bit 1**|(% style="width:95px" %)**bit 0**
861 +|(% style="width:49px" %)N/A|(% style="width:53px" %)N/A|(% style="width:53px" %)N/A|(% style="width:55px" %)N/A|(% style="width:99px" %)DI2_STATUS|(% style="width:83px" %)DI2_FLAG|(% style="width:98px" %)DI1_STATUS|(% style="width:85px" %)DI1_FLAG
841 841  
842 842  * Each bit shows which status has been triggered on this uplink.
843 843  
... ... @@ -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**
... ... @@ -901,8 +901,15 @@
901 901  
902 902  (% border="2" style="width:500px" %)
903 903  |**Command**|AT+TDC=<time>
904 -|**Response**|
905 -|**Parameters**|**time** : uplink interval is in **milliseconds**
931 +|**Parameters**|**time **: uplink interval in milliseconds
932 +|**Get**|AT+TDC=?
933 +|**Response**|(((
934 +current uplink interval
935 +
936 +OK
937 +)))
938 +|**Set**|AT+TDC=<time>
939 +|**Response**|OK
906 906  |**Example**|(((
907 907  AT+TDC=30000
908 908  
... ... @@ -918,7 +918,7 @@
918 918  |**Parameters**|(((
919 919  **prefix** : 0x01
920 920  
921 -**time** : uplink interval is in **seconds**, represented by **3  bytes** in **hexadecimal**.
955 +**time** : uplink interval in **seconds**, represented by **3  bytes** in **hexadecimal**.
922 922  )))
923 923  |**Example**|(((
924 924  01 **00 00 1E**
... ... @@ -934,13 +934,13 @@
934 934  
935 935  ==== 3.4.2.2 Set the Working Mode (AT+MOD) ====
936 936  
971 +
937 937  Sets the working mode.
938 938  
939 939  (% style="color:#037691" %)**AT command**
940 940  
941 941  (% border="2" style="width:500px" %)
942 -|(% style="width:97px" %)**Command**|(% style="width:413px" %)AT+MODE=<working_mode>
943 -|(% style="width:97px" %)**Response**|(% style="width:413px" %)
977 +|(% style="width:97px" %)**Command**|(% style="width:413px" %)AT+MOD=<working_mode>
944 944  |(% style="width:97px" %)**Parameters**|(% style="width:413px" %)(((
945 945  **working_mode** :
946 946  
... ... @@ -956,6 +956,18 @@
956 956  
957 957  6 = Trigger Mode, Optional, used together with MOD1 ~~ MOD5
958 958  )))
993 +|(% style="width:97px" %)**Get**|(% style="width:413px" %)AT+MOD=?
994 +|(% style="width:97px" %)**Response**|(% style="width:413px" %)(((
995 +Current working mode
996 +
997 +OK
998 +)))
999 +|(% style="width:97px" %)**Set**|(% style="width:413px" %)AT+MOD=<working_mode>
1000 +|(% style="width:97px" %)**Response**|(% style="width:413px" %)(((
1001 +Attention:Take effect after ATZ
1002 +
1003 +OK
1004 +)))
959 959  |(% style="width:97px" %)**Example**|(% style="width:413px" %)(((
960 960  AT+MOD=2
961 961  
... ... @@ -980,6 +980,7 @@
980 980  
981 981  ==== 3.4.2.3 Request an uplink from the device ====
982 982  
1029 +
983 983  Requests an uplink from LT-22222-L. The content of the uplink payload varies based on the device's current working mode.
984 984  
985 985  (% style="color:#037691" %)**AT command**
... ... @@ -999,6 +999,7 @@
999 999  
1000 1000  ==== 3.4.2.4 Enable/Disable Trigger Mode ====
1001 1001  
1049 +
1002 1002  Enable or disable the trigger mode for the current working mode (see also [[ADDMOD6>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]).
1003 1003  
1004 1004  (% style="color:#037691" %)**AT Command**
... ... @@ -1036,6 +1036,7 @@
1036 1036  
1037 1037  ==== 3.4.2.5 Request trigger settings ====
1038 1038  
1087 +
1039 1039  Requests the trigger settings.
1040 1040  
1041 1041  (% style="color:#037691" %)**AT Command:**
... ... @@ -1055,6 +1055,7 @@
1055 1055  
1056 1056  ==== 3.4.2.6 Enable/Disable DI1/DI2/DI3 as a trigger ====
1057 1057  
1107 +
1058 1058  Enable or disable DI1/DI2/DI3 as a trigger.
1059 1059  
1060 1060  (% style="color:#037691" %)**AT Command**
... ... @@ -1109,9 +1109,9 @@
1109 1109  
1110 1110  ==== 3.4.2.7 Trigger1 – Set DI or DI3 as a trigger ====
1111 1111  
1162 +
1112 1112  Sets DI1 or DI3 (for LT-33222-L) as a trigger.
1113 1113  
1114 -
1115 1115  (% style="color:#037691" %)**AT Command**
1116 1116  
1117 1117  (% border="2" style="width:500px" %)
... ... @@ -1148,9 +1148,9 @@
1148 1148  
1149 1149  ==== 3.4.2.8 Trigger2 – Set DI2 as a trigger ====
1150 1150  
1201 +
1151 1151  Sets DI2 as a trigger.
1152 1152  
1153 -
1154 1154  (% style="color:#037691" %)**AT Command**
1155 1155  
1156 1156  (% border="2" style="width:500px" %)
... ... @@ -1182,6 +1182,7 @@
1182 1182  
1183 1183  ==== 3.4.2.9 Trigger – Set AC (current) as a trigger ====
1184 1184  
1235 +
1185 1185  Sets the current trigger based on the AC port. See also [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1186 1186  
1187 1187  (% style="color:#037691" %)**AT Command**
... ... @@ -1231,6 +1231,7 @@
1231 1231  
1232 1232  ==== 3.4.2.10 Trigger – Set AV (voltage) as trigger ====
1233 1233  
1285 +
1234 1234  Sets the current trigger based on the AV port. See also [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
1235 1235  
1236 1236  (% style="color:#037691" %)**AT Command**
... ... @@ -1278,6 +1278,7 @@
1278 1278  
1279 1279  ==== 3.4.2.11 Trigger – Set minimum interval ====
1280 1280  
1333 +
1281 1281  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.
1282 1282  
1283 1283  (% style="color:#037691" %)**AT Command**
... ... @@ -1313,6 +1313,7 @@
1313 1313  
1314 1314  ==== 3.4.2.12 DO ~-~- Control Digital Output DO1/DO2/DO3 ====
1315 1315  
1369 +
1316 1316  Controls the digital outputs DO1, DO2, and DO3
1317 1317  
1318 1318  (% style="color:#037691" %)**AT Command**
... ... @@ -1364,80 +1364,82 @@
1364 1364  ==== 3.4.2.13 DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ====
1365 1365  
1366 1366  
1367 -* (% style="color:#037691" %)**AT Command**
1421 +(% style="color:#037691" %)**AT command**
1368 1368  
1369 1369  There is no AT command to control the digital output.
1370 1370  
1371 1371  
1372 -* (% style="color:#037691" %)**Downlink Payload (prefix 0xA9)**
1426 +(% style="color:#037691" %)**Downlink payload**
1373 1373  
1374 -(% style="color:blue" %)**0xA9 aa bb cc     **(%%) ~/~/ Sets DO1/DO2/DO3 outputs with time control
1375 1375  
1376 -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.
1377 1377  
1378 -(% style="color:#4f81bd" %)**First byte**(%%)**:** Type code (0xA9)
1379 -
1380 -(% style="color:#4f81bd" %)**Second byte**(%%): Inverter Mode
1381 -
1382 1382  **01:** DO pins revert to their original state after the timeout.
1383 1383  **00:** DO pins switch to an inverted state after the timeout.
1384 1384  
1385 1385  
1386 -(% style="color:#4f81bd" %)**Third Byte**(%%): Control Method and Port status:
1438 +**DO1_control_method_and_port_status **- 1 byte in hex
1387 1387  
1388 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1389 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1390 -|0x01|DO1 set to low
1391 -|0x00|DO1 set to high
1392 -|0x11|DO1 NO Action
1440 +0x01 : DO1 set to low
1393 1393  
1394 -(% style="color:#4f81bd" %)**Fourth byte**(%%): Control Method and Port status:
1442 +0x00 : DO1 set to high
1395 1395  
1396 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1397 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1398 -|0x01|DO2 set to low
1399 -|0x00|DO2 set to high
1400 -|0x11|DO2 NO Action
1444 +0x11 : DO1 NO action
1401 1401  
1402 -(% style="color:#4f81bd" %)**Fifth byte**(%%): Control Method and Port status:
1403 1403  
1404 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1405 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1406 -|0x01|DO3 set to low
1407 -|0x00|DO3 set to high
1408 -|0x11|DO3 NO Action
1447 +**DO2_control_method_and_port_status** - 1 byte in hex
1409 1409  
1410 -(% style="color:#4f81bd" %)**Sixth, Seventh, Eighth, and Ninth bytes**:(%%) Latching time (Unit: ms)
1449 +0x01 : DO2 set to low
1411 1411  
1451 +0x00 : DO2 set to high
1412 1412  
1413 -(% style="color:red" %)**Note: **
1453 +0x11 : DO2 NO action
1414 1414  
1415 - Since firmware v1.6.0, the latch time support 4 bytes and 2 bytes
1416 1416  
1417 - Before firmware v1.6.0, the latch time only supported 2 bytes.
1456 +**DO3_control_method_and_port_status **- 1 byte in hex
1418 1418  
1419 -(% style="color:red" %)**The device will uplink a packet if the downlink code executes successfully.**
1458 +0x01 : DO3 set to low
1420 1420  
1460 +0x00 : DO3 set to high
1421 1421  
1422 -**Example payload:**
1462 +0x11 : DO3 NO action
1423 1423  
1424 -**~1. A9 01 01 01 01 07 D0**
1425 1425  
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 +
1426 1426  DO1 pin, DO2 pin, and DO3 pin will be set to low, last for 2 seconds, and then revert to their original state.
1427 1427  
1428 -**2. A9 01 00 01 11 07 D0**
1429 1429  
1482 +**A9 01 00 01 11 07 D0**
1483 +
1430 1430  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.
1431 1431  
1432 -**3. A9 00 00 00 00 07 D0**
1433 1433  
1487 +**A9 00 00 00 00 07 D0**
1488 +
1434 1434  DO1 pin, DO2 pin, and DO3 pin will be set to high, last for 2 seconds, and then all change to low.
1435 1435  
1436 -**4. A9 00 11 01 00 07 D0**
1437 1437  
1492 +**A9 00 11 01 00 07 D0**
1493 +
1438 1438  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 +)))
1439 1439  
1440 -
1441 1441  ==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
1442 1442  
1443 1443  
... ... @@ -1475,6 +1475,7 @@
1475 1475  
1476 1476  ==== 3.4.2.15 Relay ~-~- Control Relay Output RO1/RO2 with time control ====
1477 1477  
1534 +
1478 1478  Controls the relay output time.
1479 1479  
1480 1480  * (% style="color:#037691" %)**AT Command:**
... ... @@ -1674,6 +1674,7 @@
1674 1674  
1675 1675  ==== 3.4.2.19 Counting ~-~- Set Saving Interval for 'Counting Result' ====
1676 1676  
1734 +
1677 1677  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.
1678 1678  
1679 1679  (% style="color:#037691" %)**AT Command**
... ... @@ -1705,6 +1705,7 @@
1705 1705  
1706 1706  ==== 3.4.2.20 Reset saved RO and DO states ====
1707 1707  
1766 +
1708 1708  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.
1709 1709  
1710 1710  (% style="color:#037691" %)**AT Command**
... ... @@ -1754,6 +1754,7 @@
1754 1754  
1755 1755  ==== 3.4.2.21 Encrypted payload ====
1756 1756  
1816 +
1757 1757  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.
1758 1758  
1759 1759  (% style="color:#037691" %)**AT Command:**
... ... @@ -1783,6 +1783,7 @@
1783 1783  
1784 1784  ==== 3.4.2.22 Get sensor value ====
1785 1785  
1846 +
1786 1786  This command allows you to retrieve and optionally uplink sensor readings through the serial port.
1787 1787  
1788 1788  (% style="color:#037691" %)**AT Command**
... ... @@ -1812,6 +1812,7 @@
1812 1812  
1813 1813  ==== 3.4.2.23 Resetting the downlink packet count ====
1814 1814  
1876 +
1815 1815  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.
1816 1816  
1817 1817  (% style="color:#037691" %)**AT Command**
... ... @@ -1890,6 +1890,7 @@
1890 1890  
1891 1891  ==== 3.4.2.25 Copy downlink to uplink ====
1892 1892  
1955 +
1893 1893  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.
1894 1894  
1895 1895  (% style="color:#037691" %)**AT Command**(%%)**:**
... ... @@ -1915,6 +1915,7 @@
1915 1915  
1916 1916  ==== 3.4.2.26 Query firmware version, frequency band, sub band, and TDC time ====
1917 1917  
1981 +
1918 1918  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.
1919 1919  
1920 1920  * (((
... ... @@ -1933,10 +1933,13 @@
1933 1933  
1934 1934  == 3.5 Integrating with ThingsEye.io ==
1935 1935  
2000 +
1936 1936  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.
1937 1937  
2003 +
1938 1938  === 3.5.1 Configuring The Things Stack ===
1939 1939  
2006 +
1940 1940  We use The Things Stack Sandbox in this example:
1941 1941  
1942 1942  * In **The Things Stack Sandbox**, go to the **Application **for the LT-22222-L you added.
... ... @@ -1950,8 +1950,10 @@
1950 1950  
1951 1951  [[image:tts-mqtt-integration.png]]
1952 1952  
2020 +
1953 1953  === 3.5.2 Configuring ThingsEye.io ===
1954 1954  
2023 +
1955 1955  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.
1956 1956  
1957 1957  * Login to your [[ThingsEye.io >>https://thingseye.io]]account.
... ... @@ -2021,6 +2021,7 @@
2021 2021  
2022 2022  ==== 3.5.2.1 Viewing integration details ====
2023 2023  
2093 +
2024 2024  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.
2025 2025  
2026 2026  [[image:integration-details.png]]
... ... @@ -2032,8 +2032,10 @@
2032 2032  See also [[ThingsEye documentation>>https://wiki.thingseye.io/xwiki/bin/view/Main/]].
2033 2033  {{/info}}
2034 2034  
2035 -==== **3.5.2.2 Viewing events** ====
2036 2036  
2106 +==== 3.5.2.2 Viewing events ====
2107 +
2108 +
2037 2037  The **Events **tab displays all the uplink messages from the LT-22222-L.
2038 2038  
2039 2039  * Select **Debug **from the **Event type** dropdown.
... ... @@ -2042,21 +2042,27 @@
2042 2042  [[image:thingseye-events.png]]
2043 2043  
2044 2044  
2045 -* 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.
2046 2046  
2047 2047  [[image:thingseye-json.png]]
2048 2048  
2049 2049  
2050 -==== **3.5.2.3 Deleting an integration** ====
2122 +==== 3.5.2.3 Deleting an integration ====
2051 2051  
2124 +
2052 2052  If you want to delete an integration, click the **Delete integratio**n button on the Integrations page.
2053 2053  
2054 2054  
2055 -==== 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 ====
2056 2056  
2057 -This will be added soon.
2058 2058  
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.
2059 2059  
2133 +
2134 +
2135 +[[image:lt-22222-l-dashboard.png]]
2136 +
2137 +
2060 2060  == 3.6 Interface Details ==
2061 2061  
2062 2062  === 3.6.1 Digital Input Ports: DI1/DI2/DI3 (For LT-33222-L, Low Active) ===
... ... @@ -2270,6 +2270,7 @@
2270 2270  
2271 2271  == 3.7 LED Indicators ==
2272 2272  
2351 +
2273 2273  The table below lists the behavior of LED indicators for each port function.
2274 2274  
2275 2275  (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
... ... @@ -2302,10 +2302,13 @@
2302 2302  
2303 2303  = 4. Using AT Commands =
2304 2304  
2384 +
2305 2305  The LT-22222-L supports programming using AT Commands.
2306 2306  
2387 +
2307 2307  == 4.1 Connecting the LT-22222-L to a PC ==
2308 2308  
2390 +
2309 2309  (((
2310 2310  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.
2311 2311  
... ... @@ -2325,7 +2325,10 @@
2325 2325  (((
2326 2326  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/]]
2327 2327  
2410 +
2328 2328  == 4.2 LT-22222-L related AT commands ==
2412 +
2413 +
2329 2329  )))
2330 2330  
2331 2331  (((
... ... @@ -2522,16 +2522,19 @@
2522 2522  
2523 2523  == 5.1 Counting how many objects pass through the flow line ==
2524 2524  
2610 +
2525 2525  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]]?
2526 2526  
2527 2527  
2528 2528  = 6. FAQ =
2529 2529  
2616 +
2530 2530  This section contains some frequently asked questions, which can help you resolve common issues and find solutions quickly.
2531 2531  
2532 2532  
2533 2533  == 6.1 How to update the firmware? ==
2534 2534  
2622 +
2535 2535  Dragino frequently releases firmware updates for the LT-22222-L. Updating your LT-22222-L with the latest firmware version helps to:
2536 2536  
2537 2537  * Support new features
... ... @@ -2584,6 +2584,8 @@
2584 2584  (((
2585 2585  (((
2586 2586  == 6.2 How to change the LoRaWAN frequency band/region? ==
2675 +
2676 +
2587 2587  )))
2588 2588  )))
2589 2589  
... ... @@ -2595,6 +2595,8 @@
2595 2595  
2596 2596  
2597 2597  == 6.3 How to setup LT-22222-L to work with a Single Channel Gateway, such as LG01/LG02? ==
2688 +
2689 +
2598 2598  )))
2599 2599  
2600 2600  (((
... ... @@ -2668,11 +2668,13 @@
2668 2668  
2669 2669  == 6.4 How to change the uplink interval? ==
2670 2670  
2763 +
2671 2671  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/]]
2672 2672  
2673 2673  
2674 2674  == 6.5 Can I see the counting event in the serial output? ==
2675 2675  
2769 +
2676 2676  (((
2677 2677  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.
2678 2678  
... ... @@ -2679,6 +2679,7 @@
2679 2679  
2680 2680  == 6.6 Can I use point-to-point communication with LT-22222-L? ==
2681 2681  
2776 +
2682 2682  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]].
2683 2683  
2684 2684  
... ... @@ -2687,6 +2687,7 @@
2687 2687  (((
2688 2688  == 6.7 Why does the relay output default to an open relay after the LT-22222-L is powered off? ==
2689 2689  
2785 +
2690 2690  * If the device is not properly shut down and is directly powered off.
2691 2691  * It will default to a power-off state.
2692 2692  * In modes 2 to 5, the DO/RO status and pulse count are saved to flash memory.
... ... @@ -2694,6 +2694,7 @@
2694 2694  
2695 2695  == 6.8 Can I setup LT-22222-L as a NC (Normally Closed) relay? ==
2696 2696  
2793 +
2697 2697  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:
2698 2698  
2699 2699  
... ... @@ -2702,16 +2702,19 @@
2702 2702  
2703 2703  == 6.9 Can the LT-22222-L save the RO state? ==
2704 2704  
2802 +
2705 2705  To enable this feature, the firmware version must be 1.6.0 or higher.
2706 2706  
2707 2707  
2708 2708  == 6.10 Why does the LT-22222-L always report 15.585V when measuring the AVI? ==
2709 2709  
2808 +
2710 2710  It is likely that the GND is not connected during the measurement, or that the wire connected to the GND is loose.
2711 2711  
2712 2712  
2713 2713  = 7. Troubleshooting =
2714 2714  
2814 +
2715 2715  This section provides some known troubleshooting tips.
2716 2716  
2717 2717  
... ... @@ -2720,6 +2720,8 @@
2720 2720  (((
2721 2721  (((
2722 2722  == 7.1 Downlink isn't working. How can I solve this? ==
2823 +
2824 +
2723 2723  )))
2724 2724  )))
2725 2725  
... ... @@ -2731,6 +2731,8 @@
2731 2731  
2732 2732  
2733 2733  == 7.2 Having trouble uploading an image? ==
2836 +
2837 +
2734 2734  )))
2735 2735  
2736 2736  (((
... ... @@ -2741,6 +2741,8 @@
2741 2741  
2742 2742  
2743 2743  == 7.3 Why can't I join TTN in the US915 /AU915 bands? ==
2848 +
2849 +
2744 2744  )))
2745 2745  
2746 2746  (((
... ... @@ -2750,6 +2750,7 @@
2750 2750  
2751 2751  == 7.4 Why can the LT-22222-L perform uplink normally, but cannot receive downlink? ==
2752 2752  
2859 +
2753 2753  The FCD count of the gateway is inconsistent with the FCD count of the node, causing the downlink to remain in the queue.
2754 2754  Use this command to synchronize their counts: [[Resets the downlink packet count>>||anchor="H3.4.2.23Resetsthedownlinkpacketcount"]]
2755 2755  
... ... @@ -2756,6 +2756,7 @@
2756 2756  
2757 2757  = 8. Ordering information =
2758 2758  
2866 +
2759 2759  (% style="color:#4f81bd" %)**LT-22222-L-XXX:**
2760 2760  
2761 2761  (% style="color:#4f81bd" %)**XXX:**
... ... @@ -2772,6 +2772,7 @@
2772 2772  
2773 2773  = 9. Package information =
2774 2774  
2883 +
2775 2775  **Package includes**:
2776 2776  
2777 2777  * 1 x LT-22222-L I/O Controller
... ... @@ -2788,6 +2788,7 @@
2788 2788  
2789 2789  = 10. Support =
2790 2790  
2900 +
2791 2791  * (((
2792 2792  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.
2793 2793  )))
... ... @@ -2799,6 +2799,7 @@
2799 2799  
2800 2800  = 11. Reference​​​​​ =
2801 2801  
2912 +
2802 2802  * 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]]
2803 2803  * [[Datasheet, Document Base>>https://www.dropbox.com/sh/gxxmgks42tqfr3a/AACEdsj_mqzeoTOXARRlwYZ2a?dl=0]]
2804 2804  * [[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