开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

connecting to macOS to issue commands


 

Hello,
?
I want to connect to tinySA from macOS. I did it previously for updating a firmware (dfu-util) and now tried tinySA.py following the steps according to athome.kaashoek.com/tinySA/python/. Capturing the display was ok. The device is tinySA Basic with 1.4175 firmware.
?
Now I'd like to issue other commands, explicitly to calibrate the low output level.

But don't know which scripts are used in the drivers. I only found info that there are windows and linux drivers. Would like to try to install from source to macOS. Could someone provide a link? I searched github but appears that Ho-Ro/nanovna-tools are not the right ones.
?
Radek


 

If you can capture the screen you do not need other drivers.
The tinySA is connected as a serial interface and you need something to send serial commands and show the serial responses.
This can be a terminal emulator or a python program
--
Designer of the tinySA
For more info go to


 

This is the response for calibrating the output level:
?
leveloffset low output -1.0
?
tinySA.py: error: no such option: -1


 

Did you forget the underscore between low and output?
--
Designer of the tinySA
For more info go to


 

Yes, I did, the response is like this:
?
% python ./tinySA.py leveloffset low_output -1
Usage: tinySA.py: [options]
?
tinySA.py: error: no such option: -1

?


 

Use -e switch and enclose multi word command in quotes
?
c:\work\VNA\tinySA\python>python tinysa.py -h
Usage: tinysa.py: [options]
Options:
? -h, --help ? ? ? ? ? ?show this help message and exit
? -p, --plot ? ? ? ? ? ?plot rectanglar
? -c, --scan ? ? ? ? ? ?scan by script
? -S START, --start=START
? ? ? ? ? ? ? ? ? ? ? ? start frequency
? -E STOP, --stop=STOP ?stop frequency
? -N POINTS, --points=POINTS
? ? ? ? ? ? ? ? ? ? ? ? scan points
? -P PORT, --port=PORT ?port
? -d DEV, --dev=DEV ? ? device node
? -v, --verbose ? ? ? ? verbose output
? -C FILE, --capture=FILE
? ? ? ? ? ? ? ? ? ? ? ? capture current display to FILE
? -e COMMAND ? ? ? ? ? ?send raw command
? -o SAVE ? ? ? ? ? ? ? write CSV file
? -l LIST ? ? ? ? ? ? ? list SD card files
? -r READ ? ? ? ? ? ? ? read SD card files
c:\work\VNA\tinySA\python>python tinysa.py -e leveloffset
leveloffset low -0.8
leveloffset low_output 0.0
leveloffset switch 0.0
leveloffset receive_switch 1.1
leveloffset out_switch 0.0
leveloffset lna 0.7
leveloffset harmonic 1.6
leveloffset harmonic_lna 2.9
leveloffset shift 1.4
leveloffset shift1 -0.4
leveloffset shift2 0.2
leveloffset shift3 -0.0
leveloffset shift4 0.1
leveloffset drive1 0.0
leveloffset drive2 -2.0
leveloffset drive3 -2.0
leveloffset direct 1.7
leveloffset direct_lna 4.1
leveloffset ultra -0.8
leveloffset ultra_lna 0.6
leveloffset adf 0.0
leveloffset direct_output 0.0

c:\work\VNA\tinySA\python>python tinysa.py -e "leveloffset low_output -1"

c:\work\VNA\tinySA\python>python tinysa.py -e leveloffset
leveloffset low -0.8
leveloffset low_output -1.0
leveloffset switch 0.0
leveloffset receive_switch 1.1
leveloffset out_switch 0.0
leveloffset lna 0.7
leveloffset harmonic 1.6
leveloffset harmonic_lna 2.9
leveloffset shift 1.4
leveloffset shift1 -0.4
leveloffset shift2 0.2
leveloffset shift3 -0.0
leveloffset shift4 0.1
leveloffset drive1 0.0
leveloffset drive2 -2.0
leveloffset drive3 -2.0
leveloffset direct 1.7
leveloffset direct_lna 4.1
leveloffset ultra -0.8
leveloffset ultra_lna 0.6
leveloffset adf 0.0
leveloffset direct_output 0.0

c:\work\VNA\tinySA\python>
?
--
Designer of the tinySA
For more info go to


 

Thank you!
?
So I did
python ./tinySA.py -e 'leveloffset low output -1'
?
and also in the same vein
python ./tinySA.py -e saveconfig
?
Radek