From owner-freebsd-usb@FreeBSD.ORG Sun Oct 13 06:49:37 2013 Return-Path: Delivered-To: usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 565D82B1 for ; Sun, 13 Oct 2013 06:49:37 +0000 (UTC) (envelope-from hps@bitfrost.no) Received: from mta.bitpro.no (mta.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id DAF9D255F for ; Sun, 13 Oct 2013 06:49:36 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id 2E91D7A171; Sun, 13 Oct 2013 08:49:36 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 44A978F8D8A; Sun, 13 Oct 2013 08:50:00 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Dj1KC4LPEXDm; Sun, 13 Oct 2013 08:49:59 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id 7981F8F8D55; Sun, 13 Oct 2013 08:49:59 +0200 (CEST) Message-ID: <525A42CD.5020201@bitfrost.no> Date: Sun, 13 Oct 2013 08:50:53 +0200 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130522 Thunderbird/17.0.6 MIME-Version: 1.0 To: Alexey Dokuchaev Subject: Re: iPhone 4(S) access via gphoto2 References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> In-Reply-To: <20131012190107.GA15100@regency.nsu.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Oct 2013 06:49:37 -0000 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: 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