Vehicle ECU upgrade methods and devices

CN118394370BActive Publication Date: 2026-11-10BYD CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310212393.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2026-11-10
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

[0003]相关技术中,在对多个ECU升级的过程中,通常是对一个ECU升级完成后,对下一个ECU升级,该种升级方式的效率较低

Benefits of technology

[0004]本申请旨在至少在一定程度上解决相关技术中的技术问题之一。为此,本申请的一个目的在于提出一种车辆ECU的升级方法及装置,该方法中车载多媒体单元若接收到应答信息,则可以向目标ECU发送下一个升级信息,该应答信息是正在升级的目标ECU接收到一个升级信息后返回的。若未接收到应答信息,则可以向待升级的ECU发送升级信息。由此在等待正在升级的目标ECU回复应答信息的间隙,向待升级的ECU发送升级信息,实现了同时升级多个ECU,提高了对多个ECU升级的效率,缩短了多个ECU升级的时长。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394370B_ABST
    Figure CN118394370B_ABST
Patent Text Reader

Abstract

This application discloses a method and apparatus for upgrading a vehicle ECU. If the vehicle's in-vehicle multimedia unit receives a response message, it can send the next upgrade message to the target ECU. This response message is returned by the target ECU being upgraded after receiving an upgrade message. If no response message is received, the upgrade message can be sent to the ECU to be upgraded. Thus, by sending upgrade message to the ECU to be upgraded while waiting for a response message from the target ECU being upgraded, multiple ECUs can be upgraded simultaneously, improving the efficiency of upgrading multiple ECUs and shortening the upgrade time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computers, specifically to a method and apparatus for upgrading a vehicle ECU. Background Technology

[0002] Vehicles typically contain multiple electronic control units (ECUs), each capable of performing different functions. Furthermore, to update the functionality of these ECUs, over-the-air (OTA) technology is commonly used to upgrade them.

[0003] In related technologies, when upgrading multiple ECUs, the next ECU is usually upgraded only after the previous one is completed. This upgrade method is relatively inefficient. Summary of the Invention

[0004] This application aims to at least partially address one of the technical problems in related technologies. To this end, one objective of this application is to provide a method and apparatus for upgrading a vehicle ECU. In this method, if the in-vehicle multimedia unit receives a response message, it can send the next upgrade message to the target ECU, which is the response message returned by the target ECU being upgraded after receiving an upgrade message. If no response message is received, upgrade information can be sent to the ECU to be upgraded. Thus, by sending upgrade information to the ECU to be upgraded while waiting for a response message from the target ECU being upgraded, multiple ECUs can be upgraded simultaneously, improving the efficiency of upgrading multiple ECUs and shortening the upgrade time.

[0005] On the one hand, a method for upgrading a vehicle's ECU is provided, which is applied to a vehicle. The method includes:

[0006] If a response is received, the next upgrade message is sent to the target ECU of the vehicle. The response message is returned by the target ECU that is being upgraded after receiving an upgrade message.

[0007] If no response is received, upgrade information is sent to the ECU to be upgraded.

[0008] Optionally, multiple ECUs may be upgraded. Upgrade information is sent to the ECUs to be upgraded, including:

[0009] Prioritize multiple ECUs to be upgraded;

[0010] Send upgrade information to the highest priority ECU among multiple ECUs to be upgraded.

[0011] Optionally, multiple response messages may be sent; the next upgrade message may be sent to the target ECU of the vehicle, including:

[0012] Determine the priority of multiple target ECUs;

[0013] Following the order of priority from high to low among the multiple target ECUs, the system responds sequentially to the response information returned by each target ECU and sends the next upgrade information to each target ECU.

[0014] Optionally, if there are multiple first target ECUs with the same priority among the multiple target ECUs, then the next upgrade information is sent to the multiple first target ECUs in the order in which the response information is received from the multiple first target ECUs.

[0015] Optionally, the method also includes:

[0016] If the message queue is empty, it means that no response information has been received. The message queue is used to store response information.

[0017] If the message queue is not empty, then it is confirmed that a response message has been received.

[0018] Optionally, the method also includes:

[0019] If a response is received from the target ECU, the response is stored in the message queue.

[0020] Optionally, the vehicle also includes an in-vehicle multimedia unit and a main control unit; before receiving a response from the target ECU, the method further includes:

[0021] If the main control unit simultaneously receives the response information returned by the target ECU and the upgrade information of the reference ECU sent by the vehicle multimedia unit, it sends the response information returned by the target ECU to the vehicle multimedia unit. After sending the response information returned by the target ECU to the vehicle multimedia unit, it sends the upgrade information to the reference ECU, which includes the ECU to be upgraded or the target ECU.

[0022] Optionally, the method also includes:

[0023] Receive upgrade packages sent by the server, which include the upgrade order for multiple ECUs;

[0024] The priority of multiple ECUs is determined based on the upgrade sequence of multiple ECUs.

[0025] On the other hand, an upgrade device for a vehicle ECU is provided, applicable to a vehicle, the device comprising:

[0026] The detection module is used to detect whether a response message has been received. The response message is returned by the target ECU being upgraded after receiving an upgrade message.

[0027] The sending module is used to send the next upgrade information to the target ECU if a response is received, and to send the upgrade information to the ECU to be upgraded if no response is received.

[0028] In another aspect, a computer-readable storage medium is provided, on which an upgrade program for a vehicle ECU is stored, wherein when the upgrade program for the vehicle ECU is executed by a processor, the vehicle ECU upgrade method described in the above embodiments is implemented.

[0029] On another front, a vehicle is provided, comprising an in-vehicle multimedia unit and an ECU, the in-vehicle multimedia unit being used for:

[0030] If a response is received, the next upgrade message is sent to the target ECU. The response message is returned by the target ECU that is being upgraded after receiving an upgrade message.

[0031] If no response is received, upgrade information is sent to the ECU to be upgraded.

[0032] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0033] Figure 1 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application;

[0034] Figure 2 This is a flowchart of a vehicle ECU upgrade method provided in an embodiment of this application;

[0035] Figure 3 This is a flowchart of another vehicle ECU upgrade method provided in the embodiments of this application;

[0036] Figure 4 This is a schematic diagram of the structure of a vehicle provided in an embodiment of this application;

[0037] Figure 5 This application provides an embodiment of a vehicle ECU upgrade device;

[0038] Figure 6 This is another vehicle ECU upgrade device provided in the embodiments of this application. Detailed Implementation

[0039] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0040] Figure 1 This is a structural schematic diagram of a vehicle provided in an embodiment of this application, such as... Figure 1 As shown, the vehicle may include an in-vehicle multimedia unit 10, a main control unit 20, and an ECU. The main control unit may be a microcontroller unit (MCU). Figure 1 Five ECUs, ECU1 to ECU5, are shown.

[0041] The main control unit 20 is connected to the in-vehicle multimedia unit 10 and multiple ECUs. Optionally, the main control unit 20 can be connected to multiple ECUs via a bus, which can be a controller area network (CAN) or a variable rate CAN (CAN with flexible data rate, CANFD). The main control unit 20 is used to send upgrade information sent by the in-vehicle multimedia unit 10 to the corresponding ECU, and to send the response information returned by the ECU to the in-vehicle multimedia unit 10.

[0042] Figure 2 This is a flowchart illustrating a method for upgrading a vehicle ECU according to an embodiment of this application. This method can be applied to... Figure 1 The vehicles shown, such as Figure 2 As shown, the method includes:

[0043] Step 201: Check if a response message has been received.

[0044] In this embodiment, during the ECU upgrade process, the in-vehicle multimedia unit can periodically or in real-time detect whether it has received a response message. This response message is returned by the target ECU being upgraded after receiving an upgrade message. If the in-vehicle multimedia unit receives the response message, it can proceed to step 202; otherwise, it can proceed to step 203.

[0045] Step 202: Send the next upgrade information to the target ECU.

[0046] If the vehicle multimedia unit receives a response, it can send the next upgrade information to the target ECU.

[0047] Step 203: Send upgrade information to the ECU to be upgraded.

[0048] If the in-vehicle multimedia unit does not receive a response, it can send upgrade information to the ECU to be upgraded.

[0049] In summary, this application provides a method for upgrading a vehicle ECU. In this method, if the in-vehicle multimedia unit receives a response message, it can send the next upgrade message to the target ECU. This response message is returned by the target ECU being upgraded after receiving an upgrade message. If no response message is received, upgrade information can be sent to the ECU to be upgraded. Thus, by sending upgrade information to the ECU to be upgraded while waiting for a response message from the target ECU being upgraded, multiple ECUs can be upgraded simultaneously, improving the efficiency of upgrading multiple ECUs and shortening the upgrade time.

[0050] Figure 3 This is a flowchart of another vehicle ECU upgrade method provided in this application embodiment, which can be applied to... Figure 1 The vehicles shown, such as Figure 3 As shown, the method may include:

[0051] Step 301: The vehicle multimedia unit receives the upgrade package sent by the server.

[0052] In this embodiment of the application, the in-vehicle multimedia unit can receive an upgrade package sent by the server, which may include the upgrade order of multiple ECUs.

[0053] After the vehicle is powered on, the onboard multimedia unit can obtain information from all ECUs and send this information to the server. This ECU information may include at least the current version number of the ECU.

[0054] After receiving information from all ECUs, the server determines whether each ECU requires an upgrade based on its current version number. It then generates multiple upgrade packages for the ECUs requiring upgrades and sends network links to download these packages to the in-vehicle multimedia unit (MVN). Upon receiving these network links, the MVN can download the upgrade packages for each ECU. Each upgrade package may include upgrade data frames and version number information for each ECU, with the preset version number information potentially including a preset version number range.

[0055] Optionally, if the server determines that the current version number of the ECU is within a preset version number range, then the ECU is determined to be an ECU that needs to be upgraded. If the current version number of the ECU is outside the preset version number range, then the ECU is determined not to need to be upgraded.

[0056] Optionally, after obtaining the upgrade packages of multiple ECUs to be upgraded, the vehicle multimedia unit can parse the upgrade package into CAN / CANFD message format.

[0057] Step 302: The vehicle multimedia unit determines the priority of the multiple ECUs based on their upgrade order.

[0058] The in-vehicle multimedia unit can determine the priority of multiple ECUs based on the upgrade order sent by the server. The priority of the multiple ECUs is positively correlated with their upgrade order.

[0059] For example, if the server sends multiple ECUs including ECU1 to ECU5, and the upgrade order of ECU1 to ECU5 is ECU1, ECU2, ECU3, ECU4 and ECU5 respectively, then the priority of ECU1 to ECU5 is ECU1, ECU2, ECU3, ECU4 and ECU5 respectively.

[0060] Step 303: If the vehicle multimedia unit detects that the message queue is empty, it sends upgrade information to the ECU to be upgraded.

[0061] After receiving the upgrade package from the server, the in-vehicle multimedia unit can periodically or in real-time check whether it has received a response message. If no response message is received, it can send upgrade information to the ECU to be upgraded, and then the in-vehicle multimedia unit can continue to check whether it has received a response message.

[0062] The response information is returned by the target ECU being upgraded after receiving an upgrade message. The upgrade message sent to the ECU to be upgraded can be a version number retrieval request, which instructs the ECU to return its current version number. After receiving the version number retrieval request, the ECU to be upgraded can return a response message to the in-vehicle multimedia unit, which can be the current version number. Furthermore, after sending the upgrade message to the ECU to be upgraded, the in-vehicle multimedia unit can mark the ECU to be upgraded as the target ECU for upgrade.

[0063] Optionally, the in-vehicle multimedia unit can retrieve response information from a message queue used to store response information returned by the target ECU being upgraded. If the message queue is empty, it can be determined that no response information has been received.

[0064] In this embodiment, there can be multiple ECUs to be upgraded. The in-vehicle multimedia unit can determine the priority of the multiple ECUs to be upgraded and send upgrade information to the ECU with the highest priority among the multiple ECUs to be upgraded. Optionally, the in-vehicle multimedia unit can determine the priority of the multiple ECUs to be upgraded based on the priority of the multiple ECUs.

[0065] For example, suppose the priorities of ECU1 to ECU5 are ECU1, ECU2, ECU3, ECU4 and ECU5 respectively. There are multiple ECUs to be upgraded, including ECU3, ECU4 and ECU5. If the vehicle multimedia unit determines that the message queue is empty, it can send upgrade information to ECU3, which has the highest priority among ECU3, ECU4 and ECU5. This upgrade information is a version number retrieval request.

[0066] Optionally, if there are multiple ECUs with the highest priority among the multiple ECUs to be upgraded, the in-vehicle multimedia unit can randomly select one of the multiple ECUs with the highest priority and send the upgrade information to that ECU.

[0067] In this embodiment of the application, the in-vehicle multimedia unit can send upgrade information to the ECU to be upgraded through the main control unit, and the ECU to be upgraded can return response information to the in-vehicle multimedia unit through the main control unit.

[0068] Optionally, the main control unit can send upgrade information to the ECU to be upgraded via the serial peripheral interface (SPI) bus, and return response information to the in-vehicle multimedia unit via the same SPI bus.

[0069] If the main control unit simultaneously receives the response information from the target ECU and the upgrade information from the reference ECU sent by the in-vehicle multimedia unit, it can first send the response information from the target ECU to the in-vehicle multimedia unit, and then send the upgrade information to the reference ECU after sending the response information from the target ECU to the in-vehicle multimedia unit, thereby saving upgrade time to the greatest extent possible. The reference ECU may include either the ECU to be upgraded or the target ECU.

[0070] Furthermore, if the main control unit successfully sends the upgrade information to the ECU to be upgraded, it can also send a first notification message to the in-vehicle multimedia unit, which indicates that the upgrade information has been sent to the ECU to be upgraded. If the upgrade information is not successfully sent to the ECU to be upgraded, a second notification message can be sent to the in-vehicle multimedia unit, which indicates that the upgrade information has not been sent to the ECU to be upgraded.

[0071] If the in-vehicle multimedia unit receives the first notification message, it can continue to check whether a response message has been received. If a second notification message is received, it can resend the upgrade information to the ECU to be upgraded via the main control unit.

[0072] Step 304: If the vehicle multimedia unit detects that the message queue is not empty, it sends the next upgrade information to the target ECU.

[0073] If the in-vehicle multimedia unit receives a response message, it can determine that it has received a response message from the target ECU being upgraded, and therefore can send the next upgrade message to that target ECU. Optionally, if the multimedia unit detects that the message queue is not empty, it can determine that it has received a response message from the target ECU being upgraded.

[0074] The message queue can contain multiple response messages, meaning multiple target ECUs have returned response information. The in-vehicle multimedia unit can determine the priority of these multiple target ECUs and then, in descending order of priority, respond sequentially to the response messages returned by each target ECU, sending the next upgrade message to each target ECU. The in-vehicle multimedia unit can determine the priority of these multiple target ECUs based on their individual priorities.

[0075] Furthermore, after the in-vehicle multimedia unit sends the next upgrade information to a target ECU in response to the response information returned by that target ECU, it can continue to send the next upgrade information to the next target ECU in response to the response information returned by that target ECU, without waiting for the target ECU to return the next response information.

[0076] In this embodiment of the application, if there are multiple first target ECUs with the same priority among multiple target ECUs, the next upgrade information can be sent to multiple first target ECUs in the order in which the response information returned by the multiple first target ECUs is received.

