LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-16-2005, 10:08 AM   #1
Glemu
LQ Newbie
 
Registered: Aug 2005
Posts: 5

Rep: Reputation: 0
Obtaining USB handles dynamically


I want to connect several “Serial to USB” converters to a target with a 2.4.19 Kernel. The number of devices may vary. Therefore, I need to locate the device names dynamically, in order to open the ports within my application.
Does anyone know a system call, that returns the device names for connected USB devices?

\Glenn
 
Old 08-16-2005, 01:55 PM   #2
mic
Member
 
Registered: Jun 2005
Posts: 44

Rep: Reputation: 16
To identify a device you can use device IDs (and number of other IDs) and libusb. Check usb.h (not linux/usb.h) and the docs on libusb homepage for details. I don't know how to read name strings, but it should be possible.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Not Enough File Handles Jaqflash Mandriva 4 03-08-2005 06:30 PM
Remove Handles from Gnome Panel paco36 Linux - Software 2 01-26-2005 08:46 PM
how netfilter handles fragmented packets??? cranium2004 Linux - Networking 1 11-21-2004 01:47 PM
how to make the Read command handles spaces Kilahchris Linux - Newbie 7 11-06-2004 01:10 PM
What system handles ACPi best out of the box? AhYup Linux - Laptop and Netbook 2 07-28-2004 05:02 AM


All times are GMT -5. The time now is 03:34 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration