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
ADVERTISEMENT
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_set_debug...
libusb: setting debugging level to 1 (on)
libusb_init...
[Code]....
View 1 Replies
View Related
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
[Code]...
View 1 Replies
View Related
Jun 21, 2011
I am trying to read raw data from usb device with libusb but I have some problems.
Code:
int main(void)
{
struct sigaction sigact;
int r = 1;
r = libusb_init(NULL);
[Code]...
View 2 Replies
View Related
Jul 6, 2010
I am unable to understand libusb.
View 2 Replies
View Related
Mar 24, 2011
Hello,
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:
scanimage
--device $MODEL
--resolution=$RESOLUTION
-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
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
Jun 18, 2010
Changing the brightness and keyboard brightness does not give a notification, though the brightness changes. In addition, ejecting a cd, plugging in a usb device, and seeking/playing music gives no notification (though Rhythmbox tells me what track I've skipped to/played). Again, the cd does eject, the usb device can be accessed, etc. I'm not sure if this last one is a problem, but every notification except for the volume one appears about 80 pixels down from the top panel. This 80 pixels below the panel is only ever occupied by the volume notification. Ubuntu 10.04, gnome-power-manager 2.30.0 ubuntu1, notify-osd 0.9.29-0ubuntu2. I'm using a Dell Studio 1555 notebook.
View 3 Replies
View Related
Sep 19, 2009
I am currently using fedora 11 kernel 2.6.29 version, i wanted to write device driver for usb to detect my own device. My project is radio with computer. My fm radio get connected to usb port so i need to write h/w interfacing program.
View 1 Replies
View Related
Nov 10, 2010
The error "USB device 6 (vend/prod 0x603/0xf2) is not claimed by any active driver." is in dmesg every time I connect my Logitech keyboard to my system. I also tried (all with the same error):
- Memory stick
- DVD-burner
- Compaq mouse
View 3 Replies
View Related
Jul 28, 2010
I have installed live cd on usb pendrive. Everything works great. How can I find out which device driver it is using? Where are the device driver files stored? How do you specify the device driver when mounting a device?
View 3 Replies
View Related
Apr 6, 2010
If I were asked to write a linux device driver for a pen, How should I start?
View 4 Replies
View Related
Jul 9, 2010
Quote:
Originally Posted by anishakaul
When you copy paste the Makefile from post 7, make sure you delete the spaces shown in RED below by Backspace key and then press TAB
Code:
obj-m += hello.o
all:
........make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
clean:
........make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
how to write a device driver for USB
View 9 Replies
View Related
Oct 11, 2010
I know, I know..."How long is a piece of string"?
I have one of these devices:
[URL]
Of course, it's Windows only, and XP only at that. However, the data that needs transferred between the device and the computer should be fairly basic, unless it offloads a lot of processing to the computer. I'm not a programmer, nor do I play one on TV, but I have written some fairly complicated microcontroller programs and some basic Java GUIs. Besides writing the actual code, how hard is it to do whatever needs done to make a Linux device driver, apart from the code to make the device work?
View 2 Replies
View Related
Nov 30, 2010
Is there an easy example of a block device driver I could follow as a guide to write my own module?
View 5 Replies
View Related
Jan 14, 2011
How to do device driver programming in Ubuntu 10.04?
View 2 Replies
View Related
Jul 25, 2011
Any good tutorial for libusb APIs..
View 3 Replies
View Related
Jan 22, 2009
I am totally new to Linux and have a PC here with 128 MB Ram and a 10 GB HDD. It has Windows Millenium installed but I presume this will be wiped during the install process if I so wish.,
I am part way through the install using CD's and have just chosen my required alnguage and then keyboard layout. The next option is asking me to choose what device drivers to load and most appear to be HDD Drivers. I haven't a clue what to choose here?
View 8 Replies
View Related
Mar 31, 2010
I've a problem with character device mounting. I've a character device module code. Here is the code
Code: /* chardev.c: Creates a read-only char device that says how many times
* you've read from the dev file
*/
#if defined(CONFIG_MODVERSIONS) && ! defined(MODVERSIONS)
#include <linux/modversions.h>
#define MODVERSIONS
[Code]...
View 1 Replies
View Related
Jan 8, 2010
how to detect and install a mic device driver? i only plug and play the mic in xp.
View 1 Replies
View Related
Jun 14, 2011
I wrote device driver to USB device, I can see it is alive and sending the data that I set it to send from the shell
Code:
cat /dev/myDev
How can I read from the device using C code?
I've tried to open it as a file and read it's content to buffer but noting returns..
Code:
char bufferin[500];
FILE* myDev = fopen("/dev/myDev", "r+");
size = fread(bufferin, 500, 500, myDev);
View 2 Replies
View Related
Jul 25, 2010
It's easy to bind a device to a usb driver by doing something like
Code:
modprobe driver vendor=vid product=pid. I'm wondering if this can be done with a compiled-in module: is there a way to dynamically tell Linux to use a specific module for a device?
View 1 Replies
View Related
May 2, 2010
I am facing a serious problem.. i want a linux-device driver to work on windows is it possible.. see windows has device driver files as .sys and linux has .ko so is it possible..??
View 5 Replies
View Related
Mar 3, 2010
If I were asked to write a linux device driver for a pen, How should I start???
View 5 Replies
View Related
Sep 23, 2010
I wrote a small hello world type of character device driver. When I type echo -n "abcdef" > /dev/bond and do a cat /dev/bond then only last "f" of above input abcdef is displayed rest nothing is displayed. I asked this question earlier and some people suggested me some modifications I have done and experimented all that but I am unable to catch the error.
Here is the code
Code:
/* Necessary includes for device drivers */
#include <linux/init.h>
//#include <linux/config.h>
#include <linux/module.h>
[Code].....
View 3 Replies
View Related
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)
[code]....
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
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
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, INSTALL.libusb.in 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
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
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