Software version processing method and device, electronic equipment and storage medium

By obtaining the first version packages of multiple software versions and selecting the target software version for upgrade according to user needs, the problem in the existing technology that vehicle software updates cannot meet individual needs and the version acquisition efficiency is low is solved, and an efficient and safe solution is achieved. Vehicle software management.

CN118550575APending Publication Date: 2024-08-27BEIJING CO WHEELS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310198310.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

When existing vehicle software is updated through OTA technology, it cannot meet the personalized needs of different users, and the version acquisition efficiency is low, resulting in increased management and maintenance complexity.

Method used

By obtaining the first version package containing multiple software versions, using the version indication information carried in the version upgrade instruction input by the user, the target software version is determined from the multiple software versions, and the vehicle is stored and upgraded after the legality verification is passed. Improved version acquisition efficiency and personalized upgrade capabilities.

Benefits of technology

It realizes the selection of corresponding software versions for upgrade according to user needs, improves the efficiency and flexibility of version acquisition, meets personalized upgrade needs, and at the same time enhances the security and management efficiency of version upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550575A
    Figure CN118550575A
Patent Text Reader

Abstract

The invention provides a software version processing method and device, electronic equipment and a storage medium, and the method comprises the steps: receiving a version upgrading instruction input by a user, determining a target software version corresponding to version indication information from a plurality of software versions included in a first version package according to the version indication information carried in the version upgrading instruction, and sending the target software version to a server; according to the method, the target software version is adopted to upgrade the version of the vehicle, the version obtaining efficiency is improved by obtaining the first version package containing the multiple software versions, the corresponding software version is selected for upgrading based on the requirements of a user, and the personalized version upgrading requirements are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, electronic device and storage medium for processing software versions. Background Art

[0002] With the development of technology, more and more vehicles have Internet connection functions and can update vehicle software through Over-The-Air Technology (OTA). However, the same type of vehicle software will be continuously updated to produce multiple different software versions, which are managed and maintained in the cloud. When the owner performs an OTA upgrade, the latest software version will be obtained by default, which cannot meet the personalized needs of different users for vehicle software upgrades. At the same time, the efficiency of version acquisition is low. Summary of the invention

[0003] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0004] To this end, the present application proposes a software version processing method, device, electronic device and storage medium. By obtaining a first version package containing multiple software versions, the efficiency of version acquisition is improved, and the corresponding software version is selected for upgrading based on user needs, thereby meeting personalized version upgrade needs.

[0005] In one aspect, an embodiment of the present application provides a method for processing a software version, including:

[0006] Receive version upgrade instructions input by the user;

[0007] Using the version indication information carried in the version upgrade instruction, a target software version corresponding to the version indication information is determined from a plurality of software versions included in a first version package stored in the vehicle; the first version package is sent to the vehicle by the server and is stored in a target storage area of ​​the vehicle if the legitimacy verification is passed;

[0008] The vehicle is upgraded using the target software version.

[0009] Another aspect of the present application provides a method for processing a software version, including:

[0010] Obtain multiple software versions and key pairs corresponding to vehicle software upgrades;

[0011] Using the private key in the key pair to sign the multiple software versions to obtain signature data;

[0012] Packing the multiple software versions, the signature data and the public key in the key pair to obtain a first version package; wherein the public key is used to perform signature verification on the first version package;

[0013] The first version package is sent to the vehicle.

[0014] Another aspect of the present application provides a software version processing device, including:

[0015] A receiving module, used to receive a version upgrade instruction input by a user;

[0016] a determination module, configured to use the version indication information carried in the version upgrade instruction to determine a target software version corresponding to the version indication information from a plurality of software versions included in a first version package stored in the vehicle; wherein the first version package is sent to the vehicle by the server and is stored in a target storage area of ​​the vehicle if the legitimacy verification is passed;

[0017] An upgrade module is used to upgrade the vehicle using the target software version.

[0018] Another aspect of the present application provides a software version processing device, including:

[0019] An acquisition module, used to acquire multiple software versions and key pairs corresponding to vehicle software upgrades;

[0020] A signature module, used to sign the multiple software versions using the private key in the key pair to obtain signature data;

[0021] A packaging module, used to package the multiple software versions, the signature data and the public key in the key pair to obtain a first version package; wherein the public key is used to perform signature verification on the first version package;

[0022] A sending module is used to send the first version package to the vehicle.

[0023] Another aspect of the present application provides an electronic device, including:

[0024] at least one processor; and a memory in communication with the at least one processor; wherein,

[0025] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the aforementioned one aspect or the method described in the aforementioned other aspect.

[0026] Another aspect of the present application provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method described in the first aspect or the method described in the second aspect.

[0027] Another aspect of the present application provides a computer program product, including computer instructions, which, when executed by a processor, implement the method described in the first aspect or the method described in the other aspect.

[0028] Another aspect of the present application provides a vehicle, including the electronic device described in the above another aspect,

[0029] The technical solution provided by the embodiment of the present application has the following beneficial effects:

[0030] Receive a version upgrade instruction input by the user, determine a target software version corresponding to the version indication information from multiple software versions included in the first version package based on the version indication information carried in the version upgrade instruction, and use the target software version to upgrade the vehicle. By acquiring the first version package containing multiple software versions, the efficiency of version acquisition is improved, and the corresponding software version is selected for upgrade based on user needs, thereby meeting personalized version upgrade needs.

[0031] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0033] Figure 1 A flowchart of a method for processing a software version provided in an embodiment of the present application;

[0034] Figure 2 A flowchart of another software version processing method provided in an embodiment of the present application;

[0035] Figure 3 A schematic diagram of a first version package provided in an embodiment of the present application;

[0036] Figure 4 A flowchart of another software version processing method provided in an embodiment of the present application;

[0037] Figure 5 A flowchart of another software version processing method provided in an embodiment of the present application;

[0038] Figure 6A flowchart of another software version processing method provided in an embodiment of the present application;

[0039] Figure 7 A schematic diagram of the structure of a software version processing device provided in an embodiment of the present application;

[0040] Figure 8 A schematic diagram of the structure of a software version processing device provided in an embodiment of the present application;

[0041] Fig. 9 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0042] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0043] The following describes the software version processing method, device, electronic device and storage medium of the embodiments of the present application with reference to the accompanying drawings.

[0044] Figure 1 A flowchart of a method for processing a software version provided in an embodiment of the present application, wherein the executor of the embodiment of the present application is a vehicle-mounted terminal.

[0045] like Figure 1 As shown, the method comprises the following steps:

[0046] Step 101: receiving a version upgrade instruction input by a user.

[0047] The version indication information carried in the version upgrade instruction, that is, the version indication information indicates the target software version to which the user wants to upgrade, and the target software version can be any software version included in the first version package, which is the software version that meets the user's needs.

[0048] As an implementation method, the vehicle computer includes an interactive interface, which can display multiple software versions and introduction information of each software version, so that users can choose a suitable software version for vehicle upgrade according to the introduction information, and obtain version upgrade instructions when the user's update operation in the interactive interface is obtained.

[0049] Step 102: using the version indication information carried in the version upgrade instruction, determine the target software version corresponding to the version indication information from multiple software versions in the first version package.

[0050] The first version package includes multiple software versions. The first version package is sent from the server to the vehicle and is stored in the target storage area of ​​the vehicle if the legality verification passes. The implementation method of the legality verification, as an implementation method, uses signature data and a public key to perform signature verification on the first version package. If the signature verification passes, it is determined that the legality verification passes.

[0051] The first version package includes multiple software versions. Obtaining the first version package from the server means obtaining multiple software versions at the same time. When software upgrade is needed, there is no need to obtain it from the server multiple times, which improves the efficiency of version acquisition and can meet users' different version upgrade needs. Even when version rollback is needed, version rollback can be implemented based on the first version package, which increases flexibility and meets personalized needs.

[0052] Step 103: Upgrade the vehicle version using the target software version.

[0053] In an embodiment of the present application, based on the version information indicated by the version indication information, such as the version identifier, the version identifier is matched with the identifiers of multiple software versions included in the first version package to determine a target software version with identifier matching from the multiple software versions. The target software version is the software version determined based on the user's upgrade requirements. Using the target software version for version upgrade meets the user's personalized needs for vehicle upgrades.

[0054] In the software version processing method of the embodiment of the present application, a version upgrade instruction input by a user is received, and the version indication information carried in the version upgrade instruction is used to determine the target software version corresponding to the version indication information from multiple software versions in the first version package, and the target software version is used to perform a version upgrade on the vehicle. By obtaining the first version package containing multiple software versions, the efficiency of version acquisition is improved, and the corresponding software version can be selected for upgrading based on user needs, thereby meeting personalized version upgrade needs.

[0055] Based on the above embodiments, Figure 2 A flowchart of another software version processing method provided in an embodiment of the present application is shown as follows: Figure 2 As shown, the method comprises the following steps:

[0056] Step 201: receiving a version upgrade instruction input by a user.

[0057] Step 202: using the version indication information carried in the version upgrade instruction, determine the target software version corresponding to the version indication information from multiple software versions in the first version package.

