Author Topic: NanoVNA Custom Software  (Read 527026 times)

0 Members and 10 Guests are viewing this topic.

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1525 on: January 10, 2022, 05:10:17 pm »
Thank you for the explication. :-+
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1526 on: January 10, 2022, 11:43:31 pm »
I attempted to carve out a simple bandpass stub filter with a center freq of 6.4GHz just to see if the Lite would show anything reasonable.  Shown without any calibration or normalization.   Looks almost too good.   

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1527 on: January 11, 2022, 10:25:27 pm »
On the V.3, there is the possibility of averaging? I see it on the screenshot. I use the Lite-VNA with PC, my interest is to get maximum function on the computer, portability is not in my interest. The main interest characterizes filters, stub, and passive components.
 I get some line Stretcher from Hirose I like to learn to use I don't find a lot of information on the application, they sed can use for impedance adapter, phase shift etc. but not practical examples of application.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1528 on: January 11, 2022, 10:56:40 pm »
I mentioned the average feature here:
https://www.eevblog.com/forum/rf-microwave/nanovna-custom-software/msg3895409/#msg3895409

Asking a practical use for a phase trimmer may be like asking a practical use for a resistor or any other component.   I did show one in a recent video:
https://youtu.be/dI2LjW_joXA?t=41

Here I am using one as part of my jitter measurements:



Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1529 on: January 14, 2022, 02:37:32 am »

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1530 on: January 14, 2022, 02:45:16 am »
Wanted to get an idea how the V2+4 filter compares with the Lites.  Using the same narrow band setup on both VNAs.  Changing the Lite's averages from 1,2 & 3.

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1531 on: January 14, 2022, 11:44:13 am »
Your conclusion is? :)
 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1532 on: January 14, 2022, 11:54:47 am »
LiteVNA copy V2Plus4?
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1533 on: January 14, 2022, 12:20:20 pm »
Your conclusion is? :)
Phase trimmers have a use and VNAs are fun. 

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1534 on: January 14, 2022, 02:04:09 pm »
Is good I got 4 line stretchers from Hirose and one 21cm Airline the airline is calibrated HP/Agilent 11566A AIR LINE 10 CM. The Airlane is god for the TDR test?
I need to learn to use with the VNA the line stretchers.
The Lite-VNA work flawlessly, Dislord make good work to put a lot for use portable but I use the lite only with PC.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1535 on: January 14, 2022, 03:33:47 pm »
There was that person posting about using 18 data points to increase their TDR edge rates.  They were also using a metrology grade Beatty standard that was 10cm.   I really have no idea what their or your goals are for buying them. 

For the phase trimmer, I am not sure what you are trying to learn.  Imagine a section of coax that you can adjust the length.  As you do, the phase changes.  Are you expecting some sort of magic?  You may want to post what your thoughts. 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1536 on: January 14, 2022, 03:43:02 pm »
I found this PDF for Unknown THRU (also known as SOLR) calibration
« Last Edit: January 14, 2022, 04:34:42 pm by DiSlord »
 

Offline gf

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: de
Re: NanoVNA Custom Software
« Reply #1537 on: January 15, 2022, 11:10:03 am »
Wanted to get an idea how the V2+4 filter compares with the Lites.  Using the same narrow band setup on both VNAs.  Changing the Lite's averages from 1,2 & 3.

At least with the original NanoVNA V2 firmware, the exact shape near the center is not so important, since the IF freqency resulting from mixing stimulus with LO always hits the peak at the center of the filter exactly (+/- phase noise) once the PLLs are locked, due to the chosen frequency plan 1). An important property of the filter 2) are however the zeros at fcenter +/- N * fIF, where N is an integer >= 1, in order to cancel IF harmonics completely, which emerge as mixing products of the the (square wave) harmonics of stimulus and LO. These zeros are therefore important in order to deal with the square wave drive.

1) Stimulus, LO, and ADC clock are derived from the same oscillator and are therefore frequency locked to each other. Stimulus and LO frequency are always integral multiples of the minimum frequency step, IF frequency is an integral multiple of the minimum frequency step, too, and ADC clock is an integral multiple of the IF frequency. Since the ADC clock is frequency locked, too, and an integral multiple of the IF frequency, the IF frequency can't miss the center of the digital filter once the PLLs are locked.

2) The IF filter is not a filter in the traditional sense, but the frequency response is eventually an implied property of the (digital) synchronous detector (mathematically the detector is equivalent to a windowed DFT, but calculated only for a single frequency bin). In addition to the synchronous detector, there is just an analog lowpass pre-filter between mixer and ADC, obviously acting as anti-aliasing filter.

Vector averaging of multiple acquisitions inevitably changes the effective frequency response of the detector, since the effective window (over which the DFT is accumulated) becomes a repetition of the primary window function then (possibly even with zero-valued gaps between the repetitions if there happen to be time gaps between the acquisitions which are averaged). Your screenshot did nicely visualize the change of the frequency response :). The averaging strategy of the Nano and the Lite obviously deviate from each other. The peak at the center and the zeros at fcenter +/- N * fIF (which are the properties of importance) are not affected by averaging and still retained, though.
« Last Edit: January 15, 2022, 11:11:39 am by gf »
 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1538 on: January 15, 2022, 11:25:57 am »
>Vector averaging of multiple acquisitions

Lite not use vector average. It continue put to DFT bin xN periods (example for AVGx1 use 30 IF periods, for x2 used 60 and so on). Value named as average - different freq range use different IF, and as result have different RBW for some periods.

Lite use int64 for collect measure (V2Plus4 use int32 and if use big avg can overflow, by this reason i limit max AVG count to 20 in my fw for V2Plus4, original fw use vector average and not have this limit)
 
