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

From version 50.1
edited by Edwin Chen
on 2024/01/28 20:01
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
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Edwin
1 +XWiki.ting
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" %)(((
... ... @@ -608,6 +608,7 @@
608 608  * (% style="color:red" %)**RED LED**(%%) when external sensor is not connected
609 609  * For each success downlink, the (% style="color:purple" %)**PURPLE LED**(%%) will blink once
610 610  
618 +
611 611  == 2.9 installation ==
612 612  
613 613  
... ... @@ -632,6 +632,7 @@
632 632  
633 633  * 5. Do not install more than one (2 or above) Wireless PIR in the same detection space (like at the same room).
634 634  
643 +
635 635  = 3. Sensors and Accessories =
636 636  
637 637  == 3.1 E2 Extension Cable ==
... ... @@ -663,6 +663,7 @@
663 663  
664 664  * LoRaWAN Downlink.  Instruction for different platforms: See [[IoT LoRaWAN Server>>url:http://wiki.dragino.com/xwiki/bin/view/Main/]] section.
665 665  
675 +
666 666  == 4.2 General Commands ==
667 667  
668 668  
... ... @@ -689,8 +689,8 @@
689 689  
690 690  (% style="color:#4f81bd" %)**AT Command: **
691 691  
692 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:501px" %)
693 -|(% 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**
694 694  |(% style="width:155px" %)AT+TDC=?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)30000 OK the interval is 30000ms = 30s
695 695  |(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)OK Set transmit interval to 60000ms = 60 seconds
696 696  
... ... @@ -704,6 +704,7 @@
704 704  
705 705  * **Example 2**: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
706 706  
717 +
707 707  === 4.3.2 Get Device Status ===
708 708  
709 709  
... ... @@ -721,8 +721,8 @@
721 721  
722 722  (% style="color:#4f81bd" %)**AT Command: **
723 723  
724 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:372px" %)
725 -|(% 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**
726 726  |(% style="width:155px" %)AT+PWORD=?|(% style="width:124px" %)Show password|(% style="width:86px" %)(((
727 727  123456
728 728  
... ... @@ -746,8 +746,8 @@
746 746  
747 747  (% style="color:#4f81bd" %)**AT Command: **
748 748  
749 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:513px" %)
750 -|(% 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**
751 751  |(% style="width:155px" %)AT+SLEEP|(% style="width:139px" %)Set to sleep mode|(% style="width:213px" %)(((
752 752  Clear all stored sensor data…
753 753  
... ... @@ -758,6 +758,7 @@
758 758  
759 759  * There is no downlink command to set to Sleep mode.
760 760  
772 +
761 761  === 4.3.5 Set UOA (Uplink on Activity) ===
762 762  
763 763  
... ... @@ -778,9 +778,10 @@
778 778  
779 779  When followed by 3 bytes, the first byte is 01, and the second and third bytes are Calm Down Time.
780 780  
781 -* (% style="color:#037691" %)**A1 00    **(%%)** ==>    **AT+UOA=0**     **
782 -* (% 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**
783 783  
796 +
784 784  === 4.3.6 Get data ===
785 785  
786 786  
... ... @@ -788,9 +788,11 @@
788 788  
789 789  (% style="color:#4f81bd" %)**AT Command:**
790 790  
791 -* **AT+GETSENSORVALUE=0**      ~/~/ The serial port gets the reading of the current sensor
792 -* **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
793 793  
806 + **AT+GETSENSORVALUE=1**      ~/~/  The serial port gets the current sensor reading and uploads it.
807 +
808 +
794 794  = 5. Battery & Power Consumption =
795 795  
796 796  
... ... @@ -808,7 +808,7 @@
808 808  * Update with new features.
809 809  * Fix bugs.
810 810  
811 -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/]]**
812 812  
813 813  Methods to Update Firmware:
814 814  
... ... @@ -815,12 +815,21 @@
815 815  * (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/]]
816 816  * 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]]**.
817 817  
833 +
818 818  = 7. FAQ =
819 819  
820 820  == 7.1 How to use AT Command? ==
821 821  
822 -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]].
823 823  
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 +
824 824  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.
825 825  
826 826  [[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"]]
... ... @@ -873,11 +873,47 @@
873 873  [[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"]]
874 874  
875 875  
876 -== 7.4 How to upgrade firmware? ==
900 +== 7.4 How to use TTL-USB to connect PC to upgrade firmware? ==
877 877  
878 -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]].
879 879  
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"]]
880 880  
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 +
881 881  = 8. Order Info =
882 882  
883 883  
... ... @@ -894,6 +894,7 @@
894 894  * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**IN865**(%%): LoRaWAN IN865 band
895 895  * (% style="color:#4f81bd" %)** **(% _mstmutation="1" style="color:red" %)**CN470**(%%): LoRaWAN CN470 band
896 896  
957 +
897 897  = 9. Packing Info =
898 898  
899 899  
... ... @@ -901,11 +901,13 @@
901 901  
902 902  * LHT65N-PIR Temperature/Humidity/PIR Sensor x 1
903 903  
965 +
904 904  = 10. Reference material =
905 905  
906 906  
907 907  * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0]]
908 908  
971 +
909 909  = 11. FCC Warning =
910 910  
911 911  
... ... @@ -914,3 +914,6 @@
914 914  (1) This device may not cause harmful interference;
915 915  
916 916  (2) this device must accept any interference received, including interference that may cause undesired operation.
980 +
981 +
982 +