[0077] If the main control unit successfully sends the next upgrade information to the target ECU, it can also send a first notification message to the in-vehicle multimedia unit, indicating that the next upgrade information has been sent to the target ECU. If the next upgrade information is not successfully sent to the target ECU, a second notification message can be sent to the in-vehicle multimedia unit, indicating that the next upgrade information has not been sent to the target ECU.

[0078] If the in-vehicle multimedia unit receives the first notification message, it can respond to the first notification message and continue to send the next upgrade information to the next target ECU through the main control unit. If it receives the second notification message, it can respond to the second notification message and resend the next upgrade information to the target ECU through the main control unit.

[0079] In this embodiment of the application, for each target ECU, the in-vehicle multimedia unit can determine the next upgrade information to be sent to the target ECU in response to the response information returned by the target ECU.

[0080] If the response information is the current version number of the target ECU, the in-vehicle multimedia unit can verify the current version number. If the verification of the current version number is successful, the next upgrade information sent by the in-vehicle multimedia unit to the target ECU can be a mode adjustment command. This mode adjustment command is used to instruct the target ECU to adjust the current mode to upgrade mode, in which the target ECU does not perform other operations.

[0081] Accordingly, after receiving the next upgrade information, the target ECU can adjust its current mode to upgrade mode and then send a mode prompt message to the vehicle multimedia unit. This mode prompt message is used to indicate that the target ECU has entered upgrade mode.

[0082] If the response information is a mode prompt, the in-vehicle multimedia unit, upon receiving this response, can determine that the next upgrade information to be sent to the target ECU is the first upgrade data frame. Correspondingly, after receiving the first upgrade data frame, the target ECU can send a data acquisition request to the in-vehicle multimedia unit, which instructs the multimedia unit to send the next upgrade data frame.

[0083] If the response is a data acquisition request, after receiving the request, if the in-vehicle multimedia unit has already sent all upgrade data frames to the target ECU, the next upgrade message sent to the target ECU can be a data verification request. This data verification request instructs the target ECU to verify whether all received data frames are correct. If only some upgrade data frames have been sent to the target ECU, the response information determines whether to send the next upgrade data frame to the target ECU.

[0084] Accordingly, after receiving a data verification request, if the target ECU fails to verify all received upgrade data frames, it can send a verification failure message to the in-vehicle multimedia unit. If it successfully verifies all received upgrade data frames, it can send a verification success message to the in-vehicle multimedia unit.

[0085] If the response is a successful verification message or a failed verification message, the vehicle multimedia unit can determine that the upgrade of the target ECU is complete, and therefore stops sending upgrade information to the target ECU.

[0086] In this embodiment of the application, if the vehicle multimedia unit receives the response information of the target ECU, it can store the response information of the target ECU in the message queue, and delete the response information of the target ECU after sending the next upgrade information to the target ECU in response to the response information.

[0087] In this embodiment, after sending upgrade information to a reference ECU, if the in-vehicle multimedia unit does not receive a response from the reference ECU within a preset time period, it can resend the upgrade information to the reference ECU. Optionally, if no response is received, and no response is received from the reference ECU within the preset time period, the in-vehicle multimedia unit can determine the priorities of the ECU to be upgraded and the reference ECU. If the priority of the reference ECU is higher than or equal to the priority of the ECU to be upgraded, the upgrade information can be resent to the reference ECU. If the priority of the reference ECU is lower than the priority of the ECU to be upgraded, the upgrade information can be sent to the ECU to be upgraded.

[0088] If a response is received, and no response is received from the reference ECU within a preset time period, the in-vehicle multimedia unit can determine the priorities of the target ECU and the reference ECU. If the priority of the reference ECU is higher than or equal to the priority of the target ECU, the upgrade information can be resent to the reference ECU. If the priority of the reference ECU is lower than the priority of the target ECU, the next upgrade information can be sent to the target ECU.

[0089] During the upgrade process of multiple ECUs, the vehicle multimedia unit can send upgrade information to the second ECU while waiting for the first ECU to return a response, and then send upgrade information to the third ECU while waiting for the first and second ECUs to return response information. This achieves the goal of upgrading multiple ECUs simultaneously and utilizes the fragmented time while waiting for the ECUs to reply to the vehicle multimedia unit, thereby reducing the upgrade time.

[0090] In summary, this application provides a method for upgrading a vehicle ECU. In this method, if the in-vehicle multimedia unit receives a response message, it can send the next upgrade message to the target ECU. This response message is returned by the target ECU after receiving an upgrade message. If no response message is received, upgrade information can be sent to the ECU to be upgraded. Thus, by sending upgrade information to the ECU to be upgraded while waiting for a response message from the target ECU, multiple ECUs can be upgraded simultaneously, improving the efficiency of ECU upgrades and shortening the upgrade time.

[0091] refer to Figure 1 The in-vehicle multimedia unit 10 is used for:

[0092] If a response is received, the next upgrade message is sent to the target ECU. The response message is returned by the target ECU that is being upgraded after receiving an upgrade message.

[0093] If no response is received, upgrade information is sent to the ECU to be upgraded.

[0094] Optionally, multiple ECUs may be upgraded, along with 10 in-vehicle multimedia units, for:

[0095] Prioritize multiple ECUs to be upgraded.

[0096] Send upgrade information to the highest priority ECU among multiple ECUs to be upgraded.

[0097] Optionally, multiple response messages are provided by the in-vehicle multimedia unit 10 for:

[0098] Determine the priority of multiple target ECUs.

[0099] Following the order of priority from high to low among the multiple target ECUs, the system responds sequentially to the response information returned by each target ECU and sends the next upgrade information to each target ECU.

[0100] Optionally, the in-vehicle multimedia unit 10 is also used for:

[0101] If there are multiple target ECUs with the same priority, then the next upgrade information is sent to the multiple target ECUs in the order in which the response information is received from the multiple target ECUs.

[0102] Optionally, the in-vehicle multimedia unit 10 is also used for:

[0103] If the message queue is empty, it indicates that no response information has been received from the target ECU. The message queue is used to store response information.

[0104] If the message queue is not empty, it is determined that the response information returned by the target ECU has been received.

[0105] Optionally, the in-vehicle multimedia unit 10 is also used for:

[0106] If a response is received from the target ECU, the response is stored in the message queue.

[0107] Optionally, the vehicle also includes a main control unit 20 and an in-vehicle multimedia unit 10, which are used to send upgrade information to a reference ECU through the main control unit 20 and to receive response information returned by the target ECU through the main control unit 20. The reference ECU may be the ECU to be upgraded or the target ECU.

[0108] The main control unit 20 is also used for:

[0109] If the vehicle multimedia unit 10 receives the upgrade information from the reference ECU and the response information from the target ECU, the vehicle multimedia unit 10 sends the response information from the target ECU to the vehicle multimedia unit 10, and after sending the response information from the target ECU to the vehicle multimedia unit 10, it sends the upgrade information to the reference ECU.

[0110] Optionally, the in-vehicle multimedia unit 10 is also used for:

[0111] Receive the upgrade package sent by the server. The upgrade package includes the upgrade order of multiple ECUs.

[0112] The priority of multiple ECUs is determined based on the upgrade sequence of multiple ECUs.

[0113] In summary, this application provides a vehicle in which the in-vehicle multimedia unit can send the next upgrade information to the target ECU if it receives a response message. This response message is returned by the target ECU being upgraded after receiving an upgrade message. If no response message is received, upgrade information can be sent to the ECU to be upgraded. Thus, by sending upgrade information to the ECU to be upgraded while waiting for the target ECU to reply, multiple ECUs can be upgraded simultaneously, improving the efficiency of ECU upgrades and shortening the upgrade time.

[0114] This application provides a computer-readable storage medium storing an upgrade program for a vehicle ECU. When the upgrade program for the vehicle ECU is executed by a processor, it implements the vehicle ECU upgrade method described in the above embodiments.

