Skip to content
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

upsrw commands get OK/Success but not change the variables #2643

Open
masterwishx opened this issue Sep 27, 2024 · 3 comments
Open

upsrw commands get OK/Success but not change the variables #2643

masterwishx opened this issue Sep 27, 2024 · 3 comments

Comments

@masterwishx
Copy link
Contributor

Using Unraid NUT Plugin
in Unraid Terminal for Eaton 9E

but seems works Fine for other users in Unraid Forum.

I tryed some commands and got 'OK' also with -w and got 'Success' but no value is changed ,
only when added override.input.transfer.low = 150 in ups.conf and restart was working .

upsrw -s input.transfer.low = 150 -u user -p pass -w Eaton9E2000i

With debug :

 Set variable: [email protected] set input.transfer.low on Eaton9E2000i to 150 (tracking ID: 2DDC5036-F665-4D29-BE4C-0374D091D263)
 nut_libusb_get_interrupt: Connection timed out
 Got 0 HID objects...
 Full update...
[D4:24218] Entering libusb_get_report
[D3:24218] Report[get]: (6 bytes) => 06 64 52 0e 00 00
[D5:24218] PhyMax = 0, PhyMin = 0, LogMax = 255, LogMin = 0
[D5:24218] Unit = 00000000, UnitExp = 0
[D5:24218] Exponent = 0


sock_arg: Driver on /var/run/nut/usbhid-ups-Eaton9E2000i is now handling SET with 5 args
Sep 27 09:33:32 Server usbhid-ups[24218]: [D3:24218] sock_arg: TRACKING = 2DDC5036-F665-4D29-BE4C-0374D091D263
Sep 27 09:33:32 Server usbhid-ups[24218]: [D2:24218] entering main_setvar(input.transfer.low, 150) for [Eaton9E2000i] on socket 16
Sep 27 09:33:32 Server usbhid-ups[24218]: [D2:24218] shared main_setvar() does not handle variable input.transfer.low, proceeding to driver-specific handler
Sep 27 09:33:32 Server usbhid-ups[24218]: [D1:24218] setvar(input.transfer.low, 150)
Sep 27 09:33:32 Server usbhid-ups[24218]: [D5:24218] Unit = 00f0d121, UnitExp = 7
Sep 27 09:33:32 Server usbhid-ups[24218]: [D5:24218] Exponent = 0
Sep 27 09:33:32 Server usbhid-ups[24218]: [D5:24218] PhyMax = 0, PhyMin = 0, LogMax = 65535, LogMin = 0
Sep 27 09:33:32 Server usbhid-ups[24218]: [D3:24218] Report[set]: (5 bytes) => 51 2c 01 96 00
Sep 27 09:33:32 Server usbhid-ups[24218]: [D4:24218] Set report succeeded
Sep 27 09:33:32 Server usbhid-ups[24218]: [D5:24218] setvar: SUCCEED
Sep 27 09:33:32 Server usbhid-ups[24218]: [D2:24218] send_to_one: sending TRACKING 2DDC5036-F665-4D29-BE4C-0374D091D263 0
Sep 27 09:33:32 Server usbhid-ups[24218]: [D5:24218] send_to_one: TRACKING 2DDC5036-F665-4D29-BE4C-0374D091D263 0
Sep 27 09:33:32 Server usbhid-ups[24218]: [D6:24218] send_to_one: write 48 bytes to socket 16 succeeded (ret=48): TRACKING 2DDC5036-F665-4D29-BE4C-0374D091D263 0
Sep 27 09:33:32 Server upsd[24710]: tracking ID: 2DDC5036-F665-4D29-BE4C-0374D091D263#011result: SUCCESS
Sep 27 09:33:33 Server usbhid-ups[24218]: [D5:24218] send_to_all: SETINFO driver.state "updateinfo"
Sep 27 09:33:33 Server usbhid-ups[24218]: [D6:24218] send_to_all: write 34 bytes to socket 16 succeeded (ret=34): SETINFO driver.state "updateinfo"
Sep 27 09:33:33 Server usbhid-ups[24218]: [D1:24218] upsdrv_updateinfo...
Sep 27 09:33:34 Server usbhid-ups[24218]: [D2:24218] nut_libusb_get_interrupt: Connection timed out
Sep 27 09:33:34 Server usbhid-ups[24218]: [D1:24218] Got 0 HID objects...
Sep 27 09:33:34 Server usbhid-ups[24218]: [D1:24218] Full update...
S


Sep 27 09:35:47 Server upsd[24710]: Set variable: [email protected] set input.transfer.low on Eaton9E2000i to 150 (tracking ID: disabled)
Sep 27 09:35:47 Server usbhid-ups[24218]: [D6:24218] sock_arg: Driver on /var/run/nut/usbhid-ups-Eaton9E2000i is now handling SET with 3 args
Sep 27 09:35:47 Server usbhid-ups[24218]: [D2:24218] entering main_setvar(input.transfer.low, 150) for [Eaton9E2000i] on socket 16
Sep 27 09:35:47 Server usbhid-ups[24218]: [D2:24218] shared main_setvar() does not handle variable input.transfer.low, proceeding to driver-specific handler
Sep 27 09:35:47 Server usbhid-ups[24218]: [D1:24218] setvar(input.transfer.low, 150)
Sep 27 09:35:47 Server usbhid-ups[24218]: [D5:24218] Unit = 00f0d121, UnitExp = 7
Sep 27 09:35:47 Server usbhid-ups[24218]: [D5:24218] Exponent = 0
Sep 27 09:35:47 Server usbhid-ups[24218]: [D5:24218] PhyMax = 0, PhyMin = 0, LogMax = 65535, LogMin = 0
Sep 27 09:35:47 Server usbhid-ups[24218]: [D3:24218] Report[set]: (5 bytes) => 51 2c 01 96 00
Sep 27 09:35:47 Server usbhid-ups[24218]: [D4:24218] Set report succeeded
Sep 27 09:35:47 Server usbhid-ups[24218]: [D5:24218] setvar: SUCCEED
Sep 27 09:35:47 Server usbhid-ups[24218]: [D5:24218] send_to_all: SETINFO driver.state "updateinfo"
Sep 27 09:35:47 Server usbhid-ups[24218]: [D6:24218] send_to_all: write 34 bytes to socket 16 succeeded (ret=34): SETINFO driver.state "updateinfo"
Sep 27 09:35:47 Server usbhid-ups[24218]: [D1:24218] upsdrv_updateinfo...
Sep 27 09:35:48 Server usbhid-ups[24218]: [D2:24218] nut_libusb_get_interrupt: Connection timed out
Sep 27 09:35:48 Server usbhid-ups[24218]: [D1:24218] Got 0 HID objects...
Sep 27 09:35:48 Server usbhid-ups[24218]: [D1:24218] Full update...
Sep 27 09:35:48 Server usbhid-ups[24218]: [D4:24218] Entering libusb_get_report
Sep 27 09:35:48 Server usbhid-ups[24218]: [D3:24218] Report[get]: (6 bytes) => 06 64 ae 0c 00 00
Sep 27 09:35:48 Server usbhid-ups[24218]: [D5:24218] PhyMax = 0, PhyMin = 0, LogMax = 255, LogMin = 0
Sep 27 09:35:48 Server usbhid-ups[24218]: [D5:24218] Unit = 00000000, UnitExp = 0
Sep 27 09:35:48 Server usbhid-ups[24218]: [D5:24218] Exponent = 0


Sep 27 09:36:55 Server upsd[24710]: Set variable: [email protected] set input.transfer.low on Eaton9E2000i to 150 (tracking ID: 98C489FD-821C-4132-9D93-4F6590B55E63)
Sep 27 09:36:56 Server usbhid-ups[24218]: [D2:24218] nut_libusb_get_interrupt: Connection timed out
Sep 27 09:36:56 Server usbhid-ups[24218]: [D1:24218] Got 0 HID objects...
Sep 27 09:36:56 Server usbhid-ups[24218]: [D1:24218] Quick update...
Sep 27 09:36:56 Server usbhid-ups[24218]: [D4:24218] Entering libusb_get_report
Sep 27 09:36:56 Server usbhid-ups[24218]: [D3:24218] Report[get]: (5 bytes) => 0a ff ff ff ff
Sep 27 09:36:56 Server usbhid-ups[24218]: [D5:24218] PhyMax = 0, PhyMin = 0, LogMax = 2147483647, LogMin = -1
Sep 27 09:36:56 Server usbhid-ups[24218]: [D5:24218] Unit = 00001001, UnitExp = 0
Sep 27 09:36:56 Server usbhid-ups[24218]: [D5:24218] Exponent = 0


Sep 27 09:36:56 Server usbhid-ups[24218]: [D6:24218] sock_arg: Driver on /var/run/nut/usbhid-ups-Eaton9E2000i is now handling SET with 5 args
Sep 27 09:36:56 Server usbhid-ups[24218]: [D3:24218] sock_arg: TRACKING = 98C489FD-821C-4132-9D93-4F6590B55E63
Sep 27 09:36:56 Server usbhid-ups[24218]: [D2:24218] entering main_setvar(input.transfer.low, 150) for [Eaton9E2000i] on socket 16
Sep 27 09:36:56 Server usbhid-ups[24218]: [D2:24218] shared main_setvar() does not handle variable input.transfer.low, proceeding to driver-specific handler
Sep 27 09:36:56 Server usbhid-ups[24218]: [D1:24218] setvar(input.transfer.low, 150)
Sep 27 09:36:56 Server usbhid-ups[24218]: [D5:24218] Unit = 00f0d121, UnitExp = 7
Sep 27 09:36:56 Server usbhid-ups[24218]: [D5:24218] Exponent = 0
Sep 27 09:36:56 Server usbhid-ups[24218]: [D5:24218] PhyMax = 0, PhyMin = 0, LogMax = 65535, LogMin = 0
Sep 27 09:36:56 Server usbhid-ups[24218]: [D3:24218] Report[set]: (5 bytes) => 51 2c 01 96 00
Sep 27 09:36:56 Server usbhid-ups[24218]: [D4:24218] Set report succeeded
Sep 27 09:36:56 Server usbhid-ups[24218]: [D5:24218] setvar: SUCCEED
Sep 27 09:36:56 Server usbhid-ups[24218]: [D2:24218] send_to_one: sending TRACKING 98C489FD-821C-4132-9D93-4F6590B55E63 0
Sep 27 09:36:56 Server usbhid-ups[24218]: [D5:24218] send_to_one: TRACKING 98C489FD-821C-4132-9D93-4F6590B55E63 0
Sep 27 09:36:56 Server usbhid-ups[24218]: [D6:24218] send_to_one: write 48 bytes to socket 16 succeeded (ret=48): TRACKING 98C489FD-821C-4132-9D93-4F6590B55E63 0
Sep 27 09:36:56 Server upsd[24710]: tracking ID: 98C489FD-821C-4132-9D93-4F6590B55E63#011result: SUCCESS
Sep 27 09:36:57 Server usbhid-ups[24218]: [D5:24218] send_to_all: SETINFO driver.state "updateinfo"
Sep 27 09:36:57 Server usbhid-ups[24218]: [D6:24218] send_to_all: write 34 bytes to socket 16 succeeded (ret=34): SETINFO driver.state "updateinfo"
Sep 27 09:36:57 Server usbhid-ups[24218]: [D1:24218] upsdrv_updateinfo...
Sep 27 09:36:58 Server usbhid-ups[24218]: [D2:24218] nut_libusb_get_interrupt: Connection timed out
Sep 27 09:36:58 Server usbhid-ups[24218]: [D1:24218] Got 0 HID objects...
Sep 27 09:36:58 Server usbhid-ups[24218]: [D1:24218] Full update...
Sep 27 09:36:58 Server usbhid-ups[24218]: [D4:24218] Entering libusb_get_report
Sep 27 09:36:58 Server usbhid-ups[24218]: [D3:24218] Report[get]: (6 bytes) => 06 64 e6 0e 00 00
Sep 27 09:36:58 Server usbhid-ups[24218]: [D5:24218] PhyMax = 0, PhyMin = 0, LogMax = 255, LogMin = 0
Sep 27 09:36:58 Server usbhid-ups[24218]: [D5:24218] Unit = 00000000, UnitExp = 0
Sep 27 09:36:58 Server usbhid-ups[24218]: [D5:24218] Exponent = 0
@masterwishx
Copy link
Contributor Author

seems nut_libusb_get_interrupt: Connection timed out is present , can post full log if needed ...

@masterwishx
Copy link
Contributor Author

somehow set var input.transfer.eco.high=242 was working but not back to input.transfer.eco.high=241 not worked

maybe related to #2644 not sure if it because timeout ...

also input.transfer.eco.low=217 worked also back to input.transfer.eco.low=218 worked

nut debug log 1.10.24.txt

@jimklimov jimklimov added this to the 2.8.4 milestone Oct 7, 2024
@masterwishx
Copy link
Contributor Author

@tormodvolden i enabled libusb debug if you can check about timeouts ?

nut debug log 9.10.24.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants