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)
Details
- Page properties
-
- Content
-
... ... @@ -46,9 +46,9 @@ 46 46 * Datalog feature 47 47 48 48 49 - 50 50 == 1.3 Specification == 51 51 51 + 52 52 **Built-in Temperature Sensor:** 53 53 54 54 * Resolution: 0.01 °C ... ... @@ -71,7 +71,6 @@ 71 71 * Operating Range: -55 °C ~~ 125 °C 72 72 73 73 74 - 75 75 = 2. Connect LHT65N to IoT Server = 76 76 77 77 == 2.1 How does LHT65N work? == ... ... @@ -85,26 +85,20 @@ 85 85 86 86 The LHT65N has two working modes: 87 87 88 -(% _mstvisible="1" %) 89 89 * (% style="color:blue" %)**Deep Sleep Mode**(%%): LHT65N doesn’t have any LoRaWAN activation. This mode is used for storage and shipping to save battery life. 90 90 * (% style="color:blue" %)**Working Mode**(%%): In this mode, LHT65N works as LoRaWAN Sensor mode to Join LoRaWAN network and send out the sensor data to the server. Between each sampling/tx/rx periodically, LHT65N will be in STOP mode (IDLE mode), in STOP mode, LHT65N has the same power consumption as Deep Sleep mode. 91 91 92 -(% _mstvisible="1" %) 93 -((( 94 -(% _msthash="506062" _msttexthash="6036823" _mstvisible="2" %) 95 95 The LHT65N is set in deep sleep mode by default; The ACT button on the front is to switch to different modes: 96 -))) 97 97 98 - (% _mstvisible="1" %)92 + 99 99 [[image:image-20220515123819-1.png||_mstalt="430742" _mstvisible="3" height="379" width="317"]] 100 100 101 -(% _mstvisible="1" %) 102 102 [[image:image-20220525110604-2.png||_mstalt="427531" _mstvisible="3"]] 103 103 104 104 105 -(% _mstvisible="1" %) 106 -== (% _msthash="882726" _msttexthash="838526" _mstvisible="3" %)2.3 Example to join LoRaWAN network(%%) == 107 107 99 +== 2.3 Example to join LoRaWAN network == 100 + 108 108 (% _msthash="315240" _msttexthash="9205482" _mstvisible="1" class="wikigeneratedid" %) 109 109 This section shows an example of how to join the TTN V3 LoRaWAN IoT server. Use with other LoRaWAN IoT servers is of a similar procedure. 110 110 ... ... @@ -111,71 +111,73 @@ 111 111 (% _mstvisible="1" class="wikigeneratedid" %) 112 112 [[image:image-20220522232442-1.png||_mstalt="427830" _mstvisible="3" height="387" width="648"]] 113 113 114 -(% _msthash="315241" _msttexthash="10802155" _mstvisible="1" %) 107 + 108 +((( 115 115 Assume the LPS8N is already set to connect to [[TTN V3 network>>url:https://eu1.cloud.thethings.network||_mstvisible="2"]], So it provides network coverage for LHT65N. Next we need to add the LHT65N device in TTN V3: 110 +))) 116 116 117 117 118 -(% _mstvisible="1" %) 119 -=== (% _msthash="670592" _msttexthash="634075" _mstvisible="3" %)2.3.1 Step 1: Create Device n TTN(%%) === 120 120 121 -(% _msthash="315242" _msttexthash="1601782" _mstvisible="1" %) 114 +=== 2.3.1 Step 1: Create Device n TTN === 115 + 116 +((( 122 122 Create a device in TTN V3 with the OTAA keys from LHT65N. 118 +))) 123 123 124 -( % _msthash="315243" _msttexthash="3694444" _mstvisible="1" %)120 +((( 125 125 Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below: 122 +))) 126 126 127 -(% _mstvisible="1" %) 128 128 [[image:image-20220617150003-1.jpeg]] 129 129 130 -(% _msthash="315244" _msttexthash="3659149" _mstvisible="1" %) 131 131 User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot: 132 132 133 -(% _msthash="315245" _msttexthash="642889" _mstvisible="1" %) 134 134 Add APP EUI in the application. 135 135 136 - (% _mstvisible="1" %)130 + 137 137 [[image:image-20220522232916-3.png||_mstalt="430495" _mstvisible="3"]] 138 138 139 - (% _mstvisible="1" %)133 + 140 140 [[image:image-20220522232932-4.png||_mstalt="430157" _mstvisible="3"]] 141 141 142 - (% _mstvisible="1" %)136 + 143 143 [[image:image-20220522232954-5.png||_mstalt="431847" _mstvisible="3"]] 144 144 145 - (% _msthash="315246" _msttexthash="878800" _mstvisible="1" %)139 + 146 146 Note: LHT65N use same payload as LHT65. 147 147 148 - (% _mstvisible="1" %)142 + 149 149 [[image:image-20220522233026-6.png||_mstalt="429403" _mstvisible="3"]] 150 150 151 151 152 -(% _msthash="315247" _msttexthash="595543" _mstvisible="1" %) 153 153 Input APP EUI, APP KEY and DEV EUI: 154 154 155 - (% _mstvisible="1" %)148 + 156 156 [[image:image-20220522233118-7.png||_mstalt="430430" _mstvisible="3"]] 157 157 158 158 159 159 160 -(% _mstvisible="1" %) 161 -=== (% _msthash="3537456" _msttexthash="3448549" _mstvisible="3" %)2.3.2 Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds.(%%) === 162 162 163 -(% _msthash="315248" _msttexthash="14452321" _mstvisible="1" %) 154 +=== 2.3.2 Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds. === 155 + 156 +((( 164 164 Use ACT button to activate LHT65N and it will auto-join to the TTN V3 network. After join success, it will start to upload sensor data to TTN V3 and user can see in the panel. 158 +))) 165 165 166 -(% _mstvisible="1" %) 167 167 [[image:image-20220522233300-8.png||_mstalt="428389" _mstvisible="3" height="219" width="722"]] 168 168 169 169 170 170 171 -(% _mstvisible="1" %) 172 -== (% _msthash="320879" _msttexthash="294970" _mstvisible="3" %)2.4 Uplink Payload(%%) == 173 173 174 -(% _msthash="315249" _msttexthash="7722962" _mstvisible="1" %) 165 +== 2.4 Uplink Payload == 166 + 167 +((( 175 175 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. 169 +))) 176 176 177 -( % _msthash="315250" _msttexthash="1322711" _mstvisible="1" %)171 +((( 178 178 After each uplink, the (% _mstvisible="3" style="color:blue" %)**BLUE LED**(%%) will blink once. 173 +))) 179 179 180 180 (% _mstvisible="1" border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:426px" %) 181 181 (% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 97px;" %)(% _mstvisible="5" %) ... ... @@ -241,123 +241,108 @@ 241 241 [[Ext value>>||anchor="H2.4.6Extvalue" _msthash="1817487" _msttexthash="116545" _mstvisible="7"]] 242 242 ))) 243 243 244 -(% _mstvisible="1" %) 245 245 * The First 6 bytes: has fix meanings for every LHT65N. 246 246 * The 7th byte (EXT #): defines the external sensor model. 247 247 * 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.) 248 248 249 -(% _mstvisible="1" %) 250 -=== (% _msthash="360269" _msttexthash="333762" _mstvisible="3" %)2.4.1 Decoder in TTN V3(%%) === 251 251 252 -(% _msthash="315251" _msttexthash="9786491" _mstvisible="1" %) 244 + 245 + 246 + 247 +=== 2.4.1 Decoder in TTN V3 === 248 + 253 253 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. 254 254 255 -(% _msthash="315252" _msttexthash="3928483" _mstvisible="1" %) 256 256 Below is the position to put the decoder and LHT65N decoder can be download from here: 257 257 258 - (% _mstvisible="1" %)253 + 259 259 [[https:~~/~~/www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0 >>https://www.dropbox.com/sh/r2i3zlhsyrpavla/AAB1sZw3mdT0K7XjpHCITt13a?dl=0||_msthash="315253" _msttexthash="3509064" _mstvisible="2"]] 260 260 261 - (% _mstvisible="1" %)256 + 262 262 [[image:image-20220522234118-10.png||_mstalt="451464" _mstvisible="3" height="353" width="729"]] 263 263 264 264 265 265 266 -(% _mstvisible="1" %) 267 -=== (% _msthash="411411" _msttexthash="383656" _mstvisible="3" %)2.4.2 BAT-Battery Info(%%) === 268 268 269 -(% _msthash="315254" _msttexthash="3122912" _mstvisible="1" %) 262 +=== 2.4.2 BAT-Battery Info === 263 + 270 270 These two bytes of BAT include the battery state and the actually voltage 271 271 272 -(% _mstvisible="1" %) 273 273 [[image:image-20220523152839-18.png||_mstalt="457613" _mstvisible="3"]] 274 274 275 - (% _mstvisible="1" %)268 + 276 276 [[image:image-20220522235639-1.png||_mstalt="431392" _mstvisible="3" height="139" width="727"]] 277 277 278 - (% _msthash="315255" _msttexthash="871611" _mstvisible="1" %)271 + 279 279 Check the battery voltage for LHT65N. 280 280 281 -(% _mstvisible="1" %) 282 282 * BAT status=(0Xcba4>>14)&0xFF=11(B),very good 283 283 * Battery Voltage =0xCBF6&0x3FFF=0x0BA4=2980mV 284 284 285 -(% _mstvisible="1" %) 286 -=== (% _msthash="600769" _msttexthash="565838" _mstvisible="3" %)2.4.3 Built-in Temperature(%%) === 287 287 288 -(% _mstvisible="1" %) 278 + 279 + 280 +=== 2.4.3 Built-in Temperature === 281 + 289 289 [[image:image-20220522235639-2.png||_mstalt="431756" _mstvisible="3" height="138" width="722"]] 290 290 291 -(% _mstvisible="1" %) 292 292 * Temperature: 0x0ABB/100=27.47℃ 293 293 294 -(% _mstvisible="1" %) 295 295 [[image:image-20220522235639-3.png||_mstalt="432120" _mstvisible="3"]] 296 296 297 -(% _mstvisible="1" %) 298 298 * Temperature: (0xF5C6-65536)/100=-26.18℃ 299 299 300 -(% _mstvisible="1" %) 301 -=== (% _msthash="475891" _msttexthash="445120" _mstvisible="3" %)2.4.4 Built-in Humidity(%%) === 302 302 303 -(% _mstvisible="1" %) 291 + 292 +=== 2.4.4 Built-in Humidity === 293 + 304 304 [[image:image-20220522235639-4.png||_mstalt="432484" _mstvisible="3" height="138" width="722"]] 305 305 306 -(% _mstvisible="1" %) 307 307 * Humidity: 0x025C/10=60.4% 308 308 309 -(% _mstvisible="1" %) 310 -=== (% _msthash="116532" _msttexthash="87958" _mstvisible="3" %)2.4.5 Ext #(%%) === 311 311 312 -(% _msthash="315256" _msttexthash="552240" _mstvisible="1" %) 299 + 300 +=== 2.4.5 Ext # === 301 + 313 313 Bytes for External Sensor: 314 314 315 -(% _mstvisible="1" %) 316 316 [[image:image-20220523152822-17.png||_mstalt="454545" _mstvisible="3"]] 317 317 318 318 319 -(% _mstvisible="1" %) 320 -=== (% _msthash="221429" _msttexthash="200655" _mstvisible="3" %)2.4.6 Ext value(%%) === 321 321 322 -(% _mstvisible="1" %) 323 -==== (% _msthash="1005901" _msttexthash="877578" _mstvisible="3" %)2.4.6.1 Ext~=1, E3 Temperature Sensor(%%) ==== 308 +=== 2.4.6 Ext value === 324 324 325 -(% _mstvisible="1" %) 310 +==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ==== 311 + 312 + 326 326 [[image:image-20220522235639-5.png||_mstalt="432848" _mstvisible="3"]] 327 327 328 328 329 -(% _mstvisible="1" %) 330 330 * DS18B20 temp=0x0ADD/100=27.81℃ 331 331 332 -(% _msthash="315257" _msttexthash="1038479" _mstvisible="1" %) 333 333 The last 2 bytes of data are meaningless 334 334 335 -(% _mstvisible="1" %) 336 336 [[image:image-20220522235639-6.png||_mstalt="433212" _mstvisible="3"]] 337 337 338 338 339 -(% _mstvisible="1" %) 340 340 * External temperature= (0xF54F-65536)/100=-27.37℃ 341 341 342 -(% _mstvisible="1" %) 343 -((( 344 -(% _msthash="506063" _msttexthash="1038479" _mstvisible="2" %) 345 345 The last 2 bytes of data are meaningless 346 -))) 347 347 348 -(% _mstvisible="1" %) 349 -((( 350 -(% _msthash="506064" _msttexthash="21185632" _mstvisible="2" %) 351 351 If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃ 352 -))) 353 353 354 354 355 -(% _mstvisible="1" %) 356 -==== (% _msthash="1389752" _msttexthash="1234766" _mstvisible="3" %)2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp(%%) ==== 357 357 358 -(% _msthash="315258" _msttexthash="41539368" _mstvisible="1" %) 331 +==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ==== 332 + 333 +((( 359 359 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: 335 +))) 360 360 337 +((( 338 + 339 +))) 340 + 361 361 (% _mstvisible="1" border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %) 362 362 (% _mstvisible="3" %)|=(% _mstvisible="4" style="width: 96px;" %)(% _mstvisible="5" %) 363 363 ((( ... ... @@ -431,6 +431,7 @@ 431 431 ))) 432 432 ))) 433 433 414 + 434 434 (% _mstvisible="1" %) 435 435 * (% _msthash="2539669" _msttexthash="857922" _mstvisible="3" %)**Battery status & **(% class="wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink wikiinternallink" %)**Built-in Humidity** 436 436 ... ... @@ -461,19 +461,20 @@ 461 461 462 462 ))) 463 463 464 - (% _mstvisible="1" %)445 + 465 465 * (% _msthash="504956" _msttexthash="245037" _mstvisible="4" %)**Status & Ext Byte** 466 466 467 -(% _mstvisible="1" %) 468 468 [[image:image-20220523152434-16.png||_mstalt="453921" _mstvisible="3"]] 469 469 470 -(% _mstvisible="1" %) 471 -* Poll Message Flag: 1: This message is a poll message reply, 0: means this is a normal uplink. 472 -* 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. 473 -* 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) 450 +* Poll Message Flag: 1: This message is a poll message reply, 0: means this is a normal uplink. 451 +* 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. 452 +* 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) 474 474 475 -==== (% _msthash="1389752" _msttexthash="1234766" _mstvisible="3" %)2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable)(%%) ==== 476 476 455 + 456 + 457 +==== 2.4.6.3 Ext~=6, ADC Sensor (use with E2 Cable) ==== 458 + 477 477 In this mode, user can connect external ADC sensor to check ADC value. The 3V3_OUT can 478 478 479 479 be used to power the external ADC sensor; user can control the power on time for this ... ... @@ -484,188 +484,128 @@ 484 484 485 485 486 486 487 -(% _mstvisible="1" %) 488 -== (% _msthash="487097" _msttexthash="454818" _mstvisible="3" %)2.5 Show data on Datacake(%%) == 469 +== 2.5 Show data on Datacake == 489 489 490 -( % _msthash="315259" _msttexthash="20933341" _mstvisible="1" %)471 +((( 491 491 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: 473 +))) 492 492 493 -(% _mstvisible="1" %) 494 494 ((( 495 -(% _msthash="506065" _msttexthash="4753983" _mstvisible="2" %) 496 -(% _mstvisible="3" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network. 476 + 497 497 ))) 498 498 499 -(% _mstvisible="1" %) 500 500 ((( 501 -(% _msthash="506066" _msttexthash="14696682" _mstvisible="2" %) 502 -(% _mstvisible="3" %)**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. 480 +(% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network. 503 503 ))) 504 504 505 -(% _mstvisible="1" %) 506 506 ((( 507 -(% _msthash="506067" _msttexthash="180297" _mstvisible="2" %) 484 +(% 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. 485 +))) 486 + 487 +((( 488 + 489 +))) 490 + 491 +((( 508 508 Add Datacake: 509 509 ))) 510 510 511 - (% _mstvisible="1" %)495 + 512 512 [[image:image-20220523000825-7.png||_mstalt="429884" _mstvisible="3" height="262" width="583"]] 513 513 514 514 515 - (% _msthash="315260" _msttexthash="750178" _mstvisible="1" %)499 + 516 516 Select default key as Access Key: 517 517 518 - (% _mstvisible="1" %)502 + 519 519 [[image:image-20220523000825-8.png||_mstalt="430248" _mstvisible="3" height="453" width="406"]] 520 520 521 - (% _msthash="315261" _msttexthash="2134964" _mstvisible="1" %)505 + 522 522 In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/||_mstvisible="2"]]) , add LHT65 device. 523 523 524 - (% _mstvisible="1" %)508 + 525 525 [[image:image-20220523000825-9.png||_mstalt="430612" _mstvisible="3" height="366" width="392"]] 526 526 527 - (% _mstvisible="1" %)511 + 528 528 [[image:image-20220523000825-10.png||_mstalt="450619" _mstvisible="3" height="413" width="728"]] 529 529 530 530 531 531 532 -(% _mstvisible="1" %) 533 -== (% _msthash="350454" _msttexthash="323544" _mstvisible="3" %)2.6 Datalog Feature(%%) == 516 +== 2.6 Datalog Feature == 534 534 535 -( % _msthash="315262" _msttexthash="32283004" _mstvisible="1" %)518 +((( 536 536 Datalog Feature is to ensure IoT Server can get all sampling data from Sensor even if the LoRaWAN network is down. For each sampling, LHT65N will store the reading for future retrieving purposes. There are two ways for IoT servers to get datalog from LHT65N. 520 +))) 537 537 538 538 539 -(% _mstvisible="1" %) 540 -=== (% _msthash="886158" _msttexthash="842426" _mstvisible="3" %)2.6.1 Ways to get datalog via LoRaWAN(%%) === 541 541 542 -(% _msthash="315263" _msttexthash="409604" _mstvisible="1" %) 524 +=== 2.6.1 Ways to get datalog via LoRaWAN === 525 + 543 543 There are two methods: 544 544 545 -(% _mstvisible="1" %) 546 546 1. IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specify time range. 547 547 1. Set [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]], LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N will store the sensor data, and it will send all messages after network recover. 548 548 549 -(% _mstvisible="1" %) 550 -=== (% _msthash="369915" _msttexthash="342797" _mstvisible="3" %)2.6.2 Unix TimeStamp(%%) === 551 551 552 -(% _msthash="315264" _msttexthash="1182285" _mstvisible="1" %) 532 +=== 2.6.2 Unix TimeStamp === 533 + 534 + 553 553 LHT65N uses Unix TimeStamp format based on 554 554 555 - (% _mstvisible="1" %)537 + 556 556 [[image:image-20220523001219-11.png||_mstalt="450450" _mstvisible="3" height="97" width="627"]] 557 557 558 558 559 -(% _mstvisible="1" %) 560 -((( 561 -(% _msthash="506068" _msttexthash="2717234" _mstvisible="2" %) 541 + 562 562 User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/||_mstvisible="3"]] : 563 -))) 564 564 565 -(% _mstvisible="1" %) 566 -((( 567 -(% _msthash="506069" _msttexthash="709813" _mstvisible="2" %) 568 568 Below is the converter example 569 -))) 570 570 571 -(% _mstvisible="1" %) 572 572 [[image:image-20220523001219-12.png||_mstalt="450827" _mstvisible="3" height="298" width="720"]] 573 573 574 -(% _msthash="315265" _msttexthash="15137317" _mstvisible="1" %) 575 575 So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25 576 576 577 577 578 -(% _mstvisible="1" %) 579 -=== (% _msthash="359294" _msttexthash="332748" _mstvisible="3" %)2.6.3 Set Device Time(%%) === 580 580 581 -(% _mstvisible="1" %) 582 -((( 583 -(% _msthash="506070" _msttexthash="4521946" _mstvisible="2" %) 584 -There are two ways to set device’s time: 585 -))) 552 +=== 2.6.3 Set Device Time === 586 586 587 -(% _mstvisible="1" %) 588 -((( 589 -(% _mstvisible="2" %) 590 -(% _msthash="506071" _msttexthash="1498471" _mstvisible="4" %)**1. Through LoRaWAN MAC Command (Default settings)** 591 -))) 554 +There are two ways to set device's time: 592 592 593 -(% _mstvisible="1" %) 594 -((( 595 -(% _msthash="506072" _msttexthash="2126267" _mstvisible="2" %) 556 +**~1. Through LoRaWAN MAC Command (Default settings)** 557 + 596 596 User need to set SYNCMOD=1 to enable sync time via MAC command. 597 -))) 598 598 599 -(% _mstvisible="1" %) 600 -((( 601 -(% _msthash="506073" _msttexthash="54430324" _mstvisible="2" %) 602 602 Once LHT65N Joined LoRaWAN network, it will send the MAC command (DeviceTimeReq) and the server will reply with (DeviceTimeAns) to send the current time to LHT65N. If LHT65N fails to get the time from the server, LHT65N will use the internal time and wait for next time request (AT+SYNCTDC to set the time request period, default is 10 days). 603 -))) 604 604 605 -(% _mstvisible="1" %) 606 -((( 607 -(% _msthash="506074" _msttexthash="92531127" _mstvisible="2" %) 608 -Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 v2 doesn’t support. If server doesn’t support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN V3 v2 if SYNCMOD=1. 609 -))) 562 +(% style="color:red" %)Note: LoRaWAN Server need to support LoRaWAN v1.0.3(MAC v1.0.3) or higher to support this MAC command feature, Chirpstack,TTN V3 v3 and loriot support but TTN V3 v2 doesn’t support. If server doesn’t support this command, it will through away uplink packet with this command, so user will lose the packet with time request for TTN V3 v2 if SYNCMOD=1. 610 610 611 -(% _mstvisible="1" %) 612 -((( 613 -(% _mstvisible="2" %) 614 - 615 -))) 616 616 617 -(% _mstvisible="1" %) 618 -((( 619 -(% _mstvisible="2" %) 620 -(% _msthash="506075" _msttexthash="329719" _mstvisible="4" %)**2. Manually Set Time** 621 -))) 622 622 623 -(% _mstvisible="1" %) 624 -((( 625 -(% _msthash="506076" _msttexthash="7889297" _mstvisible="2" %) 566 +**2. Manually Set Time** 567 + 626 626 User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server. 627 627 628 -(% _msthash="506076" _msttexthash="7889297" _mstvisible="2" %) 629 - 630 -))) 631 631 632 -(% _mstvisible="1" %) 633 -=== (% _msthash="460759" _msttexthash="430001" _mstvisible="3" %)2.6.4 Poll sensor value(%%) === 634 634 635 -(% _msthash="315266" _msttexthash="4955821" _mstvisible="1" %) 572 +=== 2.6.4 Poll sensor value === 573 + 636 636 User can poll sensor value based on timestamps from the server. Below is the downlink command. 637 637 638 -(% _mstvisible="1" %) 639 639 [[image:image-20220523152302-15.png||_mstalt="451581" _mstvisible="3"]] 640 640 641 -(% _mstvisible="1" %) 642 -((( 643 -(% _msthash="506077" _msttexthash="14670916" _mstvisible="2" %) 578 + 644 644 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. 645 -))) 646 646 647 -(% _mstvisible="1" %) 648 -((( 649 -(% _mstvisible="2" %) 650 -For example, downlink command (% _mstmutation="1" %)**31 5FC5F350 5FC6 0160 05**(% _mstvisible="3" style="display:none" %) 651 -))) 581 +For example, downlink command **31 5FC5F350 5FC6 0160 05** 652 652 653 -(% _mstvisible="1" %) 654 -((( 655 -(% _msthash="506078" _msttexthash="6907459" _mstvisible="2" %) 656 656 Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00’s data 657 -))) 658 658 659 -(% _mstvisible="1" %) 660 -((( 661 -(% _msthash="506079" _msttexthash="23531573" _mstvisible="2" %) 662 662 Uplink Internal =5s,means LHT65N will send one packet every 5s. range 5~~255s. 663 -))) 664 664 665 665 666 -(% _mstvisible="1" %) 667 -=== (% _msthash="650923" _msttexthash="614185" _mstvisible="3" %)2.6.5 Datalog Uplink payload(%%) === 668 668 589 +=== 2.6.5 Datalog Uplink payload === 590 + 669 669 (% _msthash="315267" _msttexthash="2245087" _mstvisible="1" %) 670 670 The Datalog poll reply uplink will use below payload format. 671 671