[Nut-upsdev] Problem with blazer_usb and 0001:0000 device

Lihamakaroonilaatikko lihamakaroonilaatikko at gmail.com
Sun Apr 15 13:24:31 UTC 2012


On 15.04.2012 14:52, Arnaud Quette wrote:
> 
> 2012/4/15 Lihamakaroonilaatikko <lihamakaroonilaatikko at gmail.com
> <mailto:lihamakaroonilaatikko at gmail.com>>
> 
>     I have Tecnoware EcoStrip 1100VA UPS which unfortunately uses Upsilon
>     2000 software. Their Linux software does not work but Windows version
>     does so I made pcap file of the usb traffic with Wireshark available at
>     http://www.dumbot.net/problems/EcoSrip1100VA.pcap
> 
>     I've read many posts on problems with these devices and tried all
>     variations available with the blazer_usb driver without any luck. I'm
>     running Mageia1 with self compiled 3.3.2 kernel, libusb is version
>     1.0.8, and I've tried 2.6.3 as well as latest from svn.
> 
>     Can anyone provide any help?
> 
> 
> be sure to use 2.6.3: I've added back your VID:PID in this release.
> use "-u root" when starting driver, for testing, to avoid udev rules issue.
> re install the udev rule from 2.6.3 if needed.
> 
> and send back a driver debug output (-DDDDD) running for 1 mn,
> compressed if needed
> apart from few malformed packets, the pcap seems fine.
> 
# cat /etc/ups/ups.conf
[UPS]
        driver = "blazer_usb"
        port = auto
        vendorid = 0001
        productid = 0000
        bus="004"
        subdriver = "krauler"
        # langid_fix = "0x4095"
        desc = "EcoStrip 1100VA USB"

# blazer_usb -a UPS -DDDDD -u root

Network UPS Tools - Megatec/Q1 protocol USB driver 0.07 (2.6.3-3533M)
   0.000000     debug level is '5'
   0.376462     Checking device (1D6B/0002) (001/001)
   0.376840     - VendorID: 1d6b
   0.376938     - ProductID: 0002
   0.377020     - Manufacturer: Linux 3.3.2 ehci_hcd
   0.377071     - Product: EHCI Host Controller
   0.377143     - Serial Number: 0000:00:12.2
   0.377190     - Bus: 001
   0.377245     Trying to match device
   0.377313     Device does not match - skipping
   0.377382     Checking device (1D6B/0002) (002/001)
   0.377593     - VendorID: 1d6b
   0.377662     - ProductID: 0002
   0.377718     - Manufacturer: Linux 3.3.2 ehci_hcd
   0.377777     - Product: EHCI Host Controller
   0.377835     - Serial Number: 0000:00:13.2
   0.377890     - Bus: 002
   0.377945     Trying to match device
   0.378008     Device does not match - skipping
   0.378076     Checking device (07CC/0320) (002/002)
   0.383272     - VendorID: 07cc
   0.383318     - ProductID: 0320
   0.383335     - Manufacturer:         Ltd
   0.383350     - Product: Winter Ver1.3
   0.383366     - Serial Number: 953948006902
   0.383382     - Bus: 002
   0.383397     Trying to match device
   0.383480     Device does not match - skipping
   0.383533     Checking device (1D6B/0001) (003/001)
   0.383738     - VendorID: 1d6b
   0.383759     - ProductID: 0001
   0.383804     - Manufacturer: Linux 3.3.2 ohci_hcd
   0.383819     - Product: OHCI Host Controller
   0.383834     - Serial Number: 0000:00:12.0
   0.383849     - Bus: 003
   0.383864     Trying to match device
   0.383882     Device does not match - skipping
   0.383914     Checking device (1D6B/0001) (004/001)
   0.384084     - VendorID: 1d6b
   0.384102     - ProductID: 0001
   0.384117     - Manufacturer: Linux 3.3.2 ohci_hcd
   0.384133     - Product: OHCI Host Controller
   0.384148     - Serial Number: 0000:00:12.1
   0.384163     - Bus: 004
   0.384178     Trying to match device
   0.384194     Device does not match - skipping
   0.384222     Checking device (0001/0000) (004/002)
   0.389093     - VendorID: 0001
   0.389167     - ProductID: 0000
   0.389213     - Manufacturer: unknown
   0.389256     - Product: unknown
   0.389299     - Serial Number: unknown
   0.389409     - Bus: 004
   0.389453     Trying to match device
   0.389643     Device matches
   0.393096     send_to_all: SETINFO ups.vendorid "0001"
   0.393200     send_to_all: SETINFO ups.productid "0000"
   0.393286     send_to_all: SETINFO device.type "ups"
   0.393368     send_to_all: SETINFO driver.version "2.6.3-3533M"
   0.393421     send_to_all: SETINFO driver.version.internal "0.07"
   0.393500     send_to_all: SETINFO driver.name "blazer_usb"
   0.393557     Trying megatec protocol...
   0.393607     send: Q1
   0.395117     read: Numerical result out of range
   0.395243     blazer_status: short reply
   0.395322     Status read 1 failed
   0.395417     send: Q1
   0.397092     read: Numerical result out of range
   0.397189     blazer_status: short reply
   0.397249     Status read 2 failed
   0.397312     send: Q1
   0.399090     read: Numerical result out of range
   0.399186     blazer_status: short reply
   0.399236     Status read 3 failed
   0.399309     Trying mustek protocol...
   0.399387     send: QS
   0.399484     read: QS
   0.399551     blazer_status: short reply
   0.399609     Status read 1 failed
   0.399665     send: QS
   0.399720     read: QS
   0.399776     blazer_status: short reply
   0.399842     Status read 2 failed
   0.399896     send: QS
   0.399952     read: QS
   0.400008     blazer_status: short reply
   0.400078     Status read 3 failed
   0.400135     Trying megatec/old protocol...
   0.400186     send: D
   0.400245     read: D
   0.400334     blazer_status: short reply
   0.400394     Status read 1 failed
   0.400443     send: D
   0.400504     read: D
   0.400563     blazer_status: short reply
   0.400621     Status read 2 failed
   0.400682     send: D
   0.400741     read: D
   0.400800     blazer_status: short reply
   0.400860     Status read 3 failed
   0.400921     Trying zinto protocol...
   0.400980     send: Q1
   0.402094     read: Numerical result out of range
   0.402158     blazer_status: short reply
   0.402218     Status read 1 failed
   0.402264     send: Q1
   0.404084     read: Numerical result out of range
   0.404179     blazer_status: short reply
   0.404274     Status read 2 failed
   0.404323     send: Q1
   0.406085     read: Numerical result out of range
   0.406174     blazer_status: short reply
   0.406248     Status read 3 failed
   0.406323     No supported UPS detected

So no luck. Same thing with langid_fix=0x409[5]. I checked the udev
rules and they are from 2.6.3. One problem seems to be that usbhid is
claiming the devices. This can be avoided by adding "options usbhid
quirks=0x0001:0x0000:0x4" to /etc/modprobe.d/blacklist-local" but it
does not help. The capture was taken through usbmon from VMware
virtualised WinXP's usb port.

Jari



More information about the Nut-upsdev mailing list