Overview
ZigBee is a wireless standard for personal area network (PAN) sensor monitoring and control. Learn how National Instruments Alliance Partner SeaSolve has developed a test suite including transmit (Tx), receive (Rx), and compliance testing for ZigBee. This tutorial describes test methodologies and techniques for each type of testing.
Table of Contents
- Introduction to ZigBee
- ZigBee Transmitter Testing
- ZigBee Receiver Testing
- ZigBee Automated Compliance Testing
Introduction to ZigBee
ZigBee, also known as IEEE 802.15.4, is a communications standard designed for low-power short-range communications between wireless devices. It is classified as a wireless personal area network (WPAN), a term that includes the Bluetooth (IEEE 802.15.3) standard as well.
The ZigBee standard has seen increasing interest from both commercial and military customers for applications such as wireless sensor networks, home automation, and industrial control. One interesting facet of the ZigBee standard is that it is designed so that devices can create a self-forming and self-healing ad hoc or mesh network. In this scenario, a central "PAN coordinator" device oversees the health of the network configuration. In recent years, sensor networks have been the subject of much research in military/battlefield applications as well. Thus, there is significant interest in using the ZigBee standard to define the communications links in ad hoc battlefield intelligence scenarios.
One feature of the ZigBee specification that makes it ideal for remote wireless sensors is the implementation of a low-power physical (PHY) layer. As an overview, the physical layer specifications allow ZigBee devices to operate at one of three bands: 868 MHz (Europe), 915 MHz (North America), and 2.4 GHz (worldwide). The 2.4 GHz band, in which ZigBee transceivers are most commonly deployed, uses the OQPSK (offset quadrature phase-shift keying) modulation stream. This scheme, a derivation of traditional QPSK, is used because it requires less power than similar schemes while achieving the same or better throughput. OQPSK uses a maximum phase transition of 90 degrees from one symbol to the next. This prevents symbol overshoot and requires slightly less transmission power than the traditional QPSK modulations scheme. This design decision, combined with the use of a 5 MHz channel bandwidth enables devices to achieve a data rate of up to 250 kbits/s in a reasonably power-efficient manner.
Because ZigBee transceivers are designed for low-power applications, the physical layer is relatively tolerant to significant error. In fact, devices are able to tolerate an error vector magnitude (EVM) of up to 35 percent while maintaining reasonable bit error rate (BER) performance. Thus, design validation and product request require a variety of test methodologies. This paper examines the reasons why you must conduct specific tests and provides tips to achieve the most accurate testing methodologies.
This overview is divided into the following three parts:
- Transmitter testing with a vector signal analyzer
- Receiver testing with a vector signal generator
- Automated compliance testing (ACT) with both a vector signal analyzer and vector signal generator
ZigBee Transmitter Testing
When testing a ZigBee transceiver’s Tx signal quality, you must use a vector signal analyzer to characterize both spectrum information and modulated signal quality. One solution is to use the SeaSolve WiPAN LVSA signal analysis toolset along with an NI PXI-5660 vector signal analyzer. With this software package, you can perform both spectrum and modulation measurements on IEEE 802.15.4-compliant signals. It is important to remember that both measurement types are a requirement for both design validation and production test. The spectral emissions of a ZigBee transmitter dictate its interoperability with other devices in the ISM (industrial, scientific, and medical) band. In addition, the modulation quality of the Tx signal, combined with the antenna performance, dictates the range of distance over which the device can reliably perform. A typical test configuration is shown in Figure 1.

Figure 1. A typical transmitter is tested through either direct connection or air interface.
The most common spectral measurements performed include power spectral density, occupied bandwidth, power in upper/lower bands, and total power in band. In addition, typical modulation analysis tools include the constellation plot, eye diagram, complementary cumulative distribution function curve (CCDF), and returned bitstream. Typical modulation measurements are EVM, frequency offset, and BER. Note that various stages of product development require different measurements and/or analysis. For example, the design validation and verification stage of development requires more intensive analysis tools such as a constellation plot to debug various issues in product design. On the other hand, production test requires more definitive measurements such as EVM and frequency offset so you can compare performance to test limits.
ZigBee Tx Spectrum Analysis
The sections below describe each of the basic frequency domain measurements and explain their importance. You can make each of the following measurements with either a spectrum analyzer or vector signal analyzer. In general, a vector signal analyzer is the recommended instrument because you can use it for modulation measurements (next section) as well.
Power Spectral Density
Power spectral density (PSD) is a measurement that describes how the power of a given packet of data is spread over a broad frequency range. This measurement is used to ensure that the transmitter operates within the spectral mask requirements of the IEEE 802.15.4 standard. Figure 2 shows a frequency mask compared with the output power. The frequency mask, depicted as the white line, represents the limit of power that the transmitter is allowed to emit into adjacent bands. When troubleshooting a device, factors such as poor filter design or images resulting from amplifier compression can contribute to unwanted power in adjacent frequency bands.
Figure 2. Plot of Power Spectral Density
Power in Band
The power-in-band measurement calculates the integrated power (dBm) in the specified channel or band. This measurement is used to ensure that the transmitter does not exceed the power specifications of the IEEE 802.15.2 standard.
Occupied Bandwidth
Occupied bandwidth returns the bandwidth of the specified frequency band that contains 99 percent of the total power of the span.
Adjacent Channel Power
Adjacent channel power measurement comprises the power in the upper and lower bands. According to IEEE 802.15.4, upper band is 5 MHz toward the right of the operating frequency and the lower band is 5 MHz toward the left of the operating frequency.
Baseband Measurements
Baseband parametric measurements are used to ensure that the receiver can successfully decode ZigBee transmit packets. Because ZigBee transceivers are designed to operate at low power and do not require high-data throughput, modulation quality is often sacrificed to reduce power consumption. Overall, the purpose of measuring quality is to evaluate the likelihood of bit errors. As an example, estimate BER as a function of EVM (%), which is shown in Figure 3.
Figure 3. BER versus EVM for a QPSK-Modulated Transmission
As the graph shows, BER increases dramatically when the EVM of a QPSK transceiver increases from 15 to 30 percent. By contrast, most ZigBee devices are required to operate at an EVM that is below 35 percent. Thus, it is important to measure modulation accuracy to validate that a transceiver operates effectively in its deployment environment. You can implement this with the several plots and measurements shown below.
Error Vector Magnitude
With EVM, you can capture various problems and impairments, such as local oscillator (LO) stability, IF filter, compression, symbol rate, and interfering tones. By measuring EVM, you can verify linearity and efficiency. During analysis, you can check whether EVM always falls below the standard-specified reference of 35 percent, which ensures effective demodulation of the transmitted signals. Typically, EVM is measured both on a per-symbol basis and as an RMS EVM% measurement, which captures the average EVM for the entire packet. An example of a per-symbol EVM measurement is shown in Figure 4.

Figure 4. EVM per Symbol for Transmitted ZigBee Packet
Constellation Plot
The constellation plot provides a graphic representation of the demodulated baseband waveform. This diagram is one of the most valuable during the design validation stage because you can use it to identify problems such as I/Q gain imbalance, DC offset, quadrature skew, and other impairments. Unlike the EVM measurement, which offers a simple numeric value, the constellation plot also provides a visual representation of the source of error. In the Figure 5 plot, recovered symbols are depicted in red and symbol transitions are shown in white.

Figure 5. Constellation Plot of a ZigBee Transmit Signal
On a constellation plot, you can see that all of the transitions (shown in white) occur on the parameter of the diagram and not through the center. This is a feature of the OQPSK modulation scheme, which requires less power than the traditional QPSK scheme.
While EVM offers a specific mechanism to quantify impairments, the size and shape of the constellation plot provide a visible indication of the type of impairment that is present. To illustrate this, Figure 6 shows the constellation plot of an impaired Tx signal.

Figure 6. Constellation Plot of ZigBee Tx with Impairments
In Figure 6, you can see the type of impairment that has been added by observing basic characteristics of the constellation plot. First note that the plot has been slightly stretched in a clockwise manner (in other words, the angle Θ is less than 90 degrees). From this characteristic, you can determine that the added impairment is quadrature skew. In other words, the in-phase and quadrature-phase components of the LO are not precisely 90 degrees out of phase. While you can use EVM to capture various impairments with a numeric value, you can take advantage of the constellation plot to identify the source of error as well.
Eye Diagram
The eye diagram also reveals the modulation characteristics of a Tx signal. In contrast with the constellation plot, it provides a time-domain view of the signal and can be used to visualize shaping or channel distortions. With this measurement, designers can decide on the optimum sampling point/decision for decoding the data. During analysis, you can check for the maximum eye openings in the signal after offset removal (OQPSK -> QPSK) to validate demodulation properties.
Data Bits
One of the most common metrics to quantify receiver performance is to measure BER. Because low EVM results in errors occurring infrequently, this measurement can be quite time-consuming, depending on the modulation quality. As a result, extended BER tests are most commonly performed during the design validation phase. In production test, a much shorter BER test is used. BER measurements can be made by returning the decoded raw data as a stream of 1s and 0s. You can calculate BER by comparing these values with a known transmission.
Complementary Cumulative Distribution Function
Complementary cumulative distribution function (CCDF) is used to analyze the power characteristics of a signal. As discussed earlier, the ZigBee specification defines the use of the OQPSK modulation scheme to minimize power requirements. Thus, in the ideal case, the power efficiency of the transmitter is maximized when the Tx power is constant. You can use the CCDF curve shown in Figure 7 to verify that power fluctuations do not occur.

Figure 7. Complementary Cumulative Distribution Function or Tx Packet
As the figure illustrates, you can use a CCDF curve to represent the percentage of power above the average power. In the ideal case, the right edge of the CCDF curve is perfectly vertical. In this scenario, a power amplifier can maintain the highest power efficiency without being driven into saturation.
ZigBee Receiver Testing
The requirements for testing a ZigBee receiver generally fall into two categories: MAC layer emulation and impairments testing at the physical layer (PHY). You can use the first type, MAC layer emulation, to ensure that the ZigBee receiver is able to respond appropriately to the generated commands. With the second type, impairments testing, you test a receiver by intentionally reducing the modulation quality of the test stimulus. You can implement both types of testing using the SeaSolve WiPAN LVSG signal generation solution combined with a PXI vector signal generator. This is illustrated in Figure 8.

Figure 8. WiPAN Mapping on ZigBee Protocol Stack
Figure 8 shows that the IEEE 802.15.4 standard defines the MAC and PHY layers of a ZigBee transmission. Typical test procedures involve both MAC layer emulation through packet generation and PHY layer testing by adding impairments.
ZigBee Frame Types
The MAC (Media Access Control) layer of a ZigBee transmission defines the basic packet and frame structures. The IEEE 802.15.4 specification defines four basic frame structures that you can use for receiver test. These frame types include the following:
- A beacon frame is used by a coordinator to transmit beacons. The beacon packet enables a node to identify the presence of others nearby.
- A data frame is used for all transfers of data payloads.
- An acknowledgment frame is used for confirmation of a successful frame reception.
- A MAC command frame is used to handle MAC peer-entity control transfers.
The MAC command frame is the most flexible. Thus, receiver testing also involves selection of specific subframes, listed by type, below:
- Association request – a request for association with a PAN coordinator.
- Association response – a reply from a coordinator with association status (possibilities include association successful, PAN at capacity, and access denied).
- Disassociation notification – used by device or coordinator to inform other nodes about disassociation.
- Data request – used to request data from a coordinator.
- PAN ID conflict notification – transmitted when a PAN identifier conflict is detected.
- Orphan notification – used by an associated device that has lost synchronization with its coordinator.
- Beacon request – used for synchronization and to transmit superframe information.
- Coordinator realignment – used by the coordinator to reply to an orphan notification command. It is also used when PAN attributes change with the logical channel information. It can be transmitted to the whole PAN or to a single orphan device.
- GTS request – used by an associated device to request the allocation of a new guaranteed time slot (GTS) or to request the deallocation of an existing GTS from the PAN coordinator. It also defines GTS fields such as length, direction, and type.
MAC Frame Fields Configuration
You can configure MAC frame fields as well. Common fields include frame type, encryption, acknowledgement, frame pending, inter/intra PAN, addressing fields, destination and source addressing modes, sequence number, destination PAN identifier, destination MAC address, source PAN identifier, and source MAC address.
Generator Impairments
Because you must frequently make trade-offs among performance, power, and cost, it is common for ZigBee transceivers to operate with a relatively low modulation quality. Thus, testing a ZigBee receiver presents unique challenges. When performing tests, you must simulate the worst-case environment in the lab to ensure that the transceiver meets performance specifications and complies with the IEEE 802.15.4 standard. With the SeaSolve WiPAN LVSG software, you can test for interoperability by applying various impairments to simulate imperfect transmissions and challenges of the physical channel. The specific impairments you can add include memoryless nonlinearity, additive white Gaussian noise (AWGN), frequency offset, DC offset, I/Q gain imbalance, quadrature skew, and phase noise.
Memoryless Nonlinearity
Components such as a power amplifier are inherently nonlinear and introduce distortion into a transmission signal. Generally, nonlinearity is particularly problematic to modulated signals because of their constant fluctuations in amplitude. Fortunately, ZigBee devices use an OQPSK modulation scheme that is less susceptible to distortion than most modulation schemes. However, because of power requirements, ZigBee transceivers are often designed so that the power amplifier is driven almost into saturation. To illustrate this concept, Figure 9 shows a basic simulated model of a power amplifier.
Figure 9. Saturation of a Nonideal Power Amplifier
As a power amplifier approaches the point of saturation, significant distortion is often introduced to the Tx signal. Thus, receiver validation requires you to simulate this ZigBee transceiver characteristic.
Additive White Gaussian Noise
Additive white Gaussian noise (AWGN) is the most common mechanism for simulating the signal-to-noise ratio (SNR) of a Tx signal. The effect of reducing SNR is that instantaneous phase and amplitude uncertainty is applied. This is most commonly observed on a constellation plot, where you can see that AWGN causes symbol spreading (see Figure 10).

Figure 10. ZigBee Transmission with 25 dB Eb/N0
Because SNR deteriorates with transmit distance, ZigBee transmissions over a longer distance result in reduced EVM at the receiver. As illustrated in Figure 3, a higher EVM increases the probability of bit errors and reduces system performance as a whole.
Frequency Offset
Frequency offset occurs when the Tx and Rx LOs of two different devices operate at slightly different frequencies. The effect of frequency offset on an RF signal is that it produces a slight carrier offset in the baseband waveform. Typically, you can remove small carrier offsets in the baseband waveform with signal processing algorithms. Thus, this characteristic is often tested during the design validation phase by applying a slight carrier offset to the test stimulus. If not removed appropriately, frequency offset prevents the receiver from achieving carrier lock with the transmit signal.
DC Offset
DC offset is most problematic at the baseband I and Q outputs of a ZigBee transmitter. This impairment can significantly affect the quality of a modulated signal by causing carrier leakage. This increases a receiver’s EVM as well as the likelihood of a bit error. To ensure that a receiver is capable of handling DC offset appropriately, this impairment is often applied during the design validation phase.
I/Q Gain Imbalance
I/Q gain imbalance is a type of baseband impairment that affects the quality of a modulated signal. Visually, you can observe gain imbalance on a constellation plot. Figure 11 shows that the I/Q gain imbalance stretches the constellation plot in either a vertical or horizontal manner.
Figure 11. Constellation Plot with 6 dB Periodic Gain Imbalance
As Figure 11 illustrates, gain imbalance has been added in a periodic manner, which periodically stretches the constellation plot in both the horizontal and vertical axes. In Figure 11, the gain has been configured to vary by as much as 6 dB over time. Gain imbalance can be problematic in systems implementing direct upconversion to RF. It is caused by amplitude disparity between the I and Q outputs of the baseband subsystem and increases the EVM observed by the receiver.
Quadrature Skew
Quadrature skew is caused by nonexact phase of the quadrature-phase LO. In an ideal direct upconversion system, the in-phase and quadrature-phase LO components are exactly 90 degrees out of phase. However, slight deviations from the ideal value can affect the phase and amplitude of demodulated baseband waveforms. This effect is best illustrated in Figure 6 with a constellation plot. As the plot shows, returned symbols are slightly skewed from their ideal positions, resulting in an increased EVM.
Phase Noise
Phase noise is another impairment caused by LO imperfections. At a high level, you can think of phase noise as instantaneous jitter of a sinusoid. In the frequency domain, this jitter causes a “spreading” of the carrier and produces power at frequencies that are offset from the desired center frequency. This is illustrated in Figure 12.
Figure 12. Phase noise spreads the power of an LO across adjacent frequencies.
As Figure 12 illustrates, phase noise is typically measured by the power level at various frequency offsets from the carrier. While you can specify phase noise at a variety of frequency offsets, the 10 kHz offset is the most common metric of comparison between components.
By introducing jitter to the time domain of a modulated signal, phase noise introduces slight phase uncertainty to a demodulated baseband waveform. On a constellation plot, you can see phase noise by observing the spreading of symbols along the parameter of the constellation plot.
ZigBee Automated Compliance Testing
So far, you have learned about individual measurements and impairments that you can use to characterize the performance of the transmit or receive chain of a ZigBee device. However, ZigBee devices are capable of both transmit and receive (transceiver) functionality. Thus, production test of ZigBee transceivers requires testing of both capabilities in parallel. SeaSolve’s automated compliance testing solution provides a sequence of Tx and Rx tests to quickly characterize a DUT's compliance and performance in accordance with the IEEE 802.15.4 standard. This software executes many of the tests described above and produces a detailed report of the test results.
The tests provided are optimized for speed to reduce test time and are verified for their accuracy with various RF chipsets from leading manufacturers. This section does not describe these tests in detail, but the common test parameters include each of the following:
- PLL frequency test
- Tx gain test
- Spurious emission test
- Phase noise test
- I/Q measurements
- Power spectral density
- Carrier suppression test
- LO leakage
- PER and BER tests
- Adjacent/alternate channel rejections
- Maximum input power test
Conclusion
While the ZigBee standard provides an excellent mechanism for low-power communications in mesh and ad hoc networks, it also produces significant test challenges. Fortunately, SeaSolve WiPAN LVSA, LVSG, and ACT software combined with PXI instrumentation offers a highly flexible solution to this challenge. With the appropriate software and hardware, you can make a variety of Tx and Rx measurements to ensure that ZigBee devices are fully compliant with the IEEE 802.15.4 standard and interoperable with other devices.
Reader Comments | Submit a comment »
best,
but i need the explanation the concepts in
animation
-
rajeev.perumal@gmail.com
- Jul 05, 2010
Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
