CN116149706A - Vehicle equipment upgrading method and device, vehicle and readable storage medium - Google Patents

Vehicle equipment upgrading method and device, vehicle and readable storage medium Download PDF

Info

Publication number
CN116149706A
CN116149706A CN202310138978.3A CN202310138978A CN116149706A CN 116149706 A CN116149706 A CN 116149706A CN 202310138978 A CN202310138978 A CN 202310138978A CN 116149706 A CN116149706 A CN 116149706A
Authority
CN
China
Prior art keywords
target
upgrade package
upgrading
updating
vehicle equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310138978.3A
Other languages
Chinese (zh)
Inventor
张景达
何天翼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority to CN202310138978.3A priority Critical patent/CN116149706A/en
Publication of CN116149706A publication Critical patent/CN116149706A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of automobiles and provides a vehicle equipment upgrading method, a device, a vehicle and a readable storage medium, wherein the vehicle equipment upgrading method is characterized in that a target upgrading packet issued by an OTA server is received and stored in an external storage unit; checking a target upgrade package; after the target upgrade package is verified successfully, starting the system upgrade of the vehicle equipment, updating and upgrading the system files of the backup partition based on the target upgrade package in the external storage unit, starting the upgraded system files from the backup partition after the updating and upgrading are completed, and determining whether the updating and upgrading are successful or not; if the updating and upgrading are successful, the upgraded system file is synchronously updated to the main partition so as to complete the system upgrading of the vehicle equipment. The method and the device can prevent the situation that the system of the vehicle equipment is failed due to abnormal interruption or error of the upgrade package in the upgrade process, thereby improving the upgrade reliability of the system.

Description

Vehicle equipment upgrading method and device, vehicle and readable storage medium
Technical Field
The invention relates to the technical field of automobiles, in particular to a method and a device for upgrading vehicle equipment, a vehicle and a readable storage medium.
Background
In the vehicle application industry, OTA (Over-the-Air Technology) is generally used for remotely upgrading equipment software and firmware on a vehicle; when the prior art is upgraded, the problem that the upgrade package is transmitted incorrectly, or the upgrade package is attacked, forged and tampered, or the wrong upgrade package is issued by human error, or the upgrade process is abnormally interrupted is caused, and the problem that the upgrade package cannot be verified in accuracy or the complete upgrade package cannot be received is caused, so that the equipment system cannot be used is caused.
At present, if the upgrade package is wrong in the process of upgrading through the upgrade package, the system after upgrading can be caused to have faults, and if abnormal interruption occurs in the upgrading process, the system can be caused to have faults.
Disclosure of Invention
The invention aims to provide a vehicle equipment upgrading method, a device, a vehicle and a readable storage medium.
In a first aspect, the present invention provides a vehicle device upgrade method applied to a vehicle device, where the vehicle device includes a main partition and a backup partition, the method includes:
receiving a target upgrade package issued by an OTA server, and storing the target upgrade package into an external storage unit;
checking the target upgrade package;
after the target upgrade package is successfully checked, starting the system upgrade of the vehicle equipment, updating and upgrading the system files of the backup partition based on the target upgrade package in the external storage unit, starting the upgraded system files from the backup partition after the updating and upgrading are completed, and determining whether the updating and upgrading are successful or not;
and if the updating and upgrading are successful, synchronously updating the upgraded system file to the main partition to finish the system upgrading of the vehicle equipment.
In an alternative embodiment, the method further comprises:
if the updating and upgrading are failed, the failure result is fed back to the OTA server, the system file of the main partition is operated, and the updated system file in the backup partition is restored to the system file.
In an optional embodiment, the determining whether the update upgrade is successful includes:
operating the upgraded system file to determine whether the system of the vehicle equipment is normally started;
when the system of the vehicle equipment is started normally, determining whether the version number of the currently running target upgrade package is the same as the version number of the target upgrade package issued;
if the updating is the same, the updating and upgrading are determined to be successful; if not, determining that the updating and upgrading are failed.
In an alternative embodiment, the target upgrade package includes configuration information, an online upgrade package, and summary information, and the verifying the target upgrade package includes:
determining whether the configuration information is correct according to the online upgrade package;
if the configuration information is correct, verifying the validity of the target upgrade package through the abstract information;
if the target upgrade package is legal, determining whether the target upgrade package is complete;
if the target upgrade package is complete, determining that the target upgrade package is successfully checked; if the target upgrade package is incomplete, determining that the verification of the target upgrade package fails.
In an alternative embodiment, the configuration information includes a target upgrade package size, a target file name, and a target version number, and the determining whether the configuration information is correct according to the online upgrade package includes:
acquiring the size of a current upgrade package, the name of a current target file and the version number of the current target corresponding to the online upgrade package;
determining whether the current upgrade package size, the current target file name and the current target version number are respectively consistent with the target upgrade package size, the target file name and the target version number;
if the configuration information is consistent, determining that the configuration information is correct; if the configuration information is inconsistent, determining that the configuration information is incorrect.
In an alternative embodiment, the determining whether the target upgrade package is complete includes:
decrypting the target upgrade package by using a prestored private key to obtain abstract information, and taking the abstract information as a first hash value, wherein the abstract information is a hash value calculated in the OTA server through a preset secure hash algorithm;
calculating a digest of the target upgrade package by the same secure hash algorithm as in the OTA server as a second hash value;
comparing the first hash value with the second hash value;
and if the first hash value is the same as the second hash value, determining that the target upgrading packet is complete.
In an alternative embodiment, before the receiving the target upgrade packet issued by the OTA server, the method further includes:
and performing bidirectional authentication on the vehicle equipment and the OTA server through a preset secure channel.
In a second aspect, the present invention provides a vehicle device upgrade apparatus applied to a vehicle device, the vehicle device including a main partition and a backup partition, the apparatus comprising:
the receiving module is used for receiving a target upgrade package issued by the OTA server and storing the target upgrade package into the external storage unit;
the verification module is used for verifying the target upgrade package;
the updating module is used for starting the system updating of the vehicle equipment after the target updating packet is successfully checked, updating and upgrading the system files of the backup partition based on the target updating packet in the external storage unit, starting the updated system files from the backup partition after the updating and upgrading are completed, and determining whether the updating and upgrading are successful or not;
and the upgrading module is used for synchronously upgrading the upgraded system file to the main partition if the upgrading is successful, so as to complete the system upgrading of the vehicle equipment.
In a third aspect, the invention provides a vehicle comprising a memory and a processor, the memory storing a computer program which, when run on the processor, performs the vehicle device upgrade method.
In a fourth aspect, the present invention provides a readable storage medium storing a computer program which, when run on a processor, performs the vehicle device upgrade method.
The embodiment of the invention has the beneficial effects that:
the embodiment of the application provides a vehicle equipment upgrading method, which is applied to vehicle equipment, wherein the vehicle equipment comprises a main partition and a backup partition, and the target upgrading package is stored in an external storage unit by receiving a target upgrading package issued by an OTA server; checking a target upgrade package; after the target upgrade package is verified successfully, starting the system upgrade of the vehicle equipment, updating and upgrading the system files of the backup partition based on the target upgrade package in the external storage unit, starting the upgraded system files from the backup partition after the updating and upgrading are completed, and determining whether the updating and upgrading are successful or not; if the updating and upgrading are successful, the upgraded system file is synchronously updated to the main partition so as to complete the system upgrading of the vehicle equipment. The method and the device can prevent the situation that the system of the vehicle equipment is failed due to abnormal interruption or error of the upgrade package in the upgrade process, thereby improving the upgrade reliability of the system.
In order to make the above objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope of the present invention. Like elements are numbered alike in the various figures.
Fig. 1 is a schematic flow chart of a method for upgrading vehicle equipment according to an embodiment of the present application;
fig. 2 is a schematic flow chart of verification in a vehicle device upgrade method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of determining update and upgrade in a vehicle device upgrade method according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of a vehicle device upgrade apparatus provided in an embodiment of the present application.
Description of main reference numerals:
10-vehicle equipment upgrade apparatus; 11-a receiving module; 12, checking a module; 13-updating the module; 14-upgrade module.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present invention, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the invention belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the invention.
Example 1
Referring to fig. 1, an embodiment of the present application proposes a vehicle device upgrade method applied to a vehicle device, where the vehicle device includes a main partition and a backup partition, and the vehicle device upgrade method includes steps S100 to S500.
Step S100: and receiving a target upgrade package issued by the OTA server, and storing the target upgrade package into an external storage unit.
In the application, before upgrading the system of the vehicle equipment, the target upgrade package issued by the OTA server is received, the target upgrade package is stored in the external storage unit, and then the received target upgrade package is checked to determine that the upgrade package received by the vehicle equipment system is legal and complete.
Before the OTA server issues the target upgrade package, the OTA server calculates the abstract of the online upgrade package to be issued through a preset secure hash algorithm to determine a corresponding hash value, and takes the hash value as abstract information of the online upgrade package. The secure hash algorithm may be MD5, SHA-1, SHA-2, ripeMD-160, etc. For example, a calculation by the SHA256 algorithm of HA-2 will result in a 256-bit hash value that will be used as digest information.
The system of the vehicle device is pre-allocated with a unique CA certificate, the vehicle device generates a public-private key pair and stores the public-private key pair, the vehicle device signs the public key through a PKI system (Public Key Infrastructure, public key system) to obtain a corresponding unique certificate, and the certificate is stored in the vehicle device and the PKI system. The OTA server communicates with the PKI system, which simultaneously transmits the certificate to the OTA server over a secure channel for encrypted use thereof. The OTA server signs the summary information of the online upgrade package through the certificate of the vehicle equipment by using an RSA asymmetric encryption algorithm, and the signed summary information can be correctly decoded only through a private key stored by the vehicle equipment.
In the application, when the OTA server issues the online upgrade package, the signed summary information, relevant configuration information of the upgrade package and the online upgrade package are packaged together to obtain a corresponding target upgrade package, and the target upgrade package is issued to the vehicle equipment, wherein the issued configuration information comprises the contents of the size, the file name, the version number and the like of the target upgrade package of the online upgrade package.
Further, the vehicle device and the OTA server will pass through a dedicated secure channel, such as a private network channel, so as to ensure that the transmission data is isolated from the outside at the physical layer of the secure channel. In addition, the vehicle equipment and the OTA server are subjected to mutual authentication, mutual authentication is performed in a mode of a secret key, a password, a random number and the like, the vehicle equipment is triggered to be upgraded through login verification of the server, and after the two sides are subjected to authentication verification, a target upgrade package is issued to the vehicle equipment. The vehicle device and the OTA server may illustratively communicate via TLS secure transfer protocol and secure transfer of data at the protocol layer.
It is understood that the external storage unit is a peripheral storage unit of the vehicle device, and the storage unit may be a Flash memory (Flash EEPROM), eMMC (Embedded Multi Media Card), or the like. After receiving the target upgrade package, the target upgrade package is stored in the external storage unit for subsequent updating and upgrading.
Step S200: and checking the target upgrade package.
After the vehicle equipment passes the security authentication and passes the security passing, the target upgrade package is received and stored in the external storage unit, and the vehicle equipment verifies the target upgrade package.
In one embodiment, the target upgrade package includes configuration information, an online upgrade package, and summary information, and as shown in fig. 2, step S200 includes sub-steps S210-S250.
Substep S210: and determining whether the configuration information is correct according to the online upgrade package.
It is understood that the configuration information includes a target upgrade package size, a target file name, a target version number, and the like. In the application, firstly, whether configuration information is correct or not is checked according to an online upgrade package in a target upgrade package, in other words, the current upgrade package size, the current target file name and the current target version number corresponding to the online upgrade package are acquired, and whether the current upgrade package size, the current target file name and the current target version number are respectively consistent with the target upgrade package size, the target file name and the target version number is determined; if the current upgrade package size, the current target file name and the current target version number are respectively consistent with the target upgrade package size, the target file name and the target version number, determining that the configuration information is correct, and executing the substep S220; if the current upgrade package size, the current target file name and the current target version number are inconsistent with the target upgrade package size, the target file name and the target version number, respectively, the configuration information is determined to be incorrect, and the substep S250 is executed: and determining that the verification of the target upgrade package fails.
Substep S220: and verifying the legitimacy of the target upgrade package through the abstract information.
In the application, the vehicle device checks the summary information signed in the target upgrade package by using the preset CA certificate through the RSA asymmetric encryption algorithm to determine whether the summary information is signed by the certificate sent by the vehicle device, in other words, whether the summary information is legal. If it is determined that the digest information is signed by a certificate transmitted from the vehicle device, the target upgrade package method is performed, and sub-step S230 is performed. If it is determined that the digest information is not signed by the certificate sent by the vehicle device, the target upgrade package is not legal, and sub-step S250 is performed.
Substep S230: and determining whether the target upgrade package is complete.
After judging the legitimacy of the target upgrade package, decrypting the signature summary information of the target upgrade package by using a key, namely a private key, prestored in the vehicle-mounted equipment to obtain the summary information, and taking the summary information as a first hash value. The summary information is a hash value obtained by calculating an online upgrade package in an OTA server through a preset secure hash algorithm, namely a first hash value. In the application, the digest of the online upgrade package in the target upgrade package is also calculated through the same secure hash algorithm as that in the OTA server and is used as a second hash value; comparing the first hash value with the second hash value; if the first hash value is the same as the second hash value, determining that the target upgrade package is complete, and executing the substep S240: and determining that the target upgrade package is successfully checked. If the first hash value is different from the second hash value, it is determined that the target upgrade package is incomplete, and sub-step S250 is performed.
In the method, the target upgrade package is checked, so that the OTA upgrade transmission data error can be prevented, the integrity of the upgrade package can be ensured, the OTA upgrade package can be prevented from being forged, and the security of the upgrade package is improved.
Step S300: after the target upgrade package is checked successfully, starting the system upgrade of the vehicle equipment, updating and upgrading the system files of the backup partition based on the target upgrade package in the external storage unit, starting the upgraded system files from the backup partition after the updating and upgrading are completed, and determining whether the updating and upgrading are successful or not.
In the application, the system file is pre-stored in the main partition of the vehicle device, the system file is an original file of the system, namely, a file corresponding to the running system version of the vehicle device, the same system file is also stored in the backup partition of the vehicle device, and the system files of the main partition and the backup partition of the vehicle device can be independently run. When the target upgrade package is verified, the vehicle equipment is in the system file stored in the main partition of the vehicle equipment, and after the target upgrade package is verified successfully, the system upgrade of the vehicle equipment is started.
When the system upgrade is started, the system files of the main partition are running, and at the moment, the system files of the backup partition are updated according to the target upgrade package in the external storage unit, so that the updated system files are obtained.
After the system files of the backup partition are updated, the system files in the backup partition are updated system files, the updated system files in the backup partition are started, whether the updating and upgrading of the backup partition are successful or not is judged according to whether the updated system files in the backup partition are successfully started, if the updating and upgrading of the system files of the backup partition are successful, the step S400 is executed, and if the updating and upgrading are failed, the step S500 is executed.
In one embodiment, as shown in FIG. 3, step S300 includes sub-steps S310-S340.
Substep S310: and running the updated system file to determine whether the system of the vehicle equipment is normally started.
It can be understood that after the updated system file is started from the backup partition, whether the current running state of the system of the vehicle device is normal is detected, so as to determine whether the system of the vehicle device normally starts the updated system file. Sub-step S320 is performed when the current operation state of the system of the vehicle device is normal, i.e., the system of the vehicle device is normally started, and sub-step S340 is performed when the current operation state of the system of the vehicle device is abnormal, i.e., the system of the vehicle device is not normally started: and determining that the update and upgrade fails.
Sub-step S320: and determining whether the version number of the currently running target upgrade package is the same as the version number of the target in the issued target upgrade package.
If the system of the vehicle device can be successfully started from the target start packet of the backup partition, then further judging whether the version number of the started target upgrade packet is consistent with the target version number in the configuration information in the target upgrade packet issued by the OTA server, namely judging whether the version number of the currently running target upgrade packet is identical with the target version number, and if so, executing the substep S330: and determining that the updating and upgrading are successful. If not, sub-step S340 is performed.
Step S400: and synchronously updating the updated system file to the main partition to finish the system updating of the vehicle equipment.
When the backup partition is updated successfully, the target upgrade package is updated and synchronized to the main partition of the vehicle equipment, so that the main partition of the vehicle equipment upgrades the pre-stored system files based on the target upgrade package to obtain corresponding upgraded system files, and the system of the vehicle equipment can directly run the upgraded system files in the main partition when being started next time, thereby completing the system upgrade of the vehicle equipment, in other words, the upgraded system files in the main partition are used as the original system files of the vehicle equipment when being updated next time.
Step S500: and feeding back a failure result to the OTA server, running the system file of the main partition, and recovering the updated system file in the backup partition into the system file.
When the backup partition fails to update this time, a failure result is fed back to the OTA server, namely, a result of upgrading failure is reported to the OTA server, and the OTA server is restarted, and a system file in a main partition of the vehicle equipment is operated, namely, the vehicle equipment system is restored to be started from the main partition. In addition, the updated system with updated backup partition is restored to the original system file in the backup partition.
In the method, the main partition and the backup partition of the vehicle equipment are used for mutual backup, an upgrade attempt can be performed through one partition during upgrade, the backup is performed to the other partition after the inspection is correct, abnormal interruption or upgrade package error in the upgrade process can be prevented, system faults of the vehicle equipment are caused, and therefore the system upgrade reliability can be improved.
Based on the vehicle equipment upgrading method of the above embodiment, fig. 4 shows a schematic structural diagram of a vehicle equipment upgrading apparatus 10 provided in the embodiment of the present application. The vehicle device upgrade apparatus 10 is applied to a vehicle device including a main zone and a backup zone, and the vehicle device upgrade apparatus 10 includes:
the receiving module 11 is configured to receive a target upgrade package sent by an OTA server, and store the target upgrade package to an external storage unit;
a verification module 12, configured to verify the target upgrade package;
the updating module 13 is configured to start a system upgrade of the vehicle device after the target upgrade package is verified successfully, update and upgrade a system file of the backup partition based on the target upgrade package in the external storage unit, start the updated system file from the backup partition after the update and upgrade are completed, and determine whether the update and upgrade are successful or not;
and the upgrading module 14 is used for synchronously upgrading the upgraded system file to the main partition if the upgrading is successful, so as to complete the system upgrading of the vehicle equipment.
The vehicle device upgrading apparatus 10 of the present embodiment is used for executing the vehicle device upgrading method of the above embodiment, and the implementation and the beneficial effects related to the above embodiment are also applicable in the present embodiment, and are not described herein again.
The embodiment of the application also provides a terminal device, which comprises a memory and a processor, wherein the memory stores a computer program, and the computer program executes the vehicle device upgrading method when running on the processor.
The embodiment of the application also provides a computer readable storage medium, which stores a computer program, and when the computer program is executed on a processor, the method for upgrading the vehicle equipment is implemented.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners as well. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in various embodiments of the invention may be integrated together to form a single part, or the modules may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention.

