[Nut-upsuser] upsrw doesn't set variable
Kjell Claesson
kjell.claesson at epost.tidanet.se
Sat Jun 29 20:49:57 UTC 2013
lördagen den 29 juni 2013 15.22.44 skrev Mike.:
8<-------------snip-----------------
Sorry for the delay.
> Here is the console output of bcmxcp with -DDD specified:
>
>
> [snip]
> 13.721204 Auto delay on: 2
>
> 13.721243 send_command: (4 bytes) => ab 01 35 1f
> 13.821127 send_command: (4 bytes) => ab 01 33 21
> 13.920982 send_command: (4 bytes) => ab 01 3b 19
> 14.033202 Battery Status: (21 bytes) => 00 00 00 00 00 00 00 00
> 00 00 00 00 00 00 00
> 14.033249 00 00 00 00 01 03
> 14.033275 Battery Status = No test initiated (0)
Up to this point it is only asking for status and outlets etc.
> 14.261271 entering setvar(outlet.1.delay.shutdown, 12)
> 14.261318 send_command: (7 bytes) => ab 04 cf 69 e8 d5 5c
This is a authorization block that enable us to send a command.
> 16.261647 send_command: (8 bytes) => ab 05 97 01 01 0c 00 ab
This is the command.
ab = start of block
05 = length of data
97 = Set Outlet Parameter
01 = Set Automatic Off Delay of outlet xx
01 = this is the outlet xx
0c = LSB of seconds => 12
00 = MSB of seconds => 00 so it reads 0012 sec.
ab = Checksum
> 16.318194 Set [outlet.1.delay.shutdown 12] failed due to invalid
> parameter
Now the ups is telling you that the command is accepted, but parameter 01 is
not valid for this command.
Try setting the ON DELAY "2" then it is OK.
I have the same ups here, and it looks like the possibility to set off delay
is not implemented on this type.
> 16.318245 send_command: (4 bytes) => ab 01 34 20
> 16.574540 send_command: (4 bytes) => ab 01 41 13
This is command to read outlet blocks.
> 16.658312 init_outlet(14), res=14
> 16.658346 Number of outlets: 2
>
> 16.658358 Number of bytes: 6
>
> 16.658369 Outlet number: 1
>
8<---------------snip------------
The problem is that I had a crash on my backup ;-( so I lost the
paper on the specific commands for 5125.
So if someone have the command specifications on pw5125, can you check
if this is the case for the 5125 that it is impossible to set auto off delay.
Regards
Kjell Claesson
Co author of the bcmxcp driver.
More information about the Nut-upsuser
mailing list