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
-
... ... @@ -666,7 +666,7 @@ 666 666 === 2.6.2 Unix TimeStamp === 667 667 668 668 669 -LHT65N us ao formatoUnix TimeStamp baseadoem669 +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/]] :676 +User can get this time from link: [[https:~~/~~/www.epochconverter.com/>>url:https://www.epochconverter.com/]] : 677 677 678 - Abaixoestáoexemplodoconversor678 +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:25683 +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===686 +=== 2.6.3 Set Device Time === 687 687 688 688 689 689 ((( 690 -(% style="color:blue" %)** Existemduas maneiras dedefinirahoradodispositivo:**690 +(% 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)**694 +**1. Through LoRaWAN MAC Command (Default settings)** 695 695 ))) 696 696 697 697 ((( 698 - O usuárioprecisadefinirSYNCMOD=1parahabilitar o tempodesincronizaçãovia comando MAC.698 +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).702 +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.**706 +(% 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**711 +**2. Manually Set Time** 712 712 ))) 713 713 714 714 ((( 715 - O usuárioprecisadefinirSYNCMOD=0comohoramanual,caso contrário, ompo definidopelousuárioserásubstituído pelotempodefinidopeloservidor.715 +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===719 +=== 2.6.4 Poll sensor value === 720 720 721 721 722 - O usuáriopode sondarovalordosensorcombaseemtimestampsdo servidor.Abaixoestáo comandodownlink.722 +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 Interval726 +|(% 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