A method for remotely flashing ECU on a construction machinery vehicle networking platform

Through the two-stage instruction upgrade method, the confidentiality of the Seed value and Key value is used to solve the problem of insufficient security during the ECU upgrade process, realize safe ECU program flashing, prevent illegal control, and ensure the normal operation of the vehicle. and users’ economic interests.

CN115884165BActive Publication Date: 2024-10-11QINGDAO LOVOL EXCAVATOR
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202211620809.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-16
Publication Date
2024-10-11
Estimated Expiration
2042-12-16

AI Technical Summary

Technical Problem

During the ECU upgrade process, existing technology cannot guarantee safety. Illegal personnel can intercept and forge upgrade instructions, resulting in increased vehicle control risks and economic losses.

Method used

Using a two-stage instruction upgrade method, the pre-upgrade obtains the Seed value and the actual upgrade uses the Key value. Secure software upgrade package transmission and verification is performed through HTTP and FTP servers to ensure the security of the upgrade process.

Benefits of technology

Through the confidentiality of Seed value and Key value, illegal personnel are prevented from forging upgrade instructions, the security of ECU upgrade is improved, and the normal operation of the vehicle and the safety of the user's economic interests are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115884165B_ABST
    Figure CN115884165B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for remotely flashing ECU of an engineering machinery vehicle networking platform, including two parts: pre-upgrade and actual upgrade. Pre-upgrade: The OTA platform requests a software upgrade package from the manufacturer platform and downloads and decompresses it, then transcodes it and uploads it to an FTP server. The OTA platform sends a pre-upgrade instruction to T-BOX, and T-BOX opens an ECU upgrade session and obtains the session type and Seed value, and then returns the session type and Seed value to the OTA platform, while maintaining the upgrade session and waiting for the actual upgrade. Actual upgrade: The OTA platform requests a secure access interface from the manufacturer platform and obtains the Key value according to the session type and Seed value returned by T-BOX, and then constructs an upgrade instruction with the Key value and the upgrade package address information and sends it to T-BOX. T-BOX pulls the software upgrade package from the FTP server, and sends the Key value to the ECU for verification. After the ECU passes the verification, the verification qualification information is sent to T-BOX, and the program is flashed, and the OTA platform records the upgrade result. The upgrade method using two-segment instructions effectively ensures the security of the upgrade.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of engineering machinery intelligent control, and in particular to a method for remotely flashing an ECU on an engineering machinery vehicle networking platform. Background Art

[0002] During the ECU upgrade process, the ECU cannot work properly and the vehicle cannot start normally, which requires that the security of the ECU upgrade process must be guaranteed. If only one command upgrade method is used, T-BOX will upgrade the ECU as soon as it receives the upgrade command. Illegal personnel can easily change the ECU program by intercepting the upgrade command and forging the upgrade command, thereby controlling the vehicle operation and causing economic losses. Summary of the invention

[0003] The purpose of the present invention is to provide a method for remotely flashing ECU of an engineering machinery vehicle networking platform that can be safely upgraded in order to solve the above problems.

[0004] To achieve the above-mentioned purpose, the present invention discloses a method for remotely flashing an ECU on a vehicle networking platform of an engineering machinery, which includes two parts: a pre-upgrade and an actual upgrade.

[0005] The pre-upgrade part includes: according to the upgrade information pushed by the manufacturer's platform, the OTA platform requests the software upgrade package from the manufacturer's platform through HTTP, then downloads and obtains the software upgrade package, decompresses the software upgrade package, and then transcodes the decompressed file and uploads it to the FTP server. The OTA platform sends the pre-upgrade instruction to T-BOX, T-BOX starts the ECU upgrade session and obtains the session type and encrypted Seed value, then returns the session type and Seed value to the OTA platform, while maintaining the upgrade session waiting for the actual upgrade, and the pre-upgrade is completed.

[0006] The actual upgrade part includes: according to the session type and Seed value returned by T-BOX, the OTA platform requests the manufacturer platform for a secure access interface through HTTP and obtains the Key value, then constructs an upgrade instruction with the Key value and the upgrade package address information and sends it to T-BOX. After receiving the upgrade instruction, T-BOX pulls the software upgrade package from the FTP server according to the upgrade instruction content, and sends the Key value to the ECU for verification. After the ECU passes the verification, it sends the verification pass information to T-BOX, and then T-BOX starts to flash the program to the ECU. After the program flashing is completed, the ECU returns the upgrade result to the OTA platform through T-BOX. The OTA platform records the upgrade result and the actual upgrade is completed.

[0007] The pre-upgrade instruction is a non-mandatory upgrade instruction or a mandatory upgrade instruction.

[0008] When the pre-upgrade instruction is a non-mandatory upgrade instruction, after receiving the instruction, T-BOX obtains the engine number from the ECU and compares it with the engine number in the pre-upgrade instruction. If the actual engine number is consistent with the engine number in the pre-upgrade instruction, the pre-upgrade is confirmed, T-BOX opens the ECU upgrade session and continues the subsequent operations. If the actual engine number is inconsistent with the engine number in the pre-upgrade instruction, the pre-upgrade is canceled and the pre-upgrade failure information is fed back to the OTA platform. When the pre-upgrade instruction is a mandatory upgrade instruction, after receiving the instruction, T-BOX directly opens the ECU upgrade session and continues the subsequent operations without checking the engine number.

[0009] The upgrade method uses two-stage instructions. The pre-upgrade obtains the Seed value to prepare for the upgrade, and the actual upgrade returns the Key value. Because of the confidentiality of the Seed value and Key value algorithm, it is not easy to upgrade by intercepting and forging the upgrade instruction, thus ensuring security. In addition, users can choose to adjust the pre-upgrade instruction to a non-mandatory upgrade instruction or a mandatory upgrade instruction according to actual needs, which has strong adaptability.

[0010] Preferably, in the actual upgrade part, if the ECU verification Key value fails, the failure information is sent to T-BOX, and T-BOX stops subsequent upgrade operations (i.e., T-BOX does not flash the ECU) and feeds back the verification failure information to the OTA platform.

[0011] Preferably, after T-BOX starts the ECU upgrade session, the ECU stops normal operation. If the ECU verification Key value fails, the ECU sends the failure information to T-BOX and restarts normal operation. If the ECU verification Key value passes, after the program flashing is completed, the ECU returns the upgrade result to the OTA platform through T-BOX and restarts normal operation.

[0012] Preferably, when the system is not upgraded, the manufacturer platform pushes the upgrade information to the OTA platform, and the OTA platform saves the upgrade information.

[0013] Preferably, in the pre-upgrade part, the OTA platform converts the decompressed HEX file into a BIN file and uploads it to the FTP server.

[0014] Preferably, the Seed value is a random code given by the ECU, and the Key value is calculated by the manufacturer platform according to the session type and the Seed value, thereby ensuring the confidentiality of the Seed value and the Key value and further improving the security of the ECU upgrade.

[0015] Preferably, before performing the pre-upgrade, the remote user needs to call the upgrade to the OTA platform, that is, send an upgrade instruction. The OTA platform starts the ECU upgrade (pre-upgrade and actual upgrade) only after receiving the user's upgrade instruction (which can be after the user remotely presses the upgrade option).

[0016] Preferably, after the actual upgrade is completed, the OTA platform feeds back the upgrade results to the manufacturer platform.

[0017] In summary, the beneficial effects of the present invention are as follows: in the present invention, a two-stage instruction upgrade method is adopted, the pre-upgrade obtains the Seed value to prepare for the upgrade, and the actual upgrade returns the Key value. The Seed value is a random code given by the ECU, and the Key value is calculated by the manufacturer platform based on the Seed value and the session type information. Due to the confidentiality of the Seed value and the Key value algorithm, it is not easy to upgrade by intercepting and forging the upgrade instruction, thereby ensuring security. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flow chart of a method for remotely flashing ECU of an engineering machinery vehicle networking platform during non-mandatory upgrade of the present invention;

[0019] Figure 2 It is a flow chart of a method for remotely flashing an ECU on an engineering machinery vehicle networking platform during forced upgrade according to the present invention. DETAILED DESCRIPTION

[0020] The specific implementation of the present invention is further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0021] The following is a description of preferred embodiments of the present invention with reference to the accompanying drawings.

[0022] like Figure 1 and Figure 2 As shown, the present invention discloses a method for remotely flashing ECU on a vehicle networking platform for construction machinery, including pre-upgrade and actual upgrade. Before pre-upgrade, the remote user needs to call the upgrade to the OTA platform, that is, send an upgrade instruction. The OTA platform starts the ECU upgrade (pre-upgrade and actual upgrade) only after receiving the user's upgrade instruction (which can be after the user remotely presses the upgrade option).

[0023] The pre-upgrade part includes: according to the upgrade information pushed by the manufacturer platform, the OTA platform requests the software upgrade package from the manufacturer platform through HTTP, then downloads and obtains the software upgrade package, decompresses the software upgrade package, and then converts the decompressed HEX file into a BIN file and uploads it to the FTP server. The OTA platform sends the pre-upgrade instruction to the T-BOX, T-BOX starts the ECU upgrade session and obtains the session type and encrypted Seed value, then returns the session type and Seed value to the OTA platform, while maintaining the upgrade session waiting for the actual upgrade, and the pre-upgrade is completed. When the system is not upgraded, the manufacturer platform pushes the upgrade information to the OTA platform, and the OTA platform saves the upgrade information. The Seed value is a random code given by the ECU.

[0024] Pre-upgrade instructions include mandatory upgrade and non-mandatory upgrade instructions.

[0025] like Figure 1 As shown, if the pre-upgrade instruction is a non-mandatory upgrade instruction, after T-BOX receives the instruction, T-BOX obtains the engine number from ECU and compares it with the engine number in the pre-upgrade instruction. If the actual engine number is consistent with the engine number in the pre-upgrade instruction, the pre-upgrade is confirmed, T-BOX starts the ECU upgrade session and continues the subsequent operations. If the actual engine number is inconsistent with the engine number in the pre-upgrade instruction, the pre-upgrade is canceled and the pre-upgrade failure information is fed back to the OTA platform.

[0026] like Figure 2 As shown, if the pre-upgrade instruction is a mandatory upgrade instruction, after receiving the instruction, T-BOX directly starts the ECU upgrade session and continues the subsequent operations without checking the engine number.

[0027] The actual upgrade part includes: according to the session type and Seed value returned by T-BOX, the OTA platform requests the secure access interface from the manufacturer platform through HTTP and obtains the Key value, then constructs the upgrade instruction with the Key value and the upgrade package address information and sends it to T-BOX. After receiving the upgrade instruction, T-BOX pulls the software upgrade package from the FTP server according to the upgrade instruction content, and sends the Key value to the ECU for verification. After the ECU passes the verification, it sends the verification pass information to T-BOX, and then T-BOX starts to flash the ECU. After the program flashing is completed, the ECU returns the upgrade result to the OTA platform through T-BOX. The OTA platform records the upgrade result, and the actual upgrade is completed. The Key value is calculated by the manufacturer platform based on the session type and Seed value.

[0028] In the actual upgrade part, if the ECU verification key value fails, the failure information will be sent to T-BOX, and T-BOX will stop subsequent upgrade operations (that is, T-BOX will not flash the ECU program) and feedback the verification failure information to the OTA platform.

[0029] After the actual upgrade is completed, the OTA platform will feedback the upgrade results to the manufacturer platform.

[0030] After T-BOX starts the ECU upgrade session, the ECU stops working normally. If the ECU verification key value fails, the ECU sends the failure information to T-BOX and restarts to work normally. If the ECU verification key value passes, after the program flashing is completed, the ECU returns the upgrade result to the OTA platform through T-BOX and restarts to work normally.

[0031] The upgrade method uses two-stage instructions. The pre-upgrade obtains the Seed value to prepare for the upgrade, and the actual upgrade returns the Key value. The Seed value is a random code given by the ECU, and the Key value is calculated by the manufacturer's platform based on the Seed value and session type information. Due to the confidentiality of the Seed value and Key value algorithm, it is not easy to upgrade by intercepting and forging upgrade instructions, thereby ensuring security.

[0032] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and substitutions can be made without departing from the technical principles of the present invention. These improvements and substitutions should also be regarded as the scope of protection of the present invention.

Claims

1. A method for remotely flashing ECU on a construction machinery vehicle networking platform, characterized in that: It includes two parts: pre-upgrade and actual upgrade; The pre-upgrade part includes: according to the upgrade information pushed by the manufacturer platform, the OTA platform requests the software upgrade package from the manufacturer platform through HTTP, then downloads and obtains the software upgrade package, decompresses the software upgrade package, and then transcodes the decompressed file and uploads it to the FTP server. The OTA platform sends the pre-upgrade instruction to the T-BOX, and the T-BOX starts the ECU upgrade session and obtains the session type and encrypted Seed value, and then returns the session type and Seed value to the OTA platform, while maintaining the upgrade session and waiting for the actual upgrade. The pre-upgrade is completed; The actual upgrade part includes: according to the session type and Seed value returned by T-BOX, the OTA platform requests the secure access interface from the manufacturer platform through HTTP and obtains the Key value, then constructs an upgrade instruction with the Key value and the upgrade package address information and sends it to T-BOX. After receiving the upgrade instruction, T-BOX pulls the software upgrade package from the FTP server according to the upgrade instruction content, and sends the Key value to the ECU for verification. After the ECU passes the verification, it sends the verification pass information to T-BOX, and then T-BOX starts to flash the program to the ECU. After the program flashing is completed, the ECU returns the upgrade result to the OTA platform through T-BOX, and the OTA platform records the upgrade result, and the actual upgrade is completed; The pre-upgrade instruction is a non-mandatory upgrade instruction or a mandatory upgrade instruction; When the pre-upgrade instruction is a non-mandatory upgrade instruction, after receiving the instruction, T-BOX obtains the engine number from the ECU and compares it with the engine number in the pre-upgrade instruction. If the actual engine number is consistent with the engine number in the pre-upgrade instruction, the pre-upgrade is confirmed, T-BOX starts the ECU upgrade session and continues the subsequent operations. If the actual engine number is inconsistent with the engine number in the pre-upgrade instruction, the pre-upgrade is canceled and the pre-upgrade failure information is fed back to the OTA platform. When the pre-upgrade instruction is a mandatory upgrade instruction, after receiving the instruction, T-BOX directly starts the ECU upgrade session and continues the subsequent operations without verifying the engine number.

2. The method for remotely flashing ECU on the engineering machinery vehicle networking platform as claimed in claim 1, characterized in that: In the actual upgrade part, if the ECU verification key value fails, the failure information will be sent to T-BOX, and T-BOX will stop subsequent upgrade operations and feedback the verification failure information to the OTA platform.

3. The method for remotely flashing ECU on the engineering machinery vehicle networking platform as claimed in claim 2, characterized in that: After T-BOX starts the ECU upgrade session, the ECU stops working normally. If the ECU verification key value fails, the ECU sends the failure information to T-BOX and restarts to work normally. If the ECU verification key value passes, after the program flashing is completed, the ECU returns the upgrade result to the OTA platform through T-BOX and restarts to work normally.

4. The method for remotely flashing ECU on the engineering machinery vehicle networking platform as claimed in claim 1, characterized in that: When the system is not upgraded, the manufacturer platform pushes the upgrade information to the OTA platform, and the OTA platform saves the upgrade information.

5. The method for remotely flashing ECU on the engineering machinery vehicle networking platform as claimed in claim 1, characterized in that: In the pre-upgrade part, the OTA platform converts the decompressed HEX file into a BIN file and uploads it to the FTP server.

6. The method for remotely flashing ECU on the engineering machinery vehicle networking platform as claimed in claim 1, characterized in that: The Seed value is a random code given by the ECU, and the Key value is calculated by the manufacturer's platform based on the session type and the Seed value.

7. The method for remotely flashing ECU on the engineering machinery vehicle networking platform as claimed in claim 1, characterized in that: Before pre-upgrade, the remote user needs to call the upgrade to the OTA platform, that is, send an upgrade instruction.

8. The method for remotely flashing ECU on a construction machinery vehicle networking platform as claimed in claim 1, characterized in that: After the actual upgrade is completed, the OTA platform will feedback the upgrade results to the manufacturer platform.

Citation Information

Patent Citations

  • ECU data flashing method and system

    CN110109690A

  • Method for realizing multipath remote OTA upgrading of pure electric passenger vehicle based on CAN bus

    CN110474961A

  • Vehicle ECU upgrading method and system

    CN111459518A

  • Safety access method and system applied to ECU

    CN111897545A

  • OTA upgrading method of vehicle ECU, electronic equipment, vehicle and readable storage medium

    CN113176902A