Massive Issues - Sony (créé le 02/09/2023, dernières modifications 04/09/2023)

Camera

(3,0,0) when the power button light is amber

0x0021335c function=0x0021325c parent=0x0023945c(port=1) hcdid=1 address=5
speed=FULL
"" weakbinding=0 selfpowered=0
vendor name="Sony"
product name="USB Bus-powered Device"
serial number="C6732075C552"
DEVICE DESCRIPTOR (18)
  bcdUSB             0200
  bDeviceClass       0
  bDeviceSubClass    0
  bDeviceProtocol    0
  bMaxPacketSize0    64
  idVendor           054c
  idProduct          05be
  bcdDevice          0100
  iManufacturer      1
  iProduct           2
  iSerialNumber      3
  bNumConfigurations 1
CONFIGURATION DESCRIPTOR (9)
 wTotalLength        0x0022
 bNumInterfaces      1
 bConfigurationValue 1
 iConfiguration      0
 bmAttributes        0x80
 bMaxPower 250 (500 mA)
INTERFACE DESCRIPTOR (9)
 bInterfaceNumber    0x00
 bAlternateSetting   0x00
 bNumEndpoints       1
 bInterfaceClass     3
 bInterfaceSubClass  0
 bInterfaceProtocol  0
 iInterface          0
------------------------------
INTERFACE DESCRIPTOR (9)
 bInterfaceNumber    0x00
 bAlternateSetting   0x00
 bNumEndpoints       1
 bInterfaceClass     3
 bInterfaceSubClass  0
 bInterfaceProtocol  0
 iInterface          0
HID (9)
 bcdHID 0111
 bCountryCode 0
 bNumDescriptor 1
 bType=22 wLength=0013 (19)
05010900a10109001500250175089501 ..........%.u...
8102c0                           ............./..
ENDPOINT DESCRIPTOR (7)
 bEndpointAddress    0x81
 bmAttributes        0x03
 wMaxPacketSize      32
 bInterval           1

The HID report says:
0x05, 0x01,        // Usage Page (Generic Desktop Ctrls)
0x09, 0x00,        // Usage (Undefined)
0xA1, 0x01,        // Collection (Application)
0x09, 0x00,        //   Usage (Undefined)
0x15, 0x00,        //   Logical Minimum (0)
0x25, 0x01,        //   Logical Maximum (1)
0x75, 0x08,        //   Report Size (8)
0x95, 0x01,        //   Report Count (1)
0x81, 0x02,        //   Input (Data,Var,Abs,No Wrap,Linear,Preferred State,No Null Position)
0xC0,              // End Collection
Il ne faut pas placer le pilote HID, sinon il va se charger et planter en quittant

(8,6,80) when the power button light is green

0x0021335c function=0x0021325c parent=0x0023945c(port=1) hcdid=1 address=5
speed=FULL
"" weakbinding=0 selfpowered=0
vendor name="Sony"
product name="DSC-RX100"
serial number="C6732075C552"
DEVICE DESCRIPTOR (18)
  bcdUSB             0200
  bDeviceClass       0
  bDeviceSubClass    0
  bDeviceProtocol    0
  bMaxPacketSize0    64
  idVendor           054c
  idProduct          0529
  bcdDevice          0200
  iManufacturer      1
  iProduct           2
  iSerialNumber      3
  bNumConfigurations 1
CONFIGURATION DESCRIPTOR (9)
 wTotalLength        0x0020
 bNumInterfaces      1
 bConfigurationValue 1
 iConfiguration      0
 bmAttributes        0x80
 bMaxPower 250 (500 mA)
INTERFACE DESCRIPTOR (9)
 bInterfaceNumber    0x00
 bAlternateSetting   0x00
 bNumEndpoints       2
 bInterfaceClass     8
 bInterfaceSubClass  6
 bInterfaceProtocol  80
 iInterface          0
------------------------------
INTERFACE DESCRIPTOR (9)
 bInterfaceNumber    0x00
 bAlternateSetting   0x00
 bNumEndpoints       2
 bInterfaceClass     8
 bInterfaceSubClass  6
 bInterfaceProtocol  80
 iInterface          0
ENDPOINT DESCRIPTOR (7)
 bEndpointAddress    0x81
 bmAttributes        0x02
 wMaxPacketSize      64
 bInterval           0
ENDPOINT DESCRIPTOR (7)
 bEndpointAddress    0x02
 bmAttributes        0x02
 wMaxPacketSize      64
 bInterval           0


First call

054c:0529 (8,6,80)
Endpoint 0x81: Bulk IN  (Payload = 64 bytes)
Endpoint 0x02: Bulk OUT (Payload = 64 bytes)
Vendor = "Sony    "
Product = "DSC             "
Revision = "1.00"
DoIO error -34 (retries=5)
Read capacity error -1


Second call
054c:0529 (8,6,80)
Endpoint 0x81: Bulk IN  (Payload = 64 bytes)
Endpoint 0x02: Bulk OUT (Payload = 64 bytes)
Vendor = "Sony    "
Product = "DSC             "
Revision = "1.00"
60751871 sectors (512 bytes each)
Device ready
First block successfully read


Modified program with Bulk reset, clear halt IN endpoint, and clear halt OUT endpoint

054c:0529 (8,6,80)
Endpoint 0x81: Bulk IN  (Payload = 64 bytes)
Endpoint 0x02: Bulk OUT (Payload = 64 bytes)
Vendor = "Sony    "
Product = "DSC             "
Revision = "1.00"
DoIO error -34 (retries=5)
Read capacity error -1
Reset Bulk-Only     0
Clear Halt Bulk-In  0
Clear Halt Bulk-Out 0
DoIO error -34 (retries=5)
Read capacity error -1
Reset Bulk-Only     0
Clear Halt Bulk-In  0
Clear Halt Bulk-Out 0
60751871 sectors (512 bytes each)
Device ready
First block successfully read
=> SUCCESS !