LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-22-2012, 03:39 AM   #1
jimmy123
LQ Newbie
 
Registered: Jan 2012
Posts: 13

Rep: Reputation: Disabled
Question How to open device /dev/usb/hiddev0 ?


I have create an user-space application~

I try to open(/dev/usb/hiddev0,XXXX);

But it not work~

Any other good way to open this device?
 
Old 10-22-2012, 04:00 AM   #2
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Does it give the error

Code:
open: Permission denied
If you print out the error using perror?
 
1 members found this post helpful.
Old 10-23-2012, 06:03 AM   #3
jimmy123
LQ Newbie
 
Registered: Jan 2012
Posts: 13

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by wildwizard View Post
Does it give the error

Code:
open: Permission denied
If you print out the error using perror?
The root cause of this problem is the timing of creating hdev0.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't find /dev/usb/hiddev. How to open HID device? SeaZone Linux - Hardware 5 04-24-2013 02:44 AM
Scanner help.. failed to open device snapscan/dev/usb/scanner johnathan Linux - Hardware 2 10-12-2007 06:06 PM
Failed to open device /dev/usb/ttyUSB0: No such device efm Linux - Newbie 2 04-04-2005 08:46 PM
How i can write to device /dev/usb/hiddev0 ? njel Programming 2 08-17-2004 03:16 AM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration