NanoVNASaver.Hardware package

Submodules

NanoVNASaver.Hardware.AVNA module

class NanoVNASaver.Hardware.AVNA.AVNA(iface: Interface)[source]

Bases: VNA

isValid()[source]
name = 'AVNA'
resetSweep(start: int, stop: int)[source]
setSweep(start, stop)[source]

NanoVNASaver.Hardware.Convert module

NanoVNASaver.Hardware.Convert.get_argb32_pixmap(image_data: bytes, width, height) QPixmap[source]
NanoVNASaver.Hardware.Convert.get_rgb16_pixmap(image_data: bytes, width, height) QPixmap[source]

NanoVNASaver.Hardware.Hardware module

class NanoVNASaver.Hardware.Hardware.USBDevice(vid, pid, name)

Bases: tuple

name

Alias for field number 2

pid

Alias for field number 1

vid

Alias for field number 0

NanoVNASaver.Hardware.Hardware.detect_version(serial_port: Serial) str[source]
NanoVNASaver.Hardware.Hardware.get_VNA(iface: Interface) VNA[source]
NanoVNASaver.Hardware.Hardware.get_comment(iface: Interface) str[source]
NanoVNASaver.Hardware.Hardware.get_info(serial_port: Serial) str[source]
NanoVNASaver.Hardware.Hardware.get_interfaces() list[Interface][source]
NanoVNASaver.Hardware.Hardware.get_portinfos() list[str][source]
NanoVNASaver.Hardware.Hardware.usb_typename(device: ListPortInfo) str[source]

NanoVNASaver.Hardware.JNCRadio_VNA_3G module

class NanoVNASaver.Hardware.JNCRadio_VNA_3G.JNCRadio_VNA_3G(iface: Interface)[source]

Bases: NanoVNA

getScreenshot() QPixmap[source]
name = 'JNCRadio_VNA_3G'
screenheight = 480
screenwidth = 800
setSweep(start, stop)[source]
sweep_points_max = 1001
sweep_points_min = 11
valid_datapoints: tuple[int, ...] = (501, 11, 101, 1001)

NanoVNASaver.Hardware.LiteVNA64 module

class NanoVNASaver.Hardware.LiteVNA64.LiteVNA64(iface: Interface)[source]

Bases: NanoVNA_V2

disconnect()[source]
getScreenshot() QPixmap[source]
get_features() set[str][source]
init_features() None[source]
static is_lite_vna_64(serial: Serial) bool[source]
name = 'LiteVNA-64'
readValues(value) list[complex][source]
read_fw_version() Version[source]
read_vbat() str[source]
screenheight = 320
screenwidth = 480
setSweep(start, stop)[source]
sweep_max_freq_hz = 6300000000.0
sweep_points_max = 65535
valid_datapoints: tuple[int, ...] = (51, 101, 201, 401, 801, 1024, 1601, 3201, 4501, 6401, 12801, 25601)
class NanoVNASaver.Hardware.LiteVNA64.ScreenshotData(width: int, height: int, pixel_size: int)[source]

Bases: object

data_size() int[source]
static from_header(header_data: bytes) ScreenshotData[source]
get_rgb888_data() bytes[source]
header_size = 5
static rgb565_to_888(rgb565: int) tuple[int, int, int][source]

NanoVNASaver.Hardware.NanoVNA module

class NanoVNASaver.Hardware.NanoVNA.NanoVNA(iface: Interface)[source]

Bases: VNA

getScreenshot() QPixmap[source]
init_features() None[source]
name = 'NanoVNA'
readValues(value) list[complex][source]
read_frequencies() list[int][source]
resetSweep(start: int, stop: int)[source]
screenheight = 240
screenwidth = 320
setSweep(start, stop)[source]

NanoVNASaver.Hardware.NanoVNA_F module

class NanoVNASaver.Hardware.NanoVNA_F.NanoVNA_F(iface: Interface)[source]

Bases: NanoVNA

name = 'NanoVNA-F'
screenheight = 480
screenwidth = 800

NanoVNASaver.Hardware.NanoVNA_F_V2 module

class NanoVNASaver.Hardware.NanoVNA_F_V2.NanoVNA_F_V2(iface: Interface)[source]

Bases: NanoVNA

getScreenshot() QPixmap[source]
name = 'NanoVNA-F_V2'
screenheight = 480
screenwidth = 800

NanoVNASaver.Hardware.NanoVNA_F_V3 module

class NanoVNASaver.Hardware.NanoVNA_F_V3.NanoVNA_F_V3(iface: Interface)[source]

Bases: NanoVNA

getScreenshot() QPixmap[source]
getSerialNumber() str[source]
init_features() None[source]
name = 'NanoVNA-F_V3'
screenheight = 480
screenwidth = 800
sweep_points_max = 801
sweep_points_min = 11
valid_datapoints: tuple[int, ...] = (101, 11, 51, 201, 301, 401, 501, 601, 701, 801)

NanoVNASaver.Hardware.NanoVNA_H module

class NanoVNASaver.Hardware.NanoVNA_H.NanoVNA_H(iface: Interface)[source]

Bases: NanoVNA

name = 'NanoVNA-H'

NanoVNASaver.Hardware.NanoVNA_H4 module

class NanoVNASaver.Hardware.NanoVNA_H4.NanoVNA_H4(iface: Interface)[source]

Bases: NanoVNA_H

name = 'NanoVNA-H4'
screenheight = 320
screenwidth = 480
valid_datapoints: tuple[int, ...] = (101, 11, 51, 201, 401)

NanoVNASaver.Hardware.NanoVNA_V2 module

class NanoVNASaver.Hardware.NanoVNA_V2.NanoVNA_V2(iface: Interface)[source]

Bases: VNA

getCalibration() str[source]
init_features() None[source]
name = 'NanoVNA-V2'
readFirmware() str[source]
readValues(value) list[complex][source]
read_board_revision() Version[source]
read_frequencies() list[int][source]
read_fw_version() Version[source]
resetSweep(start: int, stop: int)[source]
screenheight = 240
screenwidth = 320
setSweep(start, stop)[source]
setTXPower(freq_range, power_desc)[source]
valid_datapoints: tuple[int, ...] = (101, 11, 51, 201, 301, 501, 1023)

NanoVNASaver.Hardware.SV4401A module

class NanoVNASaver.Hardware.SV4401A.SV4401A(iface: Interface)[source]

Bases: NanoVNA

getScreenshot() QPixmap[source]
name = 'SV4401A'
screenheight = 600
screenwidth = 1024
setSweep(start, stop)[source]
sweep_points_max = 1001
sweep_points_min = 101
valid_datapoints: tuple[int, ...] = (501, 101, 1001)

NanoVNASaver.Hardware.SV6301A module

class NanoVNASaver.Hardware.SV6301A.SV6301A(iface: Interface)[source]

Bases: NanoVNA

getScreenshot() QPixmap[source]
name = 'SV6301A'
screenheight = 600
screenwidth = 1024
setSweep(start, stop)[source]
sweep_points_max = 1001
sweep_points_min = 101
valid_datapoints: tuple[int, ...] = (501, 101, 1001)

NanoVNASaver.Hardware.Serial module

class NanoVNASaver.Hardware.Serial.Interface(interface_type: str, comment, *args, **kwargs)[source]

Bases: Serial

NanoVNASaver.Hardware.Serial.drain_serial(serial_port: Serial)[source]

drain up to 64k outstanding data in the serial incoming buffer

NanoVNASaver.Hardware.TinySA module

class NanoVNASaver.Hardware.TinySA.TinySA(iface: Interface)[source]

Bases: VNA

getScreenshot() QPixmap[source]
name = 'tinySA'
readValues(value) list[complex][source]
read_frequencies() list[int][source]
resetSweep(start: int, stop: int)[source]
screenheight = 240
screenwidth = 320
setSweep(start, stop)[source]
valid_datapoints: tuple[int, ...] = (290,)
class NanoVNASaver.Hardware.TinySA.TinySA_Ultra(iface: Interface)[source]

Bases: TinySA

hardware_revision: Version | None = None
name = 'tinySA Ultra'
read_firmware_version() Version[source]

For example, command version in TinySA returns as this tinySA4_v1.4-193-g6ff182b HW Version:V0.5.4 max2871

read_hardware_revision() Version[source]
screenheight = 320
screenwidth = 480
valid_datapoints: tuple[int, ...] = (450, 51, 101, 145, 290)

NanoVNASaver.Hardware.VNA module

class NanoVNASaver.Hardware.VNA.VNA(iface: Interface)[source]

Bases: object

SN = 'NOT SUPPORTED'
connect()[source]
connected() bool[source]
disconnect()[source]
exec_command(command: str, wait: float = 0.05) Iterator[str][source]
flushSerialBuffers()[source]
getCalibration() str[source]
getScreenshot() QPixmap[source]
getSerialNumber() str[source]
get_bandwidths() list[int][source]
get_features() set[str][source]
init_features() None[source]
name = 'VNA'
readFirmware() str[source]
readValues(value) list[complex][source]
read_frequencies() list[int][source]
read_fw_version() Version[source]
reconnect()[source]
resetSweep(start: int, stop: int)[source]
setSweep(start, stop)[source]
setTXPower(freq_range, power_desc)[source]
set_bandwidth(bandwidth: int)[source]
sweep_max_freq_hz = 0.0
sweep_points_max = 101
sweep_points_min = 11
valid_datapoints: tuple[int, ...] = (101, 51, 11)
wait = 0.05

Module contents