Changes for page LHT65N -- Manual do sensor de temperatura e umidade LoRaWAN
Last modified by Xiaoling on 2023/07/18 10:12
From version 228.1
edited by Bei Jinggeng
on 2023/02/01 11:15
on 2023/02/01 11:15
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Bei1 +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 ... ... @@ -117,9 +117,17 @@ 117 117 118 118 [[image:image-20220515123819-1.png||_mstalt="430742" height="379" width="317"]] 119 119 120 -[[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. 121 121 122 - 123 123 == 2.3 Example to join LoRaWAN network == 124 124 125 125 ... ... @@ -147,7 +147,7 @@ 147 147 Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below: 148 148 ))) 149 149 150 -[[image:image-202 20617150003-1.jpeg||_mstalt="5426434"]]157 +[[image:image-20230426083319-1.png]] 151 151 152 152 User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot: 153 153 ... ... @@ -197,18 +197,18 @@ 197 197 After each uplink, the (% style="color:blue" %)**BLUE LED**(%%) will blink once. 198 198 ))) 199 199 200 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:390px" %)201 -|=(% style="width: 60px;" %)((( 207 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:390px" %) 208 +|=(% style="width: 60px;background-color:#D9E2F3" %)((( 202 202 **Size(bytes)** 203 -)))|=(% style="width: 30px;" %)((( 210 +)))|=(% style="width: 30px;background-color:#D9E2F3" %)((( 204 204 **2** 205 -)))|=(% style="width: 100px;" %)((( 212 +)))|=(% style="width: 100px;background-color:#D9E2F3" %)((( 206 206 **2** 207 -)))|=(% style="width: 100px;" %)((( 214 +)))|=(% style="width: 100px;background-color:#D9E2F3" %)((( 208 208 **2** 209 -)))|=(% style="width: 50px;" %)((( 216 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)((( 210 210 **1** 211 -)))|=(% style="width: 50px;" %)((( 218 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)((( 212 212 **4** 213 213 ))) 214 214 |(% style="width:97px" %)((( ... ... @@ -230,7 +230,9 @@ 230 230 ))) 231 231 232 232 * The First 6 bytes: has fix meanings for every LHT65N. 240 + 233 233 * The 7th byte (EXT #): defines the external sensor model. 242 + 234 234 * 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.) 235 235 236 236 === 2.4.1 Decoder in TTN V3 === ... ... @@ -247,19 +247,34 @@ 247 247 === 2.4.2 BAT-Battery Info === 248 248 249 249 250 -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. 251 251 252 -[[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 253 253 275 +**(b)stands for binary** 254 254 277 + 255 255 [[image:image-20220522235639-1.png||_mstalt="431392" height="139" width="727"]] 256 256 257 257 258 258 Check the battery voltage for LHT65N. 259 259 260 -* BAT status=(0Xcba4>>14)&0xFF=11(B),very good 261 -* Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV 283 +* BAT status=(0Xcba4>>14)&0xFF=11 (BIN) ,very good 262 262 285 +* Battery Voltage =0xCBA4&0x3FFF=0x0BA4=2980mV 286 + 263 263 === 2.4.3 Built-in Temperature === 264 264 265 265 ... ... @@ -283,9 +283,11 @@ 283 283 284 284 Bytes for External Sensor: 285 285 286 -[[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 287 287 288 - 289 289 === 2.4.6 Ext value === 290 290 291 291 ==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ==== ... ... @@ -314,6 +314,7 @@ 314 314 If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃ 315 315 316 316 343 + 317 317 ==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ==== 318 318 319 319 ... ... @@ -321,22 +321,19 @@ 321 321 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: 322 322 ))) 323 323 324 -((( 325 - 326 -))) 327 327 328 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:480px" %)329 -|=(% style="width: 50px;" %)((( 352 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %) 353 +|=(% style="width: 50px;background-color:#D9E2F3" %)((( 330 330 **Size(bytes)** 331 -)))|=(% style="width: 70px;" %)((( 355 +)))|=(% style="width: 70px;background-color:#D9E2F3" %)((( 332 332 **2** 333 -)))|=(% style="width: 120px;" %)((( 357 +)))|=(% style="width: 120px;background-color:#D9E2F3" %)((( 334 334 **2** 335 -)))|=(% style="width: 120px;" %)((( 359 +)))|=(% style="width: 120px;background-color:#D9E2F3" %)((( 336 336 **2** 337 -)))|=(% style="width: 50px;" %)((( 361 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)((( 338 338 **1** 339 -)))|=(% style="width: 70px;" %)((( 363 +)))|=(% style="width: 70px;background-color:#D9E2F3" %)((( 340 340 **4** 341 341 ))) 342 342 |(% style="width:110px" %)((( ... ... @@ -355,9 +355,9 @@ 355 355 356 356 * **Battery status & Built-in Humidity** 357 357 358 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:461px" %)359 -|=(% style="width: 6 7px;" %)Bit(bit)|=(% style="width: 256px;" %)[15:14]|=(% style="width: 132px;" %)[11:0]360 -|(% 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" %)((( 361 361 BAT Status 362 362 00(b): Ultra Low ( BAT <= 2.50v) 363 363 01(b): Low (2.50v <=BAT <= 2.55v) ... ... @@ -369,8 +369,8 @@ 369 369 370 370 * **Status & Ext Byte** 371 371 372 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:500px" %)373 -|=(% s cope="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]** 374 374 |=(% 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) 375 375 376 376 * (% style="color:blue" %)**Poll Message Flag**:(%%) 1: This message is a poll message reply, 0: means this is a normal uplink. ... ... @@ -425,6 +425,7 @@ 425 425 [[image:image-20220628151143-7.png||_mstalt="431210"]] 426 426 427 427 452 + 428 428 ==== 2.4.6.4 Ext~=2 TMP117 Sensor (Since Firmware v1.3) ==== 429 429 430 430 ... ... @@ -441,6 +441,7 @@ 441 441 The external cable NE2 can be use for MOD4 and MOD8 442 442 443 443 469 + 444 444 ==== 2.4.6.5 Ext~=4 Interrupt Mode (Since Firmware v1.3) ==== 445 445 446 446 ... ... @@ -460,19 +460,19 @@ 460 460 461 461 Ext=4,Interrupt Sensor: 462 462 463 -(% 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:478px" %) 464 464 |(% style="width:101px" %)((( 465 -AT+EXT=4,1 491 +**AT+EXT=4,1** 466 466 )))|(% style="width:373px" %)((( 467 467 Sent uplink packet in both rising and falling interrupt 468 468 ))) 469 469 |(% style="width:101px" %)((( 470 -AT+EXT=4,2 496 +**AT+EXT=4,2** 471 471 )))|(% style="width:373px" %)((( 472 472 Sent uplink packet only in falling interrupt 473 473 ))) 474 474 |(% style="width:101px" %)((( 475 -AT+EXT=4,3 501 +**AT+EXT=4,3** 476 476 )))|(% style="width:373px" %)((( 477 477 Sent uplink packet only in rising interrupt 478 478 ))) ... ... @@ -487,6 +487,7 @@ 487 487 [[image:image-20220906101145-3.png||_mstalt="428688"]] 488 488 489 489 516 + 490 490 ==== 2.4.6.6 Ext~=8 Counting Mode(Since Firmware v1.3) ==== 491 491 492 492 ... ... @@ -505,7 +505,7 @@ 505 505 506 506 Ext=8, Counting Sensor ( 4 bytes): 507 507 508 -(% border=" 2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc;color:green; height:6px;width:381px" %)535 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:381px" %) 509 509 |(% style="width:138px" %)((( 510 510 AT+EXT=8,0 511 511 )))|(% style="width:240px" %)((( ... ... @@ -545,9 +545,6 @@ 545 545 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: 546 546 ))) 547 547 548 -((( 549 - 550 -))) 551 551 552 552 ((( 553 553 (% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network. ... ... @@ -557,9 +557,6 @@ 557 557 (% 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. 558 558 ))) 559 559 560 -((( 561 - 562 -))) 563 563 564 564 ((( 565 565 Add Datacake: ... ... @@ -852,17 +852,18 @@ 852 852 temperature fluctuation=05 853 853 854 854 855 - ====**Sampling multiple times and uplink together**====876 +**Sampling multiple times and uplink together** 856 856 857 857 **AT+WMOD=3,1,60,20,-16,32,1** 858 858 859 859 Explain: 860 860 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. 882 +* (% style="color:#037691" %)**parameter1:**(%%)Set Working Mode to **Mode 3** 883 +* (% style="color:#037691" %)**parameter2:**(%%) Set the temperature sampling mode to** 1**(1:DS18B20;2:TMP117;3:** **Internal GXHT30). 884 +* (% style="color:#037691" %)**parameter3:**(%%)Sampling Interval is **60**s. 885 +* (% 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) 886 +* (% style="color:#037691" %)**parameter5 & parameter6:**(%%)Temperature alarm range is **-16** to **32**°C, 887 +* (% 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. 866 866 867 867 (% style="color:#4f81bd" %)**Downlink Command:** 868 868 ... ... @@ -870,7 +870,7 @@ 870 870 871 871 MOD=03 872 872 873 - EXT=01895 +TEMP=DS18B20 874 874 875 875 CITEMP=003C(S) 876 876 ... ... @@ -882,7 +882,6 @@ 882 882 883 883 ARTEMP=01 884 884 885 - 886 886 **Uplink payload( Fport=3)** 887 887 888 888 **Example: CBEA**01**0992**//0A41//**09C4** ... ... @@ -889,7 +889,7 @@ 889 889 890 890 BatV=CBEA 891 891 892 - EXT=01913 +TEMP=DS18B20 893 893 894 894 Temp1=0992 ~/~/ 24.50℃ 895 895 ... ... @@ -897,10 +897,9 @@ 897 897 898 898 Temp3=09C4 ~/~/ 25.00℃ 899 899 900 - 901 901 (% style="color:red" %)**Note: This uplink will automatically select the appropriate DR according to the data length** 902 902 903 -(% style="color:red" %)** In this mode, the temperature resolution of ds18b20 is 0.25℃ 923 +(% style="color:red" %)** In this mode, the temperature resolution of ds18b20 is 0.25℃ to save power consumption** 904 904 ))) 905 905 906 906 ... ... @@ -1620,7 +1620,7 @@ 1620 1620 [[image:image-20220615153355-1.png||_mstalt="430222"]] 1621 1621 1622 1622 1623 -(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer first. 1643 +(% 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. 1624 1624 1625 1625 [[image:image-20220615170542-5.png||_mstalt="430638"]] 1626 1626 ... ... @@ -1686,7 +1686,7 @@ 1686 1686 [[image:image-20220623110706-1.png||_mstalt="427869"]] 1687 1687 1688 1688 1689 -(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer first. 1709 +(% 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. 1690 1690 1691 1691 [[image:image-20220615170542-5.png||_mstalt="430638"]] 1692 1692 ... ... @@ -1772,6 +1772,3 @@ 1772 1772 (1) This device may not cause harmful interference; 1773 1773 1774 1774 (2) this device must accept any interference received, including interference that may cause undesired operation. 1775 - 1776 - 1777 -
- image-20230426083319-1.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +190.0 KB - Content