Hi,
Thanks for this awesome C++ implementation.
I am using the GPIO::add_event_detect(channel, GPIO::BOTH, callback_fn) feature to detect edge in Jetson AGX Xavier digital input. Environment is JP5.0.2 with docker.
I have a rotary encoder whose digital output change every 1 milliseconds from high to low (and vice versa).
The problem is when CPU load increases on Jetson to 50% or more, the add_event_detect is not able to pick up all the encoder output change. It don't detect around 30% of the edge (less callbacks) for same encoder RPM. I understand that this is not a RTOS based system, but do you have any recommendations to improve the GPIO callback performance?
thanks
Hi,
Thanks for this awesome C++ implementation.
I am using the
GPIO::add_event_detect(channel, GPIO::BOTH, callback_fn)feature to detect edge in Jetson AGX Xavier digital input. Environment is JP5.0.2 with docker.I have a rotary encoder whose digital output change every 1 milliseconds from high to low (and vice versa).
The problem is when CPU load increases on Jetson to 50% or more, the
add_event_detectis not able to pick up all the encoder output change. It don't detect around 30% of the edge (less callbacks) for same encoder RPM. I understand that this is not a RTOS based system, but do you have any recommendations to improve the GPIO callback performance?thanks