Last modified by Xiaoling on 2025/06/10 09:17

From version 51.1
edited by Mengting Qiu
on 2024/03/28 10:23
Change comment: There is no comment for this version
To version 48.1
edited by Mengting Qiu
on 2024/01/16 17:54
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -45,6 +45,7 @@
45 45  * External PIR Sensor
46 46  * Tri-color LED to indicate working status
47 47  
48 +
48 48  (% style="display:none" %)
49 49  
50 50  == 1.3 Specification ==
... ... @@ -70,6 +70,7 @@
70 70  * Cable Length : 1 meter
71 71  * Stable detect distance : 0~~3 meter
72 72  
74 +
73 73  = 2. Connect LHT65N-PIR to IoT Server =
74 74  
75 75  == 2.1 How does LHT65N-PIR work? ==
... ... @@ -96,7 +96,7 @@
96 96  
97 97  
98 98  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
99 -|=(% style="width: 167px;background-color:#4F81BD;color:white" %)**Behavior on ACT**|=(% style="width: 117px;background-color:#4F81BD;color:white" %)**Function**|=(% style="width: 226px;background-color:#4F81BD;color:white" %)**Action**
101 +|=(% style="width: 167px;background-color:#D9E2F3;color:#0070C0" %)**Behavior on **ACT|=(% style="width: 117px;background-color:#D9E2F3;color:#0070C0" %)Function|=(% style="width: 225px;background-color:#D9E2F3;color:#0070C0" %)Action
100 100  |(% style="background-color:#f2f2f2; width:167px" %)Pressing ACT between 1s < time < 3s|(% style="background-color:#f2f2f2; width:117px" %)Test uplink status|(% style="background-color:#f2f2f2; width:225px" %)(((
101 101  
102 102  
... ... @@ -110,6 +110,7 @@
110 110  )))
111 111  |(% style="background-color:#f2f2f2; width:167px" %)Fast press ACT 5 times.|(% style="background-color:#f2f2f2; width:117px" %)Deactivate Device|(% style="background-color:#f2f2f2; width:225px" %)Red led will solid on for 5 seconds. Means LHT65N-PIR is in Deep Sleep Mode.
112 112  
115 +
113 113  == 2.3 Example to join LoRaWAN network ==
114 114  
115 115  
... ... @@ -176,9 +176,9 @@
176 176  The Payload format is as below.
177 177  
178 178  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
179 -|(% colspan="6" style="background-color:#4f81bd; color:white" %)**Device Status (FPORT=5)**
182 +|(% colspan="6" style="background-color:#d9e2f3; color:#0070c0" %)**Device Status (FPORT=5)**
180 180  |(% style="background-color:#f2f2f2; width:103px" %)**Size (bytes)**|(% style="background-color:#f2f2f2; width:72px" %)**1**|(% style="background-color:#f2f2f2" %)**2**|(% style="background-color:#f2f2f2; width:91px" %)**1**|(% style="background-color:#f2f2f2; width:86px" %)**1**|(% style="background-color:#f2f2f2; width:44px" %)**2**
181 -|(% style="background-color:#f2f2f2; width:103px" %)Value|(% style="background-color:#f2f2f2; width:72px" %)Sensor Model|(% style="background-color:#f2f2f2" %)Firmware Version|(% style="background-color:#f2f2f2; width:91px" %)Frequency Band|(% style="background-color:#f2f2f2; width:86px" %)Sub-band|(% style="background-color:#f2f2f2; width:44px" %)BAT
184 +|(% style="background-color:#f2f2f2; width:103px" %)**Value**|(% style="background-color:#f2f2f2; width:72px" %)Sensor Model|(% style="background-color:#f2f2f2" %)Firmware Version|(% style="background-color:#f2f2f2; width:91px" %)Frequency Band|(% style="background-color:#f2f2f2; width:86px" %)Sub-band|(% style="background-color:#f2f2f2; width:44px" %)BAT
182 182  
183 183  Example parse in TTNv3
184 184  
... ... @@ -246,17 +246,17 @@
246 246  After each uplink, the (% style="color:blue" %)**BLUE LED**(%%) will blink once.
247 247  
248 248  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:390px" %)
249 -|=(% style="width: 60px;background-color:#4F81BD;color:white" %)(((
252 +|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)(((
250 250  **Size(bytes)**
251 -)))|=(% style="width: 30px;background-color:#4F81BD;color:white" %)(((
254 +)))|=(% style="width: 30px;background-color:#D9E2F3;color:#0070C0" %)(((
252 252  **2**
253 -)))|=(% style="width: 100px;background-color:#4F81BD;color:white" %)(((
256 +)))|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)(((
254 254  **2**
255 -)))|=(% style="width: 100px;background-color:#4F81BD;color:white" %)(((
258 +)))|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)(((
256 256  **2**
257 -)))|=(% style="width: 50px;background-color:#4F81BD;color:white" %)(((
260 +)))|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)(((
258 258  **1**
259 -)))|=(% style="width: 50px;background-color:#4F81BD;color:white" %)(((
262 +)))|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)(((
260 260  **4**
261 261  )))
262 262  |(% style="width:97px" %)(((
... ... @@ -282,6 +282,7 @@
282 282  * The 8^^th^^ byte: Alarm Bit (if this uplink is from periodically or movement)
283 283  * The 9^^th^^ ~~ 11^^st^^  byte: Movement Detect Count.
284 284  
288 +
285 285  === 2.5.1 Decoder in TTN V3 ===
286 286  
287 287  
... ... @@ -299,9 +299,9 @@
299 299  These two bytes of BAT include the battery state and the actually voltage
300 300  
301 301  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:477px" %)
302 -|=(% style="width: 69px; background-color:#4F81BD;color:white" %)(((
306 +|=(% style="width: 69px; background-color:#D9E2F3;color:#0070C0" %)(((
303 303  **Bit(bit)**
304 -)))|=(% style="width: 253px;background-color:#4F81BD;color:white" %)[15:14]|=(% style="width: 155px;background-color:#4F81BD;color:white" %)[13:0]
308 +)))|=(% style="width: 253px;background-color:#D9E2F3;color:#0070C0" %)[15:14]|=(% style="width: 155px;background-color:#D9E2F3;color:#0070C0" %)[13:0]
305 305  |(% style="width:66px" %)(((
306 306  Value
307 307  )))|(% style="width:250px" %)(((
... ... @@ -320,6 +320,7 @@
320 320  * BAT status=(0xcba4>>14)&0xFF=11(B),very good
321 321  * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
322 322  
327 +
323 323  === 2.5.3 Built-in Temperature ===
324 324  
325 325  
... ... @@ -331,6 +331,7 @@
331 331  
332 332  * Temperature:  (0xF5C6-65536)/100=-26.18℃
333 333  
339 +
334 334  === 2.5.4 Built-in Humidity ===
335 335  
336 336  
... ... @@ -338,6 +338,7 @@
338 338  
339 339  * Humidity:    0x025C/10=60.4%
340 340  
347 +
341 341  === 2.5.5 Ext value ===
342 342  
343 343  ==== 2.5.5.1 Ext~=0x0E, PIR Sensor ====
... ... @@ -354,15 +354,15 @@
354 354  Bit0 of byte 8th shows if this uplink is generate by PIR activity.
355 355  
356 356  (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:393px" %)
357 -|=(% style="width: 107px; background-color:#4F81BD;color:white" %)(((
364 +|=(% style="width: 107px; background-color:#D9E2F3;color:#0070C0" %)(((
358 358  **The 8^^th^^ byte**
359 -)))|=(% style="width: 73px; background-color:#4F81BD;color:white" %)(((
366 +)))|=(% style="width: 73px; background-color:#D9E2F3;color:#0070C0" %)(((
360 360  **Bit 1~~7**
361 -)))|=(% style="width: 213px; background-color:#4F81BD;color:white" %)(((
368 +)))|=(% style="width: 213px; background-color:#D9E2F3;color:#0070C0" %)(((
362 362  **Bit 0**
363 363  )))
364 364  |(% style="width:106px" %)(((
365 -Value
372 +**Value**
366 366  )))|(% style="width:71px" %)(((
367 367  Reserve
368 368  )))|(% style="width:211px" %)(((
... ... @@ -603,9 +603,12 @@
603 603  
604 604  In a normal working state:
605 605  
606 -* For each uplink, the (% style="color:red" %)**RED LED**(%%) will blink once.
607 -* For each success downlink, the (% style="color:purple" %)**PURPLE LED**(%%) will blink once.
613 +* For each uplink, the (% style="color:blue" %)**BLUE LED**(%%) or (% style="color:red" %)**RED LED**(%%) will blink once.
614 +(% style="color:blue" %)**BLUE LED**(%%) when external sensor is connected.
615 +* (% style="color:red" %)**RED LED**(%%) when external sensor is not connected
616 +* For each success downlink, the (% style="color:purple" %)**PURPLE LED**(%%) will blink once
608 608  
618 +
609 609  == 2.9 installation ==
610 610  
611 611  
... ... @@ -630,6 +630,7 @@
630 630  
631 631  * 5. Do not install more than one (2 or above) Wireless PIR in the same detection space (like at the same room).
632 632  
643 +
633 633  = 3. Sensors and Accessories =
634 634  
635 635  == 3.1 E2 Extension Cable ==
... ... @@ -661,6 +661,7 @@
661 661  
662 662  * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>url:http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
663 663  
675 +
664 664  == 4.2 General Commands ==
665 665  
666 666  
... ... @@ -687,8 +687,8 @@
687 687  
688 688  (% style="color:#4f81bd" %)**AT Command: **
689 689  
690 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:501px" %)
691 -|(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:166px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:180px" %)**Response**
702 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:501px" %)
703 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:166px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:180px" %)**Response**
692 692  |(% style="width:155px" %)AT+TDC=?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)30000 OK the interval is 30000ms = 30s
693 693  |(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)OK Set transmit interval to 60000ms = 60 seconds
694 694  
... ... @@ -702,6 +702,7 @@
702 702  
703 703  * **Example 2**: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
704 704  
717 +
705 705  === 4.3.2 Get Device Status ===
706 706  
707 707  
... ... @@ -719,8 +719,8 @@
719 719  
720 720  (% style="color:#4f81bd" %)**AT Command: **
721 721  
722 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:372px" %)
723 -|(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:128px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:89px" %)**Response**
735 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:372px" %)
736 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:128px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:89px" %)**Response**
724 724  |(% style="width:155px" %)AT+PWORD=?|(% style="width:124px" %)Show password|(% style="width:86px" %)(((
725 725  123456
726 726  
... ... @@ -744,8 +744,8 @@
744 744  
745 745  (% style="color:#4f81bd" %)**AT Command: **
746 746  
747 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:513px" %)
748 -|(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:140px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:218px" %)**Response**
760 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:513px" %)
761 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:140px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:218px" %)**Response**
749 749  |(% style="width:155px" %)AT+SLEEP|(% style="width:139px" %)Set to sleep mode|(% style="width:213px" %)(((
750 750  Clear all stored sensor data…
751 751  
... ... @@ -756,6 +756,7 @@
756 756  
757 757  * There is no downlink command to set to Sleep mode.
758 758  
772 +
759 759  === 4.3.5 Set UOA (Uplink on Activity) ===
760 760  
761 761  
... ... @@ -776,9 +776,10 @@
776 776  
777 777  When followed by 3 bytes, the first byte is 01, and the second and third bytes are Calm Down Time.
778 778  
779 -* (% style="color:#037691" %)**A1 00    **(%%)** ==>    **AT+UOA=0**     **
780 -* (% style="color:#037691" %)**A1 01 00 02  **(%%)** ==>    **AT+UOA=1,2
793 +* (% style="color:#037691" %)**A1 00    **(%%)** ==>  AT+UOA=0     **
794 +* (% style="color:#037691" %)**A1 01 00 02  **(%%)** ==>  AT+UOA=1,2**
781 781  
796 +
782 782  === 4.3.6 Get data ===
783 783  
784 784  
... ... @@ -786,9 +786,11 @@
786 786  
787 787  (% style="color:#4f81bd" %)**AT Command:**
788 788  
789 -* **AT+GETSENSORVALUE=0**      ~/~/ The serial port gets the reading of the current sensor
790 -* **AT+GETSENSORVALUE=1**      ~/~/  The serial port gets the current sensor reading and uploads it.
804 + **AT+GETSENSORVALUE=0**      ~/~/ The serial port gets the reading of the current sensor
791 791  
806 + **AT+GETSENSORVALUE=1**      ~/~/  The serial port gets the current sensor reading and uploads it.
807 +
808 +
792 792  = 5. Battery & Power Consumption =
793 793  
794 794  
... ... @@ -806,7 +806,7 @@
806 806  * Update with new features.
807 807  * Fix bugs.
808 808  
809 -Firmware and changelog can be downloaded from : **[[Firmware download link>>https://www.dropbox.com/sh/g99v0fxcltn9r1y/AAB_TCg_9QRfMlVYDReneEJCa/LHT65N?dl=0&subfolder_nav_tracking=1]]**
826 +Firmware and changelog can be downloaded from : **[[Firmware download link>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]**
810 810  
811 811  Methods to Update Firmware:
812 812  
... ... @@ -813,12 +813,21 @@
813 813  * (Recommanded way) OTA firmware update via wireless: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/>>url:http://wiki.dragino.com/xwiki/bin/view/Main/Firmware%20OTA%20Update%20for%20Sensors/]]
814 814  * Update through UART TTL interface. **[[Instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/UART%20Access%20for%20LoRa%20ST%20v4%20base%20model/#H1.LoRaSTv4baseHardware]]**.
815 815  
833 +
816 816  = 7. FAQ =
817 817  
818 818  == 7.1 How to use AT Command? ==
819 819  
820 -Refer this link for [[UART Hardware Connection>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H6.1HowtoconnecttoLHT65NUARTinterface3F]].
821 821  
839 +LHT65N-PIR supports AT Command set.User can use a USB to TTL adapter plus the Program Cable to connect to LHT65 for using AT command, as below.
840 +
841 +
842 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220615153355-1.png||_mstalt="430222"]]
843 +
844 +
845 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@1655802313617-381.png||_mstalt="293917"]]
846 +
847 +
822 822  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-PIR. The AT commands are disable by default and need to enter password (default:(% style="color:green" %)**123456**(% style="color:red" %))(%%) 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.
823 823  
824 824  [[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220615154519-3.png||_mstalt="431925" height="672" width="807"]]
... ... @@ -871,11 +871,47 @@
871 871  [[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220615154519-3.png||_mstalt="431925" height="672" width="807"]]
872 872  
873 873  
874 -== 7.4 How to upgrade firmware? ==
900 +== 7.4 How to use TTL-USB to connect PC to upgrade firmware? ==
875 875  
876 -Please check [[update instruction>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LHT65N%20LoRaWAN%20Temperature%20%26%20Humidity%20Sensor%20Manual/#H6.5Howtoupgradefirmware3F]].
877 877  
903 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220615153355-1.png||_mstalt="430222"]]
878 878  
905 +
906 +(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer  first.
907 +
908 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220615170542-5.png||_mstalt="430638"]]
909 +
910 +
911 +(% _mstmutation="1" style="color:blue" %)**Step2**(%%):wiring method.(% style="display:none" %)
912 +
913 +First connect the four lines;(% style="display:none" %)
914 +
915 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220621170938-1.png||_mstalt="431340" height="413" width="419"]],(% style="display:none" %)
916 +
917 +
918 +Then use DuPont cable to short circuit port3 and port1, and then release them, so that the device enters bootlaod mode.
919 +
920 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220621170938-2.png||_mstalt="431704"]]
921 +
922 +
923 +(% style="color:blue" %)**Step3:**(%%)Select the device port to be connected, baud rate and bin file to be downloaded.
924 +
925 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220615171334-6.png||_mstalt="431028"]]
926 +
927 +
928 +Click the (% style="color:blue" %)**start**(%%) button to start the firmware upgrade.
929 +
930 +
931 +When this interface appears, it indicates that the download has been completed.
932 +
933 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220620160723-8.png||_mstalt="430703"]]
934 +
935 +
936 +Finally, unplug the DuPont cable on port4, and then use the DuPont cable to short circuit port3 and port1 to reset the device.
937 +
938 +[[image:Main.User Manual for LoRaWAN End Nodes.LHT65N-E5 LoRaWAN Temperature_Humidity & Illuminance Sensor User Manual.WebHome@image-20220615154519-3.png||_mstalt="431925" height="672" width="807"]]
939 +
940 +
879 879  = 8. Order Info =
880 880  
881 881  
... ... @@ -892,6 +892,7 @@
892 892  * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
893 893  * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
894 894  
957 +
895 895  = 9. Packing Info =
896 896  
897 897  
... ... @@ -899,11 +899,13 @@
899 899  
900 900  * LHT65N-PIR Temperature/Humidity/PIR Sensor x 1
901 901  
965 +
902 902  = 10. Reference material =
903 903  
904 904  
905 905  * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0]]
906 906  
971 +
907 907  = 11. FCC Warning =
908 908  
909 909  
... ... @@ -912,3 +912,6 @@
912 912  (1) This device may not cause harmful interference;
913 913  
914 914  (2) this device must accept any interference received, including interference that may cause undesired operation.
980 +
981 +
982 +