[TriEmbed] Is that ttyUSB0 or ttyUSB1 this time?

Michael Monaghan mike at chipworks.net
Fri Feb 19 17:33:33 CST 2021


Pete,

Do you have an example?  I've never tried hard links.

On Fri, Feb 19, 2021 at 6:11 PM Pete Soper via TriEmbed <
triembed at triembed.org> wrote:

> 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.
>
> -Pete
> On 2/19/21 5:54 PM, Michael Monaghan via TriEmbed wrote:
>
> 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!  This article
> <https://medium.com/@inegm/persistent-names-for-usb-serial-devices-in-linux-dev-ttyusbx-dev-custom-name-fd49b5db9af1> 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.
>
> One issue I ran into is my cheap clone manufacturer's love affair
> ATTRS{serial}=0001.    While the article relies on ATTRS{serial} 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.
>
> Mike
>
> _______________________________________________
> Triangle, NC Embedded Computing mailing list
>
> To post message: TriEmbed at triembed.org
> List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
> TriEmbed web site: http://TriEmbed.org
> To unsubscribe, click link and send a blank message: mailto:unsubscribe-TriEmbed at bitser.net?subject=unsubscribe <unsubscribe-TriEmbed at bitser.net?subject=unsubscribe>
>
> _______________________________________________
> Triangle, NC Embedded Computing mailing list
>
> To post message: TriEmbed at triembed.org
> List info: http://mail.triembed.org/mailman/listinfo/triembed_triembed.org
> TriEmbed web site: http://TriEmbed.org
> To unsubscribe, click link and send a blank message: mailto:
> unsubscribe-TriEmbed at bitser.net?subject=unsubscribe
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.triembed.org/pipermail/triembed_triembed.org/attachments/20210219/2313bad3/attachment.htm>


More information about the TriEmbed mailing list