What USB port am I connected to?

John Dangler jdangler at terremark.com
Fri Nov 2 04:24:01 UTC 2007

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
> 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 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2151 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071102/23f23d76/attachment.bin>

More information about the ubuntu-users mailing list