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

From version 66.32
edited by Xiaoling
on 2022/05/24 14:16
Change comment: There is no comment for this version
To version 66.22
edited by Xiaoling
on 2022/05/24 13:56
Change comment: There is no comment for this version

Summary

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  )))
... ... @@ -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 -)))
481 +* 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  
... ... @@ -1174,26 +1174,21 @@
1174 1174  **0x A7 aa bb cc     ~/~/ same as AT+COUTIME =aa bb cc,**
1175 1175  )))
1176 1176  
1177 -(((
1178 1178  range: aa bb cc:0 to 16777215,  (unit:second)
1179 -)))
1180 1180  
1181 1181  == 3.5 Integrate with Mydevice ==
1182 1182  
1183 1183  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:
1184 1184  
1185 -(((
1186 1186  **Step 1**: Be sure that your device is programmed and properly connected to the network at this time.
1187 -)))
1188 1188  
1189 -(((
1190 1190  **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:
1191 -)))
1192 1192  
1193 1193  [[image:1653356737703-362.png||height="232" width="732"]]
1194 1194  
1195 1195  [[image:image-20220524094641-11.png||height="390" width="723"]]
1196 1196  
1123 +
1197 1197  [[image:image-20220524094641-12.png||height="402" width="718"]]
1198 1198  
1199 1199  **Step 3**: Create an account or log in Mydevices.
... ... @@ -1252,7 +1252,7 @@
1252 1252  
1253 1253  So when sensor active, the current between NEC2501 pin1 and pin2 is: ​​
1254 1254  
1255 -[[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.**
1182 + //IF// = DI1+ / 1K.
1256 1256  
1257 1257  If DI1+ = 12v, the //IF// = 12mA , So the LT-22222-L will be able to detect this active signal.
1258 1258  
... ... @@ -1266,9 +1266,9 @@
1266 1266  
1267 1267  So when sensor active, the current between NEC2501 pin1 and pin2 is:
1268 1268  
1269 -[[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.**
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.**
1270 1270  
1271 -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.
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.
1272 1272  
1273 1273  
1274 1274  **Example3**: Connect to a 220v high active sensor.
... ... @@ -1280,7 +1280,7 @@
1280 1280  
1281 1281  So when sensor active, the current between NEC2501 pin1 and pin2 is:
1282 1282  
1283 - [[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.**
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.**
1284 1284  
1285 1285  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.
1286 1286  
... ... @@ -1339,15 +1339,11 @@
1339 1339  
1340 1340  [[image:1653358238933-385.png]]
1341 1341  
1342 -(((
1343 1343  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:
1344 -)))
1345 1345  
1346 1346  [[image:1653358355238-883.png]]
1347 1347  
1348 -(((
1349 1349  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/]]
1350 -)))
1351 1351  
1352 1352  (((
1353 1353  AT+<CMD>?        : Help on <CMD>
... ... @@ -1665,13 +1665,11 @@
1665 1665  Below shows the hardware connection for how to upload an image to the LT:
1666 1666  * [[image:1653359603330-121.png]]
1667 1667  
1668 -(((
1669 1669  **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]].
1670 1670  **Step2**: Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]].
1671 1671  **Step3: **Open flashloader; choose the correct COM port to update.
1672 1672  **For LT-22222-L**:
1673 1673  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.
1674 -)))
1675 1675  
1676 1676   [[image:image-20220524103407-12.png]]
1677 1677  
... ... @@ -1717,15 +1717,10 @@
1717 1717  [[image:1653360231087-571.png||height="401" width="727"]]
1718 1718  )))
1719 1719  
1720 -(((
1721 1721  (% 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.
1722 -)))
1723 1723  
1724 -(((
1725 1725  (% style="color:#4f81bd" %)**Step2**(%%)**: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands:
1726 -)))
1727 1727  
1728 -(((
1729 1729  (% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access.
1730 1730  (% style="background-color:#dcdcdc" %)AT+FDR  (%%) Reset Parameters to Factory Default, Keys Reserve
1731 1731  (% style="background-color:#dcdcdc" %)123456  (%%) Enter Password to have AT access.
... ... @@ -1736,11 +1736,8 @@
1736 1736  (% style="background-color:#dcdcdc" %)AT+CHS=868400000 (%%)Set transmit frequency to 868.4Mhz
1737 1737  (% style="background-color:#dcdcdc" %)AT+DADDR=26 01 1A F1(%%) Set Device Address to 26 01 1A F1
1738 1738  (% style="background-color:#dcdcdc" %)ATZ                (%%)Reset MCU
1739 -)))
1740 1740  
1741 -(((
1742 1742  As shown in below:
1743 -)))
1744 1744  
1745 1745  [[image:1653360498588-932.png||height="485" width="726"]]
1746 1746  
... ... @@ -1810,58 +1810,33 @@
1810 1810  )))
1811 1811  )))
1812 1812  
1813 -(((
1814 1814  * (((
1815 1815  (% style="color:#4f81bd" %)**EU433**(%%): LT with frequency bands EU433
1816 1816  )))
1817 -)))
1818 -
1819 -(((
1820 1820  * (((
1821 1821  (% style="color:#4f81bd" %)**EU868**(%%): LT with frequency bands EU868
1822 1822  )))
1823 -)))
1824 -
1825 -(((
1826 1826  * (((
1827 1827  (% style="color:#4f81bd" %)**KR920**(%%): LT with frequency bands KR920
1828 1828  )))
1829 -)))
1830 -
1831 -(((
1832 1832  * (((
1833 1833  (% style="color:#4f81bd" %)**CN470**(%%): LT with frequency bands CN470
1834 1834  )))
1835 -)))
1836 -
1837 -(((
1838 1838  * (((
1839 1839  (% style="color:#4f81bd" %)**AS923**(%%): LT with frequency bands AS923
1840 1840  )))
1841 -)))
1842 -
1843 -(((
1844 1844  * (((
1845 1845  (% style="color:#4f81bd" %)**AU915**(%%): LT with frequency bands AU915
1846 1846  )))
1847 -)))
1848 -
1849 -(((
1850 1850  * (((
1851 1851  (% style="color:#4f81bd" %)**US915**(%%): LT with frequency bands US915
1852 1852  )))
1853 -)))
1854 -
1855 -(((
1856 1856  * (((
1857 1857  (% style="color:#4f81bd" %)**IN865**(%%): LT with frequency bands IN865
1858 1858  )))
1859 -)))
1860 1860  
1861 1861  (((
1862 -* (((
1863 -(% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779
1864 -)))
1752 +* (% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779
1865 1865  
1866 1866  = 8. Packing Info =
1867 1867  )))