PDA

View Full Version : Reading from Serial Port in Java




JOD8FY
Apr 4, 2007, 08:28 PM
Hello Everyone,

I'm trying to create a simple Java applet that reads data coming in through a serial port. What I want to do is read the data coming in and display it in a text field. I have downloaded and installed the javacomm API already. I'd like to get to the point where the users could select the parameters themselves (like the SerialDemo example included with the API), but am willing for now to just settle having to manually input the parameters. Any help with this would be greatly appreciated!

Thanks,
JOD8FY :apple:



JOD8FY
Apr 5, 2007, 03:33 PM
I was hoping there would be a simple solution to this, but if there isn't, can anyone recommend me to a good resource (books etc)?

Thanks,
JOD8FY

osx-linux
Apr 5, 2007, 04:37 PM
Don't know too much about this myself, perhaps this will help you:


http://en.wikibooks.org/wiki/Serial_Programming:Serial_Java#JavaComm

JOD8FY
Apr 5, 2007, 08:06 PM
Thanks for your reply. However, it seems as though all of the resources I have thus far encountered are not written with Applets in mind. Any suggestions to steer me in the right direction?

Thanks again,
JOD8FY