<
From version < 77.64 >
edited by Xiaoling
on 2022/06/10 09:17
To version < 77.114 >
edited by Xiaoling
on 2022/06/10 09:37
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -76,6 +76,8 @@
76 76  )))
77 77  
78 78  (((
79 +
80 +
79 79  **Interface for Model: LT22222-L:**
80 80  )))
81 81  
... ... @@ -99,6 +99,8 @@
99 99  )))
100 100  
101 101  (((
104 +
105 +
102 102  **LoRa Spec:**
103 103  )))
104 104  
... ... @@ -158,10 +158,10 @@
158 158  )))
159 159  * (((
160 160  Packet engine up to 256 bytes with CRC.
161 -
162 -
163 163  )))
164 164  
167 +
168 +
165 165  == 1.3 Features ==
166 166  
167 167  * LoRaWAN Class A & Class C protocol
... ... @@ -172,6 +172,8 @@
172 172  * Firmware upgradable via program port
173 173  * Counting
174 174  
179 +
180 +
175 175  == 1.4  Applications ==
176 176  
177 177  * Smart Buildings & Home Automation
... ... @@ -181,6 +181,8 @@
181 181  * Smart Cities
182 182  * Smart Factory
183 183  
190 +
191 +
184 184  == 1.5 Hardware Variants ==
185 185  
186 186  (% border="1" style="background-color:#f7faff; width:500px" %)
... ... @@ -194,6 +194,7 @@
194 194  * 1 x Counting Port
195 195  )))
196 196  
205 +
197 197  = 2. Power ON Device =
198 198  
199 199  The LT controller can be powered by 7 ~~ 24V DC power source. Connect VIN to Power Input V+ and GND to power input V- to power the LT controller.
... ... @@ -216,12 +216,9 @@
216 216  
217 217  (((
218 218  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>>||anchor="H4.UseATCommand"]] to set the keys in the devices.
219 -
220 -
221 221  )))
222 222  
223 223  
224 -
225 225  == 3.2 Example to join LoRaWAN network ==
226 226  
227 227  (((
... ... @@ -230,12 +230,13 @@
230 230  
231 231  [[image:image-20220523172350-1.png||height="266" width="864"]]
232 232  
239 +
233 233  (((
234 234  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:
235 235  )))
236 236  
237 237  (((
238 -**Step 1**: Create a device in TTN with the OTAA keys from LT IO controller.
245 +(% style="color:blue" %)**Step 1**(%%): Create a device in TTN with the OTAA keys from LT IO controller.
239 239  )))
240 240  
241 241  (((
... ... @@ -244,6 +244,7 @@
244 244  
245 245  [[image:1653297924498-393.png]]
246 246  
254 +
247 247  Input these keys in the LoRaWAN Server portal. Below is TTN screen shot:
248 248  
249 249  Add APP EUI in the application.
... ... @@ -257,7 +257,7 @@
257 257  
258 258  
259 259  (((
260 -**Step 2**: Power on LT and it will auto join to the TTN network. After join success, it will start to upload message to TTN and user can see in the panel.
268 +(% style="color:blue" %)**Step 2**(%%): Power on LT and it will auto join to the TTN network. After join success, it will start to upload message to TTN and user can see in the panel.
261 261  )))
262 262  
263 263  [[image:1653298044601-602.png||height="405" width="709"]]
... ... @@ -275,6 +275,7 @@
275 275  * **MOD5**: Single DI Counting + 2 x AVI + 1 x ACI + DO + RO
276 276  * **ADDMOD6**: Trigger Mode, Optional, used together with MOD1 ~~ MOD5
277 277  
286 +
278 278  === 3.3.1 AT+MOD~=1, 2ACI+2AVI ===
279 279  
280 280  The uplink payload includes totally 9 bytes. Uplink packets use FPORT=2 and every 10 minutes send one uplink by default.
... ... @@ -282,6 +282,8 @@
282 282  [[image:image-20220523174024-3.png]]
283 283  
284 284  (((
294 +
295 +
285 285  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
286 286  )))
287 287  
... ... @@ -295,6 +295,7 @@
295 295  
296 296  For example if payload is: [[image:image-20220523175847-2.png]]
297 297  
309 +
298 298  **The value for the interface is:  **
299 299  
300 300  AVI1 channel voltage is 0x04AB/1000=1195(DEC)/1000=1.195V
... ... @@ -325,8 +325,10 @@
325 325  ** DO1 is high in case there is load between DO1 and V+.
326 326  ** DO1 LED is off in both case
327 327  
340 +
328 328  === 3.3.2 AT+MOD~=2, (Double DI Counting) ===
329 329  
343 +
330 330  **For LT-22222-L**: this mode the **DI1 and DI2** are used as counting pins.
331 331  
332 332  (((
... ... @@ -335,6 +335,7 @@
335 335  
336 336  [[image:image-20220523180452-3.png]]
337 337  
352 +
338 338  (((
339 339  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DO3, DO2 and DO1. Totally 1bytes as below
340 340  )))
... ... @@ -350,6 +350,8 @@
350 350  )))
351 351  
352 352  (((
368 +
369 +
353 353  **To use counting mode, please run:**
354 354  )))
355 355  
... ... @@ -368,6 +368,8 @@
368 368  )))
369 369  
370 370  (((
388 +
389 +
371 371  (% style="color:#4f81bd" %)**AT Commands for counting:**
372 372  )))
373 373  
... ... @@ -464,9 +464,9 @@
464 464  )))
465 465  
466 466  
467 -
468 468  === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting ===
469 469  
488 +
470 470  **LT22222-L**: This mode the DI1 is used as a counting pin.
471 471  
472 472  The AVI1 is also used for counting. AVI1 is used to monitor the voltage. It will check the voltage **every 60s**, if voltage is higher or lower than VOLMAX mV, the AVI1 Counting increase 1, so AVI1 counting can be used to measure a machine working hour.
... ... @@ -473,6 +473,7 @@
473 473  
474 474  [[image:image-20220523181903-8.png]]
475 475  
495 +
476 476  (((
477 477  (% style="color:#4f81bd" %)**DIDORO **(%%)is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
478 478  )))
... ... @@ -488,6 +488,8 @@
488 488  )))
489 489  
490 490  (((
511 +
512 +
491 491  **To use this mode, please run:**
492 492  )))
493 493  
... ... @@ -514,6 +514,8 @@
514 514  )))
515 515  
516 516  (((
539 +
540 +
517 517  **Plus below command for AVI1 Counting:**
518 518  )))
519 519  
... ... @@ -549,11 +549,14 @@
549 549  
550 550  === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI ===
551 551  
576 +
552 552  **LT22222-L**: This mode the DI1 is used as a counting pin.
553 553  
554 554  [[image:image-20220523182334-9.png]]
555 555  
556 556  (((
582 +
583 +
557 557  (% style="color:#4f81bd" %)**DIDORO**(%%) is a combination for RO1, RO2, DI3, DI2, DI1, DO3, DO2 and DO1. Totally 1bytes as below
558 558  )))
559 559  
... ... @@ -568,6 +568,8 @@
568 568  )))
569 569  
570 570  (((
598 +
599 +
571 571  **To use this mode, please run:**
572 572  )))
573 573  
... ... @@ -587,8 +587,6 @@
587 587  
588 588  (((
589 589  Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]].
590 -
591 -
592 592  )))
593 593  
594 594  
... ... @@ -595,6 +595,7 @@
595 595  
596 596  === 3.3.6 AT+ADDMOD~=6. (Trigger Mode, Optional) ===
597 597  
625 +
598 598  (% style="color:#4f81bd" %)**This mode is an optional mode for trigger purpose. It can run together with other mode.**
599 599  
600 600  For example, if user has configured below commands:
... ... @@ -620,6 +620,7 @@
620 620  AT+AVLIM=5000,0,0,0   (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore)
621 621  
622 622  
651 +
623 623  (% style="color:#4f81bd" %)**Trigger base on current**:
624 624  
625 625  Format: AT+ACLIM=<AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH>
... ... @@ -629,6 +629,7 @@
629 629  AT+ACLIM=10000,15000,0,0   (If ACI1 voltage lower than 10mA or higher than 15mA, trigger an uplink)
630 630  
631 631  
661 +
632 632  (% style="color:#4f81bd" %)**Trigger base on DI status**:
633 633  
634 634  DI status trigger Flag.
... ... @@ -635,12 +635,13 @@
635 635  
636 636  Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >
637 637  
668 +
638 638  **Example:**
639 639  
640 640  AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
641 641  
642 642  
643 -**Downlink Command to set Trigger Condition**
674 +**Downlink Command to set Trigger Condition:**
644 644  
645 645  Type Code: 0xAA. Downlink command same as AT Command **AT+AVLIM, AT+ACLIM**
646 646  
... ... @@ -658,14 +658,18 @@
658 658  
659 659   Yy4 yy4: AC2 or AV2 high limit.
660 660  
692 +
661 661  **Example1**: AA 00 13 88 00 00 00 00 00 00
662 662  
663 663  Same as AT+AVLIM=5000,0,0,0   (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore)
664 664  
697 +
665 665  **Example2**: AA 02 01 00
666 666  
667 667  Same as AT+ DTRI =1,0  (Enable DI1 trigger / disable DI2 trigger)
668 668  
702 +
703 +
669 669  (% style="color:#4f81bd" %)**Trigger Settings Payload Explanation:**
670 670  
671 671  MOD6 Payload : total 11 bytes payload
... ... @@ -672,6 +672,7 @@
672 672  
673 673  [[image:image-20220524085923-1.png]]
674 674  
710 +
675 675  (% style="color:#4f81bd" %)**TRI FLAG1**(%%) is a combination to show if trigger is set for this part. Totally 1byte as below
676 676  
677 677  [[image:image-20220524090106-2.png]]
... ... @@ -720,6 +720,8 @@
720 720  === 3.3.7 Payload Decoder ===
721 721  
722 722  (((
759 +
760 +
723 723  **Decoder for TTN/loraserver/ChirpStack**: [[http:~~/~~/www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/Payload_decoder/>>url:http://www.dragino.com/downloads/index.php?dir=LT_LoRa_IO_Controller/LT33222-L/Payload_decoder/]]
724 724  
725 725  
... ... @@ -760,6 +760,7 @@
760 760  
761 761  **Example: **AT+TDC=30000. Means set interval to 30 seconds
762 762  
801 +
763 763  * Downlink Payload (prefix 0x01):
764 764  
765 765  (% class="box infomessage" %)
... ... @@ -782,6 +782,7 @@
782 782  
783 783  **Example**: AT+MOD=2. Set work mode to Double DI counting mode
784 784  
824 +
785 785  * Downlink Payload (prefix 0x0A):
786 786  
787 787  (% class="box infomessage" %)
... ... @@ -797,6 +797,7 @@
797 797  
798 798  There is no AT Command to poll uplink
799 799  
840 +
800 800  * Downlink Payload (prefix 0x08):
801 801  
802 802  (% class="box infomessage" %)
... ... @@ -823,6 +823,7 @@
823 823  
824 824  0: Disable Trigger Mode
825 825  
867 +
826 826  * Downlink Payload (prefix 0x0A 06):
827 827  
828 828  (% class="box infomessage" %)
... ... @@ -840,6 +840,7 @@
840 840  
841 841  There is no AT Command for this feature.
842 842  
885 +
843 843  * Downlink Payload (prefix 0x AB 06):
844 844  
845 845  (% class="box infomessage" %)
... ... @@ -860,6 +860,7 @@
860 860  **Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG >**
861 861  )))
862 862  
906 +
863 863  **Example:**
864 864  
865 865  AT+ DTRI =1,0   (Enable DI1 trigger / disable DI2 trigger)
... ... @@ -888,10 +888,12 @@
888 888  
889 889  b : delay timing.
890 890  
935 +
891 891  **Example:**
892 892  
893 893  AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms )
894 894  
940 +
895 895  * Downlink Payload (prefix 0x09 01 ):
896 896  
897 897  (% class="box infomessage" %)
... ... @@ -916,10 +916,12 @@
916 916  
917 917  b : delay timing.
918 918  
965 +
919 919  **Example:**
920 920  
921 921  AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms )
922 922  
970 +
923 923  * Downlink Payload (prefix 0x09 02 ):
924 924  
925 925  (% class="box infomessage" %)
... ... @@ -940,6 +940,7 @@
940 940  **AT+ACLIM. **
941 941  )))
942 942  
991 +
943 943  * Downlink Payload (prefix 0xAA 01 ):
944 944  
945 945  (% class="box infomessage" %)
... ... @@ -960,6 +960,7 @@
960 960  **AT+AVLIM. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]]**
961 961  )))
962 962  
1012 +
963 963  * Downlink Payload (prefix 0xAA 00 ):
964 964  
965 965  (% class="box infomessage" %)
... ... @@ -980,6 +980,7 @@
980 980  **AT+ATDC=5. Device won’t response the second trigger within 5 minute after the first trigger.**
981 981  )))
982 982  
1033 +
983 983  * Downlink Payload (prefix 0xAC ):
984 984  
985 985  (% class="box infomessage" %)
... ... @@ -995,6 +995,7 @@
995 995  
996 996  There is no AT Command to control Digital Output
997 997  
1049 +
998 998  * Downlink Payload (prefix 0x02):
999 999  
1000 1000  (% class="box infomessage" %)
... ... @@ -1028,6 +1028,7 @@
1028 1028  
1029 1029  There is no AT Command to control Digital Output
1030 1030  
1083 +
1031 1031  * Downlink Payload (prefix 0xA9):
1032 1032  
1033 1033  (% class="box infomessage" %)
... ... @@ -1047,18 +1047,22 @@
1047 1047  
1048 1048  00: DO pins will change to an inverter state after timeout 
1049 1049  
1103 +
1050 1050  (% style="color:#4f81bd" %)**Third Byte**(%%): Control Method and Ports status:
1051 1051  
1052 1052  [[image:image-20220524093238-6.png]]
1053 1053  
1108 +
1054 1054  (% style="color:#4f81bd" %)**Fourth Byte**(%%): Control Method and Ports status:
1055 1055  
1056 1056  [[image:image-20220524093328-7.png]]
1057 1057  
1113 +
1058 1058  (% style="color:#4f81bd" %)**Fifth Byte**(%%): Control Method and Ports status:
1059 1059  
1060 1060  [[image:image-20220524093351-8.png]]
1061 1061  
1118 +
1062 1062  (% style="color:#4f81bd" %)**Sixth and Seventh Byte**:
1063 1063  
1064 1064   Latching time. Unit: ms
... ... @@ -1065,6 +1065,7 @@
1065 1065  
1066 1066  Device will upload a packet if downlink code executes successfully.
1067 1067  
1125 +
1068 1068  **Example payload:**
1069 1069  
1070 1070  **~1. A9 01 01 01 01 07 D0**
... ... @@ -1085,12 +1085,13 @@
1085 1085  
1086 1086  
1087 1087  
1088 -=== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ===
1146 +==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ====
1089 1089  
1090 1090  * AT Command:
1091 1091  
1092 1092  There is no AT Command to control Relay Output
1093 1093  
1152 +
1094 1094  * Downlink Payload (prefix 0x03):
1095 1095  
1096 1096  (% class="box infomessage" %)
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0