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 is a command-line front-end. The HW-VX configuration protocol (UDP), reader command framing, and TCP communication all live in its uhfreader18 dependency; this package adds the interactive menu, sub-commands, and output formatting.

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 set reader address, power, or scan time 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 reader address, transmit power (dBm), or inventory scan time (x100ms)
hw-vx-config set-reader-addr <ip> <port> <new-address>
hw-vx-config set-reader-power <ip> <port> <power>
hw-vx-config set-reader-scantime <ip> <port> <scan-time>

Each reader command takes --adr <n> to target a specific reader address (default 0). The <port> is the module's configured TCP port, read from its network configuration.

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

The HW-VX protocol API lives in uhfreader18.hwvx:

from uhfreader18.hwvx 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)

These names are also re-exported from hw_vx_config for backward compatibility. See the API reference in uhfreader18 docs/HWVX.md, plus 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 CLI front-end — discovery, network/serial configuration, DHCP, reboot
uhfreader18 RFID command/response, CRC validation, tag push/heartbeat streams, and the uhfreader18.hwvx HW-VX configuration protocol

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 3.0.0

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 3.0.0
File Size Uploaded Provenance Actions
hw_vx_config-3.0.0.tar.gz 24.6 kB With provenance Details for hw_vx_config-3.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 41.3 kB

Release files / hw_vx_config-3.0.0.tar.gz

Download URL hw_vx_config-3.0.0.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4d4a1d425cd6dd935851852e9f3c1c1283c7947e7965a68aa467a7a27ffe2cde
BLAKE2b-256 checksum
How to use checksums
28a36e8027a0eeaea3ad7e0d5e5a8e7b21a71fa0216d4ea704a514c019a2ccef
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 11, 2026.

Transparency log

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

Download URL hw_vx_config-3.0.0-py3-none-any.whl
Size 16.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a65a7986420f44c9ff4c380defec2b2d8a1f721f748e1220b6db6500569aab2b
BLAKE2b-256 checksum
How to use checksums
49050cd1efac89ce1619444e1e8c16ea4ac505f77e9f5f51c66e78b588da55f1
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 11, 2026.

Transparency log

Security for hw-vx-config 3.0.0

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-3.0.0.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 11, 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