[0115] Figure 4 This application provides a schematic diagram of a vehicle structure, as shown in the embodiment. Figure 4As shown, the vehicle may include a memory 401, a processor 402, and an upgrade program for the vehicle ECU stored in the memory 401 and executable on the processor 402. When the processor 402 executes the upgrade program for the vehicle ECU, it implements the vehicle ECU upgrade method described in the above embodiments.

[0116] Figure 5 This is a block diagram of a vehicle ECU upgrade device provided in an embodiment of this application, applied to... Figure 1 The vehicles shown, such as Figure 5 As shown, the device may include:

[0117] The detection module 501 is used to detect whether a response message has been received.

[0118] The sending module 502 is used to send the next upgrade information to the target ECU of the vehicle if a response information is received. The response information is returned by the target ECU being upgraded after receiving an upgrade information. If no response information is received, the upgrade information is sent to the ECU to be upgraded.

[0119] Optionally, multiple ECUs may be to be upgraded, and the sending module 502 is used for:

[0120] Prioritize multiple ECUs to be upgraded.

[0121] Send upgrade information to the highest priority ECU among multiple ECUs to be upgraded.

[0122] Optionally, there are multiple response messages, and the sending module 502 is used for:

[0123] Determine the priority of multiple target ECUs.

[0124] Following the order of priority from high to low among the multiple target ECUs, the system responds sequentially to the response information returned by each target ECU and sends the next upgrade information to each target ECU.

[0125] Optionally, the transmitting module 502 is used for:

[0126] If there are multiple target ECUs with the same priority, then the next upgrade information is sent to the multiple target ECUs in the order in which the response information is received from the multiple target ECUs.

[0127] Optionally, the detection module 501 is used for:

[0128] If the message queue is empty, it indicates that no response information has been received from the target ECU. The message queue is used to store response information.

[0129] If the message queue is not empty, it is determined that the response information returned by the target ECU has been received.

[0130] Optional, see reference Figure 6 The device may also include: a storage module 503, used for:

[0131] If a response is received from the target ECU, the response is stored in the message queue.

[0132] Optionally, the transmitting module 502 is used for:

[0133] If the system receives a response from the target ECU and an upgrade message from the reference ECU sent by the in-vehicle multimedia unit, it sends the response from the target ECU to the in-vehicle multimedia unit. After sending the response from the target ECU to the in-vehicle multimedia unit, it sends the upgrade message to the reference ECU, which may be the ECU to be upgraded or the target ECU.

[0134] refer to Figure 6 The device may also include:

[0135] The receiving module 504 is used to receive the upgrade package sent by the server. The upgrade package includes the upgrade order of multiple ECUs.

[0136] The determination module 505 is used to determine the priority of multiple ECUs based on the upgrade order of multiple ECUs.

[0137] In summary, this application provides a device for upgrading a vehicle ECU. If a response is received, the device can send the next upgrade information to the target ECU, which is the response returned by the target ECU after receiving an upgrade message. If no response is received, the device can send upgrade information to the ECU to be upgraded. Thus, by sending upgrade information to the ECU to be upgraded while waiting for a response from the target ECU, multiple ECUs can be upgraded simultaneously, improving the efficiency of upgrading multiple ECUs and shortening the upgrade time.

[0138] It should be noted that the logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Alternatively, the computer-readable medium may be paper or other suitable media on which the program can be printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in a computer memory.

[0139] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0140] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0141] Furthermore, the terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying relative importance, or implicitly specifying the number of technical features indicated in this embodiment. Therefore, features defined with terms such as "first" and "second" in the embodiments of this application can explicitly or implicitly indicate that the embodiment includes at least one of those features. In the description of this application, the word "multiple" means at least two or more, such as two, three, four, etc., unless otherwise explicitly and specifically defined in the embodiments.

