Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-16-2005, 09:08 AM   #1
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?

Old 08-16-2005, 12:55 PM   #2
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.


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

All times are GMT -5. The time now is 07:49 PM.

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