Re: ImageJ + Arduino Uno = no communications
Posted by Bill Christens-Barry on Jan 20, 2011; 10:48pm
URL: http://imagej.273.s1.nabble.com/ImageJ-Arduino-Uno-no-communications-tp3685917p3685921.html
Steve,
The macro code I gave works fine here whenever my Arduino Mega shows up in /dev. It also works fine using at least two other types of USB-connected microcontrollers. On occasion I have seen the error message you saw, although I think this only happened when the device hadn't yet appeared or if I had previously left the port open by mistake. You could trap the indISL error by modifying the macro code.
It took me many tries to get RXTX working on my machine. What finally did it was apparently finding the right versions of the various pieces among many that purport to be right. I wonder if the problem lies there. It sounds as though you have no evidence that RXTX is working correctly - is this true?
Bill
{
Thanks for all the replies. I've tried things but am no closer to a solution..
Jerome: the Arduino app works fine as it is. I'd done that install when upgrading to version 022. As long as the 'RXTXcomm.jar' and 'librxtxSerial.jnilib' are located in my /Library/Java/Extensions/ folder (which ImageJ requires to do any serial port operations) the Arduino doesn't work - it will show that ANY port specified in the Arduino app's 'Tools/Serial Port' menu is "in use by another application. try quitting... etc.".
Bill: see above. Also, (using IJ v1.44n) your macro prints a zero and crashes on line 6 (since indSDL returns a -1). IJ (using this RXTX) doesn't seem to be seeing ANY ports - modem, bluetooth, anything.
Gerrit: thanks. I know what one. all the ports show up (even tty.usbmodem1d11 that the Arduino application uses) but nothing is 'seen' by IJ when it is instructed to look for ports.
Even having to quit one app to work with the other would be sufficient for my work - it isn't really necessary to have them both open at the same time; which would make things easier when it comes to programming - but it seems like RXTX wants to take over everything (preventing Arduino from using any port) and then it doesn't SEE any ports. I've also tried connecting my (known good) Keyspan USB<>RS-232 adapter and it is also not seen by IJ. But Arduino and Keyspan are both recognized by System Profiler, so the machine knows they are there.
}