Hello All,

I'm facing issue with ptp4l that ptp is synchronazing for few seconds and then 
its going out of sync and then its trying to sync again and this thing is 
repeating all the time, in logs its look like wave.


I've tried to change step_threshold to 0.1/0.02/0.00002 but it didn't worked.



Also there is a second issue that first offset is very high and its like this 
every time when I'm starting ptp4l.



ptp4l[2371.936]: selected /dev/ptp0 as PTP clock
ptp4l[2371.999]: port 1: INITIALIZING to SLAVE on INIT_COMPLETE
ptp4l[2372.000]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
ptp4l[2373.957]: rms 804703302516906240 max 1609406605033814528 freq +47131 +/- 
10367 delay  5443 +/-   0
ptp4l[2375.017]: rms 14660 max 15769 freq +28185 +/- 3046 delay  5438 +/-   2
ptp4l[2376.063]: rms 8517 max 11464 freq +27155 +/- 6060 delay -6324 +/-   0
ptp4l[2377.099]: rms 5252 max 12412 freq +36429 +/- 7044 delay  5437 +/-   0
ptp4l[2378.142]: rms 6477 max 10710 freq +22853 +/- 2318 delay  5439 +/-   0
ptp4l[2379.180]: rms 1068 max 1632 freq +29487 +/- 1402 delay  5441 +/-   0
ptp4l[2380.243]: rms 1710 max 1812 freq +32505 +/- 400 delay  5440 +/-   0
ptp4l[2381.262]: rms 1028 max 1383 freq +32992 +/-  53 delay  5439 +/-   0
ptp4l[2382.310]: rms  308 max  534 freq +32619 +/- 138 delay  5438 +/-   0
ptp4l[2383.373]: rms   65 max  127 freq +32277 +/-  77 delay  5438 +/-   0
ptp4l[2384.411]: rms   88 max  117 freq +32136 +/-  25 delay  5440 +/-   0
ptp4l[2385.440]: rms   60 max   79 freq +32101 +/-  23 delay  5445 +/-   0
ptp4l[2386.500]: rms   22 max   38 freq +32122 +/-  21 delay  5449 +/-   0
ptp4l[2387.534]: master offset         -2 s3 freq  +32136 path delay      5445
ptp4l[2388.546]: master offset         46 s3 freq  +32183 path delay      5445
ptp4l[2389.558]: master offset         16 s3 freq  +32167 path delay      5445
ptp4l[2390.556]: master offset          6 s3 freq  +32162 path delay      5445
ptp4l[2391.566]: master offset          6 s3 freq  +32163 path delay      5449
ptp4l[2392.590]: master offset        -46 s3 freq  +32113 path delay      5449
ptp4l[2393.606]: master offset         34 s3 freq  +32179 path delay      5449
ptp4l[2394.605]: master offset          6 s3 freq  +32162 path delay      5449
ptp4l[2396.521]: rms   46 max   74 freq +32207 +/-  45 delay  5446 +/-   2
ptp4l[2397.573]: rms   58 max   92 freq +32149 +/-  36
ptp4l[2398.594]: rms   43 max   62 freq +32117 +/-  26
ptp4l[2399.637]: rms   21 max   44 freq +32148 +/-  28 delay  5451 +/-   0
ptp4l[2400.652]: master offset        -22 s3 freq  +32128 path delay      5451
ptp4l[2401.664]: master offset        -34 s3 freq  +32109 path delay      5451
ptp4l[2402.677]: master offset         74 s3 freq  +32207 path delay      5451
ptp4l[2403.695]: master offset         24 s3 freq  +32179 path delay      5451
ptp4l[2404.694]: master offset        -30 s3 freq  +32132 path delay      5451
ptp4l[2405.721]: master offset          4 s3 freq  +32157 path delay      5451
ptp4l[2406.730]: master offset        -22 s3 freq  +32133 path delay      5451
ptp4l[2407.729]: master offset         48 s3 freq  +32196 path delay      5451
ptp4l[2409.661]: rms   38 max   56 freq +32093 +/-  40 delay  5451 +/-   0
ptp4l[2410.696]: rms   54 max   74 freq +32161 +/-  33
ptp4l[2411.719]: rms   36 max   64 freq +32183 +/-  16 delay  5451 +/-   0
ptp4l[2412.875]: master offset         34 s3 freq  +32186 path delay      5451
ptp4l[2413.902]: master offset        -38 s3 freq  +32124 path delay      5451
ptp4l[2414.901]: master offset         34 s3 freq  +32185 path delay      5451
ptp4l[2415.906]: master offset        -48 s3 freq  +32113 path delay      5449
ptp4l[2416.919]: master offset         38 s3 freq  +32185 path delay      5449
ptp4l[2417.944]: master offset        -28 s3 freq  +32130 path delay      5449
ptp4l[2418.945]: master offset         42 s3 freq  +32192 path delay      5449
ptp4l[2419.955]: master offset        -22 s3 freq  +32140 path delay      5445
ptp4l[2421.748]: rms   25 max   54 freq +32203 +/-  46 delay  5447 +/-   2
ptp4l[2422.792]: rms   49 max   78 freq +32157 +/-  30
ptp4l[2423.817]: rms   36 max   60 freq +32134 +/-  20 delay  5445 +/-   0
ptp4l[2424.831]: master offset         -4 s3 freq  +32159 path delay      5445
ptp4l[2425.858]: master offset         -4 s3 freq  +32158 path delay      5445
ptp4l[2426.857]: master offset          6 s3 freq  +32166 path delay      5445
ptp4l[2427.859]: master offset         22 s3 freq  +32184 path delay      5445
ptp4l[2428.871]: master offset        -36 s3 freq  +32133 path delay      5445
ptp4l[2429.884]: master offset         -4 s3 freq  +32154 path delay      5445
ptp4l[2430.897]: master offset         28 s3 freq  +32185 path delay      5445
ptp4l[2431.907]: master offset        -44 s3 freq  +32121 path delay      5443
ptp4l[2433.827]: rms   59 max  110 freq +32078 +/-  59 delay  5444 +/-   1
ptp4l[2434.863]: rms   96 max  138 freq +32184 +/-  49
ptp4l[2435.897]: rms   53 max  110 freq +32199 +/-  29 delay  5445 +/-   0
ptp4l[2437.829]: master offset         24 s3 freq  +32192 path delay      5445
ptp4l[2438.831]: master offset         10 s3 freq  +32185 path delay      5445
ptp4l[2439.858]: master offset         -4 s3 freq  +32174 path delay      5445
ptp4l[2440.868]: master offset         -6 s3 freq  +32171 path delay      5445
ptp4l[2441.881]: master offset        -40 s3 freq  +32135 path delay      5445
ptp4l[2442.882]: master offset        -44 s3 freq  +32119 path delay      5445
ptp4l[2443.891]: master offset         44 s3 freq  +32194 path delay      5445
ptp4l[2444.904]: master offset         16 s3 freq  +32179 path delay      5445
ptp4l[2445.917]: rms   31 max   66 freq +32183 +/-  37 delay  5445 +/-   0
ptp4l[2446.953]: rms   80 max  112 freq +32244 +/-  73
ptp4l[2448.005]: rms   96 max  134 freq +32136 +/-  27 delay  5445 +/-   0
ptp4l[2449.032]: rms   59 max   88 freq +32113 +/-  31
ptp4l[2450.068]: rms   23 max   48 freq +32128 +/-  20
ptp4l[2451.072]: master offset         18 s3 freq  +32163 path delay      5445
ptp4l[2452.085]: master offset          0 s3 freq  +32151 path delay      5445
ptp4l[2453.114]: master offset         10 s3 freq  +32161 path delay      5445
ptp4l[2454.111]: master offset         30 s3 freq  +32184 path delay      5445
ptp4l[2455.125]: master offset        -24 s3 freq  +32139 path delay      5445
ptp4l[2456.138]: master offset         -6 s3 freq  +32149 path delay      5445
ptp4l[2457.150]: master offset         -6 s3 freq  +32148 path delay      5445
ptp4l[2458.163]: master offset         40 s3 freq  +32192 path delay      5445
ptp4l[2460.090]: rms   33 max   59 freq +32109 +/-  35 delay  5443 +/-   2
ptp4l[2461.116]: rms   64 max   99 freq +32193 +/-  25
ptp4l[2462.153]: rms   35 max   57 freq +32189 +/-  31
ptp4l[2463.297]: master offset         -6 s3 freq  +32160 path delay      5439
ptp4l[2464.298]: master offset        -18 s3 freq  +32146 path delay      5439
ptp4l[2465.326]: master offset         16 s3 freq  +32174 path delay      5439
ptp4l[2466.324]: master offset         14 s3 freq  +32177 path delay      5439
ptp4l[2467.334]: master offset         32 s3 freq  +32199 path delay      5439
ptp4l[2468.347]: master offset        -38 s3 freq  +32139 path delay      5439
ptp4l[2469.360]: master offset        -26 s3 freq  +32140 path delay      5439
ptp4l[2470.372]: master offset         -4 s3 freq  +32154 path delay      5439
ptp4l[2472.174]: rms   50 max   96 freq +32291 +/-  73 delay  5441 +/-   3
ptp4l[2473.196]: rms  113 max  144 freq +32160 +/-  38
ptp4l[2474.232]: rms   70 max   98 freq +32127 +/-  31
ptp4l[2475.271]: rms   22 max   34 freq +32149 +/-  16 delay  5444 +/-   0
ptp4l[2476.673]: master offset         35 s3 freq  +32192 path delay      5444
ptp4l[2477.688]: master offset         -9 s3 freq  +32158 path delay      5444
ptp4l[2478.699]: master offset         43 s3 freq  +32208 path delay      5444



Can somebody help me to solve this issue. Any pointers on this issue could be a 
great help to me.


Thank you all in advance.

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

Reply via email to