Prev: USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
Next: Scim and iceweasel
From: Celejar on 4 Jul 2010 20:50 On Sun, 04 Jul 2010 14:06:51 +0200 Merciadri Luca <Luca.Merciadri(a)student.ulg.ac.be> wrote: > Hi, > > Let's say that you progressively plug in USB peripherals in(to) USB > ports of one computer running Debian. How are the /dev/ttyUSB0, > /dev/ttyUSB1, etc., assignations achieved? Is /dev/ttyUSB0 the first > plugged device, or is it one in a specific port? Thanks. Not sure what kind of peripherals you have in mind, but they generally won't get ttyUSBn addresses, unless they're USB-serial converters, which contain chips meant to provide a serial / TTY interface to the system. In any event, I'm pretty sure that the system will assign an available address, generally independent of the port, unless you have a udev rule telling it otherwise. Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100704204652.f016fc27.celejar(a)gmail.com
From: Andrei Popescu on 5 Jul 2010 02:40 On Du, 04 iul 10, 14:06:51, Merciadri Luca wrote: > Hi, > > Let's say that you progressively plug in USB peripherals in(to) USB > ports of one computer running Debian. How are the /dev/ttyUSB0, > /dev/ttyUSB1, etc., assignations achieved? Is /dev/ttyUSB0 the first > plugged device, or is it one in a specific port? Thanks. I don't have so much experience with that kind of hardware, but AFAIU you just can't rely on any particular order. Try using /dev/*/by-id/ instead. Regards, Andrei -- Offtopic discussions among Debian users and developers: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
From: Camaleón on 5 Jul 2010 10:20 On Mon, 05 Jul 2010 13:17:11 +0200, Merciadri Luca wrote: > Celejar wrote: >> Not sure what kind of peripherals you have in mind, but they generally >> won't get ttyUSBn addresses, unless they're USB-serial converters, >> which contain chips meant to provide a serial / TTY interface to the >> system. >> > And which addresses would they get, if they were not using /dev/ttyUSBx? Block devices (external DVD players or hard disks, USB flash, digital still cameras, voice recorders and many, many devices...) do not create "/ dev/ttyUSBx" but get mounted under "/media" (that is, standard "/dev/sdx" naming). Modems (gsm/umts/dial-up) devices and printers do it that way (in fact, anything that emulates the "serial" port). Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/pan.2010.07.05.14.15.28(a)gmail.com
From: Camaleón on 5 Jul 2010 13:00 On Mon, 05 Jul 2010 18:28:55 +0200, Merciadri Luca wrote: > Camaleón wrote: (...) >> Modems (gsm/umts/dial-up) devices and printers do it that way (in fact, >> anything that emulates the "serial" port). >> > Thanks, but I should have mentioned that I'm here speaking about > non-block devices (such as data probes, etc.). Are they automatically > recognized and set up as /dev/ttyUSBx? Being (or configured to be) a "serial" device, yes. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/pan.2010.07.05.16.49.45(a)gmail.com
From: Celejar on 5 Jul 2010 14:50
On Mon, 05 Jul 2010 13:17:11 +0200 Merciadri Luca <Luca.Merciadri(a)student.ulg.ac.be> wrote: > Celejar wrote: > > Not sure what kind of peripherals you have in mind, but they generally > > won't get ttyUSBn addresses, unless they're USB-serial converters, > > which contain chips meant to provide a serial / TTY interface to the > > system. > > > And which addresses would they get, if they were not using /dev/ttyUSBx? The driver will determine what sort of interface is presented. If no driver picks up the device, no interface will be created. If it's a disk, you'll get /dev/sdx; a webcam, perhaps /dev/video; a WLAN dongle, perhaps wlan0 (all assuming that your kernel has a driver that recognizes the device). Celejar -- foffl.sourceforge.net - Feeds OFFLine, an offline RSS/Atom aggregator mailmin.sourceforge.net - remote access via secure (OpenPGP) email ssuds.sourceforge.net - A Simple Sudoku Solver and Generator -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/20100705144222.86f11f38.celejar(a)gmail.com |