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/12760I 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.