Data processing method and related equipment

By introducing a request flag mechanism between the vehicle diagnostic equipment and the ECU, only sending a reply message after receiving the last request message is solved, the problem of high vehicle bus load is improved and the efficiency of signal data acquisition is improved.

CN115134186BActive Publication Date: 2024-11-08LAUNCH TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202210752854.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-11-08
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

When existing vehicle diagnostic equipment acquires signal data of multiple target signal items, the vehicle bus load is high and has low efficiency, and needs to send a large number of request messages and reply messages.

Method used

By introducing a request flag between the diagnostic device and the target ECU, a reply message containing multiple target signal data is sent to the diagnostic device only after receiving the last request message, reducing the number of packet exchanges.

Benefits of technology

It significantly reduces the load on the vehicle bus, improves the efficiency of signal data acquisition, and reduces the time for packet packaging and parsing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115134186B_ABST
    Figure CN115134186B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a data processing method and related equipment for reducing the load of a vehicle bus. The method of the embodiment of the present application includes: in response to a user selecting at least two target signal items from the signal items supported by the target ECU to read, determining a request message corresponding to each target signal item; sending the request message corresponding to each target signal item to the target ECU in sequence, so that the target ECU sends a reply message to the diagnostic device after receiving the last request message, and the reply message includes the signal data of each target signal item.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of vehicle diagnosis, and in particular to a data processing method and related equipment. Background Art

[0002] The electronic control unit (ECU), also known as the "on-board computer" of a car, is used to control the driving state of the car and realize its various functions. The ECU mainly uses data collection and exchange between various sensors and buses to determine the vehicle status and the driver's intention and control the car through actuators. Today's vehicles are usually equipped with multiple ECUs, such as engine ECU, transmission ECU, and air conditioning ECU.

[0003] When a user needs to obtain signal data of multiple signal items of a vehicle's ECU through a diagnostic device, the user first needs to select multiple target signal items from the signal items supported by the ECU for reading. Then, the diagnostic device sends a request message to the corresponding ECU based on the multiple target signal items selected by the user. For each target signal item, the diagnostic device sends a request message and the corresponding ECU needs to reply with a reply message.

[0004] The sending and receiving of request messages and reply messages between the diagnostic device and the corresponding ECU need to pass through the vehicle bus. When it is necessary to obtain the signal data of multiple target signal items, the vehicle bus needs to send and receive a large number of request messages and reply messages, the acquisition efficiency of signal data is low and the load of the vehicle bus is high. Summary of the invention

[0005] The embodiments of the present application provide a data processing method and related equipment for reducing the vehicle bus load.

[0006] A first aspect of an embodiment of the present application provides a data processing method, which is applied to a diagnostic device, comprising:

[0007] In response to an operation of a user selecting at least two target signal items from signal items supported for reading by the target ECU, determining a request message corresponding to each target signal item;

[0008] The request message corresponding to each target signal item is sent to the target ECU in sequence, so that the target ECU sends a reply message to the diagnostic device after receiving the last request message, and the reply message includes the signal data of each target signal item.

[0009] In a specific implementation, each of the request messages includes a target request flag;

[0010] Before sending the request message corresponding to each target signal item to the target ECU in sequence, the method further includes:

[0011] The target request flag in each request message except the last request message is set to the first flag, and the subsequent request flag in the last request message is set to the second flag, so that the target ECU determines the last request message according to the target request flag in the request message.

[0012] In a specific implementation, before the operation of responding to the user selecting at least two target signal items from the signal items supported by the target ECU to be read and determining the request message corresponding to each target signal item, the method further includes:

[0013] Obtain vehicle information of the target vehicle;

[0014] Displaying a preset ECU configuration list corresponding to the vehicle information of the target vehicle;

[0015] In response to a user selecting the target ECU from the preset ECU configuration list, signal items supported for reading by the target ECU are displayed.

[0016] In a specific implementation, the method further includes:

[0017] Based on the sending order of the request messages corresponding to each target signal item, sequentially parsing the signal data of each target signal item from the reply message;

[0018] Calculating the signal value of each target signal item according to the signal data of each target signal item and a preset calculation algorithm corresponding to each target signal item;

[0019] Based on the signal value of each target signal item and the corresponding preset unit, the signal value of each target signal item is displayed.

[0020] A second aspect of an embodiment of the present application provides a data processing method, which is applied to a target ECU, comprising:

[0021] For multiple request messages sent sequentially by the diagnostic device, query and save signal data of a target signal item corresponding to each request message, wherein each request message corresponds to a target signal item supported by the target ECU for reading;

[0022] If the signal data of the target signal item corresponding to the last request message is queried, a reply message including the signal data of each target signal item is sent to the diagnostic device.

[0023] In a specific implementation, the request message includes a target request flag;

[0024] The method further comprises:

[0025] Determine whether the target request flag of the currently received target request message is the second flag, wherein the target request message is any one of the multiple request messages sequentially sent by the diagnostic device;

[0026] If the target request flag of the target request message is the second flag, it is determined that the target request message is the last request message.

[0027] A third aspect of the present application provides a diagnostic device, including:

[0028] A determination unit, configured to respond to an operation of a user selecting at least two target signal items from signal items supported for reading by the target ECU, and to determine a request message corresponding to each target signal item;

[0029] A sending unit is used to send the request message corresponding to each target signal item to the target ECU in sequence, so that the target ECU sends a reply message to the diagnostic device after receiving the last request message, and the reply message includes the signal data of each target signal item.

[0030] In a specific implementation, each of the request messages includes a subsequent request flag;

[0031] The sending unit is also used to set the target request flag in each request message except the last request message in each request message to the first flag, and set the subsequent request flag in the last request message to the second flag, so that the target ECU determines the last request message according to the target request flag in the request message.

[0032] In a specific implementation, the diagnostic device further includes: an acquisition unit and a display unit;

[0033] The acquisition unit is used to acquire vehicle information of the target vehicle;

[0034] The display unit is used to display a preset ECU configuration list corresponding to the vehicle information of the target vehicle;

[0035] The display unit is further used to respond to the user's operation of selecting the target ECU from the preset ECU configuration list and display the signal items that the target ECU supports reading.

[0036] In a specific implementation, the diagnostic device further includes: an analysis unit and a calculation unit;

[0037] The parsing unit is used to parse the signal data of each target signal item from the reply message in sequence based on the sending order of the request message corresponding to each target signal item;

[0038] The calculation unit is used to calculate the signal value of each target signal item according to the signal data of each target signal item and the preset calculation algorithm corresponding to each target signal item;

[0039] The display unit is further used to display the signal value of each target signal item based on the signal value of each target signal item and the corresponding preset unit.

[0040] A fourth aspect of an embodiment of the present application provides an ECU, including:

[0041] A query unit, for querying and saving signal data of a target signal item corresponding to each request message for a plurality of request messages sequentially sent by the diagnostic device, wherein each request message corresponds to a target signal item supported for reading by the target ECU;

[0042] A sending unit is used to send a reply message including the signal data of each target signal item to the diagnostic device if the signal data of the target signal item corresponding to the last request message is queried, so that the diagnostic device displays the signal data of each target signal item.

[0043] In a specific implementation, the request message includes a target request flag;

[0044] The ECU further comprises: a judging unit and a determining unit;

[0045] The judging unit is configured to judge whether the target request flag of the currently received target request message is the second flag, wherein the target request message is any one of the multiple request messages sequentially sent by the diagnostic device;

[0046] The determining unit is configured to determine that the target request message is the last request message if the target request flag of the target request message is the second flag.

[0047] A fifth aspect of an embodiment of the present application provides a data processing device, including:

[0048] CPU, memory and input / output interface;

[0049] The memory is a transient storage memory or a persistent storage memory;

[0050] The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method described in the first aspect or the second aspect.

[0051] A sixth aspect of the embodiments of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect or the second aspect.

[0052] A seventh aspect of an embodiment of the present application provides a computer storage medium, wherein the computer storage medium stores instructions, and when the instructions are executed on a computer, the computer executes the method described in the first aspect or the second aspect.

[0053] It can be seen from the above technical scheme that the embodiment of the present application has the following advantages: when the diagnostic device sends a request message for each target signal item selected by the user from the signal items supported by the target ECU to the target ECU, the target ECU only sends a reply message to the diagnostic device that sent the request message after receiving the last request message, and the reply message includes the signal data of each target signal item. The diagnostic device that receives the reply message can display the signal data of each target signal item to the user according to the reply message. Unlike the prior art, in which the target ECU needs to reply a reply message for each target signal item, if N request messages are sent to the target ECU, the bus of the vehicle in the prior art needs to send N request messages and N reply messages, while the vehicle bus in the present application only needs to send N request messages and 1 reply message, which significantly reduces the load of the vehicle bus. At the same time, the target ECU only needs to package the reply messages in sequence, and the diagnostic device only needs to parse the reply message once, which reduces the time of message packaging and parsing, and improves the efficiency of monitoring the target signal items. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] Figure 1 A system architecture diagram of a data processing system disclosed in an embodiment of the present application;

[0055] Figure 2 A schematic diagram of a flow chart of a data processing method disclosed in an embodiment of the present application;

[0056] Figure 3 A schematic diagram of the structure of the diagnostic device disclosed in the embodiment of the present application;

[0057] Figure 4 A schematic diagram of the structure of the ECU disclosed in the embodiment of the present application;

[0058] Figure 5 A schematic diagram of the structure of a data processing device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions 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. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0060] The embodiments of the present application provide a data processing method and related equipment for reducing the vehicle bus load.

[0061] See also Figure 1 In order to better implement the data processing method of the present application, the embodiment of the present application provides a data processing system. The data processing system may include at least one diagnostic device 102 and at least one ECU101, and the ECU101 is connected to the diagnostic device 102 in communication. The diagnostic device 102 is used to respond to the user's operation of selecting multiple target signal items from the signal items supported by the ECU101, determine the request message corresponding to each target signal item, and send the request message corresponding to each target signal item to the ECU101 in turn. For the request message of each target signal item, the ECU101 queries and saves the signal data of the target signal item corresponding to each request message, and sends a reply message including the signal data of each target signal item to the diagnostic device 102. The diagnostic device 102 can then display the signal data of each target signal item in the reply message. Among them, the above-mentioned communication connection does not limit the connection mode, and can be directly or indirectly connected through a wired communication mode, or directly or indirectly connected through a wireless communication mode, etc., which can be determined according to the actual application scenario, and the present application does not limit it here.

[0062] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the data processing system. In other embodiments of the present application, the data processing system may be composed of any diagnostic device and / or ECU that can implement the aforementioned and later data processing methods of the present embodiment, and may include more diagnostic devices and / or ECUs than those shown in the figure.

[0063] Based on the above data processing system, please refer to Figure 2 , a flow chart of a data processing method provided in an embodiment of the present application. The data processing method may be executed by the aforementioned diagnostic device and / or ECU, and the data processing method includes the following steps 201 to 205:

[0064] 201. In response to a user's operation of selecting at least two target signal items from signal items supported for reading by a target ECU, a diagnostic device determines a request message corresponding to each target signal item.

[0065] When the user needs to diagnose the vehicle, the diagnostic device can be used to obtain signal data of different signal items of different ECUs from the target vehicle, and the vehicle can be diagnosed and evaluated based on the signal data of the signal items. Therefore, if the user selects at least two target signal items from multiple signal items supported by the target ECU to read (the target signal items are the signal items selected by the user from multiple signal items supported by the target ECU to read), the diagnostic device first needs to determine the request message corresponding to each target signal item. Specifically, before executing the data processing method of the embodiment of the present application, a diagnostic protocol library will be preset in the diagnostic device, and the diagnostic protocol library contains signal items supported by different ECUs to read and request messages for each signal item.

[0066] 202. The diagnostic device sends a request message corresponding to each target signal item to the target ECU in sequence.

[0067] After completing the determination of the request message corresponding to each target signal item, the diagnostic device needs to send the request message corresponding to each target signal item to the target ECU in sequence, that is, if there are A target signal items, there are A corresponding request messages. Specifically, the order in which the diagnostic device sends the request messages corresponding to each target signal item can be the order in which the user selects each target signal item from the signal items supported by the target ECU to read, or it can be any sending order selected by the diagnostic device for each target signal item, which is not limited here.

[0068] 203. The target ECU queries and saves signal data of a target signal item corresponding to each request message for multiple request messages sent sequentially by the diagnostic device, wherein each request message corresponds to a target signal item that the target ECU supports reading.

[0069] The target ECU will receive multiple request messages sent sequentially by the diagnostic device in step 202. Each time a request message is received, the target ECU will query the signal data of the target signal item corresponding to the request message and store the signal data sequentially in the temporary storage of the target ECU. Among them, the temporary storage does not specifically refer to a certain storage space of the target ECU. The temporary storage only means that the signal data of the target signal item corresponding to each request message is temporarily stored in the storage space of the target ECU.

[0070] 204. If the target ECU finds the signal data of the target signal item corresponding to the last request message, it sends a reply message including the signal data of each target signal item to the diagnostic device.

[0071] If the target ECU receives the last request message (i.e., the last request message sent among multiple request messages sent in sequence by the diagnostic device), it is necessary to query the signal data of the target signal item corresponding to the last request message. If the target ECU queries the signal data of the target signal item corresponding to the last request message, it sends a reply message to the diagnostic device, and the reply message includes the signal data of each target signal item. Among them, the signal data of the target signal items other than the signal data of the target signal item corresponding to the last request message can be obtained from the temporary storage of the target ECU.

[0072] In the embodiment of the present application, when the diagnostic device sends a request message for each target signal item selected by the user from the signal items supported by the target ECU to read, the target ECU sends a reply message to the diagnostic device that sent the request message only after receiving the last request message, and the reply message includes the signal data of each target signal item. Unlike the prior art, in which the target ECU needs to reply a reply message for each target signal item, if N request messages are sent to the target ECU, the bus of the vehicle in the prior art needs to send N request messages and N reply messages, while in the present application, the vehicle bus only needs to send N request messages and 1 reply message, which significantly reduces the load of the vehicle bus. At the same time, the target ECU only needs to package the reply messages in sequence, and the diagnostic device only needs to parse the reply message once, which reduces the time for message packaging and parsing, and improves the efficiency of monitoring the target signal items.

[0073] Furthermore, in the aforementioned step 204, the target ECU needs to send a reply message after querying the request message of the target signal item corresponding to the last request message, so the target ECU needs to determine which request message is the last request message among the multiple request messages sent by the diagnostic device. Specifically, a byte can be pre-defined in each request message as a target request flag. If the target request flag is set to the first flag, it indicates that there are still request messages after the request message, that is, the request message is not the last request message among the multiple request messages sent by the diagnostic device; if the target request flag is set to the second flag, the request message is the last request message.

[0074] In some specific embodiments, because each byte corresponds to 8 bits, the sixth position 1 of the byte corresponding to the target request flag can be defined as the first identification of the target request flag, and the sixth position 0 of the byte corresponding to the target request flag can be defined as the second identification of the target request flag. It can be known that any position 1 or 0 in the byte corresponding to the target request flag can also be defined as the first identification or the second identification of the target request flag, and this embodiment does not limit the first identification or the second identification of the target request flag. In addition, the byte corresponding to the target request flag can be any byte in the request message that is used to identify the number of bytes in the request message or the last byte of the request message, etc., which does not affect the information representation of the request message, and is not limited here. After setting the target request flag, for each received request message, the target ECU can judge whether there is a subsequent request message based on the byte corresponding to the target request flag pre-defined in the request message, so as to determine that the request message with the target request flag as the second identification is the last request message.

[0075] In this embodiment, by setting the target request flag, the target ECU will package and send the signal values ​​of the target signal items corresponding to multiple request messages sent by the diagnostic device to the diagnostic device only after receiving the request message with the target request flag as the second identifier (i.e., the last request message), thereby reducing the bus load.

[0076] In some embodiments, before the aforementioned step 201, the following steps are also included: obtaining vehicle information of the target vehicle; displaying a preset ECU configuration list corresponding to the vehicle information of the target vehicle; in response to the user selecting a target ECU from the preset ECU configuration list, displaying signal items supported by the target ECU for reading.

[0077] Specifically, because different models or series of vehicles are equipped with different ECUs, and different ECUs support different signal items for reading, it is necessary to obtain the vehicle information of the vehicle to be detected (i.e., the target vehicle) before step 201. The vehicle information can be selected by the user according to the actual situation of the target vehicle, or for vehicles that support VIN code parsing, the diagnostic device can send a VIN code request message to the target vehicle to obtain the VIN code of the target vehicle and parse the vehicle information of the target vehicle according to the VIN code of the target vehicle. In addition, the vehicle information can include the series and model of the vehicle.

[0078] Furthermore, the preset diagnostic protocol library in step 201 may also include preset ECU configuration lists corresponding to different vehicle information, and signal items supported by different ECUs in each preset ECU configuration list. After obtaining the vehicle information of the target vehicle, the diagnostic device may determine the preset ECU configuration list of the target vehicle according to the preset diagnostic protocol library and display the preset ECU configuration list of the target vehicle to the user. Any ECU selected by the user from the preset ECU configuration list to read the signal is determined as the target ECU, and multiple signal items supported by the target ECU to read are determined according to the preset diagnostic protocol library and displayed to the user, so that the user can select at least two target signal items therefrom.

[0079] Furthermore, after receiving a reply message including the signal data of each target signal item, the diagnostic device can also parse the signal data in the reply message to obtain the corresponding signal value, and display the signal value of each target signal item to the user.

[0080] In one specific implementation, the display of the signal value can be specifically achieved in the following manner: based on the sending order of the request message corresponding to each target signal item, the signal data of each target signal item is parsed from the reply message in turn; according to the signal data of each target signal item and the preset calculation algorithm corresponding to each target signal item, the signal value of each target signal item is calculated; based on the signal value of each target signal item and the corresponding preset unit, the signal value of each target signal item is displayed.

[0081] Specifically, because the target ECU generates a reply message according to the order in which the diagnostic device sends the request messages, after receiving the reply message, the diagnostic device can parse the signal data of each target signal item in step 201 from the reply message in turn based on the order in which the diagnostic device sends the request messages (that is, the order in which the request messages corresponding to each target signal item are sent).

[0082] Furthermore, the preset diagnostic protocol library in step 201 may also include a preset calculation algorithm and a preset unit for each signal item. The diagnostic device may calculate the signal value of each target signal item according to the preset calculation algorithm of each target signal item and the signal data of each target signal item, and display the signal value of each target signal item to the user based on the signal value of each target signal item and the preset unit corresponding to each target signal item.

[0083] The foregoing describes various embodiments and specific implementation methods of the data processing method of the embodiment of the present application. The following describes the data processing method of the embodiment of the present application in an actual application scenario.

[0084] When the user needs to read the signal value of a certain signal item of the vehicle and analyze it according to the signal value, the user first needs to select the series and model (i.e. vehicle information) of the vehicle to be diagnosed (i.e. the target vehicle) on the diagnostic device. For example, the Mercedes-Benz series, E320 model. For models that support VIN code parsing, the diagnostic device can send a VIN code request message to the vehicle, and the vehicle returns the vehicle's VIN code through a reply message. The diagnostic device can parse the vehicle's model and series based on the 17-byte VIN code.

[0085] Secondly, the diagnostic device searches the preset ECU configuration list (i.e., the ECU list configured for the target vehicle) corresponding to the vehicle information in the preset diagnostic protocol library through the vehicle information such as the vehicle series and model. The preset ECU configuration list may include but is not limited to the engine ECU, gearbox ECU (i.e., transmission ECU), instrument ECU, air conditioning ECU, and / or seat ECU, etc. Among them, the preset diagnostic protocol library is the diagnostic protocol stored in the diagnostic device that contains all ECUs corresponding to all vehicle series and models.

[0086] The user selects the ECU to read the signal (i.e. the target ECU), and the diagnostic device will display all signal items supported by the target ECU (all signal items supported by the target ECU can be determined from the diagnostic protocol library). For example, if the target ECU is an engine ECU, the diagnostic device will display all signal items of the engine ECU. All signal items of the transmitter ECU include but are not limited to: coolant temperature, oil temperature, engine speed and / or intake air temperature, etc.

