Changes for page LHT65N -- Manual do sensor de temperatura e umidade LoRaWAN
Last modified by Xiaoling on 2023/07/18 10:12
From version 210.1
edited by Bei Jinggeng
on 2022/10/18 10:49
on 2022/10/18 10:49
Change comment:
There is no comment for this version
To version 204.1
edited by Edwin Chen
on 2022/10/08 15:03
on 2022/10/08 15:03
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Bei1 +XWiki.Edwin - Content
-
... ... @@ -197,7 +197,7 @@ 197 197 198 198 199 199 200 -== 2.4 Uplink Payload ( Fport~=2)==200 +== 2.4 Uplink Payload == 201 201 202 202 203 203 ((( ... ... @@ -276,14 +276,18 @@ 276 276 * The 7th byte (EXT #): defines the external sensor model. 277 277 * 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.) 278 278 279 + 279 279 === 2.4.1 Decoder in TTN V3 === 280 280 281 281 282 282 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. 283 283 284 -Below is the position to put the decoder and LHT65N decoder can be download from here: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]285 +Below is the position to put the decoder and LHT65N decoder can be download from here: 285 285 286 286 288 +[[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0||_msthash="315253" _msttexthash="3509064" _mstvisible="2"]] 289 + 290 + 287 287 [[image:image-20220522234118-10.png||_mstalt="451464" _mstvisible="3" height="353" width="729"]] 288 288 289 289 ... ... @@ -305,6 +305,7 @@ 305 305 * BAT status=(0Xcba4>>14)&0xFF=11(B),very good 306 306 * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV 307 307 312 + 308 308 === 2.4.3 Built-in Temperature === 309 309 310 310 ... ... @@ -316,6 +316,7 @@ 316 316 317 317 * Temperature: (0xF5C6-65536)/100=-26.18℃ 318 318 324 + 319 319 === 2.4.4 Built-in Humidity === 320 320 321 321 ... ... @@ -323,6 +323,7 @@ 323 323 324 324 * Humidity: 0x025C/10=60.4% 325 325 332 + 326 326 === 2.4.5 Ext # === 327 327 328 328 ... ... @@ -480,6 +480,7 @@ 480 480 * (% style="color:blue" %)**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. 481 481 * (% style="color:blue" %)**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) 482 482 490 + 483 483 ==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ==== 484 484 485 485 ... ... @@ -645,8 +645,52 @@ 645 645 A2 08 02 00 00 00 3C: Same as AT+ SETCNT=60 (AT+ SETCNT = 4th byte and 5th byte and 6th byte and 7th byte) 646 646 647 647 656 +(% style="color:blue" %)**Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm.** 648 648 649 649 659 +(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4** 660 + 661 +(% style="color:#037691" %)**Parameter 1**(%%): Alarm mode: 662 + 663 +0): Cancel 664 + 665 +1): Threshold alarm 666 + 667 +2): Fluctuation alarm 668 + 669 + 670 +(% style="color:#037691" %)** Parameter 2**(%%): Sampling time. Unit: seconds, up to 255 seconds. 671 + 672 +(% style="color:red" %)**Note: When the collection time is less than 60 seconds and always exceeds the set alarm threshold, the sending interval will not be the collection time, but will be sent every 60 seconds.** 673 + 674 + 675 +(% style="color:#037691" %) **Parameter 3 and parameter 4:** 676 + 677 +1): If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature. 678 + 679 +Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm. 680 + 681 + 682 +2): If Alarm Mode is set to 2: Parameter 3 is valid, which represents the difference between the currently collected temperature and the last uploaded temperature. 683 + 684 +Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm. 685 + 686 +If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued. 687 + 688 + 689 +(% style="color:blue" %)** Downlink:** 690 + 691 +0xA5 00 ~-~- AT+WMOD=0. 692 + 693 +0xA5 01 0A 11 94 29 04 ~-~- AT+WMOD=1,10,45,105 (AT+WMOD = second byte, third byte, fourth and fifth bytes divided by 100, sixth and seventh bytes divided by 100 ) 694 + 695 +0xA5 02 0A 02 ~-~- AT+WMOD=2,10,2 (AT+WMOD = second byte, third byte, fourth byte) 696 + 697 +0xA5 FF ~-~- After the device receives it, upload the current alarm configuration (FPORT=8). Such as 01 0A 11 94 29 04 or 02 0A 02. 698 + 699 + 700 + 701 + 650 650 == 2.5 Show data on Datacake == 651 651 652 652 ... ... @@ -950,9 +950,9 @@ 950 950 ((( 951 951 [[image:image-20221006192726-1.png||height="112" width="754"]] 952 952 953 -(% class="mark" %) **No ACK Message**(%%): 1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]] feature)1005 +(% class="mark" %)No ACK Message(%%): 1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]] feature) 954 954 955 -(% class="mark" %) **Poll Message Flag**(%%): 1: This message is a poll message reply.1007 +(% class="mark" %)Poll Message Flag(%%): 1: This message is a poll message reply. 956 956 957 957 958 958 ))) ... ... @@ -1003,7 +1003,7 @@ 1003 1003 ((( 1004 1004 (% _msthash="736725" _msttexthash="1065532" _mstvisible="3" %) 1005 1005 ((( 1006 - **a) DR0:**max is 11 bytes so one entry of data1058 +a) DR0: max is 11 bytes so one entry of data 1007 1007 ))) 1008 1008 ))) 1009 1009 ))) ... ... @@ -1014,7 +1014,7 @@ 1014 1014 ((( 1015 1015 (% _msthash="736726" _msttexthash="3265665" _mstvisible="3" %) 1016 1016 ((( 1017 - **b) DR1:**max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)1069 +b) DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes) 1018 1018 ))) 1019 1019 ))) 1020 1020 ))) ... ... @@ -1025,7 +1025,7 @@ 1025 1025 ((( 1026 1026 (% _msthash="736727" _msttexthash="1454115" _mstvisible="3" style="text-align: left;" %) 1027 1027 ((( 1028 - **c) DR2:**total payload includes 11 entries of data1080 +c) DR2: total payload includes 11 entries of data 1029 1029 ))) 1030 1030 ))) 1031 1031 ))) ... ... @@ -1036,7 +1036,7 @@ 1036 1036 ((( 1037 1037 (% _msthash="736728" _msttexthash="1483924" _mstvisible="3" style="text-align: left;" %) 1038 1038 ((( 1039 - **d) DR3:**total payload includes 22 entries of data.1091 +d) DR3: total payload includes 22 entries of data. 1040 1040 ))) 1041 1041 ))) 1042 1042 ))) ... ... @@ -1047,7 +1047,7 @@ 1047 1047 ((( 1048 1048 (% _msthash="736729" _msttexthash="5848349" _mstvisible="3" style="text-align: left;" %) 1049 1049 ((( 1050 -If devise doesn 't have any data in the polling time. Device will uplink 11 bytes of 01102 +If devise doesn’t have any data in the polling time. Device will uplink 11 bytes of 0 1051 1051 ))) 1052 1052 ))) 1053 1053 ))) ... ... @@ -1148,37 +1148,17 @@ 1148 1148 ((( 1149 1149 (% style="color:red" %)**Note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled.** 1150 1150 1151 -=== **2.7.1 ALARM MODE ( Since v1.3.1 firmware)** === 1152 - 1153 -((( 1154 -(% class="box infomessage" %) 1155 -((( 1156 -**AT+WMOD=3,**: Enable/disable alarm mode. (0: Disabled, 1: Enabled Temperature Alarm for onboard temperature sensor) 1157 - 1158 -**AT+CITEMP=1**: The interval between checking the alarm temperature. (In minutes) 1159 - 1160 -**AT+ARTEMP**: Gets or sets the alarm range of the internal temperature sensor 1161 - 1162 -**AT+ARTEMP=? **: Gets the alarm range of the internal temperature sensor(% _mstvisible="3" style="display:none" %) 1163 - 1164 -**AT+ARTEMP=45,105**: Set the internal temperature sensor alarm range from 45 to 105. 1165 - 1166 -**AT+LEDALARM=1** : Enable LED visual Alarm. 1167 -))) 1168 -))) 1169 - 1170 - 1171 1171 1172 1172 ))) 1173 1173 1174 1174 ((( 1175 - ===**2.7.2ALARM MODE( Before v1.3.1 firmware)**===1207 +**AT COMMAND FOR ALARM MODE:** 1176 1176 ))) 1177 1177 1178 1178 (% _mstvisible="1" class="box infomessage" %) 1179 1179 ((( 1180 1180 ((( 1181 -**AT+WMOD=1**: Enable/disable alarm mode. (0: Disabled, 1: Enabled Temperature Alarm for onboard temperature sensor)1213 +**AT+WMOD=1**: Enable/disable alarm mode. (0: Disabled, 1: Enabled) 1182 1182 ))) 1183 1183 1184 1184 ((( ... ... @@ -1228,6 +1228,7 @@ 1228 1228 * RED LED when external sensor is not connected 1229 1229 * For each success downlink, the PURPLE LED will blink once 1230 1230 1263 + 1231 1231 == 2.9 installation == 1232 1232 1233 1233 ... ... @@ -1285,6 +1285,7 @@ 1285 1285 * Operating Range: -40 ~~ 125 °C 1286 1286 * Working voltage 2.35v ~~ 5v 1287 1287 1321 + 1288 1288 = 4. Configure LHT65N via AT command or LoRaWAN downlink = 1289 1289 1290 1290 ... ... @@ -1354,6 +1354,7 @@ 1354 1354 1355 1355 * **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 1356 1356 1391 + 1357 1357 == 4.2 Set External Sensor Mode == 1358 1358 1359 1359 ... ... @@ -1377,6 +1377,7 @@ 1377 1377 1378 1378 * 0xA20702003c: Same as AT+SETCNT=60 1379 1379 1415 + 1380 1380 == 4.3 Enable/Disable uplink Temperature probe ID == 1381 1381 1382 1382 ... ... @@ -1407,6 +1407,7 @@ 1407 1407 * **0xA800** **~-~->** AT+PID=0 1408 1408 * **0xA801** **~-~->** AT+PID=1 1409 1409 1446 + 1410 1410 == 4.4 Set Password == 1411 1411 1412 1412 ... ... @@ -1458,6 +1458,7 @@ 1458 1458 1459 1459 * There is no downlink command to set to Sleep mode. 1460 1460 1498 + 1461 1461 == 4.7 Set system time == 1462 1462 1463 1463 ... ... @@ -1513,7 +1513,7 @@ 1513 1513 1514 1514 (% _msthash="315257" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:** 1515 1515 1516 -**0x29 0A** 1554 +**0x29 0A** ~/~/ Same as AT+SYNCTDC=0x0A 1517 1517 1518 1518 1519 1519 ... ... @@ -1564,8 +1564,9 @@ 1564 1564 1565 1565 (% style="color:#4f81bd" %)**Downlink Command: 0xA3** 1566 1566 1567 -* Example: 0xA301 1605 +* Example: 0xA301 ~/~/Same as AT+CLRDTA 1568 1568 1607 + 1569 1569 == 4.13 Auto Send None-ACK messages == 1570 1570 1571 1571 ... ... @@ -1584,57 +1584,9 @@ 1584 1584 1585 1585 (% style="color:#4f81bd" %)**Downlink Command: 0x34** 1586 1586 1587 -* Example: 0x3401 ~/~/ 1626 +* Example: 0x3401 ~/~/Same as AT+PNACKMD=1 1588 1588 1589 -== 4.14 Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm == 1590 1590 1591 - 1592 -Feature: Set internal and external temperature sensor alarms. 1593 - 1594 -(% border="1" style="background-color:#ffffcc; color:green; width:450px" %) 1595 -|(%%)(% _msthash="1231737" _msttexthash="251862" _mstvisible="6" %)**Command Example**|(%%)(% _msthash="1231738" _msttexthash="116025" _mstvisible="6" %)**Function**|(%%)(% _msthash="1231739" _msttexthash="116831" _mstvisible="6" %)**Response** 1596 -|(%%)(% style="color:#037691" %)AT+WMOD=parameter1,parameter2,parameter3,parameter4|Set internal and external temperature sensor alarms|OK 1597 - 1598 -(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4** 1599 - 1600 -(% style="color:#037691" %)**Parameter 1**(%%): Alarm mode: 1601 - 1602 -0): Cancel 1603 - 1604 -1): Threshold alarm 1605 - 1606 -2): Fluctuation alarm 1607 - 1608 - 1609 -(% style="color:#037691" %)** Parameter 2**(%%): Sampling time. Unit: seconds, up to 255 seconds. 1610 - 1611 -(% style="color:red" %)**Note: When the collection time is less than 60 seconds and always exceeds the set alarm threshold, the sending interval will not be the collection time, but will be sent every 60 seconds.** 1612 - 1613 - 1614 -(% style="color:#037691" %) **Parameter 3 and parameter 4:** 1615 - 1616 -1): If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature. 1617 - 1618 -Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm. 1619 - 1620 - 1621 -2): If Alarm Mode is set to 2: Parameter 3 is valid, which represents the difference between the currently collected temperature and the last uploaded temperature. 1622 - 1623 -Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm. 1624 - 1625 -If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued. 1626 - 1627 - 1628 -(% style="color:#4f81bd" %)**Downlink Command: 0xA5** 1629 - 1630 -0xA5 00 ~-~- AT+WMOD=0. 1631 - 1632 -0xA5 01 0A 11 94 29 04 ~-~- AT+WMOD=1,10,45,105 (AT+WMOD = second byte, third byte, fourth and fifth bytes divided by 100, sixth and seventh bytes divided by 100 ) 1633 - 1634 -0xA5 02 0A 02 ~-~- AT+WMOD=2,10,2 (AT+WMOD = second byte, third byte, fourth byte) 1635 - 1636 -0xA5 FF ~-~- After the device receives it, upload the current alarm configuration (FPORT=8). Such as 01 0A 11 94 29 04 or 02 0A 02. 1637 - 1638 1638 = 5. Battery & How to replace = 1639 1639 1640 1640 ... ... @@ -1704,6 +1704,7 @@ 1704 1704 * (% style="background-color:yellow" %)**USB to TTL GND <~-~->GND** 1705 1705 * (% style="background-color:yellow" %)**USB to TTL RXD <~-~-> D+** 1706 1706 * (% style="background-color:yellow" %)**USB to TTL TXD <~-~-> A11** 1698 +* (% style="background-color:yellow" %)**USB to TTL 3.3V <~-~-> D-** 1707 1707 1708 1708 ((( 1709 1709 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. ... ... @@ -2103,6 +2103,7 @@ 2103 2103 2104 2104 * (% style="color:red" %)**E3**(%%): External Temperature Probe 2105 2105 2098 + 2106 2106 = 8. Packing Info = 2107 2107 2108 2108 ... ... @@ -2116,11 +2116,13 @@ 2116 2116 * Device Size: 10 x 10 x 3.5 cm 2117 2117 * Device Weight: 120.5g 2118 2118 2112 + 2119 2119 = 9. Reference material = 2120 2120 2121 2121 2122 2122 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0||_msthash="504975" _msttexthash="51420512"]] 2123 2123 2118 + 2124 2124 = 10. FCC Warning = 2125 2125 2126 2126