Date: Sun, 13 Oct 2013 10:37:58 +0200 From: Hans Petter Selasky <hps@bitfrost.no> To: Alexey Dokuchaev <danfe@nsu.ru> Cc: usb@freebsd.org Subject: Re: iPhone 4(S) access via gphoto2 Message-ID: <525A5BE6.4050801@bitfrost.no> In-Reply-To: <20131013082210.GA65964@regency.nsu.ru> References: <20131012175942.GA2554@regency.nsu.ru> <20131012190107.GA15100@regency.nsu.ru> <525A42CD.5020201@bitfrost.no> <20131013082210.GA65964@regency.nsu.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 10/13/13 10:22, Alexey Dokuchaev wrote: > On Sun, Oct 13, 2013 at 08:50:53AM +0200, Hans Petter Selasky wrote: >> iPhones sometimes have multiple configurations. >> >> usbconfig -d X.Y dump_device_desc > > Dumping desc produced almost identical files (the only differences were in > idProduct and iSerialNumber, quite expectedly). > >> usbconfig -d X.Y set_config 1 >> usbconfig -d X.Y set_config 2 >> usbconfig -d X.Y set_config 3 > Hi, > I presume I do not need to re-plug or otherwise re-init the phone after > setting config, correct? (It seems I don't, asking just to make sure.) No need to re-plug. > >> PTP might not always be available from the first configuration. > > I've tried to play with set_config, but without much luck. However, I did > dump_all_config_desc to discover that config index 2 (the one that is "PTP > + Apple Mobile Device", with bInterfaceClass = 0x0006) is missing from the > output for the "bad" iPhone (diff attached). > > Why is it missing? Is there any way to force/inject it into the stack? You cannot force it. You might want to watch "usbdump -i usbusX -f Y -vvv -s 65536" while running the config descriptor dump for the broken device. Look for non-zero ERR= Might also be a corrupt USB descriptor, which the USB stack will reject. Would be interesting to know what the cause of this issue is. Are any of these iPhones JailBroken? --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?525A5BE6.4050801>