Repair Chevrolet Repair Toyota Repair Honda Repair AvtoVAZ Repair Mercedes-Benz Repair BMW Repair Opel
Home  |  Contacts  |  Sitemap  |    
English Русский
Български
Беларускі
Український
Српски
Hrvatski
Română
Polski
Slovenský
Magyar
AudiManual.ru
 
 
 
 
 
 
 
 
 
 
  • AUDI 80
  • AUDI 100
  • AUDI A3
  • AUDI A4
  • AUDI A6
  • AUDI A8
  • AUDI Q
  • OTHER
  • ARTICLES
B8 (2007-2015) B7 (2004-2008) B6 (2000-2006) B6 (2000-2006, petrol) B5 (1994-2001) B5 (1994-2001, petrol)

Digital data bus CAN (Audi A4 B6)

  • Home
  • Audi A4
  • B6 (2000-2006)
  • Electrical equipment
  • Lighting and appliances
  • Digital data bus CAN
            0
Table of contents: Advantages ↓ Data packet format ↓ Priorities ↓ Example ↓ Error recognition ↓ Data Frame Level Mechanisms ↓ Bit-level mechanisms ↓ Troubleshooting ↓ CAN bus types ↓
The vehicle uses several CAN data exchange network buses (Controller Area Network) between control units (modules) of various systems and controllers of vehicle actuators.

Individual control units are connected to each other in a common network and can exchange data.

The bus is bidirectional, meaning that any device connected to it can receive and transmit messages.

The signal from the sensitive element (sensor) is sent to the nearest control unit, which processes it and transmits it to the CAN data bus.

Any control unit connected to the CAN data bus can read this signal, calculate the control action value based on it and control the actuator servo.

Data exchange via CAN bus



Data exchange via CAN bus

  • B — Sensor 1
  • CAN - Data Bus
  • M - Executive elements I-III (servomechanisms)
  • N — Control units (controllers) I-V

Advantages



With a conventional cable connection of electrical and electronic devices, a direct connection is made between each control unit and all sensors and actuators from which it receives measurement results or which it controls.



The complication of the control system leads to excessive length or number of cable lines.

Compared to standard cabling, the data bus provides:
  • Reduction in the number of cables. The wires from the sensors are only drawn to the nearest control unit, which converts the measured values into a data packet and transmits it to the CAN bus.
  • The actuator can be controlled by any control unit that receives the corresponding data packet via the CAN bus and, based on it, calculates the value of the control action on the servomechanism.
  • Improving electromagnetic compatibility.
  • Reduction in the number of plug connections and reduction in the number of contact terminals on control units.
  • Weight loss.
  • Reducing the number of sensors, since the signals from one sensor (for example, from the coolant temperature sensor) can be used by different systems.
  • Improved diagnostic capabilities. Since signals from one sensor (for example, speed signal) are used by different systems, then if a fault message is issued by all systems using this signal, the fault is usually in the sensor or control unit that processes its signals. If a fault message is received only from one system, although this signal is also used by other systems, then the cause of the fault is most often in the processing control unit or servo mechanism.
  • High data transfer rate - up to 1 Mbit/s is possible with a maximum line length of 40 m. Currently, the data transfer rate on a car is from 83 Kbit/s to 500 Kbit/s.
  • Several messages can be transmitted successively over the same line.

The CAN data bus consists of a two-wire cable made in the form of a twisted pair. All devices are connected to this line (device control units).



Data transmission is carried out with duplication on both wires, and the logical levels of the data bus have a mirror image (that is, if a logical zero level is transmitted along one wire, then a logical one level is transmitted along the other wire, and vice versa).

The two-wire transmission scheme is used for two reasons: to detect errors and as a basis for reliability.

If a voltage peak occurs on only one wire (for example, due to EMC problems (electromagnetic compatibility)), then the receiving units can identify this as an error and ignore this voltage peak.

If a short circuit or break occurs in one of the two CAN data bus wires, then thanks to the integrated software and hardware reliability system, switching to single-wire operation mode will occur. The damaged transmission line will not be used.

The order and format of data transmitted and received by users (subscribers) messages are defined in the data exchange protocol.

An essential distinguishing feature of the CAN data bus compared to other bus systems based on the subscriber addressing principle is message-related addressing.

This means that each message on the CAN data bus is assigned its own permanent address (identifier), marking the content of this message (eg: coolant temperature). The CAN data bus protocol allows the transmission of up to 2048 different messages, with addresses 3 through 2048 being permanently assigned.

The data volume in one message on the CAN data bus is 8 bytes.

The receiver block processes only those messages (data packets), which are stored in its list of received CAN messages via the data bus (acceptability control).



Data packets can only be transmitted if the CAN data bus is free (i.e., if after the last data packet there was a 3-bit interval, and none of the control units starts transmitting a message).

In this case, the logical level of the data bus must be recessive (logical "1").

If several control units start transmitting messages at the same time, the priority principle comes into effect, according to which the CAN data bus message with the highest priority will be transmitted first without loss of time or bits (arbitration of requests for access to the shared data bus).

Each control unit that loses its arbitration right automatically switches to receive and tries to send its message again as soon as the CAN data bus is free again.

In addition to data packets, there is also a request packet for a specific message on the CAN data bus.

In this case, the control unit that can provide the requested data packet responds to this request.

Data packet format



Data packet format


In normal transmission mode, data packets have the following block configurations (frames):
  • Data Frame (message frame) for transmitting messages via the CAN data bus (eg: coolant temperature).
  • Remote Frame (request frame) to request messages via the CAN data bus from another control unit.
  • Error Frame (error frame) all connected control units are notified that an error has occurred and the last message on the CAN data bus is invalid.

The CAN data bus protocol supports two different CAN data bus message frame formats, which differ only in the length of the identifier:


  • standard format;
  • extended format.

The standard format is currently used.

The data packet for transmitting messages via the CAN data bus consists of seven consecutive fields:
  • Start of Frame (start bit): Marks the start of a message and synchronizes all modules.
  • Arbitration Field (identifier and request): This field consists of an 11-bit identifier (address) and 1 control bit (Remote Transmission Request-Bit). This control bit marks the packet as a Data Frame (message frame) or as Remote Frame (request frame) without data bytes.
  • Control Field (control bits): The control field (6 bits) contains the IDE bit (Identifier Extension Bit) to recognize the standard and extended format, a reserve bit for subsequent extensions and - in the last 4 bits - the number of bytes of data contained in the Data Field (data field).
  • Data Field (data): The data field can contain from 0 to 8 bytes of data. A 0-byte CAN data bus message is used to synchronize distributed processes.
  • CRC Field (control field): CRC field (Cyclic-Redundancy-Check Field) contains 16 bits and is used for control recognition of errors during transmission.
  • ACK Field (confirmation of acceptance): ACK field (Acknowledgement Field) contains a signal confirming the receipt of all receiver units that have received the message via the CAN bus without errors.
  • End of Frame (end of frame): Marks the end of a data packet.
  • Intermission (interval): The interval between two data packets. The interval must be at least 3 bits. After this, any control unit can transmit the next data packet.
  • IDLE (rest mode): If no control unit transmits messages, the CAN bus remains in idle mode until the next data packet is transmitted.




Priorities



To process data in real time, it must be possible to transmit it quickly.

This not only requires a high physical data rate line, but also requires rapid access to the common CAN bus if multiple control units need to transmit messages simultaneously.

In order to differentiate messages transmitted via the CAN data bus according to their degree of urgency, different priorities are provided for individual messages.

The ignition timing, for example, has the highest priority, the slip values have the average priority, and the outside air temperature has the lowest priority.

The priority with which a message is transmitted over the CAN bus is determined by the identifier (address) of the corresponding message.

The identifier corresponding to the smaller binary number has a higher priority, and vice versa.

The CAN data bus protocol is based on two logical states: Bits are either "recessive" (logical "1") or "dominant" (logical "0"). If a dominant bit is transmitted by at least one module, then recessive bits transmitted by other modules are overwritten.

Example



Example


If several control units simultaneously start transmitting data, the access conflict to the common data bus is resolved by "bitwise arbitration of common resource requests" using the corresponding identifiers.



When transmitting the identifier field, the transmitter unit checks after each bit whether it still has the right to transmit, or whether another control unit is already transmitting a message with a higher priority via the CAN data bus.

If the recessive bit transmitted by the first transmitter block is overwritten by the dominant bit of another transmitter block, then the first transmitter block loses its right to transmit (arbitration) and becomes the receiving block.

The first control block (NI) loses arbitration from bit 3.

The third control block (N III) loses arbitration from the 7th bit.

The second control unit (N II) retains access rights to the CAN data bus and can transmit its message.

Other control units will attempt to transmit their messages via the CAN data bus only after it is free again. In this case, the right to transmit will again be granted in accordance with the priority of the message via the CAN data bus.

Error recognition



Interference can lead to errors in data transmission. Such errors occurring during transmission must be recognized and eliminated. The CAN data bus protocol distinguishes between two error recognition levels:
  • data Frame level mechanisms (message frame);
  • bit-level mechanisms.

Data Frame Level Mechanisms



Cyclic-Redundancy-Check:



Based on the message transmitted via the CAN data bus, the transmitter unit calculates control bits, which are transmitted together with the data packet in the "CRC Field" field (checksums). The receiver unit recalculates these control bits based on the message received via the CAN data bus and compares them with the control bits received with this message.



Frame Check:



This mechanism checks the structure of the transmitted block (frame), that is, the bit fields with a given fixed format and the frame length are rechecked.

Errors detected by the Frame Check function are marked as format errors.

Bit-level mechanisms



Monitoring:



Each module monitors the logic level of the CAN data bus when transmitting a message and determines the differences between the transmitted and received bits. This ensures reliable recognition of global and local bit errors occurring in the transmitter unit.

Bit Stuffing:



In each data packet between the field "Start of Frame" and the end of the "CRC Field" field must be no more than 5 consecutive bits with the same polarity.

After each sequence of 5 identical bits, the block transmitter adds one bit with the opposite polarity to the bit stream.

Receiver units clear these bits after receiving a message on the CAN data bus.

Troubleshooting



If any CAN data bus module detects an error, it interrupts the current data transfer process by sending an error message. The error message consists of 6 dominant bits.

Thanks to the error message, all control units connected to the CAN data bus are notified of the local error that has occurred and accordingly ignore the previously transmitted message.

After a short pause, all control units will again be able to transmit messages via the CAN data bus, with the message with the highest priority once again being sent first.

The control unit whose CAN data bus message caused the error also begins retransmitting its message (automatic Repeat Request function).

CAN bus types



Different CAN buses are used for different control areas. They differ from each other in data transfer speed.

The transmission rate of the CAN data bus in the "engine and chassis" area (CAN-C) is 125 kbit/s, while the CAN data bus "Interior" (CAN-B) is designed for a data transmission rate of only 83 kbit/s due to the smaller number of particularly urgent messages.

Data exchange between the two bus systems is carried out through so-called "gateways", i.e. control units connected to both data buses.

D2B fiber optic bus (Digital Daten-Bus) data is applied to the "Audio/communications/navigation" area. Fiber optic cable can transmit significantly more information than a copper cable bus.
The article was checked by auto expert Elisey Ermolaev
This article is available at russian, bulgarian, belarusian, ukrainian, serbian, croatian, romanian, polish, slovak, hungarian

Share information:
Previous articles
Audi A4 B6: Lighting and appliances
Next articles

Removal and installation the fuel tank cap locking element
Single Lock — General Information
Removal and installation the electric motor on the rear window…
Removal and installation the windshield wiper motor


Similar articles on other Audi car models:
Vehicle Passport Data Audi 80 B2 (1979-1986)
Technical data of cars Audi 100 C4 (1990-1994, petrol)
Technical data Audi A6 C5 (1997-2004)
Ignition System — Control Data Audi Q5 Type 8R (2008-2017)
Link to this page in different formats


Visitor comments

No comments yet


How much will 22 + 41 =
       



A4(B8, 2007-2015) 
  • General information
  • Operating instructions
  • Power unit
  • Petrol engines 1.8 l
  • Petrol engines 1.8/2.0 l
  • Petrol engines 3.0 l
  • Petrol engines 3.2 l
  • Fuel system (petrol)
  • Diesel engines 2.0 l (CA*)
  • Diesel engines 2.0 l (CJCB)
  • Diesel engines 2.7/3.0 l
  • Diesel engines 3.0 l
  • Fuel system (diesel)
  • Transmission
  • Manual gearbox 0B1
  • Manual gearbox 0B2
  • Manual gearbox 0B3
  • Manual gearbox 0B4
  • Automatic transmission 0B5
  • Automatic transmission 0B6
  • Automatic transmission 0AW
  • All-wheel drive system
  • Chassis
  • Front suspension
  • Rear suspension
  • Brake system
  • Steering system
  • Body
  • Exterior
  • Interior
  • Seats
  • Doors, locks and windows
  • Security system
  • Heating and air conditioning
  • Electrical equipment
  • Audio system
  • Power devices
  • Equipment and devices
  • Lighting and lamps
  • Electrical circuits
 
