Unlock instant, AI-driven research and patent intelligence for your innovation.

Can controller bus failure processing method and device

A technology for CAN controller and bus faults, which is applied in the field of CAN bus fault handling, can solve problems such as increasing the load of the CAN controller, occupying the CAN communication channel of the vehicle, and the impact of CAN communication, so as to reduce frequent restarts, improve communication efficiency, and reduce load effect

Active Publication Date: 2017-09-12
BAIC MOTOR CORP LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, if there is an open circuit, short power supply or short ground wire in the control system of the car, the CAN controller of the controller may send error frames all the time. When the error frame reaches 32 frames, that is, when the error counter TEC reaches 255, the system Confirm that the controller is in the Busoff state where the CAN bus is disconnected. Generally, the CAN controller will be restarted within 20ms; if the CAN controller sends the correct frame after restarting, the value of the error counter TEC will decrement; if the CAN controller sends an error after restarting frame, the value of the error counter TEC is accumulated, and the TEC value is greater than or equal to 255, and the CAN controller will continue to be in the Busoff state; the CAN controller will continue to restart, and so on. The sent error frame will greatly occupy the CAN communication channel of the whole vehicle, affect the normal communication of other controllers on the CAN bus, affect the real-time signal of other controllers, and have a great impact on the CAN communication of the whole vehicle; The CAN controller in the Busoff state is frequently in the restart state, which increases the load on the CAN controller

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Can controller bus failure processing method and device
  • Can controller bus failure processing method and device
  • Can controller bus failure processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the embodiments of the present invention. It should be noted that, in the drawings or description, similar or identical elements all use the same reference signs.

[0021] figure 1 It is a flow chart of Embodiment 1 of the CAN controller bus failure processing method of the present invention, as figure 1 As shown, the method of the present embodiment includes:

[0022] Step 101: Detect the status bits of the CAN controller at intervals of preset detection periods.

[0023] Step 102: Accumulate the duration of the bus leaving the Busoff state each time the status bit of the CAN controller is detected to obtain the first fault duration.

[0024] Step 103, when the first fault duration reaches the preset short shutdown th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a CAN controller bus fault processing method and device. The method comprises detecting status bit of a CAN controller periodically; accumulating duration time detected when the status bit is in a Busoff state each time to obtain first fault duration time; when the first fault duration time reaches a preset short closing threshold value, carrying out zero clearing on the first fault duration time and closing the CAN controller; and when the closing duration time of the CAN controller reaches a first starting threshold value, restarting the CAN controller, and returning to the step of detecting the status bit of the CAN controller every a preset detection period. The method effectively guarantees that the CAN controller does not occupy too many CAN bus resources after having the Busoff fault; during the time when the CAN controller stops working, CAN bus channels are released to ensure normal communication of other controllers, and thus communication efficiency of the CAN bus is improved; and meanwhile, load of frequent restart of the CAN bus due to the Busoff fault in the prior art is reduced.

Description

technical field [0001] The invention relates to automobile bus control technology, in particular to a CAN bus fault processing method and device. Background technique [0002] CAN is the abbreviation of Controller Area Network (CAN), and it is one of the most widely used field buses in the world. Among them, CAN communication is used in the automotive field, and it is the main communication path between various controllers in the vehicle. [0003] At present, if there is an open circuit, short power supply or short ground wire in the control system of the car, the CAN controller of the controller may send error frames all the time. When the error frame reaches 32 frames, that is, when the error counter TEC reaches 255, the system Confirm that the controller is in the Busoff state where the CAN bus is disconnected. Generally, the CAN controller will be restarted within 20ms; if the CAN controller sends the correct frame after restarting, the value of the error counter TEC wi...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G05B23/02
CPCG05B23/0213
Inventor 张照柏付金勇姬广斌直新影王驰
Owner BAIC MOTOR CORP LTD