git: e045eef41af9 - main - comms/nanovna-saver: Update to 3.10
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 11 Jan 2022 19:11:07 UTC
The branch main has been updated by db: URL: https://cgit.FreeBSD.org/ports/commit/?id=e045eef41af9f313508398ebebf119be3d9c5574 commit e045eef41af9f313508398ebebf119be3d9c5574 Author: Diane Bruce <db@FreeBSD.org> AuthorDate: 2022-01-11 19:02:43 +0000 Commit: Diane Bruce <db@FreeBSD.org> CommitDate: 2022-01-11 19:10:45 +0000 comms/nanovna-saver: Update to 3.10 - Fixed FreeBSD specifc Sysctl.py code so it will no longer core if no USB device plugged in - changed delay in NanoVNA__V2.py since too fast for some devices see https://github.com/NanoVNA-Saver/nanovna-saver/issues/441 Changelog ========= v0.3.10 ------ - Default Band ranges for 5 and 9cm - Layout should fit on smaller screens - Fixed fixed axis settings - Show VNA type in port selector - Recognise tinySA (screenshot only) - Some more cables in TDR - Reference plane applied after calibration - Calibration fixes by DiSlord v0.3.9 ------ - TX Power on V2 - New analysis - Magnitude Z Chart - VSWR Chart improvements Reported by: portscout --- comms/nanovna-saver/Makefile | 3 +-- comms/nanovna-saver/distinfo | 6 +++--- .../files/patch-NanoVNASaver_Hardware_Hardware.py | 21 +++++++++------------ .../patch-NanoVNASaver_Hardware_NanoVNA__V2.py | 12 ++++++++++++ comms/nanovna-saver/files/patch-setup.py | 14 -------------- 5 files changed, 25 insertions(+), 31 deletions(-) diff --git a/comms/nanovna-saver/Makefile b/comms/nanovna-saver/Makefile index c631a10a7f82..52e6ed42cdfe 100644 --- a/comms/nanovna-saver/Makefile +++ b/comms/nanovna-saver/Makefile @@ -1,7 +1,6 @@ PORTNAME= nanovna-saver DISTVERSIONPREFIX= v -DISTVERSION= 0.3.8 -PORTREVISION= 2 +DISTVERSION= 0.3.10 CATEGORIES= comms hamradio MAINTAINER= hamradio@FreeBSD.org diff --git a/comms/nanovna-saver/distinfo b/comms/nanovna-saver/distinfo index 6e9c3dc18751..4d12dbe4d6ec 100644 --- a/comms/nanovna-saver/distinfo +++ b/comms/nanovna-saver/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1609597287 -SHA256 (mihtjel-nanovna-saver-v0.3.8_GH0.tar.gz) = 761e5ec2d5efc6b0843038b9d241bcbdc433a76d68a5f0631be367a629e78163 -SIZE (mihtjel-nanovna-saver-v0.3.8_GH0.tar.gz) = 357896 +TIMESTAMP = 1641829596 +SHA256 (mihtjel-nanovna-saver-v0.3.10_GH0.tar.gz) = 202c907125015e2fb26926ef1ce365321d749207a74e3029e729e89e50acda88 +SIZE (mihtjel-nanovna-saver-v0.3.10_GH0.tar.gz) = 477821 diff --git a/comms/nanovna-saver/files/patch-NanoVNASaver_Hardware_Hardware.py b/comms/nanovna-saver/files/patch-NanoVNASaver_Hardware_Hardware.py index 403e4cdc3040..970c3e21cebe 100644 --- a/comms/nanovna-saver/files/patch-NanoVNASaver_Hardware_Hardware.py +++ b/comms/nanovna-saver/files/patch-NanoVNASaver_Hardware_Hardware.py @@ -1,31 +1,28 @@ ---- NanoVNASaver/Hardware/Hardware.py.orig 2020-11-01 13:28:10 UTC +--- NanoVNASaver/Hardware/Hardware.py.orig 2022-01-04 07:44:03 UTC +++ NanoVNASaver/Hardware/Hardware.py -@@ -33,6 +33,7 @@ from NanoVNASaver.Hardware.NanoVNA_H import NanoVNA_H - from NanoVNASaver.Hardware.NanoVNA_H4 import NanoVNA_H4 +@@ -34,6 +34,7 @@ from NanoVNASaver.Hardware.NanoVNA_H4 import NanoVNA_H from NanoVNASaver.Hardware.NanoVNA_V2 import NanoVNA_V2 + from NanoVNASaver.Hardware.TinySA import TinySA from NanoVNASaver.Hardware.Serial import drain_serial, Interface +from NanoVNASaver.Hardware.Sysctl import usb_vid_pid logger = logging.getLogger(__name__) -@@ -63,8 +64,12 @@ def get_interfaces() -> List[Interface]: - interfaces = [] - # serial like usb interfaces +@@ -80,6 +81,11 @@ def get_interfaces() -> List[Interface]: for d in list_ports.comports(): -- if platform.system() == 'Windows' and d.vid is None: -- d = _fix_v2_hwinfo(d) + if platform.system() == 'Windows' and d.vid is None: + d = _fix_v2_hwinfo(d) + if platform.system() == 'FreeBSD': + logger.debug("Found FreeBSD USB port %s", d.device) + vid_pid = usb_vid_pid(d.device) + d.vid = vid_pid[0] + d.pid = vid_pid[1] -+ for t in USBDEVICETYPES: if d.vid != t.vid or d.pid != t.pid: continue -@@ -74,7 +79,6 @@ def get_interfaces() -> List[Interface]: - iface.port = d.device - interfaces.append(iface) +@@ -94,7 +100,6 @@ def get_interfaces() -> List[Interface]: + + logger.debug("Interfaces: %s", interfaces) return interfaces - diff --git a/comms/nanovna-saver/files/patch-NanoVNASaver_Hardware_NanoVNA__V2.py b/comms/nanovna-saver/files/patch-NanoVNASaver_Hardware_NanoVNA__V2.py new file mode 100644 index 000000000000..31201d820a8a --- /dev/null +++ b/comms/nanovna-saver/files/patch-NanoVNASaver_Hardware_NanoVNA__V2.py @@ -0,0 +1,12 @@ +--- NanoVNASaver/Hardware/NanoVNA_V2.py.orig 2022-01-11 18:46:18 UTC ++++ NanoVNASaver/Hardware/NanoVNA_V2.py +@@ -55,7 +55,8 @@ _ADDR_HARDWARE_REVISION = 0xf2 + _ADDR_FW_MAJOR = 0xf3 + _ADDR_FW_MINOR = 0xf4 + +-WRITE_SLEEP = 0.05 ++#WRITE_SLEEP = 0.05 ++WRITE_SLEEP = 0.1 + + _ADF4350_TXPOWER_DESC_MAP = { + 0: '9dB attenuation', diff --git a/comms/nanovna-saver/files/patch-setup.py b/comms/nanovna-saver/files/patch-setup.py deleted file mode 100644 index 760681de939c..000000000000 --- a/comms/nanovna-saver/files/patch-setup.py +++ /dev/null @@ -1,14 +0,0 @@ ---- setup.py.orig 2021-01-02 14:25:03 UTC -+++ setup.py -@@ -38,11 +38,4 @@ setup( - 'NanoVNASaver = NanoVNASaver.__main__:main' - ], - }, -- install_requires=[ -- 'pyserial', -- 'PyQt5', -- 'numpy', -- 'scipy', -- 'cython', -- ], - )