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

Canon EOS M200 capture-image fails over PTP/IP #1062

Open
evoth opened this issue Nov 21, 2024 · 1 comment
Open

Canon EOS M200 capture-image fails over PTP/IP #1062

evoth opened this issue Nov 21, 2024 · 1 comment

Comments

@evoth
Copy link

evoth commented Nov 21, 2024

Describe the bug

When attempting --capture-image on M200 over PTP/IP, the connection is forcibly closed and the camera is soft-locked (showing BUSY for any button press). Capturetarget is set to 1 (Memory card).

Canon EOS M Full-Press failed (0x02ff: PTP I/O Error)

Name the camera
Canon EOS M200

libgphoto2 and gphoto2 version

gphoto2         2.5.28
libgphoto2      2.5.31
libgphoto2_port 0.12.2

To Reproduce

gphoto2 --set-config capturetarget=1
gphoto2 --port 'ptpip:192.168.4.7' --capture-image

The camera IP is 192.168.4.7, which is connected to an AP with manual IP address.

Log file: EOS_M200_capture-image_fail.txt

Thank you for your work on this program! I am willing to test fixes or submit a PR if necessary, as I've already been familiarizing myself with the code. I just don't know where to start for this particular issue. I've had the same problem when writing my own minimal PTP/IP script, whereas I have no issues with my 1300D.

@evoth
Copy link
Author

evoth commented Nov 21, 2024

I've done some more testing, and it turns out the capturetarget is irrelevant. However, the behavior is different when the camera is freshly paired to the computer.

Here is a log where I complete the initial PTP/IP pairing before capturing: EOS_M200_pair_capture.txt

  • You can see that I wait about 10 seconds before confirming the InitCommandRequest on the camera. Then, the capture fails but does not lock up the camera or forcibly close the connection. This result is repeated while the camera remains connected.

Here is a log after I have disconnected and reconnected the camera: EOS_M200_disconnect_capture.txt

  • This is exactly the same issue I was having originally, and this happens during any session except the very first session after pairing. The camera only responds "BUSY" to all button presses until it is turned off.

In both cases, the shutter fires and the image is still saved on the SD card.

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

1 participant