"port = auto" does not work with bcmxcp_usb (powerware 5115)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nut (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
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_
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@127.0.0.1 logged into UPS [powerware]
Sep 14 08:59:37 ub3 upsmon[31418]: Poll UPS [powerware@
Sep 14 08:59:37 ub3 upsmon[31418]: Communications with UPS powerware@localhost lost
Changing port to an undocumented (and unstable) value below it does connect to the ups & seems to work properly.
port = /dev/bus/
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
bNumConfigura
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurat
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 60mA
Interface Descriptor:
bLength 9
bDescript
bInterfac
bAlternat
bNumEndpoints 1
bInterfac
bInterfac
bInterfac
iInterface 0
** UNRECOGNIZED: 09 21 00 01 00 01 22 00 00
Endpoint Descriptor:
bLength 7
Transfer Type Interrupt
Synch Type None
Usage Type Data
bInterval 20
$ upsc powerware
ambient.
ambient.
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.
driver.
driver.version: 2.6.0
driver.
input.frequency: 50.34
input.frequency
input.frequency
input.frequency
input.transfer.
input.transfer.
input.transfer.low: 194
input.transfer.
input.voltage: 232
input.voltage.
output.current: 0.8
output.
output.frequency: 50.34
output.phases: 1
output.voltage: 232
output.
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
ProcVersionSign
Uname: Linux 2.6.38-10-generic x86_64
NonfreeKernelMo
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)
Changed in nut (Ubuntu): | |
status: | New → Incomplete |
After changing port back to auto it seems to work. System has not been rebooted since installing nut.
Could this be some form of a race condition as speculated in other bug reports?