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
-
... ... @@ -384,49 +384,53 @@ 384 384 ==== 2.4.6.3 Ext~=6, Sensor ADC (use com cabo E2) ==== 385 385 386 386 387 - Nestemodo,ousuáriopodeconectarsensor ADC externo para verificar o valorADC.O 3V3_OUT podeser usadoparaalimentarosensorADCexterno; ousuário podecontrolar o podernotempo para isso.387 +In this mode, user can connect external ADC sensor to check ADC value. The 3V3_OUT can 388 388 389 - (%style="color:blue"%)**sensor configurando:**389 +be used to power the external ADC sensor; user can control the power on time for this 390 390 391 - **AT+EXT=6,**timeout Tempoparaligarestesensor,de0 ~~ 65535ms391 +(% style="color:blue" %)**sensor by setting:** 392 392 393 -** Porexemplo:**393 +**AT+EXT=6,timeout** (% style="color:red" %)**Time to power this sensor, from 0 ~~ 65535ms** 394 394 395 - AT+EXT=6.1000 alimentará este sensorpor 1000ms antes deamostrar o valor ADC.395 +**For example:** 396 396 397 +AT+EXT=6,1000 will power this sensor for 1000ms before sampling the ADC value. 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. 401 401 400 +Or use **downlink command A2** to set the same. 401 + 402 +The measuring range of the node is only about 0.1V to 1.1V The voltage resolution is about 0.24mv. 403 + 404 +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. 405 + 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é0409 +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.414 +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.1V417 +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.1v422 +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) Dentrodoalcance427 +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" %) (%%) ====433 +==== 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):**441 +(% 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" %)** **446 +(% style="color:blue" %)**Interrupt Mode and Counting Mode:**(% style="color:blue; display:none" %)** ** 443 443 444 - OcaboexternoNE2podeserusadoparaMOD4eMOD8448 +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) ====452 +==== 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):**458 +(% 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) ====464 +==== 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.**467 +(% 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:**470 +(% 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.472 +(% 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ãohouvernenhumasonda474 + In Open State, the power consumption is the same as if there is no probe 471 471 472 - NoestadoClose, o consumode energiaserá3uAmaiordoque onormal.476 + 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:481 +Ext=4,Interrupt Sensor: 478 478 479 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:5 10px" %)483 +(% 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 486 +)))|(% style="width:395px" %)((( 487 +**Sent uplink packet in both rising and falling interrupt** 488 +))) 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 491 +)))|(% style="width:395px" %)((( 492 +**Sent uplink packet only in falling interrupt** 493 +))) 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 496 +)))|(% style="width:395px" %)((( 497 +**Sent uplink packet only in rising interrupt** 498 +))) 489 489 490 - Acionadorpelabordadequeda:500 +Trigger by falling edge: 491 491 492 492 [[image:image-20220906101145-2.png||_mstalt="428324"]] 493 493 494 494 495 -Trigger by rais eedge:505 +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) ====511 +==== 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.**514 +(% 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.517 +(% 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,3o522 +(% 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" %)529 +(% 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 532 +)))|(% style="width:195px" %)((( 533 +**Count at falling interrupt** 534 +))) 523 523 |(% style="width:131px" %)((( 524 524 **AT+EXT=8,1** 525 -)))|(% style="width:271px" %)Contagem na interrupção ascendente 537 +)))|(% style="width:195px" %)((( 538 +**Count at rising interrupt** 539 +))) 526 526 |(% style="width:131px" %)((( 527 527 **AT+SETCNT=60** 528 -)))|(% style="width:271px" %)Enviou a contagem atual para 60 542 +)))|(% style="width:195px" %)((( 543 +**Sent current count to 60** 544 +))) 529 529 530 530 [[image:image-20220906101320-6.png||_mstalt="428064"]] 531 531 532 532 533 -(% style="color:blue" %)** Comandodeligaçãodescendente A2:**549 +(% style="color:blue" %)**A2 downlink Command:** 534 534 535 -A2 02: OmesmoqueAT+EXT=2 (AT+EXT= segundobyte)551 +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)553 +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)555 +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)557 +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)559 +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) ====562 +==== 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:566 +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" %)((( 570 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)((( 571 +**Size(bytes)** 572 +)))|=(% 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"]] 583 +|(% style="width:110px" %)((( 584 +**Value** 585 +)))|(% style="width:71px" %)((( 586 +External temperature 587 +)))|(% style="width:99px" %)((( 588 +[[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"]] 590 +BAT Status & [[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 591 +)))|(% style="width:54px" %)((( 592 +Status & Ext 593 +)))|(% style="width:64px" %)((( 594 +[[Unix Time Stamp>>||anchor="H2.6.2UnixTimeStamp"]] 571 571 ))) 572 572 573 -* ** Estadodabateriae humidadeincorporada**597 +* **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"]] 601 +|(% style="width:67px" %)**Value**|(% style="width:256px" %)((( 602 +BAT Status 603 +00(b): Ultra Low ( BAT <= 2.50v) 604 +01(b): Low (2.50v <=BAT <= 2.55v) 605 +10(b): OK (2.55v <= BAT <=2.65v) 606 +11(b): Good (BAT >= 2.65v) 607 +)))|(% style="width:132px" %)((( 608 +[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 583 583 ))) 584 584 585 -* **Status ebyteexterno**611 +* **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)615 +|(% 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)617 +* (% style="color:blue" %)**Poll Message Flag**:(%%) 1: This message is a poll message reply, 0: means this is a normal uplink. 618 +* (% 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. 619 +* (% 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 ==622 +== 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:626 +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.631 +(% 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.635 +(% 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:640 +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:648 +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 654 +In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT65 device. 629 629 656 + 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==663 +== 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.667 +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 ===671 +=== 2.6.1 Ways to get datalog via LoRaWAN === 645 645 646 646 647 - Existemdoismétodos:674 +There are two methods: 648 648 649 -(% style="color:blue" %)**M étodo1:**OIoT Server enviaum comando LoRaWANdownlinkparapesquisaro valorparaointervalo detempoespecificado.676 +(% 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.679 +(% 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:**682 +(% 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.684 +* a) LHT65N will do an ACK check for data records sending to make sure every data arrive server. 685 +* 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)687 +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 baseadoem696 +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/]] :703 +User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 677 677 678 - Abaixoestáoexemplodoconversor705 +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:25710 +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===713 +=== 2.6.3 Set Device Time === 687 687 688 688 689 689 ((( 690 -(% style="color:blue" %)** Existemduas maneiras dedefinirahoradodispositivo:**717 +(% 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)**721 +**1. Through LoRaWAN MAC Command (Default settings)** 695 695 ))) 696 696 697 697 ((( 698 - O usuárioprecisadefinirSYNCMOD=1parahabilitar o tempodesincronizaçãovia comando MAC.725 +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).729 +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.**733 +(% 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**738 +**2. Manually Set Time** 712 712 ))) 713 713 714 714 ((( 715 - O usuárioprecisadefinirSYNCMOD=0comohoramanual,caso contrário, ompo definidopelousuárioserásubstituído pelotempodefinidopeloservidor.742 +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===746 +=== 2.6.4 Poll sensor value === 720 720 721 721 722 - O usuáriopode sondarovalordosensorcombaseemtimestampsdo servidor.Abaixoestáo comandodownlink.749 +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 Interval753 +|(% 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