Skip to main content

hw-vx-config

PyPI version Python License: MIT CI

Linux network configuration tool and Python library for HW-VX6330K / HW-VX6346KL serial-to-Ethernet modules. Supports UDP discovery, network and serial settings, remote-server configuration, DHCP, reboot, and RFID reader commands.

hw-vx-config owns the HW-VX configuration plane. UHFReader18 command framing and TCP communication come from its uhfreader18 dependency.

Tested on Linux. macOS and Windows are not supported targets yet.

Features

  • Discover devices through limited broadcast on the same LAN/VLAN.
  • Sweep every usable host in an IPv4 CIDR when broadcast cannot reach a device.
  • Configure through unicast or broadcast-by-MAC.
  • Read and write network, serial, remote-server, DHCP, and advanced settings.
  • Reboot modules and change network addressing.
  • Query RFID reader information and change reader address through uhfreader18.
  • Use the interactive menu or scriptable CLI.
  • Use HwVxDevice and HwVxNetworking directly from Python.

Requirements

  • Python 3.10 or newer
  • Linux
  • Device reachable on the local network
  • UDP port 65535 permitted between host and module

Install

pip install hw-vx-config

For isolated CLI use:

pipx install hw-vx-config

Quick Start

# Discover modules through limited broadcast
hw-vx-config search

# Sweep one routed subnet
hw-vx-config search --network 172.27.43.64/28

# Show one module's complete configuration
hw-vx-config config 192.168.1.100

Running without arguments opens the interactive menu:

hw-vx-config

CLI Reference

# Discovery
hw-vx-config search
hw-vx-config search --network 10.10.23.0/24

# Configuration
hw-vx-config config <ip>
hw-vx-config set-ip <current-ip> <new-ip>
hw-vx-config set-ip <current-ip> <new-ip> \
  --mask 255.255.255.0 --gateway 10.10.23.1
hw-vx-config dhcp <ip> on|off
hw-vx-config reboot <ip>

# Interactive UI
hw-vx-config interactive

RFID Reader Commands

These commands connect to the module's configured TCP port and use uhfreader18.RfidClient for the binary reader protocol.

# Discover reader address and print firmware, power, and scan time
hw-vx-config reader-info <ip> <port>

# Change discovered reader address
hw-vx-config set-reader-addr <ip> <port> <new-address>

For direct protocol use:

from uhfreader18 import RfidClient

with RfidClient("192.168.1.100", 2077) as reader:
    info, address = reader.discover_address()
    print(address, info.version)

RfidClient moved from hw_vx_config to uhfreader18 in hw-vx-config 2.0.0:

# 1.x
from hw_vx_config import RfidClient

# 2.x
from uhfreader18 import RfidClient

Python Library

from hw_vx_config import HwVxDevice, HwVxNetworking

with HwVxNetworking() as network:
    readers = network.search()

with HwVxDevice("192.168.1.100") as device:
    device.connect()
    config = device.get_config()
    print(config.ip_address, config.baud_rate)

See examples/library_usage.py and examples/rfid_usage.py.

Package Relationship

flowchart LR
    APP[Application] --> CONFIG[hw-vx-config]
    APP --> RFID[uhfreader18]
    CONFIG -->|runtime dependency| RFID
    CONFIG <-->|UDP 65535 configuration| HWVX[HW-VX module]
    RFID <-->|TCP command/response| HWVX
    HWVX -->|TCP tag push| RFID
Package Responsibility
hw-vx-config HW-VX discovery, network/serial configuration, DHCP, reboot
uhfreader18 RFID command/response, CRC validation, tag push and heartbeat streams

Discovery Modes

L2 broadcast

hw-vx-config search

Uses 255.255.255.255. Fastest when host and module share a LAN/VLAN.

CIDR sweep

hw-vx-config search --network 172.27.43.64/28

Sends discovery to every usable address with one UDP socket, then collects responses. A prefixless value such as 10.10.23.0 defaults to /24.

Troubleshooting

Problem Likely cause Fix
search returns nothing Broadcast cannot cross router/VLAN Use search --network <cidr>
search returns nothing Firewall blocks UDP 65535 Permit UDP 65535 inbound and outbound
Config command times out Module IP changed or route is missing Ping target and run discovery again
RFID command times out Wrong TCP port or serial bridge issue Verify module remote/serial settings
RFID broadcast gets no response Reader power/address/serial wiring issue Check power and serial wiring

Development

pip install -e ".[dev,typing,cov]"

ruff check src tests
ruff format --check src tests
mypy src
pytest
pytest --cov=hw_vx_config --cov-report=term-missing
python -m build

Tests mock network boundaries; no device is required.

CI runs lint, formatting, and tests on Python 3.10–3.13. Version tags such as v2.0.0 run CI before publishing through PyPI Trusted Publishing.

Protocol and Documentation

Uninstall

pip uninstall hw-vx-config
# or
pipx uninstall hw-vx-config

Tested With

  • Hardware: HW-VX6330K, HW-VX6346KL
  • Configuration protocol: UDP port 65535, ASCII request/reply
  • RFID bridge: TCP to UHFReader18 serial protocol
  • OS: Linux, including Ubuntu 22.04+

License

MIT — see LICENSE.

Metadata

Release files for hw-vx-config 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hw-vx-config 2.1.1
File Size Uploaded Provenance Actions
hw_vx_config-2.1.1.tar.gz 32.3 kB With provenance Details for hw_vx_config-2.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hw-vx-config 2.1.1
File Interpreter ABI Platform Actions
hw_vx_config-2.1.1-py3-none-any.whl Python 3 none any Details for hw_vx_config-2.1.1-py3-none-any.whl

Total release size: 55.1 kB

Release files / hw_vx_config-2.1.1.tar.gz

Download URL hw_vx_config-2.1.1.tar.gz
Size 32.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ac72512cacdfebd8c02d0c099a3242caf3726b3390fad88405cdae0df17a50e1
BLAKE2b-256 checksum
How to use checksums
c8e11b058eeaa3bd0d292ebe15cc2fac833dd8e7db47a9df60f0e1b8e860e258
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Release files / hw_vx_config-2.1.1-py3-none-any.whl

Download URL hw_vx_config-2.1.1-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
96eed9e9ca41ce73c6c5c3d158caa74257a0e012c70e1c688177011c4e0f0314
BLAKE2b-256 checksum
How to use checksums
7029c95a15ce83dad6077ff4381f5270c69bb718ffade092b8fe370b9862c8d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

Security for hw-vx-config 2.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for hw_vx_config-2.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page