Tty ACM numbers

I have 10 arduino devices connected to my comuter through a hub,
how can I run a shell script that would produce a list of the ACM ports the devices are connected to?
for example: ["ttyACM0" , "ttyACM1" , ..."ttyACM9"]

I am working on linux.

Thank you

Have a look in /dev/serial/by-id.

thank you!!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.