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

OM Systems OM-1 Mark II - not able to download #969

Open
coldfire22x opened this issue Mar 27, 2024 · 5 comments
Open

OM Systems OM-1 Mark II - not able to download #969

coldfire22x opened this issue Mar 27, 2024 · 5 comments
Labels
Olympus tagging olympus reports

Comments

@coldfire22x
Copy link

coldfire22x commented Mar 27, 2024

I'm able to capture and save to the SD card but not download the captured images.

I've built libgphoto2 from 5f9f6c8 and gphoto2 from v2.5.8. Not 100% sure if #967 should be enough for download to work? No issues with my E-M1 Mark III's and I don't have an OM-1 Mark I to test with.

Olympus OM-1MarkII             usb:002,002
gphoto2         2.5.28         gcc, popt(m), exif, no cdk, no aa, jpeg, no readline
libgphoto2      2.5.31.1       standard camlibs, gcc, no ltdl, EXIF
libgphoto2_port 0.12.2         iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial without locking
$ gphoto2 --summary > gphoto2-summary.txt
$ gphoto2 --capture-image-and-download --debug --debug-logfile=capture-image-and-download.log
ERROR: Could not capture image.
ERROR: Could not capture.

gphoto2-summary.txt
capture-image-and-download.log

@coldfire22x
Copy link
Author

I think I missed this yesterday because I always started my tests with some sort of gphoto2 command unrelated to capture (auto-detect, summary, etc.). It seems that capture and download DOES work, but only on the first attempt.

Toward the end of the first capture and download there is an error:

ptp_usb_getresp [usb.c:516] (0): PTP_OC 0x1016 receiving resp failed: PTP General Error (0x2002)

Then near the beginning of subsequent attempts, a different error:

ptp_usb_getresp [usb.c:516] (0): PTP_OC 0x1016 receiving resp failed: PTP Device Busy (0x2019)

Logs generated from the following commands are attached.

$ gphoto2 --capture-image-and-download --debug --debug-loglevel=debug --debug-logfile=capture1.log
New file is in location /store_00020001/DCIM/100OMSYS/OM120011.ORF on the camera
Saving file as OM120011.ORF
Deleting file /store_00020001/DCIM/100OMSYS/OM120011.ORF on the camera

$ ls OM120011.ORF
OM120011.ORF

$ gphoto2 --capture-image-and-download --debug --debug-loglevel=debug --debug-logfile=capture2.log
ERROR: Could not capture image.
ERROR: Could not capture.

capture1.log
capture2.log

@msmeissn msmeissn added the Olympus tagging olympus reports label Apr 7, 2024
@msmeissn
Copy link
Contributor

one thing would be to try to comment out this line: (line 3267 in library.c)

                    CR (ptp_setdevicepropvalue (params, 0xD052, &propval, PTP_DTC_UINT16));

and see if that helps.

Also is this a dual image capture (raw+jpg)? if yes, try single-jpg or single-raw first if that works better?

@coldfire22x
Copy link
Author

coldfire22x commented Apr 29, 2024 via email

@coldfire22x
Copy link
Author

coldfire22x commented May 5, 2024

@msmeissn Preliminary testing looks good on x86_64. The first two logs are with 0697bb0 (not working) and the last two are with the line you mentioned commented out.

1-capture-image.log
2-capture-image.log
3-commented-out-capture-image.log
4-commented-out-capture-image.log

@coldfire22x
Copy link
Author

coldfire22x commented May 5, 2024

Flipped the camera to RAW and plugged into an Orange Pi 5B. Looks like commenting out that line also works on aarch64:

arm64-commented-out-capture-image-raw1.log
arm64-commented-out-capture-image-raw2.log
arm64-commented-out-capture-image-raw3.log

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

No branches or pull requests

2 participants