The following users thanked this post: Alextsu

Offline gf

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: de
Re: NanoVNA Custom Software
« Reply #1539 on: January 15, 2022, 02:16:53 pm »
Lite not use vector average. It continue put to DFT bin xN periods (example for AVGx1 use 30 IF periods, for x2 used 60 and so on). Value named as average - different freq range use different IF, and as result have different RBW for some periods.

My feeling (according to the screenshot posted by Joe) is also that the Lite uses a rectangular window, and not a specific window function (as the original NanoVNA V2 firmware does), is this correct?
 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1540 on: January 15, 2022, 02:33:53 pm »
Use gaussian window (as do it original fw on V2, V2Plus4 sources closed and i not have any information)
But for faster calculation/small code, gaussian window apply on sin/cos table (table size 2 IF period) for x1 avg used 15x2 periods. So if set span more you can see modulation from multiplie windows.
I have plans rewrite this part.
 

Offline gf

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: de
Re: NanoVNA Custom Software
« Reply #1541 on: January 15, 2022, 02:54:04 pm »
V2Plus4 sources closed and i not have any information

Is the V2plus4 firmware source not included here (i.e. mostly common code with the other V2 models)?
 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1542 on: January 15, 2022, 03:05:21 pm »
>Is the V2plus4 firmware source not included here (i.e. mostly common code with the other V2 models)?

Yes V2Plus and V2Plus4 init and measure code hided in bootloader part. This github contain only V2 sources. But you can build from it V2Plus and V2Plus4 fw, bootloader on startup change interrupt table and do all work for measure.
« Last Edit: January 15, 2022, 03:07:41 pm by DiSlord »
 

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1543 on: January 15, 2022, 03:24:46 pm »
I found this PDF for Unknown THRU (also known as SOLR) calibration
This link had been already posted here
https://www.eevblog.com/forum/rf-microwave/nanovna-custom-software/msg3911030/#msg3911030

There exists another textbook, which covers calibration in brief within a dedicated chapter, written by the author of the method, A. Ferrero:
Cambridge isbn 9781107036413.
But once again, very little info is provided from the practical point of view.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1544 on: January 15, 2022, 06:19:41 pm »
I doubt there are too many papers on the internet I have not looked at by now.  Google is pretty good for rooting out the sources.   I tried to contact one of the persons involved with a few of the patents but had no luck.  It's possible they are no longer alive.  I also ran a few more experiments but the results like always, were less than positive and not worth posting.   

My personal ignorance on the subject and lack of education
Lack of material to learn from
Low cost VNAs may not be suited for it (other error sources dominate and nothing/little to gain)
Publications have errors which can waste time
Publications seldom consider the hardware available and look it the problem from a generic view
Publications like to mix terminology which aids in clouding the topic 

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1545 on: January 17, 2022, 02:46:26 pm »
nanoVNA-QT use libxavna

inside i found:
        if(matchedThru)
            return "Unknown thru calibration using 3 fully known one port standards"
                    " and a reciprocal thru standard. Thru standard must-have "
                    "an electrical delay between -90 and 90 degrees, should be "
                    "well-matched (or as short as possible), and have less than 10dB of loss. "
                    "Matching error of the two instrument ports is fully removed.";

So you can try research using Unknown thru calibration
https://github.com/xaxaxa-dev/vna/blob/master/libxavna/calibration.C

This Unknown thru calibration doesn't work?
If work there is a need to reinvent the wheel?
There is some problem with originality?
This came from my personal ignorance on the subject.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1546 on: January 17, 2022, 04:40:05 pm »
...
nanoVNA-QT use libxavna
...

This Unknown thru calibration doesn't work?
If work there is a need to reinvent the wheel?
There is some problem with originality?
This came from my personal ignorance on the subject.

I have not tried the QT software since I attempted to use it to demo the VNA.  It sounds like you have it working so there is nothing that prevents you from conducting some experiments to demonstrate the unknown thru.  Looking forward to seeing your findings.

I did notice they have a new firmware release for the Lite but I really have no idea what changed.   Maybe download that along with their latest QT and use that for your testing. 

https://zeenko.tech/litevna?spm=a2g0o.detail.1000023.1.b5a97ff8tHYEOr

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1547 on: January 17, 2022, 05:31:28 pm »
Hello, my questions are rhetoric I'm not sufficiently educated on software, I stated before they came from my ignorance on the subject.
This is the Lite-VNA screen shoot. 
« Last Edit: January 17, 2022, 05:33:10 pm by realfran »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1548 on: January 17, 2022, 06:01:45 pm »
I would guess there is a manual for the QT software and you are able to read.  You should be able to setup the unknown thru method and try it.  Looking at the screen shot you provided, I would just select the calibration type.  Total guess on my part but I would expect that pulldown? allows you to select it.    I'm not sure how it will work with your transfer relay but I assume they support something.   I would start by reading the manual for it.   Post your findings here.  I'm interested in seeing what you come up with. 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1549 on: January 17, 2022, 06:31:56 pm »
Changes for LiteVNA in last fw:
I add calibration standard correction (allow input all OPEN/SHORT/LOAD/THRU corrections L/C/delay/Z ..) for calibration
Fixed work in CW mode (correct apply power settings)
Always send not calibrated data to CPU (calibrated only if ask)
Added RAW sample show (for debug and ~SA mode)
Enable Harmonic mode, now Lite can work up to ~9G (yes after 6.3G have limits, but usable)
Max points now 1024 (default 1001 for better steps)
For THRU calibration also used ISOLN measure (allow get more linear results)
Allow save 4 trace image
More traces formats

 
The following users thanked this post: Alextsu


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf