gphoto / libgphoto2

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

Sony RX0 mk2: Issues setting shutterspeed #775

Open ioannismihailidis opened 2 years ago

ioannismihailidis commented 2 years ago

Describe the bug Libghoto2 is used in a Qt/C++ application. While having a tethered connection and waiting for new images the setting of shutterspeeds is not correct or ignored:

set "1/4" -> result "1/4" set "1/5" -> result "1/6" set "1/6" -> result "1/6" set "1/8" -> result "1/10" set "1/6" -> result "1/4" set "1/500" -> result "1/32000"

Changing a shutter speed via index or value results in the same problem. All other settings like iso, image quality etc. are working fine. RX0 Mk1, RX100VA or tested Nikon Models are not affected.

Name the camera Sony DSC RX0 II (PC Control)

Firmware 1.0 and 3.10 tested.

libgphoto2 and gphoto2 version gphoto2 2.5.28 /usr/bin/clang, popt(m), exif, no cdk, no aa, jpeg, readline libgphoto2 2.5.29 standard camlibs, /usr/bin/clang, no ltdl, EXIF libgphoto2_port 0.12.0 iolibs: disk ptpip serial usb1, /usr/bin/clang, no ltdl, EXIF, USB, serial without locking

Same shutterspeed problems in libgphoto2 2.5.26 or 2.5.27.

reproduce Using using pure gphoto2 from command line has also unexpected results: "gphoto2 --set-config-index shutterspeed=0" -> "1/4" "gphoto2 --set-config-index shutterspeed=1" -> "1/5" "gphoto2 --set-config-index shutterspeed=3" -> "1/4" "gphoto2 --set-config-index shutterspeed=3" -> "1/8"

Best wishes Janni

msmeissn commented 2 years ago

can you attach a gphoto2 --summary output for the camera?

msmeissn commented 2 years ago

can you also attach a debug log of setting an unexpected value?

ioannismihailidis commented 2 years ago

Here is the summary: gphoto2_summary_sony_rx0_mk2.txt

and the debug from gphoto2: gphoto2_setting_shutterspeed_3_sony_rx0_mk2.txt

The behaviour with gphoto2 is different than using a tethered connection. With gphoto2 the settings are sometimes ignored, especially when changing the values without a delay. But inside of my application the settings are ignored and then totaly wrong. Is there an easy way to enabled debug logging with libgphoto2 (without gphoto2) ?

ioannismihailidis commented 1 year ago

With the hope that the issue is gone with libgphoto2 2.5.30 I made some tests....without any luck. But i managed to get a full log from libgphoto2 during my tethered connection.

20221223_log_libgphoto2_sonyrx0_mk2.txt

From my app I send a command to switch shutterspeed to index 22 (which is 1/640). But the shutter speed changes to 1/800.

ioannismihailidis commented 1 year ago

The issues with the rx0mk2 accured first with the offical support for the mk2 model. Can't recall which version it was exactly. Before that version setting the shutterspeed was working solid without any problems.

I've compiled libgphoto2 by hand starting with 2.5.24 up to 2.5.27 2.5.24 and 2.5.25: Setting the shutterspeed by index is not working at all. With non index config command the shutterspeed is working without any issues.

from 2.6.25: From this version on the strange behavior starts: Shutter skipping values. When switching too fast, the shutterspeed is completly off. All other settings like iso and wb are working rock solid.