CN107659465B - Device and method for checking error frames of CAN (controller area network) bus of whole vehicle - Google Patents
Device and method for checking error frames of CAN (controller area network) bus of whole vehicle Download PDFInfo
- Publication number
- CN107659465B CN107659465B CN201710823498.5A CN201710823498A CN107659465B CN 107659465 B CN107659465 B CN 107659465B CN 201710823498 A CN201710823498 A CN 201710823498A CN 107659465 B CN107659465 B CN 107659465B
- Authority
- CN
- China
- Prior art keywords
- bus
- controller
- network segment
- error frame
- error
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0078—Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
- H04L1/0083—Formatting with frames or packets; Protocol or part of protocol for error control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Environmental & Geological Engineering (AREA)
Abstract
The invention provides a device and a method for checking an error frame of a CAN (controller area network) bus of a whole vehicle, and relates to the field of error frame detection. The checking method comprises the following steps: when an error frame is detected on the CAN bus, determining that the error frame network segment is detected; acquiring network segment basic attributes of an error frame network segment, and judging whether the network segment basic attributes of the error frame network segment meet preset conditions or not; and when the network segment basic attribute of the error frame network segment does not meet the preset condition, prompting that the network segment basic attribute of the error frame network segment is in error. The invention can improve the efficiency of error frame checking through a complete and systematic checking method, thereby shortening the research and development period of the whole vehicle.
Description
Technical Field
The invention relates to the technical field of error frame troubleshooting, in particular to a device and a method for troubleshooting an error frame of a CAN (controller area network) bus of a whole vehicle.
Background
In modern society, many faults often occur in the production and manufacturing process of automobiles. At present, in the process of troubleshooting of the whole vehicle, a general troubleshooting method has a long troubleshooting period and high difficulty in finding a root cause, and if troubleshooting is not timely, a CAN bus error frame CAN not only cause the problem of poor communication real-time performance, but also report various communication faults and even cause the CAN bus to be incapable of working. Therefore, a device and a method for checking the error frames of the entire vehicle CAN bus are needed, which CAN solve the problems of long checking period and great difficulty in checking the root cause, thereby shortening the entire vehicle research and development period.
Disclosure of Invention
The embodiment of the invention provides a device and a method for checking error frames of a CAN (controller area network) bus of a whole vehicle, aiming at improving the efficiency of checking the error frames and further shortening the research and development period of the whole vehicle.
In order to achieve the above object, an embodiment of the present invention provides a method for checking an error frame of a vehicle CAN bus, including:
when an error frame is detected on a CAN bus, determining an error frame network segment for detecting the error frame;
acquiring network segment basic attributes of an error frame network segment, and judging whether the network segment basic attributes of the error frame network segment meet preset conditions or not;
and when the network segment basic attribute of the error frame network segment does not meet the preset condition, prompting that the network segment basic attribute of the error frame network segment is in error.
Preferably, the network segment basic attribute comprises at least one of the following attributes: terminal load of network segment; whether a short circuit occurs on the network segment.
Preferably, when the segment basis attribute of the error frame segment meets the preset condition, the troubleshooting method further includes:
acquiring whether an offline controller in an offline state exists on an error frame network segment;
when the offline controllers exist, the following judgment processing is respectively executed for each offline controller:
detecting whether the off-line controller is connected to a CAN bus or not;
when the off-line controller has access to the CAN bus, judging whether the off-line controller sends an error frame;
when the offline controller does not generate error frames, detecting whether the wiring harness connection relation of the offline controller is normal;
and when the wiring harness connection relation of the offline controller is abnormal, prompting that the hardware connection of the offline controller has a problem.
Preferably, the abnormal connection relationship of the wire harness of the offline controller includes: at least one of virtual connection, misconnection and short circuit exists in the wire harness connection of the offline controller.
Preferably, after the judgment processing is performed on each offline controller, when the offline controller with the abnormal wiring harness connection relationship is not found, the troubleshooting method further includes:
the method comprises the steps of removing controllers on the CAN bus one by one, detecting whether error frames exist on the CAN bus after each controller is removed, re-accessing the controller to the CAN bus if the error frames are not detected, detecting whether the error frames exist on the CAN bus again, and prompting the controller to cause the CAN bus to have the error frames if the error frames are detected.
Preferably, in the above checking method:
if the error frame is not detected when whether the error frame exists on the CAN bus is detected again, continuously removing the next controller on the CAN bus;
if all controllers on the CAN bus are removed and error frames exist on the CAN bus, all the controllers are re-accessed to the CAN bus, and CAN bus waveforms are obtained and electromagnetic interference analysis is carried out to obtain electromagnetic interference analysis results;
and when the electromagnetic interference analysis result indicates that electromagnetic interference exists, prompting that the CAN bus has the electromagnetic interference.
Preferably, in the above checking method:
when the electromagnetic interference analysis result indicates that no electromagnetic interference exists, respectively acquiring the waveform of each controller and analyzing whether the waveform interferes with the CAN bus or not;
and when the interference exists, the controller is prompted to have the interference on the CAN bus.
The embodiment of the invention also provides a device for checking the error frame of the CAN bus of the vehicle controller, which comprises the following components: the method comprises a memory, a processor and a computer program which is stored on the memory and CAN run on the processor, wherein the processor executes the computer program, and the steps in the method for checking the error frame of the CAN bus of the whole vehicle are as follows.
Compared with the prior art, the device and the method for checking the error frames of the CAN bus of the whole vehicle provided by the embodiment of the invention at least have the following beneficial effects:
when an error frame is detected on a CAN bus, determining an error frame network segment for detecting the error frame; acquiring network segment basic attributes of an error frame network segment, and judging whether the network segment basic attributes of the error frame network segment meet preset conditions or not; when the network segment basic attribute of the error frame network segment does not meet the preset condition, the network segment basic attribute of the error frame network segment is prompted to be in error, and in the whole perfect troubleshooting method, the efficiency of troubleshooting of error frames can be improved, so that the research and development period of the whole vehicle is shortened.
Drawings
Fig. 1 is a flowchart of a method for checking an error frame of a CAN bus of a complete vehicle according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages of the present invention more apparent, the following detailed description is given with reference to the accompanying drawings and specific embodiments. In the following description, specific details such as specific configurations and components are provided only to help the full understanding of the embodiments of the present invention. Thus, it will be apparent to those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the invention. In addition, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The embodiment of the present invention provides a method for checking a bus error frame of a Controller Area Network (CAN), referring to fig. 1, the method includes:
step 1, when an error frame is detected on a CAN bus of a whole vehicle, determining an error frame network segment for detecting the error frame.
In step 2, the network segment basic attribute comprises at least one of the following attributes: terminal load of network segment; whether a short circuit occurs on the network segment.
Step 4, detecting whether the wire harness connection relation of the off-line controller is normal or not when the off-line controller exists; when the wire harness connection relation of the off-line controller is normal, entering step 5; and when the wiring harness connection relation of the offline controller is abnormal, prompting that the hardware connection of the offline controller has a problem, and finishing the troubleshooting.
Step 5, when the offline controller with abnormal wiring harness connection relation is not found, removing the controllers on the CAN bus one by one, detecting whether an error frame still exists on the CAN bus after each controller is removed, if the error frame is not detected, re-accessing the controller to the CAN bus, detecting whether the error frame still exists on the CAN bus again, and if the error frame is not detected, continuously removing the next controller on the CAN bus; and if the error frame is detected, prompting the controller to cause the CAN bus to have the error frame, and finishing the troubleshooting.
Step 7, when the electromagnetic interference analysis result indicates that no electromagnetic interference exists, respectively acquiring the waveform of each controller and analyzing whether the waveform interferes with the CAN bus; and when the interference exists, the controller is prompted to have the interference on the CAN bus, and the examination is finished.
The embodiment of the present invention further provides a device for checking a bus error frame of a whole vehicle (CAN), including: the device comprises a memory, a processor and a computer program which is stored on the memory and CAN run on the processor, wherein the processor executes the computer program to realize the steps in the method for checking the error frames of the CAN bus of the whole vehicle.
From the above, the device and the method for checking the error frame of the whole vehicle CAN bus provided by the embodiment of the invention CAN improve the efficiency of checking the error frame, thereby shortening the research and development period of the whole vehicle.
In the above embodiment of the present invention, the following determination process is respectively performed for each offline controller in step 4:
and step S1, detecting whether the offline controller is connected to the CAN bus.
Step S2, when the offline controller has been connected to the CAN bus, it is determined whether the offline controller has sent an error frame.
Step S3, when no error frame occurs in the offline controller, it is detected whether the connection relationship of the wire harness of the offline controller is normal.
In step S3, the abnormality of the wire harness connection relationship of the offline controller includes: at least one of virtual connection, misconnection and short circuit exists in the wire harness connection of the offline controller.
The embodiment of the invention also provides another method for checking the error frame of the CAN bus of the whole vehicle, which comprises the following steps:
and step XI, detecting the special network segment with the special working condition of the error frame.
And step X2, acquiring the physical waveform of the special network segment and performing electromagnetic interference analysis to obtain an electromagnetic interference analysis result.
And step X3, when the electromagnetic interference analysis result indicates that electromagnetic interference exists, prompting that the CAN bus has the electromagnetic interference, and finishing the investigation.
And step X4, when the electromagnetic interference analysis result indicates that no electromagnetic interference exists, judging according to the physical waveform to detect whether the wiring harness connection relation of the offline controller is normal.
Step X5, if the connection relationship of the wire harness of the off-line controller is abnormal, prompting that the hardware connection of the off-line controller has a problem, and finishing the investigation; if the wiring harness connection relation of the off-line controller is normal, comparing the error frame condition with other similar sample vehicles, and if the error frame condition is a single sample vehicle, replacing the wiring harness of the whole vehicle.
In step XI, the special case requires a hundred percent error frame to be reproduced.
In step X4, the abnormality in the harness connection relationship of the offline controller includes: at least one of virtual connection, misconnection and short circuit exists in the wire harness connection of the offline controller.
In conclusion, the embodiment of the invention can improve the efficiency of error frame checking, thereby shortening the research and development period of the whole vehicle.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (7)
1. A method for checking error frames of a CAN bus of a vehicle controller area network is characterized by comprising the following steps:
when an error frame is detected on a CAN bus, determining an error frame network segment for detecting the error frame;
acquiring network segment basic attributes of an error frame network segment, and judging whether the network segment basic attributes of the error frame network segment meet preset conditions or not;
when the network segment basic attribute of the error frame network segment does not meet the preset condition, prompting that the network segment basic attribute of the error frame network segment is in error;
when the network segment basic attribute of the error frame network segment meets the preset condition, the troubleshooting method further comprises the following steps:
acquiring whether an offline controller in an offline state exists on an error frame network segment;
when the offline controllers exist, the following judgment processing is respectively executed for each offline controller:
detecting whether the off-line controller is connected to a CAN bus or not;
when the off-line controller has access to the CAN bus, judging whether the off-line controller sends an error frame;
when the offline controller does not generate error frames, detecting whether the wiring harness connection relation of the offline controller is normal;
and when the wiring harness connection relation of the offline controller is abnormal, prompting that the hardware connection of the offline controller has a problem.
2. The troubleshooting method of claim 1, wherein the segment basis attribute comprises at least one of: terminal load of network segment; whether a short circuit occurs on the network segment.
3. The troubleshooting method of claim 1, wherein the abnormal wire harness connection relationship of the offline controller includes: at least one of virtual connection, misconnection and short circuit exists in the wire harness connection of the offline controller.
4. The troubleshooting method according to claim 1, wherein when the offline controller having the abnormal wire harness connection relationship is not found after the judgment processing is performed on each offline controller, the troubleshooting method further comprises:
the method comprises the steps of removing controllers on the CAN bus one by one, detecting whether error frames exist on the CAN bus after each controller is removed, re-accessing the controller to the CAN bus if the error frames are not detected, detecting whether the error frames exist on the CAN bus again, and prompting the controller to cause the CAN bus to have the error frames if the error frames are detected.
5. The troubleshooting method of claim 4,
if the error frame is not detected when whether the error frame exists on the CAN bus is detected again, continuously removing the next controller on the CAN bus;
if all controllers on the CAN bus are removed and error frames exist on the CAN bus, all the controllers are re-accessed to the CAN bus, and CAN bus waveforms are obtained and electromagnetic interference analysis is carried out to obtain electromagnetic interference analysis results;
and when the electromagnetic interference analysis result indicates that electromagnetic interference exists, prompting that the CAN bus has the electromagnetic interference.
6. The troubleshooting method of claim 5,
when the electromagnetic interference analysis result indicates that no electromagnetic interference exists, respectively acquiring the waveform of each controller and analyzing whether the waveform interferes with the CAN bus or not;
and when the interference exists, the controller is prompted to have the interference on the CAN bus.
7. The utility model provides a vehicle control unit LAN CAN bus error frame's investigation device which characterized in that includes: the device comprises a memory, a processor and a computer program which is stored on the memory and CAN run on the processor, wherein the processor executes the computer program to realize the steps in the method for checking the error frames of the CAN bus of the whole vehicle as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710823498.5A CN107659465B (en) | 2017-09-13 | 2017-09-13 | Device and method for checking error frames of CAN (controller area network) bus of whole vehicle |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710823498.5A CN107659465B (en) | 2017-09-13 | 2017-09-13 | Device and method for checking error frames of CAN (controller area network) bus of whole vehicle |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107659465A CN107659465A (en) | 2018-02-02 |
CN107659465B true CN107659465B (en) | 2020-06-23 |
Family
ID=61130358
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710823498.5A Active CN107659465B (en) | 2017-09-13 | 2017-09-13 | Device and method for checking error frames of CAN (controller area network) bus of whole vehicle |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107659465B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109738722B (en) * | 2018-12-29 | 2021-07-02 | 中国重汽集团济南动力有限公司 | Method for positioning electromagnetic interference source in vehicle based on CAN bus data |
CN111462353B (en) * | 2020-03-30 | 2022-03-01 | 北京经纬恒润科技股份有限公司 | Gateway-based method and system for recording information of whole vehicle |
CN111665821B (en) * | 2020-06-08 | 2022-06-07 | 重庆长安汽车股份有限公司 | Error frame checking method based on vehicle diagnosis service |
CN112003774B (en) * | 2020-07-22 | 2021-12-14 | 东风汽车集团有限公司 | Method, system and storage medium for checking error frame of automobile CAN bus |
CN112193072B (en) * | 2020-09-29 | 2022-06-21 | 奇瑞新能源汽车股份有限公司 | Method for checking error frames of CAN (controller area network) bus of electric vehicle |
CN112964956B (en) * | 2021-03-19 | 2023-01-24 | 潍柴动力股份有限公司 | Method and device for detecting electromagnetic interference of vehicle |
CN115242609B (en) * | 2022-07-13 | 2023-10-20 | 东风越野车有限公司 | Whole vehicle CAN bus fault frame analysis method and device and vehicle |
Family Cites Families (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101783759B (en) * | 2010-01-19 | 2012-02-01 | 浙江吉利汽车研究院有限公司 | Bus error recovery processing method |
CN102331776B (en) * | 2011-07-29 | 2016-08-17 | 中国第一汽车股份有限公司 | Entire car controller method of testing based on V model |
CN102594643B (en) * | 2012-03-12 | 2015-11-25 | 北京经纬恒润科技有限公司 | A kind of Controller Area Network BUS communicating control method, Apparatus and system |
CN103869800A (en) * | 2012-12-07 | 2014-06-18 | 北汽福田汽车股份有限公司 | Vehicle diagnosis device |
CN103475523B (en) * | 2013-09-10 | 2016-04-27 | 浙江大学 | With the CAN analytical system of bus error analytical capabilities |
US10824720B2 (en) * | 2014-03-28 | 2020-11-03 | Tower-Sec Ltd. | Security system and methods for identification of in-vehicle attack originator |
US9568533B2 (en) * | 2014-05-27 | 2017-02-14 | GM Global Technology Operations LLC | Method and apparatus for open-wire fault detection and diagnosis in a controller area network |
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
CN104267715A (en) * | 2014-09-12 | 2015-01-07 | 中国第一汽车股份有限公司 | Vehicle-mounted electronic control unit LIN bus communication automatic testing device and system |
CN105071957B (en) * | 2015-07-28 | 2019-04-02 | 湖南三一智能控制设备有限公司 | CAN bus fault diagnosis method and system |
CN105141447B (en) * | 2015-07-28 | 2019-01-29 | 湖南三一智能控制设备有限公司 | CAN bus load factor monitoring method and system |
KR101714520B1 (en) * | 2015-10-30 | 2017-03-09 | 현대자동차주식회사 | In-Vehicle Network Attack Detection Method and Apparatus |
CN105634895A (en) * | 2016-01-26 | 2016-06-01 | 深圳市沃特玛电池有限公司 | Error processing method and system for CAN (Controller Area Network) bus |
CN106527410B (en) * | 2016-12-29 | 2019-04-16 | 浙江吉利汽车研究院有限公司 | It is a kind of for the data record gateway of vehicle and based on the diagnostic system of the gateway |
-
2017
- 2017-09-13 CN CN201710823498.5A patent/CN107659465B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107659465A (en) | 2018-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107659465B (en) | Device and method for checking error frames of CAN (controller area network) bus of whole vehicle | |
JP3227717U (en) | Collision check data processing device | |
CN110968072B (en) | Electrical automation equipment monitoring system and method based on artificial intelligence | |
CN108153273B (en) | Vehicle signal failure fault diagnosis method and vehicle control unit | |
CN115800272A (en) | Power grid fault analysis method, system, terminal and medium based on topology identification | |
CN109522296B (en) | Engine ECU data matching calibration method and device | |
CN108763005B (en) | Memory ECC fault error reporting method and system | |
CN112630579A (en) | Aging test method and system for servo driver | |
CN109254898B (en) | Software module execution sequence monitoring method and system | |
CN117255011A (en) | RS-485 communication fault detection and positioning system and working method thereof | |
CN107992022B (en) | Control method, device, controller and system for fault diagnosis | |
CN110488772B (en) | DCS centralized monitoring method and device and centralized monitoring terminal | |
CN110371055B (en) | Analysis method and device for automobile power supply signal | |
CN110177032B (en) | Message routing quality monitoring method and gateway controller | |
CN107729211B (en) | State response method of MCU system | |
CN113627885A (en) | Power grid power supply abnormity monitoring system and monitoring method thereof | |
CN112580838A (en) | Management method and system for operation and maintenance of environmental protection equipment, computer storage medium and terminal | |
CN110320049A (en) | A kind of test equipment and test method of the setting of the certificate parameter in vehicle testing | |
CN115220422B (en) | Voltage detection method, device, vehicle and storage medium | |
CN110991673A (en) | Fault isolation and localization method for complex systems | |
CN104699572A (en) | Computer hardware diagnosis method based on UNIX operating system | |
CN111464372A (en) | Method for improving communication refreshing speed | |
CN117389242A (en) | Automatic detection method, system and detection equipment for automobile CAN bus | |
CN115512458B (en) | Monitoring data analysis method, device, equipment and storage medium | |
CN114322233B (en) | Air conditioning unit monitoring method, device and equipment and air conditioning 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 |