Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Peripherals / Hardware
Reload this Page USB "hiddev" problem
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Peripherals / Hardware Is your hardware supported? Having trouble getting some hardware working? Post here!

Reply
 
Thread Tools Display Modes
Old 05-05-2008   #1 (permalink)
daviddd
Just Joined!
 
Join Date: May 2008
Posts: 2
USB "hiddev" problem

I use following from Linux-HId.pdf, but the linux console return "hiddev open: No such device"

Do anybody know why? many thanks

int main (int argc, char **argv) {
int fd = -1;
int version;
/* ioctl() requires a file descriptor, so we check we got one, and then open it */
if (argc != 2) {
fprintf(stderr, "usage: %s hiddevice - probably /dev/usb/hiddev0\n", argv[0]);
exit(1);
}
if ((fd = open(argv[1], O_RDONLY)) < 0) {
perror("hiddev open");
exit(1);
}
daviddd is offline   Reply With Quote
Old 05-06-2008   #2 (permalink)
mrtibs
Just Joined!
 
Join Date: Mar 2008
Posts: 9
Hi David,

Go to /dev/usb and run "ls". Make sure hiddev0 is listed.
Btw, I tried developing a device driver with libhid and it was HORRIBLE! I found no documentation or examples. This README was my friend:
ftp://lx10.tx.ncsu.edu/pub/Linux/dri...README_mcc_usb

If you poke around the directory which contains the README, I think you'll find some source code.

Tiberiu
mrtibs is offline   Reply With Quote
Old 05-07-2008   #3 (permalink)
daviddd
Just Joined!
 
Join Date: May 2008
Posts: 2
Hi Tiberiu ,

Go to /dev/usb and run "ls". Make sure hiddev0 is listed.

i check with "ls" hiddev0 is listed,but still cannot open the device

and also thanks for yr info about libhid,and hiddev

currently, i search in internet for info about using HID class and Audio class for USB device, and then i find hiddev and try to use it, for audio class, i still studying whether the usbaudio.c under sound directory in linux is audio class or something else
daviddd is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 06:21 AM.

Powered by vBulletin 3.6.8 ©2000 - 2007, content relevant URLs by vBSEO, Property of Core Root.

Content Relevant URLs by vBSEO 3.0.0