ST意法半导体
直播中

刘静焱

8年用户 213经验值
私信 关注
[问答]

是否有一个NTP客户端的示例实现来从时间服务器获取时间?

嗨,
是否有一个NTP客户端的示例实现来从时间服务器获取时间?
我将SPWF01SA与STM32F401一起使用。
BR,
曼弗雷德

#spwf01-NTP

以上来自于谷歌翻译


以下为原文




Hi,
Is there a sample implementation of a NTP client to get the time from a timeserver?
I use the SPWF01SA together with a STM32F401.
BR,
Manfred

#spwf01-ntp

回帖(2)

宁晓蕾

2019-3-4 17:00:01
嗨曼弗雷德,
如果SimpleNTP足够,你可以打开一个简单的UDP套接字(AT + S.SOCKON)并向服务器写一个48字节的请求(AT + S.SOCKW)。比期望48字节的回复,并读取(AT + S.SOCKR)它。
http://ceng393.cankaya.edu.tr/uploads/files/file/ntp_project-1.pdf
 一个简单的流程。

以上来自于谷歌翻译


以下为原文




Hi Manfred,
if SimpleNTP is enough, you can open a simple UDP socket  (AT+S.SOCKON) and write (AT+S.SOCKW) a 48 byte requesto to server. Than expect a 48 byte reply, and read (AT+S.SOCKR) it.
http://ceng393.cankaya.edu.tr/uploads/files/file/ntp_project-1.pdf
a simple flow.
举报

刘静焱

2019-3-4 17:18:50
嗨Gerardo,
 SimpleNTP足够准确。
 谢谢你的快速回答。
 曼弗雷德
 冯:'gallucci.gerardo'< st-microelectronics@jiveon.com>
Antworten an:< jive-1159278233-lz8-2-328h@mail.st-microelectronics.jiveon.com>
基准:Donnerstag,12 Januar 2017年19:58
An:'dietrich.manfred.001'< orion65@bluewin.ch>
Betreff:Re: - Re:SPWF01SA NTP客户端
 意法半导体社区
 Re:SPWF01SA NTP客户端
接口和连接IC中来自gallucci.gerardo的回复 - 查看完整讨论Hi Manfred,如果SimpleNTP足够,您可以打开一个简单的UDP套接字(ATS.SOCKON)并向服务器写入一个48字节的请求(ATS.SOCKW)。比期望48字节的回复,并读取(AT + S.SOCKR)它。这是一个简单的流程。
通过回复此电子邮件回复此邮件,或转至STMicroelectronics社区上的邮件
通过电子邮件或STMicroelectronics社区在接口和连接IC中开始新的讨论
以下Re:SPWF01SA这些流中的NTP客户端:收件箱
此电子邮件由STMicroelectronics Community发送,因为您是注册用户。
您可以立即取消订阅STMicroelectronics社区,或调整电子邮件首选项中的电子邮件频率

以上来自于谷歌翻译


以下为原文




Hi Gerardo,
SimpleNTP is accurate enough.
Thanks for your quick answer.
Manfred
Von: 'gallucci.gerardo'
Antworten an:
Datum: Donnerstag, 12. Januar 2017 um 19:58
An: 'dietrich.manfred.001'
Betreff: Re: - Re: SPWF01SA NTP client
STMicroelectronics Community
Re: SPWF01SA NTP client
reply from gallucci.gerardo in Interface and Connectivity ICs - View the full discussionHi Manfred, if SimpleNTP is enough, you can open a simple UDP socket (ATS.SOCKON) and write (ATS.SOCKW) a 48 byte requesto to server. Than expect a 48 byte reply, and read (AT+S.SOCKR) it. Here a simple flow.
Reply to this message by replying to this email, or go to the message on STMicroelectronics Community
Start a new discussion in Interface and Connectivity ICs by email or at STMicroelectronics Community
Following Re: SPWF01SA NTP client in these streams: Inbox
This email was sent by STMicroelectronics Community because you are a registered user.
You may unsubscribe instantly from STMicroelectronics Community, or adjust email frequency in your email preferences
举报

更多回帖

发帖
×
20
完善资料,
赚取积分