[Nut-upsuser] Problem with nut 2.4.1 & Ippon 2000 Smart power on FreeBSD

Arjen de Korte nut+users at de-korte.org
Sun Jul 19 18:12:23 UTC 2009


Citeren vk <vk op union-metall.ru>:

>> Support for libusb is 'experimental' at best in FreeBSD and depending
>> on the version you're using, 'unusable'. You may try if adding a small
>> delay between sending a command and reading back the reply helps (YMMV):
>
>> --- trunk/drivers/blazer_usb.c  (revision 1861)
>> +++ trunk/drivers/blazer_usb.c  (working copy)
>> @@ -72,6 +72,7 @@
>>         upsdebugx(3, "send: %.*s", (int)strcspn(tmp, "\r"), tmp);
>
>>         memset(buf, 0, buflen);
>> +       usleep(300000);
>
>>         for (i = 0; (i <= buflen-8) && (strchr(buf, '\r') == NULL);  
>> i += ret) {
>
>> If your UPS also has a serial port available, it is probably more
>> reliable to use a USB to serial converter (that is supported by the
>> kernel) than attempting to run a user space program that attempts to
>> handle USB through libusb.
>   I  try  add usleep(300000); to blazer_usb and it is not helps. Maybe
>   you can tell how use USB to serial converter? And which?

I don't know, I'm not an expert on FreeBSD.

Best regards, Arjen
-- 
Please keep list traffic on the list




More information about the Nut-upsuser mailing list