Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset 1PPS state #6

Open
EmilWine opened this issue Jul 11, 2018 · 2 comments
Open

Reset 1PPS state #6

EmilWine opened this issue Jul 11, 2018 · 2 comments

Comments

@EmilWine
Copy link

Hi,

I'm using the ptp4l tool for time syncing between devices. I need to implement a feature where the GPIO_1 output is disabled (i.e. output is 0) and when the ptp4l becomes locked I need the GPIO_1 to output 1PPS in sync with the internal clock.

By default I get the switch outputting 1PPS on this pin. I tried writing "0" to flag 3 of register 0x052F which disabled the 1PPS output but I could not get it back running by writing "1" to the same flag. Tried toggling flag "2" but with the same result.

I did notice that restarting my mac driver revives the 1PPS ouptut.
Any suggestions on how to proceed?

Thanks
Emil

@wmoors
Copy link

wmoors commented Mar 20, 2020

Bump back to life...
Did you manage to solve your problem?

@triha2work
Copy link
Collaborator

You cannot change most of the unit (triggered output, timestamp input, and GPIO) related functions directly as the index pointing to those units is likely changed by the driver all the time. One way to change GPIO is to use the ptpfs sysfs.
echo 0 > .../ptpfs/gpio_1
echo 1 > .../ptpfs/gpio_1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants