On 6/29/2013 at 6:16 PM Kjell Claesson wrote: |lördagen den 29 juni 2013 11.28.14 skrev Mike.: |8<------------------snip--------------------- |Hi Mike, |> |> Thanks for the quick reply. |> |> I checked the log file (which, admittedly, I should have done before I |> posted about the problem :) ). |> |> Here's the command and the corresponding log message: |> |> # upsrw -u au -p ap -s outlet.1.delay.shutdown=12 PW5125@localhost |> OK |> |> bcmxcp[90004]: Set [outlet.1.delay.shutdown 12] failed due to invalid |> parameter |> |Yep the ups is telling that the command has an invalid parameter. |Have to check if there is any difference between the 5125 and others. |> |> Curious that the command gives an "OK" response, even though it logs a |> failure. |> |> |The OK kome from upsrw, as the driver is accepting the command. |> |> I'll try the -D flags when I have some time, maybe this evening. btw, |> how many is "a few" -D flags? |> |> |> fwiw, I don't have a USB port on the UPS, just serial. =============
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) 14.261271 entering setvar(outlet.1.delay.shutdown, 12) 14.261318 send_command: (7 bytes) => ab 04 cf 69 e8 d5 5c 16.261647 send_command: (8 bytes) => ab 05 97 01 01 0c 00 ab 16.318194 Set [outlet.1.delay.shutdown 12] failed due to invalid parameter 16.318245 send_command: (4 bytes) => ab 01 34 20 16.574540 send_command: (4 bytes) => ab 01 41 13 16.658312 init_outlet(14), res=14 16.658346 Number of outlets: 2 16.658358 Number of bytes: 6 16.658369 Outlet number: 1 16.658388 Outlet state: 1 16.658406 Auto delay off: -1 16.658432 Auto delay on: 1 16.658461 Outlet number: 2 16.658477 Outlet state: 1 16.658496 Auto delay off: -1 16.658525 Auto delay on: 2 [snip] Let me know if there is anything else I should do. Thanks.
_______________________________________________ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser