On 8/9/20 7:20 PM, Charles Albert wrote:
After a few issues, I was able to get NanoVNA-Saver (Python) up and running on my Linux Mint 19.3 machine. Everything seems to work just fine but for one small problem...
Every time I start NanoVNA-Saver and hit the connect button on the main screen, the program crashes and exits. (this happens so fast that I can't see any error messages) BUT, if I immediately relaunch the program and hit the connect button again, all is well. The software connects to the device and begins doing everything it should.
Now, here comes the really odd bit...
If I disconnect from the device and exit NanoVNA-Saver, and then relaunch, the same thing happens as above. If, however, I just exit NanoVNA-Saver WITHOUT DISCONNECTING from the device and then relaunch, the software will connect to the device and work just fine.
This is, to me, a minor thing. I've just been shrugging my shoulders and relaunching so it will connect. Takes what? Maybe 10 seconds?
It just seems strange.
I'm going to guess something about the drivers for the USB device - is it a serial port, I'm too lazy to go look how my nanoVNA shows up, but I do notice the software imports serial (i.e. Pyserial)
You might try reinstalling the Pyserial package. There's some "pip" command that does it - I use Anaconda, so there's a conda update thing too.
And there's always weirdnesses about USB serial ports - you plug it in, and it takes some amount of time before
a) /dev/tty... shows up
b) /dev/tty... is actually usable