Programming :: Libusb Error Claim Device -6

Jun 21, 2011

I am trying to read raw data from usb device with libusb but I have some problems.

int main(void)
struct sigaction sigact;
int r = 1;
r = libusb_init(NULL);


View 2 Replies


Ubuntu :: Claim Interfaced Failed: Could Not Claim Interface 0: Device Or Resource Busy

Apr 10, 2011

I'm currently running Ubuntu Maverick - 2.6.32-30-generic. I recently bought a Garmin eTrex Vista H, which connects via usb (from my reading, it looks like older versions connected over serial). Well, like so many before me, I can't seem to write to or read from the device via gpsbabel.Originally tried to read anything from the device (I have one waypoint in there) via:


gpsbabel -i garmin -f usb:

It returned "Found no Garmin USB devices." I then tried turning on the eTrex. Doing the same while locating satellites just does nothing - I have to escape from the command in terminal. Trying again produces the error:


Claim interfaced failed: could not claim interface 0: Device or resource busy

After doing some research, I unblacklisted and then reblacklisted garmin_gps. I also went into



to verify that the contents were:


SYSFS{idVendor}=="091e", SYSFS{idProduct}=="0003", MODE="666"

as directed in this . Everything seemed to be correct.I then followed some other advice found here and created the policy under /etc/hal/... Still no luck!

View 5 Replies View Related

Slackware :: Error - Libusb Couldn't Open USB Device /dev/bus/usb/001/001: Permission Denied

Mar 24, 2011


this error spams about 100 times, then the scanner does indeed work. So I'm not completely broken, but the error messages are of concern, and it slows down the process of scanning for the time it takes to do the messages.

Error in console:

libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied. libusb requires write access to USB device nodes.

my sript runs:

--device $MODEL
-x 5104 -y 6840

my groups:

uid=1000(fogie) gid=100(users) groups=100(users),7(lp),11(floppy),12(mail),15(man),17(audio),18(video),19(cdrom),20(games),21(sloca te),83(plugdev),84(power),86(netdev),93(scanner)

Even a simple:

scanimage -Lv

in console gives this on a separate --current pc as well.

View 2 Replies View Related

Ubuntu Multimedia :: Camera Could Not Claim USB Device?

Aug 13, 2010

This appears to be a frequently-asked question, but unfortunately all the answers I have been able to find are either outdated or refer to software I am not using. [Edit: this is Lucid upgraded from Karmic on a Dell Dimension 4550] If I plug in my antique little Kodak EZ-200, it appears to be recognised; that is, /var/log/messages says:

Aug 13 23:40:47 adam kernel: [ 9628.980041] usb 3-1: new full speed USB device using uhci_hcd and address 2
Aug 13 23:40:47 adam kernel: [ 9629.177161] usb 3-1: configuration #1 chosen from 1 choice
Aug 13 23:40:48 adam kernel: [ 9630.093358] Linux video capture interface: v2.00
Aug 13 23:40:48 adam kernel: [ 9630.149510] gspca: main v2.7.0 registered
Aug 13 23:40:48 adam kernel: [ 9630.275929] gspca: probing 040a:0300


*** Error *** An error occurred in the io-library ('Could not claim the USB device'): Could not claim interface 0 (No such file or directory). 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.

How do I find out what module has claimed the camera, and permanently remove it or prevent it from ever doing so again? Is there some method of telling gphoto2 (or any other camera-handling program) to stamp all over anything else that has laid claim to a device and brute-force its way?

View 5 Replies View Related

OpenSUSE Network :: IPP Printing Error "libusb Couldn't Open USB Device"

Feb 12, 2010

I have an HP OfficeJet 5610v installed on my system, and cups can print the test page. I can also get the test page to print via [URL] which appears to be printed under the anonymous user. Now if I attempt to print the test page via the printer control panel from windows, I get the following sets of error:

D [11/Feb/2010:11:21:29 -0500] [Job 6] libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied.
D [11/Feb/2010:11:21:29 -0500] [Job 6] libusb requires write access to USB device nodes.
D [11/Feb/2010:11:21:29 -0500] [Job 6] libusb couldn't open USB device /dev/bus/usb/002/001: Permission denied.
D [11/Feb/2010:11:21:29 -0500] [Job 6] libusb requires write access to USB device nodes.
D [11/Feb/2010:11:21:29 -0500] [Job 6] libusb couldn't open USB device /dev/bus/usb/003/001: Permission denied.
D [11/Feb/2010:11:21:29 -0500] [Job 6] libusb requires write access to USB device nodes.

CUPS is showing that the "user" is my XP login name so I added that user to Linux and even added that account to the "lp" group and still get the above errors.

View 8 Replies View Related

Debian Configuration :: USB Device Not Found With Libusb?

Sep 24, 2010

I run a program (findknxusb) to scan for devices on USB, but the device is not found.

The debugging level for libusb is on:
$ ./findknxusb
Possible addresses for KNX USB devices:
libusb: setting debugging level to 1 (on)


View 1 Replies View Related

Fedora :: Libusb-1.0 Time-out When Reading From HID Device?

Jun 25, 2009

I'm having a weird problem with libusb-1.0. I have a fresh install of Fedora 11. I'm trying to control a USB HID device (own development) and I want to offer Linux support via libusb. Writing to the device is not a problem and works without any problem. The problems starts when I want to read from the device. Under Windows everything works without a problem.

Via lsusb -v I get this information:
Bus 003 Device 013: ID 16c0:0552
Device Descriptor:
bLength 18
bDescriptorType 1


View 1 Replies View Related

Hardware :: USB Device Driver Notification Using Libusb V0.1 API?

Jan 18, 2010

I have an application that reads data from a medical device connected using usb.

I am writing the driver for this device since it is a vendor specific device.

I am using libusb v0.1 API and get notification to the application when the device is connected/disconnected.

I am using Linux Ubuntu with kernel 2.6.*

View 1 Replies View Related

Programming :: Libusb Tutorial ?

Jul 25, 2011

Any good tutorial for libusb APIs..

View 3 Replies View Related

Programming :: Learning LibUSB From C Code

Oct 1, 2010

I'm trying to learn how to use USB from c code. Rather trying kernel stuff I thought I'd (after some searching ) use libusb. So I searched for documentation, unfortunately I came across two sets of documents each with it's own API?
[URL] and [URL]
For example one inits with libusb_init (libusb_context **context) the other uses void usb_init(void); I'm using libusb rather than kernel programming as I'd like to compile the code for windows as well as linux.

View 2 Replies View Related

Programming :: Compiling Libusb C++ Program To Run Without It's Dependencies?

Aug 6, 2010

I've built a piece of hardware that communicates using usb. I was wondering could I make a libusb based program run on it's own without gcc/ libusb

View 10 Replies View Related

Slackware :: Xsane Does Not Find Scanner And Libusb Permission Error?

Oct 25, 2010

I am tired, and I simply can't find an easy answer.So, today I need the scanner in slackware64 13.1, only to find that it does not work as user. I have an HP Deskjet F2180 and using CUPS it is identified as hp:/usb/Deskjet_F2100_series?serial=CN81H4S2SP04TK.In the past the simple solution was to add oneself to the right groups, but it does not work this time.As user I get:

bash-4.1$ sane-find-scanner


View 2 Replies View Related

Fedora :: Error - Found USB Scanner (vendor=0x04a9 [Canon], Product=0x2213 [CanoScan], Chip=GL841?) At Libusb:001:006

Aug 1, 2009

Since installing F11, my Canon LIDE 50 scanner refuses to work. xsane 0.996 produces an error message: Failed to start scanner: Error during device I/O.

