gphoto / libgphoto2

The libgphoto2 camera access and control library.
GNU Lesser General Public License v2.1
991 stars 317 forks source link

Canon EOS R100 #924

Open thomaschaaf opened 10 months ago

thomaschaaf commented 10 months ago

Fill in fields below. If you don't know how, leave it free.

*Name of the camera

Canon EOS R100

USB IDs Bus 001 Device 012: ID 04a9:3312 Canon, Inc. Canon Digital Camera

lsusb -v:

Bus 001 Device 013: ID 04a9:3312 Canon, Inc. Canon Digital Camera
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x04a9 Canon, Inc.
  idProduct          0x3312
  bcdDevice            0.02
  iManufacturer           1 Canon Inc.
  iProduct                2 Canon Digital Camera
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0027
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           3
      bInterfaceClass         6 Imaging
      bInterfaceSubClass      1 Still Image Capture
      bInterfaceProtocol      1 Picture Transfer Protocol (PIMA 15470)
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x83  EP 3 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval              10
Device Qualifier (for other device speed):
  bLength                10
  bDescriptorType         6
  bcdUSB               2.10
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  bNumConfigurations      1
can't get debug descriptor: Resource temporarily unavailable
Device Status:     0x0001
  Self Powered

errors:

env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --summary

*** Error ***
An error occurred in the io-library ('I/O problem'): The supplied vendor or product id (0x0,0x0) is not valid.
*** Error (-7: 'I/O problem') ***

root@prismabox-v2-86:/opt/mediauploader# cat my-logfile.txt
0.000010 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000041 main                        (2): gphoto2 2.5.28
0.000046 main                        (2): gphoto2 has been compiled with the following options:
0.000050 main                        (2):  + gcc (C compiler used)
0.000054 main                        (2):  + popt (mandatory, for handling command-line parameters)
0.000058 main                        (2):  + exif (for displaying EXIF information)
0.000061 main                        (2):  + no cdk (for accessing configuration options)
0.000065 main                        (2):  + no aa (for displaying live previews)
0.000068 main                        (2):  + jpeg (for displaying live previews in JPEG format)
0.000072 main                        (2):  + readline (for easy navigation in the shell)
0.000079 main                        (2): libgphoto2 2.5.31
0.000083 main                        (2): libgphoto2 has been compiled with the following options:
0.000087 main                        (2):  + standard camlib set SKIPPING SOME (ax203 canon digigr8 dimagev directory jl2005a jl2005c kodak_dc240 lumix mars pentax ptp2 ricoh_g3 sierra sonix sq905 st2205 topfield tp6801 SKIPPING docupen)
0.000091 main                        (2):  + gcc (C compiler used)
0.000095 main                        (2):  + no ltdl (for portable loading of camlibs)
0.000098 main                        (2):  + EXIF (for special handling of EXIF files)
0.000105 main                        (2): libgphoto2_port 0.12.2
0.000109 main                        (2): libgphoto2_port has been compiled with the following options:
0.000112 main                        (2):  + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi
0.000116 main                        (2):  + gcc (C compiler used)
0.000119 main                        (2):  + no ltdl (for portable loading of iolibs)
0.000123 main                        (2):  + EXIF (for vusb)
0.000127 main                        (2):  + USB (libusb1, for USB cameras)
0.000130 main                        (2):  + serial (for serial cameras)
0.000134 main                        (2):  + no resmgr (serial port access and locking)
0.000137 main                        (2):  + no ttylock (serial port locking)
0.000141 main                        (2):  + no lockdev (serial port locking)
0.000145 main                        (2): CAMLIBS env var not set, using compile-time default instead
0.000148 main                        (2): IOLIBS env var not set, using compile-time default instead
0.000152 main                        (2): invoked with following arguments:
0.000156 main                        (2):   --debug
0.000159 main                        (2):   --debug-logfile=my-logfile.txt
0.000163 main                        (2):   --summary
0.000185 load_settings               (2): Creating gphoto config directory ('/root/.gphoto')
0.000227 load_settings               (2): Loading settings from file '/root/.gphoto/settings'.
0.000339 main                        (2): The user has not specified both a model and a port. Try to figure them out.
0.000346 gp_port_init_localedir      (2): localedir has been set to /usr/local/share/locale (compile-time default)
0.000352 gp_port_info_list_load      (2): Using ltdl to load io-drivers from '/usr/local/lib/libgphoto2_port/0.12.2'...
0.000416 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/disk'.
0.000637 gp_port_library_list        (2): found mtab fstype overlay
0.000652 gp_port_library_list        (2): found mtab fstype proc
0.000657 gp_port_library_list        (2): found mtab fstype sysfs
0.000661 gp_port_library_list        (2): found mtab fstype cgroup2
0.000665 gp_port_library_list        (2): found mtab fstype devtmpfs
0.000677 gp_port_library_list        (2): found mtab fstype devpts
0.000682 gp_port_library_list        (2): found mtab fstype tmpfs
0.000693 gp_port_library_list        (2): found mtab fstype hugetlbfs
0.000704 gp_port_library_list        (2): found mtab fstype mqueue
0.000714 gp_port_library_list        (2): found mtab fstype ext4
0.000723 gp_port_library_list        (2): found mtab fstype ext4
0.000732 gp_port_library_list        (2): found mtab fstype ext4
0.000741 gp_port_library_list        (2): found mtab fstype devpts
0.000745 gp_port_library_list        (2): found mtab fstype proc
0.000749 gp_port_library_list        (2): found mtab fstype proc
0.000753 gp_port_library_list        (2): found mtab fstype proc
0.000769 gp_port_library_list        (2): found mtab fstype proc
0.000773 gp_port_library_list        (2): found mtab fstype proc
0.000777 gp_port_library_list        (2): found mtab fstype tmpfs
0.000789 gp_port_library_list        (2): found mtab fstype tmpfs
0.000800 gp_port_library_list        (2): found mtab fstype devtmpfs
0.000809 gp_port_library_list        (2): found mtab fstype devtmpfs
0.000818 gp_port_library_list        (2): found mtab fstype devtmpfs
0.000827 gp_port_library_list        (2): found mtab fstype devtmpfs
0.000836 gp_port_library_list        (2): found mtab fstype tmpfs
0.000874 foreach_func                (2): Loaded '' ('^disk:') from '/usr/local/lib/libgphoto2_port/0.12.2/disk'.
0.000879 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.000989 foreach_func                (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.000996 foreach_func                (2): Loaded '' ('^ptpip:') from '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.001000 foreach_func                (2): Loaded 'IP Connection' ('ip:') from '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.001004 foreach_func                (2): Loaded '' ('^ip:') from '/usr/local/lib/libgphoto2_port/0.12.2/ptpip'.
0.001008 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.001209 foreach_func                (2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.001216 foreach_func                (2): Loaded 'Serial Port 1' ('serial:/dev/ttyS1') from '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.001220 foreach_func                (2): Loaded 'Serial Port 2' ('serial:/dev/ttyS2') from '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.001224 foreach_func                (2): Loaded 'Serial Port 3' ('serial:/dev/ttyS3') from '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.001228 foreach_func                (2): Loaded 'Serial Port Device' ('serial:') from '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.001232 foreach_func                (2): Loaded '' ('^serial:') from '/usr/local/lib/libgphoto2_port/0.12.2/serial'.
0.001236 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/usb1'.
0.005624 foreach_func                (2): Loaded '' ('^usb:') from '/usr/local/lib/libgphoto2_port/0.12.2/usb1'.
0.005636 foreach_func                (2): Loaded 'Universal Serial Bus' ('usb:001,008') from '/usr/local/lib/libgphoto2_port/0.12.2/usb1'.
0.005641 foreach_func                (2): Loaded 'Universal Serial Bus' ('usb:001,012') from '/usr/local/lib/libgphoto2_port/0.12.2/usb1'.
0.005645 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/usbdiskdirect'.
0.005829 foreach_func                (2): Called for filename '/usr/local/lib/libgphoto2_port/0.12.2/usbscsi'.
0.006008 gp_port_info_list_count     (2): Counting entries (14 available)...
0.006015 gp_port_info_list_count     (2): 9 regular entries available.
0.006022 gp_port_init_localedir      (2): ignoring late call (localedir value NULL)
0.006028 gp_init_localedir           (2): localedir has been set to /usr/local/share/locale (compile-time default)
0.006038 unlocked_gp_abilities_list_load_dir(2): Using ltdl to load camera libraries from '/usr/local/lib/libgphoto2/2.5.31'...
0.006117 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/ax203'.
0.006125 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/canon'.
0.006129 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/digigr8'.
0.006137 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/dimagev'.
0.006141 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/directory'.
0.006144 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/jl2005a'.
0.006148 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/jl2005c'.
0.006152 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/kodak_dc240'.
0.006155 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/lumix'.
0.006159 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/mars'.
0.006163 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/pentax'.
0.006167 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/ptp2'.
0.006170 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/ricoh_g3'.
0.006174 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/sierra'.
0.006178 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/sonix'.
0.006182 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/sq905'.
0.006185 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/st2205'.
0.006189 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/topfield'.
0.006193 foreach_func                (2): Found '/usr/local/lib/libgphoto2/2.5.31/tp6801'.
0.006199 unlocked_gp_abilities_list_load_dir(2): Found 19 camera drivers.
0.027809 gp_port_info_list_count     (2): Counting entries (14 available)...
0.027828 gp_port_info_list_count     (2): 9 regular entries available.
0.027833 gp_port_new                 (2): Creating new device...
0.027839 gp_port_info_list_get_info  (2): Getting info of entry 0 (14 available)...
0.027963 gp_port_set_settings        (2): Setting settings...
0.027971 gp_port_info_list_get_info  (2): Getting info of entry 1 (14 available)...
0.028069 gp_port_set_settings        (2): Setting settings...
0.028076 gp_port_info_list_get_info  (2): Getting info of entry 2 (14 available)...
0.028172 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.028178 gp_port_set_settings        (2): Setting settings...
0.028182 gp_port_info_list_get_info  (2): Getting info of entry 3 (14 available)...
0.028272 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.028278 gp_port_set_settings        (2): Setting settings...
0.028282 gp_port_info_list_get_info  (2): Getting info of entry 4 (14 available)...
0.028369 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.028375 gp_port_set_settings        (2): Setting settings...
0.028379 gp_port_info_list_get_info  (2): Getting info of entry 5 (14 available)...
0.028465 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.028471 gp_port_set_settings        (2): Setting settings...
0.028475 gp_port_info_list_get_info  (2): Getting info of entry 6 (14 available)...
0.028572 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.028578 gp_port_set_settings        (2): Setting settings...
0.028582 gp_port_info_list_get_info  (2): Getting info of entry 7 (14 available)...
0.032386 gp_port_set_timeout         (2): Setting port timeout to 5000 milliseconds.
0.032395 gp_port_set_settings        (2): Setting settings...
0.032405 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port usb:001,008, (new int=0, conf=-1, alt=-1) port usb:001,008
0.032409 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, no need for libusb changes
0.032413 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.032780 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.033061 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.033085 gp_port_info_list_get_info  (2): Getting info of entry 8 (14 available)...
0.036828 gp_port_set_timeout         (2): Setting port timeout to 5000 milliseconds.
0.036837 gp_port_set_settings        (2): Setting settings...
0.036845 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port usb:001,012, (new int=0, conf=-1, alt=-1) port usb:001,012
0.036849 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, no need for libusb changes
0.036853 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.037184 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.037426 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.037434 gp_libusb1_find_device_by_class_lib(2): Found USB class device (class 0x6, subclass, 0x1, protocol 0x1)
0.037440 gp_libusb1_find_device_by_class_lib(2): inep to look for is 81
0.037445 gp_libusb1_find_device_by_class_lib(2): Detected defaults: config 1, interface 0, altsetting 0, idVendor ID 04a9, idProduct 3312, inep 81, outep 02, intep 83
0.037449 gp_abilities_list_detect_usb(2): Found 'USB PTP Class Camera' (0x6,0x1,0x1)
0.037458 gp_port_free                (2): Freeing port...
0.037462 gp_port_close               (2): Closing port...
0.037638 gp_camera_set_abilities     (2): Setting abilities ('USB PTP Class Camera')...
0.037648 gp_setting_set              (2): Setting key 'model' to value 'USB PTP Class Camera' (gphoto2)
0.037652 save_settings               (2): Saving 2 setting(s) to file "/root/.gphoto/settings"
0.037836 gp_port_info_list_lookup_path(2): Looking for path 'usb:001,012' (14 entries available)...
0.037844 gp_port_info_list_get_info  (2): Getting info of entry 8 (14 available)...
0.037849 gp_camera_set_port_info     (2): Setting port info for port 'Universal Serial Bus' at 'usb:001,012'...
0.041364 gp_port_set_timeout         (2): Setting port timeout to 5000 milliseconds.
0.041372 gp_port_set_settings        (2): Setting settings...
0.041381 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port usb:001,012, (new int=0, conf=-1, alt=-1) port usb:001,012
0.041384 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, no need for libusb changes
0.041389 gp_setting_set              (2): Setting key 'port' to value 'usb:001,012' (gphoto2)
0.041394 save_settings               (2): Saving 2 setting(s) to file "/root/.gphoto/settings"
0.041616 gp_camera_init              (2): Initializing camera...
0.041633 gp_port_set_error [gphoto2-port.c:1190](0): The supplied vendor or product id (0x0,0x0) is not valid.
0.041647 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.041654 gp_libusb1_find_device_by_class_lib(2): Found USB class device (class 0x6, subclass, 0x1, protocol 0x1)
0.041660 gp_libusb1_find_device_by_class_lib(2): inep to look for is 81
0.041665 gp_libusb1_find_device_by_class_lib(2): Detected defaults: config 1, interface 0, altsetting 0, idVendor ID 04a9, idProduct 3312, inep 81, outep 02, intep 83
0.041674 gp_camera_init              (2): Loading '/usr/local/lib/libgphoto2/2.5.31/ptp2'...
0.043015 gp_port_open                (2): Opening USB port...
0.043023 gp_libusb1_open             (2): ()
0.043038 gp_libusb1_open [libusb1.c:383](0): 'libusb_open (port->pl->d, &port->pl->dh)' failed: Input/Output error (-1)
0.043186 gp_context_error            (0): An error occurred in the io-library ('I/O problem'): The supplied vendor or product id (0x0,0x0) is not valid.
0.043649 gp_camera_free              (2): Freeing camera...
0.043655 gp_port_free                (2): Freeing port...
0.043659 gp_port_close               (2): Closing port...
0.043842 gp_filesystem_reset         (2): resetting filesystem
0.043851 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.043855 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.043859 delete_all_folders          (2): Internally deleting all folders from '/'...
0.043862 lookup_folder               (2): Lookup folder '/'...
0.043871 lookup_folder               (2): Found! / is 0x562a5ba1e690
0.043875 recurse_delete_folder       (2): Recurse delete folder 0x562a5ba1e690//
0.043878 delete_all_files            (2): Delete all files in folder 0x562a5ba1e690//

camera summary output run

gphoto2 --summary > summary.txt

attach summary.txt here

camera configuration output

gphoto2 --list-all-config > list-all-config.txt

and attach list-all-config.txt here

test capture

test if capture perhaps already works:

gphoto2 --capture-image-and-download

gphoto2 --capture-preview

msmeissn commented 10 months ago

I just added the ID to git, but usually

gphoto2 --auto-detect

and the normal code should detect it based on the PTP class already, its weird that it does not.

jensanjo commented 2 weeks ago

@thomaschaaf did you try the R100 with the latest development release 2.5.31.1? I am interested in using the R100.