CN108845564A - CAN bus self-diagnosable system and method - Google Patents
CAN bus self-diagnosable system and method Download PDFInfo
- Publication number
- CN108845564A CN108845564A CN201810679488.3A CN201810679488A CN108845564A CN 108845564 A CN108845564 A CN 108845564A CN 201810679488 A CN201810679488 A CN 201810679488A CN 108845564 A CN108845564 A CN 108845564A
- Authority
- CN
- China
- Prior art keywords
- controller
- message
- bus
- time
- power supply
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0208—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B23/00—Testing or monitoring of control systems or parts thereof
- G05B23/02—Electric testing or monitoring
- G05B23/0205—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
- G05B23/0259—Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the response to fault detection
Abstract
The present invention relates to network communication and onboard diagnostics field, more particularly to a kind of CAN bus self-diagnosable system and method, the system comprises:CAN bus and it is located at the first controller, second controller in CAN bus;First controller, the second controller are connect with electrifying device respectively;First controller obtains the message of the second controller in real time, whether first controller lags behind the power supply status type of itself for the power supply status type of the second controller according to the packet check of the second controller, if it is, first controller controls power-on time that the second controller powers on as time zero using the electrifying device, carries out self diagnosis;Otherwise, first controller controls the power-on time itself powered on as time zero using the electrifying device, carries out self diagnosis.Through the invention, communication failure caused by start-up study in self diagnosis is eliminated to report by mistake.
Description
Technical field
The present invention relates to network communication and onboard diagnostics fields, more particularly to a kind of CAN bus self-diagnosable system and side
Method.
Background technique
There are multiple controllers on automobile CAN (Controller Area Network) line, multiple controller applications are more,
And together by twisted pair line connection, CAN bus system is formed, CAN bus communication failure can not pass through traditional wiring harness test
The quick orientation and communication failure of method, therefore controller mostly uses the mode of self diagnosis to record whether communication failure to occur.
General self diagnosis control logic is:It is default to the first controller in CAN bus to receive the message period, in the first control
When device processed powers on communication, while starting diagnostic logic:After the first controller powers on, if not receiving report in a cycle
Text, then counter adds one, after having correctly received message, counter O reset.After accumulative total device reaches setting value, current failure is lost
Code.After having correctly received message again, counter O reset, and record current message and lose historical failure code.
But the startup power supply state of controller is generally divided into three kinds in CAN bus, normal electricity, ACC, ON.First controller
The electrifying startup time and the electrifying startup power supply status of the affiliated second controller of message there may be inconsistent situations;Even if
Startup power supply state is identical, and the network startup time of different controllers is also inconsistent, and the first controller communication starts N doubling time
Afterwards, second controller remains unfulfilled network startup.If checked by above-mentioned logic without exception, then there are the feelings of wrong report error code
Condition.
Summary of the invention
For the defects in the prior art with deficiency, the present invention provides a kind of CAN bus self-diagnosable system and method, with
Communication failure caused by start-up study in self diagnosis is eliminated to report by mistake.
To achieve the goals above, the present invention provides following technical solutions:
A kind of CAN bus self-diagnosable system is applied on vehicle, the system comprises:
CAN bus and it is located at the first controller, second controller in CAN bus;It is first controller, described
Second controller is connect with electrifying device respectively;First controller obtains the message of the second controller in real time, described
Whether power supply status type of first controller for the second controller according to the packet check of the second controller be stagnant
Afterwards in the power supply status type of itself, if so, first controller controls the second controller with the electrifying device
The power-on time powered on is time zero, carries out self diagnosis;Otherwise, first controller controls itself with the electrifying device
The power-on time powered on is time zero, carries out self diagnosis.
Preferably, the power supply status type includes:
Often electricity, ON grades of electricity and ACC grades of electricity;The ON grades of electric hysteresis in the ACC grades of electricity, the ACC grades of electric hysteresis in
The normal electricity.
Preferably, the electrifying device is:
Any one of car body controller, ignition switch and PEPS device are multinomial;The car body controller is total by CAN
Line is connect with first controller, the second controller respectively;The ignition switch is by rigid line respectively with described first
Controller, second controller connection;The PEPS device is controlled with first controller, described second respectively by rigid line
Device connection processed.
Preferably, the system also includes:First counter and the first timer;
First controller carries out self diagnosis in the following manner:First controller controls after determining time zero
First timer starts timing, and after first timer reaches setting time, if not receiving second control
The message of device processed, then reset first timer and control first counter and add one;First controller judges institute
State whether the first counter reaches setting value;If so, determining the message loss, current failure code is recorded.
Preferably, the system also includes:
Buzzer, the indicator light being connect respectively with first controller;
First controller determines the fault level of the message, the fault level according to the current failure code
Including:Catastrophe failure, moderate failure and generic failure;
When the fault level of the message is catastrophe failure, first controller controls the buzzer, institute respectively
Indicator light is stated to alarm;
When the fault level of the message is moderate failure, first controller controls the indicator light and is referred to
Show.
A kind of CAN bus self-diagnosing method is applied on vehicle, the method includes:
The message for the second controller connecting with electrifying device is obtained in real time;
The power supply status of itself whether is lagged behind according to the power supply status type of second controller described in the packet check
Type;
It is carried out certainly if so, controlling the power-on time that the second controller powers on using the electrifying device as time zero
Diagnosis;
Otherwise, the power-on time itself powered on is controlled using the electrifying device and carries out self diagnosis as time zero.
Preferably, the power supply status type includes:
Often electricity, ON grades of electricity and ACC grades of electricity;The ON grades of electric hysteresis and ACC grade electric, the described ACC grades of electric hysteresis in
The normal electricity.
Preferably, the method also includes:
Delay timer is set;
If according to the power supply status hysteresis of the packet check to the second controller in the power supply shape of itself
State type controls the delay timer and starts timing then after the electrifying device control second controller powers on;
When the delay timer reaches default delay time, determine that time zero carries out self diagnosis and resets the delay
Timer.
Preferably, the self diagnosis includes:
First counter and the first timer are set;
After determining time zero, controls first timer and start timing;
After first timer reaches setting time, if not receiving the message of the second controller, reset
First timer, and control first counter and add one;
Judge whether first counter reaches setting value;
If so, determining message loss, current failure code is recorded, resets first counter.
Preferably, the self diagnosis further includes:
According to the current failure code, determine that the fault level of the message, the fault level include:Catastrophe failure,
Moderate failure and generic failure;
When the fault level of the message is catastrophe failure, alarmed by buzzer, indicator light;
When the fault level of the message is moderate failure, indicated by the indicator light.
The beneficial effects of the present invention are:
CAN bus self-diagnosable system provided by the invention and method, it is total that the first controller with second controller is respectively positioned on CAN
On line, and first controller, the second controller are connect with electrifying device respectively, and first controller obtains in real time
The message of the second controller is taken, and whether the power supply status type of the second controller according to the packet check lags
In the power supply status type of itself, if so, first controller is controlled on the second controller with the electrifying device
The power-on time of electricity is that time zero carries out self diagnosis;Otherwise, controlling the power-on time itself powered on the electrifying device is
Time zero carries out self diagnosis.Through the invention, communication failure caused by start-up study in self diagnosis is eliminated to report by mistake.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of CAN bus self-diagnosable system of the embodiment of the present invention.
Fig. 2 is a kind of flow chart of CAN bus self-diagnosing method of the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to be further understood that feature and technology contents of the invention, with reference to the accompanying drawing
It elaborates with embodiment to the embodiment of the present invention.
It is a kind of structural schematic diagram of CAN bus self-diagnosable system of the embodiment of the present invention, the system packet as shown in Figure 1
It includes:CAN bus and the first controller, the second controller being located in the CAN bus;First controller, institute
It states second controller to connect with electrifying device respectively, first controller obtains the message of the second controller, institute in real time
State the first controller for the second controller according to the packet check of the second controller power supply status type whether
The power supply status type of itself is lagged behind, if so, first controller is with electrifying device control second control
The power-on time that device powers on is time zero, carries out self diagnosis;Otherwise, first controller is controlled certainly with the electrifying device
Electric power-on time is time zero with it, carries out self diagnosis.
It should be noted that the CAN bus is not limited to only the first controller and second in the embodiment of the present invention
Controller, can be by multiple first controllers and multiple second controllers in the CAN bus;Further, the application is not yet
It is defined in the first controller to detect second controller, is also possible to second controller and the first controller is detected,
To carry out the self diagnosis in the CAN bus.Further, the power supply status type of the first controller and second controller
When CAN bus is arranged, preliminary definition is good for power supply status type, and the first controller then can be with according to the message of second controller
Determine the power supply status type of second controller;Equally, second controller can also determine according to the message of the first controller
The power supply status type of one controller.
Specifically, the power supply status type includes:Often electricity, ON grades of electricity and ACC grades of electricity;The ON grades of electric hysteresis is in institute
State ACC grades of electricity;The ACC grades of electric hysteresis is in the normal electricity.First controller can be supplied by often electricity or ON grades of electricity or ACC grades of electricity
Electricity;Second controller can be by often electricity or ON grades of electricity or ACC grades of electricity power supplies.
Specifically, the electrifying device is:Any one of car body controller, ignition switch and PEPS device are multinomial;
The car body controller is normal electrical part, the car body controller by CAN bus respectively with first controller, described the
The connection of two controllers;The ignition switch is connect with first controller, the second controller respectively by rigid line;It is described
PEPS device is connect with first controller, the second controller respectively by rigid line.It should be noted that the present invention is real
It applies in example, the first controller, second controller are directly connected to ignition switch respectively, the power supply directly provided by ignition switch;
First controller, second controller can also be connect with car body controller respectively, notify by CAN bus by car body controller
One controller and second controller are currently any power supply status types, so that the first controller be made to be with second controller determination
It is no to start;First controller, second controller can also be directly connected to PEPS device respectively, directly be provided by PEPS device
Power supply, PEPS device refers to the conventional keyless entry and starting (PEPS, Passive on vehicle in the embodiment of the present invention
Entry Passive Start) system, vehicle can be made to be in ON grades of states or OFF grades of states, PEPS dress by PEPS device
It sets using advanced RFID (radio frequency identification) technology, realizing can into the car and one-key start without pressing remote controler
The functions such as engine, PEPS device have more intelligentized entrance guard management, and higher anti-theft performance has become automotive electronics
The mainstream of burglary-resisting system application.It should be noted that electrifying device shown in Fig. 1 respectively with normal electricity Vbat, GND connect,
Therefore, in Fig. 1, electrifying device only can be ignition switch or/and PEPS device.In Fig. 1, although the first controller,
Two controllers also with normal electricity Vbat, GND connect, but not is powered by Vbat, only electrifying device control under, first control
Device processed can just work with second controller.Further, when electrifying device is car body controller, car body controller is also from point
Fire switch or other controllers know the first controller and second controller power-up state.
Further, this is in order to preferably determine the timing time started, and in one embodiment of the invention, the system can be with
Including:Delay timer;First controller is very according to the power supply status type of the packet check to the second controller
The power supply status type of itself is lagged behind, then after the electrifying device control second controller powers on, is prolonged described in control
When timer start timing;When the delay timer reaches default delay time, determine that time zero carries out self diagnosis and clear
Zero delay timer.
Further, the application is in order to preferably determine the timing time started, in another embodiment of the present invention, described the
One controller does not lag behind certainly according to the power supply status type of packet check to the second controller of the second controller
The power supply status type of body controls the delay timer and starts timing then after the electrifying device is controlled and itself powered on;When
The delay timer reaches default delay time, determines that time zero carries out self diagnosis and resets the delay timer.It needs
It is noted that the default delay time is determined by calibration by the controller in CAN bus, for example, default delay time
For 10s.
Further, in order to be better achieved self diagnosis, in another embodiment of the invention, the system also includes:The
One counter and the first timer.
First controller carries out self diagnosis in the following manner:First controller controls after determining time zero
First timer starts timing, and after first timer reaches setting time, if not receiving second control
The message of device processed, then reset first timer and control first counter and add one;First controller judges institute
State whether the first counter reaches setting value;If so, determining the message loss, current failure code is recorded.
Further, another embodiment of the invention, first controller are recording current failure code, are controlling institute
It states the first timer and starts timing, continue the message for detecting whether to receive the second controller within the set time;If so,
Reset first counter and first timer, and log history error code.It should be noted that setting time and
Setting value can specifically be determined according to controller different model in CAN bus, for example, setting time is 100ms, setting value 5
~6 times.
In another embodiment of the present invention, the system also includes:The buzzer that is connect respectively with first controller,
Indicator light;First controller determines the fault level of the message, the fault level packet according to the current failure code
It includes:Catastrophe failure, moderate failure and generic failure;When the fault level of the message is catastrophe failure, first control
Device processed controls the buzzer respectively, the indicator light is alarmed;When the fault level of the message is moderate failure, institute
The first controller control indicator light is stated to be indicated.
Specifically, the message content for needing received second controller, the first control have been defined inside the first controller
The function that device processed needs message to be realized according to the message function or second controller, carries out the division of fault level:
Catastrophe failure:This message loss will affect the driving safety of vehicle, and (driving safety of dangerous automobile, may cause
Casualties, to lose control of one's vehicle, fire incident, to ambient enviroment cause grave danger and destroy etc.), driver can pass through vehicle
Failure is discovered in performance, causes the complaint of customer.First controller is directed to the processing strategie of catastrophe failure:First controller record should
Message loss current failure code, while CAN signal is sent to instrument, to light the red alarm lamp in instrument and start buzzing
Device makes instrument display alarm driver " parking checking immediately ".
Moderate failure:This message loss will directly affect vehicle driving functions (dynamic property, reliability, economy), drive
Member can be showed by vehicle discovers failure, causes the complaint of customer;First controller is directed to moderate troubleshooting strategy:Record
The message loss current failure code, while CAN signal is sent to instrument, to light instrument yellow alarm lamp.
Generic failure:This message loss will not influence the normal safety traffic of vehicle.First controller is directed to generic failure
Processing strategie:The message loss current failure code is recorded, to check debugging in vehicle maintenance.
In conclusion CAN bus self-diagnosable system provided in an embodiment of the present invention, by distinguishing different power supply status,
Accurately to start the count strategy of message loss;The security level of the message is distinguished, simultaneously to execute corresponding control strategy.
For above system, the embodiment of the invention also provides a kind of CAN bus self-diagnosing method, the method is applied to
On vehicle, specifically, as shown in Fig. 2, the described method comprises the following steps:
Step 100:Start.
Step 101:The message for the second controller connecting with electrifying device is obtained in real time.
It should be noted that control flow of the embodiment of the present invention can be executed by any one controller of CAN bus, such as the
One controller, and it is then second controller that the first controller, which needs the controller of self diagnosis,.The CAN bus is not limited to
There are the first controller and second controller, it can be by multiple first controllers and multiple second controllers in the CAN bus;
Further, the application is also not limited to the first controller and detects to second controller, is also possible to second controller to
One controller is detected, to carry out the self diagnosis in the CAN bus.Further, the power supply status class of the first controller
When CAN bus is arranged, preliminary definition is good for the power supply status type of type and second controller, and the first controller is according to second
The message of controller can then determine the power supply status type of second controller;Equally, second controller is according to the first controller
Message can also determine the power supply status type of the first controller.
Specifically, the electrifying device can be:Any one of car body controller, ignition switch and PEPS device are more
?;The car body controller be normal electrical part, the car body controller by CAN bus respectively with first controller, institute
State second controller connection;The ignition switch is connect with first controller, the second controller respectively by rigid line;
The PEPS device is connect with first controller, the second controller respectively by rigid line.It should be noted that this hair
In bright embodiment, the first controller, second controller are directly connected to ignition switch respectively, the electricity directly provided by ignition switch
Source;First controller, second controller can also be connect with car body controller respectively, be led to by car body controller by CAN bus
Know what power supply status type the first controller and second controller are currently, to keep the first controller and second controller true
It is fixed whether to start;First controller, second controller can also be directly connected to PEPS device respectively, direct by PEPS device
The power supply of offer, in the embodiment of the present invention, PEPS device refer to conventional keyless entry on vehicle and starting (PEPS,
Passive Entry Passive Start) system, vehicle can be made to be in ON grades of states or OFF grades of shapes by PEPS device
State, PEPS device use advanced RFID (radio frequency identification) technology, realize without press remote controler can into the car with
And the functions such as one-key start engine, PEPS device have more intelligentized entrance guard management, higher anti-theft performance, at
For the mainstream of automobile electronic anti-burglary system application.
Step 102:Itself whether is lagged behind according to the power supply status type of second controller described in the packet check
Power supply status type;If so, executing step 103;Otherwise, step 105 is executed.
Specifically, the power supply status type includes:
Often electricity, ON grades of electricity and ACC grades of electricity;The ON grades of electric hysteresis and ACC grade electric, the described ACC grades of electric hysteresis in
The normal electricity.First controller can be by often electricity or ON grades of electricity or ACC grades of electricity power supplies;Second controller can be by often electricity or ON grades
Electricity or ACC grades of electricity power supplies.
Step 103:The power-on time that the second controller powers on is controlled using the electrifying device to carry out as time zero
Self diagnosis.
Step 104:Terminate.
Step 105:The power-on time itself powered on is controlled using the electrifying device and carries out self diagnosis as time zero, is executed
Step 104.
CAN bus self-diagnosing method provided in an embodiment of the present invention, according to the second controller being connect with electrifying device
Whether the power supply status type of second controller described in packet check lags behind the power supply status type of itself, and is lagging behind certainly
When the power supply status type of body, using the electrifying device control power-on time that the second controller powers on as time zero into
Row self diagnosis;In power supply status type of the anhysteretic in itself, the power-on time itself powered on is controlled with the electrifying device
Self diagnosis is carried out for time zero.Invention is done by distinguishing different power supply status, accurately to carry out the timing before self diagnosis, is shut out
Communication failure caused by the difference of the power supply status of two controllers is reported by mistake absolutely.
Further, in order to guarantee the accuracy of timing, in another embodiment of the invention, the method includes following steps
Suddenly:
Step 200:Start, delay timer is set.
Step 201:The message for the second controller connecting with electrifying device is obtained in real time.
Step 202:Itself whether is lagged behind according to the power supply status type of second controller described in the packet check
Power supply status type;If so, executing step 203;Otherwise, step 207 is executed.
Step 203:After the electrifying device control second controller powers on, controls the delay counter and start
Timing.
Step 204:Judge whether the delay timer reaches default delay time;If so, executing step 205;It is no
Then, 204 are returned to step.
It should be noted that the default delay time is determined by calibration by the controller in CAN bus, for example, in advance
If delay time is 10s.
Step 205:It determines that time zero carries out self diagnosis, and resets the delay timer.
Step 206:Terminate.
Step 207:After the electrifying device is controlled and itself powered on, controls the delay counter and start timing.
Step 208:Judge whether the delay timer reaches default delay time;If so, executing step 209;It is no
Then, 208 are returned to step.
Step 209:It determines that time zero carries out self diagnosis, and resets the delay timer, execute step 206.
CAN bus diagnostic method provided in an embodiment of the present invention carries out delay to time zero by delay timer and sets
It sets, to carry out self diagnosis after having waited default delay time, has prevented to lead to caused by different start-up studies through the invention
Believe fault misdescription.
During the present invention is implemented, the self diagnosis includes:
First counter and the first timer are set;After determining time zero, controls first timer and start to count
When;After first timer reaches setting time, if not receiving the message of the second controller, described is reset
One timer, and control first counter and add one;Judge whether first counter reaches setting value;If so, really
Determine message loss, record current failure code, resets first counter.
Further, in another embodiment of the invention, the self diagnosis includes:
First counter and the first timer are set;After determining time zero, controls first timer and start to count
When;After first timer reaches setting time, if not receiving the message of the second controller, described is reset
One timer, and control first counter and add one;Judge whether first counter reaches setting value;If so, really
Determine message loss, records current failure code;It controls first timer and starts timing, continue in first timer
Setting time in detect whether to receive the message of the second controller;If so, reset first counter with it is described
First timer, and log history error code.It should be noted that setting time and setting value can be according in CAN bus
Controller different model specifically determines, for example, setting time is 100ms, setting value is 5~6 times.
Further, in another embodiment of the invention, the self diagnosis further includes:
According to the current failure code, determine that the fault level of the message, the fault level include:Catastrophe failure,
Moderate failure and generic failure;When the fault level of the message is catastrophe failure, reported by buzzer, indicator light
It is alert;When the fault level of the message is moderate failure, indicated by the indicator light.
Specifically, specifically, the message content for needing received second controller has been defined inside the first controller,
The function that first controller needs message to be realized according to the message function or second controller carries out drawing for fault level
Point:
Catastrophe failure:This message loss will affect the driving safety of vehicle, and (driving safety of dangerous automobile, may cause
Casualties, to lose control of one's vehicle, fire incident, to ambient enviroment cause grave danger and destroy etc.), driver can pass through vehicle
Failure is discovered in performance, causes the complaint of customer.First controller is directed to the processing strategie of catastrophe failure:First controller record should
Message loss current failure code, while CAN signal is sent to instrument, to light the red alarm lamp in instrument and start buzzing
Device makes instrument display alarm driver " parking checking immediately ".
Moderate failure:This message loss will directly affect vehicle driving functions (dynamic property, reliability, economy), drive
Member can be showed by vehicle discovers failure, causes the complaint of customer;First controller is directed to moderate troubleshooting strategy:Record
The message loss current failure code, while CAN signal is sent to instrument, to light instrument yellow alarm lamp.
Generic failure:This message loss will not influence the normal safety traffic of vehicle.First controller is directed to generic failure
Processing strategie:The message loss current failure code is recorded, to check debugging in vehicle maintenance.
In conclusion CAN bus self-diagnosable system provided in an embodiment of the present invention and method, pass through controller to be measured (
Two controllers) message the startup power supply state of controller to be measured has been determined, the power supply status for having prevented two controllers is different,
Caused communication failure wrong report;Delay time is preset by waiting in the application, has prevented different start-up studies, it is caused logical
Interrogate fault misdescription;By having distinguished fault level in the application, and different fault levels is formulated for strategy, prevented failure
Display leads to the problem of driver's fear.
The embodiment of the present invention has been described in detail above, and specific embodiment used herein carries out the present invention
It illustrates, the above embodiments are only used to help understand system and method for the invention;Meanwhile for the one of this field
As technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, to sum up institute
It states, the contents of this specification are not to be construed as limiting the invention.
Claims (10)
1. a kind of CAN bus self-diagnosable system is applied on vehicle, which is characterized in that the system comprises:
CAN bus and it is located at the first controller, second controller in CAN bus;First controller, described second
Controller is connect with electrifying device respectively;First controller obtains the message of the second controller in real time, and described first
Whether power supply status type of the controller for the second controller according to the packet check of the second controller lags behind
The power supply status type of itself powers on if so, first controller controls the second controller with the electrifying device
Power-on time be time zero, carry out self diagnosis;Otherwise, first controller controls itself with the electrifying device and powers on
Power-on time be time zero, carry out self diagnosis.
2. CAN bus self-diagnosable system according to claim 1, which is characterized in that the power supply status type includes:
Often electricity, ON grades of electricity and ACC grades of electricity;The ON grades of electric hysteresis is in the ACC grades of electricity, the ACC grades of electric hysteresis in described
Often electricity.
3. CAN bus self-diagnosable system according to claim 1, which is characterized in that the electrifying device is:
Any one of car body controller, ignition switch and PEPS device are multinomial;The car body controller passes through CAN bus point
It is not connect with first controller, the second controller;The ignition switch is controlled with described first respectively by rigid line
Device, second controller connection;The PEPS device by rigid line respectively with first controller, the second controller
Connection.
4. CAN bus self-diagnosable system according to claim 1, which is characterized in that the system also includes:First counts
Device and the first timer;
First controller carries out self diagnosis in the following manner:Described in first controller controls after determining time zero
First timer starts timing, and after first timer reaches setting time, if not receiving the second controller
Message, then reset first timer and control first counter and add one;First controller judges described
Whether one counter reaches setting value;If so, determining the message loss, current failure code is recorded.
5. CAN bus self-diagnosable system according to claim 4, which is characterized in that the system also includes:
Buzzer, the indicator light being connect respectively with first controller;
First controller determines that the fault level of the message, the fault level include according to the current failure code:
Catastrophe failure, moderate failure and generic failure;
When the fault level of the message is catastrophe failure, first controller controls the buzzer, the finger respectively
Show that lamp is alarmed;
When the fault level of the message is moderate failure, first controller controls the indicator light and is indicated.
6. a kind of CAN bus self-diagnosing method is applied on vehicle, which is characterized in that the method includes:
The message for the second controller connecting with electrifying device is obtained in real time;
The power supply status type of itself whether is lagged behind according to the power supply status type of second controller described in the packet check;
If so, controlling the power-on time that the second controller powers on using the electrifying device carries out autodiagnosis as time zero
It is disconnected;
Otherwise, the power-on time itself powered on is controlled using the electrifying device and carries out self diagnosis as time zero.
7. CAN bus self-diagnosing method according to claim 6, which is characterized in that the power supply status type includes:
Often electricity, ON grades of electricity and ACC grades of electricity;The ON grades of electric hysteresis is with the ACC grades of electricity, the ACC grades of electric hysteresis in described
Often electricity.
8. CAN bus self-diagnosing method according to claim 6, which is characterized in that the method also includes:
Delay timer is set;
If according to the power supply status hysteresis of the packet check to the second controller in the power supply status class of itself
Type controls the delay timer and starts timing then after the electrifying device control second controller powers on;
When the delay timer reaches default delay time, determine that time zero carries out self diagnosis and resets the delay timing
Device.
9. according to the described in any item CAN bus self-diagnosing methods of claim 6-8, which is characterized in that the self diagnosis includes:
First counter and the first timer are set;
After determining time zero, controls first timer and start timing;
After first timer reaches setting time, if not receiving the message of the second controller, described in clearing
First timer, and control first counter and add one;
Judge whether first counter reaches setting value;
If so, determining message loss, current failure code is recorded, resets first counter.
10. CAN bus self-diagnosing method according to claim 9, which is characterized in that the self diagnosis further includes:
According to the current failure code, determine that the fault level of the message, the fault level include:Catastrophe failure, moderate
Failure and generic failure;
When the fault level of the message is catastrophe failure, alarmed by buzzer, indicator light;
When the fault level of the message is moderate failure, indicated by the indicator light.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810679488.3A CN108845564A (en) | 2018-06-27 | 2018-06-27 | CAN bus self-diagnosable system and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810679488.3A CN108845564A (en) | 2018-06-27 | 2018-06-27 | CAN bus self-diagnosable system and method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108845564A true CN108845564A (en) | 2018-11-20 |
Family
ID=64202464
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810679488.3A Pending CN108845564A (en) | 2018-06-27 | 2018-06-27 | CAN bus self-diagnosable system and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108845564A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111301283A (en) * | 2020-03-25 | 2020-06-19 | 北京汽车股份有限公司 | Vehicle lamp control method, device and system and vehicle |
CN112193072A (en) * | 2020-09-29 | 2021-01-08 | 奇瑞新能源汽车股份有限公司 | Method for checking error frames of CAN (controller area network) bus of electric vehicle |
CN112333007A (en) * | 2020-10-20 | 2021-02-05 | 中国第一汽车股份有限公司 | Control method and test method for CAN network diagnosis |
CN112319550A (en) * | 2020-10-30 | 2021-02-05 | 中车青岛四方机车车辆股份有限公司 | Fault diagnosis method, system and device based on train initial power-on and train |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404170A (en) * | 2011-11-18 | 2012-04-04 | 福建星网锐捷网络有限公司 | Detection method, device and system of message loss |
CN103116350A (en) * | 2012-12-06 | 2013-05-22 | 金龙联合汽车工业(苏州)有限公司 | Car controller area network (CAN) communication failure detection system and detection method thereof |
CN103546306A (en) * | 2012-07-13 | 2014-01-29 | 广州汽车集团股份有限公司 | Periodic CAN (cable area network) message loss fault judging system and method |
CN104816640A (en) * | 2015-04-29 | 2015-08-05 | 上汽通用五菱汽车股份有限公司 | Fault processing method and system for electric automobile |
CN106681307A (en) * | 2017-01-20 | 2017-05-17 | 湖北文理学院 | Fault control method of novel energy automobile and system thereof |
CN106888123A (en) * | 2017-03-14 | 2017-06-23 | 中国第汽车股份有限公司 | The monitoring method that a kind of CAN message is lost |
CN107128312A (en) * | 2017-05-27 | 2017-09-05 | 奇瑞汽车股份有限公司 | Hybrid vehicle fault diagnosis management system and method |
KR20180029603A (en) * | 2016-09-13 | 2018-03-21 | 주식회사 엘지화학 | Diagnosis method of can communication |
-
2018
- 2018-06-27 CN CN201810679488.3A patent/CN108845564A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102404170A (en) * | 2011-11-18 | 2012-04-04 | 福建星网锐捷网络有限公司 | Detection method, device and system of message loss |
CN103546306A (en) * | 2012-07-13 | 2014-01-29 | 广州汽车集团股份有限公司 | Periodic CAN (cable area network) message loss fault judging system and method |
CN103116350A (en) * | 2012-12-06 | 2013-05-22 | 金龙联合汽车工业(苏州)有限公司 | Car controller area network (CAN) communication failure detection system and detection method thereof |
CN104816640A (en) * | 2015-04-29 | 2015-08-05 | 上汽通用五菱汽车股份有限公司 | Fault processing method and system for electric automobile |
KR20180029603A (en) * | 2016-09-13 | 2018-03-21 | 주식회사 엘지화학 | Diagnosis method of can communication |
CN106681307A (en) * | 2017-01-20 | 2017-05-17 | 湖北文理学院 | Fault control method of novel energy automobile and system thereof |
CN106888123A (en) * | 2017-03-14 | 2017-06-23 | 中国第汽车股份有限公司 | The monitoring method that a kind of CAN message is lost |
CN107128312A (en) * | 2017-05-27 | 2017-09-05 | 奇瑞汽车股份有限公司 | Hybrid vehicle fault diagnosis management system and method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111301283A (en) * | 2020-03-25 | 2020-06-19 | 北京汽车股份有限公司 | Vehicle lamp control method, device and system and vehicle |
CN111301283B (en) * | 2020-03-25 | 2022-04-29 | 北京汽车股份有限公司 | Vehicle lamp control method, device and system and vehicle |
CN112193072A (en) * | 2020-09-29 | 2021-01-08 | 奇瑞新能源汽车股份有限公司 | Method for checking error frames of CAN (controller area network) bus of electric vehicle |
CN112333007A (en) * | 2020-10-20 | 2021-02-05 | 中国第一汽车股份有限公司 | Control method and test method for CAN network diagnosis |
CN112333007B (en) * | 2020-10-20 | 2022-08-19 | 中国第一汽车股份有限公司 | Control method and test method for CAN network diagnosis |
CN112319550A (en) * | 2020-10-30 | 2021-02-05 | 中车青岛四方机车车辆股份有限公司 | Fault diagnosis method, system and device based on train initial power-on and train |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108845564A (en) | CAN bus self-diagnosable system and method | |
US10337438B2 (en) | Push-button start system fault diagnosis | |
JP2578368B2 (en) | Detector and energy supply device for circuit including load to be monitored | |
CN106415673B (en) | For diagnosing the method and diagnostic testing apparatus of the state in vehicle | |
CN106004645B (en) | A kind of trailer turns to lamp control system and control method | |
CN107764142B (en) | Double-set redundancy design all-electronic fuze tester and testing method thereof | |
CN110834541B (en) | Safety monitoring method and related device | |
US20100049473A1 (en) | Validation process for fault detection of a device | |
CN106871378B (en) | Method and device for judging poor heat exchange of air conditioner | |
US9353717B2 (en) | Engine control unit for driving an electric circuit and method | |
CN105974255B (en) | The adapter pin short-circuit detecting device and method of onboard diagnostic system | |
CN110995820A (en) | Vehicle inspection system based on mobile phone APP, inspection method and registration method thereof | |
US20200010070A1 (en) | Vehicle electricity storage device | |
CN108919781A (en) | The self checking method and realization circuit of EMU auto-passing neutral section control system | |
JPH11316177A (en) | Fault diagnostic device for vehicle | |
CN108152728A (en) | A kind of relay adhesion detection device | |
KR101362718B1 (en) | Method for diagnosing the failure in electronic control unit ocurring a series of software reset | |
CN115782589A (en) | Fault diagnosis method for electric vehicle power domain | |
CN114454774B (en) | Battery pack thermal runaway early warning system and method | |
EP3121753B1 (en) | System for controlling the communication between a main device and an auxiliary device and associated main device and auxiliary device used in the system | |
CN107491059B (en) | A kind of automobile cruise configuration automatic identifying method and system | |
KR20130008702A (en) | Apparatus for monitoring vehicles | |
KR101352601B1 (en) | System and method for diagnosing a fault of start/stop button | |
JP2004020461A (en) | Trouble diagnostic device for vehicle | |
CN220505222U (en) | Engine start fault determining circuit, engine start fault determining device and vehicle |
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 | ||
CB02 | Change of applicant information |
Address after: 230601 No. 99 Ziyun Road, Hefei Economic and Technological Development Zone, Anhui Province Applicant after: Anhui Jianghuai Automobile Group Limited by Share Ltd Address before: 230601 No. 669 Shixin Road, Taohua Industrial Park, Hefei City, Anhui Province Applicant before: Anhui Jianghuai Automobile Group Limited by Share Ltd |
|
CB02 | Change of applicant information | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181120 |
|
RJ01 | Rejection of invention patent application after publication |