Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Oct 2013 02:01:07 +0700
From:      Alexey Dokuchaev <danfe@nsu.ru>
To:        usb@freebsd.org
Subject:   Re: iPhone 4(S) access via gphoto2
Message-ID:  <20131012190107.GA15100@regency.nsu.ru>
In-Reply-To: <20131012175942.GA2554@regency.nsu.ru>
References:  <20131012175942.GA2554@regency.nsu.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20131012190107.GA15100>