Bug 178011 - Problems of the camera gui with Canon EOS 350D
Summary: Problems of the camera gui with Canon EOS 350D
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Import-Gphoto2 (show other bugs)
Version: 0.10.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-17 21:27 UTC by Salvatore Brigaglia
Modified: 2017-08-16 05:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.10.0
Sentry Crash Report:


Attachments
solid details with Canon EOS 350D attached (33.76 KB, text/plain)
2008-12-19 19:49 UTC, Salvatore Brigaglia
Details
new solid details (when i did the previous the camera whas in standby) (34.30 KB, text/plain)
2008-12-19 19:52 UTC, Salvatore Brigaglia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Salvatore Brigaglia 2008-12-17 21:27:10 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

i have a Canon EOS 350D. If i connect the camera as USB (the camera call it "pc connection") it behaves differently from connecting it as Print/PTP mode.

When in USB mode:
Download of thumbnails is really fast. 
errors on inverting the downloaded status of a pict. in fact it doesn't work.
deleting of file gives errors, but works.
Capture makes my camera shot repeatedly. But works. To see thumbs of auto-taken picts i had to restart the camera gui.
In digikam (Import -> Camera (Auto Add)) the camera is called "USB Vendor Specific..." Adding manually have the correct name.

when in PTP mode:
Download of thumbs is slow. ~30 secs to show thumbs, no matter if there are 3 or 15 photoes.
errors on inverting the downloaded status of a pict. in fact it doesn't work.
deleting of files works, upload of a file does not.
Capture is not available
In digikam (Import -> Camera (Auto Add)) the camera is called "USB imaging interface" Adding manually have the correct name.

Here is how linux sees the Camera:

usb connection 
usb 2-8: new high speed USB device using ehci_hcd and address 11
usb 2-8: configuration #1 chosen from 1 choice
usb 2-8: New USB device found, idVendor=04a9, idProduct=30ee
usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-8: Product: Canon Digital Camera
usb 2-8: Manufacturer: Canon Inc.

ptp
usb 2-8: new high speed USB device using ehci_hcd and address 10
usb 2-8: configuration #1 chosen from 1 choice
usb 2-8: New USB device found, idVendor=04a9, idProduct=30ef
usb 2-8: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 2-8: Product: Canon Digital Camera
usb 2-8: Manufacturer: Canon Inc.
usb 2-8: USB disconnect, address 10 connection - slower but can delete pictures from camera

tell me if i have to file a bug for every problem i listed here!
Comment 1 caulier.gilles 2008-12-18 05:52:31 UTC
Do you use digiKam 0.10.0 (KDE4) or 0.9.5 (KDE3) ?

Gilles Caulier
Comment 2 Salvatore Brigaglia 2008-12-18 08:52:59 UTC
ops.
digiKam 0.10.0 SVN Revision: 897999
Comment 3 caulier.gilles 2008-12-18 09:21:36 UTC
OK. as you have Canon camera in PTP mode, which libgphoto2 version you use ?

Gilles Caulier
Comment 4 Salvatore Brigaglia 2008-12-18 11:17:50 UTC
gphoto2-config --version says
libgphoto2 2.4.1.2

I can try compiling the latest libgphoto2 if you want and re-try the speps above
Comment 5 Salvatore Brigaglia 2008-12-18 15:53:36 UTC
gphoto2-config --version  now says libgphoto2 2.4.3

Import -> Camera (Autodetected) -> still says "USB Imaging Interface"

Camera GUI still takes ~30 seconds to generate thumbs of few images

Upload does not work

Deleting files is problematic. Some are deletet immediately, some are deleted but give errors, some are not deleted at all! (can provide gdb backtrace if necessary).

toggle the lock status does not work
Comment 6 Marcus Meissner 2008-12-18 15:57:22 UTC
the PTP mode has occasionaly delete problems. In Normal mode they might not be there.

The gphoto startup time currently very much depends on how many images you have on there.
Comment 7 Salvatore Brigaglia 2008-12-18 22:25:07 UTC
(In reply to comment #6)
> the PTP mode has occasionaly delete problems. In Normal mode they might not be
> there.
> 
> The gphoto startup time currently very much depends on how many images you have
> on there.
> 

That's not my case. I tried with both 2/3 and ~20 images...

In normal mode it behaves as i wrote in the description above (Revision: 898605)
Comment 8 Marcel Wiesweg 2008-12-19 10:25:27 UTC
Gilles, this so-called USB / PC mode is still not USB mass storage, is a special gphoto2 driver?

Salvatore,
> errors on inverting the downloaded status of a pict
what do you mean by "inverting"? That it gets assigned the check mark sign of successful download? Which errors?

> deleting of file gives errors, but works.
Which errors?

> In digikam (Import -> Camera (Auto Add)) the camera is called "USB Vendor
> Specific..." Adding manually have the correct name.

Can you give me the output of "solid-hardware list details" while the camera is connected? We retrieve the camera name from Solid hardware info.
Comment 9 Marcus Meissner 2008-12-19 10:41:55 UTC
The Canon EOS series does not support mass storage.

The two modes are: "normal" mode, in this you can remote control the EOS 350D
(gphoto2 driver "canon"), and "PTP" mode (gphoto2 driver "ptp2").

Both use different access methods to the filesystem of the camera.
Comment 10 caulier.gilles 2008-12-19 10:46:19 UTC
Marcel,

>Gilles, this so-called USB / PC mode is still not USB mass storage, is a special >gphoto2 driver? 

It can be. there is a gphoto2 wrapper aroud USB Mass Storage camera. But i don't recommend to use it. Use digiKam USB Mass Storage interface.

Salvatore,

Please go to Device/Information dialog from menu of Camera Interface window and look which camera driver you use...

Gilles Caulier
Comment 11 Salvatore Brigaglia 2008-12-19 19:49:45 UTC
Created attachment 29457 [details]
solid details with Canon EOS 350D attached

in reply to comment #8
solid details
Comment 12 Salvatore Brigaglia 2008-12-19 19:52:35 UTC
Created attachment 29458 [details]
new solid details (when i did the previous the camera whas in standby)
Comment 13 Salvatore Brigaglia 2008-12-19 19:59:43 UTC
(In reply to comment #10)


> Salvatore,
> 
> Please go to Device/Information dialog from menu of Camera Interface window and
> look which camera driver you use...
> 
> Gilles Caulier
> 
when in PTP mode: "PTP2 driver (c) 2001-2005 by Mariusz Woloszyn . (c) 2003-2007 by Marcus Meissner ."

whe in USB mode: "Canon PowerShot series driver by Wolfgang G. Reissnegger[...]"

Are those informations correct? 

Le me know if you need more!

Another thing (typo?) is that the Camera Interface's window title shows "&USB vendor Specific Interface"!
Comment 14 Marcel Wiesweg 2008-12-22 17:13:32 UTC
SVN commit 900342 by mwiesweg:

Add special handling for Canon cameras for finding out the best label in the Import menu.
I had put a message on the MLs, and so far received feedback only for Canons.
As I dont have a Canon camera I cannot test this.

CCBUG: 178011

 M  +25 -1     digikamapp.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=900342
Comment 15 Salvatore Brigaglia 2008-12-23 10:16:06 UTC
(In reply to comment #14)
> SVN commit 900342 by mwiesweg:
> 
> Add special handling for Canon cameras for finding out the best label in the
> Import menu.
> I had put a message on the MLs, and so far received feedback only for Canons.
> As I dont have a Canon camera I cannot test this.
> 

Not working for my EOS 350D. Import -> Cameras (Auto-detected) is still showing "USB Vendor specific interface" or "USB Imaging Interface" respectively if you are using USB mode or PTP mode.

digiKam revision is 900430

If you need something helpful to find out with this problem le me know
Comment 16 Marcel Wiesweg 2008-12-23 14:13:18 UTC
SVN commit 900724 by mwiesweg:

- fix stupid variable-scope-bug
- add 'USB Vendor Specific Interface' as special case
- add Fuji company name as special case, thank Mikolaj

CCBUG: 178011

 M  +7 -3      digikamapp.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=900724
Comment 17 Salvatore Brigaglia 2008-12-23 15:16:46 UTC
(In reply to comment #16)
> SVN commit 900724 by mwiesweg:
> 
> - fix stupid variable-scope-bug
> - add 'USB Vendor Specific Interface' as special case
> - add Fuji company name as special case, thank Mikolaj

That worked! My camera is now correctly identified by digikam in both USB and PTP mode, Marcel Wiesweg is my hero of the day!

But still:
USB thumbs on camera gui are fast
PTP thumbs come after ~30 secnods

Should i file another bug or it is gphoto2 stuff?
I'setting this as fixed meanwhile
Comment 18 caulier.gilles 2008-12-23 15:24:49 UTC
Excelent. Thanks for the report.

And another file closed (:=)))

Gilles Caulier
Comment 19 Marcel Wiesweg 2008-12-23 15:30:11 UTC
Unfortunately, I think these are pure gphoto2 issues. In either mode digikam uses libgphoto2 (but libgphoto2 uses a different internal driver), so from the digikam side the same code is used.