Open masterwishx opened 1 week ago
@tormodvolden @jimklimov do you think it's related to how nut proccess libusb or I can test it with xusb if it related to libusb itself?
I have also nut client on windows that read values from nut, also telegraf that read values and write to influxdbv2 for grafana dashboard. Not shure if it can affect on isshue...
Is this causing a problem or is it just that you see the debug message in the log? You'll have to find out what the nut code tries to do, then what to expect from the device and libusb calls.
If you have suspicions about a libusb issue, you must provide LIBUSB_DEBUG=4 logs to start.
xusb can do some HID interrupt transfers, but I don't know if it fits with your device.
Is this causing a problem or is it just that you see the debug message in the log? You'll have to find out what the nut code tries to do, then what to expect from the device and libusb calls.
Yes the problem upsrw commands not working for me , hovewer it write OK or Success https://github.com/networkupstools/nut/issues/2643
Is this causing a problem or is it just that you see the debug message in the log? You'll have to find out what the nut code tries to do, then what to expect from the device and libusb calls.
If you have suspicions about a libusb issue, you must provide LIBUSB_DEBUG=4 logs to start.
xusb can do some HID interrupt transfers, but I don't know if it fits with your device.
Personally I am allergic to text being pasted as images :) There are so many great tools to efficiently search and process textual information.
Sorry, got it, will post the log here..
Personally I am allergic to text being pasted as images :) There are so many great tools to efficiently search and process textual information.
Also tryed to add exported LIBUSB_DEBUG = 4
to ups.conf with debug_min = 6
but seems no effect with LIBUSB_DEBUG = 4
Please see #2616.
Please see #2616.
Thanks, by #2616 I tryed to add LIBUSB_DEBUG = 4, but seems not worked for, I mean only debug_min=6 working by log I posted
Maybe bring that up in #2616, if you can't figure out how to enable this, the documentation is definitely not good enough.
Did you already read docs/man/nut.conf.txt ?
Did you already read docs/man/nut.conf.txt ?
No just was reading #2616
exported LIBUSB_DEBUG = 4
seems exported LIBUSB_DEBUG = 4
not documented yet in docs/man/nut.conf.txt
im using nut plugin for Unraid ,
So i just select UPS Driver Debug Level: 6 and its adding debug_min = 6 in ups.cong file
The LIBUSB_DEBUG variable is mentioned in docs/man/nut_usb_addvars.txt but docs/man/nut.conf.txt explains more in general how to set variables correctly.
The LIBUSB_DEBUG variable is mentioned in docs/man/nut_usb_addvars.txt but docs/man/nut.conf.txt explains more in general how to set variables correctly.
So i added exported LIBUSB_DEBUG = 4
like in https://github.com/networkupstools/nut/blob/1560afe330d09479370f3ed25e3289392c7aebc5/docs/man/nut_usb_addvars.txt#L136
my bad was i added to ups.conf
instead of nut.conf
and nut started OK, if wrong variable was set in ups.conf NUT will not start .
So i added to nut.conf
same effect ...
and from both logs , no info about libusb debug :
0.000000#011[D1:24188] debug level is '6'
0.000008#011[D5:24188] send_to_all: SETINFO driver.debug "6"
0.000021#011[D5:24188] send_to_all: SETFLAGS driver.debug RW NUMBER
What does docs/man/nut.conf.txt say about spaces? :)
What does docs/man/nut.conf.txt say about spaces? :)
:) OK Got it, i will try it but in nut plugin for Unraid that im using all config with spaces around equal , sorry for picture:
Using NUT plugin for Unraid When debug is on have many interrupt transfers :
have a lot of
nut_libusb_get_interrupt: Connection timed out
in debug log and maybe also affect on https://github.com/networkupstools/nut/issues/2643 or its just closing connection every time for cycle of reading data?From https://github.com/libusb/libusb/issues/1548#issuecomment-2378734313 by @tormodvolden (have issues with interrupt transfers )
Mostly looks like this :