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! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20050923/c9fd3490/attachment.html
Kjell Claesson
2005-Sep-23 14:32 UTC
[Nut-upsuser] trying to use powerware 3110 USB with NUT
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!-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20050923/8c1c3a6a/attachment.pgp
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@telia.com> wrote:> > Hi John. > > I'm not the man to ask, you should talk to Wolfgang Ocker <weo@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@gmail.com> wrote: > > how do i build just > > bcmxcp_usb > > ? > > > > > > On 9/23/05, John H. <mistamaila@gmail.com> wrote: > > > > trying now, would it still be /dev/usb/hid/hiddev0? > > > > > > On 9/23/05, Kjell Claesson <kjell.claesson@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----- > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20050923/29d96c46/attachment.htm
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
Broadcast message from nobody (Mon Oct 3 00:33:21 2005): Communications with UPS PW3@home lost Broadcast message from nobody (Mon Oct 3 00:33:26 2005): UPS PW3@home is unavailable
ps auxw |grep ups root 3647 0.0 0.3 9600 2052 ? Ss Oct02 0:00 cupsd root 12714 0.0 0.1 1620 616 ? Ss Oct03 0:00 /usr/sbin/upsmon nobody 12715 0.0 0.2 2220 1328 ? S Oct03 0:00 /usr/sbin/upsmon root 24675 0.0 0.1 3944 600 pts/1 R+ 00:21 0:00 grep ups On 10/4/05, Wolfgang Ocker <weo@weo1.de> wrote:> On Mon, 2005-10-03 at 21:47 -0500, John H. wrote: > > i changed to auto, and i installed bcmxcp_usb. > > > > did so and restarted ups > > > > upsc PW3@home > > Error: Connection failure: Connection refused > > This means that upsd is not listening at port 3493 on home or is not > running at all. > > >
who said i did not have hotplug files? cat usbups.usermap # usb module match_flags idVendor idProduct bcdDevice_lo bcdDevice_hi bDeviceClass bDeviceSubClass bDeviceProtocol bInterfaceClass bInterfaceSubClass bInterfaceProtocol driver_info # Powerware USB usbups 0x0003 0x06da 0x0002 0 0 0 0 0x00 0x00 0x00 0x00 0x00000000 cat 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 On 10/5/05, Arnaud Quette <aquette.dev@gmail.com> wrote:> As Kjell stated, the hoptlug files are mandatory! > > > > On 10/3/05, Kjell Claesson <kjell.claesson@telia.com > wrote: > > ... > > > > 8<---------------------------------------------------------------- > > > INSTALLATION > > > This driver is not built by default. You can build it by using > > > "make usb", and install it using "make install-usb". Note that > > > it will also install other USB drivers. > > > You also need to install manually the hotplug files (libhidups > > > and libhid.usermap), generally in etc/hotplug/usb/, to address > > > the permission settings problem. Lastly note that the libhidups > > > file must have execution flag set (ie using chmod +x ...). > > > --snip--- > Arnaud > -- > Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt > Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ > Debian Developer - http://people.debian.org/~aquette/ > OpenSource Developer - http://arnaud.quette.free.fr/
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@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@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@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@weo1.de > > > > > | Programmieren Sie noch oder patentieren Sie schon? > > > > > | -> http://www.nosoftwarepatents.com/ > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > Nut-upsuser mailing list > > > > Nut-upsuser@lists.alioth.debian.org > > > > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser > > > > > > > >
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@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@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@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@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@weo1.de > > > > > > > | Programmieren Sie noch oder patentieren Sie schon? > > > > > > > | -> http://www.nosoftwarepatents.com/ > > > > > > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > > > > Nut-upsuser mailing list > > > > > > Nut-upsuser@lists.alioth.debian.org > > > > > > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > Nut-upsuser mailing list > > Nut-upsuser@lists.alioth.debian.org > > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser > >
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@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@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@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@telia.com> wrote: > > Hi John. > > > > I'm not the man to ask, you should talk to Wolfgang > > Ocker <weo@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@gmail.com> wrote: > > > how do i build just > > > bcmxcp_usb > > > ? > > > > > > > > > On 9/23/05, John H. < mistamaila@gmail.com> > > wrote: > > > > > > trying now, would it still > > be /dev/usb/hid/hiddev0? > > > > > > > > > On 9/23/05, Kjell Claesson > > <kjell.claesson@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@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/20050924/a57bd0de/attachment.html
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@gmail.com> wrote:> > > > On 9/24/05, John H. <mistamaila@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@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@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@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@telia.com> wrote: > > > > Hi John. > > > > > > > > I'm not the man to ask, you should talk to Wolfgang > > > > Ocker <weo@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@gmail.com> wrote: > > > > > how do i build just > > > > > bcmxcp_usb > > > > > ? > > > > > > > > > > > > > > > On 9/23/05, John H. < mistamaila@gmail.com> > > > > wrote: > > > > > > > > > > trying now, would it still > > > > be /dev/usb/hid/hiddev0? > > > > > > > > > > > > > > > On 9/23/05, Kjell Claesson > > > > <kjell.claesson@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@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
Arnaud Quette
2005-Dec-20 13:42 UTC
[Nut-upsuser] trying to use powerware 3110 USB with NUT
ok, I enter the ring: - "Fatal error: insufficient power configured!" you miss the <powervalue> field, ie: MONITOR mgeups@localhost 1 monuser monpass master MINSUPPLIES 1 See the "1" after mgeups@localhost, linked to the MINSUPPLIES value. - you _need_ libusb to compile all the new USB drivers, including bcmxcp_usb. Otherwise both compile and install will fail. - to bypass the privileges (hotplug) problem at first, for testing purpose, launch the driver in standalone (+debug) mode as root using: "bcmxcp_usb -DD -u root ..." Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20051220/135a2f84/attachment.htm