MPC5748G request current time from SNTP server

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

MPC5748G request current time from SNTP server

ソリューションへジャンプ
1,075件の閲覧回数
MattJCole
Contributor V

 

I am currently porting existing K65 code to the MPC5748G. In the K65 SDK you are able to call the SNTP_oneshot function to request the time from the SNTP server. Is there a way to do this in the SDK for the MPC5748G?

0 件の賞賛
返信
1 解決策
1,043件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

there's LWIP stack included in the SDK and there's minimal SNTP implemention:

https://www.nongnu.org/lwip/2_0_x/group__sntp.html

The source file can be found here:

c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32PA_RTM_3.0.3\middleware\tcpip\lwip\src\apps\sntp\sntp.c

Regards,

Lukas

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,019件の閲覧回数
MattJCole
Contributor V

I went though the list of functions in the link provided and it does not seem like they provide a way to send a single request to get the current time like KSDK does.

0 件の賞賛
返信
1,044件の閲覧回数
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

there's LWIP stack included in the SDK and there's minimal SNTP implemention:

https://www.nongnu.org/lwip/2_0_x/group__sntp.html

The source file can be found here:

c:\NXP\S32DS_Power_v2.1\S32DS\software\S32_SDK_S32PA_RTM_3.0.3\middleware\tcpip\lwip\src\apps\sntp\sntp.c

Regards,

Lukas

0 件の賞賛
返信