Changes for page LT-22222-L -- LoRa I/O Controller User Manual
Last modified by Saxer Lin on 2025/04/15 17:24
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -199,13 +199,21 @@ 199 199 200 200 == 3.1 How it works? == 201 201 202 +((( 202 202 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. 204 +))) 203 203 206 +((( 204 204 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:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H4.UseATCommand]] to set the keys in the devices. 208 +))) 205 205 210 +((( 206 206 3.2 Example to join LoRaWAN network 212 +))) 207 207 214 +((( 208 208 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. 216 +))) 209 209 210 210 [[image:image-20220523172350-1.png||height="266" width="864"]] 211 211 ... ... @@ -305,7 +305,9 @@ 305 305 306 306 **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins. 307 307 316 +((( 308 308 Total : 11 bytes payload 318 +))) 309 309 310 310 [[image:image-20220523180452-3.png]] 311 311 ... ... @@ -319,53 +319,77 @@ 319 319 * FIRST: Indicate this is the first packet after join network. 320 320 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 321 321 332 +((( 322 322 (% style="color:red" %)Note: DO3 bit is not valid for LT-22222-L. 334 +))) 323 323 336 +((( 324 324 **To use counting mode, please run:** 338 +))) 325 325 326 326 (% class="box infomessage" %) 327 327 ((( 342 +((( 328 328 **AT+MOD=2** 329 329 ))) 345 +))) 330 330 331 331 (% class="box infomessage" %) 332 332 ((( 349 +((( 333 333 **ATZ** 334 334 ))) 352 +))) 335 335 354 +((( 336 336 (% style="color:#4f81bd" %)**AT Commands for counting:** 356 +))) 337 337 358 +((( 338 338 **For LT22222-L:** 360 +))) 339 339 340 340 (% class="box infomessage" %) 341 341 ((( 364 +((( 342 342 **AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) ** 343 343 ))) 367 +))) 344 344 345 345 (% class="box infomessage" %) 346 346 ((( 371 +((( 347 347 **AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) ** 348 348 ))) 374 +))) 349 349 350 350 (% class="box infomessage" %) 351 351 ((( 378 +((( 352 352 **AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) ** 353 353 ))) 381 +))) 354 354 355 355 (% class="box infomessage" %) 356 356 ((( 385 +((( 357 357 **AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) ** 358 358 ))) 388 +))) 359 359 360 360 (% class="box infomessage" %) 361 361 ((( 392 +((( 362 362 **AT+SETCNT=1,60 (Set COUNT1 value to 60)** 363 363 ))) 395 +))) 364 364 365 365 (% class="box infomessage" %) 366 366 ((( 399 +((( 367 367 **AT+SETCNT=2,60 (Set COUNT2 value to 60)** 368 368 ))) 402 +))) 369 369 370 370 === 3.3.3 AT+MOD~=3, Single DI Counting + 2 x ACI === 371 371 ... ... @@ -383,21 +383,31 @@ 383 383 * FIRST: Indicate this is the first packet after join network. 384 384 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 385 385 420 +((( 386 386 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 422 +))) 387 387 424 +((( 388 388 **To use counting mode, please run:** 426 +))) 389 389 390 390 (% class="box infomessage" %) 391 391 ((( 430 +((( 392 392 **AT+MOD=3** 393 393 ))) 433 +))) 394 394 395 395 (% class="box infomessage" %) 396 396 ((( 437 +((( 397 397 **ATZ** 398 398 ))) 440 +))) 399 399 442 +((( 400 400 Other AT Commands for counting are similar to [[MOD2 Counting Command>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.2AT2BMOD3D22C28DoubleDICounting29]]. 444 +))) 401 401 402 402 === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting === 403 403 ... ... @@ -417,44 +417,67 @@ 417 417 * FIRST: Indicate this is the first packet after join network. 418 418 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 419 419 464 +((( 420 420 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 466 +))) 421 421 468 +((( 422 422 **To use this mode, please run:** 470 +))) 423 423 424 424 (% class="box infomessage" %) 425 425 ((( 474 +((( 426 426 **AT+MOD=4** 427 427 ))) 477 +))) 428 428 429 429 (% class="box infomessage" %) 430 430 ((( 481 +((( 431 431 **ATZ** 432 432 ))) 484 +))) 433 433 486 +((( 487 + 488 +))) 434 434 490 +((( 435 435 Other AT Commands for counting are similar to [[MOD2 Counting Command>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.2AT2BMOD3D22C28DoubleDICounting29]]. 492 +))) 436 436 494 +((( 437 437 **Plus below command for AVI1 Counting:** 496 +))) 438 438 439 439 (% class="box infomessage" %) 440 440 ((( 500 +((( 441 441 **AT+SETCNT=3,60 (set AVI Count to 60)** 442 442 ))) 503 +))) 443 443 444 444 (% class="box infomessage" %) 445 445 ((( 507 +((( 446 446 **AT+VOLMAX=20000 (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)** 447 447 ))) 510 +))) 448 448 449 449 (% class="box infomessage" %) 450 450 ((( 514 +((( 451 451 **AT+VOLMAX=20000,0 (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)** 452 452 ))) 517 +))) 453 453 454 454 (% class="box infomessage" %) 455 455 ((( 521 +((( 456 456 **AT+VOLMAX=20000,1 (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)** 457 457 ))) 524 +))) 458 458 459 459 === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI === 460 460 ... ... @@ -468,23 +468,35 @@ 468 468 469 469 * RO is for relay. ROx=1 : close,ROx=0 always open. 470 470 * FIRST: Indicate this is the first packet after join network. 471 -* DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 538 +* ((( 539 +DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 540 +))) 472 472 542 +((( 473 473 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 544 +))) 474 474 546 +((( 475 475 **To use this mode, please run:** 548 +))) 476 476 477 477 (% class="box infomessage" %) 478 478 ((( 552 +((( 479 479 **AT+MOD=5** 480 480 ))) 555 +))) 481 481 482 482 (% class="box infomessage" %) 483 483 ((( 559 +((( 484 484 **ATZ** 485 485 ))) 562 +))) 486 486 564 +((( 487 487 Other AT Commands for counting are similar to [[MOD2 Counting Command>>path:http://8.211.40.43/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.3.2AT2BMOD3D22C28DoubleDICounting29]]. 566 +))) 488 488 489 489 === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) === 490 490 ... ... @@ -892,8 +892,10 @@ 892 892 893 893 (% class="box infomessage" %) 894 894 ((( 974 +((( 895 895 **0xA9 aa bb cc ~/~/ Set DO1/DO2/DO3 output with time control** 896 896 ))) 977 +))) 897 897 898 898 This is to control the digital output time of DO pin. Include four bytes: 899 899 ... ... @@ -1110,7 +1110,6 @@ 1110 1110 1111 1111 [[image:image-20220524094641-11.png||height="390" width="723"]] 1112 1112 1113 - 1114 1114 [[image:image-20220524094641-12.png||height="402" width="718"]] 1115 1115 1116 1116 **Step 3**: Create an account or log in Mydevices. ... ... @@ -1169,7 +1169,7 @@ 1169 1169 1170 1170 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1171 1171 1172 - IF// = DI1+ / 1K.1252 +[[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.** 1173 1173 1174 1174 If DI1+ = 12v, the //IF// = 12mA , So the LT-22222-L will be able to detect this active signal. 1175 1175 ... ... @@ -1183,9 +1183,9 @@ 1183 1183 1184 1184 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1185 1185 1186 -[[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:/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:/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.**1266 +[[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.** 1187 1187 1188 -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:/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:/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.1268 +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. 1189 1189 1190 1190 1191 1191 **Example3**: Connect to a 220v high active sensor. ... ... @@ -1197,7 +1197,7 @@ 1197 1197 1198 1198 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1199 1199 1200 - [[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:/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:/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.**1280 + [[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+ / 51K.** 1201 1201 1202 1202 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. 1203 1203 ... ... @@ -1256,7 +1256,9 @@ 1256 1256 1257 1257 [[image:1653358238933-385.png]] 1258 1258 1339 +((( 1259 1259 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: 1341 +))) 1260 1260 1261 1261 [[image:1653358355238-883.png]] 1262 1262 ... ... @@ -1578,11 +1578,13 @@ 1578 1578 Below shows the hardware connection for how to upload an image to the LT: 1579 1579 * [[image:1653359603330-121.png]] 1580 1580 1663 +((( 1581 1581 **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]]. 1582 1582 **Step2**: Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]]. 1583 1583 **Step3: **Open flashloader; choose the correct COM port to update. 1584 1584 **For LT-22222-L**: 1585 1585 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. 1669 +))) 1586 1586 1587 1587 [[image:image-20220524103407-12.png]] 1588 1588 ... ... @@ -1628,10 +1628,15 @@ 1628 1628 [[image:1653360231087-571.png||height="401" width="727"]] 1629 1629 ))) 1630 1630 1715 +((( 1631 1631 (% 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. 1717 +))) 1632 1632 1719 +((( 1633 1633 (% style="color:#4f81bd" %)**Step2**(%%)**: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands: 1721 +))) 1634 1634 1723 +((( 1635 1635 (% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access. 1636 1636 (% style="background-color:#dcdcdc" %)AT+FDR (%%) Reset Parameters to Factory Default, Keys Reserve 1637 1637 (% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access. ... ... @@ -1642,8 +1642,11 @@ 1642 1642 (% style="background-color:#dcdcdc" %)AT+CHS=868400000 (%%)Set transmit frequency to 868.4Mhz 1643 1643 (% style="background-color:#dcdcdc" %)AT+DADDR=26 01 1A F1(%%) Set Device Address to 26 01 1A F1 1644 1644 (% style="background-color:#dcdcdc" %)ATZ (%%)Reset MCU 1734 +))) 1645 1645 1736 +((( 1646 1646 As shown in below: 1738 +))) 1647 1647 1648 1648 [[image:1653360498588-932.png||height="485" width="726"]] 1649 1649