Last modified by Xiaoling on 2023/07/18 10:12

From version 206.1
edited by Edwin Chen
on 2022/10/18 09:46
Change comment: There is no comment for this version
To version 210.2
edited by Xiaoling
on 2022/10/18 14:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Edwin
1 +XWiki.Xiaoling
Content
... ... @@ -62,6 +62,7 @@
62 62  * Datalog feature (Max 3328 records)
63 63  
64 64  
65 +
65 65  == 1.3 Specification ==
66 66  
67 67  
... ... @@ -87,6 +87,7 @@
87 87  * Operating Range: -55 °C ~~ 125 °C
88 88  
89 89  
91 +
90 90  = 2. Connect LHT65N to IoT Server =
91 91  
92 92  
... ... @@ -198,7 +198,6 @@
198 198  
199 199  
200 200  
201 -
202 202  == 2.4 Uplink Payload   ( Fport~=2) ==
203 203  
204 204  
... ... @@ -279,6 +279,7 @@
279 279  * 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.)
280 280  
281 281  
283 +
282 282  === 2.4.1 Decoder in TTN V3 ===
283 283  
284 284  
... ... @@ -291,7 +291,6 @@
291 291  
292 292  
293 293  
294 -
295 295  === 2.4.2 BAT-Battery Info ===
296 296  
297 297  
... ... @@ -309,6 +309,7 @@
309 309  * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
310 310  
311 311  
313 +
312 312  === 2.4.3 Built-in Temperature ===
313 313  
314 314  
... ... @@ -320,6 +320,8 @@
320 320  
321 321  * Temperature:  (0xF5C6-65536)/100=-26.18℃
322 322  
325 +
326 +
323 323  === 2.4.4 Built-in Humidity ===
324 324  
325 325  
... ... @@ -328,6 +328,7 @@
328 328  * Humidity:    0x025C/10=60.4%
329 329  
330 330  
335 +
331 331  === 2.4.5 Ext # ===
332 332  
333 333  
... ... @@ -494,11 +494,11 @@
494 494  
495 495  be used to power the external ADC sensor; user can control the power on time for this
496 496  
497 -sensor by setting:
502 +(% style="color:blue" %)**sensor by setting:**
498 498  
499 -AT+EXT=6,timeout  (% _msthash="506085" _msttexthash="8782189" _mstvisible="3" style="color:red" %)**Time to power this sensor, from 0 ~~ 65535ms**
504 +**AT+EXT=6,timeout**  (% _msthash="506085" _msttexthash="8782189" _mstvisible="3" style="color:red" %)**Time to power this sensor, from 0 ~~ 65535ms**
500 500  
501 -For example:
506 +**For example:**
502 502  
503 503  AT+EXT=6,1000 will power this sensor for 1000ms before sampling the ADC value.
504 504  
... ... @@ -542,7 +542,7 @@
542 542  [[image:image-20220927095645-1.png||height="534" width="460"]]
543 543  
544 544  
545 -**Ext=2,Temperature Sensor(TMP117):**
550 +(% style="color:blue" %)**Ext=2,Temperature Sensor(TMP117):**
546 546  
547 547  [[image:image-20220906102307-7.png]]
548 548  
... ... @@ -553,7 +553,6 @@
553 553  
554 554  
555 555  
556 -
557 557  ==== 2.4.6.5 Ext~=4 Interrupt Mode (Since Firmware v1.3) ====
558 558  
559 559  
... ... @@ -562,7 +562,7 @@
562 562  
563 563  (% style="color:blue" %)**Interrupt Mode can be used to connect to external interrupt sensors such as:**
564 564  
565 -**Case 1: Door Sensor.** 3.3v Out for such sensor is just to detect Open/Close.
569 +(% style="color:#037691" %)**Case 1: Door Sensor.** (%%)3.3v Out for such sensor is just to detect Open/Close.
566 566  
567 567   In Open State, the power consumption is the same as if there is no probe
568 568  
... ... @@ -573,7 +573,7 @@
573 573  
574 574  Ext=4,Interrupt Sensor:
575 575  
576 -(% border="2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:512px" %)
580 +(% border="1.5" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:512px" %)
577 577  |(% style="width:117px" %)(((
578 578  AT+EXT=4,1
579 579  )))|(% style="width:371px" %)(((
... ... @@ -617,6 +617,7 @@
617 617  
618 618  [[image:image-20220906101320-5.png||height="353" width="696"]]
619 619  
624 +
620 620  Ext=8, Counting Sensor ( 4 bytes):
621 621  
622 622  (% border="2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:381px" %)
... ... @@ -652,52 +652,7 @@
652 652  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)
653 653  
654 654  
655 -(% style="color:blue" %)**Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm.**
656 656  
657 -
658 -(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4**
659 -
660 -(% style="color:#037691" %)**Parameter 1**(%%):  Alarm mode:
661 -
662 -0): Cancel
663 -
664 -1): Threshold alarm
665 -
666 -2): Fluctuation alarm
667 -
668 -
669 -(% style="color:#037691" %)** Parameter 2**(%%):  Sampling time. Unit: seconds, up to 255 seconds.
670 -
671 -(% 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.**
672 -
673 -
674 -(% style="color:#037691" %) **Parameter 3 and parameter 4:**
675 -
676 -1):  If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature.
677 -
678 -Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm.
679 -
680 -
681 -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.
682 -
683 -Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm.
684 -
685 -If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued.
686 -
687 -
688 -(% style="color:blue" %)** Downlink:**
689 -
690 -0xA5 00 ~-~- AT+WMOD=0.
691 -
692 -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 )
693 -
694 -0xA5 02 0A 02 ~-~- AT+WMOD=2,10,2  (AT+WMOD = second byte, third byte, fourth byte)
695 -
696 -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.
697 -
698 -
699 -
700 -
701 701  == 2.5 Show data on Datacake ==
702 702  
703 703  
... ... @@ -760,12 +760,12 @@
760 760  
761 761  There are two methods:
762 762  
763 -**Method 1**: IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specified time range.
723 +(% style="color:blue" %)**Method 1:** (%%)IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specified time range.
764 764  
765 765  
766 -**Method 2: **Set [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]], LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.
726 +(% style="color:blue" %)**Method 2: **(%%)Set [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]], LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery.
767 767  
768 -**Note for method 2:**
728 +(% style="color:red" %)**Note for method 2:**
769 769  
770 770  * a) LHT65N will do an ACK check for data records sending to make sure every data arrive server.
771 771  * b) LHT65N will send data in **CONFIRMED Mode** when PNACKMD=1, but LHT65N won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if LHT65N gets a ACK, LHT65N will consider there is a network connection and resend all NONE-ACK Message.
... ... @@ -800,11 +800,11 @@
800 800  
801 801  
802 802  (((
803 -There are two ways to set device's time:
763 +(% style="color:blue" %)**There are two ways to set device's time:**
804 804  )))
805 805  
806 806  (((
807 -**~1. Through LoRaWAN MAC Command (Default settings)**
767 +**1.  Through LoRaWAN MAC Command (Default settings)**
808 808  )))
809 809  
810 810  (((
... ... @@ -1199,17 +1199,42 @@
1199 1199  (((
1200 1200  (% style="color:red" %)**Note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled.**
1201 1201  
1162 +
1163 +
1164 +=== 2.7.1 ALARM MODE ( Since v1.3.1 firmware) ===
1165 +
1166 +
1167 +(((
1168 +(% class="box infomessage" %)
1169 +(((
1170 +**AT+WMOD=3,**:  Enable/disable alarm mode. (0: Disabled, 1: Enabled Temperature Alarm for onboard temperature sensor)
1171 +
1172 +**AT+CITEMP=1**:  The interval between checking the alarm temperature. (In minutes)
1173 +
1174 +**AT+ARTEMP**:  Gets or sets the alarm range of the internal temperature sensor
1175 +
1176 +**AT+ARTEMP=? **:  Gets the alarm range of the internal temperature sensor(% _mstvisible="3" style="display:none" %)
1177 +
1178 +**AT+ARTEMP=45,105**:  Set the internal temperature sensor alarm range from 45 to 105.
1179 +
1180 +**AT+LEDALARM=1** :       Enable LED visual Alarm.
1181 +)))
1182 +)))
1183 +
1184 +
1202 1202  
1203 1203  )))
1204 1204  
1205 1205  (((
1206 -**AT COMMAND FOR ALARM MODE:**
1189 +=== 2.7.2 ALARM MODE ( Before v1.3.1 firmware) ===
1190 +
1191 +
1207 1207  )))
1208 1208  
1209 1209  (% _mstvisible="1" class="box infomessage" %)
1210 1210  (((
1211 1211  (((
1212 -**AT+WMOD=1**:  Enable/disable alarm mode. (0: Disabled, 1: Enabled)
1197 +**AT+WMOD=1**:  Enable/disable alarm mode. (0: Disabled, 1: Enabled Temperature Alarm for onboard temperature sensor)
1213 1213  )))
1214 1214  
1215 1215  (((
... ... @@ -1260,6 +1260,7 @@
1260 1260  * For each success downlink, the PURPLE LED will blink once
1261 1261  
1262 1262  
1248 +
1263 1263  == 2.9 installation ==
1264 1264  
1265 1265  
... ... @@ -1318,6 +1318,7 @@
1318 1318  * Working voltage 2.35v ~~ 5v
1319 1319  
1320 1320  
1307 +
1321 1321  = 4. Configure LHT65N via AT command or LoRaWAN downlink =
1322 1322  
1323 1323  
... ... @@ -1381,13 +1381,14 @@
1381 1381  
1382 1382  Format: Command Code (0x01) followed by 3 bytes time value.
1383 1383  
1384 -If the downlink payload=0100003C, it means set the END Nodes Transmit Interval to 0x00003C=60(S), while type code is 01.
1371 +If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
1385 1385  
1386 -* **Example 1**: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
1373 +* **Example 1**: Downlink Payload: 0100001E  ~/~/ Set Transmit Interval (TDC) = 30 seconds
1387 1387  
1388 -* **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
1375 +* **Example 2**: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
1389 1389  
1390 1390  
1378 +
1391 1391  == 4.2 Set External Sensor Mode ==
1392 1392  
1393 1393  
... ... @@ -1412,6 +1412,7 @@
1412 1412  * 0xA20702003c: Same as AT+SETCNT=60
1413 1413  
1414 1414  
1403 +
1415 1415  == 4.3 Enable/Disable uplink Temperature probe ID ==
1416 1416  
1417 1417  
... ... @@ -1443,6 +1443,7 @@
1443 1443  * **0xA801**     **~-~->** AT+PID=1
1444 1444  
1445 1445  
1435 +
1446 1446  == 4.4 Set Password ==
1447 1447  
1448 1448  
... ... @@ -1495,6 +1495,7 @@
1495 1495  * There is no downlink command to set to Sleep mode.
1496 1496  
1497 1497  
1488 +
1498 1498  == 4.7 Set system time ==
1499 1499  
1500 1500  
... ... @@ -1508,7 +1508,7 @@
1508 1508  
1509 1509  (% _msthash="315254" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1510 1510  
1511 -0x306007806000  ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
1502 +0x306007806000  ~/~/  Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
1512 1512  
1513 1513  
1514 1514  
... ... @@ -1550,7 +1550,7 @@
1550 1550  
1551 1551  (% _msthash="315257" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:**
1552 1552  
1553 -**0x29 0A**  ~/~/ Same as AT+SYNCTDC=0x0A
1544 +**0x29 0A**  ~/~/ Same as AT+SYNCTDC=0x0A
1554 1554  
1555 1555  
1556 1556  
... ... @@ -1601,9 +1601,10 @@
1601 1601  
1602 1602  (% style="color:#4f81bd" %)**Downlink Command: 0xA3**
1603 1603  
1604 -* Example: 0xA301  ~/~/  Same as AT+CLRDTA
1595 +* Example: 0xA301  ~/~/  Same as AT+CLRDTA
1605 1605  
1606 1606  
1598 +
1607 1607  == 4.13 Auto Send None-ACK messages ==
1608 1608  
1609 1609  
... ... @@ -1622,9 +1622,61 @@
1622 1622  
1623 1623  (% style="color:#4f81bd" %)**Downlink Command: 0x34**
1624 1624  
1625 -* Example: 0x3401 ~/~/  Same as AT+PNACKMD=1
1617 +* Example: 0x3401  ~/~/  Same as AT+PNACKMD=1
1626 1626  
1627 1627  
1620 +
1621 +== 4.14 Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm ==
1622 +
1623 +
1624 +Feature: Set internal and external temperature sensor alarms.
1625 +
1626 +(% border="1" style="background-color:#ffffcc; color:green; width:450px" %)
1627 +|(%%)(% _msthash="1231737" _msttexthash="251862" _mstvisible="6" %)**Command Example**|(%%)(% _msthash="1231738" _msttexthash="116025" _mstvisible="6" %)**Function**|(%%)(% _msthash="1231739" _msttexthash="116831" _mstvisible="6" %)**Response**
1628 +|(%%)(% style="color:#037691" %)AT+WMOD=parameter1,parameter2,parameter3,parameter4|Set internal and external temperature sensor alarms|OK
1629 +
1630 +(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4**
1631 +
1632 +(% style="color:#037691" %)**Parameter 1**(%%):  Alarm mode:
1633 +
1634 +0): Cancel
1635 +
1636 +1): Threshold alarm
1637 +
1638 +2): Fluctuation alarm
1639 +
1640 +
1641 +(% style="color:#037691" %)** Parameter 2**(%%):  Sampling time. Unit: seconds, up to 255 seconds.
1642 +
1643 +(% 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.**
1644 +
1645 +
1646 +(% style="color:#037691" %) **Parameter 3 and parameter 4:**
1647 +
1648 +1):  If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature.
1649 +
1650 +Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm.
1651 +
1652 +
1653 +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.
1654 +
1655 +Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm.
1656 +
1657 +If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued.
1658 +
1659 +
1660 +(% style="color:#4f81bd" %)**Downlink Command: 0xA5**
1661 +
1662 +0xA5 00 ~-~- AT+WMOD=0.
1663 +
1664 +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 )
1665 +
1666 +0xA5 02 0A 02 ~-~- AT+WMOD=2,10,2  (AT+WMOD = second byte, third byte, fourth byte)
1667 +
1668 +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.
1669 +
1670 +
1671 +
1628 1628  = 5. Battery & How to replace =
1629 1629  
1630 1630  
... ... @@ -2093,6 +2093,8 @@
2093 2093  
2094 2094  * (% style="color:red" %)**E3**(%%): External Temperature Probe
2095 2095  
2140 +
2141 +
2096 2096  = 8. Packing Info =
2097 2097  
2098 2098  
... ... @@ -2106,11 +2106,15 @@
2106 2106  * Device Size:  10 x 10 x 3.5 cm
2107 2107  * Device Weight: 120.5g
2108 2108  
2155 +
2156 +
2109 2109  = 9. Reference material =
2110 2110  
2111 2111  
2112 2112  * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0||_msthash="504975" _msttexthash="51420512"]]
2113 2113  
2162 +
2163 +
2114 2114  = 10. FCC Warning =
2115 2115  
2116 2116