Author Topic: STM32 Open Time Server  (Read 4409 times)

0 Members and 1 Guest are viewing this topic.

Offline AndrewBCNTopic starter

  • Frequent Contributor
  • **
  • Posts: 574
  • Country: fr
STM32 Open Time Server
« on: September 25, 2021, 10:13:46 am »
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.
« Last Edit: September 26, 2021, 07:01:05 am by AndrewBCN »
 
The following users thanked this post: jan28

Offline AndrewBCNTopic starter

  • Frequent Contributor
  • **
  • Posts: 574
  • Country: fr
Re: STM32 Open Time Server
« Reply #1 on: September 25, 2021, 10:27:35 am »
reserved
 

Offline dmendesf

  • Frequent Contributor
  • **
  • Posts: 340
  • Country: br
Re: STM32 Open Time Server
« Reply #2 on: September 25, 2021, 12:58:47 pm »
 That's great news! Just to be clear , is it PTPv1 or PTPv2?
 

Offline AndrewBCNTopic starter

  • Frequent Contributor
  • **
  • Posts: 574
  • Country: fr
Re: STM32 Open Time Server
« Reply #3 on: September 25, 2021, 02:19:39 pm »
Boa pergunta!  ;)
That's great news! Just to be clear , is it PTPv1 or PTPv2?

PTP

It will be IEEE 1588-2008 compliant, so that's PTP Version 2. https://en.wikipedia.org/wiki/Precision_Time_Protocol

The PTP server implementation will be based on this one: https://github.com/mpthompson/stm32_ptpd

I 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.

NTP

FreeRTOS has a native ntpd implementation, documented here: https://www.freertos.org/sntp/setting-up-an-ntp-server.html
 

Offline bingo600

  • Super Contributor
  • ***
  • Posts: 2034
  • Country: dk
Re: STM32 Open Time Server
« Reply #4 on: September 26, 2021, 03:27:15 pm »
NTP

FreeRTOS has a native ntpd implementation, documented here: https://www.freertos.org/sntp/setting-up-an-ntp-server.html

To 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
 
The following users thanked this post: AndrewBCN

Offline AndrewBCNTopic starter

  • Frequent Contributor
  • **
  • Posts: 574
  • Country: fr
Re: STM32 Open Time Server
« Reply #5 on: September 26, 2021, 03:44:55 pm »
NTP

FreeRTOS has a native ntpd implementation, documented here: https://www.freertos.org/sntp/setting-up-an-ntp-server.html

To 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

Indeed. Stay tuned for details!   :-/O
 

Offline AndrewBCNTopic starter

  • Frequent Contributor
  • **
  • Posts: 574
  • Country: fr
Re: STM32 Open Time Server
« Reply #6 on: October 02, 2021, 12:16:58 pm »
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.
 

Offline reneen

  • Newbie
  • Posts: 3
  • Country: us
Re: STM32 Open Time Server
« Reply #7 on: July 31, 2022, 12:37:59 am »
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
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf