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

rs::context set_devices_changed_callback does not always notify of a sensor disconnect #9512

Closed
banuprathap opened this issue Jul 28, 2021 · 3 comments

Comments

@banuprathap
Copy link


Required Info
Camera Model D435
Firmware Version 05.12.09.00
Operating System & Version Ubuntu 14.04
Kernel Version (Linux Only) 4.4
Platform Intel Com Xpress
SDK Version 2.48.0
Language C++
Segment Robot

When use the set_devices_changed_callback to detect device connect and disconnect events. We noticed that this mechanism does not always invoke the registered callback of disconnect events. We have not come across any issue with a subsequent connect. In other words, even if the callback was not invoked for disconnect, it gets invoked when the sensor is connected back.

Is there a recommended way to reliably detect the sensor disconnects?

@MartyG-RealSense
Copy link
Collaborator

Hi @banuprathap Did you build the librealsense SDK using the RSUSB backend method or with the kernel patching method, please?

If you are using RSUSB (which is known to have issues with timing when polling) then you could either use a kernel-patched librealsense build instead or reduce the time period between each polling of the device under RSUSB, as described in the comment linked to below and the comments beneath it.

#6921 (comment)

@MartyG-RealSense
Copy link
Collaborator

Hi @banuprathap Do you require further assistance with this case, please? Thanks!

@MartyG-RealSense
Copy link
Collaborator

Case closed due to no further comments received.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants