matthijskooijman / arduino-lmic

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

LoRaWan 1.1 DeviceTimeReq supported? #137

Open Jeroen88 opened 6 years ago

Jeroen88 commented 6 years ago

I would like to synchronize my microcontroller with UTC time. Can I use the library for this, using the LoRaWan 1.1 feature DeviceTimeReq?

cyberman54 commented 6 years ago

It won't be possible to sync a node's RTC with DeviceTimeReq, if this shall happen with high precision. As far as i understand DeviceTimeReq in LoRaWAN 1.1 this command does not take care of latency and jitter of the LoRaWAN connection. So additional time sync logic will be required to set a clock with precision of e.g. +/- 500ms.

Besides that this lib currently does not support the new functions of LoRaWAN 1.1.

Jeroen88 commented 6 years ago

@cyberman54 thnx for your quick response. 500 ms would be great. My microcontroller can keep clock time but must be set / synched regularly.

Any chance of support of this feature in the near future? Any example of how to get the DeviceTimeReq myself making maximum use of the abstraction of the library?

VladimirAkopyan commented 5 years ago

Also interested, I just need rough tune fur calendar keeping. +/- 1 minute will do for me