OBD diagnosis method and system based on instrument implementationTechnical Field
The invention belongs to the technical field of vehicle diagnosis, and particularly relates to an OBD diagnosis method and system based on instrument implementation.
Background
The OBD diagnosis is also called as automatic diagnosis system for vehicle, and the system mainly monitors whether the tail gas of automobile exceeds standard or the system fails at any time from the running condition of engine, and gives out warning when the tail gas exceeds standard, and when the system fails, the fault lamp is turned on, and at the same time the control module stores the fault information into the memory and derives the fault code from the control module by means of a certain program, so that the maintainer can quickly and accurately determine the fault property and position according to the fault code.
The existing OBD diagnosis system comprises an OBD diagnosis interface, the OBD diagnosis interface is connected with each Electronic Control Unit (ECU) of the automobile, parameters of the ECU are read when the automobile breaks down so as to carry out fault diagnosis on the ECU, but the OBD diagnosis interface comprises sixteen bus interfaces, nine currently developed bus interface protocols are provided, the nine interfaces have fixed communication protocols, the connection between the electronic control units and the OBD diagnosis interface has fixed corresponding relations, and diagnosis is inconvenient due to limitations of the communication protocols when fault diagnosis is carried out, for example, most of OBD diagnosis protocols used by the automobile in the market at present comprise diagnostic protocols such as ISO15765 and SAEJ1939, the support degree of most of OBD diagnosis equipment in the market is only good for the support degree of ISO15765, the support degree of other diagnostic protocols such as SAEJ1939 is incomplete or not supported, and the electronic control unit which is not suitable for the ISO15765 is not provided, so that a certain electronic control unit of the automobile often has the problem that the OBD diagnosis cannot be realized due to the fact that the electronic control unit does not have bus OBD diagnosis capability, and the development of a new bus interface is required, and the cost is high.
Disclosure of Invention
The invention aims to provide an OBD diagnosis method and system based on instrument implementation, which are used for solving the problem that the communication protocol is limited in the existing OBD diagnosis technology.
The invention provides a basic scheme I, which is an OBD diagnosis method realized based on an instrument, comprising the following steps:
The instrument and the diagnostic equipment are in communication connection in a bus mode through an OBD diagnostic interface, and meanwhile, the instrument and the vehicle electronic control unit are connected through a bus or a non-bus;
The diagnosis equipment initiates a diagnosis request to the instrument through the OBD diagnosis interface, and the instrument acquires diagnosis response data from the electronic control unit after receiving the diagnosis request;
the instrument converts the acquired diagnosis response data into a return response data packet consistent with a request protocol of the diagnosis equipment and returns the return response data packet to the diagnosis equipment;
the diagnostic device runs the fault identification job based on the returned response data packet and generates a diagnostic job result.
The principle and the advantages of the basic scheme I provided by the invention are that in the prior art, the diagnosis equipment is connected with the OBD diagnosis interface of the vehicle to read parameters of the electric control unit so as to perform fault identification, the communication protocol is fixed, the diagnosis is inconvenient due to the limitation of the communication protocol during diagnosis, the problem that the OBD diagnosis of a certain electric control unit of the vehicle cannot be realized due to the fact that the OBD diagnosis capability of the bus is not provided is frequently caused, a new bus interface needs to be developed, and the cost is high.
Therefore, in order to solve the related problems in the prior art, the instrument is firstly connected with the diagnostic equipment through an OBD diagnostic interface in a certain bus communication mode, and is connected with other electronic control units of the vehicle through various communication modes (buses or non-buses), after receiving diagnostic requests initiated by the diagnostic equipment, the instrument acquires diagnostic response data through the communication modes with the other electronic control units, converts the data into response data packets consistent with the request protocols of the diagnostic equipment, and returns the response data packets to the diagnostic equipment, the diagnostic equipment operates fault identification operation according to the received response data packets to generate diagnostic operation results, and in addition, the instrument serves as necessary equipment of the vehicle, has connection relation with part of the electronic control units in the vehicle, and bears the function of displaying part of the faults of the electronic control units.
The invention has the advantages that (1) the instrument is connected with each electric control unit in the vehicle, the instrument and the diagnostic equipment can be connected with the same bus interface through the OBD diagnostic interface, so that the service diagnostic request protocol of the diagnostic equipment is converted into the service diagnostic protocol consistent with the electric control unit, and the problem of communication limitation in the OBD diagnostic technology is solved, (2) the communication limitation in the OBD diagnostic technology of the vehicle is solved through the instrument, the instrument belongs to necessary equipment of the vehicle, on one hand, the instrument is also connected with other electric control units to bear the function of displaying part of the electric control unit faults, on the other hand, no additional switching port or switching equipment is required to be installed, the applicability is high, the installation cost is saved, the instrument and the OBD diagnostic interface are both positioned at the front end of the vehicle, the use is convenient, and (4) the instrument is connected with other electric control units in the vehicle, and then the instrument is connected with other electric control units in the vehicle, so as to provide the OBD diagnostic function for other electric control units without the OBD diagnostic function, and thus providing the OBD diagnostic interface proxy function with low cost.
Further, the diagnostic response data includes real-time fault data, historical fault data, and fault freeze frame data.
The method has the beneficial effects that the real-time fault data is a section of data of the instrument for collecting faults from no faults to faults of the electric control unit, the historical fault data is data of the electric control unit when faults occur in a historical mode, the historical fault data are used for making reference for the fault diagnosis, the fault freezing frame data are frame data frozen when the electric control unit breaks down, and the frame data contain information such as reasons and the like when the faults occur.
Further, the diagnosis device initiates a diagnosis request to the instrument through the OBD diagnosis interface, and the obtaining of diagnosis response data from the electronic control unit after the instrument receives the diagnosis request further includes:
and the instrument operates fault identification operation according to the read diagnosis response data and generates an instrument operation result.
The intelligent fault diagnosis device has the advantages that the instrument is used as necessary equipment of the vehicle, has stronger calculation and storage capacity compared with the electric control unit, can perform a fault diagnosis function under the condition that no diagnosis equipment exists, can store a certain amount of diagnosis historical data of the electric control unit, is beneficial to finding out fault generation processes, and is convenient to find out fault reasons.
Further, the method further comprises the following steps:
feeding back the operation result and the diagnosis operation result of the instrument to a user side to obtain a user solution and a fault solution;
and (3) performing fault identification operation on the instrument for the second time, generating a secondary instrument operation result, and if the fault in the secondary instrument operation result is solved, generating a fault log record.
The method has the advantages that the user side can be used for a user to make a solution to the diagnosis result, meanwhile, the calculation capability of the instrument can provide a verification function when the user solves the problem, the instrument can also generate fault log records after the fault problem is solved, and the fault log records can be used as historical fault data.
The invention provides a basic scheme II, which is based on an instrument and comprises an instrument, an OBD diagnosis interface and diagnosis equipment, wherein the instrument and the diagnosis equipment are in communication connection in a bus mode through the OBD diagnosis interface, the instrument and a vehicle electric control unit are connected through a bus or a non-bus, the diagnosis equipment is used for sending a diagnosis request protocol to the instrument through the OBD diagnosis interface, the instrument comprises a data acquisition module, a protocol conversion module, a transmission module and a control module, the data acquisition module, the protocol conversion module and the transmission module are electrically connected with a controller, the data acquisition module is used for acquiring diagnosis response data from the electric control unit after receiving a diagnosis request, the protocol conversion module is used for converting the acquired diagnosis response data into a return response data packet consistent with the diagnosis equipment request protocol, the control module is used for controlling the transmission module to transmit the return response data packet to the diagnosis equipment, and the diagnosis equipment is also used for generating a diagnosis operation result according to the operation fault identification operation of the return response data packet.
In the prior art, the diagnosis equipment is connected with an OBD diagnosis interface of a vehicle to read parameters of an electronic control unit so as to perform fault identification, a communication protocol is fixed, the diagnosis is inconvenient due to the limitation of the communication protocol during diagnosis, and the problem that the OBD diagnosis of a certain electronic control unit of the vehicle cannot be realized due to the fact that the OBD diagnosis capability of a bus is not provided is frequently caused, so that a new bus interface needs to be developed, and the cost is high.
Therefore, in order to solve the related problems in the prior art, the instrument is firstly connected with the diagnostic equipment through an OBD diagnostic interface in a certain bus communication mode, and is connected with other electronic control units of the vehicle through various communication modes (buses or non-buses), after receiving diagnostic requests initiated by the diagnostic equipment, the instrument acquires diagnostic response data of the other electronic control units through a data acquisition module, converts the data into response data packets consistent with the request protocol of the diagnostic equipment through a protocol conversion module, and then controls a transmission module to return to the diagnostic equipment through a control module, the diagnostic equipment operates fault identification operation according to the received response data packets to generate diagnostic operation results, and in addition, the instrument is used as a necessary device of the vehicle and has connection relation with part of electronic control units in the vehicle to bear the function of displaying part of the faults of the electronic control units.
The invention has the advantages that (1) the instrument is connected with each electric control unit in the vehicle, the instrument and the diagnostic equipment can be connected with the same bus interface through the OBD diagnostic interface, so that the service diagnostic request protocol of the diagnostic equipment is converted into the service diagnostic protocol consistent with the electric control unit, and the problem of communication limitation in the OBD diagnostic technology is solved, 2) the communication limitation in the OBD diagnostic technology of the vehicle is solved through the instrument, the instrument belongs to necessary equipment of the vehicle, on one hand, the instrument is also connected with other electric control units to bear the function of displaying part of the electric control unit faults, on the other hand, no additional switching port or switching equipment is required to be installed, the applicability is high, the installation cost is saved, 3) the instrument and the OBD diagnostic interface are both positioned at the front end of the vehicle, the use is convenient, 4) the instrument is connected with other electric control units in the vehicle, and then the instrument is connected with other electric control units in the vehicle, so as to provide the OBD diagnostic function for other electric control units without the OBD diagnostic function, and thus providing the OBD diagnostic interface proxy function with low cost.
Further, the diagnostic response data includes real-time fault data, historical fault data, and fault freeze frame data.
The method has the beneficial effects that the real-time fault data is a section of data of the instrument for collecting faults from no faults to faults of the electric control unit, the historical fault data is data of the electric control unit when faults occur in a historical mode, the historical fault data are used for making reference for the fault diagnosis, the fault freezing frame data are frame data frozen when the electric control unit breaks down, and the frame data contain information such as reasons and the like when the faults occur.
Further, the instrument further comprises a fault identification module, wherein the fault identification module is electrically connected with the control module, and the fault identification module is used for running fault identification operation according to the acquired diagnosis response data and generating an instrument operation result.
The intelligent vehicle fault diagnosis system has the advantages that the instrument is used as necessary equipment of the vehicle, has stronger calculation and storage capacity compared with an electric control unit, can perform a fault diagnosis function under the condition that no diagnosis equipment exists through the fault recognition module, can display fault diagnosis results, can display fault investigation means, proposal solutions and the like of a manufacturer aiming at fault occurrence according to the fault diagnosis results, can compare the diagnosis results made by the instrument with the diagnosis results of the diagnosis equipment, is beneficial to analyzing the difference of the diagnosis results, and is convenient to find out fault reasons.
Further, the system also comprises a user end which is in communication connection with the instrument and the diagnostic equipment, the instrument also comprises a recording module, the user end is used for receiving the instrument operation result and the diagnostic operation result and generating a user solution, the fault identification module is also used for secondarily running fault identification operation after the fault is solved, generating a secondary instrument operation result, and if the fault is solved in the secondary instrument operation result, generating a fault log record by the recording module.
The method has the advantages that the user side can be used for a user to make a solution to the diagnosis result, meanwhile, the fault identification module of the instrument can provide a verification function when the user solves the problem, the recording module in the instrument can also generate fault log records after the fault problem is solved, and the fault log records can be used as historical fault data.
Drawings
FIG. 1 is a flow chart of an embodiment of the present invention;
FIG. 2 is a functional block diagram of an embodiment of the present invention;
FIG. 3 is a block diagram of an implementation process of an embodiment of the present invention;
FIG. 4 is a schematic block diagram of an example one of an embodiment of the present invention;
FIG. 5 is a block diagram of an implementation of example one of embodiments of the present invention;
FIG. 6 is a schematic block diagram of an example two in an embodiment of the invention;
FIG. 7 is a block diagram illustrating an implementation of example two in an embodiment of the present invention;
Fig. 8 is a schematic block diagram of an instrument system in an embodiment of the invention.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention, and that although a logical order is shown in the embodiments, in some cases the steps shown or described may be performed in a different order than that shown or described.
The following is a further detailed description of the embodiments:
An embodiment is generally shown in fig. 1,2 and 3, an OBD diagnostic method implemented based on a meter, comprising:
The first step is that the instrument and the diagnosis equipment are in communication connection in a bus mode through an OBD diagnosis interface, and meanwhile, the instrument and the vehicle electric control unit are connected through a bus or a non-bus.
In this embodiment, the instrument is connected to the OBD diagnostic interface of the vehicle by a communication method such as a CAN bus or Klinezon, ethernet, and the diagnostic device is connected to the OBD diagnostic interface by a predetermined diagnostic protocol, for example, a diagnostic protocol of the CAN bus.
And secondly, the diagnosis equipment initiates a diagnosis request to the instrument through the OBD diagnosis interface, and the instrument acquires diagnosis response data from the electronic control unit after receiving the diagnosis request.
Wherein the diagnostic response data includes real-time fault data, historical fault data, and fault freeze frame data.
And thirdly, the instrument converts the acquired diagnosis response data into a return response data packet consistent with a request protocol of the diagnosis equipment and returns the return response data packet to the diagnosis equipment.
In this embodiment, the diagnostic device sends a diagnostic request protocol to the meter through the OBD diagnostic interface, as in the examples shown in fig. 4 and 5, the diagnostic device reads the current DTC (service diagnostic request) fault code of the engine, the diagnostic device is connected with the OBD diagnostic interface through the CAN bus, the meter is also connected with the OBD diagnostic interface through the CAN bus, meanwhile, the meter is also connected with the engine ECU through the Kline bus, the diagnostic device initiates a service diagnostic request based on ISO15031 through the CAN, wherein the address of the engine ECU diagnostic request is mapped to 0x700 on the OBD, the response address is 0x708, the meter initiates a request for establishing communication based on ISO14230 to the engine ECU through the Kline after receiving the diagnostic request, namely, after the communication between the meter and the engine ECU is successfully established, i.e. after unlocking is successful, the meter initiates a service request based on ISO14230 to the engine ECU, the meter acquires the diagnostic response data of the engine ECU, converts the diagnostic response data into the return diagnostic response data of ISO 15033 transmitted back to the diagnostic device, and finally the meter sends the converted return diagnostic response data of the engine ECU back to the diagnostic device through the CAN bus.
In order to realize multi-protocol conversion, in other embodiments of the present embodiment, as shown in fig. 6 and 7, the second example is included, where the diagnostic device reads the current rotation speed of the motor, and the diagnostic device initiates a service diagnostic request based on ISO14229 through the CAN bus, where the address of the motor diagnostic request is mapped to 0x710 on the OBD, the response address is 0x718, the meter captures the frequency signal sent by the motor through the PWM waveform after receiving the diagnostic request, after the meter acquires the motor frequency signal, analyzes and converts the motor frequency signal into the motor rotation speed, then converts the motor frequency signal into the returned diagnostic response data returned to the ISO14229 of the diagnostic device, and finally the meter sends the converted ISO14229 returned diagnostic response data back to the diagnostic device through the CAN bus.
In the above two examples, the diagnostic response data obtained by the meter includes real-time fault data, historical fault data and fault freezing frame data, where the real-time fault data is a section of data from when the meter collects the electric control unit from no fault to when the electric control unit fails, the historical fault data is data when the electric control unit fails in a historical manner, and is used to make a reference for the fault diagnosis, the fault freezing frame data is frame data frozen when the electric control unit fails, and the frame data includes information such as reasons when the electric control unit fails.
In the second step, the method further comprises the steps that the instrument operates fault identification operation according to the acquired diagnosis response data and generates an instrument operation result.
In this embodiment, a fault recognition module and a storage module are disposed in the meter, where the fault recognition module is configured to perform fault recognition and analysis on a received fault code of the ECU, and perform fault recognition operation, so as to generate a meter operation result, and the meter has a relatively strong computing capability through the fault recognition module, where the generated meter operation result is stored in the storage module, and where the meter can be connected with each ECU in the vehicle through a bus, and when one ECU does not have an OBD diagnosis function, for example, when performing fault diagnosis on an agricultural mechanical device, the meter can be connected with the ECU in the agricultural machine, so as to switch over an OBD diagnosis interface and a diagnosis device, and provide an OBD diagnosis interface proxy function with low cost.
In addition, when the existing diagnostic protocol or diagnostic standard is changed, the instrument further comprises a wireless communication module, and a user can be in wireless communication connection with the instrument through the mobile terminal, so that firmware or software of the instrument is updated, and the instrument can be compatible with the new standard and protocol, wherein the wireless communication module comprises a Bluetooth module, a WIFI module, a 4G module and a 5G module, and in the embodiment, the wireless communication module is the Bluetooth module.
Step four, the diagnosis equipment operates the fault identification operation according to the return packet to generate a diagnosis operation result;
And fifthly, feeding back the operation result and the diagnosis operation result of the instrument to the user side to obtain a user solution and a fault solution.
In this embodiment, the diagnostic device receives a return packet transmitted back by the meter, reads and analyzes data in the return packet, generates a diagnostic operation result, and sends the diagnostic operation result and the meter diagnostic result to the user terminal for the user to solve the problem, and the meter further provides a transmission interface, for example, if the fault problem in the ECU is a software problem, the user rewrites related software in the user terminal, and then transmits the rewritten software to the corresponding ECU through the transmission interface of the meter, thereby achieving the purpose of solving the fault problem.
And step six, performing fault identification operation on the instrument for the second time, generating a secondary instrument operation result, and if the faults in the secondary instrument operation result are solved, generating a fault log record.
In this embodiment, the fault identification module in the meter is further configured to provide a verification function when the fault is resolved, that is, the fault identification module of the meter runs the fault identification operation for the second time, so as to verify whether the fault still exists, if the fault is resolved in the verification result, the meter generates a fault log record for the fault, which can be used as fault history data, and can also facilitate the user to check the history fault data.
In addition, in another technical scheme of the technical scheme, the system further comprises an OBD diagnosis system based on instrument implementation, as shown in fig. 2 and 8, wherein the system comprises an instrument, an OBD diagnosis interface and diagnosis equipment, the instrument and the diagnosis equipment are in communication connection in a bus mode through the OBD diagnosis interface, the instrument and a vehicle electric control unit are connected in a bus or non-bus mode, in the embodiment, the instrument and the vehicle electric control unit are connected in the bus mode, and the diagnosis equipment is used for sending a diagnosis request protocol to the instrument through the OBD diagnosis interface.
The instrument comprises a data acquisition module, a protocol conversion module, a transmission module, a fault diagnosis module and a control module, wherein the data acquisition module, the protocol conversion module, the transmission module and the fault diagnosis module are all electrically connected with a controller, the data acquisition module is used for acquiring diagnosis response data from an electric control unit after receiving a diagnosis request, the protocol conversion module is used for converting the acquired diagnosis response data into a return response data packet consistent with a request protocol of diagnosis equipment, the control module is used for controlling the transmission module to transmit the return response data packet to the diagnosis equipment, the fault recognition module is used for operating fault recognition operation according to the acquired diagnosis response data and generating an instrument operation result, and the diagnosis equipment is also used for operating fault recognition operation according to the return response data packet and generating a diagnosis operation result.
The diagnosis response data comprise real-time fault data, historical fault data and fault freezing frame data, wherein the real-time fault data is a section of data from the failure of the electric control unit to the failure of the electric control unit, the historical fault data is data when the electric control unit fails in a historical mode, the data are used for making reference for the diagnosis of the fault, the fault freezing frame data are frame data frozen when the electric control unit fails, and the frame data comprise information such as reasons and the like when the electric control unit fails.
The fault identification module is also used for secondarily running fault identification operation after the fault is solved, generating a secondary instrument operation result, and generating a fault log record if the fault is solved in the secondary instrument operation result.
The foregoing is merely exemplary of the present application, and specific structures and features well known in the art will not be described in detail herein, so that those skilled in the art will be aware of all the prior art to which the present application pertains, and will be able to ascertain the general knowledge of the technical field in the application or prior art, and will not be able to ascertain the general knowledge of the technical field in the prior art, without using the prior art, to practice the present application, with the aid of the present application, to ascertain the general knowledge of the same general knowledge of the technical field in general purpose. It should be noted that modifications and improvements can be made by those skilled in the art without departing from the structure of the present application, and these should also be considered as the scope of the present application, which does not affect the effect of the implementation of the present application and the utility of the patent. The protection scope of the present application is subject to the content of the claims, and the description of the specific embodiments and the like in the specification can be used for explaining the content of the claims.