From: SourceForge.net <no...@so...> - 2004-10-02 21:53:38
|
Feature Requests item #994345, was opened at 2004-07-20 07:57 Message generated for change (Comment added) made by marcusmeissner You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=358874&aid=994345&group_id=8874 Category: camera support Group: None >Status: Open >Resolution: None Priority: 5 Submitted By: Magnus N (smile888) Assigned to: Mariusz Woloszyn (kil3r) Summary: Support for Ricoh Caplio GX Initial Comment: Hi, can you please add support for Ricoh Caplio GX (it will probably work in PTP mode). lsusb: Bus 002 Device 001: ID 0000:0000 Bus 001 Device 017: ID 05ca:0325 Ricoh Co., Ltd Bus 001 Device 001: ID 0000:0000 lsusb -v: Bus 001 Device 017: ID 05ca:0325 Ricoh Co., Ltd Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 Interface bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x05ca Ricoh Co., Ltd idProduct 0x0325 bcdDevice 0.00 iManufacturer 1 Ricoh Company Ltd. iProduct 2 Caplio GX DPS iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 39 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 wMaxPacketSize 64 bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type none wMaxPacketSize 64 bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x83 EP 3 IN bmAttributes 3 Transfer Type Interrupt Synch Type none wMaxPacketSize 8 bInterval 20 Language IDs: (length=4) 0409 English(US) cat /proc/bus/usb/devices T: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.7 uhci_hcd S: Product=Intel Corp. 82801BA/BAM USB (Hub #2) S: SerialNumber=0000:00:1f.4 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 D: Ver= 1.10 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=0000 ProdID=0000 Rev= 2.06 S: Manufacturer=Linux 2.6.7 uhci_hcd S: Product=Intel Corp. 82801BA/BAM USB (Hub #1) S: SerialNumber=0000:00:1f.2 C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub E: Ad=81(I) Atr=03(Int.) MxPS= 2 Ivl=255ms T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 17 Spd=12 MxCh= 0 D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 P: Vendor=05ca ProdID=0325 Rev= 0.00 S: Manufacturer=Ricoh Company Ltd. S: Product=Caplio GX DPS C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 0mA I: If#= 0 Alt= 0 #EPs= 3 Cls=06(still) Sub=01 Prot=01 Driver=(none) E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms E: Ad=83(I) Atr=03(Int.) MxPS= 8 Ivl=20ms I have tested it through 'gtkam' and it seems to work through PTP mode when looking at thumbnails. One thing, when I tried to save a picture I got following: libgphoto2/gphoto2-filesys.c: Adding file 'RIMG0001.JPG' to folder '/store_00020001/DCIM/100RICOH' (type 1)... libgphoto2/gphoto2-filesys.c: Adding file 'RIMG0001.JPG' from folder '/store_00020001/DCIM/100RICOH' to the fscache LRU list (type 1)... libgphoto2/gphoto2-filesys.c: File 'RIMG0001.JPG' from folder '/store_00020001/DCIM/100RICOH' added in fscache LRU list. libgphoto2/gphoto2-filesys.c: Checking fscache LRU list integrity... libgphoto2/gphoto2-filesys.c: fscache LRU list ok with 1 items (624350 bytes) libgphoto2/gphoto2-filesys.c: File does not contain mtime. Trying information on the file... libgphoto2/gphoto2-filesys.c: Getting information about 'RIMG0001.JPG' in '/store_00020001/DCIM/100RICOH'... libgphoto2/gphoto2-filesys.c: Searching data for mtime... libgphoto2/gphoto2-filesys.c: Found time in EXIF data: 'Tue Jul 20 08:42:29 2004 It may be related to not having the IDs defined? Thanks! ---------------------------------------------------------------------- >Comment By: Marcus Meissner (marcusmeissner) Date: 2004-10-02 21:53 Message: Logged In: YES user_id=48092 can you try adding the id to camlibs/ricoh/g3.c and remove them from camlibs/ptp2/library.c ... ? That the files are listed shows that it is at least partially working however with the ptp2 driver. ---------------------------------------------------------------------- Comment By: Magnus N (smile888) Date: 2004-10-02 21:44 Message: Logged In: YES user_id=1087342 I finally managed to understand CVS and download the latest libgphoto2 (2 October 2004). I used LD_LIBRARY_PATH to my locally installed libgphoto2 and tried following: $ gphoto2 --auto-detect Model Port ---------------------------------------------------------- Ricoh Caplio GX (PTP mode) usb: $ gphoto2 --list-ports Devices found: 9 Path Description -------------------------------------------------------------- serial:/dev/tts/0 Serial Port 0 serial:/dev/tts/1 Serial Port 1 serial:/dev/tts/2 Serial Port 2 serial:/dev/tts/3 Serial Port 3 serial:/dev/tts/4 Serial Port 4 serial:/dev/tts/5 Serial Port 5 serial:/dev/tts/6 Serial Port 6 serial:/dev/tts/7 Serial Port 7 usb: Universal Serial Bus $ gphoto2 --port usb: --camera "Ricoh Caplio GX (PTP mode)" -L There are no files in folder '/'. There are no files in folder '/store_00020001'. There are no files in folder '/store_00020001/DCIM'. There are 2 files in folder '/store_00020001/DCIM/100RICOH': #1 RIMG0001.JPG 644 KB 0x0 image/jpeg #2 RIMG0002.JPG 280 KB 0x0 image/jpeg $ gphoto2 --port usb: --camera "Ricoh Caplio GX (PTP mode)" -L gp_port_read: Connection timed out Cancelling... Aborting... Aborted. $ gphoto2 --port usb: --camera "Ricoh Caplio GX (PTP mode)" -L Cancelling... gp_port_read: Connection timed out Aborting... Aborted. -- ...well, the first time I can list the files stored in the camera memory, the second time I have to interrupt with ctrl-c. So there still seems to be a problem. ---------------------------------------------------------------------- Comment By: Hubert Figuiere (hfiguiere) Date: 2004-09-04 03:44 Message: Logged In: YES user_id=27487 does it work now ? ---------------------------------------------------------------------- Comment By: Mariusz Woloszyn (kil3r) Date: 2004-08-05 07:29 Message: Logged In: YES user_id=173521 The fix for clear halt is in current cvs. ---------------------------------------------------------------------- Comment By: Magnus N (smile888) Date: 2004-08-04 16:49 Message: Logged In: YES user_id=1087342 The first time I list the files on the camera, it works. The second time gphoto2 crashes on me (please see included lines below) for: * libgphoto2-2.1.4 * gphoto2-2.1.4 $ gphoto2 --port usb --camera "USB PTP Class Camera" -L There are no files in folder '/'. There are no files in folder '/store_00020001'. There are no files in folder '/store_00020001/DCIM'. There are 25 files in folder '/store_00020001/DCIM/100RICOH': #1 RIMG0001.JPG 675 KB 0x0 image/jpeg #2 RIMG0002.JPG 735 KB 0x0 image/jpeg #3 RIMG0003.JPG 699 KB 0x0 image/jpeg #4 RIMG0004.JPG 693 KB 0x0 image/jpeg #5 RIMG0005.JPG 693 KB 0x0 image/jpeg #6 RIMG0006.JPG 650 KB 0x0 image/jpeg #7 RIMG0007.JPG 673 KB 0x0 image/jpeg #8 RIMG0008.JPG 676 KB 0x0 image/jpeg #9 RIMG0009.JPG 711 KB 0x0 image/jpeg #10 RIMG0010.JPG 705 KB 0x0 image/jpeg #11 RIMG0011.JPG 692 KB 0x0 image/jpeg #12 RIMG0012.JPG 699 KB 0x0 image/jpeg #13 RIMG0013.JPG 679 KB 0x0 image/jpeg #14 RIMG0014.JPG 663 KB 0x0 image/jpeg #15 RIMG0015.JPG 644 KB 0x0 image/jpeg #16 RIMG0016.JPG 643 KB 0x0 image/jpeg #17 RIMG0017.JPG 676 KB 0x0 image/jpeg #18 RIMG0018.JPG 702 KB 0x0 image/jpeg #19 RIMG0019.JPG 675 KB 0x0 image/jpeg #20 RIMG0020.JPG 688 KB 0x0 image/jpeg #21 RIMG0021.JPG 680 KB 0x0 image/jpeg #22 RIMG0022.JPG 699 KB 0x0 image/jpeg #23 RIMG0023.JPG 687 KB 0x0 image/jpeg #24 RIMG0024.JPG 687 KB 0x0 image/jpeg #25 RIMG0025.JPG 676 KB 0x0 image/jpeg $ gphoto2 --port usb --camera "USB PTP Class Camera" -L gp_port_read: Connection timed out *** Error *** PTP I/O error *** Error *** An error occurred in the io-library ('Unspecified error'): The supplied vendor or product id (0x0,0x0) is not valid. *** Error (-1: 'Unspecified error') *** For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list <gph...@li...>, please run gphoto2 as follows: env LANG=C gphoto2 --debug --port "usb" --camera "USB PTP Class Camera" -L Please make sure there is sufficient quoting around the arguments. $ env LANG=C gphoto2 --debug --port "usb" --camera "USB PTP Class Camera" -L 0.000049 main(2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.000255 main(2): gphoto2 2.1.4 0.000346 main(2): gphoto2 has been compiled with the following options: 0.000413 main(2): + gcc (C compiler used) 0.000482 main(2): + popt (for handling command-line parameters) 0.000549 main(2): + exif (for displaying EXIF information) 0.000616 main(2): + cdk (for accessing configuration options) 0.000684 main(2): + no aa (for displaying live previews) 0.000750 main(2): + no jpeg (for displaying live previews in JPEG format) 0.000817 main(2): + readline (for easy navigation in the shell) 0.000896 main(2): libgphoto2 2.1.4 0.000963 main(2): libgphoto2 has been compiled with the following options: 0.001030 main(2): + gcc (C compiler used) 0.001096 main(2): + EXIF (for special handling of EXIF files) 0.001163 main(2): + no ltdl (working around buggy libltdl, eh? :-) 0.001230 main(2): + /proc/meminfo (adapts cache size to memory available) 0.001322 main(2): libgphoto2_port 0.5.1 0.001389 main(2): libgphoto2_port has been compiled with the following options: 0.001456 main(2): + gcc (C compiler used) 0.001523 main(2): + USB (for USB cameras) 0.001590 main(2): + serial (for serial cameras) 0.001656 main(2): + no resmgr (serial port access and locking) 0.001723 main(2): + no baudboy (serial port locking) 0.001790 main(2): + no ttylock (serial port locking) 0.001857 main(2): + no lockdev (serial port locking) 0.001923 main(2): + no ltdl (working around buggy libltdl, eh? :-) 0.002031 main(2): Processing 'port' option ('usb')... 0.002120 main(2): Ports must look like 'serial:/dev/ttyS0' or 'usb:', but 'usb' is missing a colon so I am going to guess what you mean. 0.002206 main(2): Guessed port name. Using port 'usb:' from now on. 0.002319 gp-port-info-list(2): Loading io-drivers from '/usr/lib/gphoto2_port/0.5.1'... 0.002725 gphoto2-port-serial(2): Trying to lock '/dev/tts/0'... 0.003040 gphoto2-port-serial(2): Trying to lock '/dev/tts/1'... 0.003248 gphoto2-port-serial(2): Trying to lock '/dev/tts/2'... 0.005261 gphoto2-port-serial(2): Trying to lock '/dev/tts/3'... 0.005394 gphoto2-port-serial(2): Trying to lock '/dev/tts/4'... 0.005500 gphoto2-port-serial(2): Trying to lock '/dev/tts/5'... 0.005599 gphoto2-port-serial(2): Trying to lock '/dev/tts/6'... 0.005697 gphoto2-port-serial(2): Trying to lock '/dev/tts/7'... 0.005795 gphoto2-port-serial(2): Trying to lock '/dev/tts/8'... 0.005884 gphoto2-port-serial(2): Trying to lock '/dev/tts/9'... 0.005957 gphoto2-port-serial(2): Trying to lock '/dev/tts/10'... 0.006029 gphoto2-port-serial(2): Trying to lock '/dev/tts/11'... 0.006102 gphoto2-port-serial(2): Trying to lock '/dev/tts/12'... 0.006174 gphoto2-port-serial(2): Trying to lock '/dev/tts/13'... 0.006246 gphoto2-port-serial(2): Trying to lock '/dev/tts/14'... 0.006335 gphoto2-port-serial(2): Trying to lock '/dev/tts/15'... 0.006407 gphoto2-port-serial(2): Trying to lock '/dev/tts/16'... 0.006481 gphoto2-port-serial(2): Trying to lock '/dev/tts/17'... 0.006554 gphoto2-port-serial(2): Trying to lock '/dev/tts/18'... 0.006626 gphoto2-port-serial(2): Trying to lock '/dev/tts/19'... 0.006698 gphoto2-port-serial(2): Trying to lock '/dev/tts/20'... 0.006794 gphoto2-port-serial(2): Trying to lock '/dev/tts/21'... 0.009306 gphoto2-port-serial(2): Trying to lock '/dev/tts/22'... 0.009421 gphoto2-port-serial(2): Trying to lock '/dev/tts/23'... 0.009504 gphoto2-port-serial(2): Trying to lock '/dev/tts/24'... 0.009584 gphoto2-port-serial(2): Trying to lock '/dev/tts/25'... 0.009664 gphoto2-port-serial(2): Trying to lock '/dev/tts/26'... 0.009742 gphoto2-port-serial(2): Trying to lock '/dev/tts/27'... 0.009821 gphoto2-port-serial(2): Trying to lock '/dev/tts/28'... 0.009900 gphoto2-port-serial(2): Trying to lock '/dev/tts/29'... 0.009980 gphoto2-port-serial(2): Trying to lock '/dev/tts/30'... 0.010059 gphoto2-port-serial(2): Trying to lock '/dev/tts/31'... 0.010138 gphoto2-port-serial(2): Trying to lock '/dev/tts/32'... 0.010260 gphoto2-port-core(2): Loaded 'Serial Port 0' (serial:/dev/tts/0) from 'libgphoto2_port_serial.so' 0.010377 gphoto2-port-core(2): Loaded 'Serial Port 1' (serial:/dev/tts/1) from 'libgphoto2_port_serial.so' 0.010456 gphoto2-port-core(2): Loaded 'Serial Port 2' (serial:/dev/tts/2) from 'libgphoto2_port_serial.so' 0.010533 gphoto2-port-core(2): Loaded 'Serial Port 3' (serial:/dev/tts/3) from 'libgphoto2_port_serial.so' 0.010609 gphoto2-port-core(2): Loaded 'Serial Port 4' (serial:/dev/tts/4) from 'libgphoto2_port_serial.so' 0.010685 gphoto2-port-core(2): Loaded 'Serial Port 5' (serial:/dev/tts/5) from 'libgphoto2_port_serial.so' 0.010761 gphoto2-port-core(2): Loaded 'Serial Port 6' (serial:/dev/tts/6) from 'libgphoto2_port_serial.so' 0.010837 gphoto2-port-core(2): Loaded 'Serial Port 7' (serial:/dev/tts/7) from 'libgphoto2_port_serial.so' 0.010913 gphoto2-port-core(2): Loaded '' (^serial) from 'libgphoto2_port_serial.so' 0.011529 gphoto2-port-core(2): Loaded 'Universal Serial Bus' (usb:) from 'libgphoto2_port_usb.so' 0.011832 gphoto2-port-info-list(2): Looking for path 'usb:' (10 entries available)... 0.011952 gphoto2-port-info-list(2): Getting info of entry 8 (10 available)... 0.012062 gphoto2-camera(2): Setting port info for port 'Universal Serial Bus' at 'usb:'... 0.013136 gphoto2-port(2): Setting timeout to 5000 millisecond(s)... 0.016028 gphoto2-port(2): Setting settings... 0.016191 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto 0.016546 setting/gphoto2-setting.c(2): Loading settings from file "/home/magnus/.gphoto/settings" 0.016770 gphoto2-setting(2): Setting key 'port' to value 'usb:' (gphoto2) 0.016872 gphoto2-setting(2): Saving 12 setting(s) to file "/home/magnus/.gphoto/settings" 0.017222 main(2): Processing 'model' option ('USB PTP Class Camera')... 0.017480 gphoto2-camera(2): Setting abilities ('USB PTP Class Camera')... 0.017574 gphoto2-setting(2): Setting key 'model' to value 'USB PTP Class Camera' (gphoto2) 0.017660 gphoto2-setting(2): Saving 12 setting(s) to file "/home/magnus/.gphoto/settings" 0.018368 foreach(2): Executing action 'List Files' for folder '/'. 0.019388 gphoto2-camera(2): Listing files in '/'... 0.019520 gphoto2-camera(2): Initializing camera... 0.019687 gphoto2-port(0): The supplied vendor or product id (0x0,0x0) is not valid. 0.019796 gphoto2-port-usb(1): Looking for USB device (class 0x6, subclass, 0xffffffff, protocol 0xffffffff)... found. 0.019879 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83 0.019958 gphoto2-camera(2): Loading '/usr/lib/gphoto2/2.1.4/libgphoto2_ptp2.so'... 0.020330 gphoto2-port(2): Opening USB port... 0.020571 gphoto2-port(2): Setting timeout to 8000 millisecond(s)... 0.020692 ptp(2): PTP: Opening session 0.020783 gphoto2-port(2): Writing 16=0x10 byte(s) to port... 0.020866 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows: 0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................ 0.022995 gphoto2-port(2): Reading 512=0x200 bytes from port... gp_port_read: Connection timed out 8.022979 PTP2/library.c(2): PTP: gp_port_* function returned 0xffffffde -34 8.023281 context(0): PTP I/O error *** Error *** PTP I/O error 8.023508 gphoto2-port(2): Closing port... 8.024829 context(0): An error occurred in the io-library ('Unspecified error'): The supplied vendor or product id (0x0,0x0) is not valid. *** Error *** An error occurred in the io-library ('Unspecified error'): The supplied vendor or product id (0x0,0x0) is not valid. *** Error (-1: 'Unspecified error') *** For debugging messages, please use the --debug option. Debugging messages may help finding a solution to your problem. If you intend to send any error or debug messages to the gphoto developer mailing list <gph...@li...>, please run gphoto2 as follows: env LANG=C gphoto2 --debug --debug --port "usb" --camera "USB PTP Class Camera" -L Please make sure there is sufficient quoting around the arguments. 8.025689 gp-camera(2): Freeing camera... 8.025793 gphoto2-port(2): Freeing port... 8.025876 gphoto2-port(2): Closing port... 8.026042 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list... 8.026156 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty 8.026232 gphoto2-filesystem(2): Internally deleting all folders from '/'... ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2004-08-04 16:15 Message: Logged In: YES user_id=48092 id added to camlibs/ptp2/library.c ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2004-08-04 16:14 Message: Logged In: YES user_id=48092 so does gphoto2 -L work? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=358874&aid=994345&group_id=8874 |