Author Topic: NanoVNA Custom Software  (Read 526993 times)

0 Members and 5 Guests are viewing this topic.

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1575 on: January 20, 2022, 05:25:18 pm »
Yes, the whole VNA base FW it all started from is a bit of a UX disaster, but then so are many commercial VNAs (it’s just that you’ve grown used to them over the years :) ). DiSlord had made some improvments over the V2P4 atrocity but there’s only so many shades of lipstick that look good on a pig. And that the LiteVNA manual exists only in Chinese makes even learning how this “settings stored in 50 different procedural logic traps that aren’t  an overall net positive.

-=dave
English version of Lite,s manual here,:
https://static.eleshop.nl/mage/media/downloads/LiteVNA_User-Guide.pdf
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1576 on: January 20, 2022, 06:19:01 pm »
Yes, the whole VNA base FW it all started from is a bit of a UX disaster, but then so are many commercial VNAs (it’s just that you’ve grown used to them over the years :) ). DiSlord had made some improvments over the V2P4 atrocity but there’s only so many shades of lipstick that look good on a pig. And that the LiteVNA manual exists only in Chinese makes even learning how this “settings stored in 50 different procedural logic traps that aren’t  an overall net positive.

-=dave
English version of Lite,s manual here,:
https://static.eleshop.nl/mage/media/downloads/LiteVNA_User-Guide.pdf

Quote
4. Calibration status
Displays the saved slot number of the calibration being used and the error correction applied.
C0 C1...: Each indicates that the corresponding calibration data is loaded.
5. Reference position
Indicates the reference position of the corresponding trace. You can change the position with:
DISPLAY →SCALE →REFERENCE POSITION.

6. Marker status
Displays the selected marker points and the frequency of the marker p...

Notice, not even a comment about the alien units used.


Quote
7 Device settings
The CONFIG menu contains general settings for the device:
Saving device settings
Select CONFIG →SAVE to save general instrument settings. General device settings are data
that includes the following information:
• Touch screen calibration information
• Brightness
The CONFIG →SAVE command does not apply to calibration setting 

Maybe it saves the trace settings, maybe it doesn't.  This manual leaves everything up to your imagination but I'm not Willy Wonka or playing with everlasting gobstoppers. 

***
Thinking about the poor results with the VAT attenuator and T-check.   Don't underestimate the importance the cables play.  You can't magically fix a bad cable with calibration and the higher up you go the more critical they become.  Same for proper torque.   

I played a bit with the cables supplied with the V2Plus4.  They were fairly stable and flexible.  I used them during my review of it.   I didn't try the ones that came with my Lite.   The ones that came with my original Nano I never even bothered with.   I have used this type of coax for the majority of what I have shown.     

Online gf

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: de
Re: NanoVNA Custom Software
« Reply #1577 on: January 20, 2022, 06:53:37 pm »
... the alien units used.

IIRC, in the NanoVNA V2 firmware there was at least one parameter whose unit were screen divisions.
Don't remember which one, but could have been the reference level (eventually it is just a vertical offset for the trace).

EDIT: I.e. at say 10dB/div, three units means that the origin is shifted by of 30dB then (or at 20 Ohm/div, three units mean 60 Ohm).
I also don't remember whether the origin was at the top or bottom of the screen when the offset is 0.
« Last Edit: January 20, 2022, 07:20:13 pm by gf »
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1578 on: January 20, 2022, 08:13:56 pm »
IIRC, in the NanoVNA V2 firmware there was at least one parameter whose unit were screen divisions.
Don't remember which one, but could have been the reference level (eventually it is just a vertical offset for the trace).

Even yourself seem unsure and it sounds like you use it.  That's not good.  Once it goes off screen you can guess how many alien units to try to get it to display something again.  There's no undo, autoscale or even a full range button.   In my example, I selected a different trace function, then re-selected S21 log to start over and guess some more.

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1579 on: January 20, 2022, 09:25:28 pm »
Reference = N ean shift trace 0 position to to N*Scale from bottom screen, yes not good :)

you can change reference / scale position of current selected trace by tap on left side (see attachement)
Scale factor change from middle of screen
 

Online gf

  • Super Contributor
  • ***
  • Posts: 1314
  • Country: de
Re: NanoVNA Custom Software
« Reply #1580 on: January 20, 2022, 11:44:15 pm »

Reference = N ean shift trace 0 position to to N*Scale from bottom screen, yes not good :)

Thanks, so it is from the bottom of the screen. That's the detail I did not remember anymore (at the moment my NanoVNA is out of reach for a while, so I cannot verify).
Honestly, when I needed to use it for the first time, I was initially confused either.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1581 on: January 21, 2022, 12:19:09 am »
Of course, its not really from the bottom of the screen.  Say you enter 1 and things more up 1 unit.  Now you enter 1 again. It does not use the new bottom of the screen and more up 1 more unit.  It stays the same.  You would need to enter 2.  So its from some fixed location, not related to the current screen.   Where's that in the manual?   If you change the scale, better be ready to try and find your new reference.     I would have guessed there was a way to change the view with the touchscreen or jog switch but if there is, I couldn't figure it out. 

Still, IMO usable.  Just not the most intuitive or well documented product I have ever seen. 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1582 on: January 21, 2022, 02:38:20 am »
An example of some very poor cables.  All I am doing is moving them slightly.   With the error you are seeing, I would be checking to make sure that there are no problems with your setup.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1583 on: January 22, 2022, 01:40:53 am »
I tried a some short cables made from RG223 and noted little difference above 8GHz.   Its a bit too stiff. 
https://www.pasternack.com/flexible-0.216-rg223-50-ohm-coax-cable-pvc-jacket-rg223-u-p.aspx

You may have seen me use this cable as well.  It's much more flexible than the other double shielded cable I had been using.  Using this cable with all the adapters shown and careful calibratio, the cheap 20dB attenuator is still within a half dB sweeping from 1MHz to 6GHz.   Once we get into the harmonic mode, things fall apart but still useful.   

https://www.pasternack.com/flexible-0.122-rg188-ds-50-ohm-coax-cable-ptfe-jacket-rg188-ds-p.aspx

*** Note the two short RG223 cables to left

*** Letting the Lite run for a bit with the attenuator, seems stable. 
« Last Edit: January 22, 2022, 02:50:57 am by joeqsmith »
 

Offline DiSlord

  • Regular Contributor
  • *
  • Posts: 108
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1584 on: January 22, 2022, 05:42:46 am »
The mode of operation on harmonics is not the standard mode of Lite, the 3rd and 5th harmonics are used for measurement, because of which the dynamic range suffers (this mode just optional, but can be useful for example in TDR measures  for get better resolution). It is better to calibrate at these frequencies at high AVG values, this will reduce the noise in the calibration data, as well as in the measured data).
In general, you can get ~ 50dB in these modes, but there is a very long calibration
My 40 and 50dB measures
 

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1585 on: January 22, 2022, 05:53:27 am »
Hi, Joe,
Do You use a SMA fixed-torque wrench to attach the cables & DUTs every time or fix them by hand?
 

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11703
  • Country: my
  • reassessing directives...
Re: NanoVNA Custom Software
« Reply #1586 on: January 22, 2022, 09:37:57 am »
The mode of operation on harmonics is not the standard mode of Lite, the 3rd and 5th harmonics are used for measurement, because of which the dynamic range suffers (this mode just optional, but can be useful for example in TDR measures  for get better resolution).
:-+ if i buy a tool expecting to behave as in spec, and then the seller offers me a broken toy as a gift, i will happily accept that. i bought LiteVNA because 6.3GHz, now you offer 9GHz i will gladly accept that as bonus however broken it is. some application i can use eyeball or PC regression/averaging app to predict dut's behavior beyond 6.3GHz.. if you hear complaint from mourners you can ignore them. if they dont want the gift, they can always set stimulus to maximum of 6.3GHz.. btw i just asked Zeenko Store to ask Hugen to upgrade again NanoVNA-QT to support 9-10GHz, i hope they will listen.
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: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1587 on: January 22, 2022, 03:56:22 pm »
Hi, Joe,
Do You use a SMA fixed-torque wrench to attach the cables & DUTs every time or fix them by hand?

Normally, I try to leave the cables attaches to avoid wear.  For the Lite, I did install a couple of extensions to try and further minimize the wear.   

https://www.digikey.com/en/products/detail/amphenol-rf/132171RP/1011924

The adapters and cables are all torqued properly.   As for torquing  the DUT and cal standards, it depends.     Notice the cables I show that I claim are bad.  If you were using them below a few hundred MHz, you may find you get very good results with them.  Again, the lower the frequency, the less critical the mechanics which includes proper torque.  So to answer your question, it depends on what I am doing.  Just like calibration, a lot of times I won't do it or it's about the last thing I do.  Again, depends what I am after.

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1588 on: January 22, 2022, 04:06:30 pm »
The mode of operation on harmonics is not the standard mode of Lite, the 3rd and 5th harmonics are used for measurement, because of which the dynamic range suffers (this mode just optional, but can be useful for example in TDR measures  for get better resolution). It is better to calibrate at these frequencies at high AVG values, this will reduce the noise in the calibration data, as well as in the measured data).
In general, you can get ~ 50dB in these modes, but there is a very long calibration
My 40 and 50dB measures

I had someone recently write me about using one of these low cost VNAs to tune some filters.  These would have a fairly steep skirts and I would expect very low gains in the stop band.  Communications...   They were telling me how they were planning to use the average.  I was thinking to myself, if I were trying to tune a filter like this I would want the screen to be updating several times a second.   It will be interesting to see if they decide the one they bought was good enough for their application.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1589 on: January 22, 2022, 07:18:37 pm »
Pulsing S21 asynchronously with one and two firmware averages.  Maybe in the future we can have a trigger in and out.   

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1590 on: January 24, 2022, 03:53:52 am »
Just for the fun of it, here's some sort of an attempt to use the Lite beyond 10GHz.  My software for the original 8754A supported using external mixers.   I built a test set back then that allowed me to experiment beyond 2.5GHz but even 20 years or so later, I would say I'm still just generating garbage.   

Shown looking at a S21 normalized with a 20dB MWM.  Then inserting an SMA T adapter (some sort of stubish notch filter).     

No cal standards along with poor cables, connectors and components.  I don't put any stock in it.  Fun but not useful.

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1591 on: January 24, 2022, 10:12:14 am »
I hope rev.3 of the software full integrate the Lite-VNA inclusive of the harmonic mode.
What is the setup on the Lite? Rev. 3 does not use the calibration on the FW.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1592 on: January 24, 2022, 12:23:53 pm »
I hope rev.3 of the software full integrate the Lite-VNA inclusive of the harmonic mode.
What is the setup on the Lite? Rev. 3 does not use the calibration on the FW.

None of the software I have released to the public for these low cost VNAs allows you to select the internal calibration.  Nor do I support any feature that requires the touchscreen, buttons, jog switch or card readers.   I also only support a very small subset of the commands.  Just enough to get the data out of the unit. 

Obviously, the Lite was not sending the raw data but this has been corrected.  I'm not sure if they have support.  Read Dislord's firmware interface document: 
https://www.eevblog.com/forum/rf-microwave/nanovna-custom-software/msg3888317/#msg3888317

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1593 on: January 24, 2022, 01:19:04 pm »
Yes, version 2.08 take is the measurement on. Thank you for the information, I use only with the PC.
Hope to get the rev.3 with the new feature.
Best regards.
Frank.
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1594 on: January 24, 2022, 02:41:46 pm »
Yes, version 2.08 take is the measurement on.

Every version including 3 will display what ever the VNA sends up.  If the VNA sends calibrated data,  my software uses it.   It does not know if the VNA was calibrated or not.   

For the original NanoVNA, I support the Recal function (allowed me to load any of the internal calibrations).  When I decided to open it to the public, I knew leaving a feature like this was going to confuse users,  so I moved it off the main page to try and save the antenna analyzer group the grief.   The manual warns about it.   I'm sure it's caused problems for a few people.   

Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1595 on: January 24, 2022, 04:20:22 pm »
I see on V.3 there is the averaging function that is good to use when required, the possibility to use on harmonic mode is one other possibility if the bridge permit.
One question: use one external mixer and directional coupler HPF filter like one of your videos suggests? will be too complicate?
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1596 on: January 24, 2022, 05:46:52 pm »
2 X mixers were used, one mixer to up convert and one to bring it back down.   There is also HP, LP, splitter, LO and directional coupler, depending what you are trying to do.   Mixer losses are 7dBish each, so a wideband amplifier is used.  In my example with the Lite looking at S21, no directional coupler was used.  For the old HP8754A looking at S11, a directional coupler was used.   

In concept, it's not too complicated and putting something together wouldn't be too difficult.   When playing around with some wire and transistors on a breadboard, I made this video showing a basic software model I wrote to demonstrate LeCroy's Digital Bandwidth Interleaving.   Roger Delbue of LeCroy chimed in.  The reason I mention this is it shows the basic concepts. 


Offline realfran

  • Regular Contributor
  • *
  • Posts: 65
  • Country: gb
Re: NanoVNA Custom Software
« Reply #1597 on: January 24, 2022, 11:08:21 pm »
Thank you for the very good video. :-+
 

Offline joeqsmithTopic starter

  • Super Contributor
  • ***
  • Posts: 11758
  • Country: us
Re: NanoVNA Custom Software
« Reply #1598 on: January 25, 2022, 03:18:49 am »
Glad you enjoyed it.

Offline Alextsu

  • Contributor
  • Posts: 42
  • Country: ru
Re: NanoVNA Custom Software
« Reply #1599 on: January 28, 2022, 07:45:38 am »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf