Hi!

Thank you very much for looking into my problem.

Am Dienstag, 8. August 2006 16:44 schrieb Alan Stern:
> On Tue, 8 Aug 2006, Klaus Muth wrote:
> > Am Montag, 7. August 2006 08:43 schrieb Klaus Muth:
> > > I'm trying to read from an Stoneridge Optac Download tool (vend/prod
> > > 0x557/0x2008) for this European digital tachograph thing (see e.g.
> > > www.digitaltachograph.gov.uk/).
[...]

> > Plugin OPTAC Tool
> > -----------------
> > usb 1-1: new full speed USB device using uhci_hcd and address 2
> > usb 1-1: configuration #1 chosen from 1 choice
> > Initializing USB Mass Storage driver...
> > usb-storage: USB Mass Storage device detected
> > usb-storage: -- associate_dev
> > usb-storage: Vendor: 0x0000, Product: 0x0000, Revision: 0x0100
> > usb-storage: Interface Subclass: 0x06, Protocol: 0x50
> > usb-storage: Transport: Bulk
> > usb-storage: Protocol: Transparent SCSI
>
> Interesting.  You said above that the vendor and product IDs are 0x557 and
> 0x2008.  How come they show up here as 0x0000 and 0x0000?

ARGH! I mixed up the devices! 0x557/0x2008 is in fact a Prolific USB to serial 
device. I thought, I did my homework properly before posting to the mailing 
list... Not good enough. The OPTAC reports in fact 0x0000/0x0000.

[... dmesg output ...]
> The TEST UNIT READY command succeeded.  By definition, that means the
> device is capable of reading data.

[... dmesg output ...]
> PREVENT-ALLOW MEDIUM REMOVAL failed, and the sense info says: key = 6
> (Unit Attention), ASC=0x3a (Medium Not Present).  This response contains
> three errors:
>
> First, the sense key is wrong.  Unit Attention should be used to report
> changes in the device's state.  The key probably should have been 5
> (Illegal Request).
>
> Second, the ASC code is wrong.  If the device doesn't understand the
> command then it should set ASC=0x24 (Invalid Field in CDB).
>
> Third, the information is inconsistent with the success of the preceding
> TEST UNIT READY.  How can the device be ready to read if no medium is
> present?

[... even more dmesg & and plea for help ...]
> It looks as though this device simply cannot handle the PREVENT-ALLOW
> MEDIUM REMOVAL command properly.  Luckily it's possible to create a
> blacklist entry for the device that will prevent the kernel from issuing
> that command.  But only if the correct vendor and product IDs are present.

Will 0x0000/0x0000 help? All host controllers have the same IDs.

> What shows up in /proc/bus/usb/devices when you plug in the device?

[EMAIL PROTECTED]:~# cat /proc/bus/usb/devices

[ ... Bus=04 to Bus=02 ... ]

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 2.06
S:  Manufacturer=Linux 2.6.16.20 uhci_hcd
S:  Product=UHCI Host Controller
S:  SerialNumber=0000:00:1d.0
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 1.00
S:  Manufacturer=Manufacturer
S:  Product=Stoneridge OPTAC
S:  SerialNumber=0401
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

> And what does "lsusb -v" say?

[EMAIL PROTECTED]:~# lsusb -vs 001:003

Bus 001 Device 003: ID 0000:0000
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0000
  idProduct          0x0000
  bcdDevice            1.00
  iManufacturer           1 Manufacturer
  iProduct                2 Stoneridge OPTAC
  iSerial                 3 0401
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      6 SCSI
      bInterfaceProtocol     80 Bulk (Zip)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               0
Device Status:     0x0001
  Self Powered

klaus
-- 
Klaus Muth
HAGOS eG                      Industriestr. 62      fon: (+49) 711 78805-86
EDV-Programmierung            70565  Stuttgart      fax: (+49) 711 78805-35
http://www.hagos.de               Germany              mailto:[EMAIL PROTECTED]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to