On Sun 2016-10-23 21:50:32 -0400, Vagrant Cascadian <[email protected]> wrote:
>> It would be nice if cereal could support using the /dev/serial/by-id/
>> symlinks.
>
> Apparently, the lock file used needs to substitude "/" characters for
> something else, and then using /dev/serial/by-id/ should work fine...

right, i think that cereal currently assumes that the devices will be
found directly under /dev.

>> Any other suggestions for reliably having cereal consistantly use the
>> appropriate /dev/ttyUSBn... which might be better anyways, because not
>> all the USB adapters used produce a consistant /dev/serial/by-id/
>
> Current workaround is to only use USB serial adapters that actually have
> a unique serial number, and to set up a udev rule that creates a symlink
> in /dev/ttyUSB-* for each device:
>
>  /etc/udev/rules.d/70-persistent-usb-serial.rules:
>  KERNEL=="ttyUSB[0-9]*", ATTRS{serial}=="ABCDEF", SYMLINK+="ttyUSB-abcdef"

this is the approach i've used in the past; i don't know that i've ever
noticed /dev/serial/by-id/ before.  do you know when udev started doing
this?

> Obviously, this will still cause issues if additional cereal
> configurations (or other software) also uses the "real" /dev/ttyUSB*
> devices...

right, that'd be a problem.

Do you have a patch that lets cereal work for you?  this project has
been in maintenance mode for quite a while now.

     --dkg

Reply via email to