Automatic selection method, device, equipment and storage medium for upgrading mode
By automatically analyzing policy information and part information in OTA upgrades and selecting appropriate upgrade methods, the upgrade failure and operational complexity problems caused by unreasonable selection of OTA upgrade methods in the existing technology are solved, and the effect of improving upgrade efficiency and reducing labor costs is achieved.
Patent Information
- Application Number
- CN202510106564.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-23
- Publication Date
- 2025-05-06
- Estimated Expiration
- 2045-01-23
AI Technical Summary
The existing OTA upgrade method lacks multi-dimensional measurement standards, which may cause too long download time, network errors or memory-related problems during the actual upgrade process, which in turn leads to upgrade failure and increases the complexity of manual operations.
An automatic selection method for upgrading is proposed. By obtaining policy information and part information, including vehicle storage space, target version information and source version information, it analyzes the upgrade package size, network speed and installation time, and automatically selects the whole package upgrade or differential upgrade method.
By automatically selecting the appropriate upgrade method, the efficiency of parts upgrades is improved, labor costs are reduced, and operational complexity caused by upgrade failures is reduced.
Smart Images

Figure CN119536776B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication network technology, and in particular to a method, device, equipment and storage medium for automatically selecting an upgrade mode. Background Art
[0002] In recent years, the electric vehicle industry has prospered and artificial intelligence has been widely used in the automotive industry. Among these technologies, Over-The-Air technology has become the core technology of automobile manufacturers and an important manifestation of artificial intelligence. OTA technology can not only greatly improve the performance of the car, but users can make reservations or upgrade immediately through the car machine or APP, which greatly reflects the intelligence and simplicity of the upgrade process.
[0003] In OTA upgrade technology, the core is to make upgrade packages and select upgrade methods. The upgrade methods include full package upgrade and differential upgrade. The two upgrade methods are applied in different scenarios to jointly support various OTA upgrade scenarios. In the current OTA upgrade method selection method, there is no quantifiable, multi-dimensional measurement standard to comprehensively select which upgrade solution to adopt. If you only use conventional upgrade solutions without considering the network or memory conditions during the actual upgrade process, blindly selecting one of the upgrade methods may cause the download time to be too long, network errors, etc., resulting in download and installation failures, and may also cause unknown memory-related problems. At the same time, if there is no selection standard for the solution, it will also cause cumbersome processes and incorrect operations by users. Summary of the invention
[0004] The main purpose of this application is to provide a method, device, equipment and storage medium for automatically selecting an upgrade method, aiming to solve the technical problem of how to improve the efficiency of parts upgrades and reduce labor costs.
[0005] To achieve the above purpose, the present application proposes a method for automatically selecting an upgrade mode, the method comprising:
[0006] When performing an upgrade, obtaining strategy information and parts information, wherein the strategy information includes vehicle storage space, and the parts information includes target version information and source version information;
[0007] Analyze the part information and the strategy information based on the upgrade package size, network rate, and installation time to obtain a target analysis result;
[0008] According to the target analysis result, a target upgrade method is selected to package and upload the upgrade package.
[0009] In one embodiment, the step of analyzing the part information and the strategy information based on the upgrade package size, the network rate, and the installation time to obtain a target analysis result includes:
[0010] Obtaining a target version upgrade package according to the target version information, and obtaining a source version upgrade package according to the source version information;
[0011] Analyzing the target version upgrade package, the source version upgrade package, and the vehicle storage space based on the size of the upgrade package;
[0012] When the target version upgrade package is greater than or equal to the vehicle storage space, obtaining a target analysis result through a differential algorithm according to the target version upgrade package;
[0013] When the target version upgrade package is smaller than the vehicle storage space, the target analysis result is obtained according to the target version upgrade package and the source version upgrade package.
[0014] In one embodiment, when the target version upgrade package is greater than or equal to the vehicle storage space, the step of obtaining a target analysis result by using a differential algorithm according to the target version upgrade package includes:
[0015] When the target version upgrade package is greater than or equal to the vehicle storage space, obtaining a differential upgrade package based on the target version upgrade package by using a differential algorithm;
[0016] Analyzing the differential upgrade package and the target version upgrade package;
[0017] When the differential upgrade package is greater than or equal to the target version upgrade package, determining that the target analysis result is to select a whole package upgrade mode;
[0018] When the differential upgrade package is smaller than the target version upgrade package, the target analysis result is determined to select a differential upgrade mode.
[0019] In one embodiment, when the target version upgrade package is smaller than the vehicle storage space, the step of obtaining the target analysis result according to the target version upgrade package and the source version upgrade package includes:
[0020] When the target version upgrade package is smaller than the vehicle storage space, analyzing the target version upgrade package and the source version upgrade package;
[0021] When the target version upgrade package is smaller than the source version upgrade package, determining that the target analysis result is to select a whole package upgrade mode;
[0022] When the target version upgrade package is greater than or equal to the source version upgrade package, an average value of historical upgrade packages is obtained from the part information, and the target analysis result is obtained according to the average values of the target version upgrade package and the historical upgrade packages.
[0023] In one embodiment, when the target version upgrade package is greater than or equal to the source version upgrade package, the step of obtaining an average value of historical upgrade packages from the part information, and obtaining the target analysis result according to the average value of the target version upgrade package and the historical upgrade package includes:
[0024] When the target version upgrade package is greater than or equal to the source version upgrade package, obtaining an average value of historical upgrade packages from the part information;
[0025] Analyzing the average values of the target version upgrade package and the historical upgrade package;
[0026] When the target version upgrade package is greater than or equal to the average value of the historical upgrade packages, the step of obtaining a target analysis result by using a differential algorithm according to the target version upgrade package is performed;
[0027] When the target version upgrade package is smaller than the average value of the historical upgrade packages, calculating the installation time based on the network rate and the target version upgrade package;
[0028] When the installation time is less than or equal to the preset time, determining that the target analysis result is to select the whole package upgrade mode;
[0029] When the installation time is greater than a preset time, the step of obtaining a target analysis result by a differential algorithm according to the target version upgrade package is executed.
[0030] In one embodiment, the step of selecting a target upgrade method according to the target analysis result to package and upload the upgrade package includes:
[0031] When the target analysis result is to select a differential upgrade mode, the differential upgrade package is packaged and uploaded to the cloud using the differential upgrade mode and the upgrade package path is set;
[0032] When the target analysis result is to select the whole package upgrade method, the target version upgrade package is packaged and uploaded to the cloud using the whole package upgrade method, and the upgrade package path is set.
[0033] In one embodiment, the step of obtaining strategy information and parts information during the upgrade includes:
[0034] When upgrading, obtain upgrade process information and vehicle storage space status;
[0035] Get the target version information and source version information of the part upgrade;
[0036] The upgrade process information and the vehicle storage space situation are used as strategy information, and the target version information and the source version information are used as part information.
[0037] In addition, to achieve the above purpose, the present application also proposes an automatic upgrade mode selection device, the device comprising:
[0038] A configuration module, used to obtain policy information and parts information when upgrading, wherein the policy information includes vehicle storage space, and the parts information includes target version information and source version information;
[0039] An analysis module, configured to analyze the component information and the strategy information based on the upgrade package size, the network rate, and the installation time to obtain a target analysis result;
[0040] The upload module is used to select a target upgrade method according to the target analysis result to package and upload the upgrade package.
[0041] In addition, to achieve the above-mentioned purpose, the present application also proposes an automatic selection device for an upgrade method, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the automatic selection method for an upgrade method as described above.
[0042] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the automatic selection method of the upgrade method as described above are implemented.
[0043] In addition, to achieve the above-mentioned purpose, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the automatic selection method of the upgrade mode as described above are implemented.
[0044] One or more technical solutions proposed in this application have at least the following technical effects:
[0045] By automatically recommending ways to upgrade parts based on time and space dimensions and packaging and uploading upgrade packages, the current technical problems of OTA parts upgrades that fail to select appropriate upgrade methods based on actual conditions, resulting in upgrade failures and cumbersome operations, are solved. Compared with the existing technology, the efficiency of parts upgrades is improved and labor costs are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0048] Figure 1 A flowchart of the first embodiment of the automatic selection method for the application upgrade mode is provided;
[0049] Figure 2 A flowchart of the second embodiment of the automatic selection method for the upgrade mode of the present application is provided;
[0050] Figure 3 A schematic diagram of a simplified process of automatically selecting an upgrade mode according to the second embodiment of the present application;
[0051] Figure 4 A flowchart of the third embodiment of the automatic selection method for the upgrade mode of the present application is provided;
[0052] Figure 5 A flowchart of the fourth embodiment of the automatic selection method for the upgrade mode of the present application is provided;
[0053] Figure 6 This is a schematic diagram of the module structure of the automatic selection device for the upgrade mode according to the embodiment of the present application;
[0054] Figure 7 A schematic diagram of the device structure of the hardware operating environment involved in the method for automatically selecting an upgrade mode in an embodiment of the present application.
[0055] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0056] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0057] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0058] The main solution of the embodiment of the present application is: when upgrading, obtain strategy information and parts information, the strategy information includes vehicle storage space, and the parts information includes target version information and source version information; based on the upgrade package size, network rate and installation time, analyze the parts information and the strategy information to obtain a target analysis result; according to the target analysis result, select a target upgrade method to package and upload the upgrade package.
[0059] In this embodiment, for ease of description, the following description is given by automatically selecting the internal executor of the system as the execution subject in an upgrade manner.
[0060] Since the OTA parts upgrade of the existing technology does not select the appropriate upgrade method based on the actual situation, it is easy to cause upgrade failure and cumbersome operation.
[0061] This application provides a solution that automatically recommends ways to upgrade parts based on time and space dimensions and packages and uploads upgrade packages, thereby improving the efficiency of parts upgrades and reducing labor costs.
[0062] It can be seen from the above embodiments that the present application adopts a method based on time and space dimensions to automatically recommend and select upgrade parts and package and upload upgrade packages, thereby solving the technical problems that the current OTA part upgrade does not select the appropriate upgrade method based on actual conditions, resulting in upgrade failures and cumbersome operations, thereby improving the efficiency of part upgrades and reducing labor costs.
[0063] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, etc. The following takes the automatic selection of the internal executor of the system in an upgrade mode as an example to illustrate this embodiment and the following embodiments.
[0064] Based on this, the embodiment of the present application provides a method for automatically selecting an upgrade mode, referring to Figure 1 , Figure 1 This is a flowchart of the first embodiment of the method for automatically selecting an upgrade mode of the present application.
[0065] In this embodiment, the automatic upgrade mode selection method includes steps S10 to S30:
[0066] Step S10, when performing an upgrade, obtaining strategy information and parts information, the strategy information includes vehicle storage space, and the parts information includes target version information and source version information.
[0067] It should be noted that the upgrade refers to OTA parts upgrade. OTA (Over-The-Air) is a method of remotely updating device firmware or software through wireless communication technology. This technology is widely used in modern Internet of Things (IoT) devices, smartphones, automobiles, embedded systems and other fields, providing a convenient update method without physical connection; vehicle storage space is the hardware facility inside the vehicle for data storage, specifically refers to the estimated vehicle storage space; target version information includes the size of the target version upgrade package; source version information includes the size of the source version upgrade package.
[0068] Step S20, analyzing the part information and the strategy information based on the upgrade package size, network rate, and installation time to obtain a target analysis result.
[0069] It should be noted that the upgrade package size is the storage space capacity requirement of the upgrade package; the network rate is the speed at which data is transmitted in the network, which describes the amount of data transmitted through the network per unit time, and will affect the OTA upgrade rate; the installation time is the time required to install the upgrade package.
[0070] Based on the upgrade package size, network speed, and installation time, the parts information and strategy information are analyzed to determine which upgrade method can save more vehicle storage space and improve upgrade efficiency.
[0071] Step S30: Select a target upgrade method according to the target analysis result to package and upload the upgrade package.
[0072] It should be noted that the target analysis results include selecting a full package upgrade method and selecting a differential upgrade method; the target upgrade methods include a full package upgrade method and a differential upgrade method.
[0073] In addition, it should be noted that Full OTA means that when performing remote firmware upgrades, there is no need to rely on the old version of the firmware, but the basic version is directly used for upgrades; Differential Update is a software and firmware update technology that generates a smaller update package by comparing the differences between the new and old versions, thereby reducing the amount of data transmitted over the network and the storage space required.
[0074] This embodiment provides a method for automatically selecting an upgrade method, which automatically recommends a method for selecting upgrade parts based on time and space dimensions and packages and uploads the upgrade package. It solves the technical problems that the current OTA part upgrade does not select a suitable upgrade method based on actual conditions, resulting in upgrade failures and cumbersome operations. Compared with the existing technology, it improves the efficiency of part upgrades and reduces labor costs.
[0075] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , step S20 includes steps S21 to S24:
[0076] Step S21, obtaining a target version upgrade package according to the target version information, and obtaining a source version upgrade package according to the source version information.
[0077] The target version upgrade package and the source version upgrade package, as well as the sizes of the two upgrade packages, are obtained from the target version information and the source version information.
[0078] Step S22: analyzing the target version upgrade package, the source version upgrade package, and the vehicle storage space based on the size of the upgrade package.
[0079] According to the size of the upgrade package, the size of the target version upgrade package, the source version upgrade package and the vehicle storage space are analyzed and compared.
[0080] Step S23, when the target version upgrade package is greater than or equal to the vehicle storage space, a target analysis result is obtained through a differential algorithm according to the target version upgrade package.
[0081] It should be noted that the differential algorithm is an algorithm in computer science, which is used to calculate the difference between two data sets. The core idea is to identify and generate the minimum set of changes between two versions in order to efficiently update the old version to the new version.
[0082] In a feasible implementation manner, step S23 includes steps S231 to S234:
[0083] Step S231, when the target version upgrade package is greater than or equal to the vehicle storage space, a differential upgrade package is obtained based on the target version upgrade package through a differential algorithm.
[0084] It should be noted that a differential upgrade package is a differential package that contains all changes and only contains the differences between the new and old versions, rather than a complete new version.
[0085] When the target version upgrade package is greater than or equal to the vehicle storage space, a differential algorithm is used to calculate a differential upgrade package, which is used to compare the differential upgrade package with the target version upgrade package to determine which upgrade package saves more storage space.
[0086] Step S232: analyzing the differential upgrade package and the target version upgrade package.
[0087] Compare and analyze the size of the differential upgrade package with the size of the target version upgrade package.
[0088] Step S233, when the differential upgrade package is greater than or equal to the target version upgrade package, determine that the target analysis result is to select the whole package upgrade mode.
[0089] When the differential upgrade package is greater than or equal to the target version upgrade package, that is, the upgrade package after differentiation is much larger than the vehicle storage space and the differential upgrade method cannot be used for OTA upgrade, the target analysis result is determined to select the whole package upgrade method.
[0090] Step S234, when the differential upgrade package is smaller than the target version upgrade package, determining that the target analysis result is to select a differential upgrade mode.
[0091] When the differential upgrade package is smaller than the target version upgrade package, that is, upgrading using the differential upgrade package saves more space than directly using the target version upgrade package, the target analysis result is determined to select the differential upgrade mode.
[0092] The differential upgrade package is calculated through the differential algorithm and compared with the target version upgrade package to obtain the target analysis result, thus realizing the reasonable selection of the upgrade method that saves space utilization.
[0093] Step S24, when the target version upgrade package is smaller than the vehicle storage space, obtaining the target analysis result according to the target version upgrade package and the source version upgrade package.
[0094] In a feasible implementation manner, step S24 includes steps S241 to S243:
[0095] Step S241, when the target version upgrade package is smaller than the vehicle storage space, analyzing the target version upgrade package and the source version upgrade package.
[0096] When the target version upgrade package is smaller than the vehicle storage space, the size relationship between the target version upgrade package and the source version upgrade package is further analyzed.
[0097] Step S242, when the target version upgrade package is smaller than the source version upgrade package, determining that the target analysis result is to select a whole package upgrade mode.
[0098] When the target version upgrade package is smaller than the source version upgrade package, that is, after upgrading using the target version upgrade package, the vehicle storage space can be saved compared with the source version upgrade package, the target analysis result is determined to select the whole package upgrade method.
[0099] Step S243, when the target version upgrade package is greater than or equal to the source version upgrade package, obtain the average value of the historical upgrade packages from the part information, and obtain the target analysis result according to the average value of the target version upgrade package and the historical upgrade packages.
[0100] It should be noted that the historical upgrade package is an upgrade package installed during the historical upgrade of the parts that need to be upgraded.
[0101] When the target version upgrade package is greater than or equal to the source version upgrade package, the average value of the historical upgrade packages is obtained from the part information, and further according to the size of the historical upgrade packages, it is determined which upgrade method is more reasonable.
[0102] In a feasible implementation manner, step S243 includes steps S01 to S06:
[0103] Step S01, when the target version upgrade package is greater than or equal to the source version upgrade package, an average value of historical upgrade packages is obtained from the part information.
[0104] When the target version upgrade package is greater than or equal to the source version upgrade package, the historical upgrade package is obtained from the part information, and the average value of the historical upgrade packages is obtained by calculating the arithmetic mean of the sizes of all historical upgrade packages.
[0105] Step S02: analyzing the average values of the target version upgrade package and the historical upgrade package.
[0106] Compare the size of the target version upgrade package with the average of historical upgrade packages to determine which upgrade method can save more vehicle storage space.
[0107] Step S03, when the target version upgrade package is greater than or equal to the average value of the historical upgrade packages, the step of obtaining a target analysis result by using a differential algorithm according to the target version upgrade package is executed.
[0108] When the target version upgrade package is greater than or equal to the average value of the historical upgrade packages, the step of obtaining the target analysis result by using the differential algorithm according to the target version upgrade package is executed, and the differential algorithm is used to further determine which upgrade method to adopt.
[0109] Step S04, when the target version upgrade package is smaller than the average value of the historical upgrade packages, calculating the installation time based on the network rate and the target version upgrade package.
[0110] When the target version upgrade package is smaller than the average of the historical upgrade packages, the estimated installation time when the target version upgrade package is used for upgrade is calculated based on the size of the target version upgrade package and the current network rate.
[0111] Step S05, when the installation time is less than or equal to the preset time, determining that the target analysis result is to select the whole package upgrade mode.
[0112] It should be noted that the preset time is the time that takes less time when performing a parts upgrade while completing all the work of the upgrade. The data source may be historical upgrade time data or network data.
[0113] Step S06, when the installation time is greater than a preset time, executing the step of obtaining a target analysis result through a differential algorithm according to the target version upgrade package.
[0114] When the installation time is greater than the preset time, the step of obtaining the target analysis result by using the differential algorithm according to the target version upgrade package is executed, and the differential algorithm is used to further determine which upgrade method to adopt.
[0115] The step of obtaining the target analysis result through the differential algorithm realizes the further reasonable selection of the upgrade method that saves space utilization through network rate and installation time.
[0116] By further comparing the target version upgrade package and the source version upgrade package, a reasonable upgrade method that saves space utilization is achieved.
[0117] The present embodiment provides a method for automatically selecting an upgrade method, which obtains a target version upgrade package according to the target version information, and obtains a source version upgrade package according to the source version information; based on the size of the upgrade packages, the target version upgrade package, the source version upgrade package and the vehicle storage space are analyzed; when the target version upgrade package is greater than or equal to the vehicle storage space, a target analysis result is obtained according to the target version upgrade package through a differential algorithm; when the target version upgrade package is smaller than the vehicle storage space, the target analysis result is obtained according to the target version upgrade package and the source version upgrade package, thereby realizing a reasonable selection of an upgrade method that saves space utilization.
[0118] For example, in order to help understand the implementation process of the automatic selection method of the upgrade mode obtained by combining this embodiment with the above-mentioned embodiment 1, please refer to Figure 3 , Figure 3 A brief flowchart of the automatic selection method for the upgrade mode is provided, specifically:
[0119] Create a new strategy; fill in the estimated upgrade time, prerequisites, etc.; select upgrade part information; select the part source version and target version; compare the target version with the vehicle storage space; when the target version upgrade package is greater than or equal to the vehicle storage space, use the differential algorithm to create a differential package; when the differential package is greater than or equal to the target version upgrade package, select the entire package upgrade; set the installation package path; when the differential package is less than the target version upgrade package, select the differential upgrade; set the installation package path; when the target version upgrade package is less than the vehicle storage space, compare the target version upgrade package with the source version upgrade package; when the target version upgrade package is less than the source version upgrade package, select the entire package upgrade; set the installation package path; when the target version upgrade package is greater than or equal to the source version upgrade package, calculate the average value of historical upgrade packages; when the target version upgrade package is greater than or equal to the average value of historical upgrade packages, execute the steps of creating a differential package using the differential algorithm; when the target version upgrade package is less than the average value of historical upgrade packages, use the network rate to calculate the installation time; when the installation time is not within the estimated range, select the entire package upgrade; set the installation package path; when the installation time is within the estimated range, execute the steps of creating a differential package using the differential algorithm.
[0120] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 4, step S30 includes steps S31-S32:
[0121] Step S31, when the target analysis result is to select the differential upgrade method, the differential upgrade package is packaged and uploaded to the cloud using the differential upgrade method and the upgrade package path is set.
[0122] It should be noted that the upgrade package path is the storage path where the upgrade package files are stored. During the software or firmware update process, the upgrade package path is used to specify the location where the upgrade files are stored so that the system can find and apply these upgrade files.
[0123] When the target analysis result is to select the differential upgrade method, the differential upgrade method is adopted, the differential upgrade package calculated by the differential algorithm is automatically packaged and uploaded to the cloud, and the upgrade package path is set.
[0124] Step S32, when the target analysis result is to select the whole package upgrade method, the target version upgrade package is packaged and uploaded to the cloud using the whole package upgrade method and the upgrade package path is set.
[0125] When the target analysis result is to select the differential upgrade method, the whole package upgrade method is adopted to automatically package the target version upgrade package and upload it to the cloud, and set the upgrade package path.
[0126] The present embodiment provides a method for automatically selecting an upgrade method. When the target analysis result is to select a differential upgrade method, the differential upgrade package is packaged and uploaded to the cloud using the differential upgrade method, and the upgrade package path is set; when the target analysis result is to select a whole package upgrade method, the target version upgrade package is packaged and uploaded to the cloud using the whole package upgrade method, and the upgrade package path is set, thereby realizing automatic selection of the upgrade method and packaging and uploading of the upgrade package.
[0127] Based on the first embodiment of the present application, in the fourth embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. Figure 5 , step S10 includes steps S11 to S13:
[0128] Step S11, when upgrading, obtain the upgrade process information and vehicle storage space status.
[0129] It should be noted that the upgrade process information is information about a series of steps from receiving an upgrade instruction to completing the upgrade.
[0130] Step S12, obtaining target version information and source version information of the component upgrade.
[0131] It should be noted that the parts information is the information of the parts for this upgrade, including data such as version information before and after the upgrade and information of the upgrade package.
[0132] Step S13, taking the upgrade process information and the vehicle storage space situation as strategy information, and taking the target version information and the source version information as parts information.
[0133] After acquiring the upgrade process information, the vehicle storage space situation, the target version information and the source version information as the part information, the information is used as the strategy information and the part information respectively according to the type of the information.
[0134] This embodiment provides a method for automatically selecting an upgrade method. When performing an upgrade, the upgrade process information and the vehicle storage space situation are obtained; the target version information and source version information of the part upgrade are obtained; the upgrade process information and the vehicle storage space situation are used as strategy information, and the target version information and the source version information are used as part information, thereby providing a data basis for selecting an upgrade method.
[0135] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the automatic selection method for upgrading the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0136] This application also provides an automatic selection device for upgrading mode, please refer to Figure 6 , the device comprises:
[0137] Configuration module 10, used for obtaining strategy information and parts information when upgrading, wherein the strategy information includes vehicle storage space, and the parts information includes target version information and source version information;
[0138] An analysis module 20, configured to analyze the component information and the strategy information based on the upgrade package size, the network rate, and the installation time to obtain a target analysis result;
[0139] The uploading module 30 is used to select a target upgrade mode according to the target analysis result, package the upgrade package and upload it.
[0140] In one embodiment, the analysis module 20 is further used to obtain a target version upgrade package based on the target version information, and to obtain a source version upgrade package based on the source version information; based on the size of the upgrade packages, the target version upgrade package, the source version upgrade package and the vehicle storage space are analyzed; when the target version upgrade package is greater than or equal to the vehicle storage space, a target analysis result is obtained according to the target version upgrade package through a differential algorithm; when the target version upgrade package is smaller than the vehicle storage space, the target analysis result is obtained according to the target version upgrade package and the source version upgrade package.
[0141] In one embodiment, the analysis module 20 is further used to obtain a differential upgrade package based on the target version upgrade package through a differential algorithm when the target version upgrade package is greater than or equal to the vehicle storage space; analyze the differential upgrade package and the target version upgrade package; when the differential upgrade package is greater than or equal to the target version upgrade package, determine that the target analysis result is to select a whole package upgrade method; when the differential upgrade package is smaller than the target version upgrade package, determine that the target analysis result is to select a differential upgrade method.
[0142] In one embodiment, the analysis module 20 is further used to analyze the target version upgrade package and the source version upgrade package when the target version upgrade package is smaller than the vehicle storage space; when the target version upgrade package is smaller than the source version upgrade package, determine that the target analysis result is to select the whole package upgrade method; when the target version upgrade package is greater than or equal to the source version upgrade package, obtain the average value of the historical upgrade package from the parts information, and obtain the target analysis result according to the average value of the target version upgrade package and the historical upgrade package.
[0143] In one embodiment, the analysis module 20 is also used to obtain the average value of the historical upgrade packages from the part information when the target version upgrade package is greater than or equal to the source version upgrade package; analyze the average values of the target version upgrade package and the historical upgrade package; when the target version upgrade package is greater than or equal to the average value of the historical upgrade package, execute the step of obtaining the target analysis result through a differential algorithm based on the target version upgrade package; when the target version upgrade package is less than the average value of the historical upgrade package, calculate the installation time based on the network rate and the target version upgrade package; when the installation time is less than or equal to the preset time, determine that the target analysis result is to select the whole package upgrade method; when the installation time is greater than the preset time, execute the step of obtaining the target analysis result through a differential algorithm based on the target version upgrade package.
[0144] In one embodiment, the upload module 30 is also used to, when the target analysis result is to select the differential upgrade method, use the differential upgrade method to package the differential upgrade package and upload it to the cloud and set the upgrade package path; when the target analysis result is to select the whole package upgrade method, use the whole package upgrade method to package the target version upgrade package and upload it to the cloud and set the upgrade package path.
[0145] In one embodiment, the configuration module 10 is also used to obtain upgrade process information and vehicle storage space conditions when upgrading; obtain target version information and source version information of part upgrades; use the upgrade process information and the vehicle storage space conditions as strategy information, and use the target version information and the source version information as part information.
[0146] The automatic selection device for upgrading mode provided by the present application adopts the automatic selection method for upgrading mode in the above embodiment, which can solve the technical problem of how to improve the efficiency of parts upgrading and reduce labor costs. Compared with the prior art, the beneficial effects of the automatic selection device for upgrading mode provided by the present application are the same as the beneficial effects of the automatic selection method for upgrading mode provided by the above embodiment, and the other technical features in the automatic selection device for upgrading mode are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0147] The present application provides an automatic selection device for an upgrade mode, the automatic selection device for an upgrade mode comprising: at least one processor; and 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 so that the at least one processor can execute the automatic selection method for an upgrade mode in the above-mentioned embodiment 1.
[0148] Reference below Figure 7 , which shows a schematic diagram of the structure of the automatic selection device for upgrading mode suitable for implementing the embodiment of the present application. The automatic selection device for upgrading mode in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The automatic selection of devices in the upgrade mode shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0149] like Figure 7As shown, the automatic selection device for the upgrade mode may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the automatic selection device for the upgrade mode are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the automatic selection device of the upgrade mode to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows the automatic selection device of the upgrade mode with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have alternatively.
[0150] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which 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 a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0151] The automatic selection device for upgrading mode provided by the present application adopts the automatic selection method for upgrading mode in the above embodiment, which can solve the technical problem of how to improve the efficiency of parts upgrading and reduce labor costs. Compared with the prior art, the beneficial effects of the automatic selection device for upgrading mode provided by the present application are the same as the beneficial effects of the automatic selection method for upgrading mode provided by the above embodiment, and the other technical features in the automatic selection device for upgrading mode are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0152] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0153] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0154] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the automatic selection method for the upgrade mode in the above-mentioned embodiment.
[0155] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM: Random Access Memory), a read-only memory (ROM: Read Only Memory), an erasable programmable read-only memory (EPROM: Erasable Programmable Read Only Memory or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM: CD-Read Only Memory), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency: Radio Frequency), etc., or any suitable combination of the above.
[0156] The computer-readable storage medium may be included in the automatic upgrade mode selection device; or may exist independently without being assembled into the automatic upgrade mode selection device.
[0157] The above-mentioned computer-readable storage medium carries one or more programs. When the above-mentioned one or more programs are automatically selected by the upgrade mode to be executed by the device, the upgrade mode automatically selects the device: when upgrading, obtain strategy information and parts information, the strategy information includes vehicle storage space, and the parts information includes target version information and source version information; based on the upgrade package size, network rate and installation time, analyze the parts information and the strategy information to obtain the target analysis result; select the target upgrade mode according to the target analysis result to package and upload the upgrade package.
[0158] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0159] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0160] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0161] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned automatic selection method for upgrading, and can solve the technical problem of how to improve the efficiency of parts upgrading and reduce labor costs. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the automatic selection method for upgrading provided by the above-mentioned embodiment, and will not be elaborated here.
[0162] The present application also provides a computer program product, including a computer program, which implements the steps of the automatic selection method of the upgrade mode as described above when the computer program is executed by a processor.
[0163] The computer program product provided by the present application can solve the technical problem of how to improve the efficiency of parts upgrade and reduce labor costs. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the automatic selection method of the upgrade mode provided by the above embodiment, which will not be repeated here.
[0164] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A method for automatically selecting an upgrade mode, characterized in that: The method comprises: When performing an upgrade, obtaining strategy information and parts information, wherein the strategy information includes vehicle storage space, and the parts information includes target version information and source version information; Obtaining a target version upgrade package according to the target version information, and obtaining a source version upgrade package according to the source version information; Analyzing the target version upgrade package, the source version upgrade package, and the vehicle storage space based on the size of the upgrade package; When the target version upgrade package is greater than or equal to the vehicle storage space, obtaining a target analysis result through a differential algorithm according to the target version upgrade package; When the target version upgrade package is smaller than the vehicle storage space, analyzing the target version upgrade package and the source version upgrade package; When the target version upgrade package is smaller than the source version upgrade package, determining that the target analysis result is to select a whole package upgrade mode; When the target version upgrade package is greater than or equal to the source version upgrade package, obtaining an average value of historical upgrade packages from the part information; Analyzing the average values of the target version upgrade package and the historical upgrade package; When the target version upgrade package is greater than or equal to the average value of the historical upgrade packages, the step of obtaining a target analysis result by using a differential algorithm according to the target version upgrade package is performed; When the target version upgrade package is smaller than the average value of the historical upgrade packages, calculating the installation time based on the network rate and the target version upgrade package; When the installation time is less than or equal to the preset time, determining that the target analysis result is to select the whole package upgrade mode; When the installation time is greater than the preset time, executing the step of obtaining the target analysis result by using a differential algorithm according to the target version upgrade package; According to the target analysis result, a target upgrade method is selected to package and upload the upgrade package.
2. The method according to claim 1, characterized in that When the target version upgrade package is greater than or equal to the vehicle storage space, the step of obtaining a target analysis result by using a differential algorithm according to the target version upgrade package includes: When the target version upgrade package is greater than or equal to the vehicle storage space, obtaining a differential upgrade package based on the target version upgrade package by using a differential algorithm; Analyzing the differential upgrade package and the target version upgrade package; When the differential upgrade package is greater than or equal to the target version upgrade package, determining that the target analysis result is to select a whole package upgrade mode; When the differential upgrade package is smaller than the target version upgrade package, the target analysis result is determined to select a differential upgrade mode.
3. The method according to claim 1, characterized in that The step of selecting a target upgrade method according to the target analysis result to package and upload the upgrade package comprises: When the target analysis result is to select a differential upgrade mode, the differential upgrade package is packaged and uploaded to the cloud using the differential upgrade mode and the upgrade package path is set; When the target analysis result is to select the whole package upgrade method, the target version upgrade package is packaged and uploaded to the cloud using the whole package upgrade method, and the upgrade package path is set.
4. The method according to any one of claims 1 to 3, characterized in that When performing an upgrade, the steps of obtaining strategy information and parts information include: When upgrading, obtain upgrade process information and vehicle storage space status; Get the target version information and source version information of the part upgrade; The upgrade process information and the vehicle storage space situation are used as strategy information, and the target version information and the source version information are used as part information.
5. An automatic upgrade mode selection device, characterized in that: The device comprises: A configuration module, used to obtain policy information and parts information when upgrading, wherein the policy information includes vehicle storage space, and the parts information includes target version information and source version information; An analysis module, used to obtain a target version upgrade package according to the target version information, and to obtain a source version upgrade package according to the source version information; Analyzing the target version upgrade package, the source version upgrade package, and the vehicle storage space based on the size of the upgrade package; When the target version upgrade package is greater than or equal to the vehicle storage space, obtaining a target analysis result through a differential algorithm according to the target version upgrade package; When the target version upgrade package is smaller than the vehicle storage space, analyzing the target version upgrade package and the source version upgrade package; When the target version upgrade package is smaller than the source version upgrade package, determining that the target analysis result is to select a whole package upgrade mode; When the target version upgrade package is greater than or equal to the source version upgrade package, obtaining an average value of historical upgrade packages from the part information; Analyzing the average values of the target version upgrade package and the historical upgrade package; When the target version upgrade package is greater than or equal to the average value of the historical upgrade packages, the step of obtaining a target analysis result by using a differential algorithm according to the target version upgrade package is performed; When the target version upgrade package is smaller than the average value of the historical upgrade packages, calculating the installation time based on the network rate and the target version upgrade package; When the installation time is less than or equal to the preset time, determining that the target analysis result is to select the whole package upgrade mode; When the installation time is greater than the preset time, executing the step of obtaining the target analysis result by using a differential algorithm according to the target version upgrade package; The upload module is used to select a target upgrade method according to the target analysis result to package and upload the upgrade package.
6. An upgrade mode automatically selects equipment, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the automatic selection method for upgrading mode according to any one of claims 1 to 4.
7. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the automatic selection method of the upgrade mode according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Over-the-air upgrading method and device, electronic equipment and readable storage medium
CN112073994A