Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get files from a Kodak EasyShare C340 digital camera PTP I/O Error #602

Open
starkdg opened this issue Sep 11, 2023 · 4 comments
Assignees

Comments

@starkdg
Copy link

starkdg commented Sep 11, 2023

Describe the bug

Hello,

I am trying to get the images off of an old digital camera. So far, I am unable to do so. It does not have image-capture capability, but I just need the --get-all-files to work. The program will recognize the camera, but it will only retrieve a few image files before cutting out with a PTP I/O error. After that, no camera is detected, and any invocation results in "Error: No camera found." I must reboot to be able to get it to detect the camera again, and even then often does not detect it again.

Unfortunately, my card reader does not work for the memory cards formatted from this camera. But using a card reader will not help get the images in the camera's internal memory.

I appreciate any information or hints you might be able to offer. Besides from getting a windows machine, I'd really like to get this to work on linux.
Thanks.

Camera Model: Kodak EasyShare C340 digital camera.

This version of gphoto2 is using the following software versions and options:

gphoto2 2.5.28.1 gcc, popt(m), exif, no cdk, no aa, jpeg, no readline
libgphoto2 2.5.31.1 standard camlibs (SKIPPING docupen lumix), gcc, no ltdl, EXIF
libgphoto2_port 0.12.2 iolibs: disk ptpip serial usb usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial without locking

The following is for when it fails to detect the camera and gphoto2 returns with "Error: No camera found." I can get the output for when it detects the camera and downloads a few files, but it is harder to do. It is somewhat finicky and I don't know why it sometimes detects the camera and other times it does not. I will keep working to get the debug output for when it does recognize the camera.

Steps to reproduce the behavior:

gphoto2 --get-all-files
logfile.txt

sytem info: (uname -a)

Linux starkdg 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux

debug:

@starkdg
Copy link
Author

starkdg commented Sep 14, 2023

Ok, I managed to replicate the error using the --get-all-files command flag. It looks like I just had to turn it off, remove the batteries, and then replace the batteries, and try again.

steps to reproduce:

gphoto2 --debug --debug-logfile=logfile.txt --get-all-files

It manages to transfer 6 files, and then Errors out with a PTP Error

*** Error ***
PTP I/O Error
*** Error (-7: 'I/O problem') ***

Attached is the logfile
logfile.txt

@msmeissn msmeissn self-assigned this Sep 16, 2023
@msmeissn
Copy link
Contributor

Can you check if its always 000_0021.JPG that fails?
e.g. try reading all files separately.

Protocol wise we do the right thing when reading, just reading this file causes PTP error.

It might suggest a hardware error, perhaps on the memory Card.

@msmeissn
Copy link
Contributor

e.g.
gphoto2 -L

gphoto2 -p to download the file

@starkdg
Copy link
Author

starkdg commented Sep 23, 2023

Ok, sorry, for the delay. Every time it fails I have to take the batteries out, then put the batteries back in to reset it. So it takes awhile to check. Not sure how long I need to wait with the batteries out, but just 30 seconds doesn't seem to do it.

I am able to download all the files individually. The -get-all-files fails, not always at the same file.

If you want it, I can get a debug file.

Thanks again for your help. Let me know you need, if you have time to pursue this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants