The Role of CAN in The Age of Ethernet and IOT
The Role of CAN in The Age of Ethernet and IOT
The Role of CAN in The Age of Ethernet and IOT
CAN technology was developed in the 1980s and became available in 1987, just as other
industrial fieldbus systems like PROFIBUS or INTERBUS entered the stage of industrial
communication. Beside the fact that CAN is a success in the automotive industry and
used in all types of cars today, it has also made its way in many other industrial areas.
About 15 years ago, new technologies based on Ethernet started to emerge, with ap-
pealing and sometimes outstanding features. Some six years ago Ethernet also started
to find its way into automobiles. Today, other new communication technologies are
showing up on the horizon driven by the omnipresent Industrial Internet of Things.
But even now, 30 years after their introduction, these “classic” fieldbus technologies
are still alive – with varying success. Since CAN was initially developed with a focus for
use in automobiles, CAN has certain features that still make it the best choice for many
applications in automobiles and industrial areas – even when compared to the newer
technologies.
This paper discusses why CAN is still a valid or even better choice for certain applica-
tion areas than Ethernet-based technologies, not just focusing on the advanced fea-
tures provided by the enhanced capabilities of CAN FD but also highlighting how these
applications benefit from the features of “classic” CAN.
01-7
iCC 2017 CAN in Automation
from the automation world were not the message. As all CAN messages have
applicable in cars and a new approach was an inherent message priority, the most
necessary. prioritized message always wins the
arbitration.
In the early 80s, a group of people at Bosch • In combination with the error signaling
were the first to investigate the existing mechanism, CAN ensures that the data
serial communication systems regarding transmitted in the network is always
possible use in passenger cars. However, consistent in all nodes connected to the
none of these systems were able to fulfill the network. Each node which identifies an
requirements and the development of a new error in a message immediately transmits
serial communication system was started in a special error signature (error frame)
1983. Finally, in 1986, at the SAE congress destroying the currently transmitted
“Controller Area Network” was introduced to message and making sure that all other
the public. Only one year later, the first CAN nodes in the network also consider the
controller chip, the 82526 was presented by currently transmitted message to be
Intel and shortly after Philips Semiconductor erroneous and, as a consequence, reject
presented the 82C200. it. Error situations are e.g. checksum
error, message frame delimiter errors
Ingenious features made CAN different (special bits of a message always have
to have a defined value), bit stuffing
Designed for use in passenger cars, the error (after 5 consecutive bits with the
inventors gave CAN several clever and same value, an additional inverted bit
sophisticated features to which none of the is inserted into the message). An error
new upcoming industrial fieldbus systems can also be signaled by the transmitting
could compete with. node if the currently transmitted bit seen
on the network is different from the bit
In order to understand why CAN is sometimes information the node actually transmits.
a better choice compared to Ethernet, some If there is an error in a message
of the most important features need to be transmitted on the bus, the transmitting
understood: node immediately stops the transmission
• The first and most outstanding feature to and restarts a new transmission but with
mention is the bus access method. CAN re-executing the arbitration procedure. If
uses the Carrier Sense Multiple Access there is a message with higher priority at
(CSMA) principle which was not a new another node which shall be transmitted,
principle: for example, it was already the message with the higher priority will
used by Ethernet. With this principle, win the arbitration and be transmitted
all nodes of a network which want to first.
transmit a message, listen to the network • The arbitration mechanism including
and if there is no transmission, they can message prioritization and error signaling
start to transmit. This leads to collisions is only possible because of the physical
in case more than one node start to representation of a bit on the bus line. A
transmit. Consequently the messages bit is transmitted in form of a differential
are destroyed and all transmitting signal on two twisted lines, ISO11898-2
nodes have to resolve this situation (High Speed) defines a differential signal
by abandoning their transmission for a of 0V as recessive bit and a differential
random time which might lead to longer signal of 2V as a dominant bit. The
delays, especially when there are many symmetric transmission makes CAN
nodes which want to transmit data. In immune to common mode interferences
order to avoid this situation, the arbitration and the twisted pair lines compensate
mechanism of CAN avoids collisions and electromagnetic interferences. This
allows one node of all the nodes which makes CAN very resistant against
start to transmit their message at the external disturbances in general. For
same time to continue its transmission special purposes, fiber optic cables can
and all others immediately start to receive also be used.
01-8
iCC 2017 CAN in Automation
CAN and its way into industrial Looking at these application examples and
applications others from industrial CAN pioneers, CAN
was used very early in different application
The first company to use CAN in a mass areas and markets — and not only focusing
produced car was Mercedes who started to on industrial factory automation like the
use CAN in the S class in 1991. “classic” fieldbuses. For sure, this was the
result of ease of use, reliability and the
At the same time as CAN was introduced, simple concept of CAN.
also the “classic” fieldbus systems like
PROFIBUS, Sercos or INTERBUS were Because CAN was a really new technology,
being introduced, especially for industrial there was also a need to connect PCs (at that
applications. Although the major companies time running MS-DOS) to a CAN network
driving CAN were from the automotive for either running a control application or for
market and hence have been focused on running an analyzer software which allowed
passenger cars, there has been a few other, users to monitor what was happening on the
rather small companies which started actively CAN bus.
promoting CAN for industrial applications.
Some of these pioneers were. Kvaser AB, This lead to the development of first
I+ME GmbH, Softing and STZP (Steinbeis CAN products with focus on industrial
Transfer Center Process Automation, applications. Like CAN interface boards
which became IXXAT Automation GmbH in as shown in figure 2 or the very first CAN
1998 and was acquired by HMS Industrial repeater as shown in figure 3.
Networks AB in 2013). The distinctive
features of CAN were also very interesting
for industrial applications and so very early
first applications were developed using CAN
as a dedicated communication network.
These applications used an own way of
defining which data should be used and how
data was to be transmitted within the CAN
messages. Some of these first applications
were developed by STZP for customers
paving the way for CAN. These included a coil
winding machine, a machine for validating
and counting paper money, a security door
control system for banks, a CAN-controlled Figure 2: First PC CAN interface board
endoscope system or a cow milking system with ISA bus hosting the Philips 82C200
with decentralized controllers for milking, (BasicCAN) and already the Intel 82527
feeding and weighting (see fig. 1) (FullCAN) CAN controller chips (Source:
STZP / HMS)
Figure 1: CAN-controlled cow milking and Figure 3: First CAN Repeater presented at
feeding system developed 1992 (Source: the INTERKAMA fair in Dusseldorf in 1992
STZP / HMS) (Source: STZP / HMS)
01-9
iCC 2017 CAN in Automation
01-10
iCC 2017 CAN in Automation
01-11
iCC 2017 CAN in Automation
and required microcontroller interfaces information in a car, this requires a split of the
and performance). In case of a stationary transmitted data into two or more messages
machine with a permanent power supply sent successively. As a consequence, not
from the electrical network this is not a all data which belongs together arrives at
problem (when not considering heat dis- the same time. Also diagnostic data usually
sipation or sustainability aspects). How- consists of longer data packages and
ever, for battery-driven mobile machines therefore needs to be transmitted segmented.
and applications, this is a critical aspect.
• Ethernet is more expensive. Just Especially for the car manufacturers, there
by comparing costs for the physical was a need to increase the bandwidth of the
interfaces and cables. Running an communication networks in the car as more
Industrial Ethernet protocol stack and and more electronic functions and ECUs were
quite often also a TCP/IP protocol stack added. One solution would have been to add
in parallel, requires a more performant more CAN networks and the other solution
CPU in order to meet required execution to use faster networks with higher bandwidth
time, response time and real-time and larger messages. BMW was the first to
demands. Furthermore, more resources introduce higher bandwidth by using FlexRay
are necessary for implementation. This in its cars. Daimler and Audi started using
will result is more costs for CPU and FlexRay somewhat later. However, Opel and
memory, especially for frequently used General Motors wanted to avoid introducing
smaller devices with limited functionality. a new network technology and have been
Today, the CAN controller itself is not a searching together with Bosch for a suitable
cost factor anymore. It is a commodity way to improve CAN in that area.
interface on microcontrollers like a serial
interface. In general it can be said that an The result was CAN FD (flexible data-
Ethernet interface is 3 to 5 times the cost rate) presented in 2012. CAN FD has two
of a CAN interface. essentials improvements: CAN messages
• Of course, CAN also has one important can have up to 64 data bytes and bit rates
disadvantage due to its bus arbitration of more than one Mbit/s. In order to keep the
principle: the maximum extension advantages and reliability of the arbitration
of a CAN network depends on the principle but also to be backwards compatible
transmission speed. At one Mbit/s it is to the “classic” CAN, the transmission
typically less than 40m. Consequently. speed is only increased after the arbitration
for larger extensions of the network, e.g. phase, when the payload data of a message
in larger machines, where 100m or 250m is transmitted. This principle results in
are required, the baud rate needs to be considerably increased bandwidth also for
lowered to 500 kbit/s or 250 kbit/s. CAN networks with longer line lengths like
250m where the arbitration bit rate still needs
The conclusion which needs to be drawn to be no more than 250 kbit/s but the payload
from these considerations is that CAN data then can be transmitted with e.g. two
still has its eligibility in many applications, Mbit/s, five Mbit/s or eight Mbit/s.
especially when power consumption, price,
up-time (MTBF) as well as diagnostic and Today, CAN FD is still not a topic for industrial
maintenance capabilities are important applications. A main reason for this is that
requirements. there are no suitable microcontrollers with
integrated CAN FD support available yet.
CAN FD – The booster for CAN However, this is only matter of time, possibly
one or two years from now. Meanwhile, all
One obstacle which makes the use of CAN in European and American car manufacturers
today’s automotive and industrial applications as well as other car manufacturers
difficult, is its limitation to no more than 8 data have plans or have already started
byes per message. For some applications introducing CAN FD in their next series
and functions like electrical drive status and of cars. Consequently, the semiconductor
control data in a machine, or wheel rotation manufacturers are already working on new
01-12
iCC 2017 CAN in Automation
versions of their microcontroller families with not in sensors and actors inside machines.
CAN FD controllers inside instead of “classic” The purpose of the second technology - OPC
CAN controllers. When these will become UA – is to have a standardized protocol for
available, it can be expected that also other communicating data between senders and
applications outside of automotive will start receivers. Of course, there are already many
using CAN FD. other protocols available for this purpose, but
their nature is that sender and receiver already
CAN and the Internet of Things have to know the meaning of the data. There
is no information provided by the protocol
A big buzzword these days is the “Internet about the nature and meaning of the data.
of Things” (IoT). At first glance, it is all about Hence OPC UA also provides semantics for
“Ethernet/Internet everywhere”. Ethernet each data point. This is a strong requirement
from IT down to the sensor level, the when data must be exchanged between
integration of the automation networks with automation systems and IT systems.
the IT networks and Cloud services.
As also already discussed, there is a tradeoff
When looking closer at the use-cases of between the use of CAN or Ethernet for
IoT, it is mainly about improving diagnostics, automation and control purposes inside
maintenance and management capabilities a machine. For many applications, CAN
of assets (machines and systems) and also remains the preferred solution because of
about interconnecting machines and systems efficiency, costs, reliability, performance,
in order to optimize production and making and maintainability. However, related to IoT
production more flexible. In the automotive and the additional data which needs to be
world, it is about communication between gathered from sensors and actuators inside
cars, between cars and infrastructure and the machine, CAN would not be a suitable
between cars and humans. solution because of its limited bandwidth with
up to 8 data bytes in one message. CAN
The nature of data which is transmitted for FD will transmit up to 64 data bytes in one
these purposes is different than the data message even at a much higher bit rate.
transmitted for automation and control This will allow for collecting the necessary
purposes (e.g. for controlling a machine). As additional IoT-related data from the sensors
already discussed in this paper, data used and actuators inside the machine in parallel
for automation and control is typically short to the automation and control data. It will
data transmitted more frequently whereas also make it possible to transmit the OPC UA
IoT related data is detailed diagnostic protocol in case devices inside a machine
data consisting of longer data packages provide OPC UA services.
transmitted less frequently.
Therefore, CAN FD is also the perfect sub-
Within the context of Industrie 4.0 and network for IoT-related applications, because
Industrial Internet of Things, two technologies inside the machine, it will be able to handle
are considered as core communication automation and control data in parallel to IoT-
technologies: TSN-based Ethernet and OPC related data, resulting in overall cost savings.
UA. TSN (Time Sensitive Networking) will
extend Standard Ethernet (802.1) with real-
time capabilities. In principle (or should we
say theoretically?), the real-time can go down
below the microsecond but there are still
many open questions and unclear aspects.
What seems to be clear is that the faster the
real-time will become, the more complex
and more expensive the technology will be.
Therefore, the primary focus is today to use
this technology between IT systems and as
“backbone” in areas like the factory floor, and Figure 5: IoT architecture with CAN FD
01-13
iCC 2017 CAN in Automation
The future of CAN / CAN FD in automotive However, the way that data is communicated
applications inside cars has also started to change. In
recent years, new mechanisms have been
Today, CAN is very well established, not introduced in the AUTOSAR standard
only in passenger cars but also more or like Intelligent PDU Multiplexing (IPDU),
less in everything moving. Due to higher Secure on-board communication (SECOC)
demands for new functions inside a car, or E2E (End-to-end protection profiles).
like driving assistance and security, camera These mechanisms require more data to be
systems providing surround views of the car transmitted than before. In addition, there
or infotainment, the Ethernet technology also are authentication mechanisms for ensuring
slowly started entering the cars already at the that safety-critical data is only accepted
end of the last decade. by receivers when the data comes from a
known and authorized sender.
For Ethernet, there are specific requirements
for use inside cars. First of all, regular CAT5 or Therefore, CAN FD comes at the right time.
CAT6 cables are not appropriate for use inside It will be the bridge between the “classic”
cars. CAT5/6 cables are too thick and stiff. CAN world and Ethernet. It is the most
Therefore it was necessary to develop a new cost-effective solution for many use cases
way of transmitting data at 100 Mbit/s in cars. inside the electrical car infrastructure. And
The solution was BroadR-Reach. Identical to there is one more very important aspect:
Fast Ethernet BroadR-Reach is a point-to- CAN is known to everyone and there is a
point connection providing a mechanism of lot of expertise at the car manufacturers.
100 Mbit/s full-duplex transmission by using Ethernet is new and there are usually
only two wires. Consequently, Ethernet wiring only a few people with the required
inside the car is similar to CAN wiring. For knowledge. It will take time until everyone
the mentioned application areas in which has the same knowledge level for Ethernet
Ethernet is already used or is going to be as for CAN.
used, Ethernet also needs to have a specific
feature for ensuring that data arrives in time All German car manufacturers will introduce
at the receivers. Initially intended for the CAN FD in their next generations, but CAN
infotainment or camera systems, the AVB will not yet be completely replaced by CAN
standard (Audio Video Bridging) was used FD. This will take some time. Ethernet will
consisting of time synchronization based only be used where the performance and
on the IEEE1588 technology and defined capabilities are absolutely required.
bandwidth reservation for data streams. For
new application areas like driving assistance The future of CAN / CAN FD in
and security, the focus is on TSN (Time non-automotive applications
Sensitive Networking) as this standard is
more general and will be part of 802.1. Its cost structure, flexibility, ease of use
and low power consumption still makes
Will Ethernet replace CAN in cars? - Definitely CAN the best choice for the automation
not within the next 10 or even more years. A and control networks in many different
major aspect for cars are costs. Today, the car application areas. Especially when the
manufacturers consider an Ethernet interface network extension is limited like in smaller
based on BroadR-Reach to be about six machines, for extensions and sub-systems
times more expensive than a CAN interface. to larger machines or in all the various mobile
Another cost factor is the fact, that Ethernet is applications, and especially when they are
a point-to-point connection requiring switches. battery powered. With CAN FD there is four
This restricts the topology and since switches times or even higher bandwidth available at
are only available in a certain granularity, shorter transmission times, and the network
unused ports are an unnecessary cost. It is length can also be extended. With the longer
also not acceptable to use more powerful CAN FD data packages, CAN also enables
microcontrollers with MII interface for simple the connection of IoT applications down to
ECUs like those used in doors. the sensor level.
01-14
iCC 2017 CAN in Automation
Summary
Christian Schlegel
Form today’s point-of-view, the assumption HMS Technology Center Ravensburg GmbH
that Ethernet will become the only Helmut-Vetter-Straße 2,
communication system used for automation 88213 Ravensburg
and control purposes is definitely wrong. +49-751-56146-121
There are requirements Ethernet will not meet +49-751-56146-29
and the price level and ease-of-use of CAN chsc@hms-networks.de
remains unbeatable. CAN FD comes exactly http://www.hms-networks.com
at the right time to make CAN fit for the future
meeting demands for higher bandwidth and
performance by keeping the ease-of-use,
reliability, flexibility and cost level.
01-15