[Bug 850672] [NEW] "port = auto" does not work with bcmxcp_usb (powerware 5115)

Tuomas Heino iheino+ub at cc.hut.fi
Thu Sep 15 07:28:43 UTC 2011


Public bug reported:

With the following ups.conf (using the only documented (bcmxcp_usb(8))
value of "auto" for port) nut fails to connect to the ups:

[powerware]
driver = bcmxcp_usb
port = auto

Sep 14 08:59:37 ub3 upsd[31413]: listening on 127.0.0.1 port 3493
Sep 14 08:59:37 ub3 upsd[31413]: listening on ::1 port 3493
Sep 14 08:59:37 ub3 upsd[31413]: Can't connect to UPS [powerware] (bcmxcp_usb-powerware): No such file or directory
Sep 14 08:59:37 ub3 upsd[31414]: Startup successful
Sep 14 08:59:37 ub3 upsmon[31416]: Startup successful
Sep 14 08:59:37 ub3 upsd[31414]: User admin at 127.0.0.1 logged into UPS [powerware]
Sep 14 08:59:37 ub3 upsmon[31418]: Poll UPS [powerware at localhost] failed - Driver not connected
Sep 14 08:59:37 ub3 upsmon[31418]: Communications with UPS powerware at localhost lost

Changing port to an undocumented (and unstable) value below it does connect to the ups & seems to work properly.
port = /dev/bus/usb/006/003

Bus 006 Device 003: ID 06da:0002 Phoenixtec Power Co., Ltd UPS
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x06da Phoenixtec Power Co., Ltd
  idProduct          0x0002 UPS
  bcdDevice            1.00
  iManufacturer           4 
  iProduct               24 
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower               60mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      ** UNRECOGNIZED:  09 21 00 01 00 01 22 00 00
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              20

$ upsc powerware
ambient.temperature: 36
ambient.temperature.high: 75
battery.charge: 100
battery.runtime: 1693
battery.voltage: 27.30
device.mfr: Eaton
device.model: PW5115 750i
device.serial: UA456A0477
device.type: ups
driver.name: bcmxcp_usb
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/bus/usb/006/003
driver.version: 2.6.0
driver.version.internal: 0.23
input.frequency: 50.34
input.frequency.high: 55
input.frequency.low: 45
input.frequency.nominal: 50
input.transfer.boost.high: 207
input.transfer.high: 266
input.transfer.low: 194
input.transfer.trim.low: 243
input.voltage: 232
input.voltage.nominal: 230
output.current:  0.8
output.current.nominal:  3.4
output.frequency: 50.34
output.phases: 1
output.voltage: 232
output.voltage.nominal: 230
ups.beeper.status: enabled
ups.firmware: Cont:01.00 Inve:10.05
ups.load:  26.7
ups.mfr: Eaton
ups.model: PW5115 750i
ups.power: 200
ups.power.nominal: 750
ups.serial: UA456A0477
ups.status: OL

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: nut 2.6.0-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.38-10.46-generic 2.6.38.7
Uname: Linux 2.6.38-10-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Thu Sep 15 10:12:26 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427)
KernelVersion: Linux ub3 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
ProcEnviron:
 LANGUAGE=en_IE:en
 LANG=en_IE.UTF-8
 SHELL=/bin/bash
SourcePackage: nut
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: nut (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug natty

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to nut in Ubuntu.
https://bugs.launchpad.net/bugs/850672

Title:
  "port = auto" does not work with bcmxcp_usb (powerware 5115)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nut/+bug/850672/+subscriptions



More information about the Ubuntu-server-bugs mailing list