[Nut-upsuser] 2.6.0 bcmxcp_usb recovery question

Arnaud Quette aquette.dev at gmail.com
Thu Oct 27 15:08:54 UTC 2011


Hello Rich

2011/10/24 Rich Wrenn <rwrenn at ddn.com>

> Greetings,****
>
> ** **
>
> The way that bcmxcp_usb reacts to and recovers from a USB cable unplug-plug
> appears to have changed significantly between 2.4.1 and 2.6.0.  While I can
> see some improvements, bcmxcp_usb 2.6.0 does not appear to handle a USB
> cable unplug-plug correctly.  Does anyone know if this has been fixed in
> subsequent releases?****
>
> ** **
>
> Here are the details.****
>
> ** **
>
> When the USB cable between my server and my PW5115 UPS is removed,
> bcmxcp_usb reports DATASTALE (as it should) and continues to respond to PING
> (as it should).  When the USB cable is reattached, bcmxcp_usb continues to
> report DATASTALE in response to DUMPALL even though lsusb indicates that the
> PW5115 is indeed connected and DATAOK is never reported in response to
> DUMPALL.  If I restart the bcmxcp_usb driver with upsdrvctl then it recovers
> the connection to the UPS.****
>
> ** **
>
> The bcmxcp_usb 2.4.1 would not respond to even a PING while the USB cable
> to the UPS was disconnected, but when the USB cable was reconnected then it
> would begin responding again without the need to restart bcmxcp_usb.  I am
> not suggesting that the driver be rolled back to this behavior, but I do
> need the ability to recover from a USB cable pull without restarting the
> driver.****
>

I've just fixed it in the trunk (r3303), and tested it for regression on
both serial and USB XCP, with 5110 and 3105 (USB) and 9130 (serial).

The patch itself is (or will be) available here:
trac.networkupstools.org/projects/nut/changeset/3303
http://anonscm.debian.org/viewvc/nut/trunk/drivers/bcmxcp_usb.c?r1=3303&r2=3302&pathrev=3303
http://anonscm.debian.org/viewvc/nut/trunk/drivers/bcmxcp_usb.c?view=patch&r1=3303&r2=3302&pathrev=3303

thanks for your report,
Arnaud
-- 
Linux / Unix Expert R&D - Eaton - http://powerquality.eaton.com
Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/
Debian Developer - http://www.debian.org
Free Software Developer - http://arnaud.quette.free.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20111027/39e9fd9c/attachment.html>


More information about the Nut-upsuser mailing list