Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Nanovna-Users
- Messages
Search
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: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 variousThanks 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
toggle quoted message
Show quoted text
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 |
Re: Serial communication with uC
#nanovna-v2
On 11/18/20 12:31 PM, Laps wrote:
Hi everyone!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: 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,
toggle quoted message
Show quoted text
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. --
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:
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.
toggle quoted message
Show quoted text
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! |
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: TRANSFORM function
The battery will depend on the source where you got your unit.
toggle quoted message
Show quoted text
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 |
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.
toggle quoted message
Show quoted text
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: Smith chart - admittance scale ?
Hi Gyula,
toggle quoted message
Show quoted text
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, |
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: TRANSFORM function
It is firmware defendant. Look into doing a firmware update or buy yourself
toggle quoted message
Show quoted text
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 |
to navigate to use esc to dismiss