nanovna_remote.py - Python tool for remote control of the NanoVNA-H from the PC #nanovna-h #scripting #python #nanovna-tools


 

Hi,
as written just around the corner https://groups.io/g/tinysa/topic/tinysa_remote_py_python/94944540 there's a new tool in my toolbox:

https://github.com/Ho-Ro/nanovna-tools/raw/main/nanovna_remote.py

Remote control for the NanoVNA or tinySA - mirror the screen to your PC and operate the device with the mouse. The keys + and - zoom in and out, s takes a screenshot with timestamp, ESC quits the program.

usage: nanovna_remote.py [-h] [-d DEVICE] [-t | -n] [-z {2,3,4}]

optional arguments:
-h, --help show this help message and exit
-d DEVICE, --device DEVICE
connect to serial usb device
-n, --nanovna use with NanoVNA (default)
-t, --tinysa use with tinySA
-z {2,3,4}, --zoom {2,3,4}
zoom the screen image

Martin


 

Martin,

1) thanks for doing this, it's much appreciated.

2) the link below took one straight to the code, where lines 60-64 show:


# The size of the screen
width = 320
height = 240
which is OK for an original nanoVNA(-H) or a tinySA. *However*, the *H4* variant of the nanoVNA and the new tinySA *Ultra* use 4" 480×320 screens.

I've not had a sensible opportunity to check the script out with my own H4 or tinySA, but thought I'd mention it now, to get a view from yourself.

73, Stay Safe,

Robin, G8DQX

On 12/11/2022 09:19, Ho-Ro wrote:

Hi,
as written just around the cornerhttps://groups.io/g/tinysa/topic/tinysa_remote_py_python/94944540 there's a new tool in my toolbox:

https://github.com/Ho-Ro/nanovna-tools/raw/main/nanovna_remote.py

Remote control for the NanoVNA or tinySA - mirror the screen to your PC and operate the device with the mouse. The keys + and - zoom in and out, s takes a screenshot with timestamp, ESC quits the program.

usage: nanovna_remote.py [-h] [-d DEVICE] [-t | -n] [-z {2,3,4}]

optional arguments:
-h, --help show this help message and exit
-d DEVICE, --device DEVICE
connect to serial usb device
-n, --nanovna use with NanoVNA (default)
-t, --tinysa use with tinySA
-z {2,3,4}, --zoom {2,3,4}
zoom the screen image

Martin


 

On Sun, Nov 13, 2022 at 06:29 PM, G8DQX list wrote:


*However*, the *H4* variant of the nanoVNA and the new tinySA *Ultra* use 4"
480×320 screens.
Robin,
Good hint, should work for the bigger ones now - untested because of the HW not (yet) available.
Martin

usage: nanovna_remote.py [-h] [-d DEVICE] [-n | --h4 | -t | --ultra] [-z {2,3,4}]

optional arguments:
-h, --help show this help message and exit
-d DEVICE, --device DEVICE
connect to serial usb device
-n, --nanovna use with NanoVNA-H (default)
--h4 use with NanoVNA-H4
-t, --tinysa use with tinySA
--ultra use with tinySA Ultra
-z {2,3,4}, --zoom {2,3,4}

as well as

usage: nanovna_capture.py [-h] [-d DEVICE] [-n | --h4 | -t | --ultra] [-o OUT]

optional arguments:
-h, --help show this help message and exit
-d DEVICE, --device DEVICE
connect to device
-n, --nanovna use with NanoVNA-H (default)
--h4 use with NanoVNA-H4
-t, --tinysa use with tinySA
--ultra use with tinySA Ultra
-o OUT, --out OUT write the data into file OUT