CN115437663A - Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle - Google Patents

Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle Download PDF

Info

Publication number
CN115437663A
CN115437663A CN202210655206.2A CN202210655206A CN115437663A CN 115437663 A CN115437663 A CN 115437663A CN 202210655206 A CN202210655206 A CN 202210655206A CN 115437663 A CN115437663 A CN 115437663A
Authority
CN
China
Prior art keywords
upgrade
terminal
failure
strategy
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210655206.2A
Other languages
Chinese (zh)
Inventor
杨明月
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Rockwell Technology Co Ltd
Original Assignee
Beijing Rockwell Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Rockwell Technology Co Ltd filed Critical Beijing Rockwell Technology Co Ltd
Priority to CN202210655206.2A priority Critical patent/CN115437663A/en
Publication of CN115437663A publication Critical patent/CN115437663A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Abstract

The disclosure provides an upgrade strategy updating method and device, electronic equipment, a storage medium and a vehicle, and relates to the technical field of data processing. The updating method of the upgrading strategy comprises the following steps: the terminal responds to the upgrade failure and determines the marked data corresponding to the reason of the upgrade failure; sending the marked data to a cloud server so that the cloud server updates an upgrading strategy according to the marked data based on a preset updating strategy; and the terminal receives the updated upgrading strategy fed back by the cloud server. According to the upgrading strategy updating method, the terminal which fails in upgrading can automatically analyze the failure reason and report the failure reason to the cloud server, the cloud server automatically matches the corresponding upgrading strategy configuration, the problem that in the related technology, manual analysis is needed and the upgrading strategy configuration needs to be matched is solved, and the efficiency and the matching accuracy of the terminal which fails in upgrading are improved.

Description

Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to an upgrade policy updating method and apparatus, an electronic device, a storage medium, and a vehicle.
Background
In recent years, OTA (Over The Air Technology) is a remote upgrading Technology, and provides technical support for upgrading software versions of terminals.
In the related technology, when the terminal fails to be upgraded, background staff is often required to screen out the part related to the OTA upgrade from a large amount of logs reported by the terminal, and the reason of the upgrade failure is analyzed by combining context codes, so that the processing procedure is complicated, and the efficiency is low.
Disclosure of Invention
The disclosure provides an upgrade strategy updating method, an upgrade strategy updating device, electronic equipment and a storage medium.
According to a first aspect of the present disclosure, there is provided an upgrade policy updating method, including: responding to the upgrade failure of the terminal, and determining the marked data corresponding to the reason of the upgrade failure; sending the marked data to a cloud server so that the cloud server updates an upgrading strategy according to the marked data based on a preset updating strategy; and receiving an updated upgrading strategy fed back by the cloud server.
In some embodiments of the present disclosure, in response to a terminal upgrade failure, determining flag data corresponding to a reason for the upgrade failure includes: responding to the upgrade failure of the terminal, and analyzing the reason of the upgrade failure; and searching the marked data corresponding to the upgrade failure reason according to the upgrade failure reason.
In some embodiments of the present disclosure, sending the marker data to the cloud server comprises: filling the tag data into the reported information; and sending the reported information to a cloud server so that the cloud server updates the upgrading strategy according to the marked data.
In some embodiments of the present disclosure, populating the reporting information with the tag data includes: adding a first field in the reported information; and writing the marking data into the first field, wherein the reported data further comprises a terminal identifier and a control module identifier of failed upgrade in the terminal.
According to a second aspect of the present disclosure, there is provided an upgrade policy updating method, which is applied to a cloud server, and includes: receiving label data corresponding to the reason of the upgrade failure of the terminal; updating the upgrading strategy according to the marking data based on a preset updating strategy; and sending the updated upgrading strategy to the terminal.
In some embodiments of the present disclosure, receiving tag data corresponding to a reason for failure in upgrading of a terminal includes: receiving reported information sent by a terminal; the method further comprises the following steps: and analyzing the reported information to obtain a first field, and extracting the marking data from the first field.
In some embodiments of the present disclosure, parsing the report information includes: and acquiring a terminal identifier in the reported information and a control module identifier of failed upgrade in the terminal.
In some embodiments of the present disclosure, updating the upgrade policy according to the tag data based on the preset update policy includes: and configuring an upgrading strategy for the terminal according to the marking data based on the terminal identification and the control module identification failed in the terminal, wherein the upgrading strategy is used for upgrading all the control modules failed in the terminal again.
In some embodiments of the present disclosure, configuring the upgrade policy for the terminal includes: if the upgrade failure reasons of all the control modules with the upgrade failure in the terminal are errors of the differential upgrade package, configuring the upgrade strategy into full upgrade; if the upgrade failure reason of the first part of control modules which fail to be upgraded in the terminal is irrelevant to the differential upgrade package, the upgrade strategy is configured to carry out differential upgrade on the first part of control modules which fail to be upgraded, and carry out full upgrade on the rest of control modules which fail to be upgraded.
According to a third aspect of the present disclosure, there is provided an upgrade policy updating apparatus arranged at a terminal controller, the apparatus including: the corresponding module for the failure of the upgrade result responds to the upgrade failure of the terminal and determines the marked data corresponding to the reason of the upgrade failure; the sending module is used for sending the marked data to the cloud server so that the cloud server updates the upgrading strategy according to the marked data based on a preset updating strategy; and the import module is used for receiving the updated upgrading strategy fed back by the cloud server.
According to a fourth aspect of the present disclosure, there is provided an upgrade policy updating apparatus, disposed at a cloud server, the apparatus including: the receiving module is used for receiving the marking data corresponding to the reason of the upgrade failure of the terminal; the updating module is used for updating the upgrading strategy according to the marked data based on a preset updating strategy; and the sending module is used for sending the updated upgrading strategy to the terminal.
According to a fifth aspect of the present disclosure, there is provided an electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first or second aspect.
According to a sixth aspect of the present disclosure, there is provided a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of the aforementioned first or second aspect.
According to a seventh aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a method as in the preceding first or second aspect.
According to an eighth aspect of the present disclosure, there is provided a vehicle comprising the apparatus of the aforementioned third aspect.
According to the method and the device for updating the upgrading strategy, the electronic equipment, the storage medium and the vehicle, the marked data corresponding to the reason of upgrading failure is determined by responding to the upgrading failure of the terminal; sending the marked data to a cloud server so that the cloud server updates an upgrading strategy according to the marked data based on a preset updating strategy; and receiving an updated upgrading strategy fed back by the cloud server. The terminal which fails in upgrading can automatically analyze the failure reason and report the failure reason to the cloud server, and the cloud server automatically matches the corresponding upgrading strategy configuration, so that the problem that manual analysis and matching of the upgrading strategy configuration are needed in the prior art is solved, and the efficiency and matching accuracy of re-matching of the upgrading strategy configuration on the terminal which fails in upgrading are improved.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present application, nor are they intended to limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a schematic flowchart of an update policy updating method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an update policy updating method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of an update policy updating method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of an update policy updating method according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an upgrade policy updating apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an upgrade policy updating apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic block diagram of an example electronic device 700 provided by embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
A text generation method, an apparatus, an electronic device, and a storage medium of the embodiments of the present disclosure are described below with reference to the drawings.
In The related art, OTA (Over The Air Technology ) is widely used in an intelligent vehicle to solve The problem of upgrading an ECU or an MCU in The vehicle.
In general, the OTA is divided into full upgrade and differential upgrade modes. In the full-scale upgrading, the terminal needs to download all upgrading packages for upgrading, the consumed flow is large, the upgrading time is long, but the upgrading safety is high; the differential upgrading is also called incremental upgrading or patch upgrading, needs algorithm and tool support, only needs the terminal to download the differential upgrading package of the version to be upgraded and the existing version, and is high in upgrading efficiency.
However, when the upgrade fails, the upgrade failure result reported by the vehicle end cannot identify the upgrade type or the upgrade failure reason, and often a background worker is required to screen out a part related to the OTA upgrade from a large amount of logs reported by the vehicle end, and analyze the upgrade failure reason by combining the context code. In other words, some failure reasons of the vehicle-side full-scale upgrade or differential upgrade are general and cannot be obtained through machine screening, so that the failure reasons still need to be judged through a large amount of data pushed by the background in combination with the log, for example, for the differential upgrade, the failure reasons may be upgrade package errors, vehicle system abnormalities, upgrade version incompatibilities, system failures or human factors, and the like.
In order to solve the problems in the related art, an upgrade policy updating method, apparatus, electronic device and storage medium are provided in the present disclosure. The upgrade failure cases described in the present disclosure do not limit the upgrade types, and the differential upgrade and the upgrade failure cases thereof are taken as an embodiment in the present disclosure, which does not constitute a limitation of the present disclosure.
Fig. 1 is a schematic flowchart of an update policy updating method according to an embodiment of the present disclosure. The method can be applied to a terminal supporting OTA upgrade services, including but not limited to a vehicle, in particular a vehicle-mounted control system installed on the vehicle. In particular, the method can be applied to a controller supporting an OTA upgrade service in a terminal.
As shown in fig. 1, the method comprises the following steps:
step 101, responding to the upgrade failure of the terminal, and determining the marked data corresponding to the reason of the upgrade failure.
In an embodiment of the present disclosure, when the upgrade fails, the terminal controller may add the tag data of the upgrade result, respond to the upgrade failure result, analyze the upgrade failure result, and determine the failure reason and the tag data corresponding to the failure reason.
It is understood that the tag data corresponding to the failure reason refers to a field value that may reflect an upgrade type and/or a reason for the upgrade failure. The upgrade types comprise full upgrade and differential upgrade, and the upgrade failure reasons comprise but are not limited to upgrade package errors, vehicle machine system exceptions, upgrade version non-correspondence, system faults or human factors and the like, such as device node opening exceptions, signature information errors, timestamp errors and the like. For example, when the differential upgrade fails due to an upgrade packet error, the terminal controller may determine flag data corresponding to "differential upgrade" and "upgrade packet error" as "1".
It is understood that the tag data may be one field value or a plurality of field values, and is not limited in this disclosure.
And 102, sending the marked data to a cloud server so that the cloud server updates an upgrading strategy according to the marked data based on a preset updating strategy.
In an embodiment of the disclosure, the terminal may send the above-mentioned tag data to the cloud server in response to an upgrade failure. In the present disclosure, two ways for the terminal to send the tag data to the cloud server may be included.
In the first manner, generally, in the OTA upgrade interaction, the data reported by the terminal to the cloud generally has four fields, and in the disclosure, the terminal may add the tag data to the reported data, for example, the terminal may add a new field value to the format of the reported data to identify the upgrade type and the reason of the upgrade failure.
In a second manner, the terminal can report warning information to the cloud independently in response to the upgrade failure so as to inform the cloud server of the type and reason of the upgrade failure.
The manner in which the terminal sends the tag data to the cloud service is not limited in this disclosure.
After receiving the marked data, the cloud server can update the upgrade strategy configuration of the terminal according to the marked data based on a preset update strategy. In other words, the tag data may be used to assist the cloud server in updating the upgrade policy based on a preset update policy.
For example, the cloud server determines that the differential upgrade fails due to the error of the upgrade data packet of the terminal according to the received tag data "1", so that the upgrade strategy of the terminal is adjusted to be full upgrade.
And 103, receiving an updated upgrading strategy fed back by the cloud server.
In an embodiment of the present disclosure, the terminal may receive the updated upgrade policy from the cloud server.
In summary, according to the present disclosure, in response to a terminal upgrade failure, the terminal may determine tag data corresponding to a reason of the upgrade failure, and send the determined tag data to the cloud server, so that the cloud server updates an upgrade policy according to the tag data based on a preset update policy, and receives the updated upgrade policy, so that in an upgrade service, the terminal can automatically analyze the reason of the failure and report the reason to the cloud server, and the cloud server automatically matches the corresponding upgrade policy according to a corresponding upgrade type and the reason, thereby solving a problem that manual analysis is required and the upgrade policy configuration needs to be matched in a related art, and improving the reconfiguration and matching accuracy of the upgrade policy for the terminal with the upgrade failure.
Fig. 2 is a schematic flowchart of an update policy updating method according to an embodiment of the present disclosure. Fig. 2 is based on the embodiment shown in fig. 1, with further definitions of the steps 101, 102. In the embodiment shown in fig. 2, step 101 may specifically include step 201 and step 202, and step 102 includes step 203 and step 204.
As shown in fig. 2, the method comprises the following steps:
step 201, responding to the upgrade failure of the terminal, and analyzing the reason of the upgrade failure.
In an embodiment of the present disclosure, the terminal controller may have an upgrade failure reason analysis capability, and the terminal responds to a failure result of its own differential upgrade and analyzes the differential upgrade failure result.
Step 202, according to the reason of the upgrade failure, the marked data corresponding to the reason of the upgrade failure is searched.
In an embodiment of the disclosure, after the terminal analyzes the differential upgrade failure result, the terminal may search for the upgrade type and the tag data corresponding to the reason of the upgrade failure. For example, a pre-configured corresponding relation table is stored in a local database of the terminal, and the terminal obtains the label data corresponding to the upgrade type and/or the upgrade failure reason by querying the corresponding relation table in the local database.
Step 203, the tag data is filled into the reported information.
In one embodiment of the present disclosure, the report information is the cloud data information reported by the terminal OTA, and the specific way of adding the tag data to the report information is to add a first field to the report data information; and writing the mark data into the first field, wherein the reported data further comprises a terminal identifier and a control module identifier of failed upgrade in the terminal.
It should be understood that, in the OTA service, the terminal generally reports data information to the cloud in a fixed data format, and the data reported by the terminal to the cloud generally has four fields. It is to be understood that the first field may be one field or a plurality of fields.
In an implementation manner of the present disclosure, the terminal may further add a field for identifying the terminal ID in the format of the reported data. For example, taking a vehicle as an example, a vin code of the vehicle is a vehicle ID, when the cloud pushes a differential upgrade package to the vehicle to perform differential upgrade, if a certain controller of the vehicle fails in differential upgrade, the vehicle reports information such as the vehicle ID, a result of the upgrade failure, and which controller fails in the upgrade (for example, an identifier of the controller) to the cloud, and the cloud searches for upgrade data corresponding to the vehicle in the background.
In other words, the purpose of including the terminal identifier in the terminal reported information is to facilitate the cloud server to search for the corresponding upgrade policy, update the upgrade policy, and send the updated upgrade policy to the terminal corresponding to the upgrade policy.
In an implementation manner of the present disclosure, since there may be multiple electronic control modules in the same terminal and there may be different upgrading requirements in the multiple electronic control modules, the cloud end will formulate a corresponding upgrading policy according to the data reported by the terminal.
And step 204, sending the reported information to a cloud server so that the cloud server updates an upgrading strategy according to the marked data.
In an embodiment of the disclosure, the terminal controller sends the data information to the cloud server, so that the cloud server can update a corresponding upgrading strategy for the control module which fails in upgrading according to the marking data.
In summary, in the present disclosure, the reason for the upgrade failure is analyzed in response to the upgrade failure of the terminal, the tag data corresponding to the reason for the upgrade failure is searched according to the reason for the upgrade failure, the tag data is filled into the report information, and the report information is sent to the cloud server, so that the cloud server updates the upgrade policy according to the tag data. The terminal which fails in upgrading can automatically analyze the failure reason and report the failure reason to the cloud server, and the cloud server automatically matches the corresponding upgrading strategy configuration, so that the problem that manual analysis and matching of the upgrading strategy configuration are needed in the prior art is solved, and the efficiency and matching accuracy of re-matching of the upgrading strategy configuration on the terminal which fails in upgrading are improved.
Fig. 3 is a schematic flowchart of an update policy updating method according to an embodiment of the present disclosure. The method is applied to the cloud server.
As shown in fig. 3, the method comprises the following steps:
step 301, receiving the label data corresponding to the reason of the upgrade failure of the terminal.
In an embodiment of the disclosure, a cloud server receives marked data corresponding to an upgrade failure reason sent by a terminal.
It should be understood that the tag data corresponding to the failure reason refers to a field value for identifying the upgrade type and/or the upgrade failure reason.
The upgrade type comprises full upgrade and differential upgrade, and the upgrade failure reasons include, but are not limited to, upgrade package errors, vehicle machine system exceptions, upgrade version inconsistency, system failures or human factors, and the like, for example, device node open exceptions, signature information errors, timestamp errors, and the like. For example, when the differential upgrade fails due to an upgrade data packet error, the terminal controller may determine that the flag data corresponding to the "differential upgrade" and the "upgrade data packet error" is "1", and the cloud server may receive the flag data and determine a specific upgrade type and a cause of the upgrade failure by comparing the flag data with each other.
And step 302, updating the upgrading strategy according to the marking data based on a preset updating strategy.
In an embodiment of the present disclosure, the cloud server updates the upgrade policy for the corresponding control module in the terminal corresponding to the cloud server according to the tag data, based on a preset update policy.
It should be understood that the preset update policy is preset in the cloud server, and there are corresponding update policies for different upgrade failure reasons, that is, a new scheme for configuring a suitable update policy for the control module in the terminal that fails to upgrade according to the upgrade failure reason is provided.
For example, the cloud server determines that the differential upgrade fails due to the error of the upgrade data packet of the terminal according to the received tag data, so that the upgrade strategy of the terminal is adjusted to be full upgrade.
For another example, the cloud server determines that the differential upgrade of the terminal fails due to the vehicle-mounted machine system failure according to the received tag data, and adjusts the upgrade strategy of the terminal to be the differential upgrade, but pushes a new differential upgrade package.
And step 303, sending the updated upgrading strategy to the terminal.
In an embodiment of the present disclosure, the cloud server sends the updated upgrade policy to its corresponding terminal.
In summary, the present disclosure receives the marked data corresponding to the reason for the failed upgrade of the terminal; updating the upgrading strategy according to the marking data based on a preset updating strategy; and sending the upgrading strategy to the terminal. The terminal which fails in upgrading can automatically analyze the failure reason and report the failure reason to the cloud server, and the cloud server automatically matches the corresponding upgrading strategy configuration, so that the problems that manual analysis is needed and the upgrading strategy configuration needs to be matched in the prior art are solved, and the efficiency and the matching accuracy of re-matching the upgrading strategy configuration for the terminal which fails in upgrading are improved.
Fig. 4 is a schematic flowchart of an update policy updating method according to an embodiment of the present disclosure. Fig. 4 is based on the embodiment shown in fig. 3, further defining the steps 301, 302. In the embodiment shown in fig. 4, step 301 may specifically include step 401 and step 402, and step 302 includes step 403.
As shown in fig. 4, the method comprises the following steps:
step 401, receiving the report information sent by the terminal.
In an embodiment of the present disclosure, the cloud server receives report information sent by the terminal, where the report information is data information reported to the cloud by the terminal OTA, and includes tag data corresponding to an upgrade failure reason.
Step 402, analyzing the reported information to obtain a first field, wherein the first field is filled with the tag data. The reported information also includes terminal identification and/or identification of control module in terminal which is failed to upgrade.
In some embodiments of the disclosure, after the cloud server analyzes the report information sent by the terminal, a first field may be obtained, and the tag data is filled in the first field. The cloud server can also obtain the terminal identification and/or the control module identification failed in the terminal through analysis.
And 403, configuring an upgrading strategy for the terminal according to the marked data based on the terminal identifier and the identifier of the control module which fails to be upgraded in the terminal, wherein the upgrading strategy is used for upgrading all the control modules which fail to be upgraded in the terminal again.
In an embodiment of the present disclosure, the cloud server configures, based on a preset update policy, an upgrade failure electronic control module according to the terminal identifier and the terminal, and configures an upgrade policy for the terminal according to the tag data, where the upgrade policy is used for upgrading all upgrade failure control modules in the terminal again.
In the embodiment of the present disclosure, the one upgrade failure reason matches one sub-upgrade policy, and one upgrade policy matches at least one terminal. In other words, the updating strategy of the terminal can be updated according to the respective failure reasons of a plurality of electronic control modules with failed upgrade in the same terminal, wherein the updated updating strategy can comprise configuring a full upgrade strategy for a part of the electronic control modules and configuring a differential upgrade strategy for the other part of the electronic control modules. Optionally, the updated upgrade strategy may also be an upgrade strategy according to each module, which is integrated into a whole vehicle upgrade strategy, where the range of the whole vehicle upgrade strategy is the maximum range of the upgrade strategy of each module. For example, the updating strategy for a certain terminal may be to configure a differential updating strategy for A, B, C, configure a full updating strategy for D, E, or adopt a full updating strategy for all five a-E electronic control modules.
Further, the specific update scheme of the upgrade policy configuration is as follows:
and if the upgrade failure reasons of all the control modules with the upgrade failure in the terminal are errors of the differential upgrade package, configuring the upgrade strategy into full upgrade.
If the upgrade failure reason of the control module with the first part of upgrade failure in the terminal is irrelevant to the differential upgrade package, the upgrade strategy is configured to perform differential upgrade on the control module with the first part of upgrade failure, and perform full upgrade on the rest control modules with the upgrade failure.
It should be understood that, for the failure reason of the electronic control module that fails to be upgraded, if the failure reason is not related to the differential upgrade policy, the differential upgrade policy is continuously pushed, and at this time, other factors may be eliminated, and the differential upgrade is performed again, so that the upgrade is successful; and if the upgrade failure reason is caused by errors of the differential upgrade package, pushing a full-scale upgrade strategy.
For example, the reason for the failure of the differential upgrade obtained by the analysis is disconnection of the terminal network, and at this time, the differential upgrade strategy can still be adopted.
In an embodiment of the present disclosure, the cloud server updates the upgrade policy and sends the upgrade policy to the corresponding terminal.
In summary, the present disclosure receives the report information sent by the terminal; analyzing the reported information to obtain a first field, wherein the first field is filled with the marking data, and a terminal identifier in the reported information and a control module identifier of failed upgrade in the terminal are obtained; based on the terminal identification and the control module identification which fails to be upgraded in the terminal, configuring an upgrading strategy for the terminal according to the marked data, wherein the upgrading strategy is used for upgrading all the control modules which fail to be upgraded in the terminal again; and sending the upgrading strategy to the terminal. The terminal which fails in upgrading can automatically analyze the failure reason and report the failure reason to the cloud server, and the cloud server automatically matches the corresponding upgrading strategy configuration, so that the problems that manual analysis is needed and the upgrading strategy configuration needs to be matched in the prior art are solved, and the efficiency and the matching accuracy of re-matching the upgrading strategy configuration for the terminal which fails in upgrading are improved.
In some embodiments of the present disclosure, taking the failure of the vehicle differential upgrade as an example, the upgrade policy updating method may be performed according to the following full flow.
1. And adding mark data of the differential upgrade result in a terminal controller, wherein the controller supporting the differential upgrade of the terminal can add an upgrade result mark for distinguishing the full scale from the differential scale in the differential implementation.
2. And the terminal OTA module adds the mark content of the differential upgrade failure in the data content reported to the cloud, wherein the field record of the failure reason is added in the reported data format of the OTA service, and the mark of the differential upgrade failure can be filled in the reported data content. For example, in a general case, the vehicle-side OTA module has four fields in the data information reported to the cloud, and one field value may be added to identify the reason for the differential failure. In this way, a field is added to the original reported data, so that the matching and modification degree of the system is minimum. Of course, the terminal may send the marked content to the cloud in other manners, such as reporting warning information separately for informing the cloud of the reason for the upgrade failure, which is not limited herein. The reasons for failure may include: the execution start device node opens an exception, that is, a system function exception is detected during the running process of the program, or a signature information error, or a time stamp error, etc., which are not listed herein.
3. And the cloud OTA system automatically processes the failed differential upgrade failure information, wherein for the vehicle information failed in differential upgrade, the OTA background can perform screening and identification through the reported data, and the vehicle information failed in differential upgrade is filtered according to the identified failure reason field content. It can be understood that there is vehicle information in the four fields reported by the terminal controller, that is, the vin code of the vehicle itself, which can be understood as the vehicle ID, and after the cloud server pushes the differential upgrade task to the vehicle, if the controller supporting the differential upgrade service in the vehicle fails to be upgraded, the vehicle will report the vin code, the result of the failed upgrade, and the controller ID of the failed upgrade to the cloud.
4. The cloud OTA system automatically generates vehicle processing strategy configuration of failure differential upgrading, wherein the cloud OTA analyzes specific controller information of failure according to the identified differential upgrading vehicle information, and then generates strategy configuration for performing full upgrading on the controller in the background. For example, if the reason for the failure of the upgrade is that the base version of the vehicle is inconsistent with the version stored in the cloud, the cloud will not push the differential upgrade package to the vehicle for differential upgrade, but update the differential upgrade package to the full upgrade policy, and push the full upgrade package. For another example, if the upgrade data packet has no problem and the reason for the upgrade failure is that a certain module is abnormal in the operation process of the vehicle end, the cloud end may still adopt a differential upgrade strategy to push a new differential upgrade data packet.
5. The cloud OTA system automatically matches the vehicle information to corresponding strategy configuration, wherein the cloud OTA system matches a corresponding full-scale upgrading strategy according to the differential upgrading failure vehicle information identified by monitoring, and then automatic matching and importing of the vehicle information are carried out.
It is understood that in the present disclosure, one failure cause may match one policy, and one policy may match multiple vehicles. For example, from the perspective of the cloud server, 500 vehicles adopt the upgrade policy 1 by default, and after ten vehicles fail to be upgraded, the background process is how to reissue the data packets to the vehicle. For example, five of the vehicles may be re-matched to upgrade policy 2. For a vehicle, a failure to upgrade a vehicle may consist of multiple controller failures, for which the updated upgrade strategy may have multiple options. According to the reasons of upgrade failure of all the controllers, the whole vehicle upgrade strategy is updated, for example, five controllers should match the upgrade strategy as differential upgrade, and other controllers should match as full upgrade, and then the whole vehicle upgrade strategy is full upgrade, or the updated whole vehicle strategy may be a combination strategy, for example, the upgrade strategies of five controllers are matched as differential upgrade, and other controllers are matched as full upgrade.
Corresponding to the updating method of the upgrading strategy, the invention also provides an updating device of the upgrading strategy. Since the device embodiment of the present invention corresponds to the method embodiment described above, details that are not disclosed in the device embodiment may refer to the method embodiment described above, and are not described again in the present invention.
Fig. 5 is a schematic structural diagram of an upgrade policy updating apparatus provided in an embodiment of the present disclosure, as shown in fig. 5, the apparatus is disposed at a terminal controller, and the apparatus includes:
the upgrade result failure response module 510, in response to the terminal upgrade failure, determines the marked data corresponding to the reason of the upgrade failure.
The sending module 520 is configured to send the marked data to the cloud server, so that the cloud server updates the upgrade policy according to the marked data based on a preset update policy.
And an import module 530 configured to receive the updated upgrade policy.
In an embodiment of the present disclosure, the upgrade result failure response module 510 may be further configured to analyze the reason for the upgrade failure and search for the tag data corresponding to the reason for the upgrade failure according to the reason for the upgrade failure.
In an embodiment of the present disclosure, the sending module 520 is specifically configured to send the report information to a cloud server, so that the cloud server updates an upgrade policy according to the tag data.
Further, the sending module 520 may be further configured to fill the tag data into the report information.
Further, the step of filling the tag data into the report information includes: adding a first field in the reported information; and writing the marking data into the first field, wherein the reported data further comprises a terminal identifier and a control module identifier of failed upgrade in the terminal.
In summary, the present disclosure determines the label data corresponding to the reason of the upgrade failure by responding to the upgrade failure of the terminal; sending the marked data to a cloud server so that the cloud server updates an upgrading strategy according to the marked data based on a preset updating strategy; an upgrade policy is received. The terminal which fails in upgrading can automatically analyze the failure reason and report the failure reason to the cloud server, and the cloud server automatically matches the corresponding upgrading strategy configuration, so that the problems that manual analysis is needed and the upgrading strategy configuration needs to be matched in the prior art are solved, and the efficiency and the matching accuracy of re-matching the upgrading strategy configuration for the terminal which fails in upgrading are improved.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of the present embodiment, and the principle is the same, and the present embodiment is not limited thereto.
Fig. 6 is a schematic structural diagram of an upgrade policy updating apparatus according to an embodiment of the present disclosure, as shown in the drawing, the apparatus is disposed in a cloud server, and the apparatus includes:
the receiving module 610 is configured to receive tag data corresponding to a reason for failure of upgrading of the terminal.
And the updating module 620 is configured to update the upgrade policy according to the tag data based on a preset update policy.
The sending module 630 sends the updated upgrade policy to the terminal.
In an embodiment of the present disclosure, the receiving module 610 is specifically configured to receive, by the cloud server, the tag data corresponding to the reason for the failure to upgrade, where the tag data is sent by the terminal.
Further, the receiving module 610 is further configured to analyze the report information to obtain a first field, where the first field is filled with the tag data, and analyze and obtain a terminal identifier in the report information and a control module identifier that fails to be upgraded in the terminal.
In an embodiment of the present disclosure, the updating module 620 is specifically configured to configure an upgrading policy for the terminal according to the tag data based on the terminal identifier and the identifier of the control module that fails to be upgraded in the terminal, where the upgrading policy is used to upgrade all the control modules that fail to be upgraded in the terminal again.
Further, the preset update policy includes: and if the upgrade failure reasons of all the control modules with the upgrade failures in the terminal are errors of the differential upgrade package, configuring the upgrade strategy into full upgrade. If the upgrade failure reason of the first part of control modules which fail to be upgraded in the terminal is irrelevant to the differential upgrade package, the upgrade strategy is configured to carry out differential upgrade on the first part of control modules which fail to be upgraded, and carry out full upgrade on the rest of control modules which fail to be upgraded.
In an embodiment of the present disclosure, the sending module 630 is specifically configured to send the updated upgrade policy to a corresponding terminal of the cloud server.
In summary, the present disclosure receives the marked data corresponding to the reason for the failed upgrade of the terminal; updating the upgrading strategy according to the marking data based on a preset updating strategy; and sending the upgrading strategy to the terminal. The terminal which fails in upgrading can automatically analyze the failure reason and report the failure reason to the cloud server, and the cloud server automatically matches the corresponding upgrading strategy configuration, so that the problem that manual analysis and matching of the upgrading strategy configuration are needed in the prior art is solved, and the efficiency and matching accuracy of re-matching of the upgrading strategy configuration on the terminal which fails in upgrading are improved.
It should be noted that the foregoing explanation of the method embodiment is also applicable to the apparatus of the present embodiment, and the principle is the same, and the present embodiment is not limited thereto.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product and a vehicle according to embodiments of the present disclosure.
FIG. 7 illustrates a schematic block diagram of an example electronic device 700 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 7, the apparatus 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a ROM (Read-Only Memory) 702 or a computer program loaded from a storage unit 708 into a RAM (Random Access Memory) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. An I/O (Input/Output) interface 705 is also connected to the bus 704.
Various components in the device 700 are connected to the I/O interface 705, including: an input unit 706 such as a keyboard, a mouse, or the like; an output unit 707 such as various types of displays, speakers, and the like; a storage unit 708 such as a magnetic disk, optical disk, or the like; and a communication unit 709 such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
Computing unit 701 may be a variety of general purpose and/or special purpose processing components with processing and computing capabilities. Some examples of the computing Unit 701 include, but are not limited to, a CPU (Central Processing Unit), a GPU (graphics Processing Unit), various dedicated AI (Artificial Intelligence) computing chips, various computing Units running machine learning model algorithms, a DSP (Digital Signal Processor), and any suitable Processor, controller, microcontroller, and the like. The computing unit 701 performs the various methods and processes described above, such as the upgrade policy update method. For example, in some embodiments, the upgrade policy update method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of a computer program may be loaded onto and/or installed onto device 700 via ROM 702 and/or communications unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the methods described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the aforementioned upgrade policy update method by any other suitable means (e.g., by means of firmware).
The vehicle provided by the embodiment of the present disclosure includes the upgrade policy updating apparatus described in the above embodiment, and has the same technical details and effects as the upgrade policy updating apparatus described in the above embodiment, and details are not repeated here.
Various implementations of the systems and techniques described here above may be realized in digital electronic circuitry, integrated circuitry, FPGAs (Field Programmable Gate arrays), ASICs (Application-Specific Integrated circuits), ASSPs (Application Specific Standard products), SOCs (System On Chip, system On a Chip), CPLDs (Complex Programmable Logic devices), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a RAM, a ROM, an EPROM (Electrically Programmable Read-Only-Memory) or flash Memory, an optical fiber, a CD-ROM (Compact Disc Read-Only-Memory), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a Display device (e.g., a CRT (Cathode Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: LAN (Local Area Network), WAN (Wide Area Network), internet, and blockchain Network.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server may be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service extensibility in a traditional physical host and VPS service ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be noted that artificial intelligence is a subject for studying a computer to simulate some human thinking processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.), and includes both hardware and software technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing, and the like; the artificial intelligence software technology mainly comprises a computer vision technology, a voice recognition technology, a natural language processing technology, machine learning/deep learning, a big data processing technology, a knowledge map technology and the like.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (15)

1. An updating method of an upgrade policy is applied to a terminal, and the method comprises the following steps:
responding to the upgrade failure of the terminal, and determining the marked data corresponding to the reason of the upgrade failure;
sending the marked data to a cloud server so that the cloud server updates an upgrading strategy according to the marked data based on a preset updating strategy; and
and receiving an updated upgrading strategy fed back by the cloud server.
2. The method of claim 1, wherein the determining, in response to the terminal upgrade failure, the tag data corresponding to the reason for the upgrade failure comprises:
responding to the upgrade failure of the terminal, and analyzing the reason of the upgrade failure;
and searching the marked data corresponding to the upgrade failure reason according to the upgrade failure reason.
3. The method of claim 1, wherein sending the tagged data to a cloud server comprises:
filling the marking data into the reported information;
and sending the reported information to a cloud server so that the cloud server updates an upgrading strategy according to the marked data.
4. The method of claim 3, wherein the populating the tag data into the reported information comprises:
adding a first field in the reporting information;
writing the tag data to the first field,
the reported data also comprises a terminal identification and a control module identification of upgrading failure in the terminal.
5. An updating method of an upgrade policy is applied to a cloud server, and comprises the following steps:
receiving marked data corresponding to the reason of the upgrade failure of the terminal;
updating an upgrading strategy according to the marking data based on a preset updating strategy;
and sending the updated upgrading strategy to the terminal.
6. The method according to claim 5, wherein the receiving of the label data corresponding to the upgrade failure reason of the terminal comprises:
receiving reported information sent by the terminal;
the method further comprises the following steps:
and analyzing the reported information to obtain a first field, and extracting the marked data from the first field.
7. The method of claim 6, wherein parsing the reporting information comprises:
and acquiring a terminal identifier in the reported information and a control module identifier of failed upgrade in the terminal.
8. The method of claim 7, wherein updating the upgrade policy according to the tag data based on a preset update policy comprises:
and configuring the upgrading strategy for the terminal according to the marking data based on the terminal identification and the control module identification which fails to be upgraded in the terminal, wherein the upgrading strategy is used for upgrading all the control modules which fail to be upgraded in the terminal again.
9. The method of claim 8, wherein the configuring the upgrade policy for the terminal comprises:
if the upgrade failure reasons of all the control modules with the upgrade failure in the terminal are errors of the differential upgrade package, configuring the upgrade strategy into full upgrade;
if the upgrade failure reason of the first part of control modules which fail to be upgraded in the terminal is irrelevant to the differential upgrade package, the upgrade strategy is configured to carry out differential upgrade on the first part of control modules which fail to be upgraded, and carry out full upgrade on the rest of control modules which fail to be upgraded.
10. An upgrade policy updating apparatus, arranged at a terminal controller, comprising:
the upgrading result failure response module is used for responding to the terminal upgrading failure and determining the marking data corresponding to the reason of the upgrading failure;
the sending module is used for sending the marked data to a cloud server so that the cloud server updates an upgrading strategy according to the marked data based on a preset updating strategy;
and the import module is used for receiving the updated upgrading strategy fed back by the cloud server.
11. An upgrade policy updating apparatus, disposed on a cloud server, the apparatus comprising:
the receiving module is used for receiving the marking data corresponding to the reason of the upgrade failure of the terminal;
the updating module is used for updating the upgrading strategy according to the marking data based on a preset updating strategy;
and the sending module is used for sending the updated upgrading strategy to the terminal.
12. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4 or 5-9.
13. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-4 or 5-9.
14. A computer program product, characterized in that it comprises a computer program which, when being executed by a processor, carries out the method according to any one of claims 1-9.
15. A vehicle characterized by comprising the upgrade strategy update apparatus according to claim 10.
CN202210655206.2A 2022-06-10 2022-06-10 Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle Pending CN115437663A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210655206.2A CN115437663A (en) 2022-06-10 2022-06-10 Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210655206.2A CN115437663A (en) 2022-06-10 2022-06-10 Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle

Publications (1)

Publication Number Publication Date
CN115437663A true CN115437663A (en) 2022-12-06

Family

ID=84241228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210655206.2A Pending CN115437663A (en) 2022-06-10 2022-06-10 Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle

Country Status (1)

Country Link
CN (1) CN115437663A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627474A (en) * 2023-07-21 2023-08-22 杭州海康威视数字技术股份有限公司 Intelligent equipment intelligent safety management method, device and equipment based on reinforcement learning

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116627474A (en) * 2023-07-21 2023-08-22 杭州海康威视数字技术股份有限公司 Intelligent equipment intelligent safety management method, device and equipment based on reinforcement learning
CN116627474B (en) * 2023-07-21 2023-10-13 杭州海康威视数字技术股份有限公司 Intelligent equipment intelligent safety management method, device and equipment based on reinforcement learning

Similar Documents

Publication Publication Date Title
CN110875920A (en) Network threat analysis method and device, electronic equipment and storage medium
CN110069925B (en) Software monitoring method, system and computer readable storage medium
CN112416957B (en) Data increment updating method and device based on data model layer and computer equipment
CN111158741A (en) Method and device for monitoring change of dependency relationship of business module on third-party class library
CN115437663A (en) Upgrade strategy updating method and device, electronic equipment, storage medium and vehicle
CN113849581A (en) Alarm information processing method, device, equipment and storage medium
CN114036248A (en) High-precision map data processing method and device and electronic equipment
CN109240916A (en) Information output controlling method, device and computer readable storage medium
US20230384750A1 (en) Efficient controller data generation and extraction
CN112817935A (en) Data processing method, device and equipment based on field type and storage medium
CN111917848A (en) Data processing method based on edge computing and cloud computing cooperation and cloud server
CN115658478A (en) Test case screening method and device, electronic equipment and storage medium
CN114416895A (en) Map data processing method and device, electronic equipment and storage medium
CN115904978A (en) Redfish interface testing method, computing device and storage medium
CN115098362A (en) Page testing method and device, electronic equipment and storage medium
CN114374745A (en) Protocol format processing method and system
CN109560964B (en) Equipment compliance checking method and device
CN115361290B (en) Configuration comparison method, device, electronic equipment and storage medium
CN116401113B (en) Environment verification method, device and medium for heterogeneous many-core architecture acceleration card
CN114064830A (en) Navigation data automatic production method, system, electronic equipment and storage medium
CN114647631A (en) Log query method, device and equipment based on secure shell protocol terminal
CN114238149A (en) Batch testing method of accounting system, electronic device and storage medium
CN114547085A (en) Data processing method and device, electronic equipment and storage medium
CN117687851A (en) Server hardware testing method and device, electronic equipment and storage medium
CN114860614A (en) Data processing method, apparatus, device, medium and product

Legal Events

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