What USB port am I connected to?
news at pointerstop.ca
Fri Nov 2 14:00:22 UTC 2007
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
>> 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
>> 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...
> 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.
More information about the ubuntu-users