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

From version 137.2
edited by Dilisi S
on 2024/10/30 02:28
Change comment: There is no comment for this version
To version 121.1
edited by Bei Jinggeng
on 2023/06/08 10:17
Change comment: Uploaded new attachment "image-20230608101722-3.png", version {1}

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -LT-22222-L -- LoRa IO Controller User Manual
1 +LT-22222-L LoRa IO Controller User Manual
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.pradeeka
1 +XWiki.Bei
Content
... ... @@ -3,10 +3,6 @@
3 3  
4 4  
5 5  
6 -
7 -
8 -
9 -
10 10  **Table of Contents:**
11 11  
12 12  {{toc/}}
... ... @@ -25,28 +25,30 @@
25 25  
26 26  
27 27  (((
28 -(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant-alternates:normal; font-variant-east-asian:normal; font-variant-ligatures:normal; font-variant-numeric:normal; font-variant-position:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)The Dragino (% style="color:blue" %)**LT-22222-L I/O Controller**(%%) is an advanced LoRaWAN device designed to provide seamless wireless long-range connectivity with various I/O options, including analog current and voltage inputs, digital inputs and outputs, and relay outputs. The LT-22222-L simplifies and enhances I/O monitoring and controlling.
24 +The Dragino (% style="color:blue" %)**LT series I/O Modules**(%%) are Long Range LoRaWAN I/O Controller. It contains different I/O Interfaces such as:** (% style="color:blue" %)analog current Input, analog voltage input(%%)**(% style="color:blue" %), **relay output**, **digital input**(%%) and (% style="color:blue" %)**digital output**(%%) etc. The LT I/O Modules are designed to simplify the installation of I/O monitoring.
25 +)))
26 +)))
29 29  
30 -The Dragino LT-22222-L I/O Controller is ideal for professional applications in wireless sensor networks, including irrigation systems, smart metering, smart cities, building automation, and more. These controllers are designed for easy, cost-effective deployment using LoRa wireless technology.
28 +(((
29 +The LT I/O Controllers allows the user to send data and reach extremely long ranges. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. It targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, building automation, and so on.
31 31  )))
31 +
32 +(((
33 +The LT I/O Controllers is aiming to provide an (% style="color:blue" %)**easy and low cost installation** (%%)by using LoRa wireless technology.
32 32  )))
33 33  
34 34  (((
35 -With the LT-22222-L I/O Controller, users can transmit data over ultra-long distances with low power consumption using LoRa, a spread-spectrum modulation technique derived from chirp spread spectrum (CSS) technology that operates on license-free ISM bands.
37 +The use environment includes:
36 36  )))
37 37  
38 38  (((
39 -(% style="line-height:1.38; margin-top:16px; margin-bottom:16px" %)
40 -The LT Series I/O Controllers are designed for easy, low-cost installation on LoRaWAN networks.
41 +1) If user's area has LoRaWAN service coverage, they can just install the I/O controller and configure it to connect the LoRaWAN provider via wireless.
41 41  )))
42 42  
43 43  (((
44 -(% style="line-height:1.38; margin-top:16px; margin-bottom:16px" %)
45 -(% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant-alternates:normal; font-variant-east-asian:normal; font-variant-ligatures:normal; font-variant-numeric:normal; font-variant-position:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)You can connect the LT-22222-L I/O Controller to a LoRaWAN network service provider in several ways:
45 +2) User can set up a LoRaWAN gateway locally and configure the controller to connect to the gateway via wireless.
46 46  
47 -* (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant-alternates:normal; font-variant-east-asian:normal; font-variant-ligatures:normal; font-variant-numeric:normal; font-variant-position:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)If there is public LoRaWAN network coverage in the area where you plan to install the device (e.g., The Things Network), you can select a network and register the LT-22222-L I/O controller with it.
48 -* (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant-alternates:normal; font-variant-east-asian:normal; font-variant-ligatures:normal; font-variant-numeric:normal; font-variant-position:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)If there is no public LoRaWAN coverage in your area, you can set up a LoRaWAN gateway, or multiple gateways, and connect them to a LoRaWAN network server to create adequate coverage. Then, register the LT-22222-L I/O controller with this network.
49 -* (% style="color:#000000; font-family:Arial,sans-serif; font-size:11pt; font-style:normal; font-variant-alternates:normal; font-variant-east-asian:normal; font-variant-ligatures:normal; font-variant-numeric:normal; font-variant-position:normal; font-weight:400; text-decoration:none; white-space:pre-wrap" %)Setup your own private LoRaWAN network.
47 +
50 50  )))
51 51  
52 52  (((
... ... @@ -55,71 +55,166 @@
55 55  
56 56  )))
57 57  
58 -== 1.2 Specifications ==
56 +== 1.2  Specifications ==
59 59  
58 +(((
59 +
60 +
60 60  (% style="color:#037691" %)**Hardware System:**
62 +)))
61 61  
62 -* STM32L072xxxx MCU
63 -* SX1276/78 Wireless Chip 
64 -* Power Consumption:
65 -** Idle: 4mA@12v
66 -** 20dB Transmit: 34mA@12v
67 -* Operating Temperature: -40 ~~ 85 Degree, No Dew
64 +* (((
65 +STM32L072xxxx MCU
66 +)))
67 +* (((
68 +SX1276/78 Wireless Chip 
69 +)))
70 +* (((
71 +(((
72 +Power Consumption:
73 +)))
68 68  
75 +* (((
76 +Idle: 4mA@12v
77 +)))
78 +* (((
79 +20dB Transmit: 34mA@12v
80 +)))
81 +)))
82 +
83 +(((
84 +
85 +
69 69  (% style="color:#037691" %)**Interface for Model: LT22222-L:**
87 +)))
70 70  
71 -* 2 x Digital dual direction Input (Detect High/Low signal, Max: 50v, or 220v with optional external resistor)
72 -* 2 x Digital Output (NPN output. Max pull up voltage 36V,450mA)
73 -* 2 x Relay Output (5A@250VAC / 30VDC)
74 -* 2 x 0~~20mA Analog Input (res:0.01mA)
75 -* 2 x 0~~30V Analog Input (res:0.01v)
76 -* Power Input 7~~ 24V DC. 
89 +* (((
90 +2 x Digital dual direction Input (Detect High/Low signal, Max: 50v, or 220v with optional external resistor)
91 +)))
92 +* (((
93 +2 x Digital Output (NPN output. Max pull up voltage 36V,450mA)
94 +)))
95 +* (((
96 +2 x Relay Output (5A@250VAC / 30VDC)
97 +)))
98 +* (((
99 +2 x 0~~20mA Analog Input (res:0.01mA)
100 +)))
101 +* (((
102 +2 x 0~~30V Analog Input (res:0.01v)
103 +)))
104 +* (((
105 +Power Input 7~~ 24V DC. 
106 +)))
77 77  
108 +(((
109 +
110 +
78 78  (% style="color:#037691" %)**LoRa Spec:**
112 +)))
79 79  
80 -* Frequency Range:
81 -** Band 1 (HF): 862 ~~ 1020 Mhz
82 -** Band 2 (LF): 410 ~~ 528 Mhz
83 -* 168 dB maximum link budget.
84 -* +20 dBm - 100 mW constant RF output vs.
85 -* +14 dBm high efficiency PA.
86 -* Programmable bit rate up to 300 kbps.
87 -* High sensitivity: down to -148 dBm.
88 -* Bullet-proof front end: IIP3 = -12.5 dBm.
89 -* Excellent blocking immunity.
90 -* Low RX current of 10.3 mA, 200 nA register retention.
91 -* Fully integrated synthesizer with a resolution of 61 Hz.
92 -* FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation.
93 -* Built-in bit synchronizer for clock recovery.
94 -* Preamble detection.
95 -* 127 dB Dynamic Range RSSI.
96 -* Automatic RF Sense and CAD with ultra-fast AFC.
97 -* Packet engine up to 256 bytes with CRC.
114 +* (((
115 +(((
116 +Frequency Range:
117 +)))
98 98  
119 +* (((
120 +Band 1 (HF): 862 ~~ 1020 Mhz
121 +)))
122 +* (((
123 +Band 2 (LF): 410 ~~ 528 Mhz
124 +)))
125 +)))
126 +* (((
127 +168 dB maximum link budget.
128 +)))
129 +* (((
130 ++20 dBm - 100 mW constant RF output vs.
131 +)))
132 +* (((
133 ++14 dBm high efficiency PA.
134 +)))
135 +* (((
136 +Programmable bit rate up to 300 kbps.
137 +)))
138 +* (((
139 +High sensitivity: down to -148 dBm.
140 +)))
141 +* (((
142 +Bullet-proof front end: IIP3 = -12.5 dBm.
143 +)))
144 +* (((
145 +Excellent blocking immunity.
146 +)))
147 +* (((
148 +Low RX current of 10.3 mA, 200 nA register retention.
149 +)))
150 +* (((
151 +Fully integrated synthesizer with a resolution of 61 Hz.
152 +)))
153 +* (((
154 +FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation.
155 +)))
156 +* (((
157 +Built-in bit synchronizer for clock recovery.
158 +)))
159 +* (((
160 +Preamble detection.
161 +)))
162 +* (((
163 +127 dB Dynamic Range RSSI.
164 +)))
165 +* (((
166 +Automatic RF Sense and CAD with ultra-fast AFC.
167 +)))
168 +* (((
169 +Packet engine up to 256 bytes with CRC.
170 +
171 +
172 +
173 +)))
174 +
99 99  == 1.3 Features ==
100 100  
177 +
101 101  * LoRaWAN Class A & Class C protocol
179 +
102 102  * Optional Customized LoRa Protocol
181 +
103 103  * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915/RU864/IN865/MA869
183 +
104 104  * AT Commands to change parameters
185 +
105 105  * Remote configure parameters via LoRa Downlink
187 +
106 106  * Firmware upgradable via program port
189 +
107 107  * Counting
108 108  
109 -== 1.4 Applications ==
110 110  
193 +
194 +== 1.4  Applications ==
195 +
196 +
111 111  * Smart Buildings & Home Automation
198 +
112 112  * Logistics and Supply Chain Management
200 +
113 113  * Smart Metering
202 +
114 114  * Smart Agriculture
204 +
115 115  * Smart Cities
206 +
116 116  * Smart Factory
117 117  
209 +
210 +
118 118  == 1.5 Hardware Variants ==
119 119  
120 120  
121 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
122 -|(% style="background-color:#4f81bd; color:white; width:103px" %)**Model**|(% style="background-color:#4f81bd; color:white; width:131px" %)**Photo**|(% style="background-color:#4f81bd; color:white; width:266px" %)**Description**
214 +(% border="1" style="background-color:#f2f2f2; width:500px" %)
215 +|(% style="background-color:#d9e2f3; color:#0070c0; width:103px" %)**Model**|(% style="background-color:#d9e2f3; color:#0070c0; width:131px" %)**Photo**|(% style="background-color:#d9e2f3; color:#0070c0; width:334px" %)**Description**
123 123  |(% style="width:103px" %)**LT22222-L**|(% style="width:131px" %)(((
124 124  (% style="text-align:center" %)
125 125  [[image:image-20230424115112-1.png||height="106" width="58"]]
... ... @@ -132,12 +132,21 @@
132 132  * 1 x Counting Port
133 133  )))
134 134  
228 +
229 +
135 135  = 2. Power ON Device =
136 136  
232 +
233 +(((
137 137  The LT controller can be powered by 7 ~~ 24V DC power source. Connect VIN to Power Input V+ and GND to power input V- to power the LT controller.
235 +)))
138 138  
237 +(((
139 139  PWR will on when device is properly powered.
140 140  
240 +
241 +)))
242 +
141 141  [[image:1653297104069-180.png]]
142 142  
143 143  
... ... @@ -196,6 +196,7 @@
196 196  [[image:1653298023685-319.png]]
197 197  
198 198  
301 +
199 199  (((
200 200  (% style="color:blue" %)**Step 2**(%%): Power on LT and it will auto join to the TTN network. After join success, it will start to upload message to TTN and user can see in the panel.
201 201  
... ... @@ -211,17 +211,14 @@
211 211  There are five working modes + one interrupt mode on LT for different type application:
212 212  
213 213  * (% style="color:blue" %)**MOD1**(%%): (default setting): 2 x ACI + 2AVI + DI + DO + RO
214 -
215 215  * (% style="color:blue" %)**MOD2**(%%): Double DI Counting + DO + RO
216 -
217 217  * (% style="color:blue" %)**MOD3**(%%): Single DI Counting + 2 x ACI + DO + RO
218 -
219 219  * (% style="color:blue" %)**MOD4**(%%): Single DI Counting + 1 x Voltage Counting + DO + RO
220 -
221 221  * (% style="color:blue" %)**MOD5**(%%): Single DI Counting + 2 x AVI + 1 x ACI + DO + RO
222 -
223 223  * (% style="color:blue" %)**ADDMOD6**(%%): Trigger Mode, Optional, used together with MOD1 ~~ MOD5
224 224  
323 +
324 +
225 225  === 3.3.1 AT+MOD~=1, 2ACI+2AVI ===
226 226  
227 227  
... ... @@ -228,16 +228,20 @@
228 228  (((
229 229  The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by default. (% style="display:none" %)
230 230  
231 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
232 -|(% style="background-color:#4f81bd; color:white" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**
331 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
332 +|**Size(bytes)(% style="display:none" %) (%%)**|**2**|**2**|**2**|**2**|**1**|**1**|**1**
233 233  |Value|(((
234 -AVI1 voltage
334 +AVI1
335 +voltage
235 235  )))|(((
236 -AVI2 voltage
337 +AVI2
338 +voltage
237 237  )))|(((
238 -ACI1 Current
340 +ACI1
341 +Current
239 239  )))|(((
240 -ACI2 Current
343 +ACI2
344 +Current
241 241  )))|DIDORO*|(((
242 242  Reserve
243 243  )))|MOD
... ... @@ -244,14 +244,17 @@
244 244  )))
245 245  
246 246  (((
351 +
352 +
247 247  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
248 248  
249 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
355 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
250 250  |**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
251 251  |RO1|RO2|DI3|DI2|DI1|DO3|DO2|DO1
252 252  )))
253 253  
254 -* RO is for relay. ROx=1 : close, ROx=0 always open.
360 +
361 +* RO is for relay. ROx=1 : close,ROx=0 always open.
255 255  * DI is for digital input. DIx=1: high or float, DIx=0: low.
256 256  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
257 257  
... ... @@ -262,7 +262,7 @@
262 262  
263 263  **The value for the interface is:  **
264 264  
265 -AVI1 channel voltage is 0x04AB/1000=1195(DEC)/1000=1.195V
372 +AVI1 channel voltage is 0x04AB/1000=1195DEC/1000=1.195V
266 266  
267 267  AVI2 channel voltage is 0x04AC/1000=1.196V
268 268  
... ... @@ -290,6 +290,8 @@
290 290  ** DO1 is high in case there is load between DO1 and V+.
291 291  ** DO1 LED is off in both case
292 292  
400 +
401 +
293 293  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
294 294  
295 295  
... ... @@ -300,21 +300,25 @@
300 300  (((
301 301  Total : 11 bytes payload
302 302  
303 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
304 -|(% style="background-color:#4f81bd; color:white" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white" %)**4**|(% style="background-color:#4f81bd; color:white" %)**4**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**
412 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
413 +|**Size(bytes)**|**4**|**4**|**1**|**1**|**1**
305 305  |Value|COUNT1|COUNT2 |DIDORO*|(((
306 -Reserve
415 +Reserve
416 +
417 +
307 307  )))|MOD
308 308  )))
309 309  
310 310  (((
422 +
423 +
311 311  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DO3, DO2 and DO1. Totally 1bytes as below
312 312  
313 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
426 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
314 314  |**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
315 315  |RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1
316 316  
317 -RO is for relay. ROx=1 : close , ROx=0 always open.
430 +RO is for relay. ROx=1 : closeROx=0 always open.
318 318  )))
319 319  
320 320  * FIRST: Indicate this is the first packet after join network.
... ... @@ -322,32 +322,39 @@
322 322  
323 323  (((
324 324  (% style="color:red" %)**Note: DO3 bit is not valid for LT-22222-L.**
325 -
326 -
327 327  )))
328 328  
329 329  (((
441 +
442 +
330 330  **To use counting mode, please run:**
331 331  )))
332 332  
333 -(((
334 334  (% class="box infomessage" %)
335 335  (((
448 +(((
449 +(((
336 336  **AT+MOD=2**
451 +)))
337 337  
453 +(((
338 338  **ATZ**
339 339  )))
340 340  )))
457 +)))
341 341  
342 342  (((
343 343  
344 344  
345 345  (% style="color:#4f81bd" %)**AT Commands for counting:**
463 +
464 +
346 346  )))
347 347  
348 348  (((
349 349  **For LT22222-L:**
350 350  
470 +
351 351  (% style="color:blue" %)**AT+TRIG1=0,100**(%%)**  (set DI1 port to trigger on low level, valid signal is 100ms) **
352 352  
353 353  (% style="color:blue" %)**AT+TRIG1=1,100**(%%)**  (set DI1 port to trigger on high level, valid signal is 100ms ) **
... ... @@ -367,8 +367,8 @@
367 367  
368 368  **LT22222-L**: This mode the DI1 is used as a counting pin.
369 369  
370 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
371 -|(% style="background-color:#4f81bd; color:white" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white" %)**4**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**
490 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
491 +|**Size(bytes)**|**4**|**2**|**2**|**1**|**1**|**1**
372 372  |Value|COUNT1|(((
373 373  ACI1 Current
374 374  )))|(((
... ... @@ -376,14 +376,17 @@
376 376  )))|DIDORO*|Reserve|MOD
377 377  
378 378  (((
499 +
500 +
379 379  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
380 380  
381 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
503 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
382 382  |**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
383 383  |RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1
384 384  )))
385 385  
386 -* RO is for relay. ROx=1 : close, ROx=0 always open.
508 +
509 +* RO is for relay. ROx=1 : close,ROx=0 always open.
387 387  * FIRST: Indicate this is the first packet after join network.
388 388  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
389 389  
... ... @@ -396,14 +396,18 @@
396 396  **To use counting mode, please run:**
397 397  )))
398 398  
399 -(((
400 400  (% class="box infomessage" %)
401 401  (((
524 +(((
525 +(((
402 402  **AT+MOD=3**
527 +)))
403 403  
529 +(((
404 404  **ATZ**
405 405  )))
406 406  )))
533 +)))
407 407  
408 408  (((
409 409  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
... ... @@ -420,51 +420,63 @@
420 420  (((
421 421  The AVI1 is also used for counting. AVI1 is used to monitor the voltage. It will check the voltage **every 60s**, if voltage is higher or lower than VOLMAX mV, the AVI1 Counting increase 1, so AVI1 counting can be used to measure a machine working hour.
422 422  
423 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
424 -|(% style="background-color:#4f81bd; color:white" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white" %)**4**|(% style="background-color:#4f81bd; color:white" %)**4**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**
550 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
551 +|**Size(bytes)**|**4**|**4**|**1**|**1**|**1**
425 425  |Value|COUNT1|AVI1 Counting|DIDORO*|(((
426 426  Reserve
554 +
555 +
427 427  )))|MOD
428 428  )))
429 429  
559 +
430 430  (((
431 431  (% style="color:#4f81bd" %)**DIDORO **(%%)is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
432 432  
433 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
563 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
434 434  |**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
435 435  |RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1
436 436  )))
437 437  
438 -* RO is for relay. ROx=1 : close, ROx=0 always open.
568 +
569 +* RO is for relay. ROx=1 : close,ROx=0 always open.
439 439  * FIRST: Indicate this is the first packet after join network.
440 440  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
441 441  
442 442  (((
443 443  (% style="color:red" %)**Note: DO3 is not valid for LT-22222-L.**
444 -
445 -
446 446  )))
447 447  
448 448  (((
578 +
579 +
449 449  **To use this mode, please run:**
450 450  )))
451 451  
452 -(((
453 453  (% class="box infomessage" %)
454 454  (((
585 +(((
586 +(((
455 455  **AT+MOD=4**
588 +)))
456 456  
590 +(((
457 457  **ATZ**
458 458  )))
459 459  )))
594 +)))
460 460  
596 +
461 461  (((
462 462  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
463 463  )))
464 464  
465 465  (((
602 +
603 +
466 466  **Plus below command for AVI1 Counting:**
467 467  
606 +
468 468  (% style="color:blue" %)**AT+SETCNT=3,60**(%%)**  (set AVI Count to 60)**
469 469  
470 470  (% style="color:blue" %)**AT+VOLMAX=20000**(%%)**  (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)**
... ... @@ -480,27 +480,32 @@
480 480  
481 481  **LT22222-L**: This mode the DI1 is used as a counting pin.
482 482  
483 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
484 -|(% style="background-color:#4f81bd; color:white" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**2**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**|(% style="background-color:#4f81bd; color:white" %)**1**
622 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
623 +|**Size(bytes)**|**2**|**2**|**2**|**2**|**1**|**1**|**1**
485 485  |Value|(((
486 -AVI1 voltage
625 +AVI1
626 +voltage
487 487  )))|(((
488 -AVI2 voltage
628 +AVI2
629 +voltage
489 489  )))|(((
490 -ACI1 Current
631 +ACI1
632 +Current
491 491  )))|COUNT1|DIDORO*|(((
492 492  Reserve
493 493  )))|MOD
494 494  
495 495  (((
638 +
639 +
496 496  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
497 497  
498 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
642 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
499 499  |**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
500 500  |RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1
501 501  )))
502 502  
503 -* RO is for relay. ROx=1 : close, ROx=0 always open.
647 +* RO is for relay. ROx=1 : closeROx=0 always open.
504 504  * FIRST: Indicate this is the first packet after join network.
505 505  * (((
506 506  DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
... ... @@ -511,17 +511,23 @@
511 511  )))
512 512  
513 513  (((
658 +
659 +
514 514  **To use this mode, please run:**
515 515  )))
516 516  
517 -(((
518 518  (% class="box infomessage" %)
519 519  (((
665 +(((
666 +(((
520 520  **AT+MOD=5**
668 +)))
521 521  
670 +(((
522 522  **ATZ**
523 523  )))
524 524  )))
674 +)))
525 525  
526 526  (((
527 527  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
... ... @@ -616,38 +616,51 @@
616 616  
617 617  MOD6 Payload : total 11 bytes payload
618 618  
619 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
620 -|(% 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**
769 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
770 +|**Size(bytes)**|**1**|**1**|**1**|**6**|**1**|**1**
621 621  |Value|(((
622 -TRI_A FLAG
772 +TRI_A
773 +FLAG
623 623  )))|(((
624 -TRI_A Status
775 +TRI_A
776 +Status
625 625  )))|(((
626 -TRI_DI FLAG+STA
778 +TRI_DI
779 +FLAG+STA
627 627  )))|Reserve|Enable/Disable MOD6|(((
628 -MOD(6)
781 +MOD
782 +(6)
629 629  )))
630 630  
785 +
631 631  (% style="color:#4f81bd" %)**TRI FLAG1**(%%) is a combination to show if trigger is set for this part. Totally 1byte as below
632 632  
633 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
788 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
634 634  |**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
635 635  |(((
636 -AV1_LOW
791 +AV1_
792 +LOW
637 637  )))|(((
638 -AV1_HIGH
794 +AV1_
795 +HIGH
639 639  )))|(((
640 -AV2_LOW
797 +AV2_
798 +LOW
641 641  )))|(((
642 -AV2_HIGH
800 +AV2_
801 +HIGH
643 643  )))|(((
644 -AC1_LOW
803 +AC1_
804 +LOW
645 645  )))|(((
646 -AC1_HIGH
806 +AC1_
807 +HIGH
647 647  )))|(((
648 -AC2_LOW
809 +AC2_
810 +LOW
649 649  )))|(((
650 -AC2_HIGH
812 +AC2_
813 +HIGH
651 651  )))
652 652  
653 653  * Each bits shows if the corresponding trigger has been configured.
... ... @@ -659,24 +659,32 @@
659 659  
660 660  (% style="color:#4f81bd" %)**TRI Status1**(%%) is a combination to show which condition is trigger. Totally 1byte as below
661 661  
662 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
825 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
663 663  |**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
664 664  |(((
665 -AV1_LOW
828 +AV1_
829 +LOW
666 666  )))|(((
667 -AV1_HIGH
831 +AV1_
832 +HIGH
668 668  )))|(((
669 -AV2_LOW
834 +AV2_
835 +LOW
670 670  )))|(((
671 -AV2_HIGH
837 +AV2_
838 +HIGH
672 672  )))|(((
673 -AC1_LOW
840 +AC1_
841 +LOW
674 674  )))|(((
675 -AC1_HIGH
843 +AC1_
844 +HIGH
676 676  )))|(((
677 -AC2_LOW
846 +AC2_
847 +LOW
678 678  )))|(((
679 -AC2_HIGH
849 +AC2_
850 +HIGH
680 680  )))
681 681  
682 682  * Each bits shows which status has been trigger on this uplink.
... ... @@ -688,7 +688,7 @@
688 688  
689 689  (% style="color:#4f81bd" %)**TRI_DI FLAG+STA **(%%)is a combination to show which condition is trigger. Totally 1byte as below
690 690  
691 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:515px" %)
862 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
692 692  |**bit7**|**bit6**|**bit5**|**bit4**|**bit3**|**bit2**|**bit1**|**bit0**
693 693  |N/A|N/A|N/A|N/A|DI2_STATUS|DI2_FLAG|DI1_STATUS|DI1_FLAG
694 694  
... ... @@ -736,6 +736,8 @@
736 736  
737 737  * (% style="color:blue" %)**Sensor Related Commands**(%%): These commands are special designed for LT-22222-L.  User can see these commands below:
738 738  
910 +
911 +
739 739  === 3.4.1 Common Commands ===
740 740  
741 741  
... ... @@ -770,10 +770,14 @@
770 770  
771 771  Set work mode.
772 772  
773 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**AT+MOD=N  **
946 +* (% style="color:#037691" %)**AT Command:**
774 774  
948 +(% style="color:blue" %)**AT+MOD=N  **
949 +
950 +
775 775  **Example**: AT+MOD=2. Set work mode to Double DI counting mode
776 776  
953 +
777 777  * (% style="color:#037691" %)**Downlink Payload (prefix 0x0A):**
778 778  
779 779  (% style="color:blue" %)**0x0A aa  **(%%)** ** ~/~/ Same as AT+MOD=aa
... ... @@ -783,12 +783,16 @@
783 783  ==== 3.4.2.3 Poll an uplink ====
784 784  
785 785  
786 -* (% style="color:#037691" %)**AT Command:**(%%) There is no AT Command to poll uplink
963 +* (% style="color:#037691" %)**AT Command:**
787 787  
965 +There is no AT Command to poll uplink
966 +
967 +
788 788  * (% style="color:#037691" %)**Downlink Payload (prefix 0x08):**
789 789  
790 790  (% style="color:blue" %)**0x08 FF  **(%%)** **~/~/ Poll an uplink
791 791  
972 +
792 792  **Example**: 0x08FF, ask device to send an Uplink
793 793  
794 794  
... ... @@ -798,8 +798,10 @@
798 798  
799 799  Use of trigger mode, please check [[ADDMOD6>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
800 800  
801 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**AT+ADDMOD6=1 or 0**
982 +* (% style="color:#037691" %)**AT Command:**
802 802  
984 +(% style="color:blue" %)**AT+ADDMOD6=1 or 0**
985 +
803 803  (% style="color:red" %)**1:** (%%)Enable Trigger Mode
804 804  
805 805  (% style="color:red" %)**0: **(%%)Disable Trigger Mode
... ... @@ -814,12 +814,13 @@
814 814  ==== 3.4.2.5 Poll trigger settings ====
815 815  
816 816  
817 -Poll trigger settings
1000 +Poll trigger settings,
818 818  
819 819  * (% style="color:#037691" %)**AT Command:**
820 820  
821 821  There is no AT Command for this feature.
822 822  
1006 +
823 823  * (% style="color:#037691" %)**Downlink Payload (prefix 0x AB 06):**
824 824  
825 825  (% style="color:blue" %)**0xAB 06  ** (%%) ~/~/ Poll trigger settings, device will uplink trigger settings once receive this command
... ... @@ -831,11 +831,15 @@
831 831  
832 832  Enable Disable DI1/DI2/DI2 as trigger,
833 833  
834 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >**
1018 +* (% style="color:#037691" %)**AT Command:**
835 835  
836 -**Example:** AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
1020 +(% style="color:blue" %)**Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >**
837 837  
838 838  
1023 +**Example:**
1024 +
1025 +AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
1026 +
839 839  * (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 02):**
840 840  
841 841  (% style="color:blue" %)**0xAA 02 aa bb   ** (%%) ~/~/ Same as AT+DTRI=aa,bb
... ... @@ -847,15 +847,20 @@
847 847  
848 848  Set DI1 or DI3(for LT-33222-L) trigger.
849 849  
850 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**AT+TRIG1=a,b**
1038 +* (% style="color:#037691" %)**AT Command:**
851 851  
1040 +(% style="color:blue" %)**AT+TRIG1=a,b**
1041 +
852 852  (% style="color:red" %)**a :** (%%)Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
853 853  
854 854  (% style="color:red" %)**b :** (%%)delay timing.
855 855  
856 -**Example:** AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms )
857 857  
1047 +**Example:**
858 858  
1049 +AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms )
1050 +
1051 +
859 859  * (% style="color:#037691" %)**Downlink Payload (prefix 0x09 01 ):**
860 860  
861 861  (% style="color:blue" %)**0x09 01 aa bb cc    ** (%%) ~/~/ same as AT+TRIG1=aa,0x(bb cc)
... ... @@ -867,15 +867,20 @@
867 867  
868 868  Set DI2 trigger.
869 869  
870 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**AT+TRIG2=a,b**
1063 +* (% style="color:#037691" %)**AT Command:**
871 871  
1065 +(% style="color:blue" %)**AT+TRIG2=a,b**
1066 +
872 872  (% style="color:red" %)**a :** (%%)Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1).
873 873  
874 874  (% style="color:red" %)**b :** (%%)delay timing.
875 875  
876 -**Example:** AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms )
877 877  
1072 +**Example:**
878 878  
1074 +AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms )
1075 +
1076 +
879 879  * (% style="color:#037691" %)**Downlink Payload (prefix 0x09 02 ):**
880 880  
881 881  (% style="color:blue" %)**0x09 02 aa bb cc   ** (%%)~/~/ same as AT+TRIG2=aa,0x(bb cc)
... ... @@ -887,8 +887,11 @@
887 887  
888 888  Set current trigger , base on AC port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
889 889  
890 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**AT+ACLIM**
1088 +* (% style="color:#037691" %)**AT Command**
891 891  
1090 +(% style="color:blue" %)**AT+ACLIM**
1091 +
1092 +
892 892  * (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 01 )**
893 893  
894 894  (% style="color:blue" %)**0x AA 01 aa bb cc dd ee ff gg hh        ** (%%) ~/~/ same as AT+ACLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
... ... @@ -900,8 +900,11 @@
900 900  
901 901  Set current trigger , base on AV port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
902 902  
903 -* (% style="color:#037691" %)**AT Command**(%%): (% style="color:blue" %)**AT+AVLIM    **(%%)** See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
1104 +* (% style="color:#037691" %)**AT Command**
904 904  
1106 +(% style="color:blue" %)**AT+AVLIM    **(%%)** See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
1107 +
1108 +
905 905  * (% style="color:#037691" %)**Downlink Payload (prefix 0xAA 00 )**
906 906  
907 907  (% style="color:blue" %)**0x AA 00 aa bb cc dd ee ff gg hh    ** (%%) ~/~/ same as AT+AVLIM See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]
... ... @@ -913,13 +913,18 @@
913 913  
914 914  Set AV and AC trigger minimum interval, system won't response to the second trigger within this set time after the first trigger.
915 915  
916 -* (% style="color:#037691" %)**AT Command**(%%): (% style="color:blue" %)**AT+ATDC=5        ** ~/~/ (%%)Device won't response the second trigger within 5 minute after the first trigger.
1120 +* (% style="color:#037691" %)**AT Command**
917 917  
1122 +(% style="color:blue" %)**AT+ATDC=5        ** (%%)Device won't response the second trigger within 5 minute after the first trigger.
1123 +
1124 +
918 918  * (% style="color:#037691" %)**Downlink Payload (prefix 0xAC )**
919 919  
920 920  (% style="color:blue" %)**0x AC aa bb   **(%%) ~/~/ same as AT+ATDC=0x(aa bb)   . Unit (min)
921 921  
922 922  (((
1130 +
1131 +
923 923  (% style="color:red" %)**Note: ATDC setting must be more than 5min**
924 924  )))
925 925  
... ... @@ -934,9 +934,8 @@
934 934  
935 935  
936 936  * (% style="color:#037691" %)**Downlink Payload (prefix 0x02)**
1146 +* (% style="color:blue" %)**0x02 aa bb cc     ** (%%)~/~/ Set DO1/DO2/DO3 output
937 937  
938 -(% style="color:blue" %)**0x02 aa bb cc     ** (%%)~/~/ Set DO1/DO2/DO3 output
939 -
940 940  (((
941 941  If payload = 0x02010001, while there is load between V+ and DOx, it means set DO1 to low, DO2 to high and DO3 to low.
942 942  )))
... ... @@ -944,13 +944,14 @@
944 944  (((
945 945  01: Low,  00: High ,  11: No action
946 946  
947 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
948 -|(% style="background-color:#4f81bd; color:white" %)**Downlink Code**|(% style="background-color:#4f81bd; color:white" %)**DO1**|(% style="background-color:#4f81bd; color:white" %)**DO2**|(% style="background-color:#4f81bd; color:white" %)**DO3**
1155 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
1156 +|(% style="background-color:#d9e2f3; color:#0070c0" %)**Downlink Code**|(% style="background-color:#d9e2f3; color:#0070c0" %)**DO1**|(% style="background-color:#d9e2f3; color:#0070c0" %)**DO2**|(% style="background-color:#d9e2f3; color:#0070c0" %)**DO3**
949 949  |02  01  00  11|Low|High|No Action
950 950  |02  00  11  01|High|No Action|Low
951 951  |02  11  01  00|No Action|Low|High
952 952  )))
953 953  
1162 +
954 954  (((
955 955  (% style="color:red" %)**Note: For LT-22222-L, there is no DO3, the last byte can use any value.**
956 956  )))
... ... @@ -988,7 +988,7 @@
988 988  (% style="color:#4f81bd" %)**Third Byte**(%%): Control Method and Ports status:
989 989  
990 990  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
991 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1200 +|(% style="background-color:#d9e2f3; color:#0070c0" %)**Second Byte**|(% style="background-color:#d9e2f3; color:#0070c0" %)**Status**
992 992  |0x01|DO1 set to low
993 993  |0x00|DO1 set to high
994 994  |0x11|DO1 NO Action
... ... @@ -996,7 +996,7 @@
996 996  (% style="color:#4f81bd" %)**Fourth Byte**(%%): Control Method and Ports status:
997 997  
998 998  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
999 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1208 +|(% style="background-color:#d9e2f3; color:#0070c0" %)**Second Byte**|(% style="background-color:#d9e2f3; color:#0070c0" %)**Status**
1000 1000  |0x01|DO2 set to low
1001 1001  |0x00|DO2 set to high
1002 1002  |0x11|DO2 NO Action
... ... @@ -1004,7 +1004,7 @@
1004 1004  (% style="color:#4f81bd" %)**Fifth Byte**(%%): Control Method and Ports status:
1005 1005  
1006 1006  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:300px" %)
1007 -|(% style="background-color:#4f81bd; color:white" %)**Second Byte**|(% style="background-color:#4f81bd; color:white" %)**Status**
1216 +|(% style="background-color:#d9e2f3; color:#0070c0" %)**Second Byte**|(% style="background-color:#d9e2f3; color:#0070c0" %)**Status**
1008 1008  |0x01|DO3 set to low
1009 1009  |0x00|DO3 set to high
1010 1010  |0x11|DO3 NO Action
... ... @@ -1018,6 +1018,7 @@
1018 1018  
1019 1019   Before Firmwre v1.6.0 the latch time only suport 2 bytes.
1020 1020  
1230 +
1021 1021  (% style="color:red" %)**Device will upload a packet if downlink code executes successfully.**
1022 1022  
1023 1023  
... ... @@ -1041,7 +1041,7 @@
1041 1041  
1042 1042  
1043 1043  
1044 -==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
1254 +==== 3.4.2. 14 Relay ~-~- Control Relay Output RO1/RO2 ====
1045 1045  
1046 1046  
1047 1047  * (% style="color:#037691" %)**AT Command:**
... ... @@ -1059,10 +1059,10 @@
1059 1059  )))
1060 1060  
1061 1061  (((
1062 -00: Close ,  01: Open , 11: No action
1272 +01: Close ,  00: Open , 11: No action
1063 1063  
1064 1064  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:320px" %)
1065 -|(% style="background-color:#4f81bd; color:white" %)**Downlink Code**|(% style="background-color:#4f81bd; color:white" %)**RO1**|(% style="background-color:#4f81bd; color:white" %)**RO2**
1275 +|(% style="background-color:#d9e2f3; color:#0070c0" %)**Downlink Code**|(% style="background-color:#d9e2f3; color:#0070c0" %)**RO1**|(% style="background-color:#d9e2f3; color:#0070c0" %)**RO2**
1066 1066  |03  00  11|Open|No Action
1067 1067  |03  01  11|Close|No Action
1068 1068  |03  11  00|No Action|Open
... ... @@ -1073,6 +1073,10 @@
1073 1073  |03  00  01|Open|Close
1074 1074  )))
1075 1075  
1286 +(((
1287 +
1288 +)))
1289 +
1076 1076  (% style="color:red" %)**Device will upload a packet if downlink code executes successfully.**
1077 1077  
1078 1078  
... ... @@ -1144,8 +1144,11 @@
1144 1144  
1145 1145  When voltage exceed the threshold, count. Feature see [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1146 1146  
1147 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**AT+VOLMAX   ** (%%)~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1361 +* (% style="color:#037691" %)**AT Command:**
1148 1148  
1363 +(% style="color:blue" %)**AT+VOLMAX   ** (%%)~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]
1364 +
1365 +
1149 1149  * (% style="color:#037691" %)**Downlink Payload (prefix 0xA5):**
1150 1150  
1151 1151  (% style="color:blue" %)**0xA5 aa bb cc   ** (%%)~/~/ Same as AT+VOLMAX=(aa bb),cc
... ... @@ -1155,8 +1155,10 @@
1155 1155  ==== 3.4.2.17 Counting ~-~- Pre-configure the Count Number ====
1156 1156  
1157 1157  
1158 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**AT+SETCNT=aa,(bb cc dd ee) **
1375 +* (% style="color:#037691" %)**AT Command:**
1159 1159  
1377 +(% style="color:blue" %)**AT+SETCNT=aa,(bb cc dd ee) **
1378 +
1160 1160  (% style="color:red" %)**aa:**(%%) 1: Set count1; 2: Set count2; 3: Set AV1 count
1161 1161  
1162 1162  (% style="color:red" %)**bb cc dd ee: **(%%)number to be set
... ... @@ -1173,8 +1173,11 @@
1173 1173  
1174 1174  Clear counting for counting mode
1175 1175  
1176 -* (% style="color:#037691" %)**AT Command:**(%%) (% style="color:blue" %)**AT+CLRCOUNT         **(%%) ~/~/ clear all counting
1395 +* (% style="color:#037691" %)**AT Command:**
1177 1177  
1397 +(% style="color:blue" %)**AT+CLRCOUNT **(%%) ~/~/ clear all counting
1398 +
1399 +
1178 1178  * (% style="color:#037691" %)**Downlink Payload (prefix 0xA6):**
1179 1179  
1180 1180  (% style="color:blue" %)**0x A6 01    ** (%%)~/~/ clear all counting
... ... @@ -1333,6 +1333,7 @@
1333 1333  [[image:1653356838789-523.png||height="337" width="740"]]
1334 1334  
1335 1335  
1558 +
1336 1336  After added, the sensor data arrive TTN, it will also arrive and show in Mydevices.
1337 1337  
1338 1338  [[image:image-20220524094909-1.png||height="335" width="729"]]
... ... @@ -1364,12 +1364,12 @@
1364 1364  
1365 1365  
1366 1366  (((
1367 -The DI port of LT-22222-L can support **NPN** or **PNP** or **Dry Contact** output sensor.
1590 +The DI port of LT-22222-L can support NPN or PNP output sensor.
1368 1368  )))
1369 1369  
1370 1370  (((
1371 1371  (((
1372 -Internal circuit as below, the NEC2501 is a photocoupler, the Active current (from NEC2501 pin 1 to pin 2 is 1ma and the max current is 50mA). (% class="mark" %)When there is active current pass NEC2501 pin1 to pin2. The DI will be active high and DI LED status will change.
1595 +Internal circuit as below, the NEC2501 is a photocoupler, the Active current (from NEC2501 pin 1 to pin 2 is 1ma and the max current is 50mA. When there is active current pass NEC2501 pin1 to pin2. The DI will be active high.
1373 1373  
1374 1374  
1375 1375  )))
... ... @@ -1477,19 +1477,6 @@
1477 1477  )))
1478 1478  
1479 1479  
1480 -(% style="color:blue" %)**Example4**(%%): Connect to Dry Contact sensor
1481 -
1482 -From above DI ports circuit, we can see that active the photocoupler will need to have a voltage difference between DI+ and DI- port. While the Dry Contact sensor is a passive component which can't provide this voltage difference.
1483 -
1484 -To detect a Dry Contact, we can provide a power source to one pin of the Dry Contact. Below is a reference connection.
1485 -
1486 -[[image:image-20230616235145-1.png]]
1487 -
1488 -(% style="color:blue" %)**Example5**(%%): Connect to Open Colleactor
1489 -
1490 -[[image:image-20240219115718-1.png]]
1491 -
1492 -
1493 1493  === 3.6.3 Digital Output Port: DO1/DO2 /DO3 ===
1494 1494  
1495 1495  
... ... @@ -1523,6 +1523,7 @@
1523 1523  
1524 1524  **Black:  GND**
1525 1525  
1736 +
1526 1526  **Connection diagram:**
1527 1527  
1528 1528  [[image:1653357640609-758.png]]
... ... @@ -1530,22 +1530,6 @@
1530 1530  [[image:1653357648330-671.png||height="155" width="733"]]
1531 1531  
1532 1532  
1533 -Example connected to a regulated power supply to measure voltage
1534 -
1535 -[[image:image-20230608101532-1.png||height="606" width="447"]]
1536 -
1537 -[[image:image-20230608101608-2.jpeg||height="379" width="284"]]
1538 -
1539 -[[image:image-20230608101722-3.png||height="102" width="1139"]]
1540 -
1541 -
1542 -(% style="color:blue; font-weight:bold" %)**Specifications of the regulated power**(%%) (% style="color:blue" %)**:**
1543 -
1544 -(% style="color:red" %)**Red:  12~~24v**
1545 -
1546 -**Black:  GND**
1547 -
1548 -
1549 1549  === 3.6.5 Relay Output ===
1550 1550  
1551 1551  
... ... @@ -1564,9 +1564,12 @@
1564 1564  == 3.7 LEDs Indicators ==
1565 1565  
1566 1566  
1567 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:510px" %)
1568 -|(% style="background-color:#4f81bd; color:white; width:50px" %)**LEDs**|(% style="background-color:#4f81bd; color:white; width:460px" %)**Feature**
1762 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:520px" %)
1763 +|(% style="background-color:#d9e2f3; color:#0070c0; width:50px" %)**LEDs**|(% style="background-color:#d9e2f3; color:#0070c0; width:470px" %)**Feature**
1569 1569  |**PWR**|Always on if there is power
1765 +|**SYS**|(((
1766 +After device is powered on, the SYS will **fast blink in GREEN** for 5 times, means RS485-LN start to join LoRaWAN network. If join success, SYS will be **on GREEN for 5 seconds. **SYS will **blink Blue** on every upload and **blink Green** once receive a downlink message.
1767 +)))
1570 1570  |**TX**|(((
1571 1571  (((
1572 1572  Device boot: TX blinks 5 times.
... ... @@ -1581,17 +1581,23 @@
1581 1581  )))
1582 1582  )))
1583 1583  |**RX**|RX blinks once when receive a packet.
1584 -|**DO1**|For LT-22222-L: ON when DO1 is low, LOW when DO1 is high
1585 -|**DO2**|For LT-22222-L: ON when DO2 is low, LOW when DO2 is high
1586 -|**DI1**|(((
1587 -For LT-22222-L: ON when DI1 is high, LOW when DI1 is low
1782 +|**DO1**|
1783 +|**DO2**|
1784 +|**DO3**|
1785 +|**DI2**|(((
1786 +For LT-22222-L: ON when DI2 is high, LOW when DI2 is low
1588 1588  )))
1589 1589  |**DI2**|(((
1590 -For LT-22222-L: ON when DI2 is high, LOW when DI2 is low
1789 +For LT-22222-L: ON when DI2 is high, LOW when DI2 is low
1591 1591  )))
1592 -|**RO1**|For LT-22222-L: ON when RO1 is closed, LOW when RO1 is open
1593 -|**RO2**|For LT-22222-L: ON when RO2 is closed, LOW when RO2 is open
1791 +|**DI2**|(((
1792 +For LT-22222-L: ON when DI2 is high, LOW when DI2 is low
1793 +)))
1794 +|**RO1**|
1795 +|**RO2**|
1594 1594  
1797 +
1798 +
1595 1595  = 4. Use AT Command =
1596 1596  
1597 1597  == 4.1 Access AT Command ==
... ... @@ -1601,6 +1601,10 @@
1601 1601  LT supports AT Command set. User can use a USB to TTL adapter plus the 3.5mm Program Cable to connect to LT for using AT command, as below.
1602 1602  )))
1603 1603  
1808 +(((
1809 +
1810 +)))
1811 +
1604 1604  [[image:1653358238933-385.png]]
1605 1605  
1606 1606  
... ... @@ -1919,6 +1919,8 @@
1919 1919  dir=LoRa_Gateway/&file=LoRaWAN%201.0.3%20Regional%20Parameters.xlsx]] to see what DR means.**
1920 1920  
1921 1921  **4. The command AT+RX2FQ and AT+RX2DR is to let downlink work. to set the correct parameters, user can check the actually downlink parameters to be used. As below. Which shows the RX2FQ should use 868400000 and RX2DR should be 5.**
2130 +
2131 +
1922 1922  )))
1923 1923  
1924 1924  (((
... ... @@ -1925,6 +1925,9 @@
1925 1925  [[image:1653359097980-169.png||height="188" width="729"]]
1926 1926  )))
1927 1927  
2138 +(((
2139 +
2140 +)))
1928 1928  
1929 1929  === 4.2.3 Change to Class A ===
1930 1930  
... ... @@ -1932,9 +1932,8 @@
1932 1932  (((
1933 1933  (% style="color:blue" %)**If sensor JOINED:**
1934 1934  
1935 -(% style="background-color:#dcdcdc" %)**AT+CLASS=A**
1936 -
1937 -(% style="background-color:#dcdcdc" %)**ATZ**
2148 +(% style="background-color:#dcdcdc" %)**AT+CLASS=A
2149 +ATZ**
1938 1938  )))
1939 1939  
1940 1940  
... ... @@ -1964,7 +1964,7 @@
1964 1964  
1965 1965  (((
1966 1966  (% style="color:blue" %)**Step1**(%%)**:** Download [[flash loader>>url:https://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-programmers/flasher-stm32.html]].
1967 -(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>https://www.dropbox.com/sh/g99v0fxcltn9r1y/AACrbrDN0AqLHbBat0ViWx5Da/LT-22222-L/Firmware?dl=0&subfolder_nav_tracking=1]].
2179 +(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:https://www.dropbox.com/sh/g99v0fxcltn9r1y/AADKXQ2v5ZT-S3sxdmbvE7UAa/LT-22222-L/image?dl=0&subfolder_nav_tracking=1]].
1968 1968  (% style="color:blue" %)**Step3**(%%)**:** Open flashloader; choose the correct COM port to update.
1969 1969  
1970 1970  
... ... @@ -1987,6 +1987,7 @@
1987 1987  
1988 1988  (% style="color:red" %)**Notice**(%%): In case user has lost the program cable. User can hand made one from a 3.5mm cable. The pin mapping is:
1989 1989  
2202 +
1990 1990  [[image:1653360054704-518.png||height="186" width="745"]]
1991 1991  
1992 1992  
... ... @@ -2050,21 +2050,13 @@
2050 2050  
2051 2051  (((
2052 2052  (% style="background-color:#dcdcdc" %)**123456** (%%) :  Enter Password to have AT access.
2053 -
2054 2054  (% style="background-color:#dcdcdc" %)**AT+FDR**(%%)  :  Reset Parameters to Factory Default, Keys Reserve
2055 -
2056 2056  (% style="background-color:#dcdcdc" %)**AT+NJM=0** (%%) :  Set to ABP mode
2057 -
2058 2058  (% style="background-color:#dcdcdc" %)**AT+ADR=0** (%%) :  Set the Adaptive Data Rate Off
2059 -
2060 2060  (% style="background-color:#dcdcdc" %)**AT+DR=5** (%%) :  Set Data Rate (Set AT+DR=3 for 915 band)
2061 -
2062 2062  (% style="background-color:#dcdcdc" %)**AT+TDC=60000 **(%%) :  Set transmit interval to 60 seconds
2063 -
2064 2064  (% style="background-color:#dcdcdc" %)**AT+CHS=868400000**(%%) : Set transmit frequency to 868.4Mhz
2065 -
2066 2066  (% style="background-color:#dcdcdc" %)**AT+DADDR=26 01 1A F1**(%%)  :  Set Device Address to 26 01 1A F1
2067 -
2068 2068  (% style="background-color:#dcdcdc" %)**ATZ**        (%%) :  Reset MCU
2069 2069  )))
2070 2070  
... ... @@ -2076,7 +2076,7 @@
2076 2076  [[image:1653360498588-932.png||height="485" width="726"]]
2077 2077  
2078 2078  
2079 -== 6.4 How to change the uplink interval? ==
2284 +== 6.4 How to change the uplink interval ==
2080 2080  
2081 2081  
2082 2082  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/]]
... ... @@ -2125,12 +2125,6 @@
2125 2125  Firmware version needs to be no less than 1.6.0.
2126 2126  
2127 2127  
2128 -== 6.10 Why does the LT22222 always report 15.585V when measuring AVI? ==
2129 -
2130 -
2131 -It is likely that the GND is not connected during the measurement, or the wire connected to the GND is loose.
2132 -
2133 -
2134 2134  = 7. Trouble Shooting =
2135 2135  )))
2136 2136  
... ... @@ -2171,13 +2171,6 @@
2171 2171  )))
2172 2172  
2173 2173  
2174 -== 7.4 Why can LT22222 perform Uplink normally, but cannot receive Downlink? ==
2175 -
2176 -
2177 -The FCD count of the gateway is inconsistent with the FCD count of the node, causing the downlink to remain in the queue state.
2178 -Use this command to bring their counts back together: [[Resets the downlink packet count>>||anchor="H3.4.2.23Resetsthedownlinkpacketcount"]]
2179 -
2180 -
2181 2181  = 8. Order Info =
2182 2182  
2183 2183  
... ... @@ -2195,6 +2195,8 @@
2195 2195  * (% style="color:red" %)**IN865**(%%):  LT with frequency bands IN865
2196 2196  * (% style="color:red" %)**CN779**(%%):  LT with frequency bands CN779
2197 2197  
2390 +
2391 +
2198 2198  = 9. Packing Info =
2199 2199  
2200 2200  
... ... @@ -2212,6 +2212,8 @@
2212 2212  * Package Size / pcs : 14.5 x 8 x 5 cm
2213 2213  * Weight / pcs : 170g
2214 2214  
2409 +
2410 +
2215 2215  = 10. Support =
2216 2216  
2217 2217  
image-20230616235145-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Edwin
Size
... ... @@ -1,1 +1,0 @@
1 -19.4 KB
Content
image-20240219115718-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Edwin
Size
... ... @@ -1,1 +1,0 @@
1 -27.7 KB
Content