I have five ttyACM devices that change order on bootup. I also run a (poorly written) program that runs on mono, that will only accept a device of format ttyACM# (where # is a number in sequential order, starting at 0, based on ttyACM devices in the system).
I already already created a rule like this:
SUBSYSTEM=="usb", ATTRS{idProduct}=="0200", ATTRS{idVendor}=="0658", SYMLINK+="ttyACMradio" which creates a symlink with a name not accepted by the app (due to template name mismatch). I also tried calling the symlink ttyACM9, but that isn't accepted by the app (due to ttyACM numbers not contiguous).
Is it possible to force the NAME of the device (not a symlink) so I can force a consistant order of ttyACM devices? How do I do so? The only references to NAME I can find in udev documentation refer to ethernet devices.
I'm sure someone will say fix the app, but it's not mine and the vendor has no interest in helping linux users. I may also add/remove ACM devices in the future, so I don't want to hard code ACM numbers starting right after the last real one). BTW, running AlmaLinux 9