Skip to content

Sony ZV-E10 Mk I: gphoto2 will not set shutterspeed successfully when label matches choice index (v2.5.32) #1165

@jufa

Description

@jufa

Describe the bug
When using gphoto2 via usb to set shutterspeed on Sony ZVE-10 Mk I, there are two configs:
"shutter speed" and "d229".

"shutter speed" does not set the shutter speed successfully,

however setting "d229" to magic values listed in its "--list-all-config" entry does work, although may need multiple tries.

This is weird as "shutter speed" seems to map to "d229" according to the debug log.

The same seems to apply to set_iso

Note

"shutterspeed" config does work as expected when there is NOT a overlap between the choice number and the value label.

Works:

`gphoto2 --set-config "shutterspeed"="1/125"

Does not work:

`gphoto2 --set-config "shutterspeed"="8"

Name the camera
Camera name as shown by gphoto2 --auto-detect or USB IDs

Model                          Port
----------------------------------------------------------
Sony ZV-E10 (Control)          usb:001,006

[version 2.0 firmware]

libgphoto2 and gphoto2 version
output of: gphoto2 --version

gphoto2 --version
gphoto2 2.5.32.1

This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.32.1       gcc, popt(m), exif, no cdk, no aa, jpeg, no readline
libgphoto2      2.5.32.1       standard camlibs (SKIPPING lumix), gcc, no ltdl, EXIF
libgphoto2_port 0.12.2         iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial without locking

To Reproduce
Steps to reproduce the behavior:
gphoto2 --set-config "shutterspeed"="8" --debug --debug-logfile=debug.log

expected: shutterspeed set to 8 seconds
actual: remains set to 30 seconds (i.e. the prior shutter speed setting)

Other details

gphoto2 --list-all-config
shows two shutterpeed configs: "Shutter Speed" and "d229", (below). When setting using d229 and associated values, it does work (though it may take a few tries and does not read back the expected new values sometimes:

/main/other/d229
Label: Shutter Speed
Readonly: 0
Type: MENU
Current: 3276810
Choice: 0 19660810
Choice: 1 16384010
Choice: 2 13107210
Choice: 3 9830410
Choice: 4 8519690
Choice: 5 6553610
Choice: 6 5242890
Choice: 7 3932170
Choice: 8 3276810
Choice: 9 2621450
Choice: 10 2097162
Choice: 11 1638410
Choice: 12 1310730
Choice: 13 1048586
Choice: 14 851978
Choice: 15 655370
Choice: 16 524298
Choice: 17 393226
Choice: 18 327690
Choice: 19 262154
Choice: 20 65539
Choice: 21 65540
Choice: 22 65541
Choice: 23 65542
Choice: 24 65544
Choice: 25 65546
Choice: 26 65549
Choice: 27 65551
Choice: 28 65556
Choice: 29 65561
Choice: 30 65566
Choice: 31 65576
Choice: 32 65586
Choice: 33 65596
Choice: 34 65616
Choice: 35 65636
Choice: 36 65661
Choice: 37 65696
Choice: 38 65736
Choice: 39 65786
Choice: 40 65856
Choice: 41 65936
Choice: 42 66036
Choice: 43 66176
Choice: 44 66336
Choice: 45 66536
Choice: 46 66786
Choice: 47 67136
Choice: 48 67536
Choice: 49 68036
Choice: 50 68736
Choice: 51 69536
END

debug logs

When setting "shutterspeed" to "8" (unsuccssessful):

0.653003 ptp_usb_getresp             (2): Reading PTP_OC 0x9209 (SDIO_GetAllExtDevicePropInfo) response...
0.653028 gp_port_read                (3): Reading 1024 = 0x400 bytes from port...
0.653220 gp_port_read                (3): Read    12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000  0c 00 00 00 03 00 01 20-08 00 00 00              ....... ....

0.657242 gp_widget_set_value         (2): Setting value of widget 'Shutter Speed' to '30'...
0.657295 gp_widget_set_value         (2): Setting value of widget 'Shutter Speed' to '8'...
0.657520 _set_config                 (2): Setting property 'Shutter Speed' / 0xd229
0.657590 ptp_usb_sendreq             (2): Sending PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) (0xd229) request...
0.657613 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.657812 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: (hexdump of 16 bytes)
0000  10 00 00 00 01 00 05 92-09 00 00 00 29 d2 00 00  ............)...

0.657842 ptp_usb_senddata            (2): Sending PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) data...
0.657863 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.658204 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: (hexdump of 16 bytes)
0000  10 00 00 00 02 00 05 92-09 00 00 00 01 00 08 00  ................

0.658233 ptp_usb_getresp             (2): Reading PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) response...
0.658254 gp_port_read                (3): Reading 1024 = 0x400 bytes from port...
0.659533 gp_port_read                (3): Read    12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000  0c 00 00 00 03 00 01 20-09 00 00 00              ....... ....

0.659569 ptp_usb_sendreq             (2): Sending PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) (0xd229) request...
0.659590 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.659734 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: (hexdump of 16 bytes)
0000  10 00 00 00 01 00 05 92-0a 00 00 00 29 d2 00 00  ............)...

0.659762 ptp_usb_senddata            (2): Sending PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) data...
0.659782 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.660616 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: (hexdump of 16 bytes)
0000  10 00 00 00 02 00 05 92-0a 00 00 00 01 00 08 00  ................

0.660665 ptp_usb_getresp             (2): Reading PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) response...
0.660687 gp_port_read                (3): Reading 1024 = 0x400 bytes from port...
0.663749 gp_port_read                (3): Read    12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000  0c 00 00 00 03 00 01 20-0a 00 00 00              ....... ....

0.666612 gp_camera_free              (2): Freeing camera...
0.666679 gp_camera_exit              (2): Exiting camera ('Sony ZV-E10 (Control)')...
0.666719 gp_port_get_timeout         (2): Current port timeout is 20000 milliseconds.
0.666738 gp_port_set_timeout         (2): Setting port timeout to 150 milliseconds.
0.666761 gp_port_check_int           (3): Reading 24 = 0x18 bytes from interrupt endpoint...
0.817018 gp_port_check_int           (3): Reading 24 = 0x18 bytes from interrupt endpoint...
0.967295 gp_port_set_timeout         (2): Setting port timeout to 20000 milliseconds.
0.967369 ptp_usb_sendreq             (2): Sending PTP_OC 0x1003 (Close session) request...
0.967394 gp_port_write               (3): Writing 12 = 0xc bytes to port...
0.967631 gp_port_write               (3): Wrote   12 = 0xc bytes to port: (hexdump of 12 bytes)
0000  0c 00 00 00 01 00 03 10-0b 00 00 00              ............

0.967718 ptp_usb_getresp             (2): Reading PTP_OC 0x1003 (Close session) response...
0.967744 gp_port_read                (3): Reading 1024 = 0x400 bytes from port...
0.968675 gp_port_read                (3): Read    12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000  0c 00 00 00 03 00 01 20-0b 00 00 00              ....... ....

