LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 05-01-2011, 05:31 PM   #1
Paweł
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 3
I can't identify correct USB node


Hi guys!
How can I use nodes /dev/usbdevX.X_epXX to open, write and read over USB in C language programming ? How can I recognize valid node ? I need this to connect two SBC ARM9 boards via USB. In desktop linux, it's recognized via cdc_acm driver and it appear as /dev/ttyACM0 and work perfectly!
 
Old 05-03-2011, 02:58 PM   #2
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,552

Rep: Reputation: 103Reputation: 103
Erm, not sure if it will help, but have you tried / looked at libusb?

It seems as if the writer(s) of the Linux drivers for the X-Box USB gamepad used this quite successfully to do something similar to what you want to do... you might do well to look at their code as well.

Also, take a look at the MAME project's source for interfacing with the /dev/input/ tree - MAME works 100% with a USB X-Box gamepad.

E. g. my reasoning is that if you take a look at the above, you might at least find a starting point to how they identify which nodes contain the USB X-Box game controller... and how you might be able to identify the nodes you need for your devices.
 
1 members found this post helpful.
Old 05-09-2011, 04:17 PM   #3
Paweł
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Original Poster
Rep: Reputation: 3
Oh yeah! Thanks for indicate this library. This information help me. One more time thanks.
 
  


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
mysqld node of mysql cluster system not connecting to management node coal-fire-ice Linux - Server 1 07-27-2015 08:33 AM
[SOLVED] KSH script behaving differently on an HACMP cluster node (prod) & a single node (UAT) mufy Programming 5 01-03-2011 02:08 AM
How to make a DRBD node start itself as a primary node automatically? pyruby Linux - Newbie 1 01-29-2010 12:41 PM
identify usb drive timl Red Hat 1 08-07-2009 03:03 AM
USB device node - where is it? moistTowelette Linux - Hardware 3 08-13-2007 11:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:06 AM.

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