Electronic control unit upgrade method, device, vehicle terminal and storage medium

By identifying and allocating key control units to optimize the OTA upgrade process, the problem of extended entry time of the upgrade mode in the OTA upgrade of vehicle terminals is solved, and the upgrade success rate and efficiency are improved.

CN118259939BActive Publication Date: 2024-11-12CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410352620.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-26
Publication Date
2024-11-12
Estimated Expiration
2044-03-26

AI Technical Summary

Technical Problem

During the OTA upgrade process of vehicle terminals, the upgrade mode entry time of the electronic control unit cannot be guaranteed within the agreed time, resulting in the failure of the OTA upgrade.

Method used

By obtaining the key control units (power domain and body domain control units) from the electronic control units, sending the upgrade mode signal to these key control units, bringing them into upgrade mode, and turning off the message sending function and turning on the signal receiving interface so that the signal is received through The signal interface of the target control unit triggers and performs the upgrade task.

Benefits of technology

The time to wait for the electronic control unit to respond to the message is shortened, the probability and efficiency of the successful OTA upgrade is improved, the influence of bus signals is avoided, and the upgrade time is optimized.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118259939B_ABST
    Figure CN118259939B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of OTA upgrade, and discloses an electronic control unit upgrade method, device, vehicle terminal and storage medium. The method determines a key control unit from an electronic control unit, responds to an upgrade task corresponding to a target control unit, controls each key control unit to enter an upgrade mode, controls each electronic control unit to turn off a message sending function and turn on a signal receiving interface, thereby triggering the target control unit to perform an upgrade task through a signal receiving interface corresponding to the target control unit, reduces the number of objects to which the upgrade mode signal is sent, and thereby shortens the time for waiting for the electronic control unit to respond to a message, avoids the impact of bus signals caused by only allowing the key control unit to enter the upgrade mode, and based on the two aspects, while shortening the waiting time for the electronic control unit to respond to a message, realizes the upgrade task of the target control unit, shortens the upgrade time, and increases the probability of successful OTA upgrade, thereby improving the OTA upgrade efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of OTA upgrade technology, and in particular to an electronic control unit upgrade method, device, vehicle terminal and storage medium. Background Art

[0002] At present, vehicle terminals usually use OTA (Over-the-Air) technology to upgrade the firmware and software of mobile terminals, which has the advantages of fast system defect repair, improved product experience, saving upgrade time and upgrade costs, etc. The OTA main control is carried on the intelligent vehicle terminal (VBOX) and runs. OTA upgrades the target ECU (Electronic Control Unit) through UDS (Unified Diagnostic Services) and DOIP (Diagnostics over Internet Protocol) protocols. The ECUs in all domains of the vehicle system must maintain the OTA upgrade mode before the upgrade can be carried out. In addition, all ECUs are required to enter the OTA upgrade mode within the agreed time (usually 30 seconds), otherwise it will fail.

[0003] With the continuous development of vehicle technology, the electronic control units in vehicles are also increasing with the vehicle functions. Although some ECUs are not involved in the OTA upgrade process, during the OTA upgrade, it is still necessary to send upgrade mode instructions to all ECUs one by one through physical addressing polling. Due to the large number of ECUs and slow transmission speed, the waiting time for receiving ECU response messages cannot be guaranteed to be within the agreed time, which makes OTA determine that the upgrade is abnormal, resulting in upgrade failure. Summary of the invention

[0004] In order to provide a basic understanding of some aspects of the disclosed embodiments, a brief summary is given below. The summary is not an extensive review, nor is it intended to identify key / critical components or delineate the scope of protection of these embodiments, but rather serves as a prelude to the detailed description that follows.

[0005] In view of the above-mentioned shortcomings of the prior art, the present invention discloses an electronic control unit upgrade method, device, vehicle terminal and storage medium to shorten the time waiting for the electronic control unit to enter the upgrade mode, thereby increasing the probability of successful OTA upgrade.

[0006] The present invention discloses an electronic control unit upgrade method, which is applied to a vehicle terminal, wherein the vehicle terminal includes a plurality of electronic control units, and the method includes: obtaining a key control unit from each of the electronic control units, wherein the key control unit includes a power domain control unit and a body domain control unit; in response to an upgrade task of a target control unit, sending an upgrade mode signal to each of the key control units respectively, so that each of the key control units enters an upgrade mode, wherein the target control unit includes any electronic control unit; controlling each of the electronic control units to close a message sending function and to open a signal receiving interface; receiving the upgrade mode signal through a signal receiving interface corresponding to the target control unit, triggering the target control unit to maintain the upgrade mode, and executing the upgrade task.

[0007] The present invention discloses an electronic control unit upgrade system, which is applied to a vehicle terminal, wherein the vehicle terminal includes a plurality of electronic control units, and the system includes: an acquisition module, which is used to acquire key control units in the electronic control units, wherein the key control units include a power domain control unit and a body domain control unit; a sending module, which is used to send an upgrade mode signal to each of the key control units in response to an upgrade task of a target control unit, so that each of the key control units enters an upgrade mode, wherein the target control unit includes any electronic control unit; a control module, which is used to control each of the electronic control units to close a message sending function and open a signal receiving interface; an upgrade module, which is used to receive the upgrade mode signal through a signal receiving interface corresponding to the target control unit, trigger the target control unit to maintain the upgrade mode, and execute the upgrade task.

[0008] The present invention discloses a vehicle terminal, comprising: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the vehicle terminal executes the above method.

[0009] The present invention discloses a computer-readable storage medium, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer is enabled to execute the above method.

[0010] Beneficial effects of the present invention:

[0011] By determining the key control unit from the electronic control unit, responding to the upgrade task corresponding to the target control unit, controlling each key control unit to enter the upgrade mode, and controlling each electronic control unit to turn off the message sending function and turn on the signal receiving interface, thereby triggering the target control unit to perform the upgrade task through the signal receiving interface corresponding to the target control unit. In this way, on the one hand, compared with making all electronic control units enter the upgrade mode, only sending the upgrade mode signal to the key control unit reduces the number of sending objects of the upgrade mode signal, thereby shortening the time for waiting for the electronic control unit to respond to the message. On the other hand, controlling each electronic control unit to turn off the message sending function and turn on the signal receiving interface avoids the influence of the bus signal caused by only making the key control unit enter the upgrade mode. Based on these two aspects, while shortening the waiting time for the electronic control unit to respond to the message, the upgrade task of the target control unit is realized, the upgrade time is shortened, and the probability of successful OTA upgrade is increased, thereby improving the OTA upgrade efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is a structural schematic diagram of a vehicle terminal for implementing an electronic control unit upgrade method in an embodiment of the present invention;

[0013] Figure 2 is a structural schematic diagram of another vehicle terminal for implementing an electronic control unit upgrade method in an embodiment of the present invention;

[0014] Figure 3 It is a schematic diagram of a flow chart of a message in DOIP format in an embodiment of the present invention;

[0015] Figure 4 It is a schematic diagram of a flow chart of a message in a CAN format in an embodiment of the present invention;

[0016] Figure 5 is a flow chart of an electronic control unit upgrade method in an embodiment of the present invention;

[0017] Figure 6 is a flow chart of another electronic control unit upgrade method in an embodiment of the present invention;

[0018] Figure 7 is a schematic structural diagram of an electronic control unit upgrade system in an embodiment of the present invention;

[0019] Figure 8 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following describes the embodiments of the present invention through specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. It should be noted that the following embodiments and sub-samples in the embodiments can be combined with each other without conflict.

[0021] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present invention, and thus the drawings only show components related to the present invention rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0022] In the following description, numerous details are discussed to provide a more thorough explanation of the embodiments of the present invention. However, it is obvious to those skilled in the art that the embodiments of the present invention can be implemented without these specific details. In other embodiments, well-known structures and devices are shown in the form of block diagrams rather than in detail to avoid making the embodiments of the present invention difficult to understand.

[0023] The terms "first", "second", etc. in the specification and claims of the embodiments of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged where appropriate, so that the embodiments of the embodiments of the present disclosure described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions.

[0024] Unless otherwise stated, the term "plurality" means two or more.

[0025] In the embodiment of the present disclosure, the character " / " indicates that the preceding and following objects are in an "or" relationship. For example, A / B indicates: A or B.

[0026] The term "and / or" is a description of the association relationship between objects, indicating that three relationships can exist. For example, A and / or B means: A or B, or, A and B.

[0027] In some embodiments, the mobile terminal in the embodiments of the present disclosure includes but is not limited to vehicles, drones, motorcycles, airplanes, trains, etc.

[0028] Combination Figure 1 and Figure 2As shown, an embodiment of the present disclosure provides a vehicle terminal for implementing an electronic control unit upgrade method, including an intelligent vehicle-mounted terminal (VBOX) 101, a vehicle virtual gateway (VGW, Virtual Gateway) 102, and an electronic control unit 103.

[0029] Optionally, the OTA cloud platform is connected to the smart vehicle terminal 101 via a mobile communication network (4G / 5G), wherein the smart vehicle terminal 101 is used for communication connection between the vehicle terminal and an external network.

[0030] Optionally, the intelligent vehicle terminal 101 is connected to the vehicle virtual gateway 102 via a 100M Ethernet (ETH), wherein the intelligent vehicle terminal 101 is provided with an OTA upgrade master control node (UMC).

[0031] Optionally, the vehicle virtual gateway 102 is connected to one or more electronic control units 103 via a CAN (Controller Area Network) bus and / or Ethernet, wherein the vehicle virtual gateway 102 is provided with an OTA upgrade agent node (UA).

[0032] In some embodiments, the OTA upgrade master node communicates with the OTA upgrade agent node via messages according to the DOIP protocol, wherein the messages in the DOIP format are as follows: Figure 3 shown.

[0033] Optionally, the electronic control units 103 are respectively provided with OTA upgrade slave nodes (US).

[0034] In some embodiments, the OTA upgrade agent node communicates with the electronic control unit via a CAN bus, wherein the CAN format message is as follows: Figure 4 shown.

[0035] In some embodiments, the electronic control unit includes a power domain control unit, a body domain control unit, a chassis domain control unit, an intelligent driving domain control unit, a cockpit domain control unit, etc.

[0036] In some embodiments, the power domain control unit includes a vehicle control unit (VCU), a motor controller (MCU), a direct current converter (DC / DC), a battery management system (BMS), etc.

[0037] In some embodiments, the body domain control unit includes a body controller (BCM, Body Control Module), an integrated circuit (IC, Integrated Circuit), etc.

[0038] Combination Figure 5 As shown, the embodiment of the present disclosure provides an electronic control unit upgrade method, comprising:

[0039] Step S501, obtaining a key control unit from each electronic control unit;

[0040] Among them, the key control units include the power domain control unit and the body domain control unit;

[0041] Step S502, in response to the upgrade task of the target control unit, sending an upgrade mode signal to each key control unit respectively, so that each key control unit enters an upgrade mode;

[0042] Wherein, the target control unit includes any electronic control unit;

[0043] Step S503, controlling each electronic control unit to turn off the message sending function and turn on the signal receiving interface;

[0044] Step S504: receiving an upgrade mode signal through a signal receiving interface corresponding to the target control unit, triggering the target control unit to maintain the upgrade mode and execute the upgrade task.

[0045] The electronic control unit upgrade method provided by the embodiment of the present disclosure is adopted. By determining the key control unit from the electronic control unit, in response to the upgrade task corresponding to the target control unit, each key control unit is controlled to enter the upgrade mode, and each electronic control unit is controlled to close the message sending function and open the signal receiving interface, so as to trigger the target control unit to perform the upgrade task through the signal receiving interface corresponding to the target control unit. In this way, on the one hand, compared with making all electronic control units enter the upgrade mode, only the upgrade mode signal is sent to the key control unit, which reduces the number of objects to which the upgrade mode signal is sent, thereby shortening the time for waiting for the electronic control unit to respond to the message. On the other hand, each electronic control unit is controlled to close the message sending function and open the signal receiving interface to avoid the influence of the bus signal caused by only making the key control unit enter the upgrade mode. Based on these two aspects, the upgrade task of the target control unit is realized while shortening the waiting time for the electronic control unit to respond to the message, shortening the upgrade time, and improving the probability of successful OTA upgrade, thereby improving the OTA upgrade efficiency.

[0046] Optionally, an upgrade mode signal is sent to each key control unit respectively so that each key control unit enters the upgrade mode, including: the vehicle terminal also includes an upgrade master control node; the upgrade master control node is used to send an upgrade mode signal to each key control unit through functional addressing, wherein the key control unit responds to the upgrade mode signal, detects the preconditions corresponding to the upgrade mode, and enters the upgrade mode if the key control unit meets the preconditions.

[0047] In this way, the upgrade mode signal is sent to the key control units together through the functional addressing method, which improves the transmission efficiency of the upgrade mode signal compared with the method of sending one by one through physical addressing.

[0048] Optionally, the upgrade mode signal consists of at least the following parts: an addressing mode field, used to carry a function addressing identifier; a response mechanism field, used to carry a response mechanism identifier corresponding to the function addressing, wherein the response mechanism identifier is set to require a response; an upgrade mode field, used to carry an upgrade mode identifier; and a mode command field, used to carry a start command corresponding to the upgrade mode identifier.

[0049] Optionally, the method also includes: the power domain control unit includes at least a vehicle controller, a motor controller, a DC converter, and a battery management system; the body domain control unit includes at least a body controller and an integrated circuit.

[0050] In some embodiments, the upgrade master control node sends an upgrade mode signal to key control units such as the vehicle controller, motor controller, DC converter, battery management system, body controller, integrated circuit, etc. through functional addressing, wherein the composition of the upgrade mode signal is shown in Table 1; the key control units perform precondition detection and upgrade mode activation in turn, and feedback response information to the upgrade master control node, wherein the response information includes whether the key control unit meets the preconditions corresponding to the upgrade mode and whether the key control unit is in upgrade mode.

[0051] Table 1

[0052] Field composition Addressing Mode Field Service Type Field Mode Command Field Upgrade Mode Field Response Mechanism Field Field Content Function Addressing Service Type Name Startup Command Upgrade Mode Response required Example 7DF 31 01 0204 01

[0053] Optionally, each electronic control unit is controlled to turn off the message sending function and turn on the signal receiving interface, including: using the upgrade main control node to determine whether each key control unit meets the preconditions corresponding to the upgrade mode; if each key control unit meets the preconditions corresponding to the upgrade mode, the upgrade main control node is used to query each key control unit through functional addressing to see whether it is in the upgrade mode; if each key control unit enters the upgrade mode, each electronic control unit is controlled to turn off the message sending function and turn on the signal receiving interface.

[0054] Optionally, the method also includes: pre-setting a first retry condition and a second retry condition, the first retry condition including that the key control unit does not meet the precondition corresponding to the upgrade mode, or that the key control unit is not in the upgrade mode, and the second retry condition including that the response waiting time of the key control unit is less than or equal to a preset waiting threshold, wherein the response waiting time takes the time point when the upgrade master control node sends an upgrade mode signal to the key control unit as the starting point of the time; if the key control unit meets the first retry condition and the second retry condition, the upgrade mode signal is re-sent to the key control unit through the upgrade master control node until the number of times the upgrade mode signal is sent reaches the preset upper limit; if the number of times the upgrade mode signal is sent reaches the preset upper limit, the execution result of the upgrade task is determined as failure, and each key control unit is controlled to exit the upgrade mode.

[0055] In some embodiments, the preset wait threshold comprises 30-60 seconds.

[0056] In some embodiments, the upper limit of the preset number of times is 2-5 times.

