Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

CI Coverage PyPI License

dls-moxa-configurator

GUI for building a Moxa NPort 6650-16 terminal-server configuration file (*_config.ini) to import through the unit's web UI.

Set the unit-wide settings (name, location, IP, netmask and gateway) at the top. Then give each of the 16 channels an alias and either a device from the library, which sets baud rate, data bits, parity, stop bits, flow control, interface (RS-232/422/485) and FIFO for you, or Custom…, which lets you set them by hand. Channel n is TCP port 7000+n.

Everything else comes from a template exported from a working unit (src/dls_moxa_configurator/templates/NP6650-16.ini), with its channels reset to unused. The template has no password lines, so generated files carry no credentials; set the admin password on the unit itself.

What Where
Source https://github.com/DiamondLightSource/dls-moxa-configurator
PyPI pip install dls-moxa-configurator
Releases https://github.com/DiamondLightSource/dls-moxa-configurator/releases

Running

uvx dls-moxa-configurator                        # released version
uv run dls-moxa-configurator                     # from a checkout of this repo
uvx dls-moxa-configurator -d my_devices.toml     # with extra devices

Opening a file

Open .ini… loads a file back into the window, which is the quickest way to make several similar units: open one, change the name, IP and anything else that differs, and save under a new name. Both dialogs start in the folder you last used, which is remembered between runs.

The tool ends each file it saves with a comment block recording the device on each port:

; dls-moxa-configurator 0.1.0: channel devices
; port 1: MKS937A
; port 2: custom
; port 3: unused

The port's actual settings always win over this record: if a recorded device no longer matches them (for example, the file was edited by hand or the library entry has changed), the port opens as Custom… and you get a note. A unit's own export won't have the record, so for those each port's device is guessed from its serial settings, and where several devices share the same settings the port opens as Custom…. Only the settings this tool manages are read; everything else in the opened file is replaced by the template.

Devices

The bundled devices are in src/dls_moxa_configurator/devices.toml, written in plain serial terms:

[[device]]
name = "MKS937A"
category = "Vacuum"      # drop-down heading; default "Other"
description = "MKS 937A gauge controller"
baud = 9600
parity = "even"         # data_bits = 8, stop_bits = 1, interface = "rs232"
                        # and fifo = true by default

To add a device for everyone, add a block to that file. To try one out without a release, put it in your own TOML file and pass it with -d (repeatable). A device there replaces a bundled one with the same name.

In the channel drop-down, devices are grouped under their category (A–Z, with uncategorised devices under "Other" at the end), sorted by name within each group. Names must be unique across all categories.

Category Name Settings
Diagnostics enzLoCuM4 9600 8N1
Motion Control Geobrick 38400 8N1
Motion Control MicronixMDD 38400 8N1 rs485-2w no-FIFO
Vacuum DigitelMPC 9600 8N1
Vacuum DigitelQPC 9600 8N1
Vacuum MKS937A 9600 8E1
Vacuum MKS937B 9600 8N1
Vacuum rgaPC 38400 8N1

Metadata

Release files for dls-moxa-configurator 1.0.0b1

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

Source distribution (sdist)

Source distribution for dls-moxa-configurator 1.0.0b1
File Size Uploaded Provenance Actions
dls_moxa_configurator-1.0.0b1.tar.gz 126.1 kB Without provenance Details for dls_moxa_configurator-1.0.0b1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dls-moxa-configurator 1.0.0b1
File Interpreter ABI Platform Actions
dls_moxa_configurator-1.0.0b1-py3-none-any.whl Python 3 none any Details for dls_moxa_configurator-1.0.0b1-py3-none-any.whl

Total release size: 158.8 kB

Release files / dls_moxa_configurator-1.0.0b1.tar.gz

Download URL dls_moxa_configurator-1.0.0b1.tar.gz
Size 126.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f067f72c01e40d0919affb11c63a8d19aa2b5027bd1db762443da07b4a516ce4
BLAKE2b-256 checksum
How to use checksums
35dec3dd4ca413c819baadffd49941cdd1cf308d1d6c79b9e1577dfbe09b285c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / dls_moxa_configurator-1.0.0b1-py3-none-any.whl

Download URL dls_moxa_configurator-1.0.0b1-py3-none-any.whl
Size 32.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
28637da3d7f7df152a9103ba8ed3cd0ea7ef6bf1c893884f56a01c6faee8cf44
BLAKE2b-256 checksum
How to use checksums
7cc757067f5ea59142f895f0690a27f776b0a0a81c786a407fe5f3a17e1f7a03
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for dls-moxa-configurator 1.0.0b1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release
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