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
 10375
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.

 

Best Sales of diode

Photo Part Company Description Pricing (USD)
UDK2559B-T UDK2559B-T Company:Allegro MicroSystems Remark:IC PWR DRIVER BIPOLAR 1:1 16DIP Price:
Call
Inquiry
EP2SGX130GF1508I4 EP2SGX130GF1508I4 Company:Altera Corporation Remark:Field Programmable Gate Array, 132540 CLBs, 717MHz, 132540-Cell, CMOS, PBGA1508, 40 X 40 MM, 1 MM PITCH, MS-034AAU-1, FBGA-1508 Price:
Call
Inquiry
AM29LV081B-120EC AM29LV081B-120EC Company:AMD Remark:Flash, 1MX8, 120ns, PDSO40, MO-142CD, TSOP-40 Price:
Call
Inquiry
89006-143LF Company:Amphenol ICC (FCI) Remark:CONN HEADER 30POS PCB Price:
1920+: $0.63480
Inquiry
AD630BDZ AD630BDZ Company:Analog Devices Inc. Remark:IC MOD/DEMOD BAL 2MHZ 20-CDIP Price:
1+: $89.33000
10+: $84.71600
25+: $83.56360
Inquiry
AD7506SQ-883B AD7506SQ-883B Company:Analog Devices Inc. Remark:IC MULTIPLEXER 16X1 28CDIP Price:
1+: $133.84000
10+: $1311.24000
Inquiry

Alternative Models

Part Compare Manufacturers Category Description
Mfr.Part#:RC28F256J3F95A Compare: Current Part Manufacturers:Micron Category:Flash Memory Description: NOR Flash Parallel 3V/3.3V 256Mbit 32M/16M x 8Bit/16Bit 95ns 64Pin EZBGA Tray
Mfr.Part#:PC28F256J3F95A Compare: RC28F256J3F95A VS PC28F256J3F95A Manufacturers:Micron Category:Flash Memory Description: NOR Flash Parallel 3V/3.3V 256Mbit 32M/16M x 8Bit/16Bit 95ns 64Pin EZBGA Tray
Mfr.Part#:RC28F256J3D95A Compare: RC28F256J3F95A VS RC28F256J3D95A Manufacturers:Micron Category:Memory Chip Description: NOR Flash Parallel 3V/3.3V 256M-bit 32M x 8/16M x 16 95ns 64Pin EZBGA Tray
Mfr.Part#:RC28F256P33BFE Compare: RC28F256J3F95A VS RC28F256P33BFE Manufacturers:Micron Category:Memory Chip Description: NOR Flash Parallel/Serial 2.5V/3.3V 256M-bit 16M x 16 95ns 64Pin EZBGA Tray

Ordering & Quality

Image Mfr. Part # Company Description Package PDF Qty Pricing (USD)
ADSP-21060LKSZ-160 ADSP-21060LKSZ-160 Company:Analog Devices Inc. Remark:IC DSP CONTROLLER 32BIT 240MQFP Package:240-BFQFP
DataSheet
In Stock:72
Inquiry
Price:
1+: $622.75000
Inquiry
ADSP-21062LCSZ-160 ADSP-21062LCSZ-160 Company:Analog Devices Inc. Remark:IC DSP CONTROLLER 32BIT 240MQFP Package:N/A
DataSheet
In Stock:18
Inquiry
Price:
1+: $280.43000
Inquiry
ADSP-21369BBPZ-2A ADSP-21369BBPZ-2A Company:Analog Devices Inc. Remark:IC DSP 32BIT 333MHZ 256-BGA Package:BGA256
DataSheet
In Stock:31
Inquiry
Price:
1+: $59.38000
10+: $55.78500
25+: $53.98520
Inquiry
ADSP-BF537BBCZ-5AV ADSP-BF537BBCZ-5AV Company:Analog Devices Inc. Remark:IC DSP CTLR 16BIT 182CSBGA Package:N/A
DataSheet
In Stock:On Order
Inquiry
Price:
1+: $37.94000
10+: $34.99500
25+: $33.42200
100+: $29.88320
Inquiry
ADSP-BF702BCPZ-4 ADSP-BF702BCPZ-4 Company:Analog Devices Inc. Remark:IC DSP LP 256KB L2SR 88LFCSP Package:N/A
DataSheet
In Stock:82
Inquiry
Price:
1+: $16.30000
10+: $14.97700
25+: $14.35600
100+: $12.64880
250+: $12.02800
Inquiry
ADSP-CM402CSWZ-EF ADSP-CM402CSWZ-EF Company:Analog Devices Inc. Remark:IC ARM CORTEX M4 FLASH 120LQFP Package:N/A
DataSheet
In Stock:On Order
Inquiry
Price:
Call
Inquiry
OP27EZ OP27EZ Company:Analog Devices Inc. Remark:IC OPAMP GP 1 CIRCUIT 8CERDIP Package:8-CDIP (0.300", 7.62mm)
DataSheet
In Stock:214
Inquiry
Price:
1+: $24.76000
10+: $22.83700
25+: $21.81120
100+: $18.60350
Inquiry
AD8009ARZ-REEL7 AD8009ARZ-REEL7 Company:Analog Devices Inc. Remark:IC OPAMP CFA 1 CIRCUIT 8SOIC Package:8-SOIC (0.154", 3.90mm Width)
DataSheet
In Stock:On Order
Inquiry
Price:
750+: $2.89600
1500+: $2.62450
Inquiry

Related Articles

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