Nano Vna 2.2
Nano Vna 2.2
S-A-A-2
User Guide
2020/01
UG1101 2020/01 1
Table of Contents
Table of Contents
1 - Introduction
Credits ........................................................................................................................................ 3
Relationship to the NanoVNA ................................................................................................... 3
S-A-A-2 Specifications .............................................................................................................. 4
VNA basics ................................................................................................................................. 5
2 - User interface
Main screen ................................................................................................................................ 6
Menu screen .............................................................................................................................. 8
Keypad screen ............................................................................................................................ 9
Device settings ......................................................................................................................... 10
3 - Performing measurements
Setting the measurement frequency range .............................................................................13
Calibration ................................................................................................................................ 14
Trace display ............................................................................................................................ 15
Markers .................................................................................................................................... 17
Time domain operation ............................................................................................................ 18
Recall calibration and settings ................................................................................................. 22
4 - NanoVNA-QT Software
User interface .......................................................................................................................... 24
Connecting to the device ......................................................................................................... 25
Setting sweep range and parameters ...................................................................................... 26
Calibration ................................................................................................................................ 27
Firmware Update ..................................................................................................................... 29
5 - Appendix I – Hardware architecture
6 - Appendix II – USB data interface
Protocol description ................................................................................................................. 32
Host to device command list ................................................................................................... 33
Register descriptions ............................................................................................................... 34
Register descriptions (DFU mode) .......................................................................................... 36
UG1101 2020/01 2
1 - Introduction
1 - Introduction
This user guide describes basic usage and operation of the S-A-A-2 (also recognized on the market
as NanoVNA V2).
Note: OwOComm does not manufacture or market end user products including the S-A-A-2. The
S-A-A-2 is a hardware design with supporting firmware and software designed on contract by
OwOComm and released to the public. The specifications and functionality described in this
document apply only if the design is faithfully replicated by a manufacturing vendor.
For support please contact your supplier, vendor, or distributor.
For engineering inquiries and project proposals contact [email protected] (do not
contact this address for customer support).
Credits
Portions of this user guide are derived from cho45’s “NanoVNA manual”.
https://github.com/cho45/NanoVNA-manual
This user guide is supplied under the terms of the CC BY-NC-SA 3.0 license.
UG1101 2020/01 3
1 - Introduction
S-A-A-2 Specifications
UG1101 2020/01 4
1 - Introduction
VNA basics
A Vector Network Analyzer (VNA) measures the reflection and transmission behavior of a device
under test (DUT) across a configured frequency range.
The S-A-A-2 is a two port T/R (transmission/reflection) VNA which can measure the S parameters
S11 and S21 of a two port network, or the reflection coefficient (S11) of a one port network.
Before any measurements are performed, the VNA must be calibrated. See section 3.1.Calibration
for details.
UG1101 2020/01 5
2 - User interface
2 - User interface
Main screen
3. Marker
The marker position for each trace is displayed as a small numbered triangle. The selected marker
can be moved to any of the measured points in the following ways:
• Drag a marker on the touch panel – best to use a stylus for this.
• Press and hold the JOG LEFT or JOG RIGHT buttons.
4. Calibration status
Displays the saved slot number of the calibration being used and the error correction applied.
UG1101 2020/01 6
2 - User interface
5. Reference position
Indicates the reference position of the corresponding trace. You can change the position with:
DISPLAY →SCALE →REFERENCE POSITION.
6. Marker status
The active marker that is selected and one marker that was previously active are displayed top
right.
7. Trace status
The status of each trace format and the value corresponding to the active marker are displayed.
For example, if the display is showing: CH0 LOGMAG 10dB/ 0.02dB , read it as follows:
Channel CH0 (reflection)
Format LOGMAG
Scale is 10dB
Current value is 0.02dB
For active traces, the channel name is highlighted.
8. Battery status
This is not shown on the S-A-A-2. Battery percentage is indicated by the 4 red LEDs along the left
side on the bottom of the device.
UG1101 2020/01 7
2 - User interface
Menu screen
UG1101 2020/01 8
2 - User interface
Keypad screen
UG1101 2020/01 9
2 - User interface
Device settings
The CONFIG menu contains general settings for the device:
UG1101 2020/01 10
2 - User interface
You can then test the LCD touch panel stylus tracking accuracy by selecting CONFIG → TOUCH
TEST.
A line is drawn while dragging the stylus along the touch panel. When released from the touch
panel, it returns to its original state. Repeat & save the touch screen calibration if tracking is
incorrect.
UG1101 2020/01 11
3 - Performing measurements
3 - Performing measurements
The basic measurement sequence is:
1. Set the frequency range to be measured.
Use STIMILUS → START/STOP or STIMILUS → SPAN/CENTER
2. Perform calibration (and save!)
3. Connect the Device Under Test (DUT) and measure.
UG1101 2020/01 12
3 - Performing measurements
Zero span
Zero span is a mode in which one frequency is sent continuously without frequency sweep.
Select and set STIMULUS → CW FREQ.
UG1101 2020/01 13
3 - Performing measurements
Calibration
Calibration must be performed whenever the frequency range to be measured is changed. When
calibration is activated, the left side of the screen should show “Cx” and “D”.
Changing the frequency sweep range always clears the active calibration, if any.
The calibration procedure is as follows:
1. Reset current calibration state. Select menu item CAL →RESET and then →CALIBRATE.
2. Attach a SMA coaxial cable to port 1.
3. (Optional) Attach a SMA coaxial cable to port 2.
4. Connect OPEN standard to port 1 cable and click →OPEN. Wait for menu item highlight.
5. Connect SHORT standard to port 1 cable and click →SHORT. Wait for menu item highlight.
6. Connect LOAD standard to port 1 cable and click →LOAD. Wait for menu item highlight.
7. (Optional) Connect the THRU standard between the port 1 and port 2 cable ends, and click
→THRU.
8. Click →DONE.
9. Specify the dataset number (0 to 4) and save. e.g. →SAVE 0.
Note that there is no need to wait for the plots to fully update after connecting a calibration
standard. Clicking any of the OPEN, SHORT, LOAD, THRU calibration menu items will perform a
full sweep with 2x averaging. Once the sweep is complete the corresponding menu item will
become highlighted, and you may proceed to the next calibration standard.
UG1101 2020/01 14
3 - Performing measurements
Trace display
Trace format
Although each trace can have its own displayed format, you can only change the format of the
active trace.
To assign a format, set the trace to active (see above) then select: DISPLAY →FORMAT
The description and unit of measurement of each format is as follows:
• LOGMAG : Logarithm of absolute value of measured value (dB per div)
• PHASE : Phase in the range of -180 ° to + 180 ° (90 degree default)
• DELAY : Delay (pico or nano seconds)
• SMITH : Smith Chart (Impedance scale is normalized during calibration)
• SWR : Standing Wave Ratio (can be scaled to show 1, 0.1 or 0.01 per div)
• POLAR : Polar coordinate format (Impedance scale is normalized during calibration)
UG1101 2020/01 15
3 - Performing measurements
Trace channel
The S-A-A-2 has two channels, CH0 and CH1, corresponding to ports 1 and 2.
CH0 is the S parameter S11, while CH1 is the S parameter S21.
Each trace can be set to display data from either channel.
To change the channel used by the currently active trace, select
DISPLAY →CHANNEL →CH0 REFLECT or DISPLAY →CHANNEL →CH1 THROUGH.
UG1101 2020/01 16
3 - Performing measurements
Markers
UG1101 2020/01 17
3 - Performing measurements
UG1101 2020/01 18
3 - Performing measurements
Open Short
Open Short
UG1101 2020/01 19
3 - Performing measurements
UG1101 2020/01 20
3 - Performing measurements
UG1101 2020/01 21
3 - Performing measurements
UG1101 2020/01 22
4 - NanoVNA-QT Software
4 - NanoVNA-QT Software
This chapter describes the usage of the NanoVNA-QT PC software with the S-A-A-2.
NanoVNA-QT is derived from software for the xaVNA.
Platforms supported: Linux, Windows (7+), Mac OS (10.11+)
UG1101 2020/01 23
4 - NanoVNA-QT Software
User interface
UG1101 2020/01 24
4 - NanoVNA-QT Software
UG1101 2020/01 25
4 - NanoVNA-QT Software
Settings:
• Start frequency/Stop Frequency control the sweep frequency range.
• Frequency points is the number of discrete frequency points.
• Output power is not applicable to the S-A-A-2 and the setting is ignored.
Under Show advanced settings:
• nWait is not applicable to the S-A-A-2 and the setting is ignored.
• nValues controls the number of data points per sweep point to average over. Setting a
higher averaging factor will result in proportionally lower noise and higher sweep times.
UG1101 2020/01 26
4 - NanoVNA-QT Software
Calibration
Calibration in the NanoVNA-QT UI is similar to the on-device UI.
Calibration must be performed whenever the frequency range to be measured is changed. When
calibration is activated, the label under “Current calibration” in 3 – Calibration pane will indicate
the current calibration type. “None” indicates no calibration is active.
Changing the frequency sweep range always clears the active calibration, if any.
The calibration procedure is as follows:
1. Reset current calibration. Click Clear and Clear Measurements under 3 – Calibration pane.
2. Select Calibration type. Use SOL (1 port) to correct for S11 only, and use SOLT (T/R) to
correct for S11 and S21 response. Other calibration types in the dropdown list apply to full
two port VNAs only and are not applicable to the S-A-A-2 which is a T/R VNA.
3. Attach a SMA coaxial cable to port 1.
4. (SOLT only) Attach a SMA coaxial cable to port 2.
5. Connect OPEN standard to port 1 cable and click Open. Wait for button highlight.
6. Connect SHORT standard to port 1 cable and click Short. Wait for button highlight.
7. Connect LOAD standard to port 1 cable and click Load. Wait for button highlight.
8. (SOLT only) Connect the THRU standard between the port 1 and port 2 cable ends, and click
Thru. Wait for button highlight.
9. Click Apply.
Refer to the figures in section 3.1.Calibration for how to connect the calibration standards.
Note that there is no need to wait for the plots to fully update after connecting a calibration
standard. Clicking any of the Open, Short, Load, Thru buttons will perform a full sweep with 2x
averaging. Once the sweep is complete the button will become highlighted, and you may proceed
to the next calibration standard.
To save the current calibration click Calibration > Save as… in the main menu.
To recall a saved calibration click Calibration > Load… in the main menu. Recently saved or recalled
calibrations will also be listed under the Calibration menu and can be selected directly.
Saved calibration files contain the measurements for each calibration standard. Recalling a saved
calibration file will calculate a new calibration using the old (saved) measurements and the
currently configured calibration kit parameters.
UG1101 2020/01 27
4 - NanoVNA-QT Software
Each calibration kit type can be associated with an S parameter model, or an ideal model can be
used. Clicking on the S-Parameter radio button will bring up a file chooser dialog to select the S
parameter file.
Note: these kit parameters are global and are not associated with a calibration save file. If you
modify kit parameters and proceed to recall an older calibration file, the old calibration will be re-
calculated using the newly configured kit parameters!
UG1101 2020/01 28
4 - NanoVNA-QT Software
Firmware Update
The NanoVNA-QT software has built in support for updating the firmware on the S-A-A-2.
To perform a firmware update:
1. Connect the device to a PC using a USB cable.
2. Put the device into DFU mode. This can be done from the device menu by selecting CONFIG
→DFU, and selecting RESET AND ENTER DFU. DFU mode can also be entered by holding
down the JOG LEFT button on the device while it is powered off and on.
3. The device should appear under the Device menu in NanoVNA-QT.
4. Click the device under the Device menu, for example /dev/ttyACM0.
5. You will be prompted to update the device firmware. Answer “yes” or “update firmware”.
6. You will be prompted to select a firmware raw binary file. Select the file you wish to flash.
7. Firmware update will begin and progress is shown in NanoVNA-QT.
8. If the firmware update fails or is interrupted, go to step 2 and retry.
9. After the firmware update is complete, the device will automatically reboot into the new
firmware. You can now connect to the device in NanoVNA-QT.
UG1101 2020/01 29
5 - Appendix I – Hardware architecture
COUPLER
SW_ECAL SW_TXSYNTH
Port 1 ADF4350
SYNTHESIZER
SI5351
SYNTHESIZER
SW_REFL
SW_RECV SW_RXSYNTH
AD8342
MIXER ADF4350
Port 2
SYNTHESIZER
BASEBAND GD32F303
AMPLIFIER MCU
GAIN CONTROL
The S-A-A-2 is a single switched receiver VNA. While the diagram shows only two channels
selectable by the receive mixer through SW_RECV, a third channel, the reference channel, is
provided by setting SW_ECAL to the “open circuit” position. By controlling these two switches the
receiver is able to observe reference, reflected, and thru signals.
UG1101 2020/01 30
5 - Appendix I – Hardware architecture
Signal generators
Two ADF4350 RF synthesizers, plus one Si5351, provide the stimulus and LO signals. The Si5351
covers frequencies up to 140MHz, and the rest are covered by the ADF4350s.
Directional coupler
The coupler is based on a Wheatstone bridge rearranged so that input and DUT ports are
referenced to ground. The coupled signal exists as a difference signal and is extracted by baluns.
Two stages of baluns are used to achieve the necessary common mode rejection ratio.
Receiver
The receiver consists of a AD8342 mixer and an op-amp based baseband amplifier.
The mixer downconverts the RF signal to a low but nonzero intermediate frequency (typically
12kHz). The IF signal is digitized using the built in 12 bit ADCs on the GD32 microcontroller.
Firmware on the microcontroller digitially detects the phase and magnitude of the IF, and thus RF
signal, which results in superior accuracy compared to VNAs using a phase and magnitude detector
IC that does the detection in the analog domain.
UG1101 2020/01 31
6 - Appendix II – USB data interface
Protocol description
Only the host may initiate commands by sending one or more bytes on the virtual serial port. Each
command may have a different length. There is no separator delimiting each command.
The device may not send data to the host except for replies to a host-to-device command.
The following table lists all supported commands and their byte encodings, and is applicable both
during normal operation and in DFU mode.
UG1101 2020/01 32
6 - Appendix II – USB data interface
B0 B1 B2 B3 B4 B5 Name Description
00 - - - - - NOP No operation
0d - - - - - INDICATE Device always replies with ascii ‘2’ (0x32)
10 (AA) - - - - READ Read a 1-byte register at address AA.
Reply is one byte, the read value.
11 (AA) - - - - READ2 Read a 2-byte register at address AA.
Reply is 2 bytes, the read value.
12 (AA) - - - - READ4 Read a 4-byte register at address AA.
Reply is 4 bytes, the read value.
18 (AA) (NN) - - - READFIFO Read NN values from a FIFO at address AA.
Reply is the read values in order.
Each value can be more than one byte and is
determined by the FIFO being read.
20 (AA) (XX) - - - WRITE Write XX to a 1-byte register at address AA.
There is no reply.
21 (AA) (X0) (X1) - - WRITE2 Write X0 to AA, then X1 to AA+1.
There is no reply.
22 (AA) (X0) (X1) (X2) (X3) WRITE4 Write X0..X3 to registers starting at AA.
There is no reply.
23 (AA) (X0) (X1) (X2) ... WRITE8 This command is 10 bytes in total.
Bytes 2..9 correspond to X0..X7.
Write X0..X7 to registers starting at AA.
There is no reply.
28 (AA) (NN) … WRITEFIFO Write NN bytes into a FIFO at address AA.
NN bytes of data to be written into the FIFO
should follow “NN”.
There is no reply.
UG1101 2020/01 33
6 - Appendix II – USB data interface
Register descriptions
The following table lists all registers accessible during normal operation.
All addresses are in hexadecimal.
Multi-byte integer registers are encoded in Little Endian. Lowest numbered registers contain the
least significant portions of the integer.
Remarks
sweepStartHz, sweepStepHz, and sweepPoints together set the sweep parameters of the VNA.
Writing any value to these registers will immediately terminate the on-device UI and put the device
in “USB data mode”, where the PC has full control over VNA operation.
You can not observe user entered sweep parameters (from the device UI) by reading these
registers.
Sweep is always running and can not be paused.
UG1101 2020/01 34
6 - Appendix II – USB data interface
valuesFIFO is continuously being filled with new sweep data regardless of whether it is being read.
If you wish to do on-demand sweeps, it is necessary to clear stale data before reading from the
FIFO. The FIFO can be cleared by writing (with the WRITE command) any value to the FIFO
address.
valuesFIFO returns raw values representing the in-phase and quadrature part of the measured
waves, which never have user calibration applied. You can not access the on-device user
calibrations or calibrated data over USB.
fwd0Re/fwd0Im is referred to as the reference channel. All complex values read from valuesFIFO
can be at a random phase, so you must divide (using complex division) each value by the reference
channel to get absolute phase and magnitude values.
UG1101 2020/01 35
6 - Appendix II – USB data interface
Writing to flash
The procedure to write a new firmware image to flash are as follows.
1. Connect the device to the PC over USB and put the device into DFU mode.
2. Open the virtual serial port in raw mode (platform specific).
3. Write the address you wish to start flashing from to flashWriteStart.
4. Use the WRITEFIFO command to send up to 255 bytes at a time to flashFIFO.
Each WRITEFIFO command can be followed with a INDICATE command, which will reply
with ‘2’ only after the flash operation is complete.
There is no flow control on the virtual serial port and you must limit the amount of
outstanding writes to no more than 2048 bytes.
5. (Optional) Write 0x5e to doReboot to soft reset the device.
UG1101 2020/01 36