Changes for page LHT65N -- Manual do sensor de temperatura e umidade LoRaWAN
Last modified by Xiaoling on 2023/07/18 10:12
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -200,10 +200,9 @@ 200 200 201 201 202 202 203 +== 2.4 Uplink Payload ( Fport~=2) == 203 203 204 -== 2.4 Uplink Payload == 205 205 206 - 207 207 ((( 208 208 The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and (% _mstvisible="3" style="color:#4f81bd" %)**every 20 minutes**(%%) send one uplink by default. 209 209 ))) ... ... @@ -294,7 +294,6 @@ 294 294 295 295 296 296 297 - 298 298 === 2.4.2 BAT-Battery Info === 299 299 300 300 ... ... @@ -324,6 +324,8 @@ 324 324 325 325 * Temperature: (0xF5C6-65536)/100=-26.18℃ 326 326 325 + 326 + 327 327 === 2.4.4 Built-in Humidity === 328 328 329 329 ... ... @@ -450,7 +450,6 @@ 450 450 ))) 451 451 ))) 452 452 453 - 454 454 (% _mstvisible="1" %) 455 455 * (% _msthash="2539669" _msttexthash="857922" _mstvisible="3" %)**Battery status & **(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Built-in Humidity** 456 456 ... ... @@ -481,7 +481,6 @@ 481 481 482 482 ))) 483 483 484 - 485 485 * (% _msthash="504956" _msttexthash="245037" _mstvisible="4" %)**Status & Ext Byte** 486 486 487 487 (% border="1" cellspacing="8" style="background-color:#ffffcc; color:green; width:520px" %) ... ... @@ -494,7 +494,6 @@ 494 494 495 495 496 496 497 - 498 498 ==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ==== 499 499 500 500 ... ... @@ -502,11 +502,11 @@ 502 502 503 503 be used to power the external ADC sensor; user can control the power on time for this 504 504 505 -sensor by setting: 502 +(% style="color:blue" %)**sensor by setting:** 506 506 507 -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** 508 508 509 -For example: 506 +**For example:** 510 510 511 511 AT+EXT=6,1000 will power this sensor for 1000ms before sampling the ADC value. 512 512 ... ... @@ -550,7 +550,7 @@ 550 550 [[image:image-20220927095645-1.png||height="534" width="460"]] 551 551 552 552 553 -**Ext=2,Temperature Sensor(TMP117):** 550 +(% style="color:blue" %)**Ext=2,Temperature Sensor(TMP117):** 554 554 555 555 [[image:image-20220906102307-7.png]] 556 556 ... ... @@ -561,7 +561,6 @@ 561 561 562 562 563 563 564 - 565 565 ==== 2.4.6.5 Ext~=4 Interrupt Mode (Since Firmware v1.3) ==== 566 566 567 567 ... ... @@ -570,7 +570,7 @@ 570 570 571 571 (% style="color:blue" %)**Interrupt Mode can be used to connect to external interrupt sensors such as:** 572 572 573 -**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. 574 574 575 575 In Open State, the power consumption is the same as if there is no probe 576 576 ... ... @@ -581,7 +581,7 @@ 581 581 582 582 Ext=4,Interrupt Sensor: 583 583 584 -(% 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" %) 585 585 |(% style="width:117px" %)((( 586 586 AT+EXT=4,1 587 587 )))|(% style="width:371px" %)((( ... ... @@ -625,6 +625,7 @@ 625 625 626 626 [[image:image-20220906101320-5.png||height="353" width="696"]] 627 627 624 + 628 628 Ext=8, Counting Sensor ( 4 bytes): 629 629 630 630 (% border="2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:381px" %) ... ... @@ -660,52 +660,7 @@ 660 660 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) 661 661 662 662 663 -(% style="color:blue" %)**Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm.** 664 664 665 - 666 -(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4** 667 - 668 -(% style="color:#037691" %)**Parameter 1**(%%): Alarm mode: 669 - 670 -0): Cancel 671 - 672 -1): Threshold alarm 673 - 674 -2): Fluctuation alarm 675 - 676 - 677 -(% style="color:#037691" %)** Parameter 2**(%%): Sampling time. Unit: seconds, up to 255 seconds. 678 - 679 -(% 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.** 680 - 681 - 682 -(% style="color:#037691" %) **Parameter 3 and parameter 4:** 683 - 684 -1): If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature. 685 - 686 -Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm. 687 - 688 - 689 -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. 690 - 691 -Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm. 692 - 693 -If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued. 694 - 695 - 696 -(% style="color:blue" %)** Downlink:** 697 - 698 -0xA5 00 ~-~- AT+WMOD=0. 699 - 700 -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 ) 701 - 702 -0xA5 02 0A 02 ~-~- AT+WMOD=2,10,2 (AT+WMOD = second byte, third byte, fourth byte) 703 - 704 -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. 705 - 706 - 707 - 708 - 709 709 == 2.5 Show data on Datacake == 710 710 711 711 ... ... @@ -768,12 +768,12 @@ 768 768 769 769 There are two methods: 770 770 771 -**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. 772 772 773 773 774 -**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. 775 775 776 -**Note for method 2:** 728 +(% style="color:red" %)**Note for method 2:** 777 777 778 778 * a) LHT65N will do an ACK check for data records sending to make sure every data arrive server. 779 779 * 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. ... ... @@ -808,11 +808,11 @@ 808 808 809 809 810 810 ((( 811 -There are two ways to set device's time: 763 +(% style="color:blue" %)**There are two ways to set device's time:** 812 812 ))) 813 813 814 814 ((( 815 -** ~1. Through LoRaWAN MAC Command (Default settings)**767 +**1. Through LoRaWAN MAC Command (Default settings)** 816 816 ))) 817 817 818 818 ((( ... ... @@ -1207,17 +1207,42 @@ 1207 1207 ((( 1208 1208 (% style="color:red" %)**Note: alarm mode adds a little power consumption, and we recommend extending the normal read time when this feature is enabled.** 1209 1209 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 + 1210 1210 1211 1211 ))) 1212 1212 1213 1213 ((( 1214 -**AT COMMAND FOR ALARM MODE:** 1189 +=== 2.7.2 ALARM MODE ( Before v1.3.1 firmware) === 1190 + 1191 + 1215 1215 ))) 1216 1216 1217 1217 (% _mstvisible="1" class="box infomessage" %) 1218 1218 ((( 1219 1219 ((( 1220 -**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) 1221 1221 ))) 1222 1222 1223 1223 ((( ... ... @@ -1391,11 +1391,11 @@ 1391 1391 1392 1392 Format: Command Code (0x01) followed by 3 bytes time value. 1393 1393 1394 -If the downlink payload=0100003C, it means set the END Node ’s 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. 1395 1395 1396 -* **Example 1**: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds 1373 +* **Example 1**: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds 1397 1397 1398 -* **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 1375 +* **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 1399 1399 1400 1400 1401 1401 ... ... @@ -1522,7 +1522,7 @@ 1522 1522 1523 1523 (% _msthash="315254" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:** 1524 1524 1525 -0x306007806000 ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352 1502 +0x306007806000 ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352 1526 1526 1527 1527 1528 1528 ... ... @@ -1564,7 +1564,7 @@ 1564 1564 1565 1565 (% _msthash="315257" _msttexthash="298038" style="color:#4f81bd" %)**Downlink Command:** 1566 1566 1567 -**0x29 0A** ~/~/ Same as AT+SYNCTDC=0x0A 1544 +**0x29 0A** ~/~/ Same as AT+SYNCTDC=0x0A 1568 1568 1569 1569 1570 1570 ... ... @@ -1615,7 +1615,7 @@ 1615 1615 1616 1616 (% style="color:#4f81bd" %)**Downlink Command: 0xA3** 1617 1617 1618 -* Example: 0xA301 ~/~/ Same as AT+CLRDTA 1595 +* Example: 0xA301 ~/~/ Same as AT+CLRDTA 1619 1619 1620 1620 1621 1621 ... ... @@ -1637,10 +1637,61 @@ 1637 1637 1638 1638 (% style="color:#4f81bd" %)**Downlink Command: 0x34** 1639 1639 1640 -* Example: 0x3401 ~/~/ Same as AT+PNACKMD=1 1617 +* Example: 0x3401 ~/~/ Same as AT+PNACKMD=1 1641 1641 1642 1642 1643 1643 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 + 1644 1644 = 5. Battery & How to replace = 1645 1645 1646 1646 ... ... @@ -2109,6 +2109,8 @@ 2109 2109 2110 2110 * (% style="color:red" %)**E3**(%%): External Temperature Probe 2111 2111 2140 + 2141 + 2112 2112 = 8. Packing Info = 2113 2113 2114 2114 ... ... @@ -2122,11 +2122,15 @@ 2122 2122 * Device Size: 10 x 10 x 3.5 cm 2123 2123 * Device Weight: 120.5g 2124 2124 2155 + 2156 + 2125 2125 = 9. Reference material = 2126 2126 2127 2127 2128 2128 * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0||_msthash="504975" _msttexthash="51420512"]] 2129 2129 2162 + 2163 + 2130 2130 = 10. FCC Warning = 2131 2131 2132 2132