Anda di halaman 1dari 30

IEEE 802.15.

4/ZigBee Measurements
Made Easy Using the N4010A Wireless
Connectivity Test Set

Application Note 1572

Abstract N4010A wireless connectivity one box


test set solution. The key test issues
When developing a ZigBee solution confronted by development engineers
it is essential to comprehensively will be addressed, of which the need
test the physical (PHY) RF layer. This for automated measurements is a
application note discusses the test prime example. This document seeks
requirements as specified by the IEEE to help develop an early integration of
802.15.4 standards document and a systematic automated test, which
guides the engineer towards practical could ultimately result in a faster
test procedures using the Agilent development cycle.

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

ZigBee™ is a new standard


being developed in the personal Using frequency bands at
area network section of the 868/915-MHz and the worldwide
emerging communications ISM band at 2.4 GHz, ZigBee
market. It is the only standards- devices have the capacity to
based technology that is aimed attach, exchange information
at delivering low cost and and detach, before quickly going
low power radios for wireless back to sleep to save on power.
network applications. Key areas Unlike Bluetooth® technology, The ZigBee Alliance
of interest for this technology for example, ZigBee does not
include building installation frequency hop and offers greater The ZigBee Alliance enables
and industrial sensors. This range passing small packets over interoperability, certification
is often focused in areas such larger networks. Radios operate testing, and the branding of
as lighting, security, and asset with very low duty cycles to this global open standard. It
management, but potential allow sensing and monitoring defines the network, security,
end user applications are as applications to run for years on and applications layers, which
numerous as they are varied. inexpensive batteries, whereas are positioned above the media
Such applications increasingly other technologies like Bluetooth access control (MAC) and
benefit from new low-power require main power or regular physical (PHY) layer specified
radio technology. Combined battery charging. The benefits by the IEEE 802.15.4. Analogous
with advances in digital circuit of using ZigBee devices in mesh to the Bluetooth world and
design, the reduction in size networking technology brings the Bluetooth SIG, the ZigBee
of electromechanical circuitry increased complexity into the Alliance actively facilitates
and increased interest in mesh higher levels of the protocol stack and promotes the technology,
network implementation, sensor and where often much interest providing support for developers,
networks are set to proliferate is focused. promoters, and members’
more widely in our everyday interests. There are currently
lives. Due to this focus and the fact that several hundred ZigBee Alliance
ZigBee is still in the relatively members, including Agilent
The low cost aspect is achieved early days of development, Technologies.
due to the requirements set for often the practicalities of RF
lower data rates and quality test are not fully understood or
of service. However, the mesh are not tackled effectively. This
networking capability of ZigBee concerns what is required to
ensures that networks can offer be tested, how it may be tested,
a high level of network reliability, what RF instrumentation exists
often described as being be “self- for 802.15.4/ZigBee test and
healing”. If a particular device how these questions relate to
cannot be enabled an alternative various stages of the product
route will be used. This principle lifecycle where test demands
provides a reliable and secure differ. In this application note the
structure for sensing and control importance of the physical layer
applications. is not forgotten as the basis for
delivering much of the promises
of the 802.15.4/ZigBee standard.

2
Physical Layer Test

Familiarity of the IEEE to a 32 chip sequence. This


802.15.4 specification [1] is results in a chip rate 32 times
important when preparing to the symbol rate.
test the PHY layer. It defines
the main requirements of the At 2.4 GHz ZigBee uses offset
radio addressing activation quadrature phase shift keying
and deactivation of the radio (O-QPSK) modulation. A half-sine
transceiver, energy detection reference filter is used so that
(ED), link quality indication the constellation changes from a
(LQI), channel selection, clear square to a circle and ideal state
channel assessment (CCA), and circles are moved to the I and
transmitting as well as receiving Q axes. This turns the O-QPSK
packets across the air interface. signal into a constant envelope
modulation and the O-QPSK now
Figure 2 shows the PHY and MAC resembles MSK.
layers. In the PHY layer you can
see the preamble, start of frame
sin (π t ),0 ≤ t ≤ 2Tc where Tc is the offset of the I-phase and Q-phase
delimiter, and frame length fields. p(t)= 2Tc
0, otherwise chip modulation.
At 2.4 GHz, ZigBee radios use 2
Mchips/s (62.5 ks/s*32) direct
sequencing spread spectrum
(DSSS) with each symbol mapped

Applications
ZigBee or OEM
Application profiles
Application framework
ZigBee
Network and secutiry layers
Alliance
MAC layer defined
IEEE 802.15.4
PHY layer

Figure 1. The ZigBee stack

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

Figure 2. MAC and PHY layer

3
Physical Layer Test (continued)

Data taken from a reference practice this results in improved


trace in the 89601A Vector Signal power efficiency and lowering
Analyzer (Figure 3) produced costs of integrated circuits.
by a transmitting ZigBee device
shows that the two streams are ZigBee hardware architecture
offset by half a symbol, or 1 is primarily a trade-off between
chip, as each symbol is 2 bits. It performance, cost of silicon area
also demonstrates that I and Q versus external components
transitions never occur at the and power consumption. As
same time. the market grows it is expected
that there were be a variety of
In a constellation diagram the solutions available, perhaps with
O-QPSK constant envelope a division between low cost and
modulation can be seen to limit high cost chips offering different
the phase-shift to no more than performance levels, heavily
90 degrees at a time, unlike QPSK influenced by the end application.
which can vary up to 180 degrees. For a hardware designer these
factors must be accounted for
O-QPSK modulation permits the when deciding a route towards
use of a more power efficient implementation.
and less linear RF amplifier. In

89601A trace I & Q data streams


0.8

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

Figure 3. I and Q data for O-QPSK after half-sine pulse shaping

4
Physical Layer Test (continued)

Testing challenges 1. Reference design define datasheet specifications


At the top of this chain, ZigBee for successful proliferation of
Test and measurement of the PHY chip companies are designing their design in the industry.
layer is critical in many areas their next generation of This is a continual process of
of development moving towards system on a chip (SoC) solutions. optimization for quality control,
an end product. This makes this They must ensure: automating tasks to speed
application note relevant to many investigation and free up RF
parties in the ZigBee ‘food chain’. • Conformation to specifications laboratory equipment. Providing
adequate tools to their customers
Performing comprehensive PHY • Automation for efficient is also vitally important,
layer tests will be essential if characterization of their including test and measurement
ZigBee is to fulfill its aspiration devices expertise. With a test solution
of delivering low cost, reliable such as the N4010A one box
applications in areas such as • Tight tolerances through tester and the 89601A Vector
industrial control, monitoring, and process monitoring Signal Analyzer (VSA), companies
home automation. Understanding can easily share test expertise
the test and measurements • Quality and custom developed test code.
requirements as early as possible For example, sharing of VSA test
in the development lifecycle can • Interoperability setups and chipset recordings
save both time and money. There can illustrate expected transmit
are a number of routes to final • Accurate datasheet results. Arbitrary waveforms can
hardware implementation. information be adopted by chipset customers
to eliminate a golden radio
• Provision of tools for approach to receiver testing.
customers This facilitates easy comparison,
faster problem solving and takes
Major chipset companies are a similar approach to other
producing their own reference wireless technologies such as
designs. They must accurately Bluetooth and wireless local area
characterize their chipsets and networks (WLANs).

5
Physical Layer Test (continued)

2. Custom design and expertise in wireless Summary


Customizing and optimizing communications can help de-
a chipset solution is another mystify much of the detail of the In all the above cases
potential way to progress. In this physical layer test. An example is development must be achieved
area the demands for test and the reduced complexity of a one- in the quickest possible time
measurement expertise is readily box tester approach. using equipment that can be
understood as a fast and logical automated, provide traceable
way of improving design. Similar to the chip companies, results through the lifecycle, and
automation of tests and which can be flexible and cost
3. Module design characterization is essential effective to meet the demands of
Module designers adopt the role to test for tolerances and spot wide laboratory use and business
of integrators, where they have problems both in design and pressures. Agilent’s N4010A
the opportunity to modify designs production. The challenges of Wireless Connectivity Test Set is
and produce RF modules. For high volume manufacture are an example of a one-box tester
example, they can add value to also apparent, especially when which may be adopted to address
their solution by taking away aiming to achieve lower costs and the variety of RF challenges faced
the need for sourcing many to make mass production more by many ZigBee developers that
components, a requirement even viable. work in different parts of the food
for SoC solutions. They can also chain.
choose to provide a pre-qualified 4. End product
solution and have virtually all of When RF work is virtually Whichever approach is taken,
the RF testing complete. complete, test and measurement the demands for test and
may be required for ensuring that measurement is equally
However, it is evident that many field installation is successful. important. Moreover, throughout
vendors involved with ZigBee For example, having acquired a the development cycle it is worth
are entering the RF world for module, built a custom profile, considering future test needs, for
the first time, implementing and modified the antenna, power example, moving to an automated
new technology in areas such as may need to be monitored after test approach within a chosen
lighting, consumer white goods, fitting the end device into an software environment.
safety, and security. Agilent’s industrial environment.
test and measurement approach Agilent have a long history of
designing, integrating, testing,
and certifying wireless products,
providing the measurements
required to verify that designs
meet wireless functional
specifications, operate correctly
and address unforeseen problems
around physical layer test.

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)

Other Agilent solutions provide digital modulation


analysis of ZigBee signals,
The ESA spectrum analyzer offers including EVM, offset EVM, eye
flexible mask testing and 89601A and constellation diagrams.
can also be used to extend its For signal generation, the ESG
capabilities. The PSA series of series of vector signal generators
spectrum analyzers also offers provide real time and arbitrary
flexible mask testing. However, waveform generation of IEEE
with flexible demodulation 802.15.4/ZigBee signals.
options (Option 241) it can

89600 Series PSA, ESA-E E4438C ESG N4010A Wireless P-Series,


RF Tests vector signal Series spectrum vector signal Connectivity EPM-P Series
(IEEE 802.15.4 reference [1]) software1 analyzers generator Test Set power meters

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.

Table 1. ZigBee RF tests

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)

Transmitter testing on a 802.15.4 (channel 11): which is a continuous trigger in


which the analyzer processes
For demonstration, the following 89601A basic settings for maximum the input as quickly as possible
key transmit measurements are packet length without waiting for any kind of
investigated, referencing the Range 0 dBm
triggering signal condition. It is
802.15.4 specification where possible to see a burst appearing
necessary: Frequency 2.405 GHz but only IF triggering will provide
a steady signal for investigation.
• Relative power spectral density Trigger IF triggering This is particularly important for
making consistent and reliable
• Absolute power spectral Trigger IF level 10 mV measurements. A small negative
density Trigger hold-off 20 ns
trigger delay is usually advisable
to show the full ramp of the
• Maximum transmit power Trigger delay –50 µs power within the time trace. The
span setting determines how wide
• Center frequency tolerance Span 10 MHz the signal capture requirement
is, depending on how many side
• EVM Main time length 5 ms lobes must be included. It also
Number of points 51201
has an influence on the speed
• Offset EVM of measurement. The main time
Table 2. length parameter determines the
With a DUT in the correct length of the main time record
transmitting mode, the 89601A The range setting is required and should be adjusted to show
VSA software can be used for for optimization to the expected the whole burst. By default this is
analysis. The 89601A VSA signal power into the instrument limited by the span and number
settings require adjustment to from the device. A suitable choice of frequency points. It may be
suit the particular packet being will provide good sensitivity necessary to increase the value
transmitted. In order to stress the without reducing the dynamic of the main length and so the
device appropriately it is sensible range of the analog to digital number of frequency points
to use the full packet length. converter. Frequency is the should be increased. Alternatively
For a typical ZigBee device the chosen 802.15.4 channel at the span may be adjusted.
following parameters are a good which the device is transmitting.
starting point for a transmit test Triggering defaults to free run,

10
A Guide to PHY Testing (continued)

With a suitable setup complete span used to characterize the


a ZigBee spectrum may be 2.405-GHz channel. The LO
observed. Each ZigBee channel is leakage appeared from the DUT at
separated by 5 MHz and the main 2.402-GHz. Increasing the trigger
lobe occupying around 2 MHz. level in real time meant that the
A twin view of frequency and main ZigBee signal started to
time is shown in Figure 4 with a appear again (similar to Figure 4)
burst captured within the main and a ramp observed in the main
time length that was previously time trace.
defined.
Irregularities often require
The time and frequency traces further investigation and so the
can expose lots of useful signal can be captured for post
information by fine tuning settings. processing. Using the player
For example, adjusting settings control, the area that contains the
and enabling a large trigger delay graphical slider bar represents
can show the signal before the the length of the recording. When
main ZigBee spectrum. In the a recording is played, a slider
following figures, an unexpected moves left to right to indicate the
signal appeared within the relative position in the recording.

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)

The alternative spectrogram view


in Figure 6 shows a trigger on
the LO leakage very clearly but
also the occasional ZigBee burst
captured across the span.

By advancing time using the


player controls, a power ramp
becomes apparent before
eventually being hidden from
view by the main ZigBee lobe.

Stopping the recording and


