CN-121996268-A - Firmware upgrading method for vehicle camera, vehicle and computer readable storage medium
Abstract
The application discloses a firmware upgrading method of a vehicle camera, a vehicle and a computer readable storage medium. The method comprises the steps of responding to a firmware upgrading instruction, obtaining identification information of a deserializer of a vehicle domain controller, configuring a firmware upgrading communication link of a target camera to be upgraded according to the identification information of the deserializer, obtaining first identification information of the target camera through the firmware upgrading communication link, determining target upgrading firmware matched with the target camera from a pre-obtained firmware upgrading file packet according to the first identification information, and carrying out firmware refreshing on the target camera according to the target upgrading firmware so as to carry out firmware upgrading on the target camera. Therefore, the firmware updating method and device can automatically determine the target updating firmware of the target camera adaptation to perform firmware updating without manually identifying the camera model and matching the firmware, ensure the stability and reliability of the updating of the vehicle camera firmware, improve the firmware updating efficiency and further meet the batch updating requirement of cameras.
Inventors
- Huo Shuaishuai
- SUN SHIJIE
- WANG DONGLONG
- ZHANG WANNIAN
- ZHANG XIAOTAO
Assignees
- 比亚迪股份有限公司
- 比亚迪汽车工业有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20251229
Claims (10)
- 1. A method of firmware upgrade for a vehicle camera, the method comprising: responding to a firmware upgrading instruction, and acquiring deserializer identification information of the vehicle domain controller; according to the identification information of the deserializer, configuring a firmware upgrading communication link of a target camera to be upgraded; acquiring first identification information of the target camera through the firmware upgrading communication link, wherein the first identification information is used for identifying hardware information of the target camera; determining target upgrading firmware matched with the target camera from a firmware upgrading file packet obtained in advance according to the first identification information, wherein the firmware upgrading file packet comprises a plurality of upgrading firmware, and each upgrading firmware corresponds to one camera identification information; and according to the target upgrading firmware, carrying out firmware refreshing on the target camera so as to upgrade the firmware of the target camera.
- 2. The method of claim 1, wherein configuring the firmware upgrade communication link of the target camera to be upgraded according to the deserializer identification information comprises: Determining a data transmission protocol of the firmware upgrading communication link according to the deserializer identification information; And configuring the firmware upgrading communication link according to the data transmission protocol.
- 3. The method of claim 2, wherein said configuring said firmware upgrade communication link according to said data transfer protocol comprises: And configuring an interface of the firmware upgrading communication link according to the data transmission protocol, and calibrating the firmware upgrading communication link.
- 4. The method according to claim 1, wherein the determining, from a firmware upgrade file packet acquired in advance according to the first identification information, a target upgrade firmware matching the target camera includes: Comparing the first identification information with the camera identification information corresponding to the plurality of upgrading firmware, and determining the upgrading firmware matched with the first identification information as the target upgrading firmware.
- 5. The method of claim 1, wherein the updating the firmware of the target camera by firmware brushing the target camera according to the target updated firmware comprises: Acquiring a preset verification value and second identification information of the target upgrading firmware, wherein the second identification information is used for identifying hardware information of a camera applicable to the target upgrading firmware; And carrying out first preset verification processing on the target upgrading firmware according to the preset verification value and the second identification information, and carrying out firmware brushing on the target camera according to the target upgrading firmware under the condition that the target upgrading firmware meets preset verification conditions so as to upgrade the firmware of the target camera.
- 6. The method according to claim 5, wherein the performing a first preset verification process on the target upgrade firmware according to the preset verification value and the second identification information, and performing firmware brushing on the target camera according to the target upgrade firmware when the target upgrade firmware meets a preset verification condition, so as to perform firmware upgrade on the target camera, includes: calculating a current verification value of the target upgrading firmware, and comparing the current verification value with the preset verification value; Comparing the second identification information with the first identification information; And under the condition that the current verification value is matched with the preset verification value and the second identification information is matched with the first identification information, firmware refreshing is carried out on the target camera according to the target upgrading firmware so as to upgrade the firmware of the target camera.
- 7. The method according to any one of claims 1-6, further comprising: After the target camera finishes firmware refreshing, comparing the first firmware content of the target camera with the second firmware content of the target upgrading firmware; and under the condition that the first firmware content is inconsistent with the second firmware content, the target camera is refreshed according to initial firmware, wherein the initial firmware is the firmware before the target camera is subjected to firmware upgrading.
- 8. The method of claim 7, wherein the method further comprises: Powering on the target camera again under the condition that the first firmware content is consistent with the second firmware content; comparing the first version number of the target camera with the second version number of the target upgrade firmware; Reading a frame count register of the target camera under the condition that the first version number is consistent with the second version number; under the condition that the frame count register is increased, determining that the target camera firmware is successfully upgraded; and under the condition that the first version number is inconsistent with the second version number or the frame count register is not increased, the target camera is refreshed according to initial firmware, wherein the initial firmware is the firmware before the target camera is subjected to firmware upgrading.
- 9. A vehicle comprising a memory and a processor, the memory having stored therein a computer program which, when executed by the processor, implements the method of any one of claims 1-8.
- 10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by one or more processors, implements the method of any of claims 1-8.
Description
Firmware upgrading method for vehicle camera, vehicle and computer readable storage medium Technical Field The present application relates to the field of vehicle technologies, and in particular, to a firmware upgrade method for a vehicle camera, a vehicle, and a computer readable storage medium. Background The vehicle camera may provide a source of basic data for advanced driving assistance systems of the vehicle. The vehicle camera optimizes performance and image quality by upgrading firmware, and realizes camera function iteration. In the related art, the firmware upgrading of the vehicle camera is usually based on manual refreshing, however, the current vehicle type is various, the sensor type and the supplier of the vehicle camera are different, the variety of the firmware is various, the refreshing efficiency of the camera firmware is low, and the batch upgrading requirement of the camera is difficult to meet. Disclosure of Invention The application provides a firmware upgrading method of a vehicle camera, a vehicle and a computer readable storage medium. The embodiment of the application provides a firmware upgrading method of a vehicle camera, which comprises the following steps: responding to a firmware upgrading instruction, and acquiring deserializer identification information of the vehicle domain controller; according to the identification information of the deserializer, configuring a firmware upgrading communication link of a target camera to be upgraded; acquiring first identification information of the target camera through the firmware upgrading communication link, wherein the first identification information is used for identifying hardware information of the target camera; determining target upgrading firmware matched with the target camera from a firmware upgrading file packet obtained in advance according to the first identification information, wherein the firmware upgrading file packet comprises a plurality of upgrading firmware, and each upgrading firmware corresponds to one camera identification information; and according to the target upgrading firmware, carrying out firmware refreshing on the target camera so as to upgrade the firmware of the target camera. Therefore, according to the embodiment of the application, the first identification information capable of identifying the hardware information of the target camera is obtained, the first identification information can be compared with the camera identification information in the firmware upgrading file packet, the target upgrading firmware matched with the target camera is automatically determined, the accurate matching of the vehicle cameras with different hardware types and the corresponding upgrading firmware is realized, the target upgrading firmware is transmitted to the target camera for refreshing through the matched communication link, the camera model and the matching firmware are not required to be identified manually, the stability and the reliability of upgrading the firmware of the vehicle camera are ensured, the firmware upgrading efficiency is improved, and the batch upgrading requirement of the cameras is further met. In some embodiments, the configuring the firmware upgrade communication link of the target camera to be upgraded according to the deserializer identification information includes: Determining a data transmission protocol of the firmware upgrading communication link according to the deserializer identification information; And configuring the firmware upgrading communication link according to the data transmission protocol. Thus, the data transmission protocol of the firmware upgrading communication link is determined according to the identification information of the deserializer, and the firmware upgrading communication link is configured according to the data transmission protocol. In this way, according to the identification information of the deserializers, the data transmission protocols corresponding to the deserializers of different manufacturers and different models can be automatically analyzed, and further, the firmware upgrading communication link is configured according to the data transmission protocols, and the link configuration logic does not need to be designed for each deserializer independently, so that the firmware upgrading efficiency is improved, the universality of firmware upgrading is improved, and the stability and the reliability of hardware information reading and firmware file transmission are ensured. In some embodiments, said configuring said firmware upgrade communication link according to said data transfer protocol comprises: And configuring an interface of the firmware upgrading communication link according to the data transmission protocol, and calibrating the firmware upgrading communication link. Thus, the interface of the firmware upgrade communication link is configured and calibrated according to the data transmission protocol. Therefore, the accurate adap