CN115565266A - Data processing method and related equipment - Google Patents

Data processing method and related equipment Download PDF

Info

Publication number
CN115565266A
CN115565266A CN202211152008.0A CN202211152008A CN115565266A CN 115565266 A CN115565266 A CN 115565266A CN 202211152008 A CN202211152008 A CN 202211152008A CN 115565266 A CN115565266 A CN 115565266A
Authority
CN
China
Prior art keywords
target
ecu
data
signal
reply
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
CN202211152008.0A
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 CN202211152008.0A priority Critical patent/CN115565266A/en
Publication of CN115565266A publication Critical patent/CN115565266A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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/008Registering or indicating the working of vehicles communicating information to a remotely located station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (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 improving the acquisition efficiency of a signal value of a target signal item corresponding to a target ECU. The method in the embodiment of the application comprises the following steps: acquiring a first data reading request sent by a diagnostic device; analyzing the first data reading request, and acquiring at least two target ECUs and target signal items to be read corresponding to each target ECU; sending a corresponding second data reading request for each target ECU, wherein the second data reading request is used for requesting the signal value of a target signal item corresponding to the target ECU; and acquiring a second data reply corresponding to a corresponding second data reading request returned by each target ECU, generating a first data reply corresponding to the first data reading request, and sending the first data reply to the diagnostic equipment, wherein the second data reply comprises a signal value of a target signal item corresponding to the target ECU.

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 acquire signal values of signal items of a plurality of ECUs of a vehicle through a diagnosis device, the user needs to select at least two ECUs to be read from the plurality of ECUs of the vehicle as a target ECU and target signal items to be read by each target ECU, and then the diagnosis device sends a first data reading request to a gateway aiming at the target signal item corresponding to each target ECU. Then, the gateway sends a second data reading request of the corresponding target signal item to the target ECU and receives the signal value of the corresponding target signal item replied by the target ECU. And finally, the gateway generates a first data reply aiming at the first data reading request according to the signal value of the corresponding target signal item sent by the target ECU. And after receiving the signal value of the target signal item corresponding to one target ECU, processing the signal value corresponding to the target signal item corresponding to the next target ECU.
Data read requests and data replies sent and received between the diagnostic device and the ECU need to pass through the gateway. When signal values of target signal items corresponding to a plurality of target ECUs need to be acquired, a gateway needs to receive and transmit a large number of data reading requests and data replies, and the acquisition efficiency of the signal values is low.
Disclosure of Invention
The embodiment of the application provides a data processing method and related equipment, which are used for improving the acquisition efficiency of a signal value of a target signal item corresponding to a target ECU.
A first aspect of the embodiments of the present application provides a data processing method, which is applied to a gateway, and includes:
acquiring a first data reading request sent by a diagnostic device;
analyzing the first data reading request, and acquiring at least two target ECUs and target signal items to be read corresponding to each target ECU;
sending a corresponding second data reading request for each target ECU, wherein the second data reading request is used for requesting the signal value of a target signal item corresponding to the target ECU;
and acquiring a second data reply corresponding to a corresponding second data reading request returned by each target ECU, generating a first data reply corresponding to the first data reading request, and sending the first data reply to the diagnostic equipment, wherein the second data reply comprises a signal value of a target signal item corresponding to the target ECU.
In a specific implementation manner, the analyzing the first data reading request to obtain at least two target ECUs and a target signal item to be read corresponding to each target ECU includes:
acquiring the number of target ECUs from the first data reading request;
and acquiring each target ECU and a target signal item corresponding to each target ECU from the first data reading request according to the number of the target ECUs.
In one specific implementation, before the sending of the corresponding second data reading request for each of the target ECUs, the method further includes:
determining an ECU request identifier of each target ECU and a signal item identifier of a target signal item corresponding to each target ECU;
and determining a second data reading request corresponding to each target ECU, wherein the second data reading request comprises an ECU request identification of the target ECU and a signal item identification of a target signal item corresponding to the target ECU.
In a specific implementation manner, the generating a first data reply corresponding to the first data read request includes:
analyzing each second data reply to obtain a signal value of a corresponding target signal item contained in each second data reply;
determining an ECU (electronic control unit) reply identifier of each target ECU, a signal item identifier of a target signal item corresponding to each target ECU and the number of the target ECUs;
generating a first data reply corresponding to the first data read request, the first data reply including the number of target ECUs, an ECU reply identification of each of the target ECUs, a signal item identification of a target signal item corresponding to each of the target ECUs, and a signal value of the target signal item corresponding to each of the target ECUs.
A second aspect of the embodiments 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 ECUs from a plurality of ECUs to be selected and selects a target signal item from the signal items supported and read by each target ECU, and sending a first data reading request to a gateway, wherein the first data reading request is used for requesting the signal value of the target signal item corresponding to each target ECU;
and receiving a first data reply corresponding to the first data reading request sent by the gateway, wherein the first data reply comprises the signal value of the target signal item corresponding to each target ECU.
In a specific implementation, the method further includes:
obtaining the target number of ECUs from the first data reply;
acquiring a signal value of a target signal item corresponding to each target ECU from the first data reply according to the ECU reply identifier corresponding to each target ECU, the signal item identifier of the target signal item corresponding to each target ECU and the number of the target ECUs;
and displaying the signal value of the target signal item corresponding to each target ECU to the user.
A third aspect of the embodiments of the present application provides a gateway, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first data reading request sent by diagnostic equipment;
the analysis unit is used for analyzing the first data reading request and acquiring at least two target ECUs and a target signal item to be read corresponding to each target ECU;
a sending unit, configured to send, for each target ECU, a corresponding second data read request, where the second data read request is used to request a signal value of a target signal item corresponding to the target ECU;
and the reply unit is used for acquiring a second data reply corresponding to a corresponding second data reading request returned by each target ECU, generating a first data reply corresponding to the first data reading request and sending the first data reply to the diagnostic equipment, wherein the second data reply comprises a signal value of a target signal item corresponding to the target ECU.
In a specific implementation manner, the parsing unit is specifically configured to obtain the number of target ECUs from the first data reading request;
and acquiring each target ECU and a target signal item corresponding to each target ECU from the first data reading request according to the number of the target ECUs.
In a specific implementation manner, the gateway further includes: a determination unit;
the determining unit is used for determining an ECU request identifier of each target ECU and a signal item identifier of a target signal item corresponding to each target ECU;
the determining unit is further configured to determine a second data reading request corresponding to each target ECU, where the second data reading request includes an ECU request identifier of the target ECU and a signal item identifier of a target signal item corresponding to the target ECU.
In a specific implementation manner, the reply unit is specifically configured to parse each second data reply to obtain a signal value of a corresponding target signal item included in each second data reply;
determining an ECU reply identifier of each target ECU, a signal item identifier of a target signal item corresponding to each target ECU and the number of the target ECUs;
generating a first data reply corresponding to the first data read request, the first data reply including the number of target ECUs, an ECU reply identification of each of the target ECUs, a signal item identification of a target signal item corresponding to each of the target ECUs, and a signal value of the target signal item corresponding to each of the target ECUs.
A fourth aspect of the embodiments of the present application provides a diagnostic apparatus, including:
the device comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is used for responding to the operation that a user selects at least two target ECUs from a plurality of ECUs to be selected and selects a target signal item from signal items supported and read by each target ECU, and sending a first data reading request comprising the target signal item corresponding to each target ECU to a gateway;
a receiving unit, configured to receive a first data reply corresponding to the first data reading request sent by the gateway, where the first data reply includes a signal value of a target signal item corresponding to each target ECU.
In one specific implementation, the diagnostic apparatus further comprises: an acquisition unit and a display unit;
the obtaining unit is used for obtaining the target ECU number from the first data reply;
the acquiring unit is further configured to acquire a signal value of a target signal item corresponding to each target ECU from the first data reply according to the ECU reply identifier corresponding to each target ECU, the signal item identifier of the target signal item corresponding to each target ECU, and the number of target ECUs;
and the display unit is used for displaying the signal value of the target signal item corresponding to each target ECU to the user.
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: the diagnostic equipment sends a first data reading request for requesting the target signal items corresponding to the target ECUs to the gateway after receiving at least two target ECUs selected by a user and the target signal items corresponding to the target ECUs. Then, the gateway sends a second data read request for the corresponding target signal item to each target ECU. Finally, the gateway generates a second data reply corresponding to the first data read request based on a second data reply corresponding to the corresponding second data read request returned by each target ECU. Different from the prior art in which the diagnostic device needs to send a plurality of first data reading requests and the gateway needs to send a plurality of first data replies, if data reading requests are sent to the N target ECUs, the prior art in which the gateway needs to receive the N first data reading requests, send the N second data reading requests, and send the N first data replies; in the application, the network manager only needs to receive 1 data reading request, send N second data reading requests and send 1 first data reply, the number of the requests and the replies needing to be received and sent is greatly reduced, and the efficiency of the gateway for acquiring the signal values of the target signal items corresponding to the target ECUs can be remarkably 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 gateway disclosed in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a diagnostic apparatus disclosed in an 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 clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to 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 diagnosis device 101, at least one gateway 102, and at least two ECUs 103 (ECU 1031 and ECU 1032), the diagnosis device 101 is in communication connection with the gateway 102, and the gateway 102 is in communication connection with the ECU1031 and the ECU1032, respectively. The diagnosing apparatus 101 is configured to send, to the gateway 102, a first data reading request for requesting a signal value of a target signal item corresponding to each of the target ECUs (the ECUs 1031 and 1032) in response to an operation of a user selecting at least two target ECUs (the ECUs 1031 and the ECUs 1032) and the target signal items corresponding to the respective target ECUs from the ECUs 103. The gateway 102 transmits a second data reading request for requesting a signal value of the corresponding target signal item to each of the ECUs (ECU 1031 and ECU 1032) according to the first data reading request, and receives a second data reply including the signal value of the corresponding target signal item returned by each of the target ECUs (ECU 1031 and ECU 1032). Finally, the gateway 102 returns a first data reply including the signal value of the target signal item corresponding to each of the target ECUs (ECU 1031 and ECU 1032) to the diagnosing apparatus 101.
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 is to be understood that the illustrated architecture of the embodiments 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, any gateway and/or ECU capable of implementing the data processing method described above and below in the present embodiment, and may include more diagnostic devices, gateways 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 device, gateway and/or ECU, and includes the following steps 201 to 205:
201. the diagnostic device transmits a first data read request to the gateway in response to a user operation of selecting at least two target ECUs from the plurality of ECUs to be selected and selecting a target signal item from the signal items supported to be read by each target ECU, the first data read request being for requesting a signal value of the target signal item corresponding to each target ECU.
The diagnostic equipment responds to the operation that a user selects at least two target ECUs and a target signal item corresponding to each target ECU, and sends a first data reading request to the gateway, wherein the first data reading request is used for requesting to read the signal value of the target signal item corresponding to each target ECU.
In addition, the target ECU may be selected by the user directly or indirectly from a plurality of ECUs to be selected, and the target signal item may be selected by the user directly or indirectly from a signal item read by the target ECU support, which is not particularly limited herein.
202. And the gateway analyzes the first data reading request and acquires at least two target ECUs and target signal items to be read corresponding to each target ECU.
After receiving a first data reading request sent by the diagnostic device, the gateway can determine each target ECU needing to send the data reading request and a target signal item corresponding to each target ECU from the first data reading request, so as to request a signal value of a corresponding target signal item from each target ECU.
203. And the gateway sends a corresponding second data reading request for each target ECU, wherein the second data reading request is used for requesting the signal value of the target signal item corresponding to the target ECU.
After determining each target ECU which needs to send a data reading request and the target signal item corresponding to each target ECU, sending a second data reading request of the corresponding target signal item to each target ECU to obtain a signal value of the corresponding target signal item. Since each target ECU is different and the target signal item corresponding to each target ECU is also different, the second data read request corresponding to each target ECU is a signal value for requesting the target ECU for its corresponding target signal item.
204. And the gateway receives a second data reply corresponding to the corresponding second data reading request returned by each target ECU, and generates a first data reply corresponding to the first data reading request, wherein the second data reply comprises the signal value of the target signal item corresponding to each target ECU.
After the gateway sends the corresponding second data reading request to each target ECU in step 203, each target ECU may return a second data reply including the signal value of the corresponding target signal item, and the gateway may generate a first data reply including the signal value of the target signal item corresponding to each target ECU according to the second data reply returned by each target ECU, where the first data reply corresponds to the first data reading request.
205. The gateway sends a first data reply corresponding to the first data read request to the diagnostic device.
After the first data reply is generated, the gateway sends the first data reply to the diagnosis equipment, so that the diagnosis equipment can acquire and/or display the signal value of the target signal item corresponding to each target ECU.
In the embodiment of the application, after receiving at least two target ECUs selected by a user and target signal items corresponding to the target ECUs, the diagnostic equipment sends a first data reading request for requesting the target signal items corresponding to the target ECUs to a gateway. Then, the gateway sends a second data read request for the corresponding target signal item to each target ECU. Finally, the gateway generates a second data reply corresponding to the first data read request based on a second data reply corresponding to the corresponding second data read request returned by each target ECU. Different from the prior art in which the diagnostic device needs to send a plurality of first data reading requests and the gateway needs to send a plurality of first data replies, if data reading requests are sent to the N target ECUs, the prior art in which the gateway needs to receive the N first data reading requests, send the N second data reading requests, and send the N first data replies; in the application, the network manager only needs to receive 1 data reading request, send N second data reading requests and send 1 first data reply, the number of the requests and the replies needing to be received and sent is greatly reduced, and the efficiency of the gateway for acquiring the signal values of the target signal items corresponding to the target ECUs can be remarkably improved.
In some specific implementations, the foregoing step 201 can be specifically implemented by: responding to the operation that a user selects at least two target ECUs from a plurality of ECUs to be selected and selects a target signal item from the signal items supported and read by each target ECU, and determining an ECU request identifier corresponding to each target ECU and a signal item identifier of the target signal item corresponding to each target ECU; and generating and sending a first data reading request to the gateway, wherein the first data reading request comprises an ECU request identifier corresponding to each target ECU, a signal item identifier of a target signal item corresponding to each target ECU and the number of the target ECUs.
Specifically, an ECU request identifier of each target ECU and a signal item identifier of each target signal item are determined from a preset identifier library according to a target ECU selected by a user and a target signal item corresponding to each target ECU, then first data reading requests (which may be generated according to a preset diagnostic device request format, specifically refer to the related embodiment described later) including the ECU request identifier of each target ECU, the signal item identifier of the target signal item corresponding to each target ECU and the number of target ECUs are generated, and the generated first data reading requests are sent to the gateway, so that the gateway requests the corresponding target signal item from each target ECU according to each ECU identifier and the signal item identifier of each target signal item. The preset diagnostic device request format may be any format that specifies the field content corresponding to each part of fields in the first data read request, that is, any format that specifies that the field content of each field should be the number of target ECUs, the request identifier of the target ECU, or the signal identifier of the target signal item, which is not limited herein.
Further, the foregoing step 202 may be implemented by: acquiring the number of target ECUs from the first data reading request; and acquiring each target ECU and a target signal item corresponding to each target ECU from the first data reading request according to the number of the target ECUs.
Specifically, the gateway obtains the number of target ECUs from the first data reading request according to the number of target ECUs and a preset diagnostic device request format, and determines each target ECU and a target signal item corresponding to each target ECU from the first data reading request in sequence according to the target ECU request identifier, the signal item identifier of the target signal item, and the number of target ECUs.
Further, before the foregoing steps send corresponding second data reading requests for each target ECU, the embodiments of the present application further include the following steps: determining an ECU request identifier of each target ECU and a signal item identifier of a target signal item corresponding to each target ECU; and determining a second data reading request corresponding to each target ECU, wherein the second data reading request comprises an ECU request identification of the target ECU and a signal item identification of a target signal item corresponding to the target ECU.
Specifically, before sending the corresponding second data reading request to each target ECU, the second data reading request corresponding to each target ECU needs to be generated. As can be seen from the foregoing and related embodiments described later, the embodiments of the present application have obtained target signal items that identify each target ECU and correspond to each target ECU before generating the second data reading request corresponding to each target ECU. The manner of determining the identifier in this step is similar to that of determining the signal item representation of the target signal item and the ECU request identifier of each target ECU by the aforementioned diagnostic device, and after determination, the second data request corresponding to each target ECU is generated based on the signal item representation of the target signal item and the ECU request identifier of the target ECU.
In some specific implementations, the foregoing step 204 can be specifically implemented by: analyzing each second data reply to obtain a signal value of a corresponding target signal item contained in each second data reply; determining an ECU (electronic control unit) reply identifier of each target ECU, a signal item identifier of a target signal item corresponding to each target ECU and the number of the target ECUs; and generating a first data reply corresponding to the first data reading request, wherein the first data reply comprises the number of the target ECUs, the ECU reply identification of each target ECU, the signal item identification of the target signal item corresponding to each target ECU and the signal value of the target signal item corresponding to each target ECU.
Specifically, each second data reply is analyzed according to the preset identifier library, the ECU reply identifiers and the signal item identifiers of the target signal items can be determined, and then, the signal values including the target signal items are generated to generate the first data replies (which may be generated according to a preset gateway reply format, specifically refer to the related embodiment described later) including the ECU reply identifiers, the target signal item identifiers corresponding to the target ECUs, the signal values of the target signal items, and the number of target ECUs. In step 205, the first data reply is sent to the diagnostic device, so that the diagnostic device can view the signal values of the target signal items corresponding to the target ECUs. The preset gateway reply format may be any format that specifies the field content corresponding to each part of the fields in the first data reply, that is, any format that specifies that the field content of each field should be the number of target ECUs, the reply identifier of the target ECU, the signal item identifier of the target signal item, or the signal value of the target signal item, which is not limited herein.
Further, after the diagnostic device receives the first data reply, the embodiment of the application further includes the following steps: obtaining a target number of ECUs from the first data reply; acquiring a signal value of a target signal item corresponding to each target ECU from the first data reply according to the ECU reply identifier corresponding to each target ECU, the signal item identifier of the target signal item corresponding to each target ECU and the number of the target ECUs; and displaying the signal value of the target signal item corresponding to each target ECU to a user.
Specifically, the diagnostic device may obtain the number of target ECUs from the first data reply according to a preset request format, and sequentially determine the signal value of the target signal item corresponding to each target ECU from the first data read request according to the reply identifier of the target ECU, the signal item identifier of the target signal item, and the number of the target ECUs. And then, displaying the signal value of the target signal item corresponding to each target ECU to a user through a display device.
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.
First, the diagnostic device determines each target ECU to be acquired and a target signal item corresponding to each target ECU. Specifically, the target signal items corresponding to the target ECU include, but are not limited to: the rotational speed of the engine ECU, the gear of the transmission ECU, the temperature of the air conditioner ECU, and the like.
Then, an ECU request identifier of each target ECU and a signal item identifier of a target signal item corresponding to each target ECU are searched in an ECU communication base preset by the diagnostic equipment, the request identifier of each ECU is used for uniquely identifying and initiating a data reading request to the ECU, and the signal item identifier of each target signal item is used for uniquely identifying the target signal item. Specifically, the ECU request flag of the engine ECU is 0x07e0, and the signal item of the rotation speed corresponding to the engine ECU is 0x0201.
Then, the diagnostic device combines the read information (the ECU request identifier and the signal item identifier) of each target ECU into a first data read request according to a preset rule (the information and the sequence of the information included in the embodiment described later) based on the ECU request identifier of each target ECU and the signal item identifier of the target signal item corresponding to each target ECU, and sends the first data read request to the gateway. Specifically, the first data read request may be: 0x22FF0307e0020107e1030207df0808, where 0x22FF denotes data to be read for a plurality of target ECUs, 03 denotes data to be read for 3 ECUs, 0x07e0, 0x07e1, and 0x07df are ECU request flags for each target ECU, 0x0201 is a signal item flag for a target signal item corresponding to the target ECU (0 x07e 0), 0x0302 is a signal item flag for a target signal item corresponding to the target ECU (0 x07e 1), and 0x0808 is a signal item flag for a target signal item corresponding to the target ECU (0 x07 df).
Then, after receiving the first data reading request, the gateway analyzes each target ECU to be read by the first data reading request and a target signal item corresponding to each target ECU, combines the ECU request identifier and the signal item identifier of each target ECU to obtain a second data reading request, and sends each second data reading request to the corresponding target ECU.
Specifically, the gateway sends a second data read request to each target ECU in the first data read request. For example, the command sent to the engine ECU may be 0x07e003220201, where 0x07e0 indicates sending to the engine ECU,03 indicates 3 valid bytes later, 0x22 indicates reading the signal item data, and 0x0201 indicates reading the engine speed.
And then, after each ECU receives a second data reading request sent by the gateway, target signal items to be read in the instruction are analyzed, and then each target ECU fills the signal values of the corresponding target signal items in the second reply request to reply to the gateway. For example, the second reply request of the engine ECU is 0x07e80562020155AA, where 0x07e8 indicates that it is the engine ECU reply, 05 indicates that it is followed by 5 bytes in effect, 0x62 indicates that it is the read signal item that is replied, 0x0201 indicates that it is the engine speed that is the reply signal item, and 0x55AA is the value of the engine speed.
Next, after receiving the second reply requests of the ECUs, the gateway combines the ECU reply identifier of each target ECU in the plurality of target ECUs, the corresponding target data item, and the signal value corresponding to the target data item into a first reply request according to the order of the target ECUs in the first data reading request, and then sends the second reply request to the diagnostic device. In this embodiment, the second reply request may be as follows: 0x62FF0307e802010255AA07e9030202778807e70808021122, where 0x62FF denotes a signal value of a target signal item to be replied to a plurality of ECUs, 03 denotes a signal value of a target signal item by 3 target ECUs, where 0x07e8 in 0x07e802010255AA is an ECU reply flag of an engine ECU, 0x0201 denotes that the target signal item is the revolution speed of a transmitter, 02 denotes that diagnostic data has 2 bytes, and 0x55AA is diagnostic data.
Finally, after receiving the second reply request, the diagnostic device analyzes the signal values of the target signal items corresponding to the target ECUs in the diagnostic device, and can determine which target ECU replies according to the ECU reply identifier, and can determine which target signal item is according to the signal item identifier of the target signal item, and the later byte is the signal value of the former target signal item. After the diagnostic equipment sequentially analyzes the signal values of the target signal items corresponding to each target ECU, the signal values of the signal items of the target ECUs are equivalent to the signal values of the signal items of the target ECUs, and then display and analysis can be carried out.
Referring to fig. 3, an embodiment of the present application provides a gateway, including:
an obtaining unit 301, configured to obtain a first data reading request sent by a diagnostic device;
an analyzing unit 302, configured to analyze the first data reading request, and obtain at least two target ECUs and a target signal item to be read corresponding to each target ECU;
a transmitting unit 303, configured to transmit, for each target ECU, a corresponding second data read request for requesting a signal value of a target signal item corresponding to the target ECU;
a reply unit 304, configured to obtain a second data reply corresponding to the corresponding second data read request returned by each target ECU, generate a first data reply corresponding to the first data read request, and send the first data reply to the diagnostic device, where the second data reply includes a signal value of a target signal item corresponding to the target ECU.
In a specific implementation manner, the parsing unit 302 is specifically configured to obtain the number of target ECUs from the first data reading request;
and acquiring each target ECU and a target signal item corresponding to each target ECU from the first data reading request according to the number of the target ECUs.
In a specific implementation, the gateway further includes: a determination unit;
the determining unit is used for determining the ECU request identifier of each target ECU and the signal item identifier of the target signal item corresponding to each target ECU;
and the determining unit is further used for determining a second data reading request corresponding to each target ECU, wherein the second data reading request comprises the ECU request identification of the target ECU and the signal item identification of the target signal item corresponding to the target ECU.
In a specific implementation, the reply unit 304 is specifically configured to parse each second data reply to obtain a signal value of the corresponding target signal item included in each second data reply;
determining an ECU reply identifier of each target ECU, a signal item identifier of a target signal item corresponding to each target ECU and the number of the target ECUs;
and generating a first data reply corresponding to the first data reading request, wherein the first data reply comprises the number of the target ECUs, the ECU reply identification of each target ECU, the signal item identification of the target signal item corresponding to each target ECU and the signal value of the target signal item corresponding to each target ECU.
Referring to fig. 4, an embodiment of the present application provides a diagnostic apparatus, including:
a sending unit 401, configured to send, to the gateway, a first data read request including a target signal item corresponding to each target ECU in response to a user operation of selecting at least two target ECUs from the multiple ECUs to be selected and selecting a target signal item from the signal items that each target ECU supports reading;
a receiving unit 402, configured to receive a first data reply corresponding to the first data reading request, where the first data reply includes a signal value of a target signal item corresponding to each target ECU, and the first data reply is sent by the gateway.
In one specific implementation, the diagnostic device further comprises: an acquisition unit and a display unit;
an acquisition unit for acquiring the number of target ECUs from the first data reply;
the acquisition unit is further used for acquiring a signal value of a target signal item corresponding to each target ECU from the first data reply according to the ECU reply identifier corresponding to each target ECU, the signal item identifier of the target signal item corresponding to each target ECU and the number of the target ECUs;
and the display unit is used for displaying the signal value of the target signal item corresponding to each target ECU to a user.
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 gateway) in the embodiments shown in fig. 1 to fig. 4, which are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity 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 may be implemented in the form of hardware, or may also be implemented in the 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.
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 gateway, the method comprising:
acquiring a first data reading request sent by a diagnostic device;
analyzing the first data reading request, and acquiring at least two target ECUs and target signal items to be read corresponding to each target ECU;
sending a corresponding second data reading request for each target ECU, wherein the second data reading request is used for requesting the signal value of a target signal item corresponding to the target ECU;
and acquiring a second data reply corresponding to a corresponding second data reading request returned by each target ECU, generating a first data reply corresponding to the first data reading request, and sending the first data reply to the diagnostic equipment, wherein the second data reply comprises a signal value of a target signal item corresponding to the target ECU.
2. The method according to claim 1, wherein the parsing the first data reading request to obtain at least two target ECUs and target signal items to be read corresponding to each target ECU comprises:
acquiring the number of target ECUs from the first data reading request;
and acquiring each target ECU and a target signal item corresponding to each target ECU from the first data reading request according to the number of the target ECUs.
3. The method of claim 1, wherein prior to said sending a corresponding second data read request for each of said target ECUs, the method further comprises:
determining an ECU request identifier of each target ECU and a signal item identifier of a target signal item corresponding to each target ECU;
and determining a second data reading request corresponding to each target ECU, wherein the second data reading request comprises an ECU request identification of the target ECU and a signal item identification of a target signal item corresponding to the target ECU.
4. The method of claim 1, wherein generating the first data reply corresponding to the first data read request comprises:
analyzing each second data reply to obtain a signal value of a corresponding target signal item contained in each second data reply;
determining an ECU (electronic control unit) reply identifier of each target ECU, a signal item identifier of a target signal item corresponding to each target ECU and the number of the target ECUs;
generating a first data reply corresponding to the first data read request, the first data reply including the number of target ECUs, an ECU reply identification of each of the target ECUs, a signal item identification of a target signal item corresponding to each of the target ECUs, and a signal value of the target signal item corresponding to each of the target ECUs.
5. A data processing method, applied to a diagnostic device, the method comprising:
responding to the operation that a user selects at least two target ECUs from a plurality of ECUs to be selected and selects a target signal item from the signal items supported and read by each target ECU, and sending a first data reading request to a gateway, wherein the first data reading request is used for requesting the signal value of the target signal item corresponding to each target ECU;
and receiving a first data reply corresponding to the first data reading request sent by the gateway, wherein the first data reply comprises the signal value of the target signal item corresponding to each target ECU.
6. The method of claim 5, further comprising:
obtaining a target number of ECUs from the first data reply;
acquiring a signal value of a target signal item corresponding to each target ECU from the first data reply according to the ECU reply identifier corresponding to each target ECU, the signal item identifier of the target signal item corresponding to each target ECU and the number of the target ECUs;
and displaying the signal value of the target signal item corresponding to each target ECU to the user.
7. A gateway, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first data reading request sent by diagnostic equipment;
the analysis unit is used for analyzing the first data reading request and acquiring at least two target ECUs and a target signal item to be read corresponding to each target ECU;
a sending unit, configured to send, for each target ECU, a corresponding second data read request, where the second data read request is used to request a signal value of a target signal item corresponding to the target ECU;
and the generating unit is used for acquiring a second data reply corresponding to a corresponding second data reading request returned by each target ECU, generating a first data reply corresponding to the first data reading request and sending the first data reply to the diagnostic equipment, wherein the second data reply comprises a signal value of a target signal item corresponding to the target ECU.
8. A diagnostic device, comprising:
the device comprises a sending unit, a receiving unit and a processing unit, wherein the sending unit is used for responding to the operation that a user selects at least two target ECUs from a plurality of ECUs to be selected and selects a target signal item from signal items supported and read by each target ECU, and sending a first data reading request comprising the target signal item corresponding to each target ECU to a gateway;
a receiving unit, configured to receive a first data reply corresponding to the first data reading request sent by the gateway, where the first data reply includes a signal value of a target signal item corresponding to each target ECU.
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.
CN202211152008.0A 2022-09-21 2022-09-21 Data processing method and related equipment Pending CN115565266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211152008.0A CN115565266A (en) 2022-09-21 2022-09-21 Data processing method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211152008.0A CN115565266A (en) 2022-09-21 2022-09-21 Data processing method and related equipment

Publications (1)

Publication Number Publication Date
CN115565266A true CN115565266A (en) 2023-01-03

Family

ID=84741451

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211152008.0A Pending CN115565266A (en) 2022-09-21 2022-09-21 Data processing method and related equipment

Country Status (1)

Country Link
CN (1) CN115565266A (en)

Similar Documents

Publication Publication Date Title
CN112558584B (en) Diagnostic data acquisition method and device and diagnostic equipment
CN111552267B (en) Vehicle diagnosis method and device and vehicle diagnosis equipment
CN109885037B (en) Vehicle diagnosis method and related equipment
CN112445630B (en) Information interaction method and device and terminal equipment
CN113703868A (en) Vehicle diagnostic software configuration method, electronic device and readable storage medium
CN113608483B (en) Method for acquiring vehicle signal value, electronic equipment and electronic control unit
CN112184946A (en) Vehicle data reading method and related equipment
CN113359674A (en) Vehicle diagnostic system, method, electronic device, and storage medium
CN113872967A (en) Vehicle information transmission method and device, electronic equipment and storage medium
CN115134186A (en) Data processing method and related equipment
CN115565266A (en) Data processing method and related equipment
CN114756585A (en) Vehicle data acquisition method and device, electronic equipment and storage medium
CN113342430B (en) Fault code processing method and device, terminal equipment and readable storage medium
CN115016438A (en) Diagnostic method, diagnostic apparatus, and target vehicle
CN113377610B (en) Performance monitoring method, device, computer equipment and storage medium
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN113960991A (en) Vehicle fault diagnosis system, method and device, system-on-chip and vehicle
CN112731837A (en) Method, device, equipment, medium, product and vehicle for determining vehicle state
CN112319495B (en) Method, device and equipment for determining automobile system model and storage medium
CN113965917B (en) Communication method, device and terminal equipment
CN116467096B (en) Data transmission method and system for inter-core communication and communication core
CN116224976B (en) Test method and device
CN114859870A (en) Vehicle diagnostic protocol acquisition method and device and related equipment thereof
CN118210295A (en) Data acquisition method, server, automobile diagnosis device and storage medium
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