CN113433931A - Automobile CAN bus key signal analysis method based on characteristic working conditions - Google Patents

Automobile CAN bus key signal analysis method based on characteristic working conditions Download PDF

Info

Publication number
CN113433931A
CN113433931A CN202110880880.6A CN202110880880A CN113433931A CN 113433931 A CN113433931 A CN 113433931A CN 202110880880 A CN202110880880 A CN 202110880880A CN 113433931 A CN113433931 A CN 113433931A
Authority
CN
China
Prior art keywords
data
message data
value
message
segment
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.)
Granted
Application number
CN202110880880.6A
Other languages
Chinese (zh)
Other versions
CN113433931B (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.)
Qingyu Automobile Technology Taicang Co ltd
Original Assignee
Qingyu Automobile Technology Taicang 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 Qingyu Automobile Technology Taicang Co ltd filed Critical Qingyu Automobile Technology Taicang Co ltd
Priority to CN202110880880.6A priority Critical patent/CN113433931B/en
Publication of CN113433931A publication Critical patent/CN113433931A/en
Application granted granted Critical
Publication of CN113433931B publication Critical patent/CN113433931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/0208Electric 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/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses an automobile CAN bus key signal analysis method based on characteristic working conditions, which comprises the following steps: screening the acquired CAN bus data, and reserving a data ID number and message data; eliminating the message data lines with message data changes in the initial segment and the final segment; eliminating the message data line with unchanged ID of the message in the process section; for the reserved change data line, removing repeated message data, acquiring data state representation, and subsequently outputting an analysis file at a corresponding time position; and outputting the file to a parsing file. By the analytical method, the corresponding signals are found to show specific change rules under the working conditions of static accelerator pedal oiling and static brake pedal braking, so that judgment and support are provided for position searching and matching of the signals.

Description

Automobile CAN bus key signal analysis method based on characteristic working conditions
Technical Field
The invention relates to the technical field of vehicle bus signal analysis, in particular to an automobile CAN bus key signal analysis method based on characteristic working conditions.
Background
During vehicle development, the vehicle is a conventional method for mapping. When a mapping test is performed, it is often necessary to know the vehicle signal values related to the test so as to master the working state of the vehicle during the test, and it is very important to find and obtain an accurate vehicle signal.
The can (controller Area network) bus is a main communication mode of vehicle communication and is also a main channel for key signal transmission. Compared with a method for installing a sensor, the method for analyzing the key signals of the vehicle through the CAN line is a convenient and fast mode.
The key signals are signals representing the working states of the whole vehicle and the core components. The signals of the whole vehicle mainly relate to the operation of a driver, and comprise an accelerator stroke, a brake stroke, a clutch stroke, a steering wheel corner and the like, the signals of core components of the traditional vehicle mainly comprise engine rotating speed, engine torque and the like, and the signals of core components of the pure electric vehicle mainly comprise driving motor rotating speed, driving motor torque, high-voltage battery current, high-voltage battery voltage and the like. The knowledge of the key signals corresponds to the basic knowledge of the current operating state of the vehicle.
Through analysis of CAN bus key signals, the basic running state of the vehicle CAN be recorded by using data acquisition hardware in the vehicle testing process. On one hand, benchmarking and data analysis among different vehicles can be better carried out, and on the other hand, the development idea of the benchmarking vehicles can be known, so that reference learning is provided, and powerful support is provided for vehicle development. Therefore, it is necessary to provide a method for analyzing the key signals of the automobile CAN bus based on the characteristic working conditions, so as to provide judgment and support for the position search and matching of the signals.
Disclosure of Invention
In view of the above-mentioned problems, an object of the present invention is to provide a method for analyzing a key signal of a CAN bus of an automobile based on characteristic conditions, which provides a judgment and support for position search and matching of the signal.
In order to achieve the purpose, the invention adopts the following technical scheme: a key signal analysis method of an automobile CAN bus based on characteristic working conditions comprises the following specific analysis method: step 1: screening the acquired CAN bus data, and reserving a data ID number and message data; step 2: eliminating the message data lines with message data changes in the initial segment and the final segment; and step 3: eliminating the message data line with unchanged ID of the message in the process section; and 4, step 4: for the reserved variable data row, removing repeated message data, taking a message data value of a time position in an initial section and a message data maximum value in a process section from the message data, converting the message data values into 10-system values, and determining whether the value obtained by subtracting the message data value in the initial section from the message data maximum value is greater than 16, if so, representing the data value; if the judgment result is no, representing the data state; and 5: for data state representation, after a binary value is converted, an exclusive OR value of two time point positions is taken; converting the exclusive OR value into a decimal system again to obtain a position of 1 in the binary value, and subsequently outputting an analysis file at a corresponding time position, wherein 0 represents that the state does not occur, and 1 represents that the state occurs; linear judgment is firstly carried out on data value representation, a plurality of time positions are taken between a message data value at one time position in an initial segment and a message data maximum value in a process segment, and message data comparison is carried out, wherein the following conditions are met: in the process segment, the message data is more than or equal to the message data value of the initial segment, the message data of the next time position is more than the message data of the previous time position, and the message data of the last time position is the maximum value; step 6: outputting to an analysis file: and for the message data meeting the linear increase, calculating a k value, then calculating a b value, and subsequently outputting the k value and the b value to an analysis file at corresponding time positions, wherein the k value is a linear function variable coefficient, and the b value is a constant coefficient.
In the step 2, a plurality of time points are selected in the initial segment and the final segment respectively, if the obtained message data at each time point are the same, the ID message data line is judged to be unchanged, the message data line is reserved, and the message data lines in other situations are removed.
In the step 3, the message data of a plurality of time points of the process segment data are selected as comparison data, a data point is taken from the initial segment and the final segment as reference data, if the comparison data is not equal to the reference data, the data is judged to be a change line, the data is reserved, and the data lines in other situations are removed.
Compared with the prior art, the method for analyzing the key signals of the automobile CAN bus based on the characteristic working conditions has the advantages that the analysis method enables the corresponding signals to show specific change rules under the working conditions of static accelerator pedal oiling and static brake pedal braking, so that judgment and support are provided for position searching and matching of the signals.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
The technical solutions in the embodiments of the present invention are clearly and completely described below through the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention discloses an automobile CAN bus key signal analysis method based on characteristic working conditions, which confirms a target automobile CAN line, tests the characteristic working conditions, collects CAN bus data in real time, provides signal characteristics under each working condition according to a signal database in each established characteristic working condition, inputs test data of a target automobile, corresponds the data in the working conditions, calculates signal matching and outputs an analysis file.
The characteristic working condition evaluation comprises static accelerator pedal evaluation and static brake pedal evaluation, wherein the static accelerator pedal evaluation is realized by slowly stepping the accelerator pedal from an original state to a maximum position through a low-power state on a vehicle, then quickly releasing the accelerator pedal to the original position, and acquiring a key signal of the accelerator opening;
the evaluation mode of the static brake pedal is that the brake pedal is slowly stepped from an original state to a maximum position through a low-power state on the vehicle, then the pedal is quickly released to the original position, and a key signal of the brake opening degree is obtained;
wherein the working condition evaluation process is divided into three sections: the method comprises an initial section, a process section and an end section, wherein the initial section and the end section are both set with a preset time (5s) and do not need to be operated, and the intermediate process between the initial section and the end section is defined as the process section.
The process section comprises the following specific operations: in a low-power state on a vehicle, firstly, the accelerator pedal is slowly stepped to the maximum position from the original state, the preset time (5s) is set, then the maximum position is kept for the designated time (3s), and finally, the pedal is quickly released to the original position for about 0.5-1 s. The corresponding steps can be divided into three parts, namely, stepping down the pedal section, keeping the maximum value section and loosening the pedal section.
The signal characteristics of the static accelerator pedal evaluation and the static brake pedal evaluation are as follows: an initial stage: an invariant value; a process section: linearly increasing to a maximum value and rapidly decreasing after stabilizing for a period of time; and an ending section: the data is equal to its real value. The key signals of the static accelerator pedal are the accelerator opening and the brake opening of the static brake pedal.
For the recorded CAN bus data, the specific analysis method is as follows:
step 1: and screening the acquired CAN bus data, and reserving the data ID number and the message data.
Step 2: and (3) rejecting a message data line with message data change in the initial segment and the end segment (the message data is composed of B1-B8 data, the message data line is composed of a line position of the data, an ID number and message data), selecting a plurality of time points in the initial segment and the end segment respectively, and judging that the ID message data line is unchanged, the message data line is reserved and the message data lines in other situations are rejected when the message data obtained at each time point are the same (when the initial segment and the end segment respectively select 3 time points and satisfy the following formula (1)).
DataBi,start1=DataBi,start2=DataBi,start3=DataBi,end1=DataBi,end2=DataBi,end3 (1)
Wherein DataBi, start The message data at a certain time point in the initial period; dataBi,endIs the message data at a certain time point of the ending segment. As shown in the following table,
Line Arb ID B1 B2 B3 B4 B5 B6 B7 B8
379 3B7 0 0 0 0 0 0 0 8
761 3B7 0 0 0 0 0 0 0 8
1130 3B7 0 0 0 0 0 0 0 8
1512 3B7 0 0 0 0 0 0 0 8
1886 3B7 0 0 0 0 0 0 0 8
2263 3B7 0 0 0 0 0 0 0 8
line represents a time point position; ArbID represents the ID number of the message data at the time point; the combination of B1-B8 represents the specific message data, and as shown in the above table, when the message data composed of B1-B8 in the six columns are identical, the condition is satisfied, so that the data can be retained.
And step 3: eliminating the message data line with unchanged ID of the message in the process segment: selecting message data of a plurality of time points of process section data as comparison data, taking a data point from the initial section and the final section as reference data, if the comparison data is not equal to the reference data, judging that the line data is a change line, reserving the data, and removing the data lines in other situations.
Namely, the following formula (2) is satisfied,
DataBi,processi≠DataBi,start=DataBi,end (2);
wherein DataBi,processIs the message data at a certain time point in the process segment;
and 4, step 4: and for the reserved variable data lines, removing repeated message data, taking a message data value of a time position in the initial section and a message data maximum value in the process section from the message data, converting the message data value into a 10-system value, and judging whether the value obtained by subtracting the message data value in the initial section from the message data maximum value is greater than 16 or not, if so, representing the data value. And if the judgment result is no, representing the data state. Namely, the comparison of the formula (3),
HEX2DE(DataBi,max)-HEX2DE(DataBi,start)>16 (3);
HEX2DE is a conversion of hexadecimal to decimal;
and 5: for data state characterization, after converting the binary value, taking the exclusive OR value of the two time point positions. The xor value is converted back to decimal and the position of 1 in the binary value is determined (recorded from right to left). And then, outputting the data to an analysis file at a corresponding position, wherein 0 represents that the state does not occur, and 1 represents that the state occurs. As shown in the following formula (4),
HEX2BIN(DataBi,max)xor HEX2BIN(DataBi,start) (4)
HEX2BIN is the conversion of a hexadecimal number to a binary number;
linear judgment is firstly carried out on data value representation, a plurality of time positions (10 points) are taken between a message data value at one time position in an initial section and a message data maximum value in a process section, each point is separated by 0.3s from the 1 st s in the process section, and comparison is carried out, wherein the following conditions are met: in the process segment, the message data is greater than or equal to the message data value of the initial segment, in the process segment, the message data of the next time position is greater than the message data of the previous time position, and the message data of the last time position is the maximum value. That is, equation 5 should be satisfied:
HEX2DE(DataBi,start)≤···<HEX2DE(DataBi,processi)<···≤HEX2DE(DataBi,max) (5)
step 6: outputting to an analysis file: for the message data meeting the linear increase, the k value is obtained according to the following formula, then the b value is obtained, and the k value is output to an analysis file at the corresponding time position, wherein the k value is a linear function variable coefficient, and the b value is a constant coefficient.
Figure BDA0003192242990000051
b=-k*HEX2DE(DataBi,start) (7)
And obtaining a signal characteristic schematic diagram of the automobile through the obtained k and b values, and knowing the information of an accelerator pedal and a brake pedal of the automobile. And judging the position and the form of the signal by judging the data change in the process. By the analysis method, the corresponding signals are found to show a specific change rule under the working conditions of static accelerator pedal oiling and static brake pedal braking, so that judgment and support are provided for position searching and matching of the signals.
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims.

