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

Polling drdy interrupt read #11

Open
rikba opened this issue Jul 6, 2023 · 0 comments
Open

Polling drdy interrupt read #11

rikba opened this issue Jul 6, 2023 · 0 comments

Comments

@rikba
Copy link
Contributor

rikba commented Jul 6, 2023

It would be very nice to have an optional polling GPIO for the BMP390 (and later BMI088). This GPIO is connected to the sensor data ready signal. If the polling GPIO is set, the read will poll until the GPIO fires for better time stamping of the arriving measurement.

Here are references
https://forums.developer.nvidia.com/t/gpio-interrupt-latency/197631
https://forums.developer.nvidia.com/t/gpio-interrupts-from-user-space/57925
https://raspberrypi.stackexchange.com/questions/44416/polling-gpio-pin-from-c-always-getting-immediate-response
https://man7.org/linux/man-pages/man2/poll.2.html
events POLLPRI | POLLERR
poll(&pfd, 1, -1);

Open questions:

  • Will there be too much delay between polled GPIO and reading measurements? Test with Oscilloscope, handle case when read process takes longer then expected sensor time interval
  • How heavy is polling on CPU?
  • Which pins are interruptible on jetson xavier nx?
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

1 participant