Ota upgrade control method and device, electronic equipment and autonomous vehicle

By setting up multiple interfaces in the vehicle to support data processing methods with different transmission protocols, and receiving and upgrading upgrade packages from the over-the-air (OTA) control device, the upgrade difficulties caused by differences in vehicle protocols are resolved, achieving adaptive and efficient OTA upgrade processing.

CN114064091BActive Publication Date: 2026-05-12APOLLO INTELLIGENT DRIVING (BEIJING) TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
APOLLO INTELLIGENT DRIVING (BEIJING) TECHNOLOGY CO LTD
Filing Date
2021-12-27
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

How to adapt to the different transmission protocols supported by the over-the-air (OTA) download control devices of different vehicles, avoid the impact of replacing the OTA upgrade control device or changing the vehicle network topology, and improve the upgrade processing efficiency.

Method used

The system receives upgrade packets transmitted by the over-the-air download control device based on the target transmission protocol through the target interface among multiple interfaces, and upgrades the sub-modules corresponding to the upgrade packets based on the corresponding data processing methods, ensuring that the interface establishes a connection with the over-the-air download control device and supports different transmission protocol processing methods.

Benefits of technology

It improves adaptability and upgrade processing efficiency, avoiding the impact caused by different transmission protocols supported by the over-the-air download control devices of different vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114064091B_ABST
    Figure CN114064091B_ABST
Patent Text Reader

Abstract

The present disclosure provides over-the-air (OTA) upgrade control methods, devices, systems, electronic devices, storage media and autonomous vehicles, relating to the field of autonomous driving, and in particular to autonomous driving operating systems and OTA upgrade of autonomous driving software. The OTA upgrade control method specifically comprises: receiving, through a target interface of a plurality of interfaces, an upgrade package transmitted by an over-the-air control device based on a target transmission protocol; wherein the plurality of interfaces are used to establish a connection with the over-the-air control device, and different interfaces of the plurality of interfaces correspond to different data processing modes of different transmission protocols; and upgrading a sub-module corresponding to the upgrade package based on the data processing mode of the target transmission protocol corresponding to the target interface. The above method can improve adaptability and ensure the processing efficiency of the upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of autonomous driving, and in particular to the field of autonomous driving operating systems and OTA (Over-The-Air) upgrades of autonomous driving software. Background Technology

[0002] With the development of computer technology, artificial intelligence technologies such as intelligent transportation are being applied more and more widely, enabling vehicles to possess more intelligent functions. As the number of functional software programs in vehicles increases, the demand for upgrades is also growing daily. However, how to adapt to the upgrade needs of various types of vehicles has become a problem that needs to be solved. Summary of the Invention

[0003] This disclosure provides an OTA upgrade control method, device, electronic device, storage medium, and autonomous vehicle.

[0004] According to a first aspect of this disclosure, an OTA upgrade control method is provided, comprising:

[0005] The upgrade packet transmitted by the over-the-air download control device based on the target transmission protocol is received through the target interface among multiple interfaces; wherein, the multiple interfaces are used to establish a connection with the over-the-air download control device, and different interfaces among the multiple interfaces correspond to different data processing methods of the transmission protocol;

[0006] Based on the data processing method of the target transmission protocol corresponding to the target interface, the sub-module corresponding to the upgrade package is upgraded.

[0007] According to a second aspect of this disclosure, an OTA upgrade control device is provided, comprising:

[0008] The transmission module is used to receive upgrade packets transmitted by the over-the-air download control device based on a target transmission protocol through a target interface among multiple interfaces; wherein, the multiple interfaces are used to establish a connection with the over-the-air download control device, and different interfaces among the multiple interfaces correspond to different data processing methods of the transmission protocol;

[0009] The upgrade module is used to upgrade the sub-modules corresponding to the upgrade package based on the data processing method of the target transmission protocol corresponding to the target interface.

[0010] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0011] At least one processor; and

[0012] The memory is communicatively connected to the at least one processor; wherein,

[0013] The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the aforementioned OTA upgrade control method of the first aspect.

[0014] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing the computer to perform the aforementioned method.

[0015] According to a fifth aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the aforementioned method.

[0016] According to a sixth aspect of this disclosure, an autonomous driving vehicle is provided, the vehicle including electronic equipment from one of the above-described embodiments.

[0017] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description.

[0018] The solution provided in this embodiment receives upgrade packages sent by the over-the-air (OTA) control device based on a target transmission protocol through a target interface among multiple interfaces. Then, based on the data processing method of the corresponding target transmission protocol, the sub-module corresponding to the upgrade package is upgraded. Since all multiple interfaces can establish connections with the OTA control device, and each interface corresponds to a different data processing method of the transmission protocol, the upgrade process can be completed according to the data processing method corresponding to the target transmission protocol used by the OTA control device. This avoids the impact of changing the corresponding OTA upgrade control device or changing the vehicle's network topology due to different transmission protocols supported by different vehicle OTA control devices, thus improving adaptability and ensuring upgrade processing efficiency. Attached Figure Description

[0019] The accompanying drawings are provided to better understand this solution and do not constitute a limitation of this disclosure. Wherein:

[0020] Figure 1 This is a flowchart illustrating the OTA upgrade control method according to an embodiment of the present disclosure;

[0021] Figure 2 This is a schematic diagram of the network topology of a single-core ECU according to an embodiment of this disclosure;

[0022] Figure 3 This is a schematic flowchart of an OTA upgrade control method for a single-core ECU according to an embodiment of the present disclosure;

[0023] Figure 4This is another schematic flowchart of the OTA upgrade control method for a single-core ECU according to an embodiment of the present disclosure;

[0024] Figure 5 This is a schematic diagram of the network topology of a dual-core ECU according to an embodiment of this disclosure;

[0025] Figure 6 This is a schematic flowchart of an OTA upgrade control method for a dual-core ECU according to an embodiment of the present disclosure;

[0026] Figure 7 This is another schematic flowchart of the OTA upgrade control method for a dual-core ECU according to an embodiment of the present disclosure;

[0027] Figure 8 This is a schematic diagram of the composition structure of an OTA upgrade control device according to an embodiment of the present disclosure;

[0028] Figure 9 This is a schematic diagram of another component structure of the OTA upgrade control device according to an embodiment of the present disclosure;

[0029] Figure 10 This is a block diagram of an electronic device used to implement the OTA upgrade control method of the embodiments of this disclosure. Detailed Implementation

[0030] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0031] The first aspect of this disclosure provides an OTA upgrade control method. Please refer to [link / reference]. Figure 1 ,include:

[0032] Step S101: Receive the upgrade packet transmitted by the over-the-air download control device based on the target transmission protocol through the target interface among multiple interfaces; wherein, the multiple interfaces are used to establish a connection with the over-the-air download control device, and different interfaces among the multiple interfaces correspond to different data processing methods of the transmission protocol;

[0033] Step S102: Based on the data processing method of the target transmission protocol corresponding to the target interface, upgrade the sub-module corresponding to the upgrade package.

[0034] The above-mentioned OTA upgrade control method can be executed by an OTA upgrade control device, which can be installed or set in the vehicle; more specifically, the OTA upgrade control device can be installed or set in the vehicle's electronic control unit (ECU); wherein, the vehicle can be any type of vehicle, such as a non-hybrid vehicle, an electric vehicle, a fuel cell vehicle or other types of vehicles, and this embodiment does not exhaustively list them.

[0035] The over-the-air (OTA) download control device can be installed in any intelligent component such as a gateway, a T-BOX (Telematics BOX), a HUT (Head Unit), or an IVI (In-Vehicle Infotainment) in the vehicle where the aforementioned OTA upgrade control device is located.

[0036] The multiple interfaces can simultaneously maintain a physical connection with the over-the-air download control device. The number of the multiple interfaces can be two, three, more, or fewer, depending on the actual configuration.

[0037] The multiple interfaces correspond one-to-one with the multiple transmission protocols. Different interfaces correspond to different data processing methods of the transmission protocols. The multiple transmission protocols can be configured according to actual needs. For example, the multiple transmission protocols may include: DoIP (Diagnostic Communication over Internet Protocol), CAN (Controller Area Network) protocol, and FlexRay, an automotive communication protocol developed by the FlexRay Alliance. It should be understood that this is only an illustrative example and not intended to be limiting.

[0038] For example, the number of the plurality of interfaces is 2, and the plurality of interfaces includes interface 1 and interface 2, wherein interface 1 corresponds to the data processing method of the first transmission protocol; interface 2 corresponds to the data processing method of the second transmission protocol; wherein the first transmission protocol can be the CAN protocol, and the second transmission protocol can be the DoIP protocol.

[0039] For example, the number of the multiple interfaces is 3, which includes interface 1 and interface 2 as well as interface 3. Interface 3 corresponds to the data processing method of the third transmission protocol. The third transmission protocol may be FlexRay.

[0040] Since the over-the-air (OTA) control device is pre-configured when the vehicle leaves the factory, it is typically used to transmit data for one target transmission protocol, or it is typically used to transmit data for multiple target transmission protocols.

[0041] In this embodiment, the target interface among the multiple interfaces can be determined by configuring it according to the target transmission protocol used by the over-the-air download control device before use, or by adaptively determining it each time the over-the-air download control device establishes a communication connection based on the target transmission protocol.

[0042] The upgrade package may include at least one sub-upgrade package corresponding to each sub-module. The number of sub-upgrade packages included in the upgrade package may be determined by the cloud server based on actual needs. That is, the cloud server may determine the number of sub-upgrade packages and their corresponding sub-modules included in the upgrade package sent via the over-the-air download control device based on the number of sub-modules to be upgraded and their upgrade versions, etc.

[0043] For example, the at least one sub-module may include: a microcontroller unit (MCU), a microprocessor unit (MPU), a smart device, etc. The smart device may include: an infotainment system, a smart driving module, a battery pack control module, etc. An upgrade package A includes: a sub-upgrade package corresponding to the MCU and a sub-upgrade package corresponding to the MPU; as another example, an upgrade package B includes: a sub-upgrade package corresponding to the MCU; and an upgrade package C includes: a sub-upgrade package corresponding to the MCU, a sub-upgrade package corresponding to the MPU, and a sub-upgrade package corresponding to the smart driving module.

[0044] It should be understood that before receiving the upgrade package transmitted by the over-the-air (OTA) control device based on the target transport protocol through the target interface among multiple interfaces, the process may further include: receiving a flash request message transmitted by the OTA control device based on the target transport protocol through the target interface; and, if the upgrade conditions are met based on the data processing method of the target transport protocol corresponding to the target interface, sending a flash permission response message to the OTA control device through the target interface based on the target transport protocol. The upgrade conditions may include the device's own normal operating status.

[0045] The process of upgrading the sub-module corresponding to the upgrade package based on the data processing method of the target transmission protocol corresponding to the target interface may include: performing integrity verification on the upgrade package based on the data processing method of the target transmission protocol; and, if the integrity verification passes, performing upgrade processing on the sub-module corresponding to the upgrade package based on the data processing method of the target transmission protocol.

[0046] Furthermore, after the upgrade process of the sub-module corresponding to the upgrade package is completed based on the data processing method of the target transmission protocol corresponding to the target interface, it may further include: if it is determined that the sub-module has been successfully upgraded, generating upgrade success notification information based on the data processing method of the target transmission protocol, and controlling the sending of upgrade success notification information to the over-the-air download control device through the target interface based on the target transmission protocol.

[0047] Thus, by adopting the above scheme, upgrade packets sent by the over-the-air (OTA) control device based on the target transmission protocol can be received through multiple target interfaces. Then, based on the data processing method of the corresponding target transmission protocol, the sub-modules corresponding to the upgrade packet can be upgraded. Since all multiple interfaces can establish connections with the OTA control device, and each interface corresponds to a different transmission protocol's data processing method, the upgrade process can be completed according to the data processing method corresponding to the target transmission protocol used by the OTA control device. This avoids the impact of changing the corresponding OTA upgrade control device or the vehicle's network topology due to different transmission protocols supported by different vehicle OTA control devices, improving adaptability and ensuring upgrade processing efficiency.

[0048] In one implementation, determining the target interface from the plurality of interfaces may include the following two methods:

[0049] Method 1: Based on the target transmission protocol supported by the over-the-air download control device, configure the interface among the plurality of interfaces that corresponds to the data processing method of the target transmission protocol as the target interface.

[0050] In this approach, the target transmission protocol supported by the over-the-air download control device can be obtained in advance; then, one of the multiple interfaces that has the data processing method of the target transmission protocol can be directly configured as the target interface.

[0051] The method for pre-obtaining the target transmission protocol supported by the over-the-air download control device can be: obtaining the target transmission protocol supported by the over-the-air download control device based on the content contained in the relevant configuration information of the vehicle; or, obtaining the target transmission protocol supported by the over-the-air download control device through pre-detection.

[0052] Method 2: Establish a communication connection with the over-the-air download control device based on the data processing method of the transmission protocol corresponding to each of the multiple interfaces; and take the interface among the multiple interfaces that has successfully established a communication connection with the over-the-air download control device as the target interface.

[0053] Specifically, all of the multiple interfaces are connected to the over-the-air download control device. When the i-th interface receives a communication connection request, it parses the request using the data processing method of the corresponding transmission protocol. If the request is successfully parsed and a corresponding response is generated, the response is transmitted to the over-the-air download control device via the i-th interface based on the target transmission protocol, and the i-th interface is identified as the target interface. Here, i is an integer greater than or equal to 1.

[0054] In addition, when the i-th interface among the plurality of interfaces receives communication connection request information, the i-th interface uses the data processing method of the corresponding transmission protocol to parse the communication connection request. If the parsing of the communication connection request fails, it is determined that the i-th interface is not the target interface.

[0055] The specific name or instruction of the communication connection request may differ under different protocols. For example, under the DoIP protocol, the communication connection request may be information transmitted during the three-way handshake process. The specific names or processes in other protocols are not exhaustively listed in this example.

