From owner-freebsd-usb@FreeBSD.ORG Sun Oct 13 15:39:15 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 A9140FA4 for ; Sun, 13 Oct 2013 15:39:15 +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 380B02866 for ; Sun, 13 Oct 2013 15:39:11 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta.bitpro.no (Postfix) with ESMTP id EA0027A156; Sun, 13 Oct 2013 17:39:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id 436158EC7DA; Sun, 13 Oct 2013 17:39:28 +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 dpvk0U2jjvjE; Sun, 13 Oct 2013 17:39:27 +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 40D6B8EC741; Sun, 13 Oct 2013 17:39:27 +0200 (CEST) Message-ID: <525ABEE5.8030809@bitfrost.no> Date: Sun, 13 Oct 2013 17:40:21 +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 , usb@FreeBSD.org Subject: Re: iPhone 4(S) access via gphoto2 References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> <525A42CD.5020201@bitfrost.no> <20131013082210.GA65964@regency.nsu.ru> <525A5BE6.4050801@bitfrost.no> <20131013094530.GA85752@regency.nsu.ru> <525A79B5.5080700@bitfrost.no> <20131013111518.GA3478@regency.nsu.ru> In-Reply-To: <20131013111518.GA3478@regency.nsu.ru> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 15:39:15 -0000 Hi, Your iPhone times out when reading the configuration descriptor: > 19:05:57.365047 usbus4.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 02 02 00 00 09 00 -- -- -- -- -- -- -- -- |........ | > frame[1] READ 9 bytes > flags 0x10 > status 0xea1a3 > 19:05:57.365404 usbus4.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=12,IVAL=0,ERR=0 > frame[0] WRITE 8 bytes > frame[1] READ 9 bytes > 0000 09 02 3E 00 02 03 07 C0 FA -- -- -- -- -- -- -- |..>...... | > flags 0x10 > status 0xca1a1 > 19:05:57.365412 usbus4.2 SUBM-CTRL-EP=00000080,SPD=HIGH,NFR=2,SLEN=8,IVAL=0 > frame[0] WRITE 8 bytes > 0000 80 06 02 02 00 00 3E 00 -- -- -- -- -- -- -- -- |......>. | > frame[1] READ 62 bytes > flags 0x10 > status 0xca1a3 > 19:05:58.353453 usbus4.2 DONE-CTRL-EP=00000080,SPD=HIGH,NFR=0,SLEN=0,IVAL=0,ERR=TIMEOUT > flags 0x10 > status 0xaa1a5 Subsequent reads of the configuration descriptor are successful. Probably a driver problem in the USB firmware stack of the iPhone. To figure out what is actually going on you need a USB analyzer connected to the USB cable. The problem you are seeing is probably timing dependant. BTW: You can add "options USB_REQ_DEBUG" to the kernel config file. Then you will get some more sysctls which affect the timing of control transfers under hw.usb. You can try contacting Apple about this. I'm sure if you hit the right guy, they will fix try to fix it. --HPS