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
-
... ... @@ -111,44 +111,48 @@ 111 111 [[image:image-20230717144740-2.png||height="391" width="267"]] 112 112 113 113 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) 114 -|=(% style="width: 167px;background-color:#D9E2F3;color:#0070C0" %)**Comportamento no ACT**|=(% style="width: 117px;background-color:#D9E2F3;color:#0070C0" %)**Função**|=(% style="width: 225px;background-color:#D9E2F3;color:#0070C0" %)**Acção** 115 -|(% style="background-color:#f2f2f2; width:167px" %)Pressionando ACT entre 1s < tempo < 3s|(% style="background-color:#f2f2f2; width:117px" %)Teste o estado da ligação ascendente|(% style="background-color:#f2f2f2; width:225px" %)Se o LHT65N já estiver unido à rede rhe LoRaWAN, o LHT65N enviará um pacote de uplink, se o LHT65N tiver sensor externo conectado, o led azul piscará uma vez. Se o LHT65N não tiver sensor externo, o led vermelho piscará uma vez. 116 -|(% style="background-color:#f2f2f2; width:167px" %)Pressionando ACT por mais de 3s|(% style="background-color:#f2f2f2; width:117px" %)Dispositivo Activo|(% style="background-color:#f2f2f2; width:225px" %)O led verde piscará rapidamente 5 vezes, o LHT65N entrará no modo de trabalho e começará a juntar-se à rede LoRaWAN. 117 -O led verde ligará solidamente por 5 segundos após a junção na rede. 118 -|(% style="background-color:#f2f2f2; width:167px" %)Pressione rapidamente ACT 5 vezes.|(% style="background-color:#f2f2f2; width:117px" %)Desactivar o Dispositivo|(% style="background-color:#f2f2f2; width:225px" %)((( 119 -O led vermelho ficará sólido durante 5 segundos. Significa que LHT65N está em modo de sono profundo. 114 +|=(% 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** 115 +|(% 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" %)((( 116 +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. 120 120 ))) 118 +|(% 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" %)((( 119 +(% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will fast blink 5 times, LHT65N will enter working mode and start to JOIN LoRaWAN network. 120 +(% style="background-color:#f2f2f2; color:green" %)**Green led**(%%) will solidly turn on for 5 seconds after join in network. 121 +))) 122 +|(% 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 -== 2.3 Ex emploparaingressarna redeLoRaWAN ==124 +== 2.3 Example to join LoRaWAN network == 123 123 124 124 125 125 (% class="wikigeneratedid" %) 126 - Estaseçãomostraumexemplo decomoentrarnoservidorIoTTN V3 LoRaWAN.O usocom outrosservidoresIoTLoRaWANédeum procedimento semelhante.128 +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. 127 127 128 128 129 129 (% class="wikigeneratedid" %) 130 130 [[image:image-20220522232442-1.png||_mstalt="427830" height="387" width="648"]] 131 131 132 -Suponha que o LPS8N já esteja configurado para se conectar à rede [[TTN V3>>https://eu1.cloud.thethings.network]], então ele fornece cobertura de rede para LHT65N. Em seguida, precisamos adicionar o dispositivo LHT65N em TTN V3: 133 133 134 134 ((( 135 - 136 +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: 136 136 ))) 137 137 138 -=== 2.3.1 Etapa 1: Crie dispositivo n ttn === 139 139 140 +=== 2.3.1 Step 1: Create Device n TTN === 140 140 142 + 141 141 ((( 142 -Crie um dispositivo no TTN V3 com as teclas OTAA do LHT65N. 144 +Create a device in TTN V3 with the OTAA keys from LHT65N. 145 +))) 143 143 144 -Cada LHT65N é enviado com um adesivo com seu dispositivo eui, chave de aplicativo e aplicativo eui como abaixo: 147 +((( 148 +Each LHT65N is shipped with a sticker with its device EUI, APP Key and APP EUI as below: 145 145 ))) 146 146 147 147 [[image:image-20230426083319-1.png||height="258" width="556"]] 148 148 149 - O usuáriopodeinseriressaschaves noportaldoservidorLorawan.Abaixoestá a captura de tela do TTN V3:153 +User can enter these keys in the LoRaWAN Server portal. Below is TTN V3 screenshot: 150 150 151 -Ad icioneoaplicativoEUI noaplicativo.155 +Add APP EUI in the application. 152 152 153 153 154 154 [[image:image-20220522232916-3.png||_mstalt="430495"]] ... ... @@ -161,41 +161,43 @@ 161 161 162 162 163 163 164 -(% style="color:red" %)**Not a: LHT65NUse asmacargaútilqueLHT65.**168 +(% style="color:red" %)**Note: LHT65N use same payload as LHT65.** 165 165 166 166 167 167 [[image:image-20220522233026-6.png||_mstalt="429403"]] 168 168 169 169 170 -I NSIDEAPP EUI, APP KEYeDEV EUI:174 +Input APP EUI, APP KEY and DEV EUI: 171 171 172 172 173 173 [[image:image-20220522233118-7.png||_mstalt="430430"]] 174 174 175 175 176 -=== 2.3.2 Passo2: AtiveoLHT65N pressionandoo botãoACTpor mais de 5 segundos. ===180 +=== 2.3.2 Step 2: Activate LHT65N by pressing the ACT button for more than 5 seconds. === 177 177 178 178 179 179 ((( 180 -Use obotãoACT para ativaroLHT65Neelese conectará automaticamenteà redeTTN V3. Apóso sucesso da junção,elecomeçaráa carregarosdadosdosensorpara o TTN V3eousuário poderávernopainel.184 +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. 181 181 ))) 182 182 183 183 [[image:image-20220522233300-8.png||_mstalt="428389" height="219" width="722"]] 184 184 185 185 186 -== 2.4 Carga útil de uplink (Fport~=2) ==190 +== 2.4 Uplink Payload (Fport~=2) == 187 187 188 188 189 189 ((( 190 - A carga de uplink incluitotalmente11 bytes.Ospacotesdeuplink usamFPORT=2ea cada20 minutosviamumuplinkporpadrão.194 +The uplink payload includes totally 11 bytes. Uplink packets use FPORT=2 and (% style="color:#4f81bd" %)**every 20 minutes**(%%) send one uplink by default. 191 191 ))) 192 192 193 193 ((( 194 -A póscadauplink, o LEDAZULpiscaráumavez.198 +After each uplink, the (% style="color:blue" %)**BLUE LED**(%%) will blink once. 195 195 ))) 196 196 197 197 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:390px" %) 198 -|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)Tamanho( bytes)|=(% style="width: 30px;background-color:#D9E2F3;color:#0070C0" %)((( 202 +|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)((( 203 +**Size(bytes)** 204 +)))|=(% style="width: 30px;background-color:#D9E2F3;color:#0070C0" %)((( 199 199 **2** 200 200 )))|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)((( 201 201 **2** ... ... @@ -206,87 +206,94 @@ 206 206 )))|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)((( 207 207 **4** 208 208 ))) 209 -|(% style="width:97px" %)Valor|(% style="width:39px" %)((( 210 -[[MTD>>||anchor="H2.4.2BAT-BatteryInfo"]] 215 +|(% style="width:97px" %)((( 216 +**Value** 217 +)))|(% style="width:39px" %)((( 218 +[[BAT>>||anchor="H2.4.2BAT-BatteryInfo"]] 211 211 )))|(% style="width:100px" %)((( 212 212 ((( 213 -[[Temperatur a incorporada>>||anchor="H2.4.3Built-inTemperature"]]221 +[[Built-In Temperature>>||anchor="H2.4.3Built-inTemperature"]] 214 214 ))) 215 215 )))|(% style="width:77px" %)((( 216 216 ((( 217 -[[ Umidadeincorporada>>||anchor="H2.4.4Built-inHumidity"]]225 +[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 218 218 ))) 219 219 )))|(% style="width:47px" %)((( 220 220 [[Ext>>||anchor="H2.4.5Ext23"]] # 221 221 )))|(% style="width:51px" %)((( 222 -[[ ValorExt>>||anchor="H2.4.6Extvalue"]]230 +[[Ext value>>||anchor="H2.4.6Extvalue"]] 223 223 ))) 224 224 225 -* Osprimeiros 6 bytes:temsignificados fixosparacadaLHT65N.233 +* The First 6 bytes: has fix meanings for every LHT65N. 226 226 227 -* O7ºbyte (EXT #): defineomodelodosensorexterno.235 +* The 7th byte (EXT #): defines the external sensor model. 228 228 229 -* O8º~~ 11ºbyte:ovalorparao valordosensor externo.Adefiniçãoébaseadano tipo de sensorexterno. (SeEXT=0,nãohaveráessesquatrobytes.)237 +* 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.) 230 230 231 231 232 -=== 2.4.1 Decod ificadoremTTN V3 ===240 +=== 2.4.1 Decoder in TTN V3 === 233 233 234 234 235 - Quandoopayloaddo uplink chegaTTNv3,elemostraoformatoHEXenãoéfácildeler.PodemosadicionarLHT65NificadoremTTNv3paraleituraamigável.243 +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. 236 236 237 - Abaixoestáaposiçãopara colocarodecodificadore odecodificadorLHT65Npodeserbaixadoqui: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]]245 +Below is the position to put the decoder and LHT65N decoder can be download from here: [[https:~~/~~/github.com/dragino/dragino-end-node-decoder>>https://github.com/dragino/dragino-end-node-decoder]] 238 238 239 239 240 240 [[image:image-20220522234118-10.png||_mstalt="451464" height="353" width="729"]] 241 241 242 242 243 -=== 2.4.2 Informações da bateriaBAT===251 +=== 2.4.2 BAT-Battery Info === 244 244 245 245 246 - EssesdoisbytesdeBAT incluemo estadodabateriae a tensãoatual.254 +These two bytes of BAT include the battery state and the actually voltage. 247 247 248 248 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:477px" %) 249 249 |=(% style="width: 69px; background-color:#D9E2F3;color:#0070C0" %)((( 250 250 **Bit(bit)** 251 251 )))|=(% style="width: 253px;background-color:#D9E2F3;color:#0070C0" %)[15:14]|=(% style="width: 155px;background-color:#D9E2F3;color:#0070C0" %)[13:0] 252 -|(% style="width:66px" %)Valor|(% style="width:250px" %)Estado MTD 253 -00 b): Ultra baixo ( MTD <= 2,50v) 254 -01 b): Baixo (2,50v <=MTD <= 2,55v) 255 -10 b): OK (2,55v <= MTD <=2,65v) 256 -11 b): Bom (MTD >= 2,65v)|(% style="width:152px" %)Na realidade, tensão MTD 260 +|(% style="width:66px" %)((( 261 +**Value** 262 +)))|(% style="width:250px" %)((( 263 +BAT Status 264 +00(b): Ultra Low ( BAT <= 2.50v) 265 +01(b): Low (2.50v <=BAT <= 2.55v) 266 +10(b): OK (2.55v <= BAT <=2.65v) 267 +11(b): Good (BAT >= 2.65v) 268 +)))|(% style="width:152px" %)Actually BAT voltage 257 257 258 -**(b) ignificabinário**270 +**(b)stands for binary** 259 259 260 260 261 261 [[image:image-20220522235639-1.png||_mstalt="431392" height="139" width="727"]] 262 262 263 -Verifique a tensão da bateria para LHT65N. 264 264 265 -* Status BAT=(0Xcba4>>14)&0xFF=11 (BIN), muito bom 266 -* Tensão da bateria = 0xCBA4 & 0x3FFF = 0x0BA4 = 2980mV 276 +Check the battery voltage for LHT65N. 267 267 278 +* BAT status=(0Xcba4>>14)&0xFF=11 (BIN) ,very good 268 268 280 +* Battery Voltage =0xCBA4&0x3FFF=0x0BA4=2980mV 269 269 270 -=== 2.4.3 Temperatura interna === 271 271 283 +=== 2.4.3 Built-in Temperature === 272 272 285 + 273 273 [[image:image-20220522235639-2.png||_mstalt="431756" height="138" width="722"]] 274 274 275 -* Temperatur a: 0x0ABB/100=27,47ÿ288 +* Temperature: 0x0ABB/100=27.47℃ 276 276 277 277 [[image:image-20220522235639-3.png||_mstalt="432120"]] 278 278 279 -* Temperatur a: (0xF5C6-65536)/100=-26,18ÿ292 +* Temperature: (0xF5C6-65536)/100=-26.18℃ 280 280 281 281 282 282 (% style="display:none" %) 283 283 284 -=== 2.4.4 Umidadeinterna===297 +=== 2.4.4 Built-in Humidity === 285 285 286 286 287 287 [[image:image-20220522235639-4.png||_mstalt="432484" height="138" width="722"]] 288 288 289 -* Umidade: 0x025C/10=60,4%302 +* Humidity: 0x025C/10=60.4% 290 290 291 291 292 292 (% style="display:none" %) ... ... @@ -294,49 +294,53 @@ 294 294 === 2.4.5 Ext # === 295 295 296 296 297 -Bytes para Sensor Externo:310 +Bytes for External Sensor: 298 298 299 299 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:425px" %) 300 -|=(% style="width: 102px; background-color:#D9E2F3;color:#0070C0" %)**EXT # Val or**|=(% style="width: 323px;background-color:#D9E2F3;color:#0070C0" %)Tipo desensor externo301 -|(% style="width:102px" %)0x01|(% style="width:319px" %)Sensor E3, Sensor deTemperatura302 -|(% style="width:102px" %)0x09|(% style="width:319px" %)Sensor E3, Sensor deTemperatura, Mod deRegistrodeDados313 +|=(% style="width: 102px; background-color:#D9E2F3;color:#0070C0" %)**EXT # **Value|=(% style="width: 323px;background-color:#D9E2F3;color:#0070C0" %)External Sensor Type 314 +|(% style="width:102px" %)0x01|(% style="width:319px" %)Sensor E3, Temperature Sensor 315 +|(% style="width:102px" %)0x09|(% style="width:319px" %)Sensor E3, Temperature Sensor, Datalog Mod 303 303 304 -=== 2.4.6 Valorexterno===317 +=== 2.4.6 Ext value === 305 305 306 -==== 2.4.6.1 Ext~=1, SensordeTemperaturaE3====319 +==== 2.4.6.1 Ext~=1, E3 Temperature Sensor ==== 307 307 308 308 309 309 [[image:image-20220522235639-5.png||_mstalt="432848"]] 310 310 311 311 312 -* ,81ÿ325 +* DS18B20 temp=0x0ADD/100=27.81℃ 313 313 314 - Osúltimos 2 bytesdedadosnãotêmsentido.327 +The last 2 bytes of data are meaningless 315 315 316 316 317 317 318 318 [[image:image-20220522235639-6.png||_mstalt="433212"]] 319 319 320 -* Temperatura externa= (0xF54F-65536)/100=-27.37℃ 321 321 322 - F54F:(F54F& 8000 == 1) ,temp,37℃334 +* External temperature= (0xF54F-65536)/100=-27.37℃ 323 323 324 -( 0105 & 8000:Julguese o bit mais alto é1,quando o bitaisaltoé1,énegativo)336 +F54F : (F54F & 8000 == 1) , temp = (F54F - 65536)/100 = 27.37℃ 325 325 326 - Osúltimos2bytesdedadosnãotêmsentido338 +(0105 & 8000:Judge whether the highest bit is 1, when the highest bit is 1, it is negative) 327 327 328 - Seosensor externofor0x01enãohouver temperaturaexternaconectada.A temperatura será ajustada para 7FFF que é 327.67℃340 +The last 2 bytes of data are meaningless 329 329 342 +If the external sensor is 0x01, and there is no external temperature connected. The temperature will be set to 7FFF which is 327.67℃ 330 330 331 -==== 2.4.6.2 Ext~=9, sensor E3 com Unix Timestamp ==== 332 332 333 333 346 +==== 2.4.6.2 Ext~=9, E3 sensor with Unix Timestamp ==== 347 + 348 + 334 334 ((( 335 - O modoTimestampé projetadoparaLHT65NcomsondaE3,eleenviará a carga útil de uplinkcomtimestampUnix.Comalimitaçãode11 bytes (distânciamáximada bandaAU915/US915/AS923),omodo decarimbodehoraseráfaltadecampode tensão BAT,emvezdisso,elemostraostatusdabateria.Acargaútiléaguinte:350 +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: 336 336 ))) 337 337 338 338 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %) 339 -|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)Tamanho( bytes)|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)((( 354 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)((( 355 +**Size(bytes)** 356 +)))|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)((( 340 340 **2** 341 341 )))|=(% style="width: 120px;background-color:#D9E2F3;color:#0070C0" %)((( 342 342 **2** ... ... @@ -347,86 +347,95 @@ 347 347 )))|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)((( 348 348 **4** 349 349 ))) 350 -|(% style="width:110px" %)Valor|(% style="width:71px" %)Temperatura externa|(% style="width:99px" %)((( 351 -[[Temperatura incorporada>>||anchor="H2.4.3Built-inTemperature"]] 367 +|(% style="width:110px" %)((( 368 +**Value** 369 +)))|(% style="width:71px" %)((( 370 +External temperature 371 +)))|(% style="width:99px" %)((( 372 +[[Built-In Temperature>>||anchor="H2.4.3Built-inTemperature"]] 352 352 )))|(% style="width:132px" %)((( 353 -Estado MTD & [[Umidade incorporada>>||anchor="H2.4.4Built-inHumidity"]] 354 -)))|(% style="width:54px" %)Estado & Ext|(% style="width:64px" %)((( 355 -[[Carimbo Horário do Unix>>||anchor="H2.6.2UnixTimeStamp"]] 374 +BAT Status & [[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 375 +)))|(% style="width:54px" %)((( 376 +Status & Ext 377 +)))|(% style="width:64px" %)((( 378 +[[Unix Time Stamp>>||anchor="H2.6.2UnixTimeStamp"]] 356 356 ))) 357 357 358 -* ** Statusdabateriaeumidadeinterna**381 +* **Battery status & Built-in Humidity** 359 359 360 360 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:461px" %) 361 -|=(% style="width: 69px;background-color:#D9E2F3;color:#0070C0" %)Bit(bit)|=(% style="width: 269px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)[15:14]|=(% style="width: 121px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)[11:0] 362 -|(% style="width:67px" %)Valor|(% style="width:269px" %)Estado MTD 363 -00 b): Ultra baixo ( MTD <= 2,50v) 364 -01 b): Baixo (2,50v <=MTD <= 2,55v) 365 -10 b): OK (2,55v <= MTD <=2,65v) 366 -11 b): Bom (MTD >= 2,65v)|(% style="width:121px" %)((( 367 -[[Umidade incorporada>>||anchor="H2.4.4Built-inHumidity"]] 384 +|=(% 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] 385 +|(% style="width:67px" %)**Value**|(% style="width:256px" %)((( 386 +BAT Status 387 +00(b): Ultra Low ( BAT <= 2.50v) 388 +01(b): Low (2.50v <=BAT <= 2.55v) 389 +10(b): OK (2.55v <= BAT <=2.65v) 390 +11(b): Good (BAT >= 2.65v) 391 +)))|(% style="width:132px" %)((( 392 +[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 368 368 ))) 369 369 370 -* ** ebyteexterno**395 +* **Status & Ext Byte** 371 371 372 372 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %) 373 373 |(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**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 -|(% style="width:96px" %)**Status&Ext**|(% style="width:124px" %) SinalizadorNenhum-ACK|(% style="width:146px" %)Mensagemde EnqueteFLAG|(% style="width:109px" %)SincronizarhoraOK|(% style="width:143px" %)Solicitação de HorárioUnix |(% style="width:106px" %)Ext: 0b(1001)399 +|(% 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 401 +* (% style="color:blue" %)**Poll Message Flag**:(%%) 1: This message is a poll message reply, 0: means this is a normal uplink. 402 +* (% style="color:blue" %)**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. 403 +* (% style="color:blue" %)**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) 376 376 377 -* **Bandeira da mensagem da enquete: **1: Esta mensagem é uma resposta da mensagem da enquete, 0: significa que esta é uma ligação uplink normal. 378 -* **Tempo de sincronização OK: **1: Definir tempo ok, 0: N/A. Após o envio da solicitação SYNC, LHT65N definirá este bit como 0 até obter o carimbo de hora do servidor de aplicativos. 379 -* **Unix Time Request: **1: Request server downlink Unix time, 0: N/A. Neste modo, o LHT65N definirá este bit para 1 a cada 10 dias para solicitar um tempo SYNC. (AT+SYNCMOD para definir isto) 380 380 406 +==== 2.4.6.3 Ext~=6, ADC Sensor(use with E2 Cable) ==== 381 381 382 382 409 +In this mode, user can connect external ADC sensor to check ADC value. The 3V3_OUT can 383 383 384 - ====2.4.6.3Ext~=6,Sensor ADC(use comcaboE2)====411 +be used to power the external ADC sensor; user can control the power on time for this 385 385 413 +(% style="color:blue" %)**sensor by setting:** 386 386 387 - Nestemodo,ousuáriopodeconectarsensorADCexternoparaverificarovalorADC. O 3V3_OUT pode serusadopara alimentarosensor ADCexterno;o usuáriopodecontrolaro podernotempoparaisso.415 +**AT+EXT=6,timeout** (% style="color:red" %)**Time to power this sensor, from 0 ~~ 65535ms** 388 388 389 - (% style="color:blue" %)**sensorconfigurando:**417 +**For example:** 390 390 391 - **AT+EXT=6,**timeoutTempoparaligar estesensor,de0~~65535ms419 +AT+EXT=6,1000 will power this sensor for 1000ms before sampling the ADC value. 392 392 393 -**Por exemplo:** 394 394 395 - AT+EXT=6.1000 alimentaráestesensorpor 1000msantesdeamostrarovalor ADC.422 +Or use **downlink command A2** to set the same. 396 396 424 +The measuring range of the node is only about 0.1V to 1.1V The voltage resolution is about 0.24mv. 397 397 398 -Ou use o comando downlink A2 para definir o mesmo. 399 -A faixa de medição do nó é de apenas cerca de 0.1V a 1.1V A resolução da tensão é de cerca de 0.24mv. 400 -Quando a tensão de saída medida do sensor não está dentro da faixa de 0,1V e 1,1V, o terminal de tensão de saída do sensor deve ser dividido O exemplo na figura a seguir é reduzir a tensão de saída do sensor por três vezes Se for necessário reduzir mais vezes, calcule de acordo com a fórmula na figura e conecte a resistência correspondente em série. 426 +When the measured output voltage of the sensor is not within the range of 0.1V and 1.1V, the output voltage terminal of the sensor shall be divided The example in the following figure is to reduce the output voltage of the sensor by three times If it is necessary to reduce more times, calculate according to the formula in the figure and connect the corresponding resistance in series. 401 401 402 402 [[image:image-20220628150112-1.png||_mstalt="427414" height="241" width="285"]] 403 403 404 404 405 - Quandoo pinoADC_IN1éconectadoao GND oususpenso,ovalor deADCé0431 +When ADC_IN1 pin is connected to GND or suspended, ADC value is 0 406 406 407 407 [[image:image-20220628150714-4.png||_mstalt="431054"]] 408 408 409 409 410 - Quandoatensão coletadaporADC_IN1formenordo quea faixamínima,afaixamínimaseráusadacomo saída;Da mesmaforma,quandoatensãocoletadaémaiordoque afaixa máxima,afaixa máximaseráusadacomosaída.436 +When the voltage collected by ADC_IN1 is less than the minimum range, the minimum range will be used as the output; Similarly, when the collected voltage is greater than the maximum range, the maximum range will be used as the output. 411 411 412 412 413 -1) Afaixamínimaé de cercade 0.1V.Cadachip temcalibraçãointerna,assimqueestevalor está pertode0.1V439 +1) The minimum range is about 0.1V. Each chip has internal calibration, so this value is close to 0.1V 414 414 415 415 [[image:image-20220628151005-5.png||_mstalt="429546"]] 416 416 417 417 418 -2) Afaixa máximaé de cercade 1.1V.Cadachip temcalibraçãointerna,assimqueestevalor está pertode1.1v444 +2) The maximum range is about 1.1V. Each chip has internal calibration, so this value is close to 1.1v 419 419 420 420 [[image:image-20220628151056-6.png||_mstalt="431873"]] 421 421 422 422 423 -3) Dentrodoalcance449 +3) Within range 424 424 425 425 [[image:image-20220628151143-7.png||_mstalt="431210"]] 426 426 427 427 428 428 429 -==== 2.4.6.4 Ext~=2 TMP117 Sensor desde Firmware v1.3)(% style="display:none" %) (%%) ====455 +==== 2.4.6.4 Ext~=2 TMP117 Sensor((% style="display:none" %) (%%)Since Firmware v1.3)(% style="display:none" %) (%%) ==== 430 430 431 431 [[image:image-20230717151328-8.png]] 432 432 ... ... @@ -434,82 +434,88 @@ 434 434 435 435 436 436 437 -(% style="color:blue" %)**Ext=2, Sensor de temperatura(TMP117):**463 +(% style="color:blue" %)**Ext=2,Temperature Sensor(TMP117):** 438 438 439 439 [[image:image-20220906102307-7.png||_mstalt="430443"]] 440 440 441 441 442 -(% style="color:blue" %)** Modo deInterrupção eMododeContagem:**(% style="color:blue; display:none" %)** **468 +(% style="color:blue" %)**Interrupt Mode and Counting Mode:**(% style="color:blue; display:none" %)** ** 443 443 444 - OcaboexternoNE2podeserusadoparaMOD4eMOD8470 +The external cable NE2 can be use for MOD4 and MOD8 445 445 446 446 447 447 448 -==== 2.4.6.5 Ext~=11 SHT31 Sensor ( desde Firmware v1.4.1) ====474 +==== 2.4.6.5 Ext~=11 SHT31 Sensor ((% style="display:none" %) (%%)Since Firmware v1.4.1) ==== 449 449 450 450 451 451 452 452 [[image:image-20230717151245-7.png]] 453 453 454 -(% style="color:blue" %)**Ext=11, sensor de temperaturae umidade(SHT31):**480 +(% style="color:blue" %)**Ext=11,Temperature & Humidity Sensor(SHT31):** 455 455 456 456 [[image:SHT31.png]] 457 457 458 458 459 459 460 -==== 2.4.6.6 Ext~=4 Interrupt Mode DesdeFirmware v1.3) ====486 +==== 2.4.6.6 Ext~=4 Interrupt Mode(Since Firmware v1.3) ==== 461 461 462 462 463 -(% style="color:red" %)**Not a:Nestemodo,a saída de3.3vestarásempreligada. LHT65N enviaráum uplinkquandohouverumgatilho.**489 +(% style="color:red" %)**Note: In this mode, 3.3v output will be always ON. LHT65N will send an uplink when there is a trigger.** 464 464 465 465 466 -(% style="color:blue" %)** O modo de interrupçãopodeserusadoparaconectar-sea sensoresexternosdeinterrupção,tais como:**492 +(% style="color:blue" %)**Interrupt Mode can be used to connect to external interrupt sensors such as:** 467 467 468 -(% style="color:#037691" %)**Cas o1:sensordeporta.** (%%)3.3v Outparatalsensoréapenas detectarAbrir/Fechar.494 +(% style="color:#037691" %)**Case 1: Door Sensor.** (%%)3.3v Out for such sensor is just to detect Open/Close. 469 469 470 - Noestado aberto, o consumode energiaé o mesmo que senãohouvernenhumasonda496 + In Open State, the power consumption is the same as if there is no probe 471 471 472 - NoestadoClose, o consumode energiaserá3uAmaiordoque onormal.498 + In Close state, the power consumption will be 3uA higher than normal. 473 473 474 474 [[image:image-20220906100852-1.png||_mstalt="429156" height="205" width="377"]] 475 475 476 476 477 -Ext=4, Sensor deInterrupção:503 +Ext=4,Interrupt Sensor: 478 478 479 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:5 10px" %)505 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:504px" %) 480 480 |(% style="width:101px" %)((( 481 481 **AT+EXT=4,1** 482 -)))|(% style="width:421px" %)Pacote de uplink enviado na interrupção ascendente e caindo 508 +)))|(% style="width:395px" %)((( 509 +**Sent uplink packet in both rising and falling interrupt** 510 +))) 483 483 |(% style="width:101px" %)((( 484 484 **AT+EXT=4,2** 485 -)))|(% style="width:421px" %)Enviou um pacote de ligação ascendente apenas na interrupção em queda 513 +)))|(% style="width:395px" %)((( 514 +**Sent uplink packet only in falling interrupt** 515 +))) 486 486 |(% style="width:101px" %)((( 487 487 **AT+EXT=4,3** 488 -)))|(% style="width:421px" %)Enviou o pacote de uplink apenas na interrupção crescente 518 +)))|(% style="width:395px" %)((( 519 +**Sent uplink packet only in rising interrupt** 520 +))) 489 489 490 - Acionadorpelabordadequeda:522 +Trigger by falling edge: 491 491 492 492 [[image:image-20220906101145-2.png||_mstalt="428324"]] 493 493 494 494 495 -Trigger by rais eedge:527 +Trigger by raising edge: 496 496 497 497 [[image:image-20220906101145-3.png||_mstalt="428688"]] 498 498 499 499 500 500 501 -==== 2.4.6.7 Ext~=8 Modo de contagem(desde Firmware v1.3) ====533 +==== 2.4.6.7 Ext~=8 Counting Mode(Since Firmware v1.3) ==== 502 502 503 503 504 -(% style="color:red" %)**Not a:Nestemodo,a saída de3,3V estarásempreligada.O LHT65N contaráparacadainterrupçãoeuplink periodicamente.**536 +(% style="color:red" %)**Note: In this mode, 3.3v output will be always ON. LHT65N will count for every interrupt and uplink periodically.** 505 505 506 506 507 -(% style="color:blue" %)**Cas o1:**Sensorde fluxodebaixoconsumodeenergia,essesensordefluxotemsaídade pulsooconsumode energianoníveluAe podeseralimentadoporLHT65N.539 +(% style="color:blue" %)**Case 1**(%%): Low power consumption Flow Sensor, such flow sensor has pulse output and the power consumption in uA level and can be powered by LHT65N. 508 508 509 509 [[image:image-20220906101320-4.png||_mstalt="427336" height="366" width="698"]] 510 510 511 511 512 -(% style="color:blue" %)**Cas o2:**Sensorde FluxoNormal:Estesensordefluxotemmaior consumo deenergiaenãoé adequado para ser alimentado por LHT65N.É alimentadoporenergiaexterna esaída<3,3o544 +(% style="color:blue" %)**Case 2**(%%): Normal Flow Sensor: Such flow sensor has higher power consumption and is not suitable to be powered by LHT65N. It is powered by external power and output <3.3v pulse 513 513 514 514 [[image:image-20220906101320-5.png||_mstalt="427700" height="353" width="696"]] 515 515 ... ... @@ -516,42 +516,50 @@ 516 516 517 517 Ext=8, Counting Sensor ( 4 bytes): 518 518 519 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width: 407px" %)551 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:330px" %) 520 520 |(% style="width:131px" %)((( 521 521 **AT+EXT=8,0** 522 -)))|(% style="width:271px" %)Contagem na interrupção de queda 554 +)))|(% style="width:195px" %)((( 555 +**Count at falling interrupt** 556 +))) 523 523 |(% style="width:131px" %)((( 524 524 **AT+EXT=8,1** 525 -)))|(% style="width:271px" %)Contagem na interrupção ascendente 559 +)))|(% style="width:195px" %)((( 560 +**Count at rising interrupt** 561 +))) 526 526 |(% style="width:131px" %)((( 527 527 **AT+SETCNT=60** 528 -)))|(% style="width:271px" %)Enviou a contagem atual para 60 564 +)))|(% style="width:195px" %)((( 565 +**Sent current count to 60** 566 +))) 529 529 530 530 [[image:image-20220906101320-6.png||_mstalt="428064"]] 531 531 532 532 533 -(% style="color:blue" %)** Comandodeligaçãodescendente A2:**571 +(% style="color:blue" %)**A2 downlink Command:** 534 534 535 -A2 02: OmesmoqueAT+EXT=2 (AT+EXT= segundobyte)573 +A2 02: Same as AT+EXT=2 (AT+EXT= second byte) 536 536 537 -A2 06 01 F4: OmesmoqueAT+EXT=6.500 (AT+EXT= segundobyte,erceiroequartobytes)575 +A2 06 01 F4: Same as AT+EXT=6,500 (AT+EXT= second byte, third and fourth bytes) 538 538 539 -A2 04 02: OmesmoqueAT+EXT=4,2 (AT+EXT= segundobyte,erceirobyte)577 +A2 04 02: Same as AT+EXT=4,2 (AT+EXT= second byte, third byte) 540 540 541 -A2 08 01 00: OmesmoqueAT+EXT=8,0 (AT+EXT= segundobyte,quartobyte)579 +A2 08 01 00: Same as AT+EXT=8,0 (AT+EXT= second byte, fourth byte) 542 542 543 -A2 08 02 00 00 00 3C: OmesmoqueAT+ SETCNT=60ºbytee5ºbytee6ºbytee7ºbyte)581 +A2 08 02 00 00 00 3C: Same as AT+ SETCNT=60 (AT+ SETCNT = 4th byte and 5th byte and 6th byte and 7th byte) 544 544 545 545 546 -==== 2.4.6.8 Ext~=10, sensor E2(TMP117)comUnix Timestampdesdefirmware V1.3.2) ====584 +==== 2.4.6.8 Ext~=10, E2 sensor (TMP117)with Unix Timestamp(Since firmware V1.3.2) ==== 547 547 548 548 549 549 ((( 550 - O modoTimestampé projetadoparaLHT65NcomsondaE2,eleenviará a carga útil de uplinkcomtimestampUnix.Comalimitaçãode11 bytes (distânciamáximada bandaAU915/US915/AS923),omodo decarimbodehoraseráfaltadecampode tensão BAT,emvezdisso,elemostraostatusdabateria.Acargaútiléaguinte:588 +Timestamp mode is designed for LHT65N with E2 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: 551 551 ))) 552 552 553 553 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %) 554 -|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)Tamanho(bytes)|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)((( 592 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)((( 593 +**Size(bytes)** 594 +)))|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)((( 555 555 **2** 556 556 )))|=(% style="width: 120px;background-color:#D9E2F3;color:#0070C0" %)((( 557 557 **2** ... ... @@ -562,56 +562,64 @@ 562 562 )))|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)((( 563 563 **4** 564 564 ))) 565 -|(% style="width:110px" %)Valor|(% style="width:71px" %)Temperatura externa|(% style="width:99px" %)((( 566 -[[Temperatura incorporada>>||anchor="H2.4.3Built-inTemperature"]] 605 +|(% style="width:110px" %)((( 606 +**Value** 607 +)))|(% style="width:71px" %)((( 608 +External temperature 609 +)))|(% style="width:99px" %)((( 610 +[[Built-In Temperature>>||anchor="H2.4.3Built-inTemperature"]] 567 567 )))|(% style="width:132px" %)((( 568 -Estado MTD & [[Umidade incorporada>>||anchor="H2.4.4Built-inHumidity"]] 569 -)))|(% style="width:54px" %)Estado & Ext|(% style="width:64px" %)((( 570 -[[Carimbo Horário do Unix>>||anchor="H2.6.2UnixTimeStamp"]] 612 +BAT Status & [[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 613 +)))|(% style="width:54px" %)((( 614 +Status & Ext 615 +)))|(% style="width:64px" %)((( 616 +[[Unix Time Stamp>>||anchor="H2.6.2UnixTimeStamp"]] 571 571 ))) 572 572 573 -* ** Estadodabateriae humidadeincorporada**619 +* **Battery status & Built-in Humidity** 574 574 575 575 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:461px" %) 576 576 |=(% 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] 577 -|(% style="width:67px" %)Valor|(% style="width:256px" %)Estado MTD 578 -00 b): Ultra baixo ( MTD <= 2,50v) 579 -01 b): Baixo (2,50v <=MTD <= 2,55v) 580 -10 b): OK (2,55v <= MTD <=2,65v) 581 -11 b): Bom (MTD >= 2,65v)|(% style="width:132px" %)((( 582 -[[Umidade incorporada>>||anchor="H2.4.4Built-inHumidity"]] 623 +|(% style="width:67px" %)**Value**|(% style="width:256px" %)((( 624 +BAT Status 625 +00(b): Ultra Low ( BAT <= 2.50v) 626 +01(b): Low (2.50v <=BAT <= 2.55v) 627 +10(b): OK (2.55v <= BAT <=2.65v) 628 +11(b): Good (BAT >= 2.65v) 629 +)))|(% style="width:132px" %)((( 630 +[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 583 583 ))) 584 584 585 -* **Status ebyteexterno**633 +* **Status & Ext Byte** 586 586 587 587 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:500px" %) 588 588 |(% style="background-color:#d9e2f3; color:#0070c0; width:60px" %)**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]** 589 -|(% style="width:96px" %)**Status&Ext**|(% style="width:124px" %) Bandeira SemACK|(% style="width:146px" %)FLAGdeMensagemde Sondagem|(% style="width:109px" %)Tempo de sincronizaçãoOK|(% style="width:143px" %)PedidodeTempoUnix|(% style="width:106px" %)Ext: 0b(1001)637 +|(% 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) 590 590 591 -* (% style="color:blue" %)** Sinalizadordemensagemde votação:**(%%)estamensageméumarespostademensagemdevotação, 0: significaque esteéum uplinknormal.592 -* (% style="color:blue" %)** Tempo de sincronizaçãoOK:** (%%) 1:Definirotempook, 0: N/A. Após oenvioda solicitaçãoSYNC, LHT65Ndefiniráeste bitcomo0atéobtero carimbo dehorado servidorde aplicativos.593 -* (% style="color:blue" %)** PedidodeTempoUnix:**(%%)Nestemodo,oLHT65Ndefiniráeste bitpara1acada10 diasparasolicitarumtempoSYNC. (AT+SYNCMODparadefiniristo)639 +* (% style="color:blue" %)**Poll Message Flag**:(%%) 1: This message is a poll message reply, 0: means this is a normal uplink. 640 +* (% style="color:blue" %)**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. 641 +* (% style="color:blue" %)**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) 594 594 595 595 596 -== 2.5 MostrardadossobreoDatacake ==644 +== 2.5 Show data on Datacake == 597 597 598 598 599 599 ((( 600 - A plataformaDatacake IoT forneceuma interfaceamigável para mostrarosdadosdo sensor,umavezquetemosdadosdo sensor noTTN V3,podemosusaroDatacakeparaconectarao TTN V3 everosdadosnoDatacake.Abaixo estãoosassos:648 +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: 601 601 ))) 602 602 603 603 604 604 ((( 605 -(% style="color:blue" %)** Passo1:**(%%)Certifique-sedequeseu dispositivoestáprogramadoe conectadocorretamenteà redeLoRaWAN.653 +(% style="color:blue" %)**Step 1**(%%): Be sure that your device is programmed and properly connected to the LoRaWAN network. 606 606 ))) 607 607 608 608 ((( 609 -(% style="color:blue" %)** Passo2:**(%%)Configureseuaplicativoparaencaminhar dados parao Datacakevocêprecisaráadicionarintegração.VáparaTTN V3 Console ~-~-> Aplicações ~-~-> Integrações ~-~-> AdicionarIntegrações.657 +(% 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. 610 610 ))) 611 611 612 612 613 613 ((( 614 -Ad icionar a BolodeDados:662 +Add Datacake: 615 615 ))) 616 616 617 617 ... ... @@ -619,14 +619,15 @@ 619 619 620 620 621 621 622 -Selec cioneachavepor omissãocomo Chave deAcesso:670 +Select default key as Access Key: 623 623 624 624 625 625 [[image:image-20220523000825-8.png||_mstalt="430248" height="453" width="406"]] 626 626 627 -No console Datacake ([[https:~~/~~/datacake.co/>>https://datacake.co/]]) , adicione o dispositivo LHT65. 628 628 676 +In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT65 device. 629 629 678 + 630 630 [[image:image-20220523000825-9.png||_mstalt="430612" height="366" width="392"]] 631 631 632 632 ... ... @@ -633,31 +633,31 @@ 633 633 [[image:image-20220523000825-10.png||_mstalt="450619" height="413" width="728"]] 634 634 635 635 636 -== 2.6 Recursodegistode dados==685 +== 2.6 Datalog Feature == 637 637 638 638 639 639 ((( 640 - O recursoDatalogé garantir que o IoT Serverpossaobtertodosos dados deamostragemdo Sensor,mesmo searedeLoRaWAN estiver inativa.Paracadaamostragem,oLHT65Narmazenaráa leituraparafinsfuturos de recuperação.Há duasmaneirasdeservidoresIoTobteremdatalogdo LHT65N.689 +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. 641 641 ))) 642 642 643 643 644 -=== 2.6.1 Maneirasde obterdatalog via LoRaWAN ===693 +=== 2.6.1 Ways to get datalog via LoRaWAN === 645 645 646 646 647 - Existemdoismétodos:696 +There are two methods: 648 648 649 -(% style="color:blue" %)**M étodo1:**OIoT Server enviaum comando LoRaWANdownlinkparapesquisaro valorparaointervalo detempoespecificado.698 +(% style="color:blue" %)**Method 1:** (%%)IoT Server sends a downlink LoRaWAN command to [[poll the value>>||anchor="H2.6.4Pollsensorvalue"]] for specified time range. 650 650 651 651 652 -(% style="color:blue" %)**M étodo2: **(%%)DefinaPNACKMD=1,oLHT65N aguardaráo ACKparacadauplink,quandonãohouverredeLoRaWAN,o LHT65N marcaráessesregistroscommensagens nãoreconhecidasearmazenaráosdadosdosensoreenviará todasasmensagens (intervalo de 10s) apósarecuperaçãodarede.701 +(% style="color:blue" %)**Method 2: **(%%)Set [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]], LHT65N will wait for ACK for every uplink, when there is no LoRaWAN network, LHT65N will mark these records with non-ack messages and store the sensor data, and it will send all messages (10s interval) after the network recovery. 653 653 654 654 655 -(% style="color:red" %)**Not aparaométodo2:**704 +(% style="color:red" %)**Note for method 2:** 656 656 657 -* a) OLHT65Nfará uma verificaçãodeACKparaenvio deregistrosde dadospara garantirquetodososservidoresde dadoscheguem.658 -* b) LHT65N en viarádadosnomodoCONFIRMEDquando PNACKMD=1,masLHT65Nnão transmitiránovamenteopacoteseelenãoreceberACK,eleapenasirámarcá-locomoumamensagemNÃO.Em umuplink futuro,se oLHT65NreceberumACK,oLHT65N consideraráqueháumaconexãoderedee reenviarátodasasmensagensNONE-ACK.706 +* a) LHT65N will do an ACK check for data records sending to make sure every data arrive server. 707 +* b) LHT65N will send data in **CONFIRMED Mode** when PNACKMD=1, but LHT65N won't re-transmit the packet if it doesn't get ACK, it will just mark it as a NONE-ACK message. In a future uplink if LHT65N gets a ACK, LHT65N will consider there is a network connection and resend all NONE-ACK Message. 659 659 660 - Abaixoestáocasotípico parao recurso deregistrodedadosde atualização automática(DefinirPNACKMD=1)709 +Below is the typical case for the auto-update datalog feature (Set PNACKMD=1) 661 661 662 662 663 663 [[image:image-20220703111700-2.png||_mstalt="426244" height="381" width="1119"]] ... ... @@ -666,7 +666,7 @@ 666 666 === 2.6.2 Unix TimeStamp === 667 667 668 668 669 -LHT65N us ao formatoUnix TimeStamp baseadoem718 +LHT65N uses Unix TimeStamp format based on 670 670 671 671 672 672 [[image:image-20220523001219-11.png||_mstalt="450450" height="97" width="627"]] ... ... @@ -673,57 +673,57 @@ 673 673 674 674 675 675 676 - O usuáriopodeobter estetempoa partirdo link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :725 +User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 677 677 678 - Abaixoestáoexemplodoconversor727 +Below is the converter example 679 679 680 680 [[image:image-20220523001219-12.png||_mstalt="450827" height="298" width="720"]] 681 681 682 682 683 - Então,podemosusarAT+TIMESTAMP=1611889405 oudownlink 3060137afd00paradefinirahoraatual2021 – Jan ~-~- 29Sexta 03:03:25732 +So, we can use AT+TIMESTAMP=1611889405 or downlink 3060137afd00 to set the current time 2021 – Jan ~-~- 29 Friday 03:03:25 684 684 685 685 686 -=== 2. finira Hora do Dispositivo===735 +=== 2.6.3 Set Device Time === 687 687 688 688 689 689 ((( 690 -(% style="color:blue" %)** Existemduas maneiras dedefinirahoradodispositivo:**739 +(% style="color:blue" %)**There are two ways to set device's time:** 691 691 ))) 692 692 693 693 ((( 694 -** ~1.Através docomandoMACLoRaWAN(configuraçõespadrão)**743 +**1. Through LoRaWAN MAC Command (Default settings)** 695 695 ))) 696 696 697 697 ((( 698 - O usuárioprecisadefinirSYNCMOD=1parahabilitar o tempodesincronizaçãovia comando MAC.747 +User need to set SYNCMOD=1 to enable sync time via MAC command. 699 699 ))) 700 700 701 701 ((( 702 - Uma vezqueLHT65Nentrouna redeLoRaWAN,eleenviaráocomandoMAC(DeviceTimeReq) eoservidor responderácom(DeviceTimeAns)paraenviarahoraatualparaLHT65N.SeoLHT65Nnãoconseguirobterahora do servidor,oLHT65N usaráahorainterna e aguardaráapróximasolicitaçãode hora(AT+SYNCTDCpara definiroperíododesolicitação detempo,padrãoéde 10 dias).751 +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). 703 703 ))) 704 704 705 705 ((( 706 -(% style="color:red" %)**Not a: LoRaWAN ServerprecisasuportarLoRaWAN v1.0.3usuperiorparasuportareste recursodecomandoMAC, Chirpstack,esuporteloriot,mas TTN V3 v2não suporta.Seoservidornão suportarestecomando,eleiráatravés dopacotedeuplink awaycomestecomando,entãoousuárioperderáopacotecom solicitaçãodetempoparaTTN V3 v2seSYNCMOD=1.**755 +(% 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.** 707 707 ))) 708 708 709 709 710 710 ((( 711 -**2. Definir manualmenteo tempo**760 +**2. Manually Set Time** 712 712 ))) 713 713 714 714 ((( 715 - O usuárioprecisadefinirSYNCMOD=0comohoramanual,caso contrário, ompo definidopelousuárioserásubstituído pelotempodefinidopeloservidor.764 +User needs to set SYNCMOD=0 to manual time, otherwise, the user set time will be overwritten by the time set by the server. 716 716 ))) 717 717 718 718 719 -=== 2.6.4 Valordosensorde sondagem===768 +=== 2.6.4 Poll sensor value === 720 720 721 721 722 - O usuáriopode sondarovalordosensorcombaseemtimestampsdo servidor.Abaixoestáo comandodownlink.771 +User can poll sensor value based on timestamps from the server. Below is the downlink command. 723 723 724 724 (% border="1" cellspacing="5" style="background-color:#f2f2f2; width:428px" %) 725 725 |(% style="background-color:#d9e2f3; color:#0070c0; width:58px" %)**1byte**|(% style="background-color:#d9e2f3; color:#0070c0; width:128px" %)**4bytes**|(% style="background-color:#d9e2f3; color:#0070c0; width:123px" %)**4bytes**|(% style="background-color:#d9e2f3; color:#0070c0; width:116px" %)**1byte** 726 -|(% style="width:58px" %)31|(% style="width:128px" %) Início do carimbo dedata/hora|(% style="width:123px" %)Timestamp end|(% style="width:116px" %)Uplink Interval775 +|(% style="width:58px" %)31|(% style="width:128px" %)Timestamp start|(% style="width:123px" %)Timestamp end|(% style="width:116px" %)Uplink Interval 727 727 728 728 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. 729 729