Reliable ZigBee Wireless Networks for Industrial Systems - White Paper
Standards-based Mesh Network Topology Born in MIT’s Media Lab
Exhibits Superior Reliability Over Traditional Wireless Systems
By Andy Wheeler
Chief Technology Officer
Ember Corporation
Boston, Massachusetts,USA
Wireless systems for industry have mostly used cell phone-style
radio links, using point-to-point or point-to-multipoint transmission. Research
at MIT’s Media Lab conclusively proved that these traditional wireless formats
have substantial liabilities in industrial applications: rigid structure,
meticulous planning requirements, and dropped signals.
In contrast, wireless mesh networks as specified in the new
ZigBee networking standard are multi-hop systems in which devices assist each
other in transmitting packets through the network, especially in adverse
conditions. ZigBee nodes can be dropped in place ad hoc with minimal
preparation and provide a reliable, flexible system that can be extended to
thousands of devices.
ZigBee is a wireless network standard that solves the unique
needs of remote monitoring and control, and sensor network applications. ZigBee
takes full advantage of a powerful physical radio specified by IEEE 802.15.4,
adding logical network, security and application software to the specification.
This White paper is brought to you by Microcontroller.com and is available in our easy-to-read
collapsed outline format. Simply click on any heading to expand or collapse the section you wish to read, or you can click here to expand all chapters at once.
The Potential of Wireless
Factory communication wiring can easily have an installed
cost of $10 per foot or more. What if expensive communication wiring could be
replaced with reliable wireless links?
Productivity programs demand more and more information from
smart devices. What if industrial gear could gain more local intelligence by
sharing information with nearby sensors?
More and more maintenance systems require remote data
acquisition. What if you could continually monitor the condition of all the
equipment on your factory floor, not locating failures after the fact, but
predicting them before they happen?
Eliminate Cable
An obvious problem that can be addressed with wireless
solutions is simple wire replacement, where the wireless communication link
emulates wire in an existing system. No changes are made to the system
architecture. Rather, wireless links are used to transmit the same data that
the physical wire once carried.
Consider an instrument connected by a serial cable to a
control panel using Modbus as a communication protocol. ZigBee wireless links
with Modbus adapters can replace the serial cable as the physical layer to
carry Modbus packets back and forth, requiring no physical changes to the
instrument, the control panel or the underlying software architecture.
The serial cable is taken away, and a wireless transceiver is
physically connected to the serial port at both the instrument and at the
control panel. Neither the control panel nor the instrument can tell that it is
not using a cable.
The labor required to run this cable and conduit is not
cheap. Installation cost is a growing concern for designers and facility
managers, and labor rates continue to rise in most parts of the world.
So the benefits of ZigBee wireless networks are fairly
obvious: Expensive cabling has been eliminated. If these cables were in a
hazardous environment such as a chemical processing plant, they would have to
be isolated from potential contact with chemicals and placed inside conduit run
through concrete walls to reach the instrumentation deployed throughout the
plant.
Speed Up Installation, Reconfiguration and Expansion
Another benefit of ZigBee networks is the speed of
deployment. Wired systems can take days or weeks to be properly installed, isolated
and commissioned. ZigBee networks require only the end points to be installed,
saving hours or days for each instrument installed. Other instruments can be
added as required without the need for expensive, disruptive cabling and labor.
A further ZigBee benefit is the ease of reconfiguration and
expansion. If there is need for a plant expansion, or relocation of
instruments, there is no expensive conduit to be moved or added. If the
instruments to be connected to the control panel need to be placed on mobile
equipment, such as the mobile batch containers found in bio-tech,
pharmaceutical and other specialty chemical installations, wireless offers an
attractive solution.
In addition, as an industry standard, ZigBee ensures vendor
interoperability. So as the plant expands or adds new instruments, companies
aren’t locked into one vendor’s wares; they can take advantage of the latest
technological advances offered from a variety of vendors.
"What if Radios and Microprocessors Were Free?"
This was the question that spurred Ember co-founder Robert
Poor to launch the MIT wireless mesh research project in 1997. There is a
larger implication of simple, affordable wireless technology: The fact that
billions of smart devices in businesses, factories, homes and vehicles can be
transformed into a pervasive "Internet of things" by the addition of wireless
communications. We have already seen the staggering impact of the Internet
since the mid 1990’s, and there are far more embedded devices than people or
PC’s. As more devices are equipped with wireless links, an important revolution
is underway.
But Has Wireless Really Been That Easy?
Using wireless systems to replace common links like serial
cables seems easy. Buy users who have tried previously available wireless systems
have a common list of complaints:
Wireless links are not as
dependable as wires. Anyone who has used a cell phone, portable radio or CB
knows first-hand about wireless links. The signal is constantly changing as
conditions change between the two points.
Expanding or moving a wireless point
is not always as easy as claimed, because a new position on the network may be
out of range of the control point for the wireless network. This control point
is commonly placed at the control panel in an industrial application.
Wireless installers sometimes
offer assistance of professional technicians who perform RF site surveys to
determine control points for the wireless network based on planned coverage
areas. While useful, this adds highly skilled labor back into the installation
cost and doesn’t address ease of reconfiguration or expansion.
Some installations require
additional wireless access points in addition to the control panel.
These problems are evident when you try to talk on a cellular phone:
- Signals appear and disappear simply because you move
your phone six inches
- You can hear the other person, but they can’t hear you
- Calls get dropped and require re-connection
- Problems are compounded by reflections inside of buildings
(multipath)
- Interference from other wireless sources garbles reception
- There has to be a cell tower nearby cell phones can’t directly call each other
- If too many phones are in use, the system is busy and calls can’t get through
This is a very serious set of problems to face when
reliability is of prime importance. Despite the increasing popularity of IEEE
802.11 wireless LAN systems (WiFi) and Bluetooth systems, wireless
communication has not made significant inroads in industrial applications. And while
wireless systems seem like an obvious solution for industrial applications, in
reality the cure can be worse than the disease. Solutions based on these
standards were not designed with the industrial environment in mind. Industrial
users need a network architecture that takes the unique challenges of the
industrial environment into account.
Traditional wireless systems are simply inadequate for industrial
applications. A fresh approach is needed, possessing the following
characteristics:
- The network should not require
sophisticated planning or site mapping to achieve reliable communications. That
adds specialized, expensive labor to the installation.
- Human intervention should not be
necessary for the network to move a packet from one end to the other. The
network should figure this out by itself.
- All devices must be able to
transmit from where they are right now, and not have to be moved.
- Nobody uses wireless for fun,
only for pragmatic reasons, namely, lower cost and ease of installation. If
it’s not easier and less expensive than copper, then the promise of wireless
will never materialize.
- The network error rate should be
below acceptable levels, as defined by the customer.
Control & Sensing Networks versus Data Networks
To understand why traditional wireless networks do not work
well for industrial applications, it is important to distinguish between
control and sensing networks versus data networks.
Wireless data networks are primarily designed to link
together computers, PDAs, printers, Internet access points, etc. where large
amounts of data are sent both directions.
In data networks, the emphasis is on speed: faster is better.
The design and evolution of 802.11 networks is a good example. 802.11a allows
for data speeds up to 54 Mbps, enabling rapid downloads of music and video
files by end-users.
But wireless networks for industrial control and sensing,
above all, must be reliable, adaptable, and scalable. Because industrial
sensors send only a few of bits of data per second or minute, providing
information like temperature, pressure and flow, data rates of 11 Mbps or even
54 Mbps are rarely needed. Although speed is often the focus for data networks,
the primary design objectives for industrial control and sensing networks are reliability,
adaptability and scalability.
Essential Wireless Requirements of Industrial Environments
Requirement #1: Reliability
For most industrial applications, reliability is crucial:
wireless systems must be just as reliable as traditional copper wire. Depending
on the application, garbled or dropped data can result in anything from a
disruptive glitch to a devastating failure.
Three factors determine the signal reliability between a
radio transmitter and receiver:
- Path loss
- RF interference
- Transmit power
Consider a conversation between two people. Path loss
corresponds to how muted one person’s voice becomes, due to distance or
obstacles between them. The listener will have a hard time understanding the
speaker if they are too far away or talking through a closed door.
RF interference corresponds to ambient noise: it will be
difficult for the listener to understand the speaker in a noisy environment.
Many other factors—including receiver sensitivity and data encoding
technique—affect the reliability of a link. However, between a given radio
transmitter and receiver, the path loss, interference, and transmit power
determine the bit error rate.
The problems of path loss or interference can be overcome by
moving closer to the listener or by shouting loud enough to be heard. In the
wireless world, this corresponds to repositioning radios or by transmitting
with a higher power.
Unfortunately, neither of these are generally viable options.
Increasing the transmit power creates a situation similar to people shouting
over loud music at a party. A sophisticated antenna design that directs the RF
signal towards the receiving radio might help. But this is much like using a
megaphone to shout at the listener. It does improve the path loss situation, but
may fail if the listener or the megaphone moves.
Requirement #2: Adaptability
The network should adapt to the existing environment. The
environment should not have to be altered to make the system "wireless ready."
If you need a wireless link between a tank level sensor and a
data logger, it is not practical to relocate the tank or the data logger just
to create a reliable connection. In fact, a wireless link may be unsuitable for
connecting tank level sensors and data collection points in pre-existing structures,
as these are often immovable objects. If cables were already being used for
this, more wire could always be run, though at a prohibitive cost.
In the wireless world, the network should integrate
seamlessly with the environment. A key attribute of a good wireless network is
that daily work activities and the facility layout are not a concern.
You never want to ask someone to move in order to hear them
speak more clearly. Likewise, repositioning radios and equipment in order to
increase communication reliability is not always a realistic option.
Requirement #3: Scalability
Any network, wired or wireless, should scale gracefully as
the number of endpoints increases. Scalability is one of the attractions of
field buses over hard-wired "home run" systems: once the trunk line is in
place, adding new devices is relatively easy. In many multi-drop networks,
adding a new device is as simple as wiring the device directly into the network
cable or a termination block at one end of the network. Eliminating the need to
"home run" wire the new device back to the control panel has reduced wiring.
In a wireless system, all devices on the network share the
airwaves. Simply transmitting with more power can increase the reliability of a
single transmit / receive pair, but as soon as multiple devices share the
airwaves, this approach may actually decrease overall reliability.
It’s not unlike being in a large, noisy restaurant where
people are speaking loudly to be heard and no one can understand anyone else. Similarly,
transmitting with more power in order to increase reliability is not consistent
with building scalable networks that support numerous endpoints.
Wireless Formats
Point-to-Point Links
Sometimes referred to as a "wireless bridge," a point-to-point
link serves as a replacement for a single communication cable. A point-to-point
link might be used to connect a Programmable Logic Controller (PLC) to a remote
monitoring station as shown in Figure 1 below.
Figure 1 - Point to Point Network
Point-to-point links can communicate reliably as long as the
two endpoints are located sufficiently close to one another to escape the
effects of RF interference and path loss. If a reliable connection is not
initially achieved, it is sometimes possible to relocate the radios or boost
the transmit power to achieve the desired reliability.
Point-to-Multipoint Links
Point-to-multipoint wireless systems, such as those based on
IEEE 802.11 or Bluetooth, have one base station or access point which
controls communication with all of the other wireless nodes in the network.
Also referred to as a "hub and spoke" or "star" topology, this architecture has
similarities to wired "home run" systems, in which all the signals converge on
a single terminal block. A point-to-multipoint example is shown in Figure 2.
Figure 2 - Star Network
Signals in point-to-multipoint networks converge at a single
access point. The reliability of these networks is set by the quality of the RF
link between the central access point and each endpoint.
In industrial settings, it can be hard to find a location for
an access point that provides dependable communication with each endpoint.
Moving an access point to improve communication with one endpoint will often
degrade communication with other endpoints.
While it may be possible to wire together multiple access
points in order to improve reliability, the cost of additional wiring can
defeat the original reasons for choosing a wireless solution.
Wireless Mesh Networks
This wireless mesh network topology for industrial control
and sensing, developed by the MIT Media Lab and embodied in the ZigBee
networking standard is a "point-to-point-to-point" or "peer-to-peer" system
called an ad hoc, multi-hop network. ZigBee also supports star and cluster tree
network topologies, in case these kinds of topologies are better suited to the
specific application. A node can send and receive messages, but in a mesh
network, a ZigBee node also functions as a router and can relay messages for
its neighbors. Through this relaying process, a packet of wireless data will
find its way to its ultimate destination, passing through intermediate nodes
with reliable communication links. An example of a mesh network appears in
Figure 3.
Fig. 3 - ZigBee Wire Mesh Network
There are some important things to notice in this figure:
- The resemblance to a map of the
Internet is not entirely coincidental. Like the Internet and other router-based
communication networks, a mesh network offers multiple redundant communication
paths throughout the network.
- If a single node fails for any
reason (including the introduction of strong RF interference), messages will
automatically be routed through alternate paths. ZigBee ensures strong
quality-of-service through error-checking, packet acknowledgement capabilities,
use of direct-sequence spread spectrum and the ability to change frequencies to
avoid interferers.
- In a ZigBee mesh network, the
distance between wireless nodes can be shortened, which dramatically increases
the link quality between nodes. If you reduce distance by a factor of two, the
resulting signal is at least four times more powerful at the receiver. This
makes links more reliable without increasing transmitter power in the
individual nodes.
More Nodes = Greater Reliability
Notice the addition of freestanding "repeater" nodes in the
middle of the network. In a ZigBee mesh network, it is possible to extend
distance, add redundancy, and improve the general reliability of the network
simply by adding repeater nodes.
Mesh = Self-Configuring
A network should not need a person to tell it how to get a
message to its destination. A mesh network is self-organizing and does not
require manual configuration. Because it is both self-configuring and
self-healing, adding new gear or relocating existing gear is as simple as
plugging in a wireless node and turning it on. ZigBee networks discover new
nodes and automatically incorporate them into the network without the need for
a system administrator.
A mesh is not only inherently reliable, it is also highly
adaptable. If your tank level sensor and data logger are placed too far apart
for a solid RF communication link, you just lay down one or more repeater nodes
to fill gaps in the network.
Mesh = Self-Healing
On the Internet, if one router goes down, messages are sent
through an alternate path by other routers. Similarly, if a device in a ZigBee network
fails, messages are sent around it via other devices. Loss of one or more nodes
does not necessarily affect its operation. A ZigBee mesh network is
self-healing because human intervention is not necessary for re-routing of messages.
Mesh = Redundant
The actual meaning of "redundancy" in the real-world is a
matter of degree and must be carefully specified. In a mesh network, the degree
of redundancy is essentially a function of node density. A mesh network can be
deliberately "over-designed" simply by adding extra nodes, so that each device
has two or more paths for sending data. This is a much simpler way of obtaining
redundancy than is possible in most other types of systems.
Mesh = Scalable to Thousands of Nodes
A mesh is also scalable, and can handle hundreds or thousands
of nodes. In fact, the ZigBee standard specifies supports up to 65,536 network
(client) nodes. Since the operation of the network does not depend upon a
central control point, adding multiple data collection points or gateways is
convenient.
Reliability, adaptability and scalability are the most
important attributes of a wireless network for industrial control and sensing
applications. Point-to-point networks can provide reliability, but don’t scale
to handle more than one pair of endpoints. Point-to-multipoint networks can
handle more endpoints, but the reliability is determined by the placement of
the access point and the endpoints. If environmental conditions result in poor
reliability, it is difficult or impossible to adapt a point-to-multipoint
network to increase the reliability. By contrast, mesh networks are inherently
reliable, adapt easily to environmental or architectural constraints, and can
scale to handle thousands of endpoints. These attributes are summarized in Table 1 below:
|
Topology
|
Reliability
|
Adaptability
|
Scalability
|
|
Point-to-Point
|
High
|
Low
|
None
(2 endpoints)
|
|
Point-to-Multipoint
|
Low
|
Low
|
Moderate
(7-30 endpoints)
|
|
Mesh
Networks
|
High
|
High
|
Yes
(1000s of endpoints)
|
Table 1: Suitability in Industrial Applications
Security is another key consideration for industrial wireless
networks. Fortunately, ZigBee provides a standardized toolbox of security specifications and software. It is based on a 128-bit AES algorithm and incorporates the strong security
elements of 802.15.4. ZigBee stack profiles define security for the MAC,
network and application layers. Its security services include methods for key
establishment and transport, device management, and frame protection.
Real Industrial Applications of ZigBee Networks
Wire replacement
At the beginning of this paper, an example of wireless serial
link replacement was given. This is most commonly done with point-to-point or
point-to-multipoint technology, but ZigBee mesh networks provide complete
transparency. The network does not know that copper has been replaced with an
RF link, but the mesh network is inherently more reliable, more adaptable, and
scalable.
Distributed Control
A specific opportunity for ZigBee networks is in distributed control
systems. There has been a trend in recent years to place more intelligence throughout
the control system. The IEEE 1451 standard Smart Transducer Interface for
Sensors and Actuators is evidence of this. Distributed intelligence is naturally
served better by wireless multi-hop mesh networks, which do not require a
central control topology.
The control of the wireless system is distributed throughout
the network, allowing intelligent ZigBee nodes to communicate directly to other
nodes on the network without having to be routed through some central point.
Modular distributed control systems are easier to install and
maintain. Since more of the system logic is at the instrument or sub-system
level, clusters of instruments can interact and make local decisions. This is
often done with small PLCs, which gather information from nearby instruments or
sensors and then provide processing power and decision making for this local
instrument cluster. These clusters can then be connected as a group back into
the main control system. The result is a less complex installation because
individual instruments and points do not have to be directly connected to the
main control panel.
Is Distributed Control Cheaper to Maintain?
Proponents insist that modular control systems are easier and
less costly to maintain.
The rationale is that highly modular control systems enable
localized decision making, which results in faster isolation of problems within
the system. These problems can usually be diagnosed back to a single instrument
cluster, allowing engineers and maintenance staff to focus their attention on
one area of the system.
Fast problem solving means less downtime when something goes
wrong. Likewise, when the system is operational, local decision making by
intelligent instruments and small PLCs identifies problems before they impact
the entire system and cause bigger problems.
Finally, these modular sub-systems can be replaced or
upgraded without affecting the entire system. These many factors make systems
much cheaper and easier to operate and maintain.
Matching ZigBee communication with distributed control
facilitates a whole new dimension of interactions between sensors or sensor
clusters.
ZigBee-compliant sensors can now communicate directly to
other devices on the network. This
topology allows a tank level sensor to communicate directly
with nearby valves, alerting them to open or close to prevent an overflow
situation. Monitoring equipment could take readings from sensors without having
to directly access the sensor with wired connections. This is useful in
calibration and troubleshooting.
In addition, ZigBee networks can be seamlessly linked to a
company’s enterprise system in order to capture and analyze plant processes. Arcom,
for example, has integrated Ember’s wireless semiconductors and software into
its XScale® based, industrial network gateways to provide communications
between ZigBee networks and IBM’s WebSphere® MQ Integrator. This solution makes
data from remote sensors and controllers easy to integrate and useful to
business applications
Diagnostic Monitoring
A third area of application ZigBee networks is in the
diagnostic monitoring of devices. This monitoring can occur outside the normal control
loop and wireless communication can be sent to notify the system user of any
abnormal operation of the device. Take for instance the schematic of a sensor control
loop shown in figure 4 below:
Figure 4 - ZigBee Diagnostic Monitoring
In this control loop, an additional signal is extracted and
analyzed during the course of normal operation of the sensor. As the sensor
operates, the signal is monitored for abnormalities without affecting the
sensor’s operation. If an abnormal signal or trend is observed, an alert is
triggered.
The beauty of using a ZigBee link for on-board monitoring and
alert is that the monitoring link remains independent of the control loop. By
using a ZigBee mesh network, data can be routed dynamically to similar wireless
devices. Surrounding devices can respond to the alert from the failing device,
even as the alert is being sent to maintenance personnel.
Another benefit of ZigBee is that maintenance personnel can
directly connect to the diagnostic output of the sensor, without running wires.
This can eliminate a huge task in the case of a tank level sensor in a large
storage tank, or a temperature probe at the top of a tower stack at a chemical
refinery.
In a ZigBee mesh network, a user can get that data via any
wireless node on the network.
By using a diagnostic device with additional processing power
(such as a laptop computer, handheld computer, handheld diagnostic device),
maintenance personnel can check on configuration and other information about
any node on the network. This information is a valuable tool for checking and
verifying sensor operation when questionable data is received from a sensor
through its primary control loop.
Case Study: Water Treatment
To validate ZigBee networks in challenging industrial
environments, Ember Corporation deployed a system in a water treatment plant.
The environment was typical of such facilities, with significant wireless
environment hurdles such as thick reinforced concrete walls segmenting giant
tanks of water with large numbers of metal pipes running between tanks (Figure
5).
Figure 5 - A Water Treatment Plant
The goal was to connect the instruments in the pipe gallery
back to the control panel located in the control room on the third floor of the
water filtration plant. A look below at figure 6 provides a geographical
representation of the instrumentation topology.
Figure 6 - ZigBee Topology for Water Treatment Plant
Figure 6 shows the approximate locations of eight instruments
in the large pipe gallery along with four instruments in the small pipe
gallery. The control room was located on the third floor of an attached
concrete building.
Before wireless communication, a data collection PC in the
control room communicated with process instruments over a RS-485 serial bus.
The first step in converting this system to wireless networking was to replace
this computer’s bus connection with a wireless networking card connected to its
serial port.
Each process instrument also had bus connections replaced
with wireless networking cards, which self-configured on power-up and began
attempting to send data to the control room. After all 12 instruments had
wireless cards installed, it was possible to analyze the RF network traffic and
determine where link reliability was below standards.
These areas included spots where RF signals had to pass
through reinforced concrete walls and where a single link spanned two flights
of metal stairs. Improving these RF links was a simple matter of dropping down
additional RF relay points. This step was made possible by the network’s lack
of a central wireless control point and each node’s ability to cooperatively
relay packets on behalf of its neighbors.
After these "repeater" nodes were placed, the ZigBee network
was complete.
Installed and Operating in Two Hours
Time for complete installation was under two hours - compared
to approximately twenty hours when each instrument had to be wired back to the
control panel. The software on the PC did not discern any difference in the
wireless communication network versus the wired serial cable network.
The ZigBee network exhibited less than 0.1% packet loss
before any attempt was made to re-send lost packets through the network. This
was accomplished via the mesh networking algorithms used by the wireless
network. Neighboring nodes cooperatively relay packets over the best RF link.
Conclusion
Daily experience with some of the challenges of wireless
consumer products, university research, and the commercial industry’s slow
adoption of wireless for use in enterprise applications, are indicators that
products based on point-to-point and point-to-multipoint topologies are not
well suited for use industrial enterprise communication.
Multi-hop mesh technology like that supported by the ZigBee
standard, however, is inherently reliable, redundant, and can be extended to
include thousands of devices. Real-world examples cited in this paper demonstrate
that ZigBee mesh networks can be installed in hours instead of days or weeks and
that these networks are highly dependable.
ZigBee mesh networks meet all the objectives of industrial
sensing and control applications:
- The network does not require
sophisticated planning and site mapping to achieve reliable communications.
There is no need for specialized, expensive labor to complete the installation.
- The network is self-configuring,
and does not require the assistance of a network specialist just to send a
packet from one end to the other.
- All devices are able to transmit
from where they are originally, and do not have to be moved. A weak signal or
"dead zone" can be fixed simply by dropping a repeater node in place.
- Compared to the cost of
specialized knowledge that’s required to install traditional wireless systems,
or the cost of point-to-point copper wiring and conduit, ZigBee is must less
expensive.
- The network error rate is very low
(under 0.1% in the example cited above) and can be further reduced if
occasional re-transmits are allowed.
Industrial systems can now benefit from an industry standard
wireless network format that satisfies the multiple conflicting demands of
redundancy, distributed communication, flexibility and reliability. Furthermore,
flexible, self-configuring, self-healing ZigBee networks are inherently less expensive
to install and maintain. A significant barrier to low-cost connectivity has
been removed.
Reliable ZigBee Wireless Networks for Industrial Systems- End