<
From version < 66.22 >
edited by Xiaoling
on 2022/05/24 13:56
To version < 67.2 >
edited by Xiaoling
on 2022/05/25 14:13
>
Change comment: There is no comment for this version

Summary

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. 
... ... @@ -217,7 +217,6 @@
217 217  
218 218  [[image:image-20220523172350-1.png||height="266" width="864"]]
219 219  
220 -
221 221  (((
222 222  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:
223 223  )))
... ... @@ -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  
329 +(((
332 332  (% style="color:red" %)Note: DO3 bit is not valid for LT-22222-L.
331 +)))
333 333  
333 +(((
334 334  **To use counting mode, please run:**
335 +)))
335 335  
336 336  (% class="box infomessage" %)
337 337  (((
339 +(((
338 338  **AT+MOD=2**
339 339  )))
342 +)))
340 340  
341 341  (% class="box infomessage" %)
342 342  (((
346 +(((
343 343  **ATZ**
344 344  )))
349 +)))
345 345  
351 +(((
346 346  (% style="color:#4f81bd" %)**AT Commands for counting:**
353 +)))
347 347  
355 +(((
348 348  **For LT22222-L:**
357 +)))
349 349  
350 350  (% class="box infomessage" %)
351 351  (((
361 +(((
352 352  **AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) **
353 353  )))
364 +)))
354 354  
355 355  (% class="box infomessage" %)
356 356  (((
368 +(((
357 357  **AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) **
358 358  )))
371 +)))
359 359  
360 360  (% class="box infomessage" %)
361 361  (((
375 +(((
362 362  **AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) **
363 363  )))
378 +)))
364 364  
365 365  (% class="box infomessage" %)
366 366  (((
382 +(((
367 367  **AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) **
368 368  )))
385 +)))
369 369  
370 370  (% class="box infomessage" %)
371 371  (((
389 +(((
372 372  **AT+SETCNT=1,60   (Set COUNT1 value to 60)**
373 373  )))
392 +)))
374 374  
375 375  (% class="box infomessage" %)
376 376  (((
396 +(((
377 377  **AT+SETCNT=2,60   (Set COUNT2 value to 60)**
378 378  )))
399 +)))
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  
417 +(((
396 396  (% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
419 +)))
397 397  
421 +(((
398 398  **To use counting mode, please run:**
423 +)))
399 399  
400 400  (% class="box infomessage" %)
401 401  (((
427 +(((
402 402  **AT+MOD=3**
403 403  )))
430 +)))
404 404  
405 405  (% class="box infomessage" %)
406 406  (((
434 +(((
407 407  **ATZ**
408 408  )))
437 +)))
409 409  
439 +(((
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]].
441 +)))
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  
461 +(((
430 430  (% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
463 +)))
431 431  
465 +(((
432 432  **To use this mode, please run:**
467 +)))
433 433  
434 434  (% class="box infomessage" %)
435 435  (((
471 +(((
436 436  **AT+MOD=4**
437 437  )))
474 +)))
438 438  
439 439  (% class="box infomessage" %)
440 440  (((
478 +(((
441 441  **ATZ**
442 442  )))
481 +)))
443 443  
483 +(((
484 +
485 +)))
444 444  
487 +(((
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]].
489 +)))
446 446  
491 +(((
447 447  **Plus below command for AVI1 Counting:**
493 +)))
448 448  
449 449  (% class="box infomessage" %)
450 450  (((
497 +(((
451 451  **AT+SETCNT=3,60   (set AVI Count to 60)**
452 452  )))
500 +)))
453 453  
454 454  (% class="box infomessage" %)
455 455  (((
504 +(((
456 456  **AT+VOLMAX=20000   (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)**
457 457  )))
507 +)))
458 458  
459 459  (% class="box infomessage" %)
460 460  (((
511 +(((
461 461  **AT+VOLMAX=20000,0   (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)**
462 462  )))
514 +)))
463 463  
464 464  (% class="box infomessage" %)
465 465  (((
518 +(((
466 466  **AT+VOLMAX=20000,1   (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)**
467 467  )))
521 +)))
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.
535 +* (((
536 +DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
537 +)))
482 482  
539 +(((
483 483  (% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
541 +)))
484 484  
543 +(((
485 485  **To use this mode, please run:**
545 +)))
486 486  
487 487  (% class="box infomessage" %)
488 488  (((
549 +(((
489 489  **AT+MOD=5**
490 490  )))
552 +)))
491 491  
492 492  (% class="box infomessage" %)
493 493  (((
556 +(((
494 494  **ATZ**
495 495  )))
559 +)))
496 496  
561 +(((
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]].
563 +)))
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  (((
971 +(((
905 905  **0xA9 aa bb cc     ~/~/ Set DO1/DO2/DO3 output with time control**
906 906  )))
974 +)))
907 907  
908 908  This is to control the digital output time of DO pin. Include four bytes:
909 909  
... ... @@ -1106,21 +1106,26 @@
1106 1106  **0x A7 aa bb cc     ~/~/ same as AT+COUTIME =aa bb cc,**
1107 1107  )))
1108 1108  
1177 +(((
1109 1109  range: aa bb cc:0 to 16777215,  (unit:second)
1179 +)))
1110 1110  
1111 1111  == 3.5 Integrate with Mydevice ==
1112 1112  
1113 1113  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:
1114 1114  
1185 +(((
1115 1115  **Step 1**: Be sure that your device is programmed and properly connected to the network at this time.
1187 +)))
1116 1116  
1189 +(((
1117 1117  **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 +)))
1118 1118  
1119 1119  [[image:1653356737703-362.png||height="232" width="732"]]
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.
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:/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.**
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:/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.
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:/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.**
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:/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,11 +1266,15 @@
1266 1266  
1267 1267  [[image:1653358238933-385.png]]
1268 1268  
1342 +(((
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:
1344 +)))
1270 1270  
1271 1271  [[image:1653358355238-883.png]]
1272 1272  
1348 +(((
1273 1273  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 +)))
1274 1274  
1275 1275  (((
1276 1276  AT+<CMD>?        : Help on <CMD>
... ... @@ -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  
1668 +(((
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.
1674 +)))
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  
1720 +(((
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.
1722 +)))
1642 1642  
1724 +(((
1643 1643  (% style="color:#4f81bd" %)**Step2**(%%)**: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands:
1726 +)))
1644 1644  
1728 +(((
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
1739 +)))
1655 1655  
1741 +(((
1656 1656  As shown in below:
1743 +)))
1657 1657  
1658 1658  [[image:1653360498588-932.png||height="485" width="726"]]
1659 1659  
... ... @@ -1664,7 +1664,7 @@
1664 1664  )))
1665 1665  
1666 1666  (((
1667 -= 6. Trouble Shooting =
1754 += 6. Trouble Shooting =
1668 1668  )))
1669 1669  
1670 1670  (((
... ... @@ -1674,13 +1674,11 @@
1674 1674  )))
1675 1675  
1676 1676  (((
1677 -Please see this link for how to debug:
1764 +Please see this link for how to debug: [[see how it work>>How it work]]
1678 1678  
1679 -[[http:~~/~~/8.211.40.43:8080/xwiki/bin/view/Main/LoRaWAN%20Communication%20Debug/>>http://8.211.40.43:8080/xwiki/bin/view/Main/LoRaWAN%20Communication%20Debug/]]
1680 -)))
1766 +[[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]]
1681 1681  
1682 -(((
1683 -[[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]]
1768 +
1684 1684  )))
1685 1685  
1686 1686  (((
... ... @@ -1723,33 +1723,58 @@
1723 1723  )))
1724 1724  )))
1725 1725  
1811 +(((
1726 1726  * (((
1727 1727  (% style="color:#4f81bd" %)**EU433**(%%): LT with frequency bands EU433
1728 1728  )))
1815 +)))
1816 +
1817 +(((
1729 1729  * (((
1730 1730  (% style="color:#4f81bd" %)**EU868**(%%): LT with frequency bands EU868
1731 1731  )))
1821 +)))
1822 +
1823 +(((
1732 1732  * (((
1733 1733  (% style="color:#4f81bd" %)**KR920**(%%): LT with frequency bands KR920
1734 1734  )))
1827 +)))
1828 +
1829 +(((
1735 1735  * (((
1736 1736  (% style="color:#4f81bd" %)**CN470**(%%): LT with frequency bands CN470
1737 1737  )))
1833 +)))
1834 +
1835 +(((
1738 1738  * (((
1739 1739  (% style="color:#4f81bd" %)**AS923**(%%): LT with frequency bands AS923
1740 1740  )))
1839 +)))
1840 +
1841 +(((
1741 1741  * (((
1742 1742  (% style="color:#4f81bd" %)**AU915**(%%): LT with frequency bands AU915
1743 1743  )))
1845 +)))
1846 +
1847 +(((
1744 1744  * (((
1745 1745  (% style="color:#4f81bd" %)**US915**(%%): LT with frequency bands US915
1746 1746  )))
1851 +)))
1852 +
1853 +(((
1747 1747  * (((
1748 1748  (% style="color:#4f81bd" %)**IN865**(%%): LT with frequency bands IN865
1749 1749  )))
1857 +)))
1750 1750  
1751 1751  (((
1752 -* (% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779
1860 +* (((
1861 +(% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779
1862 +)))
1753 1753  
1754 1754  = 8. Packing Info =
1755 1755  )))
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0