How can I send to the end-node the precision time?

Hi Brocaar,

Can I insert in the message from the server the precision time to adjust the clock of the end-node? The end-node contains a clock.
End-node Class A.
(Is there an example for the MQTT command?)

I think your best shot would be to use the device-time mac-command (initiated by the device), which will be part of LoRaWAN 1.0.3 (see: https://github.com/Lora-net/LoRaMac-node/issues/409). This mac-command can also be used for Class-B.

You will find more details about this Mac-command in the LoRaWAN 1.1 specs which is already available.

1 Like

Thanks for the help, I’ll deal with this.

Which version of the app-server does the device-time mac-command support?

Version 0.25.0 and up (it was part of the Class-B release).

1 Like

I asked for time and here’s what I got:

timeSinceGPSEpoch:0

why is it zero?:slightly_smiling_face:

Are you using the latest packet-forwarder (v4.0.1)? There have been some changes to facilitate Class-B. They switched to time since GPS epoch because of leap seconds that sometimes occur. Please see gateway/[mac]/rx

    "timeSinceGPSEpoch": "332535h29m12.222s",      // time since GPS epoch (only set when the gateway has a GPS time source)