CN110162008B - CAN bus analysis method for new energy vehicle - Google Patents

CAN bus analysis method for new energy vehicle Download PDF

Info

Publication number
CN110162008B
CN110162008B CN201910389975.0A CN201910389975A CN110162008B CN 110162008 B CN110162008 B CN 110162008B CN 201910389975 A CN201910389975 A CN 201910389975A CN 110162008 B CN110162008 B CN 110162008B
Authority
CN
China
Prior art keywords
message
data
diagnostic
vehicle
signal
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
Application number
CN201910389975.0A
Other languages
Chinese (zh)
Other versions
CN110162008A (en
Inventor
王伟
郭琳
王茜
樊金娜
曲辅凡
李海斌
马欢欢
曹磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Automotive Technology and Research Center Co Ltd
CATARC Automotive Test Center Tianjin Co Ltd
Original Assignee
China Automotive Technology and Research Center Co Ltd
CATARC Automotive Test Center Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Automotive Technology and Research Center Co Ltd, CATARC Automotive Test Center Tianjin Co Ltd filed Critical China Automotive Technology and Research Center Co Ltd
Priority to CN201910389975.0A priority Critical patent/CN110162008B/en
Publication of CN110162008A publication Critical patent/CN110162008A/en
Application granted granted Critical
Publication of CN110162008B publication Critical patent/CN110162008B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0259Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
    • G05B23/0262Confirmation of fault detection, e.g. extra checks to confirm that a failure has indeed occurred
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/24Pc safety
    • G05B2219/24065Real time diagnostics

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides a CAN bus analysis method for a new energy vehicle, which is characterized in that a diagnostic instrument and a CAN message acquisition monitoring tool are simultaneously connected to a diagnostic port of the vehicle through a data transmission line divided into two parts. The vehicle diagnostic instrument is connected with the vehicle OBD interface, and the diagnostic instrument sends diagnostic services to the vehicle to acquire the change conditions of a plurality of signals; sending a request service to a diagnosis CAN bus by using a diagnostic instrument and monitoring a response signal after the request; meanwhile, the CAN message acquisition monitoring tool is used for monitoring and recording the communication messages, CAN bus signal analysis CAN be carried out, signals needing analysis are calibrated through comparison, analysis and calculation, the vehicle alignment time is shortened, and the efficiency is improved.

Description

CAN bus analysis method for new energy vehicle
Technical Field
The invention belongs to the technical field of new energy vehicle network communication, and particularly relates to a CAN bus analysis method for a new energy vehicle.
Background
With the reduction of resources and the improvement of awareness of environmental protection, new energy vehicles have become a development trend of the automobile industry, a CAN bus is a bus technology which is most and most commonly applied in a vehicle-mounted network system, so that data communication and resource sharing between a control system and a detection system on an automobile are solved, and the CAN bus is also increasingly used on the new energy vehicles.
Unlike conventional vehicles, there are a large number of ECUs in new energy vehicles, including motor controllers, vehicle controllers, battery management systems, engine controllers, and a large number of vehicle CAN signals. In the benchmarking process of the vehicle, a large number of signals are needed as the premise of analysis of key technologies of the vehicle, so that the accuracy of the CAN bus signals is the important signal input of the benchmarking of the vehicle performance.
Disclosure of Invention
In view of the above, the invention provides a new energy vehicle CAN bus analysis method, wherein a vehicle diagnostic apparatus is connected to a vehicle OBD interface, and the diagnostic apparatus sends a diagnostic service to a vehicle to obtain the change conditions of a plurality of signals; through the assistance of relevant CAN message monitoring software, CAN bus signal analysis CAN be performed, the time for vehicle alignment is shortened, and the efficiency is improved.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
a CAN bus analysis method for a new energy vehicle comprises the following steps:
s1, connecting the diagnostic instrument and the CAN message acquisition monitoring tool to the diagnostic port of the vehicle through the data transmission line divided into two parts;
s2, sending a request service message of a signal to be analyzed to the diagnostic port through the diagnostic instrument, and monitoring and recording the change condition of the request signal on a monitoring interface of the diagnostic instrument;
s3, monitoring and recording communication messages between the diagnostic instrument and the diagnostic port, namely a request service message and a diagnostic response message, through the CAN message acquisition monitoring tool, combing the response relation according to the displayed address of each controller, and confirming the request ID and the response ID of each controller;
s4, monitoring and recording the format of the request service message through the CAN message acquisition monitoring tool according to the request ID determined in the previous step;
s5, aiming at the response ID corresponding to the previous request ID, monitoring and recording the format of the diagnosis response message through a CAN message acquisition monitoring tool;
s6, marking the signal to be analyzed in the diagnosis response message corresponding to the response ID in the step 5, and obtaining the offset and coefficient of the signal of the marked vehicle;
s7, converting the calibrated diagnosis response message into a message format which CAN be analyzed by DBC through a CAPL programming module of the CAN message acquisition monitoring tool;
s8, compiling a DBC file by the CAN message collecting and monitoring tool according to the information calibrated in the message obtained in the step 7 and the bus protocol;
s9, real vehicle verification, namely, importing a compiled DBC file into the CAN message acquisition monitoring tool, verifying whether the data acquired by the diagnostic instrument is consistent with the data of the CAN message acquisition monitoring tool, if so, verifying that the signal analysis is successful, and if not, repeating the steps S3-S9.
Further, in step S6, the signal to be analyzed specifically includes a DID flag bit calibration corresponding to the signal and a data bit calibration after the flag bit, and the data calibration is completed by comparing the CAN message data value monitored by the CAN message collection monitoring tool with the actual value displayed by the diagnostic apparatus.
Further, the method for DID flag bit calibration and data bit calibration after the flag bit is as follows: by comparing UDS diagnosis command data in the communication message with a data list of the diagnostic instrument, the corresponding relation is combed by receiving and sending time and values, the communication message DID corresponding to the signal is confirmed, and data bit calibration is carried out.
Further, the method for DID flag bit calibration and data bit calibration after the flag bit is as follows: and after the response ID is confirmed, drawing a curve for the data bit of the diagnosis response message, comparing the drawn curve with a software interface drawing curve of the process diagnostic instrument to determine the data position, and finishing the calibration of the data bit.
Compared with the prior art, the invention has the following advantages:
the invention creates the diagnosis service which is connected with the vehicle OBD interface through the vehicle diagnosis instrument and is sent to the vehicle by the diagnosis instrument, and the change conditions of a plurality of signals can be obtained; sending a request service to a diagnosis CAN bus by using a diagnostic instrument and monitoring a response signal after the request; meanwhile, the CAN message acquisition monitoring tool is used for monitoring and recording the communication messages, CAN bus signal analysis CAN be carried out, signals needing analysis are calibrated through comparison, analysis and calculation, the vehicle alignment time is shortened, and the efficiency is improved.
The invention completes the vehicle signal analysis by diagnosing the CAN bus, utilizes the diagnostic instrument to assist the analysis, the diagnostic instrument generally comprises main signals required by the analysis of the whole vehicle, and CAN monitor the physical signal change without installing a sensor, thereby shortening the analysis period and improving the analysis efficiency.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the invention without limitation. In the drawings:
fig. 1 is a flow chart of the method according to the embodiment of the invention.
Detailed Description
It should be noted that the embodiments and features of the embodiments of the present invention may be combined with each other without conflict.
The invention will be described in detail with reference to the following embodiments with reference to the attached drawings.
The CAN bus analysis method for the new energy vehicle comprises the following steps as shown in fig. 1:
step 1, simultaneously connecting a diagnostic instrument and a CANoe tool (namely an upper computer for installing CANoe software) to a diagnostic port of a vehicle through a data transmission line which is divided into two parts, wherein the data transmission line which is divided into two parts ensures the real-time property, the synchronism and the effectiveness of data;
step 2, sending a request service message of a signal to be analyzed to the diagnosis port through the diagnosis instrument, and monitoring and recording the change condition of the request signal on a monitoring interface of the diagnosis instrument; monitoring a current request response signal on a signal monitoring interface of the upper computer diagnostic instrument; the diagnostic instrument adopted by the embodiment is provided with an interface for displaying and monitoring a curve, and the function can realize the independent request of some specified quantity and pay attention to the removal of other quantity so as to avoid causing excessive interference;
step 3, monitoring and recording communication messages between the diagnostic instrument and the diagnostic port through a CANoe tool, specifically, combing the response relation of each controller according to the request service message sent by the diagnostic instrument and the address of each controller displayed by a diagnostic response message returned by the diagnostic port, and confirming the request ID and the response ID of each controller;
step 4, monitoring and recording the format of the request service message through a CANoe tool according to the request ID determined in the previous step; specifically, the record of the request service message under a certain request state provides a basis for the format judgment of the request service message by observing the continuous frames and the sending time interval during the period;
step 5, aiming at the response ID corresponding to the request ID in the previous step, monitoring and recording the format of the diagnosis response message through a CANoe tool; the specific recording method is as step 4;
step 6, marking the signals to be analyzed in the diagnosis response message corresponding to the response ID in the step 5, and acquiring the offset and the coefficient of the signals of the marked vehicle; specifically, the signals to be analyzed comprise DID zone bit calibration corresponding to the signals and data bit calibration after the zone bits, and the data calibration is completed by comparing CAN message data values monitored by a CAN message acquisition monitoring tool and actual values displayed by a diagnostic instrument;
step 7, converting the calibrated diagnosis response message into a message format which can be analyzed by the DBC through a CAPL programming module of the CANoe tool;
step 8, in the CANoe, according to the information calibrated in the message obtained in the step 7, a DBC file is compiled by combining a bus protocol;
and 9, real vehicle verification, namely, importing a compiled DBC file into the CANoe tool, verifying whether the data collected by the diagnostic instrument is consistent with the graphical interface display of the CANoe tool, if so, confirming that the signal analysis is successful, otherwise, re-confirming the ID and DID zone bit of the signal, and repeating the steps 3-9.
In step 6, there are two methods for DID flag bit calibration and data bit calibration after flag bit, one of which is: by comparing UDS (Unified Diagnostic Services) Diagnostic command data in the communication message with a data list of a Diagnostic instrument, the corresponding relation is combed by receiving and sending time and values, a communication message DID (date identifier) corresponding to the signal is confirmed, and data bit calibration is carried out. The other is as follows: and after the response ID is confirmed, drawing a curve for the data bit of the diagnosis response message, comparing the drawn curve with a software interface drawing curve of the process diagnostic instrument to determine the data position, and finishing the calibration of the data bit.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the invention, so that any modifications, equivalents, improvements and the like, which are within the spirit and principle of the present invention, should be included in the scope of the present invention.

Claims (4)

1. A CAN bus analysis method for a new energy vehicle is characterized by comprising the following steps:
s1, connecting the diagnostic instrument and the CAN message acquisition monitoring tool to the diagnostic port of the vehicle through the data transmission line divided into two parts;
s2, sending a request service message of a signal to be analyzed to the diagnostic port through the diagnostic instrument, and monitoring and recording the change condition of the request signal on a monitoring interface of the diagnostic instrument;
s3, monitoring and recording communication messages between the diagnostic instrument and the diagnostic port, namely a request service message and a diagnostic response message, through the CAN message acquisition monitoring tool, combing the response relation according to the displayed address of each controller, and confirming the request ID and the response ID of each controller;
s4, monitoring and recording the format of the request service message through the CAN message acquisition monitoring tool according to the request ID determined in the previous step;
s5, aiming at the response ID corresponding to the previous request ID, monitoring and recording the format of the diagnosis response message through a CAN message acquisition monitoring tool;
s6, marking the signal to be analyzed in the diagnosis response message corresponding to the response ID in the step 5, and obtaining the offset and coefficient of the signal of the marked vehicle;
s7, converting the calibrated diagnosis response message into a message format which CAN be analyzed by DBC through a CAPL programming module of the CAN message acquisition monitoring tool;
s8, compiling a DBC file by the CAN message collecting and monitoring tool according to the information calibrated in the message obtained in the step 7 and the bus protocol;
s9, real vehicle verification, namely, importing a compiled DBC file into the CAN message acquisition monitoring tool, verifying whether the data acquired by the diagnostic instrument is consistent with the data of the CAN message acquisition monitoring tool, if so, verifying that the signal analysis is successful, and if not, repeating the steps S3-S9.
2. The CAN bus analysis method for the new energy vehicle according to claim 1, characterized in that: in step S6, the signal to be analyzed specifically includes the DID flag bit calibration corresponding to the signal and the data bit calibration after the flag bit, and the data calibration is completed by comparing the CAN message data value monitored by the CAN message collection monitoring tool with the actual value displayed by the diagnostic apparatus.
3. The CAN bus analysis method for the new energy vehicle according to claim 2, characterized in that: the method for DID zone bit calibration and data bit calibration after zone bits is as follows:
by comparing UDS diagnosis command data in the communication message with a data list of the diagnostic instrument, the corresponding relation is combed by receiving and sending time and values, the communication message DID corresponding to the signal is confirmed, and data bit calibration is carried out.
4. The CAN bus analysis method for the new energy vehicle according to claim 2, characterized in that: the method for DID zone bit calibration and data bit calibration after zone bits is as follows:
and after the response ID is confirmed, drawing a curve for the data bit of the diagnosis response message, comparing the drawn curve with a software interface drawing curve of the process diagnostic instrument to determine the data position, and finishing the calibration of the data bit.
CN201910389975.0A 2019-05-10 2019-05-10 CAN bus analysis method for new energy vehicle Active CN110162008B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910389975.0A CN110162008B (en) 2019-05-10 2019-05-10 CAN bus analysis method for new energy vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910389975.0A CN110162008B (en) 2019-05-10 2019-05-10 CAN bus analysis method for new energy vehicle

Publications (2)

Publication Number Publication Date
CN110162008A CN110162008A (en) 2019-08-23
CN110162008B true CN110162008B (en) 2021-05-28

Family

ID=67634211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910389975.0A Active CN110162008B (en) 2019-05-10 2019-05-10 CAN bus analysis method for new energy vehicle

Country Status (1)

Country Link
CN (1) CN110162008B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111061250B (en) * 2019-12-19 2021-06-04 中国汽车技术研究中心有限公司 Automobile CAN bus information safety testing method
CN111045416B (en) * 2019-12-19 2020-10-30 中国汽车技术研究中心有限公司 Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message
CN111835611B (en) * 2020-07-08 2022-04-05 北京软安科技有限公司 Vehicle CAN bus data analysis method and device
CN112526961B (en) * 2020-08-18 2021-08-27 中国汽车技术研究中心有限公司 New energy automobile function fault tolerance testing device and testing method
CN112836395B (en) * 2021-03-10 2024-07-02 北京车和家信息技术有限公司 Vehicle driving data simulation method and device, electronic equipment and storage medium
CN113608483B (en) * 2021-08-13 2023-05-09 深圳市元征科技股份有限公司 Method for acquiring vehicle signal value, electronic equipment and electronic control unit
CN114047741B (en) * 2021-11-10 2024-03-19 潍柴动力股份有限公司 Implementation method and related device for temporary interruption function of self-repairing diagnosis limiting system
CN114615105B (en) * 2022-04-02 2024-04-02 深圳市元征科技股份有限公司 Data transmission method, device, electronic equipment, system and storage medium
CN115118543B (en) * 2022-08-29 2022-11-25 中国汽车技术研究中心有限公司 Preprocessing method for CAN signal analysis, electronic device and storage medium
CN115826558B (en) * 2022-11-23 2023-09-19 中汽院新能源科技有限公司 Diagnostic signal analysis method based on VehicleSPY
CN116132558A (en) * 2023-02-03 2023-05-16 重庆赛力斯新能源汽车设计院有限公司 Data analysis method and device, electronic equipment and storage medium
CN117555322B (en) * 2024-01-11 2024-04-09 中汽数据有限公司 EDR data extraction method, EDR data extraction device, EDR data extraction equipment and storage medium

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ATE514256T1 (en) * 2008-08-18 2011-07-15 Abb Technology Ag CONFIGURATION OF A PROCESS CONTROL SYSTEM
US20100097208A1 (en) * 2008-10-20 2010-04-22 G-Tracking, Llc Method and System for Tracking Assets
CN101916087B (en) * 2009-12-24 2012-11-28 浙江吉利汽车研究院有限公司 Diagnostic testing system based on CANoe
CN201820127U (en) * 2010-07-16 2011-05-04 北京工业大学 Hybrid electric vehicle vehicle-mounted fault diagnosis system based on CANopen
CN102890494A (en) * 2012-06-19 2013-01-23 浙江吉利汽车研究院有限公司杭州分公司 Functional verification method of automobile diagnosis instrument
CN103412562B (en) * 2013-08-21 2016-08-10 中国第一汽车股份有限公司 Automotive universal Diagnostic Test Set
CN105278978B (en) * 2014-07-23 2018-09-28 广州汽车集团股份有限公司 A kind of ECU software method for refreshing and device based on CANoe
CN106338978A (en) * 2015-07-04 2017-01-18 杭州富阳恒泰汽车电器有限公司 CAN bus communication function test system and test method thereof
CN105292023A (en) * 2015-11-05 2016-02-03 华晨汽车集团控股有限公司 Automatic finished automobile diagnosing test system based on CANoe
CN107450510B (en) * 2017-06-28 2019-05-07 中国汽车工程研究院股份有限公司 A kind of signal resolution method quickly positioning CAN signal using diagnostic signal
CN108982121B (en) * 2018-07-27 2020-09-22 中国汽车技术研究中心有限公司 Multi-channel information fusion system for analyzing target vehicles
CN109361569A (en) * 2018-11-26 2019-02-19 中汽研(天津)汽车工程研究院有限公司 CAN bus based communication diagnostic trouble code automatization test system and test method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于CAN总线的数据采集与远程传输系统的设计与实现;史波;《中国优秀硕士学位论文全文数据库 信息科技辑》;20071215(第6期);I140-464 *

Also Published As

Publication number Publication date
CN110162008A (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN110162008B (en) CAN bus analysis method for new energy vehicle
CN106104636B (en) Automobile detection system using network-based computing infrastructure
CN111061250B (en) Automobile CAN bus information safety testing method
CN109164789B (en) Vehicle-mounted multimedia system for vehicle information diagnosis
CN109933051A (en) A kind of automobile diagnostic software configuration method, system, equipment and computer media
US20080167772A1 (en) Method and system for processing and transmitting automotive emission data
CN110233768B (en) UDS-based CAN bus test system and CAN bus test method
CN110379042B (en) Method and system for collecting vehicle data
CN102621979A (en) Data acquisition and fault diagnosis terminal for vehicle
CN104114993A (en) Vehicle data gathering apparatus, and vehicle data gathering method
CN111045416B (en) Method and device for analyzing CAN (controller area network) signal of whole vehicle by using diagnosis message
CN202974664U (en) Fault diagnostic apparatus for vehicle diesel engine
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN111464651A (en) Vehicle diagnosis system and method
CN103778688A (en) Car operation data acquisition device based on car diagnosis technology
CN106340080A (en) Vehicle maintenance method and apparatus
CN112068536A (en) Universal self-adaptive vehicle remote diagnosis method, device and system
CN112874530A (en) Vehicle diagnosis method and device, electronic equipment and storage medium
CN111123892A (en) Remote diagnosis system and method based on 5G technology
WO2017057991A1 (en) Vehicle management method of message server and vehicle management method of vehicle terminal
CN113377085A (en) Vehicle decoder communication parameter analysis system
CN113219210A (en) Vehicle speed sensor signal rationality diagnosis method and system
CN110648002B (en) Vehicle diagnosis method, device, equipment and readable storage medium
CN102710479B (en) Automobile gateway system for inverse resolution of communication protocols
Lee et al. Practical Data Acquisition and Analysis Method for Automobile Event Data Recorders Forensics.

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