ECU upgrading method and device based on air upgrading, equipment and storage medium

By adding the SPI communication interface between the SOC and MCU in the ECU of the smart car, using the air upgrade cloud center to download and transmit the upgrade data, the problem of the complexity of the traditional MCU firmware upgrade is solved, and the remote upgrade and upgrade of the entire ECU vehicle is realized Improved efficiency.

CN119248343APending Publication Date: 2025-01-03DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411367676.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Traditional software upgrades are complex and time-consuming in smart cars, especially the upgrade of the firmware of microcontroller unit (MCU) in automotive electronic control unit (ECU) requires local operation through the OBD diagnostic instrument, and remote upgrade of the entire vehicle cannot be achieved.

Method used

By adding an SPI communication interface between the SOC and the MCU in the ECU, the vehicle terminal downloads the upgrade installation package from the air upgrade cloud center, and transmits the upgrade data to the MCU through the SPI interface to achieve the overall upgrade of the ECU.

Benefits of technology

The ECU upgrade process is simplified, the complexity of local operations is avoided, and the remote upgrade of the entire ECU vehicle is realized, which improves the upgrade efficiency and convenience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248343A_ABST
    Figure CN119248343A_ABST
Patent Text Reader

Abstract

The invention discloses an ECU upgrading method and device based on air upgrading, equipment and a storage medium, and relates to the technical field of air. The ECU upgrading method based on air upgrading comprises the steps that when an upgrading starting instruction is received, a system-on-chip is controlled to download an upgrading installation package from an air upgrading cloud center through a vehicle-mounted terminal; when the upgrade installation package is downloaded, controlling the system-on-chip to perform system upgrade through the system-on-chip upgrade data in the upgrade installation package; and controlling a system-on-chip to send the micro-control unit upgrading data in the upgrading installation package to a micro-control unit through an SPI interface so as to control the micro-control unit to carry out system upgrading. And the ECU downloads an upgrade installation package from the air upgrade cloud center by controlling the system-on-chip, performs software upgrade on the system-on-chip and simultaneously controls the system-on-chip and the micro-control unit to perform upgrade instruction interaction and upgrade package transmission, and the system-on-chip controls the micro-control unit to perform firmware upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of over-the-air upgrades, and in particular to an ECU upgrade method, device, equipment and storage medium based on over-the-air upgrades. Background Art

[0002] With the development of automotive electronic technology and the introduction of advanced driver assistance, cars are becoming more and more intelligent and software-based. These smart cars are controlled by software. When a software program problem or update occurs, it will be a complicated task and consume a lot of manpower and material resources if the traditional upgrade solution is used.

[0003] In order to solve the problem of complex traditional software upgrade process, over the air (OTA) upgrade has gradually been introduced into the automotive industry. Automobile remote upgrade technology has entered the automotive industry. Automobile remote upgrade technology OTA refers to the software or firmware upgrade technology of the car controller through wireless networks (3G, 4G, 5G and WiFi). The automotive electronic control unit (ECU) generally contains two digital control chips: the system-level chip (State of Charge, SOC) and the microcontroller unit (Microcontroller Unit, MCU). The SOC chip has powerful performance and can communicate data with the car computer through the Ethernet port, but the MCU has limited performance and generally does not have an Ethernet port function, and cannot communicate data with the car computer. The firmware can only be upgraded through the CAN bus interface using the on-board diagnostics (OBD), which cannot achieve OTA upgrade of the entire vehicle. This paper proposes a way to upgrade the MCU, adding an SPI communication between the SOC and the MCU to transmit the data required for the MCU upgrade and realize the overall upgrade function of the ECU.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide an ECU upgrade method, device, equipment and storage medium based on over-the-air upgrade, aiming to solve the technical problem that the MCU firmware inside the ECU needs to be locally upgraded through an OBD diagnostic instrument.

[0006] To achieve the above purpose, the present application proposes an ECU upgrade method based on over-the-air upgrade, and the ECU upgrade method based on over-the-air upgrade includes:

[0007] When receiving the upgrade start command, the control system chip downloads the upgrade installation package from the over-the-air upgrade cloud center through the vehicle terminal;

[0008] When the download of the upgrade installation package is completed, the system-on-chip is controlled to perform a system upgrade through the system-on-chip upgrade data in the upgrade installation package;

[0009] The control system chip sends the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface to control the micro control unit to perform system upgrade.

[0010] In one embodiment, after receiving the start upgrade instruction, the step of controlling the control system chip to download the installation package from the over-the-air upgrade cloud center through the vehicle terminal includes:

[0011] After receiving the upgrade start instruction, check whether the current vehicle status meets the upgrade conditions;

[0012] When the current vehicle state meets the upgrade condition, controlling the system-level chip to send a download request instruction to the vehicle terminal;

[0013] When receiving the confirmation download instruction fed back by the vehicle terminal according to the request download instruction, the upgrade installation package is downloaded from the over-the-air upgrade cloud center through the vehicle terminal.

[0014] In one embodiment, when the upgrade installation package is downloaded, the step of controlling the system-on-chip to perform a system upgrade using the system-on-chip upgrade data in the upgrade installation package includes:

[0015] When the download of the upgrade installation package is completed, controlling the system-level chip to start the installation package data integrity check;

[0016] After the integrity check of the upgrade package is completed, the check result is sent to the vehicle terminal;

[0017] After receiving the installation instruction fed back by the vehicle computer according to the verification result, the system-level chip is controlled to perform system upgrade through the system-level chip upgrade data in the upgrade installation package.

[0018] In one embodiment, when the upgrade installation package is downloaded, the step of controlling the system-level chip to start the installation package data integrity check includes:

[0019] When the installation package is downloaded, the verification data of the installation package is parsed using a preset data format;

[0020] The verification data is verified, and when the verification data matches the preset verification data, it is considered that the integrity check of the installation package data has passed.

[0021] In one embodiment, the step of controlling the system-level chip to send the microcontroller unit upgrade data in the upgrade installation package to the microcontroller unit through the SPI interface to control the microcontroller unit to perform system upgrade includes:

[0022] Controlling the system-level chip to send an upgrade command to the micro control unit;

[0023] Controlling the micro control unit to send a download request to the system-level chip when receiving the upgrade command;

[0024] The system-level chip is controlled to send the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface when receiving the download request.

[0025] In one embodiment, after the step of controlling the system-level chip to send the microcontroller unit upgrade data in the upgrade installation package to the microcontroller unit through the SPI interface when receiving the download request, the method further comprises:

[0026] The micro control unit is controlled to write and upgrade the backup area of ​​the micro control unit through the micro control unit upgrade data.

[0027] In one embodiment, after the step of controlling the micro control unit to write and upgrade the backup area of ​​the micro control unit through the micro control unit upgrade data, the method further comprises:

[0028] Controlling the micro control unit to perform upgrade verification on the backup area;

[0029] When the upgrade verification is passed, the micro control unit is controlled to switch to the backup area for operation.

[0030] In addition, to achieve the above purpose, the present application also proposes an ECU upgrade device based on over-the-air upgrade, and the ECU upgrade device based on over-the-air upgrade includes:

[0031] The program download module is used to control the system-level chip to download the upgrade installation package from the over-the-air upgrade cloud center through the vehicle terminal when receiving the start upgrade instruction;

[0032] A system-on-chip upgrade module, used to control the system-on-chip to perform a system upgrade through the system-on-chip upgrade data in the upgrade installation package when the upgrade installation package is downloaded;

[0033] The micro control unit upgrade module is used to control the system-level chip to send the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface, so as to control the micro control unit to perform system upgrade.

[0034] In addition, to achieve the above-mentioned purpose, the present application also proposes an ECU upgrade device based on over-the-air upgrade, the device comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program being configured to implement the steps of the ECU upgrade method based on over-the-air upgrade as described above.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the ECU upgrade method based on over-the-air upgrade as described above are implemented.