adjusting parameters revealed
the two step ‘ramp’ better on the
main time using a span of 10 MHz Figure 6. Spectrogram view
and lower resolution bandwidth
around 6 kHz.

Figure 7. Power ramp observed using 100 kHz RBW and recording
playback control

Figure 8. Power ramp


12
A Guide to PHY Testing (continued)

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.

Example demodulation settings for


maximum packet length

Format Offset QPSK

Result length 0 dBm

Symbol rate 1 MHz

Points/symbol 10

Search length 4.5 ms

Pulse search On

Table 3.

Figure 10. ZigBee power measurement

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)

Receiver testing Receiver sensitivity criteria is met. In the example


(see section 6.5.3.3 [1]) below, Agilent VEE was used to
The following key receiver The threshold input signal power control both the device and the
measurements are investigated, achieving –85 dBm or better that instrument to complete this test.
referencing the IEEE 802.15.4 yields a specified PER of < 1 percent,
specification where necessary: over which the physical service data The program set the target PER
unit (PSDU) length is 20 octets using level, the number of packets
• Receiver sensitivity at least 1000 packets and power required for test at each power
measured at antenna terminals. No level and the size of the power
• Symbol rate error tolerance interferer should be present. level decrements. The results were
then passed to a spreadsheet.
• Receiver jamming resistance For this test the N4010A’s Figure 14 demonstrates how
internal arbitrary waveform PER increased as the power level
• Maximum input level generator can be used to send dropped. In this case the PER level
packets out to the DUT, dropping was set at 100 percent to show
• Energy detection the power level until the error the breakdown in performance.

• Clear channel assessment

• Link quality indication

As with transmit measurements,


the DUT must be put into the
correct mode to receive packets.
Moreover, packet error rate (PER)
must be available from the device
to permit many of the receiver
measurements. In general, the
receiver measurements require
more in-depth knowledge of
the chipset in order to query
relevant data. The prime use
of the N4010A test set is to act Figure 13. ZigBee receiver sensitivity test
as a source and replace golden
radio type testing. The use of
its flexible arbitrary waveform
Percentage packet error rate versus N4010A transmit power level
generator is explained and the (100 packets per 0.25 dBm step)
120
benefits of this approach.
100

80 PER vs. Tx power level


Target PER
PER (%)

60

40

20

0
-96 -94 -92 -90 -88 -86 -84
Tx power (dBm)

Figure 14. PER measurements

16
A Guide to PHY Testing (continued)

Symbol rate error tolerance Alternate channel rejection Energy detection


(see section 6.6.3.5 [1]) (see section 6.7.7 [1])
The sampling rate of the The desired signal shall be a compliant The receiver energy detection
waveform played out from the 2450 MHz IEEE 802.15.4 signal of measurement is intended for use
instrument can be changed. pseudo random data, input to the by the network layer as part of the
The PER may be measured receiver at a level 3 dB above the channel selection algorithm. It is an
to determine the maximum maximum allowed receiver sensitivity. estimate of the received signal power
deviation that the receiver can In the alternate channel, an IEEE within the bandwidth of an IEEE
tolerate. 802.15.4 signal is input. The receiver 802.15.4 channel. No attempt is made
shall attain a minimum jamming to identify or decode signals on the
Receiver center frequency tolerance resistance of 30 dB with the alternate channel. The energy detection time
Often chipsets are tested with channel until error criteria is met. The shall be equal to 8 symbol periods.
signals with a small frequency test shall be performed for only one
offset from a test set and PER interfering signal at a time. The energy detect result shall be
investigated. reported as an 8 bit integer ranging
The requirement for test from 0x00 to 0xFF. The minimum
Adjacent channel rejection equipment is similar to that for energy detection value shall indicate
(see section 6.6.3.5 [1]) adjacent channel rejection. received power less than 10 dB above
The desired signal shall be a compliant the specified receiver sensitivity, and
2450 MHz IEEE 802.15.4 signal of Receiver maximum input level the range of received power spanned
pseudo random data, input to the (see section 6.7.6 [1]) by energy detection values shall be
receiver at a level 3 dB above the The receiver shall have a maximum at least 40 dB. Within this range, the
maximum allowed receiver sensitivity. input level greater than or equal to mapping from the received power in
In the adjacent channel, an IEEE –20-dBm for which the error criteria dB to energy detection value shall be
802.15.4 signal is input. The receiver is met. linear with an accuracy of ± 6dB.
shall attain a minimum jamming
resistance of 0 dB with the adjacent This is a similar test to receiver This measurement requires
channel until error criteria is met. The sensitivity except that power is detailed knowledge and access to
test shall be performed for only one being incremented while PER is device settings using the N4010A
interfering signal at a time. being measured from the device. Wireless Connectivity Test Set as
a calibrated source.
This test requires a power
splitter and another source, such
as a E4438 signal generator.
The advantage of using two
instruments is the greater
flexibility to output WLAN,
Bluetooth, and ZigBee signals.

17
A Guide to PHY Testing (continued)

minimum and maximum LQI values


Clear channel assessment Link quality indication (0x00 and 0xFF) should be associated
(see section 6.7.9 [1]) (see section 6.7.8 [1]) with the lowest and highest quality
The IEEE 802.15.4 PHY shall provide The link quality indication (LQI) IEEE 802.15.4 signals detectable by
the capability to perform clear channel measurement is a characterization the receiver, and link quality values
assessment according to at least one of the strength and/or quality of a in between should be uniformly
of the following three methods: received packet. The measurement distributed between these two limits.
may be implemented using receiver At least eight unique values of LQ shall
1. CCA Mode 1: Energy above energy detect, a signal-to-noise ratio be used.
threshold. CCA shall report a busy estimation, or a combination of these
medium upon detecting any energy methods. The use of the LQI result by In the example program used for
above the energy detect threshold. the network or application layers is not receiver sensitivity testing from
specified in this standard. before, link quality indication was
2. CCA Mode 2: Carrier sense only. also obtained. Figure 15 shows
CCA shall report a busy medium The LQI measurement shall be how link quality indication breaks
only upon the detection of a signal performed for each received packet, down as the receiver sensitivity
with the modulation and spreading and the result shall be reported as an is reached. Ideal receiver link
characteristics of IEEE 802.15.4. The integer ranging from 0x00 to 0xFF. The quality is plotted
signals may be above or below the for reference.
energy detect threshold.

3. CCA Mode 3: Carrier sense with


energy above threshold. CCA shall
Measured (includes loss) and ideal Rx link auality versus
report a busy medium only upon N4010A Tx power (100 packets per 0.25 dBm step)
the detection of a signal with
-84
the modulation and spreading
characteristics with energy above -86
the energy detect threshold.
Rx link quality (dBm)

-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)

Figure 15. Link quality indication

18
A Guide to PHY Testing (continued)

N4010A transceiver testing to Extending receiver testing


802.15.4 specification capability

Rx-to-Tx turnaround The N4010A’s internal flexible


(see section 6.7.2 [1]) arbitrary waveform generator
Rx-to-Tx turnaround time shall be (AWG or ARB) is used to setup,
measured at the air interface from the sequence and playback signals
trailing edge of the last chip (of the required for receiver testing.
last symbol) of a received packet Segment file(s) (*.wf1 extension
until the transmitter is ready to files) are individual waveforms
begin transmission of the resulting that can be played back from
acknowledgment, with a maximum volatile memory. They can be
turnaround time of 12 symbol periods. acquired in a number of ways.
The actual transmission start times are
specified by the MAC sublayer. 1. MATLAB® is a commonly
utilized tool in R&D which can
Rx-to-Tx turnaround is often create segment files to exact
calculated in software using design specifications.
higher level protocol, checking
timestamps on packets. However, 2. A practical signal may be
the N4010A test set can permit acquired from a transmitting
this test with advanced control of device. The IQ data from the
the chipset. instrument can be exported
and saved as a segment file or
Tx-to-Rx turnaround in CSV format. This permits
(see section 6.7.1 [1]) acquisition of signals from a
The Tx-to-Rx turnaround time shall be variety of devices and chipsets
measured at the air interface from the as required.
trailing edge of the last transmitted
symbol until the receiver is ready 3. Segment files from Agilent
to begin the reception of the next Signal Generators can be used
physical layer packet, with a maximum in the N4010A test set. For
time of 12 symbol periods. example, 89601A VSA software
and a N4010A can digitize
See the previous test. signals from a device to make
recordings. Playback can then
be configured using an E4438
as a source. The subsequent
files generated in the
E4438 may be retrieved and
downloaded to the N4010A.

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

• Delete waveform files

• Specify playback settings


• Output power (dBm)
• Frequency (GHz)
• Sample rate (MHz)
• Continuous
• Triggered

• Playback waveform files

Figure 16. N4010A Utility playback and I/Q capture

20
N4010A Automated Measurements

Automated transmitter testing Macro automation different procedures and


Macros let you automate a series routines. It provides a visual
The 89601A VSA software allows of manual operations into a representation of how the
the test engineer to experiment single command. All 89600-series measurements are acquired.
and test with a high degree of products use VBScript for their For example, it could be the first
configurability, investigating macro programming language. time the test engineer combines
problems, improving design and VBScript is a popular scripting external software automating
understanding test parameters language based on a subset of the device (to put it into the
for transmit testing. With the Visual Basic® programming appropriate transmit states)
experience this leads to improved language. 89601A has all the tools with test results. This then allows
efficiency in test by acquiring required to record, save, run, fine-tuning of test automation
an understanding of relevant recall, and edit macros. Editing based on preliminary manual
measurement parameters. The can be carried out within the testing and evaluation.
benefits of using setups and program or using an external
recordings is also understood and code editor of your choice. The next stage in automation
the next logical step is to build on is to develop software that
them using macro functionality. This kind of automation integrates device control with test
within the 89600 VSA software characterization together more
environment provides an closely and within the realms of
excellent basis for trying out a test plan.

Figure 17. ZigBee Tx demodulation setup using macros N4010A Utility


playback and I/Q capture

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.

Figure 18. Agilent VEE ZigBee automated transmit


measurement example

22
N4010A Automated Measurements (continued)

Such results can be stored and Automated receiver testing


processed in relation to pass/fail
criteria according to the IEEE Automated receiver testing has
specification, or, for example, already been demonstrated with
compared with previous data receiver sensitivity (see Figure
acquired through an extensive 13) and with LQI. Communication
process monitoring project. Often with the N4010A test set can
this kind of testing provides a be achieved using direct SCPI
better idea of what components commands or .NET commands
may be failing, or, the variation sets using driver-based software.
in results compared to datasheet The instrument is equipped with
specifications. By timing the GPIB, USB 2.0, and TCP-IP LAN
measurements, the program interfaces. PER is measured
provides some indicative test from devices using manufacturer
time results. firmware and the chosen
software environment provides
It is also possible to display the logic to sequence test and
89601A VSA software as the determine pass/fail criteria.
program executes. In the same
way macros may be observed as As discussed, eliminating a
they run, this program can set golden radio approach to test
the VSA to be visible, providing offer a variety of advantages.
the user with the chance to verify Configuration of waveforms in
the correct operation of the the instrument brings flexibility
measurements. and consistency to test, with the
N4010A test set offering a variety
For example pseudo code for of interfaces for communication.
making measurements please Test speed can be increased by
see Appendix A: 89601A reducing time spent configuring
Programming Pseudo Code. a device and waiting on multiple
packet transmission. The N4010A
offers more advanced triggering
and playback of waveforms
in sequences.

23
Agilent Results Traceability

Since this application note PSA settings


centers upon Agilent’s one box
test approach, a comparison is Modulation format OQPSK
conducive to highlight its benefits Averaging Off
and flexibility. Further, it also
demonstrates synergy between Meas filter No filter
Agilent’s solutions and how many
different individual products Average nos N/A
can be effective for doing RF
measurements, troubleshooting, Ref filter Half sine
improving performance, and Average mode Repeat
understanding compatibility.
Alpha/BT 0.22
The following results are a
comparison between the N4010A Trace average type RMS
one-box tester used with 89601A
VSA software and a PSA with Symbol rate 1 MHz
full IFBW (10-MHz). PSA settings FFT window type Flat top
were as shown in Table 4.
Meas interval 1000 symbols

Trig source RF burst

IF BW 10 MHz

Carrier lock Normal

IF bandwidth mode Manual

Sync RF amplitude

EQ filter Off

Burst search –20 dB


threshold

EQ filter length 5

Peak burst trigger –20 dB


setup

EQ convergence 1

Search length 5 ms

EQ hold Off

Sync word length 10 sym

Sync pattern N/A

Sync offset 0 sym

Table 4.

24
Agilent Results Traceability (continued)

The waveform used was initially


formed from a capture using
89601A VSA software and the
N4010A test set. The results were
then based on playback using the
N4010A as a source.

The following figures show the


results from the PSA spectrum
analyzer.

Figure 19. PSA settings screenshot

Figure 20. PSA demodulation results Figure 21. PSA demodulation results

25
Agilent Results Traceability (continued)

Figure 22 shows the results


obtained using the N4010A test
set and 89601A software.

Table 5 summarizes the results


for direct comparison and
demonstrates dependable results
from both instruments. With
no averaging employed and
accounting for the wideband
PSA measuring over the signal’s
sidebands, results indicate a high
level of consistency. The delta in
results certainly does not exceed
what may be obtained over
individual measurements and
drifting signal characteristics.
Figure 22. 89601A VSA software illustrating ZigBee 2.4 GHz
demodulation results

Summary of N4010A Wireless Connectivity Test Set & 89601A VSA versus
PSA demodulation results

Measurement PSA N4010A & 89601A

Offset EVM (%) 6.43 6.2796

RMS EVM (%) 15.7 15.466

Peak EVM (%) 45.50 at sym 832 44.259 at sym 834

RMS mag error (%) 4.04 3.9758

Peak mag error (%) 9.05 at sym 790 9.4387 at sym 792

RMS phase error (º) 12.3 12.118

Peak phase error (º) –36.17 at sym 832 –35.043 at sym 834

Freq Error (kHz) 46.86 46.915

IQ offset (dB) –23.28 –23.296

Quadrature skew (º) –13.10 –13.545

IQ gain imbalance (dB) –0.71 –0.58

Rho 0.95116 0.94829

RF power (dBm) –9.54 –9.58

Table 5.

26
Conclusion

The N4010A Wireless


Connectivity Test Set test set For a full suite of systematic This combination of features
quickly ensures standards- transmit and receiver automated results in an easier and more
compliance design performance measurements, the 89601A Vector understandable approach to
for ZigBee RF physical layer Signal Analyzer, the N4010A ZigBee test software development,
testing through instrument, DUT control, and addressing the challenges faced
use of powerful signal analysis DUT packet error rate output in automating key measurements
capabilities using the 89601A must be developed together in for faster device and design
vector signal analyzer software. a software environment. These characterization of the IEEE
The key benefits of the solution elements can then be brought 802.15.4 RF physical layer. This
presented are as follows: together in a test plan. application note has demonstrated
how ZigBee developers can tackle
• Get designs to market quickly 89601A COM API allows the challenges of RF more readily,
integration of transmit automated primarily for R&D and integration
• The only one box test available test into a variety of software stages. This is particularly
environments. Using SCPI relevant as the practicalities of RF
• Integrates a calibrated and .NET driver-based control test have not been fully realized
wideband analyzer and source with the N4010A test set over by some ZigBee developers as
to replace golden radio/node GPIB, USB 2.0, or TCP-IP LAN they contend with the difficulties
test methodology permits receiver-automated test of higher level protocol. It is also
development, controlling the significant for those interested
• Spend less time on calibration N4010A’s integrated vector signal parties anticipating growth and
generator. Custom designed adoption of ZigBee technology.
• Powerful demodulation waveforms, acquiring practical A good base in RF PHY test
capability signal capture, and management knowledge and equipment is
of stored AWG waveforms extends required in order to understand
• Consistent results moving test possibilities. and draft future plans towards
through the test lifecycle Support for existing emerging automated production test,
communication signal formats similar to what has been seen
• Ability to test burst signals for offers further potential. with other emerging technologies.
more real-life stressing of the
device under test

• Extensible measuring tool that


can include Bluetooth and
WLAN formats

• Reduce overall cost of test

• Flexible test environment

References

[1] IEEE Standard 802.15.4-2003

27
Appendix A

89601A Programming Pseudo Code /**** declare variables ****/

This pseudo code provides set pVsaApp = CreateObject("AgtVsaVector.Application");


guidance on how to obtain // creates the object pVsaStat referencing the AgtVsaVector library
measurements. Exact syntax
set pVsaStat = pVsaApp.Measurement.Status;
will vary depending on the // create measurement status
software environment.
pVsaApp.Visible = VSA_visible;
// good to start off with the VSA visible to configure settings with expected DUT output

/**** setup ****/

// define basic settings


pVsaApp.Measurement.Inputs.InpChannels(1).Range = .316227766016838; pVsaApp.
Measurement.Inputs.Trigger.Channel = 1;
pVsaApp.Measurement.Inputs.Trigger.Style = vsaTrigStyleMagLevel; pVsaApp.
Measurement.Inputs.Trigger.MagLevel = .005;
pVsaApp.Measurement.Frequency.Span = 5000000;
pVsaApp.Measurement.Frequency.ResBW = 100000;
pVsaApp.Measurement.Frequency.Points = 3201;

pVsaApp.Measurement.DemodConfig = vsaMeasDemodCnfDigital;
// digital demod

pVsaApp.Measurement.DigDemod.SetStandard(vsaDigDemStaZigBee2450);
// use ZigBee standard Offset OQPSK

// setup the display if required


pVsaApp.Display.Traces.Layout = vsaTrcLytGrid2x3;
pVsaApp.Display.Traces(3).DataName = "Search Time1";
pVsaApp.Display.Traces(5).Active = True;
pVsaApp.Display.Traces(5).DataName = "IQ Meas Time1";
pVsaApp.Display.Traces(5).Format = vsaTrcFmtEyeI;
pVsaApp.Display.Traces(6).Active = True;
pVsaApp.Display.Traces(6).DataName = "IQ Meas Time1";
pVsaApp.Display.Traces(6).Format = vsaTrcFmtEyeQ;

.
… setup DUT to transmit at appropriate frequency …
.

28
Appendix A (continued)

/**** Do measurements ****/

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;

}

/**** return results ****/

// all results below are obtained after demodulation


EVM = pVsaApp.Display.Traces(4).RawDataDemodInfo(vsaTrcDemInfoEVMRms);
EVM_PEAK = pVsaApp.Display.Traces(4).RawDataDemodInfo(vsaTrcDemInfoEVMPeakRm
s);
OEVM = pVsaApp.Display.Traces(4).RawDataDemodInfo(vsaTrcDemInfoOffsetEVMRms);
OEVM_PEAK = pVsaApp.Display.Traces(4).RawDataDemodInfo(vsaTrcDemInfoOffsetEVMP
eak);
FREQ_ERR = pVsaApp.Display.Traces(4).RawDataDemodInfo(vsaTrcDemInfoFreqErr);

// 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

For more information on Agilent Technolo-


Agilent Email Updates gies’ products, applications or services,
Remove all doubt please contact your local Agilent office.
www.agilent.com/find/emailupdates The complete list is available at:
Get the latest information on the Our repair and calibration services
will get your equipment back to you, www.agilent.com/find/contactus
products and applications you select.
performing like new, when prom-
ised. You will get full value out of Americas
your Agilent equipment through- Canada (877) 894-4414
Agilent Direct
out its lifetime. Your equipment Latin America 305 269 7500
www.agilent.com/find/agilentdirect will be serviced by Agilent-trained United States (800) 829-4444
Quickly choose and use your test technicians using the latest factory
equipment solutions with confidence. calibration procedures, automated Asia Pacific
Australia 1 800 629 485
repair diagnostics and genuine parts.
China 800 810 0189
You will always have the utmost
Hong Kong 800 938 693
confidence in your measurements.
India 1 800 112 929
For information regarding self main- Japan 0120 (421) 345
www.agilent.com/find/open tenance of this product, please Korea 080 769 0800
Agilent Open simplifies the process contact your Agilent office. Malaysia 1 800 888 848
of connecting and programming Singapore 1 800 375 8100
test systems to help engineers Agilent offers a wide range of ad- Taiwan 0800 047 866
design, validate and manufacture ditional expert test and measure- Thailand 1 800 226 008
electronic products. Agilent offers ment services for your equipment,
open connectivity for a broad range including initial start-up assistance, Europe & Middle East
of system-ready instruments, open onsite education and training, as Austria 01 36027 71571
industry software, PC-standard I/O well as design, system integration, Belgium 32 (0) 2 404 93 40
and global support, which are and project management. Denmark 45 70 13 15 15
combined to more easily integrate Finland 358 (0) 10 855 2100
test system development. For more information on repair and France 0825 010 700
calibration services, go to: Germany 07031 464 6333
Ireland 1890 924 204
www.agilent.com/find/removealldoubt Israel 972-3-9288-504/544
Italy 39 02 92 60 8484
www.lxistandard.org Netherlands 31 (0) 20 547 2111
LXI is the LAN-based successor to Spain 34 (91) 631 3300
GPIB, providing faster, more efficient Sweden 0200-88 22 55
connectivity. Agilent is a founding Switzerland 0800 80 53 53
member of the LXI consortium. United Kingdom 44 (0) 118 9276201
Other European Countries:
www.agilent.com/find/contactus
Revised: October 1, 2008

Product specifications and descriptions


in this document subject to change
without notice.

© Agilent Technologies, Inc. 2009


Printed in USA, August 21, 2009
5989-4746EN

Anda mungkin juga menyukai