sane-find-scanner says it is there: found USB scanner (vendor=0x04a9 [Canon], product=0x2213 [CanoScan], chip=GL841?) at libusb:001:006 But scanimage -L claims: No scanners were identified.except once when it admitted: device `genesys:libusb:001:006' is a Canon LiDE 35/40/50 flatbed scanner

I reluctantly tested the scanner on a Windoze machine and it works perfectly. And it worked perfectly under F10.

View 9 Replies View Related

Ubuntu :: Unable To Claim Unallocated Disk Space?

Feb 7, 2010

I switched my laptop from a Windows only PC to a Windows-Linux dual boot. These 2 OS's use all 4 of my primary partitions:On Windows I have a 4.4 GB restore partition which can be used to restore the PC to its initial shipping state.I also have a 28 GB primary windows partition.On Ubuntu I have a 1.8 GB swap drive and a 28 GB ext3 drive for everything else.When I configured the dual boot I intentionally left 30GB dik space unclaimed figuring that if I liked Ubuntu I'd assign it to Ubuntu otherwise I could give it to Windows.

I now know that I love Ubuntu but I'm running out of storage on my disk. I can't delete the Windows partition because I need it for a few programs that don't run on Linux. I'd like to just expand the ext3 partition to take the 30GB that are currently unclaimed.However, I don't see an easy way to do this. When I go to create a partition GParted tells me that I can't have more than 4 primary partitions on a drive, that I need an extended partition.Unfortunately, an extended partition is also a primary partition so I have to delete an existing partition to get this to work. So my question is: Isn't there some way that I can just extend the Ubuntu partition to take advantage of the 30GB unallocated space?

View 9 Replies View Related

Slackware :: Doesn't Start..xsession.errors Claim It Can't Open Display?

Jan 8, 2010

with slackware 13.0 for one user xfce4 hangs and doesn't start..xsession.errors claim it can't open display. It works fine for other users. Also if I access the machine in question as the same user but remotely using remote X (X-terminal on my LAN) it works fine.Sometimes if I wait and count to 30 it comes up but a lot of the features don't work.During the last week have posted this question on the compuserve linux forum and also in the xfce site forum with no solutions.seems there must be something in that user's directory which is hanging it up. I keep the same /home/users directory on a separate partition so when I upgrade for new versions of slackware the /home/users remain the same - I symlink home to that partition so upgrades are somewhat seemless.

View 3 Replies View Related

Server :: Lifekeeper Error - DEVICE FAILURE On SCSI Device - /dev/add

Sep 17, 2009

Since May 12,2009. Our system lifekeeper has the error log "lifekeeper error: DEVICE FAILURE on SCSI device '/dev/add'", but it ran normally. Until last week, it failover to the standby server. The disk still running, the error still come out.

View 3 Replies View Related

General :: Can't Find Boot Device - Error "Unable To Determine Major/minor Number Of Root Device"

Mar 17, 2011

I just compiled my first own kernel (I'm using Arch Linux), following the tutorial on the german site. Now I tried to boot it, I ended up failing with this message: Code: Waiting 10 seconds for device /dev/sda1 ... Root device '/dev/sda1' doesn't exist, Attempting to create it. ERROR: Unable to determine major/minor number of root device '/dev/sda1' Here is the important part of my menu.lst:


I simply copy&pasted the Arch-entry, i.e. I also had the disk by uuid there. The failure message was the same, just the root device name was the different name Also, at first I did not have the initrd line in my menu.lst (as written in my tutorial that I may not need it). In this case I had this error message:


View 10 Replies View Related

Programming :: Searching For Video Or Screen Cast Which Shows Device Driver Programming?

May 30, 2010

I did searched you tube but my results were not great.I have 2 books on KernelProgramming.I feel I need if some where I can get a video tutorial which can help me to understand how to develop a Linux Device driver that will be great.I had a look at Greg Kroah Hartmans video lecture of developing patches on ......I have been reading books and a lot of stuff.So I wish if I could get a video lecture that would be better

View 1 Replies View Related

Software :: 10.04 - Couldn't Open Localsound Device Error 2 Client Side Error: Could Not Set Up A Stream

Jul 18, 2010

I just installed say with

sudo apt-get install epos
and everything went fine, until I tried to use it.
When i do
say hello
it gives me

Could not open localsound device, error 2 Client side error: Could not set up a stream

View 6 Replies View Related

Fedora :: Error: "Error 11: Unrecognize Device Strong

Mar 17, 2011

So I've tried some hours ago to install the new kernel 2.6.38 and when I did the reboot, it prompted this error: "Error 11: Unrecognize device strong

Press any key to continue..." I know this is such a general question but how to install the new kernel with Fedora 14? I think I did compiled and configured it ok and did something that wasn't recognized by grub or perhaps when I ran the command to make the new initrd.

View 6 Replies View Related

OpenSUSE :: Piklab, PICKit 2 And Libusb Under 11.2?

Jul 15, 2010

I am running 11.2 64 bit on a Dell Vostro machine. I am unable to get piklab to connect to a PICKit 2 over USB. I have created a file /etc/udev/rules.d/26-microchip.rules which contains the line:

ATTR{idVendor}=="04d8", ATTR{idProduct}=="0033", OWNER:="root", GROUP:="users",MODE:="0660"

This gives a node /dev/bus/usb/006/002 with attributes crw-rw---- owner root group user. The device is rear/write to any member of the "users" group.In piklab the dialogue "Configure Piklab" reached through the menu Programmer->Settings... on the Preogrammer Selection the Port Selection tab displays USB Connection:Error.After much research I find that there may be problems with the libusb library under 11.2 so I try to see what is returned by lsusb. I enter the command:

sudo lsusb -v -s 006:002

this returns:

Bus 006 Device 002: ID 04d8:0033 Microchip Technology, Inc.

Device Descriptor:

bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)


This shows that the udev mechanism appears to be finding the device and all the data is being collected but the last line looks ominous.

What does "cannot read device status, Broken pipe (32)" mean and where does it come from? Is this the cause of the USB connection error?

View 1 Replies View Related

Ubuntu Installation :: How To Install The Libusb

Jul 23, 2010

I am trying to programming on leJOS and I need to some base on prerequisite steps. If Someone know could tell me how to install libusb on Ubuntu. And how can I check currently version or update or upgrade?

View 3 Replies View Related

Ubuntu :: LibUSB - How To Check If It Is Installed

Jun 1, 2011

I'm trying to install libusb. I've downloaded a file from [URL]. I've unzipped the file; the folder's on my desktop. I've tried to install this, but I'm not sure how. Under installation it says: See the file 'INSTALL'. There are a few files that start with this term: INSTALL.libusb, and install-sh. The first two appear to be the same, while the latter appears to be some sort of program.

When I double click it, I get a few options, including "run". I assumed this was the correct way to install the program, but when I hit run, nothing happens. I've displayed this file, but this gives me no additional information. I've tried running it in terminal: nothing. Maybe it has installed, and I just don't know it. How would I even check if it's installed? (I'm only installing libusb because I need it for something else).

View 5 Replies View Related

Debian :: Libusb-dev Package Won't Install?

Feb 3, 2011

I am trying to get the libusb-dev package installed through Synapticslibusb-dev: Depends: libusb-0.1-4 (= 2:0.1.12-14) but 2:0.1.12-14ubuntu0.2 is to be installed E: Broken packagesI have also tried sudo apt-get install libusb-dev but the same result

View 3 Replies View Related

Red Hat / Fedora :: LibUSB On FC - Yum List Installed

Apr 14, 2011

I got Fedora core release 3
kernel 2.6.9-.667

I would like to know which command I have to use to see the libusb installed. I used this:
yum list installed | grep usb
but no output.

View 6 Replies View Related

General :: Libusb Driver Functonality

Jul 6, 2010

I am unable to understand libusb.

View 2 Replies View Related

Ubuntu Servers :: Error: No Such Device, Error: No Such Disk

Jul 12, 2010

I am getting the same errors everytime I boot the server up:

Error: no such device {SOME-UUID}
Error: no suck disk

After that the system boots normally, but Im afraid ignoring this error can make my system crash in the future. I figured it was a grub error and I tried the update-grub2 command, it does detect all installed kernels no problem, but after I reboot I get the same error message.

View 9 Replies View Related

Ubuntu :: LibUSB Not Available To Sane Find Scanner

Apr 21, 2011

I too have what looks like the same problem. I too have read all the relevant man pages and other relevant sites:
Supported devices [URL]
CanoScan LiDE 110 (the printer I've just bought) has "complete" support apparently.
Followed directions here: [URL]
Read: [URl]
Another story of purchasing a "complete"ly supported scanner. [URL]
The solution? Use windows xp in a vm.

I don't think much of that sort of solution. As a temporary work around... ok. I'm running debian lenny.

uname -r

Bus 005 Device 002: ID 04a9:1909 Canon, Inc.

sane-find-scanner -v -f
libusb not available
# No USB scanners found. If you expected something different, make sure that
# you have loaded a kernel driver for your USB host controller and have setup
# the USB system correctly. See man sane-usb for details.
# SANE has been built without libusb support. This may be a reason
# for not detecting USB scanners. Read README for more details.

scanimage -L
device 'v4l:/dev/video0' is a Noname USB 2.0 Camera virtual device

dpkg-query -l '*libusb*'
clearly shows I have libusb installed:
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name Version Description
ii libusb-0.1-4 2:0.1.12-13 userspace USB programming library

View 2 Replies View Related

Fedora :: LibUSB 1.0 - Read / Write Privileges For Users

Dec 13, 2010

I am developing a program that uses libusb-1.0 on a FC14 x64 system. I solved the compile and link issues, but I now have a problem with user privileges when I try to get device handles. The problem appears to be in the mounting of the usbfs. Is the an accepted fix to giving users read/write privileges for all usb devices?

View 4 Replies View Related

Ubuntu Installation :: Synaptic Uninstall Uninstalling Libusb-0.1-4

Feb 7, 2010

Synaptic 0.62.5. When uninstalling libusb-0.1-4, it removes many other unassociated applications (like gnome-desktop, evolution, the kernel in the /boot directory... not nice. See below with a simulated apt-get remove libusb-0.1-4.

Linux hpmaindesktop 2.6.31-19-generic #56-Ubuntu SMP Thu Jan 28 02:39:34 UTC 2010 x86_64 GNU/Linux

The following packages were automatically installed and are no longer required:

The following packages will be REMOVED:

I guess I should have checked this before removing for real as it blew away my desktop, boot kernel, etc. Time now to re-install packages.


View 2 Replies View Related

Copyrights 2005-15, All rights reserved