After some further digging, I now understand the behavior of this (which turns 
out to be fully as intended):

The automotive slave config file overrides the default value of 
'servo_offset_threshold' to 30:
ptp4l[26251.269]: config item (null).servo_offset_threshold is 30

The (default) value of 'servo_num_offset_values' is 10:
ptp4l[26251.269]: config item (null).servo_num_offset_values is 10

This leads to the slave transitioning from the servo state SERVO_LOCKED to 
SERVO_LOCKED_STABLE after 'servo_num_offset_vlaues' (10) reports of accuracy <= 
'servo_offset_threshold' (30) are reached:
ptp4l[26334.041]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000

The accuracy is the first value in the log lines reported with "rms ...", e.g.:
ptp4l[26333.540]: rms   24 max   60 freq  +5559 +/-  33 delay  8899 +/-   0
--> 24


I would appreciate, if in that case some message like "Servo transitioning from 
SERVO_LOCKED to SERVO_LOCKED_STABLE" would be logged. I thought I saw something 
like that in other profiles, but this seems not reported using the default 
automotive-slave.cfg

Thanks again for the help Richard!

BR
Daniel


Internal
-----Ursprüngliche Nachricht-----
Von: Hopf, Daniel
Gesendet: Dienstag, 28. November 2023 17:19
An: Richard Cochran <richardcoch...@gmail.com>
Cc: linuxptp-users@lists.sourceforge.net
Betreff: AW: [Linuxptp-users] Slave takes VERY long to sync to Master using 
Automotive profile

OK, to phrase it in my understanding:

Master sends SYNC slower than slave "summary_interval":
ptp4l slave reports the sample by "master offset ..."

Master sends SYNC faster than slave "summary_interval"
ptp4l slave reports the (average) statistics by "rms ..."

Is that correct?

Then the only unclear point left for me is how or when the *MASTER* decides to 
switch from sending SYNCs every 125 ms to sending SYNCs every one second. This 
seems arbitrary in my test setup.

Thanks
Daniel




_______________________________________________
Linuxptp-users mailing list
Linuxptp-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-users

Reply via email to