2

So, the question is, is the content of /dev/serial/by-id unique?

Essentially the issue is I want to connect several (two or more) arduinos (potentially of different types, but they may all end up being leonardos) to the Raspberry Pi for the purposes of an automation system.

I'll be using the serial interfaces to communicate between the Raspberry Pi in Python and the Arduinos. I've run this on one of the leonardos (at present I only have one):

udevadm info -a -n /dev/ttyACM0| grep serial  
0000:00:1d.0

Is this a unique serial for my serial connection to the Pi? Can I rely on this to create a UDEV rule to assign a particular mount point, or does a unique and reliable mount point get already created in /dev/serial/by-id/, which I can use instead of hacked-udev rules?

  • 1
    This isn't really a Raspberry Pi question. More of a generic Linux question. Which is good because there are other forums to look at for an answer. I think /dev/serial/by-id will only be unique if the vendor has made them so. – joan Nov 30 '14 at 18:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.