zlab-pub / wifi-ptp

Precision Time Protocol (PTP) for Wi-Fi
54 stars 6 forks source link

How to run phc2sys command line option? #3

Open sinlam opened 2 years ago

sinlam commented 2 years ago

Hi, I would like to find out how to synchronize the clock from the Wifi adapter to the local system clock using phc2sys (compiled from your ptp dir)? Any information is appreciated, thank you!

tianyigs commented 2 years ago

Use linuxptp. We forked one in the repo: ptp.

sinlam commented 2 years ago

Thank you for the info. I have compiled the linuxptp that you forked. Can you share exact command to synchronize system clock from the Wifi TSF counter? I used phc2sys from the forked 'ptp' as below:

sudo phc2sys -s wlan0 -c CLOCK_REALTIME --step_threshold=1 --transportSpecific=1 -w -m

But it is not successful. Thanks for any info!

tianyigs commented 2 years ago

Can you provide the error log? Turn off NTP.

sinlam commented 2 years ago

Hi, Thanks for your suggestion. Currently I am on vacation, I will try it again early April when I go back to office and provide you the error log. Thanks!


From: Zhice Yang @.> Sent: Friday, March 25, 2022 12:14 PM To: zlab-pub/wifi-ptp @.> Cc: sinlam @.>; Author @.> Subject: Re: [zlab-pub/wifi-ptp] How to run phc2sys command line option? (Issue #3)

Can you provide the error log? Turn off NTP.

— Reply to this email directly, view it on GitHubhttps://github.com/zlab-pub/wifi-ptp/issues/3#issuecomment-1078636341, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACN6V5ASKHXYDKCNOXGYNHLVBU4T7ANCNFSM5RQRSPTA. You are receiving this because you authored the thread.Message ID: @.***>