Last modified by Mengting Qiu on 2025/07/03 14:48

From version 175.4
edited by Xiaoling
on 2022/06/21 10:02
Change comment: There is no comment for this version
To version 179.2
edited by Xiaoling
on 2022/06/21 10:17
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -217,8 +217,6 @@
217 217  **Default mode OTAA**
218 218  
219 219  
220 -
221 -
222 222  (% _msthash="315246" _msttexthash="878800" _mstvisible="1" %)
223 223  [[image:1655776241177-240.png]]
224 224  
... ... @@ -233,12 +233,12 @@
233 233  (% _mstvisible="1" %)
234 234  == (% _msthash="320879" _msttexthash="294970" _mstvisible="3" %)2.4 Uplink Payload(%%) ==
235 235  
236 -(% _msthash="315249" _msttexthash="7722962" _mstvisible="1" %)
237 -The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and (% _mstvisible="3" style="color:#4f81bd" %)**every 20 minutes**(%%) send one uplink by default.
234 +Uplink payloads include two types: Valid Sensor Value and other status / control command.
238 238  
239 -(% _msthash="315250" _msttexthash="1322711" _mstvisible="1" %)
240 -After each uplink, the (% _mstvisible="3" style="color:blue" %)**BLUE LED**(%%) will blink once.
236 +* Valid Sensor Value: Use FPORT=2
237 +* Other control command: Use FPORT other than 2.
241 241  
239 +
242 242  (% _mstvisible="1" border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:426px" %)
243 243  (% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 97px;" %)(% _mstvisible="5" %)
244 244  (((
... ... @@ -303,50 +303,194 @@
303 303  [[Ext value>>||anchor="H2.4.6Extvalue" _msthash="1817487" _msttexthash="116545" _mstvisible="7"]]
304 304  )))
305 305  
306 -(% _mstvisible="1" %)
307 -* The First 6 bytes: has fix meanings for every LHT65N.
308 -* The 7th byte (EXT #): defines the external sensor model.
309 -* The 8(% _msthash="734578" _msttexthash="21372" _mstvisible="4" %)^^th^^(%%) ~~ 11(% _msthash="734579" _msttexthash="21372" _mstvisible="4" %)^^th^^(%%) byte: the value for external sensor value. The definition is based on external sensor type. (If EXT=0, there won’t be these four bytes.)
310 310  
305 +
306 +
311 311  (% _mstvisible="1" %)
312 -=== (% _msthash="360269" _msttexthash="333762" _mstvisible="3" %)2.4.1 Decoder in TTN V3(%%) ===
308 +=== (% _msthash="360269" _msttexthash="333762" _mstvisible="3" %)2.4.1 U(%%)plink FPORT~=5, Device Status ===
313 313  
314 -(% _msthash="315251" _msttexthash="9786491" _mstvisible="1" %)
315 -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.
310 +Uplink the device configures with FPORT=5. Once LHT52 Joined the network, it will uplink this message to the server. After first uplink, LHT52 will uplink Device Status every 12 hours.
316 316  
317 -(% _msthash="315252" _msttexthash="3928483" _mstvisible="1" %)
318 -Below is the position to put the decoder and LHT65N decoder can be download from here:
312 +|**Size (bytes)**|**1**|**2**|**1**|**1**|**2**
313 +|**Value**|Sensor Model|Firmware Version|Frequency Band|Sub-band|BAT
319 319  
320 -(% _mstvisible="1" %)
321 -[[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0||_msthash="315253" _msttexthash="3509064" _mstvisible="2"]]
322 322  
323 -(% _mstvisible="1" %)
324 -[[image:image-20220522234118-10.png||_mstalt="451464" _mstvisible="3" height="353" width="729"]]
316 +[[image:image-20220621100550-5.png]]
325 325  
318 +Example Payload (FPort=5):
326 326  
320 +09 01 00 01 00 0B 3A
327 327  
328 -(% _mstvisible="1" %)
329 -=== (% _msthash="411411" _msttexthash="383656" _mstvisible="3" %)2.4.2 BAT-Battery Info(%%) ===
330 330  
331 -(% _msthash="315254" _msttexthash="3122912" _mstvisible="1" %)
332 -These two bytes of BAT include the battery state and the actually voltage
323 +**Sensor Model**: For LHT52, this value is 0x09.
333 333  
334 -(% _mstvisible="1" %)
335 -[[image:image-20220523152839-18.png||_mstalt="457613" _mstvisible="3"]]
336 336  
337 -(% _mstvisible="1" %)
338 -[[image:image-20220522235639-1.png||_mstalt="431392" _mstvisible="3" height="139" width="727"]]
326 +**Firmware Version**: 0x0100, Means: v1.0.0 version.
339 339  
340 -(% _msthash="315255" _msttexthash="871611" _mstvisible="1" %)
341 -Check the battery voltage for LHT65N.
342 342  
329 +**Frequency Band**:
330 +
331 +*0x01: EU868
332 +
333 +*0x02: US915
334 +
335 +*0x03: IN865
336 +
337 +*0x04: AU915
338 +
339 +*0x05: KZ865
340 +
341 +*0x06: RU864
342 +
343 +*0x07: AS923
344 +
345 +*0x08: AS923-1
346 +
347 +*0x09: AS923-2
348 +
349 +*0x0a: AS923-3
350 +
351 +
352 +**Sub-Band**: value 0x00 ~~ 0x08(only for CN470, AU915,US915. Others are0x00)
353 +
354 +
355 +**BAT**: shows the battery voltage for LHT52.
356 +
357 +Ex1: 0x0B3A = 2874mV
358 +
359 +
360 +
361 +Use can also get the Device Status uplink through the downlink command:
362 +
363 +**Downlink:0x2301**
364 +
365 +
366 +[[image:image-20220621100550-6.png||height="504" width="1491"]]
367 +
368 +
369 +
370 +
343 343  (% _mstvisible="1" %)
344 -* BAT status=(0Xcba4>>14)&0xFF=11(B),very good
345 -* Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
372 +=== (% _msthash="411411" _msttexthash="383656" _mstvisible="3" %)2.4.2 U(%%)plink FPORT~=2, Real time sensor value ===
346 346  
374 +LHT52 will send this uplink after Device Status uplink once join LoRaWAN network successfully. And it will periodically send this uplink. Default interval is 20 minutes and [[can be changed>>path:#Uplink_Interval]].
375 +
376 +Uplink uses FPORT=2 and every 20 minutes send one uplink by default.
377 +
378 +(% _mstvisible="1" border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:426px" %)
379 +(% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 97px;" %)(% _mstvisible="5" %)
380 +(((
381 +(% _mstvisible="6" %)
382 +(% _msthash="1817478" _msttexthash="161122" _mstvisible="8" %)**Size(bytes)**
383 +)))|=(% _mstvisible="4" style="width: 39px;" %)(% _mstvisible="5" %)
384 +(((
385 +(% _mstvisible="6" %)
386 +(% _msthash="1817479" _msttexthash="4550" _mstvisible="8" %)**2**
387 +)))|=(% _mstvisible="4" style="width: 100px;" %)(% _mstvisible="5" %)
388 +(((
389 +(% _mstvisible="6" %)
390 +(% _msthash="1817480" _msttexthash="4550" _mstvisible="8" %)**2**
391 +)))|=(% _mstvisible="4" style="width: 77px;" %)(% _mstvisible="5" %)
392 +(((
393 +(% _mstvisible="6" %)
394 +(% _msthash="1817481" _msttexthash="4550" _mstvisible="8" %)**2**
395 +)))|=(% _mstvisible="4" style="width: 47px;" %)(% _mstvisible="5" %)
396 +(((
397 +(% _mstvisible="6" %)
398 +(% _msthash="1817482" _msttexthash="4459" _mstvisible="8" %)**1**
399 +)))|=(% _mstvisible="4" style="width: 51px;" %)(% _mstvisible="5" %)
400 +(((
401 +(% _mstvisible="6" %)
402 +(% _msthash="1817483" _msttexthash="4732" _mstvisible="8" %)**4**
403 +)))
404 +(% _mstvisible="3" %)|(% _mstvisible="4" style="width:97px" %)(% _mstvisible="5" %)
405 +(((
406 +(% _mstvisible="6" %)
407 +(% _msthash="1817484" _msttexthash="60203" _mstvisible="8" %)**Value**
408 +)))|(% _mstvisible="4" style="width:39px" %)(% _mstvisible="5" %)
409 +(((
410 +(% _mstvisible="6" %)
411 +[[Temperature>>||anchor="H2.4.3Built-inTemperature" _msthash="2224742" _msttexthash="405769" _mstvisible="8"]]
412 +)))|(% _mstvisible="4" style="width:100px" %)(% _mstvisible="5" %)
413 +(((
414 +(% _mstvisible="6" %)
415 +(((
416 +(% _mstvisible="7" %)
417 +[[Humidity>>||anchor="H2.4.4Built-inHumidity" _msthash="2224744" _msttexthash="117429" _mstvisible="8"]]
418 +
419 +(% _mstvisible="7" %)
420 +
421 +)))
422 +)))|(% _mstvisible="4" style="width:77px" %)(% _mstvisible="5" %)
423 +(((
424 +(% _mstvisible="6" %)
425 +(((
426 +(% _mstvisible="7" %)
427 +[[External Temperature>>||anchor="H2.4.3Built-inTemperature" _msthash="2224742" _msttexthash="405769" _mstvisible="8"]]
428 +)))
429 +)))|(% _mstvisible="4" style="width:47px" %)(% _mstvisible="5" %)
430 +(((
431 +(% _mstvisible="6" %)
432 +[[Ext>>||anchor="H2.4.5Ext23" _msthash="1817486" _msttexthash="32331" _mstvisible="7"]] #
433 +)))|(% _mstvisible="4" style="width:51px" %)(((
434 +[[Unix TimeStamp>>||anchor="H2.4.6Extvalue" _msthash="1817487" _msttexthash="116545" _mstvisible="7"]]
435 +)))
436 +
437 +
438 +**Temperature:**
439 +
440 +[[image:image-20220621101526-7.png]]
441 +
442 +Example Payload (FPort=2):
443 +
444 +08 CD 02 20 7F FF 01 61 CD 4E DD
445 +
446 +**Temperature & External Temperature:**
447 +
448 +* Example1:  0x08CD/100=22.53℃
449 +* Example2:  (0xF5C6-65536)/100=-26.18℃
450 +
451 +
452 +**Humidity:**
453 +
454 +* Humidity:    0x0220/10=54.4%
455 +
456 +
457 +**Extension #**
458 +
459 +Bytes for External Sensor:
460 +
461 +|**EXT # Value**|**External Sensor Probe**
462 +|0x01|Sensor AS-01, Temperature
463 +
464 +
465 +
466 +
467 +
468 +
347 347  (% _mstvisible="1" %)
348 -=== (% _msthash="600769" _msttexthash="565838" _mstvisible="3" %)2.4.3 Built-in Temperature(%%) ===
470 +=== (% _msthash="600769" _msttexthash="565838" _mstvisible="3" %)2.4.3  U(%%)plink FPORT~=3, Datalog sensor value ===
349 349  
472 +LHT52 stores sensor value and user can retrieve these history value via downlink command. The Datalog sensor value are sent via FPORT=3.
473 +
474 +[[image:image-20220621101659-8.png]]
475 +
476 +
477 +* Each data entry is 11 bytes, to save airtime and battery, LHT52 will send max bytes according to the current DR and Frequency bands.
478 +
479 +For example, in US915 band, the max payload for different DR is:
480 +
481 +1. DR0: max is 11 bytes so one entry of data
482 +1. DR1: max is 53 bytes so devices will upload 4 entries of data (total 44 bytes)
483 +1. DR2: total payload includes 11 entries of data
484 +1. DR3: total payload includes 22 entries of data.
485 +
486 +
487 +**Notice**: LHT52 will save 178 set of history data, If device doesn’t have any data in the polling time. Device will uplink 11 bytes of 0.
488 +
489 +
490 +See more info about the [[Datalog feature>>path:#Datalog]].
491 +
350 350  (% _mstvisible="1" %)
351 351  [[image:image-20220522235639-2.png||_mstalt="431756" _mstvisible="3" height="138" width="722"]]
352 352  
image-20220621100550-5.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +77.2 KB
Content
image-20220621100550-6.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +132.4 KB
Content
image-20220621101526-7.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +149.1 KB
Content
image-20220621101659-8.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +146.5 KB
Content