Greg Grotsky
2007-Feb-07 10:55 UTC
[Nut-upsdev] Using USB CyberPower CPL550SL / AE550, not working with usbhid-ups driver.
So I just bought one of these fabulous CyberPower UPS devices from BestBuy hoping I could control it with my machine. Luckily, I found NUT! I've got the SVN sources and compiled and installed them but I haven't been able to get it to recognize the usb AE550. When I plug the usb cable in I see this in syslog: Feb 6 22:36:56 mythbox kernel: usb 1-1: new low speed USB device using ohci_hcd and address 4 Feb 6 22:36:56 mythbox kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 6 22:36:56 mythbox kernel: hiddev96: USB HID v1.10 Device [CPS UPS AE550] on usb-0000:00:02.0-1 I run lsusb and I see this: $ lsusb Bus 003 Device 001: ID 0000:0000 Bus 001 Device 004: ID 0764:0501 Cyber Power System, Inc. Bus 001 Device 001: ID 0000:0000 Bus 002 Device 002: ID 15c2:ffda SoundGraph Inc. Bus 002 Device 001: ID 0000:0000 My /usr/local/ups/etc/ups.conf file contains [CyberPower] driver = usbhid-ups port = auto # vendor = "Cyber Power Systems" # product = "AE550" # vendorid = 0764 # productid = 0501 desc = "MythBox" When I run upsdrvctl start I get this: $ ./upsdrvctl start Network UPS Tools - UPS driver controller 2.1.0 Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0) No matching HID UPS found Driver failed to start (exit status=1) I have tried everything in attempt to get this recognized. As you can see in my conf file I tried supplying the values I recieved in lsusb and the vendor and product names. I've tried doing that at the command line as well running usbhid-ups -x vendor=CyberPower. I've also tried supplying usbhid-ups with the device name /dev/usb/hiddev0 or /dev/usbdev1.4_ep00 or /dev/usbdev1.4_ep81 (not sure what these are but I think they all represent the ups). I've created a user for the software to use and set the permissions correctly. What am I missing?? BTW: I'm running 64bit version of Debian. I didn't have any problems with the compile or install. Thanks, -Greg -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20070206/f9adf2d4/attachment.html
Charles Lepple
2007-Feb-07 14:47 UTC
[Nut-upsdev] Using USB CyberPower CPL550SL / AE550, not working with usbhid-ups driver.
On 2/7/07, Greg Grotsky <spikeygg@gmail.com> wrote:> I've created a user for the software to use and set the > permissions correctly. What am I missing??What does 'ls -l /dev/bus/usb/001/004' say? The other device nodes do refer to that device, but are not used (in particular, anything that looks like hiddev* is avoided).> BTW: I'm running 64bit version of Debian. I didn't have any problems with > the compile or install.Which version of Debian? Debian unstable actually has NUT 2.0.5, which automatically installs the udev files that change permissions on the /dev/bus/usb* nodes. If that turns out to be the problem, you can install the nut-usbups.rules file that was built in scripts/hotplug-ng/ and get the same effect without upgrading. -- - Charles Lepple
>From the file INSTALL:The setup for USB ports is slightly more complicated. Device files for USB devices, such as /proc/bus/usb/002/001, are usually created "on the fly" when a device is plugged in, and disappear when the device is disconnected. Moreover, the names of these device files can change randomly. To set up the correct permissions for the USB device, you may need to set up (operating system dependent) hotplugging scripts. Sample scripts and information are provided in the scripts/hotplug and scripts/udev directories. (If you want to try if a driver works without setting up hotplugging, you can add the "-u root" option to upsd, upsmon, and drivers; this should allow you to follow the below instructions. However, don't forget to set up the correct permissions later!). -- Peter Greg Grotsky wrote:> > --===============4326139097053175324=> Content-Type: multipart/alternative; > boundary="----=_Part_10409_20474366.1170829092479" > > ------=_Part_10409_20474366.1170829092479 > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > So I just bought one of these fabulous CyberPower UPS devices from BestBuy > hoping I could control it with my machine. Luckily, I found NUT! I've got > the SVN sources and compiled and installed them but I haven't been able to > get it to recognize the usb AE550. > > When I plug the usb cable in I see this in syslog: > Feb 6 22:36:56 mythbox kernel: usb 1-1: new low speed USB device using > ohci_hcd and address 4 > Feb 6 22:36:56 mythbox kernel: usb 1-1: configuration #1 chosen from 1 > choice > Feb 6 22:36:56 mythbox kernel: hiddev96: USB HID v1.10 Device [CPS UPS > AE550] on usb-0000:00:02.0-1 > > I run lsusb and I see this: > $ lsusb > Bus 003 Device 001: ID 0000:0000 > Bus 001 Device 004: ID 0764:0501 Cyber Power System, Inc. > Bus 001 Device 001: ID 0000:0000 > Bus 002 Device 002: ID 15c2:ffda SoundGraph Inc. > Bus 002 Device 001: ID 0000:0000 > > My /usr/local/ups/etc/ups.conf file contains > [CyberPower] > driver = usbhid-ups > port = auto > # vendor = "Cyber Power Systems" > # product = "AE550" > # vendorid = 0764 > # productid = 0501 > desc = "MythBox" > > When I run upsdrvctl start I get this: > $ ./upsdrvctl start > Network UPS Tools - UPS driver controller 2.1.0 > Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0) > > No matching HID UPS found > Driver failed to start (exit status=1) > > > I have tried everything in attempt to get this recognized. As you can see > in my conf file I tried supplying the values I recieved in lsusb and the > vendor and product names. I've tried doing that at the command line as well > running usbhid-ups -x vendor=CyberPower. I've also tried supplying > usbhid-ups with the device name /dev/usb/hiddev0 or /dev/usbdev1.4_ep00 or > /dev/usbdev1.4_ep81 (not sure what these are but I think they all represent > the ups). I've created a user for the software to use and set the > permissions correctly. What am I missing?? > > BTW: I'm running 64bit version of Debian. I didn't have any problems with > the compile or install. > > Thanks, > -Greg > > ------=_Part_10409_20474366.1170829092479 > Content-Type: text/html; charset=ISO-8859-1 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > So I just bought one of these fabulous CyberPower UPS devices from BestBuy hoping I could control it with my machine. Luckily, I found NUT! I've got the SVN sources and compiled and installed them but I haven't been able to get it to recognize the usb AE550. > <br><br>When I plug the usb cable in I see this in syslog:<br>Feb 6 22:36:56 mythbox kernel: usb 1-1: new low speed USB device using ohci_hcd and address 4<br>Feb 6 22:36:56 mythbox kernel: usb 1-1: configuration #1 chosen from 1 choice > <br>Feb 6 22:36:56 mythbox kernel: hiddev96: USB HID v1.10 Device [CPS UPS AE550] on usb-0000:00:02.0-1<br><br>I run lsusb and I see this:<br>$ lsusb<br>Bus 003 Device 001: ID 0000:0000<br>Bus 001 Device 004: ID 0764:0501 Cyber Power System, Inc. > <br>Bus 001 Device 001: ID 0000:0000<br>Bus 002 Device 002: ID 15c2:ffda SoundGraph Inc.<br>Bus 002 Device 001: ID 0000:0000<br><br>My /usr/local/ups/etc/ups.conf file contains<br>[CyberPower]<br> driver = usbhid-ups<br> port = auto > <br># vendor = "Cyber Power Systems"<br># product = "AE550"<br># vendorid = 0764<br># productid = 0501<br> desc = "MythBox"<br><br>When I run upsdrvctl start I get this:<br>$ ./upsdrvctl start > <br>Network UPS Tools - UPS driver controller 2.1.0<br>Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30 (2.1.0)<br><br>No matching HID UPS found<br>Driver failed to start (exit status=1)<br><br><br>I have tried everything in attempt to get this recognized. As you can see in my conf file I tried supplying the values I recieved in lsusb and the vendor and product names. I've tried doing that at the command line as well running usbhid-ups -x vendor=CyberPower. I've also tried supplying usbhid-ups with the device name /dev/usb/hiddev0 or /dev/usbdev1.4_ep00 or /dev/usbdev1.4_ep81 (not sure what these are but I think they all represent the ups). I've created a user for the software to use and set the permissions correctly. What am I missing?? > <br><br>BTW: I'm running 64bit version of Debian. I didn't have any problems with the compile or install.<br><br>Thanks,<br>-Greg<br><br> > > ------=_Part_10409_20474366.1170829092479-- > > > --===============4326139097053175324=> Content-Type: text/plain; charset="us-ascii" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Content-Disposition: inline > > _______________________________________________ > Nut-upsdev mailing list > Nut-upsdev@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev > --===============4326139097053175324==-- >