[Nut-upsuser] trying to use powerware 3110 USB with NUT
John H.
mistamaila at gmail.com
Tue Sep 27 05:57:22 UTC 2005
help, what do i do?
T: Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=1.5 MxCh= 0
D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=06da ProdID=0002 Rev= 0.01
S: Manufacturer=POWERWARE
S: Product=Powerware UPS
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr= 20mA
I: If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=20ms
On 9/26/05, John H. <mistamaila at gmail.com> wrote:
>
>
>
> On 9/24/05, John H. <mistamaila at gmail.com> wrote:
> >
> > can't get that file
> >
> > make install-usb
> > make[1]: Entering directory `/tmp/nut-092405/drivers'
> > /usr/bin/install -c -m 0755 newhidups /usr/local/ups/bin
> > /usr/bin/install: cannot stat `newhidups': No such file or directory
> > /usr/bin/install -c -m 0755 bcmxcp_usb /usr/local/ups/bin
> > /usr/bin/install: cannot stat `bcmxcp_usb': No such file or directory
> > /usr/bin/install -c -m 0755 hidups /usr/local/ups/bin
> > /usr/bin/install: cannot stat `hidups': No such file or directory
> > /usr/bin/install -c -m 0755 energizerups /usr/local/ups/bin
> > /usr/bin/install: cannot stat `energizerups': No such file or directory
> > make[1]: *** [install-usb] Error 1
> > make[1]: Leaving directory `/tmp/nut-092405/drivers'
> > make[1]: Entering directory `/tmp/nut-092405/man'
> > /usr/bin/install -c -m 0644 newhidups.8 /usr/local/ups/man/man8
> > /usr/bin/install -c -m 0644 bcmxcp_usb.8 /usr/local/ups/man/man8
> > /usr/bin/install -c -m 0644 hidups.8 /usr/local/ups/man/man8
> > /usr/bin/install -c -m 0644 energizerups.8 /usr/local/ups/man/man8
> > make[1]: Leaving directory `/tmp/nut-092405/man'
> > [root at home nut-092405]# /usr/local/ups/bin/bcmxcp_usb -DD -u nut -a
> > powerware
> > bash: /usr/local/ups/bin/bcmxcp_usb: No such file or directory
> >
> >
> > On 9/24/05, Kjell Claesson < kjell.claesson at telia.com> wrote:
> >
> > > Hi John.
> > >
> > > Have you run the 'make install-usb' so the driver is located in the
> > > bin
> > > directory? Then you have to set up the ups.conf so the driver is
> > > bcmxcp_usb and the port pointing to the device created from the
> > > hotplug.
> > >
> > > Make shure the device is created.
> > >
> > > Check with lsusb ,an it should report the info from
> > > /proc/bus/usb
> > >
> > > You may run the driver only to se if it communicate to the ups.
> > >
> > > /usr/local/ups/bin/bcmxcp_usb -DD -u nut -a powerware
> > >
> > > This command is if the driver is located in /usr/local and it is named
> > > powerware in the ups.conf and it going to be run as user nut.
> > >
> > > You have to run this command as root to get it to work. The -DD is the
> > >
> > > debug level. But you must find the device first.
> > >
> > > In this way you can se that the driver is ok. Then you can start up
> > > the
> > > upsdeamon and monitor with the startup script.
> > >
> > > The problem is that i don't have any usb ups. So i can not give you
> > > any
> > > real assistans on this matter.
> > >
> > > Kjell
> > >
> > > fre 2005-09-23 klockan 18:06 -0500 skrev John H.:
> > > > apparently not, i still get this...
> > > >
> > > > /etc/rc.d/init.d/ups restart
> > > > Stopping UPS monitor: [FAILED]
> > > > Starting UPS monitor (slave): Network UPS Tools upsmon 2.0.1
> > > > Using power down flag file /etc/killpower
> > > >
> > > >
> > > > Fatal error: insufficient power configured!
> > > >
> > > > Sum of power values........: 0
> > > > Minimum value (MINSUPPLIES): 1
> > > >
> > > > Edit your upsmon.conf and change the values.
> > > > [FAILED]
> > > >
> > > >
> > > > On 9/23/05, John H. <mistamaila at gmail.com> wrote:
> > > > I did not have any such files, so I created them, according to
> > > > a website I saw
> > > >
> > > > /etc/hotplug/usb/usbups
> > > >
> > > > #!/bin/bash
> > > > # Implementation by Wolfgang Ocker
> > > > #
> > > > # /etc/hotplug/usb/usbups
> > > > #
> > > > # Sets up newly plugged in USB USP
> > > > #
> > > > # In the usermap file, the first field "usb module" should be
> > > > named
> > > > # "usbups" like this script.
> > > > #
> > > > echo usbups: device = $DEVICE >>/tmp/usb.log
> > > >
> > > > NUTOWNER=nut
> > > >
> > > > if [ "${ACTION}" = "add" ] && [ -f "${DEVICE}" ]
> > > > then
> > > > chmod 0000 "${DEVICE}"
> > > > chown "$NUTOWNER" "${DEVICE}"
> > > > chmod 0644 "${DEVICE}"
> > > > fi
> > > >
> > > >
> > > > and
> > > > cat usbups.usermap
> > > >
> > > >
> > > > # usb module match_flags idVendor idProduct bcdDevice_lo
> > > > bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol
> > > > bInterfaceClass bInterfaceSubClass bInterfaceProtocol
> > > > driver_info
> > > > # Powerware USB
> > > > libhidups 0x0003 0x06da 0x0002 0 0 0 0 0x00 0x00 0x00 0x00
> > > > 0x00000000
> > > >
> > > >
> > > > should that be ok?
> > > > i did chmod 755 on usbups file
> > > >
> > > >
> > > > On 9/23/05, Kjell Claesson <kjell.claesson at telia.com> wrote:
> > > > Hi John.
> > > >
> > > > I'm not the man to ask, you should talk to Wolfgang
> > > > Ocker <weo at weo1.de>.
> > > >
> > > > But i think you have to alter the usbups.usermap to
> > > > the right vendor and
> > > > product. it looks like this.
> > > > # Powerware USB
> > > > libhidups 0x0003 0x0592 0x0002 0x0000
> > > > 0x0000 0x00
> > > > 0x00 0x00 0x00 0x00
> > > > 0x00 0x00000000
> > > >
> > > > change the 0x0592 to 0x06da and i thin it should
> > > > identify your ups.
> > > >
> > > > After install you should find it in /etc/hotplug/usb i
> > > > think.
> > > > I hope it talks bcmxcp. But talk to wolfgang, i run
> > > > all my ups'es on the serial line.
> > > > I dont have any usb ups.
> > > >
> > > > Regards
> > > > Kjell
> > > >
> > > >
> > > > fre 2005-09-23 klockan 12:48 -0500 skrev John H.:
> > > > > ok, compiled and installed, what am i doing wrong?
> > > > >
> > > > >
> > > > > /etc/rc.d/init.d/ups restart
> > > > > Stopping UPS
> > > > monitor: [FAILED]
> > > > > Starting UPS monitor (slave): Network UPS Tools
> > > > upsmon 2.0.1
> > > > > Using power down flag file /etc/killpower
> > > > >
> > > > >
> > > > > Fatal error: insufficient power configured!
> > > > >
> > > > > Sum of power values........: 0
> > > > > Minimum value (MINSUPPLIES): 1
> > > > >
> > > > > Edit your upsmon.conf and change the values.
> > > > > [FAILED]
> > > > >
> > > > > On 9/23/05, John H. <mistamaila at gmail.com> wrote:
> > > > > how do i build just
> > > > > bcmxcp_usb
> > > > > ?
> > > > >
> > > > >
> > > > > On 9/23/05, John H. < mistamaila at gmail.com>
> > > > wrote:
> > > > >
> > > > > trying now, would it still
> > > > be /dev/usb/hid/hiddev0?
> > > > >
> > > > >
> > > > > On 9/23/05, Kjell Claesson
> > > > <kjell.claesson at telia.com>
> > > > > wrote:
> > > > > Hi John.
> > > > >
> > > > > It's not a hid device. Use
> > > > the development cvs
> > > > > and build the bcmxcp_usb
> > > > > driver. The ups may work
> > > > with that. 3105 and
> > > > > 5115 is reported working.
> > > > >
> > > > > Kjell Claesson
> > > > >
> > > > > fre 2005-09-23 klockan 01:05
> > > > -0500 skrev John
> > > > > H.:
> > > > > > Ok, I installed the ups,
> > > > and installed nut,
> > > > > and /proc/bus/usb/devices
> > > > > > says this
> > > > > >
> > > > > > T: Bus=03 Lev=01 Prnt=01
> > > > Port=01 Cnt=01
> > > > > Dev#= 2 Spd=1.5 MxCh= 0
> > > > > > D: Ver= 1.10
> > > > Cls=00(>ifc ) Sub=00 Prot=00
> > > > > MxPS= 8 #Cfgs= 1
> > > > > > P: Vendor=06da
> > > > ProdID=0002 Rev= 0.01
> > > > > > S: Manufacturer=POWERWARE
> > > > > > S: Product=Powerware UPS
> > > > > > C:* #Ifs= 1 Cfg#= 1 Atr=80
> > > > MxPwr= 20mA
> > > > > > I: If#= 0 Alt= 0 #EPs= 1
> > > > Cls=ff(vend.)
> > > > > Sub=00 Prot=00 Driver=(none)
> > > > > > E: Ad=81(I) Atr=03(Int.)
> > > > MxPS= 8 Ivl=20ms
> > > > > >
> > > > > >
> > > > > > why does it say
> > > > driver=none? how do i get it
> > > > > to say hid?
> > > > > >
> > > > > > i am on fc4 machine, and I
> > > > edited ups.conf
> > > > > to say
> > > > > >
> > > > > > [PW3]
> > > > > > driver = hidups
> > > > > > port
> > > > = /dev/usb/hid/hiddev0
> > > > > >
> > > > > >
> > > > > > as I used the make-hiddev
> > > > script from
> > > > > apcupsd, which created that
> > > > > > there.
> > > > > >
> > > > > > thanks!
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > -----BEGIN PGP
> > > > SIGNATURE-----
> > > > > Version: GnuPG v1.4.2
> > > > (GNU/Linux)
> > > > >
> > > > >
> > > > iD8DBQBDNBJ9DrrB/8XoY/ARAogmAKDXk6UHj8Rg
> > > > > +z1pH7BRl8obgl9l3QCfQcAx
> > > > > Z4Ws8bZGGN0uyFSFo1da6AA=
> > > > > =yTtn
> > > > > -----END PGP SIGNATURE-----
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > > -----BEGIN PGP SIGNATURE-----
> > > > Version: GnuPG v1.4.2 (GNU/Linux)
> > > >
> > > >
> > > > iD8DBQBDNFSVDrrB/8XoY/ARAkGDAJ0bkGE2a/jwX/jSmmc1mYcjSsrsfwCg7gyO
> > > > f1r+5Xd/JLlqOCqlCWNiZUM=
> > > > =nBXA
> > > > -----END PGP SIGNATURE-----
> > > >
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > Nut-upsuser mailing list
> > > > Nut-upsuser at lists.alioth.debian.org
> > > > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> > >
> > >
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.4.2 (GNU/Linux)
> > >
> > > iD8DBQBDNS12DrrB/8XoY/ARAgCqAJ9/Jfm3Ge/mr+Fmpq8leITNsv/LVACfTFT5
> > > B65mEA3GvUsuQ6WdooFNCrA=
> > > =Zpe3
> > > -----END PGP SIGNATURE-----
> > >
> > >
> > >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20050927/6ef6cef1/attachment.htm
More information about the Nut-upsuser
mailing list