I have Python and C++ programs that interface with the onboard Arduino 101. When the 101 restarts, it often switches between dev/ttyACM0 and dev/tty/ACM1. It's quite annoying to change the code (especially in C++). Is there any way to ensure that the Curie is always connected to the same communicating device (e.g., ACM0)? Alternatively, I gather I could have the code determine which to use, but haven't yet pursued that route. Thanks!
A way to deal with this is with udev rules. http://hintshop.ludvig.co.nz/show/persistent-names-usb-serial-devices/ This way you can add a rule so that a specific device will always come up with same symbolic link in linux You could even change the symbolic link from /dev/ttyACM0 to /dev/arduino if you wanted.