Upgrading method and system for electronic control task of new energy vehicle, electronic equipment and medium

By cyclically placing the ECU to be upgraded into the preset upgrade slot for upgrade processing, and dynamically selecting the upgrade task in combination with the ECU upgrade conditions, the problems of long upgrade time and low resource utilization in the existing OTA upgrade plan are solved, and more efficient system resource utilization and upgrade efficiency are achieved.

CN119829083APending Publication Date: 2025-04-15NEUSOFT REACH AUTOMOBILE TECH (SHENYANG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411809018.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-15

AI Technical Summary

Technical Problem

The existing OTA upgrade plan fails to fully consider factors such as bus type, upgrade time, upgrade dependency and resource consumption between different ECUs, resulting in a long upgrade time and low system resource utilization.

Method used

By obtaining the total number of upgrades and task data of the ECU to be upgraded, setting a preset number of upgrade slots, and cycling the upgraded ECU to be upgraded into the slot for upgrade processing. The specific steps include querying the idle slot, selecting the target upgrade task, placing the task to the slot and upgrading it until the task is completed and changes to the idle slot.

Benefits of technology

By combining various ECU upgrade conditions, the upgraded ECU is dynamically selected to achieve more complete system resource utilization and upgrade efficiency improvement, which is especially suitable for the case of a large number of ECUs being upgraded simultaneously, reducing the upgrade computing power and improving the upgrade efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119829083A_ABST
    Figure CN119829083A_ABST
Patent Text Reader

Abstract

The invention provides a new energy vehicle electronic control task upgrading method and system, electronic equipment and a computer readable storage medium, firstly, the total upgrading number of to-be-upgraded ECUs and task data of all the to-be-upgraded ECUs are obtained, a preset number of upgrading slots are set according to the total upgrading number and pre-obtained vehicle computing power data, and if idle slots exist, the idle slots are updated; if yes, a target upgrading task is selected from the to-be-upgraded ECUs according to a preset ECU sorting rule, then the target upgrading task is placed in the idle slot position to form a working slot position, the target upgrading task is upgraded until the target upgrading task is upgraded, and the working slot position is changed into the idle slot position, so that the to-be-upgraded ECUs are upgraded. And when the idle slot exists, the target upgrading task is selected from the to-be-upgraded ECUs for upgrading until all the to-be-upgraded ECUs are upgraded, so that the vehicle end can dynamically select the upgraded ECUs and can automatically and dynamically arrange the upgrading task, the upgrading computing power can be reduced, and the upgrading efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of OTA upgrade of new energy vehicles, and more specifically, to a method for remotely upgrading an ECU through OTA technology. The present invention relates to an upgrade method, system, electronic equipment and medium for electronic control tasks of new energy vehicles. Background Art

[0002] With the continuous improvement of the degree of automobile electrification, the number and functions of ECUs (Electronic Control Units, also known as electronic control units, on-board computers or computer control modules) that can be upgraded via OTA (Over-the-Air, also known as online upgrade technology or remote upgrade service) installed in new energy vehicles are increasing. Remotely upgrading the firmware of these ECUs through OTA technology has become an important means to improve vehicle functions and safety. However, the existing OTA upgrade solutions are mostly serial upgrades or simple fixed-arrangement parallel upgrades, which fail to fully consider factors such as bus types, upgrade time, upgrade dependencies and resource consumption between different ECUs, resulting in long upgrade times and low system resource utilization.

[0003] Therefore, there is an urgent need for an upgrade method, system, electronic device and medium for the electronic control tasks of new energy vehicles that ensures a reasonable upgrade sequence, thereby maximizing system resource utilization and minimizing upgrade time. Summary of the invention

[0004] In view of the above problems, the purpose of the present invention is to provide a method, system, electronic device and medium for upgrading the electronic control tasks of new energy vehicles, so as to solve the technical problems that the prior art is mostly serial upgrades or simple fixed-schedule parallel upgrades, which fail to fully consider factors such as bus type, upgrade time, upgrade dependency and resource consumption between different ECUs, resulting in long upgrade time and low system resource utilization.

[0005] In a first aspect, an embodiment of the present application provides a method for upgrading an electronic control task of a new energy vehicle, the method for upgrading an electronic control task of a new energy vehicle comprising:

[0006] Obtain the total number of ECUs to be upgraded and task data of each ECU to be upgraded, and set a preset number of upgrade slots according to the total number of ECUs to be upgraded and the pre-acquired vehicle computing power data;

[0007] The ECUs to be upgraded are placed in the upgrade slots for upgrading in a loop until all the ECUs to be upgraded are upgraded, and then the loop is stopped; wherein the ECUs to be upgraded are placed in the upgrade slots for upgrading in a loop, including:

[0008] querying whether there is an idle slot in the upgrade slot at a preset time interval, and if there is an idle slot, selecting a target upgrade task from the ECUs to be upgraded according to a preset ECU sorting rule based on the task data;

[0009] The target upgrade task is placed in the idle slot to form a working slot, and the target upgrade task is upgraded until the target upgrade task is upgraded and the working slot is changed to a idle slot.

[0010] Optionally, selecting a target upgrade task from the ECUs to be upgraded based on the task data and according to a preset ECU sorting rule includes:

[0011] extracting task estimated execution time, upgraded high voltage attributes, dependency data, and bus information from the task data;

[0012] Arrange all ECUs to be upgraded in descending order according to the estimated execution time of the tasks to form a sequence to be upgraded;

[0013] In the sequence to be upgraded, it is judged from front to back whether the ECU to be upgraded fully meets the upgrade condition standard. If it fully meets the condition standard, the ECU to be upgraded is taken as the target upgrade task; if it does not fully meet the condition standard, the current ECU to be upgraded is skipped and the next ECU to be upgraded is judged.

[0014] Optionally, the upgrade condition standard includes: a high-voltage condition standard; wherein the step of judging whether the ECU to be upgraded meets the high-voltage condition standard includes:

[0015] Determine whether the upgraded high-voltage attribute of the ECU to be upgraded is consistent with the high-voltage attribute of the current upgrade environment; the upgraded high-voltage attribute includes an upper high-voltage upgrade attribute and a lower high-voltage upgrade attribute; the high-voltage attribute includes an upper high-voltage and a lower high-voltage; wherein,

[0016] If the upgraded high-voltage attribute is an upper high-voltage upgrade attribute, and the high-voltage attribute is upper high-voltage; or the upgraded high-voltage attribute is a lower high-voltage upgrade attribute, and the high-voltage attribute is lower high-voltage, then the ECU to be upgraded meets the high-voltage condition standard.

[0017] Optionally, if all the ECUs to be upgraded in the sequence to be upgraded do not meet the high-voltage condition standard, the high-voltage property of the current upgrade environment is actively changed through a preset upgrade environment change program.

[0018] Optionally, the upgrade condition standard includes: a dependency condition standard; wherein the step of determining whether the ECU to be upgraded meets the dependency condition standard includes:

[0019] Determine whether the current ECU to be upgraded has a dependent ECU according to the dependency relationship data; wherein,

[0020] If there is no dependent ECU, the dependency condition standard is met;

[0021] If there is a dependent ECU, it is determined whether the dependent ECU has completed upgrading; if the upgrading has been completed, the dependency condition standard is met; if the upgrading has not been completed, the dependency condition standard is not met.

[0022] Optionally, the upgrade condition standard includes: bus requirement condition standard; wherein the step of judging whether the ECU to be upgraded meets the bus requirement condition standard includes:

[0023] Determine the CAN bus number of the current ECU to be upgraded according to the bus information;

[0024] Determine whether there is an ECU to be upgraded in the upgrade slot that has the same CAN bus number as the current ECU to be upgraded and is undergoing an upgrade process; if so, it does not meet the bus requirement standard; if not, it meets the bus requirement standard.

[0025] Optionally, the target upgrade task includes a single-chip electronic control ECU and an operating system software ECU; wherein,

[0026] The step of upgrading the single-chip electronic control ECU comprises:

[0027] The binary content obtained in the cloud is written into the storage medium of the ECU of the target upgrade task through a preset flashing program to update the ECU to be upgraded and complete the upgrade;

[0028] The step of upgrading the operating system software ECU comprises:

[0029] The update software package is sent to the upgrade program of the operating system based on the upgrade link, so that the upgrade program parses the update software package to form an update manual, and updates the operating system software ECU according to the update manual to complete the upgrade.

[0030] In a second aspect, an embodiment of the present application provides a system for upgrading an electric control task of a new energy vehicle, which implements the method for upgrading an electric control task of a new energy vehicle as described above, and the system includes:

[0031] A slot preset unit, used to obtain the total number of upgrades of the ECUs to be upgraded and the task data of each ECU to be upgraded, and to set a preset number of upgrade slots according to the total number of upgrades and the pre-acquired vehicle computing power data;

[0032] A cyclic upgrade unit, used for cyclically placing the ECUs to be upgraded into the upgrade slots for upgrade processing until all the ECUs to be upgraded are upgraded, and then stopping the cycle; wherein the cyclic upgrade unit includes a slot placement module and an upgrade processing module;

[0033] The slot placement module is used to query whether there is an idle slot in the upgrade slot at a preset time interval, and if there is an idle slot, select a target upgrade task from the ECU to be upgraded based on the task data and according to a preset ECU sorting rule;

[0034] The upgrade processing module is used to place the target upgrade task into the idle slot to form a working slot, and perform upgrade processing on the target upgrade task until the target upgrade task is upgraded and the working slot is changed to a idle slot.

[0035] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, and a system bus; the processor and the memory are connected via the system bus; the memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to execute any optional upgrade method for the new energy vehicle electronic control task described in the first aspect.

[0036] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any optional method for upgrading the electronic control tasks of a new energy vehicle as described in the first aspect.

[0037] It can be seen from the above technical solutions that the embodiments of the present application provide a method, system, electronic device and computer-readable storage medium for upgrading the electronic control tasks of new energy vehicles. Compared with the prior art, the present application has the following beneficial effects:

[0038] By combining various ECU upgrade conditions, the vehicle side can dynamically select the ECU to be upgraded based on the preset upgrade slots. Compared with traditional serial upgrades or parallel upgrades in a fixed order, it can make better use of system resources and improve upgrade efficiency. Especially for the situation where a large number of ECUs need to be upgraded at the same time, the upgrade task publisher does not need to pay attention to the specific upgrade task scheduling, but only needs to obtain the properties of the ECU. The vehicle side can dynamically schedule the upgrade tasks according to the properties of each ECU to be upgraded and select a reasonable upgrade order. The entire method has simple logic, small calculation amount, minimizes the use of vehicle-side computing power, and greatly improves the upgrade efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] By referring to the following description in conjunction with the accompanying drawings, and with a more comprehensive understanding of the present invention, other objects and results of the present invention will become more clear and easy to understand. In the accompanying drawings:

