Changes for page LHT65N -- Manual do sensor de temperatura e umidade LoRaWAN
Last modified by Xiaoling on 2023/07/18 10:12
From version 170.21
edited by Xiaoling
on 2022/06/22 11:07
on 2022/06/22 11:07
Change comment:
There is no comment for this version
To version 175.1
edited by Bei Jinggeng
on 2022/06/23 11:40
on 2022/06/23 11:40
Change comment:
Uploaded new attachment "image-20220623113959-5.png", version {1}
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 5 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Bei - Content
-
... ... @@ -18,17 +18,30 @@ 18 18 19 19 == 1.1 What is LHT65N Temperature & Humidity Sensor == 20 20 21 + 22 +((( 21 21 The Dragino LHT65N Temperature & Humidity sensor is a Long Range LoRaWAN Sensor. It includes a (% style="color:#4f81bd" %)**built-in Temperature & Humidity sensor**(%%) and has an external sensor connector to connect to an external (% style="color:#4f81bd" %)**Temperature Sensor.** 24 +))) 22 22 26 +((( 23 23 The LHT65N allows users to send data and reach extremely long ranges. It provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. It targets professional wireless sensor network applications such as irrigation systems, smart metering, smart cities, building automation, and so on. 28 +))) 24 24 30 +((( 25 25 LHT65N has a built-in 2400mAh non-chargeable battery which can be used for up to 10 years*. 32 +))) 26 26 34 +((( 27 27 LHT65N is full compatible with LoRaWAN v1.0.3 Class A protocol, it can work with a standard LoRaWAN gateway. 36 +))) 28 28 38 +((( 29 29 LHT65N supports (% style="color:#4f81bd" %)**Datalog Feature**(%%). It will record the data when there is no network coverage and users can retrieve the sensor value later to ensure no miss for every sensor reading. 40 +))) 30 30 42 +((( 31 31 *The actual battery life depends on how often to send data, please see the battery analyzer chapter. 44 +))) 32 32 33 33 34 34 == 1.2 Features == ... ... @@ -45,6 +45,10 @@ 45 45 * Tri-color LED to indicate working status 46 46 * Datalog feature 47 47 61 + 62 + 63 + 64 + 48 48 == 1.3 Specification == 49 49 50 50 ... ... @@ -69,23 +69,39 @@ 69 69 * ±2°C accuracy from -55°C to +125°C 70 70 * Operating Range: -55 °C ~~ 125 °C 71 71 89 + 90 + 91 + 92 + 72 72 = 2. Connect LHT65N to IoT Server = 73 73 74 74 == 2.1 How does LHT65N work? == 75 75 97 +((( 76 76 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. 99 +))) 77 77 101 +((( 78 78 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. 103 +))) 79 79 80 80 81 81 == 2.2 How to Activate LHT65N? == 82 82 108 +((( 83 83 The LHT65N has two working modes: 110 +))) 84 84 85 -* (% 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. 86 -* (% 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. 112 +* ((( 113 +(% 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. 114 +))) 115 +* ((( 116 +(% 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. 117 +))) 87 87 119 +((( 88 88 The LHT65N is set in deep sleep mode by default; The ACT button on the front is to switch to different modes: 121 +))) 89 89 90 90 91 91 [[image:image-20220515123819-1.png||_mstalt="430742" _mstvisible="3" height="379" width="317"]] ... ... @@ -273,6 +273,7 @@ 273 273 274 274 275 275 309 + 276 276 === 2.4.3 Built-in Temperature === 277 277 278 278 [[image:image-20220522235639-2.png||_mstalt="431756" _mstvisible="3" height="138" width="722"]] ... ... @@ -284,6 +284,8 @@ 284 284 * Temperature: (0xF5C6-65536)/100=-26.18℃ 285 285 286 286 321 + 322 + 287 287 === 2.4.4 Built-in Humidity === 288 288 289 289 [[image:image-20220522235639-4.png||_mstalt="432484" _mstvisible="3" height="138" width="722"]] ... ... @@ -291,6 +291,8 @@ 291 291 * Humidity: 0x025C/10=60.4% 292 292 293 293 330 + 331 + 294 294 === 2.4.5 Ext # === 295 295 296 296 Bytes for External Sensor: ... ... @@ -445,6 +445,7 @@ 445 445 446 446 447 447 486 + 448 448 ==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ==== 449 449 450 450 In this mode, user can connect external ADC sensor to check ADC value. The 3V3_OUT can ... ... @@ -519,6 +519,9 @@ 519 519 1. IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specify time range. 520 520 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. 521 521 561 + 562 + 563 + 522 522 === 2.6.2 Unix TimeStamp === 523 523 524 524 ... ... @@ -541,20 +541,37 @@ 541 541 542 542 === 2.6.3 Set Device Time === 543 543 586 +((( 544 544 There are two ways to set device's time: 588 +))) 545 545 590 +((( 546 546 **~1. Through LoRaWAN MAC Command (Default settings)** 592 +))) 547 547 594 +((( 548 548 User need to set SYNCMOD=1 to enable sync time via MAC command. 596 +))) 549 549 598 +((( 550 550 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). 600 +))) 551 551 602 +((( 552 552 (% 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. 604 +))) 553 553 606 +((( 607 + 608 +))) 554 554 610 +((( 555 555 **2. Manually Set Time** 612 +))) 556 556 614 +((( 557 557 User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server. 616 +))) 558 558 559 559 560 560 ... ... @@ -721,9 +721,11 @@ 721 721 (% _mstvisible="2" %) 722 722 ((( 723 723 (% _msthash="736723" _msttexthash="2005003" _mstvisible="3" %) 783 +((( 724 724 Poll Message Flag: 1: This message is a poll message reply. 725 725 ))) 726 726 ))) 787 +))) 727 727 728 728 (% _mstvisible="1" %) 729 729 * (% _mstvisible="3" %) ... ... @@ -731,17 +731,21 @@ 731 731 (% _mstvisible="4" %) 732 732 ((( 733 733 (% _msthash="1197157" _msttexthash="561548" _mstvisible="5" %) 795 +((( 734 734 Poll Message Flag is set to 1. 735 735 ))) 736 736 ))) 799 +))) 737 737 * (% _mstvisible="3" %) 738 738 ((( 739 739 (% _mstvisible="4" %) 740 740 ((( 741 741 (% _msthash="1197158" _msttexthash="9284964" _mstvisible="5" %) 805 +((( 742 742 Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands. 743 743 ))) 744 744 ))) 809 +))) 745 745 746 746 (% _mstvisible="1" %) 747 747 ((( ... ... @@ -748,12 +748,16 @@ 748 748 (% _mstvisible="2" %) 749 749 ((( 750 750 (% _msthash="736724" _msttexthash="2242344" _mstvisible="3" %) 816 +((( 751 751 818 +))) 752 752 753 753 (% _msthash="736724" _msttexthash="2242344" _mstvisible="3" %) 821 +((( 754 754 For example, in US915 band, the max payload for different DR is: 755 755 ))) 756 756 ))) 825 +))) 757 757 758 758 (% _mstvisible="1" %) 759 759 ((( ... ... @@ -760,9 +760,11 @@ 760 760 (% _mstvisible="2" %) 761 761 ((( 762 762 (% _msthash="736725" _msttexthash="1065532" _mstvisible="3" %) 832 +((( 763 763 a) DR0: max is 11 bytes so one entry of data 764 764 ))) 765 765 ))) 836 +))) 766 766 767 767 (% _mstvisible="1" %) 768 768 ((( ... ... @@ -769,9 +769,11 @@ 769 769 (% _mstvisible="2" %) 770 770 ((( 771 771 (% _msthash="736726" _msttexthash="3265665" _mstvisible="3" %) 843 +((( 772 772 b) DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes) 773 773 ))) 774 774 ))) 847 +))) 775 775 776 776 (% _mstvisible="1" %) 777 777 ((( ... ... @@ -778,9 +778,11 @@ 778 778 (% _mstvisible="2" %) 779 779 ((( 780 780 (% _msthash="736727" _msttexthash="1454115" _mstvisible="3" style="text-align: left;" %) 854 +((( 781 781 c) DR2: total payload includes 11 entries of data 782 782 ))) 783 783 ))) 858 +))) 784 784 785 785 (% _mstvisible="1" %) 786 786 ((( ... ... @@ -787,9 +787,11 @@ 787 787 (% _mstvisible="2" %) 788 788 ((( 789 789 (% _msthash="736728" _msttexthash="1483924" _mstvisible="3" style="text-align: left;" %) 865 +((( 790 790 d) DR3: total payload includes 22 entries of data. 791 791 ))) 792 792 ))) 869 +))) 793 793 794 794 (% _mstvisible="1" %) 795 795 ((( ... ... @@ -796,9 +796,11 @@ 796 796 (% _mstvisible="2" %) 797 797 ((( 798 798 (% _msthash="736729" _msttexthash="5848349" _mstvisible="3" style="text-align: left;" %) 876 +((( 799 799 If devise doesn’t have any data in the polling time. Device will uplink 11 bytes of 0 800 800 ))) 801 801 ))) 880 +))) 802 802 803 803 804 804 (% _mstvisible="1" style="text-align: left;" %) ... ... @@ -844,55 +844,86 @@ 844 844 [[image:image-20220523001219-13.png||_mstalt="451204" _mstvisible="3" height="421" style="text-align:left" width="727"]] 845 845 846 846 (% _msthash="315271" _msttexthash="12012546" _mstvisible="1" style="text-align: left;" %) 926 +((( 847 847 7FFF089801464160065F977FFF088E014B41600660097FFF0885014E41600660667FFF0875015141600662BE7FFF086B015541600665167FFF08660155416006676E7FFF085F015A41600669C67FFF0857015D4160066C1E 928 +))) 848 848 849 849 (% _msthash="315237" _msttexthash="1385839" %) 931 +((( 850 850 Where the first 11 bytes is for the first entry: 933 +))) 851 851 852 852 (% _msthash="315238" _msttexthash="274846" %) 936 +((( 853 853 7FFF089801464160065F97 938 +))) 854 854 855 855 (% _msthash="315239" _msttexthash="617435" %) 941 +((( 856 856 Ext sensor data=0x7FFF/100=327.67 943 +))) 857 857 858 858 (% _msthash="315240" _msttexthash="270543" %) 946 +((( 859 859 Temp=0x0898/100=22.00 948 +))) 860 860 861 861 (% _msthash="315241" _msttexthash="211783" %) 951 +((( 862 862 Hum=0x0146/10=32.6 953 +))) 863 863 864 864 (% _msthash="315242" _msttexthash="1569776" %) 956 +((( 865 865 poll message flag & Ext=0x41,means reply data,Ext=1 958 +))) 866 866 867 867 (% _msthash="315243" _msttexthash="1120509" %) 961 +((( 868 868 Unix time is 0x60065F97=1611030423s=21/1/19 04:27:03 963 +))) 869 869 870 870 871 871 872 872 == 2.7 Alarm Mode == 873 873 969 +((( 874 874 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. 971 +))) 875 875 973 +((( 876 876 (% style="color:red" %)Note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled. 975 +))) 877 877 977 +((( 878 878 **AT COMMAND FOR ALARM MODE:** 979 +))) 879 879 880 880 (% _mstvisible="1" class="box infomessage" %) 881 881 ((( 983 +((( 882 882 **AT+WMOD=1**: Enable/disable alarm mode. (0: Disabled, 1: Enabled) 985 +))) 883 883 987 +((( 884 884 **AT+CITEMP=1**: The interval between checking the alarm temperature. (In minutes) 989 +))) 885 885 991 +((( 886 886 **AT+ARTEMP**: Gets or sets the alarm range of the internal temperature sensor 993 +))) 887 887 995 +((( 888 888 **AT+ARTEMP=? **: Gets the alarm range of the internal temperature sensor(% _mstvisible="3" style="display:none" %) 997 +))) 889 889 999 +((( 890 890 **AT+ARTEMP=45,105**: Set the internal temperature sensor alarm range from 45 to 105. 891 891 ))) 1002 +))) 892 892 893 893 894 894 895 - 896 896 == 2.8 LED Indicator == 897 897 898 898 The LHT65 has a triple color LED which for easy showing different stage . ... ... @@ -902,7 +902,7 @@ 902 902 In a normal working state: 903 903 904 904 * For each uplink, the BLUE LED or RED LED will blink once. 905 - 1015 +BLUE LED when external sensor is connected. 906 906 * RED LED when external sensor is not connected 907 907 * For each success downlink, the PURPLE LED will blink once 908 908 ... ... @@ -948,26 +948,48 @@ 948 948 949 949 = 4. Configure LHT65N via AT command or LoRaWAN downlink = 950 950 1061 +((( 951 951 Use can configure LHT65N via AT Command or LoRaWAN Downlink. 1063 +))) 952 952 953 -* AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]]. 1065 +* ((( 1066 +AT Command Connection: See [[FAQ>>||anchor="H6.FAQ"]]. 1067 +))) 954 954 955 -* LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]] 1069 +* ((( 1070 +LoRaWAN Downlink instruction for different platforms: [[IoT LoRaWAN Server>>doc:Main.WebHome]] 1071 +))) 956 956 1073 +((( 957 957 There are two kinds of commands to configure LHT65N, they are: 1075 +))) 958 958 959 -* (% style="color:#4f81bd" %)**General Commands**. 1077 +* ((( 1078 +(% style="color:#4f81bd" %)**General Commands**. 1079 +))) 960 960 1081 +((( 961 961 These commands are to configure: 1083 +))) 962 962 963 -1. General system settings like: uplink interval. 964 -1. LoRaWAN protocol & radio-related commands. 1085 +1. ((( 1086 +General system settings like: uplink interval. 1087 +))) 1088 +1. ((( 1089 +LoRaWAN protocol & radio-related commands. 1090 +))) 965 965 1092 +((( 966 966 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]] 1094 +))) 967 967 968 -* (% style="color:#4f81bd" %)**Commands special design for LHT65N** 1096 +* ((( 1097 +(% style="color:#4f81bd" %)**Commands special design for LHT65N** 1098 +))) 969 969 1100 +((( 970 970 These commands are only valid for LHT65N, as below: 1102 +))) 971 971 972 972 973 973 == 4.1 Set Transmit Interval Time == ... ... @@ -990,6 +990,8 @@ 990 990 * **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 991 991 992 992 1125 + 1126 + 993 993 == 4.2 Set External Sensor Mode == 994 994 995 995 Feature: Change External Sensor Mode. ... ... @@ -1013,6 +1013,7 @@ 1013 1013 1014 1014 1015 1015 1150 + 1016 1016 == 4.3 Enable/Disable uplink Temperature probe ID == 1017 1017 1018 1018 ((( ... ... @@ -1042,6 +1042,7 @@ 1042 1042 1043 1043 1044 1044 1180 + 1045 1045 == 4.4 Set Password == 1046 1046 1047 1047 Feature: Set device password, max 9 digits ... ... @@ -1204,7 +1204,6 @@ 1204 1204 (% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 171px;" %)(% _msthash="1231737" _msttexthash="251862" _mstvisible="6" %)**Command Example**|=(% _mstvisible="4" style="width: 219px;" %)(% _msthash="1231738" _msttexthash="116025" _mstvisible="6" %)**Function**|=(% _mstvisible="4" style="width: 119px;" %)(% _msthash="1231739" _msttexthash="116831" _mstvisible="6" %)**Response** 1205 1205 (% _mstvisible="3" %)|(% _msthash="1231321" _msttexthash="130455" _mstvisible="4" style="width:171px" %)AT+PNACKMD=1|(% _msthash="1231322" _msttexthash="377026" _mstvisible="4" style="width:219px" %)Poll None-ACK message|(% _msthash="1231323" _msttexthash="14989" _mstvisible="4" style="width:119px" %)OK 1206 1206 1207 - 1208 1208 (% style="color:#4f81bd" %)**Downlink Command: 0x34** 1209 1209 1210 1210 * Example: 0x3401 ~/~/Same as AT+PNACKMD=1 ... ... @@ -1211,6 +1211,7 @@ 1211 1211 1212 1212 1213 1213 1349 + 1214 1214 = 5. Battery & How to replace = 1215 1215 1216 1216 == 5.1 Battery Type == ... ... @@ -1270,16 +1270,11 @@ 1270 1270 1271 1271 (% _msthash="506061" _msttexthash="170755" %)**Connection:** 1272 1272 1273 -(% _msthash="506062" _msttexthash="1187732" %) 1274 -**✓ (% style="background-color:yellow" %)USB to TTL GND <~-~->GND(%%)** 1409 +* (% style="background-color:yellow" %)**USB to TTL GND <~-~->GND** 1410 +* (% style="background-color:yellow" %)**USB to TTL RXD <~-~-> D+** 1411 +* (% style="background-color:yellow" %)**USB to TTL TXD <~-~-> A11** 1412 +* (% style="background-color:yellow" %)**USB to TTL 3.3V <~-~-> D-** 1275 1275 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 - 1283 1283 ((( 1284 1284 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. 1285 1285 ))) ... ... @@ -1625,23 +1625,23 @@ 1625 1625 **Package Includes**: 1626 1626 1627 1627 * LHT65N Temperature & Humidity Sensor x 1 1759 +* Optional external sensor 1628 1628 1629 -*Optional external sensor 1630 - 1631 - 1632 1632 **Dimension and weight**: 1633 1633 1634 1634 * Device Size: 10 x 10 x 3.5 cm 1635 - 1636 1636 * Device Weight: 120.5g 1637 1637 1638 1638 1639 1639 1768 + 1640 1640 = 9. Reference material = 1641 1641 1642 1642 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0||_msthash="504975" _msttexthash="51420512"]] 1643 1643 1644 1644 1774 + 1775 + 1645 1645 = 10. FCC Warning = 1646 1646 1647 1647 This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:
- image-20220623110706-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +689.7 KB - Content
- image-20220623110723-2.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +501.5 KB - Content
- image-20220623111949-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +1.6 MB - Content
- image-20220623112117-4.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +513.9 KB - Content
- image-20220623113959-5.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Bei - Size
-
... ... @@ -1,0 +1,1 @@ 1 +834.2 KB - Content