iPhone 4(S) access via gphoto2

Hans Petter Selasky hps at bitfrost.no
Sun Oct 13 06:49:37 UTC 2013


On 10/12/13 21:01, Alexey Dokuchaev wrote:
> On Sun, Oct 13, 2013 at 12:59:43AM +0700, Alexey Dokuchaev wrote:
>> Two other iPhones have prodid of 0x1297, and attach messages indicate some
>> problem:
>>
>>      kernel: usbus4: port reset timeout
>>      kernel: uhub_reattach_port: port 1 reset failed, error=USB_ERR_TIMEOUT
>>      kernel: uhub_reattach_port: device problem (USB_ERR_TIMEOUT), disabling port 1
>>      root: Unknown USB device: vendor 0x05ac product 0x1297 bus uhub4
>>      kernel: ugen4.2: <Apple Inc.> at usbus4
>
> Perhaps this could give some clues: gphoto2 debug output excerpts:
>
> For "good" iPhone:
>
>      ...
>      gphoto2-port-usb(1): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
>      gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
>      gphoto2-port-usb(1): Found USB class device (class 0x6, subclass, 0x1, protocol 0x1).
>      gphoto2-port-usb(2): inep to look for is 81
>      gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting
> 0, idVendor ID 05ac, idProduct 12a0, inep 81, outep 02, intep 83
>      gphoto2-abilities-list.c(2): Found 'USB PTP Class Camera' (0x6,0x1,0x1)
>      ...
>
> For "bad" iPhones:
>
>      ...
>      gphoto2-port-usb(1): Looking for USB device (vendor 0x5ac, product 0x1297)... found.
>      gphoto2-port-usb(2): inep to look for is 81
>      gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01
>      gphoto2-abilities-list.c(2): Found 'Apple iPhone 4 (PTP mode)' (0x5ac,0x1297)
>      ...
>
> HTH,
>
> ./danfe

Hi,

iPhones sometimes have multiple configurations.

See:

usbconfig -d X.Y dump_device_desc
usbconfig -d X.Y set_config 1
usbconfig -d X.Y set_config 2
usbconfig -d X.Y set_config 3

PTP might not always be available from the first configuration.

--HPS



More information about the freebsd-usb mailing list