-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Port Number Mapping for libusb1.0 #2043
Comments
So this essentially helps for systems that do not serve a device (on bus) number, but serve a port number? I think the relatively recent fix to actually handle the device number tried in fact a port number method in earlier iterations. Can you please re-post this as an actual github pull request, with attribution, CI tests and everything? Dpcs would need an update for example. If this is not implemented with libusb-0.x (or is it?), some ifdef's are due or at least log messages for skipped unsupported-by-this-build config option, etc. I'm concerned about those "NO NO NO" abortive returns in particular. I guess they remained from some experiment to balance mge/liebert HIDs and do not directly relate to this proposed feature? |
Yes, if the hardware supports it
It takes time. I added a new variable portno because according to the documentation, port is only used for COM ports. Does it make sense to use this parameter for COM and USB ports in different senses? Such a solution may simplify configuration and description in the future.
In libusb 0.1 this is also possible. Not in the usual way, but it is possible.
I'm the one who couldn't handle the diff. I didn't want to use liebert-hid, which doesn't show the temperature on some devices. I'll be back when I finish working on the integration requirements and prepare a correct patch. |
Well, |
I have prepared a patch with pre-installed define.
Thank you very much |
NOTE: Found what seems to be the previous experience in this area: #1819 |
…ools#2043] Signed-off-by: Jim Klimov <[email protected]>
…pstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…ay be ignored in certain builds [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…, just note it may be ignored in certain builds [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…urrent build [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…; free the variables in order of definition (ease maintenance) [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…BMATCHER_REGEXP_ARRAY_LIMIT too (not a hardcoded number like before) [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
… serial mode) [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…-related libs [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…pstools#2043] Signed-off-by: Jim Klimov <[email protected]>
Signed-off-by: Jim Klimov <[email protected]>
…ng value [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
… just not always active [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…re possible [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
… serial mode) [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
…2043] Signed-off-by: Jim Klimov <[email protected]>
Thanks! I've snow-balled this a bit and made a PR #2054 starting from your patch-file :) Also extended
|
Thank you very much, you have done a lot of work that I would not be able to cope with to some extent. |
…by "busport" among config options [networkupstools#2043] Signed-off-by: Jim Klimov <[email protected]>
… in the OS [#2043] Signed-off-by: Jim Klimov <[email protected]>
Adds the ability to filter devices by USB port number using the portno variable
Necessary if it is impossible to distinguish several identical devices by other method (devices are identical, have no serial number, etc.).
nut.portno.add.patch.zip
The text was updated successfully, but these errors were encountered: