USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
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.
--
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.
07-05-2010, 12:46 AM
Celejar
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
> 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@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20100704204652.f016fc27.celejar@gmail.com">http://lists.debian.org/20100704204652.f016fc27.celejar@gmail.com
07-05-2010, 06:30 AM
Andrei Popescu
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
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
07-05-2010, 11:10 AM
Merciadri Luca
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
Because if I can know it by theory, it avoids me `practice.'
Lisi wrote:
> On Sunday 04 July 2010 13:06:51 Merciadri Luca wrote:
>
>> 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.
>>
>
> Why not just suck it and see?
>
--
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.
The exception proves the rule.
07-05-2010, 11:17 AM
Merciadri Luca
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
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?
> 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.
>
Okay.
--
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.
If it's too good to be true, then it probably is.
07-05-2010, 01:49 PM
Lisi
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
On Sunday 04 July 2010 13: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.
Managed to send my reply to Merciadri alone, again. Sorry, Merciadri. I have
to change the habit of years and press "l" (ell) instead of clicking
reply. :-(
My reply was:
Why not just suck it and see?
Lisi
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201007051449.29204.lisi.reisz@gmail.com">http://lists.debian.org/201007051449.29204.lisi.reisz@gmail.com
07-05-2010, 02:15 PM
Camaleón
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
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@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.07.05.14.15.28@gmail.com">http://lists.debian.org/pan.2010.07.05.14.15.28@gmail.com
07-05-2010, 04:28 PM
Merciadri Luca
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
Camaleón wrote:
> 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).
>
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?
--
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.
07-05-2010, 04:29 PM
Merciadri Luca
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
Lisi wrote:
> On Sunday 04 July 2010 13: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.
>>
>
> Managed to send my reply to Merciadri alone, again. Sorry, Merciadri. I have
> to change the habit of years and press "l" (ell) instead of clicking
> reply. :-(
>
> My reply was:
>
> Why not just suck it and see?
No problem. I could do it, but I thought such behaviors were already
pre-defined by the kernel's implementation, weren't they?
--
Merciadri Luca
See http://www.student.montefiore.ulg.ac.be/~merciadri/
I use PGP. If there is an incompatibility problem with your mail
client, please contact me.
07-05-2010, 04:49 PM
Camaleón
USB peripherals are plugged in across time: how are /dev/ttyUSBx assignations done?
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@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.07.05.16.49.45@gmail.com">http://lists.debian.org/pan.2010.07.05.16.49.45@gmail.com