A method for backing up vehicle-mounted electronic control unit software

By setting up a public backup area in the MCU memory of the vehicle CGW and using the coordinated work of the cloud and T-BOX, the backup and recovery of ECU software without increasing hardware costs is achieved, and the cost in the existing technology is solved. The problem of large storage space requirements ensures the functional reliability of the on-board electronic control unit.

CN114546719BActive Publication Date: 2024-12-24DONGFENG MOTOR GRP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210087256.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-25
Publication Date
2024-12-24
Estimated Expiration
2042-01-25

AI Technical Summary

Technical Problem

The existing on-board electronic control unit software backup solution is costly and requires high MCU storage space, making it difficult to achieve effective software backup without increasing hardware costs.

Method used

Set up a public backup area in the MCU memory of the vehicle CGW. Through the coordinated work of the cloud and T-BOX, the backup and recovery of the ECU software can be done after the backup conditions are judged and met, ensuring that the upgrade can be safely restored to the previous version when the upgrade fails. .

Benefits of technology

It realizes effective backup of ECU software without increasing other hardware costs, ensuring the reliability and reliable recovery of functions, and reducing MCU storage space requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546719B_ABST
    Figure CN114546719B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for backing up the software of a vehicle-mounted electronic control unit. The method sets a common backup area in the MCU memory of the CGW of the vehicle so that the ECU can back up the original data packet to the common backup area during the upgrade process. The method makes full use of the basic unit in the vehicle system and realizes the backup of the ECU without increasing the additional hardware cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle-mounted software backup, and in particular to a method for backing up vehicle-mounted electronic control unit software. Background Art

[0002] With the increasing popularity of vehicle-mounted OTA technology, in order to ensure the reliability of vehicle functions after OTA, and to avoid network interruption during the OTA upgrade process, or the failure of the new version of the software to run normally, which may lead to ECU function failure, the ECU software will be backed up before the OTA upgrade, and the ECU software will be restored to the state before the upgrade after the ECU upgrade fails. In the prior art, there is a solution that adopts a dual-CPU redundant design. During the OTA upgrade, only one of the CPUs is upgraded. If the upgrade fails, the backup CPU will be started to ensure normal functions; but this solution is costly and not suitable for large-scale applications. In the prior art, there is also a solution that uses an MCU with a large storage space, and divides a storage area in the middle of the memory as a backup area, backs up the application software in the backup area, and if the upgrade fails, restores it to the version before the upgrade through the backup area software; this solution has high requirements for MCU selection, and the storage space requirement of the MCU is much larger than the storage space occupied by normal operation. Summary of the invention

[0003] The object of the present invention is to provide a method for backing up the software of an on-vehicle electronic control unit to solve the high cost problem caused by the software backup solution in the prior art.

[0004] In order to solve the above technical problems, the present invention provides a technical solution: a method for backing up the software of a vehicle-mounted electronic control unit, the method comprising the following steps:

[0005] S1. Setting a public backup area in the MCU memory of the vehicle CGW;

[0006] S2: During the software upgrade process, the cloud sends an upgrade request to the vehicle T-BOX, and the T-BOX determines the OTA upgrade conditions. If the OTA upgrade conditions are met, it enters the OTA upgrade mode;

[0007] In S3, OTA upgrade mode, the cloud first sends the ECU ID to be upgraded to T-BOX, and T-BOX forwards the ECU ID to be upgraded to CGW;

[0008] S4. CGW determines the backup condition based on the received ECU ID to be upgraded. If the backup condition is met, CGW sends a backup request to the ECU.

[0009] S5. The ECU responds to the backup request and sends the backup data packet size to the CGW. When the CGW determines that the backup storage space is larger than the backup data packet size, the CGW sends a confirmation backup request to the ECU.

[0010] S6. After receiving the confirmed backup request, ECU performs security authentication on CGW. After the security authentication is passed, ECU sends the backup data packet to CGW. During the backup process, the cloud sends the software upgrade package to T-BOX, and T-BOX sends the software upgrade package to CGW through the vehicle bus.

[0011] S7. After the backup is completed, the ECU sends a backup completion flag to the CGW. After receiving the backup completion flag, the CGW performs security authentication with the ECU. After the security authentication is passed, the ECU performs software upgrade.

[0012] According to the above solution, the storage size of the public backup area can back up 3 to 5 ECU backup data packets at the same time.

[0013] According to the above scheme, CGW determines the download priority according to the ECU ID to be upgraded, and the smaller the ID number, the higher the corresponding priority.

[0014] According to the above scheme, the backup conditions in S4 are as follows:

[0015] a) The ECU ID to be backed up is correct;

[0016] b) No OTA upgrade has been performed within 5 ignition cycles.

[0017] A vehicle-mounted electronic control unit software backup device for implementing the above-mentioned vehicle-mounted electronic control unit software backup method comprises:

[0018] T-BOX is used to receive the upgrade request sent by the cloud and make OTA upgrade condition judgment; when the upgrade conditions are met, T-BOX receives the ECU ID to be upgraded sent by the cloud and forwards the ECU ID to be upgraded to CGW; during the upgrade process, T-BOX receives the software upgrade package sent by the cloud and sends the software upgrade package to CGW through the vehicle bus;

[0019] CGW has a public backup area in its MCU memory; CGW determines the backup condition based on the ECU ID to be upgraded forwarded by T-BOX, and sends a backup request to the ECU if the backup condition is met; CGW returns confirmation of the backup request to the ECU based on the size of the backup data packet sent by the ECU; after the backup is completed, CGW performs security authentication with the ECU when it receives the backup completion flag.

[0020] ECU is used to respond to the backup request and send the backup data packet size to CGW. After receiving the confirmation backup request, it performs security authentication with CGW. After the security authentication is passed, it sends the backup data packet to CGW, and after the backup is completed, it sends the backup completion flag to CGW, and then performs security authentication with CGW. After the security authentication is passed, the ECU performs software upgrade.

[0021] According to the above solution, the storage size of the public backup area can back up 3 to 5 ECU backup data packets at the same time.

[0022] According to the above scheme, CGW determines the download priority according to the ECU ID to be upgraded, and the smaller the ID number, the higher the corresponding priority.

[0023] According to the above scheme, the specific backup conditions are:

[0024] a) The ECU ID to be backed up is correct;

[0025] b) No OTA upgrade has been performed within 5 ignition cycles.

[0026] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for backing up the software of an on-board electronic control unit when executing the computer program.

[0027] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for backing up the software of an on-board electronic control unit.

[0028] The beneficial effect of the present invention is that by setting a public backup area in the memory of the MCU of the CGW, the software backup of the ECU is realized without increasing other hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 This is a flowchart of ECU software upgrade according to an embodiment of the present invention;

[0030] Figure 2 The data backup flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution of the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings of the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the described embodiments of the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0032] A method for backing up vehicle-mounted electronic control unit software, the method comprising the following steps:

[0033] S1. Set a public backup area in the MCU memory of the vehicle CGW. The storage size of the public backup area can simultaneously back up 3 to 5 ECU backup data packets.

[0034] S2: During the software upgrade process, the cloud sends an upgrade request to the vehicle T-BOX, and the T-BOX determines the OTA upgrade conditions. If the OTA upgrade conditions are met, it enters the OTA upgrade mode;

[0035] In S3, OTA upgrade mode, the cloud first sends the ECU ID to be upgraded to T-BOX, and T-BOX forwards the ECU ID to be upgraded to CGW; CGW determines the download priority based on the ECU ID to be upgraded, and the smaller the ID number, the higher the corresponding priority.

[0036] S4. The CGW determines the backup conditions according to the received ECU ID to be upgraded. If the following backup conditions are met at the same time, the CGW sends a backup request to the ECU.

[0037] a) The ECU ID to be backed up is correct;

[0038] b) No OTA upgrade has been performed within 5 ignition cycles.

[0039] S5. The ECU responds to the backup request and sends the backup data packet size to the CGW. When the CGW determines that the backup storage space is larger than the backup data packet size, the CGW sends a confirmation backup request to the ECU.

[0040] S6. After receiving the confirmed backup request, ECU performs security authentication on CGW. After the security authentication is passed, ECU sends the backup data packet to CGW. During the backup process, the cloud sends the software upgrade package to T-BOX, and T-BOX sends the software upgrade package to CGW through the vehicle bus.

[0041] S7. After the backup is completed, the ECU sends a backup completion flag to the CGW. After receiving the backup completion flag, the CGW performs security authentication with the ECU. After the security authentication is passed, the ECU performs software upgrade.

[0042] A vehicle-mounted electronic control unit software backup device for implementing the above-mentioned vehicle-mounted electronic control unit software backup method comprises:

[0043] T-BOX is used to receive the upgrade request sent by the cloud and make OTA upgrade condition judgment; when the upgrade conditions are met, T-BOX receives the ECU ID to be upgraded sent by the cloud and forwards the ECU ID to be upgraded to CGW; during the upgrade process, T-BOX receives the software upgrade package sent by the cloud and sends the software upgrade package to CGW through the vehicle bus;

[0044] CGW has a public backup area in its MCU memory; CGW determines the backup condition based on the ECU ID to be upgraded forwarded by T-BOX, and sends a backup request to the ECU if the backup condition is met; CGW returns confirmation of the backup request to the ECU based on the size of the backup data packet sent by the ECU; after the backup is completed, CGW performs security authentication with the ECU when it receives the backup completion flag.

[0045] ECU is used to respond to the backup request and send the backup data packet size to CGW. After receiving the confirmation backup request, it performs security authentication with CGW. After the security authentication is passed, it sends the backup data packet to CGW, and after the backup is completed, it sends the backup completion flag to CGW, and then performs security authentication with CGW. After the security authentication is passed, the ECU performs software upgrade.

[0046] Furthermore, the storage size of the public backup area can simultaneously back up 3 to 5 ECU backup data packets.

[0047] Furthermore, the CGW determines the download priority according to the ECU ID to be upgraded, and the smaller the ID number, the higher the corresponding priority.

[0048] Furthermore, the backup condition is specifically that, at the same time,

[0049] a) The ECU ID to be backed up is correct;

[0050] b) No OTA upgrade has been performed within 5 ignition cycles.

[0051] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for backing up the software of an on-board electronic control unit when executing the computer program.

[0052] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the above-mentioned method for backing up the software of an on-board electronic control unit.

[0053] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for backing up vehicle-mounted electronic control unit software, characterized in that: The method comprises the following steps, S1. Setting a public backup area in the MCU memory of the vehicle CGW; S2: During the software upgrade process, the cloud sends an upgrade request to the vehicle T-BOX, and the T-BOX determines the OTA upgrade conditions. If the OTA upgrade conditions are met, it enters the OTA upgrade mode; In S3, OTA upgrade mode, the cloud first sends the ECU ID to be upgraded to T-BOX, and T-BOX forwards the ECU ID to be upgraded to CGW; S4. CGW determines the backup condition based on the received ECU ID to be upgraded. If the backup condition is met, CGW sends a backup request to the ECU. S5. The ECU responds to the backup request and sends the backup data packet size to the CGW. When the CGW determines that the backup storage space is larger than the backup data packet size, the CGW sends a confirmation backup request to the ECU. S6. After receiving the confirmation backup request, the ECU performs security authentication on the CGW. After the security authentication is passed, the ECU sends the backup data packet to the CGW; During the backup process, the cloud sends the software upgrade package to the T-BOX, and the T-BOX sends the software upgrade package to the CGW via the vehicle bus; S7. After the backup is completed, the ECU sends a backup completion flag to the CGW. After receiving the backup completion flag, the CGW performs security authentication with the ECU. After the security authentication is passed, the ECU performs software upgrade.

2. The method for backing up the vehicle-mounted electronic control unit software according to claim 1, characterized in that: The storage size of the public backup area is capable of backing up 3 to 5 ECU backup data packets at the same time.

3. The method for backing up the vehicle-mounted electronic control unit software according to claim 1, characterized in that: CGW determines the download priority based on the ECU ID to be upgraded. The smaller the ID number, the higher the corresponding priority.

4. The method for backing up the vehicle-mounted electronic control unit software according to claim 1, characterized in that: The specific backup conditions in S4 are: a) The ECU ID to be backed up is correct; b) No OTA upgrade has been performed within 5 ignition cycles.

5. A vehicle-mounted electronic control unit software backup device for implementing the vehicle-mounted electronic control unit software backup method according to any one of claims 1 to 4, characterized in that: include, T-BOX is used to receive the upgrade request sent by the cloud and make OTA upgrade condition judgment; when the upgrade conditions are met, T-BOX receives the ECU ID to be upgraded sent by the cloud and forwards the ECU ID to be upgraded to CGW; during the upgrade process, T-BOX receives the software upgrade package sent by the cloud and sends the software upgrade package to CGW through the vehicle bus; CGW, whose MCU memory is provided with a public backup area; CGW judges the backup condition according to the ECU ID to be upgraded forwarded by T-BOX, and sends a backup request to the ECU if the backup condition is met; CGW returns a confirmation of the backup request to the ECU according to the size of the backup data packet sent by the ECU; After the backup is completed, CGW performs security authentication with ECU when receiving the backup completion flag; ECU is used to respond to the backup request and send the backup data packet size to CGW. After receiving the confirmation backup request, it performs security authentication with CGW. After the security authentication is passed, it sends the backup data packet to CGW, and after the backup is completed, it sends the backup completion flag to CGW, and then performs security authentication with CGW. After the security authentication is passed, the ECU performs software upgrade.

6. The vehicle-mounted electronic control unit software backup device according to claim 5, characterized in that: The storage size of the public backup area is capable of backing up 3 to 5 ECU backup data packets at the same time.

7. The vehicle-mounted electronic control unit software backup device according to claim 5, characterized in that: CGW determines the download priority based on the ECU ID to be upgraded. The smaller the ID number, the higher the corresponding priority.

8. The vehicle-mounted electronic control unit software backup device according to claim 5, characterized in that: The specific backup conditions are: a) The ECU ID to be backed up is correct; b) No OTA upgrade has been performed within 5 ignition cycles.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the method for backing up the vehicle-mounted electronic control unit software as described in any one of claims 1-4 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method for backing up the vehicle electronic control unit software as described in any one of claims 1-4 are implemented.