Java comm API and reading from parallel ports
807588Oct 7 2008 — edited Mar 19 2009I 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