Can I read from and write to a serial port or device using Java on a Mac?
I know the filename of the device (in the /dev directory). I have a small Python program that can read and write that device. In Java I'm trying to read it with a FileInputStream or a FileReader. I get some response, usually a single byte of 0 or FF, and then nothing else.
Perhaps I need to set the baud rate and other serial port parameters. The Python program does this but I don't know how to do it in Java.
I've read that there used to be a "javax.comm" library, but it's no longer available, and probably wouldn't work on a Mac anyway.
Thanks, Frank