SNTP Time related query

キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

SNTP Time related query

ソリューションへジャンプ
334件の閲覧回数
utsavikalpesh
Contributor V

Hi,

I am working with CodeWarrior v10.6 and MQX v4.0.

I am following security_email demo and getting the time from time.nis.gov.  I am getting date time properly with UDP port 37.

Now query is default time on MQX is from 01/01/1970 and default time of time.nis.gov is from 01/01/1900. If both have a different default Year How I am getting a proper Current time?? There should be 70 year deference as per my knowledge.

Can anybody tell me how SNTP working in detail?? There is only sntp_oneshot and sntp_inti function available in rtcs library. No more detail I got.  

タグ(4)
0 件の賞賛
1 解決策
138件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Utsavi,

Attached ZIP has example code to manually or automatically or set default time based on last compile time of application.

I last tested about a year ago on TWR-K70F120M tower kit.  Ignore the SSL stuff.

Hope it helps.

Regards,

David

元の投稿で解決策を見る

0 件の賞賛
2 返答(返信)
139件の閲覧回数
DavidS
NXP Employee
NXP Employee

Hi Utsavi,

Attached ZIP has example code to manually or automatically or set default time based on last compile time of application.

I last tested about a year ago on TWR-K70F120M tower kit.  Ignore the SSL stuff.

Hope it helps.

Regards,

David

0 件の賞賛
138件の閲覧回数
utsavikalpesh
Contributor V

Hi David,

Thanx for reply.

0 件の賞賛