Author Topic: NanoVNA Custom Software  (Read 479835 times)

0 Members and 6 Guests are viewing this topic.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1625 on: January 29, 2022, 06:11:50 pm »
Same procedure, 401 data points, 1.5G to 3GHz range.   I was going to try with the average set to 80 but was starting to fall asleep waiting for the thru.   :-DD  So I set the average to 10.  Because we were saving the data to the SD card, I ran the Lite off battery to give it the best chance possible.

Shown comparing the above setup (red) with the my software running the Lite the way I would normally use it (dark brown).   We gain about 10dB but it does slow things down.   

Also shown is the V2Plus4(tan) connected to the PC, no average and running off the PCs power.  Sadly, I know using the external power degrades the performance. 

Also shown is data another member had taken for the Jankae LibreVNA (black).   

Feel free to repeat this little experiment and see if your results show any major improvements.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1626 on: January 29, 2022, 07:41:45 pm »
I changed to 80X average and repeated the calibration and measurement.  No other changes were made.   Data was normalized to the original, non averaged data set.  There appears to be some gains at 80 but it takes a very long time to run through it.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1627 on: January 29, 2022, 09:52:31 pm »
I ran the V2Plus4 (brown) from it's internal battery and used the software to average 10X for calibration and collection.  I then compared this with the Lite (black) with the firmware 80X average for calibration and collection (also running from battery).   




 
The following users thanked this post: realfran

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1628 on: January 30, 2022, 10:44:56 am »
I wait for the release of rev.3 to test all these new software features with the LiteVNA, my use is with PC this possibility hare very usefully for it. :-+
 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1629 on: January 30, 2022, 10:55:34 am »
I try compare LiteVNA / V2Plus4 / LibreVNA in S11 measures

I use 6dB attenuator on port and 30cm cable, calibrate all devices by one calibraion kit.

30cm cable:
Red - LibreVNA
Green Lite
Purple V2Plus4

Lite and V2Plus4 show ~equal results (on V2Plus4 strange spike at begin on > 0dB)

Next measure 6dB attenuator:
Red - LibreVNA
Brown - Lite
Green - V2Plus4
LibreVNA now have strange spike at begin. Lite and V2Plus4 ~equal, V2Plus4 little more noise

All measures made on 1xAVG
« Last Edit: January 30, 2022, 12:12:41 pm by DiSlord »
 
The following users thanked this post: realfran

Online gf

  • Super Contributor
  • ***
  • Posts: 1295
  • Country: de
Re: NanoVNA Custom Software
« Reply #1630 on: January 30, 2022, 11:42:42 am »
What was the DUT in the first test? (Seems to be something with almost 100% reflexion?)
And if the DUT in the 2nd test was a 6dB attenuator, how was its 2nd port terminated?
An you wrote "S11 measures", but in the diagram the red trace is labeled "S21"? :-//
 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1631 on: January 30, 2022, 12:00:47 pm »
Quote
What was the DUT in the first test? (Seems to be something with almost 100% reflexion?)
Hmm let me see how i write...
Quote
I use 6dB attenuator on port and 30cm cable, calibrate all devices by one calibraion kit.
30cm cable:
Red - LibreVNA
Green Lite
Purple V2Plus4
At first i measure 30cm cable cable not terminated. I must see 2xLOGMAG value of cable lost (as long as the wavelength fits on the way back and forth, then beats should already be visible due to attenuation in the cable and not pure 50Om or calibration kit or cable)

For attenuator i must see ~ 2 x LOGMAG of attenuator value (12dB line and small errors)

Colors for stored traces all colors as i write, all measures S11 reflect LOGMAG, at top show colors for live traces (not visible).
« Last Edit: January 30, 2022, 01:01:45 pm by DiSlord »
 
The following users thanked this post: gf

Online gf

  • Super Contributor
  • ***
  • Posts: 1295
  • Country: de
Re: NanoVNA Custom Software
« Reply #1632 on: January 30, 2022, 12:10:49 pm »
OK, so the test set was port1 -> 3dB attenuator -> calibration plane, and the DUT was the open-ended cable (or alternatively an open-ended 6dB attenuator for the 2nd test)?
« Last Edit: January 30, 2022, 12:12:30 pm by gf »
 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1633 on: January 30, 2022, 12:18:39 pm »