[0058] The first version package includes multiple software versions, the attribute information of the scripts included in each software version, the signature data of the first version package, and the public key in the key pair, which are sent by the server to the vehicle and stored in the target storage area of ​​the vehicle after the legality verification is passed. The key pair is generated by the server, and the key pair includes a private key and a public key. The private key is in a non-public state and is used for digital signature to obtain signature data; while the public key is in a non-public state and is transmitted from the server to the vehicle end for the vehicle end to verify the signature data.

[0059] Among them, the method of legality verification is:

[0060] The signature data and the public key are used to perform signature verification on the first version package. When the signature verification passes, it is determined that the legitimacy verification passes. Specifically, the signature verification algorithm can be an MD5 algorithm, a (Digital Signature Algorithm, DSA) algorithm, an elliptic curve algorithm (Elliptic Curves Cryptography, ECC), etc., which is not limited in this embodiment.

[0061] In one implementation of the embodiment of the present application, the vehicle terminal receives a public key sent by the server, uses the public key to decrypt the signature data, obtains first summary information of multiple software versions, and uses a summary generation algorithm to generate second summary information for the contents contained in the multiple software versions, matches the first summary information and the second summary information, and when the first summary information and the second summary information match, determines that the content in the first version package has not been tampered with, that is, determines that the signature verification of the first version package has passed, thereby improving the security of subsequent use of the first version package.

[0062] The digest generation algorithm, for example, is a message digest algorithm using a cryptographic hash function (Message-Digest Algorithm, MD5), a secure hash algorithm (Secure Hash Algorithm, SHG, SHA), etc., which is not limited in this embodiment.

[0063] Furthermore, when the signature data of the first version package is verified, it is determined that the data contained in the first version package has not been tampered with, and the vehicle terminal stores the first version package in the target storage area of ​​the vehicle, wherein the target storage area can be a set storage unit of the vehicle terminal, or any storage unit. Therefore, when the vehicle needs to upgrade the vehicle software, it can directly find the corresponding software version from the target storage area without requesting the corresponding software version from the server, such as a server in the cloud, thereby improving the efficiency of version upgrade.

[0064] In the case where the legitimacy verification fails, that is, when the signature data verification of the first version package fails, the first version package is discarded. The failure of the legitimacy verification of the first version package indicates that the data in the first version package is abnormal and may have been tampered with, so the first version package is discarded, thereby improving the security of software upgrades.

[0065] Furthermore, in an implementation of an embodiment of the present application, the first version package obtained from the server is an uncompressed version package.

[0066] In another implementation of the embodiment of the present application, a second version package is obtained from the server by compressing the first version package. The second version package is decompressed to obtain the first version package. The transmission efficiency is improved by compressing the version package and then transmitting it.

[0067] Step 203: Use the target software version to perform version upgrade.

[0068] The relevant explanations in the aforementioned embodiments are also applicable to steps 201 to 203 of this embodiment and will not be repeated here.

[0069] Step 204: Acquire the vehicle control instruction sent by the control device.

[0070] In one implementation of the embodiment of the present application, the control device is a device that can remotely control the vehicle, such as a cloud server. The control instruction sent by the control device to the vehicle can be sent by the terminal to the control device and forwarded by the control device to the vehicle, that is, the terminal can control the vehicle. Among them, the terminal can be a smart phone, a smart watch, etc., which is not limited in this embodiment. The control instruction carries the indication information of the identification of the script. Based on the identification of the script indicated by the control instruction, the corresponding target script can be found, and the vehicle can be controlled based on the target script, for example, controlling the door to open, controlling the door to lock, controlling the air conditioner to turn on, etc.

[0071] Step 205 , according to the identifier of the script indicated by the control instruction, the attribute information of the script included in the current target software version of the vehicle is searched, and the attribute information of the target script is determined.

[0072] Among them, the first version package can be obtained from the server based on OTA technology. The server can be a cloud server, or a local server or server cluster, which is not limited in this embodiment. Vehicles are becoming more and more intelligent, so the vehicle software needs to be upgraded regularly to maintain the performance of the vehicle. Since the owner may not be able to upgrade the vehicle software in time, there are multiple versions of the vehicle software managed by the server. In the embodiment of the present application, by storing multiple software versions applicable to the same vehicle or the same model in a first version package, the number of first version packages that the server needs to manage and maintain is reduced. By obtaining the first version package, the vehicle can obtain multiple software versions corresponding to the vehicle, thereby improving the efficiency of version acquisition.

[0073] Each software version contains at least one script. A script is a programming language used to control software applications. Scripts are usually saved in text (such as ASCII) and are only interpreted or compiled when called. They are computer programming languages ​​created to shorten the traditional edit-compile-link-run process. The script in the vehicle refers to the textualized control logic of the remote vehicle. The attribute information of each script refers to the script identifier, the script path, and the summary information of the script. The summary information of the script is the hash function value calculated by the information digest algorithm of the script content, which is called the third summary information for the convenience of distinction. For example, a 128-bit (i.e., 16-byte) hash value (MD5 value) generated by the cryptographic hash function MD5 is used to ensure the integrity and consistency of the script content during transmission.

[0074] As an example, version 1.0.0 contains 3 scripts, see Table 1 below for details:

[0075]

[0076] As an example, Figure 3 A schematic diagram of a first version package provided in an embodiment of the present application, such as Figure 3 As shown, Figure 3 A version package is shown, namely the first version package of the present application, which includes three software versions, which are distinguished by version numbers, namely software version 1.0.0, software version 1.1.0 and software version 2.0.0, wherein different software versions include different scripts and the number of scripts. For example, if the software version currently used by the vehicle is 1.0.0, if it is determined that the script corresponding to the control instruction is identified as remoteSearchVehicle, then the script identified as remoteSearchVehicle contained in software version 1.0.0 needs to be loaded.

[0077] Among them, the script in the vehicle is a bytecode file written according to the vehicle control logic. The script in the vehicle is stored in the vehicle in the form of bytecode, wherein each script corresponds to a control logic, for example, script A corresponds to the logic for controlling vehicle unlocking; script B corresponds to the logic for controlling vehicle locking, and so on.

[0078] In the embodiment of the present application, there is an association relationship between the control instruction and the script, and the association relationship can be determined according to actual needs. For example, the control instruction indicates the identifier of the script, and the identifier of the script is used to determine the corresponding script. For example, the identifier of the script is the name of the script, that is, the control instruction and the script can use the same name. Since the vehicle stores the first version package of the software version, and the first version package contains multiple software versions, in order to realize that the vehicle can automatically match the corresponding script after receiving the control instruction, the target software version currently used by the vehicle can be determined, and then, according to the identifier of the script indicated by the control instruction, the identifier of the script contained in the attribute information of each script contained in the target software version currently used is matched to determine the target script from the scripts included in the target software version currently used, so as to realize that when the vehicle contains multiple software versions, the target script corresponding to the identifier of the script indicated by the control instruction is automatically matched, and automatic processing is realized.

[0079] Step 206, loading the path of the target script contained in the attribute information of the target script into the executor, and executing the target script under the path.

[0080] Among them, the attribute information of the target script includes the path of the target script, which indicates the path of the target script in the first version package stored in the vehicle, so that the executor can quickly load the target script under the path for execution based on the path of the target script, thereby realizing fast loading of the target script without the need for script-based identifier traversal query, thereby improving the efficiency of control instruction execution.

[0081] In the software version processing method of the embodiment of the present application, when a control instruction sent by a control device is received, based on the identification of the script indicated by the control instruction, the target software version currently used by the vehicle is searched for attribute information of each script, the attribute information includes the identification of the script, the path of the script and the third summary information of the script, and the target script corresponding to the control instruction is determined. Then, when it is determined that the target script has not been tampered with, the path of the target script is loaded into the executor, and the target script under the path is executed. The target script under the path or the file called the target script can be quickly loaded for execution, thereby realizing that the target script and the path of the target script can be automatically and quickly determined based on the identification of the script indicated by the control instruction, and the path of the target script can be loaded without traversal query, thereby improving the efficiency of control instruction execution.

[0082] Based on the above embodiments, Figure 4 A flowchart of another software version processing method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the method comprises the following steps:

[0083] Step 401: receiving a version upgrade instruction input by a user.

[0084] Step 402: using the version indication information carried in the version upgrade instruction, determine the target software version corresponding to the version indication information from multiple software versions in the first version package.

[0085] Step 403: Use the target software version to perform version upgrade.

[0086] Step 404: Acquire the vehicle control instruction sent by the control device.

[0087] Step 405 , according to the identifier of the script indicated by the control instruction, the attribute information of the script included in the current target software version of the vehicle is searched, and the attribute information of the target script is determined.

[0088] Among them, steps 401 to 405 can refer to the explanations in the aforementioned embodiments, and the principles are the same, so they will not be repeated here.

[0089] Step 406: Generate fourth summary information of the target script using a summary generation algorithm.

[0090] The attribute information of the target script includes summary information of the target script, which is referred to as third summary information for easy distinction.

[0091] As an implementation, the third summary information of the target script may be summary information of the target script generated based on a summary generation algorithm, which is referred to as the third summary information of the target script, for example, the third summary information of the script shown in Table 3. The summary generation algorithm, for example, the MD5 algorithm, the secure hash algorithm SHA, etc., are not listed here one by one.

[0092] In the embodiment of the present application, the same algorithm as the third summary information is used to generate a hash value for the target script in the current software version contained in the first version package stored in the vehicle, which is called the fourth summary information of the target script.

[0093] Step 407: Match the third digest information with the fourth digest information. If the third digest information matches the fourth digest information, it is determined that the target script has passed verification.

[0094] In the embodiment of the present application, the third summary information and the fourth summary information are matched. When the third summary information and the fourth summary information match, it is determined that the target script verification has passed, that is, it is determined that the target script has not been tampered with, thereby improving the security of using the target script.

[0095] Step 408, when the target script verification passes, the path of the target script contained in the attribute information of the target script is loaded into the executor, and the target script under the path is executed.

[0096] Among them, the attribute information of the target script includes the path of the target script, which indicates the path of the target script in the first version package stored in the vehicle, so that the executor can quickly load the target script under the path for execution based on the path of the target script, thereby realizing fast loading of the target script without the need for script-based identifier traversal query, thereby improving the efficiency of control instruction execution.

[0097] Optionally, when the third summary information and the fourth summary information do not match, it is determined that the target script has not been verified, that is, it is determined that the target script has been tampered with, and the target script is not executed.

[0098] In the software version processing method of the embodiment of the present application, when a control instruction sent by a control device is received, based on the identification of the script indicated by the control instruction, the target software version currently used by the vehicle is searched for attribute information of each script, the attribute information includes the identification of the script, the path of the script and the third summary information of the script, and the target script corresponding to the control instruction is determined. Then, when it is determined that the target script has not been tampered with, the path of the target script is loaded into the executor, and the target script under the path is executed. The target script under the path or the file called the target script can be quickly loaded for execution, thereby realizing that the target script and the path of the target script can be automatically and quickly determined based on the identification of the script indicated by the control instruction, and the path of the target script can be loaded without traversal query, thereby improving the efficiency of control instruction execution.

[0099] Based on the above embodiments, Figure 5 A flowchart of another method for processing a software version provided in an embodiment of the present application, wherein the executor of the embodiment of the present application is a server, such as a cloud server.

[0100] like Figure 5 As shown, the method comprises the following steps:

[0101] Step 501, obtaining multiple software versions and key pairs corresponding to vehicle software upgrades.

[0102] Among them, multiple software versions are not the same, and the functions and control logic implemented are also different, and the functions and control logic are implemented based on scripts. For each software version, it contains at least one script. The script is a programming language used to control software applications. The script is usually saved in text (such as ASCII) and is only interpreted or compiled when called. It is a computer programming language created to shorten the traditional edit-compile-link-run process. The script in the vehicle refers to the textualized remote vehicle control logic. Among them, the key pair is generated by the server side. The key pair contains a private key and a public key. The private key is in a non-public state and is used for digital signature to obtain signature data; the public key is in a non-public state and is used for the vehicle side to verify the signature data.

[0103] The present application is an implementation method of an embodiment. When there is an update to the script included in any software version, multiple software versions and key pairs corresponding to the vehicle software upgrade are obtained. That is to say, there is an update to the script included in at least one software version. Multiple software versions and key pairs corresponding to the vehicle software upgrade are obtained to achieve timely version updates, and then the updated versions are pushed to the vehicle end in a timely manner, thereby improving the accuracy of version updates.

[0104] Step 502: Use the private key in the key pair to sign multiple software versions to obtain signature data.

[0105] In one implementation of the embodiment of the present application, a digest generation algorithm is used to generate first digest information of multiple software versions, and then a private key is used to sign the first digest information to obtain signature data.

[0106] Step 503: Package multiple software versions, signature data, and public keys in the key pair to obtain a first version package.

[0107] In an embodiment of the present application, multiple software versions, signature data, and the public key in the key pair are packaged to obtain a first version package, wherein the public key is used to perform signature verification on the first version package. That is to say, the first version package contains multiple software versions and information about the software versions, thereby realizing unified management and maintenance of multiple software versions, reducing the complexity of separate management and maintenance of multiple versions, improving management efficiency, and reducing management costs.

[0108] Step 504: Send the first version package to the vehicle.

[0109] In one implementation of an embodiment of the present application, an uncompressed first version package is sent to a vehicle, so that multiple versions of vehicle software can be obtained in the vehicle, thereby improving the efficiency of vehicle upgrades and control command processing.

[0110] In another implementation of the embodiment of the present application, the first version package is compressed to obtain a second version package, and the second version package is sent to the vehicle. By compressing the first version package, the storage capacity is reduced, and transmission in the form of a compressed package can improve transmission efficiency.

[0111] In the software version processing method of the embodiment of the present application, multiple software versions, signature data and public keys are packaged to obtain a first version package, that is, the first version package contains multiple software versions and related information, thereby realizing unified management and maintenance of multiple software versions, reducing the complexity of separate management and maintenance of multiple versions, and improving management efficiency.

[0112] Based on the above embodiments, Figure 6 A flowchart of another software version processing method provided in an embodiment of the present application is shown as follows: Figure 6 As shown, the method comprises the following steps:

[0113] Step 601, obtaining multiple software versions and key pairs corresponding to the vehicle software upgrade, and attribute information of the scripts included in the multiple software versions.

[0114] For details, please refer to the explanations in the aforementioned embodiments. The principles are the same and will not be repeated here.

[0115] Step 602: Use a private key to sign attribute information of multiple software versions and scripts included in the multiple software versions to obtain signature data.

[0116] In one implementation of the embodiment of the present application, a summary generation algorithm is used to generate first summary information for multiple software versions and attribute information of scripts included in the multiple software versions, and the first summary information is signed using a private key in a key pair to obtain signature data.

[0117] Each software version includes at least one script, and the attribute information of each script includes the identifier of the script, the path of the script, and the third summary information of the script; wherein the path indicates the location of the corresponding script in the first version package. The third summary information is used to verify the reliability of the corresponding script.

[0118] The digest generation algorithm may be an MD5 algorithm, a secure hash algorithm SHA, etc., which are not listed here. The security of each vehicle software version in the first version package is ensured by signing the data. The specific algorithm principle can be referred to the explanation in the above embodiment, and the principle is the same, so it will not be repeated here.

[0119] Step 603: Package the multiple software versions, the attribute information of the scripts included in the multiple software versions, the signature data, and the public key in the key pair to obtain a first version package.

[0120] Step 604: Send the first version package to the vehicle.

[0121] For step 603 and step 604, please refer to the explanation in the above-mentioned embodiment for details. The principles are the same and will not be repeated here.

[0122] In the software version processing method of the embodiment of the present application, multiple software versions and attribute information of the scripts included in the multiple software versions, signature data and public keys are packaged to obtain a first version package. That is to say, the first version package contains multiple software versions and information of the software versions, thereby realizing unified management and maintenance of multiple software versions, reducing the complexity of separate management and maintenance of multiple versions, improving management efficiency and reducing management costs.

[0123] In order to implement the above embodiment, the present application also proposes a software version processing device.

[0124] Figure 7 A schematic diagram of the structure of a software version processing device provided in an embodiment of the present application.

[0125] like Figure 7 As shown, the device comprises:

[0126] The receiving module 71 is used to receive a version upgrade instruction input by a user.

[0127] The determination module 72 is used to use the version indication information carried in the version upgrade instruction to determine the target software version corresponding to the version indication information from multiple software versions included in the first version package stored in the vehicle; the first version package is sent to the vehicle by the server and stored in the target storage area of ​​the vehicle if the legitimacy verification passes.

[0128] The upgrade module 73 is used to upgrade the vehicle version using the target software version.

[0129] Further, in an implementation of the embodiment of the present application, the first version package includes signature data of the first version package and a public key in a key pair; the device also includes:

[0130] The verification module is used to perform legitimacy verification, and uses the signature data and the public key to perform signature verification on the first version package. If the signature verification passes, it is determined that the legitimacy verification passes.

[0131] Furthermore, in one implementation of the embodiment of the present application, the verification module is specifically used to:

[0132] Decrypting the signature data using the public key to obtain first summary information of the attribute information of the multiple software versions and the scripts included in the multiple software versions;

[0133] Generate second summary information using a summary generation algorithm for the multiple software versions and the attribute information of the scripts included in the multiple software versions;

[0134] matching the first summary information with the second summary information;

[0135] When the first summary information matches the second summary information, it is determined that the signature verification of the first version package is successful.

[0136] In an implementation of the embodiment of the present application, the first version package includes attribute information of the scripts included in the multiple software versions, and the device further includes:

[0137] A processing module is used to obtain a control instruction of the vehicle sent by a control device; according to the identifier of the script indicated by the control instruction, search for the attribute information of the script contained in the current target software version of the vehicle to determine the attribute information of the target script; verify the attribute information of the target script, and if the verification passes, load the path of the target script contained in the attribute information of the target script into an executor, and execute the target script under the path.

[0138] In an implementation of the embodiment of the present application, the third summary information of the target script included in the attribute information of the target script, the processing module is further used to:

[0139] Generate fourth summary information of the target script using a summary generation algorithm;

[0140] matching the third summary information with the fourth summary information;

[0141] When the third summary information matches the fourth summary information, it is determined that the target script has passed verification.

[0142] In one implementation of the embodiment of the present application, the first version package is discarded if the legitimacy verification fails.

[0143] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and will not be repeated here.

[0144] In the software version processing device of the embodiment of the present application, a first version package for vehicle software upgrade is obtained, wherein the first version package includes multiple software versions and signature data of the first version package and a public key in a key pair, and the signature data and the public key are used to perform signature verification on the first version package. When the signature verification passes, the first version package is stored in a target storage area of ​​the vehicle, and then, a version upgrade instruction input by the user is received, and the version indication information carried in the version upgrade instruction is used to determine the target software version corresponding to the version indication information from multiple software versions in the first version package, and the version upgrade is performed using the target software version. By obtaining the first version package containing multiple software versions, the efficiency of version acquisition is improved, and the corresponding software version can be selected for upgrade based on user needs, thereby meeting personalized upgrade needs, and the signature verification is performed on the version package, thereby improving the reliability of the vehicle in acquiring the software version.

[0145] In order to implement the above embodiment, the present application also proposes a software version processing device.

[0146] Figure 8 A schematic diagram of the structure of a software version processing device provided in an embodiment of the present application.

[0147] like Figure 8 As shown, the device comprises:

[0148] The acquisition module 81 is used to acquire multiple software versions and key pairs corresponding to the vehicle software upgrade.

[0149] The signature module 82 is used to use the private key in the key pair to sign the attribute information of the scripts included in the multiple software versions and the multiple first software versions to obtain signature data.

[0150] The packaging module 83 is used to package the multiple software versions, the signature data and the public key in the key pair to obtain a first version package; wherein the public key is used to perform signature verification on the first version package.

[0151] The sending module 84 is used to send the first version package to the vehicle.

[0152] Furthermore, in one implementation of the embodiment of the present application, the signature module 72 is specifically used to:

[0153] Acquire attribute information of scripts included in the multiple software versions;

[0154] The private key is used to sign the attribute information of the multiple software versions and the scripts included in the multiple software versions to obtain signature data.

[0155] In one implementation of the embodiment of the present application, the signature module 82 is specifically used to:

[0156] For the multiple software versions and the attribute information of the scripts included in the multiple software versions, a digest generation algorithm is used to generate first digest information;

[0157] The first summary information is signed using a private key in the key pair to obtain the signature data.

[0158] In one implementation of the embodiment of the present application, the attribute information of the script includes an identifier of the script, a path of the script, and third summary information of the script; wherein the path indicates the location of the script in the first version package, and the third summary information is used to verify the reliability of the script.

[0159] In one implementation of the embodiment of the present application, the acquisition module 81 is specifically used to:

[0160] In the event that a script included in any of the software versions is updated, multiple software versions and key pairs corresponding to the vehicle software upgrade are obtained.

[0161] In one implementation of the embodiment of the present application, the sending module 84 is specifically configured to:

[0162] Compressing the first version package to obtain a second version package;

[0163] The second version package is sent to the vehicle.

[0164] It should be noted that the above explanation of the method embodiment is also applicable to the device of this embodiment, and will not be repeated here.

[0165] In the software version processing device of the embodiment of the present application, multiple software versions and the attribute information, signature data and public keys of the scripts included in the multiple software versions are packaged to obtain a first version package. That is to say, the first version package contains multiple software versions and related information, thereby realizing unified management and maintenance of multiple software versions, reducing the complexity of separate management and maintenance of multiple versions, and improving management efficiency.

[0166] In order to implement the above embodiment, the present application embodiment provides an electronic device, including:

[0167] at least one processor; and a memory in communication with the at least one processor; wherein,

[0168] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the foregoing method embodiment.

[0169] In order to implement the above embodiment, the embodiment of the present application proposes a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the method described in the above method embodiment.

[0170] In order to implement the above embodiments, the embodiments of the present application provide a computer program product, including computer instructions, which implement the methods described in the above method embodiments when executed by a processor.

[0171] In order to implement the above embodiment, the present application embodiment proposes a vehicle, which includes the electronic device of the above embodiment.

[0172] Fig. 9 A structural block diagram of an electronic device provided in an embodiment of the present application. Fig. 9 The electronic device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0173] like Fig. 9 As shown, the electronic device 10 includes a processor 11, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 12 or a program loaded from a memory 16 to a random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 are also stored in the RAM 13. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0174] The following components are connected to the I / O interface 15: a memory 16 including a hard disk, etc.; and a communication part 17 including a network interface card such as a LAN (Local Area Network) card, a modem, etc., and the communication part 17 performs communication processing via a network such as the Internet; a drive 18 is also connected to the I / O interface 15 as needed.

[0175] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 17. When the computer program is executed by the processor 11, the above-mentioned functions defined in the method of the present application are executed.

[0176] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory 16 including instructions, and the instructions can be executed by the processor 11 of the electronic device 10 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0177] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0178] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0179] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0180] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0181] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0182] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0183] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0184] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for processing a software version, characterized in that: include: Receive version upgrade instructions input by the user; Using the version indication information carried in the version upgrade instruction, determine the target software version corresponding to the version indication information from multiple software versions included in a first version package stored in the vehicle; wherein the first version package is sent to the vehicle by the server and is stored in a target storage area of ​​the vehicle if the legitimacy verification is passed; The vehicle is upgraded using the target software version.

2. The method according to claim 1, characterized in that The first version package includes signature data of the first version package and a public key in a key pair; the method for legitimacy verification includes: Using the signature data and the public key, perform signature verification on the first version package; When the signature verification passes, it is determined that the legitimacy verification passes.

3. The method according to claim 2, characterized in that The using the signature data and the public key to perform signature verification on the first version package includes: Decrypting the signature data using the public key to obtain first summary information of the attribute information of the multiple software versions and the scripts included in the multiple software versions; Generate second summary information using a summary generation algorithm for the multiple software versions and the attribute information of the scripts included in the multiple software versions; matching the first summary information with the second summary information; When the first summary information matches the second summary information, it is determined that the signature verification of the first version package is successful.

4. The method according to claim 1, characterized in that The first version package includes attribute information of scripts included in the multiple software versions, and after the vehicle is upgraded using the target software version, further includes: Obtaining vehicle control instructions sent by a control device; According to the identifier of the script indicated by the control instruction, searching for the attribute information of the script included in the current target software version of the vehicle, and determining the attribute information of the target script; The attribute information of the target script is verified. If the verification passes, the path of the target script included in the attribute information of the target script is loaded into the executor, and the target script under the path is executed.

5. The method according to claim 4, characterized in that The attribute information of the target script includes third summary information of the target script, and the verifying the attribute information of the target script includes: Generate fourth summary information of the target script using a summary generation algorithm; matching the third summary information with the fourth summary information; When the third summary information matches the fourth summary information, it is determined that the target script has passed verification.

6. The method according to claim 1, characterized in that The first version package is discarded if the legitimacy verification fails.

7. A method for processing a software version, characterized in that: include: Obtain multiple software versions and key pairs corresponding to vehicle software upgrades; Using the private key in the key pair to sign the multiple software versions to obtain signature data; Packing the multiple software versions, the signature data and the public key in the key pair to obtain a first version package; wherein the public key is used to perform signature verification on the first version package; The first version package is sent to the vehicle.

8. The method according to claim 7, characterized in that The using the private key in the key pair to sign the multiple software versions to obtain signature data includes: Acquire attribute information of scripts included in the multiple software versions; The private key is used to sign the attribute information of the multiple software versions and the scripts included in the multiple software versions to obtain signature data.

9. The method according to claim 8, characterized in that The method of using the private key to sign the attribute information of the multiple software versions and the scripts included in the multiple software versions to obtain signature data includes: For the multiple software versions and the attribute information of the scripts included in the multiple software versions, a digest generation algorithm is used to generate first digest information; The first summary information is signed using the private key to obtain the signature data.

10. The method according to claim 8 or 9, characterized in that The attribute information of the script includes an identifier of the script, a path of the script and third summary information of the script; wherein the path indicates a location of the script in the first version package, and the third summary information is used to verify the reliability of the script.

11. The method according to any one of claims 7 to 9, characterized in that: The obtaining of multiple software versions and key pairs corresponding to the vehicle software upgrade includes: In the event that a script included in any of the software versions is updated, multiple software versions and key pairs corresponding to the vehicle software upgrade are obtained.

12. A software version processing device, characterized in that: include: A receiving module, used to receive a version upgrade instruction input by a user; a determination module, configured to use the version indication information carried in the version upgrade instruction to determine a target software version corresponding to the version indication information from a plurality of software versions included in a first version package stored in the vehicle; wherein the first version package is sent to the vehicle by the server and is stored in a target storage area of ​​the vehicle if the legitimacy verification is passed; An upgrade module is used to upgrade the vehicle using the target software version.

13. A software version processing device, characterized in that: include: An acquisition module, used to acquire multiple software versions and key pairs corresponding to vehicle software upgrades; A signature module, used to sign the multiple software versions using the private key in the key pair to obtain signature data; A packaging module, used to package the multiple software versions and the public key in the key pair to obtain a first version package; wherein the public key is used to perform signature verification on the first version package; A sending module is used to send the first version package to the vehicle.

14. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method of any one of claims 1-6, or execute the method of any one of claims 7-11.

15. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to enable the computer to execute the method of any one of claims 1-6, or to execute the method of any one of claims 7-11.

16. A vehicle, characterized in that: An electronic device comprising the electronic device described in claim 14.