CN102673495B - CAN (Controller Area Network) bus system and fault diagnosis method thereof - Google Patents

CAN (Controller Area Network) bus system and fault diagnosis method thereof Download PDF

Info

Publication number
CN102673495B
CN102673495B CN201110063476.6A CN201110063476A CN102673495B CN 102673495 B CN102673495 B CN 102673495B CN 201110063476 A CN201110063476 A CN 201110063476A CN 102673495 B CN102673495 B CN 102673495B
Authority
CN
China
Prior art keywords
fault
message
dtc
bus
control system
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
CN201110063476.6A
Other languages
Chinese (zh)
Other versions
CN102673495A (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.)
Beiqi Foton Motor Co Ltd
Original Assignee
Beiqi Foton Motor 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 Beiqi Foton Motor Co Ltd filed Critical Beiqi Foton Motor Co Ltd
Priority to CN201110063476.6A priority Critical patent/CN102673495B/en
Publication of CN102673495A publication Critical patent/CN102673495A/en
Application granted granted Critical
Publication of CN102673495B publication Critical patent/CN102673495B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention relates to a CAN (Controller Area Network) bus system and a fault diagnosis method thereof, and discloses a controller area network CAN bus system. The CAN bus system comprises at least one function control system and an instrument (6) which are connected to a CAN bus, wherein the at least one function control system is further used for actively transmitting a DM1 message of a fault which occurs at present to the CAN bus when the fault occurs; and the instrument (6) is further used for receiving the DM1 message from the CAN bus, analyzing the DM1 message and displaying fault related information. According to the CAN bus system and the fault diagnosis method thereof, the time of acquiring a diagnostic fault code can be saved, the problem of fault can be timely solved, and convenient and fast fault diagnosis is realized.

Description

CAN bus system and method for diagnosing faults thereof
Technical field
CAN (controller local area network, Controller Area Network) bus and the fault diagnosis technology field that the present invention relates to, relate in particular to a kind of CAN bus system and method for diagnosing faults thereof.
Background technology
In automobile electric appliance system in the past, only have switch and the such simple device of actr, the line by point-to-point between each equipment is realized vehicle-carrying communication.Introduce a large amount of electronic systems for improving the performance of automobile, cause wire harness rapidly to increase, and the wire harness rolling up has hindered the further raising of automotive performance.Automobile controller quantity is many, and information resources cannot be shared.The entire arrangement space of wire harness dwindles, and very flexible, manufactures and difficulty increases.Do not meet the requirement of automotive light weight technology.There is the sensor of redundancy and a large amount of adaptor unions, cause reliability to reduce.Face of Challenge, produces a kind of brand new ideas: redesign and organize ECU (Electrical Control Unit).By more integrated ECU (Electrical Control Unit) function, to reduce ECU (Electrical Control Unit), number of sensors.As: EMS (engine management system, Engine Management System) unit has the functions such as oil spout, igniting, discharge, cooling management, ESP (vehicle body stabilizing control system, Electronic Stability Program) comprise ABS (anti-skid brake system, Anti-lock Brake System) and numerous functions such as ASR (drive skid control system, Automated Speech Recognition); Apply ripe multiplex techniques numerous ECU (Electrical Control Unit) are linked to be to In-vehicle networking, reduce wire harness, reach resource sharing object.As CAN network, LIN (Interconnected network, Local Interconnect Network) network, FlexRay network, VAN network etc.Wherein, more conventional automobile bus CAN network, it is to be to solve ECU (electronic control unit in modern automobile by German BOSCH company the earliest, Electronic Control Unit) between data exchange and a kind of data communication protocol of developing, according to ISO (International Standardization Organization, International Organization for Standards) related standards, the topological structure of CAN is bus type, so also referred to as CAN bus.
After Communication between each controller solves, the trouble diagnosing thereupon producing has been detected as the greatest problem facing, existing maintenance and diagnosis detecting method need to be that the external check implement of CAN bus system just can complete trouble diagnosing in special place, have wasted a large amount of time of chaufeur.
Summary of the invention
(1) technical matters that will solve
The technical problem to be solved in the present invention is, for above-mentioned defect, how to provide a kind of CAN bus system and method for diagnosing faults thereof, can be to carrying out conveniently trouble diagnosing.
(2) technical scheme
For solving the problems of the technologies described above, the invention provides a kind of CAN of controller local area network bus system, comprise at least one function control system and the instrument 6 that are connected in CAN bus,
Described at least one function control system, is further used in the time of et out of order, initiatively the fault DM1 message of current generation is sent in described CAN bus;
Described instrument 6, is further used for receiving DM1 message from described CAN bus, resolves described DM1 message and fault relevant information is shown.
Preferably, described DM1 message comprises DTC DTC; Described at least one function control system, is further used for after DM1 message being sent in described CAN bus, within every 1 second, sends a DM1 message; If there is new DTC in 1 second, send immediately new DM1 message, described new DM1 message comprises current all DTC; If DTC during 1 second in appearance be repeatedly activated to the state that do not activate and change, in next 1 second moment, send DM1 message to confirm that DTC is not for activating, now described DM1 message carries 0 DTC; If the time that DCT exists exceedes 1 second, then become and do not activate, after changing, DTC state sends immediately DM1 message to confirm that DTC is not for activating, and now described DM1 message carries 0 DTC.
Preferably, described instrument 6 is further used for timing and receives DM1 message from described CAN bus, resolves described DM1 message and fault relevant information is shown.
Preferably, if described DM1 carries 0 DTC, described instrument 6 is further used for removing the failure message showing in instrument 6.
Preferably, described at least one function control system comprises at least one in power control system 1, chassis and DAS (Driver Assistant System) 2, safety system 3, body control system 4 and information entertainment 5.
The present invention also provides a kind of and has used above-mentioned CAN bus system to carry out the method for trouble diagnosing, and described method comprises step:
S1: at least one function control system, in the time of et out of order, initiatively sends to the fault DM1 message of current generation in CAN bus;
S2: instrument 6 receives the fault message of current generation from described CAN bus, resolves the fault message of described current generation and fault relevant information is shown.
Preferably, described DM1 message comprises DTC DTC, after step S1, also comprises:
Described at least one function control system sends a DM1 message for every 1 second; If there is new DTC in 1 second, send immediately new DM1 message; Described new DM1 comprises current all DTC; If DTC during 1 second in generation be repeatedly activated to the state that do not activate and change, in next 1 second moment, send DM1 message to confirm that DTC is not for activating, now described DM1 message carries 0 DTC; If DCT life period exceedes 1 second, then become and do not activate, after changing, DTC state sends immediately DM1 message to confirm that DTC is not for activating, and now DM1 carries 0 DTC.
Preferably, step S2 specifically comprises:
Instrument 6 timings receive DM1 message from described CAN bus, resolve described DM1 message and fault relevant information is shown.
Preferably, described DTC comprises three territories: parts SPN, mark fault type FMI and SPN conversion regime CM and fault frequency OC that fault occurs; If set fault occur time, the CM territory of described DTC sets to 0, described in step S2, resolve described DM1 message and fault relevant information shown specifically and comprised: SPN territory in described DTC is converted to after corresponding fault content information, show FMI territory in described DTC content and described in the fault content information that converts to; While generation if not the fault of setting, the CM territory of described DTC puts 1, described in step S2, resolve described DM1 message and fault relevant information is shown specifically and comprised: SPN territory in described DTC is converted to after the word content of setting, only showing the word content of described setting.
Preferably, described at least one function control system comprises at least one in power control system 1, chassis and DAS (Driver Assistant System) 2, safety system 3, body control system 4 and information entertainment 5; The failure message of described setting is the chaufeur fault that can solve or the fault that has a strong impact on traffic safety; The word content of described setting is " system failure please arrive maintenance station maintenance ".
(3) beneficial effect
The invention discloses a kind of CAN bus system and method for diagnosing faults thereof, according to the present invention, in the time having parts et out of order, associated components will be according to the protocol rule of SAE-J1939-73 to sending fault message take 1 second as the cycle in CAN bus, and do not need controller to obtain DTC in the mode of request, save the time of obtaining DTC.Utilize instrument timing to receive fault message from described CAN bus, resolve described fault message and fault relevant information is shown, the parts that in lighting not under command light, fault occurred and failure mode are resolved and are presented in instrument and check for chaufeur or maintainer, can solve in time failure problems, realize conveniently trouble diagnosing.
Accompanying drawing explanation
Fig. 1 is the structural representation of the CAN bus system of the embodiment of the present invention;
Fig. 2 is the method flow diagram that the use CAN bus system of the embodiment of the present invention is carried out trouble diagnosing.
Wherein, 1: power control system; 2: chassis and DAS (Driver Assistant System); 3: safety system; 4: body control system; 5: information entertainment; 6: instrument.
The specific embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used for illustrating the present invention, but are not used for limiting the scope of the invention.
Fig. 1 is the structural representation of the CAN bus system of the embodiment of the present invention; As described in Figure 1, described CAN bus system comprises at least one function control system and the instrument 6 that are connected in CAN bus;
Described at least one function control system, is further used in the time of et out of order, and initiatively by the fault message of current generation, DM1 message sends in described CAN bus;
Described instrument 6, is further used for receiving the fault message of current generation from described CAN bus, resolves the fault message of described current generation and fault relevant information is shown.
Described at least one function control system, is further used for after DM1 message being sent in described CAN bus, within every 1 second, sends a DM1 message; If there is new DTC in 1 second, send immediately new DM1 message, described new DM1 message comprises current all DTC; If DTC occurs repeatedly activating in during 1 second, fault occurs to and does not activate, and state that fault does not activate changes, and in next 1 second moment, sends DM1 message to confirm that DTC is not for activating, and now DM1 carries 0 DTC; If the time that DCT exists exceedes 1 second, then become and do not activate, after changing, DTC state sends immediately DM1 message to confirm that DTC is not for activating, and now DM1 carries 0 DTC.
If described DM1 carries 0 DTC, described instrument 6 is further used for removing the failure message showing in instrument 6.
Described instrument 6 is further used for timing, for example, every 1 second, from described CAN bus, receive the once fault message of current generation, receive after the fault message of current generation, according to the SPN of the fault message of described current generation and FMI, fault relevant information is shown.Regularly receive and avoids on the one hand receiving in real time the too much bandwidth that takies CAN bus, avoid on the other hand can not being processed in time after fault generation.
Described at least one function control system comprises at least one in power control system 1, chassis and DAS (Driver Assistant System) 2, safety system 3, body control system 4 and information entertainment 5.
CAN bus system of the present invention is applicable to the vehicles such as commercial vehicle/comm..vehicle, adopts SAE (automotive engineer association of the U.S., Society of Automotive Engineers) standard SAE-J1939 series communications protocol to carry out communication.
Fig. 2 is the method flow diagram that the use CAN bus system of the embodiment of the present invention is carried out trouble diagnosing; As described in Figure 2, described method comprises step:
S1: at least one function control system is in the time of et out of order, and initiatively by the fault message of current generation, DM1 message sends in CAN bus;
In this step, described at least one function control system in the time of et out of order according to SAE-J1939-73 agreement to sending and carry DTC (DTC in described CAN bus, Diagnostic Trouble Codes) the fault message of current generation, it is DM1 message, and do not need associated components to obtain DTC in the mode of request, save the time of obtaining DTC;
After step S1, also comprise: described at least one function control system sends DM1 message one time in every 1 second in described CAN bus; If there is new DTC in 1 second, send immediately new DM1 and send prior to former DM1, to react new DTC; Described new DM1 should comprise current all DTC; If DTC occurred repeatedly to activate during 1 second, fault occurs to and does not activate, and the state that fault does not occur changes, should be in next 1 second moment, send DM1 to confirm that DTC is not for activating, and now DM1 carries 0 DTC; If DCT life period exceedes 1 second, then become and do not activate, DM1 should send immediately to confirm that DTC is not for activating after state changes, now DM1 carries 0 DTC.
The data length of described DM1 message is 4n+2 byte (number of the DTC that n is current activation), the data length of described DM1 message exceedes 8 byte host-host protocol SAEJ1939-21 and sends, and the data message of described DM1 message comprises: the frequency of the DTC of LED status, DTC and current state of activation.This also comprises the DTC that discharge is relevant.If n=1, DM1=LED status (2 byte)+DTC (4 byte).In first byte of described LED status, 8-7 position is fault-indicating lamp state, represents the fault that discharge is relevant; 6-5 position is red stopping light state, represents that major failure needs to stop; 4-3 position is amber alerts lamp state, represents that vehicle trouble needn't stop; 2-1 position is guard lamp state, and expression Vehicular system goes wrong and be very likely relevant to interlock circuit subsystem, and wherein, 00 represents that indicator lamp extinguishes, and 01 expression indicator lamp is lighted.Second byte of described LED status retains, and 4 LED status of being distributed by SAE, fill with 0xFF.
Each DTC comprises three territories: parts (SPN), mark fault type (FMI) and SPN conversion regime (CM) and fault frequency (OC) that fault occurs.
Make a=LED status, b=SPN, c=FMI, d=CM and OC, in the time having multiple DTC to exist, the message format of described DM1 is as following table:
a b c d b c d b c d ...
Table 1DM1 message format
Wherein, OC starts to increase to 126 from 0, if occurred the 127th time, keeps 126, all put 1 show unavailable; CM sets to 0 or 1, for example, can set and set to 0 fault content information corresponding to failure message that represents SPN to be converted to setting, puts 1 expression SPN is converted to the Word message of setting, for example " system failure please arrive maintenance station and keep in repair ".
S2: instrument 6 receives the fault message of current generation from described CAN bus, resolves the fault message of described current generation and fault relevant information is shown.
In this step, described instrument 6 can regularly, for example, every 1 second, receive the once fault message of current generation from described CAN bus, receive after the fault message of current generation, according to the SPN of the fault message of described current generation and FMI, fault relevant information is shown.Regularly receive and avoids on the one hand receiving in real time the too much bandwidth that takies CAN bus, avoid on the other hand can not being processed in time after fault generation.
If the failure message of setting, while generation such as the soluble fault of the chaufeurs such as coolant-temperature override or throttle and the brake fault that has a strong impact on traffic safety such as insincere, now the CM territory of described DTC sets to 0, instrument 6 is being converted to SPN territory in described DTC after corresponding fault content information, show FMI territory in described DTC content and described in the fault content information that converts to chaufeur, be conducive to chaufeur and adopt suitable processing mode;
If not the failure message of setting, CM territory in described DTC puts 1, instrument 6 is being converted to SPN territory in described DTC the Word message of setting, after " system failure please arrive maintenance station maintenance ", can only show " system failure; please arrive maintenance station maintenance ", arrive and specify after repair location, according to corresponding SPN and FMI, maintainer can be found corresponding fault and be overhauled by failure code storehouse.
By this step, the parts that in lighting not under command light, fault occurred and failure mode are resolved and are presented in instrument and check for chaufeur or maintainer, can solve easily in time failure problems.
After fault handling, instrument 6 can also utilize the DM1 message with 0 DTC receiving that the failure message showing in instrument is disposed.
In sum, the invention discloses a kind of CAN bus system and method for diagnosing faults thereof, according to the present invention, in the time having parts et out of order, associated components will be according to the protocol rule of SAE-J1939-73 to sending fault message take 1 second as the cycle in CAN bus, and do not need controller to obtain DTC in the mode of request, save the time of obtaining DTC.Utilize instrument timing to receive fault message from described CAN bus, resolve described fault message and fault relevant information is shown, the parts that in lighting not under command light, fault occurred and failure mode are resolved and are presented in instrument and check for chaufeur or maintainer, can solve in time failure problems, realize conveniently trouble diagnosing.
Above embodiment is only for illustrating the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; without departing from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (3)

1. a method that uses the CAN of controller local area network bus system to carry out trouble diagnosing, it is characterized in that, described CAN bus system, comprise at least one function control system and the instrument (6) that are connected in CAN bus, described at least one function control system, be further used in the time of et out of order, initiatively the fault DM1 message of current generation sent in described CAN bus; Described instrument (6), is further used for receiving DM1 message from described CAN bus, resolves described DM1 message and fault relevant information is shown, and described method comprises step:
S1: at least one function control system, in the time of et out of order, initiatively sends to the fault DM1 message of current generation in CAN bus;
S2: instrument (6) receives the fault message of current generation from described CAN bus, resolves the fault message of described current generation and fault relevant information is shown;
Described DM1 message comprises DTC DTC, after step S1, also comprises:
Described at least one function control system sends a DM1 message for every 1 second; If there is new DTC in 1 second, send immediately new DM1 message; Described new DM1 comprises current all DTC; If DTC during 1 second in generation be repeatedly activated to the state that do not activate and change, in next 1 second moment, send DM1 message to confirm that DTC is not for activating, now described DM1 message carries 0 DTC; If DCT life period exceedes 1 second, then become and do not activate, after changing, DTC state sends immediately DM1 message to confirm that DTC is not for activating, and now DM1 carries 0 DTC;
Described DTC comprises three territories: parts SPN, mark fault type FMI and SPN conversion regime CM and fault frequency OC that fault occurs; If set fault occur time, the CM territory of described DTC sets to 0, described in step S2, resolve described DM1 message and fault relevant information shown specifically and comprised: SPN territory in described DTC is converted to after corresponding fault content information, show FMI territory in described DTC content and described in the fault content information that converts to; While generation if not the fault of setting, the CM territory of described DTC puts 1, described in step S2, resolve described DM1 message and fault relevant information is shown specifically and comprised: SPN territory in described DTC is converted to after the word content of setting, only showing the word content of described setting.
2. method according to claim 1, is characterized in that, step S2 specifically comprises:
Instrument (6) timing receives DM1 message from described CAN bus, resolves described DM1 message and fault relevant information is shown.
3. method according to claim 1, it is characterized in that, described at least one function control system comprises at least one in power control system (1), chassis and DAS (Driver Assistant System) (2), safety system (3), body control system (4) and information entertainment (5); The failure message of described setting is the chaufeur fault that can solve or the fault that has a strong impact on traffic safety; The word content of described setting is " system failure please arrive maintenance station maintenance ".
CN201110063476.6A 2011-03-16 2011-03-16 CAN (Controller Area Network) bus system and fault diagnosis method thereof Active CN102673495B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110063476.6A CN102673495B (en) 2011-03-16 2011-03-16 CAN (Controller Area Network) bus system and fault diagnosis method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110063476.6A CN102673495B (en) 2011-03-16 2011-03-16 CAN (Controller Area Network) bus system and fault diagnosis method thereof

Publications (2)

Publication Number Publication Date
CN102673495A CN102673495A (en) 2012-09-19
CN102673495B true CN102673495B (en) 2014-05-28

Family

ID=46806249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110063476.6A Active CN102673495B (en) 2011-03-16 2011-03-16 CAN (Controller Area Network) bus system and fault diagnosis method thereof

Country Status (1)

Country Link
CN (1) CN102673495B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104442831B (en) * 2014-11-25 2017-01-18 安徽安凯汽车股份有限公司 Method for intelligently diagnosing fault of electric vehicle based on CAN information
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
CN113189970B (en) * 2021-05-10 2023-04-07 东风康明斯发动机有限公司 Hardware-in-loop automatic test method and system of CAN bus controller and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101382803A (en) * 2008-10-17 2009-03-11 奇瑞汽车股份有限公司 Vehicle-mounted on-line diagnose system based on SAEJ1939
CN101425951A (en) * 2007-10-29 2009-05-06 徐福芳 Vehicle body CAN bus control system
CN101770234A (en) * 2009-12-25 2010-07-07 奇瑞汽车股份有限公司 Diagnostic system for car body controller based on SAEJ1939
CN201619517U (en) * 2010-02-25 2010-11-03 厦门金龙联合汽车工业有限公司 Bus type bus fault warning device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7454298B2 (en) * 2006-07-31 2008-11-18 Caterpillar Inc. Apparatus and method for identifying electrical faults

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101425951A (en) * 2007-10-29 2009-05-06 徐福芳 Vehicle body CAN bus control system
CN101382803A (en) * 2008-10-17 2009-03-11 奇瑞汽车股份有限公司 Vehicle-mounted on-line diagnose system based on SAEJ1939
CN101770234A (en) * 2009-12-25 2010-07-07 奇瑞汽车股份有限公司 Diagnostic system for car body controller based on SAEJ1939
CN201619517U (en) * 2010-02-25 2010-11-03 厦门金龙联合汽车工业有限公司 Bus type bus fault warning device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SAE.SAE J1939-73.《SAE J1939-73》.2001, *

Also Published As

Publication number Publication date
CN102673495A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN201638076U (en) Vehicle-mounted diagnosis device based on CAN (Content Addressable Network) bus
EP3835905B1 (en) Vehicle control system
WO2012173949A1 (en) Data conversion system and method for converting data that is distributed in a vehicle
CN103439961B (en) Automobile electronic control unit diagnostic function test method and system
CN101799686B (en) Vehicle-mounted diagnosis system
CN112187936B (en) Vehicle data processing method, device, equipment, storage medium and vehicle
CN104062970A (en) Vehicle OBD data acquisition system and method based on Bluetooth
CN103921783A (en) System and method for recognizing real braking by using brake switch and pressure of brake main cylinder
CN110928271A (en) Automobile self-service diagnosis method and system
JP2008236408A (en) Multiplex communication apparatus for vehicle
US20200382338A1 (en) Methods and systems for controlling locomotives
CN102673495B (en) CAN (Controller Area Network) bus system and fault diagnosis method thereof
CN102407856A (en) Hot backup redundancy method and hot backup redundancy system of train central control unit
CN111381574A (en) Vehicle remote fault diagnosis system and method
CN109866710A (en) A kind of In-vehicle networking abnormality detection system
CN110562275B (en) Multichannel dual-redundancy rail transit vehicle reconnection system and method
CN102681526A (en) CAN (controller area network) bus system and fault diagnosis method thereof
CN103085736A (en) Vehicle speed signal secure transmission system, method and vehicle
CN102514535A (en) Communication processing method of speed signals in vehicle-mounted network system
CN107633668B (en) Infrared communication method and device for battery management in Internet of vehicles
CN112793624A (en) Train control and monitoring system based on TSN
CN101700758A (en) System and method for displaying automobile fault information
KR100980973B1 (en) automobile diagnosis system with wireless communication and method thereof
KR102138143B1 (en) Method for analyzing protocol and automatic train protection display using the same
AU2013101599A4 (en) Data conversion system and method for converting data that is distributed in a vehicle

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant