¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io
Date

Re: Serial communication with uC #nanovna-v2

 

On 11/18/20 4:20 PM, Laps wrote:
On Thu, Nov 19, 2020 at 07:00 AM, Jim Lux wrote:
<snip description of where to find the code>
Thanks for the reply, Jim Lux.
I just bought an RPi 0, it seems to be the most practical solution for my project, since in the V2 version of the nanovna the communication protocol is binary based. I'm using the code from the nanovna.py file that you mentioned.
oh. You're doing a V2 - I don't know if the nanovna.py works with the V2 - maybe there's one matching the firmware for the V2.


Re: Serial communication with uC #nanovna-v2

 

Thanks for share this information Ed March! It will be very helpful.


Re: Serial communication with uC #nanovna-v2

 

On Thu, Nov 19, 2020 at 07:00 AM, Jim Lux wrote:


There are versions of the firmware (I don't know which, but the various
wikis probably have info) that support the on-board serial port. You'll
need an appropriate voltage device for the other end (3.3V TTL, I believe).

The protocol is text based and not mind bendingly complex. I would
suggest you fire it up using the default USB interface (which emulates a
serial port, at least on my mac) and fool with it a bit before going the
"dedicated device" route. At least you'll know the problem is with your
new serial interface, and not making a mistake with the messages.

check this: /g/nanovna-users/wiki/12760
I suggest getting the pdf file.
There *are* some new commands in some versions of the firmware.

There's a simple interface program in python in the NanoVNA-H source
tree (called, not too oddly, nanovna.py)

NanoVNA-Saver is a substantially more complex and capable program in
python that also uses the serial interface model.

If you're thinking RPi, I'd not bother with the serial port, just plug
it into the USB on the Pi and be done with it.

For what it's worth, the same code works on a Beagleboard with a USB.
Thanks for the reply, Jim Lux.

I just bought an RPi 0, it seems to be the most practical solution for my project, since in the V2 version of the nanovna the communication protocol is binary based. I'm using the code from the nanovna.py file that you mentioned.


Re: TRANSFORM function

 

Clicck on the "Display function on the first menu. This opens a second menu. The Transform function appears in the menu between "Channel" and "Bandwidth".
The menu starts with "Trace, Format, Scale, Channel, TRANSFORM, Bandwidth and finally, Back.
I am running FW 1.0.38. It also appears in the 1.0.33 FW and the AA_20200118 FW.
This latest FW has the SD card support. However, you need to find the version of NanoVNA you have, Original, H, F or one of the cheap knock offs, as well as the Firmware version in your VNA.
You may have to just upgrade the Firmware instead of buying a new one. That is unless you just want a new one.
I hope this helps.
Clyde Lambert KC7BJE


Re: Serial communication with uC #nanovna-v2

 

That is for "V1" not V2 and the firmware that supports it comes from
discord ...

There are versions of the firmware (I don't know which, but the various

wikis probably have info) that support the on-board serial port. You'll
need an appropriate voltage device for the other end (3.3V TTL, I believe).

The protocol is text based and not mind bendingly complex. I would
suggest you fire it up using the default USB interface (which emulates a
serial port, at least on my mac) and fool with it a bit before going the
"dedicated device" route. At least you'll know the problem is with your
new serial interface, and not making a mistake with the messages.

check this: /g/nanovna-users/wiki/12760
I suggest getting the pdf file.
There *are* some new commands in some versions of the firmware.

There's a simple interface program in python in the NanoVNA-H source
tree (called, not too oddly, nanovna.py)

NanoVNA-Saver is a substantially more complex and capable program in
python that also uses the serial interface model.

If you're thinking RPi, I'd not bother with the serial port, just plug
it into the USB on the Pi and be done with it.

For what it's worth, the same code works on a Beagleboard with a USB.






Re: Serial communication with uC #nanovna-v2

 

On 11/18/20 12:31 PM, Laps wrote:
Hi everyone!
I'm new here and wanna know about serial interface for communication with the nanovna v2_2. It is possible use some kind of uC (like arduino, esp32 or raspberry pi 0) for communicate with the device? Has anyone tried? I'm trying to capture the nanovna data, process it and make it available on the internet using a device other than an ordinary PC.
There are versions of the firmware (I don't know which, but the various wikis probably have info) that support the on-board serial port. You'll need an appropriate voltage device for the other end (3.3V TTL, I believe).

The protocol is text based and not mind bendingly complex. I would suggest you fire it up using the default USB interface (which emulates a serial port, at least on my mac) and fool with it a bit before going the "dedicated device" route. At least you'll know the problem is with your new serial interface, and not making a mistake with the messages.

check this: /g/nanovna-users/wiki/12760
I suggest getting the pdf file.
There *are* some new commands in some versions of the firmware.

There's a simple interface program in python in the NanoVNA-H source tree (called, not too oddly, nanovna.py)

NanoVNA-Saver is a substantially more complex and capable program in python that also uses the serial interface model.

If you're thinking RPi, I'd not bother with the serial port, just plug it into the USB on the Pi and be done with it.

For what it's worth, the same code works on a Beagleboard with a USB.


Re: Serial communication with uC #nanovna-v2

 

Laps,

The VNA appears as a Virtual com port and yes you can see it under Linux
Raspberry Pi as a serial device nad send the Binary Protocol to it

I have some c# code here for you to see how it works

if you need help converting something to c/c++ under GNU I'd be gald to help you too



Ed? WB9RAA, Prescott Valley, AZ

*Sent:* Wednesday, November 18, 2020 at 2:13 PM
*From:* "Laps" <lincoln.aps@...>
*To:* [email protected]
*Subject:* Re: [nanovna-users] Serial communication with uC #nanovna-v2
On Thu, Nov 19, 2020 at 04:55 AM, Dragan Milivojevic wrote:


There is a reason why no one responded to this question in the other group.
Considering that you are unable to answer this simple question
yourself I doubt that you will be able to reimplement a fairly complicated
communication protocol that V2 uses.

Anyway if I remember correctly the V2 does not have serial breakout on
PCB and there is no firmware support. You can solder some wires to the
micro
and try to implement the serial support in the firmware.
Connecting over USB would require USB host support on the micro and that is
even more problematic. If your goal is to output the data over IP your best
bet
would be to connect the "V1" to a Raspberry Pi and modify the Python
examples
to output the data in the format that you require.


On Wed, 18 Nov 2020 at 21:38, Laps <lincoln.aps@...> wrote:

Hi everyone!

I'm new here and wanna know about serial interface for communication with
the nanovna v2_2. It is possible use some kind of uC (like arduino, esp32
or raspberry pi 0) for communicate with the device? Has anyone tried? I'm
trying to capture the nanovna data, process it and make it available on the
internet using a device other than an ordinary PC.





Thank's for your quick reply, Dragan.

I received the device yesterday and I am still learning about the serial protocol implemented in this version. I am using the script available at: as a base and I would like to use an esp32 module with micropython to capture VNA channel 1 data. I believe that the use of raspberry pi 0 is the best for this application, since an USB host controller is required.

Sorry about the duplicate topic.


Re: Looking into Nanovna

 

Michal,

That is much too general a question.

I would suggest that you go to the documentation on the Wiki and start reading. If you end up with specific questions about specific topics, feel free to post questions.

DaveD

On 11/18/2020 4:00 PM, michal.gordon via groups.io wrote:
Hi everyone.
I'm looking into Nanovna. Any thoughts or tips on how to go about it?

Thanks,
Michal



--
This email has been checked for viruses by Avast antivirus software.


Re: Serial communication with uC #nanovna-v2

 

On Thu, Nov 19, 2020 at 04:55 AM, Dragan Milivojevic wrote:


There is a reason why no one responded to this question in the other group.
Considering that you are unable to answer this simple question
yourself I doubt that you will be able to reimplement a fairly complicated
communication protocol that V2 uses.

Anyway if I remember correctly the V2 does not have serial breakout on
PCB and there is no firmware support. You can solder some wires to the
micro
and try to implement the serial support in the firmware.
Connecting over USB would require USB host support on the micro and that is
even more problematic. If your goal is to output the data over IP your best
bet
would be to connect the "V1" to a Raspberry Pi and modify the Python
examples
to output the data in the format that you require.


On Wed, 18 Nov 2020 at 21:38, Laps <lincoln.aps@...> wrote:

Hi everyone!

I'm new here and wanna know about serial interface for communication with
the nanovna v2_2. It is possible use some kind of uC (like arduino, esp32
or raspberry pi 0) for communicate with the device? Has anyone tried? I'm
trying to capture the nanovna data, process it and make it available on the
internet using a device other than an ordinary PC.





Thank's for your quick reply, Dragan.

I received the device yesterday and I am still learning about the serial protocol implemented in this version. I am using the script available at: as a base and I would like to use an esp32 module with micropython to capture VNA channel 1 data. I believe that the use of raspberry pi 0 is the best for this application, since an USB host controller is required.

Sorry about the duplicate topic.


Re: Serial communication with uC #nanovna-v2

 

There is a reason why no one responded to this question in the other group.
Considering that you are unable to answer this simple question
yourself I doubt that you will be able to reimplement a fairly complicated
communication protocol that V2 uses.

Anyway if I remember correctly the V2 does not have serial breakout on
PCB and there is no firmware support. You can solder some wires to the
micro
and try to implement the serial support in the firmware.
Connecting over USB would require USB host support on the micro and that is
even more problematic. If your goal is to output the data over IP your best
bet
would be to connect the "V1" to a Raspberry Pi and modify the Python
examples
to output the data in the format that you require.

On Wed, 18 Nov 2020 at 21:38, Laps <lincoln.aps@...> wrote:

Hi everyone!

I'm new here and wanna know about serial interface for communication with
the nanovna v2_2. It is possible use some kind of uC (like arduino, esp32
or raspberry pi 0) for communicate with the device? Has anyone tried? I'm
trying to capture the nanovna data, process it and make it available on the
internet using a device other than an ordinary PC.






Serial communication with uC #nanovna-v2

 

Hi everyone!

I'm new here and wanna know about serial interface for communication with the nanovna v2_2. It is possible use some kind of uC (like arduino, esp32 or raspberry pi 0) for communicate with the device? Has anyone tried? I'm trying to capture the nanovna data, process it and make it available on the internet using a device other than an ordinary PC.


Re: Your NanoVNA version

 

How can a noob like me tell the real one from a clone? (I'm a noob to the NanoVNA, not to engineering, BTW.)


Re: TRANSFORM function

 

The battery will depend on the source where you got your unit.

On Wed, Nov 18, 2020, 10:35 AM Noji Ratzlaff <nojiratz@...> wrote:

That's too bad, but I believe I'll take your advice, and ask Santa for a
new one, especially since it appears my battery is about to expand. And
while I'm at it, do you know where I can get a new battery?






Re: TRANSFORM function

 

If a model claims it has the TDR function, is that the same as it claiming to have the TRANSPORT function?


Re: TRANSFORM function

 

Batteries can be purchased online, or you can re-use a thin cellphone or iPod battery as a number of forum members (and I) have done.Just ensure the battery has the protection board built-in and is not just a raw cell.
I used a used 1300mAH iPod battery and replaced the 4 stand-offs with slightly longer ones. There are photos in the forum of user's mods.
Flashing firmware is slightly involved the first time but after that it becomes very easy. Follow instructions in the various user guides on the forum on YouTube.

On Wednesday, November 18, 2020, 10:35:07 a.m. EST, Noji Ratzlaff <nojiratz@...> wrote:

That's too bad, but I believe I'll take your advice, and ask Santa for a new one, especially since it appears my battery is about to expand. And while I'm at it, do you know where I can get a new battery?


Re: TRANSFORM function

 

That's too bad, but I believe I'll take your advice, and ask Santa for a new one, especially since it appears my battery is about to expand. And while I'm at it, do you know where I can get a new battery?


Re: Smith chart - admittance scale ?

 

Hi Gyula,

As I said, I'm not complaining. I was in contact with Rune a year ago. Since then I have never made a reference to the wish of admittance graphs in the Smith Chart.

Reason why I asked in the first place, is because I do a lot of teaching to hamradio students and also talk about Smith Charts and mathing impedances. I show what happens to measured impedance when adding a series or parallel component, and it is enlightening for many. NanoSAVER is a very good tool to show this but at this time only for the impedance circles (=adding components in series).

I'm not a programmer and adding a few impedance circles in the nanoSAVER software is unknown territory.//I would not know where to begin. So I jumped on the wagon when someone started this thread to ask attentention. Not forcing anybody and still praying a humble thanks for what has been developped in the past year.

73 all,

Arie PA3A


Op 18-11-2020 om 11:31 schreef Gyula Molnar:

Hi Arie,
you know that the original creator of NanoVNA-Saver (Rune 5Q5R) will no longer be working on this project from the beginning of this year. Unfortunately, I can also imagine that this was His "swan song." Anyone who has taken it over and will carry it on will probably be able to do it in their spare time as a hobby.
Indeed, there are and are improvements in this topic in other programming teams. Since their developments are ongoing and they are made for their own use, it is up to them to decide when and what to share. Anyone who listens knows what I'm talking about.
Please be patient and you can try this for yourself.

73, Gyula HA3HZ


Re: Smith chart - admittance scale ?

 

Fortunately NanoVNA-Saver is python using qt, so it's not too tough to add functionality. Usually what's tricky is figuring out how to do the UI so it's not confusing and overly complex - the worst thing is having 100 little click boxes and radio buttons.

I'm not a UI designer, and I'm not facile in the particular toolset

I'd start in drawSmithChart in Smith.py in the Charts directory. That's what basically creates the "paper" upon which the datapoints are drawn.

You probably want to be able to turn them on and off, and potentially set how many and what value - and that's where the trickyness comes in.


Re: Smith chart - admittance scale ?

 

On Wed, Nov 18, 2020 at 11:02 AM, OneOfEleven wrote:


Anyway, it's a Windows app and you'll find it here ..
Great, thanks for that.

I'd already looked through the NanoVNA references and performed a Google search but couldn't find it.

--
Regards,

Martin - G8JNJ


Re: TRANSFORM function

 

It is firmware defendant. Look into doing a firmware update or buy yourself
a Christmas present.

On Tue, Nov 17, 2020, 9:32 PM Noji Ratzlaff <nojiratz@...> wrote:

Several have alluded to the TRANSFORM button on the NanoVNA, but I
couldn't seem to find it on mine. Is this firmware-dependent, or do I need
to make it appear by some secret handshake? My NanoVNA is neither a -H nor
a -F, but the original.