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

From version 235.2
edited by Xiaoling
on 2023/04/26 15:59
Change comment: There is no comment for this version
To version 228.1
edited by Bei Jinggeng
on 2023/02/01 11:15
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Xiaoling
1 +XWiki.Bei
Content
... ... @@ -46,6 +46,7 @@
46 46  == 1.2 Features ==
47 47  
48 48  
49 +* Wall mountable
49 49  * LoRaWAN v1.0.3 Class A protocol
50 50  * Frequency Bands: CN470/EU433/KR920/US915/EU868/AS923/AU915
51 51  * AT Commands to change parameters
... ... @@ -116,17 +116,9 @@
116 116  
117 117  [[image:image-20220515123819-1.png||_mstalt="430742" height="379" width="317"]]
118 118  
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.
120 +[[image:image-20220525110604-2.png||_mstalt="427531"]]
129 129  
122 +
130 130  == 2.3 Example to join LoRaWAN network ==
131 131  
132 132  
... ... @@ -154,7 +154,7 @@
154 154  Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below:
155 155  )))
156 156  
157 -[[image:image-20230426083319-1.png]]
150 +[[image:image-20220617150003-1.jpeg||_mstalt="5426434"]]
158 158  
159 159  User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot:
160 160  
... ... @@ -204,18 +204,18 @@
204 204  After each uplink, the (% style="color:blue" %)**BLUE LED**(%%) will blink once.
205 205  )))
206 206  
207 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:390px" %)
208 -|=(% style="width: 60px;background-color:#D9E2F3" %)(((
200 +(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:390px" %)
201 +|=(% style="width: 60px;" %)(((
209 209  **Size(bytes)**
210 -)))|=(% style="width: 30px;background-color:#D9E2F3" %)(((
203 +)))|=(% style="width: 30px;" %)(((
211 211  **2**
212 -)))|=(% style="width: 100px;background-color:#D9E2F3" %)(((
205 +)))|=(% style="width: 100px;" %)(((
213 213  **2**
214 -)))|=(% style="width: 100px;background-color:#D9E2F3" %)(((
207 +)))|=(% style="width: 100px;" %)(((
215 215  **2**
216 -)))|=(% style="width: 50px;background-color:#D9E2F3" %)(((
209 +)))|=(% style="width: 50px;" %)(((
217 217  **1**
218 -)))|=(% style="width: 50px;background-color:#D9E2F3" %)(((
211 +)))|=(% style="width: 50px;" %)(((
219 219  **4**
220 220  )))
221 221  |(% style="width:97px" %)(((
... ... @@ -237,9 +237,7 @@
237 237  )))
238 238  
239 239  * The First 6 bytes: has fix meanings for every LHT65N.
240 -
241 241  * The 7th byte (EXT #): defines the external sensor model.
242 -
243 243  * 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.)
244 244  
245 245  === 2.4.1 Decoder in TTN V3 ===
... ... @@ -256,34 +256,19 @@
256 256  === 2.4.2 BAT-Battery Info ===
257 257  
258 258  
259 -These two bytes of BAT include the battery state and the actually voltage.
250 +These two bytes of BAT include the battery state and the actually voltage
260 260  
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
252 +[[image:image-20220523152839-18.png||_mstalt="457613"]]
274 274  
275 -**(b)stands for binary**
276 276  
277 -
278 278  [[image:image-20220522235639-1.png||_mstalt="431392" height="139" width="727"]]
279 279  
280 280  
281 281  Check the battery voltage for LHT65N.
282 282  
283 -* BAT status=(0Xcba4>>14)&0xFF=11 (BIN) ,very good
260 +* BAT status=(0Xcba4>>14)&0xFF=11(B),very good
261 +* Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV
284 284  
285 -* Battery Voltage =0xCBA4&0x3FFF=0x0BA4=2980mV
286 -
287 287  === 2.4.3 Built-in Temperature ===
288 288  
289 289  
... ... @@ -307,11 +307,9 @@
307 307  
308 308  Bytes for External Sensor:
309 309  
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
286 +[[image:image-20220523152822-17.png||_mstalt="454545"]]
314 314  
288 +
315 315  === 2.4.6 Ext value ===
316 316  
317 317  ==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ====
... ... @@ -340,7 +340,6 @@
340 340  If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃
341 341  
342 342  
343 -
344 344  ==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ====
345 345  
346 346  
... ... @@ -348,19 +348,22 @@
348 348  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:
349 349  )))
350 350  
324 +(((
325 +
326 +)))
351 351  
352 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %)
353 -|=(% style="width: 50px;background-color:#D9E2F3" %)(((
328 +(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:480px" %)
329 +|=(% style="width: 50px;" %)(((
354 354  **Size(bytes)**
355 -)))|=(% style="width: 70px;background-color:#D9E2F3" %)(((
331 +)))|=(% style="width: 70px;" %)(((
356 356  **2**
357 -)))|=(% style="width: 120px;background-color:#D9E2F3" %)(((
333 +)))|=(% style="width: 120px;" %)(((
358 358  **2**
359 -)))|=(% style="width: 120px;background-color:#D9E2F3" %)(((
335 +)))|=(% style="width: 120px;" %)(((
360 360  **2**
361 -)))|=(% style="width: 50px;background-color:#D9E2F3" %)(((
337 +)))|=(% style="width: 50px;" %)(((
362 362  **1**
363 -)))|=(% style="width: 70px;background-color:#D9E2F3" %)(((
339 +)))|=(% style="width: 70px;" %)(((
364 364  **4**
365 365  )))
366 366  |(% style="width:110px" %)(((
... ... @@ -379,9 +379,9 @@
379 379  
380 380  * **Battery status & Built-in Humidity**
381 381  
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" %)(((
358 +(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:461px" %)
359 +|=(% style="width: 67px;" %)Bit(bit)|=(% style="width: 256px;" %)[15:14]|=(% style="width: 132px;" %)[11:0]
360 +|(% style="width:67px" %)Value|(% style="width:256px" %)(((
385 385  BAT Status
386 386  00(b): Ultra Low ( BAT <= 2.50v)
387 387  01(b): Low  (2.50v <=BAT <= 2.55v)
... ... @@ -393,8 +393,8 @@
393 393  
394 394  * **Status & Ext Byte**
395 395  
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]**
372 +(% border="1" cellspacing="4" style="background-color:#ffffcc; color:green; width:500px" %)
373 +|=(% 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]**
398 398  |=(% 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)
399 399  
400 400  * (% style="color:blue" %)**Poll Message Flag**:(%%)  1: This message is a poll message reply, 0: means this is a normal uplink.
... ... @@ -449,7 +449,6 @@
449 449  [[image:image-20220628151143-7.png||_mstalt="431210"]]
450 450  
451 451  
452 -
453 453  ==== 2.4.6.4 Ext~=2 TMP117 Sensor (Since Firmware v1.3) ====
454 454  
455 455  
... ... @@ -466,7 +466,6 @@
466 466  The external cable NE2 can be use for MOD4 and MOD8
467 467  
468 468  
469 -
470 470  ==== 2.4.6.5 Ext~=4 Interrupt Mode (Since Firmware v1.3) ====
471 471  
472 472  
... ... @@ -486,21 +486,21 @@
486 486  
487 487  Ext=4,Interrupt Sensor:
488 488  
489 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:504px" %)
463 +(% border="1.5" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:478px" %)
490 490  |(% style="width:101px" %)(((
491 -**AT+EXT=4,1**
492 -)))|(% style="width:395px" %)(((
493 -**Sent uplink packet in both rising and falling interrupt**
465 +AT+EXT=4,1
466 +)))|(% style="width:373px" %)(((
467 +Sent uplink packet in both rising and falling interrupt
494 494  )))
495 495  |(% style="width:101px" %)(((
496 -**AT+EXT=4,2**
497 -)))|(% style="width:395px" %)(((
498 -**Sent uplink packet only in falling interrupt**
470 +AT+EXT=4,2
471 +)))|(% style="width:373px" %)(((
472 +Sent uplink packet only in falling interrupt
499 499  )))
500 500  |(% style="width:101px" %)(((
501 -**AT+EXT=4,3**
502 -)))|(% style="width:395px" %)(((
503 -**Sent uplink packet only in rising interrupt**
475 +AT+EXT=4,3
476 +)))|(% style="width:373px" %)(((
477 +Sent uplink packet only in rising interrupt
504 504  )))
505 505  
506 506  Trigger by falling edge:
... ... @@ -513,7 +513,6 @@
513 513  [[image:image-20220906101145-3.png||_mstalt="428688"]]
514 514  
515 515  
516 -
517 517  ==== 2.4.6.6 Ext~=8 Counting Mode(Since Firmware v1.3) ====
518 518  
519 519  
... ... @@ -532,21 +532,21 @@
532 532  
533 533  Ext=8, Counting Sensor ( 4 bytes):
534 534  
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**
508 +(% border="2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc; color:green; height:6px; width:381px" %)
509 +|(% style="width:138px" %)(((
510 +AT+EXT=8,0
511 +)))|(% style="width:240px" %)(((
512 +Count at falling interrupt
540 540  )))
541 -|(% style="width:131px" %)(((
542 -**AT+EXT=8,1**
543 -)))|(% style="width:195px" %)(((
544 -**Count at rising interrupt**
514 +|(% style="width:138px" %)(((
515 +AT+EXT=8,1
516 +)))|(% style="width:240px" %)(((
517 +Count at rising interrupt
545 545  )))
546 -|(% style="width:131px" %)(((
547 -**AT+SETCNT=60**
548 -)))|(% style="width:195px" %)(((
549 -**Sent current count to 60**
519 +|(% style="width:138px" %)(((
520 +AT+SETCNT=60
521 +)))|(% style="width:240px" %)(((
522 +Sent current count to 60
550 550  )))
551 551  
552 552  [[image:image-20220906101320-6.png||_mstalt="428064"]]
... ... @@ -572,6 +572,9 @@
572 572  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:
573 573  )))
574 574  
548 +(((
549 +
550 +)))
575 575  
576 576  (((
577 577  (% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network.
... ... @@ -581,6 +581,9 @@
581 581  (% 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.
582 582  )))
583 583  
560 +(((
561 +
562 +)))
584 584  
585 585  (((
586 586  Add Datacake:
... ... @@ -694,13 +694,8 @@
694 694  
695 695  User can poll sensor value based on timestamps from the server. Below is the downlink command.
696 696  
697 -(% border="1" cellspacing="5" style="width:428px;background-color:#F2F2F2" %)
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
700 -
701 701  [[image:image-20220523152302-15.png||_mstalt="451581"]]
702 702  
703 -[[image:image-20230426155837-1.png]]
704 704  
705 705  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.
706 706  
... ... @@ -878,18 +878,17 @@
878 878  temperature fluctuation=05
879 879  
880 880  
881 -**Sampling multiple times and uplink together**
855 +==== **Sampling multiple times and uplink together** ====
882 882  
883 883  **AT+WMOD=3,1,60,20,-16,32,1**   
884 884  
885 885  Explain:
886 886  
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.
861 +* Set Working Mode to **Mode 3**
862 +* Sampling Interval is **60**s.
863 +* 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)
864 +* Temperature alarm range is **-16** to **32**°C,
865 +* **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.
893 893  
894 894  (% style="color:#4f81bd" %)**Downlink Command:**
895 895  
... ... @@ -897,7 +897,7 @@
897 897  
898 898  MOD=03
899 899  
900 -TEMP=DS18B20
873 +EXT=01
901 901  
902 902  CITEMP=003C(S)
903 903  
... ... @@ -909,6 +909,7 @@
909 909  
910 910  ARTEMP=01
911 911  
885 +
912 912  **Uplink payload( Fport=3)**
913 913  
914 914  **Example: CBEA**01**0992**//0A41//**09C4**
... ... @@ -915,7 +915,7 @@
915 915  
916 916  BatV=CBEA
917 917  
918 -TEMP=DS18B20
892 +EXT=01
919 919  
920 920  Temp1=0992  ~/~/ 24.50℃
921 921  
... ... @@ -923,9 +923,10 @@
923 923  
924 924  Temp3=09C4  ~/~/ 25.00℃
925 925  
900 +
926 926  (% style="color:red" %)**Note: This uplink will automatically select the appropriate DR according to the data length**
927 927  
928 -(% style="color:red" %)** In this mode, the temperature resolution of ds18b20 is 0.25℃ to save power consumption**
903 +(% style="color:red" %)** In this mode, the temperature resolution of ds18b20 is 0.25℃ to save power consumption**
929 929  )))
930 930  
931 931  
... ... @@ -1645,7 +1645,7 @@
1645 1645  [[image:image-20220615153355-1.png||_mstalt="430222"]]
1646 1646  
1647 1647  
1648 -(% 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.
1623 +(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer  first.
1649 1649  
1650 1650  [[image:image-20220615170542-5.png||_mstalt="430638"]]
1651 1651  
... ... @@ -1711,7 +1711,7 @@
1711 1711  [[image:image-20220623110706-1.png||_mstalt="427869"]]
1712 1712  
1713 1713  
1714 -(% 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.
1689 +(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer  first.
1715 1715  
1716 1716  [[image:image-20220615170542-5.png||_mstalt="430638"]]
1717 1717  
... ... @@ -1797,3 +1797,6 @@
1797 1797  (1) This device may not cause harmful interference;
1798 1798  
1799 1799  (2) this device must accept any interference received, including interference that may cause undesired operation.
1775 +
1776 +
1777 +
image-20230426083319-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -190.0 KB
Content
image-20230426155837-1.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -2.4 KB
Content