Beruflich Dokumente
Kultur Dokumente
Controllerarea network (CAN or CAN-bus) is a vehicle bus standard designed to allow microcontrollers and devices to communicate with each other within a vehicle without a host computer.It is a serial communications bus for real-time control applications; operates at data rates of up to 1 Megabits per second, and has excellent error detection and confinement capabilities.
a host-processor o The host-processor decides what received messages mean, and which messages it wants to transmit itself o Sensors, actuators and control devices can be connected to the hostprocessor (if desired) a CAN Controller (hardware with a synchronous clock) o Receiving: the CAN Controller stores received bits (one by one) from the bus until an entire message is available, that can then be fetched by the host processor (usually after the CAN Controller has triggered an interrupt) o Sending: the host-processor stores its transmit-messages into a CAN Controller, which transmits the bits serially onto the bus a Transceiver (possibly integrated into the CAN Controller) o Receiving: it adapts signal levels from the bus, to levels that the CAN Controller expects and has protective circuitry that protect the CAN Controller o Sending: it converts the transmit-bit signal received from the CAN Controller into a signal that is sent onto the bus
Data frame: a frame containing node data for transmission Remote frame: a frame requesting the transmission of a specific identifier Error frame: a frame transmitted by any node detecting an error Overload frame: a frame to inject a delay between data and/or remote frames
Bit time
Each node in a CAN network has its own clock, and no clock is sent during data transmission. Synchronization is done by dividing each bit of the frame into a number of segments: Synchronization, Propagation, Phase 1 and Phase 2. The sample point falls between Phase Buffer Segment 1 and Phase Buffer Segment 2, which helps facilitate continuous synchronization. Continuous synchronization in turn enables the receiver to be able to properly read the messages.
Error Detection:
At the message level:
CAN implements five error detection mechanisms; three at the message level and two at the bit level.
Cyclic Redundancy Check: Each message features a 15-bit Cyclic Redundancy Checksum (CRC), and any node that detects a different CRC in the message than what it has calculated itself will signal an CRC Error Frame Check: There are certain predefined bit values that must be transmitted at certain points within any CAN Message Frame. If a receiver detects an invalid bit in one of these positions a Form Error (also known as a Format Error) will be flagged. Acknowledgement (ACK) Error Check: If a transmitter determines that a message has not been ACKnowledged then an ACK Error is flagged.
will remove this extra bit. This is done to avoid excessive DC components on the bus, but it also gives the receivers an extra opportunity to detect errors: if more than five consecutive bits of the same level occurs on the bus, a Stuff Error is signaled.