[ale] USB port identification

Jim Kinney jim.kinney at gmail.com
Thu Nov 19 11:36:50 EST 2015


That's the PORT device ID not the device ID. That number changes on
insertion until it rolls over (around 40 something I think). 148f:5370 is
the device ID that is embedded in the device chip itself. It doesn't change.
On Nov 19, 2015 11:08 AM, "Chris Fowler" <cfowler at outpostsentinel.com>
wrote:

>
>
> ------------------------------
>
> *From: *"Alex Carver" <agcarver+ale at acarver.net>
> *To: *ale at ale.org
> *Sent: *Thursday, November 19, 2015 10:26:11 AM
> *Subject: *Re: [ale] USB port identification
>
>
>
> Write the udev rules to look at the vendor and product ID fields and
> then perhaps the bus/sevice fields too.  Use a unique combination of all
> four fields to identify a single device.  If the devices always come up
> in the same order no matter which physical port they are using then all
> four fields should stay unique during each boot.
>
> Also double check what happens in the different configurations with
> lsusb and see if there are any other udev rules in place already that
> might be interfering.
>
>
> I have 500 USB->Serial adapters in boxes in my garage.  Same vendor id and
> same product id.
> They are not unique at all.  All the same.
>
> Here is the problem.  Look at the Ralink device
>
> [root at localhost]# lsusb
> Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 003 Device 003: ID 0572:1340 Conexant Systems (Rockwell), Inc.
> Bus 003 Device 002: ID 15d9:0a37 Trust International B.V. Mouse
> Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 004: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless
> Adapter
> Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
> Bus 001 Device 002: ID 8087:07e6 Intel Corp.
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
> Now, I'll unplug and plug it back in the SAME USB port.
>
> [root at localhost]# lsusb
> Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 003 Device 003: ID 0572:1340 Conexant Systems (Rockwell), Inc.
> Bus 003 Device 002: ID 15d9:0a37 Trust International B.V. Mouse
> Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 005: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless
> Adapter
> Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub
> Bus 001 Device 002: ID 8087:07e6 Intel Corp.
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>
>
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20151119/3c9b6af8/attachment.html>


More information about the Ale mailing list