Tech/CAN

CAN Error Detection

kimpeupeu 2021. 3. 22. 20:08

Error Detection

에러 감지

Whenever any CAN device detects an error in a frame, that device transmits a special sequence of bits called an error flag.

언제라도 어떤 CAN 장비가 에러를 감지하면 그 장비는 에러 플래그라고 불리는 특별한 일련의 비트들을 (순서?? 뭐라 말하는게 좋을지) 전송합니다.

This error flag is normally detected by the device transmitting the invaild frame, which then retransmits to correct the error.

보통 이 에러 플래그는 장비가 유효하지 않은(잘못된) 프레임을 전송하면 감지 됩니다. 후에 해당 프레임을 그 에러를 수정해(옳게 만들어) 재전송합니다.

The retransmission starts over from the start of frame, and thus arbitration with other devices can occur again.

이 재전송은 프레임의 시작에서부터 시작하고 다른 장비에 대해 중재가 다시 일어날 수 있습니다.

(새롭게 전송되니까 ArbId 때문에 중재(id 우선순위 말하는거 같음)가 다시 일어날 수도 있다 하는거 같음)

 


Bit Error

During frame transmissions, a CAN device monitors the bus on a bit-by-bit basis. If the bit level monitored is different from the transmitted bit, a bit error is detected, This bit error check applies only to the Data length Code, Data Bytes, and Cyclic Redundancy Check fields of the transmitted frame.

 

비트 에러

프레임 전송 중에 CAN 장비는 비트 단위로 버스를 모니터링 합니다. 감지된 비트 레벨이 전송된 것과 다르면 비트 에러가 감지 됩니다. 이 비트 에러 확인은 전송된 프레임의 Data Length Code, Data Bytes 그리고 CRC(Cyclic Redundancy Check) 필드에만 적용됩니다. (해당 필드에서만 체크한다는 소리 같음...)

 

 


Stuff Error

스터프 에러(???)

Whenever a transmitting device detects five consecutive bits of equal value, it automatically inserts a complemented bit into the transmitted bit stream.

전송하는 장비가 같은 값이 연속으로 5개 있는 비트들을 가지할 때마다, 장비는 자동적으로 비트 스트림에 추가적인 비트를 삽입한다.

This stuff bit is automatically removed by all receiving devices.

이 스터프 비트는 모든 수신하는 장비에서 자동적으로 제거된다.

The bit stuffing scheme is used to guarantee enough edges in the bit stream to maintain synchronization within a frame.

이 비트 스터프 방식은 한 프레임 내에서 동기화를 유지하기 위해 비트 스트림에 있는 테두리(가장자리? 끄트머리?)가 충분한지를 보장할때 사용한다.

A stuff error occurs whenever six consecutive bits of equal value are detected on the bus.

스터프 에러를 동일한 값이 6개의 연속된 비트들을 받을때 버스에서 감지된다.

 


CRC Error

CRC 에러

A CRC error is detected by a receiving device whenever the calculated CRC differs from the actual CRC in the frame.

CRC 에러는 프레임에서 계산된 CRC 값이 실제 CRC와 다를 떄마다 수신하는 장비에 의해 감지된다.

 


Form Error

폼 에러

A from error occurs when a violation of the fundamental CAN frame encoding is detected.

폼 에러를 기본적인 CAN 프레임 인코딩의 잘못된 점이 감지될 때 발생한다.

For example, if a CAN device begins transmitting the Start Of Frame bit for a new frame before the End Of Frame sequence completes for a previous frame (does not wait for bus ide), a form error is detected.

예를 들어, 이전 프레임에 대해 EOF 시퀸스가 완료되지 전 새로운 프레임의 SOF가 전송될 때, 폼 에러가 감지된다.

 


Acknowledgment Error

승인 에러? 

An acknowledgment error is detected by a transmitting device whenever it does not detect a dominant Acknowledgment Bit(ACK)

승인 에러는 우성(양성? 무튼 0) ACK가 감지되지 않았을때 전송 장비에 의해 발생된다.

반응형