Cars BMW Cars Volkswagen Cars Chevrolet Cars Land Rover Cars Lada Cars Honda Cars Peugeot
English Русский
Български
Беларускі
Український
Српски
Hrvatski
Română
Polski
Slovenský
Magyar
Bookmark News and articles Sitemap Feedback Site search
MercedesMan.ru
 
 
 
 
 
 
 
A-Class C-Class E-Class G-Class M-Class S-Class Others
W163 (1997-2005)
  • Main
  • M-Class
  • W163 (1997-2005)
  • Electrical equipment
  • Equipment and devices
  • Digital data bus CAN

Digital data bus CAN (Mercedes-Benz M-Class W163)

0
Contents: Advantages ↡ Data transfer format ↡ Priorities ↡ Example ↡ Error recognition ↡ Data Frame Level Mechanisms ↡ Bit-level mechanisms ↡ Troubleshooting ↡ CAN bus types ↡ CAN C - "Engine and chassis" bus ↡ CAN-B - "Salon" bus ↡
Modern vehicles use several CAN data exchange network buses (Controller Area Network) between modules/control units of various systems and controllers of vehicle actuators.

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


The bus is full duplex (or just duplex), i.e. any device connected to it can simultaneously receive and transmit messages.

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

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

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:
  • Reduced number of cables. The wires from the sensors are only extended 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 servo mechanism;
  • 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 from only 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 Mercedes-Benz vehicles ranges 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 are mirrored (that is, if a logical zero level (0) is transmitted on one wire, then a logical one level (1) is transmitted on the other wire, and vice versa).

The two-wire transmission scheme is used for two reasons: for error control and as a basis for reliability.

If a voltage spike occurs on only one wire - for example due to electromagnetic compatibility (EMC) issues - then the receiving units may identify this as an error and ignore the spike.

In the event of a short circuit or break in one of the two CAN bus wires, thanks to the integrated software and hardware reliability system, switching to the single-wire operation mode is performed. The damaged transmission line is no longer 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 transmitted over the 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 2033 to 2048 being permanently assigned.

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

The receiver block processes only those messages that are stored in its own identification list (acceptability control).



Data packets can only be transmitted if the CAN bus is free (i.e., if after the transmission of the last packet there followed an interval of 3 bits, and none of the control units starts transmitting the next message). In this case, the logical level of the data bus must be recessive (logical "1").

If several control units start transmitting messages simultaneously, the priority principle comes into effect, according to which the 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 data bus becomes free again.

In addition to data packets, packets for requesting a specific message via the CAN data bus are also used - the control unit that can provide the requested information responds to such a request.

Data transfer format



In normal transmission mode, the following packet configurations are used:
  • 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 that differ only in the length of the identifier:


  • Standard format;
  • Extended format.

Currently, only the standard format is used in the data exchange systems of Daimler Chrysler vehicle control systems.

Each frame of messages transmitted via the CAN bus consists of seven consecutive fields:

Frame format

Frame format

  • 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 frame as a Data Frame (data frame) or as Remote Frame (remote 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; cAN data bus message of length 0 bytes is used to synchronize distributed processes;
  • CRC Field (control field): CRC field (Cyclic-Redundancy-Check Field) contains 16 bits and is used for control error detection during transmission;
  • ACK Field (confirmation of acceptance): ACK field (Acknowledgement Field) contains a signal confirming the reception of all receiver units that have received a message via the CAN bus without errors;
  • End of Frame (end of frame): Marks the end of the frame;
  • Intermission (interval): The interval between two data frames. The interval must be at least 3 bits. After this, any control unit can start transmitting the next packet;
  • IDLE (rest mode): If no control unit is transmitting messages, the CAN bus remains in idle mode until the next 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 the 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 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



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

When transmitting the identifier field, the transmitting 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 on the 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.

Example of arbitration organization

Example of arbitration organization


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 (data 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 receiving unit recalculates these control bits based on the message received via the CAN data bus and compares them with the control bits received together 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 frame 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 message transmitted previously.

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 speed of the CAN data bus in the "engine and chassis" area (CAN-C) is 125 kbps, while the CAN data bus "Interior" (CAN-B) is designed for a data transmission speed of only 83 kbps due to the smaller number of particularly urgent messages. /With.

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.

CAN C - "Engine and chassis" bus



In the final control unit, a so-called data bus termination resistor with a resistance of 120 Ohm is installed on each side, connected between both data bus wires.

The engine compartment CAN data bus is only activated when the ignition is on.

More than 7 control units can be connected to the CAN-C bus.

CAN-B - "Salon" bus



Some control units connected to the CAN data bus of the passenger compartment are activated regardless of whether the ignition is switched on (eg: single lock system).

Therefore, the CAN data bus of the passenger compartment must be in the functional readiness mode even when the ignition is off, which means that the ability to transmit data packets must be ensured even when the ignition is off.

In order to reduce the quiescent current consumption as much as possible, the CAN data bus, when there is no data required for transmission, goes into passive standby mode and is activated again only the next time it is accessed.

If any control unit is in the passive standby mode of the passenger compartment CAN data bus (for example, a single lock control module) transmits a message through it, then only the main system module receives it (electronic ignition switch, EZS/EIS). The EZS module stores this message in memory and sends an activation signal (Wake-up) to all control units connected to the CAN-B bus.

When activated, EZS checks for the presence of all CAN data bus users and then transmits the previously stored message.

More than 20 control units can be connected to the CAN-B bus.
This article is available at: russian, bulgarian, belarusian, ukrainian, serbian, croatian, romanian, polish, slovak, hungarian
The article has been verified: Panova Maya Vladimirovna
Share with friends:
◀ Previous
M-Class W163 / Equipment and devices
Next ▶

Relays — general information and checking the correct functioning
Circuit Breakers — General Information
Fuses — General Information
Search for causes of electrical equipment failures
General information and precautions
Removal and installation of mounting blocks
Removal and installation control modules
Removal and installation the CAN bus adapter
Removal and installation the instrument cluster
Replacing the lamp of the rotary push-button temperature selection module
More similar articles for repairing other models

☛ Technical data of cars Mercedes W168 (1997-2004)
☛ Digital data bus CAN Mercedes W203 (2000-2007)
☛ Vehicle Passport Data Mercedes W123 (1976-1985)
☛ Digital data bus CAN Mercedes W463 (1999-2019)
☛ Digital data bus CAN Mercedes W220 (1998-2005)
☛ Checking and adjusting the start of injection (digital tester method) Mercedes Vito 1 (1996-2003)
Link in different formats to this article
Comments and feedback from visitors
No comments yet


How much will 38 + 30 ?

       





W163 (1997-2005) 
  • General information
  • Introduction to the guide
  • Controls and instruments
  • Driving and operation
  • Maintenance
  • Power unit
  • Gasoline engines
  • Diesel engines
  • Cooling system
  • Heating and ventilation
  • Power system (gasoline)
  • Fuel system (diesel)
  • Exhaust system
  • Ignition and control system
  • Charging and starting system
  • Transmission
  • Mechanical gearbox
  • Automatic gearbox
  • Clutch
  • Drive shafts and cardan
  • Transfer case
  • Chassis
  • Brake system
  • Front suspension
  • Rear suspension
  • Steering
  • Suspension geometry
  • Body
  • Exterior (external elements)
  • Interior (internal elements)
  • Doors and locks
  • Electrical equipment
  • Equipment and devices
  • Drive motors
  • Lighting and signaling
  • Audio system
  • Electrical circuits
 
MercedesMan.ru © 2017–2026 · Mobile version · Read about Mercedes · Sitemap: EN BG BY UA RS HR RO PL SK HU · Feedback · Site search · Bookmark A-Class (W168) · C-Class (W201) · C-Class (W202) · C-Class (W203) · E-Class (W123) · E-Class (W124) · E-Class (W210) · G-Class (W463) · M-Class (W163) · S-Class (W116, petrol) · S-Class (W126, petrol) · S-Class (W140) · S-Class (W220) · Sprinter · Vito 1 · Vito 2 · Vario 814D ·
 
We only use cookies without which some of the site's features may not be available.