Changes for page LHT65N -- Manual do sensor de temperatura e umidade LoRaWAN
Last modified by Xiaoling on 2023/07/18 10:12
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 5 added, 0 removed)
Details
- Page properties
-
- 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 ... ... @@ -121,9 +121,19 @@ 121 121 122 122 [[image:image-20220515123819-1.png||_mstalt="430742" height="379" width="317"]] 123 123 124 -[[image:image-20220525110604-2.png||_mstalt="427531"]] 123 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 124 +|=(% 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** 125 +|(% 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" %)((( 126 +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. 127 +))) 128 +|(% 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" %)((( 129 +(% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will fast blink 5 times, LHT65N will enter working mode and start to JOIN LoRaWAN network. 130 +(% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after join in network. 131 +))) 132 +|(% 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. 125 125 126 126 135 + 127 127 == 2.3 Example to join LoRaWAN network == 128 128 129 129 ... ... @@ -151,7 +151,7 @@ 151 151 Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below: 152 152 ))) 153 153 154 -[[image:image-202 20617150003-1.jpeg||_mstalt="5426434"]]163 +[[image:image-20230426083319-1.png]] 155 155 156 156 User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot: 157 157 ... ... @@ -201,18 +201,18 @@ 201 201 After each uplink, the (% style="color:blue" %)**BLUE LED**(%%) will blink once. 202 202 ))) 203 203 204 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:390px" %)205 -|=(% style="width: 60px;" %)((( 213 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:390px" %) 214 +|=(% style="width: 60px;background-color:#D9E2F3" %)((( 206 206 **Size(bytes)** 207 -)))|=(% style="width: 30px;" %)((( 216 +)))|=(% style="width: 30px;background-color:#D9E2F3" %)((( 208 208 **2** 209 -)))|=(% style="width: 100px;" %)((( 218 +)))|=(% style="width: 100px;background-color:#D9E2F3" %)((( 210 210 **2** 211 -)))|=(% style="width: 100px;" %)((( 220 +)))|=(% style="width: 100px;background-color:#D9E2F3" %)((( 212 212 **2** 213 -)))|=(% style="width: 50px;" %)((( 222 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)((( 214 214 **1** 215 -)))|=(% style="width: 50px;" %)((( 224 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)((( 216 216 **4** 217 217 ))) 218 218 |(% style="width:97px" %)((( ... ... @@ -234,7 +234,9 @@ 234 234 ))) 235 235 236 236 * The First 6 bytes: has fix meanings for every LHT65N. 246 + 237 237 * The 7th byte (EXT #): defines the external sensor model. 248 + 238 238 * 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.) 239 239 240 240 ... ... @@ -253,21 +253,36 @@ 253 253 === 2.4.2 BAT-Battery Info === 254 254 255 255 256 -These two bytes of BAT include the battery state and the actually voltage 267 +These two bytes of BAT include the battery state and the actually voltage. 257 257 258 -[[image:image-20220523152839-18.png||_mstalt="457613"]] 269 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:477px" %) 270 +|=(% style="width: 69px; background-color:#D9E2F3;color:#0070C0" %)((( 271 +**Bit(bit)** 272 +)))|=(% style="width: 253px;background-color:#D9E2F3;color:#0070C0" %)[15:14]|=(% style="width: 155px;background-color:#D9E2F3;color:#0070C0" %)[13:0] 273 +|(% style="width:66px" %)((( 274 +**Value** 275 +)))|(% style="width:250px" %)((( 276 +BAT Status 277 +00(b): Ultra Low ( BAT <= 2.50v) 278 +01(b): Low (2.50v <=BAT <= 2.55v) 279 +10(b): OK (2.55v <= BAT <=2.65v) 280 +11(b): Good (BAT >= 2.65v) 281 +)))|(% style="width:152px" %)Actually BAT voltage 259 259 283 +**(b)stands for binary** 260 260 285 + 261 261 [[image:image-20220522235639-1.png||_mstalt="431392" height="139" width="727"]] 262 262 263 263 264 264 Check the battery voltage for LHT65N. 265 265 266 -* BAT status=(0Xcba4>>14)&0xFF=11(B),very good 267 -* Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV 291 +* BAT status=(0Xcba4>>14)&0xFF=11 (BIN) ,very good 268 268 293 +* Battery Voltage =0xCBA4&0x3FFF=0x0BA4=2980mV 269 269 270 270 296 + 271 271 === 2.4.3 Built-in Temperature === 272 272 273 273 ... ... @@ -295,9 +295,13 @@ 295 295 296 296 Bytes for External Sensor: 297 297 298 -[[image:image-20220523152822-17.png||_mstalt="454545"]] 324 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:425px" %) 325 +|=(% style="width: 102px; background-color:#D9E2F3;color:#0070C0" %)**EXT # Value**|=(% style="width: 323px;background-color:#D9E2F3;color:#0070C0" %)**External Sensor Type** 326 +|(% style="width:102px" %)0x01|(% style="width:319px" %)Sensor E3, Temperature Sensor 327 +|(% style="width:102px" %)0x09|(% style="width:319px" %)Sensor E3, Temperature Sensor, Datalog Mod 299 299 300 300 330 + 301 301 === 2.4.6 Ext value === 302 302 303 303 ==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ==== ... ... @@ -317,11 +317,16 @@ 317 317 318 318 * External temperature= (0xF54F-65536)/100=-27.37℃ 319 319 350 +F54F : (F54F & 8000 == 1) , temp = (F54F - 65536)/100 = 27.37℃ 351 + 352 +(0105 & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 353 + 320 320 The last 2 bytes of data are meaningless 321 321 322 322 If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃ 323 323 324 324 359 + 325 325 ==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ==== 326 326 327 327 ... ... @@ -329,22 +329,19 @@ 329 329 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: 330 330 ))) 331 331 332 -((( 333 - 334 -))) 335 335 336 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:480px" %)337 -|=(% style="width: 50px;" %)((( 368 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %) 369 +|=(% style="width: 50px;background-color:#D9E2F3" %)((( 338 338 **Size(bytes)** 339 -)))|=(% style="width: 70px;" %)((( 371 +)))|=(% style="width: 70px;background-color:#D9E2F3" %)((( 340 340 **2** 341 -)))|=(% style="width: 120px;" %)((( 373 +)))|=(% style="width: 120px;background-color:#D9E2F3" %)((( 342 342 **2** 343 -)))|=(% style="width: 120px;" %)((( 375 +)))|=(% style="width: 120px;background-color:#D9E2F3" %)((( 344 344 **2** 345 -)))|=(% style="width: 50px;" %)((( 377 +)))|=(% style="width: 50px;background-color:#D9E2F3" %)((( 346 346 **1** 347 -)))|=(% style="width: 70px;" %)((( 379 +)))|=(% style="width: 70px;background-color:#D9E2F3" %)((( 348 348 **4** 349 349 ))) 350 350 |(% style="width:110px" %)((( ... ... @@ -363,9 +363,9 @@ 363 363 364 364 * **Battery status & Built-in Humidity** 365 365 366 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:461px" %)367 -|=(% style="width: 6 7px;" %)Bit(bit)|=(% style="width: 256px;" %)[15:14]|=(% style="width: 132px;" %)[11:0]368 -|(% style="width:67px" %)Value|(% style="width:256px" %)((( 398 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:461px" %) 399 +|=(% 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] 400 +|(% style="width:67px" %)**Value**|(% style="width:256px" %)((( 369 369 BAT Status 370 370 00(b): Ultra Low ( BAT <= 2.50v) 371 371 01(b): Low (2.50v <=BAT <= 2.55v) ... ... @@ -377,8 +377,8 @@ 377 377 378 378 * **Status & Ext Byte** 379 379 380 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:500px" %)381 -|=(% 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]**412 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %) 413 +|=(% 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]** 382 382 |=(% 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) 383 383 384 384 * (% style="color:blue" %)**Poll Message Flag**:(%%) 1: This message is a poll message reply, 0: means this is a normal uplink. ... ... @@ -435,6 +435,7 @@ 435 435 [[image:image-20220628151143-7.png||_mstalt="431210"]] 436 436 437 437 470 + 438 438 ==== 2.4.6.4 Ext~=2 TMP117 Sensor (Since Firmware v1.3) ==== 439 439 440 440 ... ... @@ -451,6 +451,7 @@ 451 451 The external cable NE2 can be use for MOD4 and MOD8 452 452 453 453 487 + 454 454 ==== 2.4.6.5 Ext~=4 Interrupt Mode (Since Firmware v1.3) ==== 455 455 456 456 ... ... @@ -470,21 +470,21 @@ 470 470 471 471 Ext=4,Interrupt Sensor: 472 472 473 -(% border="1 .5" cellpadding="4" cellspacing="4" style="background-color:#ffffcc;color:green; height:6px;width:478px" %)507 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:504px" %) 474 474 |(% style="width:101px" %)((( 475 -AT+EXT=4,1 476 -)))|(% style="width:3 73px" %)(((477 -Sent uplink packet in both rising and falling interrupt 509 +**AT+EXT=4,1** 510 +)))|(% style="width:395px" %)((( 511 +**Sent uplink packet in both rising and falling interrupt** 478 478 ))) 479 479 |(% style="width:101px" %)((( 480 -AT+EXT=4,2 481 -)))|(% style="width:3 73px" %)(((482 -Sent uplink packet only in falling interrupt 514 +**AT+EXT=4,2** 515 +)))|(% style="width:395px" %)((( 516 +**Sent uplink packet only in falling interrupt** 483 483 ))) 484 484 |(% style="width:101px" %)((( 485 -AT+EXT=4,3 486 -)))|(% style="width:3 73px" %)(((487 -Sent uplink packet only in rising interrupt 519 +**AT+EXT=4,3** 520 +)))|(% style="width:395px" %)((( 521 +**Sent uplink packet only in rising interrupt** 488 488 ))) 489 489 490 490 Trigger by falling edge: ... ... @@ -497,6 +497,7 @@ 497 497 [[image:image-20220906101145-3.png||_mstalt="428688"]] 498 498 499 499 534 + 500 500 ==== 2.4.6.6 Ext~=8 Counting Mode(Since Firmware v1.3) ==== 501 501 502 502 ... ... @@ -515,21 +515,21 @@ 515 515 516 516 Ext=8, Counting Sensor ( 4 bytes): 517 517 518 -(% border=" 2" cellpadding="4" cellspacing="4" style="background-color:#ffffcc;color:green; height:6px;width:381px" %)519 -|(% style="width:13 8px" %)(((520 -AT+EXT=8,0 521 -)))|(% style="width: 240px" %)(((522 -Count at falling interrupt 553 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:330px" %) 554 +|(% style="width:131px" %)((( 555 +**AT+EXT=8,0** 556 +)))|(% style="width:195px" %)((( 557 +**Count at falling interrupt** 523 523 ))) 524 -|(% style="width:13 8px" %)(((525 -AT+EXT=8,1 526 -)))|(% style="width: 240px" %)(((527 -Count at rising interrupt 559 +|(% style="width:131px" %)((( 560 +**AT+EXT=8,1** 561 +)))|(% style="width:195px" %)((( 562 +**Count at rising interrupt** 528 528 ))) 529 -|(% style="width:13 8px" %)(((530 -AT+SETCNT=60 531 -)))|(% style="width: 240px" %)(((532 -Sent current count to 60 564 +|(% style="width:131px" %)((( 565 +**AT+SETCNT=60** 566 +)))|(% style="width:195px" %)((( 567 +**Sent current count to 60** 533 533 ))) 534 534 535 535 [[image:image-20220906101320-6.png||_mstalt="428064"]] ... ... @@ -555,9 +555,6 @@ 555 555 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: 556 556 ))) 557 557 558 -((( 559 - 560 -))) 561 561 562 562 ((( 563 563 (% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network. ... ... @@ -567,9 +567,6 @@ 567 567 (% 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. 568 568 ))) 569 569 570 -((( 571 - 572 -))) 573 573 574 574 ((( 575 575 Add Datacake: ... ... @@ -669,7 +669,6 @@ 669 669 ))) 670 670 671 671 672 - 673 673 ((( 674 674 **2. Manually Set Time** 675 675 ))) ... ... @@ -684,14 +684,15 @@ 684 684 685 685 User can poll sensor value based on timestamps from the server. Below is the downlink command. 686 686 687 -[[image:image-20220523152302-15.png||_mstalt="451581"]] 715 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:428px" %) 716 +|(% style="width:58px" %)1byte|(% style="width:128px" %)4bytes|(% style="width:123px" %)4bytes|(% style="width:116px" %)1byte 717 +|(% style="width:58px" %)31|(% style="width:128px" %)Timestamp start|(% style="width:123px" %)Timestamp end|(% style="width:116px" %)Uplink Interval 688 688 689 - 690 690 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. 691 691 692 692 For example, downlink command (% _mstmutation="1" %)**31 5FC5F350 5FC6 0160 05**(%%) 693 693 694 -Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00 ’s data723 +Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00's data 695 695 696 696 Uplink Internal =5s,means LHT65N will send one packet every 5s. range 5~~255s. 697 697 ... ... @@ -703,10 +703,10 @@ 703 703 704 704 **Retrieval data payload:** 705 705 706 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:480px" %)707 -|=(% style="width: 60px;" %)((( 735 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %) 736 +|=(% style="width: 60px;background-color:#D9E2F3" %)((( 708 708 **Size(bytes)** 709 -)))|=(% style="width: 90px;" %)**2**|=(% style="width: 90px;" %)**2**|=(% style="width: 70px;" %)**2**|=(% style="width: 100px;" %)**1**|=(% style="width: 70px;" %)**4** 738 +)))|=(% 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** 710 710 |(% 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"]] 711 711 712 712 **Poll message flag & Ext:** ... ... @@ -738,7 +738,7 @@ 738 738 739 739 If LHT65N has below data inside Flash: 740 740 741 -[[image:image-202 20523144455-1.png||_mstalt="430040" height="335" width="735"]]770 +[[image:image-20230426171833-4.png]] 742 742 743 743 744 744 If user sends below downlink command: (% style="background-color:yellow" %)3160065F9760066DA705 ... ... @@ -863,17 +863,18 @@ 863 863 temperature fluctuation=05 864 864 865 865 866 - ====**Sampling multiple times and uplink together**====895 +**Sampling multiple times and uplink together** 867 867 868 868 **AT+WMOD=3,1,60,20,-16,32,1** 869 869 870 870 Explain: 871 871 872 -* Set Working Mode to **Mode 3** 873 -* Sampling Interval is **60**s. 874 -* 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) 875 -* Temperature alarm range is **-16** to **32**°C, 876 -* **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. 901 +* (% style="color:#037691" %)**parameter1:**(%%)Set Working Mode to **Mode 3** 902 +* (% style="color:#037691" %)**parameter2:**(%%) Set the temperature sampling mode to** 1**(1:DS18B20;2:TMP117;3:** **Internal GXHT30). 903 +* (% style="color:#037691" %)**parameter3:**(%%)Sampling Interval is **60**s. 904 +* (% 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) 905 +* (% style="color:#037691" %)**parameter5 & parameter6:**(%%)Temperature alarm range is **-16** to **32**°C, 906 +* (% 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. 877 877 878 878 (% style="color:#4f81bd" %)**Downlink Command:** 879 879 ... ... @@ -881,7 +881,7 @@ 881 881 882 882 MOD=03 883 883 884 - EXT=01914 +TEMP=DS18B20 885 885 886 886 CITEMP=003C(S) 887 887 ... ... @@ -893,7 +893,6 @@ 893 893 894 894 ARTEMP=01 895 895 896 - 897 897 **Uplink payload( Fport=3)** 898 898 899 899 **Example: CBEA**01**0992**//0A41//**09C4** ... ... @@ -900,7 +900,7 @@ 900 900 901 901 BatV=CBEA 902 902 903 - EXT=01932 +TEMP=DS18B20 904 904 905 905 Temp1=0992 ~/~/ 24.50℃ 906 906 ... ... @@ -908,10 +908,9 @@ 908 908 909 909 Temp3=09C4 ~/~/ 25.00℃ 910 910 911 - 912 912 (% style="color:red" %)**Note: This uplink will automatically select the appropriate DR according to the data length** 913 913 914 -(% style="color:red" %)** In this mode, the temperature resolution of ds18b20 is 0.25℃ 942 +(% style="color:red" %)** In this mode, the temperature resolution of ds18b20 is 0.25℃ to save power consumption** 915 915 ))) 916 916 917 917 ... ... @@ -1081,9 +1081,11 @@ 1081 1081 1082 1082 (% style="color:#4f81bd" %)**AT Command: AT+TDC** 1083 1083 1084 -[[image:image-20220523150701-2.png||_mstalt="427453"]] 1112 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:501px" %) 1113 +|(% 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** 1114 +|(% style="width:155px" %)AT+TDC?|(% style="width:162px" %)Show current transmit Interval|(% style="width:177px" %)30000 OK the interval is 30000ms = 30s 1115 +|(% style="width:155px" %)AT+TDC=60000|(% style="width:162px" %)Set Transmit Interval|(% style="width:177px" %)OK Set transmit interval to 60000ms = 60 seconds 1085 1085 1086 - 1087 1087 (% style="color:#4f81bd" %)**Downlink Command: 0x01** 1088 1088 1089 1089 Format: Command Code (0x01) followed by 3 bytes time value. ... ... @@ -1104,8 +1104,12 @@ 1104 1104 1105 1105 (% style="color:#4f81bd" %)**AT Command: AT+EXT** 1106 1106 1107 -[[image:image-20220523150759-3.png||_mstalt="432146"]] 1108 1108 1138 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:468px" %) 1139 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:153px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:160px" %)**Response** 1140 +|(% style="width:155px" %)AT+EXT?|(% style="width:151px" %)Get current external sensor mode|(% style="width:158px" %)1 OK External Sensor mode =1 1141 +|(% style="width:155px" %)AT+EXT=1|(% colspan="2" rowspan="1" style="width:309px" %)Set external sensor mode to 1 1142 +|(% style="width:155px" %)AT+EXT=9|(% colspan="2" rowspan="1" style="width:309px" %)Set to external DS18B20 with timestamp 1109 1109 1110 1110 (% style="color:#4f81bd" %)**Downlink Command: 0xA2** 1111 1111 ... ... @@ -1143,8 +1143,10 @@ 1143 1143 1144 1144 (% style="color:#4f81bd" %)**AT Command:** 1145 1145 1146 -[[image:image-20220523150928-4.png||_mstalt="431821"]] 1147 1147 1181 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:381px" %) 1182 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:138px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:88px" %)**Response** 1183 +|(% style="width:155px" %)AT+PID=1|(% style="width:136px" %)Enable PID uplink|(% style="width:86px" %)OK 1148 1148 1149 1149 (% style="color:#4f81bd" %)**Downlink Command:** 1150 1150 ... ... @@ -1161,9 +1161,16 @@ 1161 1161 1162 1162 (% style="color:#4f81bd" %)**AT Command: AT+PWORD** 1163 1163 1164 -[[image:image-20220523151052-5.png||_mstalt="428623"]] 1165 1165 1201 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:372px" %) 1202 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:128px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:89px" %)**Response** 1203 +|(% style="width:155px" %)AT+PWORD=?|(% style="width:124px" %)Show password|(% style="width:86px" %)((( 1204 +123456 1166 1166 1206 +OK 1207 +))) 1208 +|(% style="width:155px" %)AT+PWORD=999999|(% style="width:124px" %)Set password|(% style="width:86px" %)OK 1209 + 1167 1167 (% style="color:#4f81bd" %)**Downlink Command:** 1168 1168 1169 1169 No downlink command for this feature. ... ... @@ -1177,8 +1177,10 @@ 1177 1177 1178 1178 (% style="color:#4f81bd" %)**AT Command: AT+DISAT** 1179 1179 1180 -[[image:image-20220523151132-6.png||_mstalt="428649"]] 1181 1181 1224 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:433px" %) 1225 +|(% 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** 1226 +|(% style="width:155px" %)AT+DISAT|(% style="width:191px" %)Quit AT Commands mode|(% style="width:86px" %)OK 1182 1182 1183 1183 (% style="color:#4f81bd" %)**Downlink Command:** 1184 1184 ... ... @@ -1195,9 +1195,15 @@ 1195 1195 1196 1196 (% style="color:#4f81bd" %)**AT Command: AT+SLEEP** 1197 1197 1198 -[[image:image-20220523151218-7.png||_mstalt="430703"]] 1199 1199 1244 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:513px" %) 1245 +|(% style="background-color:#d9e2f3; color:#0070c0; width:155px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:140px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:218px" %)**Response** 1246 +|(% style="width:155px" %)AT+SLEEP|(% style="width:139px" %)Set to sleep mode|(% style="width:213px" %)((( 1247 +Clear all stored sensor data… 1200 1200 1249 +OK 1250 +))) 1251 + 1201 1201 (% style="color:#4f81bd" %)**Downlink Command:** 1202 1202 1203 1203 * There is no downlink command to set to Sleep mode. ... ... @@ -1212,9 +1212,15 @@ 1212 1212 1213 1213 (% style="color:#4f81bd" %)**AT Command:** 1214 1214 1215 -[[image:image-20220523151253-8.png||_mstalt="430677"]] 1216 1216 1267 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:506px" %) 1268 +|(% style="background-color:#d9e2f3; color:#0070c0; width:188px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:318px" %)**Function** 1269 +|(% style="width:154px" %)AT+TIMESTAMP=1611104352|(% style="width:285px" %)((( 1270 +OK 1217 1217 1272 +Set System time to 2021-01-20 00:59:12 1273 +))) 1274 + 1218 1218 (% style="color:#4f81bd" %)**Downlink Command:** 1219 1219 1220 1220 0x306007806000 ~/~/ Set timestamp to 0x(6007806000),Same as AT+TIMESTAMP=1611104352 ... ... @@ -1235,8 +1235,10 @@ 1235 1235 1236 1236 (% style="color:#4f81bd" %)**AT Command:** 1237 1237 1238 -[[image:image-20220523151336-9.png||_mstalt="431717"]] 1239 1239 1296 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:475px" %) 1297 +|(% style="background-color:#d9e2f3; color:#0070c0; width:156px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:315px" %)**Function** 1298 +|(% style="width:156px" %)AT+SYNCMOD=1|(% style="width:315px" %)Enable Sync system time via LoRaWAN MAC Command (DeviceTimeReq) 1240 1240 1241 1241 (% style="color:#4f81bd" %)**Downlink Command:** 1242 1242 ... ... @@ -1252,8 +1252,10 @@ 1252 1252 1253 1253 (% style="color:#4f81bd" %)**AT Command:** 1254 1254 1255 -[[image:image-20220523151411-10.png||_mstalt="449696"]] 1256 1256 1315 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:472px" %) 1316 +|(% style="background-color:#d9e2f3; color:#0070c0; width:158px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:314px" %)**Function** 1317 +|(% style="width:156px" %)AT+SYNCTDC=0x0A |(% style="width:311px" %)Set SYNCTDC to 10 (0x0A), so the sync time is 10 days. 1257 1257 1258 1258 (% style="color:#4f81bd" %)**Downlink Command:** 1259 1259 ... ... @@ -1268,7 +1268,7 @@ 1268 1268 1269 1269 (% style="color:#4f81bd" %)**AT Command: AT+PDTA** 1270 1270 1271 -[[image:image-202 20523151450-11.png||_mstalt="451035"]]1332 +[[image:image-20230426164330-2.png]] 1272 1272 1273 1273 1274 1274 (% style="color:#4f81bd" %)**Downlink Command:** ... ... @@ -1284,7 +1284,7 @@ 1284 1284 1285 1285 (% style="color:#4f81bd" %)**AT Command: AT+PLDTA** 1286 1286 1287 -[[image:image-202 20523151524-12.png||_mstalt="452101"]]1348 +[[image:image-20230426164932-3.png]] 1288 1288 1289 1289 1290 1290 (% style="color:#4f81bd" %)**Downlink Command:** ... ... @@ -1300,9 +1300,15 @@ 1300 1300 1301 1301 (% style="color:#4f81bd" %)**AT Command: AT+CLRDTA** 1302 1302 1303 -[[image:image-20220523151556-13.png||_mstalt="454129"]] 1304 1304 1365 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:503px" %) 1366 +|(% style="background-color:#d9e2f3; color:#0070c0; width:157px" %)**Command Example**|(% style="background-color:#d9e2f3; color:#0070c0; width:137px" %)**Function**|(% style="background-color:#d9e2f3; color:#0070c0; width:209px" %)**Response** 1367 +|(% style="width:155px" %)AT+CLRDTA |(% style="width:134px" %)Clear date record|(% style="width:209px" %)((( 1368 +Clear all stored sensor data… 1305 1305 1370 +OK 1371 +))) 1372 + 1306 1306 (% style="color:#4f81bd" %)**Downlink Command: 0xA3** 1307 1307 1308 1308 * Example: 0xA301 ~/~/ Same as AT+CLRDTA ... ... @@ -1319,8 +1319,8 @@ 1319 1319 1320 1320 The default factory setting is 0 1321 1321 1322 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:367px" %)1323 -|=(% style="width: 158px;" %)**Command Example**|=(% style="width: 1 18px;" %)**Function**|=(% style="width: 87px;" %)**Response**1389 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:367px" %) 1390 +|=(% style="width: 158px;background-color:#D9E2F3;color:#0070C0" %)**Command Example**|=(% style="width: 120px;background-color:#D9E2F3;color:#0070C0" %)**Function**|=(% style="width: 87px;background-color:#D9E2F3;color:#0070C0" %)**Response** 1324 1324 |(% style="width:158px" %)AT+PNACKMD=1|(% style="width:118px" %)Poll None-ACK message|(% style="width:87px" %)OK 1325 1325 1326 1326 (% style="color:#4f81bd" %)**Downlink Command: 0x34** ... ... @@ -1334,8 +1334,8 @@ 1334 1334 1335 1335 Feature: Set internal and external temperature sensor alarms. 1336 1336 1337 -(% border="1" cellspacing="4" style="background-color:#fff fcc;color:green;width:500px" %)1338 -|=(% style="width: 250px;" %)**Command Example**|=(% style="width: 200px;" %)**Function**|=(% style="width: 50px;" %)**Response** 1404 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %) 1405 +|=(% 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** 1339 1339 |(% style="width:268px" %)AT+WMOD=parameter1,parameter2,parameter3,parameter4|(% style="width:255px" %)Set internal and external temperature sensor alarms|(% style="width:181px" %)OK 1340 1340 1341 1341 (% style="color:#037691" %)**AT+WMOD=parameter1,parameter2,parameter3,parameter4** ... ... @@ -1590,7 +1590,6 @@ 1590 1590 **Downlink commands:** 1591 1591 1592 1592 1593 - 1594 1594 (% style="color:blue" %)**TTN:** 1595 1595 1596 1596 [[image:image-20220615092124-2.png||_mstalt="429221" height="649" width="688"]] ... ... @@ -1648,7 +1648,7 @@ 1648 1648 [[image:image-20220615153355-1.png||_mstalt="430222"]] 1649 1649 1650 1650 1651 -(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer first. 1717 +(% 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. 1652 1652 1653 1653 [[image:image-20220615170542-5.png||_mstalt="430638"]] 1654 1654 ... ... @@ -1689,6 +1689,12 @@ 1689 1689 [[image:image-20220623110706-1.png||_mstalt="427869"]] 1690 1690 1691 1691 1758 +**UART Port of LHT65N:** 1759 + 1760 +* (% class="mark" %)**PB0: RXD** 1761 +* (% class="mark" %)**PB1: TXD** 1762 +* (% class="mark" %)**GND** 1763 + 1692 1692 [[image:image-20220623112117-4.png||_mstalt="428350" height="459" width="343"]] 1693 1693 1694 1694 ... ... @@ -1708,7 +1708,7 @@ 1708 1708 [[image:image-20220623110706-1.png||_mstalt="427869"]] 1709 1709 1710 1710 1711 -(% style="color:blue" %)**Step1**(%%): Install TremoProgrammer first. 1783 +(% 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. 1712 1712 1713 1713 [[image:image-20220615170542-5.png||_mstalt="430638"]] 1714 1714 ... ... @@ -1740,6 +1740,14 @@ 1740 1740 Finally,Disconnect 3.3v,Connect A8 and GND with Dupont wire for a while and then separate,exit reset mode 1741 1741 1742 1742 1815 +== 6.8 Why can't I see the datalog information == 1816 + 1817 + 1818 +~1. The time is not aligned, and the correct query command is not used. 1819 + 1820 +2. Decoder error, did not parse the datalog data, the data was filtered. 1821 + 1822 + 1743 1743 = 7. Order Info = 1744 1744 1745 1745 ... ... @@ -1792,6 +1792,3 @@ 1792 1792 (1) This device may not cause harmful interference; 1793 1793 1794 1794 (2) this device must accept any interference received, including interference that may cause undesired operation. 1795 - 1796 - 1797 -
- 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
- image-20230426171833-4.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +33.0 KB - Content