[0087] Next, the user selects at least two signal items to be read (i.e., selects the target signal items), and confirms the reading after the selection is completed. Then, the diagnostic device will respond to the at least two target signals selected by the user and send a request message to the target ECU. If the user selects three signal items, namely, coolant temperature, oil temperature, and intake air temperature, as target signal items, the diagnostic device will find the diagnostic protocol for each target signal item in the diagnostic protocol library, and each diagnostic protocol contains a request message, a preset calculation algorithm, and a preset unit. For example, in the diagnostic protocol for coolant temperature, the request message is 0x03220108. Among them, the preset calculation algorithm is Y=X-40 (where X is the signal data of the coolant temperature, i.e., the signal data of the coolant temperature returned by the target ECU), and the preset unit ℃. Among them, 0x03 identifies the number of bytes in the following message, 0x22 indicates that the signal is to be read (the user determines each target signal item in the target signal item once (i.e., the target signal items of the same batch), and the value of the byte is the same), and 0x0108 indicates that the target signal item to be read is the coolant temperature.

[0088] Then, according to the order of the target signal items selected by the user, the corresponding request messages are sent to the target ECU in sequence (the order of the target signal items selected by the user is determined as the order of sending the corresponding request messages). For example, the user selects the order of coolant temperature, oil temperature and intake temperature, and the diagnostic device needs to send the request message corresponding to the coolant temperature, the request message corresponding to the oil temperature and the request message corresponding to the intake temperature in sequence. Among them, the target request flag in the request message corresponding to the intake temperature is set to the second flag, and the target request flag in the request message corresponding to the coolant temperature and the request message corresponding to the oil temperature is set to the first flag. For example, if the 6th bit of the byte of the number of bytes in the message after the flag is defined as the target request flag, and the 6th bit of the byte of the number of bytes in the message after the flag is 1, it means that there are subsequent request messages for other target signal items, and the 6th bit of the byte of the number of bytes in the message after the flag is 0, it means that there are no subsequent request messages for other target signal items.

[0089] At the same time, the target request flags in the request messages of at least two target signal items to be sent, except for the last request message, are set to the first flag. For example, the request message corresponding to the coolant temperature is 0x03220108, and the target request flag is set to 1, that is, the BIT6 of the first byte is set to 1 (that is, the 6th bit of the byte that identifies the number of bytes in the subsequent message is defined as the target request flag), then the request message corresponding to the coolant temperature is 0x43220108, and then it is sent to the target ECU in the order of sending. After receiving it, the target ECU will query and save the signal data of the coolant temperature, but will not send a reply message to the diagnostic device.

[0090] In addition, the target request flag in the last request message of the request messages of at least two target signal items to be sent is set to the second flag, indicating that the request message is the last request message, and the target ECU will package the signal data of all previous request messages in the corresponding sending order, and send the reply message to the diagnostic device after the framing is completed. For example, the reply message sent by the target ECU to the diagnostic device is 0x086201640155020106. Among them, 0x08 means that the following message reply bytes are 8, 0x62 means that the reply message is the reply message corresponding to the request message 0x22 (the premise is that the byte of the reply message is defined as the request byte of the corresponding request message, that is, 0x22 plus 0x40), 0x0164 is the signal data of the first target signal item, 01 means that the signal data is 1 byte, and the signal data is the following 0x64, 0x0155 is the signal data of the second target signal item, 01 means that the signal data is 1 byte, and the signal data is the following 0x55, 0x020106 is the signal data of the third target signal item, 02 means that the signal data is two bytes, and the signal data is the following 0x0106.

[0091] After the diagnostic device receives the reply message sent by the target ECU, it parses the signal data of each target signal item in turn according to the sending order of multiple request messages corresponding to the reply message, then searches the diagnostic protocol library for the calculation algorithm of each target signal item, calculates the signal value of each target signal item, and finally searches the diagnostic protocol library for the preset unit of each target signal item, and displays the signal value of each target signal item and the corresponding preset unit to the user.

[0092] See also Figure 3 , an embodiment of the present application provides a diagnostic device, comprising:

[0093] A determination unit 301, configured to respond to an operation of a user selecting at least two target signal items from signal items supported for reading by a target ECU, and to determine a request message corresponding to each target signal item;

[0094] The sending unit 302 is used to send the request message corresponding to each target signal item to the target ECU in sequence, so that the target ECU sends a reply message to the diagnostic device after receiving the last request message, and the reply message includes the signal data of each target signal item.

[0095] In a specific implementation, each request message includes a subsequent request flag;

[0096] The sending unit 302 is also used to set the target request flag in each request message except the last request message as the first flag, and set the subsequent request flag in the last request message as the second flag, so that the target ECU determines the last request message according to the target request flag in the request message.

[0097] In a specific implementation, the diagnostic device further includes: an acquisition unit and a display unit;

[0098] An acquisition unit, used for acquiring vehicle information of a target vehicle;

[0099] A display unit, used to display a preset ECU configuration list corresponding to vehicle information of a target vehicle;

[0100] The display unit is also used to respond to the user's operation of selecting a target ECU from a preset ECU configuration list, and to display signal items that the target ECU supports reading.

[0101] In a specific implementation, the diagnostic device further includes: an analysis unit and a calculation unit;

[0102] A parsing unit, configured to parse the signal data of each target signal item from the reply message in sequence based on the sending order of the request message corresponding to each target signal item;

[0103] a calculation unit, configured to calculate a signal value of each target signal item according to signal data of each target signal item and a preset calculation algorithm corresponding to each target signal item;

[0104] The display unit is further used to display the signal value of each target signal item based on the signal value of each target signal item and the corresponding preset unit.

[0105] See also Figure 4 , an embodiment of the present application provides an ECU, comprising:

[0106] A query unit 401 is used to query and save signal data of a target signal item corresponding to each request message for multiple request messages sent sequentially by the diagnostic device, wherein each request message corresponds to a target signal item supported by the target ECU for reading;

[0107] The sending unit 402 is used to send a reply message including the signal data of each target signal item to the diagnostic device if the signal data of the target signal item corresponding to the last request message is queried, so that the diagnostic device displays the signal data of each target signal item.

[0108] In a specific implementation, the request message includes a target request flag;

[0109] The ECU further includes: a judgment unit and a determination unit;

[0110] A judging unit, used for judging whether a target request flag of a currently received target request message is a second flag, the target request message being any one of a plurality of request messages sequentially sent by the diagnostic device;

[0111] The determining unit is configured to determine that the target request message is the last request message if the target request flag of the target request message is the second flag.

[0112] Figure 5 It is a schematic diagram of the structure of a data processing device provided in an embodiment of the present application. The data processing device 500 may include one or more central processing units (CPU) 501 and a memory 505. The memory 505 stores one or more application programs or data.

[0113] The memory 505 may be a volatile storage or a persistent storage. The program stored in the memory 505 may include one or more modules, each of which may include a series of instruction operations in the data processing device. Furthermore, the central processing unit 501 may be configured to communicate with the memory 505 and execute a series of instruction operations in the memory 505 on the data processing device 500.

[0114] The data processing device 500 may also include one or more power supplies 502, one or more wired or wireless network interfaces 503, one or more input and output interfaces 504, and / or one or more operating systems, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.

[0115] The CPU 501 can execute the aforementioned Figures 1 to 4 The operations performed by the data processing device (ie, the diagnostic device or the target ECU) in the illustrated embodiment will not be described in detail herein.

[0116] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0117] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0118] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0119] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0120] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk and other media that can store program code.

[0121] An embodiment of the present application also provides a computer program product including instructions, and when the computer program product is run on a computer, the computer executes the data processing method as described above.

Claims

1. A data processing method, characterized in that: Applied to diagnostic equipment, the method comprises: In response to an operation of a user selecting at least two target signal items from signal items supported for reading by the target ECU, determining a request message corresponding to each target signal item, wherein any two of the target signal items are different; Send the request message corresponding to each target signal item to the target ECU in sequence, so that the target ECU sends a reply message to the diagnostic device after receiving the last request message, the reply message includes the signal data of each target signal item, the reply message does not include the signal data of signal items other than the target signal item, and the order of the signal data in the reply message is consistent with the sending order of the request messages corresponding to the corresponding target signal items.

