PTP import

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

PTP import

Tony Bazeley

I'm a bit new to digikam, and having trouble with import procedures.
Am trying to import from a Huawei P9 phone, configured to PTP mode.

Trying to import using the generic USB PTP Class camera or the digikam suggested option "Huawei P9 Plus" both yield the same error:
"Failed to connect to the camera. Please make sure it is connected properly and turned on."


I'm using digikam-5.8.0-01-x86-64 under Ubuntu 16.04.3 LTS

Would very much appreciate any thoughts on how to proceed.


TIA

Tony


Reply | Threaded
Open this post in threaded view
|

Re: PTP import

Gilles Caulier-4
Well, the PTP protocol is implement through Gphoto2 driver. If this kind of error appear, this can be a dysfunction located in Gphoto2 driver.

To have more details about, run the appimage from a console and look debug trace printed while you try to read the phone contents.

Gilles Caulier

2018-02-11 4:30 GMT+01:00 Tony Bazeley <[hidden email]>:

I'm a bit new to digikam, and having trouble with import procedures.
Am trying to import from a Huawei P9 phone, configured to PTP mode.

Trying to import using the generic USB PTP Class camera or the digikam suggested option "Huawei P9 Plus" both yield the same error:
"Failed to connect to the camera. Please make sure it is connected properly and turned on."


I'm using digikam-5.8.0-01-x86-64 under Ubuntu 16.04.3 LTS

Would very much appreciate any thoughts on how to proceed.


TIA

Tony



Reply | Threaded
Open this post in threaded view
|

Re: PTP import

Richard B. Emerson
There's always "Plan B":d/l the images to the machine directly and then let digiKam handle them from there. Sure, it's an extra step or two. Given the current problem, though, it may be the easiest way to fix the problem. :)

On Sun, Feb 11, 2018 at 5:49 AM, Gilles Caulier <[hidden email]> wrote:
Well, the PTP protocol is implement through Gphoto2 driver. If this kind of error appear, this can be a dysfunction located in Gphoto2 driver.

To have more details about, run the appimage from a console and look debug trace printed while you try to read the phone contents.

Gilles Caulier

2018-02-11 4:30 GMT+01:00 Tony Bazeley <[hidden email]>:

I'm a bit new to digikam, and having trouble with import procedures.
Am trying to import from a Huawei P9 phone, configured to PTP mode.

Trying to import using the generic USB PTP Class camera or the digikam suggested option "Huawei P9 Plus" both yield the same error:
"Failed to connect to the camera. Please make sure it is connected properly and turned on."


I'm using digikam-5.8.0-01-x86-64 under Ubuntu 16.04.3 LTS

Would very much appreciate any thoughts on how to proceed.


TIA

Tony




Reply | Threaded
Open this post in threaded view
|

Re: PTP import

ralphl
In reply to this post by Gilles Caulier-4
I had a similar problem with an iPhone.  I got it to work by fiddling around some.  See http://digikam.1695700.n4.nabble.com/Import-from-iPhone-5-behaves-strangely-td4704878.html

Ralph

On 02/11/2018 07:14 AM, Richard B. Emerson wrote:
There's always "Plan B":d/l the images to the machine directly and then let digiKam handle them from there. Sure, it's an extra step or two. Given the current problem, though, it may be the easiest way to fix the problem. :)

On Sun, Feb 11, 2018 at 5:49 AM, Gilles Caulier <[hidden email]> wrote:
Well, the PTP protocol is implement through Gphoto2 driver. If this kind of error appear, this can be a dysfunction located in Gphoto2 driver.

To have more details about, run the appimage from a console and look debug trace printed while you try to read the phone contents.

Gilles Caulier

2018-02-11 4:30 GMT+01:00 Tony Bazeley <[hidden email]>:

I'm a bit new to digikam, and having trouble with import procedures.
Am trying to import from a Huawei P9 phone, configured to PTP mode.

Trying to import using the generic USB PTP Class camera or the digikam suggested option "Huawei P9 Plus" both yield the same error:
"Failed to connect to the camera. Please make sure it is connected properly and turned on."


I'm using digikam-5.8.0-01-x86-64 under Ubuntu 16.04.3 LTS

Would very much appreciate any thoughts on how to proceed.


TIA

Tony





Reply | Threaded
Open this post in threaded view
|

Re: PTP import

Gilles Caulier-4
I use an iphone 7 here. I need to grant computer on phone to be able to see items in import tool, else nothing appear. That all. After all, it's Apple security stage, as usual...

Gilles Caulier



