lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] SNTP example?


From: Mike Rosing
Subject: Re: [lwip-users] SNTP example?
Date: Tue, 2 May 2017 15:29:23 -0500 (CDT)

Thanks Simon!

I did try wireshark, but did not see anything to my IP.  So I looked at the address it was trying to use for the NTP server, and found it was pointing to my gateway (which is what the example did).  I changed that to point to a real NTP server found on the NIST web site and then sntp_process was called.  I did not know about lwip_stats, so that is a great help, I will check that.

I can at least now set my RTC when the program starts.  The next test will be to see if it goes out once an hour. 

Now I can put LwIP to work talking to other custom servers.  I think that will be simpler, but if I run into problems I will be back with more questions.

Mike

On May 2, 2017 at 2:47 PM "address@hidden" <address@hidden> wrote:

Mike Rosing wrote:

The SNTP seems to initialize ok, but the routine sntp_process() is never called.

Have you checked (e.g. using wireshark) that SNTP requests are sent and
responses are received? If not, sntp_process() won't get called either.

If the response is received, check "lwip_stats" to see if there are any
"err" counters going up. If not, try adding a breakpoint to udp_input()
when the response is received and see where it goes.

Simon

_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

[Prev in Thread] Current Thread [Next in Thread]