<
From version < 66.21 >
edited by Xiaoling
on 2022/05/24 13:55
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  )))
... ... @@ -313,7 +313,9 @@
313 313  
314 314  **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins.
315 315  
313 +(((
316 316  Total : 11 bytes payload
315 +)))
317 317  
318 318  [[image:image-20220523180452-3.png]]
319 319  
... ... @@ -327,53 +327,77 @@
327 327  * FIRST: Indicate this is the first packet after join network.
328 328  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
329 329  
329 +(((
330 330  (% style="color:red" %)Note: DO3 bit is not valid for LT-22222-L.
331 +)))
331 331  
333 +(((
332 332  **To use counting mode, please run:**
335 +)))
333 333  
334 334  (% class="box infomessage" %)
335 335  (((
339 +(((
336 336  **AT+MOD=2**
337 337  )))
342 +)))
338 338  
339 339  (% class="box infomessage" %)
340 340  (((
346 +(((
341 341  **ATZ**
342 342  )))
349 +)))
343 343  
351 +(((
344 344  (% style="color:#4f81bd" %)**AT Commands for counting:**
353 +)))
345 345  
355 +(((
346 346  **For LT22222-L:**
357 +)))
347 347  
348 348  (% class="box infomessage" %)
349 349  (((
361 +(((
350 350  **AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) **
351 351  )))
364 +)))
352 352  
353 353  (% class="box infomessage" %)
354 354  (((
368 +(((
355 355  **AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) **
356 356  )))
371 +)))
357 357  
358 358  (% class="box infomessage" %)
359 359  (((
375 +(((
360 360  **AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) **
361 361  )))
378 +)))
362 362  
363 363  (% class="box infomessage" %)
364 364  (((
382 +(((
365 365  **AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) **
366 366  )))
385 +)))
367 367  
368 368  (% class="box infomessage" %)
369 369  (((
389 +(((
370 370  **AT+SETCNT=1,60   (Set COUNT1 value to 60)**
371 371  )))
392 +)))
372 372  
373 373  (% class="box infomessage" %)
374 374  (((
396 +(((
375 375  **AT+SETCNT=2,60   (Set COUNT2 value to 60)**
376 376  )))
399 +)))
377 377  
378 378  === 3.3.3 AT+MOD~=3, Single DI Counting + 2 x ACI ===
379 379  
... ... @@ -391,21 +391,31 @@
391 391  * FIRST: Indicate this is the first packet after join network.
392 392  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
393 393  
417 +(((
394 394  (% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
419 +)))
395 395  
421 +(((
396 396  **To use counting mode, please run:**
423 +)))
397 397  
398 398  (% class="box infomessage" %)
399 399  (((
427 +(((
400 400  **AT+MOD=3**
401 401  )))
430 +)))
402 402  
403 403  (% class="box infomessage" %)
404 404  (((
434 +(((
405 405  **ATZ**
406 406  )))
437 +)))
407 407  
439 +(((
408 408  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 +)))
409 409  
410 410  === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting ===
411 411  
... ... @@ -425,44 +425,67 @@
425 425  * FIRST: Indicate this is the first packet after join network.
426 426  * DO is for reverse digital output. DOx=1: output low, DOx=0: high or float.
427 427  
461 +(((
428 428  (% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
463 +)))
429 429  
465 +(((
430 430  **To use this mode, please run:**
467 +)))
431 431  
432 432  (% class="box infomessage" %)
433 433  (((
471 +(((
434 434  **AT+MOD=4**
435 435  )))
474 +)))
436 436  
437 437  (% class="box infomessage" %)
438 438  (((
478 +(((
439 439  **ATZ**
440 440  )))
481 +)))
441 441  
483 +(((
484 +
485 +)))
442 442  
487 +(((
443 443  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 +)))
444 444  
491 +(((
445 445  **Plus below command for AVI1 Counting:**
493 +)))
446 446  
447 447  (% class="box infomessage" %)
448 448  (((
497 +(((
449 449  **AT+SETCNT=3,60   (set AVI Count to 60)**
450 450  )))
500 +)))
451 451  
452 452  (% class="box infomessage" %)
453 453  (((
504 +(((
454 454  **AT+VOLMAX=20000   (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)**
455 455  )))
507 +)))
456 456  
457 457  (% class="box infomessage" %)
458 458  (((
511 +(((
459 459  **AT+VOLMAX=20000,0   (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)**
460 460  )))
514 +)))
461 461  
462 462  (% class="box infomessage" %)
463 463  (((
518 +(((
464 464  **AT+VOLMAX=20000,1   (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)**
465 465  )))
521 +)))
466 466  
467 467  === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI ===
468 468  
... ... @@ -476,23 +476,35 @@
476 476  
477 477  * RO is for relay. ROx=1 : close,ROx=0 always open.
478 478  * FIRST: Indicate this is the first packet after join network.
479 -* 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 +)))
480 480  
539 +(((
481 481  (% style="color:red" %)Note: DO3 is not valid for LT-22222-L.
541 +)))
482 482  
543 +(((
483 483  **To use this mode, please run:**
545 +)))
484 484  
485 485  (% class="box infomessage" %)
486 486  (((
549 +(((
487 487  **AT+MOD=5**
488 488  )))
552 +)))
489 489  
490 490  (% class="box infomessage" %)
491 491  (((
556 +(((
492 492  **ATZ**
493 493  )))
559 +)))
494 494  
561 +(((
495 495  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 +)))
496 496  
497 497  === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) ===
498 498  
... ... @@ -900,8 +900,10 @@
900 900  
901 901  (% class="box infomessage" %)
902 902  (((
971 +(((
903 903  **0xA9 aa bb cc     ~/~/ Set DO1/DO2/DO3 output with time control**
904 904  )))
974 +)))
905 905  
906 906  This is to control the digital output time of DO pin. Include four bytes:
907 907  
... ... @@ -1104,21 +1104,26 @@
1104 1104  **0x A7 aa bb cc     ~/~/ same as AT+COUTIME =aa bb cc,**
1105 1105  )))
1106 1106  
1177 +(((
1107 1107  range: aa bb cc:0 to 16777215,  (unit:second)
1179 +)))
1108 1108  
1109 1109  == 3.5 Integrate with Mydevice ==
1110 1110  
1111 1111  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:
1112 1112  
1185 +(((
1113 1113  **Step 1**: Be sure that your device is programmed and properly connected to the network at this time.
1187 +)))
1114 1114  
1189 +(((
1115 1115  **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 +)))
1116 1116  
1117 1117  [[image:1653356737703-362.png||height="232" width="732"]]
1118 1118  
1119 1119  [[image:image-20220524094641-11.png||height="390" width="723"]]
1120 1120  
1121 -
1122 1122  [[image:image-20220524094641-12.png||height="402" width="718"]]
1123 1123  
1124 1124  **Step 3**: Create an account or log in Mydevices.
... ... @@ -1177,7 +1177,7 @@
1177 1177  
1178 1178  So when sensor active, the current between NEC2501 pin1 and pin2 is: ​​
1179 1179  
1180 - //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.**
1181 1181  
1182 1182  If DI1+ = 12v, the //IF// = 12mA , So the LT-22222-L will be able to detect this active signal.
1183 1183  
... ... @@ -1191,9 +1191,9 @@
1191 1191  
1192 1192  So when sensor active, the current between NEC2501 pin1 and pin2 is:
1193 1193  
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.**
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.**
1195 1195  
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.
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.
1197 1197  
1198 1198  
1199 1199  **Example3**: Connect to a 220v high active sensor.
... ... @@ -1205,7 +1205,7 @@
1205 1205  
1206 1206  So when sensor active, the current between NEC2501 pin1 and pin2 is:
1207 1207  
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.**
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.**
1209 1209  
1210 1210  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.
1211 1211  
... ... @@ -1264,11 +1264,15 @@
1264 1264  
1265 1265  [[image:1653358238933-385.png]]
1266 1266  
1342 +(((
1267 1267  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 +)))
1268 1268  
1269 1269  [[image:1653358355238-883.png]]
1270 1270  
1348 +(((
1271 1271  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 +)))
1272 1272  
1273 1273  (((
1274 1274  AT+<CMD>?        : Help on <CMD>
... ... @@ -1586,11 +1586,13 @@
1586 1586  Below shows the hardware connection for how to upload an image to the LT:
1587 1587  * [[image:1653359603330-121.png]]
1588 1588  
1668 +(((
1589 1589  **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]].
1590 1590  **Step2**: Download the [[LT Image files>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/image/]].
1591 1591  **Step3: **Open flashloader; choose the correct COM port to update.
1592 1592  **For LT-22222-L**:
1593 1593  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 +)))
1594 1594  
1595 1595   [[image:image-20220524103407-12.png]]
1596 1596  
... ... @@ -1636,10 +1636,15 @@
1636 1636  [[image:1653360231087-571.png||height="401" width="727"]]
1637 1637  )))
1638 1638  
1720 +(((
1639 1639  (% 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 +)))
1640 1640  
1724 +(((
1641 1641  (% style="color:#4f81bd" %)**Step2**(%%)**: **Run AT Command to make LT work in Single frequency & ABP mode. Below is the AT commands:
1726 +)))
1642 1642  
1728 +(((
1643 1643  (% style="background-color:#dcdcdc" %)123456 (%%) Enter Password to have AT access.
1644 1644  (% style="background-color:#dcdcdc" %)AT+FDR  (%%) Reset Parameters to Factory Default, Keys Reserve
1645 1645  (% style="background-color:#dcdcdc" %)123456  (%%) Enter Password to have AT access.
... ... @@ -1650,8 +1650,11 @@
1650 1650  (% style="background-color:#dcdcdc" %)AT+CHS=868400000 (%%)Set transmit frequency to 868.4Mhz
1651 1651  (% style="background-color:#dcdcdc" %)AT+DADDR=26 01 1A F1(%%) Set Device Address to 26 01 1A F1
1652 1652  (% style="background-color:#dcdcdc" %)ATZ                (%%)Reset MCU
1739 +)))
1653 1653  
1741 +(((
1654 1654  As shown in below:
1743 +)))
1655 1655  
1656 1656  [[image:1653360498588-932.png||height="485" width="726"]]
1657 1657  
... ... @@ -1662,7 +1662,7 @@
1662 1662  )))
1663 1663  
1664 1664  (((
1665 -= 6. Trouble Shooting =
1754 += 6. Trouble Shooting =
1666 1666  )))
1667 1667  
1668 1668  (((
... ... @@ -1672,13 +1672,11 @@
1672 1672  )))
1673 1673  
1674 1674  (((
1675 -Please see this link for how to debug:
1764 +Please see this link for how to debug: [[see how it work>>How it work]]
1676 1676  
1677 -[[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/]]
1678 -)))
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]]
1679 1679  
1680 -(((
1681 -[[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 +
1682 1682  )))
1683 1683  
1684 1684  (((
... ... @@ -1721,33 +1721,58 @@
1721 1721  )))
1722 1722  )))
1723 1723  
1811 +(((
1724 1724  * (((
1725 1725  (% style="color:#4f81bd" %)**EU433**(%%): LT with frequency bands EU433
1726 1726  )))
1815 +)))
1816 +
1817 +(((
1727 1727  * (((
1728 1728  (% style="color:#4f81bd" %)**EU868**(%%): LT with frequency bands EU868
1729 1729  )))
1821 +)))
1822 +
1823 +(((
1730 1730  * (((
1731 1731  (% style="color:#4f81bd" %)**KR920**(%%): LT with frequency bands KR920
1732 1732  )))
1827 +)))
1828 +
1829 +(((
1733 1733  * (((
1734 1734  (% style="color:#4f81bd" %)**CN470**(%%): LT with frequency bands CN470
1735 1735  )))
1833 +)))
1834 +
1835 +(((
1736 1736  * (((
1737 1737  (% style="color:#4f81bd" %)**AS923**(%%): LT with frequency bands AS923
1738 1738  )))
1839 +)))
1840 +
1841 +(((
1739 1739  * (((
1740 1740  (% style="color:#4f81bd" %)**AU915**(%%): LT with frequency bands AU915
1741 1741  )))
1845 +)))
1846 +
1847 +(((
1742 1742  * (((
1743 1743  (% style="color:#4f81bd" %)**US915**(%%): LT with frequency bands US915
1744 1744  )))
1851 +)))
1852 +
1853 +(((
1745 1745  * (((
1746 1746  (% style="color:#4f81bd" %)**IN865**(%%): LT with frequency bands IN865
1747 1747  )))
1857 +)))
1748 1748  
1749 1749  (((
1750 -* (% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779
1860 +* (((
1861 +(% style="color:#4f81bd" %)**CN779**(%%): LT with frequency bands CN779
1862 +)))
1751 1751  
1752 1752  = 8. Packing Info =
1753 1753  )))
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0