ezTime icon indicating copy to clipboard operation
ezTime copied to clipboard

Timeout on NTP Servers ... any server

Open cgleon809 opened this issue 4 years ago • 9 comments

Hi! I tried running your code Ethernet.ino and I get a time out.for NTP server. Further, I tried changing timeX.google.com, timeX.facebook.com, various ntp.pool.org and still getting timeout.

MkR is connected to Ethernet router, and I am getting an IP from DHCP.

Any hints?

cgleon809 avatar Jan 27 '21 03:01 cgleon809

There are some NTP servers for you, time.apple.com,time.windows.com,time.nist.gov hope this helps

Pidbid avatar Jan 27 '21 05:01 Pidbid

Thanks! I actually dont think is a server issue. I've tried many, including the ones you indicated. I just tried, time.nist.gov, and get same error. Is it possible that a UDP port may be closed? How can I find out?

On Wed, Jan 27, 2021 at 12:54 AM Pidbid [email protected] wrote:

There are some NTP servers for you, time.apple.com,time.windows.com,time.nist.gov hope this helps

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropg/ezTime/issues/108#issuecomment-768050194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR3JSB6MGNOEREA54LOAQALS36S73ANCNFSM4WURF6GQ .

-- Carlos G. Leon

cgleon809 avatar Jan 27 '21 15:01 cgleon809

I got the same problem today,But my Arduino borad often runs twice and finally succeeds. Here's some code that might help,NTP service based on port 123, you should run "nc -vuz IP 123"

Pidbid avatar Jan 27 '21 16:01 Pidbid

I can't thank you enough! I did as you suggested, the problem is still there. Do you have further recommendations that I can try, I am really desperate! I am running the Ethernet.ino example provided in ezTime library.

On Wed, Jan 27, 2021 at 11:19 AM Pidbid [email protected] wrote:

I got the same problem today,But my Arduino borad often runs twice and finally succeeds. Here's some code that might help,NTP service based on port 123, you should run "nc -vuz IP 123"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropg/ezTime/issues/108#issuecomment-768399580, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR3JSB5RW2NLKGZYQAAEP4DS4A4JRANCNFSM4WURF6GQ .

-- Carlos G. Leon

cgleon809 avatar Jan 27 '21 19:01 cgleon809

Start from the basics. Can your device ping the servers? https://github.com/BlakeFoster/Arduino-Ping

doanerock avatar Jan 27 '21 19:01 doanerock

Thanks, I'll check it out. I've been using queryNTP function from ezTime library getting a time-out. I will try your recommendation.

On Wed, Jan 27, 2021 at 2:14 PM doanerock [email protected] wrote:

Start from the basics. Can your device ping the servers? https://github.com/BlakeFoster/Arduino-Ping

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropg/ezTime/issues/108#issuecomment-768513376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR3JSBYL6FYTG5T7RCXQK23S4BQZRANCNFSM4WURF6GQ .

-- Carlos G. Leon

cgleon809 avatar Jan 27 '21 19:01 cgleon809

Just tried!! Can't get it to work, as I am getting the same issues as reported in https://forum.arduino.cc/index.php?topic=573949.0. Any suggestions?

On Wed, Jan 27, 2021 at 2:14 PM doanerock [email protected] wrote:

Start from the basics. Can your device ping the servers? https://github.com/BlakeFoster/Arduino-Ping

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ropg/ezTime/issues/108#issuecomment-768513376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AR3JSBYL6FYTG5T7RCXQK23S4BQZRANCNFSM4WURF6GQ .

-- Carlos G. Leon

cgleon809 avatar Jan 27 '21 20:01 cgleon809

I'm using manual NTP update and have the same issue. Not all the time, but sometimes it report timeout. When I use my local server, it never happens. I've tried may different internet ntp servers, but doesn't care. Even more critical issue is that it changes the time to some strange value in the future, included the date, just 5 minutes after the new and successful ntp update. Today it displayed "Monday, 23.5.2021, 05:10", see the attached report. "No network" on the report is due to WiFi is switched off just after the updateNTP(). Each updateNTP() is performed only when WiFi.status() == WL_CONNECTED. Please help. ezTime.txt

jgrulich avatar Apr 04 '21 12:04 jgrulich

In my case will help if the updateNTP() will return status flag. I was looking for some status indicator, but only timeStatus() != timeSet which is not triggered either. Any other valid status info indicating wrong update?

jgrulich avatar Apr 04 '21 12:04 jgrulich