CN117250934A - ECU diagnosis method, device, system, storage medium and vehicle diagnosis apparatus - Google Patents
ECU diagnosis method, device, system, storage medium and vehicle diagnosis apparatus Download PDFInfo
- Publication number
- CN117250934A CN117250934A CN202311061166.XA CN202311061166A CN117250934A CN 117250934 A CN117250934 A CN 117250934A CN 202311061166 A CN202311061166 A CN 202311061166A CN 117250934 A CN117250934 A CN 117250934A
- Authority
- CN
- China
- Prior art keywords
- diagnosis
- ecu
- vehicle
- upper computer
- diagnostic
- 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
Links
- 238000003745 diagnosis Methods 0.000 title claims abstract description 370
- 238000000034 method Methods 0.000 title claims abstract description 49
- 238000013507 mapping Methods 0.000 claims abstract description 110
- 238000004891 communication Methods 0.000 claims description 115
- 238000002405 diagnostic procedure Methods 0.000 claims description 28
- 238000004590 computer program Methods 0.000 claims 2
- 230000001360 synchronised effect Effects 0.000 abstract description 16
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
- G05B23/0213—Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses an ECU diagnosis method, a device, a system, a storage medium and vehicle diagnosis equipment, relating to the technical field of vehicles, wherein the method comprises the following steps: sending an inquiry command to at least two diagnostic connectors connected with an interface of the vehicle diagnostic upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. The invention CAN acquire the signal values of the ECU on the multiple paths of CAN at the same time point for synchronous analysis, and improves the flexibility of ECU diagnosis.
Description
Technical Field
The present invention relates to the field of vehicle technologies, and in particular, to an ECU diagnostic method, device, system, storage medium, and vehicle diagnostic apparatus.
Background
As the electronic functions of the vehicle increase, the number of ECU (Electronic Control Unit, electronic control units) inside modern vehicles also increases. In order to realize high-speed data exchange and interconnection between different devices in the vehicle-mounted network, a plurality of CAN (Controller Area Network ) buses, such as a power CAN, a vehicle body CAN, an information CAN and the like, are usually arranged on the vehicle, and each CAN bus is connected with a corresponding electronic control unit ECU. In making a vehicle diagnosis, it is necessary to switch the physical channels of the VCI (Vehicle Communication Interface ) to the corresponding CAN bus to make a diagnosis to the target electronic control unit ECU.
The existing vehicle communication interface VCI generally has only two paths of physical channels, and the CAN bus of the vehicle may have 5-6 paths, so the existing method for diagnosing the ECU is to sequentially diagnose the electronic control units ECU of each CAN bus, and one path of diagnosis is switched to the other path for diagnosis. However, the existing ECU diagnostic method cannot acquire signal values of the ECU on the multiple CAN at the same time point for synchronous analysis.
Disclosure of Invention
The invention mainly aims to provide an ECU diagnosis method, an ECU diagnosis device, an ECU diagnosis system, a storage medium and vehicle diagnosis equipment, and aims to solve the problem that the existing ECU diagnosis method cannot acquire signal values of multiple Electronic Control Units (ECUs) on a CAN at the same time point for synchronous analysis.
In order to achieve the above object, the present invention provides an ECU diagnostic method applied to a vehicle diagnostic host computer, comprising the steps of:
sending an inquiry command to at least two diagnostic connectors connected with an interface of the vehicle diagnostic upper computer;
receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command;
corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed;
And diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
Optionally, the step of setting corresponding logic channels for at least two physical channels respectively and forming a target mapping configuration includes:
acquiring communication parameters of each ECU;
setting communication parameters of the logic channels corresponding to the ECUs based on the communication parameters of each ECU;
based on the target mapping configuration, the step of diagnosing at least two ECUs through the corresponding logical channels includes:
and diagnosing at least two ECUs through the logic channels with the communication parameters set on the basis of the target mapping configuration.
Optionally, the step of diagnosing at least two ECUs through the logic channel based on the target mapping configuration includes:
determining a target physical channel corresponding to the target logical channel and a corresponding target diagnostic joint based on the target mapping configuration;
sending a diagnosis command to the target diagnosis joint, wherein the diagnosis command comprises a channel number corresponding to the target physical channel;
and receiving reply data returned by the target diagnosis joint through the target physical channel.
Optionally, the step of sending an inquiry command to at least two diagnostic connectors connected to an interface of the vehicle diagnostic upper computer is preceded by:
scanning an interface of the vehicle diagnosis upper computer to obtain a scanning result;
if the scanning result shows that the interface of the vehicle diagnosis upper computer is connected with equipment, checking the type of the connected equipment;
and if the product type of the connected equipment is the diagnosis joint type, judging that the connected equipment is a diagnosis joint connected with an interface of the vehicle diagnosis upper computer.
Alternatively, the present invention provides an ECU diagnostic method, which is applied to a diagnostic joint, the method comprising:
receiving an inquiry command sent by a vehicle diagnosis upper computer;
and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
Optionally, the step of returning identification information and information of a physical channel to the vehicle diagnosis upper computer according to the inquiry command includes:
responding to a diagnosis command sent by a vehicle diagnosis upper computer, and acquiring a channel number corresponding to a target physical channel contained in the diagnosis command;
acquiring the target physical channel based on the channel number;
judging the type of the diagnosis command;
if the type of the diagnosis command is a setting type, setting communication parameters in the target physical channel based on setting parameters in the diagnosis command;
if the type of the diagnosis command is a communication type, converting communication data in the diagnosis command into a CAN format;
transmitting the communication data in the CAN format to the corresponding ECU through the target physical channel;
receiving reply data of the corresponding ECU through the target physical channel;
and returning the corresponding reply data of the ECU to the vehicle diagnosis upper computer.
The embodiment of the invention also provides an ECU diagnosis system, which comprises:
the vehicle diagnosis upper computer, the diagnosis joint and the on-board diagnosis system OBD;
connecting one end of at least two diagnostic joints with the vehicle diagnostic upper computer;
Connecting the other ends of at least two diagnostic connectors with the OBD through an OBD expansion interface;
the vehicle diagnosis upper computer is used for sending an inquiry command to at least two diagnosis joints connected with an interface of the vehicle diagnosis upper computer; receiving identification information returned by each diagnosis joint according to the inquiry command and information of a physical channel; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs;
the diagnosis connector is used for receiving an inquiry command sent by the vehicle diagnosis upper computer; and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
The embodiment of the invention also provides an ECU diagnosis device, which is arranged on the vehicle diagnosis upper computer and comprises:
the sending module is used for sending an inquiry command to at least two diagnosis connectors connected with an interface of the vehicle diagnosis upper computer;
the receiving module is used for receiving the identification information returned by each diagnosis joint according to the inquiry command and the information of the physical channel;
the configuration module is used for respectively setting corresponding logic channels for at least two physical channels and forming target mapping configuration;
and the diagnosis module is used for diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
The embodiment of the invention also provides vehicle diagnostic equipment, which comprises a memory, a processor and an ECU diagnostic program stored on the memory and capable of running on the processor, wherein the ECU diagnostic program realizes the ECU diagnostic method when being executed by the processor.
The embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores an ECU diagnosis program, and the ECU diagnosis program realizes the ECU diagnosis method when being executed by a processor.
The ECU diagnosis method, the device, the system, the storage medium and the vehicle diagnosis equipment provided by the embodiment of the invention send an inquiry command to at least two diagnosis joints connected with an interface of the vehicle diagnosis upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved.
Drawings
FIG. 1 is a schematic diagram of functional blocks of a terminal device to which an ECU diagnostic device of the present invention belongs;
FIG. 2 is a flow chart of an exemplary embodiment of an ECU diagnostic method according to the present invention;
FIG. 3 is a schematic diagram of the connection of an ECU diagnostic system in an embodiment of the present invention;
FIG. 4 is a flow chart of another exemplary embodiment of an ECU diagnostic method of the present invention;
FIG. 5 is a flow chart of another exemplary embodiment of an ECU diagnostic method of the present invention;
FIG. 6 is a flow chart of another exemplary embodiment of an ECU diagnostic method of the present invention;
FIG. 7 is a flow chart of another exemplary embodiment of an ECU diagnostic method of the present invention;
FIG. 8 is a flow chart of another exemplary embodiment of an ECU diagnostic method of the present invention;
fig. 9 is a flowchart of another exemplary embodiment of the ECU diagnostic method of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: sending an inquiry command to at least two diagnostic connectors connected with an interface of the vehicle diagnostic upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved.
Technical terms related to the embodiment of the invention:
OBD: OBD (On-Board Diagnostic) is a standardized system for detecting and reporting vehicle faults. The on-board diagnostic system OBD system collects and analyzes diagnostic data of the vehicle by monitoring electronic control units (electronic control units ECU) and sensors of the vehicle, thereby providing information about the vehicle's operating state and possible faults.
And (3) ECU: an ECU (Electronic Control Unit ) is a microprocessor-controlled device for monitoring, controlling and managing the various electronic systems and functions of the vehicle. A plurality of electronic control units ECU are provided in each vehicle for managing and controlling different systems such as an engine control unit, a brake system control unit, an air conditioning system control unit, and the like.
VCI: the VCI (Vehicle Communication Interface ) is a device for vehicle diagnostics and communication. It serves as a bridge between the computer and the vehicle, so that the user can communicate with the electronic system of the vehicle through the computer to perform operations such as fault diagnosis, parameter setting, programming, and the like.
CAN: CAN (Controller Area Network controller area network) is a serial communication protocol and bus system widely used in automotive and industrial control systems, enabling efficient communication and data exchange between various electronic control units. The system can connect a plurality of control units such as an automobile instrument, a gearbox, an auxiliary braking system, an electronic control unit ECU, a control module, various sensors and the like together, so that real-time synchronization of information is realized. The CAN communication system in the automobile greatly reduces the electric wiring on the automobile and reduces the cost, weight and occupied space of the cable.
Diagnosis upper computer: in the automotive field, a diagnostic host computer is a type of computer software or hardware device used to diagnose a vehicle fault. It is typically connected to a diagnostic interface (e.g., OBD interface) of the vehicle for fault diagnosis, monitoring and maintenance of the vehicle by reading the fault code and real-time data of the vehicle.
The embodiment of the invention considers that: the existing vehicle communication interface VCI generally has only two paths of physical channels, and the CAN bus of the vehicle may have 5-6 paths, so the existing method for diagnosing the ECU is to sequentially diagnose the electronic control units ECU of each CAN bus, and one path of diagnosis is switched to the other path for diagnosis. However, the existing ECU diagnostic method cannot acquire signal values of the ECU on the multiple CAN at the same time point for synchronous analysis.
Therefore, the embodiment of the invention provides a solution, and the corresponding relation between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis connector can be established by carrying out target mapping configuration on the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis connector. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved.
Specifically, referring to fig. 1, fig. 1 is a schematic diagram of functional blocks of a terminal device to which the ECU diagnostic device of the present invention belongs. The ECU diagnostic device may be a device-independent, data processing-capable device that may be carried on the device in hardware or software. The device can be an intelligent mobile terminal with a data processing function such as a mobile phone and a tablet personal computer, and can also be a fixed device or a server with a data processing function.
In the present embodiment, the apparatus to which the ECU diagnostic device belongs includes at least an output module 110, a processor 120, a memory 130, and a communication module 140.
The memory 130 stores an operating system and an ECU diagnostic program; the output module 110 may be a display screen or the like. The communication module 140 may include a WIFI module, a bluetooth module, and the like, and communicate with an external device or a server through the communication module 140.
Wherein the ECU diagnostic program in the memory 130 when executed by the processor performs the steps of:
sending an inquiry command to at least two diagnostic connectors connected with an interface of the vehicle diagnostic upper computer;
receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command;
Corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed;
and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
Further, the ECU diagnostic program in the memory 130, when executed by the processor, also performs the steps of:
acquiring communication parameters of each ECU;
setting communication parameters of the logic channels corresponding to the ECUs based on the communication parameters of each ECU;
and diagnosing at least two ECUs through the logic channels with the communication parameters set on the basis of the target mapping configuration.
Further, the ECU diagnostic program in the memory 130, when executed by the processor, also performs the steps of:
determining a target physical channel corresponding to the target logical channel and a corresponding target diagnostic joint based on the target mapping configuration;
sending a diagnosis command to the target diagnosis joint, wherein the diagnosis command comprises a channel number corresponding to the target physical channel;
and receiving reply data returned by the target diagnosis joint through the target physical channel.
Further, the ECU diagnostic program in the memory 130, when executed by the processor, also performs the steps of:
Scanning an interface of the vehicle diagnosis upper computer to obtain a scanning result;
if the scanning result shows that the interface of the vehicle diagnosis upper computer is connected with equipment, checking the type of the connected equipment;
and if the product type of the connected equipment is the diagnosis joint type, judging that the connected equipment is a diagnosis joint connected with an interface of the vehicle diagnosis upper computer.
Further, the ECU diagnostic program in the memory 130, when executed by the processor, also performs the steps of:
receiving an inquiry command sent by a vehicle diagnosis upper computer;
and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
Further, the ECU diagnostic program in the memory 130, when executed by the processor, also performs the steps of:
responding to a diagnosis command sent by a vehicle diagnosis upper computer, and acquiring a channel number corresponding to a target physical channel contained in the diagnosis command;
Acquiring the target physical channel based on the channel number;
judging the type of the diagnosis command;
if the type of the diagnosis command is a setting type, setting communication parameters in the target physical channel based on setting parameters in the diagnosis command;
if the type of the diagnosis command is a communication type, converting communication data in the diagnosis command into a CAN format;
transmitting the communication data in the CAN format to the corresponding ECU through the target physical channel;
receiving reply data of the corresponding ECU through the target physical channel;
and returning the corresponding reply data of the ECU to the vehicle diagnosis upper computer.
According to the scheme, the method specifically comprises the steps of sending an inquiry command to at least two diagnosis connectors connected with an interface of the vehicle diagnosis upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved.
Based on the above device architecture, but not limited to the above architecture, the method embodiments of the present invention are presented.
The main body of execution of the method of the present embodiment may be an ECU diagnostic device, which may be a device-independent, data processing-capable device that may be carried on a device in the form of hardware or software.
Referring to fig. 2, fig. 2 is a flowchart illustrating an exemplary embodiment of the ECU diagnostic method of the present invention. The method is applied to a vehicle diagnosis upper computer, and the ECU diagnosis method comprises the following steps:
and step S40, sending an inquiry command to at least two diagnosis joints connected with the interface of the vehicle diagnosis upper computer.
Wherein the diagnostic connector is the vehicle communication interface VCI.
The existing method firstly diagnoses the electronic control units ECU of each bus in sequence, and switches from one road to the other road for diagnosis after diagnosis; the second method is to redesign the vehicle communication interface VCI with more CAN channels.
However, the first method has the disadvantage that the ECU on the multiple CANs cannot be diagnosed at the same time, and the signal values of the ECU on the multiple CANs at the same time point cannot be acquired for synchronous analysis. The second disadvantage of the method is that the development cost and hardware cost of redesigning and developing a new vehicle communication interface VCI are too high.
Therefore, the invention provides the ECU diagnosis method, which CAN synchronously analyze the ECU of the electronic control units on the multi-path CAN, and improves the flexibility of ECU diagnosis.
In order to better explain the device and architecture used in the present solution, an ECU diagnostic system may be introduced, to which the present implementation method is applied.
Referring to fig. 3, fig. 3 is a schematic diagram showing connection of an ECU diagnostic system in the embodiment of the invention.
As shown in fig. 3, the present invention provides an ECU diagnostic system including: the vehicle diagnostic upper computer 1000, at least two diagnostic connectors 1001, and an on-board diagnostic system OBD.
One end of at least two diagnosis joints is connected with the vehicle diagnosis upper computer, and the other end of at least two diagnosis joints is connected with the OBD through an OBD expansion interface.
The vehicle diagnosis upper computer is used for sending an inquiry command to at least two diagnosis joints connected with an interface of the vehicle diagnosis upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs;
The diagnosis connector is used for receiving an inquiry command sent by the vehicle diagnosis upper computer; and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
The connection interfaces of the diagnosis connector, the vehicle diagnosis upper computer and the on-board diagnosis system OBD can be interfaces such as USB ports, WIFI, serial ports and Bluetooth.
In one embodiment, it is assumed that the ECU diagnostic system needs two diagnostic connectors, one end of each diagnostic connector is connected with the vehicle diagnostic upper computer through a USB port, each diagnostic connector is inserted into a different USB port of the vehicle diagnostic upper computer, and then the other ends of the two diagnostic connectors are connected to the vehicle diagnostic system OBD port of the vehicle in a one-to-two manner through the vehicle diagnostic system OBD.
Specifically, the following describes the connection manner of the ECU diagnostic system by way of example: when a plurality of CAN buses of the vehicle need to be diagnosed at the same time, an extended diagnosis joint is needed to be used for combined diagnosis, such as an engine electronic control unit ECU on the power CAN buses, a vehicle door electronic control unit ECU on the vehicle body CAN buses and a navigation electronic control unit ECU on the information CAN, and if the diagnosis joint has two paths of physical channels, two diagnosis joints need to be combined for diagnosis at the same time.
And step S50, receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command.
The identification information comprises a serial number, a software version, a hardware version and the like.
Step S60, setting corresponding logic channels for at least two physical channels, respectively, and forming a target mapping configuration.
The logic channel of the vehicle diagnosis upper computer refers to a software channel used when the vehicle diagnosis upper computer communicates with the vehicle, and the physical channel of the VCI refers to an actual physical connection interface of the VCI equipment.
When the mapping configuration is performed, the logic channel of the vehicle diagnosis upper computer and the physical channel of the VCI need to be correspondingly set, so as to ensure that the vehicle diagnosis upper computer can correctly communicate with the vehicle.
For example, physical lane 1 of vehicle communication interface VCI1 is configured as logical lane 1, physical lane 2 of vehicle communication interface VCI1 is configured as logical lane 2, and physical lane 1 of vehicle communication interface VCI2 is configured as logical lane 3.
In one embodiment, the configuration table may be generated when mapping configuration is performed.
Then, by configuring the target mapping relation between the logic channel and the physical channel of the VCI, the vehicle diagnosis upper computer can accurately communicate with the OBD port of the vehicle through the VCI, thereby acquiring the diagnosis information of the vehicle, executing the diagnosis operation or performing other functional operations.
And step S90, diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
In one embodiment, the target physical channel corresponding to the target logical channel and the corresponding target diagnostic connector may be determined based on the target mapping configuration, then a diagnostic command is sent to the target diagnostic connector, the diagnostic command includes a channel number corresponding to the target physical channel, and finally reply data returned by the target diagnostic connector through the target physical channel is received.
According to the scheme, the query command is sent to at least two diagnosis connectors connected with the interface of the vehicle diagnosis upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating another exemplary embodiment of the ECU diagnostic method of the present invention.
Based on the embodiment shown in fig. 2, the step S60 sets corresponding logical channels for at least two physical channels, and includes:
and step S70, acquiring communication parameters of each ECU.
In order to ensure that the vehicle diagnosis upper computer can effectively communicate with each ECU to be diagnosed, the communication parameters of each ECU to be diagnosed need to be acquired, including communication pins, communication baud rate, communication filter ID and the like.
And step S80, setting the communication parameters of the logic channels corresponding to the ECUs based on the communication parameters of each ECU.
Specifically, as an implementation manner, the communication pins of the logic channel 1 are set to 6 and 14 and are used for communicating with the engine electronic control unit ECU of the power CAN bus, the communication pins of the logic channel 2 are set to 3 and 11 and are used for communicating with the vehicle door electronic control unit ECU of the vehicle body CAN, and the communication pins of the logic channel 3 are set to 12 and 13 and are used for communicating with the navigation electronic control unit ECU of the information CAN.
Wherein, the communication parameters of each logic channel can be set independently.
Referring to fig. 5, fig. 5 is a flowchart illustrating another exemplary embodiment of the ECU diagnostic method of the present invention.
Based on the embodiment shown in fig. 2, the step S90 of diagnosing at least two ECUs through the corresponding logic channels based on the target mapping configuration includes:
step S91, diagnosing at least two ECUs through the logic channel with the communication parameters set based on the target mapping configuration.
The interface corresponding to the physical channel of the VCI can be obtained through the logic channel after the communication parameters are set based on the target mapping configuration, and then the vehicle diagnosis upper computer sends a diagnosis command to the VCI through the interface.
The correct communication parameters are set for the logic channel, so that the communication between the vehicle diagnosis upper computer and the ECU can be ensured to be normally carried out.
According to the scheme, the query command is sent to at least two diagnosis connectors connected with the interface of the vehicle diagnosis upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. The communication parameters of each ECU are acquired; setting communication parameters of the logic channels corresponding to the ECUs based on the communication parameters of each ECU; and diagnosing at least two ECUs through the logic channels with the communication parameters set on the basis of the target mapping configuration.
According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved. According to the embodiment of the invention, the communication parameters of the logic channel of the vehicle diagnosis upper computer are set based on the communication parameters of each ECU to be diagnosed, so that the vehicle diagnosis upper computer can establish reliable two-way communication with the ECU, the vehicle diagnosis upper computer can be helped to quickly and accurately locate the vehicle faults, and more accurate diagnosis results are provided.
Referring to fig. 6, fig. 6 is a flowchart illustrating another exemplary embodiment of the ECU diagnostic method of the present invention.
Based on the embodiment shown in fig. 2, the step 90 diagnoses, based on the target mapping configuration, at least two ECUs through the logic channels, where the logic channels and the ECUs are in one-to-one correspondence, and includes:
Step S92, determining a target physical channel corresponding to the target logical channel and a corresponding target diagnostic connector based on the target mapping configuration.
In one embodiment, the interface of the physical channel of the VCI corresponding to the logical channel may be obtained according to the previously generated target mapping configuration table, for example, when a command for reading the fault code is sent to the engine electronic control unit ECU through the logical channel 1, the diagnostic upper machine may obtain, through the target mapping configuration table, the physical channel 1 corresponding to the logical channel 1 and the physical channel 1 corresponding to the vehicle communication interface VCI1, and then obtain the USB port corresponding to the vehicle communication interface VCI 1.
Step S93, sending a diagnostic command to the target diagnostic connector, where the diagnostic command includes a channel number corresponding to the target physical channel.
The diagnosis command includes channel number, command type (set type/communication type), set parameter/communication data, time and other information.
Step S94, receiving reply data returned by the target diagnostic connector through the target physical channel.
In one embodiment, after receiving a command of diagnosing an upper computer through a USB port, the vehicle communication interface VCI1 first determines a command type, and if the command type is a set type, sets a communication parameter of a corresponding physical channel in the VCI based on a set parameter in the command. If the communication type is the communication type, the communication data in the command is converted into a CAN format and sent to the vehicle electronic control unit ECU through a channel designated in the command, such as channel 1. After the transmission of the vehicle communication interface VCI1 is completed, the reply data of the electronic control unit ECU is received through the channel 1, and the reply data and the physical channel number are uploaded to the diagnosis upper computer through the USB port.
And then, after receiving the reply data and the physical channel number, the diagnosis upper computer judges the physical channel number, and if the physical channel number is correct, the diagnosis upper computer transmits the reply data to a logic channel corresponding to the physical channel.
And then, diagnosing the reply data on the logic channel by the diagnosis upper computer.
According to the scheme, the query command is sent to at least two diagnosis connectors connected with the interface of the vehicle diagnosis upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. Determining a target physical channel corresponding to the target logical channel and a corresponding target diagnostic joint based on the target mapping configuration; sending a diagnosis command to the target diagnosis joint, wherein the diagnosis command comprises a channel number corresponding to the target physical channel; and receiving reply data returned by the target diagnosis joint through the target physical channel.
According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved. According to the embodiment of the invention, the corresponding target diagnosis joint is obtained according to the target mapping configuration, so that the diagnosis command can be ensured to be correctly sent to the target diagnosis joint, and the communication efficiency and stability are improved.
Referring to fig. 7, fig. 7 is a flowchart illustrating another exemplary embodiment of the ECU diagnostic method of the present invention.
Based on the embodiment shown in fig. 2, the step S40 includes, before sending the query command to at least two diagnostic connectors connected to the interface of the vehicle diagnostic upper computer:
and step S10, scanning an interface of the vehicle diagnosis upper computer to obtain a scanning result.
The vehicle diagnosis upper computer scans all interfaces and checks whether the interfaces on the vehicle diagnosis upper computer are connected with equipment or not.
And step S20, if the scanning result shows that the interface of the vehicle diagnosis upper computer is connected with equipment, checking the type of the connected equipment.
And step S30, judging that the connected equipment is a diagnosis joint connected with an interface of the vehicle diagnosis upper computer if the product type of the connected equipment is the diagnosis joint type.
The method and the device can ensure that only the real diagnostic connector can continue to execute the subsequent command query operation by checking the product type of the equipment connected with the vehicle diagnostic upper computer. The step of identifying the device improves the safety and reliability of the system and avoids the problem caused by the fact that an incorrect command is sent to a non-diagnostic connector.
According to the scheme, the query command is sent to at least two diagnosis connectors connected with the interface of the vehicle diagnosis upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. The interface of the vehicle diagnosis upper computer is scanned to obtain a scanning result; if the scanning result shows that the interface of the vehicle diagnosis upper computer is connected with equipment, checking the type of the connected equipment; and if the product type of the connected equipment is the diagnosis joint type, judging that the connected equipment is a diagnosis joint connected with an interface of the vehicle diagnosis upper computer.
According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved. The method and the device can ensure that only the real VCI device can execute the subsequent command query operation by checking the product type of the device connected with the vehicle diagnosis upper computer. This step of device identification improves the security and reliability of the system and avoids the problems caused by erroneous commands being sent to non-VCI devices.
Referring to fig. 8, fig. 8 is a flowchart of another exemplary embodiment of the ECU diagnostic method of the present invention. The method is applied to a VCI, the method comprising:
step S100, an inquiry command sent by the vehicle diagnosis upper computer is received.
And step 200, returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
The identification information comprises a serial number, a software version, a hardware version and the like.
Specifically, as an implementation mode, a channel number corresponding to a target physical channel contained in a diagnosis command is obtained in response to the diagnosis command sent by a vehicle diagnosis upper computer; acquiring the target physical channel based on the channel number; judging the type of the diagnosis command; if the type of the diagnosis command is a setting type, setting communication parameters in the target physical channel based on setting parameters in the diagnosis command; if the type of the diagnosis command is a communication type, converting communication data in the diagnosis command into a CAN format; transmitting the communication data in the CAN format to the corresponding ECU through the target physical channel; receiving reply data of the corresponding ECU through the target physical channel; and returning the corresponding reply data of the ECU to the vehicle diagnosis upper computer.
According to the scheme, the query command sent by the vehicle diagnosis upper computer is received; and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved.
Referring to fig. 9, fig. 9 is a flowchart of another exemplary embodiment of the ECU diagnostic method of the present invention.
Based on the embodiment shown in fig. 8, the step S200 returns, according to the query command, identification information and information of physical channels to the vehicle diagnosis upper computer, so that the vehicle diagnosis upper computer sets corresponding logic channels for at least two physical channels respectively, forms a target mapping configuration, and diagnoses at least two ECUs through the logic channels based on the target mapping configuration, where the logic channels and the ECUs are in one-to-one correspondence, and then includes:
step S300, responding to a diagnosis command sent by a vehicle diagnosis upper computer, and acquiring a channel number corresponding to a target physical channel contained in the diagnosis command.
When responding to the diagnosis command sent by the vehicle diagnosis upper computer, the VCI analyzes the received diagnosis command and extracts the channel number of the target physical channel contained in the received diagnosis command.
Step S400, acquiring the target physical channel based on the channel number.
Wherein the target physical channel is acquired based on the channel number, the VCI is able to accurately route diagnostic commands onto the correct physical channel, thereby ensuring efficient communication with the target electronic control unit ECU. Through this flow, the VCI enables the understanding and distribution of diagnostic commands for reliable diagnostic communication with the vehicle.
Step S500, judging the type of the diagnosis command.
The types of the diagnostic command may include a setup type and a communication type, among others, as an embodiment.
Step S600, if the type of the diagnostic command is a set type, setting the communication parameters in the target physical channel based on the set parameters in the diagnostic command.
Wherein when the type of the diagnostic command is determined as the set type, the command is used to set the communication parameters of the VCI to ensure effective communication with the ECU.
The diagnostic command carries a setting parameter, and the communication parameter of the corresponding physical channel in the VCI can be set according to the setting parameter in the diagnostic command.
And step S700, if the type of the diagnosis command is a communication type, converting communication data in the diagnosis command into a CAN format.
Wherein, when the type of the diagnostic command is judged as the communication type, the diagnostic command is used for actual data exchange and communication operation, and the diagnostic command carries communication data.
Among them, in the diagnosis process, CAN is generally used as a communication protocol format, and therefore, it is first necessary to convert communication data in a diagnosis command into CAN format in order to communicate with the ECU.
Step S800, sending the communication data in CAN format to the corresponding ECU through the target physical channel.
The VCI sends the communication data in the CAN format to the corresponding ECU by utilizing the target physical channel information provided in the diagnosis command. The VCI transmits the prepared communication data to the target ECU by connecting to a CAN bus or other designated CAN physical channel. Such communication data may include diagnostic requests, control commands, or other data that may be required to interact with the ECU. By using the appropriate protocol format and communication means, the VCI ensures that the communication data is properly transferred to the target ECU for subsequent diagnostic or control operations.
And step S900, receiving corresponding reply data of the ECU through the target physical channel.
Wherein the VCI is capable of receiving response or reply data sent back by the ECU by establishing a stable communication connection with the ECU. The reply data may include information regarding diagnostic results, sensor data, fault codes, or other information related to the vehicle system. The VCI will listen to the data stream on the target physical channel and ensure that reply data from the ECU is reliably received.
And step S1000, returning the corresponding reply data of the ECU to the vehicle diagnosis upper computer.
The VCI ensures that the reply data is accurately transmitted back to the host computer through a proper communication protocol and data transmission mode. In this way, the host computer can further analyze and process the reply data to obtain information about the vehicle diagnosis result, fault diagnosis and the like, and provide corresponding diagnosis reports or feedback for the user.
Specifically, the following description will be given by way of example of communication with the ECU through the physical channel, and uploading reply data and physical channel number to the vehicle diagnostic upper computer: after the vehicle communication interface VCI1 sends the communication data with the CAN format to the ECU, the reply data of the ECU is received through the channel 1, and the reply data and the physical channel number are uploaded to the diagnosis upper computer through the USB port.
According to the scheme, the query command sent by the vehicle diagnosis upper computer is received;
and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. The method comprises the steps of responding to a diagnosis command sent by a vehicle diagnosis upper computer, and obtaining a channel number corresponding to a target physical channel contained in the diagnosis command; acquiring the target physical channel based on the channel number; judging the type of the diagnosis command; if the type of the diagnosis command is a setting type, setting communication parameters in the target physical channel based on setting parameters in the diagnosis command; if the type of the diagnosis command is a communication type, converting communication data in the diagnosis command into a CAN format; transmitting the communication data in the CAN format to the corresponding ECU through the target physical channel; receiving reply data of the corresponding ECU through the target physical channel; and returning the corresponding reply data of the ECU to the vehicle diagnosis upper computer.
According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved. For a command of a setting type, the embodiment of the invention can configure the communication parameters of the corresponding physical channels in the VCI based on the setting parameters in the command, so that the communication between the VCI and the ECU can be ensured to be carried out according to the correctly configured parameters, thereby improving the communication efficiency and stability. And, for commands of the communication type, embodiments of the present invention may communicate with the ECU through the target physical channel. Through normal communication of the target physical channel, it is ensured that the diagnostic command can be correctly transmitted to the target ECU, and reply data of the target ECU is received. The embodiment of the invention CAN perform standardized communication with the target ECU by converting the communication data into the CAN format, thereby ensuring the compatibility and reliability of communication.
In addition, the embodiment of the application further provides an ECU diagnostic system, and referring to fig. 3, fig. 3 is a schematic connection diagram of the ECU diagnostic system in the embodiment of the invention.
The ECU diagnostic system includes:
the vehicle diagnosis upper computer, the diagnosis joint and the on-board diagnosis system OBD;
connecting one end of at least two diagnostic joints with the vehicle diagnostic upper computer;
connecting the other ends of at least two diagnostic connectors with the OBD through an OBD expansion interface;
the vehicle diagnosis upper computer is used for sending an inquiry command to at least two diagnosis joints connected with an interface of the vehicle diagnosis upper computer; receiving identification information returned by each diagnosis joint according to the inquiry command and information of a physical channel; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs;
the diagnosis connector is used for receiving an inquiry command sent by the vehicle diagnosis upper computer; and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
In addition, the embodiment of the application also provides an ECU diagnosis device, the device is arranged on a vehicle diagnosis upper computer, and the device comprises:
the sending module is used for sending an inquiry command to at least two diagnosis connectors connected with an interface of the vehicle diagnosis upper computer;
the receiving module is used for receiving the identification information returned by each diagnosis joint according to the inquiry command and the information of the physical channel;
the configuration module is used for respectively setting corresponding logic channels for at least two physical channels and forming target mapping configuration;
and the diagnosis module is used for diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
The present embodiment realizes the principle and implementation process of ECU diagnosis, please refer to the above embodiments, and the description thereof is omitted herein.
In addition, the embodiment of the application also provides a vehicle diagnosis device, which comprises a memory, a processor and an ECU diagnosis program stored on the memory and capable of running on the processor, wherein the ECU diagnosis program is executed by the processor to realize the steps of the ECU diagnosis method.
Because the ECU diagnostic program adopts all the technical solutions of all the embodiments described above when executed by the processor, at least all the beneficial effects brought by all the technical solutions of all the embodiments described above are provided, and will not be described in detail herein.
Furthermore, the embodiments of the present application also propose a computer-readable storage medium, on which an ECU diagnostic program is stored, which when executed by a processor implements the steps of the ECU diagnostic method as described above.
Because the ECU diagnostic program adopts all the technical solutions of all the embodiments described above when executed by the processor, at least all the beneficial effects brought by all the technical solutions of all the embodiments described above are provided, and will not be described in detail herein.
According to the scheme, the method specifically comprises the steps of sending an inquiry command to at least two diagnosis connectors connected with an interface of the vehicle diagnosis upper computer; receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs. According to the embodiment of the invention, the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint are subjected to target mapping configuration, so that the corresponding relationship between the logic channel of the vehicle diagnosis upper computer and the physical channel of the diagnosis joint can be established. When at least two Electronic Control Unit (ECU) need to be diagnosed, the physical channels of the diagnosis joint can be in one-to-one correspondence with each electronic control unit ECU, and then synchronous analysis can be carried out on each electronic control unit ECU based on the mapping configuration of the logic channels of the vehicle diagnosis upper computer and the physical channels of the diagnosis joint, so that the flexibility of ECU diagnosis is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or method that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, a controlled terminal, or a network device, etc.) to perform the method of each embodiment of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.
Claims (10)
1. An ECU diagnostic method, which is applied to a vehicle diagnostic host computer, comprising the steps of:
sending an inquiry command to at least two diagnostic connectors connected with an interface of the vehicle diagnostic upper computer;
receiving identification information and physical channel information returned by each diagnosis joint according to the inquiry command;
corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed;
and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
2. The method according to claim 1, wherein the step of setting corresponding logical channels for at least two physical channels, respectively, and forming a target mapping configuration includes:
Acquiring communication parameters of each ECU;
setting communication parameters of the logic channels corresponding to the ECUs based on the communication parameters of each ECU;
based on the target mapping configuration, the step of diagnosing at least two ECUs through the corresponding logical channels includes:
and diagnosing at least two ECUs through the logic channels with the communication parameters set on the basis of the target mapping configuration.
3. The method of claim 1, wherein the step of diagnosing at least two ECUs through the logical channel based on the target mapping configuration comprises:
determining a target physical channel corresponding to the target logical channel and a corresponding target diagnostic joint based on the target mapping configuration;
sending a diagnosis command to the target diagnosis joint, wherein the diagnosis command comprises a channel number corresponding to the target physical channel;
and receiving reply data returned by the target diagnosis joint through the target physical channel.
4. The method of claim 1, wherein the step of sending an interrogation command to at least two diagnostic connectors interfaced with the vehicle diagnostic upper computer is preceded by:
Scanning an interface of the vehicle diagnosis upper computer to obtain a scanning result;
if the scanning result shows that the interface of the vehicle diagnosis upper computer is connected with equipment, checking the type of the connected equipment;
and if the product type of the connected equipment is the diagnosis joint type, judging that the connected equipment is a diagnosis joint connected with an interface of the vehicle diagnosis upper computer.
5. An ECU diagnostic method, wherein the method is applied to diagnosing a joint, the method comprising:
receiving an inquiry command sent by a vehicle diagnosis upper computer;
and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
6. The ECU diagnostic method according to claim 5, characterized in that the step of returning identification information and information of a physical channel to the vehicle diagnostic upper computer according to the inquiry command includes, after:
Responding to a diagnosis command sent by a vehicle diagnosis upper computer, and acquiring a channel number corresponding to a target physical channel contained in the diagnosis command;
acquiring the target physical channel based on the channel number;
judging the type of the diagnosis command;
if the type of the diagnosis command is a setting type, setting communication parameters in the target physical channel based on setting parameters in the diagnosis command;
if the type of the diagnosis command is a communication type, converting communication data in the diagnosis command into a CAN format;
transmitting the communication data in the CAN format to the corresponding ECU through the target physical channel;
receiving reply data of the corresponding ECU through the target physical channel;
and returning the corresponding reply data of the ECU to the vehicle diagnosis upper computer.
7. An ECU diagnostic system, characterized in that the ECU diagnostic system comprises:
the vehicle diagnosis upper computer, the diagnosis joint and the on-board diagnosis system OBD;
connecting one end of at least two diagnostic joints with the vehicle diagnostic upper computer;
connecting the other ends of at least two diagnostic connectors with the OBD through an OBD expansion interface;
The vehicle diagnosis upper computer is used for sending an inquiry command to at least two diagnosis joints connected with an interface of the vehicle diagnosis upper computer; receiving identification information returned by each diagnosis joint according to the inquiry command and information of a physical channel; corresponding logic channels are respectively set for at least two physical channels, and target mapping configuration is formed; diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs;
the diagnosis connector is used for receiving an inquiry command sent by the vehicle diagnosis upper computer; and returning identification information and information of physical channels to the vehicle diagnosis upper computer according to the inquiry command so that the vehicle diagnosis upper computer can respectively set corresponding logic channels for at least two physical channels and form target mapping configuration, and diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
8. An ECU diagnostic device provided in a vehicle diagnostic host computer, the device comprising:
The sending module is used for sending an inquiry command to at least two diagnosis connectors connected with an interface of the vehicle diagnosis upper computer;
the receiving module is used for receiving the identification information returned by each diagnosis joint according to the inquiry command and the information of the physical channel;
the configuration module is used for respectively setting corresponding logic channels for at least two physical channels and forming target mapping configuration;
and the diagnosis module is used for diagnosing at least two ECUs through the logic channels based on the target mapping configuration, wherein the logic channels are in one-to-one correspondence with the ECUs.
9. A vehicle diagnostic apparatus comprising a memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor implements the ECU diagnostic method of any one of claims 1-4 or the ECU diagnostic method of any one of claims 5-6.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the ECU diagnostic method according to any one of claims 1 to 4 or the ECU diagnostic method according to any one of claims 5 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311061166.XA CN117250934A (en) | 2023-08-22 | 2023-08-22 | ECU diagnosis method, device, system, storage medium and vehicle diagnosis apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311061166.XA CN117250934A (en) | 2023-08-22 | 2023-08-22 | ECU diagnosis method, device, system, storage medium and vehicle diagnosis apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117250934A true CN117250934A (en) | 2023-12-19 |
Family
ID=89132136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311061166.XA Pending CN117250934A (en) | 2023-08-22 | 2023-08-22 | ECU diagnosis method, device, system, storage medium and vehicle diagnosis apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117250934A (en) |
-
2023
- 2023-08-22 CN CN202311061166.XA patent/CN117250934A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7493198B2 (en) | Method and device for a vehicle-related telematics service | |
CN109656172B (en) | Method and device for obtaining baud rate | |
CN1606761A (en) | Method and device for a vehicle-related telematics service | |
CN109407656B (en) | Scanning method of electronic control unit in vehicle and automobile diagnosis device thereof | |
KR20040036944A (en) | Method for carrying out a telediagnosis on a motor vehicle, vehicle diagnosis module and service center | |
CN109873733B (en) | Automobile bus communication method and system, remote terminal and automobile diagnosis equipment | |
CN111506047B (en) | Vehicle diagnosis method, device and storage medium | |
CN111130967A (en) | Automobile diagnosis network topological structure | |
EP0869039A2 (en) | Vehicle communication control apparatus and method | |
CN113406946B (en) | Automobile diagnosis method and device and automobile diagnosis equipment | |
CN108445860B (en) | Diagnostic apparatus, diagnostic request processing method, and computer-readable storage medium | |
CN112927392A (en) | Communication method, vehicle communication interface device and readable storage medium | |
CN114326672A (en) | ECU simulation detection method, electronic device and storage medium | |
US11508191B1 (en) | Vehicle diagnostic interface device | |
CN112003774B (en) | Method, system and storage medium for checking error frame of automobile CAN bus | |
CN117250934A (en) | ECU diagnosis method, device, system, storage medium and vehicle diagnosis apparatus | |
JP2002301997A (en) | Failure diagnosis device for automobile | |
CN113406944A (en) | Vehicle diagnosis method, apparatus, device and computer readable storage medium | |
CN113507402A (en) | TBOX diagnosis method for passive CAN | |
CN116319499A (en) | Diagnostic method and device for vehicle, electronic equipment and storage medium | |
CN112817888B (en) | OBD device state setting method and device, OBD device and storage medium | |
JP3716796B2 (en) | Fault diagnosis device for vehicles | |
JP4441556B2 (en) | Control method for vehicle power generation system | |
CN114328229A (en) | Over-the-air technology test system | |
CN112199389A (en) | Automobile system scanning method and device, automobile diagnosis equipment and storage medium |
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 |