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 项奖励
回复