-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
capture error - wrong screen size using nanovna_capture.py (Windows 10, NanoVNA H) #4
Comments
The script was developed on my NanoVNA-H.
Sorry, I do not know what's wrong with your system, you should try to debug a little bit to help me to support you. You should anyhow be familiar with python and the serial communication syntay when you want to roll your own analysis software. Just spread some print(...) statements into the code, e.g. after line 114 ( print( captured_bytes )
print( len( captured_bytes ) ) This should give you a long output like this (only last part of the very long line shown), the last number may be different (my example shows the correct len).
If the output looks very different, please post here.
Screen size is automatically set for the detected (or forced by option) device, default is NanoVNA-H (tinySA has the same screen size and the same command structure). The device setting also changes the name of the png file. # The size of the screen (2.8" devices)
width = 320
height = 240
# set by option
if options.tinysa:
devicename = 'tinySA'
elif options.ultra:
devicename = 'tinySA Ultra'
width = 480
height = 320
elif options.h4:
devicename = 'NanoVNA-H4'
width = 480
height = 320
# get it from USB descriptor (supported by newer FW from DiSlord or Erik)
elif device and 'tinySA4' in device.description:
devicename = 'tinySA Ultra'
width = 480
height = 320
elif device and 'tinySA' in device.description:
devicename = 'tinySA'
elif device and 'NanoVNA-H4' in device.description:
devicename = 'NanoVNA-H4'
width = 480
height = 320
# fall back to default name
else:
devicename = 'NanoVNA-H' |
As an extra service for @krupis I built the script nanovna_communication_template.py.
Please play with this tool to debug your system issues. |
Either @krupis has solved his problem or is no longer interested in this topic - either way, I'm closing here. You can contact me here if you are still interested. I cannot reproduce the error, neither under Linux nor under Windows. |
We have discussed about this a little bit:
NanoVNA-Saver/nanovna-saver#676
After I have replaced:
with:
to fix my initial issue:
I still cannot get to run this script on NanoVNA -H due to the following error:
Have you tried to run this on NanoVNA-H? Is that an issue related to NanoVNA - H? I tried using --help but does not seem to give any information regarding screen size.
The text was updated successfully, but these errors were encountered: