Hello.

I have some problems while attaching Ricoh Caplio RR30
(Vendor=05ca ProdID=2202). It doesn't work and even properly attaches to
scsi.

Google search against this problem shows nothing interesting except one
feature request for gphoto at sourceforge: someone says there that "it
is not mass storage device", but i completely do not understand this.
[http://sourceforge.net/mailarchive/forum.php?thread_id=2465124&forum_i
d=18775]

Please help to make this camera properly works or at least
show the direction where to find quick explanation about errors showed
below.

Great thanks in advance.

Here is 2.4.22-pre1 with all usb/scsi stuff modular dmesg after
inserting following strings to unusual_devs.h:
UNUSUAL_DEV(  0x05ca, 0x2202, 0x0000, 0x9999,
                "Ricoh",
                "Caplio RR30",
                US_SC_8070, US_PR_DEVICE, NULL,
                0 ),
Btw, US_PR_* doesn't matter if it was with interrupt or only bulk.
One string was also added into /etc/hotplug/usb.usermap.

After doing `lsusb' log containsfollowing string:
usbdevfs: process 2268 (lsusb) did not claim interface 0 before use

Here are dmesg, proc/bus/usb/devices, /proc/scsi/scsi,
/proc/scsi/usb-storage-0/0

dmesg:
hub.c: new USB device 00:1f.2-1, assigned address 6
usb.c: kmalloc IF cdabaf3c, numif 1
usb.c: new device strings: Mfr=1, Product=2, SerialNumber=0
usb.c: USB device number 6 default language ID 0x409
Manufacturer: Ricoh Company Ltd.
Product: Digital Still Camera
usb-storage: act_altsettting is 0
usb-storage: id_index calculated to be: 36
usb-storage: Array length appears to be: 84
usb-storage: Vendor: Ricoh
usb-storage: Product: Caplio RR30
usb-storage: USB Mass Storage device detected
usb-storage: Endpoints: In: 0xcd9caa94 Out: 0xcd9caaa8 Int: 0xcd9caabc
(Period 1) 
usb-storage: New GUID 05ca22020000000000000000
usb-storage: Transport: Control/Bulk/Interrupt
usb-storage: Protocol: 8070i
usb-storage: Allocating IRQ for CBI transport
usb-storage: usb_submit_urb() returns 0
usb-storage: *** thread sleeping.
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage: 12 00 00 00 ff 00 86 c6 40 d0 26 c0
usb-storage: Call to usb_stor_control_msg() returned -32
usb-storage: -- Stall on control pipe. Clearing
usb-storage: usb_stor_clear_halt: result=0
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Call to usb_stor_control_msg() returned -32
usb-storage: -- Stall on control pipe. Clearing
usb-storage: usb_stor_clear_halt: result=0
usb-storage: -- auto-sense failure
usb-storage: CB_reset() called
usb-storage: CB[I] soft reset failed -32
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage: 12 00 00 00 ff 00 86 c6 40 d0 26 c0
usb-storage: Call to usb_stor_control_msg() returned -32
usb-storage: -- Stall on control pipe. Clearing
usb-storage: usb_stor_clear_halt: result=0
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Call to usb_stor_control_msg() returned -32
usb-storage: -- Stall on control pipe. Clearing
usb-storage: usb_stor_clear_halt: result=0
usb-storage: -- auto-sense failure
usb-storage: CB_reset() called
usb-storage: CB[I] soft reset failed -32
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Command INQUIRY (6 bytes)
usb-storage: 12 00 00 00 ff 00 86 c6 40 d0 26 c0
usb-storage: Call to usb_stor_control_msg() returned -32
usb-storage: -- Stall on control pipe. Clearing
usb-storage: usb_stor_clear_halt: result=0
usb-storage: -- transport indicates command failure
usb-storage: Issuing auto-REQUEST_SENSE
usb-storage: Call to usb_stor_control_msg() returned -32
usb-storage: -- Stall on control pipe. Clearing
usb-storage: usb_stor_clear_halt: result=0
usb-storage: -- auto-sense failure
usb-storage: CB_reset() called
usb-storage: CB[I] soft reset failed -32
usb-storage: scsi cmd done, result=0x70000
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad target number (1/0)
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad target number (2/0)
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad target number (3/0)
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad target number (4/0)
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad target number (5/0)
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad target number (6/0)
usb-storage: *** thread sleeping.
usb-storage: queuecommand() called
usb-storage: *** thread awakened.
usb-storage: Bad target number (7/0)
usb-storage: *** thread sleeping.
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 6
usb.c: usb-storage driver claimed interface cdabaf3c
usb.c: kusbd: /sbin/hotplug add 6
hub.c: port 2, portstatus 303, change 0, 1.5 Mb/s

*** now shutdown the camera ***

uhci.c: root-hub INT complete: port1: 8a port2: 1a5 data: 2
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
hub.c: port 1 connection change
hub.c: port 1, portstatus 100, change 3, 12 Mb/s
usb.c: USB disconnect on device 00:1f.2-1 address 6
usb-storage: storage_disconnect() called
usb-storage: -- releasing irq URB
usb-storage: USB IRQ received for device on host 0
usb-storage: -- IRQ data length is 0
usb-storage: -- IRQ state is -2
usb-storage: -- Interrupt Status (0x0, 0x0)
usb-storage: -- IRQ too short
usb-storage: -- usb_unlink_urb() returned 0
usb-storage: -- releasing main URB
usb-storage: -- usb_unlink_urb() returned -19
usb.c: kusbd: /sbin/hotplug remove 6
hub.c: port 2, portstatus 303, change 0, 1.5 Mb/s
uhci.c: root-hub INT complete: port1: 88 port2: 1a5 data: 2
hub.c: port 1, portstatus 100, change 2, 12 Mb/s
hub.c: port 1 enable change, status 100
hub.c: port 2, portstatus 303, change 0, 1.5 Mb/s


Interesting part from /proc/bus/usb/devices:

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  6 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=05ca ProdID=2202 Rev= 0.00
S:  Manufacturer=Ricoh Company Ltd.
S:  Product=Digital Still Camera
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=08(stor.) Sub=00 Prot=00
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
E:  Ad=83(I) Atr=03(Int.) MxPS=   8 Ivl=1ms

/proc/scsi/usb-storage-0/0

   Host scsi0: usb-storage
       Vendor: Ricoh Company Ltd.
      Product: Digital Still Camera
Serial Number: None
     Protocol: 8070i
    Transport: Control/Bulk/Interrupt
         GUID: 05ca22020000000000000000
     Attached: Yes

And as expected /proc/scsi/scsi contains:
Attached devices: none

lsusb:

Bus 001 Device 007: ID 05ca:2202 Ricoh Company Ltd. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               1.10
  bDeviceClass            0 Interface
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0         8
  idVendor           0x05ca Ricoh Company Ltd.
  idProduct          0x2202 
  bcdDevice            0.00
  iManufacturer           1 Ricoh Company Ltd.
  iProduct                2 Digital Still Camera
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           39
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         8 Mass Storage
      bInterfaceSubClass      0 
      bInterfaceProtocol      0 
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               none
        wMaxPacketSize         64
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               none
        wMaxPacketSize          8
        bInterval               1
  Language IDs: (length=4)
     0409 English(US)




        Evgeniy Polyakov ( s0mbre )


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to