First test open ended cable
Second test 6dB attenuator (i also use 3dB attenuator, but not store results, so made mistake)

Most strange results i see from LibreVNA (for cable as i write must be line ~600M, for attenuator strange spike at begin and on 3.2-3.4G)

For V2Plus4 also on cable i see strange up to > 0dB (and also small spikes on measure)

For Lite also exist small error on < 100MHz
« Last Edit: January 30, 2022, 12:20:15 pm by DiSlord »
 

Online gf

  • Super Contributor
  • ***
  • Posts: 1295
  • Country: de
Re: NanoVNA Custom Software
« Reply #1634 on: January 30, 2022, 12:40:19 pm »
Agreement of V2plus4 and Lite is not that bad :)
Another question is of course, what cal kit was used, and whether the standards were simply assumed to be ideal (although they are not), or whether their known/measured impedances were honored for the calibration.
 

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1635 on: January 30, 2022, 01:08:40 pm »
Hello Dislord, my 4 mounts hold V2plus4 not give me the possibility to upgrade with your FW. there is a possibility to erase everything? And put the new firmware?
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1636 on: January 30, 2022, 02:40:02 pm »
Another question is of course, what cal kit was used, and whether the standards were simply assumed to be ideal (although they are not), or whether their known/measured impedances were honored for the calibration.
Since purchasing the V2Plus4, I have used the standards supplied with it except for the load, which was sorted from a batch of Mini-Circuits terminators I purchased.   I am not aware if the firmware for any of the low cost VNAs I have support anything beyond the ideal model.   The data I collected for the dynamic range and noise was taken with the ideal model. 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1637 on: January 30, 2022, 02:49:15 pm »
I wait for the release of rev.3 to test all these new software features with the LiteVNA, my use is with PC this possibility hare very usefully for it. :-+
Sorry but no news on a release.    You thought you were confused with 2.x, 3.x isn't going to make things easier.    :-DD 
 
The following users thanked this post: realfran

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1638 on: January 30, 2022, 04:24:09 pm »
Not sure what you will learn from this but Lite with 1024 points (max firmware allows), 10Xaverge for cal and collect and measuring a cheap 6dB attenuator.  Again, running off battery and saving the data to the SD card.  PC was not used as I assume this is what you were doing.  I used 10X average as you stated this was the minimum you use now.   I have attached the Touchstone file if you want it.   

Thinking of your glitches, I assume you inserted the female to female adapter into the open end of the cable you tested to keep it stable.   

***
It's winter here and the house is dry.  ESD may be another possible cause if what you are seeing is random.
« Last Edit: January 30, 2022, 06:17:54 pm by joeqsmith »
 

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1639 on: January 30, 2022, 04:43:34 pm »
Thank you for your great software :-+
 
The following users thanked this post: joeqsmith

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1640 on: January 31, 2022, 01:50:39 pm »
Any calibration You make is only valid for the calibration plane (and compensates for the errors only there) .

You can change the reference plane after calibration. 

Looks like there have been a few changes to the Lite's firmware.  They still don't appear to provide any details about what they changed or why.   Any details about the new release would helpful. 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1641 on: January 31, 2022, 02:57:07 pm »
As i know
Only toch screen problems fixed (not work top left corner for 4 inch devices), no any additional fixes.
 
The following users thanked this post: joeqsmith

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11700
  • Country: my
  • reassessing directives...
Re: NanoVNA Custom Software
« Reply #1642 on: January 31, 2022, 07:11:52 pm »
You can change the reference plane after calibration. 
how? afaik the term is de-embedding, and its a math intensive procedure and requires full 2-port VNA, which i believe you havent demonstrated it. neither did i.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Online gf

  • Super Contributor
  • ***
  • Posts: 1295
  • Country: de
Re: NanoVNA Custom Software
« Reply #1643 on: January 31, 2022, 08:44:55 pm »
afaik the term is de-embedding, and its a math intensive procedure and requires full 2-port VNA, which i believe you havent demonstrated it. neither did i.

A noteworthy trivial special case of de-embedding is "port extension" which assumes that the network to be de-embedded is a piece of ideal 50 Ohm transmission line. This can serve as a good enough approximation for things like (say) a short female-female adapter between calibration plane and DUT, or similar.
 
The following users thanked this post: joeqsmith

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1644 on: January 31, 2022, 10:38:52 pm »
You can change the reference plane after calibration. 
how? afaik the term is de-embedding, and its a math intensive procedure and requires full 2-port VNA, which i believe you havent demonstrated it. neither did i.

The newer firmware for these low cost VNAs supports adding a delay (port extension).  I demo'ed it with my software.  You can certainly use it with a 1-port VNA looking at S11.   

Quote
(and compensates for the errors only there)

I was going to say that we are really correcting errors before the reference plane but felt I was being pedantic.  We are correcting for connectors, cables, delay, loss, reflections.....  The VNA measures from the reference plane.     The way it was worded, it seemed like it was suggesting that you had to measure the device right at that magic spot or all bets were off.   Of course, the device we are measuring may be a 1000' of coax, extending far beyond the reference plane. 

Online gf

  • Super Contributor
  • ***
  • Posts: 1295
  • Country: de
Re: NanoVNA Custom Software
« Reply #1645 on: January 31, 2022, 11:43:35 pm »
One problem with Electrical Delay in the v2 firmware is that it subtracts the SAME delay from S11 and S21. But S11 is round trip, while S21 is one way. So if you set an electrical delay in order to extend port1, then it can be either correct for S11, or for S21, but not for both at the same time.
 

Online gf

  • Super Contributor
  • ***
  • Posts: 1295
  • Country: de
Re: NanoVNA Custom Software
« Reply #1646 on: January 31, 2022, 11:54:48 pm »
Imo it were better if I could set separate port extension delays for ports 1 and 2, where the former is subtracted 2x from S11 and 1x from S21, and the latter is subtracted 1x from S21.
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11700
  • Country: my
  • reassessing directives...
Re: NanoVNA Custom Software
« Reply #1647 on: February 01, 2022, 04:50:35 am »
afaik the term is de-embedding, and its a math intensive procedure and requires full 2-port VNA, which i believe you havent demonstrated it. neither did i.
A noteworthy trivial special case of de-embedding is "port extension" which assumes that the network to be de-embedded is a piece of ideal 50 Ohm transmission line. This can serve as a good enough approximation for things like (say) a short female-female adapter between calibration plane and DUT, or similar.
only that (bolded line), but can we get ideal 50ohm TL at cheap? are we sure the hunglow pigtail M or F connectors/through are really ideal? its ok if we can only "assume" thats fine with me >:D, but in academic world i dont find it that simple. and characterized/ideal port extender can cost 10x of LiteVNA i guess, unless china manufacturing and QC has figured out something. if only want to extend port/plane for insertable dut.. i can only think of, why we dont just recalibrate at new extended plane? if we have both female and male cal kit? (i have ;D), so we can let the internal math of VNA FW do the job. the difficult part of extending plane is because the DUT is not insertable such as on PCB. i'm not sure though what the reason we want to test an open coaxial cable with reflections everywhere along the line as dislord did and then get into hassle try to extend (or even backward) the ref plane as we like. ymmv.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11890
  • Country: us
Re: NanoVNA Custom Software
« Reply #1648 on: February 01, 2022, 12:25:46 pm »
One problem with Electrical Delay in the v2 firmware is that it subtracts the SAME delay from S11 and S21. But S11 is round trip, while S21 is one way. So if you set an electrical delay in order to extend port1, then it can be either correct for S11, or for S21, but not for both at the same time.
 
Imo it were better if I could set separate port extension delays for ports 1 and 2, where the former is subtracted 2x from S11 and 1x from S21, and the latter is subtracted 1x from S21.

My released software only trims the delay for S11/S22.  The newer version supports S11/S21 (/2 for S21) but currently does not support the transfer relay.   That section of code is the main reason for the change and is still work in progress.   
 
The following users thanked this post: realfran

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1649 on: February 02, 2022, 01:28:31 pm »
The software average work fantastic fast, this for the tuning filter is important.
I get a little confused with the TDR I tray to test my LINE stretcher, I need to learn to use it (not a lot of information for coax line stretcher)
When I did 2 port calibrations with the Transfer relay on, I get the same image for both ports works very good.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf