<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>Re: What USB port am I connected to?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>And dmesg will tell you exactly what dev you're dealing with...<BR>
<BR>
Jack - BB<BR>
<BR>
----- Original Message -----<BR>
From: ubuntu-users-bounces@lists.ubuntu.com <ubuntu-users-bounces@lists.ubuntu.com><BR>
To: ubuntu-users@lists.ubuntu.com <ubuntu-users@lists.ubuntu.com><BR>
Sent: Fri Nov 02 10:00:22 2007<BR>
Subject: Re: What USB port am I connected to?<BR>
<BR>
John Dangler wrote:<BR>
<BR>
> On Fri, 2007-11-02 at 00:05 -0400, Alex Janssen wrote:<BR>
>> I want to communicate with a serial device over the USB that is not a<BR>
>> recognized device.  It is a PLC(programmable logic controller). How do<BR>
>> I<BR>
>> tell which USB device file to open?  i.e.; /dev/bus/usb/002/001 or<BR>
>> 002... .  Is there a way to tell what I'm plugged into?  Is there a<BR>
>> USB<BR>
>> howto for programmers?<BR>
><BR>
> 2 ways that I know of....<BR>
> plug in the device<BR>
> go to a terminal, type dmesg and look at the last output...<BR>
> OR<BR>
> lsusb should also give you some indication<BR>
<BR>
lshal, and the various gui hal viewers, will give much more information<BR>
about the actual /dev name.  lsusb will only tell you which _bus_ it's on<BR>
(in the example /dev/bus/usb/002) but not the device number, because that<BR>
autoincrements every time something's plugged in.<BR>
--<BR>
derek<BR>
<BR>
<BR>
--<BR>
ubuntu-users mailing list<BR>
ubuntu-users@lists.ubuntu.com<BR>
Modify settings or unsubscribe at: <A HREF="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</A><BR>
</FONT>
</P>

</BODY>
</HTML>