Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. Using NTP To Set System Time (Jeff Gray)


----------------------------------------------------------------------

Message: 1
Date: Tue, 18 Jul 2017 17:04:00 +1000
From: Jeff Gray <[email protected]>
To: [email protected]
Subject: Using NTP To Set System Time
Message-ID:
        <cahb0ztkiauqohppgmkv-yer9lvi9xbfxbqh6n8x0cxjakwh...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

I am trying to use NTP in Connman to set the time for my embedded
Linux system. NTP is working, but it is not setting the system time. I
have read the docs, trying to see what I'm missing, but can't work it
out.

My domain has an NTP server at 10.16.1.4, which is correctly passed
via DHCP. Connman adds the default route as a timeserver, but this is
not active.
The only service is Ethernet (summarised for brevity):
/net/connman/service/ethernet_XXXXXXXXXXXX_cable
  State = online
  Ethernet = [ Method=auto, Interface=eth0, Address=XX:XX:XX:XX:XX:XX,
MTU=1500 ]
  IPv4 = [ Method=dhcp, Address=10.16.1.31, Netmask=255.255.255.0,
Gateway=10.16.1.254 ]
  IPv4.Configuration = [ Method=dhcp ]
  Nameservers = [ 10.16.1.4, 10.16.1.5 ]
  Timeservers = [ 10.16.1.4, 10.16.1.254]
  Timeservers.Configuration = [  ]

When the connection goes online, NTP does activate:
ntp: adjust (jump): +616745865.307993 sec
And I can see the internal NTP time using test-clock:
TimeUpdates = auto
Timeservers = [ ]
TimezoneUpdates = auto
Time = 883612967

I have enabled debugging for timeserver.c & clock.c, but can't see any
errors on the log.

How do I get Connman to set the system time?

Another question - Timeservers in net.connman.Clock is empty, does
this matter? What is the significance of Timeservers defined here
versus in a Service? (Just trying to understand how this all fits
together)


------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 21, Issue 6
**************************************

Reply via email to