Claims (10)

1. A vehicle device upgrade method, applied to a vehicle device, the vehicle device including a main zone and a backup zone, the method comprising:
receiving a target upgrade package issued by an OTA server, and storing the target upgrade package into an external storage unit;
checking the target upgrade package;
after the target upgrade package is successfully checked, starting the system upgrade of the vehicle equipment, updating and upgrading the system files of the backup partition based on the target upgrade package in the external storage unit, starting the upgraded system files from the backup partition after the updating and upgrading are completed, and determining whether the updating and upgrading are successful or not;
and if the updating and upgrading are successful, synchronously updating the upgraded system file to the main partition to finish the system upgrading of the vehicle equipment.
2. The vehicle equipment upgrade method according to claim 1, characterized in that the method further comprises:
if the updating and upgrading are failed, the failure result is fed back to the OTA server, the system file of the main partition is operated, and the updated system file in the backup partition is restored to the system file.
3. The method for upgrading vehicle equipment according to claim 1, wherein the determining whether the update is successful includes:
operating the upgraded system file to determine whether the system of the vehicle equipment is normally started;
when the system of the vehicle equipment is started normally, determining whether the version number of the currently running target upgrade package is the same as the version number of the target upgrade package issued;
if the updating is the same, the updating and upgrading are determined to be successful; if not, determining that the updating and upgrading are failed.
4. The vehicle equipment upgrade method according to claim 1, wherein the target upgrade package includes configuration information, an online upgrade package, and digest information, and the verifying the target upgrade package includes:
determining whether the configuration information is correct according to the online upgrade package;
if the configuration information is correct, verifying the validity of the target upgrade package through the abstract information;
if the target upgrade package is legal, determining whether the target upgrade package is complete;
if the target upgrade package is complete, determining that the target upgrade package is successfully checked; if the target upgrade package is incomplete, determining that the verification of the target upgrade package fails.
5. The vehicle equipment upgrade method according to claim 4, wherein the configuration information includes a target upgrade package size, a target file name, and a target version number, and the determining whether the configuration information is correct according to the online upgrade package includes:
acquiring the size of a current upgrade package, the name of a current target file and the version number of the current target corresponding to the online upgrade package;
determining whether the current upgrade package size, the current target file name and the current target version number are respectively consistent with the target upgrade package size, the target file name and the target version number;
if the configuration information is consistent, determining that the configuration information is correct; if the configuration information is inconsistent, determining that the configuration information is incorrect.
6. The vehicle equipment upgrade method of claim 4, wherein the determining whether the target upgrade package is complete comprises:
decrypting the target upgrade package by using a prestored private key to obtain abstract information, and taking the abstract information as a first hash value, wherein the abstract information is a hash value calculated in the OTA server through a preset secure hash algorithm;
calculating a digest of the target upgrade package by the same secure hash algorithm as in the OTA server as a second hash value;
comparing the first hash value with the second hash value;
and if the first hash value is the same as the second hash value, determining that the target upgrading packet is complete.
7. The method for upgrading a vehicle device according to claim 1, further comprising, before the receiving the target upgrade package issued by the OTA server:
and performing bidirectional authentication on the vehicle equipment and the OTA server through a preset secure channel.
8. A vehicle device upgrade apparatus, characterized by being applied to a vehicle device including a main zone and a backup zone, the apparatus comprising:
the receiving module is used for receiving a target upgrade package issued by the OTA server and storing the target upgrade package into the external storage unit;
the verification module is used for verifying the target upgrade package;
the updating module is used for starting the system updating of the vehicle equipment after the target updating packet is successfully checked, updating and upgrading the system files of the backup partition based on the target updating packet in the external storage unit, starting the updated system files from the backup partition after the updating and upgrading are completed, and determining whether the updating and upgrading are successful or not;
and the upgrading module is used for synchronously upgrading the upgraded system file to the main partition if the upgrading is successful, so as to complete the system upgrading of the vehicle equipment.
9. A vehicle comprising a memory and a processor, the memory storing a computer program that, when run on the processor, performs the vehicle equipment upgrade method of any one of claims 1-7.
10. A readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the vehicle equipment upgrade method of any one of claims 1 to 7.
CN202310138978.3A 2023-02-20 2023-02-20 Vehicle equipment upgrading method and device, vehicle and readable storage medium Pending CN116149706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310138978.3A CN116149706A (en) 2023-02-20 2023-02-20 Vehicle equipment upgrading method and device, vehicle and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310138978.3A CN116149706A (en) 2023-02-20 2023-02-20 Vehicle equipment upgrading method and device, vehicle and readable storage medium

Publications (1)

Publication Number Publication Date
CN116149706A true CN116149706A (en) 2023-05-23

Family

ID=86350420

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310138978.3A Pending CN116149706A (en) 2023-02-20 2023-02-20 Vehicle equipment upgrading method and device, vehicle and readable storage medium

Country Status (1)

Country Link
CN (1) CN116149706A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909609A (en) * 2023-09-12 2023-10-20 英纳法智联科技(北京)有限公司 Software upgrading method and device of vehicle-mounted intelligent equipment and vehicle-mounted intelligent equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116909609A (en) * 2023-09-12 2023-10-20 英纳法智联科技(北京)有限公司 Software upgrading method and device of vehicle-mounted intelligent equipment and vehicle-mounted intelligent equipment
CN116909609B (en) * 2023-09-12 2023-12-22 英纳法智联科技(北京)有限公司 Software upgrading method and device of vehicle-mounted intelligent equipment and vehicle-mounted intelligent equipment

Similar Documents

Publication Publication Date Title
US10360018B2 (en) Update control apparatus, software update system, and update control method
EP2863303B1 (en) Method for confirming correction program, confirming program for confirming correction program, and information processing apparatus
US11146401B2 (en) Software authentication before software update
CN107710672B (en) Software distribution processing device, software distribution processing method, and vehicle
CN109829294B (en) Firmware verification method, system, server and electronic equipment
CN112148314B (en) Mirror image verification method, device and equipment of embedded system and storage medium
CN116149706A (en) Vehicle equipment upgrading method and device, vehicle and readable storage medium
CN111177709A (en) Execution method and device of terminal trusted component and computer equipment
CN110532777B (en) Secure start system and method, terminal equipment and core system thereof
US11620385B2 (en) Vehicle control device, vehicle control device start-up method, and recording medium
CN110086623B (en) Firmware anti-counterfeiting method based on safety element and safety element
CN116707758A (en) Authentication method, equipment and server of trusted computing equipment
CN116561734A (en) Verification method, verification device, computer and computer configuration system
CN116775145A (en) Method, device, equipment and storage medium for starting and recovering server
CN107704756B (en) Security verification method and system before system upgrade
CN115828273B (en) Vehicle safety starting method and device, electronic control unit and storage medium
US20230114009A1 (en) Information Processing Apparatus and Program Starting Method
CN113495729A (en) Software upgrading method and device
CN116827693B (en) Method and system for carrying out off-line OTA on two-wheel vehicle based on can bus
CN118395510A (en) Upgrading method and device of vehicle-mounted display screen, electronic equipment and storage medium
US20230214491A1 (en) Firmware verification system and firmware verification method
CN114116299A (en) Laser radar, starting system of laser radar and multiple starting method of laser radar
CN115357293A (en) Method for upgrading signed firmware, electronic device and storage medium
CN117519812A (en) Software starting method, controller, vehicle and storage medium
CN116955029A (en) Chip testing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination