Dear all,
Hereafter are the results of your suggested test (with USB_DEBUG set to 9).
Johannes Erdfelt a �crit :
> On Fri, May 10, 2002, Thierry Brichler <[EMAIL PROTECTED]> wrote:
> > 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.
>
> I assume you're running this application as user thierry?
Yes, the application is ran with user "thierry".
>
>
> > $ 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') ***
>
> Could you set the environment variable USB_DEBUG to 9 at try running
> that again?
>
>
Please find enclosed the summary of the operations :
1. In the xterm where I'll run gphoto2 :
$ export USB_DEBUG=9
2. Camera switched on, then check the /proc/bus/usb/001 files :
$ ls -l /proc/bus/usb/001
total 1
-rw-r--r-- 1 root root 18 May 10 22:34 001
-rw-r--r-- 1 root root 18 May 10 22:34 002
-rw------- 1 thierry root 18 May 10 22:48 005
Again : 002 corresponds to an USB-mouse, 005 is the Canon camera
3. Just have a look on lsusb :
$ lsusb
.........................
.... details about my mouse which do not help here....
.........................
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)
4. Now, your suggested test :
$ gphoto2 --auto-detect
usb_set_debug: Setting debugging level to 9 (on)
usb_os_init: Found USB VFS at /proc/bus/usb
usb_find_busses: Skipping non bus directory devices
usb_find_busses: Skipping non bus directory drivers
usb_find_busses: Found 001
usb_find_devices_on_bus: Found 001 on 001
usb_find_devices_on_bus: Found 002 on 001
usb_find_devices_on_bus: Found 005 on 001
USB error: error sending control message: Operation not permitted
Unable to get descriptor (-1)
USB error: error sending control message: Operation not permitted
Unable to get descriptor (-1)
Model Port
----------------------------------------------------------
$ gphoto2 -lusb_set_debug: Setting debugging level to 9 (on)
usb_os_init: Found USB VFS at /proc/bus/usb
usb_find_busses: Skipping non bus directory devices
usb_find_busses: Skipping non bus directory drivers
usb_find_busses: Found 001
usb_find_devices_on_bus: Found 001 on 001
usb_find_devices_on_bus: Found 002 on 001
usb_find_devices_on_bus: Found 005 on 001
USB error: error sending control message: Operation not permitted
Unable to get descriptor (-1)
USB error: error sending control message: Operation not permitted
Unable to get descriptor (-1)
usb_set_debug: Setting debugging level to 9 (on)
usb_os_init: Found USB VFS at /proc/bus/usb
usb_find_busses: Skipping non bus directory devices
usb_find_busses: Skipping non bus directory drivers
usb_find_busses: Found 001
usb_find_devices_on_bus: Found 001 on 001
usb_find_devices_on_bus: Found 002 on 001
usb_find_devices_on_bus: Found 005 on 001
USB error: error sending control message: Operation not permitted
Unable to get descriptor (-1)
USB error: error sending control message: Operation not permitted
Unable to get descriptor (-1)
*** 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') ***
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 <[EMAIL PROTECTED]>, please run
gphoto2 as follows:
env LANG=C gphoto2 --debug -l
Please make sure there is sufficient quoting around the arguments.
5�) Miscellaneous
What is the "descriptor (-1)" ?
I hope this test will be meaningful for you.
Best Regards, 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