nathanielbelles
Member
Hello,
Background:
I'm trying to utilize the triple serial mode of USB on a Teensy 4.1 and I'm having issues with naming in Linux. There is another device that exists in the computer I'm connecting the Teensy to that generates a serial port that I cannot disable. This creates a problem because depending on the order on boot, if the Teensy is plugged in, sometimes the Teensy gets /dev/ttyACM0, ACM1, and ACM3 and then the internal device gets ACM2. Other times the Teensy gets ACM0, ACM2 and ACM3 and the internal device gets ACM1. The only way to guarantee the Teensy gets specific number ordering is to ensure the other internal device has started its serial port and gets ACM0 before plugging in the Teensy. This is unrealistic in my use-case because the computer is always remotely controlled through VNC and is physically hard to access so I want to be able to plug in the Teensy permanently and never have to touch it.
Question:
Is there a way to give specific names to specific serial ports on the Teensy? Can I choose the name it broadcasts to the computer?
Other ideas:
I have played a little bit with Udev rules but have not been able to figure out how to handle multiple serial ports that are specific enough to not include the other internal serial device. This leads me back to the idea of modifying the USB info that is broadcast to Linux.
Thanks!
Background:
I'm trying to utilize the triple serial mode of USB on a Teensy 4.1 and I'm having issues with naming in Linux. There is another device that exists in the computer I'm connecting the Teensy to that generates a serial port that I cannot disable. This creates a problem because depending on the order on boot, if the Teensy is plugged in, sometimes the Teensy gets /dev/ttyACM0, ACM1, and ACM3 and then the internal device gets ACM2. Other times the Teensy gets ACM0, ACM2 and ACM3 and the internal device gets ACM1. The only way to guarantee the Teensy gets specific number ordering is to ensure the other internal device has started its serial port and gets ACM0 before plugging in the Teensy. This is unrealistic in my use-case because the computer is always remotely controlled through VNC and is physically hard to access so I want to be able to plug in the Teensy permanently and never have to touch it.
Question:
Is there a way to give specific names to specific serial ports on the Teensy? Can I choose the name it broadcasts to the computer?
Other ideas:
I have played a little bit with Udev rules but have not been able to figure out how to handle multiple serial ports that are specific enough to not include the other internal serial device. This leads me back to the idea of modifying the USB info that is broadcast to Linux.
Thanks!