[0040] Figure 1 A flowchart of a method for upgrading an electric control task of a new energy vehicle according to an embodiment of the present invention;

[0041] Figure 2 A logic block diagram of an upgrade system for electric control tasks of new energy vehicles according to an embodiment of the present invention;

[0042] Figure 3 is a schematic diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] Existing OTA upgrade solutions are mostly serial upgrades or simple fixed-schedule parallel upgrades, which fail to fully consider factors such as bus type, upgrade time, upgrade dependencies and resource consumption between different ECUs, resulting in long upgrade time and low system resource utilization.

[0044] In view of the above problems, the present invention provides an upgrade method, system, electronic device and computer-readable storage medium for electronic control tasks of new energy vehicles. First, the total number of upgrades of ECUs to be upgraded and the task data of each ECU to be upgraded are obtained, and a preset number of upgrade slots are set according to the total number of upgrades and the pre-acquired vehicle computing power data. Then, it is queried whether there are free slots in the upgrade slots at a preset time interval. If there are free slots, based on the task data, a target upgrade task is selected from the ECU to be upgraded according to a preset ECU sorting rule, and then the target upgrade task is placed in the free slot to form a working slot, and the target upgrade task is upgraded until the target upgrade task is upgraded. The working slot is changed to a free slot. When there is a free slot, the target upgrade task is selected from the ECU to be upgraded for upgrading until all the ECUs to be upgraded are upgraded.

[0045] In this way, by combining various ECU upgrade conditions, the vehicle side can dynamically select the ECU to be upgraded. Compared with traditional serial upgrades or parallel upgrades in a fixed order, it can make better use of system resources and improve upgrade efficiency. Especially for the situation where a large number of ECUs need to be upgraded at the same time, the upgrade task publisher does not need to pay attention to the specific upgrade task scheduling, but only needs to define the properties of the ECU. The vehicle side can dynamically schedule the upgrade tasks and select a reasonable upgrade order, thereby reducing the upgrade computing power and improving the upgrade efficiency.

[0046] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The description of the following exemplary embodiments is actually merely illustrative and is by no means intended to limit the present invention and its application or use. The techniques and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, the techniques and equipment should be considered as part of the specification. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0047] Figure 1 A flowchart of a method for upgrading an electric control task of a new energy vehicle provided in an embodiment of the present application, such as Figure 1 As shown, the method includes:

[0048] S1: Obtain the total number of ECUs to be upgraded and task data of each ECU to be upgraded, and set a preset number of upgrade slots according to the total number of ECUs to be upgraded and pre-acquired vehicle computing power data;

[0049] S2: placing the ECUs to be upgraded in a circular manner into the upgrade slots for upgrading, until all the ECUs to be upgraded are upgraded, and then stopping the cycle; wherein placing the ECUs to be upgraded in a circular manner into the upgrade slots for upgrading includes:

[0050] S21: querying whether there is an idle slot in the upgrade slot at a preset time interval, and if there is an idle slot, selecting a target upgrade task from the ECUs to be upgraded based on the task data and according to a preset ECU sorting rule;

[0051] S22: placing the target upgrade task into the idle slot to form a working slot, and performing upgrade processing on the target upgrade task until the target upgrade task is upgraded and the working slot is changed to a idle slot.

[0052] Step S1 is a process of obtaining the total number of upgrades of ECUs to be upgraded and task data of each ECU to be upgraded, and setting a preset number of upgrade slots according to the total number of upgrades and pre-acquired vehicle computing power data.

[0053] When calculating the number of upgrade slots based on the total number of upgrades and the vehicle's computing power, the process is completed by a preset functional unit based on a preset program. The number of ECUs that can be upgraded simultaneously is limited by the performance of various protocol stack software or hardware. Therefore, it is necessary to configure a maximum number of parallel upgrades as the number of upgrade slots. This number depends on the measurement and calibration of the overall system performance. When setting the upgrade slots, you can first determine the proportion of the total number of upgrades and the vehicle's computing power. There are no restrictions on the specific proportion and algorithm, which can be set according to the vehicle's condition. You can even directly use the maximum number of simultaneous upgrades that the vehicle's computing power can withstand as the number of upgrade slots to maximize the efficiency of the vehicle's computing power and further improve efficiency.

[0054] In this embodiment, step S2 is to place the ECUs to be upgraded in the upgrade slots in a loop for upgrading, and stop the loop process until all the ECUs to be upgraded are upgraded, that is, all the ECUs to be upgraded are placed in the upgrade slots in turn, and the upgrade process is immediately executed after they are placed in the upgrade slots. After the upgrade is completed, the upgrade slot is changed to a free slot, and then the next ECU to be upgraded is placed in the vacant free slot, and the loop is stopped until all the ECUs to be upgraded are upgraded.

[0055] Specifically, in this embodiment, the process of cyclically placing the ECU to be upgraded into the upgrade slot for upgrade processing is first performed in step S21 to query whether there is a free slot in the upgrade slot at a preset time interval. If there is a free slot, based on the task data, a target upgrade task is selected from the ECU to be upgraded according to a preset ECU sorting rule; then step S22 is performed to place the target upgrade task in the free slot to form a working slot, and upgrade the target upgrade task until the target upgrade task is upgraded and the working slot is changed to a free slot.

[0056] For step S21: based on the task data, selecting a target upgrade task from the ECUs to be upgraded according to a preset ECU sorting rule, including:

[0057] S211: extracting the task estimated execution time, upgraded high voltage attributes, dependency data, and bus information from the task data;

[0058] S212: Arrange all the ECUs to be upgraded in descending order according to the estimated execution time of the tasks to form a sequence to be upgraded;

[0059] S213: In the sequence of ECUs to be upgraded, judging from front to back whether they fully meet the upgrade conditions. If they fully meet the conditions, the ECUs to be upgraded are taken as the target upgrade tasks; if they do not fully meet the conditions, the current ECU to be upgraded is skipped and the next ECU to be upgraded is judged.

[0060] It should be noted that the reason why the estimated task execution time, upgraded high voltage attributes, dependency data, and bus information are extracted in step S211 is to provide a basis for further screening of target upgrade tasks. The reason for screening is that due to the characteristics of new energy vehicles, ECU upgrades are restricted and need to rely on the following conditions:

[0061] Power conditions:

[0062] There are two power systems in electric vehicles, namely the high-voltage system (ranging from 300-800V) powered by the power battery and the low-voltage system (12V) powered by the storage battery. When the power battery is working, the high-voltage power in the car is supplied, and the car is in the upper high-voltage working state. When the power battery is not working, the high-voltage power in the car is not supplied, and only the low-voltage system supplies power, and the car is in the lower high-voltage working state. The ECU in the car can determine whether the current vehicle is in the upper high-voltage state through the power supply system signal.

[0063] Therefore, some ECUs of new energy vehicles cannot be upgraded in the upper high voltage environment (e.g., battery management ECUs need to be upgraded after the battery high voltage is disconnected). Therefore, in this embodiment, the ECUs to be upgraded are divided into two categories: upper high voltage upgrade ECUs and lower high voltage upgrade ECUs. In this embodiment, upper high voltage ECUs can be upgraded in the upper high voltage environment at the same time, and lower high voltage ECUs can be upgraded in the lower high voltage environment at the same time.

[0064] Bus conditions:

[0065] Some regulations, such as the diagnostic flash protocol defined by ISO-14229, cannot execute flash instructions in parallel on the same CAN bus, that is, ECUs attached to the same CAN bus cannot be upgraded at the same time, while ECUs attached to the Ethernet bus can be upgraded at the same time.

[0066] Upgrade order condition: The order condition of ECU upgrade is the dependency condition between ECUs. In some technical scenarios, some ECUs need to be upgraded before other ECUs can be upgraded, that is, the later upgraded ECUs depend on the previous ECUs. It should be noted that the ECU upgrade dependency is configured by the upgrade task issued by the cloud, which is configured in advance when the ECU to be upgraded is generated, so the configuration process of its dependency is not described in detail in this embodiment.

[0067] And the estimated upgrade time conditions of the ECU to be upgraded.

[0068] Therefore, in step S211, it is necessary to extract the estimated task execution time, upgrade high-voltage properties, dependency data, and bus information from the task data of each ECU to be upgraded; and then perform step S212 to arrange all ECUs to be upgraded in descending order according to the estimated task execution time to form an upgrade sequence, so as to ensure that the ECUs to be upgraded that require longer upgrade time are placed in front, and the ECUs to be upgraded that require shorter upgrade time are placed in the back, thereby improving the efficiency of the cyclic parallel upgrade.

[0069] Then, based on the sequence to be upgraded, step S213 is performed, that is, judging whether the ECU to be upgraded fully meets the upgrade conditions from front to back in the sequence to be upgraded. If it fully meets the conditions, the ECU to be upgraded is taken as the target upgrade task; if it does not fully meet the conditions, the current ECU to be upgraded is skipped and the next ECU to be upgraded is judged.

[0070] In this embodiment, the condition standard is formulated based on the OTA characteristics of the above-mentioned new energy, so as to ensure the maximum efficiency of ECU upgrade. Specifically, in this embodiment, the condition standard for upgrading includes: A high-voltage condition standard; wherein, the step of judging whether the ECU to be upgraded meets the high-voltage condition standard includes:

[0071] SA1: Determine whether the upgraded high-voltage attribute of the ECU to be upgraded is consistent with the high-voltage attribute of the current upgrade environment; the upgraded high-voltage attribute includes an upper high-voltage upgrade attribute and a lower high-voltage upgrade attribute; the high-voltage attribute includes an upper high-voltage and a lower high-voltage; wherein,

[0072] If the upgraded high-voltage attribute is an upper high-voltage upgrade attribute, and the high-voltage attribute is upper high-voltage; or the upgraded high-voltage attribute is a lower high-voltage upgrade attribute, and the high-voltage attribute is lower high-voltage, then the ECU to be upgraded meets the high-voltage condition standard.

[0073] More specifically, in this embodiment, if all the ECUs to be upgraded in the sequence to be upgraded do not meet the high-voltage condition standard, the high-voltage properties of the current upgrade environment are actively changed through a preset upgrade environment change program; for example, if a battery management ECU suitable for a lower high-voltage upgrade property (12V) needs to disconnect the battery high voltage before it can be upgraded, when all battery ECUs and other ECUs to be upgraded that require a lower high-voltage upgrade property have been upgraded, the high-voltage properties of the current upgrade environment can be actively changed through a preset upgrade environment change program, that is, the high-voltage properties of the upgrade environment are changed from lower high voltage to upper high voltage, so as to facilitate the subsequent upgrade of the ECUs to be upgraded that have the upper high-voltage upgrade property.

