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