2. The method according to claim 1, characterized in that Each of the request messages contains a target request flag; Before sending the request message corresponding to each target signal item to the target ECU in sequence, the method further includes: The target request flag in each request message except the last request message is set to the first flag, and the subsequent request flag in the last request message is set to the second flag, so that the target ECU determines the last request message according to the target request flag in the request message.

3. The method according to claim 1, characterized in that Before the operation of responding to the user selecting at least two target signal items from the signal items supported by the target ECU for reading and determining the request message corresponding to each target signal item, the method further includes: Obtain vehicle information of the target vehicle; Displaying a preset ECU configuration list corresponding to the vehicle information of the target vehicle; In response to a user selecting the target ECU from the preset ECU configuration list, signal items supported for reading by the target ECU are displayed.

4. The method according to claim 1, characterized in that: The method further comprises: Based on the sending order of the request messages corresponding to each target signal item, sequentially parsing the signal data of each target signal item from the reply message; Calculating the signal value of each target signal item according to the signal data of each target signal item and a preset calculation algorithm corresponding to each target signal item; Based on the signal value of each target signal item and the corresponding preset unit, the signal value of each target signal item is displayed.

5. A data processing method, characterized in that: Applied to a target ECU, the method comprises: For multiple request messages sent sequentially by the diagnostic device, query and save signal data of a target signal item corresponding to each request message, wherein each request message corresponds to a target signal item supported by the target ECU for reading, and any two of the target signal items are different; If the signal data of the target signal item corresponding to the last request message is queried, a reply message including the signal data of each target signal item is sent to the diagnostic device, and the reply message does not include the signal data of signal items other than the target signal items. The order of the signal data in the reply message is consistent with the sending order of the request messages corresponding to the corresponding target signal items.

6. The method according to claim 5, characterized in that The request message includes a target request flag; The method further comprises: Determine whether the target request flag of the currently received target request message is the second flag, wherein the target request message is any one of the multiple request messages sequentially sent by the diagnostic device; If the target request flag of the target request message is the second flag, it is determined that the target request message is the last request message.

7. A diagnostic device, characterized in that include: A determination unit, configured to respond to an operation of a user selecting at least two target signal items from signal items supported for reading by the target ECU, and to determine a request message corresponding to each target signal item, wherein any two of the target signal items are different; A sending unit is used to send the request message corresponding to each target signal item to the target ECU in sequence, so that the target ECU sends a reply message to the diagnostic device after receiving the last request message, the reply message includes the signal data of each target signal item, the reply message does not include the signal data of signal items other than the target signal item, and the order of the signal data in the reply message is consistent with the sending order of the request messages corresponding to the corresponding target signal items.

8. An ECU, characterized in that: include: A query unit, for querying and saving signal data of a target signal item corresponding to each request message for a plurality of request messages sequentially sent by the diagnostic device, wherein each request message corresponds to a target signal item supported for reading by the target ECU, and any two of the target signal items are different; A sending unit is used to send a reply message including the signal data of each target signal item to the diagnostic device if the signal data of the target signal item corresponding to the last request message is queried, so that the diagnostic device displays the signal data of each target signal item, and the reply message does not include the signal data of signal items other than the target signal items. The order of the signal data in the reply message is consistent with the sending order of the request messages corresponding to the corresponding target signal items.

9. A data processing device, characterized in that: include: CPU, memory and input / output interface; The memory is a short-term storage memory or a persistent storage memory; The central processing unit is configured to communicate with the memory and execute instructions in the memory to perform the method according to any one of claims 1 to 4 or 5 to 6.

10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 1 to 4 or 5 to 6.

Citation Information

Patent Citations

  • Vehicle data gathering apparatus, and vehicle data gathering method

    CN104114993A

  • Data processing method and device, equipment and readable storage medium

    CN110719231A

  • Fault processing method and device of ADAS system, equipment and storage medium

    CN112286818A

  • Method for channel estimation in power line network, device and system

    CN113497640A

  • Method for acquiring vehicle signal value, electronic equipment and electronic control unit

    CN113608483A