LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-22-2008, 11:22 PM   #1
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Rep: Reputation: 28
USB Serial devices assigned randomly?


I have a box with 2 USB Serial devices - a USB-UIRT used for MythTV (ir transmitter/receiver), and a X10 Firecracker (used for home automation control). On bootup, one device is assigned to ttyUSB0, and the other ttyUSB1. On next bootup, they are switched (the device previously assigned to ttyUSB0 is now on ttyUSB1, and vice versa). Next bootup, switched again. Since use of both of these devices rely on hard-coded configuration, is there anyway to force them each to map to a certain device?

Any help would be greatly appreciated.
 
Old 08-23-2008, 04:09 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Since use of both of these devices rely on hard-coded configuration, is there anyway to force them each to map to a certain device?
Yes.

That's what udev is for. See here:
http://www.reactivated.net/writing_udev_rules.html
See the examples for printers, cameras etc. The same ideas will apply to /dev/ttyUSB*
 
Old 08-29-2008, 12:36 AM   #3
fang0654
Member
 
Registered: Oct 2003
Location: New York, NY
Distribution: Ubuntu
Posts: 110

Original Poster
Rep: Reputation: 28
Thank you!

This is exactly what I was looking for. Works like a charm.
 
Old 08-29-2008, 01:52 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
This is exactly what I was looking for. Works like a charm.
Thanks for the follow-up and pleased you managed to get it working. Well done
 
  


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
problem while reading characters from USB serial devices? d2e2004 Linux - Hardware 0 11-01-2007 04:26 AM
Possible to enable a usb mouse after disabling PS/2 and serial input devices? David Paroulek Linux - Hardware 0 03-11-2007 07:00 PM
how are usb disks assigned Clujo Slackware 5 03-02-2006 04:41 PM
USB to Serial devices blueCow Linux - Networking 0 05-16-2005 12:58 PM
devices just randomly showing up????? caleb star Linux - Software 2 04-03-2005 01:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:25 PM.

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