2018-02-11 17:19 GMT+01:00 lachenmaier <[hidden email]>:
I had a similar problem with an iPhone.  I got it to work by fiddling around some.  See http://digikam.1695700.n4.nabble.com/Import-from-iPhone-5-behaves-strangely-td4704878.html

Ralph

On 02/11/2018 07:14 AM, Richard B. Emerson wrote:
There's always "Plan B":d/l the images to the machine directly and then let digiKam handle them from there. Sure, it's an extra step or two. Given the current problem, though, it may be the easiest way to fix the problem. :)

On Sun, Feb 11, 2018 at 5:49 AM, Gilles Caulier <[hidden email]> wrote:
Well, the PTP protocol is implement through Gphoto2 driver. If this kind of error appear, this can be a dysfunction located in Gphoto2 driver.

To have more details about, run the appimage from a console and look debug trace printed while you try to read the phone contents.

Gilles Caulier

2018-02-11 4:30 GMT+01:00 Tony Bazeley <[hidden email]>:

I'm a bit new to digikam, and having trouble with import procedures.
Am trying to import from a Huawei P9 phone, configured to PTP mode.

Trying to import using the generic USB PTP Class camera or the digikam suggested option "Huawei P9 Plus" both yield the same error:
"Failed to connect to the camera. Please make sure it is connected properly and turned on."


I'm using digikam-5.8.0-01-x86-64 under Ubuntu 16.04.3 LTS

Would very much appreciate any thoughts on how to proceed.


TIA

Tony






Reply | Threaded
Open this post in threaded view
|

Re: PTP import

Tony Bazeley
In reply to this post by Gilles Caulier-4
Output on attempting to import is below - I'm assuming the ALSA errors are not related
digikam.geoiface: "setting backend marble"
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file ././/share/alsa/alsa.conf
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL hw:0
AL lib: (EE) probe_devices: control open (hw:0): No such file or directory
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file ././/share/alsa/alsa.conf
ALSA lib control.c:954:(snd_ctl_open_noupdate) Invalid CTL hw:1
AL lib: (EE) probe_devices: control open (hw:1): No such file or directory
ALSA lib conf.c:3750:(snd_config_update_r) Cannot access file ././/share/alsa/alsa.conf
ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
digikam.general: AudioOutput backends: ("OpenAL", "null")
digikam.geoiface: "ROADMAP"
digikam.geoiface: "setting backend marble"
QLayout: Attempting to add QLayout "" to Digikam::DNGConvertSettings "", which already has a layout
digikam.geoiface: "ROADMAP"
QFSFileEngine::open: No file name specified
digikam.import: Log ( ""   "" :  "Connecting to camera..."
digikam.geoiface: ----
digikam.import: Failed to initialize camera!
digikam.import: Libgphoto2 error:  Could not lock the device  ( -60 )
digikam.import: Log ( ""   "" :  "Connection failed."
QWidget::insertAction: Attempt to insert null action
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified
QFSFileEngine::open: No file name specified

But outside the appimage I can access the Huawei device

tonbaz@muscat:~$ gphoto2 --auto-detect
Model                          Port                                           
----------------------------------------------------------
USB PTP Class Camera           usb:001,011    

tonbaz@muscat:~$ lsusb
.....
Bus 001 Device 011: ID 12d1:107e Huawei Technologies Co., Ltd.
I'm not that familiar with appimage, but understand it to contain all the libraries required.
If that's the case it appears that the problem  lies in the digikam appimage or it's interface with Ubuntu.

As Richard suggests I can transfer files to a Ubuntu directory and import from that directory as a work around.

Should I report this as a digikam bug, or is Is there something else I can do?

Tony




On 11/02/18 21:19, Gilles Caulier wrote:
Well, the PTP protocol is implement through Gphoto2 driver. If this kind of error appear, this can be a dysfunction located in Gphoto2 driver.

To have more details about, run the appimage from a console and look debug trace printed while you try to read the phone contents.

Gilles Caulier

2018-02-11 4:30 GMT+01:00 Tony Bazeley <[hidden email]>:

I'm a bit new to digikam, and having trouble with import procedures.
Am trying to import from a Huawei P9 phone, configured to PTP mode.

Trying to import using the generic USB PTP Class camera or the digikam suggested option "Huawei P9 Plus" both yield the same error:
"Failed to connect to the camera. Please make sure it is connected properly and turned on."


I'm using digikam-5.8.0-01-x86-64 under Ubuntu 16.04.3 LTS

Would very much appreciate any thoughts on how to proceed.


TIA

Tony