Hello,
I want to create custom UPS monitoring client using js. I connected directly to driver socket and can successfully receive data and instantiate commands. Now i try to SET variables, but i receive some errors. So I found that running "upsrw <ups name>" will give me a list of supported variables that i can set. I started UPS driver with debug flags:
> ./blazer_usb -DDDD -a ups
and have run 'upsrw ups' with and without admin credentials and driver debugged nothing, no data in response either.
I sent directly SET command like this ""SET var 'value'\n"" to socket and driver debugged:
> new connection on fd 6
> 1195.606235 Got SET, but driver lacks a handler
>From this o\p i can assume that blazer_usb doesnt support SET command, is it true?
My UPS supports multiple test commands, but i can run only one of them.
Failed test 1:
> 1758.386031 instcmd(test.battery.start.deep, 3)
> 1758.388547 send: TL
> 1758.785995 read: TL
> 1758.786044 instcmd: command [test.battery.start.deep] failed
Failed test 2:
> 2150.275428 instcmd(test.battery.start, [NULL])
> 2150.277636 send: T10
> 2150.688833 read: T10
> 2150.688880 instcmd: command [test.battery.start] failed
Only quick test is working:
> 2232.746956 instcmd(test.battery.start.quick, [NULL])
> 2232.749549 send: T
> 2233.136727 read:
> 2233.136780 instcmd: command [test.battery.start.quick] handled
Any help will be appreciated.
Driver info from Dump.
> SETINFO device.type "ups"
> SETINFO driver.name "blazer_usb"
> SETINFO driver.version "2.7.2"
> SETINFO driver.version.internal "0.11"
I want to create custom UPS monitoring client using js. I connected directly to driver socket and can successfully receive data and instantiate commands. Now i try to SET variables, but i receive some errors. So I found that running "upsrw <ups name>" will give me a list of supported variables that i can set. I started UPS driver with debug flags:
> ./blazer_usb -DDDD -a ups
and have run 'upsrw ups' with and without admin credentials and driver debugged nothing, no data in response either.
I sent directly SET command like this ""SET var 'value'\n"" to socket and driver debugged:
> new connection on fd 6
> 1195.606235 Got SET, but driver lacks a handler
>From this o\p i can assume that blazer_usb doesnt support SET command, is it true?
My UPS supports multiple test commands, but i can run only one of them.
Failed test 1:
> 1758.386031 instcmd(test.battery.start.deep, 3)
> 1758.388547 send: TL
> 1758.785995 read: TL
> 1758.786044 instcmd: command [test.battery.start.deep] failed
Failed test 2:
> 2150.275428 instcmd(test.battery.start, [NULL])
> 2150.277636 send: T10
> 2150.688833 read: T10
> 2150.688880 instcmd: command [test.battery.start] failed
Only quick test is working:
> 2232.746956 instcmd(test.battery.start.quick, [NULL])
> 2232.749549 send: T
> 2233.136727 read:
> 2233.136780 instcmd: command [test.battery.start.quick] handled
Any help will be appreciated.
Driver info from Dump.
> SETINFO device.type "ups"
> SETINFO driver.name "blazer_usb"
> SETINFO driver.version "2.7.2"
> SETINFO driver.version.internal "0.11"
--
Best wishes,
Vitaly Hodiko
Best wishes,
Vitaly Hodiko
_______________________________________________ Nut-upsdev mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev
