We are Apogeeweb Semiconductor Electronic

WELCOME TO OUR BLOG

Home arrow Semiconductor Information arrow What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

arrow left

arrow right

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Author: Apogeeweb Date: 30 Oct 2018  4125

interference

Summary 

This article is mainly to introduce the concept, advantages and anti-jamming elements of CAN bus. Actually, CAN bus is used in all fields in our daily life and already became an international standard. Now, let's get it!

 

 


Catalog   

Ⅰ Definition of the CAN Bus

Ⅱ Advantages of the CAN Bus

  2.1 Real-time Data Communication between Network Nodes

  2.2 Short Development Cycle

  2.3 Formed an International Standard

  2.4 One of the Most Promising Fieldbuses

Ⅲ Six Criteria for Anti-jamming of CAN Bus

  3.1 Isolation and Protection of CAN Bus Interface

  3.2 Improves the Twisting Degree of CAN Bus

  3.3 Ensures Shielding Effect and Correct Grounding

  3.4 Keep CAN Bus Away from Interference Sources

  3.5 Adding Magnetic Loops or Common-mode Inductor

  3.6 Converse CAN Bus to Optical Fiber Transmission

Ⅳ FAQ

 

 


Definition of the CAN Bus

A Controller Area Network (CAN bus) is a robust vehicle bus standard designed to allow microcontrollers and devices to communicate with each other in applications without a host computer. It is a message-based protocol, designed originally for multiplex electrical wiring within automobiles to save on copper, but is also used in many other contexts.

 

Developed by German BOSCH company which is famous for developing and producing automotive electronics products, CAN bus was eventually an international standard (ISO 11898), and became one of the most widely used fieldbuses in the world. In North America and Western Europe, the CAN bus protocol has become the standard bus for automotive computer control systems and embedded industrial control LANs, and there is a J1939 protocol designed for large trucks and heavy machinery vehicles with CAN as the underlying protocol.

 


Ⅱ Advantages of the CAN Bus

CAN belongs to the field bus and is a serial communication network that effectively supports distributed control or real-time control. Compared with many RS-485 distributed control systems based on R-line, the distributed control system based on CAN bus has obvious advantages in the following aspects:

2.1 Real-time Data Communication between Network Nodes

First of all, the CAN controller works in various ways, every network nodes can compete to send data to the bus according to the bus access priority (depending on the message identifier) using a lossless structure of bit-by-bit arbitration. The CAN protocol abolished the website address code and replaced it by encoding the communication data, which can make different nodes receive the same data at the same time. and the CAN protocol is abolished.

 

These characteristics make the data communication between the network nodes formed by the CAN bus real-time, and it is easy to construct redundant structure and improve system reliability and system flexibility. However, using RS-485 can only constitute a master-slave structure system, and the communication method can only be carried out in the manner of polling by the primary station. The real-time performance and reliability of the system are poor. 

2.2 Short Development Cycle  

The CAN bus is connected to the physical bus through two output terminals, CANH and CANL, of the CAN transceiver interface chip 82C250, while the state of the CANH terminal can only be high level or suspended state, the CANL terminal can only be low level or suspended state. This ensures it will not appear in the RS-485 network that when there is an error in the system and multiple nodes send data to the bus at the same time, the bus is short-circuited and thereby some nodes are damaged.

 

Moreover, the CAN node has the function of automatically shutting down the output in case of serious errors, so that the operation of other nodes on the bus will not be affected, ensuring that the bus will not appear a "deadlock" state because of problems with individual nodes in the network. Moreover, the perfect communication protocol of CAN can be realized by the CAN controller chip and its interface chip, which greatly reduces the difficulty of system development and shortens the development cycle, which are unmatched by RS-485 with only electrical protocols. 

2.3 Formed an International Standard

Compared with others, the CAN bus is an international standard fieldbus with many features such as high communication speed, easy implementation, and high price–performance ratio. These are also important reasons why CAN bus is applied in many fields and has strong market competitiveness. 

2.4 One of the Most Promising Fieldbuses

CAN is the LANs of controller, which belongs to the industrial field bus. Compared with the general communication bus, CAN bus has features of outstanding reliability, real-time and flexibility in data communication. Because of its good performance and unique design, CAN bus has been paid more and more attention. CAN bus is widely used in the automobile field so that some famous automobile manufacturers use it to realize the data communication between the internal control system and  agencies for detection and execution.

 

At the same time, due to the characteristics of CAN bus itself, its application scope is no longer limited to the automobile industry, but to automatic control, robot, ect. CAN has become an international standard and has been recognized as one of the most promising fieldbuses. Its typical application protocols are: SAE J1939 / ISO 11783 / CAN Open, CAN aerospacea DeviceNet, NMEA 2000, etc. 

 


Ⅲ Six Criteria for Anti-jamming of CAN Bus  

With more and more applications of CAN bus in electric vehicles, charging piles, power electronics, rail transit and other electromagnetic environment, the problem of signal interference has seriously affected the users' trust in CAN bus. How on earth can we resist interference?  This paper shows the 6 key rules of CAN bus anti-jamming.

 

In the gasoline vehicle era, the CAN bus encounters very little interference, even if there are some relays and solenoid valves pulse, it will not make a difference, and a bit of twisting processing can completely achieve zero error frame.

 

But in the era of electric vehicle, the influence of inverter, motor, charger and other high power equipments on CAN is enough to interrupt communication or damage CAN node. Figure1&2 show the inverter interference of the CAN waveform.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.1&2  Before interface & After interface

 

In the face of interference, automobile factories, parts factories, test and diagnostic equipment manufacturers have been studying "magic formula" of anti-jamming to ensure the stable operation of CAN. This paper introduces 6 iron rules for anti-jamming based on the experience of 15 years CAN field troubleshooting in an electronics company. 

3.1 Isolation and Protection of CAN Bus Interface

Interference not only affects the signal, but also causes the circuit board to crash or burn down, so the isolation of interface and power supply is the first iron rule of anti-jamming. The main purpose of isolation is to avoid ground return current to burn circuit boards, to limit the amplitude of interference, and to prevent the controller from crashing.

 

As shown in fig. 3, when interface and power supply are not isolated, the ground potential of the two nodes is inconsistent, there is a return current and a common-mode signal is generated. The anti-common-mode interference ability of CAN is - 12~7V, if the common-mode difference exceeds this value, it will break. And if the common-mode difference exceeds±36V, the transceiver or circuit board will be burned down.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.3 The ground return current when not isolated

 

As shown in Fig. 4 and Fig. 5, the circuit adds CTM1051KAT isolation module to isolate the ground return current and limit the interference amplitude.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.4 CTM1051KAT isolation module

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.5 Effect of isolated ground return current

 

After the adding isolation, will everything be perfect? Definitely not, isolation only blocks and if the intensity of interference is high, such as reaching 2KV surges, then isolation can also be broken. Therefore, to achieve a higher level of protection, the surge circuit must be added. Fig.6 is a high-speed bus standard anti-surge circuit.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.6 Signal protection circuit

 

This protection circuit can reach 4KV surge without damage, but it should be noted: to pass the 2500VDC withstand voltage test, GDT and R3 need to be removed to prevent high voltage breakdown them, resulting in failure of the test.

 

3.2 Improves the Twisting Degree of CAN Bus

In order to improve the anti-jamming ability, CAN bus adopts CANH and CANL differential transmission, as shown in fig.7, the effect is keeping the difference value of CANH-CANL unchanged when encountered the interference.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.7 Schematic diagram of differential anti-jamming

 

However, this anti-jamming ability has a prerequisite: CANH and CANL must be closely together, otherwise the interference intensities are different, resulting in differential signal being interfered. Therefore, CANH and CANL should be tightly twisted together. Usually twisted-pair wire is only 33 strands / m, but in the strong interference situation, only if the degree of twisting is more than 55 can the anti-jamming effect be better.

 

In addition, the core cross-sectional area of the cable should be greater than 0.35g~0.5 mm2, and the interline capacitance of CAN_H to CAN_L should be less than 75 pF/m。If the shielded twisted pair wire is used and if the capacitance of CAN_H (or CAN_L) to the shield layer is less than 110 pF/m, the impedance of the cable can be reduced better, thereby reducing the amplitude of the jitter voltage. 

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.8 Twisted pair

3.3 Ensures Shielding Effect and Correct Grounding

The CAN bus with shielding layer can resist the interference of electric field well。The whole shield layer is equivalent to an equipotential body, avoiding the interference of CAN bus. As shown in fig.9, CANH and CANL are wrapped into a standard shielded twisted pair through aluminum foil and oxygen-free copper wire shielding nets. It should be noted that in connection between the bus and the plug-in, a cable less than 25 mm is allowed to be untwisted.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.9 Shielded twisted pair

 

The better CAN shield line has two shielding layers, called double-layer shield line, in which the CAN_GND of the inner layer is connected to the CAN transceiver, and the shield of outer layer is connected to the earth. The inner layer can balance the ground potential of the signal, suppress the common-mode interference and reduce the error frame, but the receiver damage rate will increase when the interference is strong. And the outer layer can release the charge to the earth, as shown in Fig.10.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.10 Double shielded wire

 

Shielding lines will not work before shields are well grounded. So we have to choose a grounding mode. Generally speaking, the single-point grounding can avoid the ground reflux (which is caused by the different ground potential at different locations), and the multi-point grounding can speed up the release of high-frequency interference signals. Therefore, it is necessary to choose the appropriate grounding mode according to the actual situation. 

 

In the application of CAN, because the distance is generally far, most of the shield layers adopt single-point grounding, find a point in the trunk line to directly grounded with wire, the point should be the smallest interference point, and is located near the center of the network.

3.4 Keep CAN Bus Away from Interference Sources

Keep away from the interference source is the simplest anti-jamming method. If the distance of CAN bus and the strong electric interference source are more than the 0.5m, the interference will make no difference. However, in actual wiring, it is often encountered that the space is too small to be mixed the can bus with strong electricity. Fig.11 is a drive system of a new energy vehicle, the CAN bus and the driving line are mixed together, resulting in great interference.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.11 Wiring problem

 

To solve this problem, we can only ensure that strong electricity and weak electricity are strapped separately and far away from each other.

3.5 Adding Magnetic Loops or Common-mode Inductor

Using anti-jamming magnetic loopss is to weaken the effect of interference at specific frequencies. As shown in fig.12, to increase the effect of the magnetic loops, the CAN differential cable can be added with two wires or with a single end. 

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.12 Adding magnetic ring

 

The effect of the magnetic loops can greatly reduce the interference intensity of the specific frequency. Before adding the magnetic loops, it is necessary to test the highest interference frequency by CANScope or oscilloscope FFT, and then customize the magnetic loops of corresponding frequency with manufacturer.  Fig.13 shows the results before and after adding the magnetic loops. It can be seen that the interference intensity is obviously changed. 

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.13 Effect after adding magnetic ring

It should be noted that magnetic loops or common-mode inductors can not be added at will. If the adaptive frequency is not correct, it will affect the normal signal communication.

3.6 Converse CAN Bus to Optical Fiber Transmission

The ultimate measure of anti-jamming is to transform CAN bus into optical fiber, which is a transmission medium which can not be interfered by electromagnetic interference. If the first five anti-jamming methods can not solve the interference problem, CAN bus can be converted into optical fiber to accomplish "impeccable". Fig.14 is the fiber backbone network consisted of CANHub-AF1S1 and CANHub-AF2S2.

What Is CAN Bus: Concepts, Advantages and Anti-jamming Elements

Fig.14 Optical fiber backbone transmission using optical fiber converter

 


Ⅳ FAQ

1. What is a CAN bus?

A Controller Area Network (CAN bus) is a robust vehicle bus standard designed to allow microcontrollers and devices to communicate with each other's applications without a host computer.

 

2. How CAN the bus works?

The CAN bus system enables each ECU to communicate with all other ECUs - without complex dedicated wiring. Specifically, an ECU can prepare and broadcast information (e.g. sensor data) via the CAN bus (consisting of two wires, CAN low and CAN high).

 

3. How do you tell if the car is a CAN bus?

If the vehicle warns you when a bulb is out, it is equipped with CAN Bus. The easiest way is to contact the vehicle's supplier or dealership. If you're still not sure, we normally tell customers to remove the light and drive the vehicle to see if it gives a warning.

 

4. CAN bus frequency?

The maximum signal frequency used is 1 Mbit/sec (CAN 2.0), 15 Mbits/sec (CAN FD) Length depends on the bit rate typical values encountered in the field for CAN 2.0 are.

 

5. CAN bus short to ground?

Shorts and opens: The CAN controllers will tolerate a short circuit of one of the two lines to the ground because of the characteristics of the differential bus. It cannot tol- erate both CAN bus wires shorted to ground or to each other. It will tolerate one of the CAN lines being open or disconnected.

 

6. Why is CAN bus wiring twisted?

The wires are twisted because the signals transmitted on the wires are made from measurements on both wires, therefore when the wires are twisted together they are both subject to the same interference and the chance of discrepancy is greatly reduced.

 

7. Does the CAN bus need a ground?

Not only is it necessary, but it is also required by the CAN standard. Needless to say, there needs to be some sort of common ground reference between two electronic devices, or all bets are off if they try to communicate.

 

8. CAN bus noise?

The CAN bus does not use the ground as a reference point for these two signal lines. Therefore the CAN bus transmission lines are immune to any ground noise typically present in automotive applications. The signals on the two CAN lines will both be subject to the same electromagnetic field level.

 

9. Should the CAN bus be isolated?

If your device holds the bus in a non-idle condition, it will prevent all other devices from using it (or more precisely, that segment of it). ... without galvanic isolation you can face a risk of destroying all devices on the CAN bus, which would mean your car is on the way to the junkyard, as well the PC connected.

 

10. CAN bus voltage too low?

If the CAN Voltage Test shows a low voltage coming from a device, you can verify the CAN port is damaged by measuring resistance to the ground. Damage from lightning or welding typically causes a short to ground on one or both CAN lines. Unplug the connector from the device.

 

Ordering & Quality

Photo Mfr. Part # Company Description Package PDF Qty Pricing
(USD)
ULN2004A ULN2004A Company:STMicroelectronics Remark:Darlington Transistors Seven NPN Array Package:N/A
N/A
In Stock:On Order
Inquiry
Price:
1+: $0.53000
10+: $0.41900
100+: $0.26400
500+: $0.24900
1000+: $0.18600
2000+: $0.16200
10000+: $0.15500
25000+: $0.15200
50000+: $0.14700
Inquiry
IPP60R190E6 Company:Infineon Technologies Remark:MOSFET N-Ch 650V 20.2A TO220-3 CoolMOS E6 Package:N/A
N/A
In Stock:On Order
Inquiry
Price:
1+: $2.76000
10+: $2.35000
100+: $1.77000
500+: $1.67000
1000+: $1.58000
2500+: $1.53000
5000+: $1.49000
Inquiry
ULN2803A ULN2803A Company:STMicroelectronics Remark:Darlington Transistors Eight NPN Array Package:N/A
N/A
In Stock:On Order
Inquiry
Price:
1+: $1.19000
10+: $1.01000
100+: $0.77200
250+: $0.68700
500+: $0.64400
1000+: $0.50600
2000+: $0.48100
5000+: $0.46300
10000+: $0.44800
Inquiry
ULN2004AN ULN2004AN Company:Texas Instruments Remark:Darlington Transistors Hi V & A Darlington Package:N/A
N/A
In Stock:On Order
Inquiry
Price:
1+: $0.65000
10+: $0.53700
100+: $0.39000
250+: $0.37600
500+: $0.32600
1000+: $0.27700
2500+: $0.26000
5000+: $0.23400
10000+: $0.21700
Inquiry
ULN2003ADR ULN2003ADR Company:Texas Instruments Remark:Darlington Transistors Darlington Package:N/A
N/A
In Stock:On Order
Inquiry
Price:
1+: $0.57000
10+: $0.45500
100+: $0.32200
500+: $0.26400
1000+: $0.21500
2500+: $0.20200
5000+: $0.18200
10000+: $0.16900
25000+: $0.16600
Inquiry
STPS1545D STPS1545D Company:STMicroelectronics Remark:Schottky Diodes & Rectifiers 15 Amp 45 Volt Package:N/A
N/A
In Stock:On Order
Inquiry
Price:
1+: $0.90000
10+: $0.76600
100+: $0.57500
250+: $0.55700
500+: $0.48700
1000+: $0.39700
2000+: $0.38500
5000+: $0.35600
10000+: $0.33900
Inquiry
MMSZ4699T1G MMSZ4699T1G Company:ON Semiconductor Remark:Zener Diodes 12V 500mW Package:N/A
N/A
In Stock:On Order
Inquiry
Price:
1+: $0.21000
10+: $0.18300
100+: $0.06300
1000+: $0.04400
3000+: $0.03400
9000+: $0.02900
24000+: $0.02700
45000+: $0.02300
99000+: $0.02100
Inquiry
2N5551 Company:Central Semiconductor Remark:Bipolar Transistors - BJT NPN Gen Pur SS Package:N/A
N/A
In Stock:On Order
Inquiry
Price:
1+: $0.83000
10+: $0.68100
100+: $0.56700
500+: $0.43800
1000+: $0.39500
2500+: $0.35100
10000+: $0.33700
25000+: $0.32700
Inquiry

Related Articles

What is the Voltage Divider Basic and Rule?

Apogeeweb 19 Mar 2021  1176

IntroductionA voltage divider is a passive linear circuit used to create a voltage less than or equal to the input voltage. It is a conversion device composed of a high-voltage arm and a low-voltage a...

Continue reading »

RFID Technology: System, Principle, Classification and Application

Apogeeweb 9 Nov 2018  7782

Warm hints: This article contains about 3000 words and the reading time is about 15 min. Summary As one of the key technologies to build the Internet of Things, RFID has attracted much attention beca...

Continue reading »

How Optocoupler Works and the Optocoupler Basics

Apogeeweb 2 Mar 2018  9204

SummaryOptocoupler (OC), also called optoelectronic isolator or optocoupler, is a device that transmits electrical signals on the medium of light. It usually encapsulates the luminator (infrared LED) ...

Continue reading »

What is the Difference Between MOSFET and IGBT

Apogeeweb 9 Feb 2018  10036

SummaryThis article is mainly about the differences between MOSFET and IGBT, including their respective advantage and disadvantage and structure difference, how to choose MOSFET or IGBT etc.. In addit...

Continue reading »

How Do I Read Pinouts?

Apogeeweb 7 Apr 2021  1121

IntroductionIn electronics, a pinout (sometimes written "pin-out") is a cross-reference between the contacts, or pins, of an electrical connector or electronic component. It describes the functions of...

Continue reading »

How Do I Find a Proper Voltage Regulator?

Apogeeweb 1 Apr 2021  706

IntroductionA voltage regulator is a circuit that generates a fixed output voltage of a preset magnitude that remains constant regardless of changes to its input voltage or load conditions. It convert...

Continue reading »

pinglun 0 comment

Leave a Reply

Your email address will not be published.

 
 
   
 
code image
Rating: poor fair good very good excellent

# 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z