Renaming serial ports in unix
Hello everyone, this is my first post and I am by no means a unix expert, so I hope I explain my issue well.
I'm on a mac (mac mini), 10.7.
My question is about serial port names. I have an arduino microcontroller plugged in via usb, and every time the computer is shut down it gives the arduino a new auto-generated name (some variation of tty.usbmodem111 or tty.usbmodem121).
The problem is that I am communicating with my arduino via firmata with an external program where I have set the correct serial port name by hand. So of course, whenever the computer restarts and then renames the serial port that my arduino is on, my program can no longer find it!
So I need to find a way to manage this issue, either by making sure it always names the arduino serial port consistently. Or, maybe a script that can be executed to re-name the serial port to something pre-set. Or any other ideas for dealing with this renaming issue.
I really need to solve this problem, as I will not be able to rename the serial port by hand each time.
Any help would by very greatly appreciated, I really need to solve this issue.
|Thread Tools||Search this Thread|
|More UNIX and Linux Forum Topics You Might Find Helpful|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Help with serial ports.||ftwojtek||HP-UX||2||03-10-2012 01:19 PM|
|Serial Ports - locking them, checking if they are open||Oak||Programming||1||02-14-2005 01:36 PM|
|PERL:controlling serial ports ?||perleo||Shell Programming and Scripting||1||06-13-2003 03:42 PM|
|Installing a modem on a serial accelerator ports||kikkin||UNIX for Dummies Questions & Answers||1||02-20-2001 09:49 PM|
|Serial Ports, wacom tablet under unix||Salwey||UNIX for Dummies Questions & Answers||3||01-10-2001 01:27 PM|