[Nut-upsdev] support for newer mustek powermust model 06da:0003

Arjen de Korte nut+devel at de-korte.org
Mon Nov 26 13:34:23 UTC 2007


Timo Lindfors wrote:

[...]

> Index: drivers/megatec_usb.c
> ===================================================================
> --- drivers/megatec_usb.c       (revision 1160)
> +++ drivers/megatec_usb.c       (working copy)
> @@ -347,6 +347,11 @@
>  {
>         char    buffer[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
> 
> +       if (strcmp(str, "I\r") == 0 || strcmp(str, "C\r") == 0) {
> +           /* Ignore */
> +           return strlen(str);
> +       }
> +
>         snprintf(buffer, sizeof(buffer), "%s", str);
> 
>         return usb->set_report(udev, 0, (unsigned char *)buffer, sizeof(buffer));
> 
> 
> nut manages to also get reply to "F\r" command:

[...]

> F => OK [#220.0 002 12.00 50.0]
> 12.0V battery, interval [9.7V, 13.7V].
> Done setting up the UPS.

OK, I'll throw in the patch you provided and then we'll leave it that
way for now. Thanks for your efforts in making this work. We've seen
quite a number of requests for support of the VendorID:ProductID
combination, so it is nice that we can support this now.

Two things that are open

1) Could you post the output of 'upsc <upsname>'?

2) Have you checked what happens after sending the command 'upsmon -f
fsd'? The system should reboot with the mains to the UPS plugged in and
just shutdown (waiting for power) with the mains unplugged.

Best regards, Arjen



More information about the Nut-upsdev mailing list