<div dir="ltr"><div><br>UPS: PowerWalker VFI 3000RT LCD<br><br>CentOS 6.5, nut installed from RPM package:<br><br>nut-2.6.5-2.el6.x86_64<br>nut-client-2.6.5-2.el6.x86_64<br><br>Driver: blazer_usb<br><br>Problem description: <br>
<br>USB device "loops" when starting blazer_usb. USB device permissions are ok. Receives some information.<br><br>Error messages:<br><br>"failed to claim USB device: could not claim interface 0: Device or resource busy"<br>
<br>"send: error sending control message: Broken pipe"<br><br>"blazer_rating: short reply"<br><br><br>/etc/ups/ups.conf<br>--- clip ---<br>[pw1]<br>        driver = blazer_usb<br>        port = auto<br>
--- clip ---<br><br><br>/var/log/messages<br>--- clip ---<br>Mar  6 10:09:28 iron kernel: usb 2-1.7: new low speed USB device number 60 using ehci_hcd<br>Mar  6 10:09:28 iron kernel: usb 2-1.7: New USB device found, idVendor=06da, idProduct=0005<br>
Mar  6 10:09:28 iron kernel: usb 2-1.7: New USB device strings: Mfr=3, Product=1, SerialNumber=0<br>Mar  6 10:09:28 iron kernel: usb 2-1.7: Product: USB UPS<br>Mar  6 10:09:28 iron kernel: usb 2-1.7: Manufacturer: PPC<br>
Mar  6 10:09:28 iron kernel: usb 2-1.7: configuration #1 chosen from 1 choice<br>Mar  6 10:09:28 iron kernel: generic-usb 0003:06DA:0005.003C: hiddev96,hidraw0: USB HID v1.11 Device [PPC USB UPS] on usb-0000:00:1d.0-1.7/input0<br>
Mar  6 10:09:30 iron kernel: usb 2-1.7: USB disconnect, device number 60<br>Mar  6 10:09:30 iron kernel: usb 2-1.7: new low speed USB device number 61 using ehci_hcd<br>Mar  6 10:09:30 iron kernel: usb 2-1.7: New USB device found, idVendor=06da, idProduct=0005<br>
Mar  6 10:09:30 iron kernel: usb 2-1.7: New USB device strings: Mfr=3, Product=1, SerialNumber=0<br>Mar  6 10:09:30 iron kernel: usb 2-1.7: Product: USB UPS<br>Mar  6 10:09:30 iron kernel: usb 2-1.7: Manufacturer: PPC<br>
...<br>--- clip ---<br><br>disconnected -> new device loop with increased device number<br><br><br># blazer_usb -DDDDDDD -a pw1 -u root<br>--- clip ---<br>Network UPS Tools - Megatec/Q1 protocol USB driver 0.09 (2.6.5)<br>
   0.000000     send_to_all: SETINFO driver.parameter.port "auto"<br>   0.000040     debug level is '7'<br>   0.000459     Checking device (06DA/0005) (002/062)<br>   0.004289     - VendorID: 06da<br>   0.004300     - ProductID: 0005<br>
   0.004304     - Manufacturer: PPC<br>   0.004308     - Product: USB UPS<br>   0.004312     - Serial Number: unknown<br>   0.004316     - Bus: 002<br>   0.004319     Trying to match device<br>   0.004324     Device matches<br>
   0.004338     failed to claim USB device: could not claim interface 0: Device or resource busy<br>   0.004464     detached kernel driver from USB device...<br>   0.004859     send_to_all: SETINFO ups.vendorid "06da"<br>
   0.004871     send_to_all: SETINFO ups.productid "0005"<br>   0.004879     send_to_all: SETINFO device.type "ups"<br>   0.004884     send_to_all: SETINFO driver.version "2.6.5"<br>   0.004890     send_to_all: SETINFO driver.version.internal "0.09"<br>
   0.004897     send_to_all: SETINFO <a href="http://driver.name">driver.name</a> "blazer_usb"<br>   0.004902     Trying megatec protocol...<br>   0.005604     send: Q1<br>   0.239828     read: (229.2 229.2 229.6 005 50.0 2.20 24.6 00000001<br>
   0.239872     send_to_all: SETINFO input.voltage "229.2"<br>   0.239880     send_to_all: SETINFO input.voltage.fault "229.2"<br>   0.239886     send_to_all: SETINFO output.voltage "229.6"<br>
   0.239900     send_to_all: SETINFO ups.load "5"<br>   0.239907     send_to_all: SETINFO input.frequency "50.0"<br>   0.239914     send_to_all: SETINFO battery.voltage "2.20"<br>   0.239920     send_to_all: SETINFO ups.temperature "24.6"<br>
   0.239926     send_to_all: SETINFO ups.beeper.status "enabled"<br>   0.239931     send_to_all: SETINFO ups.type "online"<br>   0.239938     send_to_all: SETINFO ups.status "OL"<br>   0.239942     Status read in 1 tries<br>
   0.239946     Supported UPS detected with megatec protocol<br>   1.260203     send: error sending control message: Broken pipe<br>   1.462548     blazer_rating: short reply<br>   1.462559     Rating read 1 failed<br>--- clip ---<br>
<br>After this it checks all USB devices until founds the UPS again but from device 002/063 and this goes on and on..<br><br>I believe this is not permission problem since it gets some reasonable information from the UPS. I have also tried to setup device permissions to 666:<br>
<br>/lib/udev/rules.d/62-nut-usbups.rules<br>--- clip ---<br>#  Phoenixtec Innova RT  - blazer_usb<br>ATTR{idVendor}=="06da", ATTR{idProduct}=="0005", MODE="666", GROUP="dialout"<br>
--- clip ---<br><br>Device /dev/bus/usb/002/062 permissions were: <br><br>crw-rw-rw- 1 root dialout<br><br>Didn't help. I don't know why the groupname is dialout, it is the same with all rules (nut from RPM package). And yes, nut belongs to dialout group:<br>
<br>/etc/group<br>--- clip ---<br>dialout:x:18:nut<br>--- clip ---<br><br>I have also tried blazer_usb with every protocol: megatec, megatec/old, zinto<br><br>I did some searching and found nothing, usually "failed to claim USB device" problems were related to permission issues.<br>
<br><br>--<br></div>Tapio<br><div><br></div></div>