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

Camera can get locked with old fw version #8186

Closed
kenmccormackagility opened this issue Jan 19, 2021 · 9 comments
Closed

Camera can get locked with old fw version #8186

kenmccormackagility opened this issue Jan 19, 2021 · 9 comments

Comments

@kenmccormackagility
Copy link

  • 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 :)


Required Info
Camera Model D455 and D435
Firmware Version 05.12.10.00
OS Ubuntu 18.04
Platform PC
SDK Version 2.41.0
Language shell scripts
Segment Robot

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.

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 19, 2021

Hi @kenmccormackagility There was a similar case in November 2020.

#7783

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.

#7783 (comment)

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.

@kenmccormackagility
Copy link
Author

kenmccormackagility commented Jan 22, 2021 via email

@MartyG-RealSense
Copy link
Collaborator

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.

@kenmccormackagility
Copy link
Author

kenmccormackagility commented Jan 26, 2021 via email

@MartyG-RealSense
Copy link
Collaborator

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:

#4416

@kenmccormackagility
Copy link
Author

kenmccormackagility commented Jan 27, 2021 via email

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Jan 28, 2021

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.

@6xdd
Copy link

6xdd commented Mar 1, 2022

Hello, what is the purpose of the 20 times limit to downgrading?

@MartyG-RealSense
Copy link
Collaborator

MartyG-RealSense commented Mar 1, 2022

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.

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

3 participants