Bug 424727 - "Failed to connect to camera" error with iPhone 6s
Summary: "Failed to connect to camera" error with iPhone 6s
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 6.4.0
Platform: macOS (DMG) macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-28 01:07 UTC by imksn
Modified: 2021-01-07 18:52 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description imksn 2020-07-28 01:07:48 UTC
SUMMARY
Can't connect to iPhone 6s

STEPS TO REPRODUCE
1. Import -> Cameras -> Add camera manually... -> Auto detect -> "found camera iPhone 5 (PTP mode)' (usb:) and added to the list. -> press OK
2. go to import menu item drop down arrow -> click iPhone 5 (PTP mode) in dropdown menu            
3. Window pops up with Apple iPhone 5 as title and error in red background at bottom stating "Failed to connect to the camera. Please make sure it is connected and turned on. Unplug and replug fails on retry command.

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-07-28 04:22:01 UTC
Have you unlocked after connecting USB your iPhone and allowed the access?

Maik
Comment 2 imksn 2020-07-28 06:28:24 UTC
Iphone was unlocked. No access requested when plugged in. Even opened photos app like Lightroom seems to need.

Forgot to report ios is 13.4.1

Ken
Comment 3 Maik Qualmann 2020-07-28 06:36:39 UTC
I know that Gilles can use his iPhone on MacOS with digiKam. We released digiKam-7.0.0 a few days ago. It may work with this current version. Please test digiKam-7.0.0.

Maik
Comment 4 imksn 2020-07-28 18:33:11 UTC
I realize I forgot to list all my hardware/software versions. I can't seem to edit my original report, so this may get lost in the thread:

Hardware
Macbook Pro: MacBook Pro (Retina, 13-inch, Late 2013); 2.4 GHz Intel Core i5; 8 GB 1600 MHz DDR3; Flash HD
iPhone: 6s

OS Version
MacOS: 10.13.6 (17G13035); High Sierra

iPhone OS Version: iOS 13.4.1

=====================================

I downloaded digicam 7.0.0 and installed over the previous version that was installed.

Still no luck connecting to the iPhone 6s.

I tried some additional trick without success such as switching to the other USB port available on the MacBook Pro, rebooting, unplug and replug with digikam active. The auto-detect still uses iPhone 5 (PTP mode) NOT any iPhone 6 specific mode found in the list of Apple devices.

By the way, when I first attach the iPhone 6s into the USB port, my Dropbox app automatically detects and asks whether I want to copy images to dropbox. So, Lightroom, iTunes, and Dropbox apps ALL detect the iPhone 6.

Any other suggestions welcome. Only one other known iPhone user with success known? Maybe Gilles can tell you specifics of his hardware/OS combinations that work. It may be something to do with specific combinations.

Ken
Comment 5 caulier.gilles 2020-07-29 12:34:35 UTC
Hi, 

Here on my macbook pro 2012 using MacOS El Capitan, used to compile 7.0.0 PKG, gphoto2 work as expected, if you give right to computer to download phone files, and if you give right to digiKam to access to photo from computer.

I don't yet tested with MacOS Catalina. Perhaps there are more restrictions set by Apple for 3rd party application as digiKam which are downloaded outside the Store (after all i don not want to pay 1000€ for Apple just to be hosted in the Store : we write open source application!)


Other point : you said that you use MacOS High Sierra : I don't try since a while with this version. Perhaps the problem is here.

Typically yes, it must work. See the list of binary compatibility of the digiKam PKG :

https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/macports/config.sh#L18

But without to try, especially the Gphoto driver, how we known this point ? Perhaps the libgphoto2 team...

Gilles Caulier
Comment 6 imksn 2020-07-29 20:57:21 UTC
I think El Capitan was tho Mac OS just before my High Sierra which is 10.13.6. After reading this latest comment, I went google searching more and found other posts elsewhere about digikam iphone photo folder access after os 10 updates.

I’m nowhere near knowing program terms and can’t make heads nor tails of the stuff in the link you provided or stuff people tried to get around this issue.

Is there any terminal command that can be used to allow the Mac OS to “trust” the iphone or digikam to access the iOS hardware?

I think I might try connecting my Nikon to see if I have the same issue.

Ken
Comment 7 imksn 2020-08-15 04:21:49 UTC
I hadn't found the time to update this until now. I've figured out a way to force the iphone to ask to trust the MacBook pro. After permitting access, digiKam can detect the iPhone to download photos.

To force the iPhone to query whether I trust the MacBook, I have to typically turn off wifi and bluetooth while also turning on "Personal Hotspot" BEFORE connecting the iPhone by USB cable to the laptop.
Comment 8 caulier.gilles 2020-08-15 08:03:59 UTC
Hi,

I never tuned my macbook pro 2012 with this kind of settings to be able to download image through the Gphoto2 driver. It sound like a specific configuration, i don't have other explanation.

Gilles Caulier
Comment 9 imksn 2020-08-15 16:17:12 UTC
(In reply to caulier.gilles from comment #8)
> Hi,
> 
> I never tuned my macbook pro 2012 with this kind of settings to be able to
> download image through the Gphoto2 driver. It sound like a specific
> configuration, i don't have other explanation.
> 
> Gilles Caulier

I may have confused others with my explanation about my work around. I couldn’t find a method to edit my comment, so I’ll just add to a reply.

The settings were done to the iphone, NOT the MacBook Pro. So, for one reason or another, I must force the iphone to “trust” the MacBook Pro each time I reconnect to allow the digikam app to detect the iphone when attached by usb. I wouldn’t know whether it’s a specific configuration of the Mac or the iphone unless I restore both to factory. Something I’m not wanting to do at this time since I don’t want to use the current OS nor iOS because of incompatibilities of some apps I want to use.
Comment 10 caulier.gilles 2020-12-18 12:07:24 UTC
https://bugs.kde.org/show_bug.cgi?id=426938

--- Comment #4 from caulier.gilles@gmail.com ---
Hi,

digiKam 7.2.0-beta2 pre-release PKG installer now support BigSur and is
compiled with last stable Qt 5.15.2.

https://files.kde.org/digikam/

Problem still reproducible with this version.

Thanks and happy Christmas in advance

Best Regards

Gilles Caulier
Comment 11 caulier.gilles 2021-01-06 16:35:33 UTC
Not reproducible with 7.2.0 pre-release for macOS:

https://i.imgur.com/8utxKmd.png

... using GPhoto2 PTP driver. My iphone 7 is well recognized automatically by Gphoto2 and monted to the system (here BigSur). I can donaload files to my computer...

Gilles Caulier
Comment 12 imksn 2021-01-07 18:31:29 UTC
I'm the one who originally posted this problem. I no longer own iPhone 6S that had the issue. I upgraded to an iPhone XR and I no longer have the connection issue. I'm using DigiKam 7.1.0 and don't see any mention of Gphoto2 in my shared libraries and components information tab. So, it may still be an issue with iPhone 6s... don't know.

https://photos.app.goo.gl/EmNwiRrqr5dKaaVf7

Ken N

(In reply to caulier.gilles from comment #11)
> Not reproducible with 7.2.0 pre-release for macOS:
> 
> https://i.imgur.com/8utxKmd.png
> 
> ... using GPhoto2 PTP driver. My iphone 7 is well recognized automatically
> by Gphoto2 and monted to the system (here BigSur). I can donaload files to
> my computer...
> 
> Gilles Caulier
Comment 13 Maik Qualmann 2021-01-07 18:42:11 UTC
The entry is called "libGphoto2" and is definitely there. Because without GPhoto2 you could not download anything from an iPhone.

Maik
Comment 14 Maik Qualmann 2021-01-07 18:45:55 UTC
Another note, the components list is not really alphabetical.

Maik
Comment 15 imksn 2021-01-07 18:52:20 UTC
Maik,

You are absolutely correct! Gphoto2 is v 2.5.25 on my DigiKam.

Ken N

(In reply to Maik Qualmann from comment #14)
> Another note, the components list is not really alphabetical.
> 
> Maik