LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   USB Serial devices assigned randomly? (https://www.linuxquestions.org/questions/ubuntu-63/usb-serial-devices-assigned-randomly-664743/)

fang0654 08-22-2008 11:22 PM

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.

tredegar 08-23-2008 04:09 AM

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*

fang0654 08-29-2008 12:36 AM

Thank you!
 
This is exactly what I was looking for. Works like a charm.

tredegar 08-29-2008 01:52 PM

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 :)


All times are GMT -5. The time now is 01:18 AM.