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

[Code]...

View 1 Replies


ADVERTISEMENT

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_set_debug...
libusb: setting debugging level to 1 (on)
libusb_init...

[Code]....

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 Error Claim Device -6

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

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

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

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 :: Reading From USB Keyboard Device?

May 1, 2010

I am running Debian off a CF on a SBC board (TS-7200). I am connecting via serial ttyAM0. It has a 2.4.26 Kernel running a Sarge distro of Debian.

I am using a terminal in windows to work on the device via serial. (Tera Term)

I am trying to read the input from a keyboard usb device. However, I want to eventually be able to read from any HID device. I currently have a Dell keyboard plugged into usb. lsusb gives:

Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 413c:1003 Dell Computer Corp.
Bus 001 Device 003: ID 413c:2010 Dell Computer Corp.

[Code]....

View 1 Replies View Related

General :: Crypsetup (Unix) Is Not Reading The Device?

Jan 25, 2011

I have a Unix based question. Intro:Trying to create local image which is coded by the cryptsetup tool. Here are my steps:

abcdef# dd if=/dev/zero of=image.img bs=512M count=1 1+0 records in 1+0 records out 536870912 bytes (537 MB) copied,6.39732 s, 83.9 MB/s abcdef# cryptsetup luksFormat image.imgWARNING! ======== This will overwrite data on image.img irrevocably. Are you sure? (Type uppercase yes): YES Cannot read device image.img.

Q:How can I make it work correctly(creating local image with crypting support) or how can I (if its possible of course) to swindle my os?

View 1 Replies View Related

General :: Reading The Manufacturer Data / Device ID On A USB Drive?

Jun 28, 2011

I wish to read the Manufacturer data and other details such as Device ID, Serial number on a USB drive.

1. Could anyone help me out with information on the memory structure of a USB drive? (which location is the mnfr data stored?)

2. Are there are any commands in Linux that will help in reading/accessing this data?

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 :: Reading Changing File In Real Time

May 27, 2010

I know this command exists I just can't seem to find it. I want to see the last few lines of a file as more are added in real time. Can someone point me in the right direction?

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

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

General :: Why Is Reading A FILE Faster Than Reading A VARIABLE?

May 4, 2011

I don't understand the results of a simple performance test I ran using two basic scripts (running on a high end server):

perfVar.zsh :

#!/bin/zsh -f
MYVAR=`cat $1`
for i in {1..10}

[code]...

Performance test result:

> time ./perfVar.zsh BigTextFile > /dev/null
./perfVar.zsh FE > /dev/null 6.86s user 0.32s system 100% cpu 7.177 total
> time ./perfCat.zsh BigTextFile > /dev/null
./perfCat.zsh FE > /dev/null 0.01s user 0.10s system 91% cpu 0.118 total

I would have thought that accessing a VARIABLE was way faster than reading a FILE on the file system... Why this result ?Is there a way to optimize the perfCat.zsh script by reducing the number of accesses to the file system ?

View 3 Replies View Related

Ubuntu Networking :: Broadcom On 2.6.34 - Reinstall Error Code: Reading Package Lists ... Done Building Dependency Tree Reading State Information

May 20, 2010

i installed kernel 2.6.34 to fix my lid closing issue, and that went great. but now when i go to reinstall my broadcom i get this error. Code: Reading package lists... Done Building dependency tree Reading state information... Done bcmwl-kernel-source is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up bcmwl-kernel-source (5.60.48.36+bdcom-0ubuntu3) ... Removing old bcmwl-5.60.48.36+bdcom DKMS files...

[Code].....

View 9 Replies View Related

CentOS 5 Hardware :: In 5.3 Two Applications Cannot Use The Audio Device At A Time

Sep 19, 2009

I just installed centos 5.1 on my laptop. Then i upgraded it to 5.3. The problem that i am facing is that at a time only one application can use the audio device. Is this some kind of driver problem or an error in Centos? If one application is using the audio device and if i start the other application that also want to use the audio device it simply gives an error like audio device is locked by other application and is muted. In windows XP my audio device is shown as Sigmatel Audio.

View 1 Replies View Related

Programming :: Libusb Tutorial ?

Jul 25, 2011

Any good tutorial for libusb APIs..

View 3 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)

[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

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, 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

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

General :: Libusb Driver Functonality

Jul 6, 2010

I am unable to understand libusb.

View 2 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

CentOS 5 :: Time Error In 5 Server - PCI: Setting Latency Timer Of Device 0000:02:02.0 To 64

May 11, 2010

What can be the cause of this error.

dmesg | grep -i time
ACPI: PM-Timer IO Port: 0x408
Calibrating delay using timer specific routine.. 4658.19 BogoMIPS (lpj=2329098)
Using local APIC timer interrupts.

[code]....

View 7 Replies View Related

Fedora Hardware :: Full Speed USB MSC Device Detected As Input Device?

Apr 7, 2011

I am working on an embedded system, which is an USB MSC device that supports some vendor specific scsi commands. I am using FC10 laptop as USB host for testing, and it runs some small apps based on sg3. All has been well for ~ a week. The FC10 laptop is able to communicate with the device and retrieve data. Suddenly, starting from today, the laptop is not able to properly detect the device. When plugged-in, the MSC device is detected as input device (I thought). This is observed from "dmesg" output and changes in "/dev/input/".The device under development is running at full speed. When I connect to winXP, no problem. A windows file explorer pops up, showing the content of the drive.Also, the FC10 has no problem with other USB flash drive (high speed).

View 1 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

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.

Code:
uname -r
provides:
2.6.26-2-686

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

Code:
sane-find-scanner -v -f
provides:
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.

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

Code:
dpkg-query -l '*libusb*'
clearly shows I have libusb installed:
Desired=Unknown/Install/Remove/Purge/Hold
| 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 :: MAYDAY Accidentally Messed Up Fedora Core 12 Partition - Error Reading The Disk

Jan 18, 2010

I did a horrible mistake due to lapse in my concentration. Here is the 80 GB IDE disk geometry:

=> C: Windows XP SP2 15 GB partition
=> D: NTFS parition - 10 GB
=> E:F:G:H: NTFS partitions on the Windows Extended partition.
=> On the same Extended partition, there exists Linux /swap and /root partitions.

What happened was:

a) I wanted to delete the H: parition which was residing adjacent to Linux partition
b) By mistake I opened the Explorer and clicked the Mouse on H: partition and left it like that (forgot)
c) I opened Add/Remove program list but did nothing, to do few uninstalls after partition deletion.
d) Now I opened compmgmt.msc for Disk Management then deleted the H: partition!

Then XP reacted strangely and got almost hung

e) Then I switched OFF and ON the PC.
f) Most shocking was GRUB screen vanished (crash console appears) which means that Linux partition got deleted instead of H: partition!!

It's important to share with you that Fedora Core 12 possess the default BOOT flag. I thought that it's nothing big deal, only a case of Boot flag toggle with DOS bootable CD but am shell shocked to find after hitting the fdisk from DOS it says Error reading the disk!!! I felt like collapsed for a while, don't know how I did such a mistake. how to boot into my Windows XP. I can't afford to loose data or bear the expense on Data recovery

View 14 Replies View Related

Fedora Installation :: Device Driver For Usb To Detect Device?

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

Fedora :: 11 Boot Time / System Hangs For A Very Long Time On Starting Udev?

Sep 25, 2009

When booting Fedora 11, my system hangs for a very long time on starting udev. Sometimes I get an I/O error. However, my hardware is fine. I do eventually get in to the system.

View 7 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved