Changes for page LHT65N -- Manual do sensor de temperatura e umidade LoRaWAN
Last modified by Xiaoling on 2023/07/18 10:12
From version 177.1
edited by Edwin Chen
on 2022/06/27 09:40
on 2022/06/27 09:40
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 5 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Edwin1 +XWiki.Xiaoling - Content
-
... ... @@ -86,35 +86,24 @@ 86 86 87 87 88 88 89 + 89 89 = 2. Connect LHT65N to IoT Server = 90 90 91 91 == 2.1 How does LHT65N work? == 92 92 93 -((( 94 94 LHT65N is configured as LoRaWAN OTAA Class A mode by default. Each LHT65N is shipped with a worldwide unique set of OTAA keys. To use LHT65N in a LoRaWAN network, first, we need to put the OTAA keys in LoRaWAN Network Server and then activate LHT65N. 95 -))) 96 96 97 -((( 98 98 If LHT65N is under the coverage of this LoRaWAN network. LHT65N can join the LoRaWAN network automatically. After successfully joining, LHT65N will start to measure environment temperature and humidity, and start to transmit sensor data to the LoRaWAN server. The default period for each uplink is 20 minutes. 99 -))) 100 100 101 101 102 102 == 2.2 How to Activate LHT65N? == 103 103 104 -((( 105 105 The LHT65N has two working modes: 106 -))) 107 107 108 -* ((( 109 -(% style="color:blue" %)**Deep Sleep Mode**(%%): LHT65N doesn’t have any LoRaWAN activation. This mode is used for storage and shipping to save battery life. 110 -))) 111 -* ((( 112 -(% style="color:blue" %)**Working Mode**(%%): In this mode, LHT65N works as LoRaWAN Sensor mode to Join LoRaWAN network and send out the sensor data to the server. Between each sampling/tx/rx periodically, LHT65N will be in STOP mode (IDLE mode), in STOP mode, LHT65N has the same power consumption as Deep Sleep mode. 113 -))) 103 +* (% style="color:blue" %)**Deep Sleep Mode**(%%): LHT65N doesn’t have any LoRaWAN activation. This mode is used for storage and shipping to save battery life. 104 +* (% style="color:blue" %)**Working Mode**(%%): In this mode, LHT65N works as LoRaWAN Sensor mode to Join LoRaWAN network and send out the sensor data to the server. Between each sampling/tx/rx periodically, LHT65N will be in STOP mode (IDLE mode), in STOP mode, LHT65N has the same power consumption as Deep Sleep mode. 114 114 115 -((( 116 116 The LHT65N is set in deep sleep mode by default; The ACT button on the front is to switch to different modes: 117 -))) 118 118 119 119 120 120 [[image:image-20220515123819-1.png||_mstalt="430742" _mstvisible="3" height="379" width="317"]] ... ... @@ -298,7 +298,6 @@ 298 298 * BAT status=(0Xcba4>>14)&0xFF=11(B),very good 299 299 * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV 300 300 301 - 302 302 === 2.4.3 Built-in Temperature === 303 303 304 304 [[image:image-20220522235639-2.png||_mstalt="431756" _mstvisible="3" height="138" width="722"]] ... ... @@ -309,7 +309,6 @@ 309 309 310 310 * Temperature: (0xF5C6-65536)/100=-26.18℃ 311 311 312 - 313 313 === 2.4.4 Built-in Humidity === 314 314 315 315 [[image:image-20220522235639-4.png||_mstalt="432484" _mstvisible="3" height="138" width="722"]] ... ... @@ -316,7 +316,6 @@ 316 316 317 317 * Humidity: 0x025C/10=60.4% 318 318 319 - 320 320 === 2.4.5 Ext # === 321 321 322 322 Bytes for External Sensor: ... ... @@ -469,7 +469,6 @@ 469 469 * Sync time OK: 1: Set time ok,0: N/A. After time SYNC request is sent, LHT65N will set this bit to 0 until got the time stamp from the application server. 470 470 * Unix Time Request: 1: Request server downlink Unix time, 0 : N/A. In this mode, LHT65N will set this bit to 1 every 10 days to request a time SYNC. (AT+SYNCMOD to set this) 471 471 472 - 473 473 ==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ==== 474 474 475 475 In this mode, user can connect external ADC sensor to check ADC value. The 3V3_OUT can ... ... @@ -567,37 +567,20 @@ 567 567 568 568 === 2.6.3 Set Device Time === 569 569 570 -((( 571 571 There are two ways to set device's time: 572 -))) 573 573 574 -((( 575 575 **~1. Through LoRaWAN MAC Command (Default settings)** 576 -))) 577 577 578 -((( 579 579 User need to set SYNCMOD=1 to enable sync time via MAC command. 580 -))) 581 581 582 -((( 583 583 Once LHT65N Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to LHT65N. If LHT65N fails to get the time from the server, LHT65N will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days). 584 -))) 585 585 586 -((( 587 587 (% style="color:red" %)Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 v2 doesn’t support. If server doesn’t support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN V3 v2 if SYNCMOD=1. 588 -))) 589 589 590 -((( 591 - 592 -))) 593 593 594 -((( 595 595 **2. Manually Set Time** 596 -))) 597 597 598 -((( 599 599 User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server. 600 -))) 601 601 602 602 603 603 ... ... @@ -764,11 +764,9 @@ 764 764 (% _mstvisible="2" %) 765 765 ((( 766 766 (% _msthash="736723" _msttexthash="2005003" _mstvisible="3" %) 767 -((( 768 768 Poll Message Flag: 1: This message is a poll message reply. 769 769 ))) 770 770 ))) 771 -))) 772 772 773 773 (% _mstvisible="1" %) 774 774 * (% _mstvisible="3" %) ... ... @@ -776,21 +776,17 @@ 776 776 (% _mstvisible="4" %) 777 777 ((( 778 778 (% _msthash="1197157" _msttexthash="561548" _mstvisible="5" %) 779 -((( 780 780 Poll Message Flag is set to 1. 781 781 ))) 782 782 ))) 783 -))) 784 784 * (% _mstvisible="3" %) 785 785 ((( 786 786 (% _mstvisible="4" %) 787 787 ((( 788 788 (% _msthash="1197158" _msttexthash="9284964" _mstvisible="5" %) 789 -((( 790 790 Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands. 791 791 ))) 792 792 ))) 793 -))) 794 794 795 795 (% _mstvisible="1" %) 796 796 ((( ... ... @@ -797,16 +797,12 @@ 797 797 (% _mstvisible="2" %) 798 798 ((( 799 799 (% _msthash="736724" _msttexthash="2242344" _mstvisible="3" %) 800 -((( 801 801 802 -))) 803 803 804 804 (% _msthash="736724" _msttexthash="2242344" _mstvisible="3" %) 805 -((( 806 806 For example, in US915 band, the max payload for different DR is: 807 807 ))) 808 808 ))) 809 -))) 810 810 811 811 (% _mstvisible="1" %) 812 812 ((( ... ... @@ -813,11 +813,9 @@ 813 813 (% _mstvisible="2" %) 814 814 ((( 815 815 (% _msthash="736725" _msttexthash="1065532" _mstvisible="3" %) 816 -((( 817 817 a) DR0: max is 11 bytes so one entry of data 818 818 ))) 819 819 ))) 820 -))) 821 821 822 822 (% _mstvisible="1" %) 823 823 ((( ... ... @@ -824,11 +824,9 @@ 824 824 (% _mstvisible="2" %) 825 825 ((( 826 826 (% _msthash="736726" _msttexthash="3265665" _mstvisible="3" %) 827 -((( 828 828 b) DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes) 829 829 ))) 830 830 ))) 831 -))) 832 832 833 833 (% _mstvisible="1" %) 834 834 ((( ... ... @@ -835,11 +835,9 @@ 835 835 (% _mstvisible="2" %) 836 836 ((( 837 837 (% _msthash="736727" _msttexthash="1454115" _mstvisible="3" style="text-align: left;" %) 838 -((( 839 839 c) DR2: total payload includes 11 entries of data 840 840 ))) 841 841 ))) 842 -))) 843 843 844 844 (% _mstvisible="1" %) 845 845 ((( ... ... @@ -846,11 +846,9 @@ 846 846 (% _mstvisible="2" %) 847 847 ((( 848 848 (% _msthash="736728" _msttexthash="1483924" _mstvisible="3" style="text-align: left;" %) 849 -((( 850 850 d) DR3: total payload includes 22 entries of data. 851 851 ))) 852 852 ))) 853 -))) 854 854 855 855 (% _mstvisible="1" %) 856 856 ((( ... ... @@ -857,11 +857,9 @@ 857 857 (% _mstvisible="2" %) 858 858 ((( 859 859 (% _msthash="736729" _msttexthash="5848349" _mstvisible="3" style="text-align: left;" %) 860 -((( 861 861 If devise doesn’t have any data in the polling time. Device will uplink 11 bytes of 0 862 862 ))) 863 863 ))) 864 -))) 865 865 866 866 867 867 (% _mstvisible="1" style="text-align: left;" %) ... ... @@ -907,86 +907,55 @@ 907 907 [[image:image-20220523001219-13.png||_mstalt="451204" _mstvisible="3" height="421" style="text-align:left" width="727"]] 908 908 909 909 (% _msthash="315271" _msttexthash="12012546" _mstvisible="1" style="text-align: left;" %) 910 -((( 911 911 7FFF089801464160065F977FFF088E014B41600660097FFF0885014E41600660667FFF0875015141600662BE7FFF086B015541600665167FFF08660155416006676E7FFF085F015A41600669C67FFF0857015D4160066C1E 912 -))) 913 913 914 914 (% _msthash="315237" _msttexthash="1385839" %) 915 -((( 916 916 Where the first 11 bytes is for the first entry: 917 -))) 918 918 919 919 (% _msthash="315238" _msttexthash="274846" %) 920 -((( 921 921 7FFF089801464160065F97 922 -))) 923 923 924 924 (% _msthash="315239" _msttexthash="617435" %) 925 -((( 926 926 Ext sensor data=0x7FFF/100=327.67 927 -))) 928 928 929 929 (% _msthash="315240" _msttexthash="270543" %) 930 -((( 931 931 Temp=0x0898/100=22.00 932 -))) 933 933 934 934 (% _msthash="315241" _msttexthash="211783" %) 935 -((( 936 936 Hum=0x0146/10=32.6 937 -))) 938 938 939 939 (% _msthash="315242" _msttexthash="1569776" %) 940 -((( 941 941 poll message flag & Ext=0x41,means reply data,Ext=1 942 -))) 943 943 944 944 (% _msthash="315243" _msttexthash="1120509" %) 945 -((( 946 946 Unix time is 0x60065F97=1611030423s=21/1/19 04:27:03 947 -))) 948 948 949 949 950 950 951 951 == 2.7 Alarm Mode == 952 952 953 -((( 954 954 when the device is in alarm mode, it checks the built-in sensor temperature for a short time. if the temperature exceeds the preconfigured range, it sends an uplink immediately. 955 -))) 956 956 957 -((( 958 958 (% style="color:red" %)Note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled. 959 -))) 960 960 961 -((( 962 962 **AT COMMAND FOR ALARM MODE:** 963 -))) 964 964 965 965 (% _mstvisible="1" class="box infomessage" %) 966 966 ((( 967 -((( 968 968 **AT+WMOD=1**: Enable/disable alarm mode. (0: Disabled, 1: Enabled) 969 -))) 970 970 971 -((( 972 972 **AT+CITEMP=1**: The interval between checking the alarm temperature. (In minutes) 973 -))) 974 974 975 -((( 976 976 **AT+ARTEMP**: Gets or sets the alarm range of the internal temperature sensor 977 -))) 978 978 979 -((( 980 980 **AT+ARTEMP=? **: Gets the alarm range of the internal temperature sensor(% _mstvisible="3" style="display:none" %) 981 -))) 982 982 983 -((( 984 984 **AT+ARTEMP=45,105**: Set the internal temperature sensor alarm range from 45 to 105. 985 985 ))) 986 -))) 987 987 988 988 989 989 906 + 990 990 == 2.8 LED Indicator == 991 991 992 992 The LHT65 has a triple color LED which for easy showing different stage . ... ... @@ -996,7 +996,7 @@ 996 996 In a normal working state: 997 997 998 998 * For each uplink, the BLUE LED or RED LED will blink once. 999 -BLUE LED when external sensor is connected. 916 + BLUE LED when external sensor is connected. 1000 1000 * RED LED when external sensor is not connected 1001 1001 * For each success downlink, the PURPLE LED will blink once 1002 1002 ... ... @@ -1014,24 +1014,8 @@ 1014 1014 1015 1015 [[image:image-20220619092222-1.png||height="182" width="188"]][[image:image-20220619092313-2.png||height="182" width="173"]] 1016 1016 1017 - **1m long breakout cable for LHT65N. Features:**934 +1m long breakout cable for LHT65N 1018 1018 1019 -* ((( 1020 -Use for AT Command, works for both LHT52/LHT65N 1021 -))) 1022 -* ((( 1023 -Update firmware for LHT65N, works for both LHT52/LHT65N 1024 -))) 1025 -* ((( 1026 -Supports ADC mode to monitor external ADC 1027 -))) 1028 -* ((( 1029 -Supports Interrupt mode 1030 -))) 1031 -* ((( 1032 -Exposed All pins from the LHT65N Type-C connector. 1033 -))) 1034 - 1035 1035 [[image:image-20220619092421-3.png||height="371" width="529"]] 1036 1036 1037 1037 ... ... @@ -1054,48 +1054,26 @@ 1054 1054 1055 1055 = 4. Configure LHT65N via AT command or LoRaWAN downlink = 1056 1056 1057 -((( 1058 1058 Use can configure LHT65N via AT Command or LoRaWAN Downlink. 1059 -))) 1060 1060 1061 -* ((( 1062 -AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]]. 1063 -))) 960 +* AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]]. 1064 1064 1065 -* ((( 1066 -LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]] 1067 -))) 962 +* LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]] 1068 1068 1069 -((( 1070 1070 There are two kinds of commands to configure LHT65N, they are: 1071 -))) 1072 1072 1073 -* ((( 1074 -(% style="color:#4f81bd" %)**General Commands**. 1075 -))) 966 +* (% style="color:#4f81bd" %)**General Commands**. 1076 1076 1077 -((( 1078 1078 These commands are to configure: 1079 -))) 1080 1080 1081 -1. ((( 1082 -General system settings like: uplink interval. 1083 -))) 1084 -1. ((( 1085 -LoRaWAN protocol & radio-related commands. 1086 -))) 970 +1. General system settings like: uplink interval. 971 +1. LoRaWAN protocol & radio-related commands. 1087 1087 1088 -((( 1089 1089 They are the same for all Dragino Devices which supports DLWS-005 LoRaWAN Stack(Note~*~*). These commands can be found on the wiki: [[End Device Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] 1090 -))) 1091 1091 1092 -* ((( 1093 -(% style="color:#4f81bd" %)**Commands special design for LHT65N** 1094 -))) 975 +* (% style="color:#4f81bd" %)**Commands special design for LHT65N** 1095 1095 1096 -((( 1097 1097 These commands are only valid for LHT65N, as below: 1098 -))) 1099 1099 1100 1100 1101 1101 == 4.1 Set Transmit Interval Time == ... ... @@ -1117,7 +1117,6 @@ 1117 1117 1118 1118 * **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 1119 1119 1120 - 1121 1121 == 4.2 Set External Sensor Mode == 1122 1122 1123 1123 Feature: Change External Sensor Mode. ... ... @@ -1139,7 +1139,6 @@ 1139 1139 1140 1140 * 0xA20702003c: Same as AT+SETCNT=60 1141 1141 1142 - 1143 1143 == 4.3 Enable/Disable uplink Temperature probe ID == 1144 1144 1145 1145 ((( ... ... @@ -1167,7 +1167,6 @@ 1167 1167 * **0xA800** **~-~->** AT+PID=0 1168 1168 * **0xA801** **~-~->** AT+PID=1 1169 1169 1170 - 1171 1171 == 4.4 Set Password == 1172 1172 1173 1173 Feature: Set device password, max 9 digits ... ... @@ -1330,7 +1330,6 @@ 1330 1330 1331 1331 * Example: 0x3401 ~/~/Same as AT+PNACKMD=1 1332 1332 1333 - 1334 1334 = 5. Battery & How to replace = 1335 1335 1336 1336 == 5.1 Battery Type == ... ... @@ -1390,11 +1390,16 @@ 1390 1390 1391 1391 (% _msthash="506061" _msttexthash="170755" %)**Connection:** 1392 1392 1393 -* (% style="background-color:yellow" %)**USB to TTL GND <~-~->GND** 1394 -* (% style="background-color:yellow" %)**USB to TTL RXD <~-~-> D+** 1395 -* (% style="background-color:yellow" %)**USB to TTL TXD <~-~-> A11** 1396 -* (% style="background-color:yellow" %)**USB to TTL 3.3V <~-~-> D-** 1268 +(% _msthash="506062" _msttexthash="1187732" %) 1269 +**✓ (% style="background-color:yellow" %)USB to TTL GND <~-~->GND(%%)** 1397 1397 1271 +(% _msthash="506063" _msttexthash="1158313" %)**✓ **(% style="background-color:yellow" %)**USB to TTL RXD <~-~-> D+** 1272 + 1273 +(% _msthash="506064" _msttexthash="1175629" %)**✓ **(% style="background-color:yellow" %)**USB to TTL TXD <~-~-> A11** 1274 + 1275 +(% _msthash="506065" _msttexthash="1164696" %)**✓ **(% style="background-color:yellow" %)**USB to TTL 3.3V <~-~-> D-** 1276 + 1277 + 1398 1398 ((( 1399 1399 In PC, User needs to set serial tool(such as [[**putty**>>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 LHT65N. The AT commands are disable by default and need to enter password (default:(% style="color:green" %)**123456**) (%%)to active it. Timeout to input AT Command is 5 min, after 5-minute, user need to input password again. User can use AT+DISAT command to disable AT command before timeout. 1400 1400 ))) ... ... @@ -1703,59 +1703,7 @@ 1703 1703 Finally, unplug the DuPont cable on port4, and then use the DuPont cable to short circuit port3 and port1 to reset the device. 1704 1704 1705 1705 1706 -== 6.6 Using USB-TYPE-C to connect to the computer using the AT command == 1707 1707 1708 -[[image:image-20220623110706-1.png]] 1709 - 1710 - 1711 -[[image:image-20220623112117-4.png||height="459" width="343"]] 1712 - 1713 -((( 1714 -In PC, User needs to set serial tool(such as [[**putty**>>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 LHT65N. The AT commands are disable by default and need to enter password (default:(% style="color:green" %)**123456**(% style="color:red" %))(%%) to active it. Timeout to input AT Command is 5 min, after 5-minute, user need to input password again. User can use AT+DISAT command to disable AT command before timeout. 1715 -))) 1716 - 1717 - 1718 -Input password and ATZ to activate LHT65N,As shown below: 1719 - 1720 -[[image:image-20220615154519-3.png||height="672" width="807"]] 1721 - 1722 - 1723 -== 6.6 How to use USB-TYPE-C to connect PC to upgrade firmware? == 1724 - 1725 -[[image:image-20220623110706-1.png]] 1726 - 1727 -(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer first. 1728 - 1729 -[[image:image-20220615170542-5.png]] 1730 - 1731 - 1732 -(% style="color:blue" %)**Step2**(%%):wiring method.(% style="display:none" %) 1733 - 1734 -(% _msthash="506146" _msttexthash="52173160" %) 1735 -First connect the four lines; 1736 - 1737 -(% _msthash="506146" _msttexthash="52173160" %) 1738 -[[image:image-20220623113959-5.png||height="528" width="397"]] 1739 - 1740 -(% _msthash="506146" _msttexthash="52173160" %) 1741 -Press and hold the start key to restart and enter (% _mstvisible="1" %)bootlaod(%%) mode. 1742 - 1743 -(% style="color:blue" %)**Step3:**(%%)Select the device port to be connected, baud rate and bin file to be downloaded. 1744 - 1745 -[[image:image-20220615171334-6.png]] 1746 - 1747 - 1748 -Click the (% style="color:blue" %)**start**(%%) button to start the firmware upgrade. 1749 - 1750 - 1751 -When this interface appears, it indicates that the download has been completed. 1752 - 1753 -[[image:image-20220620160723-8.png]] 1754 - 1755 - 1756 -Finally,restart reset device again 1757 - 1758 - 1759 1759 = 7. Order Info = 1760 1760 1761 1761 ... ... @@ -1797,12 +1797,10 @@ 1797 1797 * Device Size: 10 x 10 x 3.5 cm 1798 1798 * Device Weight: 120.5g 1799 1799 1800 - 1801 1801 = 9. Reference material = 1802 1802 1803 1803 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0||_msthash="504975" _msttexthash="51420512"]] 1804 1804 1805 - 1806 1806 = 10. FCC Warning = 1807 1807 1808 1808 This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:
- image-20220623110706-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Bei - Size
-
... ... @@ -1,1 +1,0 @@ 1 -689.7 KB - Content
- image-20220623110723-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Bei - Size
-
... ... @@ -1,1 +1,0 @@ 1 -501.5 KB - Content
- image-20220623111949-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Bei - Size
-
... ... @@ -1,1 +1,0 @@ 1 -1.6 MB - Content
- image-20220623112117-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Bei - Size
-
... ... @@ -1,1 +1,0 @@ 1 -513.9 KB - Content
- image-20220623113959-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Bei - Size
-
... ... @@ -1,1 +1,0 @@ 1 -834.2 KB - Content