Multi-supplier ECU data flashing method, equipment, storage medium and device
By reading ECU identification information, obtaining supplier information and automatically selecting differentiated data for flashing, the problem of low flashing efficiency of multi-vendor ECUs is solved, and an efficient data flashing process is realized.
Patent Information
- Application Number
- CN202311369408.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-20
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2043-10-20
AI Technical Summary
In the automotive industry, when there are multiple suppliers of the same model of ECU, it is impossible to use the same data to flash multiple ECUs, resulting in low flushing efficiency.
By reading the identification information of the ECU, obtain supplier information, automatically select differentiated data for flushing, and write common data to the corresponding area of the ECU to realize multi-vendor ECU data flushing.
It improves the efficiency of ECU data flashing in multiple suppliers, reduces the time to write, and improves work efficiency.
Smart Images

Figure CN117555576B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of ECU data flashing in the automobile industry, and in particular to a multi-supplier ECU data flashing method, equipment, storage medium and device. Background Art
[0002] At present, in the field of ECU (Electronic Control Unit) data flashing in the automotive industry, data flashing is performed on the same ECU of the same model and single supplier data. In actual work, for the OEM, even if the same model of ECU is used in the vehicle, there will be multiple suppliers.
[0003] Therefore, if there are multiple suppliers for the same model of ECU, when there are differences in ECU data between different suppliers, it is impossible to use the same data to flash multiple ECUs of the same model. Instead, each ECU can only be flashed in turn using the data from the supplier corresponding to the current ECU, which makes the ECU data flashing work extremely time-consuming and inefficient. Summary of the invention
[0004] In view of the defects existing in the prior art, the purpose of the present invention is to provide a multi-supplier ECU data flashing method, equipment, storage medium and device, which can effectively improve the data flashing efficiency of ECU in the case of multiple suppliers.
[0005] To achieve the above objectives, the present invention provides a multi-supplier ECU data flashing method, which specifically includes the following steps:
[0006] Read the identification information of the ECU to be flashed, and obtain the supplier information corresponding to the ECU to be flashed based on the read identification information;
[0007] Based on the obtained supplier information, the difference program or data of the corresponding supplier in the ECU to be flashed is obtained;
[0008] The obtained difference program or data, as well as the common program or data of the ECU are written into the ECU to be flashed, so as to realize the ECU data flashing.
[0009] Based on the above technical solutions,
[0010] The memory structure of the ECU includes a BootLoader area and an APP area;
[0011] The BootLoader area is used to store the BootLoader program that comes with the ECU when it leaves the factory, and the BootLoader program is built into the ECU;
[0012] The APP region includes a difference region and a common region.
[0013] Based on the above technical solutions,
[0014] The difference area is used to store difference programs or data corresponding to the supplier;
[0015] The common area is used to store common programs or data that are independent of vendors.
[0016] On the basis of the above technical solution, for the ECUs to be flashed, the starting addresses and area sizes of the common areas of all ECUs are the same.
[0017] On the basis of the above technical solution, the steps of reading the identification information of the ECU to be flashed and obtaining the supplier information corresponding to the ECU to be flashed based on the read identification information include:
[0018] Establish communication between the flashing device and the ECU to be flashed, and obtain the identification information of the ECU to be flashed by reading the flashing device;
[0019] Based on the read identification information, the supplier information corresponding to the ECU to be flashed is determined.
[0020] Based on the above technical solutions,
[0021] The flashing device stores the different programs or data corresponding to each supplier, as well as the common programs or data of the ECU;
[0022] The flashing device obtains the common program or data of the ECU from its own storage area, and simultaneously obtains the difference program or data of the supplier corresponding to the ECU to be flashed from its own storage area based on the obtained supplier information.
[0023] On the basis of the above technical solution, the obtained difference program or data and the common program or data of the ECU are written into the ECU to be flashed to realize the ECU data flashing, and the specific steps include:
[0024] Through the flashing device, the obtained difference program or data is written into the difference area of the ECU to be flashed, and the common program or data of the ECU is written into the common area of the ECU to be flashed.
[0025] An electronic device provided by the present invention comprises a memory and a processor, wherein a computer program running on the processor is stored in the memory, and the multi-supplier ECU data flashing method described above is implemented when the processor executes the computer program.
[0026] The present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the multi-supplier ECU data flashing method described above are implemented.
[0027] The present invention provides a multi-supplier ECU data flashing device, comprising:
[0028] A reading module, which is used to read the identification information of the ECU to be flashed, and obtain the supplier information corresponding to the ECU to be flashed based on the read identification information;
[0029] An acquisition module, which is used to obtain a difference program or data corresponding to a supplier in the ECU to be flashed based on the acquired supplier information;
[0030] The flashing module is used to write the obtained difference program or data, as well as the common program or data of the ECU into the ECU to be flashed, so as to realize the flashing of ECU data.
[0031] Compared with the prior art, the advantages of the present invention are: by reading the identification information of the ECU to be flashed, the supplier information corresponding to the ECU to be flashed is obtained based on the read identification information, and then based on the obtained supplier information, the differential program or data corresponding to the supplier in the ECU to be flashed is obtained, and finally the obtained differential program or data, as well as the common program or data of the ECU are written into the ECU to be flashed, so as to realize ECU data flashing, that is, when flashing data on the ECU, the supplier information is obtained by communicating with the ECU, and the differentiated data is automatically selected for flashing, and when flashing common data, ECUs of different suppliers only need to flash one data, which effectively improves the data flashing efficiency of the ECU in the case of multiple suppliers. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0033] Figure 1 It is a structural schematic diagram of a multi-supplier ECU data flashing method in an embodiment of the present invention;
[0034] Figure 2 This is a schematic diagram of the memory structure of the ECU;
[0035] Figure 3 This is a schematic diagram of flashing the ECU with a flashing device;
[0036] Figure 4 These are the effects after flashing ECU data from different suppliers. DETAILED DESCRIPTION
[0037] The embodiment of the present invention provides a multi-supplier ECU data flashing method, which reads the identification information of the ECU to be flashed, obtains the supplier information corresponding to the ECU to be flashed based on the read identification information, and then obtains the differential program or data of the corresponding supplier in the ECU to be flashed based on the obtained supplier information, and finally writes the obtained differential program or data and the common program or data of the ECU to be flashed into the ECU to be flashed to realize ECU data flashing, that is, when flashing the ECU data, the supplier information is obtained by communicating with the ECU, and the differentiated data is automatically selected for flashing. When flashing the common data, ECUs of different suppliers only need to flash one data, which effectively improves the data flashing efficiency of the ECU in the case of multiple suppliers. The embodiment of the present invention also provides an electronic device, a non-transitory computer-readable storage medium, and a multi-supplier ECU data flashing device accordingly.
[0038] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0039] See also Figure 1 As shown, a multi-supplier ECU data flashing method provided by an embodiment of the present invention specifically includes the following steps:
[0040] S1: Read the identification information of the ECU to be flashed, and obtain the supplier information corresponding to the ECU to be flashed based on the read identification information;
[0041] In the present invention, the memory structure of the ECU includes a BootLoader (boot loader) area and an APP (application) area; the BootLoader area is used to store the BootLoader program that comes with the ECU when it leaves the factory, and the BootLoader program is built into the ECU; the APP area includes a difference area and a common area. The difference area is used to store difference programs or data corresponding to the supplier; the common area is used to store common programs or data that are not related to the supplier.
[0042] That is Figure 2As shown in the figure, ECUs from different suppliers have the same memory structure, which specifically includes three areas: BootLoader area, difference area and common area. Among them, the difference area and common area belong to the APP area. The BootLoader area is the BootLoader program area that comes with the supplier's ECU. The APP area is the user control program and data area. The difference area is used to store programs or data that are different from those related to the supplier. The common area stores common data that is not related to the supplier. Regardless of which supplier, it is the same program or data. To ensure consistency, the starting address and size of the common area must be consistent, that is, for the ECU to be flashed, the starting address and area size of the common area of all ECUs are the same.
[0043] It should be noted that the difference program or data corresponds to the supplier. Different supplier ECUs have different difference programs or data. For example, for the ECU of supplier A, the difference area is the difference program or data a, for the ECU of supplier B, the difference area is the difference program or data b, and for the ECU of supplier C, the difference area is the difference program or data c. However, the data in the common area of the ECUs of supplier A, supplier B and supplier C are the same, which are all common programs or data d.
[0044] That is, for all ECUs, regardless of whether their suppliers are the same, they all contain three areas: BootLoader area, difference area and common area. Among them, the BootLoader area is the BootLoader program area that comes with the supplier's ECU, which belongs to the built-in data when the ECU leaves the factory, and the BootLoader program is built into the BootLoader area of the ECU when it leaves the factory. The difference area is used to store programs or data that are different from the supplier. For different suppliers, the data in the difference area of their ECU is different. When flashing ECU data, it is necessary to flash the corresponding data to the difference area for the supplier. The common area stores common data that is not related to the supplier. No matter which supplier it is, it is the same program or data, that is, for all ECUs, regardless of whether their suppliers are the same, the data in the common area is the same.
[0045] S2: Based on the obtained supplier information, obtain the difference program or data of the corresponding supplier in the ECU to be flashed;
[0046] In the present invention, the identification information of the ECU to be flashed is read, and the supplier information corresponding to the ECU to be flashed is obtained based on the read identification information. The specific steps include:
[0047] S201: establishing communication between the flashing device and the ECU to be flashed, and obtaining identification information of the ECU to be flashed by reading the flashing device;
[0048] S202: Based on the read identification information, determine and obtain the supplier information corresponding to the ECU to be flashed.
[0049] In the present invention, the identification information is used to distinguish suppliers. After communication is established between the flashing device and the ECU to be flashed, the identification information of the ECU to be flashed can be read by the flashing device. Thereafter, the supplier corresponding to the ECU to be flashed can be obtained based on the correspondence between the identification information and the supplier. Moreover, since there is a correspondence between the supplier and the difference program or data, the difference program or data of the ECU to be flashed can be obtained based on the determined supplier.
[0050] In the present invention, the flashing device stores the difference programs or data corresponding to each supplier, as well as the common program or data of the ECU; the flashing device obtains the common program or data of the ECU from its own storage area, and at the same time, based on the obtained supplier information, obtains the difference program or data of the supplier corresponding to the ECU to be flashed from its own storage area.
[0051] For more information, see Figure 3 As shown, the flashing device stores the difference programs or data corresponding to each supplier, as well as the common programs or data of the ECU, where data_X represents the difference programs or data of ECUs from different suppliers, and common_data represents the common programs or data contained in all ECUs. When the flashing device is used to flash the ECU of supplier A, the identification information of supplier A is first read through the flashing device to know the supplier corresponding to the ECU to be flashed, and then the common program or data of the ECU to be flashed is obtained from its own storage area, and according to the obtained supplier information, the difference program or data of supplier A corresponding to the ECU to be flashed is obtained from its own storage area, data_A represents the difference program or data corresponding to supplier A, and the difference program or data corresponding to supplier A and the common program or data are sent to the ECU to be flashed, so that the data flashing of the ECU to be flashed can be realized.
[0052] S3: Write the obtained difference program or data and the common program or data of the ECU into the ECU to be flashed, so as to realize the ECU data flashing.
[0053] In the present invention, the obtained difference program or data, as well as the common program or data of the ECU are written into the ECU to be flashed, so as to realize the ECU data flashing. The specific steps include: through the flashing device, the obtained difference program or data is written into the difference area of the ECU to be flashed, and the common program or data of the ECU is written into the common area of the ECU to be flashed.
[0054] Since the data in the BootLoader area of the ECU is built-in at the factory, the data in the BootLoader area has been flashed when the ECU leaves the factory. In the common area, the data is the same regardless of whether the supplier is the same. Therefore, when flashing the ECU data, it is only necessary to obtain the corresponding difference program or data according to the supplier to which the ECU belongs, and write the obtained difference program or data into the difference area of the ECU to be flashed, so as to complete the flashing of multi-supplier ECU data, and effectively improve the flashing efficiency of ECU data in the supplier ECU data flashing scenario.
[0055] See also Figure 4 As shown, after the data flashing of the ECU to be flashed is completed, there will be data in the BootLoader area and APP area of the ECU to be flashed, where the BootLoader area is the BootLoader program of the corresponding supplier that comes with the ECU to be flashed, the difference area is the difference program or data corresponding to the supplier, and the common area is the common program or data that is the same for all ECUs. For example, for the ECU of supplier A, after the data flashing is completed, the BootLoader area is the BootLoader program corresponding to supplier A, that is, BootLoader_A, and BootLoader_A comes with the ECU when the ECU leaves the factory, the difference area is the difference program or data corresponding to supplier A, that is, data_A, and the common area is the common program or data that is the same for all ECUs, that is, common_data.
[0056] For the multi-supplier ECU data flashing method of the present invention, when flashing data to the ECU, it is divided into three stages or scenarios, specifically:
[0057] Phase 1: The supplier brings its own program data. The ECU to be flashed has built-in BootLoader programs corresponding to each supplier. For all ECUs, regardless of whether their suppliers are the same, they contain three areas: BootLoader area, difference area and common area. Among them, the BootLoader area is the BootLoader program area brought by the supplier's ECU, which belongs to the ECU's own data when it leaves the factory, and the BootLoader program is built into the BootLoader area of the ECU when it leaves the factory.
[0058] Phase 2: Flashing the data in the difference area. The flashing device obtains the supplier information corresponding to the ECU to be flashed based on the identification information of the ECU to be flashed, and selects the difference program or data corresponding to the supplier to flash to the difference area.
[0059] Among them, ECUs from different suppliers have the same memory structure, which specifically includes three areas: BootLoader area, difference area and common area. Among them, the difference area and common area belong to the APP area. The BootLoader area is the BootLoader program area that comes with the supplier's ECU. The APP area is the user control program and data area. The difference area is used to store different programs or data related to the supplier. The common area stores common data that is not related to the supplier. Regardless of which supplier it is, it is the same program or data.
[0060] After communication is established between the flashing device and the ECU to be flashed, the identification information of the ECU to be flashed can be read through the flashing device. Then, based on the correspondence between the identification information and the supplier, the supplier corresponding to the ECU to be flashed can be obtained. Since there is a correspondence between the supplier and the difference program or data, the difference program or data of the ECU to be flashed can be obtained based on the determined supplier.
[0061] Phase 3: Flashing the data in the common area. The flashing device indiscriminately flashes the common programs or data to the common area.
[0062] Among them, when flashing the ECU data, for the differentiated data of ECUs from different suppliers, it is only necessary to obtain the corresponding differential program or data according to the supplier to which the ECU belongs, and write the obtained differential program or data into the differential area of the ECU to be flashed, so as to complete the flashing of multi-supplier ECU data, and effectively improve the flashing efficiency of ECU data in the supplier ECU data flashing scenario.
[0063] The multi-supplier ECU data flashing method of the present invention is described in detail below.
[0064] Suppliers supply ECUs with their own BootLoader programs built into them. When the ECU needs to be flashed, the flashing device communicates with the ECU, reads the supplier ID, automatically selects the corresponding difference program or data, and flashes it into the difference area. When flashing common data, the common program or data is directly flashed into the common area. The common program or data contains address information and data. Since the starting address and size of the common area of different suppliers are the same, this ensures that this part of the data is correctly flashed.
[0065] In the present invention, the common data contains the starting address, size information and data. Different suppliers have the same memory allocation structure, that is, the ECU memory is divided into multiple areas, the differentiated data is in one area, and the common data is in another area. When flashing, the supplier information is obtained by communicating with the ECU, and the differentiated data is automatically selected for flashing. When flashing the common data, ECUs of different suppliers only need to flash one data.
[0066] The multi-supplier ECU data flashing method of the embodiment of the present invention reads the identification information of the ECU to be flashed, obtains the supplier information corresponding to the ECU to be flashed based on the read identification information, and then obtains the differential program or data corresponding to the supplier in the ECU to be flashed based on the obtained supplier information, and finally writes the obtained differential program or data and the common program or data of the ECU into the ECU to be flashed to realize ECU data flashing, that is, when flashing the ECU data, the supplier information is obtained by communicating with the ECU, and the differentiated data is automatically selected for flashing, and when flashing the common data, ECUs of different suppliers only need to flash one data, which effectively improves the data flashing efficiency of the ECU in the case of multiple suppliers.
[0067] The present invention also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program running on the processor, and when the processor executes the computer program, the steps of the multi-supplier ECU data flashing method of the above-mentioned embodiments are implemented.
[0068] In a possible implementation, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, the readable storage medium is located in a PLC (Programmable Logic Controller) controller, and a computer program is stored on the readable storage medium. When the program is executed by a processor, the following steps of the multi-supplier ECU data flashing method are implemented:
[0069] Read the identification information of the ECU to be flashed, and obtain the supplier information corresponding to the ECU to be flashed based on the read identification information;
[0070] Based on the obtained supplier information, the difference program or data of the corresponding supplier in the ECU to be flashed is obtained;
[0071] The obtained difference program or data, as well as the common program or data of the ECU are written into the ECU to be flashed, so as to realize the ECU data flashing.
[0072] In the present invention, the memory structure of the ECU includes a BootLoader area and an APP area; the BootLoader area is used to store the BootLoader program that comes with the ECU when it leaves the factory, and the BootLoader program is built into the ECU; the APP area includes a difference area and a common area.
[0073] In the present invention, the difference area is used to store the difference programs or data corresponding to the supplier; the common area is used to store the common programs or data that are not related to the supplier. For the ECU to be flashed, the starting address and area size of the common area of all ECUs are the same.
[0074] In the present invention, the identification information of the ECU to be flashed is read, and the supplier information corresponding to the ECU to be flashed is obtained based on the read identification information. The specific steps include:
[0075] Establish communication between the flashing device and the ECU to be flashed, and obtain the identification information of the ECU to be flashed by reading the flashing device;
[0076] Based on the read identification information, the supplier information corresponding to the ECU to be flashed is determined.
[0077] In the present invention, the flashing device stores the difference programs or data corresponding to each supplier, as well as the common program or data of the ECU; the flashing device obtains the common program or data of the ECU from its own storage area, and at the same time, based on the obtained supplier information, obtains the difference program or data of the supplier corresponding to the ECU to be flashed from its own storage area.
[0078] In the present invention, the obtained difference program or data and the common program or data of the ECU are written into the ECU to be flashed, so as to realize the ECU data flashing. The specific steps include:
[0079] Through the flashing device, the obtained difference program or data is written into the difference area of the ECU to be flashed, and the common program or data of the ECU is written into the common area of the ECU to be flashed.
[0080] By reading the identification information of the ECU to be flashed, the supplier information corresponding to the ECU to be flashed is obtained based on the read identification information, and then based on the obtained supplier information, the differential program or data corresponding to the supplier in the ECU to be flashed is obtained, and finally the obtained differential program or data and the common program or data of the ECU are written into the ECU to be flashed, so as to realize ECU data flashing. That is, when flashing the ECU data, the supplier information is obtained by communicating with the ECU, and the differentiated data is automatically selected for flashing. When flashing the common data, ECUs of different suppliers only need to flash one data, which effectively improves the data flashing efficiency of ECUs in the case of multiple suppliers.
[0081] The storage medium may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device.
[0082] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. 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 a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0083] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0084] An embodiment of the present invention provides a multi-supplier ECU data flashing device, comprising a reading module, an acquisition module and a flashing module.
[0085] The reading module is used to read the identification information of the ECU to be flashed, and obtain the supplier information corresponding to the ECU to be flashed based on the read identification information; the acquisition module is used to obtain the difference program or data of the corresponding supplier in the ECU to be flashed based on the obtained supplier information; the flashing module is used to write the obtained difference program or data, as well as the common program or data of the ECU into the ECU to be flashed, so as to realize the flashing of ECU data.
[0086] It should be noted that the difference program or data corresponds to the supplier. Different supplier ECUs have different difference programs or data. For example, for the ECU of supplier A, the difference area is the difference program or data a, for the ECU of supplier B, the difference area is the difference program or data b, and for the ECU of supplier C, the difference area is the difference program or data c. However, the data in the common area of the ECUs of supplier A, supplier B and supplier C are the same, which are all common programs or data d.
[0087] In the present invention, the memory structure of the ECU includes a BootLoader area and an APP area; the BootLoader area is used to store the BootLoader program that comes with the ECU when it leaves the factory, and the BootLoader program is built into the ECU; the APP area includes a difference area and a common area.
[0088] It should be noted that for all ECUs, regardless of whether their suppliers are the same, they all contain three areas: BootLoader area, difference area and common area. Among them, the BootLoader area is the BootLoader program area that comes with the supplier's ECU, which belongs to the built-in data when the ECU leaves the factory, and the BootLoader program is built into the BootLoader area of the ECU when it leaves the factory. The difference area is used to store programs or data that are different from the supplier. For different suppliers, the data in the difference area of their ECU is different. When flashing ECU data, it is necessary to flash the corresponding data to the difference area for the supplier. The common area stores common data that is not related to the supplier. Regardless of which supplier it is, it is the same program or data, that is, for all ECUs, regardless of whether their suppliers are the same, the data in the common area is the same.
[0089] In the present invention, the difference area is used to store the difference programs or data corresponding to the supplier; the common area is used to store the common programs or data that are not related to the supplier. For the ECU to be flashed, the starting address and area size of the common area of all ECUs are the same.
[0090] In the present invention, the identification information of the ECU to be flashed is read, and the supplier information corresponding to the ECU to be flashed is obtained based on the read identification information. The specific steps include:
[0091] Establish communication between the flashing device and the ECU to be flashed, and obtain the identification information of the ECU to be flashed by reading the flashing device;
[0092] Based on the read identification information, the supplier information corresponding to the ECU to be flashed is determined.
[0093] In the present invention, the flashing device stores the difference programs or data corresponding to each supplier, as well as the common program or data of the ECU; the flashing device obtains the common program or data of the ECU from its own storage area, and at the same time, based on the obtained supplier information, obtains the difference program or data of the supplier corresponding to the ECU to be flashed from its own storage area.
[0094] In the present invention, the identification information is used to distinguish suppliers. After communication is established between the flashing device and the ECU to be flashed, the identification information of the ECU to be flashed can be read by the flashing device. Thereafter, the supplier corresponding to the ECU to be flashed can be obtained based on the correspondence between the identification information and the supplier. Moreover, since there is a correspondence between the supplier and the difference program or data, the difference program or data of the ECU to be flashed can be obtained based on the determined supplier.
[0095] In the present invention, the obtained difference program or data and the common program or data of the ECU are written into the ECU to be flashed, so as to realize the ECU data flashing. The specific steps include:
[0096] Through the flashing device, the obtained difference program or data is written into the difference area of the ECU to be flashed, and the common program or data of the ECU is written into the common area of the ECU to be flashed.
[0097] When the ECU leaves the factory, the data in the BootLoader area has been flashed, and the data in the common area is the same regardless of whether the supplier is the same. Therefore, when flashing the ECU data, you only need to obtain the corresponding difference program or data according to the supplier to which the ECU belongs, and write the obtained difference program or data into the difference area of the ECU to be flashed. This can complete the flashing of multi-supplier ECU data and effectively improve the flashing efficiency of ECU data in the supplier ECU data flashing scenario.
[0098] It should be noted that, through the definition of the present invention, ECUs from different suppliers have the same memory structure, namely, the BootLoader area, the difference area and the common area. The BootLoader area is the BootLoader program area that comes with the supplier's ECU, and the common area stores common data that is independent of the supplier. Regardless of which supplier it is, it is the same program or data. When flashing data to the ECU, for the differentiated data of ECUs from different suppliers, it is only necessary to obtain the corresponding difference program or data according to the supplier to which the ECU belongs, and write the obtained difference program or data into the difference area of the ECU to be flashed, so as to complete the flashing of multi-supplier ECU data, and effectively improve the flashing efficiency of ECU data in the scenario of flashing supplier ECU data.
[0099] The multi-supplier ECU data flashing device of the embodiment of the present invention reads the identification information of the ECU to be flashed, obtains the supplier information corresponding to the ECU to be flashed based on the read identification information, and then obtains the differential program or data corresponding to the supplier in the ECU to be flashed based on the obtained supplier information, and finally writes the obtained differential program or data and the common program or data of the ECU into the ECU to be flashed to realize ECU data flashing. That is, when flashing the ECU, the supplier information is obtained by communicating with the ECU, and the differentiated data is automatically selected for flashing. When flashing the common data, ECUs of different suppliers only need to flash one data, which effectively improves the data flashing efficiency of the ECU in the case of multiple suppliers.
[0100] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
[0101] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
Claims
1. A multi-supplier ECU data flashing method, characterized in that: The specific steps include: Read the identification information of the ECU to be flashed, and obtain the supplier information corresponding to the ECU to be flashed based on the read identification information; Based on the obtained supplier information, obtain the difference program or data of the corresponding supplier in the ECU to be flashed; Write the obtained difference program or data and the common program or data of the ECU into the ECU to be flashed, so as to realize the flashing of ECU data; in, The memory structure of the ECU includes a BootLoader area and an APP area; The BootLoader area is used to store the BootLoader program that comes with the ECU when it leaves the factory, and the BootLoader program is built into the ECU; The APP region includes a difference region and a common region; in, The difference area is used to store difference programs or data corresponding to the supplier; The common area is used to store common programs or data that are independent of vendors.
2. A multi-supplier ECU data flashing method as claimed in claim 1, characterized in that: For the ECUs to be flashed, the starting address and area size of the common area of all ECUs are the same.
3. A multi-supplier ECU data flashing method as claimed in claim 1, characterized in that: The reading of identification information of the ECU to be flashed, and obtaining supplier information corresponding to the ECU to be flashed based on the read identification information, specifically comprises the following steps: Establish communication between the flashing device and the ECU to be flashed, and obtain the identification information of the ECU to be flashed by reading the flashing device; Based on the read identification information, the supplier information corresponding to the ECU to be flashed is determined.
4. A multi-supplier ECU data flashing method as claimed in claim 3, characterized in that: The flashing device stores the different programs or data corresponding to each supplier, as well as the common programs or data of the ECU; The flashing device obtains the common program or data of the ECU from its own storage area, and simultaneously obtains the difference program or data of the supplier corresponding to the ECU to be flashed from its own storage area based on the obtained supplier information.
5. A multi-supplier ECU data flashing method as claimed in claim 3, characterized in that: The obtained difference program or data and the common program or data of the ECU are written into the ECU to be flashed, so as to realize the flashing of the ECU data. The specific steps include: Through the flashing device, the obtained difference program or data is written into the difference area of the ECU to be flashed, and the common program or data of the ECU is written into the common area of the ECU to be flashed.
6. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that runs on the processor, wherein: When the processor executes the computer program, the multi-supplier ECU data flashing method according to any one of claims 1 to 5 is implemented.
7. A non-transitory 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 multi-supplier ECU data flashing method as claimed in any one of claims 1 to 5 are implemented.
8. A multi-supplier ECU data flashing device, characterized in that: include: A reading module, which is used to read the identification information of the ECU to be flashed, and obtain the supplier information corresponding to the ECU to be flashed based on the read identification information; An acquisition module, which is used to obtain a difference program or data corresponding to a supplier in the ECU to be flashed based on the acquired supplier information; A flashing module is used to write the obtained difference program or data and the common program or data of the ECU into the ECU to be flashed, so as to realize the flashing of ECU data; in, The memory structure of the ECU includes a BootLoader area and an APP area; The BootLoader area is used to store the BootLoader program that comes with the ECU when it leaves the factory, and the BootLoader program is built into the ECU; The APP region includes a difference region and a common region; in, The difference area is used to store difference programs or data corresponding to the supplier; The common area is used to store common programs or data that are independent of vendors.
