if are using the ports as ACM while turning on and off there is a chance of changing the port from ACM0 to ACM1 ACM2 and ACM3 how can we set auto detection of our device no matter which ever port we are connecting?

asked 2020-04-08 03:19:29 -0500

Jishnu gravatar image

iam using two arduinos simultaneously .what I noticed is that when Iam turning ON and OFF my robot some times the port is changing from ACM0 to ACM1 and all.is there is any way to rectify that??Insted of port why can't we add the serial number of the device so that even when we are changing the port the device will connect properly.if anyof you can do that please send me an example code

edit retag flag offensive close merge delete

Comments

Quick comment: look into udev and how to create persistent device files / symlinks for serial-to-usb devices based on their serial numbers.

There should be no need to write any programs yourself.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-08 03:57:38 -0500 )edit