LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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?

Notices

Reply
 
Search this Thread
Old 01-06-2005, 08:04 AM   #1
hugoveiga
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.

Hugo
 
  


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
USB drive not working properly, read only device? (USB key storage device) Arodef Linux - Hardware 14 01-01-2010 08:32 AM
USB to Serial Converter on Serial Modem bongski55 Linux - General 3 08-29-2005 11:04 AM
USB-Serial Custom Device with C d13VB Programming 0 05-11-2005 10: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 10:39 AM
zoom external serial with usb to serial adapter foustware Linux - Hardware 1 12-07-2003 03:02 AM


All times are GMT -5. The time now is 05:47 AM.

Main Menu
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