Which USB device is which /dev/ttySx?
Erik Christiansen
erik at dd.nec.com.au
Mon Oct 9 06:57:05 UTC 2006
On Fri, Oct 06, 2006 at 08:40:00PM +1000, Peter Garrett wrote:
> On Fri, 6 Oct 2006 11:18:29 +1000
> erik at dd.nec.com.au (Erik Christiansen) wrote:
>
> > Does anyone know of a way to resolve USB device ID to linux device, so
> > that one can be sure that it's listening at all?
>
> You cab try opening a couple of terminals and running
>
> tail -f /var/log/messages ( before you plug the usb device in)
>
> and
>
> dmesg | tail (immediately after plugging it in)
Aaaah! That gives:
Oct 9 11:53:48 dvalin kernel: [4299169.127000] usb 1-2: FTDI 8U232AM
Compatible converter now attached to ttyUSB0
$ find /dev -name '*ttyUSB0*'
/dev/ttyUSB0
$ ll /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 2006-10-09 11:53 /dev/ttyUSB0
$ grep dialout /etc/group
dialout:x:20:erik,cupsy
Using /dev/ttyUSB0, my converter still fails, but a borrowed one works!
Admittedly, I'm trying 115200 (and 38400) baud, which seems to be a bit
much for some generic converters. Maybe it'll manage 9600 ... Nope.
Rats, looks like I'll have to take the laptop under my arm, and go
shopping for a decent converter. :-(
Many thanks for your help.
Erik
More information about the ubuntu-users
mailing list