Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 01-06-2005, 07:04 AM   #1
LQ Newbie
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
USB->Serial Device

Hi there all...

I've got the following problem in linux. I have six USB->Serial devices that have six distint serial numbers.

I must make some code in order to interact with all of them. The problem is that everytime i plug in the usb, the ttyUSB are given in a First Plugged First ttyUSB Number Given kind of policy (i invented this).

I want to associate serial number 111111111 with ttyUSB0, 22222222 with ttyUSB1 etc.

In my view i can make this two ways:

1 - Open ttyUSB* and try to get the serial number of this device through the filedescriptor or,

2 - use libusb and try to find the ttyUSB devices that are associated with each serial number of the devices i'm using.

I can't seem to find the linkage between filedescriptor and the associated ttyUSB* nor even through libusb to get the ttyUSB*.

I'm new to Linux.

Any help would be appreciated.



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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 07:32 AM
USB to Serial Converter on Serial Modem bongski55 Linux - General 3 08-29-2005 10:04 AM
USB-Serial Custom Device with C d13VB Programming 0 05-11-2005 09:45 AM
Device driver for a USB to RS-232 Serial DB9 Adapter for red Hat 8 or 9 sp022 Linux - Hardware 1 04-18-2005 09:39 AM
zoom external serial with usb to serial adapter foustware Linux - Hardware 1 12-07-2003 02:02 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:27 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