[0056] It should be noted that the above method 2 is particularly applicable to situations where the over-the-air download control device can support multiple transmission protocols. In this case, the target transmission protocol used by the over-the-air download control device when receiving and sending the upgrade package can be one of the multiple transmission protocols. Accordingly, the OTA upgrade control device executing the above OTA upgrade control method can determine the target interface used this time based on the above method 2.

[0057] As can be seen, by adopting the above scheme, the target interface among the multiple interfaces can be adaptively determined. Since the multiple interfaces correspond to different data processing methods of transmission protocols, after determining the target interface from the multiple interfaces, it can be determined that the data processing method of the target transmission protocol corresponding to the target interface will be used to complete the subsequent processing. This can improve adaptability and ensure the efficiency of the upgrade process.

[0058] The OTA upgrade control method provided in the above embodiments can be applied to a single-core ECU (or system-on-chip (SOC)). The single-core ECU may contain two interfaces, such as... Figure 2 As shown, the interfaces are respectively called CAN-FD (CAN with Flexible Data-Rate) interface 201 and Ethernet interface 202. Taking the over-the-air download control device as an example where the device is located in the gateway 200, it should be understood that, unless otherwise specified, the relevant transmission processing of the gateway in the following examples specifically refers to the transmission processing of the over-the-air download control device located in the gateway. Figure 2 as well as Figure 3 Taking the target transmission protocol as the CAN protocol and the target interface as the CAN-FD interface 201 as an example, the first exemplary description may include:

[0059] Step S301: Receive the flash request message sent by the gateway 200 based on the CAN protocol through the CAN-FD interface 201;

[0060] The gateway 200 specifically refers to the over-the-air download control device installed in the gateway.

[0061] Step S302: Determine whether the upgrade conditions are met. If they are met, send a response message allowing flashing to the gateway through the CAN-FD interface 201 based on the CAN protocol, and execute S303; otherwise, send a response message refusing flashing to the gateway through the CAN-FD interface 201 based on the CAN protocol, and end the process.

[0062] Step S303: Receive the upgrade packet transmitted by the gateway 200 based on the CAN protocol through the CAN-FD interface 201;

[0063] The method by which the gateway obtains the upgrade package, combined with Figure 2For example, the cloud-based OTA (Over-The-Air) server 204 can send the upgrade package to the vehicle's T-BOX (Telematics Box) / HUT (Head Unit) 203 via Hyper Text Transfer Protocol (HTTP); and the vehicle's T-BOX / HUT 203 can send the upgrade package to the gateway 200 via Ethernet protocol.

[0064] Specifically, the OTA server 204 sending the upgrade package to the vehicle's T-BOX / HUT via HTTP can be achieved by sending the upgrade package to the vehicle's T-BOX / HUT 203 via HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer).

[0065] Step S304: Receive the upgrade packet transmission completion message transmitted by the gateway 200 based on the CAN protocol through the CAN-FD interface 201;

[0066] Step S305: Based on the data processing method of the CAN protocol, upgrade the sub-module corresponding to the upgrade package;

[0067] Step S306: If the upgrade is confirmed to be complete, based on the data processing method of the CAN protocol, control the sending of the upgrade completion notification information to the gateway 200 through the CAN-FD interface 201 based on the CAN protocol.

[0068] Before executing step S301, the target transmission protocol supported by the gateway (i.e., the over-the-air download control device set in the gateway) can be the CAN protocol. The CAN-FD interface, corresponding to the data processing method of the CAN protocol, can be configured as the target interface in the CAN-FD interface and the Ethernet interface. Alternatively, a communication connection can be established with the gateway (i.e., the over-the-air download control device set in the gateway) based on the data processing method of the transmission protocol corresponding to the CAN-FD interface and the Ethernet interface respectively; the CAN-FD interface that successfully establishes a communication connection with the gateway (i.e., the over-the-air download control device set in the gateway) in the CAN-FD interface and the Ethernet interface can be used as the target interface.

[0069] Combination Figure 2 and Figure 4Taking the target transmission protocol as the DoIP protocol and the target interface as the Ethernet interface 202 as an example, a second exemplary description can be provided, which may include:

[0070] Step S401: Receive a flash request message sent by gateway 200 based on the DoIP protocol through the Ethernet interface 202; the gateway 200 specifically refers to the over-the-air download control device set in the gateway.

[0071] Step S402: Determine whether the upgrade conditions are met. If they are met, send a response message allowing flashing to the gateway via the Ethernet interface 202 based on the DoIP protocol, and execute S403; otherwise, send a response message refusing flashing to the gateway 200 via the Ethernet interface 202 based on the DoIP protocol, and end the process.

[0072] Step S403: Receive the upgrade packet transmitted by the gateway 200 based on the DoIP protocol through the Ethernet interface 202;

[0073] Step S404: Receive the upgrade packet transmission completion message transmitted by the gateway 200 based on the DoIP protocol through the Ethernet interface 202;

[0074] Step S405: Based on the data processing method of the DoIP protocol, upgrade the sub-module corresponding to the upgrade package;

[0075] Step S406: If the upgrade is confirmed to be complete, based on the data processing method of the DoIP protocol, control the sending of the upgrade completion notification information to the gateway 200 through the Ethernet interface 202 based on the DoIP protocol.

[0076] Before executing step S401, the target transmission protocol supported by the gateway (i.e., the over-the-air download control device set in the gateway) can be the CAN protocol, and the Ethernet interface corresponding to the data processing method of the DoIP protocol among the CAN-FD interface and the Ethernet interface can be configured as the target interface. Alternatively, a communication connection can be established with the gateway (i.e., the over-the-air download control device set in the gateway) based on the data processing method of the transmission protocol corresponding to the CAN-FD interface and the Ethernet interface respectively; the Ethernet interface that successfully establishes a communication connection with the gateway (i.e., the over-the-air download control device set in the gateway) among the CAN-FD interface and the Ethernet interface can be used as the target interface.

[0077] It should be understood that the above Figures 2-4The example only uses the over-the-air download control device set in the gateway of the vehicle as an example. In actual processing, the over-the-air download control device can also be set in any of the T-BOX / HUT, IVI or other components in the vehicle. However, this embodiment does not exhaustively list them.

[0078] The OTA upgrade control method provided in the second aspect of this disclosure can also be applied to a dual-core ECU. The plurality of interfaces include: an interface of the first component and an interface of the second component. When the target transmission protocols of the over-the-air download control device are different, this embodiment can adopt the following different processing methods for processing, specifically:

[0079] In one embodiment, the plurality of interfaces includes: an interface of the first component and an interface of the second component; the target transmission protocol is the Controller Area Network (CAN) protocol.

[0080] Receiving the upgrade package transmitted by the over-the-air download control device based on the target transmission protocol through the target interface among the multiple interfaces includes: receiving the upgrade package transmitted by the over-the-air download control device based on the CAN protocol through the interface of the first component among the multiple interfaces.

[0081] In this case, the method for determining the target interface from the plurality of interfaces may include the following two:

[0082] Method 1: Based on the target transmission protocol supported by the over-the-air download control device, configure the interface of the first component and the interface of the second component that corresponds to the data processing method of the target transmission protocol as the target interface.

[0083] For example, the target transmission protocol supported by the over-the-air download control device can be obtained in advance as the CAN protocol; then the interface of the first component with the data processing method of the target transmission protocol can be directly configured as the target interface.

[0084] Method 2: Establish a communication connection between the data processing method of the transmission protocol corresponding to the interface of the first component and the interface of the second component and the over-the-air download control device; take the interface of the first component that has successfully established a communication connection with the over-the-air download control device based on the data processing method of the CAN protocol as the target interface.

[0085] For example, the first component may be a microcontroller unit (MCU) in the ECU; the second component may be a microprocessor unit (MPU) in the ECU; the interface of the first component is the CAN-FD interface of the MCU, and the interface of the second component is the Ethernet interface of the MCU. Correspondingly, receiving the upgrade packet transmitted by the over-the-air download control device based on the target transmission protocol through the target interface among multiple interfaces includes: receiving the upgrade packet transmitted by the over-the-air download control device based on the CAN protocol through the CAN-FD interface of the MCU and the Ethernet interface of the MPU.

[0086] As can be seen, by adopting the above scheme, the target interface can be determined from the interfaces of the first component and the second component, and the upgrade package transmitted by the over-the-air download control device based on the CAN protocol can be received through the interface of the first component. In this way, the upgrade package can be adaptively obtained based on the transmission protocol used by the over-the-air download control device, improving the overall processing efficiency.

[0087] The data processing method based on the target transmission protocol corresponding to the target interface upgrades the sub-modules corresponding to the upgrade package, including:

[0088] Based on the data processing method of the CAN protocol corresponding to the interface of the first component, the first component is controlled to transmit the upgrade package to the second component;

[0089] Based on the data processing method of the CAN protocol, the second component is controlled to upgrade at least one sub-module based on at least one sub-upgrade package contained in the upgrade package.

[0090] Specifically, the data processing method based on the CAN protocol corresponding to the interface of the first component, which controls the first component to transmit the upgrade package to the second component, can be as follows:

[0091] Based on the data processing method of the CAN protocol corresponding to the interface of the first component, the first component is controlled to transmit the upgrade package to the second component in real time through inter-core communication.

[0092] The data processing method based on the CAN protocol, which controls the second component to upgrade at least one sub-module based on at least one sub-upgrade package included in the upgrade package, may include:

[0093] Based on the data processing method of the CAN protocol, the second component is controlled to perform integrity verification on the upgrade package;

[0094] If the integrity verification passes, based on the data processing method of the CAN protocol, the second component is controlled to extract at least one sub-upgrade package contained in the upgrade package, and the second component is controlled to perform an upgrade based on the sub-module corresponding to each sub-upgrade package in the at least one sub-upgrade package.

[0095] The number of sub-upgrade packages included in the upgrade package can be determined by the cloud server according to actual needs. In other words, the cloud server can determine the number of sub-upgrade packages and their corresponding sub-modules included in the upgrade package sent through the over-the-air download control device based on the number of sub-modules to be upgraded and the upgrade version of the sub-modules.

[0096] For example, the at least one sub-module may include: a microcontroller unit (MCU), a microprocessor unit (MPU), a smart device, etc. The smart device may include: an infotainment system, a smart driving module, a battery pack control module, etc. An upgrade package A includes: a sub-upgrade package corresponding to the MCU and a sub-upgrade package corresponding to the MPU; as another example, an upgrade package B includes: a sub-upgrade package corresponding to the MCU; and an upgrade package C includes: a sub-upgrade package corresponding to the MCU, a sub-upgrade package corresponding to the MPU, and a sub-upgrade package corresponding to the smart driving module.

[0097] For example, the first component can be an MCU, the second component can be an MPU, the interface of the first component is specifically the CAN-FD interface of the MCU, and the interface of the second component is specifically the Ethernet interface of the MPU; correspondingly, receiving the upgrade packet transmitted by the over-the-air download control device based on the CAN protocol through the interface of the first component among the plurality of interfaces may include: receiving the upgrade packet transmitted by the over-the-air download control device based on the CAN protocol through the CAN-FD interface of the MCU.

[0098] The data processing method based on the target transmission protocol corresponding to the target interface, which upgrades the sub-module corresponding to the upgrade package, includes: controlling the MCU to forward the received upgrade package to the MPU in real time via inter-core communication based on the data processing method of the CAN protocol; controlling the MPU to perform integrity verification on the upgrade package based on the data processing method of the CAN protocol; and, if the integrity verification passes, controlling the MPU to extract at least one sub-upgrade package contained in the upgrade package based on the data processing method of the CAN protocol, and controlling the MPU to upgrade the at least one sub-module based on the at least one sub-upgrade package.

[0099] By adopting the above processing method, the first component can be controlled to transmit the upgrade package to the second component, and the second component can perform the upgrade. This eliminates the need for the first component to cache the upgrade package. Especially when the cache space of the first component is small, it can avoid the problem of the first component occupying a large amount of cache space and also ensure the efficiency of the upgrade processing.

[0100] Furthermore, it may also include:

[0101] When the second component determines that the upgrade is complete, the data processing method based on the CAN protocol controls the second component to send an upgrade completion notification message to the first component.

[0102] When the first component receives the upgrade completion notification information from the second component, based on the data processing method of the CAN protocol, the control sends the upgrade completion notification information to the over-the-air download control device through the interface of the first component based on the CAN protocol.

[0103] Specifically, the data processing method based on the CAN protocol controls the second component to send an upgrade completion notification to the first component. This can be achieved by controlling the second component to send an upgrade completion notification to the first component via inter-core communication, based on the data processing method of the CAN protocol.

[0104] The data processing method based on the CAN protocol, which controls the sending of the upgrade completion notification information to the over-the-air download control device via the interface of the first component based on the CAN protocol, may include:

[0105] Based on the data processing method of the CAN protocol, the control generates the upgrade completion notification information encapsulated in the CAN protocol through the first component, and controls the first component to send the upgrade completion notification information encapsulated in the CAN protocol to the over-the-air download control device through its interface based on the CAN protocol.

[0106] In other words, after the second component completes the upgrade of at least one submodule, the upgrade can be considered complete. Then, through inter-core communication between the second component and the first component, the upgrade completion notification information can be sent to the first component. Based on the CAN protocol data processing method, the first component is controlled to encapsulate the upgrade completion notification information according to the CAN protocol, obtaining the CAN protocol-encapsulated upgrade completion notification information; then, the first component's interface is controlled to send the CAN protocol-encapsulated upgrade completion notification information to the over-the-air download control device according to the CAN protocol.

[0107] For example, taking the first component as an MCU and the second component as an MPU, the interface of the first component is specifically the CAN-FD interface of the MCU, and the interface of the second component is specifically the Ethernet interface of the MPU; accordingly, when the MPU completes the upgrade of the at least one sub-module based on the at least one sub-upgrade package included in the upgrade package, based on the data processing method of the CAN protocol, the MPU is controlled to send the upgrade completion notification information to the MCU through inter-core communication with the MCU; based on the data processing method of the CAN protocol, the MCU is controlled to encapsulate the upgrade completion notification information according to the CAN protocol to obtain the upgrade completion notification information encapsulated by the CAN protocol; then, based on the data processing method of the CAN protocol, the upgrade completion notification information encapsulated by the CAN protocol is sent to the over-the-air download control device through the CAN-FD interface of the MCU according to the CAN protocol.

[0108] In the above-described process of controlling the MPU to upgrade the at least one sub-module based on the at least one sub-upgrade package, the at least one sub-module may include the MCU, and therefore may include the MPU's upgrade process for the MCU. The MPU's upgrade of the MCU can be done in two ways: one is that the MPU initiates a UDS (Unified Diagnostic Services) flashing process for the MCU via the DoIP protocol; the other is that it performs data flashing by directly accessing I / O. Specifically:

[0109] In the first method, during the UDS flashing process initiated by the MPU to the MCU via the DoIP protocol, after the MCU is flashed, it restarts into the MCU's application (APP) mode. Simultaneously, the MPU flashes other sub-modules. When the MPU determines that all sub-modules have completed the upgrade, it controls the MPU to notify the MCU's APP of the upgrade completion notification information via inter-core communication. Upon receiving the notification, the MCU's APP sends the upgrade completion notification information to the over-the-air (OTA) control device based on the CAN protocol. Then, the OTA control device sends the upgrade completion notification information to the OTA server in the cloud.

[0110] In the second method, when data is written via direct I / O access, the MPU will write all sub-modules corresponding to the upgrade package. Once the MPU determines that all sub-modules have completed the upgrade, it will control the MPU to notify the MCU of the upgrade completion notification via inter-core communication. Upon receiving the notification, the MCU will send it to the over-the-air (OTA) control device based on the CAN protocol. Then, the OTA control device will send the upgrade completion notification to the OTA server in the cloud. After the vehicle restarts, the MCU will then restart in APP mode.

[0111] Both of the above methods are completed through the CAN-FD process under the CAN protocol from the perspective of the over-the-air download control device or the OTA server in the cloud. The processing flow between the MPU and the MCU inside the ECU is completely shielded from the outside, so that the ECU itself can fully adapt to the CAN network topology in the current vehicle.

[0112] By adopting the above processing method, the first component can be controlled to transmit the upgrade package to the second component, which then performs the upgrade. Once the second component has completed the upgrade, the first component sends an upgrade completion notification to the over-the-air download control device. This eliminates the need for the first component to cache the upgrade package, especially when the first component has limited cache space. This avoids the problem of the first component occupying a large amount of cache space, and the upgrade process can be completed by the second component with higher processing capabilities, thus ensuring the efficiency of the upgrade process.

[0113] The OTA upgrade control method provided in the above embodiments can be applied to dual-core ECUs, such as... Figure 5 As shown, the dual-core ECU may include a first component, namely MCU 501, and a second component, namely MPU 502; the multiple interfaces specifically refer to the interfaces of the two components, namely the CAN-FD interface 5011 of the MCU and the Ethernet interface 5021 of the MPU, with the target transmission protocol being the CAN protocol, and the target interface being the CAN-FD interface 5011 of the MCU. Taking the over-the-air download control device being set in the gateway 500 as an example, it should be understood that, unless otherwise specified, the relevant transmission processing of the gateway in the following examples specifically refers to the transmission processing of the over-the-air download control device set in the gateway. Figure 6 For example, it may include:

[0114] Step S601: Receive a flash request message sent by the gateway 500 based on the CAN protocol through the CAN-FD interface 5011 of the MCU; the gateway 500 specifically refers to the over-the-air download control device set in the gateway.

[0115] Step S602: The MCU 501 determines whether the upgrade conditions are met. If they are met, it controls the MCU to send a write permission response message to the gateway 500 via the CAN-FD interface 5011 based on the CAN protocol, and executes S603. Otherwise, it controls the MCU to send a write rejection response message to the gateway 500 via the CAN-FD interface 5011 based on the CAN protocol, and ends the process.

[0116] Step S603: Receive the upgrade package transmitted by the gateway 500 based on the CAN protocol through the CAN-FD interface 5011 of the MCU;

[0117] The method by which the gateway obtains the upgrade package, combined with Figure 5 For example, the cloud-based OTA (Over-The-Air) server 504 can send the upgrade package to the vehicle's T-BOX (Telematics Box) / HUT (Head Unit) 503 via Hypertext Transfer Protocol (HTTP); and the vehicle's T-BOX / HUT 503 can send the upgrade package to the gateway 500 via Ethernet protocol.

[0118] Specifically, the OTA server 504 sending the upgrade package to the vehicle's T-BOX / HUT 503 via HTTP can be achieved by sending the upgrade package via HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer).

[0119] Step S604: Based on the data processing method of the CAN protocol, control the MCU 501 to transmit the upgrade package to the MPU 502 in real time through inter-core communication;

[0120] Step S605: Receive the upgrade packet transmission completion message transmitted by the gateway 500 based on the CAN protocol through the CAN-FD interface 5011 of the MCU;

[0121] Step S606: Based on the data processing method of the CAN protocol, control the MCU 501 to transmit the upgrade package transmission completion message to the MPU 502 in real time through inter-core communication;

[0122] Step S607: Based on the data processing method of the CAN protocol, control the MPU 502 to upgrade the at least one sub-module based on the at least one sub-upgrade package contained in the upgrade package;

[0123] In the S607 process, if the at least one sub-upgrade package contains the upgrade package for the MCU, the MPU will upgrade the MCU based on the sub-upgrade package corresponding to the MCU.

[0124] In addition, when the MCU completes the upgrade, the MCU will also send a message to the MPU indicating that the MCU upgrade is complete.

[0125] Step S608: When the MPU 502 determines that the upgrade is complete, based on the data processing method of the CAN protocol, the MPU 502 is controlled to send the upgrade completion notification information to the MCU 501 through inter-core communication;

[0126] Step S609: Based on the data processing method of the CAN protocol, control the MCU to send the upgrade completion notification information to the gateway through the CAN-FD interface 5011 of the MCU based on the CAN protocol.

[0127] Before executing step S601, the CAN-FD interface of the MCU can be configured as the target interface based on the target transmission protocol supported by the gateway (i.e., the over-the-air download control device set in the gateway) being the CAN protocol. Alternatively, communication connections can be established with the gateway (i.e., the over-the-air download control device set in the gateway) based on the data processing methods of the transmission protocols corresponding to the CAN-FD interface of the MCU and the Ethernet interface of the MPU, respectively; the CAN-FD interface of the MCU that has successfully established a communication connection with the gateway (i.e., the over-the-air download control device set in the gateway) in the Ethernet interface is used as the target interface.

[0128] It should be understood that the above Figure 5 , Figure 6 The example only uses the over-the-air download control device located in the gateway of the vehicle as an example. In actual processing, the over-the-air download control device can also be located in any of the components such as T-BOX / HUT and IVI in the vehicle. However, this embodiment does not exhaustively list them.

[0129] In another embodiment, the plurality of interfaces includes: an interface of the first component and an interface of the second component; the target transmission protocol is the DoIP protocol;

[0130] Receiving the upgrade packet transmitted by the over-the-air download control device based on the target transport protocol through the target interface among the multiple interfaces includes: receiving the upgrade packet transmitted by the over-the-air download control device based on the DoIP protocol through the interface of the first component among the multiple interfaces.

[0131] In this case, the method for determining the target interface from the plurality of interfaces may include the following two:

[0132] Method 1: Based on the target transmission protocol supported by the over-the-air download control device, configure the interface of the first component and the interface of the second component that corresponds to the data processing method of the target transmission protocol as the target interface.

[0133] Method 2: Establish a communication connection between the data processing method of the transmission protocol corresponding to the interface of the first component and the interface of the second component and the over-the-air download control device; and take the interface of the second component that has successfully established a communication connection with the over-the-air download control device based on the data processing method of the DoIP protocol as the target interface.

[0134] For example, the first component may be an MCU in the ECU, and the second component may be an MPU in the ECU; the interface of the first component is the CAN-FD interface of the MCU, and the interface of the second component is the Ethernet interface of the MCU. Correspondingly, receiving the upgrade package transmitted by the over-the-air download control device based on the target transmission protocol through the target interface among multiple interfaces includes: receiving the upgrade package transmitted by the over-the-air download control device based on the DoIP protocol through the interface of the MCU and the interface of the MPU.

[0135] As can be seen, by adopting the above scheme, the target interface can be determined from the interfaces of the first component and the second component, and the upgrade packet transmitted by the over-the-air download control device based on the DoIP protocol can be received through the interface of the first component. In this way, the upgrade packet can be adaptively obtained based on the transmission protocol used by the over-the-air download control device, improving the overall processing efficiency.

[0136] The data processing method based on the target transmission protocol corresponding to the target interface upgrades the sub-modules corresponding to the upgrade package, including:

[0137] Based on the data processing method of the DoIP protocol corresponding to the interface of the second component, the second component is controlled to extract at least one sub-upgrade package from the upgrade package;

[0138] Based on the data processing method of the DoIP protocol, the second component is controlled to upgrade at least one sub-module based on the at least one sub-upgrade package.

[0139] The data processing method based on the DoIP protocol corresponding to the interface of the second component, which controls the second component to extract at least one sub-upgrade package from the upgrade package, may include:

[0140] Based on the data processing method of the DoIP protocol corresponding to the interface of the second component, the second component is controlled to perform integrity verification on the upgrade package; if the integrity verification passes, the second component is controlled to parse the upgrade package and extract the at least one sub-upgrade package from the upgrade package.

[0141] The number of sub-upgrade packages included in the upgrade package can be determined by the cloud server according to actual needs. In other words, the cloud server can determine the number of sub-upgrade packages and their corresponding sub-modules included in the upgrade package sent through the over-the-air download control device based on the number of sub-modules to be upgraded and the upgrade version of the sub-modules.

[0142] For example, the first component can be an MCU, and the second component can be an MPU. Specifically, the interface of the first component is the CAN-FD interface of the MCU, and the interface of the second component is the Ethernet interface of the MPU. Correspondingly, the upgrade of the sub-module corresponding to the upgrade package based on the data processing method of the target transmission protocol corresponding to the target interface includes: controlling the MPU to perform integrity verification on the upgrade package based on the data processing method of the DoIP protocol; if the integrity verification passes, controlling the MPU to parse the upgrade package based on the data processing method of the CAN protocol, extracting at least one sub-upgrade package from the upgrade package, and controlling the MPU to upgrade the sub-module corresponding to each sub-upgrade package in the at least one sub-upgrade package.

[0143] By adopting the above processing method, the first component can be controlled to transmit the upgrade package to the second component, and the second component can perform the upgrade. This eliminates the need for the first component to cache the upgrade package. Especially when the cache space of the first component is small, it can avoid the problem of the first component occupying a large amount of cache space and also ensure the efficiency of the upgrade processing.

[0144] Furthermore, it may also include: upon determining that the upgrade is complete, controlling the sending of an upgrade completion notification information to the over-the-air download control device via the interface of the second component based on the DoIP protocol, according to the data processing method of the DoIP protocol.

[0145] In other words, after the second component completes the upgrade of the at least one sub-module, the upgrade can be determined to be complete; based on the data processing method of the DoIP protocol, the second component is controlled to encapsulate the upgrade completion notification information based on the DoIP protocol to obtain the upgrade completion notification information encapsulated by the DoIP protocol; then the upgrade completion notification information encapsulated by the DoIP protocol is sent to the over-the-air download control device through the interface of the second component based on the DoIP protocol.

[0146] Taking the first component as an MCU and the second component as an MPU as an example, when the MPU completes the upgrade of the at least one sub-module based on the at least one sub-upgrade package contained in the upgrade package, based on the data processing method of the DoIP protocol, the MPU is controlled to encapsulate the upgrade completion notification information based on the DoIP protocol to obtain the upgrade completion notification information encapsulated by the DoIP protocol; then, the upgrade completion notification information encapsulated by the DoIP protocol is sent to the over-the-air download control device through the Ethernet interface of the MPU based on the DoIP protocol.

[0147] In the above-described processing based on the MPU's Ethernet interface, the MPU can also download upgrade packages from the OTA server in the cloud via a secure link. For example, based on the DoIP protocol data processing method, the MPU is controlled to select the upgrade package from the OTA server through the over-the-air download control device based on the connection information, and obtain the upgrade package transmitted by the over-the-air download control device based on the DoIP protocol through the MPU's Ethernet interface. Subsequent processing is the same as the aforementioned method and will not be described again. Using this method, it is also possible to support interrupted downloads, and silent downloads are not included in the upgrade flashing time.

[0148] By adopting the above processing method, the first component can be controlled to transmit the upgrade package to the second component, which then performs the upgrade. Once the second component has completed the upgrade, the first component sends an upgrade completion notification to the over-the-air download control device. This eliminates the need for the first component to cache the upgrade package, especially when the first component has limited cache space. This avoids the problem of the first component occupying a large amount of cache space, and the upgrade process can be completed by the second component with higher processing capabilities, thus ensuring the efficiency of the upgrade process.

[0149] The OTA upgrade control method provided in the above embodiments can be applied to dual-core ECUs, such as... Figure 5 As shown, the dual-core ECU may include a first component, namely MCU 501, and a second component, namely MPU 502; the multiple interfaces specifically refer to the interfaces of the two components, namely the CAN-FD interface 5011 of the MCU and the Ethernet interface 5021 of the MPU, with the target transmission protocol being the DoIP protocol, and the target interface being the Ethernet interface 5021 of the MPU. Taking the over-the-air download control device being set in the gateway 500 as an example, it should be understood that, unless otherwise specified, the relevant transmission processing of the gateway in the following examples specifically refers to the transmission processing of the over-the-air download control device set in the gateway. Figure 7 For example, it may include:

[0150] Step S701: Receive a flash request message sent by gateway 500 based on the DoIP protocol through the Ethernet interface 5021 of the MPU; the gateway 500 specifically refers to the over-the-air download control device set in the gateway.

[0151] Step S702: The MPU 502 determines whether the upgrade conditions are met. If they are met, it controls the MPU to send a write permission response to the gateway 500 via the Ethernet interface 5021 based on the DoIP protocol, and executes S703. Otherwise, it controls the MPU to send a write rejection response to the gateway 500 via the Ethernet interface 5021 based on the DoIP protocol, and ends the process.

[0152] Step S703: Receive the upgrade packet transmitted by the gateway 500 based on the DoIP protocol through the Ethernet interface 5021 of the MPU;

[0153] Step S704: Receive the upgrade packet transmission completion message transmitted by the gateway 500 based on the DoIP protocol through the Ethernet interface 5021 of the MPU;

[0154] Step S705: Based on the data processing method of the DoIP protocol, control the MPU 502 to upgrade the at least one submodule based on the upgrade package;

[0155] In the S705 process, if the at least one sub-upgrade package contains the upgrade package for the MCU, the MPU will upgrade the MCU based on the sub-upgrade package corresponding to the MCU.

[0156] In addition, when the MCU completes the upgrade, the MCU will also send a message to the MPU indicating that the MCU upgrade is complete.

[0157] Step S706: When the MPU 502 determines that the upgrade is complete, based on the data processing method of the DoIP protocol, it controls the MPU to send the upgrade completion notification information to the gateway through the Ethernet interface 5021 of the MPU based on the DoIP protocol.

[0158] Before executing step S701, the MPU's Ethernet interface 5021 can be configured as the target interface based on the DoIP protocol supported by the gateway (i.e., the over-the-air download control device set in the gateway). Alternatively, a communication connection can be established with the gateway (i.e., the over-the-air download control device set in the gateway) based on the data processing methods of the transmission protocols corresponding to the CAN-FD interface of the MCU and the Ethernet interface of the MPU, respectively; the Ethernet interface 5021 of the MPU that has successfully established a communication connection with the gateway (i.e., the over-the-air download control device set in the gateway) is then used as the target interface.

[0159] It should be understood that the above Figure 5 , Figure 7 The example only uses the over-the-air download control device set in the gateway of the vehicle as an example. In actual processing, the over-the-air download control device can also be set in any of the T-BOX / HUT, IVI or other components in the vehicle. However, this embodiment does not exhaustively list them.

[0160] A third aspect of this disclosure also provides an OTA upgrade control device; see [link to relevant documentation]. Figure 8 ,include:

[0161] The transmission module 801 is used to receive upgrade packets transmitted by the over-the-air download control device based on a target transmission protocol through a target interface among multiple interfaces; wherein, the multiple interfaces are used to establish a connection with the over-the-air download control device, and different interfaces among the multiple interfaces correspond to different data processing methods of the transmission protocol;

[0162] Upgrade module 802 is used to upgrade the sub-module corresponding to the upgrade package based on the data processing method of the target transmission protocol corresponding to the target interface.

[0163] exist Figure 8 Based on this, see Figure 9 The device further includes:

[0164] The interface determination module 803 is used to establish a communication connection with the over-the-air download control device based on the data processing method of the transmission protocol corresponding to the plurality of interfaces; and to select the interface among the plurality of interfaces that has successfully established a communication connection with the over-the-air download control device as the target interface.

[0165] The multiple interfaces include: an interface of the first component and an interface of the second component; the target transmission protocol is the Controller Area Network (CAN) protocol.

[0166] The transmission module 801 includes a first transmission submodule 8011, which is used to receive the upgrade package transmitted by the over-the-air download control device based on the CAN protocol through the interface of the first component among the plurality of interfaces.

[0167] The upgrade module 802 includes:

[0168] The first component control module 8021 is used to control the first component to transmit the upgrade package to the second component based on the data processing method of the CAN protocol corresponding to the interface of the first component;

[0169] The second component control module 8022 is used to control the second component to upgrade at least one sub-module based on at least one sub-upgrade package contained in the upgrade package, based on the data processing method of the CAN protocol.

[0170] The second component control module 8022 is used to control the second component to send an upgrade completion notification information to the first component based on the data processing method of the CAN protocol when the second component determines that the upgrade is completed.

[0171] The first component control module 8021 is used to control the first transmission submodule to send the upgrade completion notification information to the over-the-air download control device through the interface of the first component based on the CAN protocol when the first component receives the upgrade completion notification information sent by the second component, based on the data processing method of the CAN protocol.

[0172] The first transmission submodule 8011 is used to send the upgrade completion notification information to the over-the-air download control device through the interface of the first component based on the CAN protocol.

[0173] The plurality of interfaces include: an interface of the first component and an interface of the second component; the target transmission protocol is the DoIP diagnostic communication protocol based on the Internet Protocol.

[0174] The transmission module 801 includes a second transmission submodule 8012, which is used to receive the upgrade package transmitted by the over-the-air download control device based on the DoIP protocol through the interface of the second component among the plurality of interfaces.

[0175] The upgrade module 802 includes:

[0176] The second component control module 8022 is used to control the second component to extract at least one sub-upgrade package from the upgrade package based on the data processing method of the DoIP protocol corresponding to the interface of the second component; and to control the second component to upgrade at least one sub-module based on the at least one sub-upgrade package based on the data processing method of the DoIP protocol.

[0177] The second component control module 8022 is used to control the second transmission submodule to send an upgrade completion notification message to the over-the-air download control device through the interface of the second component based on the DoIP protocol, according to the data processing method of the DoIP protocol, when the upgrade is determined to be completed.

[0178] The second transmission submodule 8012 is used to send an upgrade completion notification message to the over-the-air download control device through the interface of the second component based on the DoIP protocol.

[0179] By employing the above scheme, upgrade packets sent by the over-the-air (OTA) control device based on a target transmission protocol can be received through multiple target interfaces. Then, based on the data processing method of the corresponding target transmission protocol, the sub-modules corresponding to the upgrade packet can be upgraded. Since all multiple interfaces can establish connections with the OTA control device, and each interface corresponds to a different transmission protocol's data processing method, the upgrade process can be completed according to the data processing method corresponding to the target transmission protocol used by the OTA control device. This avoids the impact of replacing the corresponding OTA upgrade control device or changing the vehicle's network topology due to different transmission protocols supported by different vehicle OTA control devices, thus improving adaptability and ensuring upgrade processing efficiency.

[0180] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0181] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0182] Figure 10A schematic block diagram of an example electronic device 1000 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0183] like Figure 10 As shown, the electronic device 1000 includes a computing unit 1001, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 1002 or a computer program loaded from a storage unit 1008 into a random access memory (RAM) 1003. The RAM 1003 may also store various programs and data required for the operation of the electronic device 1000. The computing unit 1001, ROM 1002, and RAM 1003 are interconnected via a bus 1004. An input / output (I / O) interface 1005 is also connected to the bus 1004.

