<p dir="ltr">That&#39;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&#39;t change.</p>
<div class="gmail_quote">On Nov 19, 2015 11:08 AM, &quot;Chris Fowler&quot; &lt;<a href="mailto:cfowler@outpostsentinel.com">cfowler@outpostsentinel.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:arial,helvetica,sans-serif;font-size:12pt;color:#000000"><div><br></div><div><br></div><hr><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><b>From: </b>&quot;Alex Carver&quot; &lt;<a href="mailto:agcarver%2Bale@acarver.net" target="_blank">agcarver+ale@acarver.net</a>&gt;<br><b>To: </b><a href="mailto:ale@ale.org" target="_blank">ale@ale.org</a><br><b>Sent: </b>Thursday, November 19, 2015 10:26:11 AM<br><b>Subject: </b>Re: [ale] USB port identification<br></blockquote></div><div><blockquote style="border-left:2px solid #1010ff;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt"><br><br>Write the udev rules to look at the vendor and product ID fields and<br>then perhaps the bus/sevice fields too.  Use a unique combination of all<br>four fields to identify a single device.  If the devices always come up<br>in the same order no matter which physical port they are using then all<br>four fields should stay unique during each boot.<br><br>Also double check what happens in the different configurations with<br>lsusb and see if there are any other udev rules in place already that<br>might be interfering.<br></blockquote><div><br></div><div>I have 500 USB-&gt;Serial adapters in boxes in my garage.  Same vendor id and same product id.</div><div>They are not unique at all.  All the same.</div><div><br></div><div>Here is the problem.  Look at the Ralink device</div><div><br></div><div><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">[root@localhost]# lsusb</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 003 Device 003: ID 0572:1340 Conexant Systems (Rockwell), Inc. </span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 003 Device 002: ID 15d9:0a37 Trust International B.V. Mouse</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 001 Device <span style="background-color:rgb(255,255,0)">004</span>: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 001 Device 002: ID 8087:07e6 Intel Corp. </span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</span><br></div><div><br></div><div>Now, I&#39;ll unplug and plug it back in the SAME USB port.</div><div><br></div><div><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">[root@localhost]# lsusb</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 003 Device 003: ID 0572:1340 Conexant Systems (Rockwell), Inc. </span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 003 Device 002: ID 15d9:0a37 Trust International B.V. Mouse</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 001 Device <span style="background-color:rgb(255,255,0)">005</span>: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 001 Device 003: ID 1a40:0101 Terminus Technology Inc. Hub</span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 001 Device 002: ID 8087:07e6 Intel Corp. </span><br><span style="font-family:&#39;courier new&#39;,courier,monaco,monospace,sans-serif">Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub</span><br></div><div><br></div><div><br></div><div><br></div></div></div></div><br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div>