<
From version < 55.2 >
edited by Xiaoling
on 2022/05/23 11:28
To version < 56.1 >
edited by Xiaoling
on 2022/05/23 11:53
>
Change comment: Uploaded new attachment "image-20220523115324-1.jpeg", version {1}

Summary

Details

Page properties
Content
... ... @@ -7,6 +7,8 @@
7 7  
8 8  {{toc/}}
9 9  
10 +
11 +
10 10  = 1.Introduction =
11 11  
12 12  == 1.1 What is LHT65N Temperature & Humidity Sensor ==
... ... @@ -98,7 +98,7 @@
98 98  Assume the LPS8N is already set to connect to [[TTN V3 network>>url:https://eu1.cloud.thethings.network]], So it provides network coverage for LHT65N. Next we need to add the LHT65N device in TTN V3:
99 99  
100 100  
101 -=== **2.3.1 Step 1**: Create Device n TTN ===
103 +=== 2.3.1 Step 1: Create Device n TTN ===
102 102  
103 103  Create a device in TTN V3 with the OTAA keys from LHT65N.
104 104  
... ... @@ -135,7 +135,7 @@
135 135  [[image:image-20220522233300-8.png]]
136 136  
137 137  
138 -== Uplink Payload: ==
140 +== 2.4 Uplink Payload ==
139 139  
140 140  The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and(% class="mark" %) every 20 minutes(%%) send one uplink by default.
141 141  
... ... @@ -142,7 +142,7 @@
142 142  After each uplink, the (% class="mark" %)BLUE LED(%%) will blink once.
143 143  
144 144  
145 -(% style="width:572px" %)
147 +(% border="1" style="width:572px" %)
146 146  |(% style="width:106px" %)**Size(bytes)**|(% style="width:71px" %)**2**|(% style="width:128px" %)**2**|(% style="width:103px" %)**2**|(% style="width:72px" %)**1**|(% style="width:89px" %)**4**
147 147  |(% style="width:106px" %)**Value**|(% style="width:71px" %)[[BAT>>path:#Battery]]|(% style="width:128px" %)(((
148 148  [[Built-In>>path:#SHT20_Temperature]]
... ... @@ -158,7 +158,7 @@
158 158  * The 7th byte (EXT #): defines the external sensor model.
159 159  * The 8^^th^^ ~~ 11^^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.)
160 160  
161 -=== Decoder in TTN V3 ===
163 +=== 2.4.1 Decoder in TTN V3 ===
162 162  
163 163  When the uplink payload arrives TTNv3, it shows HEX format and not friendly to read. We can add LHT65N decoder in TTNv3 for friendly reading.
164 164  
... ... @@ -169,7 +169,7 @@
169 169  [[image:image-20220522234118-10.png]]
170 170  
171 171  
172 -=== BAT-Battery Info ===
174 +=== 2.4.2 BAT-Battery Info ===
173 173  
174 174  These two bytes of BAT include the battery state and the actually voltage
175 175  
... ... @@ -194,7 +194,7 @@
194 194  * BAT status=(0Xcba4>>14)&0xFF=11(B),very good
195 195  * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
196 196  
197 -=== Built-in Temperature ===
199 +=== 2.4.3 Built-in Temperature ===
198 198  
199 199  [[image:image-20220522235639-2.png]]
200 200  
... ... @@ -204,13 +204,13 @@
204 204  
205 205  * Temperature:  (0xF5C6-65536)/100=-26.18℃
206 206  
207 -=== Built-in Humidity ===
209 +=== 2.4.4 Built-in Humidity ===
208 208  
209 209  [[image:image-20220522235639-4.png]]
210 210  
211 211  * Humidity:    0x025C/10=60.4%
212 212  
213 -=== Ext # ===
215 +=== 2.4.5 Ext # ===
214 214  
215 215  Bytes for External Sensor:
216 216  
... ... @@ -219,19 +219,16 @@
219 219  |(% style="width:139px" %)0x01|(% style="width:484px" %)Sensor E3, Temperature Sensor
220 220  |(% style="width:139px" %)0x09|(% style="width:484px" %)Sensor E3, Temperature Sensor, Datalog Mod
221 221  
222 -=== Ext value ===
224 +=== 2.4.6 Ext value ===
223 223  
224 -==== Ext~=1, E3 Temperature Sensor ====
226 +==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ====
225 225  
226 226  [[image:image-20220522235639-5.png]]
227 227  
228 -
229 229  * DS18B20 temp=0x0ADD/100=27.81℃
230 230  
231 231  The last 2 bytes of data are meaningless
232 232  
233 -
234 -
235 235  [[image:image-20220522235639-6.png]]
236 236  
237 237  * External temperature= (0xF54F-65536)/100=-27.37℃
... ... @@ -238,16 +238,15 @@
238 238  
239 239  The last 2 bytes of data are meaningless
240 240  
241 -
242 242  If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃
243 243  
244 244  
245 -==== Ext~=9, E3 sensor with Unix Timestamp ====
243 +==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ====
246 246  
247 247  Timestamp mode is designed for LHT65N with E3 probe, it will send the uplink payload with Unix timestamp. With the limitation of 11 bytes (max distance of AU915/US915/AS923 band), the time stamp mode will be lack of BAT voltage field, instead, it shows the battery status. The payload is as below:
248 248  
249 249  
250 -(% style="width:697px" %)
248 +(% border="1" style="width:697px" %)
251 251  |(% style="width:96px" %)**Size(bytes)**|(% style="width:164px" %)**2**|(% style="width:104px" %)**2**|(% style="width:106px" %)**2**|(% style="width:108px" %)**1**|(% style="width:116px" %)**4**
252 252  |(% style="width:96px" %)**Value**|(% style="width:164px" %)[[External temperature>>path:#DS18b20_value]]|(% style="width:104px" %)(((
253 253  [[Built-In>>path:#SHT20_Temperature]]
... ... @@ -265,9 +265,9 @@
265 265  [[Time Stamp>>path:#Unix_Time_Stamp]]
266 266  )))
267 267  
268 -* **Battery status & **[[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Built-in Humidity**>>path:#SHT20_Humidity]]
266 +* **Battery status & **[[(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Built-in Humidity**>>path:#SHT20_Humidity]]
269 269  
270 -(% style="width:587px" %)
268 +(% border="1" style="width:587px" %)
271 271  |Bit(bit)|(% style="width:280px" %)[15:14]|(% style="width:136px" %)[11:0]
272 272  |Value|(% style="width:280px" %)(((
273 273  BAT Status
... ... @@ -287,7 +287,7 @@
287 287  
288 288  * **Status & Ext Byte**
289 289  
290 -(% style="width:732px" %)
288 +(% border="1" style="width:732px" %)
291 291  |(% style="width:128px" %)**Bits**|(% style="width:102px" %)**7**|(% style="width:145px" %)**6**|(% style="width:117px" %)**5**|(% style="width:147px" %)**4**|(% style="width:90px" %)**[3:0]**
292 292  |(% style="width:128px" %)**Status & Ext**|(% style="width:102px" %)Not Defined|(% style="width:145px" %)Poll Message Flag|(% style="width:117px" %)Sync time OK|(% style="width:147px" %)Unix Time Request|(% style="width:90px" %)(((
293 293  Ext:
... ... @@ -299,11 +299,10 @@
299 299  * Sync time OK: 1: Set time ok,0: N/A. After time SYNC request is sent, LHT65N will set this bit to 0 until got the time stamp from the application server.
300 300  * 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)
301 301  
302 -== Show data on Datacake ==
300 +== 2.5 Show data on Datacake ==
303 303  
304 304  Datacake IoT platform provides a human-friendly interface to show the sensor data, once we have sensor data in TTN V3, we can use Datacake to connect to TTN V3 and see the data in Datacake. Below are the steps:
305 305  
306 -
307 307  **Step 1**: Be sure that your device is programmed and properly connected to the LoRaWAN network.
308 308  
309 309  **Step 2**: Configure your Application to forward data to Datacake you will need to add integration. Go to TTN V3 Console ~-~-> Applications ~-~-> Integrations ~-~-> Add Integrations.
... ... @@ -328,11 +328,11 @@
328 328  [[image:image-20220523000825-10.png||height="432" width="762"]]
329 329  
330 330  
331 -== Datalog Feature ==
328 +== 2.6 Datalog Feature ==
332 332  
333 333  This feature is always enabled. When user wants to retrieve the sensor value, he can send a poll command from the IoT platform to ask LHT65N to send the value in the required time slot.
334 334  
335 -=== Unix TimeStamp ===
332 +=== 2.6.1 Unix TimeStamp ===
336 336  
337 337  LHT65N uses Unix TimeStamp format based on
338 338  
... ... @@ -343,12 +343,12 @@
343 343  
344 344  Below is the converter example
345 345  
346 -[[image:image-20220523001219-12.png||height="353" width="853"]]
343 +[[image:image-20220523001219-12.png||height="302" width="730"]]
347 347  
348 348  So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25
349 349  
350 350  
351 -=== Set Device Time ===
348 +=== 2.6.2 Set Device Time ===
352 352  
353 353  There are two ways to set device’s time:
354 354  
... ... @@ -366,12 +366,12 @@
366 366  User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server.
367 367  
368 368  
369 -=== Poll sensor value ===
366 +=== 2.6.3 Poll sensor value ===
370 370  
371 371  User can poll sensor value based on timestamps from the server. Below is the downlink command.
372 372  
373 373  
374 -(% style="width:454px" %)
371 +(% border="1" style="width:454px" %)
375 375  |(% style="width:69px" %)1byte|(% style="width:129px" %)4bytes|(% style="width:134px" %)4bytes|(% style="width:119px" %)1byte
376 376  |(% style="width:69px" %)31|(% style="width:129px" %)Timestamp start|(% style="width:134px" %)Timestamp end|(% style="width:119px" %)Uplink Interval
377 377  
... ... @@ -385,7 +385,7 @@
385 385  Uplink Internal =5s,means LHT65N will send one packet every 5s. range 5~~255s.
386 386  
387 387  
388 -=== Datalog Uplink payload ===
385 +=== 2.6.4 Datalog Uplink payload ===
389 389  
390 390  The Datalog poll reply uplink will use below payload format.
391 391  
... ... @@ -392,6 +392,7 @@
392 392  
393 393  Retrieval data payload
394 394  
392 +(% border="1" %)
395 395  |**Size(bytes)**|**2**|**2**|**2**|**1**|**4**
396 396  |**Value**|[[External sensor data>>path:#Extension_sensor_value]]|(((
397 397  [[Built-In>>path:#SHT20_Temperature]]
... ... @@ -410,6 +410,7 @@
410 410  Poll message flag & Ext
411 411  
412 412  
411 +(% border="1" %)
413 413  |**Bits**|**7**|**6**|**5**|**4**|**[3:0]**
414 414  |**Status & Ext**|Not Defined|Poll Message Flag|Sync time OK|Unix Time Request|(((
415 415  Ext:
... ... @@ -469,7 +469,7 @@
469 469  
470 470  LHT65N will uplink this payload.
471 471  
472 -[[image:image-20220523001219-13.png]]
471 +[[image:image-20220523001219-13.png||height="421" width="727"]]
473 473  
474 474  7FFF089801464160065F977FFF088E014B41600660097FFF0885014E41600660667FFF0875015141600662BE7FFF086B015541600665167FFF08660155416006676E7FFF085F015A41600669C67FFF0857015D4160066C1E
475 475  
... ... @@ -488,7 +488,7 @@
488 488  Unix time is 0x60065F97=1611030423s=21/1/19 04:27:03
489 489  
490 490  
491 -== Alarm Mode ==
490 +== 2.7 Alarm Mode ==
492 492  
493 493  Alarm mode feature is added since firmware v1.5. When device is in Alarm mode, it will check the built-in sensor temperature in a short interval. If the temperature exceeds the pre-configure range, it will send an uplink immediately.
494 494  
... ... @@ -504,7 +504,7 @@
504 504  
505 505  
506 506  
507 -== LED Indicator ==
506 +== 2.8 LED Indicator ==
508 508  
509 509  The LHT65N has a triple color LED which for easy shows different stage.
510 510  
... ... @@ -519,17 +519,14 @@
519 519  
520 520  ----
521 521  
522 -== Installation ==
521 +== 2.9 Installation ==
523 523  
524 524  [[image:image-20220516231650-1.png||height="436" width="428"]]
525 525  
525 += 3. Sensors & Accessories =
526 526  
527 +== 3.1 E3 Temperature Probe ==
527 527  
528 -
529 -= Sensors & Accessories =
530 -
531 -== E3 Temperature Probe ==
532 -
533 533  [[image:image-20220515080154-4.png||height="182" width="161"]] [[image:image-20220515080330-5.png||height="201" width="195"]]
534 534  
535 535  
... ... @@ -542,7 +542,7 @@
542 542  * -55°C to 125°C
543 543  * Working voltage 2.35v ~~ 5v
544 544  
545 -= Configure LHT65N via AT Command or LoRaWAN Downlink =
541 += 4. Configure LHT65N via AT Command or LoRaWAN Downlink =
546 546  
547 547  Use can configure LHT65N via AT Command or LoRaWAN Downlink.
548 548  
... ... @@ -551,7 +551,6 @@
551 551  
552 552  [[http:~~/~~/wiki.dragino.com/index.php?title=Main_Page#Use_Note_for_Server>>url:http://wiki.dragino.com/index.php?title=Main_Page#Use_Note_for_Server]]
553 553  
554 -
555 555  There are two kinds of commands to configure LHT65N, they are:
556 556  
557 557  * **General Commands**.
... ... @@ -565,19 +565,17 @@
565 565  
566 566  [[http:~~/~~/wiki.dragino.com/index.php?title=End_Device_Downlink_Command>>url:http://wiki.dragino.com/index.php?title=End_Device_Downlink_Command]]
567 567  
568 -
569 -
570 570  * **Commands special design for LHT65N**
571 571  
572 572  These commands are only valid for LHT65N, as below:
573 573  
567 +== 4.1 Set Transmit Interval Time ==
574 574  
575 -== Set Transmit Interval Time ==
576 -
577 577  Feature: Change LoRaWAN End Node Transmit Interval.
578 578  
579 579  **AT Command: AT+TDC**
580 580  
573 +(% border="1" %)
581 581  |**Command Example**|**Function**|**Response**
582 582  |AT+TDC?|Show current transmit Interval|(((
583 583  30000
... ... @@ -601,12 +601,13 @@
601 601  * Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds
602 602  * Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds
603 603  
604 -== Set External Sensor Mode ==
597 +== 4.2 Set External Sensor Mode ==
605 605  
606 606  Feature: Change External Sensor Mode.
607 607  
608 608  **AT Command: AT+EXT**
609 609  
603 +(% border="1" %)
610 610  |**Command Example**|**Function**|**Response**
611 611  |AT+EXT?|Get current external sensor mode|(((
612 612  1
... ... @@ -628,7 +628,7 @@
628 628  * 0xA209: Same as AT+EXT=9
629 629  * 0xA20702003c,Same as AT+SETCNT=60
630 630  
631 -== Enable/Disable uplink Temperature probe ID ==
625 +== 4.3 Enable/Disable uplink Temperature probe ID ==
632 632  
633 633  Feature: If PID is enabled, device will send the temperature probe ID on:
634 634  
... ... @@ -640,6 +640,7 @@
640 640  
641 641  **AT Command:**
642 642  
637 +(% border="1" %)
643 643  |**Command Example**|**Function**|**Response**
644 644  |AT+PID=1|Enable PID uplink|OK
645 645  
... ... @@ -648,12 +648,13 @@
648 648  * 0xA800     à AT+PID=0
649 649  * 0xA801     à AT+PID=1
650 650  
651 -== Set Password ==
646 +== 4.4 Set Password ==
652 652  
653 653  Feature: Set device password, max 9 digits
654 654  
655 655  **AT Command: AT+PWORD**
656 656  
652 +(% border="1" %)
657 657  |**Command Example**|**Function**|**Response**
658 658  |AT+PWORD=?|Show password|(((
659 659  123456
... ... @@ -667,13 +667,13 @@
667 667  
668 668  No downlink command for this feature.
669 669  
666 +== 4.5 Quit AT Command ==
670 670  
671 -== Quit AT Command ==
672 -
673 673  Feature: Quit AT Command mode, so user needs to input password again before use AT Commands.
674 674  
675 675  **AT Command: AT+DISAT**
676 676  
672 +(% border="1" %)
677 677  |**Command Example**|**Function**|**Response**
678 678  |AT+DISAT|Quit AT Commands mode|OK
679 679  
... ... @@ -682,12 +682,13 @@
682 682  No downlink command for this feature.
683 683  
684 684  
685 -== Set to sleep mode ==
681 +== 4.6 Set to sleep mode ==
686 686  
687 687  Feature: Set device to sleep mode
688 688  
689 689  **AT Command: AT+SLEEP**
690 690  
687 +(% border="1" %)
691 691  | | |
692 692  |**Command Example**|**Function**|**Response**
693 693  |AT+SLEEP|Set to sleep mode|(((
... ... @@ -700,12 +700,13 @@
700 700  
701 701  * There is no downlink command to set to Sleep mode.
702 702  
703 -== Set system time ==
700 +== 4.7 Set system time ==
704 704  
705 705  Feature: Set system time, unix format. [[See here for format detail.>>path:#TimeStamp]]
706 706  
707 707  **AT Command:**
708 708  
706 +(% border="1" %)
709 709  |**Command Example**|**Function**
710 710  |AT+TIMESTAMP=1611104352|(((
711 711  OK
... ... @@ -717,12 +717,10 @@
717 717  
718 718  0x306007806000 ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
719 719  
718 +== 4.8 Set Time Sync Mode ==
720 720  
721 -== Set Time Sync Mode ==
722 -
723 723  Feature: Enable/Disable Sync system time via LoRaWAN MAC Command (DeviceTimeReq), LoRaWAN server must support v1.0.3 protocol to reply this command.
724 724  
725 -
726 726  SYNCMOD is set to 1 by default. If user want to set a different time from LoRaWAN server, user need to set this to 0.
727 727  
728 728  
... ... @@ -737,13 +737,13 @@
737 737  
738 738  0x28 00 ~/~/ Same As AT+SYNCMOD=0
739 739  
736 +== 4.9 Set Time Sync Interval ==
740 740  
741 -== Set Time Sync Interval ==
742 -
743 743  Feature: Define System time sync interval. SYNCTDC default value: 10 days.
744 744  
745 745  **AT Command:**
746 746  
742 +(% border="1" %)
747 747  |**Command Example**|**Function**
748 748  |AT+SYNCTDC=0x0A|Set SYNCTDC to 10 (0x0A), so the sync time is 10 days.
749 749  
... ... @@ -751,13 +751,13 @@
751 751  
752 752  0x29 0A ~/~/ Same as AT+SYNCTDC=0x0A
753 753  
750 +== 4.10 Print data entries base on page. ==
754 754  
755 -== Print data entries base on page. ==
756 -
757 757  Feature: Print the sector data from start page to stop page (max is 416 pages).
758 758  
759 759  **AT Command: AT+PDTA**
760 760  
756 +(% border="1" %)
761 761  |**Command Example**|**Response**
762 762  |(((
763 763  AT+PDTA=1,3
... ... @@ -806,14 +806,13 @@
806 806  
807 807  No downlink commands for feature
808 808  
805 +== 4.11 Print last few data entries. ==
809 809  
810 -
811 -== Print last few data entries. ==
812 -
813 813  Feature: Print the last few data entries
814 814  
815 815  **AT Command: AT+PLDTA**
816 816  
811 +(% border="1" %)
817 817  |**Command Example**|**Response**
818 818  |(((
819 819  AT+PLDTA=5
... ... @@ -843,14 +843,13 @@
843 843  
844 844  No downlink commands for feature
845 845  
841 +== 4.12 Clear Flash Record ==
846 846  
847 -
848 -== Clear Flash Record ==
849 -
850 850  Feature: Clear flash storage for data log feature.
851 851  
852 852  **AT Command: AT+CLRDTA**
853 853  
847 +(% border="1" %)
854 854  |**Command Example**|**Function**|**Response**
855 855  |AT+CLRDTA|Clear date record|(((
856 856  Clear all stored sensor data…
... ... @@ -862,35 +862,31 @@
862 862  
863 863  * Example: 0xA301 ~/~/Same as AT+CLRDTA
864 864  
859 += 5. Battery & How to replace =
865 865  
866 -= Battery & How to replace =
861 +== 5.1 Battery Type ==
867 867  
868 -== Battery Type ==
869 -
870 870  LHT65N is equipped with a 2400mAH Li-MnO2 (CR17505) battery . The battery is an un-rechargeable battery with low discharge rate targeting for up to 8~~10 years use. This type of battery is commonly used in IoT devices for long-term running, such as water meters.
871 871  
872 872  The discharge curve is not linear so can’t simply use percentage to show the battery level. Below is the battery performance.
873 873  [[image:image-20220515075034-1.png||height="208" width="644"]]
874 874  
875 -
876 876  The minimum Working Voltage for the LHT65N is ~~ 2.5v. When battery is lower than 2.6v, it is time to change the battery.
877 877  
878 878  
879 -== Replace Battery ==
871 +== 5.2 Replace Battery ==
880 880  
881 881  LHT65N has two screws on the back, Unscrew them, and changing the battery inside is ok. The battery is a general CR17450 battery. Any brand should be ok.
882 882  
883 883  [[image:image-20220515075440-2.png||height="338" width="272"]][[image:image-20220515075625-3.png||height="193" width="257"]]
884 884  
877 +== 5.3 Battery Life Analyze ==
885 885  
886 -== Battery Life Analyze ==
887 -
888 888  Dragino battery-powered products are all run in Low Power mode. User can check the guideline from this link to calculate the estimated battery life:
889 889  https:~/~/www.dragino.com/downloads/downloads/LoRa_End_Node/Battery_Analyze/DRAGINO_Battery_Life_Guide.pdf
890 890  
882 += 6. Order Info =
891 891  
892 -= Order Info =
893 -
894 894  Part Number: (% class="mark" %)**LHT65N-XX**
895 895  
896 896  **XX**: The default frequency band
... ... @@ -908,7 +908,7 @@
908 908  
909 909  * **E3**: External Temperature Probe
910 910  
911 -= Packing Info =
901 += 7. Packing Info =
912 912  
913 913  **Package Includes**:
914 914  
... ... @@ -923,10 +923,10 @@
923 923  * Package Size / pcs : 14.5 x 8 x 5 cm
924 924  * Weight / pcs : 170g
925 925  
926 -= FCC Warning =
916 += 8. FCC Warning =
927 927  
928 928  This device complies with part 15 of the FCC Rules.Operation is subject to the following two conditions:
929 929  
930 -(1) This device may not cause harmful interference, and
920 +(1) This device may not cause harmful interference
931 931  
932 -(2) this device must accept any interference received, including interference that may cause undesired operation
922 +(2) this device must accept any interference received, including interference that may cause undesired operation.
image-20220523115324-1.jpeg
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +910.1 KB
Content
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0