Description
The statime library looks very promising! Thank you for this great piece of software! I am currently trying to get it run on a system of STM32s.
When running the statime-stm32
example implementation on the Nucleo f767 board, I have noticed that the synchronization is very inaccurate. When using ptp4l, I get a very inconsistent offsets of sometimes even more than 200'000ns, which is too much for a point to point PTP connection.
I have also tried to connect two Nucleo-f767 boards together and comparing the PPS, I get significant shift between the clocks.
Do you have any idea why this could be the case? I have also tried older versions of statime, but I still get the same problem. I would love to help in this matter, I just don't have a clear idea of what could be the problem here (yet). :)
output2.mp4
user@debian:~$ sudo ptp4l -H -m -q -i eno2
ptp4l[8488.542]: selected /dev/ptp1 as PTP clock
ptp4l[8488.543]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[8488.543]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[8488.543]: port 1: link down
ptp4l[8488.543]: port 1: LISTENING to FAULTY on FAULT_DETECTED (FT_UNSPECIFIED)
ptp4l[8488.543]: selected local clock 386077.fffe.f12e07 as best master
ptp4l[8488.543]: port 1: assuming the grand master role
ptp4l[8489.285]: port 1: link up
ptp4l[8489.286]: port 1: FAULTY to LISTENING on INIT_COMPLETE
ptp4l[8496.353]: port 1: LISTENING to MASTER on ANNOUNCE_RECEIPT_TIMEOUT_EXPIRES
ptp4l[8496.353]: selected local clock 386077.fffe.f12e07 as best master
ptp4l[8496.353]: port 1: assuming the grand master role
ptp4l[8499.955]: port 1: new foreign master a6011b.8303.d20000-1
ptp4l[8503.508]: selected best master clock a6011b.8303.d20000
ptp4l[8503.508]: running in a temporal vortex
ptp4l[8503.508]: port 1: MASTER to UNCALIBRATED on RS_SLAVE
ptp4l[8505.288]: master offset 407819025519 s0 freq -13479943 path delay -57798
ptp4l[8506.177]: master offset 407819066449 s1 freq -13438504 path delay -57798
ptp4l[8507.066]: master offset 146810 s2 freq -13291694 path delay -57798
ptp4l[8507.066]: port 1: UNCALIBRATED to SLAVE on MASTER_CLOCK_SELECTED
ptp4l[8507.955]: master offset 155562 s2 freq -13238899 path delay -20095
ptp4l[8508.844]: master offset -93509 s2 freq -13441302 path delay 24052
ptp4l[8509.733]: master offset -183010 s2 freq -13558856 path delay 24052
ptp4l[8510.622]: master offset -104282 s2 freq -13535031 path delay 23863
ptp4l[8511.511]: master offset -12374 s2 freq -13474407 path delay 23863
ptp4l[8512.352]: master offset -88321 s2 freq -13554066 path delay 20735
ptp4l[8513.240]: master offset -124790 s2 freq -13617032 path delay 20735
ptp4l[8514.129]: master offset 425970 s2 freq -13103709 path delay 20735
ptp4l[8515.018]: master offset 152395 s2 freq -13249493 path delay 17608
ptp4l[8515.907]: master offset 226507 s2 freq -13129662 path delay 16578
ptp4l[8516.797]: master offset 360672 s2 freq -12927545 path delay 15548
ptp4l[8517.686]: master offset 329000 s2 freq -12851015 path delay 16578
ptp4l[8518.576]: master offset 591498 s2 freq -12489817 path delay 16578
ptp4l[8519.465]: master offset -75543 s2 freq -12979409 path delay 14520
ptp4l[8520.355]: master offset 415561 s2 freq -12510968 path delay 10408
ptp4l[8521.244]: master offset 293488 s2 freq -12508373 path delay 10408
ptp4l[8522.134]: master offset 317086 s2 freq -12396728 path delay 5105
ptp4l[8523.024]: master offset -81899 s2 freq -12700587 path delay 5105
ptp4l[8523.913]: master offset -85733 s2 freq -12728991 path delay 1338
ptp4l[8524.803]: master offset 371202 s2 freq -12297776 path delay -13548
ptp4l[8525.693]: master offset 177673 s2 freq -12379944 path delay -13548
ptp4l[8526.582]: master offset -376172 s2 freq -12880488 path delay -13548
ptp4l[8527.472]: master offset -252517 s2 freq -12869684 path delay -21065
ptp4l[8528.362]: master offset -127113 s2 freq -12820035 path delay -12202
ptp4l[8529.251]: master offset -272116 s2 freq -13003172 path delay -12202
^Cuser@debian:~$