[0142] In this application, unless otherwise explicitly specified or limited in the embodiments, the terms "installation," "connection," "joining," and "fixing" appearing in the embodiments should be interpreted broadly. For example, a connection can be a fixed connection, a detachable connection, or an integral part; it can also be a mechanical connection, an electrical connection, etc. Of course, it can also be a direct connection, or an indirect connection through an intermediate medium, or it can be the internal communication between two components, or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific implementation.

[0143] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A method for upgrading a vehicle ECU, characterized in that, Applied to a vehicle, the vehicle including an in-vehicle multimedia unit and a main control unit; the method includes: If the in-vehicle multimedia unit receives a response message, it sends the next upgrade message to the target ECU of the vehicle through the main control unit. The response message is returned by the target ECU that is being upgraded after receiving an upgrade message. If the in-vehicle multimedia unit does not receive the response information, it sends upgrade information to the ECU to be upgraded through the main control unit. The ECU to be upgraded is not the same ECU as the target ECU. The method further includes: If the main control unit simultaneously receives the response information returned by the target ECU and the upgrade information sent by the vehicle multimedia unit, it sends the response information returned by the target ECU to the vehicle multimedia unit, and after sending the response information returned by the target ECU to the vehicle multimedia unit, it sends the upgrade information to a reference ECU, wherein the reference ECU includes the ECU to be upgraded or the target ECU.

2. The method according to claim 1, characterized in that, The ECUs to be upgraded are multiple, and the main control unit sends upgrade information to the ECUs to be upgraded, including: Determine the priority of the multiple ECUs to be upgraded; The main control unit sends the upgrade information to the highest priority ECU among the multiple ECUs to be upgraded.

3. The method according to claim 1, characterized in that, The response information is multiple; the main control unit sends the next upgrade information to the target ECU of the vehicle, including: Determine the priority of the multiple target ECUs; In accordance with the priority order of the multiple target ECUs from high to low, the main control unit sequentially responds to the response information returned by the multiple target ECUs and sends the next upgrade information to the multiple target ECUs.

4. The method according to claim 3, characterized in that, The method further includes: If there are multiple first target ECUs with the same priority among the multiple target ECUs, then the main control unit will respond to the response information returned by the multiple first target ECUs in the order of receiving the response information returned by the multiple first target ECUs, and send the next upgrade information to the multiple first target ECUs through the multiple first target ECUs.

5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If the message queue is empty, the in-vehicle multimedia unit determines that it has not received the response information, and the message queue is used to store the response information; If the message queue is not empty, the in-vehicle multimedia unit determines that it has received the response information.

6. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If the vehicle multimedia unit receives a response from the target ECU, it stores the response from the target ECU in the message queue.

7. The method according to any one of claims 1 to 4, characterized in that, The method further includes: The in-vehicle multimedia unit receives an upgrade package sent by the server, the upgrade package including the upgrade sequence of multiple ECUs; The in-vehicle multimedia unit determines the priority of the multiple ECUs based on their upgrade order.

8. A computer-readable storage medium, characterized in that, It stores an upgrade program for a vehicle ECU, which, when executed by a processor, implements the vehicle ECU upgrade method according to any one of claims 1 to 7.

9. A vehicle, characterized in that, The vehicle includes an in-vehicle multimedia unit, an ECU, and a main control unit. The in-vehicle multimedia unit is used for: If a response is received, the main control unit sends the next upgrade information to the target ECU. The response information is returned by the target ECU, which is being upgraded, after receiving an upgrade information. If the response information is not received, the main control unit sends upgrade information to the ECU to be upgraded, wherein the ECU to be upgraded is not the same ECU as the target ECU. The main control unit is configured to, if simultaneously receiving a response from the target ECU and an upgrade message from the vehicle multimedia unit, send the response from the target ECU to the vehicle multimedia unit, and after sending the response from the target ECU to the vehicle multimedia unit, send the upgrade message to a reference ECU, wherein the reference ECU includes either the ECU to be upgraded or the target ECU.

Citation Information

Patent Citations

  • Data transmission method and related equipment

    CN111309347A

  • Data transmission method and system, electronic equipment and storage medium

    CN114124842A