Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java comm API and reading from parallel ports

807588Oct 7 2008 — edited Mar 19 2009
I am using the Java comm API 2.0 with a windows system. I have had no problem reading or writing to serial ports. However, parallel ports can only write, they can not read input. THis is because the JVM always sees my parallel port in SPP (write-only) mode, even though in my BIOS it is set as ECP (read/write enabled). Trying to use the setMode() method fails every time with UnsupportedCommOperationException. From what I've read, I have never found an example where someome was able to receive input on their parallel port; they have only been able to write. I know my parallel port is capable of writing and reading, and I have tried this in multiple computers with the same results. Does anyone know a solution where I will be able to read data from the parallel port?

Thanks for your help,
Brady

UPDATE: I have also just tried this using the RXTX library since I heard it is better than the 2.0 hava comm API. This also produced the same results, claiming my parallel port is in write only mode.

Edited by: btv on Oct 7, 2008 8:15 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 16 2009
Added on Oct 7 2008
5 comments
141 views