I am working under Linux, I try to connect an Arduino Mega, if I have no other device connected its port is usually /dev/ttyAMC0, the problem is that sometimes it is /dev/ttyAMC1 /dev/ttyAMC2.... So I wonder if the port has some kind of description or information of the device it is connected to, so when I open a port I can check that it is an Arduino connection and not other device. I work with C and C++

Thanks a lot!!