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

What hardware do we require to generate a PPS in the GPIO pins? #4

Open
MamanAhmadKhan opened this issue Apr 19, 2019 · 3 comments
Open

Comments

@MamanAhmadKhan
Copy link

Hi,
I am new to RPI and the PTP concept.

  1. First I would like to ask what hardware do we require to generate a PPS pulse in the GPIO of the RPI and how to transfer it to data acquisition board (which is LOGI-PI in this case) for sampling the data?
  2. Can we connect the computer with the RPI3 and make the computer as the grandmaster clock synchronising RPI in micro-sec (like through USB to UART connection- laptop to RPI3) treating the RPI as the master and then slave clock with a computer as grandmaster clock?

Thanks a mil in advance.

Best Regards.

@gizero
Copy link
Contributor

gizero commented May 2, 2019

Hi!

  1. First I would like to ask what hardware do we require to generate a PPS pulse in the GPIO of the RPI and how to transfer it to data acquisition board (which is LOGI-PI in this case) for sampling the data?

Do you mean that you want to make your RPi a PPS source? If it's the case, I have been looking into it for a while some time ago and pps-generator.md is what I come up with. Once you trust your RPi's clock as a precise source, you can drive a GPIO pin with a PPS pulse. Please note that the driver implemented in patches/0001-pps-add-gpio-PPS-signal-generator.patch is very likely subject to the same issue described here for the parallel port driver this one is based on which is marked as broken in kernel config infrastructure.

  1. Can we connect the computer with the RPI3 and make the computer as the grandmaster clock synchronising RPI in micro-sec (like through USB to UART connection- laptop to RPI3) treating the RPI as the master and then slave clock with a computer as grandmaster clock?

I don't understand what you are trying to do here...

@MamanAhmadKhan
Copy link
Author

MamanAhmadKhan commented May 2, 2019 via email

@ahmadexp
Copy link

ahmadexp commented Nov 16, 2019

I spent days over days and I still cannot get the PPS output to work.
I am wondering, does the clock needs to be locked in order to get the PPS out working.
Also, I still cannot find the /dev/ppt0 device that is mentioned in the documentations.
I have no idea where to find the kernel 4.14.71. Are you sure about the third number of the version (71)?

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