4/ZigBee Measurements
Made Easy Using the N4010A Wireless
Connectivity Test Set
Table of Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
The ZigBee Alliance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Physical Layer Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Testing challenges . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
N4010A Wireless Connectivity Test Set Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7
N4010A Wireless Connectivity Test Set and 89601A VSA software combination . . . . . . . . . . . . 7
Other Agilent solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
A Guide to PHY Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
Transmitter testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Receiver testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
N4010A transceiver testing to 802.15.4 specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Extending receiver testing capability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
N4010A Automated Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21
Automated transmitter testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Automated receiver testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Agilent Results Traceability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24
Conclusion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27
Appendix A . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28
89601A programming pseudo code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Support, Services, and Assistance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30
Introduction
2
Physical Layer Test
Applications
ZigBee or OEM
Application profiles
Application framework
ZigBee
Network and secutiry layers
Alliance
MAC layer defined
IEEE 802.15.4
PHY layer
Octets 2 1 4 to 20 n 2
Data
Frame Address
MAC sublayer sequence Data payload FCS
control number information
Octets 4 1 1 5+(4 to 20) + n
State of
PHY layer Preamble frame Frame
sequence delimiter length
3
Physical Layer Test (continued)
0.6
0.4
0.2
Volts
0
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
51
1
3
5
7
9
-0.2
-0.4
-0.6
-0.8
Time
4
Physical Layer Test (continued)
5
Physical Layer Test (continued)
6
N4010A Wireless Connectivity Test Set Overview
The N4010A test set is the the need for a golden radio is and 89601A Option 300 enables
industry standard instrument for eliminated. Option 104 allows the this functionality with I/O
emerging communications and user to download and encrypt connectivity.
has been developed to address new arbitrary files to the N4010A
R&D, integration and verification, to offer additional benefits for The 89601A VSA software is a
and manufacturing, providing receiver testing. The ability of this PC-based package designed to
traceable measurements from is discussed in more detail measure the RF and modulation
R&D to production environments. in receiver testing. The flexible quality of most digitally
It provides an alternative solution multi-format N4010A test set can modulated signals. Its large array
to separate spectrum analyzers, also include Bluetooth and WLAN of demodulators, filters, displays,
power meters, power sensors, formats, helping to reduce the and analysis tools make it
the golden radio, and other test cost of test equipment ownership. ideally suited for evaluating and
system components. A one-box troubleshooting modulated signals
test set approach often speeds N4010A Wireless Connectivity in the R&D lab. For ZigBee, the
measurements and improves Test Set and 89601A VSA package contains demodulation
throughput. software combination presets for each of the three
frequency bands. The software
The N4010A with Options also permits measurements
As shown throughout this
102/103 integrates a wide beyond R&D using COM API
application note, the full range
bandwidth signal analyzer and a Active X programming.
of ZigBee related results are
vector signal generator into one
obtainable from the N4010A
test component. The wideband 89601A Option AYA provides the
when used in association with
(40 MHz digitizer) signal analyzer following analysis tools required
the 89601A vector signal analyzer
captures complete ZigBee to make ZigBee measurements
software. The N4010A measuring
signal bursts for transmitter in the 868, 915, and 2450 MHz
receiver functions as a generic
measurements, such as error bands. It contains three standard
digitizer to provide data to
vector magnitude (EVM). The presets for all three bands
the PC-based measurement
integrated vector signal generator and the half sine filter for the
application 89601A over GPIB,
emulates ZigBee signals for 2450-MHz band.
LAN, or USB. N4010A Option 110
receiver measurements so
7
N4010A Wireless Connectivity Test Set Overview (continued)
Transmitter tests
Output power (6.7.5) ■ ■ ■ ■
Power rise/fall ■ ■ ■ ■
Spectrum PSD mask (6.5.3.1) ■7 ■ ■
Transmission spurious (6.1.5) ■
Center frequency tolerance (6.7.4) ■ ■ ■
Constellation error ■ ■ ■
Error vector magnitude (6.7.3) ■ ■3 ■3
Receiver tests
Symbol rate error tolerance ■5 ■5
Sensitivity (6.5.3.3) ■5 ■5
Max input level (6.7.6) ■5 ■5
Jamming resistance (6.5.3.4) ■2 ■2
Energy detect6 (6.7.7) ■5 ■5
Link quality indication6 (6.7.8) ■5 ■5
Transceiver tests
Out-of-band spurious emission ■
Tx-Rx/Rx-Tx turnround4 (6.7.1, 6.7.2) ■ ■ ■
1. The software can be used with a variety of digitizers including, ESA-E and PSA Series spectrum analyzers, N4010A wireless connectivity test set, VXI, oscilloscopes, and logic
analyzers.
2. Requires a second source (e.g. N4010A or E4438) outputting a ZigBee signal waveform file. Such a file can be either user-designed (e.g. MATLAB) or created with IQ data
capture from a real DUT (e.g. use N4010A with 89600 Series VSA software to view and capture signal, save a recording, and then download to the N4010A for playback).
3. Demodulation measurements using the ESA-E or N4010A requires the use of 89600 Series VSA software. PSA only requires Option 241.
4. This test may require specific test modes. An oscilloscope such as the 54800 Series Infiniium may be required.
5. Requires a user-designed waveform file or one created with IQ data capture from a real DUT. The E4438C may be used to create a real-time signal from a baseband signal.
6. Link quality indication, energy detect, and clear channel assessment tests may be conducted if the required test modes are available.
7. Capture a complete burst from the DUT. Use 100 kHz Gaussian filter with free run trigger and continuous peak hold to give evaluation of the spectrum as stated in
the specification.
8
A Guide to PHY Testing
Before commencing a test plan, technology and rapidly evolving to use full digital demodulation
it is important to acquire and chipset revisions. Making features immediately. While
understand control of the measurements in a relatively the demodulation features of
ZigBee device under test well defined sequence reduces the 89601A VSA software are
(DUT). Depending upon testing the influence of setup conditions extremely insightful, working
requirements and level of and ensures a good appreciation with both the time and
expertise, this may simply require of what state the DUT is in. The frequency trace will yield a
communication with the DUT 89601A VSA software makes good appreciation of setup and
through software provided by the test and measurement more measurement errors. This verifies
manufacturer. However, testing accessible with interfacing that the basic principles are
is very often more specific. For on a PC. However, it is a very in place. Only then is it
example, DUT control may need powerful and configurable recommended to complete
to be customized with a high package so it does make sense demodulation. This stage of
level of control over memory to change only one variable analysis provides insight into
register settings to emulate device at a time, saving setups and signal quality, such as Error
states, or an antenna design signals as testing progresses. For Vector Magnitude (EVM),
requires optimization. Agilent example, a methodical approach based on an understanding of
has been working with major when working with 89601A measurement setup such as
chipset manufacturers in order to VSA software should help to triggering. Finally, it may be
understand the elements of test understand the use of span, necessary to move on to make
more fully. triggering, and burst parameters. more specific and advanced
By doing so, this forms a basis measurements. This may include
In terms of making effective for more advanced setups, often additional investigation using
measurements, it is generally exposing problems at the earliest the 89601A VSA software but
a good idea to have a well- stage of analysis. Moreover, also using external equipment,
organized measurement saved settings will allow or alternatively, the N4010A
approach. future replication. interacting with other devices.
This applies to any test and A final and critical last step is to
measurement but perhaps more so Remember that it is not necessary replicate key measurements in an
with emerging communications automated manner.
9
A Guide to PHY Testing (continued)
10
A Guide to PHY Testing (continued)
Figure 4. 89601A VSA showing ZigBee spectrum and time trace Figure 5. Device LO leakage captured as a recording
11
A Guide to PHY Testing (continued)
Figure 7. Power ramp observed using 100 kHz RBW and recording
playback control
Having introduced frequency and a full burst recorded, a free run center frequency and the centroid
time domain analysis briefly, a trigger and continuous peak hold frequency) of –17.1 kHz.
progression can be made onto allows evaluation of the spectrum.
the IEEE 802.15.4 specified Transmit absolute power
measurements. In Figure 9, the three light spectral density (PSD) mask
gray shaded areas indicate the (see section 6.5.3.1 [1])
Transmit relative power adjacent channels specified in The transmitted spectral products
spectral density (PSD) mask the ACP measurement tool. The at frequency f shall be less than
(see section 6.5.3.1 [1]) reference channel is centered the absolute limit of –30-dBm with
The transmitted spectral products at at the reference frequency with |f – fc| > 3.5-MHz measured using a
frequency f shall be less than –20 dB, 1-MHz bandwidth. The upper and 100-kHz resolution bandwidth.
where the reference level shall be lower channels are also set with
the highest average spectral power a bandwidth of 1-MHz and offset The lines visible in Figure 9 are
measured within ±1 MHz of the by 4-MHz. The results show that limits which determine pass
carrier frequency (fc ), with |f – fc| the upper and lower adjacent and fail criteria. They are set at
> 3.5 MHz, measured using a 100 kHz channels are –34.0 and –34.3-dB –30-dBm with an offset of ±4-MHz
resolution bandwidth. respectively, referencing the from the center frequency. The
center channel. results show the frequency and
Limit lines provide pass and delta of the point closest to
fail information based on a The occupied bandwidth marker the limit. The other limit lines
predefined mask. Adjacent (OBW) shaded in dark gray shows observed are used to set a margin
channel power (ACP) tools where a specified percentage of line offset from the mask line
provide the ratio of power the power lay on the trace, in this and can be used as soft pass/fail
measured in adjacent channels case 99 percent. The OBW marker limit testing. You can see that the
relative to the power in the shows an occupied bandwidth device passed the absolute test by
reference channel. A combination of 2.632 MHz, a centroid (or mid- –9-dB on lower frequencies and
of these functions can provide point) frequency of 2.4050-GHz, –13-dB on the higher frequencies.
more detailed information about and an offset frequency
the spectrum from a device. With (difference between the specified
Figure 9. Transmit relative and absolute power spectral density test example
13
A Guide to PHY Testing (continued)
Minimum transmit power Transmit center frequency tolerance ZigBee signals is to use the
(see section 6.7.5) (see section 6.7.4 [1]) ZigBee preset provided. Switch
Transmit power must be equal to or Transmit center frequency tolerance digital demodulation under the
greater than –3 dBm. shall be a maximum of ±40 ppm. ‘MeasSetup’ menu, then choose
‘Demod Properties’, choosing the
The N4010A signal analyzer is Center frequency tolerance can ‘ZigBee 2450 MHz’ preset under
specified from +23 dBm down to be determined using a bursted the ‘Preset to Standard’ option.
–70 dBm. Power measurements signal (similar to the tests above) The preset will set the symbol
are easily obtained from 89601A or using a unmodulated signal. rate at half the chip rate to 1000
VSA software by using band For an unmodulated signal, symbols per second. The symbol
power markers on the time FM demodulation and auto rate is the frequency of the I (or
domain view across the burst. carrier frequency may be used. Q) clock, not twice the frequency
Auto carrier frequency has the sometimes associated with the I
Figure 10 shows a transmit power advantage of ensuring readings to Q clock frequency. The result
of approximately –10 dBm from are consistent, as opposed to length is the number of symbols
a device using the band power using a peak marker search, that the analyzer will display
markers. Time markers show the for example. Once selected, the and defaults to 1001 symbols.
burst is about 4 ms long with analyzer uses an algorithm to The choice of 1001 symbols has
markers offset by 24 dB. estimate the carrier frequency relevance when discussing the
and is calculated independently measurement of offset EVM. The
Maximum transmit power for each time record. Filter tab shows that the preset
The maximum transmit power of loads the reference half sine filter
the device is limited by regulatory However, non-bursted signals for measurements. Under the
bodies. As before, band power are not representative of how Search tab the search length of a
markers can be used to determine the device will work in the real burst may be adjusted to lock to
power levels. world. A quick way to demodulate the full burst.
Points/symbol 10
Pulse search On
Table 3.
14
A Guide to PHY Testing (continued)
The preset presents a suite of signal corresponding to the Both the RMS and peak values
measurements and each trace measured signal, computing are provided for both EVM and
window can be configured. the error vector which is the offset EVM.
measured value minus the
The ‘Symbol Table/Error reference. EVM is the RMS level In the results previously, the
Summary’ trace can be used to of the error vector computed at device has an EVM value of 5.4
display the center frequency each symbol time. EVM spectrum percent and a peak of 17 percent
offset. and time traces may be observed. at symbol 669. The offset EVM
value is 2.5 percent with a peak of
The frequency tolerance is Offset EVM 4 percent occurring at symbol 54.
easily calculated by checking the Offset EVM is a special value
frequency error in the table and computed only for O-QPSK Additional information
referencing the current channel demodulation. It is similar to Figure 12 shows that the symbol
in use. Here we have a tolerance EVM except that it is computed table/error summary displays a
of approximately 0.76 ppm. by combining the measured I part variety of different parameters.
at the start of each symbol, and It also includes magnitude and
EVM (see section 6.7.3 [1]) the Q part at the middle of each phase error (which may be
An IEEE 802.15.4 transmitter shall have symbol, so that there is a single graphed as required), IQ offset,
EVM values of less than 35 percent complex value for each symbol rho, quadrature error, and gain
when measured for 1000 chips. time. The analyzer does not use imbalance. Also of use are the
the last half of the last O-QPSK traces of IQ phase error, PDF,
EVM is obtained from the symbol in the result length and so CCDF, and reference time.
symbol table/error summary that is why the result length from
trace as above. It is computed by before was set at 1001 symbols.
calculating the ideal reference
Figure 11. 89601A VSA software ZigBee demodulation Figure 12. Basic O-QPSK symbol table/error summary
15
A Guide to PHY Testing (continued)
60
40
20
0
-96 -94 -92 -90 -88 -86 -84
Tx power (dBm)
16
A Guide to PHY Testing (continued)
17
A Guide to PHY Testing (continued)
-88
Similar to the energy detect Measured Rx link quality
versus Tx power level
test, this requires the retrieval -90
of energy detect data from the Ideal Rx link quality
device. The N4010A test set acts -92 versus Tx power level
as a source.
-94
-96
-96 -94 -92 -90 -88 -86 -84
Tx power (dBm)
18
A Guide to PHY Testing (continued)
19
A Guide to PHY Testing (continued)
Management of your AWG files • Specify IQ data instrument and similarly ZigBee testing can
is aided by the N4010A utility, a settings benefit with the correct test setup.
PC-based software application • Frequency (GHz)
that works in a complementary • Input power (dBm) With the ability to capture IQ
manner with the N4010A data from the instrument using
• Acquisition time (ms)
test set. Using the N4010A’s the N4010A Utility software,
remote command set, its main • Trigger holdoff (ms) the use of 89601A to make
functionality is to provide the • Trigger delay (ms) recordings, and the ability to
ability to download, manage • External integrate
waveform files and configure • Free run the N4010A with MATLAB
playback settings. As indicated • IF magnitude applications, there are a variety
above, it also permits extraction of ways of which IQ data may
• Trigger level
and saving of IQ data. The be edited. For example, data
software provides the following can be impaired to make
• Extract and save IQ data
features: additional receiver sensitivity
measurements. Additionally,
The N4010A also supports
• Download waveform files ‘perfect’ signals may be created
sequence file(s) (*.seq extension
by extracting reference IQ
files) which are held within
• Save waveform files data from 89601A based on a
non-volatile memory. A simple
to computer practical device recordings (like
sequence file can play the same
the data plotted in Figure 3).
segment file 0 to 65535 times and
• List the contents of volatile These waveforms provide further
the DUT and DUT software used
and non-volatile memory comparative testing opportunities
to calculate PER. In addition, a
to stress devices in different ways.
complex sequence file can play
• Display volatile and non-volatile
different segment files in any
free memory space Receiver tests can be extended
order or number 0 to 65535
by using WLAN AWG waveforms.
times. For WLAN testing this
• Copy waveform files from The IEEE 802.15.4 specification
is seen as a very useful feature
volatile to non-volatile memory only requires a ZigBee signal as
an interferer.
• Copy waveform files from non-
volatile to volatile memory
20
N4010A Automated Measurements
21
N4010A Automated Measurements (continued)
Software development for automation macro and utilize the result as requirements for carrying out a
The 89601A VSA provides opposed to using the COM API number of tests. This includes
an application programming reference help for every simple defining status flags to determine
interface to its component task. Further, programs can be the progression of measurements
object model, or COM API. used to run macros already in within VEE. The program
Measurement, computational, and use and make use of existing acquires user input to decide
display objects may be accessed setup files. what tests are required and on
to control measurement setup, which IEEE 802.15.4 channel(s).
acquire results, and integrate As discussed above, the step to The device can be set into the
into test plans. Exposed objects custom test development in a correct transmitting state by
are accessible to any application, chosen software environment is communication through a serial
programming tool, or language not a great leap. As an example link. The DUT itself requires
that implements automation. of the possibilities, the following setup to define the channel for
Examples are Agilent VEE, example program was developed transmission, the frame length,
LabVIEW, Visual Basic, and using Agilent’s graphical the payload data, the number of
Visual C++®. programming language Visual repetitions, and the gap between
Engineering Environment (VEE) each. Once complete, the program
If macros have been used prior in Figure 18. executes each measurement,
to the development of custom waits for completion, transfers
software, much of the code may The program begins by starting data to the example program,
be leveraged. In some instances the 89600 VSA software accesses this data, and returns
it is in fact quicker to record a and setting it up with the the results to the screen.
22
N4010A Automated Measurements (continued)
23
Agilent Results Traceability
IF BW 10 MHz
Sync RF amplitude
EQ filter Off
EQ filter length 5
EQ convergence 1
Search length 5 ms
EQ hold Off
Table 4.
24
Agilent Results Traceability (continued)
Figure 20. PSA demodulation results Figure 21. PSA demodulation results
25
Agilent Results Traceability (continued)
Summary of N4010A Wireless Connectivity Test Set & 89601A VSA versus
PSA demodulation results
Peak mag error (%) 9.05 at sym 790 9.4387 at sym 792
Peak phase error (º) –36.17 at sym 832 –35.043 at sym 834
Table 5.
26
Conclusion
References
27
Appendix A
pVsaApp.Measurement.DemodConfig = vsaMeasDemodCnfDigital;
// digital demod
pVsaApp.Measurement.DigDemod.SetStandard(vsaDigDemStaZigBee2450);
// use ZigBee standard Offset OQPSK
.
… setup DUT to transmit at appropriate frequency …
.
28
Appendix A (continued)
pVsaApp.Measurement.Continuous = False;
// single measurement
pVsaApp.Measurement.Pause();
pVsaStat.PositiveMask = vsaStatusBitMeasDone;
eStat = pVsaStat.PositiveEventSum;
// clear previous events
pVsaApp.Measurement.Start();
// start measurement
if (bitAnd(pVsaStat.PositiveEventSum, saStatusBitMeasDone)==vsaStatusBitMeasDone)
// wait for completion
{
…
Break;
…
}
// spectrum dump
SPECTRUM_X = pVsaApp.Display.Traces.Item(2).Data(4, vsaTrcDataX, TRUE);
// get x data for trace;
SPECTRUM_Y = pVsaApp.Display.Traces.Item(2).Data(4, vsaTrcDataY, TRUE);
// get y data for trace;
POWER = pVsaApp.Display.Traces.Item(3).Marker.BandPowerResult;
pVsaApp.Quit();
// dispose of application
Bluetooth® and the Bluetooth logos are registered trademarks owned by Bluetooth SIG, Ind., U.S.A. and licensed to Agilent Technologies, Inc.
MATLAB® is a U.S. registered trademark of Math Works, Inc.
Visual C++® and Visual Basic® are U.S. registered trademarks of Microsoft Corporation.
29
www.agilent.com