[0057] Optionally, in response to the upgrade task of the target control unit, the method also includes: determining any electronic control unit other than the power domain control unit and the body domain control unit as a selected control unit; calculating according to preset internal factors corresponding to the selected control unit to obtain a unit basic index corresponding to the selected control unit, wherein the preset internal factors include one or more of the number of historical failures of the selected control unit, the operation impact index of the selected control unit on the vehicle terminal, the economic impact index of the selected control unit on the vehicle terminal, and the safety impact index of the selected control unit on the vehicle terminal; calculating according to preset external factors between the selected control unit and the target control unit to obtain a unit additional index corresponding to the selected control unit, wherein the preset external factors include one or more of the operation impact index of the selected control unit on the target control unit and the number of communications between the selected control unit and the target control unit; calculating according to the unit basic index and the unit additional index to obtain a unit total index corresponding to the selected control unit, and determining the upgrade importance of the selected control unit according to the comparison result between the unit total index and the preset index threshold; if the upgrade importance of the selected control unit is important, the selected control unit is used as a new key control unit until the target control unit completes or exits the upgrade task.

[0058] In some embodiments, the more historical failure times corresponding to the selected control unit, the smaller the unit basic index corresponding to the selected control unit, so as to reduce the failure times of the selected control unit; the greater the impact of the selected control unit on the fuel economy of the vehicle terminal, the smaller the unit basic index corresponding to the selected control unit, so as to save the fuel cost of the vehicle terminal; the greater the impact of the selected control unit on the operation of the vehicle terminal, the larger the unit basic index corresponding to the selected control unit, so as to increase the probability of the selected control unit being a key control unit, and avoid key upgrades of the selected control unit affecting the operation of the vehicle terminal; the greater the impact of the selected control unit on the safety of the vehicle terminal, the larger the unit basic index corresponding to the selected control unit, so as to increase the probability of the selected control unit being a key control unit, and avoid key upgrades of the selected control unit affecting the safety of the vehicle terminal.

[0059] In some embodiments, the greater the impact index of the selected control unit on the operation of the target control unit, the greater the unit additional index corresponding to the selected control unit, so as to increase the probability of the selected control unit serving as a key control unit and avoid the selected control unit affecting the upgrade of the target control unit; the more times of communication between the selected control unit and the target control unit, the greater the unit additional index corresponding to the selected control unit, so as to increase the probability of the selected control unit serving as a key control unit and avoid the selected control unit affecting the upgrade of the target control unit.

[0060] In some embodiments, the sum of the unit basic index and the unit additional index is used as the unit total index corresponding to the selected control unit; if the unit total index corresponding to the selected control unit is greater than or equal to the preset index threshold, the upgrade importance of the selected control unit is set to important.

[0061] In this way, the influence of the candidate control unit on the target control unit is measured by the total unit index corresponding to the candidate control unit, so that the candidate control unit with a large influence on the target control unit is used as the new key control unit until the target control unit completes or exits the upgrade task, thereby realizing dynamic adjustment of the key control unit and improving the success probability of OTA upgrade.

[0062] Combination Figure 6 As shown, the embodiment of the present disclosure provides an electronic control unit upgrade method, comprising:

[0063] Step S601, obtaining a key control unit from each electronic control unit;

[0064] Among them, the key control units include the power domain control unit and the body domain control unit;

[0065] Step S602, in response to the upgrade task of the target control unit, sending an upgrade mode signal to each key control unit through the upgrade master control node;

[0066] Wherein, the target control unit includes any electronic control unit;

[0067] Step S603, determining whether each key control unit meets the preconditions corresponding to the upgrade mode by upgrading the master control node, if yes, jump to step S604, if not, jump to step S607;

[0068] Step S604, determining whether each key control unit enters the upgrade mode by upgrading the master control node, if yes, jump to step S605, if no, jump to step S607;

[0069] Step S605, controlling each electronic control unit to turn off the message sending function and turn on the signal receiving interface;

[0070] Step S606: receiving an upgrade mode signal through a signal receiving interface corresponding to the target control unit, triggering the target control unit to maintain the upgrade mode and execute the upgrade task.

[0071] Step S607, determining whether the response waiting time of the key control unit is less than or equal to a preset waiting threshold, if so, jump to step S608, if not, jump to step S610;

[0072] Step S608, determining whether the number of times the upgrade mode signal is sent to the key control unit is less than or equal to the preset upper limit, if yes, jump to step S609, if no, jump to step S610;

