I try to put up a virtual system with FreeBSD to make the build, but this will be slowly because I don't use FreeBSD and I'm starting from zero.<div>Anyway your patch seems appropiate for my problem, thanks to share.</div>
<div><br></div><div>Xavier<br><br><div class="gmail_quote">2012/9/13  <span dir="ltr"><<a href="mailto:FredericBohe@eaton.com" target="_blank">FredericBohe@eaton.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello Xavier,<br>
<br>
This issue seems very similar to another issue resolved a few days ago for Back-UPS ES.<br>
<br>
Is it possible for you to get NUT source code ( svn co svn://<a href="http://anonscm.debian.org/nut/trunk" target="_blank">anonscm.debian.org/nut/trunk</a> ) then apply the attached patch and compile it ?<br>
Then you could test the resulting binary and report back if it works for you.<br>
<br>
Regards,<br>
Fred<br>
<br>
--<br>
Eaton Opensource Team - <a href="http://opensource.eaton.com" target="_blank">http://opensource.eaton.com</a><br>
<br>
<br>
<br>
-----------------------------<br>
<br>
-----------------------------<br>
<br>
________________________________________<br>
From: nut-upsuser-bounces+fredericbohe=<a href="mailto:eaton.com@lists.alioth.debian.org">eaton.com@lists.alioth.debian.org</a> [nut-upsuser-bounces+fredericbohe=<a href="mailto:eaton.com@lists.alioth.debian.org">eaton.com@lists.alioth.debian.org</a>] on behalf of Xavier Garcia [<a href="mailto:xavier@xnaove.com">xavier@xnaove.com</a>]<br>

Sent: Wednesday, September 12, 2012 9:00 PM<br>
To: <a href="mailto:nut-upsuser@lists.alioth.debian.org">nut-upsuser@lists.alioth.debian.org</a><br>
Subject: [Nut-upsuser] Problem with APC Back-UPS CS 650 and FreeNAS 8.3.0       BETA 2<br>
<div class="HOEnZb"><div class="h5"><br>
Hi all !<br>
I have a little problem using NUT from FreeNAS.<br>
<br>
Operating system<br>
<br>
FreeBSD 8.3-RELEASE-p4 (FreeNAS 8.3.0 BETA 2)<br>
<br>
UPS<br>
<br>
American Power Conversion/Back-UPS CS 650 FW:817.v7 .I USB FW:v7<br>
<br>
NUT Driver<br>
<br>
Network UPS Tools - Generic HID driver 0.37 (2.6.5)<br>
USB communication driver 0.31<br>
<br>
Trying to configure the UPS from FreeNAS failed so I try to investigate which is the problem.<br>
<br>
Running "usr/local/libexec/nut/usbhid-ups -a SAI" I get this:<br>
<br>
Network UPS Tools - Generic HID driver 0.37 (2.6.5)<br>
USB communication driver 0.31<br>
Using subdriver: APC HID 0.95<br>
libusb_get_report: Unknown error<br>
Can't initialize data from HID UPS<br>
<br>
With -DD to get more information I found the problem:<br>
<br>
   0.723737 Path: UPS.Battery.ff860018, Type: Feature, ReportID: 0x48, Offset: 0, Size: 32, Value: 0<br>
   0.726114 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x20, Offset: 0, Size: 32, Value: 242<br>
   0.728599 libusb_get_report: Unknown error<br>
   0.728715 Can't retrieve Report 46: Input/output error<br>
   0.728739 Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x46, Offset: 0, Size: 8<br>
   0.731236 Path: UPS.Input.APCLineFailCause, Type: Feature, ReportID: 0x21, Offset: 0, Size: 8, Value: 8<br>
<br>
Every time I run the driver I get the same "Can't retrieve Report 46: Input/output error."<br>
<br>
Any thougths ?<br>
Any possible workaround to bypass ReportID 0x46 ?<br>
Anybody with the same UPS working nicely with NUT ?<br>
<br>
<br>
</div></div></blockquote></div><br></div>