vogelchr / radioclkd2

Quick and dirty fork of http://www.jonatkins.com/page/software/radioclkd2 adding Linux GPIO pin support.
19 stars 7 forks source link

GPIO mode: filter out improbably short pulses #2

Closed mhaas closed 8 years ago

mhaas commented 8 years ago

My OlinuXino-A20-Lime2 in combination with my Pollin DCF1 module seems to be producing intermittent state transitions on the GPIO pins which throw off radioclkd2. This is not an issue with dcf77pi which ignores these ghost transitions, perhaps because it's sampling the device node instead of using edge-triggered interrupts.

The shortest recognized pulse in clock.c is 0.1s, so filtering out transitions occurring less than 0.05s after the last transition should be safe.