Hello Xavier,
This issue seems very similar to another issue resolved a few days ago for
Back-UPS ES.
Is it possible for you to get NUT source code ( svn co
svn://anonscm.debian.org/nut/trunk ) then apply the attached patch and compile
it ?
Then you could test the resulting binary and report back if it works for you.
Regards,
Fred
--
Eaton Opensource Team - http://opensource.eaton.com
-----------------------------
-----------------------------
________________________________________
From: nut-upsuser-bounces+fredericbohe=eaton....@lists.alioth.debian.org
[nut-upsuser-bounces+fredericbohe=eaton....@lists.alioth.debian.org] on behalf
of Xavier Garcia [[email protected]]
Sent: Wednesday, September 12, 2012 9:00 PM
To: [email protected]
Subject: [Nut-upsuser] Problem with APC Back-UPS CS 650 and FreeNAS 8.3.0
BETA 2
Hi all !
I have a little problem using NUT from FreeNAS.
Operating system
FreeBSD 8.3-RELEASE-p4 (FreeNAS 8.3.0 BETA 2)
UPS
American Power Conversion/Back-UPS CS 650 FW:817.v7 .I USB FW:v7
NUT Driver
Network UPS Tools - Generic HID driver 0.37 (2.6.5)
USB communication driver 0.31
Trying to configure the UPS from FreeNAS failed so I try to investigate which
is the problem.
Running "usr/local/libexec/nut/usbhid-ups -a SAI" I get this:
Network UPS Tools - Generic HID driver 0.37 (2.6.5)
USB communication driver 0.31
Using subdriver: APC HID 0.95
libusb_get_report: Unknown error
Can't initialize data from HID UPS
With -DD to get more information I found the problem:
0.723737 Path: UPS.Battery.ff860018, Type: Feature, ReportID: 0x48, Offset:
0, Size: 32, Value: 0
0.726114 Path: UPS.Input.Voltage, Type: Feature, ReportID: 0x20, Offset: 0,
Size: 32, Value: 242
0.728599 libusb_get_report: Unknown error
0.728715 Can't retrieve Report 46: Input/output error
0.728739 Path: UPS.Input.ConfigVoltage, Type: Feature, ReportID: 0x46,
Offset: 0, Size: 8
0.731236 Path: UPS.Input.APCLineFailCause, Type: Feature, ReportID: 0x21,
Offset: 0, Size: 8, Value: 8
Every time I run the driver I get the same "Can't retrieve Report 46:
Input/output error."
Any thougths ?
Any possible workaround to bypass ReportID 0x46 ?
Anybody with the same UPS working nicely with NUT ?
Index: drivers/apc-hid.c
===================================================================
--- drivers/apc-hid.c (revision 3723)
+++ drivers/apc-hid.c (working copy)
@@ -38,6 +38,7 @@
/* Tweaks */
#define TWEAK_BACK_UPS_ES "Back-UPS ES"
+#define TWEAK_BACK_UPS_CS "Back-UPS CS"
/* Don't use interrupt pipe on 5G models (used by proprietary protocol) */
static void *disable_interrupt_pipe(USBDevice_t *device)
@@ -60,6 +61,11 @@
strlen(TWEAK_BACK_UPS_ES))) {
max_report_size = 1;
}
+ /* "Back-UPS CS" overflows on ReportID 0x46 */
+ if (!strncmp(device->Product, TWEAK_BACK_UPS_CS,
+ strlen(TWEAK_BACK_UPS_CS))) {
+ max_report_size = 1;
+ }
return NULL;
}
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser