Author Topic: NanoVNA Custom Software  (Read 524761 times)

0 Members and 3 Guests are viewing this topic.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1600 on: January 28, 2022, 01:13:07 pm »
Thanks.  I had read that email chain and was talking with a friend about it the other day.  The translation makes it difficult for me to follow.   It will require I spend a lot of time to try and make sense of it. I did not download the tools and source code to try and replicate their tests.   I also didn't read their final report.  There were some other nuggets I found in that mail chain but again, it takes time to research.   Did you read it and attempt to follow? Were you able to rebuild their code as well?   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1601 on: January 29, 2022, 02:13:24 am »
The Lite's internal averages compared with my software average and smoothing filter. 



https://www.microwaves101.com/encyclopedias/smoothing-is-cheating

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1602 on: January 29, 2022, 11:23:38 am »
I can suggest made calibration on big avg settings, this allow get less noise calibration data -> and as result less noise measured data after calibration.
I use minimum x10 avg on calibration.

Also 1001 points and 1x avg by sweep time equal 101 points and x10 avg. So if need more fast update better use less points.

PS sweep speed after 6.3G decreased, need more wait generator ready.
« Last Edit: January 29, 2022, 11:25:46 am by DiSlord »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1603 on: January 29, 2022, 03:55:32 pm »
I show the VNA without calibration for a reason.  No doubt that reducing the noise in general is a good thing as long as there is no loss of information. 

Because I don't tune a lot of filters, I'm not sure what people would generally consider an acceptable update rate.  I would imagine instant feedback is desired but maybe once every few seconds is good enough for a few.   Personally, I couldn't use something that slow to make several adjustments.  Giving up data points for faster feedback is certainly something users would consider when trying to use it to tune a filter.         

Quote
PS sweep speed after 6.3G decreased, need more wait generator ready.
Also, the SNR improves as we move below that.  Its less of a problem.   

As I mentioned, the one person who wrote was planning to average to increase the dynamic range.  The one thing they never mention is what they required.    It was a communications application so I would assume that they would need something better.


I was thinking I could take a filter and run it on the Lite using the firmware calibration (what ever parameters/procedure you recommend) and store the Touchstone data to the SD card.  Then run it with my software.  Repeat it with the V2Plus4 and maybe my old VNAs.   So I pull out a SD card go to slide it into the slot and it disappears into the unit.  :-DD   I remove the 4 screws to recover my card and then make sure I fits.  No problem.  I then put the case back together and try to insert the card but discover the card is too short and I need to use something to push it in deeper than the case allows to get it to lock.   :-DD  The experiment was doomed before it got started. 
 
« Last Edit: January 29, 2022, 06:15:03 pm by joeqsmith »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1604 on: January 29, 2022, 05:30:17 pm »
You can get the card to lock with the stylist.   I attempted to use a 64G SD card but was presented with a write error.  Lucky for me, the 121GW DMM  Dave offers uses a small card which worked fine.     

We can try to look at the difference of the dynamic range of the Lite using the firmware's calibration.  Anyone could repeat that test compared with some filter I have laying around.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1605 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: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1606 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: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1607 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).   





Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1608 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 #1609 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

Offline gf

  • Super Contributor
  • ***
  • Posts: 1308
  • Country: de
Re: NanoVNA Custom Software
« Reply #1610 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 #1611 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

Offline gf

  • Super Contributor
  • ***
  • Posts: 1308
  • Country: de
Re: NanoVNA Custom Software
« Reply #1612 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 #1613 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 »
 

Offline gf

  • Super Contributor
  • ***
  • Posts: 1308
  • Country: de
Re: NanoVNA Custom Software
« Reply #1614 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 #1615 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: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1616 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: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1617 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 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1618 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 #1619 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: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1620 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 #1621 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: 11699
  • Country: my
  • reassessing directives...
Re: NanoVNA Custom Software
« Reply #1622 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
 

Offline gf

  • Super Contributor
  • ***
  • Posts: 1308
  • Country: de
Re: NanoVNA Custom Software
« Reply #1623 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: 11715
  • Country: us
Re: NanoVNA Custom Software
« Reply #1624 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. 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf