-
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
Camera can get locked with old fw version #8186
Comments
Hi @kenmccormackagility There was a similar case in November 2020. RealSense cameras permit 20 firmware downgrades before downgrading is locked and the camera will then in future only allow update to a newer version than the one that is detected as currently being installed. The eventual successful solution in the above case was to wait for the release of a newer firmware version than the one that the camera believed was currently installed and then install it. The RealSense Viewer program also has a firmware update tool that can be found by left-clicking on the More option near the top of the Viewer's options side-panel and then selecting from its menu the Install Recommended Firmware option. This Viewer option installs the firmware version recommended for a particular librealsense version. For SDK 2.41.0, the recommended firmware that is installed is 5.12.10.0. I used the Install Recommended Firmware option to test a firmware update to 5.12.10.0 on a D435i that already had 5.12.10.0 installed and the Viewer did not block the update process. |
Thanks for the link to the similar issue (#7783) Our issue is similar
but perhaps is a feature request rather than a bug. The realsense is
deployed in a commercial robot and waiting for an upgrade is not an
option. It seems that a camera that is locked at an older version should
always be upgradable to the newest version that has been previously
installed on the camera. It should not be limited to newest+1. As it is
now the camera cannot be upgraded in the field until a new release that is
newer than 05.12.10. Being locked at an older version the camera will not
work in the robot.
A second question that is related. Does anyone know the reason a camera
would get locked in the first place? I've tested two other cameras
bouncing between two versions (05.12.03/05.12.08) and they seem to
indefinitely update. Yet I have two other cameras that stopped updates
and are now locked out.
…On Tue, Jan 19, 2021 at 4:22 AM MartyG-RealSense ***@***.***> wrote:
Hi @kenmccormackagility <https://github.com/kenmccormackagility> There
was a similar case in November 2020.
#7783 <#7783>
The eventual successful solution was to wait for the release of a newer
firmware version than the one that the camera believed was currently
installed and then install it.
#7783 (comment)
<#7783 (comment)>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8186 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5LM34NIAT2BJNRYNJ5O3TS2V2PVANCNFSM4WIEUAKQ>
.
|
Could you confirm please whether updating the camera in the RealSense Viewer instead of rs-fw-update, as suggested above, enabled the camera to be successfully updated to 5.12.10.0 please? Is using the Viewer as a means of updating the firmware in future instead of the rs-fw-update tool an option for your commercial operation? Regarding your second question, the official information about the 20-downgrade limit in the data sheet document for the 400 Series cameras is quoted below. The firmware update engine does not allow infinite update cycles between older and current versions of firmware. The engine will establish a baseline version of firmware based on the latest firmware version installed. The engine will allow a return to a previous version or baseline version of firmware up to 20 times. After the 20th update, the engine will only allow an update to a firmware revision higher than the baseline version. As far as I know, only a downgrade to an older firmware version than the currently installed version - or to the version considered as the camera's 'baseline' firmware - counts as one of the 20 permitted attempts, not an upgrade (e.g from 5.12.3 to the newer 5.12.8). The origin of the 20 downgrade limit dates back to the SR300 RealSense camera model launched in early 2016. I do not know of a circumstance that would cause the counter to reset and allow unlimited downgrades though, as the data sheet document statement represents the extent of the publicly available information about the 20-limit. |
I have verified that the camera *does not *upgrade from 05.12.03.0 using
the realsense viewer. It reports the following
- Requesting to switch to recovery mode.
- Recovery device connected, starting update.
- ERROR:UNKNOWN in rs2_update_firmware_cpp() Device: 818413020943 is
locked for update.
- Use firmware version higher than 5.12.10.10"
Upgrading with the realsense-viewer is an option. However, since both the
rs-fw-update and the viewer use the same updating libraries it seems like a
command line tool can be devised that would work as good as the viewer.
Thanks for the information on the 20 cycle limitation.
…On Sat, Jan 23, 2021 at 9:34 AM MartyG-RealSense ***@***.***> wrote:
Could you confirm please whether updating the camera in the RealSense
Viewer instead of rs-fw-update, as suggested above, enabled the camera to
be successfully updated to 5.12.10.0 please?
Is using the Viewer as a means of updating the firmware in future instead
of the rs-fw-update tool an option for your commercial operation?
Regarding your second question, the official information about the
20-downgrade limit in the data sheet document for the 400 Series cameras is
quoted below.
------------------------------
The firmware update engine does not allow infinite update cycles between
older and current versions of firmware. The engine will establish a
baseline version of firmware based on the latest firmware version
installed. The engine will allow a return to a previous version or baseline
version of firmware up to 20 times. After the 20th update, the engine will
only allow an update to a firmware revision higher than the baseline
version.
------------------------------
As far as I know, only a downgrade to an older firmware version than the
currently installed version - or to the version considered as the camera's
'baseline' firmware - counts as one of the 20 permitted attempts, not an
upgrade (e.g from 5.12.3 to the newer 5.12.8). The origin of the 20
downgrade limit dates back to the SR300 RealSense camera model launched in
early 2016. I do not know of a circumstance that would cause the counter to
reset and allow unlimited downgrades though, as the data sheet document
statement represents the extent of the publicly available information about
the 20-limit.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8186 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5LM3YSJULGZZSRNSIFXITS3MCBBANCNFSM4WIEUAKQ>
.
|
Thanks very much for the information @kenmccormackagility Though updating through rs-fw-update or the Viewer are the recommended update methods, it is also possible to check firmware information and update the firmware with scripting instructions: |
I have manually verified that 20 or so cycles of changing versions on a
camera will cause it to lockup and fail to accept new updates that are not
one version greater than the newest version seen on the device. I have
also verified that if the version+1 is applied to the device that it resets
the up/down upgrade count back to zero and thus allows updates as desired
freely.
This provided a work around for the issue seen. We use the production
versions of FW release and if a customer upgrades/down grades enough to
trigger the issue we will service the device by writing one of the "minor"
releases to the camera. After this any version that is compatible
including the current baseline can be put back on.
The feature requested here is that the device should always be able to
return to the baseline version irregardless of the number of up/down
cycles.
This issue can be closed.
…On Tue, Jan 26, 2021 at 10:02 AM MartyG-RealSense ***@***.***> wrote:
Thanks very much for the information @kenmccormackagility
<https://github.com/kenmccormackagility>
Though updating through rs-fw-update or the Viewer are the recommended
update methods, it is also possible to check firmware information and
update the firmware with scripting instructions:
#4416 <#4416>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8186 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5LM324YYQKUK2Z2KV2YZLS337UPANCNFSM4WIEUAKQ>
.
|
Thanks so much @kenmccormackagility for the detailed update for the benefit of RealSense community members reading this case in future! I am very pleased that you reached a satisfactory solution. |
Hello, what is the purpose of the 20 times limit to downgrading? |
Hi @liuxiaodong528 There is not an official explanation, but unofficially my understanding is that it is a protective measure to put a limit on multiple changes to the camera firmware being made by an unauthorized source such as harmful 'malware' software (for example, to be able to see what the camera is observing). Once the downgrade limit of 20 is reached then from that point onward, the camera can only be upgraded to a newer firmware version than the currently installed version. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description (feature request)
The D435 is downgraded to 5.12.03.00 for older release of our robot. It is upgraded to 5.12.10.00 for latest release.
After several cycles of up and down versioning the camera will report "device is locked for update" and will not accept an update. This is expected. The issue is that the camera is stuck at the older version of 5.12.03.00. the FW-update tool reports "Use firmware version higher than: 05.12.10.00" It will not accept version 5.12.10.00.
The correct thing I believe is for the camera to accept any version that is equal to or greater than the highest_fw_version that has been applied to the camera. This would allow me to get the camera from 05.12.03.00 to 05.12.10.00 which is the version of our current release. As it is the camera has to be removed and replaced with a new unit get the correct version on the robot.
The text was updated successfully, but these errors were encountered: