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
-
... ... @@ -619,14 +619,15 @@ 619 619 620 620 621 621 622 -Selec cioneachavepor omissãocomo Chave deAcesso:622 +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 628 +In Datacake console ([[https:~~/~~/datacake.co/>>url:https://datacake.co/]]) , add LHT65 device. 629 629 630 + 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==637 +== 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.641 +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 ===645 +=== 2.6.1 Ways to get datalog via LoRaWAN === 645 645 646 646 647 - Existemdoismétodos:648 +There are two methods: 648 648 649 -(% style="color:blue" %)**M étodo1:**OIoT Server enviaum comando LoRaWANdownlinkparapesquisaro valorparaointervalo detempoespecificado.650 +(% 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.653 +(% 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:**656 +(% 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.658 +* a) LHT65N will do an ACK check for data records sending to make sure every data arrive server. 659 +* 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)661 +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 baseadoem670 +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,118 +673,120 @@ 673 673 674 674 675 675 676 - O usuáriopodeobter estetempoa partirdo link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] :677 +User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 677 677 678 - Abaixoestáoexemplodoconversor679 +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:25684 +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===687 +=== 2.6.3 Set Device Time === 687 687 688 688 689 689 ((( 690 -(% style="color:blue" %)** Existemduas maneiras dedefinirahoradodispositivo:**691 +(% 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)**695 +**1. Through LoRaWAN MAC Command (Default settings)** 695 695 ))) 696 696 697 697 ((( 698 - O usuárioprecisadefinirSYNCMOD=1parahabilitar o tempodesincronizaçãovia comando MAC.699 +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).703 +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.**707 +(% 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**712 +**2. Manually Set Time** 712 712 ))) 713 713 714 714 ((( 715 - O usuárioprecisadefinirSYNCMOD=0comohoramanual,caso contrário, ompo definidopelousuárioserásubstituído pelotempodefinidopeloservidor.716 +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===720 +=== 2.6.4 Poll sensor value === 720 720 721 721 722 - O usuáriopode sondarovalordosensorcombaseemtimestampsdo servidor.Abaixoestáo comandodownlink.723 +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" %)Fimdo carimbodeata/hora|(% style="width:116px" %)Intervalo de uplink727 +|(% style="width:58px" %)31|(% style="width:128px" %)Timestamp start|(% style="width:123px" %)Timestamp end|(% style="width:116px" %)Uplink Interval 727 727 728 - Oinício do carimbo dedatae o fimdo carimbodedata ehorausamo formatoUnix TimeStamp,conformemencionadoacima.Osdispositivosresponderãocom todo o registrodedadosduranteeste períodode tempo,useointervalo de uplink.729 +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 730 - Por exemplo, o comandodownlink**31 5FC5F350 5FC6 0160 05**731 +For example, downlink command (% _mstmutation="1" %)**31 5FC5F350 5FC6 0160 05**(%%) 731 731 732 - Éverificar2020/12/1 07:40:00a2020/12/1 08:40:00's dados733 +Is to check 2020/12/1 07:40:00 to 2020/12/1 08:40:00's data 733 733 734 -Uplink Intern o=significaqueLHT65N enviaráumpacotea cada5s. alcance 5~~255s.735 +Uplink Internal =5s, means LHT65N will send one packet every 5s. range 5~~255s. 735 735 736 736 737 -=== 2.6.5 Carga útildo Uplinkdo Datalog===738 +=== 2.6.5 Datalog Uplink payload === 738 738 739 739 740 - Ouplinkderespostaà enquete Datalog usaráoformato de carga útil abaixo.741 +The Datalog poll reply uplink will use below payload format. 741 741 742 -** Carga útil dos dadosde recuperação:**743 +**Retrieval data payload:** 743 743 744 744 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:480px" %) 745 -|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)**Tamanho( bytes)**|=(% style="width: 90px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 90px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)**4** 746 -|(% style="width:97px" %)**Valor**|(% style="width:123px" %)[[Dados externos do sensor>>||anchor="H2.4.6Extvalue"]]|(% style="width:108px" %)[[Temperatura incorporada>>||anchor="H2.4.3Built-inTemperature"]]|(% style="width:133px" %)[[Umidade incorporada>>||anchor="H2.4.4Built-inHumidity"]]|(% style="width:159px" %)Sinal da mensagem de sondagem & Ext|(% style="width:80px" %)[[Carimbo Horário do Unix>>||anchor="H2.6.2UnixTimeStamp"]] 746 +|=(% style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)((( 747 +**Size(bytes)** 748 +)))|=(% style="width: 90px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 90px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)**2**|=(% style="width: 100px;background-color:#D9E2F3;color:#0070C0" %)**1**|=(% style="width: 70px;background-color:#D9E2F3;color:#0070C0" %)**4** 749 +|(% style="width:97px" %)**Value**|(% style="width:123px" %)[[External sensor data>>||anchor="H2.4.6Extvalue"]]|(% style="width:108px" %)[[Built In Temperature>>||anchor="H2.4.3Built-inTemperature"]]|(% style="width:133px" %)[[Built-in Humidity>>||anchor="H2.4.4Built-inHumidity"]]|(% style="width:159px" %)Poll message flag & Ext|(% style="width:80px" %)[[Unix Time Stamp>>||anchor="H2.6.2UnixTimeStamp"]] 747 747 748 -** &Ext damensagemdasondagem:**751 +**Poll message flag & Ext:** 749 749 750 750 [[image:image-20221006192726-1.png||_mstalt="430508" height="112" width="754"]] 751 751 752 -(% style="color:blue" %)** SemMensagem ACK:**(%%) 1:Estamensagemsignifica queestacargaútilédeUplink MessagequenãorecebeACKdo servidorantes(para[[PNACKMD=1>>path:#H4.13AutoSendNone-ACKmessages]]recurso)755 +(% style="color:blue" %)**No ACK Message**(%%): 1: This message means this payload is fromn Uplink Message which doesn't get ACK from the server before ( for [[PNACKMD=1>>||anchor="H4.13AutoSendNone-ACKmessages"]] feature) 753 753 754 -(% style="color:blue" %)** Bandeirada mensagemdasondagem:**(%%) 1:Estamensageméumarespostademensagemdeenquete.757 +(% style="color:blue" %)**Poll Message Flag**(%%): 1: This message is a poll message reply. 755 755 756 -* O sinalizadordemensagemdeenqueteestádefinidocomo1.759 +* Poll Message Flag is set to 1. 757 757 758 -* Cada entradade dadosé de11 bytes,paraeconomizarempo de arebateria,osdispositivosenviarãobytesmáximos deacordocomasbandasdeDRefrequênciaatuais.761 +* Each data entry is 11 bytes, to save airtime and battery, devices will send max bytes according to the current DR and Frequency bands. 759 759 760 - Por exemplo, nabandaUS915,acarga útilmáxima paraDRdiferenteé:763 +For example, in US915 band, the max payload for different DR is: 761 761 762 -(% style="color:blue" %)**a) DR0:** (%%)max é11 bytes,entãoumaentradadedados765 +(% style="color:blue" %)**a) DR0:** (%%)max is 11 bytes so one entry of data 763 763 764 -(% style="color:blue" %)**b) DR1:**(%%) Omáximoé de53 bytespara que os dispositivoscarreguem4 entradasdedados(totalde44 bytes)767 +(% style="color:blue" %)**b) DR1:**(%%) max is 53 bytes so devices will upload 4 entries of data (total 44 bytes) 765 765 766 -(% style="color:blue" %)**c) DR2:**(%%) carga útil total inclui11 entradasdedados769 +(% style="color:blue" %)**c) DR2:**(%%) total payload includes 11 entries of data 767 767 768 -(% style="color:blue" %)**d) DR3: **(%%) A carga útil total inclui22 entradasdedados.771 +(% style="color:blue" %)**d) DR3: **(%%)total payload includes 22 entries of data. 769 769 770 -If devise não temdadossobreotempode votação.O dispositivoiráenviar11 bytesde0773 +If devise doesn't have any data in the polling time. Device will uplink 11 bytes of 0 771 771 772 772 773 -**Ex emplo:**776 +**Example:** 774 774 775 - SeLHT65Ntiverabaixo dadosdentrodoFlash:778 +If LHT65N has below data inside Flash: 776 776 777 777 [[image:image-20230426171833-4.png]] 778 778 779 779 780 - Seoutilizador enviarabaixoo comandodownlink: (% style="background-color:yellow" %)3160065F9760066DA705783 +If user sends below downlink command: (% style="background-color:yellow" %)3160065F9760066DA705 781 781 782 - Onde:Horadeinício: 60065F97 =hora21/1/19 04:27:03785 +Where : Start time: 60065F97 = time 21/1/19 04:27:03 783 783 784 - Tempodeparagem: 60066DA7= tempo21/1/19 05:27:03787 + Stop time: 60066DA7= time 21/1/19 05:27:03 785 785 786 786 787 -** OLHT65N iráligarestacarga.**790 +**LHT65N will uplink this payload.** 788 788 789 789 [[image:image-20220523001219-13.png||_mstalt="451204" height="421" style="text-align:left" width="727"]] 790 790 ... ... @@ -791,22 +791,22 @@ 791 791 792 792 __**7FFF089801464160065F97**__ **__7FFF__ __088E__ __014B__ __41__ __60066009__** 7FFF0885014E41600660667FFF0875015141600662BE7FFF086B015541600665167FFF08660155416006676E7FFF085F015A41600669C67FFF0857015D4160066C1E 793 793 794 - Ondeosprimeiros 11 bytes sãoparaaprimeiraentrada:797 +Where the first 11 bytes is for the first entry: 795 795 796 796 7FFF089801464160065F97 797 797 798 - Dadosdosensorext=0x7FFF/100=327,67801 +Ext sensor data=0x7FFF/100=327.67 799 799 800 -Temp=0x088E/100=22 ,00803 +Temp=0x088E/100=22.00 801 801 802 -Hum=0x014B/10=32 ,6805 +Hum=0x014B/10=32.6 803 803 804 - sinalizadordemensagemde pesquisa & Ext=0x41,significadadosderesposta,807 +poll message flag & Ext=0x41,means reply data,Ext=1 805 805 806 - A horaUnixé0x60066009=1611030423s=21/1/19 04:27:03809 +Unix time is 0x60066009=1611030423s=21/1/19 04:27:03 807 807 808 808 809 -== 2.7 Modo de alarme &Característica"Multiamostragem,umuplink" ==812 +== 2.7 Alarm Mode & Feature "Multi sampling, one uplink" == 810 810 811 811 812 812 (((