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
-
... ... @@ -476,40 +476,40 @@ 476 476 477 477 Ext=4, Sensor de Interrupção: 478 478 479 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:5 10px" %)479 +(% 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 caindo482 +)))|(% style="width:395px" %)Pacote de uplink enviado na interrupção ascendente e caindo 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 queda485 +)))|(% style="width:395px" %)Enviou um pacote de ligação ascendente apenas na interrupção em queda 486 486 |(% style="width:101px" %)((( 487 487 **AT+EXT=4,3** 488 -)))|(% style="width: 421px" %)Enviou o pacote de uplink apenas na interrupção crescente488 +)))|(% style="width:395px" %)Enviou o pacote de uplink apenas na interrupção crescente 489 489 490 - Acionadorpelabordadequeda:490 +Trigger by falling edge: 491 491 492 492 [[image:image-20220906101145-2.png||_mstalt="428324"]] 493 493 494 494 495 -Trigger by rais eedge:495 +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) ====501 +==== 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.**504 +(% 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.507 +(% 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,3o512 +(% 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" %)519 +(% 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 522 +)))|(% style="width:195px" %)((( 523 +**Count at falling interrupt** 524 +))) 523 523 |(% style="width:131px" %)((( 524 524 **AT+EXT=8,1** 525 -)))|(% style="width:271px" %)Contagem na interrupção ascendente 527 +)))|(% style="width:195px" %)((( 528 +**Count at rising interrupt** 529 +))) 526 526 |(% style="width:131px" %)((( 527 527 **AT+SETCNT=60** 528 -)))|(% style="width:271px" %)Enviou a contagem atual para 60 532 +)))|(% style="width:195px" %)((( 533 +**Sent current count to 60** 534 +))) 529 529 530 530 [[image:image-20220906101320-6.png||_mstalt="428064"]] 531 531 532 532 533 -(% style="color:blue" %)** Comandodeligaçãodescendente A2:**539 +(% style="color:blue" %)**A2 downlink Command:** 534 534 535 -A2 02: OmesmoqueAT+EXT=2 (AT+EXT= segundobyte)541 +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)543 +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)545 +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)547 +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)549 +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) ====552 +==== 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:556 +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" %)((( 560 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)((( 561 +**Size(bytes)** 562 +)))|=(% 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"]] 573 +|(% style="width:110px" %)((( 574 +**Value** 575 +)))|(% style="width:71px" %)((( 576 +External temperature 577 +)))|(% style="width:99px" %)((( 578 +[[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"]] 580 +BAT Status & [[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 581 +)))|(% style="width:54px" %)((( 582 +Status & Ext 583 +)))|(% style="width:64px" %)((( 584 +[[Unix Time Stamp>>||anchor="H2.6.2UnixTimeStamp"]] 571 571 ))) 572 572 573 -* ** Estadodabateriae humidadeincorporada**587 +* **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"]] 591 +|(% style="width:67px" %)**Value**|(% style="width:256px" %)((( 592 +BAT Status 593 +00(b): Ultra Low ( BAT <= 2.50v) 594 +01(b): Low (2.50v <=BAT <= 2.55v) 595 +10(b): OK (2.55v <= BAT <=2.65v) 596 +11(b): Good (BAT >= 2.65v) 597 +)))|(% style="width:132px" %)((( 598 +[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]] 583 583 ))) 584 584 585 -* **Status ebyteexterno**601 +* **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)605 +|(% 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)607 +* (% style="color:blue" %)**Poll Message Flag**:(%%) 1: This message is a poll message reply, 0: means this is a normal uplink. 608 +* (% 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. 609 +* (% 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 ==612 +== 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:616 +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.621 +(% 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.625 +(% 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:630 +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:638 +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 644 +In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT65 device. 629 629 646 + 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==653 +== 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.657 +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 ===661 +=== 2.6.1 Ways to get datalog via LoRaWAN === 645 645 646 646 647 - Existemdoismétodos:664 +There are two methods: 648 648 649 -(% style="color:blue" %)**M étodo1:**OIoT Server enviaum comando LoRaWANdownlinkparapesquisaro valorparaointervalo detempoespecificado.666 +(% 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.669 +(% 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:**672 +(% 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.674 +* a) LHT65N will do an ACK check for data records sending to make sure every data arrive server. 675 +* 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)677 +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"]]