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,7 +207,9 @@ 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 -== 3.2 Example to join LoRaWAN network == 210 +((( 211 +3.2 Example to join LoRaWAN network 212 +))) 211 211 212 212 ((( 213 213 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. ... ... @@ -215,6 +215,7 @@ 215 215 216 216 [[image:image-20220523172350-1.png||height="266" width="864"]] 217 217 220 + 218 218 ((( 219 219 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: 220 220 ))) ... ... @@ -310,9 +310,7 @@ 310 310 311 311 **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins. 312 312 313 -((( 314 314 Total : 11 bytes payload 315 -))) 316 316 317 317 [[image:image-20220523180452-3.png]] 318 318 ... ... @@ -326,77 +326,53 @@ 326 326 * FIRST: Indicate this is the first packet after join network. 327 327 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 328 328 329 -((( 330 330 (% style="color:red" %)Note: DO3 bit is not valid for LT-22222-L. 331 -))) 332 332 333 -((( 334 334 **To use counting mode, please run:** 335 -))) 336 336 337 337 (% class="box infomessage" %) 338 338 ((( 339 -((( 340 340 **AT+MOD=2** 341 341 ))) 342 -))) 343 343 344 344 (% class="box infomessage" %) 345 345 ((( 346 -((( 347 347 **ATZ** 348 348 ))) 349 -))) 350 350 351 -((( 352 352 (% style="color:#4f81bd" %)**AT Commands for counting:** 353 -))) 354 354 355 -((( 356 356 **For LT22222-L:** 357 -))) 358 358 359 359 (% class="box infomessage" %) 360 360 ((( 361 -((( 362 362 **AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) ** 363 363 ))) 364 -))) 365 365 366 366 (% class="box infomessage" %) 367 367 ((( 368 -((( 369 369 **AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) ** 370 370 ))) 371 -))) 372 372 373 373 (% class="box infomessage" %) 374 374 ((( 375 -((( 376 376 **AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) ** 377 377 ))) 378 -))) 379 379 380 380 (% class="box infomessage" %) 381 381 ((( 382 -((( 383 383 **AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) ** 384 384 ))) 385 -))) 386 386 387 387 (% class="box infomessage" %) 388 388 ((( 389 -((( 390 390 **AT+SETCNT=1,60 (Set COUNT1 value to 60)** 391 391 ))) 392 -))) 393 393 394 394 (% class="box infomessage" %) 395 395 ((( 396 -((( 397 397 **AT+SETCNT=2,60 (Set COUNT2 value to 60)** 398 398 ))) 399 -))) 400 400 401 401 === 3.3.3 AT+MOD~=3, Single DI Counting + 2 x ACI === 402 402 ... ... @@ -414,31 +414,21 @@ 414 414 * FIRST: Indicate this is the first packet after join network. 415 415 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 416 416 417 -((( 418 418 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 419 -))) 420 420 421 -((( 422 422 **To use counting mode, please run:** 423 -))) 424 424 425 425 (% class="box infomessage" %) 426 426 ((( 427 -((( 428 428 **AT+MOD=3** 429 429 ))) 430 -))) 431 431 432 432 (% class="box infomessage" %) 433 433 ((( 434 -((( 435 435 **ATZ** 436 436 ))) 437 -))) 438 438 439 -((( 440 440 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]]. 441 -))) 442 442 443 443 === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting === 444 444 ... ... @@ -458,67 +458,44 @@ 458 458 * FIRST: Indicate this is the first packet after join network. 459 459 * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 460 460 461 -((( 462 462 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 463 -))) 464 464 465 -((( 466 466 **To use this mode, please run:** 467 -))) 468 468 469 469 (% class="box infomessage" %) 470 470 ((( 471 -((( 472 472 **AT+MOD=4** 473 473 ))) 474 -))) 475 475 476 476 (% class="box infomessage" %) 477 477 ((( 478 -((( 479 479 **ATZ** 480 480 ))) 481 -))) 482 482 483 -((( 484 - 485 -))) 486 486 487 -((( 488 488 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]]. 489 -))) 490 490 491 -((( 492 492 **Plus below command for AVI1 Counting:** 493 -))) 494 494 495 495 (% class="box infomessage" %) 496 496 ((( 497 -((( 498 498 **AT+SETCNT=3,60 (set AVI Count to 60)** 499 499 ))) 500 -))) 501 501 502 502 (% class="box infomessage" %) 503 503 ((( 504 -((( 505 505 **AT+VOLMAX=20000 (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)** 506 506 ))) 507 -))) 508 508 509 509 (% class="box infomessage" %) 510 510 ((( 511 -((( 512 512 **AT+VOLMAX=20000,0 (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)** 513 513 ))) 514 -))) 515 515 516 516 (% class="box infomessage" %) 517 517 ((( 518 -((( 519 519 **AT+VOLMAX=20000,1 (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)** 520 520 ))) 521 -))) 522 522 523 523 === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI === 524 524 ... ... @@ -532,35 +532,23 @@ 532 532 533 533 * RO is for relay. ROx=1 : close,ROx=0 always open. 534 534 * FIRST: Indicate this is the first packet after join network. 535 -* ((( 536 -DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 537 -))) 479 +* DO is for reverse digital output. DOx=1: output low, DOx=0: high or float. 538 538 539 -((( 540 540 (% style="color:red" %)Note: DO3 is not valid for LT-22222-L. 541 -))) 542 542 543 -((( 544 544 **To use this mode, please run:** 545 -))) 546 546 547 547 (% class="box infomessage" %) 548 548 ((( 549 -((( 550 550 **AT+MOD=5** 551 551 ))) 552 -))) 553 553 554 554 (% class="box infomessage" %) 555 555 ((( 556 -((( 557 557 **ATZ** 558 558 ))) 559 -))) 560 560 561 -((( 562 562 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]]. 563 -))) 564 564 565 565 === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) === 566 566 ... ... @@ -968,10 +968,8 @@ 968 968 969 969 (% class="box infomessage" %) 970 970 ((( 971 -((( 972 972 **0xA9 aa bb cc ~/~/ Set DO1/DO2/DO3 output with time control** 973 973 ))) 974 -))) 975 975 976 976 This is to control the digital output time of DO pin. Include four bytes: 977 977 ... ... @@ -1188,6 +1188,7 @@ 1188 1188 1189 1189 [[image:image-20220524094641-11.png||height="390" width="723"]] 1190 1190 1121 + 1191 1191 [[image:image-20220524094641-12.png||height="402" width="718"]] 1192 1192 1193 1193 **Step 3**: Create an account or log in Mydevices. ... ... @@ -1246,7 +1246,7 @@ 1246 1246 1247 1247 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1248 1248 1249 - [[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.**1180 + //IF// = DI1+ / 1K. 1250 1250 1251 1251 If DI1+ = 12v, the //IF// = 12mA , So the LT-22222-L will be able to detect this active signal. 1252 1252 ... ... @@ -1260,9 +1260,9 @@ 1260 1260 1261 1261 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1262 1262 1263 -[[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.** 1194 +[[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 1264 1265 -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. 1196 +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 1266 1267 1267 1268 1268 **Example3**: Connect to a 220v high active sensor. ... ... @@ -1274,7 +1274,7 @@ 1274 1274 1275 1275 So when sensor active, the current between NEC2501 pin1 and pin2 is: 1276 1276 1277 - [[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.** 1208 + [[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 1278 1279 1279 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. 1280 1280 ... ... @@ -1333,9 +1333,7 @@ 1333 1333 1334 1334 [[image:1653358238933-385.png]] 1335 1335 1336 -((( 1337 1337 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: 1338 -))) 1339 1339 1340 1340 [[image:1653358355238-883.png]] 1341 1341 ... ... @@ -1657,13 +1657,11 @@ 1657 1657 Below shows the hardware connection for how to upload an image to the LT: 1658 1658 * [[image:1653359603330-121.png]] 1659 1659 1660 -((( 1661 1661 **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]]. 1662 1662 **Step2**: Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]]. 1663 1663 **Step3: **Open flashloader; choose the correct COM port to update. 1664 1664 **For LT-22222-L**: 1665 1665 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. 1666 -))) 1667 1667 1668 1668 [[image:image-20220524103407-12.png]] 1669 1669 ... ... @@ -1709,15 +1709,10 @@ 1709 1709 [[image:1653360231087-571.png||height="401" width="727"]] 1710 1710 ))) 1711 1711 1712 -((( 1713 1713 (% 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. 1714 -))) 1715 1715 1716 -((( 1717 1717 (% style="color:#4f81bd" %)**Step2**(%%)**: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands: 1718 -))) 1719 1719 1720 -((( 1721 1721 (% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access. 1722 1722 (% style="background-color:#dcdcdc" %)AT+FDR (%%) Reset Parameters to Factory Default, Keys Reserve 1723 1723 (% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access. ... ... @@ -1728,11 +1728,8 @@ 1728 1728 (% style="background-color:#dcdcdc" %)AT+CHS=868400000 (%%)Set transmit frequency to 868.4Mhz 1729 1729 (% style="background-color:#dcdcdc" %)AT+DADDR=26 01 1A F1(%%) Set Device Address to 26 01 1A F1 1730 1730 (% style="background-color:#dcdcdc" %)ATZ (%%)Reset MCU 1731 -))) 1732 1732 1733 -((( 1734 1734 As shown in below: 1735 -))) 1736 1736 1737 1737 [[image:1653360498588-932.png||height="485" width="726"]] 1738 1738 ... ... @@ -1802,58 +1802,33 @@ 1802 1802 ))) 1803 1803 ))) 1804 1804 1805 -((( 1806 1806 * ((( 1807 1807 (% style="color:#4f81bd" %)**EU433**(%%): LT with frequency bands EU433 1808 1808 ))) 1809 -))) 1810 - 1811 -((( 1812 1812 * ((( 1813 1813 (% style="color:#4f81bd" %)**EU868**(%%): LT with frequency bands EU868 1814 1814 ))) 1815 -))) 1816 - 1817 -((( 1818 1818 * ((( 1819 1819 (% style="color:#4f81bd" %)**KR920**(%%): LT with frequency bands KR920 1820 1820 ))) 1821 -))) 1822 - 1823 -((( 1824 1824 * ((( 1825 1825 (% style="color:#4f81bd" %)**CN470**(%%): LT with frequency bands CN470 1826 1826 ))) 1827 -))) 1828 - 1829 -((( 1830 1830 * ((( 1831 1831 (% style="color:#4f81bd" %)**AS923**(%%): LT with frequency bands AS923 1832 1832 ))) 1833 -))) 1834 - 1835 -((( 1836 1836 * ((( 1837 1837 (% style="color:#4f81bd" %)**AU915**(%%): LT with frequency bands AU915 1838 1838 ))) 1839 -))) 1840 - 1841 -((( 1842 1842 * ((( 1843 1843 (% style="color:#4f81bd" %)**US915**(%%): LT with frequency bands US915 1844 1844 ))) 1845 -))) 1846 - 1847 -((( 1848 1848 * ((( 1849 1849 (% style="color:#4f81bd" %)**IN865**(%%): LT with frequency bands IN865 1850 1850 ))) 1851 -))) 1852 1852 1853 1853 ((( 1854 -* ((( 1855 -(% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779 1856 -))) 1750 +* (% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779 1857 1857 1858 1858 = 8. Packing Info = 1859 1859 )))