Driver for StarTech 5G7AINDRM-USB-A-HUB (7-port managed industrial USB hub) #2324
+633
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I’m proposing a new INDI core driver to control the StarTech 7-port managed industrial USB 3.2 Gen 1 USB Hub (5G7AINDRM-USB-A-HUB https://www.startech.com/en-us/usb-hubs/5g7aindrm-usb-a-hub).
What this driver does:
Switch individual ports ON/OFF
Switch all ports ON/OFF
Provides port aliases in the INDI Control Panel
Persists configuration through standard INDI config save/load
StarTech provides a small CLI tool for hub management, but no public SDK/API. I wanted to avoid depending on vendor software (closed-source and not always available on all targets), so this driver talks to the hub directly via its serial management interface, using the device protocol.
The driver was build and tested extensively on Linux with KStars/Ekos and real 5G7AINDRM-USB-A-HUB hardware.
Implementation notes:
Direct serial communication (no external vendor dependencies)
Follows INDI core structure and conventions as closely as possible but I'm not a programmer so...
Tested in KStars/Ekos on Linux with real hardware
Most of the code was written with the help of AI tooling, and while the driver is working well in my environment, I’d appreciate an experienced maintainer review for code quality and INDI style compliance.
If this is a useful addition, I’m happy to support further testing and iterate on requested changes.
Thanks,
Massimo