Data acquisition: no limits — digital wireless technology using the IEEE802.15.4 ZigBee standard

By Mark Lee*
Sunday, 19 August, 2007


Wireless networking of data capture devices using the ZigBee protocol provides a more efficient and fault-tolerant method of data acquisition without wires.

The consumer electronics market has seen an explosion of gadgets enabled by wireless technology over the past five years, with the wide uptake of devices such as wireless broadband routers, Bluetooth headsets, DECT phones and audio-visual senders. The commercial market has been far more cautious in embracing these technologies when designing environmental monitoring and process control systems, with concerns over reliability, data security and potential cost outweighing the obvious convenience benefits.

With an increasing demand for easy, flexible environmental monitoring systems in sensitive sites such as museums, healthcare manufacturers and heritage listed buildings, the massive advantages offered by new wireless technology are becoming impossible to ignore when specifying data acquisition systems.

Cables?

Local and high-speed data acquisition has historically been a case of connecting sensors to a data logging device to a PC or PLC, via cable. Cables typically offer a guaranteed, reliable point-to-point connection, several decades of reliable service, and high bandwidth capacity resulting in large amounts of dataflow at high speed.

Long cable runs to remote sensors around a site however, suffer from two main problems. The first is disruption to the building fabric and operation if new cable routes have to be laid to install the system and subsequent further disruptive work if the system needs to be modified, or sensors added or moved.

The second major problem is one of maintaining signal integrity over long cable runs. All cables are subject to interference from nearby strong magnetic fields and signal decay (where the measured signal at the sensor end fades along the length of the cable, changing the measurement). Active repeaters, amplifiers and filters are common processes used to try to boost signal-to-noise ratio (SNR), often with mixed success.

Wireless!

Wireless data acquisition makes installation as easy as placing sensors in the correct locations, then adding or moving them if the system needs to be modified. It also overcomes the problem of maintaining signal integrity by sampling and converting the analog measurement signals into digital data at the monitoring point ready for radio transmission.

Wireless signals are of course just as prone to interference and decay as wired signals, but with digital transmission, the carried data includes its own error checking and correction and higher level protocols will manage the checking and re-sending of data should an interference to transmission occur. In addition, modern digital coding techniques allow much more information to be carried in the same bandwidth than would be the case with an analog signal.

Technology

The latest wireless environmental monitoring systems in Australia use the 2.4 GHz radio band, available for home use and typically used by wireless routers, Bluetooth devices, AV senders and DECT phones. Rather than consumer protocols, commercial wireless monitoring systems use a high level protocol known as ZigBee, based on the IEEE 802.15.4 standard for wireless personal area networks (WPANS), which was ratified in 2004.

The ZigBee protocol was designed to be simpler, cheaper and more power efficient than other 2.4 GHz technologies, with devices requiring significantly less programming code than Bluetooth and wireless LAN devices. This makes ZigBee radio nodes up to five times cheaper than similar Bluetooth devices — enabling great value for data acquisition systems requiring many wireless nodes.

Security

The ZigBee protocol was designed with built-in security as a top priority, unlike 802.11 wireless LANs or Bluetooth which suffer from several security weaknesses. While the 802.15.4 standard specifies the use of AES (Advanced Encryption Standard) encryption using up to 128 bit shared keys for secure transport, the ZigBee protocol defines the way the keys are established and how nodes recognise and react to each other throughout the mesh network (authentication). The master network controller keeps a list of authenticated devices (those that have specifically joined the network in a process known as association) and only responds to these devices, blocking messages from foreign nodes.

The master also supervises the distribution of encryption keys to new nodes across already secure parts of the network. ZigBee network nodes can choose from three different types of key: master, network and link. The network key protects the entire network from outside intrusions and the link key forms the basis of security between two devices. If the link key is available, it is always used. Nodes can use the less secure network key if required to conserve memory, but as this key is used across several devices it can be susceptible to insider attacks. End-to-end security is maintained from sender to receiver by encrypting the data once. Intermediate nodes do not decrypt and re-encrypt the packets, but only relay them on to their destination. Finally the network master also maintains a ‘freshness’ list, which assigns a unique counter ID when each key is established. If the master detects messages it has already received (with ‘stale’ or out-of-synch freshness counters), it suspects a hacker is replaying or falsifying messages and chooses to ignore the intrusion.


Figure 1: The 2.4 GHz spectrum

Interference robustness

The ZigBee network copes with potential interference from other 2.4 GHz devices by scanning the radio environment for traffic and selecting appropriate channels away from (or slotted between) competing signals. 802.11 devices have eleven 22 MHz spread spectrum channels defined at a 25 MHz spacing between 2.401 GHz and 2.473 GHz. As shown in Figure 1, ZigBee devices, however, have 26 narrower (3 MHz) channels at 5 MHz spacing defined in the same frequency range, meaning lower bandwidth channels, but far greater scope to find an unused portion of the spectrum to communicate in.

Networking

ZigBee devices form a mesh network (Figure 2), allowing devices to relay messages from a more distant node to the network’s central base station. This significantly extends the range of the system from a basic point-to-point range of 80 m, to a maximum network range of 1.2 km, and allows messages to find different routes through the system when certain nodes become unavailable for any reason. This mesh packet network concept is so powerful and robust it forms the basis of the entire internet, a firm foundation for a reliable wireless data acquisition system.


Figure 2: The wireless ‘mesh’ network allows the system’s range to be extended by repeating signals.

Considering the operating environment

When new wireless data acquisition systems are planned, an initial site survey should be carried out, which takes into account how the wireless signal will propagate from the wireless nodes to the base station. Factors such as whether the wireless signal has to travel through walls, glass, doors or openings must be taken into account, all of which effectively attenuate the wireless signal and reduce the range. Attenuations encountered can be added to produce a power budget and determine whether the site for a particular node is viable, or whether the site requires enhanced antennas or cabling. Examples of the types of attenuation caused by different materials are shown in Table 1.

Item losses to be added db
Human body 3
Marble 5
Clear glass window 2
Glass wall with metal frame 6
Wired-glass window 8
Plasterboard wall 3
Sheetrock/metal framed wall 6
Dry wall 4
Brick wall 2 to 8
Wooden door 3
Metal door in office wall 6

  

Item losses to be added db
Cubicles 3 to 5
Window, brick wall 2
Office window 3
Metal screened clear glass window 6
Brick wall next to metal door 3
Cinder block wall 4
Sheetrock/wood frame wall 5
Office wall 6
Concrete wall 10 to 15
Metal door 6
Metal door in brick wall 12 to 13

Table 1: Attenuation losses for common indoor obstacles

Data acquisition nodes based on ZigBee have a standard range of 80 m in free air with -1 dBm at the transmitter, -94 dBm receiver sensitivity and a standard 2.2 dBi antenna (as found on wireless routers). The range can be extended with a higher gain antenna, every 6 dB of gain introduced into the system giving an effective doubling of the range in free air. The wireless mesh can be extended into potentially radio ‘dead’ locations, such as underground tunnels and store rooms using custom designed combinations of antennae and cabling.

Information flow

In the latest wireless data acquisition products, nodes with internal sensors capable of measuring temperature, humidity, light level, sound and vibration and dewpoint are available. Nodes also have additional analog inputs which accept industry-standard 0-5 V and 4-20 mA signals suitable for connecting external sensors, and digital inputs suitable for measuring contact closure, counting and totalising events.

The sampled data is fed from the nodes back to a base station, which coordinates the acquisition from all nodes at set time intervals, gathers the measurements and feeds them back to a database or PC-based application via standard ethernet. If the base station is required at a location with no local network available, GPRS-based wireless modems can be used and the signals transmitted across mobile phone networks, allowing for a truly remote monitoring system.

Network robustness

If communication is lost from node to base station the node can buffer data until the line is restored and similarly data buffering is available at the base station if the network is interrupted for any period of time. Once the data has been fed into a PC-based enterprise system backed up with a database, every measurement, system configuration change and alarm activated and acknowledged is logged and traceable, providing a unique and compliant data acquisition system.

   


Figure 3: A typical wireless sensor unit

   

Hard to ignore

With customers’ demands for easy, unobtrusive, flexible data acquisition driving the development of high specification wireless data acquisition and monitoring systems, it seems that wireless devices are no longer just ‘gadgets’ for the consumer electronics market — they have a powerful role to play in demanding data acquisition applications.

 

*Mark Lee is a technical specialist for Neo Vista Systems Integrators Pty Ltd.(NVSI) of Sydney, Australia and Auckland, New Zealand.
Mark studied wireless digital communications systems at Bristol University in the UK and has worked with National Instruments data acquisition products since 2004.

 

Related Articles

Industrial wireless networks — comparing the standards: Part 2

In Part 1 of this article, we reviewed the history of wireless sensor networks (WSNs) and defined...

Industrial wireless networks - comparing the standards: Part 1

Today wireless instrumentation is becoming more commonplace in process plants and is a more...

Modernise and maintain: implementing wireless to monitor beyond the P&ID

Many operational and maintenance problems around a plant can be solved by deploying WirelessHART...


  • All content Copyright © 2024 Westwick-Farrow Pty Ltd