gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
1.06k stars 327 forks source link

Sony A7S not providing list of shutterspeed #276

Open astronono opened 6 years ago

astronono commented 6 years ago

Hello, I've been working with Jasem Mutlaq to try to solve an issue with indi sony ccd driver not working. In fact it looks like the shutterspeed exhaustive list is provided by libgphoto2 and this seems not working for the Sony A7S.

The discussion we had on this matter is there. http://indilib.org/forum/ccds-dslrs/2964-indi-and-sony-a7s.html?start=24#26182

Jasem told me to file a bug into the project to see if that could help.

Best regards, Bruno

msmeissn commented 6 years ago

which libgphoto2 version is used?

it might be in a mode where shutterspeed setting is not possible, like manual .. hard to see from the logfile posted.

perhaps get gphoto2 --list-all-config

astronono commented 6 years ago

its true, A7S is in manual mode by habit, which mode should be used ? I shall provide the list-all-config tonight

msmeissn commented 6 years ago

P or Tv would allow setting the shutterspeed I think.

astronono commented 6 years ago

Will try, thanks.

astronono commented 6 years ago

The version used are

gphoto2 -->2.5.17 libgphoto2 --> 2.5.17.1 libgphoto2_port --> 0.12.0

I've done the gphoto2 --list-all-config for the Sony A7S, it looks the section /main/capturesettings/shutterspeed does not return the list of choices with all the shutterspeed. As a comparison, I have a Canon 500d and did the same extract which shows the list of shutterspeed if that helps.

Bruno A7S_listconfig_Mode_P.txt Canon_listconfig_Mode_P.txt

knro commented 6 years ago
/main/capturesettings/shutterspeed
Label: Temps de pose
Readonly: 0
Type: RADIO
Current: 300/10
END

This is the problem here. For Canon, you get something like this:

/main/capturesettings/shutterspeed
Label: Temps de pose
Readonly: 0
Type: RADIO
Current: automatique
Choice: 0 30
Choice: 1 25
Choice: 2 20
Choice: 3 15
Choice: 4 13
Choice: 5 10
Choice: 6 8
...etc

We have several users who are INDI gphoto driver (based on libgphoto2 library from master) reporting the same problem.

knro commented 6 years ago

Any hints on what's going on here? Is there anyway I can help?

elijahparker commented 6 years ago

This is normal for Sony -- in an embedded driver I wrote, I was able to get the lists using the opcode 0x9209

Here's my implementation: https://github.com/timelapseplus/TimelapsePlus-Firmware/blob/master/src/PTP_Codes.h#L90 https://github.com/timelapseplus/TimelapsePlus-Firmware/blob/master/src/PTP.cpp#L2555

On Mon, Jun 25, 2018 at 1:36 PM Jasem Mutlaq notifications@github.com wrote:

Any hints on what's going on here? Is there anyway I can help?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gphoto/libgphoto2/issues/276#issuecomment-400052447, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNwTs_sn1RN6cr29X2WGIpiWYXk2iiZks5uAS20gaJpZM4UJWq_ .

--

Timelapse+ | mail@timelapseplus.com mail@timelapseplus.com | www.timelapseplus.com http://www.timelapseplus.com

knro commented 6 years ago

Right thanks! But since libgphoto2 is supposed to abstract these low-level details for us, I expect to use the same widget shutterspeed across different cameras without worrying on PTP stuff.

elijahparker commented 6 years ago

Agreed, this needs to be added to libgphoto2. I haven't had the time yet myself, but currently for shutter speed I'm filling it in manually according to the camera type (so to the higher-level application, the libgphoto2 API appears complete for Sony and includes shutter speeds), Here's my wrapper for that: https://github.com/timelapseplus/VIEW/blob/master/camera/ptp/worker.js#L970

On Mon, Jun 25, 2018 at 2:19 PM Jasem Mutlaq notifications@github.com wrote:

Right thanks! But since libgphoto2 is supposed to abstract these low-level details for us, I expect to use the same widget shutterspeed across different cameras without worrying on PTP stuff.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/gphoto/libgphoto2/issues/276#issuecomment-400064412, or mute the thread https://github.com/notifications/unsubscribe-auth/ABNwTg6JF3jDqawOyMlLKSLs0o23-Yckks5uATfUgaJpZM4UJWq_ .

amuro1977 commented 6 years ago

Maybe this can help to find issue:

with Ubuntu 16.04 LTS; Gphoto 2.5.15-2; Libgphoto 2.5.16-2 Sony worked fine under INDI-EKOS..

Now i upgrade to Kubuntu 18.04LTS with last Gphoto and Libgphoto and Sony A7s stop to work as reported before

Some problems appeared after recently release

knro commented 6 years ago

I'm going to provide a workaround for this in INDI, but the long term solution is for this to be fixed in libgphoto2 of course where the RADIO control is presented instead of TEXT.

japz commented 5 years ago

I'm running into the same issue with my Sony A7r iii, when trying to get it to work with Indigo. @knro, did you ever merge a workaround in INDI?

I looked at the source code of the ptp2 driver, but wouldn't know where to begin addressing this. Are the possible options supposed to be read from the camera, or do the txt files such as ./camlibs/ptp2/cameras/sony-a7r3.txt have a function besides acting as reference material?

msmeissn commented 5 years ago

I have added a fixed list of shutterspeeds to libgphoto2 git now, commit daacc5c2f27b76943771e63f6e9dfab555ea1c97