-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
hardware_reset generates "failed to set power state" in C++ application #11957
Comments
Hi @jpfsaunders There is not a C++ example of resetting a single specific camera by its serial number, though a RealSense team member provided one for Python at #5428 (comment) that takes the approach of generating a list of all attached cameras with the ctx.query_devices() instruction and then querying a serial number in that list. There is also a C++ reset script at #9287 (comment) that cycles through all attached cameras. This script also uses ctx.query_devices() |
Hi @MartyG-RealSense , |
Thanks very much, @jpfsaunders - I look forward to your next report. Good luck! |
Hi @jpfsaunders Do you have an update about this case that you can provide, please? Thanks! |
Hi @MartyG-RealSense , I would say we can close this issue. I will open a new one later if I can't figure out a workaround. |
Okay, thanks very much @jpfsaunders for the update. |
|---------------------------------|------------------------------------------- |
| Camera Model = D455
| Firmware Version = 5.13.00.50
| Operating System & Version Linux = Ubuntu 18.04
| Kernel Version (Linux Only) = ?
| Platform = nVidia Jetson Nano
| SDK Version = ?
| Language = C++ |
|
Issue Description
My C++ app operates three D455 cameras. Normally it starts and runs correctly. I would like to add a feature that monitors some info and then may decide to perform a hardware reset on a single camera (not all three), and then re-enable the steams and re-start the pipeline for that one camera (leaving the other two running as they originally were).
My attempt to do this is not working. All I did was run my code to determine if a reset is warranted (this part does work), and if it is, perform a hardware reset and then repeat the same code I used to originally (successfully) start up the camera.
When I try the hardware_reset(), the OS throws an exception "failed to set power state" and the app stops. The reset/restart code I tried using appears below:
Should it be possible to use hardware_reset() on a camera more than once after initial powerup? What might be wrong with what I am doing?
The text was updated successfully, but these errors were encountered: