-
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
Update firmware of D415 #4416
Comments
I found a couple of function names that may be useful for your investigation. RS2_CAMERA_INFO_FIRMWARE_VERSION] More info here about firmware checking: Please also note that a new cross-platform firmware update system was introduced in SDK version 2.24.0. You can read about it in that version's release notes, under the 'New features & improvements' heading. https://github.com/IntelRealSense/librealsense/wiki/Release-Notes#release-2240 The standalone rs-fw-update tool referenced by the release notes can be found here: https://github.com/IntelRealSense/librealsense/tree/master/tools/fw-update |
@MartyG-RealSense, i can check what is the firmware version of the camera but how can i download and update the firmware from my python code if the version does not match. |
I think that in the cross-platform update system, the firmware updating process may be handled by a script called fw-update-helper. https://github.com/IntelRealSense/librealsense/blob/master/common/fw-update-helper.cpp |
Firmware update is now build into |
Here's a quick schematic of how to update a D435 or D435i in python: import pyrealsense2 as rs
ctx = rs.context()
dev = ctx.query_devices()[0]
ud = dev.as_update_device()
ud.update(open("common/fw/D4XX_FW_Image-5.11.6.250.bin", "rb").read()) |
It's a bit more complicated than that, but generally, yes, |
@radfordi I am calling this function: but i am getting |
Thanks @dorodnic, I had missed the Here's an updated "schematic" update process: import pyrealsense2 as rs
ctx = rs.context()
dev = ctx.query_devices()[0]
dev.as_updatable().enter_update_state()
import time
time.sleep(1) # using ctx.set_devices_changed_callback(), as in rs-fw-update.cpp, would be better
dev = ctx.query_devices()[0]
dev.as_update_device().update(open("common/fw/D4XX_FW_Image-5.11.6.250.bin", "rb").read()) |
It looks like the two new classes of |
This was addressed in PR #4758 |
@itachi134999 Could you please try the latest v2.28 to see if it meets your need? Thanks! |
@itachi13499 Any other questions about this? Looking forward to your update. Thanks! |
import pyrealsense2 as rs dev = ctx.query_devices()[0] import time dev = ctx.query_devices()[0] I used this code to update the firmware but when i executed it, the camera got disconnected and I got an error message saying: |
just for future reference the python code suggested here will not work.
|
I have a requirement to check the firmware and if it is not recommended update the firmware to recommended firmware.
How to update the firmware from the python code.
if firmware_update_require:
//update the firmware from code
The text was updated successfully, but these errors were encountered: