[Nut-upsuser] Blazer_usb driver almost supports Centralion Titan Elite, but not quite
Leonardo Tancredi
leotancredi at gmail.com
Wed Feb 17 09:41:59 UTC 2016
Hello,
I have a UPS branded as "Energit MXE II" that comes with the infamous
Winpower software (as already discussed in this old thread
<http://nut-upsdev.alioth.debian.narkive.com/m0FWk43o/blazer-usb-compatibility-with-ippon-backpro-upses-phoenix-power-co-ltd-usb-to-serial-controller>).
This same UPS appears to be sold as "Centralion Titan Elite" and maybe
other names too.
My system runs Kubuntu 14.04 LTS, and I got some recent NUT version from this
ppa
<https://launchpad.net/~dobey/+archive/ubuntu/systools/+sourcepub/6062635/+listing-archive-extra>
so
I currently have a package called
nut-server_2.7.3.1+r2547.1~ubuntu14.04.1_amd64.deb . The official one from
Ubuntu doesn't work with my UPS.
Now, this version almost works. The problem is that it's constantly losing
connection with the UPS because it keeps falling off the bus and coming
back immediately (under a different device number). On /var/log/syslog I
have block after block of this, each precisely separated by the same time
interval (which gets longer if pollinterval grows):
Feb 17 06:12:52 myhost kernel: [322433.317805] usb 3-7: USB disconnect,
device number 40
Feb 17 06:12:52 myhost kernel: [322433.797116] usb 3-7: new low-speed USB
device number 41 using xhci_hcd
Feb 17 06:12:52 myhost kernel: [322433.825669] usb 3-7: New USB device
found, idVendor=06da, idProduct=0201
Feb 17 06:12:52 myhost kernel: [322433.825675] usb 3-7: New USB device
strings: Mfr=3, Product=1, SerialNumber=0
Feb 17 06:12:52 myhost kernel: [322433.825679] usb 3-7: Product: USB Card
Feb 17 06:12:52 myhost kernel: [322433.825681] usb 3-7: Manufacturer: PPC
Feb 17 06:12:52 myhost kernel: [322433.825849] usb 3-7: ep 0x81 - rounding
interval to 64 microframes, ep desc says 80 microframes
Feb 17 06:12:52 myhost kernel: [322433.833433] hid-generic
0003:06DA:0201.011E: hiddev0,hidraw0: USB HID v1.11 Device [PPC USB Card]
on usb-0000:00:14.0-7/input0
Feb 17 06:12:52 myhost mtp-probe: checking bus 3, device 41:
"/sys/devices/pci0000:00/0000:00:14.0/usb3/3-7"
Feb 17 06:12:52 myhost mtp-probe: bus: 3, device: 41 was not an MTP device
I tried using the synchronous, novendor and norating settings, to no avail.
I also tried a longer pollinterval but that just makes it take longer to
reconnect. Here's my ups.conf:
[energit]
driver = blazer_usb
port = auto
desc = "Energit MXE II (Centralion Titan Elite)"
vendorid = "06da"
productid = "0201"
subdriver = "phoenix"
protocol = "megatec"
synchronous = yes
novendor = enabled
norating = enabled
pollinterval = "10"
I tried all the available protocols and subdrivers, and this combination
seems to be the one that gets more values.
Here's the driver's debuging output:
# /lib/nut/blazer_usb -u nut -DDDDDDDDD -a energit
Network UPS Tools - Megatec/Q1 protocol USB driver 0.12 (2.7.3.1)
0.000000 send_to_all: SETINFO driver.parameter.port "auto"
0.000077 send_to_all: SETINFO driver.parameter.vendorid "06da"
0.000100 send_to_all: SETINFO driver.parameter.productid "0201"
0.000118 send_to_all: SETINFO driver.parameter.subdriver "phoenix"
0.000135 send_to_all: SETINFO driver.parameter.protocol "megatec"
0.000154 send_to_all: SETINFO driver.parameter.novendor "enabled"
0.000170 send_to_all: SETINFO driver.parameter.norating "enabled"
0.000209 debug level is '9'
0.300282 Checking device (1D6B/0003) (004/001)
0.300432 - VendorID: 1d6b
0.300450 - ProductID: 0003
0.300461 - Manufacturer: unknown
0.300472 - Product: unknown
0.300485 - Serial Number: unknown
0.300497 - Bus: 004
0.300508 - Device release number: 0313
0.300519 Trying to match device
0.300542 Device does not match - skipping
0.300653 Checking device (06DA/0201) (003/104)
0.308983 - VendorID: 06da
0.309018 - ProductID: 0201
0.309031 - Manufacturer: PPC
0.309043 - Product: USB Card
0.309055 - Serial Number: unknown
0.309066 - Bus: 003
0.309078 - Device release number: 0000
0.309089 Trying to match device
0.309153 Device matches
0.309177 failed to claim USB device: could not claim interface 0:
Device or resource busy
0.309465 detached kernel driver from USB device...
0.309504 nut_usb_set_altinterface: skipped
usb_set_altinterface(udev, 0)
0.309525 send_to_all: SETINFO ups.vendorid "06da"
0.309540 send_to_all: SETINFO ups.productid "0201"
0.309558 send_to_all: SETINFO device.type "ups"
0.309573 send_to_all: SETINFO driver.version "2.7.3.1"
0.309589 send_to_all: SETINFO driver.version.internal "0.12"
0.309603 send_to_all: SETINFO driver.name "blazer_usb"
0.309640 Trying megatec protocol...
1.310743 flush: could not claim interface 0: Device or resource busy
1.312141 send: Q1
1.532991 read: (226.5 223.7 221.0 021 50.0 2.25 41.5 00000001
1.533075 send_to_all: SETINFO input.voltage "226.5"
1.533097 send_to_all: SETINFO input.voltage.fault "223.7"
1.533115 send_to_all: SETINFO output.voltage "221.0"
1.533149 send_to_all: SETINFO ups.load "21"
1.533164 send_to_all: SETINFO input.frequency "50.0"
1.533184 send_to_all: SETINFO battery.voltage "2.25"
1.533199 send_to_all: SETINFO ups.temperature "41.5"
1.533213 send_to_all: SETINFO ups.beeper.status "enabled"
1.533227 send_to_all: SETINFO ups.type "online"
1.533245 send_to_all: SETINFO ups.status "OL"
1.533258 Status read in 1 tries
1.533270 Supported UPS detected with megatec protocol
1.533283 No values provided for battery high/low voltages in ups.conf
1.533298 send_to_all: SETINFO battery.voltage.low "-0.87"
1.533313 send_to_all: SETINFO battery.voltage.high "-1.08"
1.533326 Using 'guestimation' (low: -0.866667, high: -1.083333)!
1.533339 Battery runtime will not be calculated (runtimecal not set)
1.533354 send_to_all: SETINFO ups.delay.start "180"
1.533368 send_to_all: SETINFO ups.delay.shutdown "30"
1.533381 send_to_all: ADDCMD beeper.toggle
1.533394 send_to_all: ADDCMD load.off
1.533406 send_to_all: ADDCMD load.on
1.533418 send_to_all: ADDCMD shutdown.return
1.533431 send_to_all: ADDCMD shutdown.stayoff
1.533443 send_to_all: ADDCMD shutdown.stop
1.533476 send_to_all: ADDCMD test.battery.start
1.533495 send_to_all: ADDCMD test.battery.start.deep
1.533509 send_to_all: ADDCMD test.battery.start.quick
1.533521 send_to_all: ADDCMD test.battery.stop
1.541014 dump: (8 bytes) => 00 00 00 00 00 00 00 00
1.548963 dump: (8 bytes) => 00 00 00 00 00 00 00 00
1.556983 dump: (8 bytes) => 00 00 00 00 00 00 00 00
1.564983 dump: (8 bytes) => 00 00 00 00 00 00 00 00
1.572975 dump: (8 bytes) => 00 00 00 00 00 00 00 00
1.580992 dump: (8 bytes) => 00 00 00 00 00 00 00 00
1.588977 dump: (8 bytes) => 00 00 00 00 00 00 00 00
1.597008 dump: (8 bytes) => 00 00 00 00 00 00 00 00
2.596779 send: error sending control message: Connection timed out
2.596828 blazer_status: short reply
2.596834 Communications with UPS lost: status read failed!
2.596895 dstate_init: sock /var/run/nut/blazer_usb-energit open on
fd 5
2.596907 send_to_all: SETINFO driver.parameter.pollinterval "10"
2.596914 send_to_all: SETINFO driver.parameter.synchronous "yes"
2.604987 dump: (8 bytes) => 00 00 00 00 00 00 00 00
2.614581 flush: error sending control message: Connection timed out
2.614646 send: error sending control message: No such device
2.614679 blazer_status: short reply
2.614693 Communications with UPS lost: status read failed!
So it seems to be able to read eight 8-bytes blocks but then fails to read
the ninth block (not that this data makes sense to me, since it gets all
zeroes). Now, I'm not sure I understand what was discussed in the old
thread I referenced above, but there seemed to be some issue with trying to
read more than 64 bytes, which seems suspicious because that's the same
thing happening here.
Any help would be appreciated. Thanks.
LT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20160217/e09cbab8/attachment.html>
More information about the Nut-upsuser
mailing list