gphoto / libgphoto2

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

sony alpha7r4, can't capture image #471

Closed pdeman closed 3 years ago

pdeman commented 4 years ago

I am trying to capture image with a sony alpha7r4 and gphoto2 2.5.23.1
libgphoto2 2.5.23.1
libgphoto2_port 0.12.0

but it says: Error
Sorry, your camera does not support generic capture ERROR: Could not capture image. ERROR: Could not capture. Error (-6: 'Unsupported operation')

here is the result of gphoto2 --summary gphoto2 --summary Camera summary:
Manufacturer: Sony Corporation Model: ILCE-7RM4 Version: 1.0 Serial Number: 00000000000000003285073003777959 Vendor Extension ID: 0x11 (1.0)

Capture Formats: Display Formats: Association/Directory, MPEG, JPEG, Unknown(b982), Unknown(b301), Undefined Type, ARW, Unknown(b310), MS Wave

Device Capabilities: File Download, No File Deletion, No File Upload No Image Capture, No Open Capture, No vendor specific capture

Storage Devices Summary: store_00010001: StorageDescription: Storage Media VolumeLabel: None Storage Type: Removable RAM (memory card) Filesystemtype: Generic Hierarchical Access Capability: Read-Only Maximum Capability: 62176362496 (59296 MB) Free Space (Bytes): 62100996096 (59224 MB) Free Space (Images): -1

Device Property Summary: Battery Level(0x5001):(read only) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,100] value: 100% (100) Property 0xd402:(read only) (type=0xffff) 'ILCE-7RM4' Property 0xd406:(readwrite) (type=0xffff) '(null)' Property 0xd407:(read only) (type=0x6) 1 Property 0xd303:(read only) (type=0x2) 1

and here is the result of list-all-config: gphoto2 --list-all-config /main/actions/opcode
Label: PTP Opcode Readonly: 0 Type: TEXT Current: 0x1001,0xparam1,0xparam2 END /main/status/serialnumber Label: Serial Number Readonly: 0 Type: TEXT Current: 00000000000000003285073003777959 END /main/status/manufacturer Label: Camera Manufacturer Readonly: 0 Type: TEXT Current: Sony Corporation END /main/status/cameramodel Label: Camera Model Readonly: 0 Type: TEXT Current: ILCE-7RM4 END /main/status/deviceversion Label: Device Version Readonly: 0 Type: TEXT Current: 1.0 END /main/status/vendorextension Label: Vendor Extension Readonly: 0 Type: TEXT Current: None END /main/status/Battery Level Label: Battery Level Readonly: 1 Type: TEXT Current: 100% END /main/other/5001 Label: Battery Level Readonly: 1 Type: MENU Current: 100 Choice: 0 0 Choice: 1 1 Choice: 2 2 Choice: 3 3 Choice: 4 4 Choice: 5 5 Choice: 6 6 Choice: 7 7 Choice: 8 8 Choice: 9 9 Choice: 10 10 Choice: 11 11 Choice: 12 12 Choice: 13 13 Choice: 14 14 Choice: 15 15 Choice: 16 16 Choice: 17 17 Choice: 18 18 Choice: 19 19 Choice: 20 20 Choice: 21 21 Choice: 22 22 Choice: 23 23 Choice: 24 24 Choice: 25 25 Choice: 26 26 Choice: 27 27 Choice: 28 28 Choice: 29 29 Choice: 30 30 Choice: 31 31 Choice: 32 32 Choice: 33 33 Choice: 34 34 Choice: 35 35 Choice: 36 36 Choice: 37 37 Choice: 38 38 Choice: 39 39 Choice: 40 40 Choice: 41 41 Choice: 42 42 Choice: 43 43 Choice: 44 44 Choice: 45 45 Choice: 46 46 Choice: 47 47 Choice: 48 48 Choice: 49 49 Choice: 50 50 Choice: 51 51 Choice: 52 52 Choice: 53 53 Choice: 54 54 Choice: 55 55 Choice: 56 56 Choice: 57 57 Choice: 58 58 Choice: 59 59 Choice: 60 60 Choice: 61 100 END /main/other/d402 Label: PTP Property 0xd402 Readonly: 1 Type: TEXT Current: ILCE-7RM4 END /main/other/d406 Label: PTP Property 0xd406 Readonly: 0 Type: TEXT Current: (null) END /main/other/d407 Label: PTP Property 0xd407 Readonly: 1 Type: TEXT Current: 1 END /main/other/d303 Label: PTP Property 0xd303 Readonly: 1 Type: TEXT Current: 1 END

and indeed there is nothing about capture image in it. is the camera supported by libgphoto2 ? I thought I had seen it is but I can't find the up to date list again.

msmeissn commented 4 years ago

can you switch the camera to "PC Control" mode?

pdeman commented 4 years ago

it is in pc control mode (edit: but it try to use wifi instead of usb, don't know why, I had to choice usb specificaly). but it still can't capture any image. here are the debug info:```

gphoto2 --debug --capture-image 0.000050 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.000061 main (2): gphoto2 2.5.23.1 0.000064 main (2): gphoto2 has been compiled with the following options: 0.000065 main (2): + gcc (C compiler used) 0.000066 main (2): + popt (mandatory, for handling command-line parameters) 0.000067 main (2): + exif (for displaying EXIF information) 0.000068 main (2): + cdk (for accessing configuration options) 0.000069 main (2): + no aa (for displaying live previews) 0.000070 main (2): + jpeg (for displaying live previews in JPEG format) 0.000071 main (2): + no readline (for easy navigation in the shell) 0.000073 main (2): libgphoto2 2.5.23.1 0.000074 main (2): libgphoto2 has been compiled with the following options: 0.000075 main (2): + all camlibs 0.000076 main (2): + gcc (C compiler used) 0.000077 main (2): + ltdl (for portable loading of camlibs) 0.000078 main (2): + EXIF (for special handling of EXIF files) 0.000080 main (2): libgphoto2_port 0.12.0 0.000081 main (2): libgphoto2_port has been compiled with the following options: 0.000082 main (2): + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi 0.000083 main (2): + gcc (C compiler used) 0.000084 main (2): + ltdl (for portable loading of iolibs) 0.000085 main (2): + USB (libusb1, for USB cameras) 0.000086 main (2): + serial (for serial cameras) 0.000087 main (2): + no resmgr (serial port access and locking) 0.000088 main (2): + no ttylock (serial port locking) 0.000089 main (2): + no lockdev (serial port locking) 0.000090 main (2): CAMLIBS env var not set, using compile-time default instead 0.000091 main (2): IOLIBS env var not set, using compile-time default instead 0.000092 main (2): invoked with following arguments: 0.000093 main (2): --debug 0.000094 main (2): --capture-image 0.000102 load_settings (2): Creating gphoto config directory ('/home/ubuntu/.gphoto') 0.000125 load_settings (2): Loading settings from file '/home/ubuntu/.gphoto/settings'. 0.000141 main (2): The user has not specified both a model and a port. Try to figure them out. 0.000145 gp_port_info_list_load (2): Using ltdl to load io-drivers from '/usr/local/lib/libgphoto2_port/0.12.0'... 0.000173 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/disk'. 0.000255 gp_port_library_list (2): found fstab fsname UUID=b7bb871a-5cda-40f3-a0fd-45bf8cee8a83 0.000263 gp_port_library_list (2): found fstab fsname /swapfile 0.000300 gp_port_library_list (2): found mtab fsname sysfs 0.000302 gp_port_library_list (2): found mtab fsname proc 0.000303 gp_port_library_list (2): found mtab fsname udev 0.000307 gp_port_library_list (2): found mtab fsname devpts 0.000311 gp_port_library_list (2): found mtab fsname tmpfs 0.000322 gp_port_library_list (2): found mtab fsname /dev/sda1 0.000324 gp_port_library_list (2): found mtab fsname securityfs 0.000326 gp_port_library_list (2): found mtab fsname tmpfs 0.000330 gp_port_library_list (2): found mtab fsname tmpfs 0.000334 gp_port_library_list (2): found mtab fsname tmpfs 0.000339 gp_port_library_list (2): found mtab fsname cgroup 0.000343 gp_port_library_list (2): found mtab fsname cgroup 0.000344 gp_port_library_list (2): found mtab fsname pstore 0.000348 gp_port_library_list (2): found mtab fsname cgroup 0.000367 gp_port_library_list (2): found mtab fsname cgroup 0.000371 gp_port_library_list (2): found mtab fsname cgroup 0.000373 gp_port_library_list (2): found mtab fsname cgroup 0.000374 gp_port_library_list (2): found mtab fsname cgroup 0.000375 gp_port_library_list (2): found mtab fsname cgroup 0.000376 gp_port_library_list (2): found mtab fsname cgroup 0.000378 gp_port_library_list (2): found mtab fsname cgroup 0.000379 gp_port_library_list (2): found mtab fsname cgroup 0.000380 gp_port_library_list (2): found mtab fsname cgroup 0.000382 gp_port_library_list (2): found mtab fsname cgroup 0.000383 gp_port_library_list (2): found mtab fsname systemd-1 0.000384 gp_port_library_list (2): found mtab fsname hugetlbfs 0.000389 gp_port_library_list (2): found mtab fsname mqueue 0.000404 gp_port_library_list (2): found mtab fsname debugfs 0.000408 gp_port_library_list (2): found mtab fsname configfs 0.000412 gp_port_library_list (2): found mtab fsname fusectl 0.000414 gp_port_library_list (2): found mtab fsname /dev/loop0 0.000417 gp_port_library_list (2): found mtab fsname /dev/loop2 0.000420 gp_port_library_list (2): found mtab fsname /dev/loop1 0.000423 gp_port_library_list (2): found mtab fsname /dev/loop3 0.000428 gp_port_library_list (2): found mtab fsname /dev/loop4 0.000431 gp_port_library_list (2): found mtab fsname /dev/loop5 0.000434 gp_port_library_list (2): found mtab fsname /dev/loop6 0.000437 gp_port_library_list (2): found mtab fsname /dev/loop7 0.000440 gp_port_library_list (2): found mtab fsname /dev/loop8 0.000443 gp_port_library_list (2): found mtab fsname /dev/loop9 0.000446 gp_port_library_list (2): found mtab fsname /dev/loop10 0.000449 gp_port_library_list (2): found mtab fsname /dev/loop11 0.000452 gp_port_library_list (2): found mtab fsname /dev/loop13 0.000468 gp_port_library_list (2): found mtab fsname /dev/loop12 0.000474 gp_port_library_list (2): found mtab fsname /dev/loop14 0.000477 gp_port_library_list (2): found mtab fsname /dev/loop15 0.000480 gp_port_library_list (2): found mtab fsname CEOS 0.000483 gp_port_library_list (2): found mtab fsname tmpfs 0.000500 gp_port_library_list (2): found mtab fsname tmpfs 0.000506 gp_port_library_list (2): found mtab fsname gvfsd-fuse 0.000508 gp_port_library_list (2): found mtab fsname /dev/sr0 0.000525 foreach_func (2): Loaded '' ('^disk:') from '/usr/local/lib/libgphoto2_port/0.12.0/disk'. 0.000530 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/ptpip'. 0.000605 foreach_func (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/local/lib/libgphoto2_port/0.12.0/ptpip'. 0.000612 foreach_func (2): Loaded '' ('^ptpip:') from '/usr/local/lib/libgphoto2_port/0.12.0/ptpip'. 0.000613 foreach_func (2): Loaded 'IP Connection' ('ip:') from '/usr/local/lib/libgphoto2_port/0.12.0/ptpip'. 0.000615 foreach_func (2): Loaded '' ('^ip:') from '/usr/local/lib/libgphoto2_port/0.12.0/ptpip'. 0.000616 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000705 foreach_func (2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000711 foreach_func (2): Loaded 'Serial Port 1' ('serial:/dev/ttyS1') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000712 foreach_func (2): Loaded 'Serial Port 2' ('serial:/dev/ttyS2') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000713 foreach_func (2): Loaded 'Serial Port 3' ('serial:/dev/ttyS3') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000715 foreach_func (2): Loaded 'Serial Port 4' ('serial:/dev/ttyS4') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000716 foreach_func (2): Loaded 'Serial Port 5' ('serial:/dev/ttyS5') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000717 foreach_func (2): Loaded 'Serial Port 6' ('serial:/dev/ttyS6') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000719 foreach_func (2): Loaded 'Serial Port 7' ('serial:/dev/ttyS7') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000720 foreach_func (2): Loaded 'Serial Port 8' ('serial:/dev/ttyS8') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000722 foreach_func (2): Loaded 'Serial Port 9' ('serial:/dev/ttyS9') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000723 foreach_func (2): Loaded 'Serial Port 10' ('serial:/dev/ttyS10') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000724 foreach_func (2): Loaded 'Serial Port 11' ('serial:/dev/ttyS11') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000726 foreach_func (2): Loaded 'Serial Port 12' ('serial:/dev/ttyS12') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000727 foreach_func (2): Loaded 'Serial Port 13' ('serial:/dev/ttyS13') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000729 foreach_func (2): Loaded 'Serial Port 14' ('serial:/dev/ttyS14') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000730 foreach_func (2): Loaded 'Serial Port 15' ('serial:/dev/ttyS15') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000731 foreach_func (2): Loaded 'Serial Port 16' ('serial:/dev/ttyS16') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000733 foreach_func (2): Loaded 'Serial Port 17' ('serial:/dev/ttyS17') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000734 foreach_func (2): Loaded 'Serial Port 18' ('serial:/dev/ttyS18') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000735 foreach_func (2): Loaded 'Serial Port 19' ('serial:/dev/ttyS19') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000737 foreach_func (2): Loaded 'Serial Port 20' ('serial:/dev/ttyS20') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000738 foreach_func (2): Loaded 'Serial Port 21' ('serial:/dev/ttyS21') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000739 foreach_func (2): Loaded 'Serial Port 22' ('serial:/dev/ttyS22') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000741 foreach_func (2): Loaded 'Serial Port 23' ('serial:/dev/ttyS23') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000742 foreach_func (2): Loaded 'Serial Port 24' ('serial:/dev/ttyS24') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000744 foreach_func (2): Loaded 'Serial Port 25' ('serial:/dev/ttyS25') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000745 foreach_func (2): Loaded 'Serial Port 26' ('serial:/dev/ttyS26') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000746 foreach_func (2): Loaded 'Serial Port 27' ('serial:/dev/ttyS27') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000748 foreach_func (2): Loaded 'Serial Port 28' ('serial:/dev/ttyS28') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000749 foreach_func (2): Loaded 'Serial Port 29' ('serial:/dev/ttyS29') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000750 foreach_func (2): Loaded 'Serial Port 30' ('serial:/dev/ttyS30') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000752 foreach_func (2): Loaded 'Serial Port 31' ('serial:/dev/ttyS31') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000753 foreach_func (2): Loaded 'Serial Port Device' ('serial:') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000755 foreach_func (2): Loaded '' ('^serial:') from '/usr/local/lib/libgphoto2_port/0.12.0/serial'. 0.000756 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/usb1'. 0.002051 foreach_func (2): Loaded '' ('^usb:') from '/usr/local/lib/libgphoto2_port/0.12.0/usb1'. 0.002058 foreach_func (2): Loaded 'Universal Serial Bus' ('usb:001,003') from '/usr/local/lib/libgphoto2_port/0.12.0/usb1'. 0.002060 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/usbdiskdirect'. 0.002139 foreach_func (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.0/usbscsi'. 0.002228 gp_port_info_list_count (2): Counting entries (41 available)... 0.002234 gp_port_info_list_count (2): 36 regular entries available. 0.002240 gp_abilities_list_load_dir (2): Using ltdl to load camera libraries from '/usr/local/lib/libgphoto2/2.5.23.1'... 0.002271 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/ax203'. 0.002274 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/canon'. 0.002275 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/digigr8'. 0.002276 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/dimagev'. 0.002277 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/directory'. 0.002278 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/jl2005a'. 0.002279 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/jl2005c'. 0.002284 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/kodak_dc240'. 0.002285 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/lumix'. 0.002286 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/mars'. 0.002287 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/pentax'. 0.002288 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/ptp2'. 0.002289 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/ricoh_g3'. 0.002290 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/sierra'. 0.002292 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/sonix'. 0.002295 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/sq905'. 0.002296 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/st2205'. 0.002297 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/topfield'. 0.002298 foreach_func (2): Found '/usr/local/lib/libgphoto2/2.5.23.1/tp6801'. 0.002301 gp_abilities_list_load_dir (2): Found 19 camera drivers. 0.011533 gp_port_info_list_count (2): Counting entries (41 available)...
0.011540 gp_port_info_list_count (2): 36 regular entries available. 0.011541 gp_port_new (2): Creating new device... 0.011544 gp_port_info_list_get_info (2): Getting info of entry 0 (41 available)... 0.011582 gp_port_set_settings (2): Setting settings... 0.011589 gp_port_info_list_get_info (2): Getting info of entry 1 (41 available)... 0.011626 gp_port_set_settings (2): Setting settings... 0.011632 gp_port_info_list_get_info (2): Getting info of entry 2 (41 available)... 0.011670 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011672 gp_port_set_settings (2): Setting settings... 0.011673 gp_port_info_list_get_info (2): Getting info of entry 3 (41 available)... 0.011712 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011717 gp_port_set_settings (2): Setting settings... 0.011718 gp_port_info_list_get_info (2): Getting info of entry 4 (41 available)... 0.011752 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011754 gp_port_set_settings (2): Setting settings... 0.011755 gp_port_info_list_get_info (2): Getting info of entry 5 (41 available)... 0.011786 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011792 gp_port_set_settings (2): Setting settings... 0.011793 gp_port_info_list_get_info (2): Getting info of entry 6 (41 available)... 0.011826 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011828 gp_port_set_settings (2): Setting settings... 0.011829 gp_port_info_list_get_info (2): Getting info of entry 7 (41 available)... 0.011859 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011865 gp_port_set_settings (2): Setting settings... 0.011866 gp_port_info_list_get_info (2): Getting info of entry 8 (41 available)... 0.011898 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011900 gp_port_set_settings (2): Setting settings... 0.011901 gp_port_info_list_get_info (2): Getting info of entry 9 (41 available)... 0.011933 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011938 gp_port_set_settings (2): Setting settings... 0.011939 gp_port_info_list_get_info (2): Getting info of entry 10 (41 available)... 0.011972 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.011975 gp_port_set_settings (2): Setting settings... 0.011976 gp_port_info_list_get_info (2): Getting info of entry 11 (41 available)... 0.012007 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012012 gp_port_set_settings (2): Setting settings... 0.012014 gp_port_info_list_get_info (2): Getting info of entry 12 (41 available)... 0.012046 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012051 gp_port_set_settings (2): Setting settings... 0.012053 gp_port_info_list_get_info (2): Getting info of entry 13 (41 available)... 0.012085 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012090 gp_port_set_settings (2): Setting settings... 0.012092 gp_port_info_list_get_info (2): Getting info of entry 14 (41 available)... 0.012124 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012129 gp_port_set_settings (2): Setting settings... 0.012130 gp_port_info_list_get_info (2): Getting info of entry 15 (41 available)... 0.012162 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012168 gp_port_set_settings (2): Setting settings... 0.012169 gp_port_info_list_get_info (2): Getting info of entry 16 (41 available)... 0.012201 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012207 gp_port_set_settings (2): Setting settings... 0.012217 gp_port_info_list_get_info (2): Getting info of entry 17 (41 available)... 0.012253 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012260 gp_port_set_settings (2): Setting settings... 0.012261 gp_port_info_list_get_info (2): Getting info of entry 18 (41 available)... 0.012295 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012300 gp_port_set_settings (2): Setting settings... 0.012301 gp_port_info_list_get_info (2): Getting info of entry 19 (41 available)... 0.012334 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012339 gp_port_set_settings (2): Setting settings... 0.012340 gp_port_info_list_get_info (2): Getting info of entry 20 (41 available)... 0.012373 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012378 gp_port_set_settings (2): Setting settings... 0.012379 gp_port_info_list_get_info (2): Getting info of entry 21 (41 available)... 0.012412 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012417 gp_port_set_settings (2): Setting settings... 0.012418 gp_port_info_list_get_info (2): Getting info of entry 22 (41 available)... 0.012451 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012456 gp_port_set_settings (2): Setting settings... 0.012458 gp_port_info_list_get_info (2): Getting info of entry 23 (41 available)... 0.012490 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012496 gp_port_set_settings (2): Setting settings... 0.012497 gp_port_info_list_get_info (2): Getting info of entry 24 (41 available)... 0.012529 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012535 gp_port_set_settings (2): Setting settings... 0.012536 gp_port_info_list_get_info (2): Getting info of entry 25 (41 available)... 0.012568 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012574 gp_port_set_settings (2): Setting settings... 0.012575 gp_port_info_list_get_info (2): Getting info of entry 26 (41 available)... 0.012621 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012627 gp_port_set_settings (2): Setting settings... 0.012628 gp_port_info_list_get_info (2): Getting info of entry 27 (41 available)... 0.012661 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012666 gp_port_set_settings (2): Setting settings... 0.012668 gp_port_info_list_get_info (2): Getting info of entry 28 (41 available)... 0.012701 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012706 gp_port_set_settings (2): Setting settings... 0.012707 gp_port_info_list_get_info (2): Getting info of entry 29 (41 available)... 0.012740 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012746 gp_port_set_settings (2): Setting settings... 0.012747 gp_port_info_list_get_info (2): Getting info of entry 30 (41 available)... 0.012779 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012785 gp_port_set_settings (2): Setting settings... 0.012786 gp_port_info_list_get_info (2): Getting info of entry 31 (41 available)... 0.012819 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012824 gp_port_set_settings (2): Setting settings... 0.012825 gp_port_info_list_get_info (2): Getting info of entry 32 (41 available)... 0.012858 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012863 gp_port_set_settings (2): Setting settings... 0.012864 gp_port_info_list_get_info (2): Getting info of entry 33 (41 available)... 0.012897 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012903 gp_port_set_settings (2): Setting settings... 0.012904 gp_port_info_list_get_info (2): Getting info of entry 34 (41 available)... 0.012936 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.012942 gp_port_set_settings (2): Setting settings... 0.012943 gp_port_info_list_get_info (2): Getting info of entry 35 (41 available)... 0.013905 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 0.013912 gp_port_set_settings (2): Setting settings... 0.013915 gp_libusb1_update (2): (old int=0, conf=-1, alt=-1) port usb:001,003, (new int=0, conf=-1, alt=-1) port usb:001,003 0.013917 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need for libusb changes 0.013918 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras... 0.014168 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)... 0.014275 gp_libusb1_find_device_lib (2): Looking for USB device (vendor 0x54c, product 0xccc)... found. 0.014297 gp_libusb1_find_device_lib (2): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01 0.014301 gp_abilities_list_detect_usb(2): Found 'Sony DSC-A7r IV (Control)' (0x54c,0xccc) 0.014305 gp_port_free (2): Freeing port... 0.014306 gp_port_close (2): Closing port... 0.014527 gp_camera_set_abilities (2): Setting abilities ('Sony DSC-A7r IV (Control)')... 0.014535 gp_setting_set (2): Setting key 'model' to value 'Sony DSC-A7r IV (Control)' (gphoto2) 0.014537 save_settings (2): Saving 4 setting(s) to file "/home/ubuntu/.gphoto/settings" 0.014613 gp_port_info_list_lookup_path(2): Looking for path 'usb:001,003' (41 entries available)... 0.014619 gp_port_info_list_get_info (2): Getting info of entry 35 (41 available)... 0.014622 gp_camera_set_port_info (2): Setting port info for port 'Universal Serial Bus' at 'usb:001,003'... 0.015629 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 0.015637 gp_port_set_settings (2): Setting settings... 0.015640 gp_libusb1_update (2): (old int=0, conf=-1, alt=-1) port usb:001,003, (new int=0, conf=-1, alt=-1) port usb:001,003 0.015641 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need for libusb changes 0.015643 gp_setting_set (2): Setting key 'port' to value 'usb:001,003' (gphoto2) 0.015645 save_settings (2): Saving 4 setting(s) to file "/home/ubuntu/.gphoto/settings" 0.015698 gp_camera_init (2): Initializing camera... 0.015711 gp_libusb1_find_device_lib (2): Looking for USB device (vendor 0x54c, product 0xccc)... found. 0.015763 gp_libusb1_find_device_lib (2): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01 0.015768 gp_camera_init (2): Loading '/usr/local/lib/libgphoto2/2.5.23.1/ptp2'... 0.018137 gp_port_open (2): Opening USB port... 0.018145 gp_libusb1_open (2): () 0.018166 gp_libusb1_open (2): claiming interface 0 0.018488 camera_init (2): maxpacketsize 512 0.018497 gp_port_set_timeout (2): Setting port timeout to 8000 milliseconds. 0.018502 ptp (2): PTP: Opening session 0.018545 ptp_usb_sendreq (2): Sending PTP_OC 0x1002 (Open session) (0x1) request... 0.018547 gp_port_write (3): Writing 16 = 0x10 bytes to port... 0.025652 _cb_irq (2): 0x55af114321f0 with status 0 0.025665 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

0.025667 _cb_irq (2): Requeuing completed transfer 0x55af114321f0 0.285812 _cb_irq (2): 0x55af1143e5a0 with status 0 0.285835 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

0.285842 _cb_irq (2): Requeuing completed transfer 0x55af1143e5a0 0.525967 _cb_irq (2): 0x55af1142e640 with status 0 0.525990 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

0.525998 _cb_irq (2): Requeuing completed transfer 0x55af1142e640 0.834172 _cb_irq (2): 0x55af1145aeb0 with status 0 0.834193 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

0.834201 _cb_irq (2): Requeuing completed transfer 0x55af1145aeb0 1.494565 _cb_irq (2): 0x55af1142e230 with status 0 1.494588 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

1.494596 _cb_irq (2): Requeuing completed transfer 0x55af1142e230 2.927105 _cb_irq (2): 0x55af11454b10 with status 0 2.927129 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

2.927136 _cb_irq (2): Requeuing completed transfer 0x55af11454b10 3.563539 _cb_irq (2): 0x55af11454c30 with status 0 3.563561 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

3.563569 _cb_irq (2): Requeuing completed transfer 0x55af11454c30 7.249417 _cb_irq (2): 0x55af1145b240 with status 0 7.249435 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

7.249443 _cb_irq (2): Requeuing completed transfer 0x55af1145b240 7.853567 _cb_irq (2): 0x55af1143ade0 with status 0 7.853588 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

7.853595 _cb_irq (2): Requeuing completed transfer 0x55af1143ade0 8.036273 gp_libusb1_write libusb1.c:595: 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7) 8.036305 gp_port_write gphoto2-port.c:406: Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10) 8.036314 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10) 8.036325 camera_init library.c:8560: 'ptp_opensession (params, sessionid)' failed: PTP Timeout (0x02fa) 8.036329 ptp (2): PTP: Opening session 8.036335 ptp_usb_sendreq (2): Sending PTP_OC 0x1002 (Open session) (0x1) request... 8.036339 gp_port_write (3): Writing 16 = 0x10 bytes to port... 10.370857 _cb_irq (2): 0x55af1143b010 with status 0 10.370880 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

10.370887 _cb_irq (2): Requeuing completed transfer 0x55af1143b010 13.984619 _cb_irq (2): 0x55af114321f0 with status 0 13.984634 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

13.984636 _cb_irq (2): Requeuing completed transfer 0x55af114321f0 15.457870 _cb_irq (2): 0x55af1143e5a0 with status 0 15.457924 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

15.457937 _cb_irq (2): Requeuing completed transfer 0x55af1143e5a0 16.037605 gp_libusb1_write libusb1.c:595: 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7) 16.037625 gp_port_write gphoto2-port.c:406: Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10) 16.037629 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10) 16.037633 camera_init library.c:8560: 'ptp_opensession (params, sessionid)' failed: PTP Timeout (0x02fa) 16.037634 ptp (2): PTP: Opening session 16.037637 ptp_usb_sendreq (2): Sending PTP_OC 0x1002 (Open session) (0x1) request... 16.037639 gp_port_write (3): Writing 16 = 0x10 bytes to port... 16.874045 _cb_irq (2): 0x55af1142e640 with status 0 16.874059 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

16.874061 _cb_irq (2): Requeuing completed transfer 0x55af1142e640 17.366423 _cb_irq (2): 0x55af1145aeb0 with status 0 17.366438 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

17.366440 _cb_irq (2): Requeuing completed transfer 0x55af1145aeb0 17.618614 _cb_irq (2): 0x55af1142e230 with status 0 17.618628 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

17.618631 _cb_irq (2): Requeuing completed transfer 0x55af1142e230 18.058646 _cb_irq (2): 0x55af11454b10 with status 0 18.058660 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

18.058662 _cb_irq (2): Requeuing completed transfer 0x55af11454b10 19.259349 _cb_irq (2): 0x55af11454c30 with status 0 19.259363 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

19.259366 _cb_irq (2): Requeuing completed transfer 0x55af11454c30 19.495432 _cb_irq (2): 0x55af1145b240 with status 0 19.495447 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

19.495449 _cb_irq (2): Requeuing completed transfer 0x55af1145b240 19.735572 _cb_irq (2): 0x55af1143ade0 with status 0 19.735587 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

19.735589 _cb_irq (2): Requeuing completed transfer 0x55af1143ade0 24.040800 gp_libusb1_write libusb1.c:595: 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7) 24.040818 gp_port_write gphoto2-port.c:406: Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10) 24.040822 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10) 24.040825 camera_init library.c:8560: 'ptp_opensession (params, sessionid)' failed: PTP Timeout (0x02fa) 24.040827 camera_init library.c:8588: 'ret' failed: 'PTP Timeout' (0x02fa) 24.040832 gp_context_error (0): PTP Timeout

Error
PTP Timeout 24.040838 gp_port_close (2): Closing port... 24.051229 _close_async_interrupts (2): canceling transfer 0:0x55af114321f0 (status 0) 24.051509 _close_async_interrupts (2): canceling transfer 1:0x55af1143e5a0 (status 0) 24.051700 _close_async_interrupts (2): canceling transfer 2:0x55af1142e640 (status 0) 24.051879 _close_async_interrupts (2): canceling transfer 3:0x55af1145aeb0 (status 0) 24.052105 _close_async_interrupts (2): canceling transfer 4:0x55af1142e230 (status 0) 24.052362 _close_async_interrupts (2): canceling transfer 5:0x55af11454b10 (status 0) 24.052603 _close_async_interrupts (2): canceling transfer 6:0x55af11454c30 (status 0) 24.052838 _close_async_interrupts (2): canceling transfer 7:0x55af1145b240 (status 0) 24.053064 _close_async_interrupts (2): canceling transfer 8:0x55af1143ade0 (status 0) 24.053301 _close_async_interrupts (2): canceling transfer 9:0x55af1143b010 (status 0) 24.053544 _cb_irq (2): 0x55af114321f0 with status 3 24.053550 _cb_irq (2): Transfer 0x55af114321f0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053555 _cb_irq (2): 0x55af1143e5a0 with status 3 24.053556 _cb_irq (2): Transfer 0x55af1143e5a0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053558 _cb_irq (2): 0x55af1142e640 with status 3 24.053562 _cb_irq (2): Transfer 0x55af1142e640 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053564 _cb_irq (2): 0x55af1145aeb0 with status 3 24.053565 _cb_irq (2): Transfer 0x55af1145aeb0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053567 _cb_irq (2): 0x55af1142e230 with status 3 24.053569 _cb_irq (2): Transfer 0x55af1142e230 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053570 _cb_irq (2): 0x55af11454b10 with status 3 24.053572 _cb_irq (2): Transfer 0x55af11454b10 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053573 _cb_irq (2): 0x55af11454c30 with status 3 24.053575 _cb_irq (2): Transfer 0x55af11454c30 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053576 _cb_irq (2): 0x55af1145b240 with status 3 24.053578 _cb_irq (2): Transfer 0x55af1145b240 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053580 _cb_irq (2): 0x55af1143ade0 with status 3 24.053582 _cb_irq (2): Transfer 0x55af1143ade0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053583 _cb_irq (2): 0x55af1143b010 with status 3 24.053585 _cb_irq (2): Transfer 0x55af1143b010 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 24.053709 gp_context_error (0): An error occurred in the io-library ('Timeout reading from or writing to the port'): No error description available

Error
An error occurred in the io-library ('Timeout reading from or writing to the port'): No error description available ERROR: Could not capture image. ERROR: Could not capture. 24.053725 gp_camera_init (2): Initializing camera... 24.053735 gp_libusb1_find_device_lib (2): Looking for USB device (vendor 0x54c, product 0xccc)... found. 24.053760 gp_libusb1_find_device_lib (2): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class 06, subclass 01 24.053761 gp_camera_init (2): Loading '/usr/local/lib/libgphoto2/2.5.23.1/ptp2'... 24.054200 gp_port_open (2): Opening USB port... 24.054207 gp_libusb1_open (2): () 24.054217 gp_libusb1_open (2): claiming interface 0 24.054281 camera_init (2): maxpacketsize 512 24.054289 gp_port_set_timeout (2): Setting port timeout to 8000 milliseconds. 24.054294 ptp (2): PTP: Opening session 24.054297 ptp_usb_sendreq (2): Sending PTP_OC 0x1002 (Open session) (0x1) request... 24.054299 gp_port_write (3): Writing 16 = 0x10 bytes to port... 32.056889 gp_libusb1_write libusb1.c:595: 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7) 32.056910 gp_port_write gphoto2-port.c:406: Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10) 32.056918 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10) 32.056926 camera_init library.c:8560: 'ptp_opensession (params, sessionid)' failed: PTP Timeout (0x02fa) 32.056928 ptp (2): PTP: Opening session 32.056931 ptp_usb_sendreq (2): Sending PTP_OC 0x1002 (Open session) (0x1) request... 32.056933 gp_port_write (3): Writing 16 = 0x10 bytes to port... 40.058364 gp_libusb1_write libusb1.c:595: 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7) 40.058410 gp_port_write gphoto2-port.c:406: Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10) 40.058414 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10) 40.058417 camera_init library.c:8560: 'ptp_opensession (params, sessionid)' failed: PTP Timeout (0x02fa) 40.058420 ptp (2): PTP: Opening session 40.058423 ptp_usb_sendreq (2): Sending PTP_OC 0x1002 (Open session) (0x1) request... 40.058424 gp_port_write (3): Writing 16 = 0x10 bytes to port... 45.912640 _cb_irq (2): 0x55af1142e210 with status 0 45.912653 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

45.912656 _cb_irq (2): Requeuing completed transfer 0x55af1142e210 46.384910 _cb_irq (2): 0x55af1143e5a0 with status 0 46.384925 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

46.384927 _cb_irq (2): Requeuing completed transfer 0x55af1143e5a0 46.633016 _cb_irq (2): 0x55af1143a0e0 with status 0 46.633030 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

46.633033 _cb_irq (2): Requeuing completed transfer 0x55af1143a0e0 46.909063 _cb_irq (2): 0x55af11438b80 with status 0 46.909077 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

46.909080 _cb_irq (2): Requeuing completed transfer 0x55af11438b80 47.109156 _cb_irq (2): 0x55af11437b10 with status 0 47.109170 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

47.109173 _cb_irq (2): Requeuing completed transfer 0x55af11437b10 47.349375 _cb_irq (2): 0x55af11437fe0 with status 0 47.349391 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

47.349407 _cb_irq (2): Requeuing completed transfer 0x55af11437fe0 47.829536 _cb_irq (2): 0x55af11422340 with status 0 47.829550 _cb_irq (3): interrupt (hexdump of 16 bytes) 0000 10 00 00 00 04 00 03 c2-ff ff ff ff 00 00 00 00 ................

47.829553 _cb_irq (2): Requeuing completed transfer 0x55af11422340 48.060828 gp_libusb1_write libusb1.c:595: 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7) 48.060869 gp_port_write gphoto2-port.c:406: Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10) 48.060875 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10) 48.060879 camera_init library.c:8560: 'ptp_opensession (params, sessionid)' failed: PTP Timeout (0x02fa) 48.060881 camera_init library.c:8588: 'ret' failed: 'PTP Timeout' (0x02fa) 48.060898 gp_context_error (0): PTP Timeout

Error
PTP Timeout 48.060908 gp_port_close (2): Closing port... 48.070014 _close_async_interrupts (2): canceling transfer 0:0x55af1142e210 (status 0) 48.070401 _close_async_interrupts (2): canceling transfer 1:0x55af1143e5a0 (status 0) 48.070770 _close_async_interrupts (2): canceling transfer 2:0x55af1143a0e0 (status 0) 48.071121 _close_async_interrupts (2): canceling transfer 3:0x55af11438b80 (status 0) 48.071475 _close_async_interrupts (2): canceling transfer 4:0x55af11437b10 (status 0) 48.071839 _close_async_interrupts (2): canceling transfer 5:0x55af11437fe0 (status 0) 48.072087 _close_async_interrupts (2): canceling transfer 6:0x55af11422340 (status 0) 48.072358 _close_async_interrupts (2): canceling transfer 7:0x55af114204b0 (status 0) 48.072665 _close_async_interrupts (2): canceling transfer 8:0x55af1143ade0 (status 0) 48.072854 _close_async_interrupts (2): canceling transfer 9:0x55af1143b010 (status 0) 48.073006 _cb_irq (2): 0x55af1142e210 with status 3 48.073012 _cb_irq (2): Transfer 0x55af1142e210 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073014 _cb_irq (2): 0x55af1143e5a0 with status 3 48.073015 _cb_irq (2): Transfer 0x55af1143e5a0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073017 _cb_irq (2): 0x55af1143a0e0 with status 3 48.073018 _cb_irq (2): Transfer 0x55af1143a0e0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073020 _cb_irq (2): 0x55af11438b80 with status 3 48.073021 _cb_irq (2): Transfer 0x55af11438b80 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073022 _cb_irq (2): 0x55af11437b10 with status 3 48.073023 _cb_irq (2): Transfer 0x55af11437b10 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073025 _cb_irq (2): 0x55af11437fe0 with status 3 48.073026 _cb_irq (2): Transfer 0x55af11437fe0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073028 _cb_irq (2): 0x55af11422340 with status 3 48.073029 _cb_irq (2): Transfer 0x55af11422340 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073030 _cb_irq (2): 0x55af114204b0 with status 3 48.073032 _cb_irq (2): Transfer 0x55af114204b0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073033 _cb_irq (2): 0x55af1143ade0 with status 3 48.073034 _cb_irq (2): Transfer 0x55af1143ade0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073036 _cb_irq (2): 0x55af1143b010 with status 3 48.073037 _cb_irq (2): Transfer 0x55af1143b010 should be in LIBUSB_TRANSFER_COMPLETED, but is 3! 48.073171 gp_context_error (0): An error occurred in the io-library ('Timeout reading from or writing to the port'): No error description available

Error
An error occurred in the io-library ('Timeout reading from or writing to the port'): No error description available 48.073353 gp_camera_free (2): Freeing camera... 48.073356 gp_port_free (2): Freeing port... 48.073357 gp_port_close (2): Closing port... 48.073443 gp_filesystem_reset (2): resetting filesystem 48.073447 gp_filesystem_lru_clear (2): Clearing fscache LRU list... 48.073448 gp_filesystem_lru_clear (2): fscache LRU list already empty 48.073449 delete_all_folders (2): Internally deleting all folders from '/'... 48.073450 lookup_folder (2): Lookup folder '/'... 48.073452 lookup_folder (2): Found! / is 0x55af114188a0 48.073453 recurse_delete_folder (2): Recurse delete folder 0x55af114188a0// 48.073454 delete_all_files (2): Delete all files in folder 0x55af114188a0//

msmeissn commented 4 years ago

hmm, can you attach a debuglogfile

gphoto2 --debug --debug-logfile=log.txt --summary --capture-image

and attach log.txt ?

pdeman commented 4 years ago

here are the results: log.txt gphoto2 --debug --debug-logfile=log.txt --summary --capture-image

Error
PTP Timeout

Error
An error occurred in the io-library ('Timeout reading from or writing to the port'): No error description available

Error
PTP Timeout

Error
An error occurred in the io-library ('Timeout reading from or writing to the port'): No error description available ERROR: Could not capture image. ERROR: Could not capture.

Error
PTP Timeout

Error
An error occurred in the io-library ('Timeout reading from or writing to the port'): No error description available

msmeissn commented 4 years ago

At this time the camera was in a corrupted state and not reacting to commands... can you replugin the camera and try again?

pdeman commented 4 years ago

gphoto2 --debug --debug-logfile=log2.txt --summary --capture-image Camera summary:
Manufacturer: Sony Corporation Model: ILCE-7RM4 Version: 1.10 Serial Number: 00000000000000003285073003777959 Vendor Extension ID: 0x11 (1.0) Vendor Extension Description: Sony PTP Extensions

Capture Formats: Display Formats: JPEG, Unknown(b301), ARW

Device Capabilities: File Download, No File Deletion, File Upload No Image Capture, No Open Capture, Sony Capture

Storage Devices Summary:

Device Property Summary: Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [16,20,19,18,4,3,2] value: RAW (4) White Balance(0x5005):(readwrite) (type=0x4) Enumeration [] value: Automatic (2) F-Number(0x5007):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: f/4 (400) Focus Mode(0x500a):(readwrite) (type=0x4) Enumeration [2,32773,32772,32774,1] value: 32772 Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [32769] value: 32769 Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [] value: Automatic flash (1) Exposure Program Mode(0x500e):(readwrite) (type=0x4) Enumeration [32768] value: 32768 Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [] value: 0,0 stops (0) Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,32786,32789,2,32784,32772,32771,32773,32776,32777,32780,32781,32782,32783] value: Single Shot (1) DOC Compensation(0xd200):(readwrite) (type=0x3) Enumeration [] value: 0 DRangeOptimize(0xd201):(readwrite) (type=0x2) Enumeration [31] value: 31 Image size(0xd203):(readwrite) (type=0x2) Enumeration [1,2,3] value: 1 Shutter speed(0xd20d):(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 65696 Property 0xd20e:(readwrite) (type=0x2) Enumeration [] value: 15 Color temperature(0xd20f):(readwrite) (type=0x4) Range [2500 - 9900, step 100] value: 5500 CC Filter(0xd210):(readwrite) (type=0x2) Range [156 - 228, step 1] value: 192 Aspect Ratio(0xd211):(readwrite) (type=0x2) Enumeration [1,3,2,4] value: 1 Focus status(0xd213):(readwrite) (type=0x2) Enumeration [] value: 1 Property 0xd214:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 4294967295 Objects in memory(0xd215):(readwrite) (type=0x4) Range [0 - 65535, step 1] value: 0 Property 0xd217:(readwrite) (type=0x2) Enumeration [] value: 1 Battery Level(0xd218):(readwrite) (type=0x1) Range [-1 - 100, step 1] value: 82 Picture Effect(0xd21b):(readwrite) (type=0x4) Enumeration [32768] value: 32768 AB Filter(0xd21c):(readwrite) (type=0x2) Range [156 - 228, step 1] value: 192 Property 0xd21d:(readwrite) (type=0x2) Range [0 - 2, step 1] value: 0 ISO(0xd21e):(readwrite) (type=0x6) Enumeration [] value: 16777215 Property 0xd21f:(readwrite) (type=0x2) Enumeration [] value: 1 Property 0xd220:(readwrite) (type=0x2) Enumeration [] value: 1 Property 0xd221:(readwrite) (type=0x2) Enumeration [] value: 0 Property 0xd222:(readwrite) (type=0x4) Enumeration [1,17,16] value: 16 Property 0xd223: error 2002 on query. Property 0xd224:(readwrite) (type=0x3) Enumeration [] value: 0 Property 0xd226:(readwrite) (type=0x6) Enumeration [16777215] value: 16777215 Property 0xd227:(readwrite) (type=0x2) Enumeration [] value: 0 Property 0xd228:(readwrite) (type=0x2) Enumeration [4,5] value: 5 Property 0xd229:(readwrite) (type=0x6) Enumeration [19660810,16384010,13107210,9830410,8519690,6553610,5242890,3932170,3276810,2621450,2097162,1638410,1310730,1048586,851978,655370,524298,393226,327690,262154,65539,65540,65541,65542,65544,65546,65549,65551,65556,65561,65566,65576,65586,65596,65616,65636,65661,65696,65736,65786,65856,65936,66036,66176,66336,66536,66786,67136,67536,68036,68736,69536,70536,71936,73536] value: 65696 Property 0xd22a:(readwrite) (type=0x2) Enumeration [] value: 1 Property 0xd22b:(readwrite) (type=0x2) Enumeration [] value: 0 Property 0xd235:(readwrite) (type=0x2) Enumeration [0,1] value: 0 Property 0xd23e:(readwrite) (type=0x2) Enumeration [] value: 0 Property 0xd23f:(readwrite) (type=0x2) Enumeration [0,1,2,3,4,5,6,7,8,9,10] value: 0 Property 0xd240:(readwrite) (type=0x2) Enumeration [1,14,15,16,17,18,19] value: 1 Property 0xd241:(readwrite) (type=0x2) Enumeration [8,9,3] value: 9 Property 0xd242:(readwrite) (type=0x4) Enumeration [4,25,5,27] value: 4 Property 0xd243:(readwrite) (type=0x4) Enumeration [] value: 2 Property 0xd244:(readwrite) (type=0x4) Enumeration [] value: 2 Property 0xd245:(readwrite) (type=0x2) Enumeration [] value: 1 Property 0xd246:(readwrite) (type=0x2) Enumeration [] value: 2 Property 0xd247:(readwrite) (type=0x2) Enumeration [0,1,2,3,17,18,19,20] value: 0 Property 0xd248:(readwrite) (type=0x2) Enumeration [] value: 1 Property 0xd249:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 1383 Property 0xd24a:(readwrite) (type=0x6) Range [0 - 4294967295, step 1] value: 0 Property 0xd24b:(readwrite) (type=0x2) Enumeration [] value: 0 Property 0xd24c:(readwrite) (type=0x2) Range [0 - 0, step 1] value: 100 Property 0xd24d:(readwrite) (type=0x2) Enumeration [0,1,2,3,4] value: 0 Property 0xd24e:(readwrite) (type=0x4) Enumeration [] value: 1 Property 0xd24f:(readwrite) (type=0x2) Enumeration [] value: 1 Property 0xd250:(readwrite) (type=0x2) Enumeration [] value: 0 Property 0xd25b:(readwrite) (type=0x2) Enumeration [0,1] value: 0 Property 0xd25c:(readwrite) (type=0x6) Range [1000 - 1000, step 100] value: 1000 Property 0xd25d:(readwrite) (type=0x6) 16777216 Property 0xd25f:(readwrite) (type=0x2) Enumeration [1,3,4] value: 1 Property 0xd260:(readwrite) (type=0x2) Enumeration [] value: 1 Property 0xd265:(readwrite) (type=0x2) Enumeration [] value: 0 Property 0xd266:(readwrite) (type=0x2) Enumeration [0,1] value: 0 Autofocus(0xd2c1):(readwrite) (type=0x4) Enumeration [1,2] value: 2 Capture(0xd2c2):(readwrite) (type=0x4) Enumeration [1,2] value: 2 Property 0xd2c3:(readwrite) (type=0x4) Enumeration [1,2] value: 2 Property 0xd2c5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 Still Image(0xd2c7):(readwrite) (type=0x4) Enumeration [1,2] value: 1 Movie(0xd2c8):(readwrite) (type=0x4) Enumeration [1,2] value: 2 Property 0xd2c9:(readwrite) (type=0x4) Enumeration [1,2] value: 2 Property 0xd2ca:(readwrite) (type=0x4) Enumeration [1,2] value: 2 Property 0xd2d1:(readwrite) (type=0x3) Range [-7 - 7, step 1] value: 3 Property 0xd2d5:(readwrite) (type=0x4) Enumeration [1,2] value: 1 Property 0xd2d6:(readwrite) (type=0x4) Enumeration [1,2] value: 1 Property 0xd2d7:(readwrite) (type=0x4) Enumeration [1,2] value: 2 Property 0xd2d8:(readwrite) (type=0x4) Enumeration [1,2] value: 2 Property 0xd2d9:(readwrite) (type=0x4) Enumeration [1,2] value: 2 Property 0xd2dd:(readwrite) (type=0x1) Range [-1 - 1, step 1] value: 1 Property 0xd2de:(readwrite) (type=0x4) Enumeration [1,2] value: 1

ERROR: Could not capture image. ERROR: Could not capture.

here is the log file: https://drive.google.com/open?id=1BWOLDI5JhQM52UvEp0RNJap5nz7DFz7L

qtnemo commented 4 years ago

Check the "Still Img. Save Dest." under "Network", "PC Remote Function". If it's set to "Camera Only" then you can only "trigger" but not "capture".

pdeman commented 4 years ago

so I tried to trigger and it works. but I'ld like to know the file name. I tried this code trigger.txt sample trigger but I removed the file copy. and I get: evtype capture_completed : 4 evtype unknown : 0 evtype event_timeout : 1 evtype folder_added : 3 evtype file_changed : 5 evtype file_added : 2 triggering capture 1 done triggering Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 0 loop is at 1580824650.583917 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824650.709463 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824650.828521 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824650.952600 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824651.071930 triggering capture 2 done triggering Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824652.225645 Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 0 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824652.346044 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 0 loop is at 1580824652.462584 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824652.588194 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824652.693265 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824652.852178 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824652.968439 eventtype : 0 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824653.089676 triggering capture 3 done triggering Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824654.419836 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824654.548806 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824654.672396 Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 0 loop is at 1580824654.785678 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824654.892554 Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) Reading PTP event failed: Timeout reading from or writing to the port (-10) eventtype : 1 loop is at 1580824655.009578 triggering capture 4

I never succeed to know the file name....

qtnemo commented 4 years ago

I could not access the MicroSD card in any configuration. If you figure it out please email me chu_bunATyahooDOTcom. The main problem is this camera is new and not fully supported. Many features are just missing or broken.

polakovic commented 4 years ago

It looks that the difference between A7R4 and older models is, that the camera sends 0xc206 event with no parameter instead of expected 0xc201 event.

dhamp commented 4 years ago

Sony released Camera Remote SDK (https://support.d-imaging.sony.co.jp/app/sdk/en/index.html) for ILCE-7SM3, ILCE-7RM4, ILCE-9M2 supported platforms: win64 (8.1,10), armv7(cortex a7){}, armv8(cortex a57/72, not sure working it on a53 or not) it included libs with ptp2 protocol & sample app and api description in pdf files.

@msmeissn, this sdk may helped with add support in libgphoto2 these cameras?

msmeissn commented 4 years ago

can you try

gphoto2 --wait-event=3s --capture-image-and-download

?

msmeissn commented 3 years ago

likely fixed by initial wait. please test 2.5.27

SiuyuenChow commented 2 years ago

Have you solved the problem yet? I recently had a similar problem.

The camera model is SONY A7M4, but the exact path and photo name cannot be found after taking photos

this is the log

ptp_sony_getalldevicepropdesc: Objects in memory(d215): value 1 -> 32769 DEBUG== 0xd215 after capture = 32769 SONY ObjectInMemory count change seen, retrieving file Sending PTP_OC 0x1008 (Get object info) (0xffffc001) request... Reading PTP_OC 0x1008 (Get object info) data... Reading PTP_OC 0x1008 (Get object info) response... PTPIP_END_DATA_PACKET PTPIP_CMD_RESPONSE ObjectInfo for 'DSC00174.JPG': Object ID: 0xffffc001 StorageID: 0x00010000 ObjectFormat: 0x3801 ProtectionStatus: 0x0000 ObjectCompressedSize: 306730 ThumbFormat: 0x0000 ThumbCompressedSize: 0 ThumbPixWidth: 0 ThumbPixHeight: 0 ImagePixWidth: 0 ImagePixHeight: 0 ImageBitDepth: 0 ParentObject: 0x00000000 AssociationType: 0x0000 AssociationDesc: 0x00000000 SequenceNumber: 0x00000000 ModificationDate: 0x00000000 CaptureDate: 0x00000000 trying to get object size=0x4ae2a Sending PTP_OC 0x1009 (Get object) (0xffffc001) request... Reading PTP_OC 0x1009 (Get object) data... Reading PTP_OC 0x1009 (Get object) response... hdr type 8, length 18 PTPIP_END_DATA_PACKET hdr type 8, length 18 PTPIP_CMD_RESPONSE Append //capt0000.jpg to filesystem Lookup folder '/'... Found! / is 0x281569b30 Listing files in / Lookup folder '/'... Found! / is 0x281569b30 Querying folder /... Delete all files in folder 0x281569b30// file_list_func(/) Internal append capt0000.jpg to folder / Adding file 'capt0000.jpg' to folder '/' (type 1)... Lookup folder / file capt0000.jpg Lookup folder '/'... Found! / is 0x281569b30 Setting key 'cached-images' to value '2' (libgphoto) Saving 4 setting(s) to file "/private/var/mobile/Containers/Data/Application/8AD9F6EC-F596-45D7-A5AC-01CF9FEF31C3/Library/.gphoto/settings" Adding file 'capt0000.jpg' from folder '/' to the fscache LRU list (type 1)... Lookup folder / file capt0000.jpg Lookup folder '/'... Found! / is 0x281569b30 File 'capt0000.jpg' from folder '/' added in fscache LRU list. Checking fscache LRU list integrity... fscache LRU list ok with 1 items (306730 bytes) Failed to find mime type for 0000 setting fileinfo in fs Lookup folder / file capt0000.jpg Lookup folder '/'... Found! / is 0x281569b30