Data processing method, device and equipment

By parsing and assembling ECU flash files, and using the driver interface of the bus device to send data, the problem of low ECU flash writing efficiency is solved and efficient flash writing of different ECUs is achieved.

CN118778596APending Publication Date: 2024-10-15AVATR CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410763242.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

ECUs provided by different suppliers need to be flashed through special host computers, and the host computers are incompatible, resulting in low ECU data flashing efficiency.

Method used

By obtaining the flash file of the ECU to be flashed, data analysis and assembly processing is performed, and the driver interface corresponding to the bus device is used to send the flash data to realize data flashing of different ECUs.

Benefits of technology

It solves the problem that ECU needs to be flashed through a special host computer, improves the efficiency of data flashing, and enables efficient flashing of ECUs from different suppliers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118778596A_ABST
    Figure CN118778596A_ABST
Patent Text Reader

Abstract

The embodiment of the invention relates to the technical field of automobiles, and discloses a data processing method, device and equipment, and the method comprises the steps: obtaining a flashing file of an ECU to be flashed, and carrying out the data analysis of the flashing file to obtain flashing data; according to the diagnosis protocol corresponding to the ECU to be flashed, carrying out assembly processing on the flashed data; and acquiring a device type of a bus device connected with the ECU to be flashed, and sending the assembled flashed data to the ECU to be flashed through a driving interface corresponding to the device type so as to perform data flashed processing on the ECU to be flashed. By means of the technical scheme, data flashing of different ECUs can be achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of automobile technology, and in particular to a data processing method, device and equipment. Background Art

[0002] Electronic Control Unit (ECU) data flashing refers to updating or upgrading the ECU software to adjust the vehicle operating parameters or control logic to improve the driving experience.

[0003] Currently, ECU data flashing is implemented through a host computer. However, ECUs provided by different suppliers often need to be flashed through a dedicated host computer, and the host computers are not compatible with each other, resulting in low efficiency of ECU data flashing. Summary of the invention

[0004] In view of the above problems, an embodiment of the present invention provides a data processing method, device and equipment for solving the problem in the prior art that ECUs provided by different suppliers need to be flashed by a dedicated host computer, the host computers are not compatible with each other, and the efficiency of ECU data flashing is low.

[0005] According to one aspect of an embodiment of the present invention, a data processing method is provided, the method comprising: obtaining a flash file of an ECU to be flashed, performing data parsing on the flash file to obtain flash data; assembling the flash data according to a diagnostic protocol corresponding to the ECU to be flashed; obtaining a device type of a bus device connected to the ECU to be flashed, and sending the assembled flash data to the ECU to be flashed through a driver interface corresponding to the device type, so as to perform data flashing on the ECU to be flashed.

[0006] According to another aspect of an embodiment of the present invention, a data processing device is provided, including: an acquisition module, used to acquire a flash file of an ECU to be flashed, and perform data parsing on the flash file to acquire flash data; a processing module, used to assemble the flash data according to a diagnostic protocol corresponding to the ECU to be flashed; the processing module is also used to acquire a device type of a bus device connected to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through a drive interface corresponding to the device type, so as to perform data flashing on the ECU to be flashed.

[0007] According to another aspect of an embodiment of the present invention, there is provided an electronic device, 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 via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the data processing method as described in the first aspect.

[0008] The embodiment of the present invention provides a data processing method, device and equipment, which obtains the flash file of the ECU to be flashed, performs data analysis on the flash file to obtain the flash data; assembles the flash data according to the diagnostic protocol corresponding to the ECU to be flashed; obtains the device type of the bus device connected to the ECU to be flashed, and sends the assembled flash data to the ECU to be flashed through the drive interface corresponding to the device type, so as to perform data flashing on the ECU to be flashed. Thus, the host computer can assemble the flash data according to the diagnostic protocol corresponding to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through the drive interface corresponding to the bus device, so as to perform data flashing on the ECU to be flashed. Data flashing of different ECUs is realized, which solves the problem of low ECU data flashing efficiency caused by the need for ECU to be flashed through a dedicated host computer and the incompatibility between host computers.

[0009] The above description is only an overview of the technical solution of the embodiment of the present invention. In order to more clearly understand the technical means of the embodiment of the present invention, 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 invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings are only used to illustrate the embodiments and are not to be considered as limiting the present invention. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings. In the accompanying drawings:

[0011] Figure 1 A schematic diagram showing the structure of a data processing system provided by the present invention is shown;

[0012] Figure 2 A schematic flow chart showing a first embodiment of a data processing method provided by the present invention;

[0013] Figure 3 A schematic diagram showing a four-layer processing strategy for data processing by a host computer provided by the present invention is shown;

[0014] Figure 4 A schematic flow chart of a second embodiment of a data processing method provided by the present invention is shown;

[0015] Figure 5a A schematic diagram of the pre-programming process in the flashing process of the ECU provided by the present invention is shown;

[0016] Figure 5b A schematic diagram of the main programming process in the flashing process of the ECU provided by the present invention is shown;

[0017] Figure 5c A schematic diagram of the post-programming process in the flashing process of the ECU provided by the present invention is shown;

[0018] Figure 6 A schematic flow chart of a third embodiment of a data processing method provided by the present invention is shown;

[0019] Figure 7 A schematic flow chart of a fourth embodiment of a data processing method provided by the present invention is shown;

[0020] Figure 8 A schematic structural diagram of an embodiment of a data processing device provided by the present invention is shown;

[0021] Fig. 9 A schematic structural diagram of an embodiment of an electronic device provided by the present invention is shown. DETAILED DESCRIPTION

[0022] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0023] Figure 1 FIG. 2 shows a schematic diagram of the structure of the data processing system provided by the present invention. Figure 1 As shown, the data processing system includes a host computer 101, an ECU 102 to be flashed, and a bus device 103 connected to the host computer 101 and the ECU 102 to be flashed respectively.

[0024] The host computer 101 obtains the flash file of the ECU 102 to be flashed, and performs data analysis on the flash file to obtain the flash data. The host computer 101 assembles the flash data according to the diagnostic protocol corresponding to the ECU 102 to be flashed. The host computer 101 obtains the device type of the bus device 103 connected to the ECU 102 to be flashed, and sends the assembled flash data to the ECU 102 to be flashed through the driver interface corresponding to the device type, so as to perform data flashing on the ECU 102 to be flashed.

[0025] Figure 2 FIG. 1 is a flow chart showing a first embodiment of a data processing method provided by the present invention, wherein the method is executed by a host computer. Figure 2 As shown, the method comprises the following steps:

[0026] Step 210: Obtain a flash file of the ECU to be flashed, and perform data analysis on the flash file to obtain the flash data.

[0027] In this embodiment, the host computer can obtain the flash file of the ECU to be flashed, and perform data analysis on the flash file to obtain the flash data. The flash file of the ECU to be flashed can be a Hex file or an S19 file.

[0028] Among them, S19 file is Motorola S-record, a file format created by Motorola that transmits binary information in ASCII hexadecimal text form. This file format may also be called SRECORD, SREC, S19, S28, S37. It is commonly used to program microcontrollers, EPROMs, and other types of programmable logic devices.

[0029] Among them, Hex is another hexadecimal format of S19, which refers to Intel-HEX, a format developed by Intel.

[0030] The host computer can perform data analysis on the flash file to obtain the flash data. The flash data is the data required for flashing the ECU, and may include the flash software data of the ECU. The ECU to be flashed may be a body domain controller (BDC), a front smart junction box (FSJB), or a body domain controller BDC2.0.

[0031] Step 220: assemble the flashing data according to the diagnostic protocol corresponding to the ECU to be flashed.

[0032] In this embodiment, the diagnostic protocol may be a Unified Diagnostic Services (UDS) protocol, which may indicate an assembly method of flash data and a flash process of the ECU. The host computer may assemble the flash data according to the assembly method indicated in the diagnostic protocol of the ECU to be flashed.

[0033] Step 230: Obtain the device type of the bus device connected to the ECU to be flashed, and send the assembled flashing data to the ECU to be flashed through a driver interface corresponding to the device type, so as to perform data flashing processing on the ECU to be flashed.

[0034] In this embodiment, the host computer can obtain the device type of the bus device connected to the ECU to be flashed. The host computer can flash the ECU through the bus device. Exemplarily, the device type of the bus device may include USBCAN, Kvaser, CANOE and Vecspy. Different device types correspond to different driver interfaces. The host computer can send the flash data after assembly processing to the ECU to be flashed through the driver interface corresponding to the device type, so as to perform data flash processing on the ECU to be flashed.

[0035] In an optional manner, the host computer can also obtain the hardware channel identifier of the bus device connected to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through the hardware channel corresponding to the hardware channel identifier. The bus device can include at least two hardware channels, and data flashing can be achieved through one hardware channel and vehicle operation data can be entered through another hardware channel.

[0036] In an optional manner, the host computer can also obtain the communication baud rate between the host computer and the ECU to be flashed. The communication baud rate can be 250K, 500K, or 1000K.

[0037] In an optional manner, the host computer can support two flashing modes: with a flash driver or without a flash driver.

[0038] In an optional manner, the host computer can obtain the hardware channel, communication baud rate and flashing mode of the bus device connected to the ECU to be flashed through the human-computer interaction interface.

[0039] In an optional manner, the host computer can perform data processing through a four-layer processing strategy. Figure 3 A schematic diagram of a four-layer processing strategy for data processing by a host computer provided by the present invention is shown. The four-layer processing strategy includes an application layer, an intermediate layer, a basic software layer, and an underlying driver layer. Specifically, the application layer obtains a flash file of the ECU to be flashed, and performs data parsing on the flash file to obtain the flash data; the intermediate layer assembles the flash data according to the diagnostic protocol corresponding to the ECU to be flashed; the basic software layer passes the flash data after the assembly process to the underlying driver layer; the underlying driver layer sends the flash data after the assembly process to the ECU to be flashed, so as to perform data flashing process on the ECU to be flashed.

[0040] In this embodiment, the flash file of the ECU to be flashed is obtained, and the flash file is parsed to obtain the flash data; the flash data is assembled according to the diagnostic protocol corresponding to the ECU to be flashed; the device type of the bus device connected to the ECU to be flashed is obtained, and the assembled flash data is sent to the ECU to be flashed through the drive interface corresponding to the device type, so as to perform data flashing on the ECU to be flashed. Thus, the host computer can assemble the flash data according to the diagnostic protocol corresponding to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through the drive interface corresponding to the bus device, so as to perform data flashing on the ECU to be flashed. Data flashing of different ECUs is realized, and the problem of low ECU data flashing efficiency caused by the need for ECU to be flashed through a dedicated host computer and the incompatibility between host computers is solved.

[0041] Figure 4 FIG. 2 is a flow chart showing a second embodiment of the data processing method provided by the present invention, wherein the method is executed by a host computer. Figure 4 As shown, after the above step 210, the method further includes the following steps:

[0042] Step 410: Split the flash data to obtain multiple flash data packets.

[0043] In this embodiment, the host computer can perform data parsing on the flash file, and after obtaining the flash data, split the flash data to obtain multiple flash data packets. Specifically, the application layer in the four-layer processing strategy of the host computer can split the flash data to obtain multiple flash data packets. Exemplarily, the flash data can be split according to the UDS protocol.

[0044] The above steps 220 to 230 specifically include the following steps:

[0045] Step 420: assemble and process each flash data packet according to the diagnostic protocol corresponding to the ECU to be flashed.

[0046] In this embodiment, the host computer can assemble and process each flash data packet according to the diagnostic protocol corresponding to the ECU to be flashed. Specifically, the middle layer in the four-layer processing strategy of the host computer can assemble the interactive message unit I-PDU in the flash data packet of the application layer into a network message unit N-PDU according to the protocol and pass it to the basic software layer.

[0047] Step 430: According to the diagnostic protocol, each assembled flash data packet is sent to the ECU to be flashed.

[0048] In this embodiment, the host computer can obtain the flashing process of the ECU to be flashed according to the diagnostic protocol corresponding to the ECU to be flashed, and send each flashing data packet after assembly to the ECU to be flashed according to the flashing process. Specifically, the middle layer in the four-layer processing strategy of the host computer can pass each flashing data packet after assembly to the basic software layer according to the flashing process corresponding to the UDS protocol, and the basic software layer passes the flashing data packet after assembly to the underlying driver layer, so that the underlying driver layer sends the flashing data packet to the ECU to be flashed.

[0049] Figure 5a to Figure 5c The schematic diagram of the flashing process of the ECU provided by the present invention is shown. The flashing process of the ECU includes three parts: pre-programming, main programming and post-programming.

[0050] Figure 5a The figure shows a schematic diagram of the pre-programming process in the flashing process of the ECU provided by the present invention. Figure 5a As shown, the pre-programming includes: entering the default mode and determining whether the entry into the default mode is successful; when it is determined to enter the default mode, entering the extended mode and determining whether the entry into the extended mode is successful; when it is determined to enter the extended mode, initiating a safety authentication request and determining whether the safety authentication is successful; when it is determined that the safety authentication is successful, initiating a prohibition of the diagnostic trouble code (DTC) request and entering DTC silence; initiating a prohibition of communication request to prohibit communication.

[0051] The pre-programming also includes: when it is determined that the pre-programming fails to enter the default mode, the pre-programming fails to enter the extended mode, and the pre-programming security authentication fails, determining that the flashing fails, and ending the pre-programming process.

[0052] Figure 5b The schematic diagram of the main programming process in the flashing process of the ECU provided by the present invention is shown. Figure 5bAs shown, the main programming includes: after communication is prohibited, initiating a request to enter the programming mode; determining whether to enter the programming session; when it is determined that the programming session has been successfully entered, initiating a security authentication request to determine whether the security access is successful; when it is determined that the security access is successful, initiating a fingerprint writing request; determining whether the device fingerprint information is successfully written; when it is determined that the device fingerprint information is successfully written, reading the partition to be flashed, and determining whether the partition to be flashed is successfully read; when it is determined that the partition to be flashed is successfully read, determining whether there is a flash driver; when determining the flash driver, determining whether the flash driver is successfully downloaded; determining whether there is an APP, and determining whether the APP is successfully downloaded; when it is determined that the APP is successfully downloaded, initiating a programming integrity and application validity verification request; checking whether the programming integrity and application validity are passed, and when it is determined that the programming integrity and application validity are passed, performing partition switching, and determining whether the partition switching is successful; when it is determined that the partition switching is successful, resetting the ECU, and determining whether the ECU reset is successful.

[0053] The main programming also includes: when it is determined that the main programming fails to enter the extended session, the main programming security authentication fails, the main programming fingerprint write fails, the main programming partition read fails, the main programming flash driver download fails, the main programming APP download fails, the main programming programming integrity and application validity verification fails, the main programming partition switch fails, and the main programming reset fails, it is determined that the flashing fails and the main programming process ends.

[0054] Figure 5c The following is a schematic diagram of the post-programming process in the flashing process of the ECU provided by the present invention. Figure 5c As shown, post-programming includes: after determining that the ECU is reset successfully, entering the extended mode and determining whether the entry into the extended mode is successful; when determining that the entry into the extended mode is successful, turning on the communication and DTC recording functions, and determining whether the communication is turned on and whether the DTC is turned on successfully; when determining that the communication is turned on and the DTC is turned on successfully, clearing the DTC and determining whether the DTC fault code is cleared successfully; when determining that the DTC fault code is cleared successfully, entering the default mode and determining whether the entry into the default mode is successful; when determining that the entry into the default mode is successful, determining that the flashing is successful.

[0055] Post-programming includes: when it is determined that post-programming fails to enter the extended mode, post-programming communication / DTC control fails, post-programming fails to clear fault codes, and post-programming fails to enter the default mode, it is determined that the flashing fails and the post-programming process ends.

[0056] In this embodiment, the host computer splits the flash data to obtain multiple flash data packets, assembles each flash data packet according to the diagnostic protocol corresponding to the ECU to be flashed, and sends each assembled flash data packet to the ECU to be flashed according to the flash process corresponding to the diagnostic protocol, so that the ECU to be flashed performs data flashing according to the flash process. This further implements data flashing for different ECUs, solving the problem of low ECU data flashing efficiency caused by the need for ECUs to be flashed through a dedicated host computer and the incompatibility between host computers.

[0057] Figure 6 FIG. 2 shows a flow chart of a third embodiment of a data processing method provided by the present invention, which is executed by a host computer. Figure 6 As shown, the method specifically comprises the following steps:

[0058] Step 610: Acquire the attribute value of the ECU to be flashed, and perform authentication processing on the ECU to be flashed according to the attribute value.

[0059] In this embodiment, the host computer can obtain the attribute value of the ECU to be flashed. Exemplarily, the attribute value may include a diagnostic ID, a security authentication algorithm root key, an ECU name, etc. Specifically, the application layer in the four-layer processing strategy of the host computer can store the attribute value of the ECU in a const table. When the attribute value of the ECU to be flashed is obtained, the attribute value in the const table can be called to authenticate the ECU to be flashed.

[0060] Step 620: Obtain a flash file of the ECU to be flashed, and perform data analysis on the flash file to obtain the flash data.

[0061] In this embodiment, the host computer can obtain the flash file of the ECU to be flashed, and perform data analysis on the flash file to obtain the flash data. The flash file of the ECU to be flashed can be a Hex file or an S19 file. The host computer can perform data analysis on the flash file to obtain the flash data. The flash data is the data required for flashing the ECU, and can include the flash software data of the ECU. Among them, the ECU to be flashed can be a body domain controller BDC, a front cabin smart fuse box FSJB, or a body domain controller BDC2.0.

[0062] Specifically, the application layer in the four-layer processing strategy of the host computer may obtain the flash file of the ECU to be flashed, and perform data analysis on the flash file to obtain the flash data.

[0063] Step 630: Assemble the flashing data according to the diagnostic protocol corresponding to the ECU to be flashed.

[0064] In this embodiment, the diagnostic protocol may be a UDS protocol, which may indicate the assembly method of the flash data and the flash process of the ECU. The host computer may assemble and process the flash data according to the assembly method indicated in the diagnostic protocol of the ECU to be flashed. Specifically, the middle layer in the four-layer processing strategy of the host computer may assemble and process the flash data according to the diagnostic protocol corresponding to the ECU to be flashed.

[0065] In an optional way, the middle layer can also send flow control frames of diagnostic messages, and perform framing and deframing of single frames, multiple frames, and continuous frames; the array download process processing in the UDS download process can also be processed by the middle layer. According to the UDS rule, if the length of the data to be sent is less than 8, a single frame is sent. If the length is greater than 8, the first frame of the data is sent first. After receiving the flow control frame replied by the ECU, continuous frames are sent according to the flow control requirements.

[0066] Step 640: Obtain the device type of the bus device connected to the ECU to be flashed, and perform format conversion on the flashing data after assembly processing according to the device type to obtain the flashing data corresponding to the device type.

[0067] In this embodiment, the host computer can obtain the device type of the bus device connected to the ECU to be flashed. Exemplarily, the device type of the bus device may include USBCAN, Kvaser, CANOE and Vecspy.

[0068] The host computer can perform format conversion on the flash data after assembly processing according to the device type. Specifically, the basic software layer in the four-layer processing strategy of the host computer can perform format conversion on the flash data after assembly processing according to the device type, and perform format conversion on the network message unit N-PDU transmitted by the middle layer to obtain the flash data corresponding to different device types. Exemplarily, the flash data after format conversion can be a data link message unit L-PDU.

[0069] In an optional way, the basic software layer can also fill the received data into the receive buffer for the application layer to selectively call and process. The receive buffer saves the received data into the buffer in real time through the receive interrupt of the driver layer. When the host computer sends the request and waits for the response, it reads all the data from the buffer at once to find the required data.

[0070] Step 650: Obtain the hardware channel identifier of the bus device connected to the ECU to be flashed.

[0071] Step 660: Send the flashing data corresponding to the device type to the ECU to be flashed via the driver interface corresponding to the device type and the hardware channel corresponding to the hardware channel identifier.

[0072] In this embodiment, different device types correspond to different drive interfaces. The host computer can send the flash data corresponding to the device type to the ECU to be flashed through the drive interface corresponding to the device type, so as to perform data flashing processing on the ECU to be flashed. Specifically, the flash data can be sent to the ECU to be flashed by the bottom driver layer in the four-layer processing strategy of the host computer. The bottom driver layer can perform operation management on the bus device, such as opening the device, initializing the device, receiving message filtering, starting the device, receiving and sending data, closing the device, etc.

[0073] In this embodiment, the host computer can also obtain the hardware channel identifier of the bus device connected to the ECU to be flashed, and send the flashing data corresponding to the device type to the ECU to be flashed through the hardware channel corresponding to the hardware channel identifier. The bus device can include at least two hardware channels, and data flashing can be achieved through one hardware channel and vehicle operation data can be entered through another hardware channel.

[0074] In an optional manner, the host computer can also obtain the communication baud rate between the host computer and the ECU to be flashed. The communication baud rate can be 250K, 500K, or 1000K.

[0075] In an optional manner, the host computer can support two flashing modes: with a flash driver or without a flash driver.

[0076] In an optional manner, the host computer can obtain the hardware channel, communication baud rate and flashing mode of the bus device connected to the ECU to be flashed through the human-computer interaction interface.

[0077] Step 670: Acquire the abnormal information fed back by the ECU to be flashed, and retransmit the flashing data according to the abnormal information.

[0078] In this embodiment, after sending the flashing data to the ECU to be flashed, the host computer can obtain abnormal information fed back by the ECU to be flashed, and retransmit the flashing data according to the abnormal information.

[0079] Specifically, the bottom driver layer in the upper computer's four-layer processing strategy can encapsulate the data sent by the drivers of different devices into unified interface data for the basic software layer to call, for example, by calling the hardware driver software to pass the bus physical layer data processing data link message unit L-PDU to the upper basic software layer for calling.

[0080] The basic software layer includes the service layer and the device abstraction layer. The service layer performs system clock management, thread task processing, communication services, etc. The device abstraction layer can encapsulate the data of different supported device types into network message units N-PDU that the middle layer needs to process and pass them to the middle layer.

[0081] The middle layer can split the N-PDU data transmitted by the basic software layer into the interactive message unit I-PDU data format required by the application layer and provide it to the application layer for judgment.

[0082] The application layer can respond according to the message response format specified by UDS, handle exceptions corresponding to positive and negative responses, and retransmit the flush data based on the exception information.

[0083] In this embodiment, the host computer authenticates the ECU to be flashed according to the attribute value, and realizes the authentication of different ECUs; the format of the flashing data is converted according to the device type, and the data flashing for different ECUs is realized; according to the abnormal information fed back by the ECU to be flashed, the flashing data is retransmitted to ensure the accuracy of the data flashing for different ECUs. This further solves the problem that the ECU needs to be flashed by a dedicated host computer, and the host computers are not compatible, resulting in low efficiency of ECU data flashing.

[0084] Figure 7 FIG. 4 is a flow chart of a fourth embodiment of a data processing method provided by the present invention, which is executed by a host computer. Figure 7 As shown, the method further comprises the following steps:

[0085] Step 710: Obtain the identification of the area to be flashed of the ECU to be flashed, and control the ECU to be flashed to perform data flashing processing in the partition corresponding to the identification of the area to be flashed.

[0086] In this embodiment, the ECU to be flashed may include multiple partitions. The host computer can obtain the identification of the area to be flashed of the ECU to be flashed, and control the ECU to be flashed to perform data flashing in the partition corresponding to the identification of the area to be flashed. Other partitions can process the vehicle running program when the partition corresponding to the identification of the area to be flashed is performing data flashing, so as to realize ECU senseless data flashing.

[0087] Step 720: After determining that the partition corresponding to the to-be-written area identifier has completed data flashing, control the to-be-written ECU to perform partition switching processing.

[0088] In this embodiment, the host computer can monitor whether the partition corresponding to the area to be flashed has completed data flashing. After determining that the partition corresponding to the area to be flashed has completed data flashing, the host computer controls the ECU to be flashed to perform partition switching processing to control other partitions to flash data.

[0089] In this embodiment, the host computer controls the ECU to be flashed to perform partition data flashing. When one partition of the ECU to be flashed is flashing data, other partitions process the vehicle operation program, thereby realizing ECU senseless data flashing and further improving the efficiency of ECU data flashing.

[0090] Figure 8 FIG. 2 is a schematic diagram showing a structure of an embodiment of a data processing device provided by the present invention. Figure 8 As shown, the device 800 includes: an acquisition module 810 and a processing module 820. The acquisition module 810 is used to acquire the flash file of the ECU to be flashed, and perform data analysis on the flash file to acquire the flash data; the processing module 820 is used to assemble the flash data according to the diagnostic protocol corresponding to the ECU to be flashed; the processing module 820 is also used to acquire the device type of the bus device connected to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through the driver interface corresponding to the device type, so as to perform data flashing processing on the ECU to be flashed.

[0091] In an optional manner, the processing module 820 is also used to split the flash data after acquiring the flash data to obtain multiple flash data packets; the processing module 820 is specifically used to assemble each flash data packet according to the diagnostic protocol corresponding to the ECU to be flashed; according to the diagnostic protocol, each assembled flash data packet is sent to the ECU to be flashed.

[0092] In an optional manner, the processing module 820 is further configured to obtain a property value of the ECU to be flashed, and perform authentication processing on the ECU to be flashed according to the property value.

[0093] In an optional manner, the processing module 820 is also used to convert the format of the flash data after assembly processing according to the device type to obtain the flash data corresponding to the device type; the processing module 820 is specifically used to send the flash data corresponding to the device type to the ECU to be flashed through a drive interface corresponding to the device type.

[0094] In an optional manner, the processing module 820 is further used to obtain an identifier of a to-be-flashed area of ​​the to-be-flashed ECU, and control the to-be-flashed ECU to perform data flashing processing in a partition corresponding to the to-be-flashed area identifier.

[0095] In an optional manner, the processing module 820 is further configured to control the ECU to be flashed to perform partition switching processing after determining that the partition corresponding to the area identifier to be flashed has completed data flashing.

[0096] In an optional manner, the processing module 820 is further configured to obtain abnormal information fed back by the ECU to be flashed, and perform retransmission processing on the flashing data according to the abnormal information.

[0097] In an optional manner, the processing module 820 is also used to obtain the hardware channel identifier of the bus device connected to the ECU to be flashed; and send the assembled and processed flash data to the ECU to be flashed through the driver interface corresponding to the device type and the hardware channel corresponding to the hardware channel identifier.

[0098] In this embodiment, the data processing device can assemble the flash data according to the diagnostic protocol corresponding to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through the driver interface corresponding to the bus device, so as to perform data flashing on the ECU to be flashed. Data flashing of different ECUs is realized, solving the problem of low ECU data flashing efficiency caused by the need for ECU to be flashed through a dedicated host computer and the incompatibility between host computers.

[0099] Fig. 9 The schematic diagram of the structure of an embodiment of the electronic device provided by the present invention is shown, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.

[0100] like Fig. 9 As shown, the electronic device may include: a processor (processor) 902 , a communication interface (Communications Interface) 904 , a memory (memory) 906 , and a communication bus 908 .

[0101] The processor 902, the communication interface 904, and the memory 906 communicate with each other via a communication bus 908. The communication interface 904 is used to communicate with other devices such as a client or other server network elements. The processor 902 is used to execute a program 910, which can specifically execute the relevant steps in the above data processing method embodiment.

[0102] Specifically, the program 910 may include program code including computer executable instructions.

[0103] The processor 902 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs, or processors of different types, such as one or more CPUs and one or more ASICs.

[0104] The memory 906 is used to store the program 910. The memory 906 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0105] Program 910 can be specifically called by processor 902 to enable the electronic device to perform the following operations: obtain the flash file of the ECU to be flashed, and perform data analysis on the flash file to obtain the flash data; assemble the flash data according to the diagnostic protocol corresponding to the ECU to be flashed; obtain the device type of the bus device connected to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through the driver interface corresponding to the device type, so as to perform data flashing on the ECU to be flashed.

[0106] In an optional manner, program 910 can also be called by processor 902 to enable the electronic device to perform the following operations: after obtaining the flash data, split the flash data to obtain multiple flash data packets; assemble each flash data packet according to the diagnostic protocol corresponding to the ECU to be flashed; and send each assembled flash data packet to the ECU to be flashed according to the diagnostic protocol.

[0107] In an optional manner, the program 910 may also be called by the processor 902 to enable the electronic device to perform the following operations: obtaining the attribute value of the ECU to be flashed, and performing authentication processing on the ECU to be flashed according to the attribute value.

[0108] In an optional manner, program 910 can also be called by processor 902 to enable the electronic device to perform the following operations: before sending the assembled flash data to the ECU to be flashed, convert the format of the assembled flash data according to the device type to obtain the flash data corresponding to the device type; and send the flash data corresponding to the device type to the ECU to be flashed through a drive interface corresponding to the device type.

[0109] In an optional manner, program 910 can also be called by processor 902 to enable the electronic device to perform the following operations: obtain the identification of the area to be flashed of the ECU to be flashed, and control the ECU to be flashed to perform data flashing processing in the partition corresponding to the identification of the area to be flashed.

[0110] In an optional manner, program 910 can also be called by processor 902 to enable the electronic device to perform the following operations: after determining that the partition corresponding to the area identifier to be flashed has completed data flashing, control the ECU to be flashed to perform partition switching processing.

[0111] In an optional manner, the program 910 may also be called by the processor 902 to enable the electronic device to perform the following operations: obtain abnormal information fed back by the ECU to be flashed, and retransmit the flashing data according to the abnormal information.

[0112] In an optional manner, program 910 can also be called by processor 902 to enable the electronic device to perform the following operations: obtain the hardware channel identifier of the bus device connected to the ECU to be flashed; and send the assembled flash data to the ECU to be flashed through a driver interface corresponding to the device type and a hardware channel corresponding to the hardware channel identifier.

[0113] In this embodiment, the electronic device can assemble the flash data according to the diagnostic protocol corresponding to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through the driver interface corresponding to the bus device, so as to perform data flashing on the ECU to be flashed. Data flashing of different ECUs is realized, solving the problem of low ECU data flashing efficiency caused by the need for ECU to be flashed through a dedicated host computer and the incompatibility between host computers.

[0114] An embodiment of the present invention provides a computer-readable storage medium, which stores at least one executable instruction. When the executable instruction is executed on an electronic device / apparatus, the electronic device / apparatus executes the data processing method in any of the above method embodiments.

[0115] The executable instructions can be specifically used to enable the electronic device / device to perform the following operations: obtain the flash file of the ECU to be flashed, and perform data analysis on the flash file to obtain the flash data; assemble the flash data according to the diagnostic protocol corresponding to the ECU to be flashed; obtain the device type of the bus device connected to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through the driver interface corresponding to the device type, so as to perform data flashing on the ECU to be flashed.

[0116] In an optional manner, the executable instructions cause the electronic device / device to perform the following operations: after obtaining the flash data, split the flash data to obtain multiple flash data packets; assemble each flash data packet according to the diagnostic protocol corresponding to the ECU to be flashed; and send each assembled flash data packet to the ECU to be flashed according to the diagnostic protocol.

[0117] In an optional manner, the executable instructions enable the electronic device / apparatus to perform the following operations: obtain the attribute value of the ECU to be flashed, and perform authentication processing on the ECU to be flashed according to the attribute value.

[0118] In an optional manner, the executable instructions cause the electronic device / apparatus to perform the following operations: before sending the assembled flash data to the ECU to be flashed, convert the format of the assembled flash data according to the device type to obtain the flash data corresponding to the device type; and send the flash data corresponding to the device type to the ECU to be flashed through a drive interface corresponding to the device type.

[0119] In an optional manner, the executable instructions enable the electronic device / apparatus to perform the following operations: obtain the identification of the area to be flashed of the ECU to be flashed, and control the ECU to be flashed to perform data flashing processing in the partition corresponding to the identification of the area to be flashed.

[0120] In an optional manner, the executable instructions enable the electronic device / apparatus to perform the following operations: after determining that the partition corresponding to the area identifier to be flashed has completed data flashing, control the ECU to be flashed to perform partition switching processing.

[0121] In an optional manner, the executable instructions enable the electronic device / apparatus to perform the following operations: obtain abnormal information fed back by the ECU to be flashed, and retransmit the flashing data according to the abnormal information.

[0122] In an optional manner, the executable instructions cause the electronic device / apparatus to perform the following operations: obtain the hardware channel identifier of the bus device connected to the ECU to be flashed; and send the assembled flash data to the ECU to be flashed through a driver interface corresponding to the device type and a hardware channel corresponding to the hardware channel identifier.

[0123] In this embodiment, the flash data can be assembled and processed according to the diagnostic protocol corresponding to the ECU to be flashed, and the assembled flash data can be sent to the ECU to be flashed through the driver interface corresponding to the bus device, so as to perform data flashing on the ECU to be flashed. Data flashing of different ECUs is achieved, and the problem of low ECU data flashing efficiency caused by the need to flash ECUs through a dedicated host computer and the incompatibility between host computers is solved. The algorithms or displays provided herein are not inherently related to any specific computer, virtual system or other device. In addition, the embodiments of the present invention are not targeted at any specific programming language.

[0124] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. Similarly, in order to simplify the present invention and help understand one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. Wherein, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself is a separate embodiment of the present invention.

[0125] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and further may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive.

[0126] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A data processing method, characterized in that: The method comprises: Obtain a flash file of the ECU to be flashed, and perform data analysis on the flash file to obtain flash data; Assembling the flashing data according to the diagnostic protocol corresponding to the ECU to be flashed; The device type of the bus device connected to the ECU to be flashed is obtained, and the assembled flashing data is sent to the ECU to be flashed through a driving interface corresponding to the device type, so as to perform data flashing processing on the ECU to be flashed.

2. The method according to claim 1, characterized in that After obtaining the flash data, it also includes: Splitting the flash data to obtain multiple flash data packets; The assembling process of the flashing data according to the diagnostic protocol corresponding to the ECU to be flashed includes: assembling the flashing data packets according to the diagnostic protocol corresponding to the ECU to be flashed; The sending of the assembled flash data to the ECU to be flashed includes: sending each assembled flash data packet to the ECU to be flashed according to the diagnostic protocol.

3. The method according to claim 1, characterized in that Also includes: Acquire the attribute value of the ECU to be flashed, and perform authentication processing on the ECU to be flashed according to the attribute value.

4. The method according to claim 1, characterized in that Before sending the assembled flashing data to the ECU to be flashed, the method further includes: According to the device type, format conversion is performed on the flash data after the assembly process to obtain the flash data corresponding to the device type; Sending the assembled flashing data to the ECU to be flashed through a drive interface corresponding to the device type, including: The flashing data corresponding to the device type is sent to the ECU to be flashed via a driving interface corresponding to the device type.

5. The method according to any one of claims 1 to 4, characterized in that: Also includes: The identification of the area to be flashed of the ECU to be flashed is obtained, and the ECU to be flashed is controlled to perform data flashing processing in the partition corresponding to the identification of the area to be flashed.

6. The method according to claim 5, characterized in that Also includes: After determining that the partition corresponding to the to-be-written area identifier has completed data flashing, the to-be-written ECU is controlled to perform partition switching processing.

7. The method according to any one of claims 1 to 4, characterized in that: Also includes: Acquire the abnormal information fed back by the ECU to be flashed, and retransmit the flashing data according to the abnormal information.

8. The method according to any one of claims 1 to 4, characterized in that: Also includes: Obtain a hardware channel identifier of a bus device connected to the ECU to be flashed; The method of sending the assembled flash data to the ECU to be flashed through a driver interface corresponding to the device type includes sending the assembled flash data to the ECU to be flashed through a driver interface corresponding to the device type and a hardware channel corresponding to the hardware channel identifier.

9. A data processing device, characterized in that: The device comprises: An acquisition module is used to acquire a flash file of the ECU to be flashed, and perform data analysis on the flash file to acquire the flash data; A processing module, used for assembling the flashing data according to the diagnostic protocol corresponding to the ECU to be flashed; The processing module is also used to obtain the device type of the bus device connected to the ECU to be flashed, and send the assembled flash data to the ECU to be flashed through a drive interface corresponding to the device type, so as to perform data flashing processing on the ECU to be flashed.

10. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the operation of the data processing method according to any one of claims 1-8.