LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   CyberPower CP1500C UPS and USB with NUT problem (https://www.linuxquestions.org/questions/linux-hardware-18/cyberpower-cp1500c-ups-and-usb-with-nut-problem-824724/)

81bones 08-07-2010 01:55 AM

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!

81bones 08-11-2010 07:22 PM

Still haven't been able to fix this problem or make any progress...does anyone have any suggestions?

81bones 08-16-2010 05:07 PM

Still nothin'? Really?

81bones 08-23-2010 07:37 PM

Seriously? No ideas at all?

CustomDesigned 09-23-2011 10:01 AM

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.


All times are GMT -5. The time now is 04:44 AM.