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
-
... ... @@ -19,6 +19,8 @@ 19 19 == 1.1 What is LT Series I/O Controller == 20 20 21 21 ((( 22 + 23 + 22 22 The Dragino (% style="color:blue" %)**LT series I/O Modules**(%%) are Long Range LoRaWAN I/O Controller. It contains different I/O Interfaces such as:** (% style="color:blue" %)analog current Input, analog voltage input(%%)**(% style="color:blue" %), **relay output**, **digital input**(%%) and (% style="color:blue" %)**digital output**(%%) etc. The LT I/O Modules are designed to simplify the installation of I/O monitoring. 23 23 ))) 24 24 ... ... @@ -48,6 +48,7 @@ 48 48 49 49 ))) 50 50 53 + 51 51 == 1.2 Specifications == 52 52 53 53 ((( ... ... @@ -76,6 +76,8 @@ 76 76 ))) 77 77 78 78 ((( 82 + 83 + 79 79 **Interface for Model: LT22222-L:** 80 80 ))) 81 81 ... ... @@ -99,6 +99,8 @@ 99 99 ))) 100 100 101 101 ((( 107 + 108 + 102 102 **LoRa Spec:** 103 103 ))) 104 104 ... ... @@ -159,6 +159,8 @@ 159 159 * ((( 160 160 Packet engine up to 256 bytes with CRC. 161 161 169 + 170 + 162 162 163 163 ))) 164 164 ... ... @@ -172,6 +172,8 @@ 172 172 * Firmware upgradable via program port 173 173 * Counting 174 174 184 + 185 + 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 195 + 196 + 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 210 + 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 244 + 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. 250 +(% 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 259 + 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. 273 +(% 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,8 @@ 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 291 + 292 + 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 ((( 300 + 301 + 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 315 + 298 298 **The value for the interface is: ** 299 299 300 300 AVI1 channel voltage is 0x04AB/1000=1195(DEC)/1000=1.195V ... ... @@ -310,7 +310,6 @@ 310 310 * [1] RO1 relay channel is close and the RO1 LED is ON. 311 311 * [0] RO2 relay channel is open and RO2 LED is OFF; 312 312 313 - 314 314 **LT22222-L:** 315 315 316 316 * [1] DI2 channel is high input and DI2 LED is ON; ... ... @@ -327,6 +327,7 @@ 327 327 ** DO1 LED is off in both case 328 328 329 329 347 + 330 330 === 3.3.2 AT+MOD~=2, (Double DI Counting) === 331 331 332 332 ... ... @@ -363,12 +363,7 @@ 363 363 ((( 364 364 ((( 365 365 **AT+MOD=2** 366 -))) 367 -))) 368 368 369 -(% class="box infomessage" %) 370 -((( 371 -((( 372 372 **ATZ** 373 373 ))) 374 374 ))) ... ... @@ -387,40 +387,15 @@ 387 387 ((( 388 388 ((( 389 389 **AT+TRIG1=0,100 (set DI1 port to trigger on low level, valid signal is 100ms) ** 390 -))) 391 -))) 392 392 393 -(% class="box infomessage" %) 394 -((( 395 -((( 396 396 **AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) ** 397 -))) 398 -))) 399 399 400 -(% class="box infomessage" %) 401 -((( 402 -((( 403 403 **AT+TRIG2=0,100 (set DI2 port to trigger on low level, valid signal is 100ms) ** 404 -))) 405 -))) 406 406 407 -(% class="box infomessage" %) 408 -((( 409 -((( 410 410 **AT+TRIG2=1,100 (set DI2 port to trigger on high level, valid signal is 100ms ) ** 411 -))) 412 -))) 413 413 414 -(% class="box infomessage" %) 415 -((( 416 -((( 417 417 **AT+SETCNT=1,60 (Set COUNT1 value to 60)** 418 -))) 419 -))) 420 420 421 -(% class="box infomessage" %) 422 -((( 423 -((( 424 424 **AT+SETCNT=2,60 (Set COUNT2 value to 60)** 425 425 ))) 426 426 ))) ... ... @@ -455,12 +455,7 @@ 455 455 ((( 456 456 ((( 457 457 **AT+MOD=3** 458 -))) 459 -))) 460 460 461 -(% class="box infomessage" %) 462 -((( 463 -((( 464 464 **ATZ** 465 465 ))) 466 466 ))) ... ... @@ -467,11 +467,10 @@ 467 467 468 468 ((( 469 469 Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]]. 470 - 471 - 472 472 ))) 473 473 474 474 456 + 475 475 === 3.3.4 AT+MOD~=4, Single DI Counting + 1 x Voltage Counting === 476 476 477 477 ... ... @@ -506,20 +506,13 @@ 506 506 ((( 507 507 ((( 508 508 **AT+MOD=4** 509 -))) 510 -))) 511 511 512 -(% class="box infomessage" %) 513 -((( 514 -((( 515 515 **ATZ** 516 516 ))) 517 517 ))) 518 518 519 -((( 520 - 521 -))) 522 522 497 + 523 523 ((( 524 524 Other AT Commands for counting are similar to [[MOD2 Counting Command>>||anchor="H3.3.2AT2BMOD3D22C28DoubleDICounting29"]]. 525 525 ))) ... ... @@ -533,33 +533,17 @@ 533 533 (% class="box infomessage" %) 534 534 ((( 535 535 ((( 536 -**AT+SETCNT=3,60 (set AVI Count to 60)** 537 -))) 538 -))) 511 +(% style="color:blue" %)**AT+SETCNT=3,60**(%%)** (set AVI Count to 60)** 539 539 540 -(% class="box infomessage" %) 541 -((( 542 -((( 543 -**AT+VOLMAX=20000 (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)** 544 -))) 545 -))) 513 +(% style="color:blue" %)**AT+VOLMAX=20000**(%%)** (If AVI1 voltage higher than VOLMAX (20000mV =20v), counter increase 1)** 546 546 547 -(% class="box infomessage" %) 548 -((( 549 -((( 550 -**AT+VOLMAX=20000,0 (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)** 551 -))) 552 -))) 515 +(% style="color:blue" %)**AT+VOLMAX=20000,0**(%%)** (If AVI1 voltage lower than VOLMAX (20000mV =20v), counter increase 1)** 553 553 554 -(% class="box infomessage" %) 555 -((( 556 -((( 557 -**AT+VOLMAX=20000,1 (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)** 517 +(% style="color:blue" %)**AT+VOLMAX=20000,1**(%%)** (If AVI1 voltage higer than VOLMAX (20000mV =20v), counter increase 1)** 558 558 ))) 559 559 ))) 560 560 561 561 562 - 563 563 === 3.3.5 AT+MOD~=5, Single DI Counting + 2 x AVI + 1 x ACI === 564 564 565 565 ... ... @@ -593,12 +593,7 @@ 593 593 ((( 594 594 ((( 595 595 **AT+MOD=5** 596 -))) 597 -))) 598 598 599 -(% class="box infomessage" %) 600 -((( 601 -((( 602 602 **ATZ** 603 603 ))) 604 604 ))) ... ... @@ -624,7 +624,7 @@ 624 624 1. Periodically uplink (Base on TDC time). Payload is same as the normal MOD (MOD 1 for above command). This uplink uses LoRaWAN (% style="color:#4f81bd" %)**unconfirmed**(%%) data type 625 625 1. Trigger uplink when meet the trigger condition. LT will sent two packets in this case, the first uplink use payload specify in this mod (mod=6), the second packets use the normal mod payload(MOD=1 for above settings). Both Uplinks use LoRaWAN (% style="color:#4f81bd" %)**CONFIRMED data type.** 626 626 627 -**AT Command to set Trigger Condition**: 581 +(% style="color:#037691" %)**AT Command to set Trigger Condition**: 628 628 629 629 (% style="color:#4f81bd" %)**Trigger base on voltage**: 630 630 ... ... @@ -637,6 +637,7 @@ 637 637 AT+AVLIM=5000,0,0,0 (If AVI1 voltage lower than 5V , trigger uplink, 0 means ignore) 638 638 639 639 594 + 640 640 (% style="color:#4f81bd" %)**Trigger base on current**: 641 641 642 642 Format: AT+ACLIM=<AC1_LIMIT_LOW>,< AC1_LIMIT_HIGH>,<AC2_LIMIT_LOW>,< AC2_LIMIT_HIGH> ... ... @@ -646,6 +646,7 @@ 646 646 AT+ACLIM=10000,15000,0,0 (If ACI1 voltage lower than 10mA or higher than 15mA, trigger an uplink) 647 647 648 648 604 + 649 649 (% style="color:#4f81bd" %)**Trigger base on DI status**: 650 650 651 651 DI status trigger Flag. ... ... @@ -652,12 +652,13 @@ 652 652 653 653 Format: AT+DTRI=<DI1_TIRGGER_FlAG>,< DI2_TIRGGER_FlAG > 654 654 611 + 655 655 **Example:** 656 656 657 657 AT+ DTRI =1,0 (Enable DI1 trigger / disable DI2 trigger) 658 658 659 659 660 -**Downlink Command to set Trigger Condition** 617 +(% style="color:#037691" %)**Downlink Command to set Trigger Condition:** 661 661 662 662 Type Code: 0xAA. Downlink command same as AT Command **AT+AVLIM, AT+ACLIM** 663 663 ... ... @@ -686,6 +686,7 @@ 686 686 Same as AT+ DTRI =1,0 (Enable DI1 trigger / disable DI2 trigger) 687 687 688 688 646 + 689 689 (% style="color:#4f81bd" %)**Trigger Settings Payload Explanation:** 690 690 691 691 MOD6 Payload : total 11 bytes payload ... ... @@ -749,7 +749,6 @@ 749 749 ))) 750 750 751 751 752 - 753 753 == 3.4 Configure LT via AT or Downlink == 754 754 755 755 User can configure LT I/O Controller via AT Commands or LoRaWAN Downlink Commands ... ... @@ -763,6 +763,7 @@ 763 763 * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for LT-22222-L. User can see these commands below: 764 764 765 765 723 + 766 766 === 3.4.1 Common Commands === 767 767 768 768 They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.5.4, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] ... ... @@ -775,7 +775,7 @@ 775 775 776 776 Set device uplink interval. 777 777 778 -* AT Command: 736 +* (% style="color:#037691" %)**AT Command:** 779 779 780 780 (% class="box infomessage" %) 781 781 ((( ... ... @@ -785,7 +785,7 @@ 785 785 **Example: **AT+TDC=30000. Means set interval to 30 seconds 786 786 787 787 788 -* Downlink Payload (prefix 0x01): 746 +* (% style="color:#037691" %)**Downlink Payload (prefix 0x01):** 789 789 790 790 (% class="box infomessage" %) 791 791 ((( ... ... @@ -798,7 +798,7 @@ 798 798 799 799 Set work mode. 800 800 801 -* AT Command: 759 +* (% style="color:#037691" %)**AT Command:** 802 802 803 803 (% class="box infomessage" %) 804 804 ((( ... ... @@ -808,7 +808,7 @@ 808 808 **Example**: AT+MOD=2. Set work mode to Double DI counting mode 809 809 810 810 811 -* Downlink Payload (prefix 0x0A): 769 +* (% style="color:#037691" %)**Downlink Payload (prefix 0x0A):** 812 812 813 813 (% class="box infomessage" %) 814 814 ((( ... ... @@ -819,12 +819,12 @@ 819 819 820 820 ==== 3.4.2.3 Poll an uplink ==== 821 821 822 -* AT Command: 780 +* (% style="color:#037691" %)AT Command: 823 823 824 824 There is no AT Command to poll uplink 825 825 826 826 827 -* Downlink Payload (prefix 0x08): 785 +* (% style="color:#037691" %)Downlink Payload (prefix 0x08): 828 828 829 829 (% class="box infomessage" %) 830 830 ((( ... ... @@ -839,7 +839,7 @@ 839 839 840 840 Use of trigger mode, please check [[ADDMOD6>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]] 841 841 842 -* AT Command: 800 +* (% style="color:#037691" %)AT Command: 843 843 844 844 (% class="box infomessage" %) 845 845 ((( ... ... @@ -851,7 +851,7 @@ 851 851 0: Disable Trigger Mode 852 852 853 853 854 -* Downlink Payload (prefix 0x0A 06): 812 +* (% style="color:#037691" %)Downlink Payload (prefix 0x0A 06): 855 855 856 856 (% class="box infomessage" %) 857 857 ((( ... ... @@ -864,12 +864,12 @@ 864 864 865 865 Poll trigger settings, 866 866 867 -* AT Command: 825 +* (% style="color:#037691" %)AT Command: 868 868 869 869 There is no AT Command for this feature. 870 870 871 871 872 -* Downlink Payload (prefix 0x AB 06): 830 +* (% style="color:#037691" %)Downlink Payload (prefix 0x AB 06): 873 873 874 874 (% class="box infomessage" %) 875 875 ((( ... ... @@ -882,7 +882,7 @@ 882 882 883 883 Enable Disable DI1/DI2/DI2 as trigger, 884 884 885 -* AT Command: 843 +* (% style="color:#037691" %)AT Command: 886 886 887 887 (% class="box infomessage" %) 888 888 ((( ... ... @@ -894,7 +894,7 @@ 894 894 895 895 AT+ DTRI =1,0 (Enable DI1 trigger / disable DI2 trigger) 896 896 897 -* Downlink Payload (prefix 0xAA 02): 855 +* (% style="color:#037691" %)Downlink Payload (prefix 0xAA 02): 898 898 899 899 (% class="box infomessage" %) 900 900 ((( ... ... @@ -907,7 +907,7 @@ 907 907 908 908 Set DI1 or DI3(for LT-33222-L) trigger. 909 909 910 -* AT Command: 868 +* (% style="color:#037691" %)AT Command: 911 911 912 912 (% class="box infomessage" %) 913 913 ((( ... ... @@ -924,7 +924,7 @@ 924 924 AT+TRIG1=1,100(set DI1 port to trigger on high level, valid signal is 100ms ) 925 925 926 926 927 -* Downlink Payload (prefix 0x09 01 ): 885 +* (% style="color:#037691" %)Downlink Payload (prefix 0x09 01 ): 928 928 929 929 (% class="box infomessage" %) 930 930 ((( ... ... @@ -937,7 +937,7 @@ 937 937 938 938 Set DI2 trigger. 939 939 940 -* AT Command: 898 +* (% style="color:#037691" %)AT Command: 941 941 942 942 (% class="box infomessage" %) 943 943 ((( ... ... @@ -954,7 +954,7 @@ 954 954 AT+TRIG2=0,100(set DI1 port to trigger on low level, valid signal is 100ms ) 955 955 956 956 957 -* Downlink Payload (prefix 0x09 02 ): 915 +* (% style="color:#037691" %)Downlink Payload (prefix 0x09 02 ): 958 958 959 959 (% class="box infomessage" %) 960 960 ((( ... ... @@ -967,7 +967,7 @@ 967 967 968 968 Set current trigger , base on AC port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]] 969 969 970 -* AT Command: 928 +* (% style="color:#037691" %)AT Command: 971 971 972 972 (% class="box infomessage" %) 973 973 ((( ... ... @@ -975,7 +975,7 @@ 975 975 ))) 976 976 977 977 978 -* Downlink Payload (prefix 0xAA 01 ): 936 +* (% style="color:#037691" %)Downlink Payload (prefix 0xAA 01 ): 979 979 980 980 (% class="box infomessage" %) 981 981 ((( ... ... @@ -988,7 +988,7 @@ 988 988 989 989 Set current trigger , base on AV port. See [[trigger mode>>||anchor="H3.3.6AT2BADDMOD3D6.28TriggerMode2COptional29"]] 990 990 991 -* AT Command: 949 +* (% style="color:#037691" %)AT Command: 992 992 993 993 (% class="box infomessage" %) 994 994 ((( ... ... @@ -996,7 +996,7 @@ 996 996 ))) 997 997 998 998 999 -* Downlink Payload (prefix 0xAA 00 ): 957 +* (% style="color:#037691" %)Downlink Payload (prefix 0xAA 00 ): 1000 1000 1001 1001 (% class="box infomessage" %) 1002 1002 ((( ... ... @@ -1009,7 +1009,7 @@ 1009 1009 1010 1010 Set AV and AC trigger minimum interval, system won’t response to the second trigger within this set time after the first trigger. 1011 1011 1012 -* AT Command: 970 +* (% style="color:#037691" %)AT Command: 1013 1013 1014 1014 (% class="box infomessage" %) 1015 1015 ((( ... ... @@ -1017,7 +1017,7 @@ 1017 1017 ))) 1018 1018 1019 1019 1020 -* Downlink Payload (prefix 0xAC ): 978 +* (% style="color:#037691" %)**Downlink Payload (prefix 0xAC ):** 1021 1021 1022 1022 (% class="box infomessage" %) 1023 1023 ((( ... ... @@ -1028,17 +1028,14 @@ 1028 1028 1029 1029 ==== 3.4.2.12 DO ~-~- Control Digital Output DO1/DO2/DO3 ==== 1030 1030 1031 -* AT Command: 989 +* (% style="color:#037691" %)**AT Command:** 1032 1032 1033 1033 There is no AT Command to control Digital Output 1034 1034 1035 1035 1036 -* Downlink Payload (prefix 0x02): 994 +* (% style="color:#037691" %)**Downlink Payload (prefix 0x02):** 995 +* **0x02 aa bb cc **~/~/ Set DO1/DO2/DO3 output 1037 1037 1038 -(% class="box infomessage" %) 1039 -((( 1040 -**0x02 aa bb cc ~/~/ Set DO1/DO2/DO3 output** 1041 -))) 1042 1042 1043 1043 ((( 1044 1044 If payload = 0x02010001, while there is load between V+ and DOx, it means set DO1 to low, DO2 to high and DO3 to low. ... ... @@ -1060,22 +1060,19 @@ 1060 1060 1061 1061 1062 1062 1018 + 1063 1063 ==== 3.4.2.13 DO ~-~- Control Digital Output DO1/DO2/DO3 with time control ==== 1064 1064 1065 -* AT Command: 1021 +* (% style="color:#037691" %)**AT Command:** 1066 1066 1067 1067 There is no AT Command to control Digital Output 1068 1068 1069 1069 1070 -* Downlink Payload (prefix 0xA9): 1026 +* (% style="color:#037691" %)**Downlink Payload (prefix 0xA9):** 1071 1071 1072 -(% class="box infomessage" %) 1073 -((( 1074 -((( 1075 -**0xA9 aa bb cc ~/~/ Set DO1/DO2/DO3 output with time control** 1076 -))) 1077 -))) 1028 +**0xA9 aa bb cc **~/~/ Set DO1/DO2/DO3 output with time control 1078 1078 1030 + 1079 1079 This is to control the digital output time of DO pin. Include four bytes: 1080 1080 1081 1081 (% style="color:#4f81bd" %)**First Byte**(%%)**:** Type code (0xA9) ... ... @@ -1129,20 +1129,19 @@ 1129 1129 1130 1130 1131 1131 1084 + 1132 1132 ==== 3.4.2.14 Relay ~-~- Control Relay Output RO1/RO2 ==== 1133 1133 1134 -* AT Command: 1087 +* (% style="color:#037691" %)**AT Command:** 1135 1135 1136 1136 There is no AT Command to control Relay Output 1137 1137 1138 1138 1139 -* Downlink Payload (prefix 0x03): 1092 +* (% style="color:#037691" %)**Downlink Payload (prefix 0x03):** 1140 1140 1141 -(% class="box infomessage" %) 1142 -((( 1143 -**0x03 aa bb ~/~/ Set RO1/RO2 output** 1144 -))) 1094 +**0x03 aa bb **~/~/ Set RO1/RO2 output 1145 1145 1096 + 1146 1146 ((( 1147 1147 If payload = 0x030100, it means set RO1 to close and RO2 to open. 1148 1148 ))) ... ... @@ -1159,20 +1159,19 @@ 1159 1159 1160 1160 1161 1161 1113 + 1162 1162 ==== 3.4.2.15 Relay ~-~- Control Relay Output RO1/RO2 with time control ==== 1163 1163 1164 -* AT Command: 1116 +* (% style="color:#037691" %)**AT Command:** 1165 1165 1166 1166 There is no AT Command to control Relay Output 1167 1167 1168 1168 1169 -* Downlink Payload (prefix 0x05): 1121 +* (% style="color:#037691" %)**Downlink Payload (prefix 0x05):** 1170 1170 1171 -(% class="box infomessage" %) 1172 -((( 1173 -**0x05 aa bb cc dd ~/~/ Set RO1/RO2 relay with time control:** 1174 -))) 1123 +**0x05 aa bb cc dd **~/~/ Set RO1/RO2 relay with time control 1175 1175 1125 + 1176 1176 This is to control the relay output time of relay. Include four bytes: 1177 1177 1178 1178 (% style="color:#4f81bd" %)**First Byte **(%%)**:** Type code (0x05) ... ... @@ -1214,35 +1214,28 @@ 1214 1214 1215 1215 1216 1216 1167 + 1217 1217 ==== 3.4.2.16 Counting ~-~- Voltage threshold counting ==== 1218 1218 1219 1219 When voltage exceed the threshold, count. Feature see [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]] 1220 1220 1221 -* AT Command: 1172 +* (% style="color:#037691" %)**AT Command:** 1222 1222 1223 -(% class="box infomessage" %) 1224 -((( 1225 -**AT+VOLMAX ~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]]** 1226 -))) 1174 +(% style="color:#037691" %)****(%%)**AT+VOLMAX ** ~/~/ See [[MOD4>>||anchor="H3.3.4AT2BMOD3D42CSingleDICounting2B1xVoltageCounting"]] 1227 1227 1228 1228 1229 -* Downlink Payload (prefix 0xA5): 1177 +* (% style="color:#037691" %)**Downlink Payload (prefix 0xA5):** 1230 1230 1231 -(% class="box infomessage" %) 1232 -((( 1233 -**0xA5 aa bb cc ~/~/ Same as AT+VOLMAX=(aa bb),cc** 1234 -))) 1179 +**0xA5 aa bb cc **~/~/ Same as AT+VOLMAX=(aa bb),cc 1235 1235 1236 1236 1237 1237 1183 + 1238 1238 ==== 3.4.2.17 Counting ~-~- Pre-configure the Count Number ==== 1239 1239 1240 -* AT Command: 1186 +* (% style="color:#037691" %)**AT Command:** 1241 1241 1242 -(% class="box infomessage" %) 1243 -((( 1244 -**AT+SETCNT=aa,(bb cc dd ee) ** 1245 -))) 1188 +(% style="color:#037691" %)****(%%)**AT+SETCNT=aa,(bb cc dd ee) ** 1246 1246 1247 1247 aa: 1: Set count1, 1248 1248 ... ... @@ -1253,51 +1253,40 @@ 1253 1253 Bb cc dd ee: number to be set 1254 1254 1255 1255 1256 -* Downlink Payload (prefix 0xA8): 1199 +* (% style="color:#037691" %)**Downlink Payload (prefix 0xA8):** 1257 1257 1258 -(% class="box infomessage" %) 1259 -((( 1260 -**0x A8 aa bb cc dd ee ~/~/ same as AT+SETCNT=aa,(bb cc dd ee)** 1261 -))) 1201 +**0x A8 aa bb cc dd ee **~/~/ same as AT+SETCNT=aa,(bb cc dd ee) 1262 1262 1263 1263 1264 1264 1205 + 1265 1265 ==== 3.4.2.18 Counting ~-~- Clear Counting ==== 1266 1266 1267 1267 Clear counting for counting mode 1268 1268 1269 -* AT Command: 1210 +* (% style="color:#037691" %)**AT Command:** 1270 1270 1271 -(% class="box infomessage" %) 1272 -((( 1273 -**AT+CLRCOUNT ~/~/ clear all counting** 1274 -))) 1212 +(% style="color:#037691" %)(%%)**AT+CLRCOUNT ** ~/~/ clear all counting 1275 1275 1276 -* Downlink Payload (prefix 0xA6): 1277 1277 1278 -(% class="box infomessage" %) 1279 -((( 1280 -**0x A6 01 ~/~/ clear all counting,** 1281 -))) 1215 +* (% style="color:#037691" %)**Downlink Payload (prefix 0xA6):** 1282 1282 1217 +**0x A6 01 ** ~/~/ clear all counting 1283 1283 1284 1284 1220 + 1221 + 1285 1285 ==== 3.4.2.19 Counting ~-~- Change counting mode save time ==== 1286 1286 1287 -* AT Command: 1224 +* (% style="color:#037691" %)**AT Command:** 1288 1288 1289 -(% class="box infomessage" %) 1290 -((( 1291 -**AT+COUTIME=60 ~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30)** 1292 -))) 1226 +**AT+COUTIME=60 **~/~/ Set save time to 60 seconds. Device will save the counting result in internal flash every 60 seconds. (min value: 30) 1293 1293 1294 -* Downlink Payload (prefix 0xA7): 1295 1295 1296 -(% class="box infomessage" %) 1297 -((( 1298 -**0x A7 aa bb cc ~/~/ same as AT+COUTIME =aa bb cc,** 1299 -))) 1229 +* (% style="color:#037691" %)**Downlink Payload (prefix 0xA7):** 1300 1300 1231 +**0x A7 aa bb cc **~/~/ same as AT+COUTIME =aa bb cc, 1232 + 1301 1301 ((( 1302 1302 range: aa bb cc:0 to 16777215, (unit:second) 1303 1303 ... ... @@ -1305,6 +1305,7 @@ 1305 1305 ))) 1306 1306 1307 1307 1240 + 1308 1308 == 3.5 Integrate with Mydevice == 1309 1309 1310 1310 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: ... ... @@ -1994,8 +1994,16 @@ 1994 1994 ))) 1995 1995 1996 1996 ((( 1997 - 1930 +== 5.6 Why does the relay output become the default and open relay after the lt22222 is powered off? == 1998 1998 1932 +If the device is not shut down, but directly powered off. 1933 + 1934 +It will default that this is a power-off state. 1935 + 1936 +In modes 2 to 5, DO RO status and pulse count are saved in flash. 1937 + 1938 +After restart, the status before power failure will be read from flash. 1939 + 1999 1999 = 6. Trouble Shooting = 2000 2000 ))) 2001 2001