Hello,
I have a concern involving an usb device (digital camera) and an
application
(gphoto2).
The problem is that this application does not find the usb camera,
although this seems (I say seems) regularly inserted in the
/proc/bus/usb filesystem.
At the moment, I do not know if this is due :
- to the application itself
- or to a bad configuration of the usb stuff
Here are some investigation results :
1. The Camera
----------------
It's a "Canon DIGITAL IXUS v2".
USB id of this camera is : 0x04a9 : 0x3065
2. Concern at execution step
-----------------------------------
When I plug my Camera to the USB port, everything seems to be OK :
2.1 USB filesystem
--------------
The file /proc/bus/usb/001/0xy file is created, with the correct
authorizations :
$ ls -l /proc/bus/usb/001
total 1
-rw-r--r-- 1 root root 18 mai 9 21:12 001
-rw-r--r-- 1 root root 18 mai 9 21:12 003
-rw------- 1 thierry root 18 mai 9 21:17 005
At this time, 003 was devoted to the USB mouse, and 005 to the camera.
A special script in the /etc/hotplug/usb/usbcam does a basic chown $USER
and chmod 600 on the usb file, when camera is switched on.
At this step, no camera driver is loaded. This belongs to the gphoto2
application.
2.2 USB /proc/bus/usb content
-------------------------
The system seems to know what is behind this /proc/bus/usb/001/005
device. As far as I'm not a specialist of it, please find below the
lsusb command outputs :
$ lsusb
Bus 001 Device 005: ID 04a9:3065 Canon Inc.
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 255 Vendor Specific Class
bDeviceSubClass 255 Vendor Specific Subclass
bDeviceProtocol 255 Vendor Specific Protocol
bMaxPacketSize0 32
idVendor 0x04a9 Canon Inc.
idProduct 0x3065
bcdDevice 0.01
iManufacturer 1 Canon Inc.
iProduct 2 Canon Digital Camera
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 39
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xc0
Self Powered
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
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 64
bInterval 96
Language IDs: (length=4)
0409 English(US)
2.3 gphoto2 execution (application level)
-----------------
All seems to be ready. I try the :
$ gphoto2 --auto-detect
=> nothing detected
$ gphoto2 --camera "Canon PowerShot S200" -l
*** Error ***
An error occurred in the io-library ('Bad parameters'): Could not find
USB device (vendor 0x4a9, product 0x3065). Make sure this device is
connected to the computer.
*** Error ('Bad parameters') ***
3. Questions
---------
- Is the usb camera correctly handled at kernel level ?
- Or : which additional tests should I perform to be convinced of this
?
- How to check the correct content of /proc/bus/usb/001/0xy ?
Sincerely Yours, Thierry BRICHLER
_______________________________________________________________
Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users