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

From version 225.1
edited by Bei Jinggeng
on 2022/12/09 17:09
Change comment: There is no comment for this version
To version 237.3
edited by Xiaoling
on 2023/04/26 17:09
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
... ... @@ -46,7 +46,6 @@
46 46  == 1.2 Features ==
47 47  
48 48  
49 -* Wall mountable
50 50  * LoRaWAN v1.0.3 Class A protocol
51 51  * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915
52 52  * AT Commands to change parameters
... ... @@ -58,7 +58,6 @@
58 58  * Tri-color LED to indicate working status
59 59  * Datalog feature (Max 3328 records)
60 60  
61 -
62 62  == 1.3 Specification ==
63 63  
64 64  
... ... @@ -83,7 +83,6 @@
83 83  * ±2°C accuracy from -55°C to +125°C
84 84  * Operating Range: -55 °C ~~ 125 °C
85 85  
86 -
87 87  = 2. Connect LHT65N to IoT Server =
88 88  
89 89  == 2.1 How does LHT65N work? ==
... ... @@ -119,9 +119,17 @@
119 119  
120 120  [[image:image-20220515123819-1.png||_mstalt="430742" height="379" width="317"]]
121 121  
122 -[[image:image-20220525110604-2.png||_mstalt="427531"]]
119 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %)
120 +|=(% 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**
121 +|(% 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" %)(((
122 +If LHT65N is already Joined to rhe LoRaWAN network, LHT65N will send an uplink packet, if LHT65N has external sensor connected,(% style="color:blue" %)**Blue led** (%%)will blink once. If LHT65N has not external sensor, (% style="color:red" %)**Red led**(%%) will blink once.
123 +)))
124 +|(% style="background-color:#f2f2f2; width:167px" %)Pressing ACT for more than 3s|(% style="background-color:#f2f2f2; width:117px" %)Active Device|(% style="background-color:#f2f2f2; width:225px" %)(((
125 +(% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will fast blink 5 times, LHT65N will enter working mode and start to JOIN LoRaWAN network.
126 +(% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after join in network.
127 +)))
128 +|(% 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" %)(% style="color:red" %)**Red led**(%%) will solid on for 5 seconds. Means LHT65N is in Deep Sleep Mode.
123 123  
124 -
125 125  == 2.3 Example to join LoRaWAN network ==
126 126  
127 127  
... ... @@ -149,7 +149,7 @@
149 149  Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below:
150 150  )))
151 151  
152 -[[image:image-20220617150003-1.jpeg||_mstalt="5426434"]]
157 +[[image:image-20230426083319-1.png]]
153 153  
154 154  User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot:
155 155  
... ... @@ -199,18 +199,18 @@
199 199  After each uplink, the (% style="color:blue" %)**BLUE LED**(%%) will blink once.
200 200  )))
201 201  
202 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:390px" %)
203 -|=(% style="width: 60px;" %)(((
207 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:390px" %)
208 +|=(% style="width: 60px;background-color:#D9E2F3" %)(((
204 204  **Size(bytes)**
205 -)))|=(% style="width: 30px;" %)(((
210 +)))|=(% style="width: 30px;background-color:#D9E2F3" %)(((
206 206  **2**
207 -)))|=(% style="width: 100px;" %)(((
212 +)))|=(% style="width: 100px;background-color:#D9E2F3" %)(((
208 208  **2**
209 -)))|=(% style="width: 100px;" %)(((
214 +)))|=(% style="width: 100px;background-color:#D9E2F3" %)(((
210 210  **2**
211 -)))|=(% style="width: 50px;" %)(((
216 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)(((
212 212  **1**
213 -)))|=(% style="width: 50px;" %)(((
218 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)(((
214 214  **4**
215 215  )))
216 216  |(% style="width:97px" %)(((
... ... @@ -232,10 +232,11 @@
232 232  )))
233 233  
234 234  * The First 6 bytes: has fix meanings for every LHT65N.
240 +
235 235  * The 7th byte (EXT #): defines the external sensor model.
242 +
236 236  * 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.)
237 237  
238 -
239 239  === 2.4.1 Decoder in TTN V3 ===
240 240  
241 241  
... ... @@ -250,19 +250,33 @@
250 250  === 2.4.2 BAT-Battery Info ===
251 251  
252 252  
253 -These two bytes of BAT include the battery state and the actually voltage
259 +These two bytes of BAT include the battery state and the actually voltage.
254 254  
255 -[[image:image-20220523152839-18.png||_mstalt="457613"]]
261 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:477px" %)
262 +|=(% style="width: 69px; background-color:#D9E2F3;color:#0070C0" %)(((
263 +**Bit(bit)**
264 +)))|=(% style="width: 253px;background-color:#D9E2F3;color:#0070C0" %)[15:14]|=(% style="width: 155px;background-color:#D9E2F3;color:#0070C0" %)[13:0]
265 +|(% style="width:66px" %)(((
266 +**Value**
267 +)))|(% style="width:250px" %)(((
268 +BAT Status
269 +00(b): Ultra Low ( BAT <= 2.50v)
270 +01(b): Low (2.50v <=BAT <= 2.55v)
271 +10(b): OK (2.55v <= BAT <=2.65v)
272 +11(b): Good (BAT >= 2.65v)
273 +)))|(% style="width:152px" %)Actually BAT voltage
256 256  
275 +**(b)stands for binary**
257 257  
277 +
258 258  [[image:image-20220522235639-1.png||_mstalt="431392" height="139" width="727"]]
259 259  
260 260  
261 261  Check the battery voltage for LHT65N.
262 262  
263 -* BAT status=(0Xcba4>>14)&0xFF=11(B),very good
264 -* Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
283 +* BAT status=(0Xcba4>>14)&0xFF=11 (BIN) ,very good
265 265  
285 +* Battery Voltage =0xCBA4&0x3FFF=0x0BA4=2980mV
266 266  
267 267  === 2.4.3 Built-in Temperature ===
268 268  
... ... @@ -275,7 +275,6 @@
275 275  
276 276  * Temperature:  (0xF5C6-65536)/100=-26.18℃
277 277  
278 -
279 279  === 2.4.4 Built-in Humidity ===
280 280  
281 281  
... ... @@ -283,15 +283,16 @@
283 283  
284 284  * Humidity:    0x025C/10=60.4%
285 285  
286 -
287 287  === 2.4.5 Ext # ===
288 288  
289 289  
290 290  Bytes for External Sensor:
291 291  
292 -[[image:image-20220523152822-17.png||_mstalt="454545"]]
310 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:425px" %)
311 +|=(% style="width: 102px; background-color:#D9E2F3;color:#0070C0" %)**EXT # Value**|=(% style="width: 323px;background-color:#D9E2F3;color:#0070C0" %)**External Sensor Type**
312 +|(% style="width:102px" %)0x01|(% style="width:319px" %)Sensor E3, Temperature Sensor
313 +|(% style="width:102px" %)0x09|(% style="width:319px" %)Sensor E3, Temperature Sensor, Datalog Mod
293 293  
294 -
295 295  === 2.4.6 Ext value ===
296 296  
297 297  ==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ====
... ... @@ -311,11 +311,16 @@
311 311  
312 312  * External temperature= (0xF54F-65536)/100=-27.37℃
313 313  
334 +F54F :  (F54F & 8000 == 1) , temp = (F54F - 65536)/100 = 27.37℃
335 +
336 +(0105 & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative)
337 +
314 314  The last 2 bytes of data are meaningless
315 315  
316 316  If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃
317 317  
318 318  
343 +
319 319  ==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ====
320 320  
321 321  
... ... @@ -323,22 +323,19 @@
323 323  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:
324 324  )))
325 325  
326 -(((
327 -
328 -)))
329 329  
330 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:480px" %)
331 -|=(% style="width: 50px;" %)(((
352 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %)
353 +|=(% style="width: 50px;background-color:#D9E2F3" %)(((
332 332  **Size(bytes)**
333 -)))|=(% style="width: 70px;" %)(((
355 +)))|=(% style="width: 70px;background-color:#D9E2F3" %)(((
334 334  **2**
335 -)))|=(% style="width: 120px;" %)(((
357 +)))|=(% style="width: 120px;background-color:#D9E2F3" %)(((
336 336  **2**
337 -)))|=(% style="width: 120px;" %)(((
359 +)))|=(% style="width: 120px;background-color:#D9E2F3" %)(((
338 338  **2**
339 -)))|=(% style="width: 50px;" %)(((
361 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)(((
340 340  **1**
341 -)))|=(% style="width: 70px;" %)(((
363 +)))|=(% style="width: 70px;background-color:#D9E2F3" %)(((
342 342  **4**
343 343  )))
344 344  |(% style="width:110px" %)(((
... ... @@ -357,9 +357,9 @@
357 357  
358 358  * **Battery status & Built-in Humidity**
359 359  
360 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:461px" %)
361 -|=(% style="width: 67px;" %)Bit(bit)|=(% style="width: 256px;" %)[15:14]|=(% style="width: 132px;" %)[11:0]
362 -|(% style="width:67px" %)Value|(% style="width:256px" %)(((
382 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:461px" %)
383 +|=(% style="width: 69px;background-color:#D9E2F3;color:#0070C0" %)Bit(bit)|=(% style="width: 258px;background-color:#D9E2F3;color:#0070C0" %)[15:14]|=(% style="width: 134px;background-color:#D9E2F3;color:#0070C0" %)[11:0]
384 +|(% style="width:67px" %)**Value**|(% style="width:256px" %)(((
363 363  BAT Status
364 364  00(b): Ultra Low ( BAT <= 2.50v)
365 365  01(b): Low  (2.50v <=BAT <= 2.55v)
... ... @@ -371,8 +371,8 @@
371 371  
372 372  * **Status & Ext Byte**
373 373  
374 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:500px" %)
375 -|=(% scope="row" style="width: 60px;" %)**Bits**|(% style="width:90px" %)**7**|(% style="width:100px" %)**6**|(% style="width:90px" %)**5**|(% style="width:100px" %)**4**|(% style="width:60px" %)**[3:0]**
396 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
397 +|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)**Bits**|(% style="background-color:#d9e2f3; color:#0070c0; width:90px" %)**7**|(% style="background-color:#d9e2f3; color:#0070c0; width:100px" %)**6**|(% style="background-color:#d9e2f3; color:#0070c0; width:90px" %)**5**|(% style="background-color:#d9e2f3; color:#0070c0; width:100px" %)**4**|(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**[3:0]**
376 376  |=(% style="width: 96px;" %)**Status&Ext**|(% style="width:124px" %)None-ACK Flag|(% style="width:146px" %)Poll Message FLAG|(% style="width:109px" %)Sync time OK|(% style="width:143px" %)Unix Time Request|(% style="width:106px" %)Ext: 0b(1001)
377 377  
378 378  * (% style="color:blue" %)**Poll Message Flag**:(%%)  1: This message is a poll message reply, 0: means this is a normal uplink.
... ... @@ -379,7 +379,6 @@
379 379  * (% style="color:blue" %)**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.
380 380  * (% 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)
381 381  
382 -
383 383  ==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ====
384 384  
385 385  
... ... @@ -428,6 +428,7 @@
428 428  [[image:image-20220628151143-7.png||_mstalt="431210"]]
429 429  
430 430  
452 +
431 431  ==== 2.4.6.4 Ext~=2 TMP117 Sensor (Since Firmware v1.3) ====
432 432  
433 433  
... ... @@ -444,6 +444,7 @@
444 444  The external cable NE2 can be use for MOD4 and MOD8
445 445  
446 446  
469 +
447 447  ==== 2.4.6.5 Ext~=4 Interrupt Mode (Since Firmware v1.3) ====
448 448  
449 449  
... ... @@ -463,21 +463,21 @@
463 463  
464 464  Ext=4,Interrupt Sensor:
465 465  
466 -(% border="1.5" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:478px" %)
489 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:504px" %)
467 467  |(% style="width:101px" %)(((
468 -AT+EXT=4,1
469 -)))|(% style="width:373px" %)(((
470 -Sent uplink packet in both rising and falling interrupt
491 +**AT+EXT=4,1**
492 +)))|(% style="width:395px" %)(((
493 +**Sent uplink packet in both rising and falling interrupt**
471 471  )))
472 472  |(% style="width:101px" %)(((
473 -AT+EXT=4,2
474 -)))|(% style="width:373px" %)(((
475 -Sent uplink packet only in falling interrupt
496 +**AT+EXT=4,2**
497 +)))|(% style="width:395px" %)(((
498 +**Sent uplink packet only in falling interrupt**
476 476  )))
477 477  |(% style="width:101px" %)(((
478 -AT+EXT=4,3
479 -)))|(% style="width:373px" %)(((
480 -Sent uplink packet only in rising interrupt
501 +**AT+EXT=4,3**
502 +)))|(% style="width:395px" %)(((
503 +**Sent uplink packet only in rising interrupt**
481 481  )))
482 482  
483 483  Trigger by falling edge:
... ... @@ -490,6 +490,7 @@
490 490  [[image:image-20220906101145-3.png||_mstalt="428688"]]
491 491  
492 492  
516 +
493 493  ==== 2.4.6.6 Ext~=8 Counting Mode(Since Firmware v1.3) ====
494 494  
495 495  
... ... @@ -508,21 +508,21 @@
508 508  
509 509  Ext=8, Counting Sensor ( 4 bytes):
510 510  
511 -(% border="2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:381px" %)
512 -|(% style="width:138px" %)(((
513 -AT+EXT=8,0
514 -)))|(% style="width:240px" %)(((
515 -Count at falling interrupt
535 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:330px" %)
536 +|(% style="width:131px" %)(((
537 +**AT+EXT=8,0**
538 +)))|(% style="width:195px" %)(((
539 +**Count at falling interrupt**
516 516  )))
517 -|(% style="width:138px" %)(((
518 -AT+EXT=8,1
519 -)))|(% style="width:240px" %)(((
520 -Count at rising interrupt
541 +|(% style="width:131px" %)(((
542 +**AT+EXT=8,1**
543 +)))|(% style="width:195px" %)(((
544 +**Count at rising interrupt**
521 521  )))
522 -|(% style="width:138px" %)(((
523 -AT+SETCNT=60
524 -)))|(% style="width:240px" %)(((
525 -Sent current count to 60
546 +|(% style="width:131px" %)(((
547 +**AT+SETCNT=60**
548 +)))|(% style="width:195px" %)(((
549 +**Sent current count to 60**
526 526  )))
527 527  
528 528  [[image:image-20220906101320-6.png||_mstalt="428064"]]
... ... @@ -548,9 +548,6 @@
548 548  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:
549 549  )))
550 550  
551 -(((
552 -
553 -)))
554 554  
555 555  (((
556 556  (% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network.
... ... @@ -560,9 +560,6 @@
560 560  (% style="color:blue" %)**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.
561 561  )))
562 562  
563 -(((
564 -
565 -)))
566 566  
567 567  (((
568 568  Add Datacake:
... ... @@ -662,7 +662,6 @@
662 662  )))
663 663  
664 664  
665 -
666 666  (((
667 667  **2. Manually Set Time**
668 668  )))
... ... @@ -677,14 +677,15 @@
677 677  
678 678  User can poll sensor value based on timestamps from the server. Below is the downlink command.
679 679  
680 -[[image:image-20220523152302-15.png||_mstalt="451581"]]
697 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:428px" %)
698 +|(% style="width:58px" %)1byte|(% style="width:128px" %)4bytes|(% style="width:123px" %)4bytes|(% style="width:116px" %)1byte
699 +|(% style="width:58px" %)31|(% style="width:128px" %)Timestamp start|(% style="width:123px" %)Timestamp end|(% style="width:116px" %)Uplink Interval
681 681  
682 -
683 683  Timestamp start and Timestamp end use Unix TimeStamp format as mentioned above. Devices will reply with all data log during this time period, use the uplink interval.
684 684  
685 685  For example, downlink command (% _mstmutation="1" %)**31 5FC5F350 5FC6 0160 05**(%%)
686 686  
687 -Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00s data
705 +Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00's data
688 688  
689 689  Uplink Internal =5s,means LHT65N will send one packet every 5s. range 5~~255s.
690 690  
... ... @@ -696,10 +696,10 @@
696 696  
697 697  **Retrieval data payload:**
698 698  
699 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:480px" %)
700 -|=(% style="width: 60px;" %)(((
717 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %)
718 +|=(% style="width: 60px;background-color:#D9E2F3" %)(((
701 701  **Size(bytes)**
702 -)))|=(% style="width: 90px;" %)**2**|=(% style="width: 90px;" %)**2**|=(% style="width: 70px;" %)**2**|=(% style="width: 100px;" %)**1**|=(% style="width: 70px;" %)**4**
720 +)))|=(% style="width: 90px;background-color:#D9E2F3" %)**2**|=(% style="width: 90px;background-color:#D9E2F3" %)**2**|=(% style="width: 70px;background-color:#D9E2F3" %)**2**|=(% style="width: 100px;background-color:#D9E2F3" %)**1**|=(% style="width: 70px;background-color:#D9E2F3" %)**4**
703 703  |(% style="width:97px" %)**Value**|(% style="width:123px" %)[[External sensor data>>||anchor="H2.4.6Extvalue"]]|(% style="width:108px" %)[[Built In Temperature>>||anchor="H2.4.3Built-inTemperature"]]|(% style="width:133px" %)[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]]|(% style="width:159px" %)Poll message flag & Ext|(% style="width:80px" %)[[Unix Time Stamp>>||anchor="H2.6.2UnixTimeStamp"]]
704 704  
705 705  **Poll message flag & Ext:**
... ... @@ -731,6 +731,10 @@
731 731  
732 732  If LHT65N has below data inside Flash:
733 733  
752 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:717px" %)
753 +|=(% style="width: 92px; background-color:#D9E2F3;color:#0070C0" %)Flash Add|=(% style="width: 126px; background-color:#D9E2F3;color:#0070C0" %)**Unix Time**|=(% style="width: 50px; background-color:#D9E2F3;color:#0070C0" %)**Ext**|=(% style="width: 104px;background-color:#D9E2F3;color:#0070C0" %)**BAT voltage**|=(% style="width: 341px; background-color:#D9E2F3;color:#0070C0" %)**Value**
754 +|(% style="width:92px" %)80196E0|(% style="width:126px" %)21/1/19 04:27:03|(% style="width:50px" %)1|(% style="width:104px" %)3145|(% style="width:341px" %)sht_temp=22.00 sht_hum=32.6 ds_temp=327.67
755 +
734 734  [[image:image-20220523144455-1.png||_mstalt="430040" height="335" width="735"]]
735 735  
736 736  
... ... @@ -856,17 +856,18 @@
856 856  temperature fluctuation=05
857 857  
858 858  
859 -==== **Sampling multiple times and uplink together** ====
881 +**Sampling multiple times and uplink together**
860 860  
861 861  **AT+WMOD=3,1,60,20,-16,32,1**   
862 862  
863 863  Explain:
864 864  
865 -* Set Working Mode to **Mode 3**
866 -* Sampling Interval is **60**s.
867 -* When there is **20** sampling dats, Device will send these data via one uplink. (max value is 60, means max 60 sampling in one uplink)
868 -* Temperature alarm range is **-16** to **32**°C,
869 -* **1** to enable temperature alarm, **0** to disable the temperature alarm. If alarm is enabled, a data will be sent immediately  if temperate exceeds the Alarm range.
887 +* (% style="color:#037691" %)**parameter1:**(%%)Set Working Mode to **Mode 3**
888 +* (% style="color:#037691" %)**parameter2:**(%%) Set the temperature sampling mode to** 1**(1:DS18B20;2:TMP117;3:** **Internal GXHT30).
889 +* (% style="color:#037691" %)**parameter3:**(%%)Sampling Interval is **60**s.
890 +* (% style="color:#037691" %)**parameter4:**(%%)When there is **20** sampling dats, Device will send these data via one uplink. (max value is 60, means max 60 sampling in one uplink)
891 +* (% style="color:#037691" %)**parameter5 & parameter6:**(%%)Temperature alarm range is **-16** to **32**°C,
892 +* (% style="color:#037691" %)**parameter7:**(%%) 1 to enable temperature alarm, **0** to disable the temperature alarm. If alarm is enabled, a data will be sent immediately  if temperate exceeds the Alarm range.
870 870  
871 871  (% style="color:#4f81bd" %)**Downlink Command:**
872 872  
... ... @@ -874,7 +874,7 @@
874 874  
875 875  MOD=03
876 876  
877 -EXT=01
900 +TEMP=DS18B20
878 878  
879 879  CITEMP=003C(S)
880 880  
... ... @@ -886,7 +886,6 @@
886 886  
887 887  ARTEMP=01
888 888  
889 -
890 890  **Uplink payload( Fport=3)**
891 891  
892 892  **Example: CBEA**01**0992**//0A41//**09C4**
... ... @@ -893,7 +893,7 @@
893 893  
894 894  BatV=CBEA
895 895  
896 -EXT=01
918 +TEMP=DS18B20
897 897  
898 898  Temp1=0992  ~/~/ 24.50℃
899 899  
... ... @@ -901,10 +901,9 @@
901 901  
902 902  Temp3=09C4  ~/~/ 25.00℃
903 903  
904 -
905 905  (% style="color:red" %)**Note: This uplink will automatically select the appropriate DR according to the data length**
906 906  
907 -(% style="color:red" %)** In this mode, the temperature resolution of ds18b20 is 0.25℃ to save power consumption**
928 +(% style="color:red" %)** In this mode, the temperature resolution of ds18b20 is 0.25℃ to save power consumption**
908 908  )))
909 909  
910 910  
... ... @@ -963,7 +963,6 @@
963 963  * RED LED when external sensor is not connected
964 964  * For each success downlink, the PURPLE LED will blink once
965 965  
966 -
967 967  == 2.9 installation ==
968 968  
969 969  
... ... @@ -1016,7 +1016,6 @@
1016 1016  * Operating Range: -40 ~~ 125 °C
1017 1017  * Working voltage 2.35v ~~ 5v
1018 1018  
1019 -
1020 1020  = 4. Configure LHT65N via AT command or LoRaWAN downlink =
1021 1021  
1022 1022  
... ... @@ -1072,7 +1072,10 @@
1072 1072  
1073 1073  (% style="color:#4f81bd" %)**AT Command: AT+TDC**
1074 1074  
1075 -[[image:image-20220523150701-2.png||_mstalt="427453"]]
1094 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:501px" %)
1095 +|(% 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**
1096 +|(% style="width:155px" %)AT+TDC?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)30000 OK the interval is 30000ms = 30s
1097 +|(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)OK Set transmit interval to 60000ms = 60 seconds
1076 1076  
1077 1077  
1078 1078  (% style="color:#4f81bd" %)**Downlink Command: 0x01**
... ... @@ -1085,7 +1085,6 @@
1085 1085  
1086 1086  * **Example 2**: Downlink Payload: 0100003C  ~/~/ Set Transmit Interval (TDC) = 60 seconds
1087 1087  
1088 -
1089 1089  == 4.2 Set External Sensor Mode ==
1090 1090  
1091 1091  
... ... @@ -1094,9 +1094,14 @@
1094 1094  
1095 1095  (% style="color:#4f81bd" %)**AT Command: AT+EXT**
1096 1096  
1097 -[[image:image-20220523150759-3.png||_mstalt="432146"]]
1098 1098  
1119 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:468px" %)
1120 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:151px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:158px" %)**Response**
1121 +|(% style="width:155px" %)AT+EXT?|(% style="width:151px" %)Get current external sensor mode|(% style="width:158px" %)1 OK External Sensor mode =1
1122 +|(% style="width:155px" %)AT+EXT=1|(% colspan="2" rowspan="1" style="width:309px" %)Set external sensor mode to 1
1123 +|(% style="width:155px" %)AT+EXT=9|(% colspan="2" rowspan="1" style="width:309px" %)Set to external DS18B20 with timestamp
1099 1099  
1125 +
1100 1100  (% style="color:#4f81bd" %)**Downlink Command: 0xA2**
1101 1101  
1102 1102  Total bytes: 2 ~~ 5 bytes
... ... @@ -1109,7 +1109,6 @@
1109 1109  
1110 1110  * 0xA20702003c: Same as AT+SETCNT=60
1111 1111  
1112 -
1113 1113  == 4.3 Enable/Disable uplink Temperature probe ID ==
1114 1114  
1115 1115  
... ... @@ -1132,15 +1132,17 @@
1132 1132  
1133 1133  (% style="color:#4f81bd" %)**AT Command:**
1134 1134  
1135 -[[image:image-20220523150928-4.png||_mstalt="431821"]]
1136 1136  
1161 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:381px" %)
1162 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:136px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:86px" %)**Response**
1163 +|(% style="width:155px" %)AT+PID=1|(% style="width:136px" %)Enable PID uplink|(% style="width:86px" %)OK
1137 1137  
1165 +
1138 1138  (% style="color:#4f81bd" %)**Downlink Command:**
1139 1139  
1140 1140  * **0xA800**  **~-~->** AT+PID=0
1141 1141  * **0xA801**     **~-~->** AT+PID=1
1142 1142  
1143 -
1144 1144  == 4.4 Set Password ==
1145 1145  
1146 1146  
... ... @@ -1149,9 +1149,17 @@
1149 1149  
1150 1150  (% style="color:#4f81bd" %)**AT Command: AT+PWORD**
1151 1151  
1152 -[[image:image-20220523151052-5.png||_mstalt="428623"]]
1153 1153  
1180 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:372px" %)
1181 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:124px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:86px" %)**Response**
1182 +|(% style="width:155px" %)AT+PWORD=?|(% style="width:124px" %)Show password|(% style="width:86px" %)(((
1183 +123456
1154 1154  
1185 +OK
1186 +)))
1187 +|(% style="width:155px" %)AT+PWORD=999999|(% style="width:124px" %)Set password|(% style="width:86px" %)OK
1188 +
1189 +
1155 1155  (% style="color:#4f81bd" %)**Downlink Command:**
1156 1156  
1157 1157  No downlink command for this feature.
... ... @@ -1165,9 +1165,12 @@
1165 1165  
1166 1166  (% style="color:#4f81bd" %)**AT Command: AT+DISAT**
1167 1167  
1168 -[[image:image-20220523151132-6.png||_mstalt="428649"]]
1169 1169  
1204 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:433px" %)
1205 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:191px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:86px" %)**Response**
1206 +|(% style="width:155px" %)AT+DISAT|(% style="width:191px" %)Quit AT Commands mode|(% style="width:86px" %)OK
1170 1170  
1208 +
1171 1171  (% style="color:#4f81bd" %)**Downlink Command:**
1172 1172  
1173 1173  No downlink command for this feature.
... ... @@ -1183,14 +1183,19 @@
1183 1183  
1184 1184  (% style="color:#4f81bd" %)**AT Command: AT+SLEEP**
1185 1185  
1186 -[[image:image-20220523151218-7.png||_mstalt="430703"]]
1187 1187  
1225 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:513px" %)
1226 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:139px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:213px" %)**Response**
1227 +|(% style="width:155px" %)AT+SLEEP|(% style="width:139px" %)Set to sleep mode|(% style="width:213px" %)(((
1228 +Clear all stored sensor data…
1188 1188  
1230 +OK
1231 +)))
1232 +
1189 1189  (% style="color:#4f81bd" %)**Downlink Command:**
1190 1190  
1191 1191  * There is no downlink command to set to Sleep mode.
1192 1192  
1193 -
1194 1194  == 4.7 Set system time ==
1195 1195  
1196 1196  
... ... @@ -1199,9 +1199,16 @@
1199 1199  
1200 1200  (% style="color:#4f81bd" %)**AT Command:**
1201 1201  
1202 -[[image:image-20220523151253-8.png||_mstalt="430677"]]
1203 1203  
1246 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:506px" %)
1247 +|(% style="background-color:#d9e2f3; color:#0070c0; width:154px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:285px" %)**Function**
1248 +|(% style="width:154px" %)AT+TIMESTAMP=1611104352|(% style="width:285px" %)(((
1249 +OK
1204 1204  
1251 +Set System time to 2021-01-20 00:59:12
1252 +)))
1253 +
1254 +
1205 1205  (% style="color:#4f81bd" %)**Downlink Command:**
1206 1206  
1207 1207  0x306007806000  ~/~/  Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352
... ... @@ -1222,9 +1222,12 @@
1222 1222  
1223 1223  (% style="color:#4f81bd" %)**AT Command:**
1224 1224  
1225 -[[image:image-20220523151336-9.png||_mstalt="431717"]]
1226 1226  
1276 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:475px" %)
1277 +|(% style="background-color:#d9e2f3; color:#0070c0; width:156px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:315px" %)**Function**
1278 +|(% style="width:156px" %)AT+SYNCMOD=1|(% style="width:315px" %)Enable Sync system time via LoRaWAN MAC Command (DeviceTimeReq)
1227 1227  
1280 +
1228 1228  (% style="color:#4f81bd" %)**Downlink Command:**
1229 1229  
1230 1230  0x28 01  ~/~/  Same As AT+SYNCMOD=1
... ... @@ -1239,9 +1239,12 @@
1239 1239  
1240 1240  (% style="color:#4f81bd" %)**AT Command:**
1241 1241  
1242 -[[image:image-20220523151411-10.png||_mstalt="449696"]]
1243 1243  
1296 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:472px" %)
1297 +|(% style="background-color:#d9e2f3; color:#0070c0; width:156px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:311px" %)**Function**
1298 +|(% style="width:156px" %)AT+SYNCTDC=0x0A |(% style="width:311px" %)Set SYNCTDC to 10 (0x0A), so the sync time is 10 days.
1244 1244  
1300 +
1245 1245  (% style="color:#4f81bd" %)**Downlink Command:**
1246 1246  
1247 1247  **0x29 0A**  ~/~/ Same as AT+SYNCTDC=0x0A
... ... @@ -1255,9 +1255,11 @@
1255 1255  
1256 1256  (% style="color:#4f81bd" %)**AT Command: AT+PDTA**
1257 1257  
1258 -[[image:image-20220523151450-11.png||_mstalt="451035"]]
1314 +[[image:image-20230426164330-2.png]]
1259 1259  
1260 1260  
1317 +
1318 +
1261 1261  (% style="color:#4f81bd" %)**Downlink Command:**
1262 1262  
1263 1263  No downlink commands for feature
... ... @@ -1271,9 +1271,11 @@
1271 1271  
1272 1272  (% style="color:#4f81bd" %)**AT Command: AT+PLDTA**
1273 1273  
1274 -[[image:image-20220523151524-12.png||_mstalt="452101"]]
1332 +[[image:image-20230426164932-3.png]]
1275 1275  
1276 1276  
1335 +
1336 +
1277 1277  (% style="color:#4f81bd" %)**Downlink Command:**
1278 1278  
1279 1279  No downlink commands for feature
... ... @@ -1287,14 +1287,20 @@
1287 1287  
1288 1288  (% style="color:#4f81bd" %)**AT Command: AT+CLRDTA**
1289 1289  
1290 -[[image:image-20220523151556-13.png||_mstalt="454129"]]
1291 1291  
1351 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:503px" %)
1352 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:134px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:209px" %)**Response**
1353 +|(% style="width:155px" %)AT+CLRDTA |(% style="width:134px" %)Clear date record|(% style="width:209px" %)(((
1354 +Clear all stored sensor data…
1292 1292  
1356 +OK
1357 +)))
1358 +
1359 +
1293 1293  (% style="color:#4f81bd" %)**Downlink Command: 0xA3**
1294 1294  
1295 1295  * Example: 0xA301  ~/~/  Same as AT+CLRDTA
1296 1296  
1297 -
1298 1298  == 4.13 Auto Send None-ACK messages ==
1299 1299  
1300 1300  
... ... @@ -1305,8 +1305,8 @@
1305 1305  
1306 1306  The default factory setting is 0
1307 1307  
1308 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:367px" %)
1309 -|=(% style="width: 158px;" %)**Command Example**|=(% style="width: 118px;" %)**Function**|=(% style="width: 87px;" %)**Response**
1374 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:367px" %)
1375 +|=(% style="width: 158px;background-color:#D9E2F3;color:#0070C0" %)**Command Example**|=(% style="width: 118px;background-color:#D9E2F3;color:#0070C0" %)**Function**|=(% style="width: 87px;background-color:#D9E2F3;color:#0070C0" %)**Response**
1310 1310  |(% style="width:158px" %)AT+PNACKMD=1|(% style="width:118px" %)Poll None-ACK message|(% style="width:87px" %)OK
1311 1311  
1312 1312  (% style="color:#4f81bd" %)**Downlink Command: 0x34**
... ... @@ -1313,14 +1313,13 @@
1313 1313  
1314 1314  * Example: 0x3401  ~/~/  Same as AT+PNACKMD=1
1315 1315  
1316 -
1317 1317  == 4.14 Modified WMOD command for external sensor TMP117 or DS18B20 temperature alarm(Since firmware 1.3.0) ==
1318 1318  
1319 1319  
1320 1320  Feature: Set internal and external temperature sensor alarms.
1321 1321  
1322 -(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:500px" %)
1323 -|=(% style="width: 250px;" %)**Command Example**|=(% style="width: 200px;" %)**Function**|=(% style="width: 50px;" %)**Response**
1387 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %)
1388 +|=(% style="width: 250px;background-color:#D9E2F3;color:#0070C0" %)**Command Example**|=(% style="width: 200px;background-color:#D9E2F3;color:#0070C0" %)**Function**|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)**Response**
1324 1324  |(% style="width:268px" %)AT+WMOD=parameter1,parameter2,parameter3,parameter4|(% style="width:255px" %)Set internal and external temperature sensor alarms|(% style="width:181px" %)OK
1325 1325  
1326 1326  (% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4**
... ... @@ -1575,7 +1575,6 @@
1575 1575  **Downlink commands:**
1576 1576  
1577 1577  
1578 -
1579 1579  (% style="color:blue" %)**TTN:**
1580 1580  
1581 1581  [[image:image-20220615092124-2.png||_mstalt="429221" height="649" width="688"]]
... ... @@ -1633,7 +1633,7 @@
1633 1633  [[image:image-20220615153355-1.png||_mstalt="430222"]]
1634 1634  
1635 1635  
1636 -(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer  first.
1700 +(% style="color:blue" %)**Step1**(%%): Install [[TremoProgrammer>>https://www.dropbox.com/sh/g99v0fxcltn9r1y/AAAnJD_qGZ42bB52o4UmH9v9a/LHT65N%20Temperature%20%26%20Humidity%20Sensor/tool?dl=0&subfolder_nav_tracking=1]]  first.
1637 1637  
1638 1638  [[image:image-20220615170542-5.png||_mstalt="430638"]]
1639 1639  
... ... @@ -1674,6 +1674,12 @@
1674 1674  [[image:image-20220623110706-1.png||_mstalt="427869"]]
1675 1675  
1676 1676  
1741 +**UART Port of LHT65N:**
1742 +
1743 +* (% class="mark" %)**PB0: RXD**
1744 +* (% class="mark" %)**PB1: TXD**
1745 +* (% class="mark" %)**GND**
1746 +
1677 1677  [[image:image-20220623112117-4.png||_mstalt="428350" height="459" width="343"]]
1678 1678  
1679 1679  
... ... @@ -1693,7 +1693,7 @@
1693 1693  [[image:image-20220623110706-1.png||_mstalt="427869"]]
1694 1694  
1695 1695  
1696 -(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer  first.
1766 +(% style="color:blue" %)**Step1**(%%): Install [[TremoProgrammer>>https://www.dropbox.com/sh/g99v0fxcltn9r1y/AAAnJD_qGZ42bB52o4UmH9v9a/LHT65N%20Temperature%20%26%20Humidity%20Sensor/tool?dl=0&subfolder_nav_tracking=1]]  first.
1697 1697  
1698 1698  [[image:image-20220615170542-5.png||_mstalt="430638"]]
1699 1699  
... ... @@ -1727,11 +1727,12 @@
1727 1727  
1728 1728  == 6.8 Why can't I see the datalog information ==
1729 1729  
1730 -1.The time is not aligned, and the correct query command is not used
1731 1731  
1732 -2.Decoder error, did not parse the datalog data, the data was filtered
1801 +~1. The time is not aligned, and the correct query command is not used.
1733 1733  
1803 +2. Decoder error, did not parse the datalog data, the data was filtered.
1734 1734  
1805 +
1735 1735  = 7. Order Info =
1736 1736  
1737 1737  
... ... @@ -1752,7 +1752,6 @@
1752 1752  
1753 1753  * (% style="color:red" %)**E3**(%%): External Temperature Probe
1754 1754  
1755 -
1756 1756  = 8. Packing Info =
1757 1757  
1758 1758  
... ... @@ -1766,13 +1766,11 @@
1766 1766  * Device Size:  10 x 10 x 3.5 mm
1767 1767  * Device Weight: 120.5g
1768 1768  
1769 -
1770 1770  = 9. Reference material =
1771 1771  
1772 1772  
1773 1773  * [[Datasheet, photos, decoder, firmware>>https://www.dropbox.com/sh/una19zsni308dme/AACOKp6J2RF5TMlKWT5zU3RTa?dl=0]]
1774 1774  
1775 -
1776 1776  = 10. FCC Warning =
1777 1777  
1778 1778  
... ... @@ -1781,6 +1781,3 @@
1781 1781  (1) This device may not cause harmful interference;
1782 1782  
1783 1783  (2) this device must accept any interference received, including interference that may cause undesired operation.
1784 -
1785 -
1786 -
image-20230426083319-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +190.0 KB
Content
image-20230426155837-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +2.4 KB
Content
image-20230426164330-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +36.6 KB
Content
image-20230426164932-3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +23.2 KB
Content