[0073] Step S609: Send an upgrade mode signal to the key control units that do not meet the preconditions through the upgrade master control node, and jump to step S603.

[0074] Step S610, exit OTA upgrade.

[0075] The electronic control unit upgrade method provided by the embodiment of the present disclosure determines the key control unit from the electronic control unit, responds to the upgrade task corresponding to the target control unit, controls each key control unit to enter the upgrade mode, controls each electronic control unit to turn off the message sending function and turn on the signal receiving interface, thereby triggering the target control unit to execute the upgrade task through the signal receiving interface corresponding to the target control unit, which has the following advantages:

[0076] First, compared with making all electronic control units enter the upgrade mode, only sending the upgrade mode signal to the key control units reduces the number of sending objects of the upgrade mode signal, thereby shortening the waiting time for the electronic control unit to respond to the message. At the same time, each electronic control unit is controlled to turn off the message sending function and turn on the signal receiving interface to avoid the influence of the bus signal caused by only making the key control unit enter the upgrade mode. Under the condition of shortening the waiting time for the electronic control unit to respond to the message, the upgrade task of the target control unit is realized, the upgrade time is shortened, and the probability of successful OTA upgrade is increased, thereby improving the OTA upgrade efficiency;

[0077] Second, the upgrade mode signal is sent to the key control unit together through the functional addressing method, which improves the transmission efficiency of the upgrade mode signal compared with the physical addressing method of sending one by one;

[0078] Third, the influence of the candidate control unit on the target control unit is measured by the total unit index corresponding to the candidate control unit, so that the candidate control unit with a large influence on the target control unit is used as the new key control unit until the target control unit completes or exits the upgrade task, thereby realizing dynamic adjustment of the key control unit and improving the success probability of OTA upgrade.

[0079] Combination Figure 7 As shown, an embodiment of the present disclosure provides an electronic control unit upgrade system, which is applied to a vehicle terminal. The vehicle terminal includes multiple electronic control units. The system includes an acquisition module 701, a sending module 702, a control module 703, and an upgrade module 704.

[0080] The acquisition module 701 is used to acquire key control units in the electronic control unit, wherein the key control units include a power domain control unit and a body domain control unit.

[0081] The sending module 702 is used to send an upgrade mode signal to each key control unit in response to the upgrade task of the target control unit, so that each key control unit enters the upgrade mode, wherein the target control unit includes any electronic control unit.

[0082] The control module 703 is used to control each electronic control unit to turn off the message sending function and turn on the signal receiving interface.

[0083] The upgrade module 704 is used to receive an upgrade mode signal through a signal receiving interface corresponding to the target control unit, trigger the target control unit to maintain the upgrade mode, and execute the upgrade task.

[0084] The electronic control unit upgrade system provided by the embodiment of the present disclosure is adopted. By determining the key control unit from the electronic control unit, in response to the upgrade task corresponding to the target control unit, each key control unit is controlled to enter the upgrade mode, and each electronic control unit is controlled to close the message sending function and open the signal receiving interface, so as to trigger the target control unit to perform the upgrade task through the signal receiving interface corresponding to the target control unit. In this way, on the one hand, compared with making all electronic control units enter the upgrade mode, only the upgrade mode signal is sent to the key control unit, which reduces the number of objects to which the upgrade mode signal is sent, thereby shortening the time for waiting for the electronic control unit to respond to the message. On the other hand, each electronic control unit is controlled to close the message sending function and open the signal receiving interface to avoid the influence of the bus signal caused by only making the key control unit enter the upgrade mode. Based on these two aspects, the upgrade task of the target control unit is realized while shortening the waiting time for the electronic control unit to respond to the message, shortening the upgrade time, and increasing the probability of successful OTA upgrade, thereby improving the OTA upgrade efficiency.

[0085] The embodiment of the present disclosure also provides a vehicle terminal, including: a processor and a memory; the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the vehicle terminal executes the above method.

[0086] Figure 8 The structure diagram of the computer system of the vehicle terminal suitable for implementing the embodiment of the present application is shown. It should be noted that: Figure 8 The computer system 800 of the vehicle terminal shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0087] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method in the above embodiment. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, ROM 802 and RAM 803 are connected to each other through a bus 804. The input / output (I / O) interface 805 is also connected to the bus 804.

