gphoto2 icon indicating copy to clipboard operation
gphoto2 copied to clipboard

Sony : A6000 (Control) PTP I/O Error.

Open aditya-c2512 opened this issue 2 years ago • 3 comments

On gphoto2 --version :

gphoto2 2.5.27

Copyright (c) 2000-2021 Marcus Meissner and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

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

On gphoto2 --auto-detect :

Model                          Port                                            
----------------------------------------------------------
Sony Alpha-A6000 (Control)     usb:001,016 

NOTE : the usb : part keeps increasing

On gphoto2 --capture-image-and-download :

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

*** Error ***              
PTP I/O Error

A6000 is on Superior Auto and is set to PC Remote, connected to a Raspberry Pi via a USB cable.

Here is the --debug output :

0.000408 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000495 main                        (2): gphoto2 2.5.27
0.000529 main                        (2): gphoto2 has been compiled with the following options:
0.000557 main                        (2):  + gcc (C compiler used)
0.000583 main                        (2):  + popt (mandatory, for handling command-line parameters)
0.000609 main                        (2):  + exif (for displaying EXIF information)
0.000634 main                        (2):  + no cdk (for accessing configuration options)
0.000660 main                        (2):  + no aa (for displaying live previews)
0.000685 main                        (2):  + jpeg (for displaying live previews in JPEG format)
0.000712 main                        (2):  + no readline (for easy navigation in the shell)
0.000741 main                        (2): libgphoto2 2.5.22
0.000772 main                        (2): libgphoto2 has been compiled with the following options:
0.000798 main                        (2):  + all camlibs
0.000823 main                        (2):  + gcc (C compiler used)
0.000847 main                        (2):  + ltdl (for portable loading of camlibs)
0.000872 main                        (2):  + EXIF (for special handling of EXIF files)
0.000900 main                        (2): libgphoto2_port 0.12.0
0.000932 main                        (2): libgphoto2_port has been compiled with the following options:
0.000957 main                        (2):  + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi
0.000982 main                        (2):  + gcc (C compiler used)
0.001007 main                        (2):  + ltdl (for portable loading of iolibs)
0.001033 main                        (2):  + USB (libusb1, for USB cameras)
0.001058 main                        (2):  + serial (for serial cameras)
0.001082 main                        (2):  + no resmgr (serial port access and locking)
0.001108 main                        (2):  + no ttylock (serial port locking)
0.001133 main                        (2):  + no lockdev (serial port locking)
0.001159 main                        (2): CAMLIBS env var not set, using compile-time default instead
0.001184 main                        (2): IOLIBS env var not set, using compile-time default instead
0.001209 main                        (2): invoked with following arguments:
0.001234 main                        (2):   --capture-image-and-download
0.001259 main                        (2):   --debug
0.001344 load_settings               (2): Creating gphoto config directory ('/home/pi/.gphoto')
0.001477 load_settings               (2): Loading settings from file '/home/pi/.gphoto/settings'.
0.001612 main                        (2): The user has not specified both a model and a port. Try to figure them out.
0.001653 gp_port_info_list_load      (2): Using ltdl to load io-drivers from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'...
0.001894 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'.
0.002544 gp_port_library_list        (2): found fstab fsname proc
0.002588 gp_port_library_list        (2): found fstab fsname PARTUUID=d95b9747-01
0.002648 gp_port_library_list        (2): found fstab fsname PARTUUID=d95b9747-02
0.002886 gp_port_library_list        (2): found mtab fsname /dev/root
0.002938 gp_port_library_list        (2): found mtab fsname devtmpfs
0.002975 gp_port_library_list        (2): found mtab fsname sysfs
0.003009 gp_port_library_list        (2): found mtab fsname proc
0.003044 gp_port_library_list        (2): found mtab fsname securityfs
0.003081 gp_port_library_list        (2): found mtab fsname tmpfs
0.003151 gp_port_library_list        (2): found mtab fsname devpts
0.003186 gp_port_library_list        (2): found mtab fsname tmpfs
0.003254 gp_port_library_list        (2): found mtab fsname tmpfs
0.003324 gp_port_library_list        (2): found mtab fsname tmpfs
0.003402 gp_port_library_list        (2): found mtab fsname cgroup2
0.003436 gp_port_library_list        (2): found mtab fsname cgroup
0.003468 gp_port_library_list        (2): found mtab fsname none
0.003525 gp_port_library_list        (2): found mtab fsname cgroup
0.003558 gp_port_library_list        (2): found mtab fsname cgroup
0.003683 gp_port_library_list        (2): found mtab fsname cgroup
0.003717 gp_port_library_list        (2): found mtab fsname cgroup
0.003749 gp_port_library_list        (2): found mtab fsname cgroup
0.003781 gp_port_library_list        (2): found mtab fsname cgroup
0.003812 gp_port_library_list        (2): found mtab fsname cgroup
0.003844 gp_port_library_list        (2): found mtab fsname cgroup
0.003876 gp_port_library_list        (2): found mtab fsname systemd-1
0.003908 gp_port_library_list        (2): found mtab fsname mqueue
0.003940 gp_port_library_list        (2): found mtab fsname debugfs
0.004001 gp_port_library_list        (2): found mtab fsname sunrpc
0.004106 gp_port_library_list        (2): found mtab fsname configfs
0.004191 gp_port_library_list        (2): found mtab fsname /dev/mmcblk0p1
0.004248 gp_port_library_list        (2): found mtab fsname binfmt_misc
0.004367 gp_port_library_list        (2): found mtab fsname tmpfs
0.004439 gp_port_library_list        (2): found mtab fsname gvfsd-fuse
0.004473 gp_port_library_list        (2): found mtab fsname fusectl
0.004623 foreach_func                (2): Loaded '' ('^disk:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'.
0.004656 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.005261 foreach_func                (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.005304 foreach_func                (2): Loaded '' ('^ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.005333 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.006332 foreach_func                (2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.006375 foreach_func                (2): Loaded 'Serial Port Device' ('serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.006405 foreach_func                (2): Loaded '' ('^serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.006434 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.028840 foreach_func                (2): Loaded '' ('^usb:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.028890 foreach_func                (2): Loaded 'Universal Serial Bus' ('usb:001,111') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.028921 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbdiskdirect'.
0.029630 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbscsi'.
0.030187 gp_port_info_list_count     (2): Counting entries (8 available)...
0.030221 gp_port_info_list_count     (2): 4 regular entries available.
0.030287 gp_abilities_list_load_dir  (2): Using ltdl to load camera libraries from '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22'...
0.031159 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/adc65'.
0.031193 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/agfa_cl20'.
0.031221 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/aox'.
0.031247 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ax203'.
0.031274 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/barbie'.
0.031300 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/canon'.
0.031329 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/casio_qv'.
0.031356 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/clicksmart310'.
0.031382 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/digigr8'.
0.031409 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/digita'.
0.031435 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/dimagev'.
0.031461 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/dimera3500'.
0.031488 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/directory'.
0.031515 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/enigma13'.
0.031542 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/fuji'.
0.031567 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/gsmart300'.
0.031594 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/hp215'.
0.031620 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/iclick'.
0.031647 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jamcam'.
0.031673 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jd11'.
0.031700 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jl2005a'.
0.031726 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jl2005c'.
0.031753 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc120'.
0.031780 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc210'.
0.031806 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc240'.
0.031834 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc3200'.
0.031861 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_ez200'.
0.031887 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/konica'.
0.031914 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/konica_qm150'.
0.031941 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/largan'.
0.031968 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/lg_gsm'.
0.031994 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/mars'.
0.032019 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/mustek'.
0.032046 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_coolshot'.
0.032073 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_dc1000'.
0.032099 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_dc1580'.
0.032125 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_l859'.
0.032151 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pccam300'.
0.032178 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pccam600'.
0.032204 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pentax'.
0.032230 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc320'.
0.032256 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc640'.
0.032283 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc700'.
0.032309 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ptp2'.
0.032335 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ricoh'.
0.032361 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ricoh_g3'.
0.032387 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/samsung'.
0.032413 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sierra'.
0.032440 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sipix_blink2'.
0.032467 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sipix_web2'.
0.032493 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/smal'.
0.032519 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sonix'.
0.032545 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sony_dscf1'.
0.032572 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sony_dscf55'.
0.032598 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/soundvision'.
0.032624 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/spca50x'.
0.032651 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sq905'.
0.032677 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/st2205'.
0.032703 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/stv0674'.
0.032730 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/stv0680'.
0.032756 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sx330z'.
0.032782 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/topfield'.
0.032809 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/toshiba_pdrm11'.
0.032835 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/tp6801'.
0.032868 gp_abilities_list_load_dir  (2): Found 64 camera drivers.
0.186990 gp_port_info_list_count     (2): Counting entries (8 available)...    
0.187049 gp_port_info_list_count     (2): 4 regular entries available.
0.187064 gp_port_new                 (2): Creating new device...
0.187095 gp_port_info_list_get_info  (2): Getting info of entry 0 (8 available)...
0.187593 gp_port_set_settings        (2): Setting settings...
0.187621 gp_port_info_list_get_info  (2): Getting info of entry 1 (8 available)...
0.187967 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.187989 gp_port_set_settings        (2): Setting settings...
0.188006 gp_port_info_list_get_info  (2): Getting info of entry 2 (8 available)...
0.188298 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.188319 gp_port_set_settings        (2): Setting settings...
0.188337 gp_port_info_list_get_info  (2): Getting info of entry 3 (8 available)...
0.200422 gp_port_set_timeout         (2): Setting port timeout to 5000 milliseconds.
0.200478 gp_port_set_settings        (2): Setting settings...
0.200501 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port usb:001,111, (new int=0, conf=-1, alt=-1) port usb:001,111
0.200522 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, no need for libusb changes
0.200544 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.203228 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.204629 gp_libusb1_find_device_lib  (2): Looking for USB device (vendor 0x54c, product 0x94e)... found.
0.205121 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.205163 gp_abilities_list_detect_usb(2): Found 'Sony Alpha-A6000 (Control)' (0x54c,0x94e)
0.205293 gp_port_free                (2): Freeing port...
0.205311 gp_port_close               (2): Closing port...
0.206952 gp_camera_set_abilities     (2): Setting abilities ('Sony Alpha-A6000 (Control)')...
0.207074 gp_setting_set              (2): Setting key 'model' to value 'Sony Alpha-A6000 (Control)' (gphoto2)
0.207101 save_settings               (2): Saving 2 setting(s) to file "/home/pi/.gphoto/settings"
0.207950 gp_port_info_list_lookup_path(2): Looking for path 'usb:001,111' (8 entries available)...
0.207983 gp_port_info_list_get_info  (2): Getting info of entry 3 (8 available)...
0.208004 gp_camera_set_port_info     (2): Setting port info for port 'Universal Serial Bus' at 'usb:001,111'...
0.220878 gp_port_set_timeout         (2): Setting port timeout to 5000 milliseconds.
0.220932 gp_port_set_settings        (2): Setting settings...
0.220954 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port usb:001,111, (new int=0, conf=-1, alt=-1) port usb:001,111
0.220973 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, no need for libusb changes
0.220999 gp_setting_set              (2): Setting key 'port' to value 'usb:001,111' (gphoto2)
0.221021 save_settings               (2): Saving 2 setting(s) to file "/home/pi/.gphoto/settings"
0.221764 gp_camera_init              (2): Initializing camera...
0.221883 gp_libusb1_find_device_lib  (2): Looking for USB device (vendor 0x54c, product 0x94e)... found.
0.222129 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.222168 gp_camera_init              (2): Loading '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ptp2'...
0.229087 gp_port_open                (2): Opening USB port...
0.229145 gp_libusb1_open             (2): ()
0.229794 gp_libusb1_open             (2): claiming interface 0
0.230272 camera_init                 (2): maxpacketsize 512
0.230344 gp_port_set_timeout         (2): Setting port timeout to 8000 milliseconds.
0.230390 ptp                         (2): PTP: Opening session
0.230549 ptp_usb_sendreq             (2): Sending PTP_OC 0x1002 (Open session) (0x1) request...
0.230568 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.231784 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.231845 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.231869 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.231884 ptp_usb_sendreq             (2): Clearing halt on OUT EP and retrying once.
0.231899 gp_port_usb_clear_halt      (2): Clear USB halt...
0.232106 gp_libusb1_clear_halt_lib [libusb1.c:582](0): 'libusb_clear_halt(port->pl->dh, internal_ep)' failed: Other error (-99)
0.232135 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.232383 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.232412 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.232444 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.232504 camera_init [library.c:8314](0): 'ptp_opensession (params, sessionid)' failed: PTP General Error (0x2002)
0.232522 ptp                         (2): PTP: Opening session
0.232553 ptp_usb_sendreq             (2): Sending PTP_OC 0x1002 (Open session) (0x1) request...
0.232568 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.232834 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.232867 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.232898 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.232912 ptp_usb_sendreq             (2): Clearing halt on OUT EP and retrying once.
0.232926 gp_port_usb_clear_halt      (2): Clear USB halt...
0.233122 gp_libusb1_clear_halt_lib [libusb1.c:582](0): 'libusb_clear_halt(port->pl->dh, internal_ep)' failed: Other error (-99)
0.233137 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.233400 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.233422 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.233451 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.233469 camera_init [library.c:8314](0): 'ptp_opensession (params, sessionid)' failed: PTP General Error (0x2002)
0.233492 ptp                         (2): PTP: Opening session
0.233515 ptp_usb_sendreq             (2): Sending PTP_OC 0x1002 (Open session) (0x1) request...
0.233529 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.233742 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.233773 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.233792 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.233806 ptp_usb_sendreq             (2): Clearing halt on OUT EP and retrying once.
0.233832 gp_port_usb_clear_halt      (2): Clear USB halt...
0.234121 gp_libusb1_clear_halt_lib [libusb1.c:582](0): 'libusb_clear_halt(port->pl->dh, internal_ep)' failed: Other error (-99)
0.234155 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.234435 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.234494 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.234514 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.234534 camera_init [library.c:8314](0): 'ptp_opensession (params, sessionid)' failed: PTP General Error (0x2002)
0.234551 camera_init [library.c:8342](0): 'ret' failed: 'PTP General Error' (0x2002)
0.234616 gp_context_error            (0): PTP General Error

*** Error ***              
PTP General Error
0.234706 gp_port_close               (2): Closing port...
0.235799 _close_async_interrupts     (2): canceling transfer 0:0xe0e3b0 (status 0)
0.236033 _close_async_interrupts     (2): canceling transfer 1:0xe11b58 (status 0)
0.236328 _close_async_interrupts     (2): canceling transfer 2:0xe16570 (status 0)
0.236433 _close_async_interrupts     (2): canceling transfer 3:0xe011b8 (status 0)
0.236724 _close_async_interrupts     (2): canceling transfer 4:0xe0f488 (status 0)
0.236827 _close_async_interrupts     (2): canceling transfer 5:0xe06ce8 (status 0)
0.237162 _close_async_interrupts     (2): canceling transfer 6:0xe131d0 (status 0)
0.237437 _close_async_interrupts     (2): canceling transfer 7:0xe068e8 (status 0)
0.237737 _close_async_interrupts     (2): canceling transfer 8:0xe0f350 (status 0)
0.238067 _close_async_interrupts     (2): canceling transfer 9:0xe00690 (status 0)
0.238509 _cb_irq                     (2): 0xe0e3b0 with status 3
0.238531 _cb_irq                     (2): Transfer 0xe0e3b0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238557 _cb_irq                     (2): 0xe11b58 with status 3
0.238572 _cb_irq                     (2): Transfer 0xe11b58 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238596 _cb_irq                     (2): 0xe16570 with status 3
0.238610 _cb_irq                     (2): Transfer 0xe16570 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238630 _cb_irq                     (2): 0xe011b8 with status 3
0.238645 _cb_irq                     (2): Transfer 0xe011b8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238665 _cb_irq                     (2): 0xe0f488 with status 3
0.238679 _cb_irq                     (2): Transfer 0xe0f488 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238701 _cb_irq                     (2): 0xe06ce8 with status 3
0.238715 _cb_irq                     (2): Transfer 0xe06ce8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238736 _cb_irq                     (2): 0xe131d0 with status 3
0.238750 _cb_irq                     (2): Transfer 0xe131d0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238770 _cb_irq                     (2): 0xe068e8 with status 3
0.238784 _cb_irq                     (2): Transfer 0xe068e8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238803 _cb_irq                     (2): 0xe0f350 with status 3
0.238817 _cb_irq                     (2): Transfer 0xe0f350 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.238839 _cb_irq                     (2): 0xe00690 with status 3
0.238853 _cb_irq                     (2): Transfer 0xe00690 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.239845 gp_context_error            (0): An error occurred in the io-library ('Unspecified error'): No error description available

*** Error ***              
An error occurred in the io-library ('Unspecified error'): No error description available
ERROR: Could not capture image.
ERROR: Could not capture.
0.239992 gp_camera_init              (2): Initializing camera...
0.240028 gp_libusb1_find_device_lib  (2): Looking for USB device (vendor 0x54c, product 0x94e)... found.
0.240285 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.240310 gp_camera_init              (2): Loading '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ptp2'...
0.245985 gp_port_open                (2): Opening USB port...
0.246037 gp_libusb1_open             (2): ()
0.246183 gp_libusb1_open             (2): claiming interface 0
0.246582 camera_init                 (2): maxpacketsize 512
0.246626 gp_port_set_timeout         (2): Setting port timeout to 8000 milliseconds.
0.246666 ptp                         (2): PTP: Opening session
0.246697 ptp_usb_sendreq             (2): Sending PTP_OC 0x1002 (Open session) (0x1) request...
0.246713 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.246961 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.246988 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.247020 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.247035 ptp_usb_sendreq             (2): Clearing halt on OUT EP and retrying once.
0.247051 gp_port_usb_clear_halt      (2): Clear USB halt...
0.247237 gp_libusb1_clear_halt_lib [libusb1.c:582](0): 'libusb_clear_halt(port->pl->dh, internal_ep)' failed: Other error (-99)
0.247253 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.247505 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.247537 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.247557 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.247610 camera_init [library.c:8314](0): 'ptp_opensession (params, sessionid)' failed: PTP General Error (0x2002)
0.247627 ptp                         (2): PTP: Opening session
0.247648 ptp_usb_sendreq             (2): Sending PTP_OC 0x1002 (Open session) (0x1) request...
0.247662 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.247868 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.247900 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.247919 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.247942 ptp_usb_sendreq             (2): Clearing halt on OUT EP and retrying once.
0.247956 gp_port_usb_clear_halt      (2): Clear USB halt...
0.248129 gp_libusb1_clear_halt_lib [libusb1.c:582](0): 'libusb_clear_halt(port->pl->dh, internal_ep)' failed: Other error (-99)
0.248144 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.248394 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.248425 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.248444 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.248461 camera_init [library.c:8314](0): 'ptp_opensession (params, sessionid)' failed: PTP General Error (0x2002)
0.248486 ptp                         (2): PTP: Opening session
0.248507 ptp_usb_sendreq             (2): Sending PTP_OC 0x1002 (Open session) (0x1) request...
0.248521 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.248730 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.248809 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.248829 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.248852 ptp_usb_sendreq             (2): Clearing halt on OUT EP and retrying once.
0.248866 gp_port_usb_clear_halt      (2): Clear USB halt...
0.249044 gp_libusb1_clear_halt_lib [libusb1.c:582](0): 'libusb_clear_halt(port->pl->dh, internal_ep)' failed: Other error (-99)
0.249061 gp_port_write               (3): Writing 16 = 0x10 bytes to port...
0.249318 gp_libusb1_write [libusb1.c:596](0): 'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Input/Output error (-1)
0.249356 gp_port_write [gphoto2-port.c:406](0): Writing 16 = 0x10 bytes to port failed: Error writing to the port (-35)
0.249374 ptp_usb_sendreq [usb.c:109] (0): PTP_OC 0x1002 sending req failed: Error writing to the port (-35)
0.249400 camera_init [library.c:8314](0): 'ptp_opensession (params, sessionid)' failed: PTP General Error (0x2002)
0.249416 camera_init [library.c:8342](0): 'ret' failed: 'PTP General Error' (0x2002)
0.249460 gp_context_error            (0): PTP General Error

*** Error ***              
PTP General Error
0.249523 gp_port_close               (2): Closing port...
0.250644 _close_async_interrupts     (2): canceling transfer 0:0xe0e3b0 (status 0)
0.250981 _close_async_interrupts     (2): canceling transfer 1:0xe068e8 (status 0)
0.251268 _close_async_interrupts     (2): canceling transfer 2:0xe0f350 (status 0)
0.251531 _close_async_interrupts     (2): canceling transfer 3:0xe00690 (status 0)
0.251807 _close_async_interrupts     (2): canceling transfer 4:0xe06ce8 (status 0)
0.252090 _close_async_interrupts     (2): canceling transfer 5:0xe131d0 (status 0)
0.252372 _close_async_interrupts     (2): canceling transfer 6:0xe00fb0 (status 0)
0.252472 _close_async_interrupts     (2): canceling transfer 7:0xe14a38 (status 0)
0.252737 _close_async_interrupts     (2): canceling transfer 8:0xe14930 (status 0)
0.252832 _close_async_interrupts     (2): canceling transfer 9:0xe125b8 (status 0)
0.253135 _cb_irq                     (2): 0xe0e3b0 with status 3
0.253160 _cb_irq                     (2): Transfer 0xe0e3b0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253184 _cb_irq                     (2): 0xe068e8 with status 3
0.253198 _cb_irq                     (2): Transfer 0xe068e8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253218 _cb_irq                     (2): 0xe0f350 with status 3
0.253233 _cb_irq                     (2): Transfer 0xe0f350 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253253 _cb_irq                     (2): 0xe00690 with status 3
0.253267 _cb_irq                     (2): Transfer 0xe00690 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253286 _cb_irq                     (2): 0xe06ce8 with status 3
0.253300 _cb_irq                     (2): Transfer 0xe06ce8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253319 _cb_irq                     (2): 0xe131d0 with status 3
0.253334 _cb_irq                     (2): Transfer 0xe131d0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253352 _cb_irq                     (2): 0xe00fb0 with status 3
0.253366 _cb_irq                     (2): Transfer 0xe00fb0 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253385 _cb_irq                     (2): 0xe14a38 with status 3
0.253399 _cb_irq                     (2): Transfer 0xe14a38 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253418 _cb_irq                     (2): 0xe14930 with status 3
0.253432 _cb_irq                     (2): Transfer 0xe14930 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.253452 _cb_irq                     (2): 0xe125b8 with status 3
0.253466 _cb_irq                     (2): Transfer 0xe125b8 should be in LIBUSB_TRANSFER_COMPLETED, but is 3!
0.254297 gp_context_error            (0): An error occurred in the io-library ('Unspecified error'): No error description available

*** Error ***              
An error occurred in the io-library ('Unspecified error'): No error description available
0.255601 gp_camera_free              (2): Freeing camera...
0.255642 gp_port_free                (2): Freeing port...
0.255656 gp_port_close               (2): Closing port...
0.256204 gp_filesystem_reset         (2): resetting filesystem
0.256236 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.256249 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.256265 delete_all_folders          (2): Internally deleting all folders from '/'...
0.256280 lookup_folder               (2): Lookup folder '/'...
0.256295 lookup_folder               (2): Found! / is 0xdf8d68
0.256309 recurse_delete_folder       (2): Recurse delete folder 0xdf8d68//

aditya-c2512 avatar Nov 01 '21 14:11 aditya-c2512

The device might be blocked by something else.

fwiw, also upgrade libgphoto2 to 2.5.27 (2.5.22 is a bit old).

msmeissn avatar Nov 01 '21 15:11 msmeissn

Can you give an example as to what could be blocking the camera?

Also, I tried upgrading from 2.5.22 to 2.5.27 but it still shows 2.5.22 for some reason.

aditya-c2512 avatar Nov 01 '21 19:11 aditya-c2512

@msmeissn updated libgphoto2 to 2.5.27.1. On the camera, it shows "Connecting..." even though it gets detected on gphoto2 --auto-detect.

aditya-c2512 avatar Nov 02 '21 08:11 aditya-c2512