<div dir="ltr">Pete,<div><br></div><div>Do you have an example?  I've never tried hard links.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 19, 2021 at 6:11 PM Pete Soper via TriEmbed <<a href="mailto:triembed@triembed.org">triembed@triembed.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <p>My kludge for this was to interrogate the device, figure out what
      it was with a label had stored in it, then create a hard link.</p>
    <p>-Pete<br>
    </p>
    <div>On 2/19/21 5:54 PM, Michael Monaghan
      via TriEmbed wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">As I add more USB devices to my army, I've run into
        the issue that ttyUSBx device names are first come, first
        served.  I knew there had to be a better way!  <a href="https://medium.com/@inegm/persistent-names-for-usb-serial-devices-in-linux-dev-ttyusbx-dev-custom-name-fd49b5db9af1" target="_blank">This article</a> introduces udev, the
        Linux system that names USB devices and an easy way to create
        unique aliases for each device.  They'll all still get assigned
        ttyUSBx based on the fastest electron out of the process
        scheduler, however you can alias them to whatever your heart
        desires.  ttyESP42?  No problem.  SoilMonitor8?  Sure thing.
        <div><br>
        </div>
        <div>One issue I ran into is my cheap clone manufacturer's love
          affair ATTRS{serial}=0001.    While the article relies on <span style="background-color:rgb(242,242,242);color:rgb(41,41,41);font-family:Menlo,Monaco,"Courier New",Courier,monospace;font-size:16px;letter-spacing:-0.352px;white-space:pre-wrap">ATTRS{serial}</span> to
          discern the unique device, this fails when everyone is number
          1.  I'm curious if there is some way post manufacturing to
          change those serial numbers.  Fortunately I have enough with
          actual numbers that it isn't a real problem for me.  For some
          devices, comparing attributes with diff has helped.</div>
        <div><br>
        </div>
        <div>Mike</div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
Triangle, NC Embedded Computing mailing list

To post message: <a href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a>
List info: <a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a>
TriEmbed web site: <a href="http://TriEmbed.org" target="_blank">http://TriEmbed.org</a>
To unsubscribe, click link and send a blank message: <a href="mailto:unsubscribe-TriEmbed@bitser.net?subject=unsubscribe" target="_blank">mailto:unsubscribe-TriEmbed@bitser.net?subject=unsubscribe</a>

</pre>
    </blockquote>
  </div>

_______________________________________________<br>
Triangle, NC Embedded Computing mailing list<br>
<br>
To post message: <a href="mailto:TriEmbed@triembed.org" target="_blank">TriEmbed@triembed.org</a><br>
List info: <a href="http://mail.triembed.org/mailman/listinfo/triembed_triembed.org" rel="noreferrer" target="_blank">http://mail.triembed.org/mailman/listinfo/triembed_triembed.org</a><br>
TriEmbed web site: <a href="http://TriEmbed.org" rel="noreferrer" target="_blank">http://TriEmbed.org</a><br>
To unsubscribe, click link and send a blank message: mailto:<a href="mailto:unsubscribe-TriEmbed@bitser.net" target="_blank">unsubscribe-TriEmbed@bitser.net</a>?subject=unsubscribe<br>
<br>
</blockquote></div>