Skip to content

Polling drdy interrupt read #11

@rikba

Description

@rikba

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions