What USB port am I connected to?

John Dangler jdangler at terremark.com
Fri Nov 2 14:28:12 UTC 2007

And dmesg will tell you exactly what dev you're dealing with...

Jack - BB

----- Original Message -----
From: ubuntu-users-bounces at lists.ubuntu.com <ubuntu-users-bounces at lists.ubuntu.com>
To: ubuntu-users at lists.ubuntu.com <ubuntu-users at lists.ubuntu.com>
Sent: Fri Nov 02 10:00:22 2007
Subject: Re: What USB port am I connected to?

John Dangler wrote:

> On Fri, 2007-11-02 at 00:05 -0400, Alex Janssen wrote:
>> I want to communicate with a serial device over the USB that is not a
>> recognized device.  It is a PLC(programmable logic controller). How do
>> I
>> tell which USB device file to open?  i.e.; /dev/bus/usb/002/001 or
>> 002... .  Is there a way to tell what I'm plugged into?  Is there a
>> USB
>> howto for programmers?
> 2 ways that I know of....
> plug in the device
> go to a terminal, type dmesg and look at the last output...
> OR
> lsusb should also give you some indication

lshal, and the various gui hal viewers, will give much more information
about the actual /dev name.  lsusb will only tell you which _bus_ it's on
(in the example /dev/bus/usb/002) but not the device number, because that
autoincrements every time something's plugged in.

ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071102/0bda9431/attachment.html>

More information about the ubuntu-users mailing list