Error Confinement
- Updated2026-02-02
- 1 minute(s) read
To provide for error confinement, each CAN device must implement a transmit error counter and a receive error counter. The transmit error counter is incremented when errors are detected for transmitted frames, and decremented when a frame is transmitted successfully. The receive error counter is used for received frames in much the same way. The error counters are increased more for errors than they are decreased for successful reception/transmission. This ensures that the error counters will generally increase when a certain ratio of frames (roughly 1/8) encounter errors. By maintaining the error counters in this manner, the CAN protocol can generally distinguish temporary errors (such as those caused by external noise) from permanent failures (such as a broken cable). For complete information about the rules used to increment/decrement the error counters, refer to the CAN specification (ISO 11898).
With regard to error confinement, each CAN device may be in one of three states: error active, error passive, and bus off.