Hi all,
I've got a CentOS 5.4 box and am trying to use it to control either of the two old cameras we've got, one being Nikon Coolpix 990 and the other Nikon Coolpix 995. Accessing either I get the following message:
---------------------------------------------------- *** Error *** An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device. ERROR: Could not capture. *** Error (-53: 'Could not claim the USB device') *** ----------------------------------------------------
Any idea what this could be about?
By the way, about a year ago I did manage to use a Linux machine to control one of these cameras (the 990, I believe).
Thanks in advance.
Boris.
On Fri, Mar 26, 2010 at 11:53 AM, Boris Epstein borepstein@gmail.com wrote:
Hi all,
I've got a CentOS 5.4 box and am trying to use it to control either of the two old cameras we've got, one being Nikon Coolpix 990 and the other Nikon Coolpix 995. Accessing either I get the following message:
*** Error *** An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device. ERROR: Could not capture.
*** Error (-53: 'Could not claim the USB device') ***
Any idea what this could be about?
By the way, about a year ago I did manage to use a Linux machine to control one of these cameras (the 990, I believe).
Is the camera set to the PTP mode? Try running 'tail -f /var/log/messages' while connecting the camera and see how it is being recognized.
Akemi
On Fri, Mar 26, 2010 at 3:10 PM, Akemi Yagi amyagi@gmail.com wrote:
On Fri, Mar 26, 2010 at 11:53 AM, Boris Epstein borepstein@gmail.com wrote:
Hi all,
I've got a CentOS 5.4 box and am trying to use it to control either of the two old cameras we've got, one being Nikon Coolpix 990 and the other Nikon Coolpix 995. Accessing either I get the following message:
*** Error *** An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device. ERROR: Could not capture.
*** Error (-53: 'Could not claim the USB device') ***
Any idea what this could be about?
By the way, about a year ago I did manage to use a Linux machine to control one of these cameras (the 990, I believe).
Is the camera set to the PTP mode? Try running 'tail -f /var/log/messages' while connecting the camera and see how it is being recognized.
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Thanks.
Just disconnected and reconnected the camera again, got the following:
------------------------------------------ Mar 26 15:23:51 antwerp kernel: usb 2-1: USB disconnect, address 2 Mar 26 15:23:55 antwerp kernel: usb 2-1: new full speed USB device using uhci_hcd and address 3 Mar 26 15:23:55 antwerp kernel: usb 2-1: configuration #1 chosen from 1 choice ------------------------------------------
Looks like the camera is being recognized at least to some degree:
[antwerp@bepstein][~/scratch] lsusb Bus 001 Device 001: ID 0000:0000 Bus 002 Device 003: ID 04b0:0102 Nikon Corp. Coolpix 990 Bus 002 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 [antwerp@bepstein][~/scratch]
Boris.
On Fri, Mar 26, 2010 at 12:25 PM, Boris Epstein borepstein@gmail.com wrote:
On Fri, Mar 26, 2010 at 3:10 PM, Akemi Yagi amyagi@gmail.com wrote:
Is the camera set to the PTP mode? Try running 'tail -f /var/log/messages' while connecting the camera and see how it is being recognized.
Just disconnected and reconnected the camera again, got the following:
Mar 26 15:23:51 antwerp kernel: usb 2-1: USB disconnect, address 2 Mar 26 15:23:55 antwerp kernel: usb 2-1: new full speed USB device using uhci_hcd and address 3 Mar 26 15:23:55 antwerp kernel: usb 2-1: configuration #1 chosen from 1 choice
Looks like the camera is being recognized at least to some degree:
[antwerp@bepstein][~/scratch] lsusb Bus 001 Device 001: ID 0000:0000 Bus 002 Device 003: ID 04b0:0102 Nikon Corp. Coolpix 990 Bus 002 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 [antwerp@bepstein][~/scratch]
Looking good. Now what do you get with the command:
gphoto2 --auto-detect
Akemi
On Fri, Mar 26, 2010 at 3:33 PM, Akemi Yagi amyagi@gmail.com wrote:
On Fri, Mar 26, 2010 at 12:25 PM, Boris Epstein borepstein@gmail.com wrote:
On Fri, Mar 26, 2010 at 3:10 PM, Akemi Yagi amyagi@gmail.com wrote:
Is the camera set to the PTP mode? Try running 'tail -f /var/log/messages' while connecting the camera and see how it is being recognized.
Just disconnected and reconnected the camera again, got the following:
Mar 26 15:23:51 antwerp kernel: usb 2-1: USB disconnect, address 2 Mar 26 15:23:55 antwerp kernel: usb 2-1: new full speed USB device using uhci_hcd and address 3 Mar 26 15:23:55 antwerp kernel: usb 2-1: configuration #1 chosen from 1 choice
Looks like the camera is being recognized at least to some degree:
[antwerp@bepstein][~/scratch] lsusb Bus 001 Device 001: ID 0000:0000 Bus 002 Device 003: ID 04b0:0102 Nikon Corp. Coolpix 990 Bus 002 Device 001: ID 0000:0000 Bus 003 Device 001: ID 0000:0000 Bus 004 Device 001: ID 0000:0000 [antwerp@bepstein][~/scratch]
Looking good. Now what do you get with the command:
gphoto2 --auto-detect
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[antwerp@bepstein][~/scratch] gphoto2 --auto-detect Model Port ---------------------------------------------------------- Nikon CoolPix 990 usb: [antwerp@bepstein][~/scratch]
Boris.
On Fri, Mar 26, 2010 at 12:34 PM, Boris Epstein borepstein@gmail.com wrote:
On Fri, Mar 26, 2010 at 3:33 PM, Akemi Yagi amyagi@gmail.com wrote:
Looking good. Now what do you get with the command:
gphoto2 --auto-detect
Akemi
[antwerp@bepstein][~/scratch] gphoto2 --auto-detect Model Port
Nikon CoolPix 990 usb: [antwerp@bepstein][~/scratch]
Boris.
So far, so good. Now, what command/application did you run when you got the error message in your original post?
Akemi
On Fri, Mar 26, 2010 at 3:37 PM, Akemi Yagi amyagi@gmail.com wrote:
On Fri, Mar 26, 2010 at 12:34 PM, Boris Epstein borepstein@gmail.com wrote:
On Fri, Mar 26, 2010 at 3:33 PM, Akemi Yagi amyagi@gmail.com wrote:
Looking good. Now what do you get with the command:
gphoto2 --auto-detect
Akemi
[antwerp@bepstein][~/scratch] gphoto2 --auto-detect Model Port
Nikon CoolPix 990 usb: [antwerp@bepstein][~/scratch]
Boris.
So far, so good. Now, what command/application did you run when you got the error message in your original post?
Akemi _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[antwerp@bepstein][~/scratch] gphoto2 --capture-image
*** Error *** An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device. ERROR: Could not capture. *** Error (-53: 'Could not claim the USB device') ***
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 gphoto-devel@lists.sourceforge.net, please run gphoto2 as follows:
env LANG=C gphoto2 --debug --capture-image
Please make sure there is sufficient quoting around the arguments.
[antwerp@bepstein][~/scratch]
Running the debug version essentially yields the same plus lots of step-by-step messages regarding the comms to and from the camera.
Boris.
On Fri, Mar 26, 2010 at 12:41 PM, Boris Epstein borepstein@gmail.com wrote:
On Fri, Mar 26, 2010 at 3:37 PM, Akemi Yagi amyagi@gmail.com wrote:
[antwerp@bepstein][~/scratch] gphoto2 --capture-image
*** Error *** An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (Operation not permitted). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
Well, the camera is correctly recognized and the gphoto2 command is working. At this point, you may want to follow the error message and make sure the kernel modules listed there are not loaded.
For your reference, device looks like this on my CentOS 5.4 system:
crw------- 1 root root 442, 4106 Mar 26 12:45 usbdev3.11_ep81 crw------- 1 root root 442, 4106 Mar 26 12:45 usbdev3.11_ep04 crw------- 1 root root 442, 4106 Mar 26 12:45 usbdev3.11_ep83
Mine is Coolpix 4500 (though this should not make a difference). Also, I am not operating the camera as root and the gphoto2 --capture-image command works fine.
Akemi