Claims (3)

1. A method for analyzing key signals of an automobile CAN bus based on characteristic working conditions is characterized by comprising the following steps:
step 1: screening the acquired CAN bus data, and reserving a data ID number and message data;
step 2: eliminating the message data lines with message data changes in the initial segment and the final segment;
and step 3: eliminating the message data line with unchanged ID of the message in the process section;
and 4, step 4: for the reserved variable data row, removing repeated message data, taking a message data value of a time position in an initial section and a message data maximum value in a process section from the message data, converting the message data values into 10-system values, and determining whether the value obtained by subtracting the message data value in the initial section from the message data maximum value is greater than 16, if so, representing the data value; if the judgment result is no, representing the data state;
and 5: for data state representation, after a binary value is converted, an exclusive OR value of two time point positions is taken; converting the exclusive OR value into a decimal system again to obtain a position of 1 in the binary value, and subsequently outputting an analysis file at a corresponding time position, wherein 0 represents that the state does not occur, and 1 represents that the state occurs;
linear judgment is firstly carried out on data value representation, a plurality of time positions are taken between a message data value at one time position in an initial segment and a message data maximum value in a process segment, and message data comparison is carried out, wherein the following conditions are met: in the process segment, the message data is more than or equal to the message data value of the initial segment, the message data of the next time position is more than the message data of the previous time position, and the message data of the last time position is the maximum value;
step 6: outputting to an analysis file: and for the message data meeting the linear increase, calculating a k value, then calculating a b value, and subsequently outputting the k value and the b value to an analysis file at corresponding time positions, wherein the k value is a linear function variable coefficient, and the b value is a constant coefficient.
2. The method for analyzing the key signals of the CAN bus of the automobile based on the characteristic working conditions as claimed in claim 1, wherein: in the step 2, a plurality of time points are selected in the initial segment and the final segment respectively, if the obtained message data at each time point are the same, the ID message data line is judged to be unchanged, the message data line is reserved, and the message data lines in other situations are removed.
3. The method for analyzing the key signals of the CAN bus of the automobile based on the characteristic working conditions as claimed in claim 1, wherein: in the step 3, the message data of a plurality of time points of the process section data are selected as comparison data, a data point is respectively selected from the initial section and the final section as reference data, if the comparison data is not equal to the reference data, the data in the line is judged to be a change line, the data is reserved, and the data in other situations are removed.
CN202110880880.6A 2021-08-02 2021-08-02 Automobile CAN bus key signal analysis method based on characteristic working conditions Active CN113433931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110880880.6A CN113433931B (en) 2021-08-02 2021-08-02 Automobile CAN bus key signal analysis method based on characteristic working conditions

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110880880.6A CN113433931B (en) 2021-08-02 2021-08-02 Automobile CAN bus key signal analysis method based on characteristic working conditions

Publications (2)

Publication Number Publication Date
CN113433931A true CN113433931A (en) 2021-09-24
CN113433931B CN113433931B (en) 2023-01-06

Family

ID=77762512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110880880.6A Active CN113433931B (en) 2021-08-02 2021-08-02 Automobile CAN bus key signal analysis method based on characteristic working conditions

Country Status (1)

Country Link
CN (1) CN113433931B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118543A (en) * 2022-08-29 2022-09-27 中国汽车技术研究中心有限公司 Preprocessing method for CAN signal analysis, electronic device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103625459A (en) * 2012-08-29 2014-03-12 交通运输部公路科学研究所 Automobile service braking efficiency dynamic monitoring and alarming system
WO2015091386A1 (en) * 2013-12-16 2015-06-25 Avl List Gmbh Method for creating an assignment file of a communication protocol
CN107239038A (en) * 2017-05-10 2017-10-10 同济大学 A kind of transient state throttle variable working condition drivability index recognizer under stable car speed
CN108415408A (en) * 2018-03-16 2018-08-17 宁波杉杉汽车有限公司 Automobile packet parsing based on CAN communication and method for diagnosing faults
CN109209653A (en) * 2018-08-28 2019-01-15 开沃新能源汽车集团有限公司 It is a kind of to realize that CAN data are converted into the gas pedal control method of analog data based on gateway and D/A module
CN112415983A (en) * 2020-11-18 2021-02-26 中国汽车工程研究院股份有限公司 Working method for signal analysis of whole vehicle
CN113109056A (en) * 2021-03-01 2021-07-13 东风汽车集团股份有限公司 Method and device for evaluating acceleration performance of vehicle accelerator starting power

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103625459A (en) * 2012-08-29 2014-03-12 交通运输部公路科学研究所 Automobile service braking efficiency dynamic monitoring and alarming system
WO2015091386A1 (en) * 2013-12-16 2015-06-25 Avl List Gmbh Method for creating an assignment file of a communication protocol
CN107239038A (en) * 2017-05-10 2017-10-10 同济大学 A kind of transient state throttle variable working condition drivability index recognizer under stable car speed
CN108415408A (en) * 2018-03-16 2018-08-17 宁波杉杉汽车有限公司 Automobile packet parsing based on CAN communication and method for diagnosing faults
CN109209653A (en) * 2018-08-28 2019-01-15 开沃新能源汽车集团有限公司 It is a kind of to realize that CAN data are converted into the gas pedal control method of analog data based on gateway and D/A module
CN112415983A (en) * 2020-11-18 2021-02-26 中国汽车工程研究院股份有限公司 Working method for signal analysis of whole vehicle
CN113109056A (en) * 2021-03-01 2021-07-13 东风汽车集团股份有限公司 Method and device for evaluating acceleration performance of vehicle accelerator starting power

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118543A (en) * 2022-08-29 2022-09-27 中国汽车技术研究中心有限公司 Preprocessing method for CAN signal analysis, electronic device and storage medium

Also Published As

Publication number Publication date
CN113433931B (en) 2023-01-06

Similar Documents

Publication Publication Date Title
CN109060398B (en) Multi-source information equipment fault diagnosis method
CN113433931B (en) Automobile CAN bus key signal analysis method based on characteristic working conditions
CN111126438B (en) Driving behavior recognition method and system
CN111951430A (en) Vehicle drivability evaluation method and system
CN112464409B (en) Vehicle performance parameter setting method and device
CN115649183A (en) Vehicle mass estimation method, device, electronic device and storage medium
CN114889613A (en) Vehicle driving control method and device and vehicle
CN113029586A (en) Method and system for evaluating automobile starting and uniform speed driving dynamic property
CN109408955B (en) Energy consumption analysis method and system for electric automobile
KR20010039811A (en) Texture analysing method of digital image
CN116776229B (en) Method for dividing typical running conditions of automobile facing carbon emission factors
CN113029587A (en) Automobile performance analysis method and system, storage medium and electronic equipment
CN114662620B (en) Automobile endurance load data processing method and device for market users
CN116910552A (en) Vehicle fault detection method and device, vehicle-mounted terminal and storage medium
CN115716477A (en) Driving mode switching method and device, electronic equipment and storage medium
CN113961461A (en) Method and device for constructing automatic driving test scene
CN113221843A (en) Driving style classification method based on empirical mode decomposition characteristics
CN117284302A (en) User-specific driving mode generation method, system, vehicle, electronic equipment and storage medium
CN107832173B (en) Urban rail transit vehicle real-time fault diagnosis method based on working condition detection
CN114088400A (en) Rolling bearing fault diagnosis method based on envelope permutation entropy
CN110667597A (en) Driving style state identification method based on vehicle controller local area network data information
CN108762113B (en) Method for establishing retarder torque characteristic calculation model
CN113569106B (en) CAN data identification method, device and equipment
CN110516787B (en) Pedestrian re-identification method based on network regularization constraint of easily-separable feature discarding
CN114537418B (en) Method and system for generating accelerator pedal characteristics

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