From: SourceForge.net <no...@so...> - 2005-12-30 22:49:14
|
Bugs item #1391343, was opened at 2005-12-27 12:58 Message generated for change (Comment added) made by hfiguiere You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108874&aid=1391343&group_id=8874 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: gphoto2 Group: None Status: Open Resolution: None Priority: 3 Submitted By: FACORAT Fabrice (darkmind971) Assigned to: Nobody/Anonymous (nobody) Summary: Incorrect detection of Panasonic DMC-FZ5 Initial Comment: My Panasonic Lumix DMC-FZ5 camera is detected by gphoto2 ( 2.1.6 ) as a DMC-FZ20. [admin@info1 PHP]$ gphoto2 --auto-detect Modèle Port ---------------------------------------------------------- Panasonic DMC-FZ20 (alternate id) usb: Panasonic DMC-FZ20 (alternate id) usb:002,006 From lsusb -v : Bus 002 Device 007: ID 04da:2372 Panasonic (Matsushita) Lumix DMC-FZ10 Camera Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x04da Panasonic (Matsushita) idProduct 0x2372 Lumix DMC-FZ10 Camera bcdDevice 0.10 iManufacturer 1 Panasonic iProduct 2 DMC-FZ5 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 2mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk (Zip) iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 From hal-device : 1: udi = '/org/freedesktop/Hal/devices/storage_model_DMC_FZ5' info.addons = { 'hald-addon-storage' } (string list) storage.policy.should_mount = true (bool) block.storage_device = '/org/freedesktop/Hal/devices/storage_model_DMC_FZ5' (string) info.udi = '/org/freedesktop/Hal/devices/storage_model_DMC_FZ5' (string) storage.requires_eject = false (bool) storage.hotpluggable = true (bool) info.capabilities = { 'storage', 'block' } (string list) info.category = 'storage' (string) info.product = 'DMC-FZ5' (string) info.vendor = 'MATSHITA' (string) storage.removable = true (bool) storage.physical_device = '/org/freedesktop/Hal/devices/usb_device_4da_2372_noserial_if0' (string) storage.lun = 0 (0x0) (int) storage.drive_type = 'disk' (string) storage.vendor = 'MATSHITA' (string) storage.model = 'DMC-FZ5' (string) storage.automount_enabled_hint = true (bool) storage.media_check_enabled = true (bool) storage.no_partitions_hint = false (bool) storage.bus = 'usb' (string) block.is_volume = false (bool) block.minor = 0 (0x0) (int) block.major = 8 (0x8) (int) block.device = '/dev/sda' (string) linux.hotplug_type = 3 (0x3) (int) info.parent = '/org/freedesktop/Hal/devices/usb_device_4da_2372_noserial_if0_scsi_host_scsi_device_lun0' (string) linux.sysfs_path_device = '/sys/block/sda' (string) linux.sysfs_path = '/sys/block/sda' (string) ---------------------------------------------------------------------- >Comment By: Hubert Figuiere (hfiguiere) Date: 2005-12-30 17:49 Message: Logged In: YES user_id=27487 according to the USB specs. iProduct and iManufacturer are index of the string in the USB descriptor. In short it reference a device provided string. I think that at one point we should start to use the USB descriptor provided data. ---------------------------------------------------------------------- Comment By: FACORAT Fabrice (darkmind971) Date: 2005-12-29 10:09 Message: Logged In: YES user_id=1413745 Don't worry, everything is working fine now. i couldn't even make digikam use the wrong camera ( Panasonic DMC-FZ20 usb: ). However it's still disturbing ( and error prone ) to have 2 cameras listed whereas there's only 1. And there of course the "cosmetic" issue :) ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2005-12-28 13:04 Message: Logged In: YES user_id=48092 this 0x2374 mode should work with gphoto. try gphoto2 -L in both modes ... ---------------------------------------------------------------------- Comment By: FACORAT Fabrice (darkmind971) Date: 2005-12-28 12:48 Message: Logged In: YES user_id=1413745 It was in "USB MAss Storage" mode. What's amazing is that the camera was not detcetd when in PTP mode, now it is. However as gphoto2 return 2 cameras, If I selected the wrong one in digikam ( Panasonic DMC-FZ20 (alternate id) usb: ), it won't work. in PTP mode, here are the output : - lsusb -v : Bus 002 Device 008: ID 04da:2374 Panasonic (Matsushita) Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x04da Panasonic (Matsushita) idProduct 0x2374 bcdDevice 0.10 iManufacturer 1 Panasonic iProduct 2 DMC-FZ5 iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 39 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0xc0 Self Powered MaxPower 2mA 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 0x01 EP 1 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x82 EP 2 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 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 16 - lshal : udi = '/org/freedesktop/Hal/devices/usb_device_4da_2374_noserial_if0' info.udi = '/org/freedesktop/Hal/devices/usb_device_4da_2374_noserial_if0' (string) camera.access_method = 'ptp' (string) info.capabilities = {'camera'} (string list) info.category = 'camera' (string) linux.subsystem = 'usb' (string) linux.hotplug_type = 1 (0x1) (int) info.product = 'USB Imaging Interface' (string) usb.interface.protocol = 1 (0x1) (int) usb.interface.subclass = 1 (0x1) (int) usb.interface.class = 6 (0x6) (int) usb.interface.number = 0 (0x0) (int) usb.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:11.3/usb2/2-1/2-1:1.0' (string) usb.configuration_value = 1 (0x1) (int) usb.num_configurations = 1 (0x1) (int) usb.num_interfaces = 1 (0x1) (int) usb.device_class = 0 (0x0) (int) usb.device_subclass = 0 (0x0) (int) usb.device_protocol = 0 (0x0) (int) usb.vendor_id = 1242 (0x4da) (int) usb.product_id = 9076 (0x2374) (int) usb.vendor = 'Panasonic (Matsushita)' (string) usb.product = 'USB Imaging Interface' (string) usb.device_revision_bcd = 16 (0x10) (int) usb.max_power = 2 (0x2) (int) usb.num_ports = 0 (0x0) (int) usb.linux.device_number = 8 (0x8) (int) usb.speed_bcd = 4608 (0x1200) (int) usb.version_bcd = 272 (0x110) (int) usb.is_self_powered = true (bool) usb.can_wake_up = false (bool) usb.bus_number = 2 (0x2) (int) info.bus = 'usb' (string) info.parent = '/org/freedesktop/Hal/devices/usb_device_4da_2374_noserial' (string) linux.sysfs_path_device = '/sys/devices/pci0000:00/0000:00:11.3/usb2/2-1/2-1:1.0' (string) linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:11.3/usb2/2-1/2-1:1.0' (string) ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2005-12-28 12:06 Message: Logged In: YES user_id=48092 so in which mode was the above auto-detect? can you supply lsusb/ lshal output in PictBridge mode please? ---------------------------------------------------------------------- Comment By: FACORAT Fabrice (darkmind971) Date: 2005-12-28 11:18 Message: Logged In: YES user_id=1413745 If PTP = PictBridge, i have another bug report to do then ... This camera is not detected and can't be used when in PictBridge/PTP mode ... and BTW : cosmetics are ones of the most important markets in the world ... it seems that cosmetic stuff are important for many people ;) ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2005-12-28 10:18 Message: Logged In: YES user_id=48092 so yes, it is an issue. but a lesser cosmetic one. ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2005-12-28 10:16 Message: Logged In: YES user_id=48092 PictBridge is the same as PTP mode. The camera can be accessed this way. I did not know that there is a subclassification for USB devices... I will have to check up on it. I really wonder however where it takes the iProduct/iManufacturer data. My usb.ids file seems to be outdated... ---------------------------------------------------------------------- Comment By: FACORAT Fabrice (darkmind971) Date: 2005-12-28 09:09 Message: Logged In: YES user_id=1413745 There's no way to use hal or USB descriptors to differentiate them ? What about "iProduct 2" ? it's correct. lsusb at least have the right entries. Last but not least, I noticed that libgphoto2 will have USB storage support thanks to HAL ( http://www.figuiere.net/hub/blog/?2005/12/26/345-boxing-day-sales-libgphoto2-2199 and http://www.figuiere.net/hub/blog/?2005/06/11/216-libhal-support-in-libgphoto2 ). Thanks to HAl support, libgphoto2 could be able to differentiate the camera ... The great issue is that gphoto2 mark this camera as using PTP whereas the camera only use PictBridge and USB Mass Storage. This means photos apps like f-spot/digikam are incorrectly trying to use PTP to communicate with the camera. ---------------------------------------------------------------------- Comment By: Marcus Meissner (marcusmeissner) Date: 2005-12-27 16:31 Message: Logged In: YES user_id=48092 we cant really fix this, since those cameras can only be differentiated by USB Ids ... and the FZ20 and FZ5 share the same idset. So nothing we can do unfortunately. Ciao, Marcus ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108874&aid=1391343&group_id=8874 |