Electronic oil pump OTA upgrading method, device and equipment and computer storage medium
By determining and forwarding the OTA upgrade instruction set of electronic oil pumps in TBOX, the problem of the inability to upgrade the electronic oil pumps in the prior art is solved, and a more efficient and convenient upgrade process is achieved.
Patent Information
- Application Number
- CN202411912045.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-15
AI Technical Summary
The existing technology cannot update and upgrade the electronic oil pump through the vehicle OTA, resulting in insufficient upgrade efficiency and convenience.
When obtaining the MCU software upgrade package from the OTA platform through TBOX, it is determined whether it is an electronic oil pump software upgrade package based on the erase memory instructions, and forward the corresponding upgrade instruction set to the electronic oil pump for OTA upgrade.
The OTA upgrade of the entire vehicle through the MCU is realized, and the upgrade efficiency and convenience of the electronic oil pump is improved.
Smart Images

Figure CN119829106A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle control technology, and in particular to an electronic oil pump OTA upgrade method, device, equipment and computer storage medium. Background Art
[0002] At present, "software-defined cars" has become the development trend of automobiles, and the complexity of automobile software has also increased greatly. It is difficult to provide users with the best experience by only upgrading at 4S stores to fix software failures and update personalized customization needs. Therefore, in new energy vehicles, ECU is required to have OTA (Over-The-Air technology) function. Through OTA technology, software-related problems can be fixed without recalls, and new functions can be pushed to vehicles and vehicle performance can be improved.
[0003] Oil-cooled motors cool the stator and rotor of the motor directly through oil, and have high heat dissipation efficiency; therefore, oil-cooled motors have higher power density. Currently, new energy vehicles widely use oil-cooled motors as drive motors. Oil-cooled motors cool the stator and rotor of the motor through oil, so oil-cooled electric drives usually have electronic oil pumps (EOP); considering the energy loss and NVH performance of the entire vehicle, the motor controller generally controls the speed of the electronic oil pump according to the actual cooling requirements of the electric drive, and the electronic oil pump only communicates with the motor controller (MCU). Therefore, the current common practice is that the motor controller is connected to the oil pump through (internal) private CAN communication (or LIN communication), that is, in the vehicle CAN network, there is only a motor controller node, and the oil pump is the slave node of the motor controller.
[0004] The common practice of OTA upgrade of electric drive system is: TBOX obtains software package from OTA platform, conducts diagnostic communication with MCU through gateway, and upgrades MCU program. Because the oil pump is not in the vehicle CAN network, TBOX cannot communicate directly with the electronic oil pump; at the same time, the communication protocol between TBOX and MCU and the communication protocol between MCU and EOP may be different (for example, the communication protocol between TBOX and MCU may be high-speed CANFD, and the communication protocol between MCU and EOP may be slower LIN), so the electronic oil pump cannot be updated and upgraded through vehicle OTA. Summary of the invention
[0005] In view of the above problems, the present application provides an electronic oil pump OTA upgrade method, device, equipment and computer storage medium, which are used to solve the problem in the prior art that the electronic oil pump cannot be updated and upgraded through vehicle OTA.
[0006] According to one aspect of an embodiment of the present application, a method for OTA upgrading an electronic oil pump is provided, the method comprising:
[0007] When the TBOX obtains the MCU software upgrade package from the OTA platform, based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, it is determined whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump, and a determination result is obtained;
[0008] When the judgment result is yes, the electronic oil pump upgrade instruction set including the memory erase instruction of the electronic oil pump software upgrade package sent by the TBOX is forwarded to the electronic oil pump for OTA upgrade.
[0009] In an optional manner, the erase memory instruction includes: a target memory address; based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, the step of determining whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump further includes:
[0010] Obtaining a target memory address in the erase memory instruction;
[0011] If the target memory address is the memory address of the electronic oil pump, the MCU software upgrade package is determined to be the electronic oil pump software upgrade package corresponding to the electronic oil pump; otherwise, the MCU software upgrade package is determined not to be the electronic oil pump software upgrade package corresponding to the electronic oil pump.
[0012] In an optional manner, the method further includes:
[0013] The electronic oil pump upgrade instruction set sent by the TBOX is received through a first communication protocol; wherein the first communication protocol is: a communication protocol adapted to instruction transmission between the TBOX and the MCU.
[0014] In an optional manner, the step of forwarding the electronic oil pump upgrade instruction set to the electronic oil pump includes:
[0015] The electronic oil pump upgrade instruction set is forwarded to the electronic oil pump through a second communication protocol; wherein the second communication protocol is: a communication protocol adapted to instruction transmission between the MCU and the electronic oil pump.
[0016] In an optional manner, the electronic oil pump upgrade instruction set includes: the erase memory instruction, the download request instruction, the data transmission instruction and the exit transmission instruction; the step of forwarding the electronic oil pump upgrade instruction set including the erase memory instruction of the electronic oil pump software upgrade package sent by the TBOX to the electronic oil pump for OTA upgrade further includes:
[0017] forwarding the erase memory instruction sent by the TBOX to the electronic oil pump, so as to receive a first instruction response result generated by the electronic oil pump executing the erase memory instruction and forwarding it to the TBOX;
[0018] When the first instruction response result is a successful response, forwarding the download request instruction generated by the TBOX to the electronic oil pump, so as to receive a second instruction response result generated by the electronic oil pump executing the download request instruction and forwarding it to the TBOX;
[0019] When the second instruction response result is a successful response, forwarding the data transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a third instruction response result generated by the electronic oil pump executing the data transmission instruction and forwarding it to the TBOX;
[0020] When the third instruction response result is a successful response, forwarding the exit transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a fourth instruction response result generated by the electronic oil pump executing the exit transmission instruction and forwarding it to the TBOX;
[0021] When the fourth instruction response result is a successful response, it is determined that the OTA upgrade of the electronic oil pump is completed.
[0022] In an optional manner, the electronic oil pump upgrade instruction set further includes: an integrity check instruction; the method further includes:
[0023] When the fourth instruction response result is a successful response, forwarding the integrity check instruction generated by the TBOX to the electronic oil pump, so as to receive the fifth instruction response result generated by the electronic oil pump executing the integrity check instruction and forwarding it to the TBOX;
[0024] When the fifth instruction response result is a successful response, it is determined that the electronic oil pump software upgrade package is complete.
[0025] According to another aspect of an embodiment of the present application, an electronic oil pump OTA upgrade device is provided, comprising:
[0026] A determination module, configured to determine, when the TBOX obtains the MCU software upgrade package, whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump based on the memory erase instruction corresponding to the MCU software upgrade package sent by the TBOX, and obtain a determination result;
[0027] The running module is used for forwarding the electronic oil pump upgrade instruction set including the memory erasing instruction of the electronic oil pump software upgrade package sent by the TBOX to the electronic oil pump for OTA upgrade when the judgment result is yes.
[0028] In an optional manner, the erase memory instruction includes: a target memory address; and the determination module is specifically used for:
[0029] Obtaining a target memory address in the erase memory instruction;
[0030] If the target memory address is the memory address of the electronic oil pump, the MCU software upgrade package is determined to be the electronic oil pump software upgrade package corresponding to the electronic oil pump; otherwise, the MCU software upgrade package is determined not to be the electronic oil pump software upgrade package corresponding to the electronic oil pump.
[0031] According to another aspect of an embodiment of the present application, an electronic oil pump OTA upgrade device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other through the communication bus;
[0032] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations of the electronic oil pump OTA upgrade method of the present invention.
[0033] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein at least one executable instruction is stored in the storage medium, and the executable instruction enables the electronic oil pump OTA upgrade device / equipment to perform operations such as the electronic oil pump OTA upgrade method of the present invention.
[0034] In the embodiment of the present application, when TBOX obtains the MCU software upgrade package from the OTA platform, based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, it determines whether the MCU software upgrade package is the electronic oil pump software upgrade package corresponding to the electronic oil pump, and obtains a judgment result; when the judgment result is yes, the electronic oil pump upgrade instruction set including the erase memory instruction of the electronic oil pump software upgrade package sent by the TBOX is forwarded to the electronic oil pump for OTA upgrade, thereby enabling OTA upgrade of the electronic oil pump of the whole vehicle through the MCU, thereby improving the upgrade efficiency and convenience of the electronic oil pump.
[0035] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:
[0037] Figure 1 A schematic diagram showing a flow chart of a first embodiment of an electronic oil pump OTA upgrade method provided by the present application;
[0038] Figure 2 A flow chart of a second embodiment of the electronic oil pump OTA upgrade method provided by the present application is shown;
[0039] Figure 3 A structural schematic diagram of a first embodiment of an electronic oil pump OTA upgrade device provided by the present application is shown;
[0040] Figure 4 A structural schematic diagram of an embodiment of an electronic oil pump OTA upgrade device provided in the present application is shown. DETAILED DESCRIPTION
[0041] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0042] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0043] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0044] The term "multiple" as used in this application refers to two or more than two. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.
[0045] At present, "software-defined cars" has become the development trend of automobiles, and the complexity of automobile software has also increased greatly. It is difficult to provide users with the best experience by only upgrading 4S stores to repair software failures and update personalized customization needs. Therefore, in new energy vehicles, ECU is required to have OTA (Over-The-Air technology) function. Through OTA technology, software-related problems can be repaired without recalls, and new functions can be pushed to vehicles and vehicle performance can be improved. Oil-cooled motors directly cool the stator and rotor of the motor through oil, and have high heat dissipation efficiency; therefore, oil-cooled motors have higher power density. At present, new energy vehicles widely use oil-cooled motors as drive motors. Oil-cooled motors cool the stators and rotors of the motors through oil, so oil-cooled electric drives usually have electronic oil pumps (EOPs); considering the energy loss and NVH performance of the vehicle, the motor controller generally controls the speed of the electronic oil pump according to the actual cooling requirements of the electric drive, and the electronic oil pump only communicates with the motor controller. Therefore, the current common practice is that the motor controller is connected to the oil pump through (internal) private CAN communication (or LIN communication), that is, in the vehicle CAN network, there is only a motor controller node, and the oil pump is the slave node of the motor controller. The current common practice for OTA upgrades of electric drive systems is: TBOX obtains the software package from the OTA platform, conducts diagnostic communication with the motor controller (MCU) through the gateway, and upgrades the MCU program. Because the oil pump is not in the vehicle CAN network, TBOX cannot communicate directly with the electronic oil pump; at the same time, considering the cost factor, the communication protocol between TBOX and MCU and the communication protocol between MCU and EOP may be different (for example, the communication protocol between TBOX and MCU may be the high-speed CANFD communication protocol, and the communication protocol between MCU and EOP may be the slower LIN communication protocol), so the electronic oil pump cannot be updated and upgraded through vehicle OTA.
[0046] Figure 1 The flowchart of the first embodiment of the electronic oil pump OTA upgrade method provided by the present application is shown, and the method is executed by the MCU. Figure 1 As shown, the method comprises the following steps:
[0047] Step S110: When the TBOX obtains the MCU software upgrade package from the OTA platform, based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, it is determined whether the MCU software upgrade package is the electronic oil pump software upgrade package corresponding to the electronic oil pump to obtain a judgment result.
[0048] Among them, the MCU software upgrade package is a general term for the electronic oil pump upgrade software and the motor controller (MCU) upgrade software. The MCU software upgrade package contains at least one of the electronic oil pump upgrade software and the MCU upgrade software. The instructions sent by TBOX to the MCU are all fixed programs in the OTA upgrade program. According to the relevant information in the erase memory instruction, it can be determined whether the MCU software upgrade package is the electronic oil pump software upgrade package (electronic oil pump upgrade software) corresponding to the electronic oil pump.
[0049] Specifically, when TBOX obtains the MCU software upgrade package from the OTA platform, the MCU receives the erase memory instruction corresponding to the MCU software upgrade package sent by TBOX, and based on the erase memory instruction, determines whether the MCU software upgrade package is the electronic oil pump software upgrade package corresponding to the electronic oil pump, and obtains a judgment result.
[0050] Step S120: When the judgment result is yes, the electronic fuel pump upgrade instruction set including the memory erase instruction of the electronic fuel pump software upgrade package sent by the TBOX is forwarded to the electronic fuel pump for OTA upgrade.
[0051] The electronic oil pump upgrade instruction set includes multiple instructions for implementing the electronic oil pump upgrade. Different instructions contain different data for the electronic oil pump upgrade. The multiple instructions in the electronic oil pump upgrade instruction set can be sent to the electronic oil pump in sequence according to a preset order, or can be sent selectively according to the response result of the electronic oil pump.
[0052] Specifically, when the MCU software upgrade package is the electronic oil pump software upgrade package corresponding to the electronic oil pump, the MCU receives the electronic oil pump upgrade instruction set including the erase memory instruction of the electronic oil pump software upgrade package sent by TBOX, and forwards the electronic oil pump upgrade instruction set to the electronic oil pump, so that the electronic oil pump is OTA upgraded according to the electronic oil pump upgrade instruction set.
[0053] The technical solution of this embodiment can realize OTA upgrade of the electronic oil pump of the whole vehicle through the MCU, thereby improving the upgrade efficiency and convenience of the electronic oil pump.
[0054] In an optional manner, the erase memory instruction includes: a target memory address. Based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, the step of determining whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump further includes:
[0055] Obtain the target memory address in the erase memory instruction.
[0056] If the target memory address is the memory address of the electronic oil pump, the MCU software upgrade package is determined to be the electronic oil pump software upgrade package corresponding to the electronic oil pump; otherwise, the MCU software upgrade package is determined not to be the electronic oil pump software upgrade package corresponding to the electronic oil pump.
[0057] The target memory address is the memory address MemoryAddress in the erase memory instruction. In addition to the memory address MemoryAddress, the erase memory instruction also includes: the erase memory size MemorySize. According to the specific value of the target memory address, it can be determined whether the MCU software upgrade package is the electronic oil pump software upgrade package corresponding to the electronic oil pump.
[0058] In an optional manner, the method further includes:
[0059] The electronic oil pump upgrade instruction set sent by the TBOX is received through a first communication protocol.
[0060] Wherein, the first communication protocol is: a communication protocol adapted to instruction transmission between the TBOX and the MCU.
[0061] In an optional manner, the step of forwarding the electronic oil pump upgrade instruction set to the electronic oil pump includes:
[0062] The electronic oil pump upgrade instruction set is forwarded to the electronic oil pump through a second communication protocol.
[0063] Wherein, the second communication protocol is: a communication protocol adapted to the instruction transmission between the MCU and the electronic oil pump.
[0064] It should be noted that when the MCU receives any instruction in the electronic oil pump upgrade instruction set sent by the TBOX, in order to send the instruction to the electronic oil pump for execution, the first forwarding function "Transform_Tbox2Eop()" is used to convert the instruction that satisfies the first communication protocol into an instruction that satisfies the second communication protocol. For example, the first communication protocol is the CANFD communication protocol, and the second communication protocol is the LIN communication protocol.
[0065] Figure 2 The flowchart of the second embodiment of the electronic oil pump OTA upgrade method provided by the present application is shown, and the method is executed by the MCU. Figure 2 As shown, the method comprises the following steps:
[0066] Step S210: When the TBOX obtains the MCU software upgrade package from the OTA platform, based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, it is determined whether the MCU software upgrade package is the electronic oil pump software upgrade package corresponding to the electronic oil pump to obtain a judgment result.
[0067] Step S220: When the judgment result is yes, receiving the electronic oil pump upgrade instruction set including the erase memory instruction of the electronic oil pump software upgrade package sent by the TBOX; wherein the electronic oil pump upgrade instruction set includes: erase memory instruction, download request instruction, data transmission instruction and exit transmission instruction.
[0068] Step S230: forwarding the erase memory instruction sent by the TBOX to the electronic oil pump, so as to receive a first instruction response result generated by the electronic oil pump executing the erase memory instruction and forwarding it to the TBOX.
[0069] Among them, the specific process of the electronic oil pump executing the erase memory instruction (UDS 0x31 service) is:
[0070] ①When MCU receives the erase memory instruction sent by TBOX, it stores the erase memory data corresponding to the erase memory instruction into the data buffer;
[0071] ② According to the second communication protocol between the MCU and the electronic oil pump, the MCU sends a diagnostic instruction to make the electronic oil pump enter the programming mode.
[0072] ③ The electronic oil pump receives the diagnostic instruction to enter the programming mode sent by the MCU and checks whether the electronic oil pump meets the conditions for entering the programming mode; if so, the electronic oil pump enters the programming mode and feeds back the diagnostic instruction response result to the MCU;
[0073] ④The MCU receives the response result that the electronic oil pump successfully enters the programming mode, calls the forwarding function Transform_Tbox2Eop(), and forwards the erase memory data in the data buffer buffer to the electronic oil pump; the electronic oil pump receives the erase memory instruction sent by the MCU, executes the erase memory instruction, and feeds back the first instruction response result to the MCU; the MCU stores the received relevant data into the data buffer buffer, and calls the forwarding function Transform_Eop2Tbox() to report the first instruction response result of the erase memory to TBOX.
[0074] Step S240: when the first instruction response result is a successful response, forwarding the download request instruction generated by the TBOX to the electronic oil pump, so as to receive a second instruction response result generated by the electronic oil pump executing the download request instruction and forwarding it to the TBOX.
[0075] Among them, the specific process of the electronic oil pump executing the download request instruction (UDS 0x34 service) is as follows:
[0076] ①MCU sets the electronic oil pump program upgrade flag EOP_Program to 1;
[0077] ②The MCU stores the data corresponding to the received download request instruction into the data buffer, calls the forwarding function Transform_Tbox2Eop(), and forwards the data in the buffer to the electronic oil pump;
[0078] ③ The electronic oil pump receives the download request instruction sent by the MCU and checks whether the electronic oil pump meets the download request conditions; if so, the electronic oil pump responds to the download request instruction and feeds back the second instruction response result of the download request instruction to the MCU.
[0079] ④The MCU stores the received relevant data into the data buffer, and calls the forwarding function Transform_Eop2Tbox() to report the second instruction response result requested for download to TBOX.
[0080] Step S250: when the second instruction response result is a successful response, forwarding the data transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a third instruction response result generated by the electronic oil pump executing the data transmission instruction and forwarding it to the TBOX.
[0081] Among them, the specific process of the electronic oil pump executing the data transmission instruction (UDS 0x36 service) is as follows:
[0082] ① TBOX receives the second command response from MCU and sends a data transmission command (UDS 0x36 service) to MCU. After receiving the data transmission command, MCU determines that the oil pump program is upgraded because the oil pump upgrade flag bit EOP_Program is 1;
[0083] ②The MCU stores the data corresponding to the received data transmission instruction into the data buffer, calls the forwarding function Transform_Tbox2Eop(), and forwards the data in the buffer to the electronic oil pump;
[0084] ③ The electronic oil pump receives the data sent by the MCU, and feeds back the third instruction response result generated by executing the data transmission instruction to the MCU;
[0085] ④The MCU stores the received relevant data into the data buffer, and calls the forwarding function Transform_Eop2Tbox() to report the third instruction response result to TBOX.
[0086] Step S260: When the third instruction response result is a successful response, the exit transmission instruction generated by the TBOX is forwarded to the electronic oil pump, so as to receive a fourth instruction response result generated by the electronic oil pump executing the exit transmission instruction and forward it to the TBOX.
[0087] The specific process of the electronic oil pump executing the exit transmission instruction (UDS 0x37 service) is as follows:
[0088] ①TBOX detects that data transmission is complete according to the response result of the fourth instruction, and sends a request to exit transmission instruction (UDS 0x37 service) to MCU;
[0089] ②After the MCU receives the exit transmission instruction, because the oil pump upgrade flag EOP_Program is 1, the MCU stores the data corresponding to the received exit transmission instruction into the data buffer buffer, calls the forwarding function Transform_Tbox2Eop(), and forwards the data in the data buffer buffer to the electronic oil pump.
[0090] ③ The electronic oil pump receives and responds to the request to exit the transmission instruction, and feeds back the fourth instruction response result generated by executing the exit transmission instruction to the MCU.
[0091] ④The MCU stores the received relevant data into the data buffer, and calls the forwarding function Transform_Eop2Tbox() to report the fourth instruction response result to TBOX.
[0092] Step S270: When the fourth instruction response result is a successful response, it is determined that the OTA upgrade of the electronic oil pump is completed.
[0093] When the fourth instruction response result is a successful response, the MCU determines that the OTA upgrade of the electronic oil pump is successfully completed.
[0094] The technical solution of this embodiment further clarifies the specific process of OTA upgrade of the electronic oil pump, thereby enabling OTA upgrade of the electronic oil pump of the entire vehicle through the MCU, thereby improving the upgrade efficiency and convenience of the electronic oil pump.
[0095] In an optional manner, the electronic oil pump upgrade instruction set further includes: an integrity check instruction; the method further includes:
[0096] When the fourth instruction response result is a successful response, the integrity check instruction generated by the TBOX is forwarded to the electronic oil pump, so as to receive a fifth instruction response result generated by the electronic oil pump executing the integrity check instruction and forward it to the TBOX.
[0097] When the fifth instruction response result is a successful response, it is determined that the electronic oil pump software upgrade package is complete.
[0098] Among them, the specific process of the electronic oil pump executing the integrity check instruction (UDS 0x31 service) is as follows:
[0099] ①TBOX sends integrity check command (UDS 0x31 service) to MCU;
[0100] ②After the MCU receives the integrity check instruction, because the oil pump upgrade flag EOP_Program is 1, the MCU stores the data corresponding to the received integrity check instruction into the data buffer buffer, calls the forwarding function Transform_Tbox2Eop(), and forwards the data in the data buffer buffer to the electronic oil pump.
[0101] ③ The electronic oil pump receives the data in the data buffer and performs integrity check on the downloaded data; if the check passes, the fifth instruction response result generated by executing the integrity check instruction is fed back to the MCU.
[0102] ④MCU stores the received data into the data buffer, and calls the forwarding function Transform_Eop2Tbox() to report the successful response result to TBOX to complete the integrity check of the electronic oil pump software upgrade package.
[0103] Figure 3 The schematic diagram of the structure of the embodiment of the electronic oil pump OTA upgrade device provided by the present application is shown. Figure 3 As shown, the device 300 includes: a determination module 310 and an operation module 320.
[0104] The determination module 310 is used to determine whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump based on the memory erase instruction corresponding to the MCU software upgrade package sent by the TBOX when the TBOX obtains the MCU software upgrade package, and obtain a determination result;
[0105] The running module 320 is used for forwarding the electronic fuel pump upgrade instruction set including the memory erasing instruction of the electronic fuel pump software upgrade package sent by the TBOX to the electronic fuel pump for OTA upgrade when the judgment result is yes.
[0106] In an optional manner, the erase memory instruction includes: a target memory address; the determination module 310 is specifically used to:
[0107] Obtaining a target memory address in the erase memory instruction;
[0108] If the target memory address is the memory address of the electronic oil pump, the MCU software upgrade package is determined to be the electronic oil pump software upgrade package corresponding to the electronic oil pump; otherwise, the MCU software upgrade package is determined not to be the electronic oil pump software upgrade package corresponding to the electronic oil pump.
[0109] In an optional manner, the apparatus 300 further includes: a receiving module; the receiving module is used to:
[0110] The electronic oil pump upgrade instruction set sent by the TBOX is received through a first communication protocol; wherein the first communication protocol is: a communication protocol adapted to instruction transmission between the TBOX and the MCU.
[0111] In an optional manner, the operation module 320 is specifically used to:
[0112] The electronic oil pump upgrade instruction set is forwarded to the electronic oil pump through a second communication protocol; wherein the second communication protocol is: a communication protocol adapted to instruction transmission between the MCU and the electronic oil pump.
[0113] In an optional manner, the electronic oil pump upgrade instruction set includes: the erase memory instruction, the download request instruction, the data transmission instruction and the exit transmission instruction; the operation module 320 is specifically used for:
[0114] forwarding the erase memory instruction sent by the TBOX to the electronic oil pump, so as to receive a first instruction response result generated by the electronic oil pump executing the erase memory instruction and forwarding it to the TBOX;
[0115] When the first instruction response result is a successful response, forwarding the download request instruction generated by the TBOX to the electronic oil pump, so as to receive a second instruction response result generated by the electronic oil pump executing the download request instruction and forwarding it to the TBOX;
[0116] When the second instruction response result is a successful response, forwarding the data transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a third instruction response result generated by the electronic oil pump executing the data transmission instruction and forwarding it to the TBOX;
[0117] When the third instruction response result is a successful response, forwarding the exit transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a fourth instruction response result generated by the electronic oil pump executing the exit transmission instruction and forwarding it to the TBOX;
[0118] When the fourth instruction response result is a successful response, it is determined that the OTA upgrade of the electronic oil pump is completed.
[0119] In an optional manner, the electronic oil pump upgrade instruction set further includes: an integrity check instruction; the device 300 further includes: a check module; the check module is used to:
[0120] When the fourth instruction response result is a successful response, forwarding the integrity check instruction generated by the TBOX to the electronic oil pump, so as to receive the fifth instruction response result generated by the electronic oil pump executing the integrity check instruction and forwarding it to the TBOX;
[0121] When the fifth instruction response result is a successful response, it is determined that the electronic oil pump software upgrade package is complete.
[0122] The technical solution of this embodiment can realize OTA upgrade of the electronic oil pump of the whole vehicle through the MCU, thereby improving the upgrade efficiency and convenience of the electronic oil pump.
[0123] It should be noted that the electronic oil pump OTA upgrade device provided in the above embodiment and the electronic oil pump OTA upgrade method provided in the aforementioned embodiment belong to the same concept, and the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here.
[0124] Figure 4 A structural schematic diagram of an embodiment of the electronic oil pump OTA upgrade device provided in the present application is shown, which shows a structural schematic diagram of a computer system suitable for implementing the electronic oil pump OTA upgrade device of the embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic oil pump OTA upgrade device.
[0125] See also Figure 4 As shown, the electronic oil pump OTA upgrade device includes: a controller; a memory for storing one or more programs, and when the one or more programs are executed by the controller, the above-mentioned electronic oil pump OTA upgrade method is executed.
[0126] Please continue reading Figure 4As shown, the computer system 500 of the electronic oil pump OTA upgrade device includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503, such as executing the method in the above embodiment. In RAM 503, various programs and data required for system operation are also stored. CPU 501, ROM 502 and RAM 503 are connected to each other through bus 504. Input / output (I / O) interface 505 is also connected to bus 504.
[0127] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed into the storage section 508 as needed.
[0128] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program 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 section 509, and / or installed from a removable medium 511. When the computer program is executed by a central processing unit (CPU) 501, various functions defined in the system of the present application are executed.
[0129] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the electronic oil pump OTA upgrade method described above is implemented. The computer-readable storage medium may be included in the electronic oil pump OTA upgrade device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0130] Another aspect of the present application also provides a computer program product or computer program, which includes at least one executable instruction. When the executable instruction runs on the electronic oil pump OTA upgrade device / equipment, the electronic oil pump OTA upgrade device / equipment executes the electronic oil pump OTA upgrade method as described above.
[0131] The executable instructions can be specifically used to enable the electronic oil pump OTA upgrade device / apparatus to perform the following operations:
[0132] When the TBOX obtains the MCU software upgrade package from the OTA platform, based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, it is determined whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump, and a determination result is obtained;
[0133] When the judgment result is yes, the electronic oil pump upgrade instruction set including the memory erase instruction of the electronic oil pump software upgrade package sent by the TBOX is forwarded to the electronic oil pump for OTA upgrade.
[0134] In an optional manner, the erase memory instruction includes: a target memory address; based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, the step of determining whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump further includes:
[0135] Obtaining a target memory address in the erase memory instruction;
[0136] If the target memory address is the memory address of the electronic oil pump, the MCU software upgrade package is determined to be the electronic oil pump software upgrade package corresponding to the electronic oil pump; otherwise, the MCU software upgrade package is determined not to be the electronic oil pump software upgrade package corresponding to the electronic oil pump.
[0137] In an optional manner, the method further includes:
[0138] The electronic oil pump upgrade instruction set sent by the TBOX is received through a first communication protocol; wherein the first communication protocol is: a communication protocol adapted to instruction transmission between the TBOX and the MCU.
[0139] In an optional manner, the step of forwarding the electronic oil pump upgrade instruction set to the electronic oil pump includes:
[0140] The electronic oil pump upgrade instruction set is forwarded to the electronic oil pump through a second communication protocol; wherein the second communication protocol is: a communication protocol adapted to instruction transmission between the MCU and the electronic oil pump.
[0141] In an optional manner, the electronic oil pump upgrade instruction set includes: the erase memory instruction, the download request instruction, the data transmission instruction and the exit transmission instruction; the step of forwarding the electronic oil pump upgrade instruction set including the erase memory instruction of the electronic oil pump software upgrade package sent by the TBOX to the electronic oil pump for OTA upgrade further includes:
[0142] forwarding the erase memory instruction sent by the TBOX to the electronic oil pump, so as to receive a first instruction response result generated by the electronic oil pump executing the erase memory instruction and forwarding it to the TBOX;
[0143] When the first instruction response result is a successful response, forwarding the download request instruction generated by the TBOX to the electronic oil pump, so as to receive a second instruction response result generated by the electronic oil pump executing the download request instruction and forwarding it to the TBOX;
[0144] When the second instruction response result is a successful response, forwarding the data transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a third instruction response result generated by the electronic oil pump executing the data transmission instruction and forwarding it to the TBOX;
[0145] When the third instruction response result is a successful response, forwarding the exit transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a fourth instruction response result generated by the electronic oil pump executing the exit transmission instruction and forwarding it to the TBOX;
[0146] When the fourth instruction response result is a successful response, it is determined that the OTA upgrade of the electronic oil pump is completed.
[0147] In an optional manner, the electronic oil pump upgrade instruction set further includes: an integrity check instruction; the method further includes:
[0148] When the fourth instruction response result is a successful response, forwarding the integrity check instruction generated by the TBOX to the electronic oil pump, so as to receive the fifth instruction response result generated by the electronic oil pump executing the integrity check instruction and forwarding it to the TBOX;
[0149] When the fifth instruction response result is a successful response, it is determined that the electronic oil pump software upgrade package is complete.
[0150] The technical solution of this embodiment can realize OTA upgrade of the electronic oil pump of the whole vehicle through the MCU, thereby improving the upgrade efficiency and convenience of the electronic oil pump.
[0151] It should be noted that the computer-readable medium shown in the embodiment of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can 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), a 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 the present application, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium can include a data signal propagated in a baseband or as a part of a carrier wave, wherein a computer-readable computer program is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0152] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, 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 box can also occur in a different order than the order marked in the accompanying drawings. For example, two 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 box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart 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.
[0153] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0154] According to one aspect of an embodiment of the present application, a computer system is also provided, including a central processing unit (CPU), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) or a program loaded from a storage portion into a random access memory (RAM), such as executing the method in the above embodiment. In RAM, various programs and data required for system operation are also stored. CPU, ROM and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.
[0155] The following components are connected to the I / O interface: an input part including a keyboard, a mouse, etc.; an output part including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage part including a hard disk, etc.; and a communication part including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication part performs communication processing via a network such as the Internet. A drive is also connected to the I / O interface as needed. Removable media, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., are installed on the drive as needed so that the computer program read therefrom is installed into the storage part as needed.
[0156] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. A person skilled in the art can easily make corresponding changes or modifications based on the main concept and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.
Claims
1. An electronic oil pump OTA upgrade method, applied to MCU, characterized in that: The method comprises: When the TBOX obtains the MCU software upgrade package from the OTA platform, based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, it is determined whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump, and a determination result is obtained; When the judgment result is yes, the electronic oil pump upgrade instruction set including the memory erase instruction of the electronic oil pump software upgrade package sent by the TBOX is forwarded to the electronic oil pump for OTA upgrade.
2. The method according to claim 1, characterized in that The erase memory instruction includes: a target memory address; based on the erase memory instruction corresponding to the MCU software upgrade package sent by the TBOX, the step of determining whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump further includes: Obtaining a target memory address in the erase memory instruction; If the target memory address is the memory address of the electronic oil pump, the MCU software upgrade package is determined to be the electronic oil pump software upgrade package corresponding to the electronic oil pump; otherwise, the MCU software upgrade package is determined not to be the electronic oil pump software upgrade package corresponding to the electronic oil pump.
3. The method according to claim 1, characterized in that The method further comprises: The electronic oil pump upgrade instruction set sent by the TBOX is received through a first communication protocol; wherein the first communication protocol is: a communication protocol adapted to instruction transmission between the TBOX and the MCU.
4. The method according to claim 3, characterized in that The step of forwarding the electronic oil pump upgrade instruction set to the electronic oil pump comprises: The electronic oil pump upgrade instruction set is forwarded to the electronic oil pump through a second communication protocol; wherein the second communication protocol is: a communication protocol adapted to instruction transmission between the MCU and the electronic oil pump.
5. The method according to any one of claims 1 to 4, characterized in that: The electronic oil pump upgrade instruction set includes: the erase memory instruction, the download request instruction, the data transmission instruction and the exit transmission instruction; the step of forwarding the electronic oil pump upgrade instruction set including the erase memory instruction of the electronic oil pump software upgrade package sent by the TBOX to the electronic oil pump for OTA upgrade further includes: forwarding the erase memory instruction sent by the TBOX to the electronic oil pump, so as to receive a first instruction response result generated by the electronic oil pump executing the erase memory instruction and forwarding it to the TBOX; When the first instruction response result is a successful response, forwarding the download request instruction generated by the TBOX to the electronic oil pump, so as to receive a second instruction response result generated by the electronic oil pump executing the download request instruction and forwarding it to the TBOX; When the second instruction response result is a successful response, forwarding the data transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a third instruction response result generated by the electronic oil pump executing the data transmission instruction and forwarding it to the TBOX; When the third instruction response result is a successful response, forwarding the exit transmission instruction generated by the TBOX to the electronic oil pump, so as to receive a fourth instruction response result generated by the electronic oil pump executing the exit transmission instruction and forwarding it to the TBOX; When the fourth instruction response result is a successful response, it is determined that the OTA upgrade of the electronic oil pump is completed.
6. The method according to claim 5, characterized in that The electronic oil pump upgrade instruction set also includes: integrity check instructions; the method also includes: When the fourth instruction response result is a successful response, forwarding the integrity check instruction generated by the TBOX to the electronic oil pump, so as to receive the fifth instruction response result generated by the electronic oil pump executing the integrity check instruction and forwarding it to the TBOX; When the fifth instruction response result is a successful response, it is determined that the electronic oil pump software upgrade package is complete.
7. An electronic oil pump OTA upgrade device, characterized in that: include: A determination module, configured to determine, when the TBOX obtains the MCU software upgrade package, whether the MCU software upgrade package is an electronic oil pump software upgrade package corresponding to the electronic oil pump based on the memory erase instruction corresponding to the MCU software upgrade package sent by the TBOX, and obtain a determination result; The running module is used for forwarding the electronic oil pump upgrade instruction set including the memory erasing instruction of the electronic oil pump software upgrade package sent by the TBOX to the electronic oil pump for OTA upgrade when the judgment result is yes.
8. The device according to claim 7, characterized in that The erase memory instruction includes: a target memory address; the determination module is specifically used for: Obtaining a target memory address in the erase memory instruction; If the target memory address is the memory address of the electronic oil pump, the MCU software upgrade package is determined to be the electronic oil pump software upgrade package corresponding to the electronic oil pump; otherwise, the MCU software upgrade package is determined not to be the electronic oil pump software upgrade package corresponding to the electronic oil pump.
9. An electronic oil pump OTA upgrade device, characterized in that: include: Controller; The memory is used to store one or more programs. When the one or more programs are executed by the controller, the controller implements the electronic oil pump OTA upgrade method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The storage medium stores at least one executable instruction. When the executable instruction is executed on the electronic oil pump OTA upgrade device / equipment, the electronic oil pump OTA upgrade device / equipment performs the operation of the electronic oil pump OTA upgrade method as described in any one of claims 1-6.