0.971971 gp_port_close               (2): Closing port...
0.973284 _close_async_interrupts     (2): canceling transfer 0:0x5582f23218 (status 0)
0.973379 _close_async_interrupts     (2): canceling transfer 1:0x5582f18508 (status 0)
0.973415 _close_async_interrupts     (2): canceling transfer 2:0x5582f18718 (status 0)
0.973448 _close_async_interrupts     (2): canceling transfer 3:0x5582ee5cc8 (status 0)
0.973480 _close_async_interrupts     (2): canceling transfer 4:0x5582efaa08 (status 0)
0.973511 _close_async_interrupts     (2): canceling transfer 5:0x5582edfbf8 (status 0)
0.973543 _close_async_interrupts     (2): canceling transfer 6:0x5582ed3e18 (status 0)
0.973575 _close_async_interrupts     (2): canceling transfer 7:0x5582ee45a8 (status 0)
0.973606 _close_async_interrupts     (2): canceling transfer 8:0x5582ee0a08 (status 0)
0.973637 _close_async_interrupts     (2): canceling transfer 9:0x5582eddf38 (status 0)
0.973698 _cb_irq                     (2): 0x5582f23218 with status 3
0.973722 _cb_irq                     (2): Transfer 0x5582f23218 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.973906 _cb_irq                     (2): 0x5582f18508 with status 3
0.973930 _cb_irq                     (2): Transfer 0x5582f18508 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.974074 _cb_irq                     (2): 0x5582f18718 with status 3
0.974100 _cb_irq                     (2): Transfer 0x5582f18718 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.974133 _cb_irq                     (2): 0x5582ee5cc8 with status 3
0.974153 _cb_irq                     (2): Transfer 0x5582ee5cc8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.974184 _cb_irq                     (2): 0x5582efaa08 with status 3
0.974204 _cb_irq                     (2): Transfer 0x5582efaa08 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.974233 _cb_irq                     (2): 0x5582edfbf8 with status 3
0.974253 _cb_irq                     (2): Transfer 0x5582edfbf8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.974282 _cb_irq                     (2): 0x5582ed3e18 with status 3
0.974302 _cb_irq                     (2): Transfer 0x5582ed3e18 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.974332 _cb_irq                     (2): 0x5582ee45a8 with status 3
0.974351 _cb_irq                     (2): Transfer 0x5582ee45a8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.974380 _cb_irq                     (2): 0x5582ee0a08 with status 3
0.974400 _cb_irq                     (2): Transfer 0x5582ee0a08 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.974436 _cb_irq                     (2): 0x5582eddf38 with status 3
0.974457 _cb_irq                     (2): Transfer 0x5582eddf38 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.975929 gp_filesystem_reset         (2): resetting filesystem
0.975962 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.975979 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.975998 delete_all_folders          (2): Internally deleting all folders from '/'...
0.976016 lookup_folder               (2): Lookup folder '/'...
0.976035 lookup_folder               (2): Found! / is 0x5582ec7ac0
0.976054 recurse_delete_folder       (2): Recurse delete folder 0x5582ec7ac0//
0.976072 delete_all_files            (2): Delete all files in folder 0x5582ec7ac0//
0.976090 gp_port_free                (2): Freeing port...
0.976106 gp_port_close               (2): Closing port...
0.977080 gp_filesystem_reset         (2): resetting filesystem
0.977152 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.977172 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.977189 delete_all_folders          (2): Internally deleting all folders from '/'...
0.977253 lookup_folder               (2): Lookup folder '/'...
0.977273 lookup_folder               (2): Found! / is 0x5582ec7ac0
0.977291 recurse_delete_folder       (2): Recurse delete folder 0x5582ec7ac0//
0.977308 delete_all_files            (2): Delete all files in folder 0x5582ec7ac0//

when setting d229 to magic number that reflects 8seconds shutterspeed (success):

0.668253 ptp_usb_sendreq             (2): Sending PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) (0xd229) request...
0.668276 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.668690 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: (hexdump of 16 bytes)
0000  10 00 00 00 01 00 05 92-09 00 00 00 29 d2 00 00  ............)...

0.668846 ptp_usb_senddata            (2): Sending PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) data...
0.668935 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.669452 gp_port_write               (3): Wrote   16 = 0x10 bytes to port: (hexdump of 16 bytes)
0000  10 00 00 00 02 00 05 92-09 00 00 00 0a 00 50 00  ..............P.

0.669621 ptp_usb_getresp             (2): Reading PTP_OC 0x9205 (SDIO_SetExtDevicePropValue) response...
0.669699 gp_port_read                (3): Reading 1024 = 0x400 bytes from port...
0.675433 gp_port_read                (3): Read    12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000  0c 00 00 00 03 00 01 20-09 00 00 00              ....... ....

0.678350 gp_camera_free              (2): Freeing camera...
0.678481 gp_camera_exit              (2): Exiting camera ('Sony ZV-E10 (Control)')...
0.678722 gp_port_get_timeout         (2): Current port timeout is 20000 milliseconds.
0.678807 gp_port_set_timeout         (2): Setting port timeout to 150 milliseconds.
0.678880 gp_port_check_int           (3): Reading 24 = 0x18 bytes from interrupt endpoint...
0.829216 gp_port_check_int           (3): Reading 24 = 0x18 bytes from interrupt endpoint...
0.979544 gp_port_set_timeout         (2): Setting port timeout to 20000 milliseconds.
0.979670 ptp_usb_sendreq             (2): Sending PTP_OC 0x1003 (Close session) request...
0.979741 gp_port_write               (3): Writing 12 = 0xc bytes to port...
0.980009 gp_port_write               (3): Wrote   12 = 0xc bytes to port: (hexdump of 12 bytes)
0000  0c 00 00 00 01 00 03 10-0a 00 00 00              ............

0.980166 ptp_usb_getresp             (2): Reading PTP_OC 0x1003 (Close session) response...
0.980239 gp_port_read                (3): Reading 1024 = 0x400 bytes from port...
0.986943 gp_port_read                (3): Read    12 = 0xc out of 1024 bytes from port: (hexdump of 12 bytes)
0000  0c 00 00 00 03 00 01 20-0a 00 00 00              ....... ....

0.987189 gp_port_close               (2): Closing port...
0.988389 _close_async_interrupts     (2): canceling transfer 0:0x559cccdbd8 (status 0)
0.988511 _close_async_interrupts     (2): canceling transfer 1:0x559ccc2ec8 (status 0)
0.988604 _close_async_interrupts     (2): canceling transfer 2:0x559ccc30d8 (status 0)
0.988683 _close_async_interrupts     (2): canceling transfer 3:0x559cc90688 (status 0)
0.988763 _close_async_interrupts     (2): canceling transfer 4:0x559cca53c8 (status 0)
0.988846 _close_async_interrupts     (2): canceling transfer 5:0x559cc8a5b8 (status 0)
0.988923 _close_async_interrupts     (2): canceling transfer 6:0x559cc7e7d8 (status 0)
0.989055 _close_async_interrupts     (2): canceling transfer 7:0x559cc8ef68 (status 0)
0.989137 _close_async_interrupts     (2): canceling transfer 8:0x559cc8b3c8 (status 0)
0.989215 _close_async_interrupts     (2): canceling transfer 9:0x559cc888f8 (status 0)
0.989324 _cb_irq                     (2): 0x559cccdbd8 with status 3
0.989398 _cb_irq                     (2): Transfer 0x559cccdbd8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.989511 _cb_irq                     (2): 0x559ccc2ec8 with status 3
0.989595 _cb_irq                     (2): Transfer 0x559ccc2ec8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.989674 _cb_irq                     (2): 0x559ccc30d8 with status 3
0.989741 _cb_irq                     (2): Transfer 0x559ccc30d8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.989830 _cb_irq                     (2): 0x559cc90688 with status 3
0.990064 _cb_irq                     (2): Transfer 0x559cc90688 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.990189 _cb_irq                     (2): 0x559cca53c8 with status 3
0.990257 _cb_irq                     (2): Transfer 0x559cca53c8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.990334 _cb_irq                     (2): 0x559cc8a5b8 with status 3
0.990423 _cb_irq                     (2): Transfer 0x559cc8a5b8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.990503 _cb_irq                     (2): 0x559cc7e7d8 with status 3
0.990586 _cb_irq                     (2): Transfer 0x559cc7e7d8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.990663 _cb_irq                     (2): 0x559cc8ef68 with status 3
0.990738 _cb_irq                     (2): Transfer 0x559cc8ef68 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.990816 _cb_irq                     (2): 0x559cc8b3c8 with status 3
0.990898 _cb_irq                     (2): Transfer 0x559cc8b3c8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.991000 _cb_irq                     (2): 0x559cc888f8 with status 3
0.991067 _cb_irq                     (2): Transfer 0x559cc888f8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.992537 gp_filesystem_reset         (2): resetting filesystem
0.992603 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.992620 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.992638 delete_all_folders          (2): Internally deleting all folders from '/'...
0.992655 lookup_folder               (2): Lookup folder '/'...
0.992672 lookup_folder               (2): Found! / is 0x559cc72ac0
0.992689 recurse_delete_folder       (2): Recurse delete folder 0x559cc72ac0//
0.992706 delete_all_files            (2): Delete all files in folder 0x559cc72ac0//
0.992722 gp_port_free                (2): Freeing port...
0.992737 gp_port_close               (2): Closing port...
0.993708 gp_filesystem_reset         (2): resetting filesystem
0.993829 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.993896 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.993972 delete_all_folders          (2): Internally deleting all folders from '/'...
0.994037 lookup_folder               (2): Lookup folder '/'...
0.994102 lookup_folder               (2): Found! / is 0x559cc72ac0
0.994188 recurse_delete_folder       (2): Recurse delete folder 0x559cc72ac0//
0.994252 delete_all_files            (2): Delete all files in folder 0x559cc72ac0//

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions