SSP - 186 - Eng Can Bus Explanation
SSP - 186 - Eng Can Bus Explanation
The requirements relating to driving safety, driving comfort, exhaust emissions and fuel economy are are becoming ever more stringent. This entails more intensive information exchange between control units. A well-engineered solution is necessary to ensure that the electrics/electronics in the vehicle still remain manageable and do not take up too much space. The CAN data bus by Bosch is such a solution. It was developed specially for automobiles and is used by both Volkswagen and Audi. CAN stands for Controller Area Network and means that control units are networked and interchange data.
J J J
SSP 186/01
A CAN data bus can be compared to an omnibus. Whilst the omnibus transports a large number of persons, the CAN data bus transports a large volume of information.
In this Self-study Programme we will explain to you the design and function of the CAN data bus.
Page
Introduction ______________________________________________ CAN data bus ____________________________________________ Data transfer _____________________________________________ Function _________________________________________________ CAN data bus in the convenience system __________________ CAN data bus in the drive train_____________________________ Test your knowledge ______________________________________
2 4 10 12 17 24 30
Important/Note
New
The Self-study Programme is not a Workshop Manual! Precise instructions for testing, adjustment and repair can be found in the appropriate Workshop Manual.
Option No. 2: All information is exchanged between control units along a maximum of two wires: the CAN data bus.
The gure below shows you option No. 1, where each item of information is transferred along a separate wire. A total of ve wires are required for data transfer in this case.
Engine speed
Fuel consumption
Conclusion: A separate wire is required for each item of information. As the volume of additional information increases, so does the number of wires and the number of pins on the control units. Therefore, this data transfer mode is only suitable for exchanging a limited volume of information.
In contrast to option No. 1, all information is transferred along two wires in the CAN data bus. The same data is transferred along the two bidirectional wires of the CAN data bus. You will nd further information in this Selfstudy Programme.
Engine speed Fuel consumption Throttle valve position Engine intervention Upshift/downshift
SSP 186/05
Conclusion: With this data transfer mode, all information is transferred along two wires regardless of the number of participating control units and the volume of information involved. Data transfer with the CAN data bus would therefore make sense if a large volume of information is exchanged between control units.
the engine control unit, the automatic gearbox control unit and the ABS control unit
If the data protocol is extended to include additional information, only software modications are necessary. Low error rate through continuous verication of the transmitted information by the control units as well as additional safeguards in the data protocols. Fewer sensors and signal lines through the multiple use of a sensor signal.
High-speed data transfer is possible between control units. More space available through smaller control units and smaller control unit plugs. The CAN data bus conforms to international standards and therefore facilitates data interchange between different makes of control unit.
A subscriber (control unit) speaks data into the line network while the other subscribers listen in to this data.
Control unit 1
Control unit 2
SSP 186/06
Control unit 4
Control unit 3
The data bus lines are bidirectional and transfer the data. They are referred to as CAN High and CAN Low.
Motronic control unit J220 with CAN controller and CAN transceiver
Automatic gearbox control unit J217 with CAN controller and CAN transceiver
The data bus does not have a designated receiver. Data is sent over the data bus and is generally received and evaluated by all subscribers.
Sending data Accepting data The CAN transceiver receives data from the CAN controller, converts it into electrical signals and sends them. If the received data is important, it is accepted and processed. If not, it is ignored.
Receiving data All other control units networked with the CAN data bus become receivers.
Control unit 3
SSP 186/07
Data transfer
What does the CAN data bus transfer?
It transfers a data protocol between the control units at short intervals. It is subdivided into seven areas.
The data protocol: comprises a long string of bits. The number of bits in a data protocol depends on the size of the data eld. The diagram below shows the format of a data protocol. This format is identical on both data bus lines. For simplicitys sake, only one data bus line will be shown in this Self-study Programme. A bit is the smallest unit of information (one circuit state per unit of time). In electronics, this information can only have the value 0 or 1, i.e. yes or no .
Start eld (1 bit) Status eld (11 bits) 1 bit = unused Data eld (max. 64 bits) Conrmation eld (2 bits)
SSP 186/08 Check eld (6 bits) Safety eld (16 bits) End eld (7 bits) 10
SSP 186/09
The status eld denes the level of priority of the data protocol. If, for instance, two control units want to send their data protocol simultaneously, the control unit with the higher priority takes precedence.
SSP 186/10
The check eld displays the number of items of information contained in the data eld. This eld allows any receiver to check whether it has received all the information transferred to it.
SSP 186/11
In the conrmation eld, the receivers signal to the transmitter that they have correctly received the data protocol. If an error is detected, the receivers notify the transmitter of this immediately. The transmitter then sends the data protocol again.
SSP 186/14
The end eld marks the end of the data protocol. This is the last possibility to indicate errors which lead to a repeat transfer.
SSP 186/15
11
Function
How is a data protocol produced?
The data protocol comprises a string of several bits. Each bit can only have status or value 0 or 1. Here is a simple example to explain how a status with the value 0 or 1 is generated: The light switch switches a light on or off. This means that the light switch can have two different states.
SSP 186/17
SSP 186/16
In principle, the CAN data bus functions in exactly the same way. The transceiver can also generate two different bit states.
CAN transceiver
CAN transceiver
SSP 186/18
Transceiver open, switches to 5 Volts in the convenience system (drive train: approx. 2.5 Volts) Voltage applied to data bus line: approx. 5 Volts in the convenience system (drive train: approx. 2.5 Volts)
Transceiver closed, switches to earth Voltage applied to data bus line: approx. 0 Volts
5 Volts
5 Volts
0 Volts 12
0 Volts
The table below shows you how information can be transferred with two consecutive bits. With two bits, there are four possible variations. One item of information can be assigned to each variation and is binding for all control units. Explanatory notes: If bits 1 and 2 are transmitted with 0 Volts, the information in the table Electric windows now in motion or Coolant temperature is 10C.
Graphic
0 Volts 0 Volts
Two
0 Volts 5 Volts
not moving
20C
Three
5 Volts 0 Volts
within range
30C
Four
5 Volts 5 Volts
40C
The table below shows you how the number of items of information increases with each additional bit. Bit variants containing 1 bit 0 Volts 5 Volts Possible information 10C 20C Bit variants Possible Bit variants Possible containing 2 information containing information bits 3 bits 0 Volts, 0 Volts, 0 Volts 0 Volts, 0 Volts 10C 10C 0 Volts, 0 Volts, 5 Volts 0 Volts, 5 Volts 20C 20C 0 Volts, 5 Volts, 0 Volts 5 Volts, 0 Volts 30C 30C 0 Volts, 5 Volts, 5 Volts 5 Volts, 5 Volts 40C 40C 5 Volts, 0 Volts, 0 Volts 50C 5 Volts, 0 Volts, 5 Volts 60C 5 Volts, 5 Volts, 0 Volts 70C 5 Volts, 5 Volts, 5 Volts 80C
The higher the number of bits, the more items of information can be transferred. The number of possible items of information doubles with each additional bit.
13
Function
CAN data bus allocation
If more than one control unit wants to send its data protocol simultaneously, the system must decide which control unit comes rst. The data protocol with the highest priority is sent rst. For safety reasons, the data protocol supplied by the ABS/EDL control unit for safety reasons is more important than the data protocol supplied by the automatic gearbox control unit (driving comfort). How are allocations made? Each bit has a value, and this value is assigned a weighing. There are two possibilities: high weighting or low weighting. Priority Bit with 0 Volts 5 Volts Value 0 1 Weighting high weighting low weighting 1 2 3 Data protocol Brake I Engine I Gearbox I Status eld 001 1010 0000 010 1000 0000 100 0100 0000 How is the priority of a data protocol recognised? A code comprising eleven bits is assigned to each data protocol depending on its priority in the status eld. The priorities of three different data protocols are shown in the table below.
14
All three control units start sending their data protocol simultaneously. At the same time, they compare the data bit by bit on the data bus line. If a control unit sends a low weighting bit and detects a high weighting bit, the control unit stops sending and becomes a receiver. Example: Bit 1: - ABS/EDL control unit transmits a high weighting bit. Motronic control unit also transmits a high weighting bit. Automatic gearbox control unit transmits a low weighting bit and detects a high weighting bit on the data bus line. Thus, it loses its priority status and becomes a receiver.
Bit 2: - ABS/EDL control unit sends a high weighting bit. Motronic control unit transmits a low order bit and detects a higher weighting bit on the data bus line. Thus, it loses its priority status and becomes a receiver.
Bit 3: - ABS/EDL control unit has the highest priority and thus receives the allocation. It continues to send its data protocol until it ends. After the ABS/EDL control unit has nished sending its data protocol, the other control units try again to transmit their data protocol.
1
Data bus line
0 0
SSP 186/20 Automatic gearbox control unit loses priority status Motronic control unit loses priority status 15
Function
Sources of interference
Sources of interference in the vehicle are components which produce sparks or in which electric circuits are open or closed during operation. Other sources of interference include mobile telephones and transmitter stations, i.e. any object which produces electromagnetic waves. Electromagnetic waves can affect or corrupt data transfer.
1 4 7
2 5 8
3 6 9
#
SSP 186/28
To prevent interference with the data transfer, the two data bus lines are twisted together. This also prevents noise emission from the data bus line. The voltage on both lines is opposed. That means: If a voltage of approx. 0 Volts is applied to the one data bus line, then a voltage of approx. 5 Volts is applied to the other line and vice versa.
As a result, the total voltage remains constant at all times and the electromagnetic eld effects of the two data bus lines cancel each other out. The data bus line is protected against received radiation and is virtually neutral in sending radiation.
approx. 0 Volts
16
Central locking Electric windows Switch illumination Electrically adjustable and heated door mirrors Self-diagnosis
SSP 186/21
What are the advantages of the CAN data bus in the convenience system?
Fewer lines are routed via the door connections. In the event of a short circuit to earth, to positive or between lines, the CAN data bus goes to emergency running mode and changes over to single-wire mode.
Fewer diagnosis lines are required, because self-diagnosis is handled entirely by the central control unit.
17
The data bus comprises two lines along which information is sent.
SSP 186/22
To avoid electromagnetic interference and radiation emission, the two data bus lines are twisted together. Note twist length.
SSP 186/24
The data bus operates at a speed of 62.5 kbit/s (62500 bits per second). This means that it lies in a speed range (low speed) from 0 - 125 kbit/s. A data protocol transfer takes approx. 1 millisecond.
SSP 186/23
Order of priority: 1. Central control unit 2. Control unit on drivers side 3. Control unit on front passengers side 4. Control unit on rear left 5. Control unit on rear right
5 4 3 1 2
SSP 186/26
Since the data in the comfort system can be transferred at a relatively low speed, it is possible to use a transceiver with a lower power output.
The advantage is that it is possible to change over to single-wire mode if a data bus line fails. The data can still be transferred.
18
Information Basic status Safe Locked Door unlocked Door locked Unlocked Signal error, input sensors Status error In motion Not moving Within range Upper stop recognised
Value of bits 000 001 010 011 100 101 110 111 00 01 10 11
Electric windows
Bit order 3 to 1 5 to 4
Value 101 01
Meaning of information
5 Volts, 0 Volts, 5 Volts The central locking is unlocked The window is located in the zone between the upper stop (completely closed) and 4 mm below the window seal
19
30 15 X 31
30 15 X 31
S37
M
S38
J393
S6
S14
K J387 J386
Fuses:
M
Fuse, terminal 15 - central control unit Fuse, terminal 30 - central control unit Fuse, terminal 30 - electric windows Fuse, terminal 30 - central locking
Colour coding: Input signal Output signal Positive Earth Data bus line High/Low
M M M M
J389 J388
SSP 186/30
31
31
20
21
The following functions are relevant to the CAN data bus: Function 02 - Interrogate fault memory In the fault memory, two faults are indicated specially for the CAN data bus. Convenience data bus This fault is set if data transfer between two or more control units fails. Possible fault causes are: - Defective control units - Open circuit in both data bus lines or - in plug and socket connections
SSP 186/42
Printout on V.A.G 1551 printer 01328 Convenience data bus SSP 186/40
Convenience data bus in emergency running mode This fault is indicated if the CAN data bus has entered emergency mode.
Possible fault causes are: - Open circuit in one data bus line or - in a plug and socket connection
22
Function 08 - Read measured value block Display group number 012 - Central control unit - displays four display elds relevant to the data bus. Display eld 1: Check bus This eld indicates whether the data bus is OK or faulty (e.g. fault in single wire). Display eld 2: Equipment front This eld indicates which front control units are tted and participate in data transfer. Display eld 3: Equipment rear This eld indicates which rear control units are tted and participate in data transfer. Display eld 4: Accessories This eld indicates whether the seat and mirror adjustment memory system is tted. Both systems (convenience system and memory system) interchange data. Direct CAN data transfer currently cannot be checked using the available workshop facilities.
Display group 012 - Central control unit Read measured value block 12 xxx 1 xxx 2 xxx 3 xxx 4 Display elds Accessories Equipment rear
1)
Display on monitor
Setpoint Memory / empty RL RL and RR RR empty1) Driver Driver and FP FP empty1) Bus OK Bus NOK
Equipment front
23
The Motronic control unit The ABS/EDL control unit The automatic gearbox control unit
At the moment 10 data protocols are transferred. Five from the Motronic control unit, three from the ABS/EDL control unit and two from the automatic gearbox control unit.
What special advantage does the CAN data bus have in the drive train?
A high data transfer rate, with the result that the control units are very wellinformed about the momentary state of the overall system and can execute functions optimally.
24
The data bus comprises two lines along which information is transferred.
SSP 186/22
In order to avoid electromagnetic interference and radiation emission, the two data bus lines are twisted together. Note the twist length.
SSP 186/24
The data bus operates at a speed of 500 kbit/s (500,000 bits per second). This means that it lies in a speed range (high speed) from 125 - 1000 kbit/s. A data protocol transfer takes approx. 0.25 milliseconds.
SSP 186/23
Each control unit (depending on type) tries to send its data at intervals of 7 - 20 milliseconds.
SSP 186/25 10 ms 10 ms 10 ms
Order of priority: 1. ABS/EDL control unit 2. Motronic control unit 3. Automatic gearbox control unit
3
SSP 186/38
In the drive train, it must be possible to transfer the data very quickly so that it can be fully utilised. For this purpose, a high-performance transceiver is required.
This transceiver facilitates data transfer between two ignition systems. This means that the received data can be used for the next ignition impulse.
25
3 4
In the table below you can nd examples of the format of an individual item of information. On account of the sheer number of items of information which have to be transferred, only one part is displayed. The current position of the throttle valve is transferred with 8 bits, giving a possible of 256 bit permutations. Thus, throttle valve positions from 0 to 102 can be transferred at 0.4 intervals. Bit order 0000 0000 0000 0001 0000 0010 ... 0101 0100 ... 1111 1111 Throttle valve position 000.0 Throttle valve opening angle 000.4 Throttle valve opening angle 000.8 Throttle valve opening angle ... 033.6 Throttle valve opening angle ... 102.0 Throttle valve opening angle
26
J220
In contrast to the convenience system, only a part of the overall system is displayed in the drive train. In this case, only the networking of the control units is shown.
J217
J104
The node is usually located outside the control unit (in the wiring harness).
SSP 186/43 Node
In exceptional cases, the node may be located in the engine control unit. In the illustration below, you can see the node at which the wires in the engine control unit converge.
ABS/EDL control unit SSP 186/39 CAN data bus (with node in Motronic control unit) 27
All control units which interchange information must be regarded as an integrated system during selfdiagnosis and troubleshooting.
VAS 5051
SSP 186/42
Function 02 - Interrogate fault memory A fault is stored in the control units if data transfer between the control units is disturbed:
SSP 186/37
Notes
29
2. A B C D
The advantages of the CAN data bus are: Fewer sensors and signalling wires through multiple signal utilisation More space is available through smaller control units and control units plugs High-speed data transfer is possible Low error rate through continuous verication of the data protocols
3.
With the CAN data bus, the following maximum number of items of information can be transferred with three bits: three items of information, six items of information or eight items of information.
A B C
4. A B 5. A B C
The CAN data bus has self-diagnostic capability. does not have self-diagnostic capability. What points must be remembered for self-diagnosis and troubleshooting? None - since self-diagnosis and troubleshooting are not possible. All the control units which interchange data must be regarded as an integrated system. Each individual control unit must be regarded as being separate.
30
Notes
31
1. A; 2. A, B, C, D; 3. C; 4. A; 5. B