SNTP_oneshot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SNTP_oneshot

1,674 Views
shelleylockwood
Contributor I

I am using MQX V 4.1 and using SNTP_oneshot to set real time clock for my embedded system.  After many hours, this call starts timing out and never recovers.   The TCP/IP stack continues to work, and the RTCS_resolve_ip_address() does give me an IP address for the nist servers.   Also, I have verified that I do have enough memory(RAM) at this time.

Any Ideas would be appreciated.

Labels (1)
0 Kudos
Reply
4 Replies

1,388 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi SHelley:

Which error code returns with SNTP_oneshot ?

Regards

Daniel

0 Kudos
Reply

1,388 Views
shelleylockwood
Contributor I

Hi Daniel,

0x1103 or a timeout

Thanks,

Shelley

0 Kudos
Reply

1,388 Views
danielchen
NXP TechSupport
NXP TechSupport

Hi Shelley:

It seems a network issue.  Maybe the gateway is unreachable or other network issue. Your board can't get a valid SNTP packet.

Regards

Daniel

0 Kudos
Reply

1,388 Views
shelleylockwood
Contributor I

Hi,

Normally i would say this is true, except that the code runs perfectly and then is unable to get NTP forever after that time.

I have watched it and occasionally see the NTP fail, which I would expect. But in this case, the NTP continually fails and never recovers.

Thanks, Shelley

0 Kudos
Reply