[0036] The present application discloses an ECU upgrade method, device, equipment and storage medium based on over-the-air upgrade, and relates to the field of over-the-air technology. ECU upgrade method based on over-the-air upgrade: upon receiving the start upgrade instruction, the control system chip downloads the upgrade installation package from the over-the-air upgrade cloud center through the vehicle terminal; upon the download of the upgrade installation package, the system chip is controlled to perform a system upgrade through the system chip upgrade data in the upgrade installation package; the control system chip sends the microcontroller unit upgrade data in the upgrade installation package to the microcontroller unit through the SPI interface to control the microcontroller unit to perform a system upgrade. The ECU downloads the upgrade installation package from the over-the-air upgrade cloud center through the control system chip, performs a software upgrade on the system chip, and at the same time, the control system chip and the microcontroller unit interact with each other for upgrade instructions and transmit the upgrade package, and the system chip controls the microcontroller unit to perform a firmware upgrade. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0039] Figure 1 A flowchart of the first embodiment of the ECU upgrade method based on over-the-air upgrade of the present application is provided;

[0040] Figure 2 A structural diagram of the first embodiment of the ECU upgrade method based on over-the-air upgrade of the present application;

[0041] Figure 3A flow chart of the second embodiment of the ECU upgrade method based on over-the-air upgrade provided in this application;

[0042] Figure 4 A flowchart of the third embodiment of the ECU upgrade method based on over-the-air upgrade of the present application is provided;

[0043] Figure 5 This is a schematic diagram of the module structure of an ECU upgrade device based on over-the-air upgrade according to an embodiment of the present application;

[0044] Figure 6 This is a schematic diagram of the structure of an ECU upgrade device based on over-the-air upgrade of the hardware operating environment involved in the ECU upgrade method based on over-the-air upgrade in an embodiment of the present application.

[0045] Description of Figure Numbers:

[0046] Label name Label name 10 5G / 4G / 5G / WIFI 1 OTA Cloud Center 20 doip 2 Car terminal 30 SPI 3 ECU 32 MCU 31 SOC

[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0050] The main solution of the embodiment of the present application is: when receiving the start upgrade instruction, the control system chip downloads the upgrade installation package from the over-the-air upgrade cloud center through the vehicle terminal; when the download of the upgrade installation package is completed, the system chip is controlled to perform a system upgrade through the system chip upgrade data in the upgrade installation package; the control system chip sends the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface to control the micro control unit to perform a system upgrade.

[0051] Automobile ECU generally contains two digital control chips, SOC and MCU. SOC chip has powerful performance and can communicate data with the vehicle computer through Ethernet port, but MCU has limited performance and generally does not have Ethernet port function, so it cannot communicate data with the vehicle computer. The firmware can only be upgraded through the CAN bus interface using OBD diagnostic instrument, which cannot achieve OTA upgrade of the whole vehicle.

[0052] The present application provides a solution, in which the ECU controls the system-level chip to download the upgrade installation package from the over-the-air upgrade cloud center, performs software upgrades on the system-level chip, and at the same time controls the system-level chip and the microcontroller unit to interact with each other on upgrade instructions and transmit upgrade packages, and the system-level chip controls the microcontroller unit to perform firmware upgrades.

[0053] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an ECU upgrade device based on over-the-air upgrade that can achieve the above functions, etc. The following takes ECU as an example to illustrate this embodiment and the following embodiments.

[0054] Based on this, the embodiment of the present application provides an ECU upgrade method based on over-the-air upgrade, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the ECU upgrade method based on over-the-air upgrade of the present application.

[0055] In this embodiment, the ECU upgrade method based on over-the-air upgrade includes steps S10 to S30:

[0056] Step S10: When receiving the start upgrade instruction, the control system chip downloads the upgrade installation package from the over-the-air upgrade cloud center through the vehicle terminal.

[0057] It is understandable that an SPI communication interface is added between the SOC and the MCU, and the MCU firmware is upgraded through the SOC. The entire ECU process is divided into three steps: the first step is to upload the software to be updated to the OTA cloud center, the second step: the OTA cloud center wirelessly transmits the software to the vehicle's head unit, and finally the head unit transmits the upgrade installation package to the SOC for upgrade, and the third step: the SOC upgrades the MCU firmware. Among them, the head unit and the ECU are connected through a 100M Ethernet port, and the transmission protocol is the doip protocol to ensure the accuracy and real-time nature of data transmission. Data is transmitted between the SOC and the MCU via a three-wire SPI interface.

[0058] It should be noted that if Figure 2 As shown, the OTA cloud center 1 is connected to the vehicle terminal 2 through a wireless network, and the wireless network includes 3G, 4G, 5G and WIFI10. The vehicle terminal 2 and the ECU are connected through a 100M Ethernet port, and the transmission protocol is the doip protocol 20. The ECU3 includes SOC31 and MCU32, and the SOC31 and MCU32 are connected through an SPI communication interface 30, wherein the doip protocol is used to ensure the reliability and real-time performance of data transmission.

[0059] Specifically, the ECU controls the SOC to interact with the vehicle side, requests the vehicle side to download the upgrade installation package, and the vehicle side transmits the upgrade installation package from the OTA cloud center to the SOC. Among them, the OTA cloud center is a collection of related cloud systems that support the normal operation of OTA services, including both the OTA server that implements the core functions of OTA and other related systems such as enterprise IT management systems, security servers, web consoles, and file servers. The business scope of the OTA cloud center involves all software update-related businesses such as hardware and software lifecycle management, business process integration, and software remote distribution. It is a software upgrade management system (SUMS).

[0060] Step S20: when the download of the upgrade installation package is completed, the system-on-chip is controlled to perform a system upgrade through the system-on-chip upgrade data in the upgrade installation package.

[0061] It should be noted that after the SOC receives the installation package, the ECU controls the SOC to upgrade, wherein the upgrade installation package includes SOC upgrade data and ECU upgrade data.

[0062] Step S30: The control system chip sends the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface to control the micro control unit to perform system upgrade.

[0063] It should be noted that the ECU receives the ECU upgrade data transmitted by the SOC, and the ECU performs a system upgrade.

[0064] In this embodiment, the ECU controls the SOC to download the upgrade installation package. After the download is completed, the ECU controls the SOC to upgrade, and at the same time controls the SOC to transmit the MCU upgrade data in the upgrade installation package to the MCU. The ECU also controls the MCU to upgrade, and transmits data to the MCU through the SOC for writing and upgrading, which simplifies the upgrade process and does not require local operation through the OBD diagnostic instrument.

[0065] It should be noted that the above technical solution mainly optimizes the MCU chip upgrade method in the ECU. There are similar methods to replace this method. You can also add an Ethernet interface to the MCU to connect it to the car computer for upgrading, but that increases hardware and software costs.

[0066] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 , Figure 2 The flowchart of the second embodiment of the ECU upgrade method based on over-the-air upgrade of the present application is provided. In step S10, the ECU upgrade method based on over-the-air upgrade includes:

[0067] Step S201: After receiving the start upgrade instruction, check whether the current vehicle status meets the upgrade conditions.

[0068] It should be noted that when the SOC is started, the default state is the running state. After receiving the start upgrade instruction, the SOC enters the preparation upgrade state, and then starts to judge and detect whether the current vehicle meets the upgrade conditions.

[0069] It is understandable that when the car is in motion, it does not meet the upgrade conditions; when the car version number is too low, it does not meet the upgrade conditions; when the car network signal is poor, it does not meet the upgrade conditions. The ECU prompts the customer that it does not meet the upgrade conditions and stops the upgrade.

[0070] Step S202: When the current vehicle state meets the upgrade condition, control the system-level chip to send a download request instruction to the vehicle terminal.

[0071] It should be noted that when the ECU determines that the current vehicle state meets the upgrade conditions, the SOC enters the download request state, and the SOC requests a download instruction from the vehicle computer.

[0072] Step S203: upon receiving the confirmation download instruction fed back by the vehicle terminal according to the request download instruction, the vehicle terminal downloads the upgrade installation package from the over-the-air upgrade cloud center.

[0073] Step S204: When the download of the upgrade installation package is completed, control the system-level chip to start the installation package data integrity check.

[0074] It should be noted that the verification process of the installation package during the OTA upgrade process is relatively important. In order to ensure that the installation package will not be lost or tampered with during the transmission process, the verification information needs to be included in the file information.

[0075] It is understandable that a data verification mechanism is used to ensure the reliability of the upgrade and avoid situations where data errors cause the ECU to fail to start.

[0076] In step S204, the ECU upgrade method based on over-the-air upgrade includes:

[0077] In step S241 : when the installation package is downloaded, the verification data of the installation package is parsed using a preset data format.

[0078] It should be noted that the upgrade installation package will add 256 bytes to the header, including the system version number information of the installation package and the sha256sum checksum of the file. After the file is downloaded, the sha256sum code and system version number information are parsed in json format.

[0079] In step S242: the verification data is verified, and when the verification data matches the preset verification data, it is considered that the integrity check of the installation package data has passed.

[0080] It should be noted that the 256-byte file is verified, and the 256-byte file contains the system version number information and the sha256sum check code of the file. If the system version number information is correct and the sha256sum check code matches, it is considered that the verification passes.

[0081] It is understandable that if the sha256sum verification code does not match, it is considered that the verification has failed, the upgrade installation package has been downloaded incompletely, and the ECU controls the SOC to resend the download request instruction to the vehicle end.

[0082] Step S205: After the integrity check of the upgrade package is completed, the check result is sent to the vehicle terminal.

[0083] It should be noted that after the SOC sends the verification result to the vehicle computer, the SOC is controlled to enter a waiting state, waiting for the vehicle computer to feedback the installation instruction.

[0084] Step S206: after receiving the installation instruction fed back by the vehicle computer according to the verification result, the system-on-chip is controlled to perform a system upgrade through the system-on-chip upgrade data in the upgrade installation package.

[0085] It is understandable that if the installation instructions are not received from the vehicle computer for a certain period of time, the ECU will prompt the user that an error has occurred or that the network signal is abnormal.

[0086] In this embodiment, the ECU controls the SOC to upgrade, including receiving user upgrade instructions, determining whether the vehicle status meets the upgrade conditions, and after determining that the upgrade can be made, controlling the SOC to send a download request instruction to the vehicle computer end, and starting to download the upgrade installation package after receiving the confirmation download instruction fed back by the vehicle computer end. After the download is complete, the SOC is controlled to perform an integrity check on the upgrade installation package. After the integrity check of the upgrade installation package is completed, the verification result is sent to the vehicle computer end. After receiving the installation instruction fed back by the vehicle computer end, the SOC is controlled to upgrade according to the SOC upgrade data in the upgrade installation package.

[0087] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the above-mentioned first and second embodiments can refer to the above introduction, and will not be repeated later. Figure 3 , Figure 3 A flowchart diagram of the third embodiment of the ECU upgrade method based on over-the-air upgrade of this application is provided.

[0088] In step S30, the ECU upgrade method based on over-the-air upgrade also includes.

[0089] Step S301: controlling the system-level chip to send an upgrade command to the micro control unit.

[0090] It should be noted that after the SOC completes the verification of the installation upgrade package, it sends an upgrade command to the MCU at the same time. After receiving the upgrade command, the MCU switches to the upgrade mode and sends a download request to the SOC. The SOC sends the MCU data in the upgrade installation package to the MCU.

[0091] Step S302: Control the micro control unit to send a download request to the system-on-chip when receiving the upgrade command.

[0092] Step S303: When receiving the download request, the system-level chip is controlled to send the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface.

[0093] It should be noted that SPI is the abbreviation of Serial Peripheral interface. SPI is a high-speed, full-duplex, synchronous communication bus, and only occupies four wires on the chip pins, saving chip pins and saving space on PCB layout, providing convenience.

[0094] It is understandable that the SOC sends the MCU data in the upgrade installation package to the MCU.

[0095] Step S304: controlling the micro control unit to write and upgrade the backup area of ​​the micro control unit through the micro control unit upgrade data.

[0096] It should be noted that in order to ensure the stability of MCU upgrades, the MCU's flash is divided into two areas, A and B, which are the running partition and the backup area respectively. During OTA upgrades, only the backup area will be upgraded.

[0097] It is understandable that during the normal operation of the MCU, system A is operating normally and system B is in standby mode. When the system detects and receives an upgrade task, system B starts to upgrade while system A is still operating normally. When system B is upgraded, the next time it is turned on, system B starts and operates normally, and system A enters standby mode. If system B fails during the upgrade process, it will not affect the normal operation of system A, and the system will operate normally.

[0098] Step S305: Control the micro control unit to perform upgrade verification on the backup area.

[0099] It should be noted that the control MCU performs upgrade verification on the backup area. If the verification passes, the system switches to partition B for operation. If the verification fails, the ECU controls the MCU to be upgraded again or repaired at a 4S shop without affecting the normal operation of the ECU.

[0100] Step S306: When the upgrade verification passes, control the micro control unit to switch to the backup area for operation.

[0101] It should be noted that the boot flag will be switched only after the upgrade verification is completed, and then the system will be restarted and switched to the newly upgraded partition for operation.

[0102] In this embodiment, the problem that the ECU upgrade requires local operation is solved, and the SOC and MCU can be upgraded at the same time, thereby improving the upgrade efficiency. The MCU is written and upgraded through the SOC, and the flash of the MCU is divided into two area operation partitions. The backup area is upgraded first, and the operation partition of the MCU is not affected after the upgrade fails. After the upgrade of the backup area of ​​the MCU is completed, the upgrade verification is performed. After the verification is completed, the partition is switched, and the MCU is restarted to switch to the upgraded backup area for operation.

[0103] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the ECU upgrade method based on over-the-air upgrade of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0104] This application also provides an ECU upgrade device based on over-the-air upgrade, please refer to Figure 5 , the ECU upgrade device based on over-the-air upgrade includes:

[0105] The program download module 10 is used to control the control system chip to download the upgrade installation package from the over-the-air upgrade cloud center through the vehicle terminal when receiving the start upgrade instruction;

[0106] The system-on-chip upgrade module 20 is used to control the system-on-chip to perform system upgrade according to the system-on-chip upgrade data in the upgrade installation package when the upgrade installation package is downloaded;

[0107] The micro control unit upgrade module 30 is used to control the system-level chip to send the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface, so as to control the micro control unit to perform system upgrade.

[0108] The ECU upgrade device based on over-the-air upgrade provided by the present application adopts the ECU upgrade method based on over-the-air upgrade in the above-mentioned embodiment, and can solve the technical problem of the overall upgrade of the ECU. Compared with the prior art, the beneficial effects of the ECU upgrade device based on over-the-air upgrade provided by the present application are the same as the beneficial effects of the ECU upgrade method based on over-the-air upgrade provided by the above-mentioned embodiment, and the other technical features in the ECU upgrade device based on over-the-air upgrade are the same as the features disclosed in the above-mentioned embodiment method, which will not be repeated here.

[0109] The present application provides an ECU upgrade device based on over-the-air upgrade, and the ECU upgrade device based on over-the-air upgrade includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the ECU upgrade method based on over-the-air upgrade in the above-mentioned embodiment one.

[0110] Reference below Figure 6 , which shows a schematic diagram of the structure of an ECU upgrade device based on over-the-air upgrade suitable for implementing the embodiment of the present application. The ECU upgrade device based on over-the-air upgrade in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 6 The ECU upgrade device based on over-the-air upgrade shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0111] like Figure 6As shown, the ECU upgrade device based on over-the-air upgrade may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the ECU upgrade device based on over-the-air upgrade to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows an ECU upgrade device based on over-the-air upgrade with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0112] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0113] The ECU upgrade device based on over-the-air upgrade provided by the present application adopts the ECU upgrade method based on over-the-air upgrade in the above-mentioned embodiment, which can solve the technical problem of mechanical fatigue imbalance of the dual-motor spindle. Compared with the prior art, the beneficial effects of the ECU upgrade device based on over-the-air upgrade provided by the present application are the same as the beneficial effects of the ECU upgrade method based on over-the-air upgrade provided by the above-mentioned embodiment, and the other technical features in the ECU upgrade device based on over-the-air upgrade are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0114] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0115] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0116] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, the computer-readable program instructions being used to execute the ECU upgrade method based on over-the-air upgrade in the above-mentioned embodiment.

[0117] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0118] The computer-readable storage medium may be included in the ECU upgrade device based on over-the-air upgrade; or may exist independently without being assembled into the ECU upgrade device based on over-the-air upgrade.

[0119] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0120] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0122] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned ECU upgrade method based on over-the-air upgrade, and can solve the technical problem of the overall upgrade of the ECU. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the ECU upgrade method based on over-the-air upgrade provided by the above-mentioned embodiment, and will not be repeated here.

[0123] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. An ECU upgrade method based on over-the-air upgrade, characterized in that: The ECU upgrade method based on over-the-air upgrade is applied to an electronic control unit ECU, where the electronic control unit ECU includes a system-on-chip SOC and a microcontroller unit MCU. The method includes: When receiving the upgrade start command, the control system chip downloads the upgrade installation package from the over-the-air upgrade cloud center through the vehicle terminal; When the download of the upgrade installation package is completed, the system-on-chip is controlled to perform a system upgrade through the system-on-chip upgrade data in the upgrade installation package; The control system chip sends the microcontroller unit upgrade data in the upgrade installation package to the microcontroller unit through the SPI interface to control the microcontroller unit to perform system upgrade.

2. The ECU upgrade method based on over-the-air upgrade according to claim 1, characterized in that: After receiving the upgrade start instruction, the step of controlling the control system chip to download the installation package from the over-the-air upgrade cloud center through the vehicle terminal includes: After receiving the upgrade start instruction, check whether the current vehicle status meets the upgrade conditions; When the current vehicle state meets the upgrade condition, controlling the system-level chip to send a download request instruction to the vehicle terminal; When receiving the confirmation download instruction fed back by the vehicle terminal according to the request download instruction, the upgrade installation package is downloaded from the over-the-air upgrade cloud center through the vehicle terminal.

3. The ECU upgrade method based on over-the-air upgrade according to claim 1, characterized in that: When the upgrade installation package is downloaded, the step of controlling the system-on-chip to perform system upgrade using the system-on-chip upgrade data in the upgrade installation package includes: When the download of the upgrade installation package is completed, controlling the system-level chip to start the installation package data integrity check; After the integrity check of the upgrade package is completed, the check result is sent to the vehicle terminal; After receiving the installation instruction fed back by the vehicle computer according to the verification result, the system-level chip is controlled to perform system upgrade through the system-level chip upgrade data in the upgrade installation package.

4. The ECU upgrade method based on over-the-air upgrade as claimed in claim 3, characterized in that: The step of controlling the system-level chip to start the installation package data integrity check when the upgrade installation package is downloaded completely includes: When the installation package is downloaded, the verification data of the installation package is parsed using a preset data format; The verification data is verified, and when the verification data matches the preset verification data, it is considered that the integrity check of the installation package data has passed.

5. The ECU upgrade method based on over-the-air upgrade according to claim 1, characterized in that: The step of controlling the system-level chip to send the microcontroller unit upgrade data in the upgrade installation package to the microcontroller unit through the SPI interface to control the microcontroller unit to perform system upgrade includes: Controlling the system-level chip to send an upgrade command to the micro control unit; Controlling the micro control unit to send a download request to the system-level chip when receiving the upgrade command; The system-level chip is controlled to send the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface when receiving the download request.

6. The ECU upgrade method based on over-the-air upgrade as claimed in claim 5, characterized in that: After the step of controlling the system-level chip to send the microcontroller unit upgrade data in the upgrade installation package to the microcontroller unit through the SPI interface when receiving the download request, the method includes: The micro control unit is controlled to write and upgrade the backup area of ​​the micro control unit through the micro control unit upgrade data.

7. The ECU upgrade method based on over-the-air upgrade as claimed in claim 6, characterized in that: After the step of controlling the micro control unit to write and upgrade the backup area of ​​the micro control unit through the micro control unit upgrade data, the method further comprises: Controlling the micro control unit to perform upgrade verification on the backup area; When the upgrade verification is passed, the micro control unit is controlled to switch to the backup area for operation.

8. An ECU upgrade device based on over-the-air upgrade, characterized in that: The device comprises: The program download module is used to control the system-level chip to download the upgrade installation package from the over-the-air upgrade cloud center through the vehicle terminal when receiving the start upgrade instruction; A system-on-chip upgrade module, used to control the system-on-chip to perform a system upgrade through the system-on-chip upgrade data in the upgrade installation package when the upgrade installation package is downloaded; The micro control unit upgrade module is used to control the system-level chip to send the micro control unit upgrade data in the upgrade installation package to the micro control unit through the SPI interface, so as to control the micro control unit to perform system upgrade.

9. An ECU upgrade device based on over-the-air upgrade, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the ECU upgrade method based on over-the-air upgrade as claimed in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the ECU upgrade method based on over-the-air upgrade as described in any one of claims 1 to 7 are implemented.