[0088] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. The drive 180 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 180 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.

[0089] The embodiment of the present disclosure further provides a computer-readable storage medium on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above method.

[0090] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.

[0091] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable computer program is carried. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. A computer program contained on a computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0092] The vehicle terminal disclosed in this embodiment includes a processor, a memory, a transceiver and a communication interface. The memory and the communication interface are connected to the processor and the transceiver and complete communication with each other. The memory is used to store computer programs, the communication interface is used to communicate, and the processor and the transceiver are used to run computer programs so that the vehicle terminal executes each step of the above method.

[0093] The above description and accompanying drawings fully illustrate the embodiments of the present disclosure so that those skilled in the art can practice them. Other embodiments may include structural, logical, electrical, process and other changes. The embodiments represent possible changes only. Unless explicitly required, separate components and functions are optional, and the order of operation may vary. Parts and subsamples of some embodiments may be included in or replace parts and subsamples of other embodiments. Moreover, the words used in this application are only used to describe the embodiments and are not used to limit the claims. As used in the description of the embodiments and claims, unless the context clearly indicates, the singular forms of "a", "an" and "the" are intended to include plural forms as well. Similarly, the term "and / or" as used in this application refers to any and all possible combinations of listings containing one or more associated ones. In addition, when used in the present application, the term "comprise" and its variants "comprises" and / or comprising refer to the presence of a stated sub-sample, whole, step, operation, element, and / or component, but do not exclude the presence or addition of one or more other sub-samples, wholes, steps, operations, elements, components and / or groups of these. In the absence of further restrictions, the elements defined by the sentence "comprising a ..." do not exclude the presence of other identical elements in the process, method or device comprising the elements. In this article, each embodiment may focus on the differences from other embodiments, and the same and similar parts between the various embodiments may refer to each other. For the methods, products, etc. disclosed in the embodiments, if they correspond to the method part disclosed in the embodiments, then the relevant parts can refer to the description of the method part.

[0094] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software may depend on the specific application and design constraints of the technical solution. Technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present disclosure. Technicians can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0095] In the embodiments disclosed herein, the disclosed methods and products (including but not limited to devices, equipment, etc.) can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units can be only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some sub-samples can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The units described as separate components may or may not be physically separated, and the components displayed 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 units may be selected according to actual needs to implement this embodiment. In addition, each functional unit in the embodiment of the present disclosure may be integrated in a processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit.

[0096] The flowchart and block diagram in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiment of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in a different order from the order disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

Claims

1. A method for upgrading an electronic control unit, characterized in that: Applied to a vehicle terminal, the vehicle terminal includes a plurality of electronic control units, and the method includes: Acquire a key control unit from each of the electronic control units, wherein the key control unit includes a power domain control unit and a body domain control unit; In response to the upgrade task of the target control unit, an upgrade mode signal is sent to each of the key control units respectively, so that each of the key control units enters an upgrade mode, wherein the target control unit includes any electronic control unit; Controlling each of the electronic control units to turn off the message sending function and turn on the signal receiving interface; Receiving the upgrade mode signal through the signal receiving interface corresponding to the target control unit, triggering the target control unit to maintain the upgrade mode and execute the upgrade task; Sending an upgrade mode signal to each of the key control units respectively so that each of the key control units enters an upgrade mode, including that the vehicle terminal also includes an upgrade master control node; using the upgrade master control node to send an upgrade mode signal to each of the key control units respectively through functional addressing, wherein the key control unit responds to the upgrade mode signal, detects the precondition corresponding to the upgrade mode, and enters the upgrade mode if the key control unit meets the precondition.

2. The method according to claim 1, characterized in that The upgrade mode signal consists of the following fields: The addressing mode field is used to carry the function addressing identifier; A response mechanism field, used to carry a response mechanism identifier corresponding to the functional addressing, wherein the response mechanism identifier is set to require a response; The upgrade mode field is used to carry the upgrade mode identifier; The mode command field is used to carry the startup command corresponding to the upgrade mode identifier.

3. The method according to claim 1, characterized in that Controlling each of the electronic control units to close the message sending function and to open the signal receiving interface respectively includes: Using the upgrade master control node to determine whether each of the key control units meets the preconditions corresponding to the upgrade mode; If each of the key control units meets the preconditions corresponding to the upgrade mode, the upgrade master control node is used to query whether each of the key control units is in the upgrade mode through functional addressing; If all the key control units enter the upgrade mode, each of the electronic control units is controlled to close the message sending function and open the signal receiving interface.

4. The method according to claim 3, characterized in that The method further comprises: A first retry condition and a second retry condition are pre-set, wherein the first retry condition includes that the key control unit does not meet the precondition corresponding to the upgrade mode, or the key control unit is not in the upgrade mode, and the second retry condition includes that the response waiting time of the key control unit is less than or equal to a preset waiting threshold, wherein the response waiting time takes the time point when the upgrade master control node sends the upgrade mode signal to the key control unit as the starting point of the time; If the key control unit meets the first retry condition and the second retry condition, the upgrade mode signal is resent to the key control unit through the upgrade master control node until the number of times the upgrade mode signal is sent reaches a preset upper limit; If the number of times the upgrade mode signal is sent reaches a preset upper limit, the execution result of the upgrade task is determined to be a failure, and each of the key control units is controlled to exit the upgrade mode.

5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: The power domain control unit includes at least a vehicle controller, a motor controller, a DC converter, and a battery management system; The body domain control unit at least includes a body controller and an integrated circuit.

6. The method according to any one of claims 1 to 4, characterized in that: In response to the upgrade task of the target control unit, the method further includes: Determine any electronic control unit other than the power domain control unit and the body domain control unit as a control unit to be selected; Calculating according to preset internal factors corresponding to the control unit to be selected, obtaining a unit basic index corresponding to the control unit to be selected, wherein the preset internal factors include one or more of the number of historical failures of the control unit to be selected, the operation impact index of the control unit to be selected on the vehicle terminal, the economic impact index of the control unit to be selected on the vehicle terminal, and the safety impact index of the control unit to be selected on the vehicle terminal; Calculating according to a preset external factor between the candidate control unit and the target control unit to obtain a unit additional index corresponding to the candidate control unit, wherein the preset external factor includes one or more of an operation influence index of the candidate control unit on the target control unit and the number of communications between the candidate control unit and the target control unit; Calculating according to the unit basic index and the unit additional index to obtain a unit total index corresponding to the control unit to be selected, and determining the upgrade importance of the control unit to be selected according to a comparison result between the unit total index and a preset index threshold; If the upgrade importance of the candidate control unit is important, the candidate control unit is used as a new key control unit until the target control unit completes or exits the upgrade task.

7. An electronic control unit upgrade system, characterized in that: Applied to a vehicle terminal, the vehicle terminal includes a plurality of electronic control units, and the system includes: An acquisition module, used for acquiring a key control unit in the electronic control unit, wherein the key control unit includes a power domain control unit and a body domain control unit; A sending module, configured to send an upgrade mode signal to each of the key control units in response to an upgrade task of a target control unit, so that each of the key control units enters an upgrade mode, wherein the target control unit includes any electronic control unit; A control module, used to control each of the electronic control units to turn off the message sending function and turn on the signal receiving interface; An upgrade module, used to receive the upgrade mode signal through a signal receiving interface corresponding to the target control unit, trigger the target control unit to maintain the upgrade mode, and execute the upgrade task; The sending module sends an upgrade mode signal to each of the key control units in the following manner, so that each of the key control units enters the upgrade mode, and the vehicle terminal also includes an upgrade master control node; the upgrade master control node is used to send an upgrade mode signal to each of the key control units through functional addressing, wherein the key control unit responds to the upgrade mode signal, detects the preconditions corresponding to the upgrade mode, and enters the upgrade mode if the key control unit meets the preconditions.

8. A vehicle terminal, characterized in that: include: Processor and memory; The memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the vehicle terminal executes the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 6.