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
-
... ... @@ -207,9 +207,7 @@ 207 207 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 208 ))) 209 209 210 -((( 211 -3.2 Example to join LoRaWAN network 212 -))) 210 +== 3.2 Example to join LoRaWAN network == 213 213 214 214 ((( 215 215 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. ... ... @@ -329,53 +329,77 @@ 329 329 * FIRST: Indicate this is the first packet after join network. 330 330 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 331 331 330 +((( 332 332 (% style="color:red" %)Note: DO3 bit is not valid for LT-22222-L. 332 +))) 333 333 334 +((( 334 334 **To use counting mode, please run:** 336 +))) 335 335 336 336 (% class="box infomessage" %) 337 337 ((( 340 +((( 338 338 **AT+MOD=2** 339 339 ))) 343 +))) 340 340 341 341 (% class="box infomessage" %) 342 342 ((( 347 +((( 343 343 **ATZ** 344 344 ))) 350 +))) 345 345 352 +((( 346 346 (% style="color:#4f81bd" %)**AT Commands for counting:** 354 +))) 347 347 356 +((( 348 348 **For LT22222-L:** 358 +))) 349 349 350 350 (% class="box infomessage" %) 351 351 ((( 362 +((( 352 352 **AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) ** 353 353 ))) 365 +))) 354 354 355 355 (% class="box infomessage" %) 356 356 ((( 369 +((( 357 357 **AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) ** 358 358 ))) 372 +))) 359 359 360 360 (% class="box infomessage" %) 361 361 ((( 376 +((( 362 362 **AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) ** 363 363 ))) 379 +))) 364 364 365 365 (% class="box infomessage" %) 366 366 ((( 383 +((( 367 367 **AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) ** 368 368 ))) 386 +))) 369 369 370 370 (% class="box infomessage" %) 371 371 ((( 390 +((( 372 372 **AT+SETCNT=1,60 (Set COUNT1 value to 60)** 373 373 ))) 393 +))) 374 374 375 375 (% class="box infomessage" %) 376 376 ((( 397 +((( 377 377 **AT+SETCNT=2,60 (Set COUNT2 value to 60)** 378 378 ))) 400 +))) 379 379 380 380 === 3.3.3 AT+MOD~=3, Single DI Counting + 2 x ACI === 381 381 ... ... @@ -393,21 +393,31 @@ 393 393 * FIRST: Indicate this is the first packet after join network. 394 394 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 395 395 418 +((( 396 396 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 420 +))) 397 397 422 +((( 398 398 **To use counting mode, please run:** 424 +))) 399 399 400 400 (% class="box infomessage" %) 401 401 ((( 428 +((( 402 402 **AT+MOD=3** 403 403 ))) 431 +))) 404 404 405 405 (% class="box infomessage" %) 406 406 ((( 435 +((( 407 407 **ATZ** 408 408 ))) 438 +))) 409 409 440 +((( 410 410 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]]. 442 +))) 411 411 412 412 === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting === 413 413 ... ... @@ -427,44 +427,67 @@ 427 427 * FIRST: Indicate this is the first packet after join network. 428 428 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 429 429 462 +((( 430 430 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 464 +))) 431 431 466 +((( 432 432 **To use this mode, please run:** 468 +))) 433 433 434 434 (% class="box infomessage" %) 435 435 ((( 472 +((( 436 436 **AT+MOD=4** 437 437 ))) 475 +))) 438 438 439 439 (% class="box infomessage" %) 440 440 ((( 479 +((( 441 441 **ATZ** 442 442 ))) 482 +))) 443 443 484 +((( 485 + 486 +))) 444 444 488 +((( 445 445 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]]. 490 +))) 446 446 492 +((( 447 447 **Plus below command for AVI1 Counting:** 494 +))) 448 448 449 449 (% class="box infomessage" %) 450 450 ((( 498 +((( 451 451 **AT+SETCNT=3,60 (set AVI Count to 60)** 452 452 ))) 501 +))) 453 453 454 454 (% class="box infomessage" %) 455 455 ((( 505 +((( 456 456 **AT+VOLMAX=20000 (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)** 457 457 ))) 508 +))) 458 458 459 459 (% class="box infomessage" %) 460 460 ((( 512 +((( 461 461 **AT+VOLMAX=20000,0 (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)** 462 462 ))) 515 +))) 463 463 464 464 (% class="box infomessage" %) 465 465 ((( 519 +((( 466 466 **AT+VOLMAX=20000,1 (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)** 467 467 ))) 522 +))) 468 468 469 469 === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI === 470 470 ... ... @@ -478,23 +478,35 @@ 478 478 479 479 * RO is for relay. ROx=1 : close,ROx=0 always open. 480 480 * FIRST: Indicate this is the first packet after join network. 481 -* DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 536 +* ((( 537 +DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 538 +))) 482 482 540 +((( 483 483 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 542 +))) 484 484 544 +((( 485 485 **To use this mode, please run:** 546 +))) 486 486 487 487 (% class="box infomessage" %) 488 488 ((( 550 +((( 489 489 **AT+MOD=5** 490 490 ))) 553 +))) 491 491 492 492 (% class="box infomessage" %) 493 493 ((( 557 +((( 494 494 **ATZ** 495 495 ))) 560 +))) 496 496 562 +((( 497 497 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]]. 564 +))) 498 498 499 499 === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) === 500 500 ... ... @@ -902,8 +902,10 @@ 902 902 903 903 (% class="box infomessage" %) 904 904 ((( 972 +((( 905 905 **0xA9 aa bb cc ~/~/ Set DO1/DO2/DO3 output with time control** 906 906 ))) 975 +))) 907 907 908 908 This is to control the digital output time of DO pin. Include four bytes: 909 909 ... ... @@ -1120,7 +1120,6 @@ 1120 1120 1121 1121 [[image:image-20220524094641-11.png||height="390" width="723"]] 1122 1122 1123 - 1124 1124 [[image:image-20220524094641-12.png||height="402" width="718"]] 1125 1125 1126 1126 **Step 3**: Create an account or log in Mydevices. ... ... @@ -1179,7 +1179,7 @@ 1179 1179 1180 1180 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1181 1181 1182 - IF// = DI1+ / 1K.1250 +[[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.** 1183 1183 1184 1184 If DI1+ = 12v, the //IF// = 12mA , So the LT-22222-L will be able to detect this active signal. 1185 1185 ... ... @@ -1193,9 +1193,9 @@ 1193 1193 1194 1194 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1195 1195 1196 -[[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.**1264 +[[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.** 1197 1197 1198 -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.1266 +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. 1199 1199 1200 1200 1201 1201 **Example3**: Connect to a 220v high active sensor. ... ... @@ -1207,7 +1207,7 @@ 1207 1207 1208 1208 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1209 1209 1210 - [[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.**1278 + [[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.** 1211 1211 1212 1212 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. 1213 1213 ... ... @@ -1266,7 +1266,9 @@ 1266 1266 1267 1267 [[image:1653358238933-385.png]] 1268 1268 1337 +((( 1269 1269 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: 1339 +))) 1270 1270 1271 1271 [[image:1653358355238-883.png]] 1272 1272 ... ... @@ -1588,11 +1588,13 @@ 1588 1588 Below shows the hardware connection for how to upload an image to the LT: 1589 1589 * [[image:1653359603330-121.png]] 1590 1590 1661 +((( 1591 1591 **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]]. 1592 1592 **Step2**: Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]]. 1593 1593 **Step3: **Open flashloader; choose the correct COM port to update. 1594 1594 **For LT-22222-L**: 1595 1595 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. 1667 +))) 1596 1596 1597 1597 [[image:image-20220524103407-12.png]] 1598 1598 ... ... @@ -1638,10 +1638,15 @@ 1638 1638 [[image:1653360231087-571.png||height="401" width="727"]] 1639 1639 ))) 1640 1640 1713 +((( 1641 1641 (% 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. 1715 +))) 1642 1642 1717 +((( 1643 1643 (% style="color:#4f81bd" %)**Step2**(%%)**: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands: 1719 +))) 1644 1644 1721 +((( 1645 1645 (% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access. 1646 1646 (% style="background-color:#dcdcdc" %)AT+FDR (%%) Reset Parameters to Factory Default, Keys Reserve 1647 1647 (% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access. ... ... @@ -1652,8 +1652,11 @@ 1652 1652 (% style="background-color:#dcdcdc" %)AT+CHS=868400000 (%%)Set transmit frequency to 868.4Mhz 1653 1653 (% style="background-color:#dcdcdc" %)AT+DADDR=26 01 1A F1(%%) Set Device Address to 26 01 1A F1 1654 1654 (% style="background-color:#dcdcdc" %)ATZ (%%)Reset MCU 1732 +))) 1655 1655 1734 +((( 1656 1656 As shown in below: 1736 +))) 1657 1657 1658 1658 [[image:1653360498588-932.png||height="485" width="726"]] 1659 1659 ... ... @@ -1723,33 +1723,58 @@ 1723 1723 ))) 1724 1724 ))) 1725 1725 1806 +((( 1726 1726 * ((( 1727 1727 (% style="color:#4f81bd" %)**EU433**(%%): LT with frequency bands EU433 1728 1728 ))) 1810 +))) 1811 + 1812 +((( 1729 1729 * ((( 1730 1730 (% style="color:#4f81bd" %)**EU868**(%%): LT with frequency bands EU868 1731 1731 ))) 1816 +))) 1817 + 1818 +((( 1732 1732 * ((( 1733 1733 (% style="color:#4f81bd" %)**KR920**(%%): LT with frequency bands KR920 1734 1734 ))) 1822 +))) 1823 + 1824 +((( 1735 1735 * ((( 1736 1736 (% style="color:#4f81bd" %)**CN470**(%%): LT with frequency bands CN470 1737 1737 ))) 1828 +))) 1829 + 1830 +((( 1738 1738 * ((( 1739 1739 (% style="color:#4f81bd" %)**AS923**(%%): LT with frequency bands AS923 1740 1740 ))) 1834 +))) 1835 + 1836 +((( 1741 1741 * ((( 1742 1742 (% style="color:#4f81bd" %)**AU915**(%%): LT with frequency bands AU915 1743 1743 ))) 1840 +))) 1841 + 1842 +((( 1744 1744 * ((( 1745 1745 (% style="color:#4f81bd" %)**US915**(%%): LT with frequency bands US915 1746 1746 ))) 1846 +))) 1847 + 1848 +((( 1747 1747 * ((( 1748 1748 (% style="color:#4f81bd" %)**IN865**(%%): LT with frequency bands IN865 1749 1749 ))) 1852 +))) 1750 1750 1751 1751 ((( 1752 -* (% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779 1855 +* ((( 1856 +(% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779 1857 +))) 1753 1753 1754 1754 = 8. Packing Info = 1755 1755 )))