[0184] Multiple components in electronic device 1000 are connected to I / O interface 1005, including: input unit 1006, such as keyboard, mouse, etc.; output unit 1007, such as various types of displays, speakers, etc.; storage unit 1008, such as disk, optical disk, etc.; and communication unit 1009, such as network card, modem, wireless transceiver, etc. Communication unit 1009 allows electronic device 1000 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0185] The computing unit 1001 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1001 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1001 performs the various methods and processes described above. For example, in some embodiments, the various methods described above can be implemented as computer software programs tangibly contained in a machine-readable medium, such as storage unit 1008. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 1000 via ROM 1002 and / or communication unit 1009. When the computer program is loaded into RAM 1003 and executed by the computing unit 1001, one or more steps of the various methods described above can be performed. Alternatively, in other embodiments, the computing unit 1001 can be configured to perform the various methods described above by any other suitable means (e.g., by means of firmware).

[0186] This disclosure also provides an autonomous vehicle, including the electronic devices described above.

[0187] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0188] Program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, partially on a machine and partially on a remote machine as a standalone software package, or entirely on a remote machine or server. In the context of this disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0189] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0190] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0191] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0192] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0193] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for controlling over-the-air (OTA) upgrades, comprising: Based on the data processing method of the transmission protocol corresponding to the multiple interfaces of the electronic control unit, a communication connection is established with the over-the-air download control device, and the interface that successfully establishes a communication connection with the over-the-air download control device is taken as the target interface. The plurality of interfaces include: the interface of the first component and the interface of the second component; The upgrade package transmitted by the over-the-air download control device based on the target transmission protocol is received through the target interface; wherein, different interfaces among the plurality of interfaces correspond to different data processing methods of the transmission protocol; Based on the data processing method of the target transmission protocol corresponding to the target interface, the sub-modules corresponding to the upgrade package are upgraded. Where the target transmission protocol is the Controller Area Network (CAN) protocol, Receiving the upgrade package transmitted by the over-the-air download control device based on the target transmission protocol through the target interface among the multiple interfaces includes: receiving the upgrade package transmitted by the over-the-air download control device based on the CAN protocol through the interface of the first component among the multiple interfaces; The data processing method based on the target transmission protocol corresponding to the target interface, for upgrading the sub-module corresponding to the upgrade package, includes: controlling the first component to transmit the upgrade package to the second component based on the data processing method of the CAN protocol corresponding to the interface of the first component; and controlling the second component to upgrade at least one sub-module based on at least one sub-upgrade package contained in the upgrade package based on the data processing method of the CAN protocol.

2. The method according to claim 1, further comprising: When the second component determines that the upgrade is complete, the data processing method based on the CAN protocol controls the second component to send an upgrade completion notification message to the first component. When the first component receives the upgrade completion notification information from the second component, based on the data processing method of the CAN protocol, the control sends the upgrade completion notification information to the over-the-air download control device through the interface of the first component based on the CAN protocol.

3. The method according to claim 1, wherein, In the case where the target transmission protocol is the Internet Protocol-based diagnostic communication DoIP protocol, Receiving the upgrade packet transmitted by the over-the-air download control device based on the target transport protocol through the target interface among the multiple interfaces further includes: receiving the upgrade packet transmitted by the over-the-air download control device based on the DoIP protocol through the interface of the second component among the multiple interfaces.

4. The method according to claim 3, wherein, The data processing method based on the target transmission protocol corresponding to the target interface, for upgrading the sub-module corresponding to the upgrade package, further includes: Based on the data processing method of the DoIP protocol corresponding to the interface of the second component, the second component is controlled to extract at least one sub-upgrade package from the upgrade package; Based on the data processing method of the DoIP protocol, the second component is controlled to upgrade at least one sub-module based on the at least one sub-upgrade package.

5. The method according to claim 4, further comprising: Upon confirming the upgrade is complete, based on the data processing method of the DoIP protocol, the control sends an upgrade completion notification message to the over-the-air download control device through the interface of the second component, using the DoIP protocol.

6. An OTA upgrade control device, comprising: The interface determination module is used to establish a communication connection with the over-the-air download control device based on the data processing method of the transmission protocol corresponding to the multiple interfaces of the electronic control unit, and to take the interface that has successfully established a communication connection with the over-the-air download control device as the target interface. The plurality of interfaces include: the interface of the first component and the interface of the second component; The transmission module is used to receive upgrade packets transmitted by the over-the-air download control device based on the target transmission protocol through the target interface; wherein, different interfaces among the plurality of interfaces correspond to different data processing methods of the transmission protocol; The upgrade module is used to upgrade the sub-modules corresponding to the upgrade package based on the data processing method of the target transmission protocol corresponding to the target interface; When the target transmission protocol is the Controller Area Network (CAN) protocol... The transmission module includes: a first transmission submodule, used to receive an upgrade package transmitted by the over-the-air download control device based on the CAN protocol through the interface of the first component among the plurality of interfaces; The upgrade module includes: The first component control module is used to control the first component to transmit the upgrade package to the second component based on the data processing method of the CAN protocol corresponding to the interface of the first component; the second component control module is used to control the second component to upgrade at least one sub-module based on at least one sub-upgrade package contained in the upgrade package based on the data processing method of the CAN protocol.

7. The apparatus according to claim 6, wherein, The second component control module is used to control the second component to send an upgrade completion notification message to the first component based on the data processing method of the CAN protocol when the second component determines that the upgrade is completed. The first component control module is used to control the first transmission submodule to send the upgrade completion notification information to the over-the-air download control device through the interface of the first component based on the CAN protocol, when the first component receives the upgrade completion notification information sent by the second component, based on the data processing method of the CAN protocol. The first transmission submodule is used to send the upgrade completion notification information to the over-the-air download control device via the interface of the first component based on the CAN protocol.

8. In the case that the target transmission protocol is the Internet Protocol-based diagnostic communication DoIP protocol, according to claim 6, The transmission module further includes: The second transmission submodule is used to receive the upgrade package transmitted by the over-the-air download control device based on the DoIP protocol through the interface of the second component among the plurality of interfaces.

9. The apparatus according to claim 8, wherein, The upgrade module also includes: The second component control module is used to control the second component to extract at least one sub-upgrade package from the upgrade package based on the data processing method of the DoIP protocol corresponding to the interface of the second component; and to control the second component to upgrade at least one sub-module based on the at least one sub-upgrade package based on the data processing method of the DoIP protocol.

10. The apparatus according to claim 9, wherein, The second component control module is used to, upon determining that the upgrade is complete, control the second transmission submodule to send an upgrade completion notification message to the over-the-air download control device through the interface of the second component based on the DoIP protocol, according to the data processing method of the DoIP protocol; The second transmission submodule is used to send an upgrade completion notification to the over-the-air download control device via the interface of the second component based on the DoIP protocol.

11. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.

12. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-5.

13. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-5.

14. An autonomous vehicle, including the electronic equipment as claimed in claim 11.