[Nut-upsdev] NUT: new blazer_usb subdriver proposal

Arjen de Korte nut+devel at de-korte.org
Fri May 20 12:56:38 UTC 2011


Citeren Aurélien Grenotton <agrenott op gmail.com>:

> After some investigation, they almost use the krauler-type
> communication already supported in the blazer_usb driver. However, the
> UPS won't reply if the language ID is not 0x4095...
> Therefore, I cloned the krauler_command, adding the language ID and
> unicode to ASCII conversion (taken from libusb).

Thanks for this patch.

> I also enhanced the error!retry mechanism, as the UPS fails to reply quite
> often.

This will put you at risk for (much more severe) timeout problems with  
the upsd server, so this part of the patch will not be included. But  
since this seems to be a problem for other devices as well, there is  
some merit in the problem you're trying to fix. We probably shouldn't  
complain in the syslog for intermittent problems and only report once  
we have reached the MAXTRIES limit. This needs to be fixed in the  
'blazer.c' base driver (which I did).

Best regards, Arjen
-- 
Please keep list traffic on the list (off-list replies will be rejected)





More information about the Nut-upsdev mailing list