CN115134186A - Data processing method and related equipment - Google Patents

Data processing method and related equipment Download PDF

Info

Publication number
CN115134186A
CN115134186A CN202210752854.XA CN202210752854A CN115134186A CN 115134186 A CN115134186 A CN 115134186A CN 202210752854 A CN202210752854 A CN 202210752854A CN 115134186 A CN115134186 A CN 115134186A
Authority
CN
China
Prior art keywords
target
request message
signal
ecu
item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210752854.XA
Other languages
Chinese (zh)
Inventor
刘新
庄文龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN202210752854.XA priority Critical patent/CN115134186A/en
Publication of CN115134186A publication Critical patent/CN115134186A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C5/00Registering or indicating the working of vehicles
    • G07C5/08Registering or indicating performance data other than driving, working, idle, or waiting time, with or without registering driving, working, idle or waiting time
    • G07C5/0808Diagnosing performance data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40267Bus for use in transportation systems
    • H04L2012/40273Bus for use in transportation systems the transportation system being a vehicle

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the application discloses a data processing method and related equipment, which are used for reducing the load of a vehicle bus. The method in the embodiment of the application comprises the following steps: responding to the operation that a user selects at least two target signal items from the signal items supported and read by the target ECU, and determining a request message corresponding to each target signal item; and sequentially sending a request message corresponding to each target signal item to the target ECU, so that the target ECU sends a reply message to the diagnostic equipment after receiving the last request message, wherein the reply message comprises the signal data of each target signal item.

Description

Data processing method and related equipment
Technical Field
The embodiment of the application relates to the field of vehicle diagnosis, in particular to a data processing method and related equipment.
Background
An Electronic Control Unit (ECU), also called a "vehicle computer" of the automobile, is used to control the driving state of the automobile and to realize various functions thereof. The ECU mainly utilizes data acquisition and exchange of various sensors and a bus to judge the state of the vehicle and the intention of a driver and control the automobile through an actuator. A vehicle of today is typically equipped with a plurality of ECUs such as an engine ECU, a transmission ECU, an air conditioner ECU, and the like.
When a user needs to obtain signal data of a plurality of signal items of a certain ECU of a vehicle through a diagnosis device, the user needs to select a plurality of target signal items from the signal items supported and read by the ECU, then the diagnosis device sends a request message to the corresponding ECU according to the plurality of target signal items selected by the user, the diagnosis device sends a request message for each target signal item, and the corresponding ECU needs to reply a reply message.
The transmission and reception of the request message and the reply message between the diagnostic apparatus and the corresponding ECU are required through the vehicle bus. When signal data of a plurality of target signal items need to be acquired, a vehicle bus needs to transmit and receive a large number of request messages and reply messages, the acquisition efficiency of the signal data is low, and the load of the vehicle bus is high.
Disclosure of Invention
The embodiment of the application provides a data processing method and related equipment, which are used for reducing vehicle bus load.
A first aspect of an embodiment of the present application provides a data processing method applied to a diagnostic device, including:
responding to the operation that a user selects at least two target signal items from the signal items supported and read by the target ECU, and determining a request message corresponding to each target signal item;
and sequentially sending a request message corresponding to each target signal item to the target ECU, so that the target ECU sends a reply message to the diagnostic equipment after receiving the last request message, wherein the reply message comprises the signal data of each target signal item.
In a specific implementation manner, each request message includes a target request flag;
before the sending the request message corresponding to each target signal item to the target ECU in sequence, the method further includes:
and setting a target request mark in other request messages except the last request message in each request message as a first mark, and setting a subsequent request mark in the last request message as a second mark, so that the target ECU determines the last request message according to the target request mark in the request message.
In a specific implementation manner, before the responding user selects at least two target signal items from the signal items supported and read by the target ECU and determines the request message corresponding to each target signal item, the method further includes:
acquiring vehicle information of a target vehicle;
displaying a preset ECU configuration list corresponding to the vehicle information of the target vehicle;
and responding to the operation that a user selects the target ECU from the preset ECU configuration list, and displaying the signal items which are supported to be read by the target ECU.
In a specific implementation, the method further includes:
analyzing the signal data of each target signal item from the reply message in sequence based on the sending sequence of the request message corresponding to each target signal item;
calculating a 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;
and displaying the signal value of each target signal item based on the signal value of each target signal item and the corresponding preset unit.
A second aspect of the embodiments of the present application provides a data processing method, applied to a target ECU, including:
inquiring and storing signal data of a target signal item corresponding to each request message aiming at a plurality of request messages sequentially sent by the diagnostic equipment, wherein each request message corresponds to one target signal item which is supported and read by a target ECU (electronic control Unit);
and if the signal data of the target signal item corresponding to the last request message is inquired, sending a reply message comprising the signal data of each target signal item to the diagnostic equipment.
In a specific implementation manner, the request message includes a target request flag;
the method further comprises the following steps:
judging whether a target request mark of a currently received target request message is a second mark, wherein the target request message is any one of a plurality of request messages sequentially sent by the diagnostic equipment;
and if the target request mark of the target request message is a second mark, determining that the target request message is the last request message.
A third aspect of embodiments of the present application provides a diagnostic apparatus, including:
the determining unit is used for responding the operation that a user selects at least two target signal items from the signal items supported and read by the target ECU, and determining a request message corresponding to each target signal item;
a sending unit, configured to send a 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, where the reply message includes signal data of each target signal item.
In a specific implementation manner, each request message includes a subsequent request flag;
the sending unit is further configured to set a target request flag in other request messages except the last request message in each request message as a first flag, and set a subsequent request flag in the last request message as a second flag, so that the target ECU determines the last request message according to the target request flag in the request message.
In one specific implementation, the diagnostic apparatus further comprises: an acquisition unit and a display unit;
the acquisition unit is used for acquiring vehicle information of a target vehicle;
the display unit is used for displaying a preset ECU configuration list corresponding to the vehicle information of the target vehicle;
the display unit is further used for displaying the signal items supported to be read by the target ECU in response to the operation that the target ECU is selected from the preset ECU configuration list by a user.
In one specific implementation, the diagnostic apparatus further comprises: an analysis unit and a calculation unit;
the analysis unit is configured to sequentially analyze the signal data of each target signal item from the reply message based on the sending order of the request message corresponding to each target signal item;
the calculating unit is used for calculating a signal value of each target signal item according to the signal data of each target signal item and a preset calculating algorithm corresponding to each target signal item;
the display unit is further configured to display the signal value of each target signal item based on the signal value of each target signal item and a corresponding preset unit.
A fourth aspect of the embodiments of the present application provides an ECU including:
the query unit is used for querying and storing signal data of a target signal item corresponding to each request message aiming at a plurality of request messages sequentially sent by the diagnostic equipment, wherein each request message corresponds to one target signal item which is supported to be read by the target ECU;
a sending unit, configured 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.
In a specific implementation manner, the request message includes a target request flag;
the ECU further includes: a judging unit and a determining unit;
the judging unit is configured to judge whether a target request flag of a currently received target request packet is a second flag, where the target request packet is any one of multiple request packets sent by the diagnostic device in sequence;
and the determining unit is configured to determine that the target request packet is the last request packet if the target request flag of the target request packet is the second identifier.
A fifth aspect of the embodiments of the present application provides a data processing apparatus, including:
the system comprises a central processing unit, a memory and an input/output interface;
the memory is a transient memory or a persistent memory;
the central processor is configured to communicate with the memory and execute the instructions in the memory to perform the method of the first or second aspect.
A sixth aspect of embodiments of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method according to the first or second aspect.
A seventh aspect of embodiments of the present application provides a computer storage medium having instructions stored therein, which when executed on a computer, cause the computer to perform the method according to the first or second aspect.
According to the technical scheme, the embodiment of the application has the following advantages: when the diagnostic equipment sends a request message of each target signal item selected by a user from the signal items supported and read by the target ECU to the target ECU, the target ECU sends a reply message to the diagnostic equipment sending the request message only after receiving the last request message, the reply message comprises the signal data of each target signal item, and the diagnostic equipment receiving the reply message can display the signal data of each target signal item to the user according to the reply message. Compared with the prior art, the target ECU needs to reply one 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 the N request messages and the N reply messages, and the vehicle bus in the application only needs to send the N request messages and 1 reply message, so that the load of the vehicle bus is obviously reduced. Meanwhile, the target ECU only needs to package the reply messages in sequence, and the diagnostic equipment only needs to analyze the reply messages once, so that the message packaging and analyzing time is reduced, and the target signal item monitoring efficiency is improved.
Drawings
FIG. 1 is a system architecture diagram of a data processing system as disclosed in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data processing method disclosed in an embodiment of the present application;
FIG. 3 is a schematic structural diagram of a diagnostic apparatus disclosed in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an ECU disclosed in the embodiment of the present application;
fig. 5 is a schematic structural diagram of a data processing device disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a data processing method and related equipment, which are used for reducing vehicle bus load.
Referring to fig. 1, in order to better implement the data processing method of the present application, an 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, with the ECU101 communicatively coupled to the diagnostic device 102. The diagnostic device 102 is configured to determine a request message corresponding to each target signal item in response to an operation of selecting a plurality of target signal items from the signal items supported and read by the ECU101 by a user, and sequentially send the request message corresponding to each target signal item to the ECU 101. The ECU101 inquires and stores the signal data of the target signal item corresponding to each request message for the request message of each target signal item, and sends a reply message including the signal data of each target signal item to the diagnostic device 102. The diagnostic device 102 may present the signal data for each of the target signal items in the reply message. The communication connection is not limited to a connection manner, and may be directly or indirectly connected through a wired communication manner, or may be directly or indirectly connected through a wireless communication manner, and the like, and may be determined according to an actual application scenario, and the present application is not limited herein.
It should be understood that the illustrated architecture of the embodiments of the present application does not constitute a specific limitation on data processing systems. In other embodiments of the present application, the data processing system may be any diagnostic device and/or ECU capable of implementing the data processing method described above and below in the present embodiment, and may include more diagnostic devices and/or ECUs than those shown in the drawings.
Referring to fig. 2, a flow chart of a data processing method according to an embodiment of the present application is schematically illustrated based on the data processing system. The data processing method may be executed by the aforementioned diagnostic apparatus and/or ECU, and includes the following steps 201 to 205:
201. the diagnostic equipment responds to the operation that a user selects at least two target signal items from the signal items supported and read by the target ECU, and determines a request message corresponding to each target signal item.
When a user needs to diagnose the vehicle, the diagnostic equipment can be used for acquiring signal data of different signal items of different ECUs from the target vehicle, and diagnosing and evaluating the vehicle according to the signal data of the signal items. Therefore, if the user selects at least two target signal items from the plurality of signal items supported and read by the target ECU (the target signal items are the signal items selected by the user from the plurality of signal items supported and read by the target ECU), the diagnostic device first needs to determine a request message corresponding to each target signal item. Specifically, before executing the data processing method according to the embodiment of the present application, a diagnostic protocol library is preset in the diagnostic device, where the diagnostic protocol library includes signal items that different ECUs support reading and request messages of each signal item.
202. And the diagnostic equipment sequentially sends a request message corresponding to each target signal item to the target ECU.
After the determination of the request message corresponding to each target signal item is completed, the diagnostic device further needs to sequentially send the request message corresponding to each target signal item to the target ECU, that is, there are a target signal items and there are a corresponding request messages. Specifically, the order in which the diagnostic device sends the request message corresponding to each target signal item may be the order in which the user selects each target signal item from the signal items that the target ECU supports reading, or may be any sending order that the diagnostic device selects for each target signal item, which is not limited herein.
203. And the target ECU inquires and stores the signal data of the target signal item corresponding to each request message aiming at a plurality of request messages sequentially sent by the diagnostic equipment, wherein each request message corresponds to one target signal item which is supported and read by the target ECU.
The target ECU receives a plurality of request messages sequentially sent by the diagnostic device in step 202, and when receiving one request message, the target ECU queries the signal data of the target signal item corresponding to the request message and sequentially stores the signal data in the temporary storage of the target ECU. The temporary storage is not a certain storage space of the target ECU, and the temporary storage is a storage space of the target ECU only for signal data of a target signal item corresponding to each request message.
204. And if the target ECU inquires the signal data of the target signal item corresponding to the last request message, sending a reply message comprising the signal data of each target signal item to the diagnostic equipment.
If the target ECU receives the last request message (i.e., the last request message among the multiple request messages sequentially sent by the diagnostic device), it needs to query the signal data of the target signal item corresponding to the last request message. And if the target ECU inquires the signal data of the target signal item corresponding to the last request message, sending a reply message to the diagnostic equipment, wherein the reply message comprises the signal data of each target signal item. The signal data of other target signal items except the signal data of the target signal item corresponding to the last request message in the signal data of the plurality of target signal items can be acquired from the temporary storage of the target ECU.
In the embodiment of the present application, when the diagnostic device sends, to the target ECU, a request message for each target signal item selected by the user from the signal items supported and read by the target ECU, the target ECU sends, to the diagnostic device that sent the request message, a reply message including signal data of each target signal item only after receiving the last request message. Compared with the prior art, the target ECU needs to reply one 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 the N request messages and the N reply messages, and the vehicle bus in the application only needs to send the N request messages and 1 reply message, so that the load of the vehicle bus is obviously reduced. Meanwhile, the target ECU only needs to package the reply messages in sequence, and the diagnostic equipment only needs to analyze the reply messages once, so that the message packaging and analyzing time is reduced, and the target signal item monitoring efficiency is improved.
Further, in 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 that the target ECU needs to determine which request message is the last request message in the multiple request messages sent by the diagnostic device. Specifically, a byte may be predefined in each request message as a target request flag, and if the target request flag is set as the first identifier, it indicates that there is still a request message behind the request message, that is, the request message is not the last request message in the multiple request messages sent by the diagnostic device; and if the target request mark is set as the second mark, the request message is the last request message.
In some embodiments, since each byte corresponds to 8 bits, the sixth position 1 of the byte corresponding to the target request flag may be defined as the target request flag being the first identifier, and the sixth position 0 of the byte corresponding to the target request flag may be defined as the target request flag being the second identifier. It can be known that any position 1 or 0 in the byte corresponding to the target request flag may also be defined as the first identifier or the second identifier of the target request flag, and this embodiment does not limit the first identifier or the second identifier of the target request flag. In addition, the byte corresponding to the target request flag may be any byte that does not affect the information representation of the request message, such as a byte used for identifying the number of bytes of the request message in the request message or the last byte of the request message, and is not limited herein. After the target request flag is set, for each received request message, the target ECU may determine whether a subsequent request message exists according to a byte corresponding to a predefined target request flag in the request message, so as to determine that the request message whose target request flag is the second identifier is the last request message.
In this embodiment, by setting the target request flag, the target ECU only packages and sends the signal values of the target signal items corresponding to the plurality of request messages sent by the diagnostic device to the diagnostic device after receiving the request message (i.e., the last request message) whose target request flag is the second identifier, thereby reducing the bus load.
In some embodiments, before the step 201, the following steps are further included: acquiring vehicle information of a target vehicle; displaying a preset ECU configuration list corresponding to the vehicle information of the target vehicle; and responding to the operation that a user selects the target ECU from the preset ECU configuration list, and displaying the signal items which are supported to be read by the target ECU.
Specifically, since the ECUs of different vehicle types or vehicle series are configured differently, and the signal items read by different ECUs are different, the vehicle information of the vehicle to be detected (i.e., the target vehicle) needs to be acquired before step 201. The vehicle information may be selected by a user according to an actual situation of the target vehicle, or for a vehicle supporting VIN code analysis, the diagnostic device may send a VIN code request message to the target vehicle to obtain a VIN code of the target vehicle and analyze the vehicle information of the target vehicle according to the VIN code of the target vehicle. In addition, the vehicle information may include the train and the model of the vehicle.
Further, the diagnostic protocol library preset in step 201 may further include preset ECU configuration lists corresponding to different pieces of vehicle information, and different ECUs in each preset ECU configuration list support the read signal item. After the vehicle information of the target vehicle is acquired, the diagnostic device may determine a preset ECU configuration list of the target vehicle according to a preset diagnostic protocol library and display the preset ECU configuration list of the target vehicle to a user. Determining any ECU to be read, which is selected by a user from a preset ECU configuration list, as a target ECU, determining a plurality of signal items supported and read by the target ECU according to a preset diagnosis protocol library, and displaying the plurality of signal items supported and read by the target ECU to the user, so that the user selects at least two target signal items from the plurality of signal items.
Further, after the diagnostic device receives the reply message including the signal data of each target signal item, the diagnostic device may further analyze the signal data in the reply message to obtain a corresponding signal value, and present the signal value of each target signal item to the user.
In a write embodiment, the representation of the signal value may be implemented by: analyzing the signal data of each target signal item from the reply message in sequence based on the sending sequence of the request message corresponding to each target signal item; calculating a 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; and displaying the signal value of each target signal item based on the signal value of each target signal item and the corresponding preset unit.
Specifically, because the target ECU generates the reply messages according to the sequence in which the diagnostic device sends the request messages, the diagnostic device can sequentially parse the signal data of each target signal item in step 201 from the reply messages after receiving the reply messages based on the sequence in which the diagnostic device sends the request messages (i.e., the sending sequence of the request messages corresponding to each target signal item).
Further, the diagnostic protocol library preset in step 201 may further include a preset calculation algorithm and a preset unit for each signal item. The diagnosis device may calculate a signal value of each target signal item according to a preset calculation algorithm of each target signal item and the signal data of each target signal item, and present the signal value of each target signal item to a user based on the signal value of each target signal item and a preset unit corresponding to each target signal item.
The foregoing describes various embodiments and specific implementations of the data processing method according to the embodiment of the present application, and the following describes the data processing method according to the embodiment of the present application in an actual application scenario.
When a user needs to read a signal value of a certain signal item of a vehicle and perform analysis based on the signal value, the user first needs to select a vehicle series and a vehicle type (i.e., vehicle information) of the vehicle to be diagnosed (i.e., a target vehicle) on a diagnosis device. Such as the series of the galloping vehicle, E320 model. For the vehicle type supporting VIN code analysis, VIN code request messages can be sent to the vehicle through the diagnostic equipment, the vehicle returns the VIN codes of the vehicle through reply messages, and the diagnostic equipment can analyze the vehicle type and the vehicle series of the vehicle according to the VIN codes of 17 bytes.
Secondly, the diagnosis device searches a preset ECU configuration list (namely the ECU list configured by the target vehicle) corresponding to the vehicle information in a preset diagnosis protocol library through the vehicle information such as the vehicle series, the vehicle type and the like. The predetermined ECU configuration list may include, but is not limited to, an engine ECU, a wave box ECU (i.e., a transmission ECU), a meter ECU, an air conditioner ECU, and/or a seat ECU, etc. The preset diagnosis protocol library is a diagnosis protocol which is stored in the diagnosis equipment and contains all ECUs corresponding to all vehicle types.
The user selects the ECU from which the signal is to be read (i.e., the target ECU), and the diagnosing apparatus displays all the signal items that are supported by the target ECU for reading (all the signal items that are supported by the target ECU can be determined from the diagnostic protocol library). For example, if the target ECU is the engine ECU, the diagnostic apparatus presents all the signal items of the engine ECU. Wherein 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.
Then, the user selects at least two signal items to be read (i.e., selects a target signal item), and after the selection is completed, the user confirms the reading, and then the diagnostic device sends a request message to the target ECU in response to the at least two target signals selected by the user. If the user selects the three signal items of the coolant temperature, the engine oil temperature and the intake air temperature as target signal items, the diagnostic equipment can find out the diagnostic protocol of each target signal item in a diagnostic protocol library, wherein each diagnostic protocol comprises a request message, a preset calculation algorithm and a preset unit. For example, in the diagnostic protocol of the coolant temperature, the request message is 0x 03220108. Where 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 ℃. Where 0x03 indicates 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 items once (i.e., the target signal items of the same batch), and the number of bytes is the same), and 0x0108 indicates that the target signal item to be read is the temperature of the coolant.
Then, according to the sequence of the target signal items selected by the user, corresponding request messages are sequentially sent to the target ECU (the sequence of the target signal items selected by the user is determined as the sending sequence of the corresponding request messages). For example, the user selects the coolant temperature, the engine oil temperature, and the intake air temperature in this order, and the diagnostic device needs to sequentially send a request message corresponding to the coolant temperature, a request message corresponding to the engine oil temperature, and a request message corresponding to the intake air temperature. And setting the target request mark in the request message corresponding to the intake air temperature as a second mark, and setting the target request mark in the request message corresponding to the cooling liquid temperature and the request message corresponding to the engine oil temperature as a first mark. For example, if the 6 th bit of the byte identifying the number of bytes in the following message is defined as the target request flag, and the 6 th bit of the byte identifying the number of bytes in the following message is 1, it indicates that there is a subsequent request message for another target signal item, and the 6 th bit of the byte identifying the number of bytes in the following message is 0, it indicates that there is no subsequent request message for another target signal item.
Meanwhile, the target request marks in other request messages except the last request message in the request messages of at least two target signal items to be sent are set as first identifications. For example, if the request message corresponding to the coolant temperature is 0x03220108, and the target request flag is set to 1, that is, BIT6 of the first byte is set to 1 (that is, the 6 th BIT of the byte identifying the number of bytes in the following message is defined as the target request flag), then the request message corresponding to the coolant temperature is 0x43220108, and the request message is sent to the target ECU in the sending order, and the target ECU receives the request message and then queries and stores the signal data of the coolant temperature, but does not send a reply message to the diagnostic apparatus.
In addition, the target request mark in the last request message in the request messages of at least two target signal items to be transmitted is set as a second mark, which indicates that the request message is the last request message, the target ECU packs and frames the signal data of all the previous request messages according to the corresponding transmission sequence, and transmits the reply message to the diagnostic equipment after framing is completed. For example, the reply message sent by the target ECU to the diagnostic device is 0x 086201640155020106. Wherein 0x08 indicates that the number of the following message reply bytes is 8, 0x62 indicates that the reply message is a reply message corresponding to the request message 0x22 (provided that the byte of the reply message is defined as the request byte of the corresponding request message, i.e., 0x22 plus 0x40), 0x0164 indicates that the signal data of the first target signal item is 1 byte, 01 indicates that the signal data is the following 0x64, 0x0155 indicates that the signal data of the second target signal item is 1 byte, 01 indicates that the signal data is the following 0x55, 0x020106 is the signal data of the third target signal item, 02 indicates that the signal data is two bytes, and the signal data is the following 0x 0106.
After receiving a reply message sent by a target ECU, the diagnostic equipment sequentially analyzes the signal data of each target signal item according to the sending sequence of a plurality of request messages corresponding to the reply message, then searches a calculation algorithm of each target signal item in a diagnostic protocol library, calculates the signal value of each target signal item, finally searches a preset unit of each target signal item in the diagnostic protocol library, and displays the signal value of each target signal item and the corresponding preset unit to a user.
Referring to fig. 3, an embodiment of the present application provides a diagnostic apparatus, including:
a determining unit 301, configured to determine a request message corresponding to each target signal item in response to an operation that a user selects at least two target signal items from signal items supported and read by a target ECU;
a sending unit 302, configured to send a 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, where the reply message includes signal data of each target signal item.
In a specific implementation manner, each request message includes a subsequent request flag;
the sending unit 302 is further configured to set a target request flag in other request messages except the last request message in each request message as a first identifier, and set a subsequent request flag in the last request message as a second identifier, so that the target ECU determines the last request message according to the target request flag in the request message.
In one specific implementation, the diagnostic device further comprises: an acquisition unit and a display unit;
an acquisition unit configured to acquire vehicle information of a target vehicle;
the display unit is used for displaying a preset ECU configuration list corresponding to the vehicle information of the target vehicle;
and the display unit is also used for displaying the signal items which are supported to be read by the target ECU in response to the operation that the user selects the target ECU from the preset ECU configuration list.
In one specific implementation, the diagnostic device further comprises: an analysis unit and a calculation unit;
the analysis unit is used for sequentially analyzing the signal data of each target signal item from the reply message based on the sending sequence of the request message corresponding to each target signal item;
the calculating unit is used for calculating a signal value of each target signal item according to the signal data of each target signal item and a preset calculating algorithm corresponding to each target signal item;
and the display unit is also used for displaying the signal value of each target signal item based on the signal value of each target signal item and the corresponding preset unit.
Referring to fig. 4, an ECU according to an embodiment of the present application includes:
the query unit 401 is configured to query and store signal data of a target signal item corresponding to each request message for a plurality of request messages sequentially sent by the diagnostic device, where each request message corresponds to one target signal item that is supported to be read by the target ECU;
a sending unit 402, configured 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.
In a specific implementation manner, the request message includes a target request mark;
the ECU further includes: a judgment unit and a determination unit;
the judging unit is used for judging whether a target request mark of a currently received target request message is a second mark or not, and the target request message is any one of a plurality of request messages sequentially sent by the diagnosis equipment;
and the determining unit is used for determining that the target request message is the last request message if the target request mark of the target request message is the second identifier.
Fig. 5 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present disclosure, where the data processing apparatus 500 may include one or more Central Processing Units (CPUs) 501 and a memory 505, and the memory 505 stores one or more application programs or data therein.
Memory 505 may be volatile storage or persistent storage, among others. The program stored in memory 505 may include one or more modules, each of which may include a sequence of instructions operating on a data processing device. Still further, the central processor 501 may be arranged in communication with the memory 505 to execute a series of instruction operations in the memory 505 on the data processing device 500.
The data processing apparatus 500 may also include one or more power supplies 502, one or more wired or wireless network interfaces 503, one or more input-output interfaces 504, and/or one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The central processing unit 501 may perform operations performed by the data processing device (i.e., the diagnostic device or the target ECU) in the embodiments shown in fig. 1 to 4, which are not described herein again.
It can be clearly understood by those skilled in the art that, for convenience and simplicity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like.
Embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the data processing method as described above.

Claims (10)

1. A data processing method, applied to a diagnostic device, the method comprising:
responding to the operation that a user selects at least two target signal items from the signal items supported and read by the target ECU, and determining a request message corresponding to each target signal item;
and sequentially sending a request message corresponding to each target signal item to the target ECU, so that the target ECU sends a reply message to the diagnostic equipment after receiving the last request message, wherein the reply message comprises the signal data of each target signal item.
2. The method of claim 1, wherein each of the request messages includes a target request flag;
before the step of sequentially sending the request message corresponding to each target signal item to the target ECU, the method further includes:
and setting target request marks in other request messages except the last request message in each request message as a first mark, and setting a subsequent request mark in the last request message as a second mark, so that the target ECU determines the last request message according to the target request mark in the request message.
3. The method of claim 1, wherein prior to determining the request message for each target signal item in response to the user selecting at least two target signal items from the signal items supported by the target ECU for reading, the method further comprises:
acquiring vehicle information of a target vehicle;
displaying a preset ECU configuration list corresponding to the vehicle information of the target vehicle;
and responding to the operation that a user selects the target ECU from the preset ECU configuration list, and displaying the signal items which are supported to be read by the target ECU.
4. The method of claim 1, further comprising:
analyzing the signal data of each target signal item from the reply message in sequence based on the sending sequence of the request message corresponding to each target signal item;
calculating a 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;
and displaying the signal value of each target signal item based on the signal value of each target signal item and the corresponding preset unit.
5. A data processing method, applied to a target ECU, the method comprising:
inquiring and storing signal data of a target signal item corresponding to each request message aiming at a plurality of request messages sequentially sent by the diagnostic equipment, wherein each request message corresponds to one target signal item which is supported and read by a target ECU (electronic control Unit);
and if the signal data of the target signal item corresponding to the last request message is inquired, sending a reply message comprising the signal data of each target signal item to the diagnostic equipment.
6. The method of claim 5, wherein the request message includes a target request flag;
the method further comprises the following steps:
judging whether a target request mark of a currently received target request message is a second mark, wherein the target request message is any one of a plurality of request messages sequentially sent by the diagnosis equipment;
and if the target request mark of the target request message is a second mark, determining that the target request message is the last request message.
7. A diagnostic device, comprising:
the determining unit is used for responding to the operation that a user selects at least two target signal items from the signal items supported and read by the target ECU, and determining a request message corresponding to each target signal item;
a sending unit, configured to send a 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, where the reply message includes signal data of each target signal item.
8. An ECU, characterized by comprising:
the query unit is used for querying and storing signal data of a target signal item corresponding to each request message aiming at a plurality of request messages sequentially sent by the diagnostic equipment, wherein each request message corresponds to one target signal item which is supported to be read by the target ECU;
a sending unit, configured 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.
9. A data processing apparatus, characterized by comprising:
the system comprises a central processing unit, a memory and an input/output interface;
the memory is a transient storage memory or a persistent storage memory;
the central processor is configured to communicate with the memory and execute the instructions in the memory to perform the method of any of claims 1-4 or 5-6.
10. A computer storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 4 or 5 to 6.
CN202210752854.XA 2022-06-29 2022-06-29 Data processing method and related equipment Pending CN115134186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210752854.XA CN115134186A (en) 2022-06-29 2022-06-29 Data processing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210752854.XA CN115134186A (en) 2022-06-29 2022-06-29 Data processing method and related equipment

Publications (1)

Publication Number Publication Date
CN115134186A true CN115134186A (en) 2022-09-30

Family

ID=83380587

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210752854.XA Pending CN115134186A (en) 2022-06-29 2022-06-29 Data processing method and related equipment

Country Status (1)

Country Link
CN (1) CN115134186A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234191A (en) * 2023-11-08 2023-12-15 徐州徐工汽车制造有限公司 Fault diagnosis method, device and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0869039A2 (en) * 1997-03-31 1998-10-07 Toyota Jidosha Kabushiki Kaisha Vehicle communication control apparatus and method
JP2005341386A (en) * 2004-05-28 2005-12-08 Denso Corp Communications system
CN104114993A (en) * 2012-02-22 2014-10-22 本田技研工业株式会社 Vehicle data gathering apparatus, and vehicle data gathering method
CN110719231A (en) * 2019-10-25 2020-01-21 深圳市鹏巨术信息技术有限公司 Data processing method, device and equipment and readable storage medium
CN112286818A (en) * 2020-11-03 2021-01-29 深圳市云伽智能技术有限公司 Fault processing method, device, equipment and storage medium of ADAS system
CN113497640A (en) * 2020-04-07 2021-10-12 华为技术有限公司 Method, device and system for channel estimation in power line network
CN113608483A (en) * 2021-08-13 2021-11-05 深圳市元征科技股份有限公司 Method for acquiring vehicle signal value, electronic equipment and electronic control unit
CN113645097A (en) * 2021-08-11 2021-11-12 深圳市元征科技股份有限公司 Vehicle signal monitoring method, terminal equipment and electronic control unit
CN114598567A (en) * 2022-03-03 2022-06-07 深圳市元征科技股份有限公司 Communication method, apparatus and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0869039A2 (en) * 1997-03-31 1998-10-07 Toyota Jidosha Kabushiki Kaisha Vehicle communication control apparatus and method
JP2005341386A (en) * 2004-05-28 2005-12-08 Denso Corp Communications system
CN104114993A (en) * 2012-02-22 2014-10-22 本田技研工业株式会社 Vehicle data gathering apparatus, and vehicle data gathering method
US20140371977A1 (en) * 2012-02-22 2014-12-18 Honda Motor Co., Ltd. Vehicle data gathering apparatus, and vehicle data gathering method
CN110719231A (en) * 2019-10-25 2020-01-21 深圳市鹏巨术信息技术有限公司 Data processing method, device and equipment and readable storage medium
CN113497640A (en) * 2020-04-07 2021-10-12 华为技术有限公司 Method, device and system for channel estimation in power line network
CN112286818A (en) * 2020-11-03 2021-01-29 深圳市云伽智能技术有限公司 Fault processing method, device, equipment and storage medium of ADAS system
CN113645097A (en) * 2021-08-11 2021-11-12 深圳市元征科技股份有限公司 Vehicle signal monitoring method, terminal equipment and electronic control unit
CN113608483A (en) * 2021-08-13 2021-11-05 深圳市元征科技股份有限公司 Method for acquiring vehicle signal value, electronic equipment and electronic control unit
CN114598567A (en) * 2022-03-03 2022-06-07 深圳市元征科技股份有限公司 Communication method, apparatus and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117234191A (en) * 2023-11-08 2023-12-15 徐州徐工汽车制造有限公司 Fault diagnosis method, device and computer readable storage medium
CN117234191B (en) * 2023-11-08 2024-02-06 徐州徐工汽车制造有限公司 Fault diagnosis method, device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US8798843B2 (en) Vehicle diagnosing apparatus
CN112558584B (en) Diagnostic data acquisition method and device and diagnostic equipment
CN105025058A (en) Vehicle remote diagnosis method, vehicle remote monitoring method and vehicle-mounted terminal
CN111538312B (en) Vehicle remote diagnosis method, system, equipment connector and vehicle connector
CN115134186A (en) Data processing method and related equipment
CN106993056A (en) Car data stream acquisition methods, system and computer-readable recording medium
CN112202884A (en) Data transmission method for vehicle connection interface device and related equipment
CN113645097A (en) Vehicle signal monitoring method, terminal equipment and electronic control unit
CN113489653A (en) Message sending method and device and computer equipment
CN107065832A (en) Car data stream acquisition methods, system and computer-readable recording medium
CN115396529A (en) Multichannel communication method, device, terminal equipment and storage medium
US7380023B2 (en) Vehicular communication device exchanging reception and transmission with external tool
CN102710479B (en) Automobile gateway system for inverse resolution of communication protocols
CN114756585A (en) Vehicle data acquisition method and device, electronic equipment and storage medium
CN115016438A (en) Diagnostic method, diagnostic apparatus, and target vehicle
CN115565266A (en) Data processing method and related equipment
CN114326669A (en) Vehicle IO test method and device, electronic equipment and storage medium
CN113434411A (en) TIAS function test method and system
CN110177032B (en) Message routing quality monitoring method and gateway controller
CN116467096B (en) Data transmission method and system for inter-core communication and communication core
US20220166643A1 (en) Vehicle data analysis device and vehicle data analysis method
CN112319495B (en) Method, device and equipment for determining automobile system model and storage medium
CN111610771B (en) Vehicle data flow testing system and method
CN202711059U (en) Automobile protocol analyzer for analyzing communication protocol of finished automobile control module
US20230198954A1 (en) Method for analyzing services of nodes of a network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination