matthijskooijman / arduino-lmic

:warning: This library is deprecated, see the README for alternatives.
704 stars 651 forks source link

Date to RTC #286

Closed Samuel-ZDM closed 3 years ago

Samuel-ZDM commented 3 years ago

Hello!

I am trying to get the gateway date to configure the RTC. Is there any function that I can do this for? Or can I only do this by inserting the value in the downlink field in the TTN, for example?

matthijskooijman commented 3 years ago

Normally, the gateway date is not known by the node, so there is no trivial way to obtain it. I think there is a "request time from server" command defined in LoRaWAN (though that might be LoRaWAN 1.1). I'm not sure if this is somehow already supported by LMIC and how you would get it (and no time to check now).

trlafleur commented 3 years ago

I set up node-red to send the time ever 1, 10 min and 1hr, to MQTT, and have a task to send it Periodically to Lora nodes that request it... for most nodes, they make a request once a day, and at start up...

On Thu, Jul 16, 2020 at 5:18 AM Matthijs Kooijman notifications@github.com wrote:

Normally, the gateway date is not known by the node, so there is no trivial way to obtain it. I think there is a "request time from server" command defined in LoRaWAN (though that might be LoRaWAN 1.1). I'm not sure if this is somehow already supported by LMIC and how you would get it (and no time to check now).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/matthijskooijman/arduino-lmic/issues/286#issuecomment-659373589, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABC4EK4YO2WVPEVFAA7223TR33V2ZANCNFSM4OVCZSRA .

--

~~ /) ~~~~ /) ~~ _/) ~~ _/) ~~

Tom Lafleur

Samuel-ZDM commented 3 years ago

Thank you.

I was wondering if LMIC could do that. So, the responsible for this is the application server.