Changes for page LHT65N -- Manual do sensor de temperatura e umidade LoRaWAN
Last modified by Xiaoling on 2023/07/18 10:12
From version 176.1
edited by Bei Jinggeng
on 2022/06/23 11:43
on 2022/06/23 11:43
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. Bei1 +XWiki.Xiaoling - Content
-
... ... @@ -60,7 +60,6 @@ 60 60 61 61 62 62 63 - 64 64 == 1.3 Specification == 65 65 66 66 ... ... @@ -87,7 +87,6 @@ 87 87 88 88 89 89 90 - 91 91 = 2. Connect LHT65N to IoT Server = 92 92 93 93 == 2.1 How does LHT65N work? == ... ... @@ -269,8 +269,6 @@ 269 269 * The 7th byte (EXT #): defines the external sensor model. 270 270 * The 8(% _msthash="734578" _msttexthash="21372" _mstvisible="4" %)^^th^^(%%) ~~ 11(% _msthash="734579" _msttexthash="21372" _mstvisible="4" %)^^th^^(%%) byte: the value for external sensor value. The definition is based on external sensor type. (If EXT=0, there won’t be these four bytes.) 271 271 272 - 273 - 274 274 === 2.4.1 Decoder in TTN V3 === 275 275 276 276 When the uplink payload arrives TTNv3, it shows HEX format and not friendly to read. We can add LHT65N decoder in TTNv3 for friendly reading. ... ... @@ -301,8 +301,6 @@ 301 301 * BAT status=(0Xcba4>>14)&0xFF=11(B),very good 302 302 * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV 303 303 304 - 305 - 306 306 === 2.4.3 Built-in Temperature === 307 307 308 308 [[image:image-20220522235639-2.png||_mstalt="431756" _mstvisible="3" height="138" width="722"]] ... ... @@ -313,8 +313,6 @@ 313 313 314 314 * Temperature: (0xF5C6-65536)/100=-26.18℃ 315 315 316 - 317 - 318 318 === 2.4.4 Built-in Humidity === 319 319 320 320 [[image:image-20220522235639-4.png||_mstalt="432484" _mstvisible="3" height="138" width="722"]] ... ... @@ -321,8 +321,6 @@ 321 321 322 322 * Humidity: 0x025C/10=60.4% 323 323 324 - 325 - 326 326 === 2.4.5 Ext # === 327 327 328 328 Bytes for External Sensor: ... ... @@ -475,8 +475,6 @@ 475 475 * 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. 476 476 * 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) 477 477 478 - 479 - 480 480 ==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ==== 481 481 482 482 In this mode, user can connect external ADC sensor to check ADC value. The 3V3_OUT can ... ... @@ -551,8 +551,6 @@ 551 551 1. IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specify time range. 552 552 1. Set [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]], LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N will store the sensor data, and it will send all messages after network recover. 553 553 554 - 555 - 556 556 === 2.6.2 Unix TimeStamp === 557 557 558 558 ... ... @@ -575,37 +575,20 @@ 575 575 576 576 === 2.6.3 Set Device Time === 577 577 578 -((( 579 579 There are two ways to set device's time: 580 -))) 581 581 582 -((( 583 583 **~1. Through LoRaWAN MAC Command (Default settings)** 584 -))) 585 585 586 -((( 587 587 User need to set SYNCMOD=1 to enable sync time via MAC command. 588 -))) 589 589 590 -((( 591 591 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). 592 -))) 593 593 594 -((( 595 595 (% 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. 596 -))) 597 597 598 -((( 599 - 600 -))) 601 601 602 -((( 603 603 **2. Manually Set Time** 604 -))) 605 605 606 -((( 607 607 User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server. 608 -))) 609 609 610 610 611 611 ... ... @@ -772,11 +772,9 @@ 772 772 (% _mstvisible="2" %) 773 773 ((( 774 774 (% _msthash="736723" _msttexthash="2005003" _mstvisible="3" %) 775 -((( 776 776 Poll Message Flag: 1: This message is a poll message reply. 777 777 ))) 778 778 ))) 779 -))) 780 780 781 781 (% _mstvisible="1" %) 782 782 * (% _mstvisible="3" %) ... ... @@ -784,21 +784,17 @@ 784 784 (% _mstvisible="4" %) 785 785 ((( 786 786 (% _msthash="1197157" _msttexthash="561548" _mstvisible="5" %) 787 -((( 788 788 Poll Message Flag is set to 1. 789 789 ))) 790 790 ))) 791 -))) 792 792 * (% _mstvisible="3" %) 793 793 ((( 794 794 (% _mstvisible="4" %) 795 795 ((( 796 796 (% _msthash="1197158" _msttexthash="9284964" _mstvisible="5" %) 797 -((( 798 798 Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands. 799 799 ))) 800 800 ))) 801 -))) 802 802 803 803 (% _mstvisible="1" %) 804 804 ((( ... ... @@ -805,16 +805,12 @@ 805 805 (% _mstvisible="2" %) 806 806 ((( 807 807 (% _msthash="736724" _msttexthash="2242344" _mstvisible="3" %) 808 -((( 809 809 810 -))) 811 811 812 812 (% _msthash="736724" _msttexthash="2242344" _mstvisible="3" %) 813 -((( 814 814 For example, in US915 band, the max payload for different DR is: 815 815 ))) 816 816 ))) 817 -))) 818 818 819 819 (% _mstvisible="1" %) 820 820 ((( ... ... @@ -821,11 +821,9 @@ 821 821 (% _mstvisible="2" %) 822 822 ((( 823 823 (% _msthash="736725" _msttexthash="1065532" _mstvisible="3" %) 824 -((( 825 825 a) DR0: max is 11 bytes so one entry of data 826 826 ))) 827 827 ))) 828 -))) 829 829 830 830 (% _mstvisible="1" %) 831 831 ((( ... ... @@ -832,11 +832,9 @@ 832 832 (% _mstvisible="2" %) 833 833 ((( 834 834 (% _msthash="736726" _msttexthash="3265665" _mstvisible="3" %) 835 -((( 836 836 b) DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes) 837 837 ))) 838 838 ))) 839 -))) 840 840 841 841 (% _mstvisible="1" %) 842 842 ((( ... ... @@ -843,11 +843,9 @@ 843 843 (% _mstvisible="2" %) 844 844 ((( 845 845 (% _msthash="736727" _msttexthash="1454115" _mstvisible="3" style="text-align: left;" %) 846 -((( 847 847 c) DR2: total payload includes 11 entries of data 848 848 ))) 849 849 ))) 850 -))) 851 851 852 852 (% _mstvisible="1" %) 853 853 ((( ... ... @@ -854,11 +854,9 @@ 854 854 (% _mstvisible="2" %) 855 855 ((( 856 856 (% _msthash="736728" _msttexthash="1483924" _mstvisible="3" style="text-align: left;" %) 857 -((( 858 858 d) DR3: total payload includes 22 entries of data. 859 859 ))) 860 860 ))) 861 -))) 862 862 863 863 (% _mstvisible="1" %) 864 864 ((( ... ... @@ -865,11 +865,9 @@ 865 865 (% _mstvisible="2" %) 866 866 ((( 867 867 (% _msthash="736729" _msttexthash="5848349" _mstvisible="3" style="text-align: left;" %) 868 -((( 869 869 If devise doesn’t have any data in the polling time. Device will uplink 11 bytes of 0 870 870 ))) 871 871 ))) 872 -))) 873 873 874 874 875 875 (% _mstvisible="1" style="text-align: left;" %) ... ... @@ -915,86 +915,55 @@ 915 915 [[image:image-20220523001219-13.png||_mstalt="451204" _mstvisible="3" height="421" style="text-align:left" width="727"]] 916 916 917 917 (% _msthash="315271" _msttexthash="12012546" _mstvisible="1" style="text-align: left;" %) 918 -((( 919 919 7FFF089801464160065F977FFF088E014B41600660097FFF0885014E41600660667FFF0875015141600662BE7FFF086B015541600665167FFF08660155416006676E7FFF085F015A41600669C67FFF0857015D4160066C1E 920 -))) 921 921 922 922 (% _msthash="315237" _msttexthash="1385839" %) 923 -((( 924 924 Where the first 11 bytes is for the first entry: 925 -))) 926 926 927 927 (% _msthash="315238" _msttexthash="274846" %) 928 -((( 929 929 7FFF089801464160065F97 930 -))) 931 931 932 932 (% _msthash="315239" _msttexthash="617435" %) 933 -((( 934 934 Ext sensor data=0x7FFF/100=327.67 935 -))) 936 936 937 937 (% _msthash="315240" _msttexthash="270543" %) 938 -((( 939 939 Temp=0x0898/100=22.00 940 -))) 941 941 942 942 (% _msthash="315241" _msttexthash="211783" %) 943 -((( 944 944 Hum=0x0146/10=32.6 945 -))) 946 946 947 947 (% _msthash="315242" _msttexthash="1569776" %) 948 -((( 949 949 poll message flag & Ext=0x41,means reply data,Ext=1 950 -))) 951 951 952 952 (% _msthash="315243" _msttexthash="1120509" %) 953 -((( 954 954 Unix time is 0x60065F97=1611030423s=21/1/19 04:27:03 955 -))) 956 956 957 957 958 958 959 959 == 2.7 Alarm Mode == 960 960 961 -((( 962 962 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. 963 -))) 964 964 965 -((( 966 966 (% style="color:red" %)Note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled. 967 -))) 968 968 969 -((( 970 970 **AT COMMAND FOR ALARM MODE:** 971 -))) 972 972 973 973 (% _mstvisible="1" class="box infomessage" %) 974 974 ((( 975 -((( 976 976 **AT+WMOD=1**: Enable/disable alarm mode. (0: Disabled, 1: Enabled) 977 -))) 978 978 979 -((( 980 980 **AT+CITEMP=1**: The interval between checking the alarm temperature. (In minutes) 981 -))) 982 982 983 -((( 984 984 **AT+ARTEMP**: Gets or sets the alarm range of the internal temperature sensor 985 -))) 986 986 987 -((( 988 988 **AT+ARTEMP=? **: Gets the alarm range of the internal temperature sensor(% _mstvisible="3" style="display:none" %) 989 -))) 990 990 991 -((( 992 992 **AT+ARTEMP=45,105**: Set the internal temperature sensor alarm range from 45 to 105. 993 993 ))) 994 -))) 995 995 996 996 997 997 915 + 998 998 == 2.8 LED Indicator == 999 999 1000 1000 The LHT65 has a triple color LED which for easy showing different stage . ... ... @@ -1004,12 +1004,10 @@ 1004 1004 In a normal working state: 1005 1005 1006 1006 * For each uplink, the BLUE LED or RED LED will blink once. 1007 -BLUE LED when external sensor is connected. 925 + BLUE LED when external sensor is connected. 1008 1008 * RED LED when external sensor is not connected 1009 1009 * For each success downlink, the PURPLE LED will blink once 1010 1010 1011 - 1012 - 1013 1013 == 2.9 installation == 1014 1014 1015 1015 (% _mstvisible="1" %) ... ... @@ -1044,52 +1044,28 @@ 1044 1044 * Operating Range: -40 ~~ 125 °C 1045 1045 * Working voltage 2.35v ~~ 5v 1046 1046 1047 - 1048 - 1049 1049 = 4. Configure LHT65N via AT command or LoRaWAN downlink = 1050 1050 1051 -((( 1052 1052 Use can configure LHT65N via AT Command or LoRaWAN Downlink. 1053 -))) 1054 1054 1055 -* ((( 1056 -AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]]. 1057 -))) 967 +* AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]]. 1058 1058 1059 -* ((( 1060 -LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]] 1061 -))) 969 +* LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]] 1062 1062 1063 -((( 1064 1064 There are two kinds of commands to configure LHT65N, they are: 1065 -))) 1066 1066 1067 -* ((( 1068 -(% style="color:#4f81bd" %)**General Commands**. 1069 -))) 973 +* (% style="color:#4f81bd" %)**General Commands**. 1070 1070 1071 -((( 1072 1072 These commands are to configure: 1073 -))) 1074 1074 1075 -1. ((( 1076 -General system settings like: uplink interval. 1077 -))) 1078 -1. ((( 1079 -LoRaWAN protocol & radio-related commands. 1080 -))) 977 +1. General system settings like: uplink interval. 978 +1. LoRaWAN protocol & radio-related commands. 1081 1081 1082 -((( 1083 1083 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]] 1084 -))) 1085 1085 1086 -* ((( 1087 -(% style="color:#4f81bd" %)**Commands special design for LHT65N** 1088 -))) 982 +* (% style="color:#4f81bd" %)**Commands special design for LHT65N** 1089 1089 1090 -((( 1091 1091 These commands are only valid for LHT65N, as below: 1092 -))) 1093 1093 1094 1094 1095 1095 == 4.1 Set Transmit Interval Time == ... ... @@ -1111,8 +1111,6 @@ 1111 1111 1112 1112 * **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 1113 1113 1114 - 1115 - 1116 1116 == 4.2 Set External Sensor Mode == 1117 1117 1118 1118 Feature: Change External Sensor Mode. ... ... @@ -1134,8 +1134,6 @@ 1134 1134 1135 1135 * 0xA20702003c: Same as AT+SETCNT=60 1136 1136 1137 - 1138 - 1139 1139 == 4.3 Enable/Disable uplink Temperature probe ID == 1140 1140 1141 1141 ((( ... ... @@ -1163,8 +1163,6 @@ 1163 1163 * **0xA800** **~-~->** AT+PID=0 1164 1164 * **0xA801** **~-~->** AT+PID=1 1165 1165 1166 - 1167 - 1168 1168 == 4.4 Set Password == 1169 1169 1170 1170 Feature: Set device password, max 9 digits ... ... @@ -1211,8 +1211,6 @@ 1211 1211 1212 1212 * There is no downlink command to set to Sleep mode. 1213 1213 1214 - 1215 - 1216 1216 == 4.7 Set system time == 1217 1217 1218 1218 Feature: Set system time, unix format. [[See here for format detail.>>||anchor="H2.6.2UnixTimeStamp"]] ... ... @@ -1309,8 +1309,6 @@ 1309 1309 1310 1310 * Example: 0xA301 ~/~/Same as AT+CLRDTA 1311 1311 1312 - 1313 - 1314 1314 == 4.13 Auto Send None-ACK messages == 1315 1315 1316 1316 (% _msthash="315394" _msttexthash="51837149" _mstvisible="1" %) ... ... @@ -1329,8 +1329,6 @@ 1329 1329 1330 1330 * Example: 0x3401 ~/~/Same as AT+PNACKMD=1 1331 1331 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-** 1273 +(% _msthash="506062" _msttexthash="1187732" %) 1274 +**✓ (% style="background-color:yellow" %)USB to TTL GND <~-~->GND(%%)** 1397 1397 1276 +(% _msthash="506063" _msttexthash="1158313" %)**✓ **(% style="background-color:yellow" %)**USB to TTL RXD <~-~-> D+** 1277 + 1278 +(% _msthash="506064" _msttexthash="1175629" %)**✓ **(% style="background-color:yellow" %)**USB to TTL TXD <~-~-> A11** 1279 + 1280 +(% _msthash="506065" _msttexthash="1164696" %)**✓ **(% style="background-color:yellow" %)**USB to TTL 3.3V <~-~-> D-** 1281 + 1282 + 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 ... ... @@ -1783,8 +1783,6 @@ 1783 1783 1784 1784 * (% style="color:red" %)**E3**(%%): External Temperature Probe 1785 1785 1786 - 1787 - 1788 1788 = 8. Packing Info = 1789 1789 1790 1790 ... ... @@ -1798,14 +1798,10 @@ 1798 1798 * Device Size: 10 x 10 x 3.5 cm 1799 1799 * Device Weight: 120.5g 1800 1800 1801 - 1802 - 1803 1803 = 9. Reference material = 1804 1804 1805 1805 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0||_msthash="504975" _msttexthash="51420512"]] 1806 1806 1807 - 1808 - 1809 1809 = 10. FCC Warning = 1810 1810 1811 1811 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