Posted by
Michael Schmid on
Jan 21, 2011; 8:55am
URL: http://imagej.273.s1.nabble.com/ImageJ-Arduino-Uno-no-communications-tp3685917p3685920.html
Hi Steve,
one problem that I have found with RXTX:
At least under Linux and Mac OS X, RXTX needs to write a lockfile to
make sure that there are no access conflicts with other applications.
Under OS X, this is usually in /var/lock. So you have to make sure
that the directory /var/lock exists and the user running ImageJ has
write access to this directory. With some RXTX versions, the lock
files may be also in /var/spool/uucp.
See also
http://rxtx.qbang.org/wiki/index.php/Trouble_shootingKeyspan USB-Serial adapter: Under Mac OS X, and probably under most
other operating systems, it needs a driver that is usually not
present in the standard distribution of the operating system. Without
installing the driver you won't see it as serial device.
Hope this helps,
Michael
________________________________________________________________
On 20 Jan 2011, at 20:02, Steve Nanchy wrote:
> 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.