<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=utf-8 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7100.18"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true" 
name="Compose message area">
<DIV><FONT face=Calibri>Hi Arnaud,</FONT></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=aquette.dev@gmail.com 
href="mailto:aquette.dev@gmail.com">Arnaud Quette</A> </DIV>
<DIV><B>Sent:</B> Wednesday, May 27, 2009 12:42 AM</DIV>
<DIV><B>To:</B> <A title=greg_roll@hotmail.com 
href="mailto:greg_roll@hotmail.com">Greg</A> </DIV>
<DIV><B>Cc:</B> <A title=kjell.claesson@epost.tidanet.se 
href="mailto:kjell.claesson@epost.tidanet.se">Kjell Claesson</A> ; <A 
title=nut-upsuser@lists.alioth.debian.org 
href="mailto:nut-upsuser@lists.alioth.debian.org">nut-upsuser@lists.alioth.debian.org</A> 
</DIV>
<DIV><B>Subject:</B> Re: [Nut-upsuser] Nut and PowerWare 5115</DIV></DIV></DIV>
<DIV><BR></DIV>Greg,<BR><BR>
<DIV class=gmail_quote>2009/5/26 Arnaud Quette <SPAN dir=ltr>&lt;<A 
href="mailto:aquette.dev@gmail.com">aquette.dev@gmail.com</A>&gt;</SPAN><BR>
<BLOCKQUOTE 
style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
class=gmail_quote>Hi Greg,<BR><BR>
  <DIV class=gmail_quote>2009/5/21 Greg <SPAN dir=ltr>&lt;<A 
  href="mailto:greg_roll@hotmail.com" 
  target=_blank>greg_roll@hotmail.com</A>&gt;</SPAN> 
  <DIV class=im><BR>
  <BLOCKQUOTE 
  style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" 
  class=gmail_quote>
    <DIV style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px" 
    name="Compose message area">
    <DIV><FONT face=Calibri>Hi Arnaud,</FONT></DIV>
    <DIV><FONT face=Calibri></FONT>&nbsp;</DIV>
    <DIV><FONT face=Calibri>Any luck with the latest </FONT><FONT 
    face="Times New Roman">subversion trunk?</FONT></DIV></DIV></BLOCKQUOTE></DIV>
  <DIV><BR>sorry for the lag... too many things, not enough time.<BR><BR>I'm 
  preparing a version with some more debug info, but I'm still puzzled with your 
  issue.<BR>in the meantime, can you retry the debug test on your 9.04, 
  ie<BR><BR><SPAN lang=EN-AU>export USB_DEBUG=3 &amp;&amp; /lib/nut/bcmxcp_usb 
  -u root -DDDDD -a PowerWare</SPAN><BR><BR>if you end up with "<FONT 
  face=Calibri>Can't set POWERWARE USB configuration", then we should have an 
  msg from libusb like "</FONT>could not set config..." with the exact 
  errno...<BR></DIV></DIV></BLOCKQUOTE>
<DIV><BR>I missed to add that I'm also interested in this one: "unset USB_DEBUG 
&amp;&amp; lsusb -d06da:0002 -v" on your 9.04. I can't find it back in the 
thread.<BR></DIV><FONT face=Calibri></FONT></DIV>
<DIV class=gmail_quote><FONT face=Calibri>Here is the output (the QNAP has the 
same output except the line 'idProduct 0x0002' is missing UPS on the 
QNAP)</FONT></DIV>
<DIV class=gmail_quote><FONT 
face=Calibri>===========================================</FONT></DIV>
<DIV class=gmail_quote><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV class=gmail_quote><FONT face=Calibri><SPAN lang=EN-AU>
<P>Bus 002 Device 004: ID 06da:0002 Phoenixtec Power Co., Ltd UPS</P>
<P>Device Descriptor:</P>
<P>bLength 18</P>
<P>bDescriptorType 1</P>
<P>bcdUSB 1.10</P>
<P>bDeviceClass 0 (Defined at Interface level)</P>
<P>bDeviceSubClass 0 </P>
<P>bDeviceProtocol 0 </P>
<P>bMaxPacketSize0 8</P>
<P>idVendor 0x06da Phoenixtec Power Co., Ltd</P>
<P>idProduct 0x0002 UPS</P>
<P>bcdDevice 1.00</P>
<P>iManufacturer 4 Powerware</P>
<P>iProduct 24 Powerware UPS</P>
<P>iSerial 0 </P>
<P>bNumConfigurations 1</P>
<P>Configuration Descriptor:</P>
<P>bLength 9</P>
<P>bDescriptorType 2</P>
<P>wTotalLength 34</P>
<P>bNumInterfaces 1</P>
<P>bConfigurationValue 1</P>
<P>iConfiguration 0 </P>
<P>bmAttributes 0x80</P>
<P>(Bus Powered)</P>
<P>MaxPower 60mA</P>
<P>Interface Descriptor:</P>
<P>bLength 9</P>
<P>bDescriptorType 4</P>
<P>bInterfaceNumber 0</P>
<P>bAlternateSetting 0</P>
<P>bNumEndpoints 1</P>
<P>bInterfaceClass 255 Vendor Specific Class</P>
<P>bInterfaceSubClass 0 </P>
<P>bInterfaceProtocol 0 </P>
<P>iInterface 0 </P>
<P>** UNRECOGNIZED: 09 21 00 01 00 01 22 00 00</P>
<P>Endpoint Descriptor:</P>
<P>bLength 7</P>
<P>bDescriptorType 5</P>
<P>bEndpointAddress 0x81 EP 1 IN</P>
<P>bmAttributes 3</P>
<P>Transfer Type Interrupt</P>
<P>Synch Type None</P>
<P>Usage Type Data</P>
<P>wMaxPacketSize 0x0008 1x 8 bytes</P>
<P>bInterval 20</P>
<P>Device Status: 0x0000</P>
<P>(Bus Powered)</P>
<P> </P></SPAN></FONT></DIV>
<DIV class=gmail_quote><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV class=gmail_quote><FONT 
face=Calibri>===========================================</FONT></DIV>
<DIV class=gmail_quote>
<DIV><BR>@Kjell: do you see anything that could lead to that kind of 
"regression"?<BR>I'm not sure that it's on our side though.<BR><BR>@Greg: can 
you fill the following and perhaps do some more testing (note that you only need 
to exec the driver):<BR>- is 2.2.2 working on 9.04? (simply get the source, 
configure using the instructions at the bottom of this mail and then compile as 
usual)</DIV>
<DIV><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV><FONT face=Calibri>I didn't have much luck after compiling the driver as 
upsdrvctl was missing. So I just installed the .deb file from the 
repository.</FONT></DIV>
<DIV><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;yes 2.2.2 works on 9.04. (upsdrvctl and 
bcmxcp_usb)</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;2.2.2 also works on 8.10 (upsdrvctl and 
bcmxcp_usb)</DIV>
<DIV><BR>- is 2.4.1 working on 8.10?</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;<FONT face=Calibri>no 2.4.1 does not work on 8.10. 
(upsdrvctl loads and returns to command prompt, does not display UPS firmware 
version etc, bcmxcp_usb works)</FONT></DIV>
<DIV><FONT face=Calibri></FONT>&nbsp;&nbsp;&nbsp;&nbsp;<FONT face=Calibri>no 
2.4.1 does not work on 9.04. (upsdrvctl loads and returns to command prompt, 
does not display UPS firmware version etc, bcmxcp_usb works)</FONT></DIV><FONT 
face=Calibri></FONT><FONT face=Calibri></FONT></DIV>
<DIV class=gmail_quote>&nbsp;</DIV>
<DIV class=gmail_quote><FONT face=Calibri>So it looks like for me 2.4.1 is 
broken on 8.10 and 9.04. Running 'upsdrvctl start' does not return any errors or 
display the firmware version.</FONT></DIV><FONT face=Calibri>Running 'upsdrvctl 
start' on 2.2.2 displays the firmware version.</FONT> 
<DIV class=gmail_quote><FONT face=Calibri></FONT><FONT face=Calibri></FONT><FONT 
face=Calibri></FONT>&nbsp;</DIV>
<DIV class=gmail_quote><FONT face=Calibri>When running bcmxcp_usb on 9.04. 
upsmon is then able to pick up the UPS driver as running. It seems to be some 
issue with upsdrvcrl.</FONT></DIV>
<DIV class=gmail_quote><FONT face=Calibri></FONT>&nbsp;</DIV>
<DIV class=gmail_quote><FONT face=Calibri>My kernel on 9.04 is</FONT></DIV>
<DIV class=gmail_quote><FONT face=Calibri>============</FONT></DIV>
<DIV class=gmail_quote><SPAN lang=EN-AU>
<P>Linux Ubuntu9 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 
i686 GNU/Linux</P>
<P>===========</P></SPAN></DIV>
<DIV class=gmail_quote>
<DIV><BR>- I would need more tech info on your qnap (arch, linux version, libusb 
version, USB path ie /proc or /dev, verbose lsusb as told above)<BR></DIV>
<DIV><FONT face=Calibri>arch: arm</FONT></DIV>
<DIV><FONT face=Calibri>linux version: Linux THEBOX 2.6.21.1-qnap #5 Wed Mar 18 
15:19:23 CST 2009 armv5tejl unknown</FONT></DIV>
<DIV><FONT face=Calibri>libusb version: 0.1.12</FONT></DIV>
<DIV><FONT face=Calibri>usb path: /proc</FONT></DIV>
<DIV><FONT face=Calibri>lsusb: same as above except the line 'idProduct 0x0002' 
is missing UPS on the QNAP.</FONT></DIV><FONT face=Calibri></FONT></DIV>
<DIV class=gmail_quote>
<DIV><FONT face=Calibri></FONT><BR>* configure 
line<BR>----------------------<BR>configure --prefix=/usr \<BR>--exec-prefix=/ 
\<BR>--sysconfdir=/etc/nut \<BR>--mandir=/usr/share/man \<BR>--libdir=/lib 
\<BR>--includedir=/usr/include \<BR>--without-all \<BR>--enable-static 
\<BR>--with-statepath=/var/run/nut \<BR>--with-altpidpath=/var/run/nut 
\<BR>--with-drvpath=/lib/nut \<BR>--with-pidpath=/var/run/nut 
\<BR>--datadir=/usr/share/nut \<BR>--with-pkgconfig-dir=/usr/lib/pkgconfig 
\<BR>--with-user=nut --with-group=nut</DIV></DIV><BR>
<BR>
__________ Information from ESET Smart Security, version of virus signature database 4109 (20090527) __________<BR>
<BR>
The message was checked by ESET Smart Security.<BR>
<BR>
<A HREF="http://www.eset.com">http://www.eset.com</A><BR>


</BODY></HTML>