LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-07-2010, 01:55 AM   #1
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Rep: Reputation: 15
CyberPower CP1500C UPS and USB with NUT problem


I am trying to configure NUT to work with a new CyberPower CP1500C UPS via a USB connection. As far as I can tell everything is configured correctly -- the system recognizes the UPS and can talk to it, and when I start upsd everything is fine at first. Unfortunately, a few seconds after upsd starts, my syslog is flooded with time out errors every 2 seconds.

Here is what happens after I start upsd:
Code:
[root@localhost /]# service upsd start
NUT Starting UPS model drivers: Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
Using subdriver: CyberPower HID 0.3
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
libusb_get_report: Success
                                                                                                            [  OK  ]
NUT Starting UPS daemon: Network UPS Tools upsd 2.4.3
listening on 127.0.0.1 port 3493
listening on ::1 port 3493
Connected to UPS [main_ups]: usbhid-ups-ups_main
                                                                                                            [  OK  ]
[root@localhost /]#
So far so good. However, almost immediately my syslog will fill up with this:

Code:
[root@localhost log]# more syslog
Aug  7 01:23:49 localhost usbhid-ups[5120]: Startup successful
Aug  7 01:23:49 localhost upsd[5128]: listening on 127.0.0.1 port 3493
Aug  7 01:23:49 localhost upsd[5128]: listening on ::1 port 3493
Aug  7 01:23:49 localhost upsd[5128]: Connected to UPS [main_ups]: usbhid-ups-ups_main
Aug  7 01:23:49 localhost upsd[5129]: Startup successful
Aug  7 01:23:49 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:49 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:51 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:53 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
Aug  7 01:23:53 localhost usbhid-ups[5120]: libusb_get_report: Connection timed out
[root@localhost log]#
This will continue until I stop the upsd service. During this time, upsmon appears to find and connect to the UPS just fine:

Code:
[root@localhost log]# more syslog
Aug  7 01:46:24 localhost usbhid-ups[6401]: libusb_get_report: Connection timed out
Aug  7 01:46:24 localhost upsmon[6610]: Startup successful
Aug  7 01:46:24 localhost upsd[6409]: User upsmon@127.0.0.1 logged into UPS [ups_main]
Aug  7 01:46:26 localhost usbhid-ups[6401]: libusb_get_report: Connection timed out
[root@localhost log]#
I can't figure out what the problem is. At first I thought the problem might be something else trying to steal control of the UPS, but I don't know how to tell if that's happening. My setup seems pretty straightforward and I'm not trying to do anything weird or fancy. Here's the output from lsusb:

Code:
[root@localhost /]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 0764:0501 Cyber Power System, Inc. CP1500 AVR UPS
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 0a81:0205 Chesen Electronics Corp. PS/2 Keyboard+Mouse Adapter
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@localhost /]#
Here's my configuration in upsd.conf:
Code:
[ups_main]
        driver = usbhid-ups
        port = auto
        desc = "Main Server UPS"
I am running Mandriva 2010.1 and my kernel is 2.6.33.5-desktop-2mnb. Any help would be much appreciated. I would even be happy if someone could simply tell me how to stop logging the continuous errors since the upsmon service appears to talk to the UPS just fine. Thanks!
 
Old 08-11-2010, 07:22 PM   #2
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Original Poster
Rep: Reputation: 15
Still haven't been able to fix this problem or make any progress...does anyone have any suggestions?
 
Old 08-16-2010, 05:07 PM   #3
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Original Poster
Rep: Reputation: 15
Still nothin'? Really?
 
Old 08-23-2010, 07:37 PM   #4
81bones
Member
 
Registered: Oct 2006
Location: Chicago, IL
Distribution: Almalinux
Posts: 66

Original Poster
Rep: Reputation: 15
Seriously? No ideas at all?
 
Old 09-23-2011, 10:01 AM   #5
CustomDesigned
LQ Newbie
 
Registered: Sep 2011
Posts: 12

Rep: Reputation: Disabled
Device problem?

We just bought a Cyber Power 1500 C. We've never had any problem with the nut usbhid-ups driver with many other brands and even CyberPower models of USB UPS. But this model runs for less than a day, and then the driver hangs. We have to restart the nut driver. Looking at the changelog for the proprietary software that comes with the unit, there were a lot of changes to try and work around what looks like hardware braindamage.
 
  


Reply

Tags
ups, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CyberPower USB UPS - Configured but not connecting tskears Linux - Hardware 3 03-10-2007 04:53 PM
UPS NUT install problem tramni1980 Slackware 0 08-14-2006 06:05 AM
Problem getting my Debian box to use nut to talk to my Belkin UPS AlucardZero Linux - Software 0 05-21-2006 06:00 PM
CyberPower UPS? Reasonably decent or junk? haertig Linux - Hardware 7 02-17-2006 05:01 PM
NUT and CyberPower UPSs cellist Linux - Hardware 3 07-05-2005 02:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration