libgpiod icon indicating copy to clipboard operation
libgpiod copied to clipboard

bindings: python: properly pass event clock settings

Open kartben opened this issue 1 year ago • 6 comments

Python binding was ignoring event_clock line setting.

kartben avatar Jul 12 '24 12:07 kartben

Thanks, can you send the patch to the linux-gpio mailing list using git send-email? This is just a mirror.

brgl avatar Jul 12 '24 14:07 brgl

While at it: could you also add a relevant test-case?

brgl avatar Jul 12 '24 14:07 brgl

ya, will do :) BTW, I am assuming that adding error checking for these would be good too?

Also, while I have your attention... :) Do you by any chance have a sense of the accuracy of hardware timestamping using CLOCK_REALTIME on a Raspberry Pi 5? I have two devices which clocks are sync'd within tens of nanoseconds using PTP (Precision Time Protocol), and the Raspberry Pi 5 seems to be behind by several milliseconds in "getting" a GPIO input interrupt

kartben avatar Jul 12 '24 16:07 kartben

Nevermind, this might very well have to do with debouncing. I'm within a 100 µs between the two hosts now, so not bad (and hardly any jitter).

kartben avatar Jul 12 '24 17:07 kartben

ya, will do :) BTW, I am assuming that adding error checking for these would be good too?

They don't return error values.

brgl avatar Jul 31 '24 09:07 brgl

ya, will do :) BTW, I am assuming that adding error checking for these would be good too?

They don't return error values.

duh - of course!

kartben avatar Aug 01 '24 10:08 kartben