Avnu / OpenAvnu

OpenAvnu - an Avnu sponsored repository for Time Sensitive Network (TSN and AVB) technology
462 stars 289 forks source link

GPTP Local to Master Translation #876

Open pm93 opened 4 years ago

pm93 commented 4 years ago

Hi,

I am testing GPTP on a TI board which has CPSW driver. I am running gptp daemons on two separate TI boards using a Point-To-Point connection. I have written an application which will read the GPTP daemon shared memory and will try to calculate the synchronized master clock using the parameters defined in that shared memory.

I am doing the calculations in the below way: Local Clock = System Clock - Local-To-System Phase Offset Master Clock = Local Clock - Master-To-Local Phase Offset

Kindly let me know if this is the right way of calculating the Master Clock/Timestamp.

If there is some flaw in my understanding, please let me know the correct way.

Thanks in Advance.

Regards, Mandar