CN111045416B - Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message - Google Patents
Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message Download PDFInfo
- Publication number
- CN111045416B CN111045416B CN201911320840.5A CN201911320840A CN111045416B CN 111045416 B CN111045416 B CN 111045416B CN 201911320840 A CN201911320840 A CN 201911320840A CN 111045416 B CN111045416 B CN 111045416B
- Authority
- CN
- China
- Prior art keywords
- message
- diagnosis
- data
- vehicle
- format
- 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.)
- Active
Links
Images
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
-
- 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
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24065—Real time diagnostics
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Small-Scale Networks (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention utilizes the automobile standard OBDII interface to connect the diagnostic instrument with the Vector CANnase and pre-install the Vector CANoe host, and conveniently and quickly analyzes, calibrates and verifies the CAN signal of the key parameters of the whole automobile. The invention provides an analysis method for quickly and accurately positioning the corresponding relation between the whole vehicle parameters and CAN signals by using the diagnosis message under the cooperation of a diagnostic instrument, which effectively improves the efficiency of the key parameters of the international advanced whole vehicle model, completes the key signal analysis by analyzing and diagnosing a CAN bus and provides important reference for the whole vehicle benchmarks.
Description
Technical Field
The invention belongs to the field of automobile electronic bus communication and diagnosis, and particularly relates to a method for analyzing a CAN signal of a whole automobile by using a diagnosis message.
Background
The CAN is a short name for a Controller Area Network (CAN), is one of the most widely used field buses internationally at present, and is particularly widely used in an automobile backbone Network. The fact that key finished vehicle parameters are marked from international advanced vehicle network signals has important value for development of domestic electric vehicles and fuel cell vehicles, but due to the fact that the load rate of key CAN networks such as power CAN and EVCAN of the international advanced electric vehicles and the fuel cell vehicles is high, a large amount of time and energy are needed by a test engineer to locate the corresponding relation between CAN signals and the finished vehicle parameters by utilizing communication messages, and the definition of the key signals of various vehicles is different, so that great difficulty in time and technology is brought to locating the finished vehicle parameters through the CAN communication message signals. Therefore, the analysis method for quickly positioning and calibrating the parameters of the whole vehicle by using the CAN diagnosis message signals by using the diagnostic apparatus has the advantages of quick and accurate analysis and no need of damaging any wire harness of the whole vehicle, and only needs to connect the vehicle diagnosis CAN, the diagnostic apparatus and the Vector CANnase from the vehicle OBDII interface.
Disclosure of Invention
In view of this, the present invention is directed to provide a method for analyzing a CAN signal of a finished vehicle by using a diagnostic message, which applies a diagnostic CAN bus, a diagnostic device, a CAN message collection tool and CAN message monitoring and recording software to complete key signal analysis by analyzing the diagnostic CAN bus, thereby providing an important reference for the finished vehicle.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a method for analyzing CAN signals of a whole vehicle by using diagnostic messages is characterized in that a diagnostic instrument is used for sending a request service to a diagnostic CAN bus and monitoring response signals after the request, a CAN message monitoring tool is used for monitoring and recording response communication messages after the request, and signals needing to be analyzed are calibrated by comparing, analyzing and calculating.
Further, the method specifically comprises the following steps:
s1: simultaneously connecting the wire harness with an OBDII interface, a diagnostic instrument and a CAN data monitoring tool of the whole vehicle;
s2: operating the diagnostic instrument to access each controller of the whole vehicle, and simultaneously utilizing a CAN data monitoring tool to acquire static diagnostic data of the real vehicle;
s3: positioning and analyzing the collected static data benchmarks ISO14229 and ISO15765 diagnosis application layer standards, and quickly positioning the corresponding relation between the vehicle static variable parameters and the diagnosis message data provided by the diagnosis instrument by referring to the diagnosis instrument data stored in the step S2;
s4: for static non-zero variable parameters corresponding to the preliminarily positioned diagnosis message in the step S3, changing the static working condition of the vehicle to change the positioned parameters from one group of stable values to another group of stable values, calculating the proportional coefficient, the signal offset, the data storage format and the data type of the corresponding vehicle static variable parameters corresponding to the diagnosis message signals, and arranging the proportional coefficient, the signal offset, the data storage format and the data type into files in an excel format;
s5: acquiring real vehicle dynamic diagnosis data according to the method in the step S2;
s6: according to the method in the step S3, rapidly positioning the corresponding relation between the variable parameters under the dynamic vehicle condition and the diagnosis message data;
s7: aiming at the dynamic non-zero variable parameters corresponding to the preliminarily positioned diagnosis message in the step S6, changing the dynamic working condition of the vehicle to change the positioned parameters from one group of stable values to another group of stable values, calculating the proportional coefficient, the signal offset, the data storage format and the data type of the corresponding vehicle dynamic variable parameters corresponding to the diagnosis message signals, and arranging the proportional coefficient, the signal offset, the data storage format and the data type into files in an excel format;
s8: compiling the analyzed whole vehicle parameter forwarding rule and arranging the whole vehicle parameter forwarding rule into a file in an excel format;
s9: writing script codes by using Vector CAPL Browser software, converting a diagnosis response message of a controller reply diagnosis instrument received on a CAN monitoring tool CAN1 channel into another CAN2 channel of the CAN monitoring tool according to a self-defined communication message format, and sending the diagnosis response message in the communication message format;
s10: compiling a communication database on the CAN2 according to the excel tables arranged in the steps S4 and S7;
s11: after dbc files are loaded, dragging each analyzed whole vehicle parameter signal identified by dbc from a Trace window into a Graphic window by using a CAPL conversion script program written in the step S9 and matching with the Graphic function of the Vector CANoe, changing the working condition of the vehicle, comparing whether the curve of the parameter in the diagnostic instrument is consistent with the curve variation trend in the Graphic window and the maximum value and the minimum value of the parameter, and if so, successfully verifying; if not, the step returns to the step of S1 to repeat the analytic positioning and calibration of the parameter.
Further, in the step S2, the data collected by the CAN data monitoring tool is recorded as a file in the asc format; and simultaneously recording the data of the diagnostic apparatus into a file in a picture format or a corresponding screen recording format.
Further, the step S8 specifically includes compiling the analyzed vehicle parameter forwarding rule, defining the message ID, the signal length significant bit, the proportionality coefficient, and the signal offset, and arranging the defined message ID, the signal length significant bit, the proportionality coefficient, and the signal offset into files in an Excel format, where different vehicle types adopt different diagnostic service standards.
Further, the method comprises the following steps: the step S9 specifically includes:
s901, sending a diagnosis request acquired from a control panel to a CAN1 channel;
s902, receiving and caching the diagnostic response ID returned by the controller and the hexadecimal original data of the diagnostic response message;
s903: processing hexadecimal original data in a diagnostic response message returned by the analysis controller, identifying and resolving effective signals corresponding to corresponding parameters according to the forwarding rule compiled in the step S8, and respectively transferring the effective signals into a self-defined structure body, wherein the effective signals comprise a forwarding communication message ID, a forwarding communication message DLC and the hexadecimal original data of the communication message;
s904: and sending the communication message which is transferred and stored in the step S903 to a CAN2 channel.
The invention also aims to provide a device for analyzing the CAN signal of the whole vehicle by using the diagnosis message, which comprises a signal analyzing device, a CAN message monitoring tool and a CAN message analyzing device, wherein the signal analyzing device is used for sending a response signal which sends a request service to a diagnosis CAN bus and monitors the request, and meanwhile, the CAN message monitoring tool is used for monitoring and recording the response communication message after the request, and the signal to be analyzed is calibrated by comparison, analysis and calculation.
Further, specifically comprise
The mounting module is used for connecting the wiring harness with an OBDII interface, a diagnostic instrument and a CAN data monitoring tool of the whole vehicle;
the first acquisition module is used for operating the diagnostic instrument to access each controller of the whole vehicle and acquiring the static diagnostic data of the real vehicle by using the CAN data monitoring tool;
the positioning analysis module is used for positioning and analyzing the collected static data benchmarks ISO14229 and ISO15765 diagnosis application layer standards, performing static variable diagnosis message data, and quickly positioning the corresponding relation between the whole vehicle static variable parameters and the diagnosis message data provided by the diagnosis instrument by referring to the diagnosis instrument data stored in the collection module;
the first calculation module is used for changing the static working condition of the vehicle to enable the positioned parameters to change from one group of stable values to another group of stable values for static non-zero variable parameters corresponding to the preliminarily positioned diagnosis messages in the positioning analysis module, calculating the proportional coefficient, the signal offset, the data storage format and the data type of the corresponding vehicle static variable parameters corresponding to the diagnosis message signals, and arranging the proportional coefficient, the signal offset, the data storage format and the data type into files in an excel format;
the second acquisition module is used for acquiring real vehicle dynamic diagnosis data according to the method of the first acquisition module;
the positioning module is used for rapidly positioning the corresponding relation between the variable parameters under the dynamic vehicle conditions and the diagnosis message data according to the method of the positioning analysis module;
the second calculation module is used for changing the dynamic working condition of the vehicle aiming at the dynamic non-zero variable parameters corresponding to the preliminarily positioned diagnosis messages in the positioning module to change the positioned parameters from one group of stable values to another group of stable values, calculating the proportional coefficient, the signal offset, the data storage format and the data type of the diagnosis message signals corresponding to the dynamic variable parameters of the whole vehicle, and arranging the proportional coefficient, the signal offset, the data storage format and the data type into files in an excel format;
the compiling module is used for compiling the analyzed whole vehicle parameter forwarding rule and arranging the whole vehicle parameter forwarding rule into a file in an excel format;
the conversion module is used for compiling script codes by using Vector CAPL Browser software, converting a diagnosis response message of the controller reply diagnosis instrument received on a CAN1 channel of the CAN monitoring tool into another CAN2 channel of the CAN monitoring tool according to a self-defined communication message format and transmitting the message in the communication message format;
the compiling module is used for compiling a communication database on the CAN2, namely a dbc file according to the excel forms sorted by the first computing module and the second computing module;
after dbc files are sent, each analyzed whole vehicle parameter signal identified by dbc is dragged into a Graphic window from a Trace window, the working condition of the vehicle is changed, whether the curve of the parameter in the diagnostic instrument is consistent with the curve change trend in the Graphic window and the maximum value and the minimum value of the parameter are compared, and if the curve of the parameter in the diagnostic instrument is consistent with the curve change trend in the Graphic window, the verification is successful; if not, the step returns to the step of S1 to repeat the analytic positioning and calibration of the parameter.
Further, the first acquisition module specifically records data acquired by the CAN data monitoring tool as a file in asc format; and simultaneously recording the data of the diagnostic apparatus into a file in a picture format or a corresponding screen recording format.
Further, the compiling module specifically compiles the parsed whole vehicle parameter forwarding rule, defines the message ID, the signal length significant bit, the proportionality coefficient and the signal offset, and arranges the message ID, the signal length significant bit, the proportionality coefficient and the signal offset into files in an Excel format, and different vehicle types adopt different diagnostic service standards.
Further, the conversion module specifically includes:
the diagnosis request sending module is used for sending the diagnosis request acquired from the control panel to the CAN1 channel;
the diagnostic response receiving module is used for receiving and caching the diagnostic response ID returned by the controller and the hexadecimal original data of the diagnostic response message;
the diagnostic response message analysis module is used for processing hexadecimal original data in the diagnostic response message returned by the analysis controller, identifying effective signals corresponding to analyzed corresponding parameters according to the forwarding rules compiled in the compiling module, and respectively forwarding the effective signals to a self-defined structural body, wherein the effective signals comprise a forwarding communication message ID, a forwarding communication message DLC and the hexadecimal original data of the communication message;
and the communication message forwarding module is used for sending the communication message which is well transferred and stored in the diagnosis response message analysis module to the CAN2 channel.
Compared with the prior art, the method for analyzing the CAN signal of the whole vehicle by using the diagnosis message has the following advantages:
the invention utilizes the diagnostic instrument to send a request service to the diagnostic CAN bus and monitor the response signal after the request, simultaneously uses the CAN message monitoring tool to monitor and record the response communication message after the request, and calibrates the signal to be analyzed through comparison, analysis and calculation. The real-time data of each controller can be monitored simultaneously by operating the control panel of the upper computer, and the diagnostic instrument can only enter one controller system to monitor the parameters of a single controller at the same time. And the system parameters of each controller of the whole vehicle are simultaneously monitored, so that the data benchmarking analysis during the later-stage performance test of the advanced vehicle type is facilitated.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate an embodiment of the invention and, together with the description, serve to explain the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic diagram of a parsing process according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an identification conversion process of a written CAPL script code according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a diagnosis analysis of a vehicle model supported by an in-vehicle controller to support 22 services in the ISO14229 standard according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a diagnosis analysis of a vehicle model in which an in-vehicle controller supports 2C service in ISO14229 standard according to an embodiment of the present invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
The present invention will be described in detail below with reference to the embodiments with reference to the attached drawings.
The invention provides a method for analyzing CAN signals of a whole vehicle by using a diagnosis message, which comprises the following steps:
s1, connecting the male end of the wiring harness divided into two parts to the OBDII interface of the whole vehicle, and simultaneously connecting the other two female ends of the wiring harness to a diagnostic instrument and a CAN data monitoring tool (Vector CANtase);
s2, operating the diagnostic instrument to access each controller of the whole vehicle, simultaneously utilizing the CAN data monitoring tool to collect static diagnostic data of the real vehicle, and recording the data as a file in asc format; simultaneously recording the data of the diagnostic apparatus into a file in a picture format or a corresponding screen recording format;
s3, positioning and analyzing the static variable diagnosis message data according to the collected static data benchmarks ISO14229, ISO15765 and other diagnosis application layer standards, and quickly positioning the corresponding relation between the vehicle static variable parameters and the diagnosis message data provided by the diagnosis instrument by referring to the diagnosis instrument data stored in the step S2;
s4, aiming at the static nonzero variable parameters corresponding to the preliminarily positioned diagnosis messages in the step S3, changing the static working conditions of the vehicle to change the positioned parameters from one group of stable values to another group of stable values, conveniently, quickly and accurately calculating the proportional coefficients, the signal offset, the data storage formats and the data types of the corresponding vehicle static variable parameters corresponding to the diagnosis message signals, and arranging the proportional coefficients, the signal offset, the data storage formats and the data types into files in an excel format;
s5, acquiring real vehicle dynamic diagnosis data according to the method in the step S2;
s6, according to the method in the step S3, the corresponding relation between the variable parameters under the dynamic vehicle condition and the diagnosis message data is quickly positioned;
s7, aiming at the dynamic nonzero variable parameters corresponding to the preliminarily positioned diagnosis messages in the step S6, the positioned parameters are changed from one group of stable values to another group of stable values by changing the dynamic working conditions of the vehicle, the proportional coefficients, the signal offset, the data storage format and the data types of the diagnosis message signals corresponding to the corresponding dynamic variable parameters of the whole vehicle are conveniently, rapidly and accurately calculated, and the proportional coefficients, the signal offset, the data storage format and the data types are arranged into files in an excel format;
s8, compiling the analyzed whole vehicle parameter forwarding rule and arranging the rule into a file in an excel format; different forwarding rules are explained by taking an in-vehicle controller supporting a 22-service vehicle type and a 2C-service vehicle type of the ISO14229 standard as examples.
According to different forwarding mechanisms, the description is made herein
S8-1, the vehicle controller supports the vehicle type served by 22 in the ISO14229 standard, and the invention carries out diagnosis and analysis according to the following process, as shown in FIG. 3.
Initializing variables, acquiring whether a parameter key is pressed down from a panel, and if not, continuing to wait; if so, a diagnostic request sending timer is started.
If the timing time is not up, continuing waiting; if the timing is up, a diagnostic request for servicing a DID is sent 22, and the corresponding DID diagnostic request is waited for.
If not, continuing to wait for response; and if so, assigning the ID of the forwarding message and the signal value of each byte, and starting a 1ms timer for forwarding the message.
If the timing time is not up, continuing waiting; and when the timing time is up, sending the forwarding message in another channel.
S8-1, the vehicle controller supports the vehicle type of the 2C service in the ISO14229 standard, and the invention carries out diagnosis and analysis according to the following process, as shown in FIG. 4.
Initializing variables, sending a dynamic data request AA 00 by physical addressing, waiting for the controller to send a communication message of a corresponding ID and judging whether byte [0] is 0x00, if not, continuing to wait; if byte [0] is 0x00, a 100ms timer is started.
Continuing waiting when the timing time is not up; when the timing time is up, the physical addressing sends a dynamic request 2C FE, judges whether the response is a corresponding physical addressing response after receiving the response, and outputs a response error if the response is not the corresponding physical addressing response; if yes, the output response is correct and a 10ms timer is started.
Continuing waiting when the timing time is not up; when the timing time is up, the physical addressing sends a dynamic request 2C FD, judges whether the response is a corresponding physical addressing response after receiving the response, and outputs a response error if the response is not the corresponding physical addressing response; if yes, the output response is correct and a 10ms timer is started.
Continuing waiting when the timing time is not up; and when the timing time is up, the physical addressing sends a dynamic request AA 03 FE FD FC, waits for the controller to send a communication message of a response ID and judges whether byte [0] is 0xFE or not.
If yes, starting a 1ms timer, and forwarding a corresponding communication message in another channel after the timing time is up; if not, the standby controller sends a communication message of the response ID and judges whether byte [0] is 0 xFD.
If yes, starting a 1ms timer, and forwarding a corresponding communication message in another channel after the timing time is up; if not, the standby controller sends a communication message of the response ID and judges whether byte [0] is 0 xFC.
If yes, starting a 1ms timer, and forwarding a corresponding communication message in another channel after the timing time is up; if not, a response error is output.
S9, writing script codes by using Vector CAPL Browser software, converting a diagnosis response message of a controller reply diagnosis instrument received on a CAN1 channel of the CAN monitoring tool into another CAN2 channel of the CAN monitoring tool according to a self-defined communication message format, and sending the diagnosis response message in the communication message format, wherein the forwarding and analyzing have the advantage of not changing the bus load rate of an original vehicle; the step of S9 further includes the following substeps:
s9-1, a diagnosis request sending module for sending the diagnosis request obtained from the control panel to a CAN1 channel;
s9-2, a diagnosis response receiving module for receiving and caching the diagnosis response ID returned by the controller and the hexadecimal original data of the diagnosis response message;
s9-3, a diagnostic response message analysis module, which is used for processing the hexadecimal original data in the diagnostic response message returned by the analysis controller, and identifying the effective signals corresponding to the analyzed corresponding parameters and respectively transferring the effective signals to a self-defined structure body according to the transfer rule compiled in the step S8, wherein the effective signals comprise a transferred communication message ID, a transferred communication message DLC and the transferred communication message hexadecimal original data;
s9-4, a communication message forwarding module, for sending the communication message which is transferred and stored in the step S9-3 to a CAN2 channel;
s10, compiling a communication database on the CAN2 according to the excel tables arranged in the steps S4 and S7;
s11, loading a communication database compiled in the S10 step in a Simulation interface CAN2 channel in Vector CANoe software of the notebook computer, dragging each analyzed whole vehicle parameter signal identified by dbc from a Trace window to a Graphic window by using a CAPL conversion script program compiled in the S9 step and matching with the Graphic function of the Vector CANoe after the dbc file is compiled, changing the working condition of the vehicle, comparing whether the curve of the parameter in the diagnostic instrument with the curve variation trend in the Graphic window and the maximum value and the minimum value of the parameter are consistent or not, and if so, successfully verifying; if not, the step returns to the step of S1 to repeat the analytic positioning and calibration of the parameter.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (8)
1. A method for analyzing CAN signals of a whole vehicle by using a diagnosis message is characterized in that: sending a request service to a diagnosis CAN bus by using a diagnostic instrument and monitoring a response signal after the request, monitoring and recording a response communication message after the request by using a CAN message monitoring tool, and calibrating a signal to be analyzed through comparison, analysis and calculation;
the method specifically comprises the following steps:
s1: simultaneously connecting the wire harness with an OBDII interface, a diagnostic instrument and a CAN data monitoring tool of the whole vehicle;
s2: operating the diagnostic instrument to access each controller of the whole vehicle, and simultaneously utilizing a CAN data monitoring tool to acquire static diagnostic data of the real vehicle;
s3: positioning and analyzing the collected static data benchmarks ISO14229 and ISO15765 diagnosis application layer standards, and quickly positioning the corresponding relation between the vehicle static variable parameters and the diagnosis message data provided by the diagnosis instrument by referring to the diagnosis instrument data stored in the step S2;
s4: for static non-zero variable parameters corresponding to the preliminarily positioned diagnosis message in the step S3, changing the static working condition of the vehicle to change the positioned parameters from one group of stable values to another group of stable values, calculating the proportional coefficient, the signal offset, the data storage format and the data type of the corresponding vehicle static variable parameters corresponding to the diagnosis message signals, and arranging the proportional coefficient, the signal offset, the data storage format and the data type into files in an excel format;
s5: acquiring real vehicle dynamic diagnosis data according to the method in the step S2;
s6: according to the method in the step S3, rapidly positioning the corresponding relation between the variable parameters under the dynamic vehicle condition and the diagnosis message data;
s7: aiming at the dynamic non-zero variable parameters corresponding to the preliminarily positioned diagnosis message in the step S6, changing the dynamic working condition of the vehicle to change the positioned parameters from one group of stable values to another group of stable values, calculating the proportional coefficient, the signal offset, the data storage format and the data type of the corresponding vehicle dynamic variable parameters corresponding to the diagnosis message signals, and arranging the proportional coefficient, the signal offset, the data storage format and the data type into files in an excel format;
s8: compiling the analyzed whole vehicle parameter forwarding rule and arranging the whole vehicle parameter forwarding rule into a file in an excel format;
s9: writing script codes by using Vector CAPL Browser software, converting a diagnosis response message of a controller reply diagnosis instrument received on a CAN monitoring tool CAN1 channel into another CAN2 channel of the CAN monitoring tool according to a self-defined communication message format, and sending the diagnosis response message in the communication message format;
s10: compiling a communication database on the CAN2 according to the excel tables arranged in the steps S4 and S7;
s11: after dbc files are loaded, dragging each analyzed whole vehicle parameter signal identified by dbc from a Trace window into a Graphic window by using a CAPL conversion script program written in the step S9 and matching with the Graphic function of the Vector CANoe, changing the working condition of the vehicle, comparing whether the curve of the parameter in the diagnostic instrument is consistent with the curve variation trend in the Graphic window and the maximum value and the minimum value of the parameter, and if so, successfully verifying; if not, the step returns to the step of S1 to repeat the analytic positioning and calibration of the parameter.
2. The method for analyzing the CAN signal of the whole vehicle by using the diagnosis message as claimed in claim 1, wherein: in the step S2, the data collected by the CAN data monitoring tool is recorded as a file in asc format; and simultaneously recording the data of the diagnostic apparatus into a file in a picture format or a corresponding screen recording format.
3. The method for analyzing the CAN signal of the whole vehicle by using the diagnosis message as claimed in claim 1, wherein: the step S8 specifically includes compiling the analyzed vehicle parameter forwarding rule, defining the message ID, the signal length significant bit, the proportionality coefficient, and the signal offset, and sorting the message ID, the signal length significant bit, the proportionality coefficient, and the signal offset into Excel-format files, where different vehicle models adopt different diagnostic service standards.
4. The method for analyzing the CAN signal of the whole vehicle by using the diagnosis message as claimed in claim 1, wherein: the step S9 specifically includes:
s901, sending a diagnosis request acquired from a control panel to a CAN1 channel;
s902, receiving and caching the diagnostic response ID returned by the controller and the hexadecimal original data of the diagnostic response message;
s903: processing hexadecimal original data in a diagnostic response message returned by the analysis controller, identifying and resolving effective signals corresponding to corresponding parameters according to the forwarding rule compiled in the step S8, and respectively transferring the effective signals into a self-defined structure body, wherein the effective signals comprise a forwarding communication message ID, a forwarding communication message DLC and the hexadecimal original data of the communication message;
s904: and sending the communication message which is transferred and stored in the step S903 to a CAN2 channel.
5. A device for analyzing CAN signals of a whole vehicle by using a diagnosis message is characterized in that: the CAN message monitoring device comprises a signal analysis device, a CAN message monitoring tool and a CAN message analyzing device, wherein the signal analysis device is used for sending a request service to a diagnosis CAN bus by using a diagnostic instrument and monitoring a response signal after the request, monitoring and recording a response communication message after the request by using the CAN message monitoring tool, and calibrating a signal to be analyzed through comparison, analysis and calculation;
the method specifically comprises the following steps:
the mounting module is used for connecting the wiring harness with an OBDII interface, a diagnostic instrument and a CAN data monitoring tool of the whole vehicle;
the first acquisition module is used for operating the diagnostic instrument to access each controller of the whole vehicle and acquiring the static diagnostic data of the real vehicle by using the CAN data monitoring tool;
the positioning analysis module is used for positioning and analyzing the collected static data benchmarks ISO14229 and ISO15765 diagnosis application layer standards, performing static variable diagnosis message data, and quickly positioning the corresponding relation between the whole vehicle static variable parameters and the diagnosis message data provided by the diagnosis instrument by referring to the diagnosis instrument data stored in the collection module;
the first calculation module is used for changing the static working condition of the vehicle to enable the positioned parameters to change from one group of stable values to another group of stable values for static non-zero variable parameters corresponding to the preliminarily positioned diagnosis messages in the positioning analysis module, calculating the proportional coefficient, the signal offset, the data storage format and the data type of the corresponding vehicle static variable parameters corresponding to the diagnosis message signals, and arranging the proportional coefficient, the signal offset, the data storage format and the data type into files in an excel format;
the second acquisition module is used for acquiring real vehicle dynamic diagnosis data according to the method of the first acquisition module;
the positioning module is used for rapidly positioning the corresponding relation between the variable parameters under the dynamic vehicle conditions and the diagnosis message data according to the method of the positioning analysis module;
the second calculation module is used for changing the dynamic working condition of the vehicle aiming at the dynamic non-zero variable parameters corresponding to the preliminarily positioned diagnosis messages in the positioning module to change the positioned parameters from one group of stable values to another group of stable values, calculating the proportional coefficient, the signal offset, the data storage format and the data type of the diagnosis message signals corresponding to the dynamic variable parameters of the whole vehicle, and arranging the proportional coefficient, the signal offset, the data storage format and the data type into files in an excel format;
the compiling module is used for compiling the analyzed whole vehicle parameter forwarding rule and arranging the whole vehicle parameter forwarding rule into a file in an excel format;
the conversion module is used for compiling script codes by using Vector CAPL Browser software, converting a diagnosis response message of the controller reply diagnosis instrument received on a CAN1 channel of the CAN monitoring tool into another CAN2 channel of the CAN monitoring tool according to a self-defined communication message format and transmitting the message in the communication message format;
the compiling module is used for compiling a communication database on the CAN2, namely a dbc file according to the excel forms sorted by the first computing module and the second computing module;
after dbc files are sent, each analyzed whole vehicle parameter signal identified by dbc is dragged into a Graphic window from a Trace window, the working condition of the vehicle is changed, whether the curve of the parameter in the diagnostic instrument is consistent with the curve change trend in the Graphic window and the maximum value and the minimum value of the parameter are compared, and if the curve of the parameter in the diagnostic instrument is consistent with the curve change trend in the Graphic window, the verification is successful; if not, the step returns to the step of S1 to repeat the analytic positioning and calibration of the parameter.
6. The device for analyzing CAN signals of the whole vehicle by using the diagnosis message as claimed in claim 5, wherein: the first acquisition module specifically records data acquired by the CAN data monitoring tool as a file in asc format; and simultaneously recording the data of the diagnostic apparatus into a file in a picture format or a corresponding screen recording format.
7. The device for analyzing CAN signals of the whole vehicle by using the diagnosis message as claimed in claim 5, wherein: the compiling module specifically comprises compiling analyzed whole vehicle parameter forwarding rules, defining message IDs, signal length significant bits, proportion coefficients and signal offset, and sorting the messages into files in an Excel format, wherein different vehicle types adopt different diagnostic service standards.
8. The device for analyzing CAN signals of the whole vehicle by using the diagnosis message as claimed in claim 5, wherein: the conversion module specifically comprises:
the diagnosis request sending module is used for sending the diagnosis request acquired from the control panel to the CAN1 channel;
the diagnostic response receiving module is used for receiving and caching the diagnostic response ID returned by the controller and the hexadecimal original data of the diagnostic response message;
the diagnostic response message analysis module is used for processing hexadecimal original data in the diagnostic response message returned by the analysis controller, identifying effective signals corresponding to analyzed corresponding parameters according to the forwarding rules compiled in the compiling module, and respectively forwarding the effective signals to a self-defined structural body, wherein the effective signals comprise a forwarding communication message ID, a forwarding communication message DLC and the hexadecimal original data of the communication message;
and the communication message forwarding module is used for sending the communication message which is well transferred and stored in the diagnosis response message analysis module to the CAN2 channel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911320840.5A CN111045416B (en) | 2019-12-19 | 2019-12-19 | Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911320840.5A CN111045416B (en) | 2019-12-19 | 2019-12-19 | Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111045416A CN111045416A (en) | 2020-04-21 |
CN111045416B true CN111045416B (en) | 2020-10-30 |
Family
ID=70238278
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911320840.5A Active CN111045416B (en) | 2019-12-19 | 2019-12-19 | Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111045416B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522332B (en) * | 2020-05-22 | 2024-08-27 | 厦门玖松信息科技有限公司 | Portable CAN detection and upgrading device and method |
CN111624981B (en) * | 2020-05-27 | 2021-06-15 | 安徽省爱夫卡电子科技有限公司 | Steering wheel angle calibration system and calibration method of automobile power-assisted steering system |
CN112415983B (en) * | 2020-11-18 | 2024-07-16 | 中国汽车工程研究院股份有限公司 | Working method for analyzing whole vehicle signals |
CN112799321B (en) * | 2020-12-14 | 2022-02-01 | 东风汽车集团有限公司 | DBC file rapid creating method following CAN bus communication protocol |
CN113542381B (en) * | 2021-07-06 | 2024-04-19 | 广州小鹏自动驾驶科技有限公司 | Message frame processing method and device |
CN115826558B (en) * | 2022-11-23 | 2023-09-19 | 中汽院新能源科技有限公司 | Diagnostic signal analysis method based on VehicleSPY |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2275890A1 (en) * | 2009-06-29 | 2011-01-19 | Honeywell International Inc. | Vehicle system monitoring and communications architecture |
CN102673495A (en) * | 2011-03-16 | 2012-09-19 | 北汽福田汽车股份有限公司 | CAN (Controller Area Network) bus system and fault diagnosis method thereof |
CN104834303A (en) * | 2014-12-19 | 2015-08-12 | 北汽福田汽车股份有限公司 | Vehicle fault diagnosis method and system, and vehicle |
CN107450510A (en) * | 2017-06-28 | 2017-12-08 | 中国汽车工程研究院股份有限公司 | A kind of signal resolution method using diagnostic signal fast positioning CAN signal |
CN110162008A (en) * | 2019-05-10 | 2019-08-23 | 中国汽车技术研究中心有限公司 | A kind of new energy vehicle CAN bus analytic method |
-
2019
- 2019-12-19 CN CN201911320840.5A patent/CN111045416B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2275890A1 (en) * | 2009-06-29 | 2011-01-19 | Honeywell International Inc. | Vehicle system monitoring and communications architecture |
CN102673495A (en) * | 2011-03-16 | 2012-09-19 | 北汽福田汽车股份有限公司 | CAN (Controller Area Network) bus system and fault diagnosis method thereof |
CN104834303A (en) * | 2014-12-19 | 2015-08-12 | 北汽福田汽车股份有限公司 | Vehicle fault diagnosis method and system, and vehicle |
CN107450510A (en) * | 2017-06-28 | 2017-12-08 | 中国汽车工程研究院股份有限公司 | A kind of signal resolution method using diagnostic signal fast positioning CAN signal |
CN110162008A (en) * | 2019-05-10 | 2019-08-23 | 中国汽车技术研究中心有限公司 | A kind of new energy vehicle CAN bus analytic method |
Also Published As
Publication number | Publication date |
---|---|
CN111045416A (en) | 2020-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111045416B (en) | Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message | |
CN110162008B (en) | CAN bus analysis method for new energy vehicle | |
CN109164783A (en) | Vehicular diagnostic method, device, equipment and medium | |
CN110233768B (en) | UDS-based CAN bus test system and CAN bus test method | |
US20040112124A1 (en) | Method for carrying out a telediagnosis on a motor vehicle, vehicle diagnosis module and service center | |
CN111024405A (en) | Automobile diagnosis method, related device and system | |
CN113190454A (en) | Real-vehicle test method and system for vehicle-mounted terminal software | |
CN109656172A (en) | A kind of method, apparatus obtaining baud rate | |
CN113608518B (en) | Data generation method, device, terminal equipment and medium | |
CN102346477A (en) | Analysis method and equipment for fault diagnosis communication protocol on basis of automotive open system architecture (AUTOSAR) | |
CN107135210A (en) | A kind of simulative automobile communications protocol resolver and its analytic method | |
CN113189970A (en) | Hardware-in-loop automatic test method and system of CAN bus controller and storage medium | |
CN113904967B (en) | Automatic testing device and testing method for automobile CAN communication module interface software | |
CN107370637B (en) | Vehicle-mounted ECU communication function automatic test system and method | |
CN111586210A (en) | Multichannel CAN bus OBD diagnostic protocol conversion device | |
CN108390863B (en) | Data processing method and device | |
CN109632343A (en) | A kind of used car dynamic and static state performance testing and analysis system | |
CN117768348A (en) | Test method for HCU (hybrid control Unit) diagnosis of CANoe network | |
CN111708661A (en) | Pressure testing system and method suitable for central gateway | |
CN113507402A (en) | TBOX diagnosis method for passive CAN | |
CN116483693A (en) | Vehicle-mounted controller software debugging method and system, electronic equipment and storage medium | |
CN111624981A (en) | Steering wheel angle calibration system and calibration method of automobile power-assisted steering system | |
CN115586019A (en) | Automatic testing method, device, equipment and storage medium for vehicle | |
CN214851308U (en) | Vehicle-mounted equipment test system | |
CN103746865A (en) | Node application layer equipment simulation testing system in CAN communication system |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |