[Nut-upsuser] trying to use powerware 3110 USB with NUT

John H. mistamaila at gmail.com
Fri Oct 7 05:30:12 UTC 2005


k, let me know.



On 10/7/05, Kjell Claesson <kjell.claesson at telia.com> wrote:
> Ok John.
>
> Revert the changes, and i try to get hold on a 3110 so i can
> do some debugging. Not 100% sure that it is the right protocol.
>
> The vendor id say Phoenixtec Power Co, but other info i have from the
> drivers from Powerware say that the Powerware 3110 is a bcmxcp on usb.
>
> Or if you use the serial port it is a generic modell 15 (contact
> closer).
>
> Regards
> Kjell
>
>
> tor 2005-10-06 klockan 16:28 -0500 skrev John H.:
> > same error
> >
> >  bcmxcp_usb -DDDD -a PW3 -u nut
> > Network UPS Tools - BCMXCP UPS driver 0.10 (2.1.0)
> >
> > debug level is '4'
> > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> >
> > RECONNECT USB DEVICE
> >
> > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> >
> > RECONNECT USB DEVICE
> >
> > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> >
> > RECONNECT USB DEVICE
> >
> > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> >
> > RECONNECT USB DEVICE
> >
> > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> >
> > RECONNECT USB DEVICE
> >
> > Communications with UPS lost: Error executing command
> > Could not communicate with the ups: Bad address
> >
> >
> > On 10/6/05, Kjell Claesson <kjell.claesson at telia.com> wrote:
> > > Sorry.
> > >
> > > Forgot to include the definition of the AUT string.
> > >
> > > Place this string in the top of the bcmxcp_usb.c
> > > just after the #include statments.
> > >
> > > 8<-----------------------------------------------
> > >
> > > unsigned char AUT[4] = {0xCF, 0x69, 0xE8, 0xD5};
> > >
> > > 8<-----------------------------------------------
> > >
> > > Otherwise you get a error that AUT is not defined.
> > >
> > > like this
> > >
> > > ----------------
> > >
> > > #include "main.h"
> > > #include "bcmxcp.h"
> > > #include "bcmxcp_io.h"
> > > #include "nut_usb.h"
> > >
> > > unsigned char AUT[4] = {0xCF, 0x69, 0xE8, 0xD5};
> > >
> > > usb_dev_handle *upsdev = NULL;
> > >
> > > void send_read_command(unsigned char command)
> > >
> > > ----------------------------------------
> > >
> > > Sorry
> > > Kjell
> > >
> > > tor 2005-10-06 klockan 13:35 -0500 skrev John H.:
> > > > same problem
> > > >
> > > >
> > > >  bcmxcp_usb -DD -a PW3 -u nut
> > > > Network UPS Tools - BCMXCP UPS driver 0.10 (2.1.0)
> > > >
> > > > debug level is '2'
> > > > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> > > >
> > > > RECONNECT USB DEVICE
> > > >
> > > > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> > > >
> > > > RECONNECT USB DEVICE
> > > >
> > > > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> > > >
> > > > RECONNECT USB DEVICE
> > > >
> > > > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> > > >
> > > > RECONNECT USB DEVICE
> > > >
> > > > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> > > >
> > > > RECONNECT USB DEVICE
> > > >
> > > > Communications with UPS lost: Error executing command
> > > > Could not communicate with the ups: Bad address
> > > >
> > > >
> > > >
> > > > On 10/6/05, Kjell Claesson <kjell.claesson at telia.com> wrote:
> > > > > Hi John.
> > > > >
> > > > > This is a loongshot, but if you can insert this line into the
> > > > > bcmxcp_usb.c
> > > > >
> > > > > 8<---------------------------------------------
> > > > > void upsdrv_initups(void)
> > > > > {
> > > > >         experimental_driver=1;
> > > > >
> > > > >         upsdev = nutusb_open("USB");
> > > > >         usb_set_descriptor(upsdev, USB_DT_STRING, 4, 0x1d, 1);
> > > > >
> > > > > }
> > > > > 8<--------------------------------------------------
> > > > >
> > > > > Find the 'void upsdrv_initups(void)' function
> > > > > and insert the.
> > > > >
> > > > > usb_set_descriptor(upsdev, USB_DT_STRING, 4, 0x1d, 1);
> > > > >
> > > > > So it looks like abowe.
> > > > >
> > > > > Kjell
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > tor 2005-10-06 klockan 10:43 -0500 skrev John H.:
> > > > > > i'm not going to give up, I want to monitor my UPS:)
> > > > > >
> > > > > >
> > > > > > On 10/6/05, Kjell Claesson <kjell.claesson at telia.com> wrote:
> > > > > > > Hi John.
> > > > > > >
> > > > > > > Well now it answer to the driver, but the command 31 (get identification
> > > > > > > block) does not return anything.
> > > > > > >
> > > > > > > This may due to the fact that it is in a menu mode or something.
> > > > > > > Maybe we have to send some other commands before the request of the
> > > > > > > id block. Se what Wolfgang have to say about it.
> > > > > > >
> > > > > > > Kjell
> > > > > > >
> > > > > > > P.S. Don't give up. This is good information for us.
> > > > > > >
> > > > > > > tor 2005-10-06 klockan 09:24 -0500 skrev John H.:
> > > > > > > >  bcmxcp_usb -DD -a PW3 -u nut
> > > > > > > > Network UPS Tools - BCMXCP UPS driver 0.10 (2.1.0)
> > > > > > > >
> > > > > > > > debug level is '2'
> > > > > > > > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> > > > > > > >
> > > > > > > > RECONNECT USB DEVICE
> > > > > > > >
> > > > > > > > Communications with UPS lost: Receive error (Request command): COMMAND: 31
> > > > > > > >
> > > > > > > > RECONNECT USB DEVICE
> > > > > > > >
> > > > > > > > On 10/6/05, Wolfgang Ocker <weo at weo1.de> wrote:
> > > > > > > > > On Thu, 2005-10-06 at 08:54 +0200, Wolfgang Ocker wrote:
> > > > > > > > > > On Wed, 2005-10-05 at 19:25 -0500, John H. wrote:
> > > > > > > > > > > debug level is '2'
> > > > > > > > > > > Can't open POWERWARE USB device, retrying ...
> > > > > > > > > >
> > > > > > > > > > Okay, I found the reason: The vendor id of the device has to be added in
> > > > > > > > > > nut_usb.c:
> > > > > > > > >
> > > > > > > > > John, the patch is in the CVS. Would you please update and test?
> > > > > > > > >
> > > > > > > > > Wolfgang
> > > > > > > > > --
> > > > > > > > > | Wolfgang Ocker  |  http://weo1.de/
> > > > > > > > > | 49.8441.805512  |  mailto:weo at weo1.de
> > > > > > > > > | Programmieren Sie noch oder patentieren Sie schon?
> > > > > > > > > | -> http://www.nosoftwarepatents.com/
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > > > _______________________________________________
> > > > > > > > Nut-upsuser mailing list
> > > > > > > > Nut-upsuser at lists.alioth.debian.org
> > > > > > > > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> > > > > > >
> > > > > > >
> > > > >
> > > > >
> > > >
> > > > _______________________________________________
> > > > Nut-upsuser mailing list
> > > > Nut-upsuser at lists.alioth.debian.org
> > > > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> > >
> > >
> >
> > _______________________________________________
> > Nut-upsuser mailing list
> > Nut-upsuser at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>
>



More information about the Nut-upsuser mailing list