Changes for page LT-22222-L -- LoRa I/O Controller User Manual
Last modified by Mengting Qiu on 2025/06/04 18:42
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 50 removed)
- 1653356737703-362.png
- 1653356838789-523.png
- 1653356991268-289.png
- 1653357170703-587.png
- 1653357531600-905.png
- 1653357592296-182.png
- 1653357640609-758.png
- 1653357648330-671.png
- 1653358238933-385.png
- 1653358355238-883.png
- 1653359097980-169.png
- 1653359603330-121.png
- 1653360054704-518.png
- 1653360231087-571.png
- 1653360498588-932.png
- image-20220523175847-2.png
- image-20220523180452-3.png
- image-20220523180506-4.png
- image-20220523181246-5.png
- image-20220523181301-6.png
- image-20220523181727-7.png
- image-20220523181903-8.png
- image-20220523182334-9.png
- image-20220524085923-1.png
- image-20220524090106-2.png
- image-20220524090249-3.png
- image-20220524090456-4.png
- image-20220524092754-5.png
- image-20220524093238-6.png
- image-20220524093328-7.png
- image-20220524093351-8.png
- image-20220524093724-9.png
- image-20220524093831-10.png
- image-20220524094641-11.png
- image-20220524094641-12.png
- image-20220524094909-1.png
- image-20220524094909-2.png
- image-20220524094909-3.png
- image-20220524094909-4.png
- image-20220524094909-5.png
- image-20220524095400-6.png
- image-20220524095438-7.png
- image-20220524095628-8.png
- image-20220524100215-10.png
- image-20220524100215-9.png
- image-20220524100748-11.png
- image-20220524103407-12.png
- image-20220524103429-13.png
- image-20220524103652-14.png
- image-20220524104033-15.png
Details
- Page properties
-
- Content
-
... ... @@ -4,13 +4,8 @@ 4 4 **LT-22222-L LoRa IO Controller User Manual ** 5 5 6 6 7 -**Table of Contents:** 8 8 9 -{{toc/}} 10 10 11 - 12 - 13 - 14 14 = 1.Introduction = 15 15 16 16 == 1.1 What is LT Series I/O Controller == ... ... @@ -41,122 +41,48 @@ 41 41 42 42 ((( 43 43 [[image:1653295757274-912.png]] 44 - 45 - 46 46 ))) 47 47 48 48 == 1.2 Specifications == 49 49 50 -((( 51 51 **Hardware System:** 52 -))) 53 53 54 -* ((( 55 -STM32L072CZT6 MCU 56 -))) 57 -* ((( 58 -SX1276/78 Wireless Chip 59 -))) 60 -* ((( 61 -((( 62 -Power Consumption: 63 -))) 45 +* STM32L072CZT6 MCU 46 +* SX1276/78 Wireless Chip 47 +* Power Consumption: 48 +** Idle: 4mA@12v 49 +** 20dB Transmit: 34mA@12v 64 64 65 -* ((( 66 -Idle: 4mA@12v 67 -))) 68 -* ((( 69 -20dB Transmit: 34mA@12v 70 -))) 71 -))) 72 - 73 -((( 74 74 **Interface for Model: LT22222-L:** 75 -))) 76 76 77 -* ((( 78 -2 x Digital dual direction Input (Detect High/Low signal, Max: 50v, or 220v with optional external resistor) 79 -))) 80 -* ((( 81 -2 x Digital Output (NPN output. Max pull up voltage 36V,450mA) 82 -))) 83 -* ((( 84 -2 x Relay Output (5A@250VAC / 30VDC) 85 -))) 86 -* ((( 87 -2 x 0~~20mA Analog Input (res:0.01mA) 88 -))) 89 -* ((( 90 -2 x 0~~30V Analog Input (res:0.01v) 91 -))) 92 -* ((( 93 -Power Input 7~~ 24V DC. 94 -))) 53 +* 2 x Digital dual direction Input (Detect High/Low signal, Max: 50v, or 220v with optional external resistor) 54 +* 2 x Digital Output (NPN output. Max pull up voltage 36V,450mA) 55 +* 2 x Relay Output (5A@250VAC / 30VDC) 56 +* 2 x 0~~20mA Analog Input (res:0.01mA) 57 +* 2 x 0~~30V Analog Input (res:0.01v) 58 +* Power Input 7~~ 24V DC. 95 95 96 -((( 97 97 **LoRa Spec:** 98 -))) 99 99 100 -* ((( 101 -((( 102 -Frequency Range: 103 -))) 62 +* Frequency Range: 63 +** Band 1 (HF): 862 ~~ 1020 Mhz 64 +** Band 2 (LF): 410 ~~ 528 Mhz 65 +* 168 dB maximum link budget. 66 +* +20 dBm - 100 mW constant RF output vs. 67 +* +14 dBm high efficiency PA. 68 +* Programmable bit rate up to 300 kbps. 69 +* High sensitivity: down to -148 dBm. 70 +* Bullet-proof front end: IIP3 = -12.5 dBm. 71 +* Excellent blocking immunity. 72 +* Low RX current of 10.3 mA, 200 nA register retention. 73 +* Fully integrated synthesizer with a resolution of 61 Hz. 74 +* FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation. 75 +* Built-in bit synchronizer for clock recovery. 76 +* Preamble detection. 77 +* 127 dB Dynamic Range RSSI. 78 +* Automatic RF Sense and CAD with ultra-fast AFC. 79 +* Packet engine up to 256 bytes with CRC. 104 104 105 -* ((( 106 -Band 1 (HF): 862 ~~ 1020 Mhz 107 -))) 108 -* ((( 109 -Band 2 (LF): 410 ~~ 528 Mhz 110 -))) 111 -))) 112 -* ((( 113 -168 dB maximum link budget. 114 -))) 115 -* ((( 116 -+20 dBm - 100 mW constant RF output vs. 117 -))) 118 -* ((( 119 -+14 dBm high efficiency PA. 120 -))) 121 -* ((( 122 -Programmable bit rate up to 300 kbps. 123 -))) 124 -* ((( 125 -High sensitivity: down to -148 dBm. 126 -))) 127 -* ((( 128 -Bullet-proof front end: IIP3 = -12.5 dBm. 129 -))) 130 -* ((( 131 -Excellent blocking immunity. 132 -))) 133 -* ((( 134 -Low RX current of 10.3 mA, 200 nA register retention. 135 -))) 136 -* ((( 137 -Fully integrated synthesizer with a resolution of 61 Hz. 138 -))) 139 -* ((( 140 -FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation. 141 -))) 142 -* ((( 143 -Built-in bit synchronizer for clock recovery. 144 -))) 145 -* ((( 146 -Preamble detection. 147 -))) 148 -* ((( 149 -127 dB Dynamic Range RSSI. 150 -))) 151 -* ((( 152 -Automatic RF Sense and CAD with ultra-fast AFC. 153 -))) 154 -* ((( 155 -Packet engine up to 256 bytes with CRC. 156 - 157 - 158 -))) 159 - 160 160 == 1.3 Features == 161 161 162 162 * LoRaWAN Class A & Class C protocol ... ... @@ -167,7 +167,6 @@ 167 167 * Firmware upgradable via program port 168 168 * Counting 169 169 170 - 171 171 == 1.4 Applications == 172 172 173 173 * Smart Buildings & Home Automation ... ... @@ -177,7 +177,6 @@ 177 177 * Smart Cities 178 178 * Smart Factory 179 179 180 - 181 181 == 1.5 Hardware Variants == 182 182 183 183 (% border="1" style="background-color:#f7faff; width:500px" %) ... ... @@ -191,8 +191,6 @@ 191 191 * 1 x Counting Port 192 192 ))) 193 193 194 - 195 - 196 196 = 2. Power ON Device = 197 197 198 198 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. ... ... @@ -203,29 +203,21 @@ 203 203 204 204 [[image:1653297104069-180.png]] 205 205 206 - 207 207 = 3. Operation Mode = 208 208 209 209 == 3.1 How it works? == 210 210 211 -((( 212 212 The LT is configured as LoRaWAN OTAA Class C mode by default. It has OTAA keys to join network. To connect a local LoRaWAN network, user just need to input the OTAA keys in the network server and power on the LT. It will auto join the network via OTAA. For LT-22222-L, the LED will show the Join status: After power on **TX LED** will fast blink 5 times, LT-22222-L will enter working mode and start to JOIN LoRaWAN network. **TX LED** will be on for 5 seconds after joined in network. When there is message from server, the **RX LED** will be on for 1 second. 213 -))) 214 214 215 -((( 216 -In case user can’t set the OTAA keys in the network server and has to use the existing keys from server. User can [[use AT Command>>||anchor="H4.UseATCommand"]] to set the keys in the devices. 129 +In case user can’t set the OTAA keys in the network server and has to use the existing keys from server. User can [[use AT Command>>path:#AT_Command]] to set the keys in the devices. 217 217 218 - 219 -))) 131 +3.2 Example to join LoRaWAN network 220 220 221 -== 3.2 Example to join LoRaWAN network == 222 - 223 -((( 224 224 This chapter shows an example for how to join the TTN LoRaWAN Network. Below is the network structure, we use our LG308 as LoRaWAN gateway here. 225 -))) 226 226 227 227 [[image:image-20220523172350-1.png||height="266" width="864"]] 228 228 137 + 229 229 ((( 230 230 The LG308 is already set to connect to [[TTN network >>url:https://www.thethingsnetwork.org/]]. So what we need to do now is only configure register this device to TTN: 231 231 ))) ... ... @@ -246,12 +246,10 @@ 246 246 247 247 [[image:1653297955910-247.png||height="321" width="716"]] 248 248 249 - 250 250 Add APP KEY and DEV EUI 251 251 252 252 [[image:1653298023685-319.png]] 253 253 254 - 255 255 ((( 256 256 **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. 257 257 ))) ... ... @@ -258,7 +258,6 @@ 258 258 259 259 [[image:1653298044601-602.png||height="405" width="709"]] 260 260 261 - 262 262 == 3.3 Uplink Payload == 263 263 264 264 There are five working modes + one interrupt mode on LT for different type application: ... ... @@ -270,7 +270,6 @@ 270 270 * **MOD5**: Single DI Counting + 2 x AVI + 1 x ACI + DO + RO 271 271 * **ADDMOD6**: Trigger Mode, Optional, used together with MOD1 ~~ MOD5 272 272 273 - 274 274 === 3.3.1 AT+MOD~=1, 2ACI+2AVI === 275 275 276 276 The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by default. ... ... @@ -277,9 +277,7 @@ 277 277 278 278 [[image:image-20220523174024-3.png]] 279 279 280 -((( 281 281 (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below 282 -))) 283 283 284 284 [[image:image-20220523174254-4.png]] 285 285 ... ... @@ -287,12 +287,13 @@ 287 287 * DI is for digital input. DIx=1: high or float, DIx=0: low. 288 288 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 289 289 290 - (% style="color:red" %)Note: DI3 and DO3 bit are not valid for LT-22222-L193 +Note: DI3 and DO3 bit are not valid for LT-22222-L 291 291 292 -For example if payload is: [[image:image-20220523175847-2.png]] 293 293 294 - **Thevaluefor theinterfaceis:**196 +For example if payload is: 04 AB 04 AC 13 10 13 00 AA FF 01 295 295 198 +The value for the interface is: 199 + 296 296 AVI1 channel voltage is 0x04AB/1000=1195(DEC)/1000=1.195V 297 297 298 298 AVI2 channel voltage is 0x04AC/1000=1.196V ... ... @@ -306,8 +306,14 @@ 306 306 * [1] RO1 relay channel is close and the RO1 LED is ON. 307 307 * [0] RO2 relay channel is open and RO2 LED is OFF; 308 308 309 - **LT22222-L:**213 +LT33222-L: 310 310 215 +* [1] DI3 channel is high input and DI3 LED is OFF; 216 +* [0] DI2 channel is low input; 217 +* [1] DI1 channel is high input and DI1 LED is OFF; 218 + 219 +LT22222-L: 220 + 311 311 * [1] DI2 channel is high input and DI2 LED is ON; 312 312 * [0] DI1 channel is low input; 313 313 ... ... @@ -321,310 +321,293 @@ 321 321 ** DO1 is high in case there is load between DO1 and V+. 322 322 ** DO1 LED is off in both case 323 323 324 -=== 3.3.2 AT+MOD~=2, (Double DI Counting) === 325 325 235 +1. 236 +11. 237 +111. AT+MOD=2, (Double DI Counting) 238 + 239 +**For LT-33222-L**: this mode the **DI3** is used as a counting pin. Counting on DI3 reflect in COUNT1. 240 + 326 326 **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins. 327 327 328 - (((243 + 329 329 Total : 11 bytes payload 330 -))) 331 331 332 -[[image:image-20220523180452-3.png]] 246 +(% border="1" style="background-color:#f7faff; height:10px; width:500px" %) 247 +|Size(bytes)|4|4|1|1|1 248 +|Value|COUNT1|COUNT2 |DIDORO*|((( 249 +Reserve 333 333 334 -((( 335 -(% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DO3, DO2 and DO1. Totally 1bytes as below 336 -))) 251 + 252 +)))|MOD 337 337 338 - [[image:image-20220523180506-4.png]]254 +**DIDORO** is a combination for RO1, RO2, DO3, DO2 and DO1. Totally 1bytes as below 339 339 256 +(% border="1" style="background-color:#f7faff" %) 257 +|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0 258 +|RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1 259 + 340 340 * RO is for relay. ROx=1 : close,ROx=0 always open. 341 341 * FIRST: Indicate this is the first packet after join network. 342 342 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 343 343 344 -((( 345 -(% style="color:red" %)Note: DO3 bit is not valid for LT-22222-L. 346 -))) 264 +Note: DO3 bit is not valid for LT-22222-L. 347 347 348 -((( 349 -**To use counting mode, please run:** 350 -))) 351 351 352 -(% class="box infomessage" %) 353 -((( 354 -((( 355 -**AT+MOD=2** 356 -))) 357 -))) 267 +To use counting mode, please run: 358 358 359 -(% class="box infomessage" %) 360 -((( 361 -((( 362 -**ATZ** 363 -))) 364 -))) 269 +AT+MOD=2 365 365 366 -((( 367 -(% style="color:#4f81bd" %)**AT Commands for counting:** 368 -))) 271 +ATZ 369 369 370 -((( 273 + 274 +AT Commands for counting: 275 + 276 +**For LT33222-L:** 277 + 278 +AT+TRIG1=0,100 (set DI3 port to trigger on low level, valid signal is 100ms) 279 + 280 +AT+TRIG1=1,100 (set DI3 port to trigger on high level, valid signal is 100ms ) 281 + 282 +AT+SETCNT=1,60 (Set COUNT1 value to 60) 283 + 284 + 371 371 **For LT22222-L:** 372 -))) 373 373 374 -(% class="box infomessage" %) 375 -((( 376 -((( 377 -**AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) ** 378 -))) 379 -))) 287 +AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) 380 380 381 -(% class="box infomessage" %) 382 -((( 383 -((( 384 -**AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) ** 385 -))) 386 -))) 289 +AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) 387 387 388 -(% class="box infomessage" %) 389 -((( 390 -((( 391 -**AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) ** 392 -))) 393 -))) 291 +AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) 394 394 395 -(% class="box infomessage" %) 396 -((( 397 -((( 398 -**AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) ** 399 -))) 400 -))) 293 +AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) 401 401 402 -(% class="box infomessage" %) 403 -((( 404 -((( 405 -**AT+SETCNT=1,60 (Set COUNT1 value to 60)** 406 -))) 407 -))) 408 408 409 -(% class="box infomessage" %) 410 -((( 411 -((( 412 -**AT+SETCNT=2,60 (Set COUNT2 value to 60)** 413 -))) 414 -))) 296 +AT+SETCNT=1,60 (Set COUNT1 value to 60) 415 415 416 - === 3.3.3AT+MOD~=3, SingleDI Counting+2xACI===298 +AT+SETCNT=2,60 (Set COUNT2 value to 60) 417 417 300 + 301 +**For both LT22222-L & LT33222-L**: 302 + 303 +AT+CLRCOUNT clear all countings 304 + 305 +AT+COUTIME=60 Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30) 306 + 307 + 308 + 309 +1. 310 +11. 311 +111. AT+MOD=3, Single DI Counting + 2 x ACI 312 + 313 +**LT33222-L**: This mode the DI3 is used as a counting pin. 314 + 418 418 **LT22222-L**: This mode the DI1 is used as a counting pin. 419 419 420 -[[image:image-20220523181246-5.png]] 421 421 422 -((( 423 -(% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below 424 -))) 318 +(% border="1" style="background-color:#f7faff" %) 319 +|Size(bytes)|4|2|2|1|1|1 320 +|Value|COUNT1|((( 321 +ACI1 425 425 426 -[[image:image-20220523181301-6.png]] 323 +Current 324 +)))|((( 325 +ACI2 427 427 327 +Current 328 +)))|DIDORO*|Reserve|MOD 329 + 330 +**DIDORO** is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below 331 + 332 +(% border="1" style="background-color:#f7faff" %) 333 +|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0 334 +|RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1 335 + 428 428 * RO is for relay. ROx=1 : close,ROx=0 always open. 429 429 * FIRST: Indicate this is the first packet after join network. 430 430 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 431 431 432 -((( 433 -(% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 434 -))) 340 +Note: DO3 is not valid for LT-22222-L. 435 435 436 -((( 437 -**To use counting mode, please run:** 438 -))) 439 439 440 -(% class="box infomessage" %) 441 -((( 442 -((( 443 -**AT+MOD=3** 444 -))) 445 -))) 343 +To use counting mode, please run: 446 446 447 -(% class="box infomessage" %) 448 -((( 449 -((( 450 -**ATZ** 451 -))) 452 -))) 345 +AT+MOD=3 453 453 454 -((( 455 -Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]]. 456 -))) 347 +ATZ 457 457 458 -=== 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting === 459 459 350 +Other AT Commands for counting are similar to [[MOD2 Counting Command>>path:#COUNT_COMMAND]]. 351 + 352 + 353 + 354 + 355 +1. 356 +11. 357 +111. AT+MOD=4, Single DI Counting + 1 x Voltage Counting 358 + 359 +**LT33222-L**: This mode the DI3 is used as a counting pin. 360 + 460 460 **LT22222-L**: This mode the DI1 is used as a counting pin. 461 461 363 + 462 462 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. 463 463 464 -[[image:image-20220523181903-8.png]] 465 465 466 -((( 467 -(% style="color:#4f81bd" %)**DIDORO **(%%)is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below 468 -))) 367 +(% border="1" style="background-color:#f7faff" %) 368 +|Size(bytes)|4|4|1|1|1 369 +|Value|COUNT1|AVI1 Counting|DIDORO*|((( 370 +Reserve 469 469 470 -[[image:image-20220523181727-7.png]] 372 + 373 +)))|MOD 471 471 375 +**DIDORO** is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below 376 + 377 +(% border="1" style="background-color:#f7faff" %) 378 +|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0 379 +|RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1 380 + 472 472 * RO is for relay. ROx=1 : close,ROx=0 always open. 473 473 * FIRST: Indicate this is the first packet after join network. 474 474 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 475 475 476 -((( 477 -(% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 478 -))) 385 +Note: DO3 is not valid for LT-22222-L. 479 479 480 -((( 481 -**To use this mode, please run:** 482 -))) 483 483 484 -(% class="box infomessage" %) 485 -((( 486 -((( 487 -**AT+MOD=4** 488 -))) 489 -))) 388 +To use this mode, please run: 490 490 491 -(% class="box infomessage" %) 492 -((( 493 -((( 494 -**ATZ** 495 -))) 496 -))) 390 +AT+MOD=4 497 497 498 -((( 499 - 500 -))) 392 +ATZ 501 501 502 -((( 503 -Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]]. 504 -))) 505 505 506 -((( 507 -**Plus below command for AVI1 Counting:** 508 -))) 509 509 510 -(% class="box infomessage" %) 511 -((( 512 -((( 513 -**AT+SETCNT=3,60 (set AVI Count to 60)** 514 -))) 515 -))) 396 +Other AT Commands for counting are similar to [[MOD2 Counting Command>>path:#COUNT_COMMAND]]. 516 516 517 -(% class="box infomessage" %) 518 -((( 519 -((( 520 -**AT+VOLMAX=20000 (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)** 521 -))) 522 -))) 398 +Plus below command for AVI1 Counting: 523 523 524 -(% class="box infomessage" %) 525 -((( 526 -((( 527 -**AT+VOLMAX=20000,0 (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)** 528 -))) 529 -))) 400 +AT+SETCNT=3,60 (set AVI Count to 60) 530 530 531 -(% class="box infomessage" %) 532 -((( 533 -((( 534 -**AT+VOLMAX=20000,1 (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)** 535 -))) 536 -))) 402 +AT+VOLMAX=20000 (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1) 537 537 538 - === 3.3.5AT+MOD~=5,SingleDICounting+2xAVI+1xACI ===404 +AT+VOLMAX=20000,0 (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1) 539 539 406 +AT+VOLMAX=20000,1 (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1) 407 + 408 + 409 + 410 +1. 411 +11. 412 +111. AT+MOD=5, Single DI Counting + 2 x AVI + 1 x ACI 413 + 414 +**LT33222-L**: This mode the DI3 is used as a counting pin. 415 + 540 540 **LT22222-L**: This mode the DI1 is used as a counting pin. 541 541 542 -[[image:image-20220523182334-9.png]] 543 543 544 -((( 545 -(% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below 546 -))) 419 +(% border="1" style="background-color:#f7faff" %) 420 +|Size(bytes)|2|2|2|2|1|1|1 421 +|Value|((( 422 +AVI1 547 547 424 +voltage 425 +)))|((( 426 +AVI2 427 + 428 +voltage 429 +)))|((( 430 +ACI1 431 + 432 +Current 433 +)))|COUNT1|DIDORO*|((( 434 +Reserve 435 + 436 + 437 +)))|MOD 438 + 439 + 440 +**DIDORO** is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below 441 + 442 +(% border="1" style="background-color:#f7faff" %) 443 +|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0 444 +|RO1|RO2|FIRST|Reserve|Reserve|DO3|DO2|DO1 445 + 548 548 * RO is for relay. ROx=1 : close,ROx=0 always open. 549 549 * FIRST: Indicate this is the first packet after join network. 550 -* ((( 551 -DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 552 -))) 448 +* DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 553 553 554 -((( 555 -(% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 556 -))) 450 +Note: DO3 is not valid for LT-22222-L. 557 557 558 -((( 559 -**To use this mode, please run:** 560 -))) 561 561 562 -(% class="box infomessage" %) 563 -((( 564 -((( 565 -**AT+MOD=5** 566 -))) 567 -))) 453 +To use this mode, please run: 568 568 569 -(% class="box infomessage" %) 570 -((( 571 -((( 572 -**ATZ** 573 -))) 574 -))) 455 +AT+MOD=5 575 575 576 -((( 577 -Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]]. 578 -))) 457 +ATZ 579 579 580 -=== 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) === 581 581 582 - (% style="color:#4f81bd"%)**Thismode isanoptional modefor triggerpurpose.It canruntogetherwithothermode.**460 +Other AT Commands for counting are similar to [[MOD2 Counting Command>>path:#COUNT_COMMAND]]. 583 583 462 + 463 + 464 + 465 + 466 +1. 467 +11. 468 +111. AT+ADDMOD=6. (Trigger Mode, Optional) 469 + 470 +**This mode is an optional mode for trigger purpose. It can run together with other mode.** 471 + 584 584 For example, if user has configured below commands: 585 585 586 -* **AT+MOD=1****~-~->**The normal working mode587 -* **AT+ADDMOD6=1****~-~->**Enable trigger474 +* AT+MOD=1 à The normal working mode 475 +* AT+ADDMOD6=1 à Enable trigger 588 588 589 589 LT will keep monitoring AV1/AV2/AC1/AC2 every 5 seconds; LT will send uplink packets in two cases: 590 590 591 -1. Periodically uplink (Base on TDC time). Payload is same as the normal MOD (MOD 1 for above command). This uplink uses LoRaWAN (% style="color:#4f81bd" %)**unconfirmed**(%%)data type592 -1. Trigger uplink when meet the trigger condition. LT will sent two packets in this case, the first uplink use payload specify in this mod (mod=6), the second packets use the normal mod payload(MOD=1 for above settings). Both Uplinks use LoRaWAN (% style="color:#4f81bd" %)**CONFIRMED data type.**479 +1. Periodically uplink (Base on TDC time). Payload is same as the normal MOD (MOD 1 for above command). This uplink uses LoRaWAN **unconfirmed** data type 480 +1. Trigger uplink when meet the trigger condition. LT will sent two packets in this case, the first uplink use payload specify in this mod (mod=6), the second packets use the normal mod payload(MOD=1 for above settings). Both Uplinks use LoRaWAN **CONFIRMED data type.** 593 593 594 594 **AT Command to set Trigger Condition**: 595 595 596 - (% style="color:#4f81bd" %)**Trigger base on voltage**:484 +**Trigger base on voltage**: 597 597 598 598 Format: AT+AVLIM=<AV1_LIMIT_LOW>,< AV1_LIMIT_HIGH>,<AV2_LIMIT_LOW>,< AV2_LIMIT_HIGH> 599 599 600 - **Example:**488 +Example: 601 601 602 602 AT+AVLIM=3000,6000,0,2000 (If AVI1 voltage lower than 3v or higher than 6v. or AV2 voltage is higher than 2v, LT will trigger Uplink) 603 603 604 604 AT+AVLIM=5000,0,0,0 (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore) 605 605 606 -(% style="color:#4f81bd" %)**Trigger base on current**: 607 607 495 +**Trigger base on current**: 496 + 608 608 Format: AT+ACLIM=<AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH> 609 609 610 - **Example:**499 +Example: 611 611 612 612 AT+ACLIM=10000,15000,0,0 (If ACI1 voltage lower than 10mA or higher than 15mA, trigger an uplink) 613 613 614 -(% style="color:#4f81bd" %)**Trigger base on DI status**: 615 615 504 +**Trigger base on DI status**: 505 + 616 616 DI status trigger Flag. 617 617 618 618 Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG > 619 619 620 - **Example:**510 +Example: 621 621 622 622 AT+ DTRI =1,0 (Enable DI1 trigger / disable DI2 trigger) 623 623 624 624 515 + 516 + 517 + 625 625 **Downlink Command to set Trigger Condition** 626 626 627 -Type Code: 0xAA. Downlink command same as AT Command **AT+AVLIM, AT+ACLIM**520 +Type Code: 0xAA. Downlink command same as AT Command [[AT+AVLIM, AT+ACLIM>>path:#AT_Trigger]] 628 628 629 629 Format: AA xx yy1 yy1 yy2 yy2 yy3 yy3 yy4 yy4 630 630 ... ... @@ -640,49 +640,144 @@ 640 640 641 641 Yy4 yy4: AC2 or AV2 high limit. 642 642 643 -**Example1**: AA 00 13 88 00 00 00 00 00 00 644 644 537 +Example1: AA 00 13 88 00 00 00 00 00 00 538 + 645 645 Same as AT+AVLIM=5000,0,0,0 (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore) 646 646 647 - **Example2**: AA 02 01 00541 +Example2: AA 02 01 00 648 648 649 649 Same as AT+ DTRI =1,0 (Enable DI1 trigger / disable DI2 trigger) 650 650 651 -(% style="color:#4f81bd" %)**Trigger Settings Payload Explanation:** 652 652 546 + 547 + 548 +**Trigger Settings Payload Explanation:** 549 + 653 653 MOD6 Payload : total 11 bytes payload 654 654 655 -[[image:image-20220524085923-1.png]] 552 +(% border="1" style="background-color:#f7faff" %) 553 +|Size(bytes)|1|1|1|6|1|1 554 +|Value|((( 555 +TRI_A 656 656 657 -(% style="color:#4f81bd" %)**TRI FLAG1**(%%) is a combination to show if trigger is set for this part. Totally 1byte as below 557 +FLAG 558 +)))|((( 559 +TRI_A 658 658 659 -[[image:image-20220524090106-2.png]] 561 +Status 562 +)))|((( 563 +TRI_DI 660 660 565 +FLAG+STA 566 +)))|Reserve|Enable/Disable MOD6|((( 567 +MOD 568 + 569 +(6) 570 +))) 571 + 572 + 573 +**TRI FLAG1** is a combination to show if trigger is set for this part. Totally 1byte as below 574 + 575 +(% border="1" style="background-color:#f7faff" %) 576 +|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0 577 +|((( 578 +AV1_ 579 + 580 +LOW 581 +)))|((( 582 +AV1_ 583 + 584 +HIGH 585 +)))|((( 586 +AV2_ 587 + 588 +LOW 589 +)))|((( 590 +AV2_ 591 + 592 +HIGH 593 +)))|((( 594 +AC1_ 595 + 596 +LOW 597 +)))|((( 598 +AC1_ 599 + 600 +HIGH 601 +)))|((( 602 +AC2_ 603 + 604 +LOW 605 +)))|((( 606 +AC2_ 607 + 608 +HIGH 609 +))) 610 + 661 661 * Each bits shows if the corresponding trigger has been configured. 662 662 663 - **Example:**613 +Example: 664 664 665 665 10100000: Means the system has configure to use the trigger: AC1_LOW and AV2_LOW 666 666 667 667 668 - (% style="color:#4f81bd" %)**TRI Status1**(%%)is a combination to show which condition is trigger. Totally 1byte as below618 +**TRI Status1** is a combination to show which condition is trigger. Totally 1byte as below 669 669 670 -[[image:image-20220524090249-3.png]] 620 +(% border="1" style="background-color:#f7faff" %) 621 +|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0 622 +|((( 623 +AV1_ 671 671 625 +LOW 626 +)))|((( 627 +AV1_ 628 + 629 +HIGH 630 +)))|((( 631 +AV2_ 632 + 633 +LOW 634 +)))|((( 635 +AV2_ 636 + 637 +HIGH 638 +)))|((( 639 +AC1_ 640 + 641 +LOW 642 +)))|((( 643 +AC1_ 644 + 645 +HIGH 646 +)))|((( 647 +AC2_ 648 + 649 +LOW 650 +)))|((( 651 +AC2_ 652 + 653 +HIGH 654 +))) 655 + 672 672 * Each bits shows which status has been trigger on this uplink. 673 673 674 - **Example:**658 +Example: 675 675 676 676 10000000: Means this packet is trigger by AC1_LOW. Means voltage too low. 677 677 678 678 679 -(% style="color:#4f81bd" %)**TRI_DI FLAG+STA **(%%)is a combination to show which condition is trigger. Totally 1byte as below 680 680 681 -[[image:image-20220524090456-4.png]] 682 682 665 +**TRI_DI FLAG+STA **is a combination to show which condition is trigger. Totally 1byte as below 666 + 667 +(% border="1" style="background-color:#f7faff" %) 668 +|bit7|bit6|bit5|bit4|bit3|bit2|bit1|bit0 669 +|N/A|N/A|N/A|N/A|DI2_STATUS|DI2_FLAG|DI1_STATUS|DI1_FLAG 670 + 683 683 * Each bits shows which status has been trigger on this uplink. 684 684 685 - **Example:**673 +Example: 686 686 687 687 00000111: Means both DI1 and DI2 trigger are enabled and this packet is trigger by DI1. 688 688 ... ... @@ -689,117 +689,117 @@ 689 689 00000101: Means both DI1 and DI2 trigger are enabled. 690 690 691 691 692 - (% style="color:#4f81bd" %)**Enable/Disable MOD6 **(%%): 0x01: MOD6 is enable. 0x00: MOD6 is disable.680 +**Enable/Disable MOD6 **: 0x01: MOD6 is enable. 0x00: MOD6 is disable. 693 693 682 + 694 694 Downlink command to poll MOD6 status: 695 695 696 - **AB 06**685 +AB 06 697 697 698 698 When device got this command, it will send the MOD6 payload. 699 699 700 -=== 3.3.7 Payload Decoder === 701 701 702 -((( 690 +1. 691 +11. 692 +111. Payload Decoder 693 + 703 703 **Decoder for TTN/loraserver/ChirpStack**: [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/Payload_decoder/>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/Payload_decoder/]] 704 -))) 705 705 706 -== 3.4 Configure LT via AT or Downlink == 707 707 708 -User can configure LT I/O Controller via AT Commands or LoRaWAN Downlink Commands 709 709 710 -((( 698 + 699 + 700 + 701 + 702 +1. 703 +11. Configure LT via AT or Downlink 704 + 705 +User can configure LT I/O Controller via [[AT Commands >>path:#_Using_the_AT]]or LoRaWAN Downlink Commands 706 + 711 711 There are two kinds of Commands: 712 -))) 713 713 714 -* (% style="color:#4f81bd" %)**Common Commands**(%%): They should be available for each sensor, such as: change uplink interval, reset device. For firmware v1.5.4, user can find what common commands it supports: http:~/~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands709 +* **Common Commands**: They should be available for each sensor, such as: change uplink interval, reset device. For firmware v1.5.4, user can find what common commands it supports: http:~/~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands 715 715 716 -* (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for LT-22222-L. User can see these commands below:711 +* **Sensor Related Commands**: These commands are special designed for LT-22222-L. User can see these commands below: 717 717 718 -=== 3.4.1 Common Commands === 713 +1. 714 +11. 715 +111. Common Commands: 719 719 720 -They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.5.4, user can find what common commands it supports: [[EndDevice AT Commandsand Downlink Command>>doc:Main.End.WebHome]]717 +They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.5.4, user can find what common commands it supports: http:~/~/wiki.dragino.com/index.php?title=End_Device_AT_Commands_and_Downlink_Commands 721 721 722 -=== 3.4.2 Sensor related commands === 723 723 724 -==== 3.4.2.1 Set Transmit Interval ==== 720 +1. 721 +11. 722 +111. Sensor related commands: 725 725 724 +==== Set Transmit Interval ==== 725 + 726 726 Set device uplink interval. 727 727 728 728 * AT Command: 729 729 730 -(% class="box infomessage" %) 731 -((( 732 -**AT+TDC=N ** 733 -))) 730 +AT+TDC=N 734 734 735 - **Example:**AT+TDC=30000. Means set interval to 30 seconds732 +Example: AT+TDC=30000. Means set interval to 30 seconds 736 736 734 + 737 737 * Downlink Payload (prefix 0x01): 738 738 739 -(% class="box infomessage" %) 740 -((( 741 -**0x01 aa bb cc ~/~/ Same as AT+TDC=0x(aa bb cc)** 742 -))) 737 +0x01 aa bb cc ~/~/ Same as AT+TDC=0x(aa bb cc) 743 743 744 -==== 3.4.2.2 Set Work Mode (AT+MOD) ==== 745 745 740 +==== Set Work Mode (AT+MOD) ==== 741 + 746 746 Set work mode. 747 747 748 748 * AT Command: 749 749 750 -(% class="box infomessage" %) 751 -((( 752 -**AT+MOD=N ** 753 -))) 746 +AT+MOD=N 754 754 755 - **Example**: AT+MOD=2. Set work mode to Double DI counting mode748 +Example: AT+MOD=2. Set work mode to Double DI counting mode 756 756 750 + 757 757 * Downlink Payload (prefix 0x0A): 758 758 759 -(% class="box infomessage" %) 760 -((( 761 -**0x0A aa ~/~/ Same as AT+MOD=aa** 762 -))) 753 +0x0A aa ~/~/ Same as AT+MOD=aa 763 763 764 -==== 3.4.2.3 Poll an uplink ==== 765 765 756 + 757 +==== Poll an uplink ==== 758 + 766 766 * AT Command: 767 767 768 768 There is no AT Command to poll uplink 769 769 763 + 770 770 * Downlink Payload (prefix 0x08): 771 771 772 -(% class="box infomessage" %) 773 -((( 774 -**0x08 FF ~/~/ Poll an uplink,** 775 -))) 766 +0x08 FF ~/~/ Poll an uplink, 776 776 777 - **Example**: 0x08FF, ask device to send an Uplink768 +Example: 0x08FF, ask device to send an Uplink 778 778 779 -==== 3.4.2.4 Enable Trigger Mode ==== 780 780 781 - Useof trigger mode, please check [[ADDMOD6>>path:http://8.211.40.43:8080/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29]]771 +==== Enable Trigger Mode ==== 782 782 773 +Use of trigger mode, please check [[ADDMOD6>>path:#MOD6]] 774 + 783 783 * AT Command: 784 784 785 -(% class="box infomessage" %) 786 -((( 787 -**AT+ADDMOD6=1 or 0** 788 -))) 777 +AT+ADDMOD6=1 or 0 789 789 790 790 1: Enable Trigger Mode 791 791 792 792 0: Disable Trigger Mode 793 793 783 + 794 794 * Downlink Payload (prefix 0x0A 06): 795 795 796 -(% class="box infomessage" %) 797 -((( 798 -**0x0A 06 aa ~/~/ Same as AT+ADDMOD6=aa,** 799 -))) 786 +0x0A 06 aa ~/~/ Same as AT+ADDMOD6=aa, 800 800 801 -==== 3.4.2.5 Poll trigger settings ==== 802 802 789 +==== Poll trigger settings ==== 790 + 803 803 Poll trigger settings, 804 804 805 805 * AT Command: ... ... @@ -806,339 +806,339 @@ 806 806 807 807 There is no AT Command for this feature. 808 808 797 + 809 809 * Downlink Payload (prefix 0x AB 06): 810 810 811 -(% class="box infomessage" %) 812 -((( 813 -**0xAB 06 ~/~/ Poll trigger settings, device will uplink trigger settings once receive this command** 814 -))) 800 +0xAB 06 ~/~/ Poll trigger settings, device will uplink [[trigger settings>>path:#Trigger_Settings]] once receive this command 815 815 816 -==== 3.4.2.6 Enable / Disable DI1/DI2/DI3 as trigger ==== 817 817 803 +==== Enable / Disable DI1/DI2/DI3 as trigger ==== 804 + 818 818 Enable Disable DI1/DI2/DI2 as trigger, 819 819 820 820 * AT Command: 821 821 822 -(% class="box infomessage" %) 823 -((( 824 -**Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >** 825 -))) 809 +Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG > 826 826 827 - **Example:**811 +Example: 828 828 829 829 AT+ DTRI =1,0 (Enable DI1 trigger / disable DI2 trigger) 830 830 815 + 816 + 831 831 * Downlink Payload (prefix 0xAA 02): 832 832 833 -(% class="box infomessage" %) 834 -((( 835 -**0xAA 02 aa bb ~/~/ Same as AT+DTRI=aa,bb** 836 -))) 819 +0xAA 02 aa bb ~/~/ Same as AT+DTRI=aa,bb 837 837 838 -==== 3.4.2.7 Trigger1 – Set DI1 or DI3 as trigger ==== 839 839 822 + 823 +==== Trigger1 – Set DI1 or DI3 as trigger ==== 824 + 840 840 Set DI1 or DI3(for LT-33222-L) trigger. 841 841 842 842 * AT Command: 843 843 844 -(% class="box infomessage" %) 845 -((( 846 -**AT+TRIG1=a,b** 847 -))) 829 +AT+TRIG1=a,b 848 848 849 849 a : Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1). 850 850 851 851 b : delay timing. 852 852 853 - **Example:**835 +Example: 854 854 855 855 AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) 856 856 839 + 857 857 * Downlink Payload (prefix 0x09 01 ): 858 858 859 -(% class="box infomessage" %) 860 -((( 861 -**0x09 01 aa bb cc ~/~/ same as AT+TRIG1=aa,0x(bb cc)** 862 -))) 842 +0x09 01 aa bb cc ~/~/ same as AT+TRIG1=aa,0x(bb cc) 863 863 864 -==== 3.4.2.8 Trigger2 – Set DI2 as trigger ==== 865 865 845 +==== Trigger2 – Set DI2 as trigger ==== 846 + 866 866 Set DI2 trigger. 867 867 868 868 * AT Command: 869 869 870 -(% class="box infomessage" %) 871 -((( 872 -**AT+TRIG2=a,b** 873 -))) 851 +AT+TRIG2=a,b 874 874 875 875 a : Interrupt mode. 0: falling edge; 1: rising edge, 2: falling and raising edge(for MOD=1). 876 876 877 877 b : delay timing. 878 878 879 - **Example:**857 +Example: 880 880 881 881 AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms ) 882 882 861 + 883 883 * Downlink Payload (prefix 0x09 02 ): 884 884 885 -(% class="box infomessage" %) 886 -((( 887 -**0x09 02 aa bb cc ~/~/ same as AT+TRIG1=aa,0x(bb cc)** 888 -))) 864 +0x09 02 aa bb cc ~/~/ same as AT+TRIG1=aa,0x(bb cc) 889 889 890 -==== 3.4.2.9 Trigger – Set AC (current) as trigger ==== 891 891 892 - Setcurrent trigger,baseonACport. See [[triggermode>>path:http://8.211.40.43:8080/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29]]867 +==== Trigger – Set AC (current) as trigger ==== 893 893 869 +Set current trigger , base on AC port. See [[trigger mode>>path:#MOD6]] 870 + 894 894 * AT Command: 895 895 896 -(% class="box infomessage" %) 897 -((( 898 -**AT+ACLIM. ** 899 -))) 873 +AT+ACLIM. See [[trigger mode>>path:#MOD6]] 900 900 875 + 901 901 * Downlink Payload (prefix 0xAA 01 ): 902 902 903 -(% class="box infomessage" %) 904 -((( 905 -**0x AA 01 aa bb cc dd ee ff gg hh ~/~/ same as AT+ACLIM See [[trigger mode>>url:http://8.211.40.43:8080/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29]]** 906 -))) 878 +0x AA 01 aa bb cc dd ee ff gg hh ~/~/ same as AT+ACLIM See [[trigger mode>>path:#MOD6]] 907 907 908 -==== 3.4.2.10 Trigger – Set AV (voltage) as trigger ==== 909 909 910 - Setcurrent trigger,baseonAVport. See [[triggermode>>url:http://8.211.40.43:8080/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29]]881 +==== Trigger – Set AV (voltage) as trigger ==== 911 911 883 +Set current trigger , base on AV port. See [[trigger mode>>path:#MOD6]] 884 + 912 912 * AT Command: 913 913 914 -(% class="box infomessage" %) 915 -((( 916 -**AT+AVLIM. See [[trigger mode>>url:http://8.211.40.43:8080/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29]]** 917 -))) 887 +AT+AVLIM. See [[trigger mode>>path:#MOD6]] 918 918 889 + 919 919 * Downlink Payload (prefix 0xAA 00 ): 920 920 921 -(% class="box infomessage" %) 922 -((( 923 -**0x AA 00 aa bb cc dd ee ff gg hh ~/~/ same as AT+AVLIM See [[trigger mode>>url:http://8.211.40.43:8080/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29]] ** 924 -))) 892 +0x AA 00 aa bb cc dd ee ff gg hh ~/~/ same as AT+AVLIM See [[trigger mode>>path:#MOD6]] 925 925 926 -==== 3.4.2.11Trigger – Set minimum interval ====894 +==== Trigger – Set minimum interval ==== 927 927 928 928 Set AV and AC trigger minimum interval, system won’t response to the second trigger within this set time after the first trigger. 929 929 930 930 * AT Command: 931 931 932 -(% class="box infomessage" %) 933 -((( 934 -**AT+ATDC=5. Device won’t response the second trigger within 5 minute after the first trigger.** 935 -))) 900 +AT+ATDC=5. Device won’t response the second trigger within 5 minute after the first trigger. 936 936 902 + 937 937 * Downlink Payload (prefix 0xAC ): 938 938 939 -(% class="box infomessage" %) 940 -((( 941 -**0x AC aa bb ~/~/ same as AT+ATDC=0x(aa bb) . Unit (min)** 942 -))) 905 +0x AC aa bb ~/~/ same as AT+ATDC=0x(aa bb) . Unit (min) 943 943 944 -==== 3.4.2.12 DO ~-~- Control Digital Output DO1/DO2/DO3 ==== 945 945 908 +==== DO ~-~- Control Digital Output DO1/DO2/DO3 ==== 909 + 946 946 * AT Command: 947 947 948 948 There is no AT Command to control Digital Output 949 949 914 + 950 950 * Downlink Payload (prefix 0x02): 951 951 952 -(% class="box infomessage" %) 953 -((( 954 -**0x02 aa bb cc ~/~/ Set DO1/DO2/DO3 output** 955 -))) 917 +0x02 aa bb cc ~/~/ Set DO1/DO2/DO3 output 956 956 957 -((( 958 958 If payload = 0x02010001, while there is load between V+ and DOx, it means set DO1 to low, DO2 to high and DO3 to low. 959 -))) 960 960 961 -((( 962 962 01: Low, 00: High , 11: No action 963 -))) 964 964 965 -[[image:image-20220524092754-5.png]] 923 +(% border="1" style="background-color:#f7faff" %) 924 +|Downlink Code|DO1|DO2|DO3 925 +|02 01 00 11|Low|High|No Action 926 +|02 00 11 01|High|No Action|Low 927 +|02 11 01 00|No Action|Low|High 966 966 967 -((( 968 -(% style="color:red" %)Note: For LT-22222-L, there is no DO3, the last byte can use any value. 969 -))) 929 +Note: For LT-22222-L, there is no DO3, the last byte can use any value. 970 970 971 -((( 972 -(% style="color:red" %)Device will upload a packet if downlink code executes successfully. 973 -))) 931 +Device will upload a packet if downlink code executes successfully. 974 974 975 975 976 -==== 3.4.2.13 DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ==== 977 977 935 + 936 + 937 +==== DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ==== 938 + 978 978 * AT Command: 979 979 980 980 There is no AT Command to control Digital Output 981 981 943 + 982 982 * Downlink Payload (prefix 0xA9): 983 983 984 -(% class="box infomessage" %) 985 -((( 986 -((( 987 -**0xA9 aa bb cc ~/~/ Set DO1/DO2/DO3 output with time control** 988 -))) 989 -))) 946 +0xA9 aa bb cc ~/~/ Set DO1/DO2/DO3 output with time control 990 990 991 991 This is to control the digital output time of DO pin. Include four bytes: 992 992 993 - (% style="color:#4f81bd" %)**First Byte**(%%)**:** Type code (0xA9)950 +**First Byte:** Type code (0xA9) 994 994 995 - (% style="color:#4f81bd" %)**Second Byte**(%%): Inverter Mode952 +**Second Byte**: Inverter Mode 996 996 997 997 01: DO pins will change back to original state after timeout. 998 998 999 999 00: DO pins will change to an inverter state after timeout 1000 1000 1001 -(% style="color:#4f81bd" %)**Third Byte**(%%): Control Method and Ports status: 1002 1002 1003 - [[image:image-20220524093238-6.png]]959 +**Third Byte**: Control Method and Ports status: 1004 1004 1005 -(% style="color:#4f81bd" %)**Fourth Byte**(%%): Control Method and Ports status: 961 +(% border="1" style="background-color:#f7faff" %) 962 +|Second Byte|Status 963 +|0x01|DO1 set to low 964 +|0x00|DO1 set to high 965 +|0x11|DO1 NO Action 1006 1006 1007 - [[image:image-20220524093328-7.png]]967 +**Fourth Byte**: Control Method and Ports status: 1008 1008 1009 -(% style="color:#4f81bd" %)**Fifth Byte**(%%): Control Method and Ports status: 969 +(% border="1" style="background-color:#f7faff" %) 970 +|Second Byte|Status 971 +|0x01|DO2 set to low 972 +|0x00|DO2 set to high 973 +|0x11|DO2 NO Action 1010 1010 1011 - [[image:image-20220524093351-8.png]]975 +**Fifth Byte**: Control Method and Ports status: 1012 1012 1013 -(% style="color:#4f81bd" %)**Sixth and Seventh Byte**: 977 +(% border="1" style="background-color:#f7faff" %) 978 +|Second Byte|Status 979 +|0x01|DO3 set to low 980 +|0x00|DO3 set to high 981 +|0x11|DO3 NO Action 1014 1014 983 +**Sixth and Seventh Byte**: 984 + 1015 1015 Latching time. Unit: ms 1016 1016 1017 1017 Device will upload a packet if downlink code executes successfully. 1018 1018 1019 -**Example payload:** 1020 1020 1021 -**~1. A9 01 01 01 01 07 D0** 1022 1022 991 +Example payload: 992 + 993 +1. A9 01 01 01 01 07 D0 994 + 1023 1023 DO1 pin & DO2 pin & DO3 pin will be set to Low, last 2 seconds, then change back to original state. 1024 1024 1025 -**2. A9 01 00 01 11 07 D0** 1026 1026 998 +1. A9 01 00 01 11 07 D0 999 + 1027 1027 DO1 pin set high, DO2 pin set low, DO3 pin no action, last 2 seconds, then change back to original state. 1028 1028 1029 -**3. A9 00 00 00 00 07 D0** 1030 1030 1003 +1. A9 00 00 00 00 07 D0 1004 + 1031 1031 DO1 pin & DO2 pin & DO3 pin will be set to high, last 2 seconds, then both change to low. 1032 1032 1033 -**4. A9 00 11 01 00 07 D0** 1034 1034 1008 +1. A9 00 11 01 00 07 D0 1009 + 1035 1035 DO1 pin no action, DO2 pin set low, DO3 pin set high, last 2 seconds, then DO1 pin no action, DO2 pin set high, DO3 pin set low 1036 1036 1037 1037 1038 -=== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 === 1039 1039 1014 + 1015 +==== Relay ~-~- Control Relay Output RO1/RO2 ==== 1016 + 1040 1040 * AT Command: 1041 1041 1042 1042 There is no AT Command to control Relay Output 1043 1043 1021 + 1044 1044 * Downlink Payload (prefix 0x03): 1045 1045 1046 -(% class="box infomessage" %) 1047 -((( 1048 -**0x03 aa bb ~/~/ Set RO1/RO2 output** 1049 -))) 1024 +0x03 aa bb ~/~/ Set RO1/RO2 output 1050 1050 1051 -((( 1052 1052 If payload = 0x030100, it means set RO1 to close and RO2 to open. 1053 -))) 1054 1054 1055 -((( 1056 1056 01: Close , 00: Open , 11: No action 1057 -))) 1058 1058 1059 -((( 1060 -[[image:image-20220524093724-9.png]] 1061 -))) 1030 +(% border="1" style="background-color:#f7faff" %) 1031 +|Downlink Code|RO1|RO2 1032 +|03 00 11|Open|No Action 1033 +|03 01 11|Close|No Action 1034 +|03 11 00|No Action|Open 1035 +|03 11 01|No Action|Close 1036 +|03 00 00|Open|Open 1037 +|03 01 01|Close|Close 1038 +|03 01 00|Close|Open 1039 +|03 00 01|Open|Close 1062 1062 1063 1063 Device will upload a packet if downlink code executes successfully. 1064 1064 1065 1065 1066 -==== 3.4.2.15Relay ~-~- Control Relay Output RO1/RO2 with time control ====1044 +==== Relay ~-~- Control Relay Output RO1/RO2 with time control ==== 1067 1067 1068 1068 * AT Command: 1069 1069 1070 1070 There is no AT Command to control Relay Output 1071 1071 1050 + 1072 1072 * Downlink Payload (prefix 0x05): 1073 1073 1074 -(% class="box infomessage" %) 1075 -((( 1076 -**0x05 aa bb cc dd ~/~/ Set RO1/RO2 relay with time control:** 1077 -))) 1053 +0x05 aa bb cc dd ~/~/ Set RO1/RO2 relay with time control: 1078 1078 1079 1079 This is to control the relay output time of relay. Include four bytes: 1080 1080 1081 - (% style="color:#4f81bd" %)**First Byte**(%%)**:** Type code (0x05)1057 +**First Byte:** Type code (0x05) 1082 1082 1083 - (% style="color:#4f81bd" %)**Second Byte(aa)**(%%): Inverter Mode1059 +**Second Byte(aa)**: Inverter Mode 1084 1084 1085 1085 01: Relays will change back to original state after timeout. 1086 1086 1087 1087 00: Relays will change to an inverter state after timeout 1088 1088 1089 -(% style="color:#4f81bd" %)**Third Byte(bb)**(%%): Control Method and Ports status: 1090 1090 1091 - [[image:image-20220524093831-10.png]]1066 +**Third Byte(bb)**: Control Method and Ports status: 1092 1092 1093 -(% style="color:#4f81bd" %)**Fourth/Fifth Bytes(cc)**(%%): Latching time. Unit: ms 1068 +(% border="1" style="background-color:#f7faff" %) 1069 +|Value|Status 1070 +|0x11|RO1 and RO2 to NO 1071 +|0x10|RO2 to NO, RO1 to NC 1072 +|0x01|RO2 to NC, RO1 to NO 1073 +|0x00|RO1 and RO2 to NC. 1074 +|0x20|RO1 No Action, RO2 to NC 1075 +|0x21|RO1 No Action, RO2 to NO 1076 +|0x02|RO1 to NC, RO2 No Action 1077 +|0x12|RO1 to NO, RO2 No Action 1094 1094 1079 +**Fourth / Fifth Bytes (cc)**: Latching time. Unit: ms 1080 + 1095 1095 Device will upload a packet if downlink code executes successfully. 1096 1096 1083 + 1084 + 1097 1097 **Example payload:** 1098 1098 1099 - **~1. 05 01 11 07 D0**1087 +1. 05 01 11 07 D0 1100 1100 1101 1101 Relay1 and Relay 2 will be set to NO , last 2 seconds, then change back to original state. 1102 1102 1103 -**2. 05 01 10 07 D0** 1104 1104 1092 +1. 05 01 10 07 D0 1093 + 1105 1105 Relay1 will change to NO, Relay2 will change to NC, last 2 seconds, then both change back to original state. 1106 1106 1107 -**3. 05 00 01 07 D0** 1108 1108 1097 +1. 05 00 01 07 D0 1098 + 1109 1109 Relay1 will change to NC, Relay2 will change to NO, last 2 seconds, then relay change to NO, Relay2 change to NC. 1110 1110 1111 -**4. 05 00 00 07 D0** 1112 1112 1102 +1. 05 00 00 07 D0 1103 + 1113 1113 Relay 1 & relay2 will change to NC, last 2 seconds, then both change to NO. 1114 1114 1115 1115 1116 -==== 3.4.2.16 Counting ~-~- Voltage threshold counting ==== 1117 1117 1118 -When voltage exceed the threshold, count. Feature see [[MOD4>>path:http://8.211.40.43:8080/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting]] 1119 1119 1109 + 1110 + 1111 +==== Counting ~-~- Voltage threshold counting ==== 1112 + 1113 +When voltage exceed the threshold, count. Feature see [[MOD4>>path:#MOD4]] 1114 + 1120 1120 * AT Command: 1121 1121 1122 -(% class="box infomessage" %) 1123 -((( 1124 -**AT+VOLMAX ~/~/ See [[MOD4>>path:http://8.211.40.43:8080/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting]]** 1125 -))) 1117 +AT+VOLMAX ~/~/ See [[MOD4>>path:#MOD4]] 1126 1126 1119 + 1127 1127 * Downlink Payload (prefix 0xA5): 1128 1128 1129 -(% class="box infomessage" %) 1130 -((( 1131 -**0xA5 aa bb cc ~/~/ Same as AT+VOLMAX=(aa bb),cc** 1132 -))) 1122 +0xA5 aa bb cc ~/~/ Same as AT+VOLMAX=(aa bb),cc 1133 1133 1134 -==== 3.4.2.17 Counting ~-~- Pre-configure the Count Number ==== 1135 1135 1125 +==== Counting ~-~- Pre-configure the Count Number ==== 1126 + 1136 1136 * AT Command: 1137 1137 1138 -(% class="box infomessage" %) 1139 -((( 1140 -**AT+SETCNT=aa,(bb cc dd ee) ** 1141 -))) 1129 +AT+SETCNT=aa,(bb cc dd ee) 1142 1142 1143 1143 aa: 1: Set count1, 1144 1144 ... ... @@ -1148,114 +1148,115 @@ 1148 1148 1149 1149 Bb cc dd ee: number to be set 1150 1150 1139 + 1151 1151 * Downlink Payload (prefix 0xA8): 1152 1152 1153 -(% class="box infomessage" %) 1154 -((( 1155 -**0x A8 aa bb cc dd ee ~/~/ same as AT+SETCNT=aa,(bb cc dd ee)** 1156 -))) 1142 +0x A8 aa bb cc dd ee ~/~/ same as AT+SETCNT=aa,(bb cc dd ee) 1157 1157 1158 -==== 3.4.2.18 Counting ~-~- Clear Counting ==== 1159 1159 1145 + 1146 + 1147 + 1148 +==== Counting ~-~- Clear Counting ==== 1149 + 1160 1160 Clear counting for counting mode 1161 1161 1162 1162 * AT Command: 1163 1163 1164 -(% class="box infomessage" %) 1165 -((( 1166 -**AT+CLRCOUNT ~/~/ clear all counting** 1167 -))) 1154 +AT+CLRCOUNT ~/~/ clear all counting 1168 1168 1156 + 1169 1169 * Downlink Payload (prefix 0xA6): 1170 1170 1171 -(% class="box infomessage" %) 1172 -((( 1173 -**0x A6 01 ~/~/ clear all counting,** 1174 -))) 1159 +0x A6 01 ~/~/ clear all counting, 1175 1175 1176 -==== 3.4.2.19 Counting ~-~- Change counting mode save time ==== 1177 1177 1162 + 1163 + 1164 +==== Counting ~-~- Change counting mode save time ==== 1165 + 1178 1178 * AT Command: 1179 1179 1180 -(% class="box infomessage" %) 1181 -((( 1182 -**AT+COUTIME=60 ~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30)** 1183 -))) 1168 +AT+COUTIME=60 ~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30) 1184 1184 1170 + 1185 1185 * Downlink Payload (prefix 0xA7): 1186 1186 1187 -(% class="box infomessage" %) 1188 -((( 1189 -**0x A7 aa bb cc ~/~/ same as AT+COUTIME =aa bb cc,** 1190 -))) 1173 +0x A7 aa bb cc ~/~/ same as AT+COUTIME =aa bb cc, 1191 1191 1192 -((( 1193 1193 range: aa bb cc:0 to 16777215, (unit:second) 1194 -))) 1195 1195 1196 -== 3.5 Integrate with Mydevice == 1197 1197 1178 + 1179 + 1180 +1. 1181 +11. Integrate with Mydevice 1182 + 1198 1198 Mydevices provides a human friendly interface to show the sensor data, once we have data in TTN, we can use Mydevices to connect to TTN and see the data in Mydevices. Below are the steps: 1199 1199 1200 -((( 1201 -**Step 1**: Be sure that your device is programmed and properly connected to the network at this time. 1202 -))) 1203 1203 1204 -((( 1205 -**Step 2**: To configure the Application to forward data to Mydevices you will need to add integration. To add the Mydevices integration, perform the following steps: 1206 -))) 1186 +Step 1: Be sure that your device is programmed and properly connected to the network at this time. 1207 1207 1208 - [[image:1653356737703-362.png||height="232"width="732"]]1188 +Step 2: To configure the Application to forward data to Mydevices you will need to add integration. To add the Mydevices integration, perform the following steps: 1209 1209 1210 -[[image:image-20220524094641-11.png||height="390" width="723"]] 1211 1211 1212 -[[image:i mage-20220524094641-12.png||height="402" width="718"]]1191 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image010.png]] 1213 1213 1214 -**Step 3**: Create an account or log in Mydevices. 1215 1215 1216 - **Step 4**:Search LT-22222-L(for both LT-22222-L/LT-33222-L)andadd DevEUI.(%style="display:none" %)1194 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image011.png]] 1217 1217 1196 + 1197 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image012.png]] 1198 + 1199 + 1200 + 1201 +Step 3: Create an account or log in Mydevices. 1202 + 1203 +Step 4: Search LT-22222-L(for both LT-22222-L / LT-33222-L) and add DevEUI. 1204 + 1218 1218 Search under The things network 1219 1219 1220 -[[image: 1653356838789-523.png||height="337" width="740"]]1207 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image013.png]] 1221 1221 1209 + 1222 1222 After added, the sensor data arrive TTN, it will also arrive and show in Mydevices. 1223 1223 1224 -[[image:image -20220524094909-1.png||height="335" width="729"]]1212 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image014.png]] 1225 1225 1226 -[[image:image-20220524094909-2.png||height="337" width="729"]] 1227 1227 1228 -[[image:image -20220524094909-3.png||height="338" width="727"]]1215 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image015.png]] 1229 1229 1230 -[[image:image-20220524094909-4.png||height="339" width="728"]](% style="display:none" %) 1231 1231 1232 -[[image:i mage-20220524094909-5.png||height="341" width="734"]]1218 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image016.png]] 1233 1233 1234 -== 3.6 Interface Detail == 1235 1235 1236 - === 3.6.1 DigitalInput Port:DI1/DI2/DI3 ( ForLT-33222-L, low active) ===1221 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image017.png]] 1237 1237 1223 + 1224 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image018.png]] 1225 + 1226 + 1227 +1. 1228 +11. Interface Detail 1229 +111. Digital Input Port: DI1/DI2 /DI3 ( For LT-33222-L, low active ) 1230 + 1238 1238 Support NPN Type sensor 1239 1239 1240 -[[image: 1653356991268-289.png]]1233 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image019.png]] 1241 1241 1242 -=== 3.6.2 Digital Input Port: DI1/DI2 ( For LT-22222-L) === 1243 1243 1244 -((( 1236 + 1237 +1. 1238 +11. 1239 +111. Digital Input Port: DI1/DI2 ( For LT-22222-L) 1240 + 1245 1245 The DI port of LT-22222-L can support NPN or PNP output sensor. 1246 -))) 1247 1247 1248 -((( 1249 -((( 1250 1250 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 1251 -))) 1252 -))) 1253 1253 1254 -[[image: 1653357170703-587.png]]1245 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image020.png]] 1255 1255 1256 -((( 1257 1257 When use need to connect a device to the DI port, both DI1+ and DI1- must be connected. 1258 -))) 1259 1259 1260 1260 1261 1261 **Example1**: Connect to a Low active sensor. ... ... @@ -1265,11 +1265,11 @@ 1265 1265 * Connect sensor’s output to DI1- 1266 1266 * Connect sensor’s VCC to DI1+. 1267 1267 1268 -So when sensor active, the current between NEC2501 pin1 and pin2 is : 1257 +So when sensor active, the current between NEC2501 pin1 and pin2 is: 1269 1269 1270 -[[image: /xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/WebHome/image-20220524095628-8.png?rev=1.1||alt="image-20220524095628-8.png"]]** [[image:image-20220524095628-8.png]] = DI1+ / 1K.**1259 + //IF//[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image021.png]] = DI1+ / 1K. 1271 1271 1272 -If DI1+ = 12v, the //IF// = 12mA , So the LT-22222-L will be able to detect this active signal. 1261 +If DI1+ = 12v, the //IF//[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] = 12mA , So the LT-22222-L will be able to detect this active signal. 1273 1273 1274 1274 1275 1275 **Example2**: Connect to a High active sensor. ... ... @@ -1281,12 +1281,12 @@ 1281 1281 1282 1282 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1283 1283 1284 -[[image: /xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/WebHome/image-20220524095628-8.png?rev=1.1||alt="image-20220524095628-8.png"]]** [[image:image-20220524095628-8.png]]= DI1+ / 1K.**1273 + //IF//[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image021.png]] = DI1+ / 1K. 1285 1285 1286 -If **DI1+ = 24v**, the [[image:/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/WebHome/image-20220524095628-8.png?rev=1.1||alt="image-20220524095628-8.png"]]**[[image:image-20220524095628-8.png]]**= 24mA , So the LT-22222-L will be able to detect this high active signal.1275 +If DI1+ = 24v, the //IF//[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] = 24mA , So the LT-22222-L will be able to detect this high active signal. 1287 1287 1288 1288 1289 -**Example3**: Connect to a 220v high active sensor. 1278 +**Example3**: Connect to a 220v high active sensor.公司测试一下 1290 1290 1291 1291 Assume user want to monitor an active signal higher than 220v, to make sure not burn the photocoupler 1292 1292 ... ... @@ -1295,24 +1295,34 @@ 1295 1295 1296 1296 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1297 1297 1298 - /xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/WebHome/image-20220524095628-8.png?rev=1.1||alt="image-20220524095628-8.png"]]**[[image:image-20220524095628-8.png]] = DI1+ / 51K.**1287 + //IF//[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image021.png]] = DI1+ / 51K. 1299 1299 1300 -If sensor output is 220v, the (%id="cke_bm_243359S" style="display:none" %)[[image:image-20220524095628-8.png]](%%)=DI1+ / 51K.= 4.3mA , So the LT-22222-L will be able to detect this high active signal safely.1289 +If sensor output is 220v, the //IF//[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image022.png]] = 4.3mA , So the LT-22222-L will be able to detect this high active signal safely. 1301 1301 1302 -=== 3.6.3 Digital Output Port: DO1/DO2 /DO3 === 1303 1303 1292 +1. 1293 +11. 1294 +111. Digital Output Port: DO1/DO2 /DO3 1295 + 1304 1304 NPN output: GND or Float. Max voltage can apply to output pin is 36v. 1305 1305 1306 -[[image: 1653357531600-905.png]]1298 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image023.png]] 1307 1307 1308 -=== 3.6.4 Analog Input Interface === 1309 1309 1301 + 1302 + 1303 +1. 1304 +11. 1305 +111. Analog Input Interface 1306 + 1310 1310 The analog input interface is as below. The LT will measure the IN2 voltage so to calculate the current pass the Load. The formula is: 1311 1311 1312 - **AC2 = (IN2 voltage )/12**1309 +AC2 = (IN2 voltage )/12 1313 1313 1314 -[[image: 1653357592296-182.png]]1311 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image024.png]] 1315 1315 1313 + 1314 + 1316 1316 Example to connect a 4~~20mA sensor 1317 1317 1318 1318 We take the wind speed sensor as an example for reference only. ... ... @@ -1328,620 +1328,425 @@ 1328 1328 1329 1329 Connection diagram: 1330 1330 1331 -[[image: 1653357640609-758.png]]1330 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image025.jpg]] 1332 1332 1333 -[[image: 1653357648330-671.png||height="155" width="733"]]1332 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image026.png]] 1334 1334 1335 -=== 3.6.5 Relay Output === 1336 1336 1337 -((( 1335 + 1336 +1. 1337 +11. 1338 +111. Relay Output 1339 + 1338 1338 The LT serial controller has two relay interfaces; each interface uses two pins of the screw terminal. User can connect other device’s Power Line to in serial of RO1_1 and RO_2. Such as below: 1341 + 1342 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image027.png]] 1343 + 1344 + 1345 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image028.png]] 1346 + 1347 + 1348 + 1349 + 1350 + 1351 +1. 1352 +11. LEDs Indicators 1353 + 1354 +(% border="1" style="background-color:#f7faff" %) 1355 +|**LEDs**|**Feature** 1356 +|**PWR**|Always on if there is power 1357 +|**SYS**|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. 1358 +|**TX**|((( 1359 +Device boot: TX blinks 5 times. 1360 + 1361 +Successful join network: TX ON for 5 seconds. 1362 + 1363 +Transmit a LoRa packet: TX blinks once 1339 1339 ))) 1365 +|**RX**|RX blinks once when receive a packet. 1366 +|**DO1**| 1367 +|**DO2**| 1368 +|**DO3**| 1369 +|**DI2**|((( 1370 +For LT-22222-L: ON when DI2 is high, LOW when DI2 is low 1340 1340 1341 -[[image:image-20220524100215-9.png]] 1372 +For LT-33222-L: ON when DI2 is low, LOW when DI2 is high 1373 +))) 1374 +|**DI2**|((( 1375 +For LT-22222-L: ON when DI2 is high, LOW when DI2 is low 1342 1342 1343 -[[image:image-20220524100215-10.png||height="382" width="723"]] 1377 +For LT-33222-L: ON when DI2 is low, LOW when DI2 is high 1378 +))) 1379 +|**DI3**|For LT-33222-L ONLY: ON when DI3 is low, LOW when DI3 is high 1380 +|**DI2**|((( 1381 +For LT-22222-L: ON when DI2 is high, LOW when DI2 is low 1344 1344 1345 -== 3.7 LEDs Indicators == 1383 +For LT-33222-L: ON when DI2 is low, LOW when DI2 is high 1384 +))) 1385 +|**RO1**| 1386 +|**RO2**| 1346 1346 1347 -[[image:image-20220524100748-11.png]] 1348 1348 1349 -= 4. Use AT Command = 1350 1350 1351 -== 4.1 Access AT Command == 1390 +1. Use AT Command 1391 +11. Access AT Command 1352 1352 1353 1353 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. 1354 1354 1355 -[[image: 1653358238933-385.png]]1395 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image029.png]] 1356 1356 1357 -((( 1358 -In PC, User needs to set (% style="color:#4f81bd" %)**serial tool**(%%)(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to (% style="color:green" %)**9600**(%%) to access to access serial console for LT. The AT commands are disable by default and need to enter password (default:(% style="color:green" %)**123456**)(%%) to active it. As shown below: 1359 -))) 1360 1360 1361 -[[i mage:1653358355238-883.png]]1398 +In PC, User needs to set **serial tool**(such as [[putty>>url:https://www.chiark.greenend.org.uk/~~sgtatham/putty/latest.html]], SecureCRT) baud rate to **9600** to access to access serial console for LT. The AT commands are disable by default and need to enter password (default:**123456**) to active it. As shown below: 1362 1362 1363 -((( 1400 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image030.png]] 1401 + 1402 + 1364 1364 More detail AT Command manual can be found at [[AT Command Manual>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/]] 1365 -))) 1366 1366 1367 -((( 1368 1368 AT+<CMD>? : Help on <CMD> 1369 -))) 1370 1370 1371 -((( 1372 1372 AT+<CMD> : Run <CMD> 1373 -))) 1374 1374 1375 -((( 1376 1376 AT+<CMD>=<value> : Set the value 1377 -))) 1378 1378 1379 -((( 1380 1380 AT+<CMD>=? : Get the value 1381 -))) 1382 1382 1383 -((( 1384 1384 ATZ: Trig a reset of the MCU 1385 -))) 1386 1386 1387 -((( 1388 1388 AT+FDR: Reset Parameters to Factory Default, Keys Reserve 1389 -))) 1390 1390 1391 -((( 1392 1392 AT+DEUI: Get or Set the Device EUI 1393 -))) 1394 1394 1395 -((( 1396 1396 AT+DADDR: Get or Set the Device Address 1397 -))) 1398 1398 1399 -((( 1400 1400 AT+APPKEY: Get or Set the Application Key 1401 -))) 1402 1402 1403 -((( 1404 1404 AT+NWKSKEY: Get or Set the Network Session Key 1405 -))) 1406 1406 1407 -((( 1408 1408 AT+APPSKEY: Get or Set the Application Session Key 1409 -))) 1410 1410 1411 -((( 1412 1412 AT+APPEUI: Get or Set the Application EUI 1413 -))) 1414 1414 1415 -((( 1416 1416 AT+ADR: Get or Set the Adaptive Data Rate setting. (0: off, 1: on) 1417 -))) 1418 1418 1419 -((( 1420 1420 AT+TXP: Get or Set the Transmit Power (0-5, MAX:0, MIN:5, according to LoRaWAN Spec) 1421 -))) 1422 1422 1423 -((( 1424 1424 AT+DR: Get or Set the Data Rate. (0-7 corresponding to DR_X) 1425 -))) 1426 1426 1427 -((( 1428 1428 AT+DCS: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing 1429 -))) 1430 1430 1431 -((( 1432 1432 AT+PNM: Get or Set the public network mode. (0: off, 1: on) 1433 -))) 1434 1434 1435 -((( 1436 1436 AT+RX2FQ: Get or Set the Rx2 window frequency 1437 -))) 1438 1438 1439 -((( 1440 1440 AT+RX2DR: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X) 1441 -))) 1442 1442 1443 -((( 1444 1444 AT+RX1DL: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms 1445 -))) 1446 1446 1447 -((( 1448 1448 AT+RX2DL: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms 1449 -))) 1450 1450 1451 -((( 1452 1452 AT+JN1DL: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms 1453 -))) 1454 1454 1455 -((( 1456 1456 AT+JN2DL: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms 1457 -))) 1458 1458 1459 -((( 1460 1460 AT+NJM: Get or Set the Network Join Mode. (0: ABP, 1: OTAA) 1461 -))) 1462 1462 1463 -((( 1464 1464 AT+NWKID: Get or Set the Network ID 1465 -))) 1466 1466 1467 -((( 1468 1468 AT+FCU: Get or Set the Frame Counter Uplink 1469 -))) 1470 1470 1471 -((( 1472 1472 AT+FCD: Get or Set the Frame Counter Downlink 1473 -))) 1474 1474 1475 -((( 1476 1476 AT+CLASS: Get or Set the Device Class 1477 -))) 1478 1478 1479 -((( 1480 1480 AT+JOIN: Join network 1481 -))) 1482 1482 1483 -((( 1484 1484 AT+NJS: Get OTAA Join Status 1485 -))) 1486 1486 1487 -((( 1488 1488 AT+SENDB: Send hexadecimal data along with the application port 1489 -))) 1490 1490 1491 -((( 1492 1492 AT+SEND: Send text data along with the application port 1493 -))) 1494 1494 1495 -((( 1496 1496 AT+RECVB: Print last received data in binary format (with hexadecimal values) 1497 -))) 1498 1498 1499 -((( 1500 1500 AT+RECV: Print last received data in raw format 1501 -))) 1502 1502 1503 -((( 1504 1504 AT+VER: Get current image version and Frequency Band 1505 -))) 1506 1506 1507 -((( 1508 1508 AT+CFM: Get or Set the confirmation mode (0-1) 1509 -))) 1510 1510 1511 -((( 1512 1512 AT+CFS: Get confirmation status of the last AT+SEND (0-1) 1513 -))) 1514 1514 1515 -((( 1516 1516 AT+SNR: Get the SNR of the last received packet 1517 -))) 1518 1518 1519 -((( 1520 1520 AT+RSSI: Get the RSSI of the last received packet 1521 -))) 1522 1522 1523 -((( 1524 1524 AT+TDC: Get or set the application data transmission interval in ms 1525 -))) 1526 1526 1527 -((( 1528 1528 AT+PORT: Get or set the application port 1529 -))) 1530 1530 1531 -((( 1532 1532 AT+DISAT: Disable AT commands 1533 -))) 1534 1534 1535 -((( 1536 1536 AT+PWORD: Set password, max 9 digits 1537 -))) 1538 1538 1539 -((( 1540 1540 AT+CHS: Get or Set Frequency (Unit: Hz) for Single Channel Mode 1541 -))) 1542 1542 1543 -((( 1544 1544 AT+CHE: Get or Set eight channels mode, Only for US915, AU915, CN470 1545 -))) 1546 1546 1547 -((( 1548 1548 AT+CFG: Print all settings 1549 -))) 1550 1550 1551 -== 4.2 Common AT Command Sequence == 1552 1552 1553 -=== 4.2.1 Multi-channel ABP mode (Use with SX1301/LG308) === 1554 1554 1555 -((( 1499 +1. 1500 +11. Common AT Command Sequence 1501 +111. Multi-channel ABP mode (Use with SX1301/LG308) 1502 + 1556 1556 If device has not joined network yet: 1557 -))) 1558 1558 1559 -((( 1560 -(% style="background-color:#dcdcdc" %)123456 1561 -))) 1505 +123456 1562 1562 1563 -((( 1564 -(% style="background-color:#dcdcdc" %)AT+FDR 1565 -))) 1507 +AT+FDR 1566 1566 1567 -((( 1568 -(% style="background-color:#dcdcdc" %)123456 1569 -))) 1509 +123456 1570 1570 1571 -((( 1572 -(% style="background-color:#dcdcdc" %)AT+NJM=0 1573 -))) 1511 +AT+NJM=0 1574 1574 1575 -((( 1576 -(% style="background-color:#dcdcdc" %)ATZ 1577 -))) 1513 +ATZ 1578 1578 1579 1579 1580 -((( 1581 1581 If device already joined network: 1582 -))) 1583 1583 1584 -((( 1585 -(% style="background-color:#dcdcdc" %)AT+NJM=0 1586 -))) 1518 +AT+NJM=0 1587 1587 1588 -((( 1589 -(% style="background-color:#dcdcdc" %)ATZ 1590 -))) 1520 +ATZ 1591 1591 1592 -=== 4.2.2 Single-channel ABP mode (Use with LG01/LG02) === 1522 +1. 1523 +11. 1524 +111. Single-channel ABP mode (Use with LG01/LG02) 1593 1593 1594 -((( 1595 -(% style="background-color:#dcdcdc" %) 123456(%%) Enter Password to have AT access. 1596 -))) 1526 +123456 Enter Password to have AT access. 1597 1597 1598 -((( 1599 -(% style="background-color:#dcdcdc" %) AT+FDR(%%) Reset Parameters to Factory Default, Keys Reserve 1600 -))) 1528 +AT+FDR Reset Parameters to Factory Default, Keys Reserve 1601 1601 1602 -((( 1603 -(% style="background-color:#dcdcdc" %) 123456(%%) Enter Password to have AT access. 1604 -))) 1530 +123456 Enter Password to have AT access. 1605 1605 1606 -((( 1607 -(% style="background-color:#dcdcdc" %) AT+CLASS=C(%%) Set to work in CLASS C 1608 -))) 1532 +AT+CLASS=C Set to work in CLASS C 1609 1609 1610 -((( 1611 -(% style="background-color:#dcdcdc" %) AT+NJM=0(%%) Set to ABP mode 1612 -))) 1534 +AT+NJM=0 Set to ABP mode 1613 1613 1614 -((( 1615 -(% style="background-color:#dcdcdc" %) AT+ADR=0(%%) Set the Adaptive Data Rate Off 1616 -))) 1536 +AT+ADR=0 Set the Adaptive Data Rate Off 1617 1617 1618 -((( 1619 -(% style="background-color:#dcdcdc" %) AT+DR=5(%%) Set Data Rate 1620 -))) 1538 +AT+DR=5 Set Data Rate 1621 1621 1622 -((( 1623 -(% style="background-color:#dcdcdc" %) AT+TDC=60000(%%) Set transmit interval to 60 seconds 1624 -))) 1540 +AT+TDC=60000 Set transmit interval to 60 seconds 1625 1625 1626 -((( 1627 -(% style="background-color:#dcdcdc" %) AT+CHS=868400000(%%) Set transmit frequency to 868.4Mhz 1628 -))) 1542 +AT+CHS=868400000 Set transmit frequency to 868.4Mhz 1629 1629 1630 -((( 1631 -(% style="background-color:#dcdcdc" %) AT+RX2FQ=868400000(%%) Set RX2Frequency to 868.4Mhz (according to the result from server) 1632 -))) 1544 +AT+RX2FQ=868400000 Set RX2Frequency to 868.4Mhz (according to the result from server) 1633 1633 1634 -((( 1635 -(% style="background-color:#dcdcdc" %) AT+RX2DR=5(%%) Set RX2DR to match the downlink DR from server. see below 1636 -))) 1546 +AT+RX2DR=5 Set RX2DR to match the downlink DR from server. see below 1637 1637 1638 -((( 1639 -(% style="background-color:#dcdcdc" %) AT+DADDR=26 01 1A F1 (%%)Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal. 1640 -))) 1548 +AT+DADDR=26 01 1A F1 Set Device Address to 26 01 1A F1, this ID can be found in the LoRa Server portal. 1641 1641 1642 -((( 1643 -(% style="background-color:#dcdcdc" %) ATZ (%%) Reset MCU 1644 -))) 1550 +ATZ Reset MCU 1645 1645 1646 -((( 1647 -(% style="color:red" %)**Note:** 1648 -))) 1552 +**Note:** 1649 1649 1650 -((( 1651 -(% style="color:red" %)1. Make sure the device is set to ABP mode in the IoT Server. 1652 -2. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting. 1653 -3. Make sure SF / bandwidth setting in LG01/LG02 match the settings of AT+DR. refer [[this link>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/&file=LoRaWAN%201.0.3%20Regional%20Parameters.xlsx]] to see what DR means. 1654 -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 1655 -))) 1554 +1. Make sure the device is set to ABP mode in the IoT Server. 1555 +1. Make sure the LG01/02 gateway RX frequency is exactly the same as AT+CHS setting. 1556 +1. Make sure SF / bandwidth setting in LG01/LG02 match the settings of AT+DR. refer [[this link>>url:http://www.dragino.com/downloads/index.php?dir=LoRa_Gateway/&file=LoRaWAN%201.0.3%20Regional%20Parameters.xlsx]] to see what DR means. 1557 +1. 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 1656 1656 1657 -((( 1658 -[[image:1653359097980-169.png||height="188" width="729"]] 1659 -))) 1559 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image031.png]] 1660 1660 1661 -((( 1662 - 1663 -))) 1664 1664 1665 -=== 4.2.3 Change to Class A === 1562 +1. 1563 +11. 1564 +111. Change to Class A 1666 1666 1667 1667 If sensor JOINED 1668 -(% style="background-color:#dcdcdc" %)AT+CLASS=A 1567 + 1568 +AT+CLASS=A 1569 + 1669 1669 ATZ 1670 1670 1671 -= 5. FAQ = 1672 1672 1673 -== 5.1 How to upgrade the image? == 1674 1674 1574 + 1575 + 1576 +1. FAQ 1577 + 1578 +1. 1579 +11. How to upgrade the image? 1580 + 1675 1675 The LT LoRaWAN Controller is shipped with a 3.5mm cable, the cable is used to upload image to LT to: 1676 1676 1677 1677 * Support new features 1678 1678 * For bug fix 1679 1679 * Change LoRaWAN bands. 1586 + 1680 1680 Below shows the hardware connection for how to upload an image to the LT: 1681 -* [[image:1653359603330-121.png]] 1682 1682 1683 -((( 1589 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image029.png]] 1590 + 1591 + 1684 1684 **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]]. 1593 + 1685 1685 **Step2**: Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]]. 1595 + 1686 1686 **Step3: **Open flashloader; choose the correct COM port to update. 1597 + 1598 +**For LT-33222-L**: 1599 + 1600 +Hold down the PRO button and then momentarily press the RST reset button and the **DO2 led** will change from OFF to ON. When **DO2 LED** is on, it means the device is in download mode. 1601 + 1687 1687 **For LT-22222-L**: 1603 + 1688 1688 Hold down the PRO button and then momentarily press the RST reset button and the **DO1 led** will change from OFF to ON. When **DO1 LED** is on, it means the device is in download mode. 1605 + 1606 + 1607 + 1608 +|((( 1609 +Board detected 1689 1689 ))) 1690 1690 1691 - [[image:image-20220524103407-12.png]] 1612 +|((( 1613 + 1614 +))) 1692 1692 1693 -[[image:image -20220524103429-13.png]]1616 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image032.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image033.png]] 1694 1694 1695 -[[image:image-20220524104033-15.png]] 1696 1696 1697 -(% 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: 1698 1698 1699 -[[image: 1653360054704-518.png||height="186" width="745"]]1620 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image034.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image035.png]] 1700 1700 1701 -((( 1702 -((( 1703 -== 5.2 How to change the LoRa Frequency Bands/Region? == 1704 -))) 1705 -))) 1706 1706 1707 -((( 1708 -User can follow the introduction for [[how to upgrade image>>||anchor="H5.1Howtoupgradetheimage3F"]]. When download the images, choose the required image file for download. 1709 -))) 1623 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image036.png]] [[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image037.png]] 1710 1710 1711 -((( 1712 -== 5.3 How to set up LT to work with Single Channel Gateway such as LG01/LG02? == 1713 -))) 1714 1714 1715 -((( 1716 -((( 1626 +**Notice**: In case user has lost the program cable. User can hand made one from a 3.5mm cable. The pin mapping is: 1627 + 1628 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image038.png]] 1629 + 1630 + 1631 +1. 1632 +11. How to change the LoRa Frequency Bands/Region? 1633 + 1634 +User can follow the introduction for [[how to upgrade image>>path:#upgrade_image]]. When download the images, choose the required image file for download. 1635 + 1636 + 1637 +1. 1638 +11. How to set up LT to work with Single Channel Gateway such as LG01/LG02? 1639 + 1717 1717 In this case, users need to set LT-33222-L to work in ABP mode & transmit in only one frequency. 1718 -))) 1719 -))) 1720 1720 1721 -((( 1722 -((( 1723 1723 Assume we have a LG02 working in the frequency 868400000 now , below is the step. 1724 -))) 1725 -))) 1726 1726 1727 -((( 1728 -(% style="color:#4f81bd" %)**Step1**(%%): Log in TTN, Create an ABP device in the application and input the network session key (NETSKEY), app session key (APPSKEY) from the device. 1729 -))) 1730 1730 1731 -((( 1732 -[[image:1653360231087-571.png||height="401" width="727"]] 1733 -))) 1645 +**Step1**: Log in TTN, Create an ABP device in the application and input the network session key (NETSKEY), app session key (APPSKEY) from the device. 1734 1734 1735 -((( 1736 -(% style="color:red" %)Note: user just need to make sure above three keys match, User can change either in TTN or Device to make then match. In TTN, NETSKEY and APPSKEY can be configured by user in setting page, but Device Addr is generated by TTN. 1737 -))) 1647 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image039.png]] 1738 1738 1739 -((( 1740 -(% style="color:#4f81bd" %)**Step2**(%%)**: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands: 1741 -))) 1649 +Note: user just need to make sure above three keys match, User can change either in TTN or Device to make then match. In TTN, NETSKEY and APPSKEY can be configured by user in setting page, but Device Addr is generated by TTN. 1742 1742 1743 -((( 1744 -(% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access. 1745 -(% style="background-color:#dcdcdc" %)AT+FDR (%%) Reset Parameters to Factory Default, Keys Reserve 1746 -(% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access. 1747 -(% style="background-color:#dcdcdc" %)AT+NJM=0 (%%)Set to ABP mode 1748 -(% style="background-color:#dcdcdc" %)AT+ADR=0 (%%)Set the Adaptive Data Rate Off 1749 -(% style="background-color:#dcdcdc" %)AT+DR=5 (%%) Set Data Rate (Set AT+DR=3 for 915 band) 1750 -(% style="background-color:#dcdcdc" %)AT+TDC=60000 (%%)Set transmit interval to 60 seconds 1751 -(% style="background-color:#dcdcdc" %)AT+CHS=868400000 (%%)Set transmit frequency to 868.4Mhz 1752 -(% style="background-color:#dcdcdc" %)AT+DADDR=26 01 1A F1(%%) Set Device Address to 26 01 1A F1 1753 -(% style="background-color:#dcdcdc" %)ATZ (%%)Reset MCU 1754 -))) 1755 1755 1756 -((( 1757 -As shown in below: 1758 -))) 1652 +**Step2: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands: 1759 1759 1760 - [[image:1653360498588-932.png||height="485"width="726"]]1654 +123456 Enter Password to have AT access. 1761 1761 1762 - ==5.4Can I see countingeventin Serial? ==1656 +AT+FDR Reset Parameters to Factory Default, Keys Reserve 1763 1763 1764 -((( 1765 -User can run AT+DEBUG command to see the counting event in serial. If firmware too old and doesn’t support AT+DEBUG. User can update to latest firmware first. 1766 -))) 1658 +123456 Enter Password to have AT access. 1767 1767 1768 -((( 1769 -= 6. Trouble Shooting = 1770 -))) 1660 +AT+NJM=0 Set to ABP mode 1771 1771 1772 -((( 1773 -((( 1774 -== 6.1 Downlink doesn’t work, how to solve it? == 1775 -))) 1776 -))) 1662 +AT+ADR=0 Set the Adaptive Data Rate Off 1777 1777 1778 -((( 1779 -Please see this link for how to debug: 1664 +AT+DR=5 Set Data Rate (Set AT+DR=3 for 915 band) 1780 1780 1781 - [[http:~~/~~/wiki1.dragino.com/xwiki/bin/view/Main/LoRaWAN%20Communication%20Debug/#H5.1Howitwork>>http://wiki1.dragino.com/xwiki/bin/view/Main/LoRaWAN%20Communication%20Debug/#H5.1Howitwork]]1666 +AT+TDC=60000 Set transmit interval to 60 seconds 1782 1782 1783 - 1784 -))) 1668 +AT+CHS=868400000 Set transmit frequency to 868.4Mhz 1785 1785 1786 -((( 1787 -== 6.2 Have trouble to upload image. == 1788 -))) 1670 +AT+DADDR=26 01 1A F1 Set Device Address to 26 01 1A F1 1789 1789 1790 -((( 1791 -See this link for trouble shooting: 1672 +ATZ Reset MCU 1792 1792 1793 -[[http:~~/~~/wiki1.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/>>http://wiki1.dragino.com/xwiki/bin/view/Main/Firmware%20Upgrade%20Instruction%20for%20STM32%20base%20products/]] 1794 -))) 1674 +As shown in below: 1795 1795 1796 -((( 1797 - 1798 -))) 1676 +[[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image040.png]] 1799 1799 1800 -((( 1801 -== 6.3 Why I can’t join TTN in US915 /AU915 bands? == 1802 -))) 1803 1803 1804 -((( 1805 -It might be about the channels mapping. Please see this link for detail: 1806 1806 1807 - [[http:~~/~~/wiki1.dragino.com/xwiki/bin/view/Main/LoRaWAN%20Communication%20Debug/#H2.NoticeofUS9152FCN4702FAU915Frequencyband>>http://wiki1.dragino.com/xwiki/bin/view/Main/LoRaWAN%20Communication%20Debug/#H2.NoticeofUS9152FCN4702FAU915Frequencyband]]1808 - )))1680 +1. 1681 +11. Can I see counting event in Serial? 1809 1809 1810 -((( 1811 - 1812 -))) 1683 +User can run AT+DEBUG command to see the counting event in serial. If firmware too old and doesn’t support AT+DEBUG. User can update to latest firmware first. 1813 1813 1814 -((( 1815 -= 7. Order Info = 1816 -))) 1817 1817 1818 -((( 1819 -((( 1820 -(% style="color:#4f81bd" %)**LT-22222-L-XXX:** 1821 -))) 1822 -))) 1823 1823 1824 -((( 1825 -((( 1826 -(% style="color:#4f81bd" %)**XXX:** 1827 -))) 1828 -))) 1829 1829 1830 -((( 1831 -* ((( 1832 -(% style="color:#4f81bd" %)**EU433**(%%): LT with frequency bands EU433 1833 -))) 1834 -))) 1688 +1. Trouble Shooting 1689 +11. Downlink doesn’t work, how to solve it? 1835 1835 1836 -((( 1837 -* ((( 1838 -(% style="color:#4f81bd" %)**EU868**(%%): LT with frequency bands EU868 1839 -))) 1840 -))) 1691 +Please see this link for how to debug: 1841 1841 1842 -((( 1843 -* ((( 1844 -(% style="color:#4f81bd" %)**KR920**(%%): LT with frequency bands KR920 1845 -))) 1846 -))) 1693 +[[http:~~/~~/wiki.dragino.com/index.php?title=LoRaWAN_Communication_Debug#How_it_work>>url:http://wiki.dragino.com/index.php?title=LoRaWAN_Communication_Debug#How_it_work]] 1847 1847 1848 -((( 1849 -* ((( 1850 -(% style="color:#4f81bd" %)**CN470**(%%): LT with frequency bands CN470 1851 -))) 1852 -))) 1853 1853 1854 -((( 1855 -* ((( 1856 -(% style="color:#4f81bd" %)**AS923**(%%): LT with frequency bands AS923 1857 -))) 1858 -))) 1696 +1. 1697 +11. Have trouble to upload image. 1859 1859 1860 -((( 1861 -* ((( 1862 -(% style="color:#4f81bd" %)**AU915**(%%): LT with frequency bands AU915 1863 -))) 1864 -))) 1699 +See this link for trouble shooting: 1865 1865 1866 -((( 1867 -* ((( 1868 -(% style="color:#4f81bd" %)**US915**(%%): LT with frequency bands US915 1869 -))) 1870 -))) 1701 +[[http:~~/~~/wiki.dragino.com/index.php?title=Firmware_Upgrade_Trouble_Shooting#UART_upgrade_trouble_shooting>>url:http://wiki.dragino.com/index.php?title=Firmware_Upgrade_Trouble_Shooting#UART_upgrade_trouble_shooting]] 1871 1871 1872 -((( 1873 -* ((( 1874 -(% style="color:#4f81bd" %)**IN865**(%%): LT with frequency bands IN865 1875 -))) 1876 -))) 1877 1877 1878 -((( 1879 -* ((( 1880 -(% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779 1881 -))) 1704 +1. 1705 +11. Why I can’t join TTN in US915 /AU915 bands? 1882 1882 1883 -= 8. Packing Info = 1884 -))) 1707 +It might be about the channels mapping. Please see this link for detail: 1885 1885 1886 -((( 1887 -((( 1709 +[[http:~~/~~/wiki.dragino.com/index.php?title=LoRaWAN_Communication_Debug#Notice_of_US915.2FCN470.2FAU915_Frequency_band>>url:http://wiki.dragino.com/index.php?title=LoRaWAN_Communication_Debug#Notice_of_US915.2FCN470.2FAU915_Frequency_band]] 1710 + 1711 + 1712 + 1713 + 1714 +1. Order Info 1715 + 1716 +**For LT-33222-L-XXX or LT-22222-L-XXX:** 1717 + 1718 +**XXX:** 1719 + 1720 +* **EU433**: LT with frequency bands EU433 1721 +* **EU868**: LT with frequency bands EU868 1722 +* **KR920**: LT with frequency bands KR920 1723 +* **CN470**: LT with frequency bands CN470 1724 +* **AS923**: LT with frequency bands AS923 1725 +* **AU915**: LT with frequency bands AU915 1726 +* **US915**: LT with frequency bands US915 1727 +* **IN865**: LT with frequency bands IN865 1728 +* **CN779**: LT with frequency bands CN779 1729 + 1730 +1. Packing Info 1731 + 1888 1888 **Package Includes**: 1889 -))) 1890 -))) 1891 1891 1892 -((( 1893 -((( 1894 -* LT-22222-L I/O Controller x 1 1734 +* LT I/O Controller x 1 1895 1895 * Stick Antenna for LoRa RF part x 1 1896 1896 * Bracket for controller x1 1897 1897 * Program cable x 1 1898 -))) 1899 -))) 1900 1900 1901 -((( 1902 -((( 1903 1903 **Dimension and weight**: 1904 -))) 1905 -))) 1906 1906 1907 -((( 1908 -((( 1909 1909 * Device Size: 13.5 x 7 x 3 cm 1910 1910 * Device Weight: 105g 1911 1911 * Package Size / pcs : 14.5 x 8 x 5 cm 1912 1912 * Weight / pcs : 170g 1913 -))) 1914 -))) 1915 1915 1916 -((( 1917 -= 9. Support = 1918 -))) 1746 +1. Support 1919 1919 1920 -* ((( 1921 -((( 1922 -Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule. 1923 -))) 1924 -))) 1925 -* ((( 1926 -((( 1927 -Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to 1928 -))) 1929 -))) 1748 +* Support is provided Monday to Friday, from 09:00 to 18:00 GMT+8. Due to different timezones we cannot offer live support. However, your questions will be answered as soon as possible in the before-mentioned schedule. 1749 +* Provide as much information as possible regarding your enquiry (product models, accurately describe your problem and steps to replicate it etc) and send a mail to 1930 1930 1931 -((( 1932 -((( 1933 - [[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]] 1934 -))) 1935 - 1936 -((( 1937 -= 10. Reference = 1938 - 1939 -* Product Page: 1940 - 1941 -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]] 1942 - 1943 -* [[Image Download>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]] 1944 -* [[AT Command Manual>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/]] 1945 -* [[Hardware Source>>url:https://github.com/dragino/Lora/tree/master/LT/LT-33222-L/v1.0]] 1946 -))) 1947 -))) 1751 +[[support@dragino.com>>url:file:///D:/市场资料/说明书/LoRa/LT系列/support@dragino.com]]
- 1653356737703-362.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -42.1 KB - Content
- 1653356838789-523.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -131.7 KB - Content
- 1653356991268-289.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -23.9 KB - Content
- 1653357170703-587.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -34.0 KB - Content
- 1653357531600-905.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -25.4 KB - Content
- 1653357592296-182.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -42.2 KB - Content
- 1653357640609-758.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -558.1 KB - Content
- 1653357648330-671.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -35.9 KB - Content
- 1653358238933-385.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -412.4 KB - Content
- 1653358355238-883.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -120.4 KB - Content
- 1653359097980-169.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -158.9 KB - Content
- 1653359603330-121.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -598.0 KB - Content
- 1653360054704-518.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -84.7 KB - Content
- 1653360231087-571.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -94.8 KB - Content
- 1653360498588-932.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -93.9 KB - Content
- image-20220523175847-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -2.0 KB - Content
- image-20220523180452-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -4.5 KB - Content
- image-20220523180506-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -4.5 KB - Content
- image-20220523181246-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -5.5 KB - Content
- image-20220523181301-6.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -4.6 KB - Content
- image-20220523181727-7.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -4.8 KB - Content
- image-20220523181903-8.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -4.9 KB - Content
- image-20220523182334-9.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -6.4 KB - Content
- image-20220524085923-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -6.4 KB - Content
- image-20220524090106-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -5.2 KB - Content
- image-20220524090249-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -5.8 KB - Content
- image-20220524090456-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -5.1 KB - Content
- image-20220524092754-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -7.8 KB - Content
- image-20220524093238-6.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -6.0 KB - Content
- image-20220524093328-7.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -6.1 KB - Content
- image-20220524093351-8.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -6.2 KB - Content
- image-20220524093724-9.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -14.3 KB - Content
- image-20220524093831-10.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -15.2 KB - Content
- image-20220524094641-11.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -136.2 KB - Content
- image-20220524094641-12.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -69.1 KB - Content
- image-20220524094909-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -297.8 KB - Content
- image-20220524094909-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -325.2 KB - Content
- image-20220524094909-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -330.9 KB - Content
- image-20220524094909-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -329.2 KB - Content
- image-20220524094909-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -212.8 KB - Content
- image-20220524095400-6.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -172 bytes - Content
- image-20220524095438-7.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -158 bytes - Content
- image-20220524095628-8.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -264 bytes - Content
- image-20220524100215-10.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -21.5 KB - Content
- image-20220524100215-9.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -72.1 KB - Content
- image-20220524100748-11.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -39.5 KB - Content
- image-20220524103407-12.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -66.5 KB - Content
- image-20220524103429-13.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -127.2 KB - Content
- image-20220524103652-14.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -88.6 KB - Content
- image-20220524104033-15.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -83.7 KB - Content