A4(B7, 2004-2008) 
  • General information
  • Introduction to manual
  • Troubleshooting
  • Operating instructions
  • Maintenance
  • Power unit
  • Petrol engines 2.0 (ALT)
  • Petrol engines 2.0 (TFSI)
  • Petrol engines 1.8 (MPI)
  • Diesel engines
  • Cooling system
  • Air conditioner
  • Fuel and exhaust system
  • Ignition system
  • Starting and charging
  • Transmission
  • Clutch
  • Manual gearbox
  • Automatic gearbox
  • Drive shafts
  • Chassis
  • Brake system
  • Front suspension
  • Rear suspension
  • Steering
  • Body
  • Exterior
  • Interior
  • Electrical equipment
  • Equipment and devices
  • Lighting and signaling
  • Windscreen wipers and washers
  • Electrical diagrams
  • Electrical diagrams (since 2007)
 
A4(B6, 2000-2006) 
  • General information
  • Vehicle Description
  • User manual
  • Maintenance
  • Power unit
  • Gasoline engine
  • Diesel engine
  • Lubrication system
  • Cooling system
  • Supply system
  • Injection system
  • Exhaust system
  • Ignition and control
  • Transmission
  • Gear box
  • Clutch and drive shafts
  • Chassis
  • Brake system
  • Car suspension
  • Steering
  • Body
  • Heating and ventilation
  • Exterior (external elements)
  • Interior (internal elements)
  • Electrical equipment
  • Power devices
  • Lighting and appliances
  • Electrical circuits
 
A4(B6, 2000-2006, petrol) 
  • General information
  • Introduction to the guide
  • Car care
  • Power unit
  • Engine repair
  • Lubrication system
  • Cooling system
  • Injection and control system
  • Ignition system
  • Power and exhaust system
  • Transmission
  • Clutch and drive shafts
  • Car gearbox
  • Chassis
  • Suspension and wheels
  • Steering
  • Brake system
  • Body
  • Interior
  • Exterior
  • Electrical equipment
  • Equipment and devices
  • Lighting and signaling
  • Power devices
  • Electrical circuits
 
A4(B5, 1994-2001) 
  • General information
  • Introduction to the guide
  • Car care
  • Maintenance (gasoline)
  • Maintenance (diesel)
  • Power unit
  • Gasoline engines
  • Diesel engines
  • Engine overhaul
  • Cooling system
  • Fuel injection (gasoline)
  • Fuel system (diesel)
  • Exhaust system
  • Ignition system
  • Transmission
  • Clutch
  • Mechanical gearbox
  • Automatic gearbox
  • Drive shafts
  • Chassis
  • Brake system
  • Car suspension
  • Steering
  • Body
  • Exterior
  • Interior
  • Doors, locks and windows
  • Heating and ventilation
  • Electrical equipment
  • Power devices
  • Equipment and devices
  • Electrical circuits
 
A4(B5, 1994-2001, petrol) 
  • General information
  • Vehicle description
  • Maintenance
  • Power unit
  • Engine repair
  • Turbocharging
  • Exhaust system
  • Cooling system
  • Ignition system
  • Fuel system
  • Motronic injection system
  • MPI and MPFI injection system
  • Transmission
  • Clutch
  • Gearbox and shafts
  • Chassis
  • Steering
  • Car suspension
  • Brake system
  • Wheels and tires
  • Body
  • Heating and ventilation
  • Body parts
  • Electrical equipment
  • Fuses and relays
  • Power devices
  • Lighting and lamps
  • Tools and devices
  • Electrical circuits
 
AudiManual.ru © 2017-2026 · Mobile version · Feedback · Sitemap: EN BG BY UA RS HR RO PL SK HU · Site search · News and articles
80 B2 · 80 B3 petrol · 80 B3 · 80 B4 · 100 C3 diesel · 100 C3 petrol · 100 C3 · 100 C4 petrol · 100 C4 · A3 Type 8L · A4 B5 petrol · A4 B5 · A4 B6 petrol · A4 B6 · A4 B7 · A4 B8 · A6 C4 · A6 C5 · A6 C5 Allroad · A8 D2 · Q5 Type 8R · Q7 Typ 4L · Audi A2 ·
This site uses cookies 🍪. Click the button to accept this fact.