[0074] In this embodiment, the upgrade condition standard further includes: B dependency condition standard; wherein the step of determining whether the ECU to be upgraded meets the dependency condition standard includes:

[0075] SB1; Determine whether the current ECU to be upgraded has a dependent ECU according to the dependency data; wherein,

[0076] If there is no dependent ECU, the dependency condition standard is met;

[0077] If there is a dependent ECU, it is determined whether the dependent ECU has been upgraded; if the upgrade has been completed, the dependency condition standard is met; if the upgrade has not been completed, the dependency condition standard is not met;

[0078] For example, in the formation stage of the ECU to be upgraded, the cloud has matched the dependency and dependent relationship of the ECU to be upgraded. For example, a certain ECU to be upgraded is referred to as a target upgrade ECU. The target ECU to be upgraded must wait until another specific ECU to be upgraded is upgraded before it can be upgraded. Therefore, when the target ECU to be upgraded is polled, it is necessary to determine whether the upgrade of the specific ECU to be upgraded is completed. If the upgrade of the specific ECU to be upgraded is completed, then the target ECU to be upgraded meets the dependency condition standard. If the upgrade of the specific ECU to be upgraded is not completed, then the target ECU to be upgraded does not have the conditions for upgrading, that is, it does not meet the dependency condition standard. In this embodiment, if there is a condition standard that does not meet the standard, it cannot be upgraded.

[0079] In this embodiment, the upgrade condition standard also includes: C bus requirement condition standard; wherein, the step of judging whether the ECU to be upgraded meets the bus requirement condition standard includes:

[0080] SC1: Determine the CAN bus number of the current ECU to be upgraded according to the bus information;

[0081] SC2: Determine whether there is an ECU to be upgraded in the upgrade slot that has the same CAN bus number as the current ECU to be upgraded and is undergoing an upgrade process; if so, it does not meet the bus requirement standard; if not, it meets the bus requirement standard.

[0082] For example, the diagnostic flashing protocol defined by ISO-14229 cannot execute flashing instructions on the same CAN bus in parallel, so it is necessary to obtain the CAN bus number where the ECU is located. If the ECU to be upgraded on the bus with the CAN bus number is already in the upgrade slot for upgrading, then another ECU to be upgraded on the bus cannot be put into the upgrade slot for upgrading. Therefore, it is necessary to determine whether there is an ECU to be upgraded in the upgrade slot that has the same CAN bus number as the current ECU to be upgraded and is undergoing an upgrade process; if so, it does not meet the bus requirement conditions and standards, and the current ECU to be upgraded cannot be upgraded; if not, it meets the bus requirement standards. If other conditions and standards are met at the same time, the current ECU to be upgraded can be placed in the upgrade slot as the target upgrade task for upgrading.

[0083] In general, when polling for upgrades in sequence, if the current ECU to be upgraded meets all the above conditions, it can be placed in an empty upgrade slot (free slot) as a target upgrade task for immediate upgrade. If not all conditions are met, it cannot be upgraded and it is necessary to skip the current ECU to be upgraded and continue to judge the next ECU to be upgraded.

[0084] In this embodiment, there is no limitation on the specific upgrade method of the ECU to be upgraded, and it may be any method in the art that can upgrade and update the ECU, that is, the well-known specific method of OTA remote upgrade of the ECU, and the above steps are applicable to any ECU task that can be upgraded or updated, and the specific detailed upgrade method will not be repeated here.

[0085] However, in order to more thoroughly illustrate the upgrade method of the new energy vehicle electronic control task in this embodiment, a specific embodiment is listed here, and the target upgrade task (ECU to be upgraded) includes a single-chip electronic control ECU and an operating system software ECU; wherein,

[0086] The step of upgrading the single-chip electronic control ECU comprises:

[0087] The binary content obtained in the cloud is written into the storage medium of the ECU of the target upgrade task through a preset flashing program to update the ECU to be upgraded and complete the upgrade;

[0088] The step of upgrading the operating system software ECU comprises:

[0089] Based on the upgrade link, the update package is sent to the upgrade program of the operating system, so that the upgrade program parses the update package to form an update manual, and updates the operating system software ECU according to the update manual to complete the upgrade. The update package is in various forms, which are not listed here one by one.

[0090] Thus, the upgrade of the target upgrade task is completed based on the above steps.

[0091] As described above, the upgrade method of the electronic control task of a new energy vehicle provided by the present invention first obtains the total upgrade number of ECUs to be upgraded and the task data of each ECU to be upgraded, and sets a preset number of upgrade slots according to the total upgrade number and the pre-acquired vehicle computing power data, and then queries whether there are free slots in the upgrade slots at a preset time interval. If there are free slots, based on the task data, the target upgrade task is selected in the ECU to be upgraded according to the preset ECU sorting rule, and then the target upgrade task is placed in the free slot to form a working slot, and the target upgrade task is upgraded until the target upgrade task is upgraded. After the working slot is changed to a free slot, when there is a free slot, the target upgrade task is selected in the ECU to be upgraded for upgrading until all the ECUs to be upgraded are upgraded. By combining various ECU upgrade conditions, the vehicle end can dynamically select the ECU to be upgraded, which can make more full use of system resources, improve upgrade efficiency, reduce upgrade computing power, and improve upgrade efficiency.

[0092] The following is an introduction to an upgrade system for an electric control task of a new energy vehicle provided in an embodiment of the present application. The upgrade system for an electric control task of a new energy vehicle described below and the upgrade method for an electric control task of a new energy vehicle described above can refer to each other.

[0093] like Figure 2 As shown, the present invention also provides a system 100 for upgrading electric control tasks of new energy vehicles, which can implement the method for upgrading electric control tasks of new energy vehicles as described above, and the system includes:

[0094] The slot preset unit 110 is used to obtain the total number of upgrades of the ECUs to be upgraded and the task data of each ECU to be upgraded, and to set a preset number of upgrade slots according to the total number of upgrades and the pre-acquired vehicle computing power data;

[0095] The cyclic upgrade unit 120 is used to cyclically place the ECUs to be upgraded into the upgrade slots for upgrade processing until all the ECUs to be upgraded are upgraded, and then stop the cycle; wherein the cyclic upgrade unit 120 includes a slot placement module 121 and an upgrade processing module 122;

[0096] The slot placement module 121 is used to query whether there is an idle slot in the upgrade slot at a preset time interval, and if there is an idle slot, select a target upgrade task from the ECUs to be upgraded based on the task data and according to a preset ECU sorting rule;

[0097] The upgrade processing module 122 is used to place the target upgrade task into the idle slot to form a working slot, and perform upgrade processing on the target upgrade task until the target upgrade task is upgraded and the working slot is changed to a idle slot.

[0098] In this embodiment, the slot placement module 121 includes:

[0099] An information extraction module 1211 is used to extract the task estimated execution time, upgraded high voltage attributes, dependency data, and bus information from the task data;

[0100] A sequence generation module 1212, used to arrange all ECUs to be upgraded from large to small according to the estimated execution time of the task to form a sequence to be upgraded;

[0101] The target selection module 1213 is used to determine whether the ECUs to be upgraded fully meet the upgrade criteria from the front to the back in the sequence to be upgraded. If they fully meet the criteria, the ECUs to be upgraded are used as target upgrade tasks; if they do not fully meet the criteria, the current ECU to be upgraded is skipped and the next ECU to be upgraded is determined;

[0102] The target selection module 1213 includes a high voltage condition judgment component, a dependency judgment component and a bus condition judgment component;

[0103] The high-voltage condition judgment component is used to judge whether the ECU to be upgraded meets the high-voltage condition standard, including:

[0104] Determine whether the upgraded high-voltage attribute of the ECU to be upgraded is consistent with the high-voltage attribute of the current upgrade environment; the upgraded high-voltage attribute includes an upper high-voltage upgrade attribute and a lower high-voltage upgrade attribute; the high-voltage attribute includes an upper high-voltage and a lower high-voltage; wherein,

[0105] If the upgraded high-voltage attribute is an upper high-voltage upgrade attribute, and the high-voltage attribute is upper high-voltage; or the upgraded high-voltage attribute is a lower high-voltage upgrade attribute, and the high-voltage attribute is lower high-voltage, then the ECU to be upgraded meets the high-voltage condition standard;

[0106] If all the ECUs to be upgraded in the sequence to be upgraded do not meet the high-voltage condition standard, the high-voltage property of the current upgrade environment is actively changed through a preset upgrade environment change program.

[0107] The dependency judgment component is used to judge whether the ECU to be upgraded meets the dependency condition standard, including:

[0108] Determine whether the current ECU to be upgraded has a dependent ECU according to the dependency relationship data; wherein,

[0109] If there is no dependent ECU, the dependency condition standard is met;

[0110] If there is a dependent ECU, it is determined whether the dependent ECU has completed the upgrade; if the upgrade has been completed, the dependency condition standard is met; if the upgrade has not been completed, the dependency condition standard is not met.

[0111] The bus condition judgment component is used to judge whether the ECU to be upgraded meets the bus requirement condition standard, including:

[0112] Determine the CAN bus number of the current ECU to be upgraded according to the bus information;

[0113] Determine whether there is an ECU to be upgraded in the upgrade slot that has the same CAN bus number as the current ECU to be upgraded and is undergoing an upgrade process; if so, it does not meet the bus requirement standard; if not, it meets the bus requirement standard.

[0114] The upgrade processing module 122 includes:

[0115] The single-chip electronic control ECU upgrade module 1221 is used to upgrade the single-chip electronic control ECU, including: writing the binary content obtained from the cloud into the storage medium of the ECU of the target upgrade task through a preset flashing program, so as to update the ECU to be upgraded and complete the upgrade;

[0116] The operating system software ECU upgrade module 1222 is used to upgrade the operating system software ECU, including: sending the update software package to the upgrade program of the operating system based on the upgrade link, so that the upgrade program parses the update software package to form an update manual, and updates the operating system software ECU according to the update manual to complete the upgrade.

[0117] The new energy vehicle electronic control task upgrade system 100 provided by the present invention generally performs calculations as the above-mentioned new energy vehicle electronic control task upgrade method. For more specific implementation processes, reference can be made to the specific embodiments of the above-mentioned new energy vehicle electronic control task upgrade method.

[0118] As described above, the upgrade system 100 for the electronic control tasks of new energy vehicles provided by the present invention obtains the total number of upgrades of the ECUs to be upgraded and the task data of each ECU to be upgraded through the slot preset unit 110, and sets a preset number of upgrade slots according to the total number of upgrades and the pre-acquired vehicle computing power data, and then queries whether there are free slots in the upgrade slots according to a preset time interval through the slot placement module 121 in the cyclic upgrade unit 120. If there are free slots, based on the task data, the target upgrade task is selected from the ECUs to be upgraded according to the preset ECU sorting rules; then the target upgrade task is placed in the free slot to form a working slot through the upgrade processing module 122 in the cyclic upgrade unit 120, and the target upgrade task is upgraded until the target upgrade task is upgraded and the working slot is changed to a free slot. In this way, the selected target upgrade task is placed in the free slot in a cycle, and the target upgrade task enters the slot and immediately performs the upgrade operation until all the ECUs to be upgraded are upgraded and the polling is stopped. The whole process enables the vehicle end to dynamically select the ECU to be upgraded. Compared with traditional serial upgrades or parallel upgrades in a fixed order, it can make better use of system resources and improve upgrade efficiency. Especially when a large number of ECUs need to be upgraded at the same time, the upgrade task publisher does not need to pay attention to the specific upgrade task scheduling, but only needs to define the properties of the ECU. The vehicle side can dynamically schedule the upgrade tasks and choose a reasonable upgrade order, thereby reducing the upgrade computing power and improving the upgrade efficiency.

[0119] See also Figure 3, which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, including: a memory 11 for storing a computer program; a processor 12 for implementing the steps of the method for upgrading the electric control task of a new energy vehicle described in any of the above method embodiments when executing the computer program. In this embodiment, the device can be a vehicle-mounted computer, a PC (Personal Computer), or a terminal device such as a smart phone, a tablet computer, a PDA, a portable computer, etc. The device may include a memory 11, a processor 12, and a bus 13. Among them, the memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (for example, SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the device, such as a hard disk of the device. In other embodiments, the memory 11 may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. Further, the memory 11 may also include both an internal storage unit of the device and an external storage device. The memory 11 can not only be used to store application software and various types of data installed in the device, such as program codes for executing fault prediction methods, but also can be used to temporarily store data that has been output or is to be output. In some embodiments, the processor 12 can be a central processing unit (CPU). In some embodiments, the processor 12 can be a central processing unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip, which is used to run the program code or process data stored in the memory 11, such as the code for the upgrade method of executing the electronic control task of new energy vehicles. The bus 13 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Further, the device may also include a network interface 14, which may optionally include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is usually used to establish a communication connection between the device and other electronic devices.

[0120] Optionally, the device may further include a user interface 15, which may include a display (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 15 may also include a standard wired interface and a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device, etc. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the device and to display a visual user interface. Figure 3 Only the device with components 11-15 is shown, and it can be understood by those skilled in the art that Figure 3 The structure shown does not constitute a limitation of the device, and may include fewer or more components than shown, or combine certain components, or arrange the components differently.

[0121] An embodiment of the present invention further provides a computer-readable storage medium, which may be non-volatile or volatile, and stores a computer program, which, when executed by a processor, implements:

[0122] Obtain the total number of ECUs to be upgraded and task data of each ECU to be upgraded, and set a preset number of upgrade slots according to the total number of ECUs to be upgraded and the pre-acquired vehicle computing power data;

[0123] The ECUs to be upgraded are placed in the upgrade slots for upgrading in a loop until all the ECUs to be upgraded are upgraded, and then the loop is stopped; wherein the ECUs to be upgraded are placed in the upgrade slots for upgrading in a loop, including:

[0124] querying whether there is an idle slot in the upgrade slot at a preset time interval, and if there is an idle slot, selecting a target upgrade task from the ECUs to be upgraded according to a preset ECU sorting rule based on the task data;

[0125] The target upgrade task is placed in the idle slot to form a working slot, and the target upgrade task is upgraded until the target upgrade task is upgraded and the working slot is changed to a idle slot.

[0126] Specifically, the specific implementation method when the computer program is executed by the processor can refer to the description of the relevant steps in the embodiment of the method for upgrading the electronic control task of the new energy vehicle, which will not be repeated here.

[0127] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0128] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0129] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0130] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0131] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0132] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.

[0133] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for methods, devices, electronic devices and computer-readable storage media, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments. The methods, devices, electronic devices and media described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components indicated as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0134] As described above, the upgrade method and system of the electric control task of a new energy vehicle proposed in the present invention are described by way of example with reference to the accompanying drawings. However, those skilled in the art should understand that various improvements can be made to the upgrade method and system of the electric control task of a new energy vehicle proposed in the present invention without departing from the content of the present invention. Therefore, the scope of protection of the present invention should be determined by the content of the attached claims.

Claims

1. A method for upgrading electric control tasks of new energy vehicles, characterized in that: include: Obtain the total number of ECUs to be upgraded and task data of each ECU to be upgraded, and set a preset number of upgrade slots according to the total number of ECUs to be upgraded and the pre-acquired vehicle computing power data; The ECUs to be upgraded are placed in the upgrade slots for upgrading in a loop until all the ECUs to be upgraded are upgraded, and then the loop is stopped; wherein the ECUs to be upgraded are placed in the upgrade slots for upgrading in a loop, including: querying whether there is an idle slot in the upgrade slot at a preset time interval, and if there is an idle slot, selecting a target upgrade task from the ECUs to be upgraded according to a preset ECU sorting rule based on the task data; The target upgrade task is placed in the idle slot to form a working slot, and the target upgrade task is upgraded until the target upgrade task is upgraded and the working slot is changed to a idle slot.

2. The method for upgrading the electric control task of a new energy vehicle according to claim 1, characterized in that: The step of selecting a target upgrade task from the ECUs to be upgraded based on the task data and according to a preset ECU sorting rule includes: extracting task estimated execution time, upgraded high voltage attributes, dependency data, and bus information from the task data; Arrange all ECUs to be upgraded in descending order according to the estimated execution time of the tasks to form a sequence to be upgraded; In the sequence to be upgraded, it is judged from front to back whether the ECU to be upgraded fully meets the upgrade condition standard. If it fully meets the condition standard, the ECU to be upgraded is taken as the target upgrade task; if it does not fully meet the condition standard, the current ECU to be upgraded is skipped and the next ECU to be upgraded is judged.

3. The method for upgrading the electric control task of a new energy vehicle as claimed in claim 2, characterized in that: The condition standard for upgrading includes: a high-voltage condition standard; wherein the step of judging whether the ECU to be upgraded meets the high-voltage condition standard includes: Determine whether the upgraded high-voltage attribute of the ECU to be upgraded is consistent with the high-voltage attribute of the current upgrade environment; the upgraded high-voltage attribute includes an upper high-voltage upgrade attribute and a lower high-voltage upgrade attribute; the high-voltage attribute includes an upper high-voltage and a lower high-voltage; wherein, If the upgraded high-voltage attribute is an upper high-voltage upgrade attribute, and the high-voltage attribute is upper high-voltage; or the upgraded high-voltage attribute is a lower high-voltage upgrade attribute, and the high-voltage attribute is lower high-voltage, then the ECU to be upgraded meets the high-voltage condition standard.

4. The method for upgrading the electric control task of a new energy vehicle as claimed in claim 2, characterized in that: If all the ECUs to be upgraded in the sequence to be upgraded do not meet the high-voltage condition standard, the high-voltage property of the current upgrade environment is actively changed through a preset upgrade environment change program.

5. The method for upgrading the electric control task of a new energy vehicle as claimed in claim 2, characterized in that: The condition standard for upgrading includes: dependency condition standard; wherein the step of judging whether the ECU to be upgraded meets the dependency condition standard includes: Determine whether the current ECU to be upgraded has a dependent ECU according to the dependency relationship data; wherein, If there is no dependent ECU, the dependency condition standard is met; If there is a dependent ECU, it is determined whether the dependent ECU has completed the upgrade; if the upgrade has been completed, the dependency condition standard is met; if the upgrade has not been completed, the dependency condition standard is not met.

6. The method for upgrading the electric control task of a new energy vehicle as claimed in claim 2, characterized in that: The upgrade condition standard includes: bus requirement condition standard; wherein, the step of judging whether the ECU to be upgraded meets the bus requirement condition standard includes: Determine the CAN bus number of the current ECU to be upgraded according to the bus information; Determine whether there is an ECU to be upgraded in the upgrade slot that has the same CAN bus number as the current ECU to be upgraded and is undergoing an upgrade process; if so, it does not meet the bus requirement standard; if not, it meets the bus requirement standard.

7. The method for upgrading the electric control task of a new energy vehicle according to claim 1, characterized in that: The target upgrade tasks include single-chip electronic control ECU and operating system software ECU; wherein, The step of upgrading the single-chip electronic control ECU comprises: The binary content obtained in the cloud is written into the storage medium of the ECU of the target upgrade task through a preset flashing program to update the ECU to be upgraded and complete the upgrade; The step of upgrading the operating system software ECU comprises: The update software package is sent to the upgrade program of the operating system based on the upgrade link, so that the upgrade program parses the update software package to form an update manual, and updates the operating system software ECU according to the update manual to complete the upgrade.

8. An upgrade system for electric control tasks of new energy vehicles, characterized in that: A method for upgrading the electric control task of a new energy vehicle according to any one of claims 1 to 7, the system comprising: A slot preset unit, used to obtain the total number of upgrades of the ECUs to be upgraded and the task data of each ECU to be upgraded, and to set a preset number of upgrade slots according to the total number of upgrades and the pre-acquired vehicle computing power data; A cyclic upgrade unit, used for cyclically placing the ECUs to be upgraded into the upgrade slots for upgrade processing until all the ECUs to be upgraded are upgraded, and then stopping the cycle; wherein the cyclic upgrade unit includes a slot placement module and an upgrade processing module; The slot placement module is used to query whether there is an idle slot in the upgrade slot at a preset time interval, and if there is an idle slot, select a target upgrade task from the ECU to be upgraded based on the task data and according to a preset ECU sorting rule; The upgrade processing module is used to place the target upgrade task into the idle slot to form a working slot, and perform upgrade processing on the target upgrade task until the target upgrade task is upgraded and the working slot is changed to a idle slot.

9. An electronic device, characterized in that: The device includes: a processor, a memory and a system bus; the processor and the memory are connected via the system bus; the memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to implement the upgrade method of the new energy vehicle electronic control task described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for upgrading the electronic control task of a new energy vehicle described in any one of claims 1 to 7 is implemented.