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

From version 198.1
edited by Bei Jinggeng
on 2022/09/06 10:35
Change comment: There is no comment for this version
To version 198.2
edited by Xiaoling
on 2022/09/06 14:22
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Bei
1 +XWiki.Xiaoling
Content
... ... @@ -16,6 +16,7 @@
16 16  
17 17  = 1. Introduction =
18 18  
19 +
19 19  == 1.1 What is LHT65N Temperature & Humidity Sensor ==
20 20  
21 21  
... ... @@ -44,6 +44,7 @@
44 44  )))
45 45  
46 46  
48 +
47 47  == 1.2 Features ==
48 48  
49 49  
... ... @@ -63,7 +63,7 @@
63 63  == 1.3 Specification ==
64 64  
65 65  
66 -**Built-in Temperature Sensor:**
68 +(% style="color:#037691" %)**Built-in Temperature Sensor:**
67 67  
68 68  * Resolution: 0.01 °C
69 69  * Accuracy Tolerance : Typ ±0.3 °C
... ... @@ -70,7 +70,7 @@
70 70  * Long Term Drift: < 0.02 °C/yr
71 71  * Operating Range: -40 ~~ 85 °C
72 72  
73 -**Built-in Humidity Sensor:**
75 +(% style="color:#037691" %)**Built-in Humidity Sensor:**
74 74  
75 75  * Resolution: 0.04 %RH
76 76  * Accuracy Tolerance : Typ ±3 %RH
... ... @@ -77,7 +77,7 @@
77 77  * Long Term Drift: < 0.02 °C/yr
78 78  * Operating Range: 0 ~~ 96 %RH
79 79  
80 -**External Temperature Sensor:**
82 +(% style="color:#037691" %)**External Temperature Sensor:**
81 81  
82 82  * Resolution: 0.0625 °C
83 83  * ±0.5°C accuracy from -10°C to +85°C
... ... @@ -87,6 +87,7 @@
87 87  
88 88  = 2. Connect LHT65N to IoT Server =
89 89  
92 +
90 90  == 2.1 How does LHT65N work? ==
91 91  
92 92  
... ... @@ -275,6 +275,7 @@
275 275  * 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.)
276 276  
277 277  
281 +
278 278  === 2.4.1 Decoder in TTN V3 ===
279 279  
280 280  
... ... @@ -308,6 +308,7 @@
308 308  * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
309 309  
310 310  
315 +
311 311  === 2.4.3 Built-in Temperature ===
312 312  
313 313  
... ... @@ -315,11 +315,13 @@
315 315  
316 316  * Temperature:  0x0ABB/100=27.47℃
317 317  
323 +
318 318  [[image:image-20220522235639-3.png||_mstalt="432120" _mstvisible="3"]]
319 319  
320 320  * Temperature:  (0xF5C6-65536)/100=-26.18℃
321 321  
322 322  
329 +
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  
338 +
331 331  === 2.4.5 Ext # ===
332 332  
333 333  
... ... @@ -486,6 +486,8 @@
486 486  * (% 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)
487 487  
488 488  
497 +
498 +
489 489  ==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ====
490 490  
491 491  
... ... @@ -495,7 +495,7 @@
495 495  
496 496  sensor by setting:
497 497  
498 -AT+EXT=6,timeout  (% _msthash="506085" _msttexthash="8782189" _mstvisible="3" style="color:red" %)Time to power this sensor, from 0 ~~ 65535ms
508 +AT+EXT=6,timeout  (% _msthash="506085" _msttexthash="8782189" _mstvisible="3" style="color:red" %)**Time to power this sensor, from 0 ~~ 65535ms**
499 499  
500 500  For example:
501 501  
... ... @@ -518,6 +518,7 @@
518 518  
519 519  When the voltage collected by ADC_IN1 is less than the minimum range, the minimum range will be used as the output; Similarly, when the collected voltage is greater than the maximum range, the maximum range will be used as the output.
520 520  
531 +
521 521  1) The minimum range is about 0.1V. Each chip has internal calibration, so this value is close to 0.1V
522 522  
523 523  [[image:image-20220628151005-5.png]]
... ... @@ -533,29 +533,32 @@
533 533  [[image:image-20220628151143-7.png]]
534 534  
535 535  
536 -==== ====
537 537  
538 538  ==== 2.4.6.4 Ext~=2 TMP117 Sensor (since v1.3) ====
539 539  
540 -Ext=2,Temperature Sensor(TMP117):
541 541  
551 +**Ext=2,Temperature Sensor(TMP117):**
552 +
542 542  [[image:image-20220906102307-7.png]]
543 543  
544 544  
545 -**Interrupt Mode and Counting Mode**
556 +(% style="color:blue" %)**Interrupt Mode and Counting Mode:**
546 546  
547 547  The external cable NE2 can be use for MOD4 and MOD8
548 548  
549 549  
550 550  
562 +
551 551  ==== 2.4.6.5 Ext~=4 Interrupt Mode (since v1.3) ====
552 552  
553 -**Note: In this mode, 3.3v output will be always ON. LHT65N will send an uplink when there is a trigger.**
554 554  
555 -**Interrupt Mode can be used to connect to external interrupt sensors such as:**
566 +(% style="color:red" %)**Note: In this mode, 3.3v output will be always ON. LHT65N will send an uplink when there is a trigger.**
556 556  
557 -Case 1:Door Sensor. 3.3v Out for such sensor is just to detect Open/Close.
558 558  
569 +(% style="color:blue" %)**Interrupt Mode can be used to connect to external interrupt sensors such as:**
570 +
571 +**Case 1: Door Sensor.** 3.3v Out for such sensor is just to detect Open/Close.
572 +
559 559   In Open State, the power consumption is the same as if there is no probe
560 560  
561 561   In Close state, the power consumption will be 3uA higher than normal.
... ... @@ -562,22 +562,23 @@
562 562  
563 563  [[image:image-20220906100852-1.png||height="205" width="377"]]
564 564  
579 +
565 565  Ext=4,Interrupt Sensor:
566 566  
567 -(% border="8" cellpadding="4" cellspacing="4" style="height:8px; width:662px" %)
568 -|(((
582 +(% border="2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:512px" %)
583 +|(% style="width:117px" %)(((
569 569  AT+EXT=4,1
570 -)))|(% style="width:503px" %)(((
585 +)))|(% style="width:371px" %)(((
571 571  Sent uplink packet in both rising and falling interrupt
572 572  )))
573 -|(((
588 +|(% style="width:117px" %)(((
574 574  AT+EXT=4,2
575 -)))|(% style="width:503px" %)(((
590 +)))|(% style="width:371px" %)(((
576 576  Sent uplink packet only in falling interrupt
577 577  )))
578 -|(((
593 +|(% style="width:117px" %)(((
579 579  AT+EXT=4,3
580 -)))|(% style="width:503px" %)(((
595 +)))|(% style="width:371px" %)(((
581 581  Sent uplink packet only in rising interrupt
582 582  )))
583 583  
... ... @@ -591,66 +591,65 @@
591 591  [[image:image-20220906101145-3.png]]
592 592  
593 593  
594 -==== ====
595 595  
610 +
596 596  ==== 2.4.6.6 Ext~=8 Counting Mode(since v1.3) ====
597 597  
598 -**Note: In this mode, 3.3v output will be always ON. LHT65N will count for every interrupt and uplink periodically.**
599 599  
614 +(% style="color:red" %)**Note: In this mode, 3.3v output will be always ON. LHT65N will count for every interrupt and uplink periodically.**
600 600  
601 -Case 1: Low power consumption Flow Sensor, such flow sensor has pulse output and the power consumption in uA level and can be powered by LHT65N.
602 602  
617 +(% style="color:blue" %)**Case 1**(%%):  Low power consumption Flow Sensor, such flow sensor has pulse output and the power consumption in uA level and can be powered by LHT65N.
618 +
603 603  [[image:image-20220906101320-4.png||height="366" width="698"]]
604 604  
605 -Case 2: Normal Flow Sensor: Such flow sensor has higher power consumption and is not suitable to be powered by LHT65N. It is powered by external power and output <3.3v pulse
606 606  
622 +(% style="color:blue" %)**Case 2**(%%):  Normal Flow Sensor: Such flow sensor has higher power consumption and is not suitable to be powered by LHT65N. It is powered by external power and output <3.3v pulse
623 +
607 607  [[image:image-20220906101320-5.png||height="353" width="696"]]
608 608  
609 609  Ext=8, Counting Sensor ( 4 bytes):
610 610  
611 -(% border="8" cellpadding="4" cellspacing="4" style="height:8px; width:662px" %)
612 -|(((
628 +(% border="2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:381px" %)
629 +|(% style="width:138px" %)(((
613 613  AT+EXT=8,0
614 -)))|(% style="width:503px" %)(((
631 +)))|(% style="width:240px" %)(((
615 615  Count at falling interrupt
616 616  )))
617 -|(((
634 +|(% style="width:138px" %)(((
618 618  AT+EXT=8,1
619 -)))|(% style="width:503px" %)(((
636 +)))|(% style="width:240px" %)(((
620 620  Count at rising interrupt
621 621  )))
622 -|(((
639 +|(% style="width:138px" %)(((
623 623  AT+SETCNT=60
624 -)))|(% style="width:503px" %)(((
641 +)))|(% style="width:240px" %)(((
625 625  Sent current count to 60
626 626  )))
627 627  
628 -
629 629  [[image:image-20220906101320-6.png]]
630 630  
631 631  
632 -A2 downlink Command:
648 +(% style="color:blue" %)**A2 downlink Command:**
633 633  
634 -A2 02: Same as AT+EXT=2 (AT+EXT= second byte)
650 +A2 02:  Same as AT+EXT=2 (AT+EXT= second byte)
635 635  
636 -A2 06 01 F4: Same as AT+EXT=6,500 (AT+EXT= second byte, third and fourth bytes)
652 +A2 06 01 F4:  Same as AT+EXT=6,500 (AT+EXT= second byte, third and fourth bytes)
637 637  
638 -A2 04 02: Same as AT+EXT=4,2 (AT+EXT= second byte, third byte)
654 +A2 04 02:  Same as AT+EXT=4,2 (AT+EXT= second byte, third byte)
639 639  
640 -A2 08 01 00: Same as AT+EXT=8,0 (AT+EXT= second byte, fourth byte)
656 +A2 08 01 00:  Same as AT+EXT=8,0 (AT+EXT= second byte, fourth byte)
641 641  
642 -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)
658 +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)
643 643  
644 644  
661 +(% style="color:blue" %)**Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm.**
645 645  
646 646  
647 -**Modified ATWOOD command for external sensor TMP117 or DS18B20 temperature alarm.**
664 +(% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4**
648 648  
666 +(% style="color:#037691" %)**Parameter 1**(%%):  Alarm mode:
649 649  
650 -AT+WMOD=parameter1,parameter2,parameter3,parameter4
651 -
652 -Parameter 1: Alarm mode:
653 -
654 654  0): Cancel
655 655  
656 656  1): Threshold alarm
... ... @@ -658,19 +658,19 @@
658 658  2): Fluctuation alarm
659 659  
660 660  
661 -Parameter 2: Sampling time. Unit: seconds, up to 255 seconds.
675 +(% style="color:#037691" %)** Parameter 2**(%%):  Sampling time. Unit: seconds, up to 255 seconds.
662 662  
663 -**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.**
677 +(% 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.**
664 664  
665 665  
666 -Parameter 3 and parameter 4:
680 +(% style="color:#037691" %) **Parameter 3 and parameter 4:**
667 667  
668 -1):If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature.
682 +1):  If Alarm Mode is set to 1: Parameter 3 and parameter 4 are valid, as before, they represent low temperature and high temperature.
669 669  
670 670  Such as AT+WMOD=1,60,45,105, it means high and low temperature alarm.
671 671  
672 672  
673 -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.
687 +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.
674 674  
675 675  Such as AT+WMOD=2,10,2,it means that it is a fluctuation alarm.
676 676  
... ... @@ -677,7 +677,7 @@
677 677  If the difference between the current collected temperature and the last Uplin is ±2 degrees, the alarm will be issued.
678 678  
679 679  
680 -Downlink:
694 +(% style="color:blue" %)** Downlink:**
681 681  
682 682  0xA5 00 ~-~- AT+WMOD=0.
683 683  
... ... @@ -688,6 +688,8 @@
688 688  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.
689 689  
690 690  
705 +
706 +
691 691  == 2.5 Show data on Datacake ==
692 692  
693 693  
... ... @@ -1237,7 +1237,6 @@
1237 1237  * RED LED when external sensor is not connected
1238 1238  * For each success downlink, the PURPLE LED will blink once
1239 1239  
1240 -
1241 1241  == 2.9 installation ==
1242 1242  
1243 1243  
... ... @@ -1294,7 +1294,6 @@
1294 1294  * Operating Range: -40 ~~ 125 °C
1295 1295  * Working voltage 2.35v ~~ 5v
1296 1296  
1297 -
1298 1298  = 4. Configure LHT65N via AT command or LoRaWAN downlink =
1299 1299  
1300 1300  
... ... @@ -1364,7 +1364,6 @@
1364 1364  
1365 1365  * **Example 2**: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
1366 1366  
1367 -
1368 1368  == 4.2 Set External Sensor Mode ==
1369 1369  
1370 1370  
... ... @@ -1388,7 +1388,6 @@
1388 1388  
1389 1389  * 0xA20702003c: Same as AT+SETCNT=60
1390 1390  
1391 -
1392 1392  == 4.3 Enable/Disable uplink Temperature probe ID ==
1393 1393  
1394 1394  
... ... @@ -1419,7 +1419,6 @@
1419 1419  * **0xA800**  **~-~->** AT+PID=0
1420 1420  * **0xA801**     **~-~->** AT+PID=1
1421 1421  
1422 -
1423 1423  == 4.4 Set Password ==
1424 1424  
1425 1425  
... ... @@ -1471,7 +1471,6 @@
1471 1471  
1472 1472  * There is no downlink command to set to Sleep mode.
1473 1473  
1474 -
1475 1475  == 4.7 Set system time ==
1476 1476  
1477 1477  
... ... @@ -1580,7 +1580,6 @@
1580 1580  
1581 1581  * Example: 0xA301 ~/~/Same as AT+CLRDTA
1582 1582  
1583 -
1584 1584  == 4.13 Auto Send None-ACK messages ==
1585 1585  
1586 1586  
... ... @@ -1601,7 +1601,6 @@
1601 1601  
1602 1602  * Example: 0x3401 ~/~/Same as AT+PNACKMD=1
1603 1603  
1604 -
1605 1605  = 5. Battery & How to replace =
1606 1606  
1607 1607  == 5.1 Battery Type ==