STM32 Open Time Server - Page 1
Forum section: electronics / projects

author: AndrewBCN
author_rank: Frequent Contributor
timestamp: September 25, 2021, 10:13:46 am
content: The STM32 Open Time Server is a compact, inexpensive, 100% Open Source NTP and/or PTP server based on two STM32 development boards. It is based on a combination of my previous project, the STM32 GPSDO with an STM32F429 Nucleo-144 development board with Ethernet running the PTP and/or NTP server programs. See attached diagram.My previous STM32 GPSDO project is described in this thread:https://www.eevblog.com/forum/projects/yet-another-diy-gpsdo-yes-another-one/The STM32 GPSDO provides the Nucleo board with a 1PPS synchronized to GPS time / UTC within +/-100ns. The Nucleo board uses this information to provide sub-microsecond accurate timing over the network it is connected to, using either the NTP or PTP protocols.

author: AndrewBCN
author_rank: Frequent Contributor
timestamp: September 25, 2021, 10:27:35 am
content: reserved

author: dmendesf
author_rank: Frequent Contributor
timestamp: September 25, 2021, 12:58:47 pm
content: That's great news! Just to be clear , is it PTPv1 or PTPv2?

author: AndrewBCN
author_rank: Frequent Contributor
timestamp: September 25, 2021, 02:19:39 pm
content: Boa pergunta!Quote from: dmendesf on September 25, 2021, 12:58:47 pmPTPIt will be IEEE 1588-2008 compliant, so that's PTP Version 2.https://en.wikipedia.org/wiki/Precision_Time_ProtocolThe PTP server implementation will be based on this one:https://github.com/mpthompson/stm32_ptpdI have two boards Nucleo STM32F429 boards, one will be used to test the PTP master server code and the other the PTP slave server code. I also have three STM32 GPSDOs so I can check the performance of the PTP server code.And also, I have a number of SBCs running Linux, again these can be used to test the STM32 Open Time Server performance and compliance with the IEEE 1588-2008 protocol.NTPFreeRTOS has a native ntpd implementation, documented here:https://www.freertos.org/sntp/setting-up-an-ntp-server.html

author: bingo600
author_rank: Super Contributor
timestamp: September 26, 2021, 03:27:15 pm
content: Quote from: AndrewBCN on September 25, 2021, 02:19:39 pmTo me the above seems to be a guide to install Chrony on linux.Prob. to have something to verify the FreeRTOS sntp client against./Bingo

author: AndrewBCN
author_rank: Frequent Contributor
timestamp: September 26, 2021, 03:44:55 pm
content: Quote from: bingo600 on September 26, 2021, 03:27:15 pmIndeed. Stay tuned for details!

author: AndrewBCN
author_rank: Frequent Contributor
timestamp: October 02, 2021, 12:16:58 pm
content: I just found out there is a 2013-2015 thread here on the EEVblog forum about a GPS-driven STM32F1 NTP server, here:https://www.eevblog.com/forum/oshw/_laureline_-embedded-gps-ntp-server/Unfortunately the author's last post dates back from 2014 and the last updates to the GitHub repository are also from 7 years ago.At first sight it looks like his code could be merged with the existing NTP client and PTP server codebases I linked to before. I'll certainly take a look at it when the time comes.

author: reneen
author_rank: Newbie
timestamp: July 31, 2022, 12:37:59 am
content: Hi Andrew,I wonder if you have made any progress on the PTP add on to your GPSDO?I have been pretty inactive myself between Covid, parts availability and life in general...Thank you for your time.Renee