-
Notifications
You must be signed in to change notification settings - Fork 328
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
Sony A7 II+ Cameras #981
Comments
its likely some form of sony specific protocol issue. do you have a debuglog? |
I found that sequence opensession-preview-capture-preview-capture always fails. As temporary workaround
Passes
Fails I tested low level code provided by lightweight Sony Camera Remote SDK tools. It works well in both Linux and Windows (completely different code). There are no events in pcap at all. Is somehow possible proceed further without recompilation of whole gphoto tool chain? I have not setup it, it is not trivial. Now I cannot reproduce USB reinitiation during USB preview, maybe again USB cable issue. Sony-linux-bash-control.pcapng.gz ... no events here gphoto_simul.sh.txt ... leightweight Sony Capture Tool script gphoto2.log.gz ... full program+gphoto log gphoto2.pcapng.gz ... related pcap |
I can prove the issue is race event vs. polled state. When I skip event then Sony camera capture works with preview. I skipping event for ILCE-7 cameras in patch:
Seems there is potentially similar issue with Nikon Z9 but I did not tested it personally and have no logs. Note I have another issue with symbols python-gphoto2 in cython. Likely a build problem in python-gphoto2
I have to force loading libphoto2.so
|
I use libgphoto2 (2.5.31) from python-ghoto2 on RPI3/4/5 running Bullseye and Bookworm. I use more Sony fullframe mirrorless cameras Sony A7I, II, III, IV. My application uses USB preview or grabbed HDMI input to get live preview. HDMI works rather reliably but USB preview is pain on all Sony models supporting it i.e. Sony A7 II +.
Bug
Without USB preview I can take series of pictures but when USB preview is started then I could take one picture and next one freezes/reboots camera (sequence preview-capture-preview-capture(=shutter)-frozen. Also preview alone stopped working in 30secs or so.
I investigated and found that USB channel corrupted and caused preview crash (getting typically error code "-1 Bad parameter"). I made fix when automatically reinitializing camera (in 10 cycle loop with n*200ms delay) and opening new session, I see usb address always increments. This algorithm improved preview stability (but still I can see sometimes unresurectable state).
But when I combine with capture and download, then cca every other capture ends with "-7 I/O error" which can be reinitilized often to -1 or minor to OK. Sometimes the camera is frozen that I must remove battery to reboot, looks like is frozen during shutdown (display is already off).
Tested with Sony Edge @ MAC, W11 and it works well. Note: The same USB cable as it is often a pain as well
I made Wireshark PTP dumps but no progress yet.
Camera
Do you mean is the bug related to PTP protocol or might be issue on USB level ? Note: tested on more RPIs, USB2/3, no difference.
The text was updated successfully, but these errors were encountered: