Professional Documents
Culture Documents
Cable harnessing is always a headache in any system design. Although CAN Bus
implementation is a cable friendly solution compared to other communication protocols
used in the industrial space, in some applications - especially demanding areas such as
Robotic Systems and Heavy Duty Machinery - cable wearing is a well-known
un-resolved issue.
Another complicating factor is that electronically controlled features are becoming
more advanced and their quantity increases year on year. As a result, more nodes and
network gateways appear in the system and complex cable harnessing and routing
mechanisms are required.
The idea of replacing CAN cabling with a wireless solution is not new. Indeed, many
similar CAN-Wireless gateway products with a variety of wireless solutions can
be found in the market. Such a solution results in the problem of merging two
different types of communication protocol (CAN and Wireless). From a system
design point of view, how to implement wireless communication into CAN is a
challenge. Issues such as data throughput, latency and data security need to be
addressed.
02-16
iCC 2015 CAN in Automation
The basic hardware implementation should Data throughput and bandwidth between
consist of both a CAN Transceiver and Radio Radio and CAN protocol
Transceiver in which the CAN Message
will be buffered and carried in the payload Data throughput is a major consideration
of a Radio Frame. Filtering is required to for any Wireless implementation within a
optimize Radio Bandwidth/Data throughput. CAN System. In the radio frequency range
between 2.4 GHz and 2.480 GHz, 1 to 2Mhz
The MCU should able to handle the bandwidths is widely used by industrial
compression and extraction of CAN data applications for Frequency Hopping.
from the radio packet with a good size of
FIFO buffering any burst of data. Although the Radio Bandwidth seems to suit
the CAN Bus Protocol, the possible data
throughput for the application (in this case
CAN Messages as Radio packet’s payload)
may not be enough. This is because of
the overhead from the radio mechanism.
The actual application throughput will be
roughly from 20kbps to as high as 128kbps
according to similar products currently
Figure 2: Concept of wireless CAN cable on the market. Actual Data Throughput is
hardware. dependent on how their proprietary radio
protocol has been implemented.
Why not Wi-Fi or Bluetooth?
With such proprietary protocols, the
There are many radio protocol standards handshaking method over TX and RX, as
in the industrial space such as Wi-Fi and well as the radio packet overhead, can be
Bluetooth. limited in order to support higher CAN data
throughput. Such overhead also contains
Wi-Fi and Bluetooth are dominant within the important information to aid the system
consumer market. However, when dealing designer of a CAN System.
with control systems, a propriety radio
protocol is always preferred. Taking the example of a well-designed
30 % - 40 % busload CAN system, 128 kbps
One issue for Bluetooth is range as it is enough for a lower speed CAN network
is typically less than 10 meters in most such as a 125K to 250K CAN Baud rate.
applications. As a cable replacement, this
may not be enough for a short physical With a medium to high CAN Baud rate such
length CAN network requiring a 125K baud as 500 K to 1M, proper filtering has to be
rate. in place in order to optimize the CAN data
throughput over the radio link.
Initially, it seems that Wi-Fi’s data throughput
and range is far better than Bluetooth. The data throughput for CAN over Radio
However, the latency is not controllable and Protocol will be independent of CAN Baud
can be as much as 100ms. That might not rate. Indeed, a CAN System Designer has to
02-17
iCC 2015 CAN in Automation
understand the capacity of the radio protocol An additional factor to bear in mind is
should a wireless solution be chosen. that a known maximum latency and data
throughput have a critical influence over
Real time performance and latency how the buffer stack should be setup for
incoming CAN Messages. The reason for
In the wireless environment, latency is this will be explained later in the article.
inevitable due to factors such as hand shaking
of the TX message and Acknowledgement, Diagnostic over wireless link
as well as external interference causing re-
transmission. There are two philosophies to consider
when employing Diagnostic services over
In regular practice, most radio protocols a wireless link when it is used as a cable
quietly handle error detection and retransmit replacement:
at the expense of throughput and variable • Higher Layer Protocol – i.e. Diagnostic
latency. Services Protocol for the CAN System.
• Self-Diagnostic information on the
Indeed, there are couples of factors that Wireless link.
affect latency:
Diagnostic Protocol service is widely used
1. The time a radio packet waits before in CAN applications such as J1939 and
being transmitted depends upon the ISO 14229.
internal buffer size as well as cross Very complex Transport Protocols such as
traffic (if the protocol is working as half ISO 15765 require precise timing control
duplex) over multiple consecutive CAN Message
2. If there is any error causing transmissions. Therefore, as mentioned in
re-transmission of the packet? previously, a known/controllable latency as
3. The time to receive an well as good buffering are important.
acknowledgment after successful
transmission depends on the A controllable latency over the radio packet
performance of the radio device from allows the application layer to manage the
other side timing according to the actual capability of
the physical layer.
CAN is well-known as a protocol for real
time prioritized communication systems. Good buffering will ensure the correct
In most cases, it would be hard for a CAN handling of any burst message, especially
control system to tolerate delays caused by in multi-frame transmission of the Transport
wireless cable replacement without knowing Protocol. There is only a thin line between
the possible latency over radio link. the maximum latency and data loss.
A good wireless solution should have a The rule of thumb is that if the message
known maximum latency within a successful burst exceeds the capacity of the buffer
radio packet transmission. A controllable/ times latency, there will be message loss.
known latency is a key for scheduling the
CAN message within a system. Hence, any For self-diagnostic information, the Wireless
unknown latency could possibly affect the link should provide the ability to self-check
actual outcome of the CAN System behavior. information such as:
• Radio packet information
Some wireless products currently on the • Radio signal quality
market could add up to 30ms of latency • Any history of error occurrence
over the radio packet. However, with a • Any re-transmission of the packet
well-designed proprietary radio protocol,
the latency could be minimized down to the One way of looking at this is as a cable
region of 2ms for a successfully transmitted replacement using Wireless technology.
radio packet. On the other hand, this is also an individual
02-18
iCC 2015 CAN in Automation
02-19
iCC 2015 CAN in Automation
Error handling of CAN over wireless Vice versa, a pair of wireless cable
replacements could also monitor the CAN
The CAN Bus protocol has a state of the art Network and thus report abnormal CAN
complete error handling mechanism. activities to the other side over the radio link.
02-20
iCC 2015 CAN in Automation
02-21