I've been trying (unsucessfully) to get my Arduino to talk to Processing, or rather to get Processing to listen to my serial port. In that process, I seem to have mangled something rather badly: no matter what I attempt, I always get a "processing.app.SerialException: Serial port '/dev/tty.usbserial-A4001LgE' already in use. Try quiting any programs that may be using it."
This is after a fresh reboot. I have not opened Processing yet, just the Arduino program to load code or listen to the serial port. Using "screen /dev/tty.usbserial-A4001LgE 9600" I can see the stream from the Arduino without any error...
Is this the result of something I did to install the RXTX libraries for Processing? Has anyone ever seen this before? It seems like the Java libraries are messed up rather than the serial port actually being in use...
But I'm using the IDE to push code onto the Arduino, which is when I get this error. I'm not using Processing and it isn't even open (which is why I'm wondering how it shows up in the error message...)
It probably doesn't have to do with Processing. The processing.app.SerialException you see in the error message is because Arduino is built on Processing's source code. Have you installed anything else that might use serial ports, like applications for monitoring bluetooth devices or syncing PDA's, etc?
Not recently. It was working until yesterday when I was trying to get Processing to properly read the serial port. This error occurs even after a fresh restart with no other application activated. And Screen still works, so the OS doesn't think the serial port is active.
You shouldn't need to manually install those files in that folder for Processing. Processing comes with versions of RXTX and configures itself so your sketches can find them.
Yup, I guess I know that now Thanks again for your suggestions, it is working well now and I installed it without hitch on a second computer. Let the fun begin!
-brett