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
-
... ... @@ -543,15 +543,17 @@ 543 543 A2 08 02 00 00 00 3C: O mesmo que AT+ SETCNT=60 (AT+ SETCNT = 4º byte e 5º byte e 6º byte e 7º byte) 544 544 545 545 546 -==== 2.4.6.8 Ext~=10, sensor E2(TMP117)comUnix Timestampdesdefirmware V1.3.2) ====546 +==== 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:550 +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" %)((( 554 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)((( 555 +**Size(bytes)** 556 +)))|=(% 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"]] 567 +|(% style="width:110px" %)((( 568 +**Value** 569 +)))|(% style="width:71px" %)((( 570 +External temperature 571 +)))|(% style="width:99px" %)((( 572 +[[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"]] 574 +BAT Status & [[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 575 +)))|(% style="width:54px" %)((( 576 +Status & Ext 577 +)))|(% style="width:64px" %)((( 578 +[[Unix Time Stamp>>||anchor="H2.6.2UnixTimeStamp"]] 571 571 ))) 572 572 573 -* ** Estadodabateriae humidadeincorporada**581 +* **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"]] 585 +|(% style="width:67px" %)**Value**|(% style="width:256px" %)((( 586 +BAT Status 587 +00(b): Ultra Low ( BAT <= 2.50v) 588 +01(b): Low (2.50v <=BAT <= 2.55v) 589 +10(b): OK (2.55v <= BAT <=2.65v) 590 +11(b): Good (BAT >= 2.65v) 591 +)))|(% style="width:132px" %)((( 592 +[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 583 583 ))) 584 584 585 -* **Status ebyteexterno**595 +* **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)599 +|(% 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)601 +* (% style="color:blue" %)**Poll Message Flag**:(%%) 1: This message is a poll message reply, 0: means this is a normal uplink. 602 +* (% 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. 603 +* (% 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 ==606 +== 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:610 +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.615 +(% 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.619 +(% 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:624 +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:632 +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 638 +In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT65 device. 629 629 640 + 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==647 +== 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.651 +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 ===655 +=== 2.6.1 Ways to get datalog via LoRaWAN === 645 645 646 646 647 - Existemdoismétodos:658 +There are two methods: 648 648 649 -(% style="color:blue" %)**M étodo1:**OIoT Server enviaum comando LoRaWANdownlinkparapesquisaro valorparaointervalo detempoespecificado.660 +(% 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.663 +(% 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:**666 +(% 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.668 +* a) LHT65N will do an ACK check for data records sending to make sure every data arrive server. 669 +* 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)671 +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"]]