Open Bluebrain2000 opened 7 months ago
thanks for the report, merged your fix.
Exactly the same issue is present with ILCE-7RM4 camera. Commenting out line 4689 in ptp.h fixes it.
Logfile before commenting that line: summary.txt
I guess it will be the same with the other models. I was not able to find any information about this USB initialization value. "mode 200" / "mode 300" But I think it's only relevant for a new, specific camera model.
i had imported this from a forked tree, it seems either i missed pieces or did something else wrong.
I will check and revert it probably when I find a bit time,.
Same issue also with the ILCE-7RM5 (A7RV) Also fixed by commenting the corresponding line 4695 in ptp.h before recompiling the lib Before that, I was able to record a video but no picture and no control over parameters except white balanced. Now, I can remotely change shutter speed, aperture, and a lot more as well as take pictures through gphoto2.
Until now, and based on comments, it seems that A7C, A7RIV and A7RV are concerned and should be removed from that list. The list may still increase in the future
Same issue with A7M4 (ILCE-7M4). Now I try to compile while commenting the line out. Had no way to try another version since I use gphoto with the indi drivers and it require the latest version as of now.
EDIT: commenting the line 4694 fix the issue and the camera start working correctly, but I cannot use the manual focus
Right, multiple reports about this. Any side effects besides the manual focus @Ryther ?
Hi @knro, in gphoto2, not one I'm aware of; capturing and downloading, the preview and video capturing are all apparently working correctly. I have a problem in kstars, tho, where if I try to take multiple shots it fails every other one, when using the "Preview" button, and abort on the download of the second shot while trying to get a sequence. If I try to take multiple shots using gphoto2, they're taken and downloaded without problem, so I think it's more a problem of indi/kstars.
something seems off with this line. I disabled the 2 cameras more
Has there been any update on this? Does libgphoto2 work with a7c & a7cii?
Yes, they work fine as long as you deactivate "mode_300" for them.
i have commented out 7C and 7CII was never listed there from mode 300.
just probably not yet in a release.
I found this thread while doing a Google search.
I have got a Sony Alpha 7C II. On the user level, I see an "unknown error 150" when I try to import media from the camera via MTP. (Different programs: KDE dolphin, Gwenview, ...).
Under the hood, all those programs use libgphoto2, version 2.5.31.
There are other reports that Sony Alpha 7C II is supposed to work fine, however those reports refer to older versions of libgphoto2. I could not downgrade to test those versions, because 2.5.31 is the only version included in the package manager of my Linux distro.
I am not sure if my problem is related to the issue at hand. If not, I can open another issue.
I noticed that with v2.5.31 the lib does not work with my Sony Alpha 7C (ILCE-7C) anymore. The connection to the camera itself is okay (e.g. gets serial number), but that's it. After looking through the changes from the previous release, v2.5.30, I noticed there was a new sub added to ptp.h, "has_sony_mode_300" (line 4686), which returns 1 for the camera model ILCE-7C.
In ptp.c line 4512 the return value of has_sony_mode_300 decides, if PTP_CNT_INIT (in usb.c) is called with parameter value 0x12c or 0x0c8. Until v2.5.30 this was always 0x0c8 (commented in 2.5.31 with "older mode (200)")
So looks like some older camera models (at least ILCE-7C) were given a new init parameter that's invalid.
If I comment out line 4691, so that has_sony_mode_300 returns 0 and parameter value 0x0c8 is used with PTP_CNT_INIT like it did prior to v2.5.31, everything works again!
if (!strcmp(params->deviceinfo.Model, "ILCE-7C")) return 1;
gphoto2 --summary compiled with NOT working libgphoto2 v2.5.31:
compiled with working libgphoto2 v2.5.30 or v2.5.31 with the change I mentioned above: