The output of the PortOpener
program varies from PC to PC depending
on what's installed and what else is running. It's also changed a little
from the betas to the release version, even for the same configuration.
Currently when I run it on my PC this is the output I get:
COM1, a serial port, is not currently owned. COM2, a serial port, is currently owned by Port currently not owned. LPT1, a parallel port, is not currently owned. LPT2, a parallel port, is currently owned by Port currently not owned.You may see something a little different.
p. 509: In the third case of Example 17-5, "onwership" should be "ownership"
pp. 516-517: ThetestProperties()
method in Example 17-7, PortTester,
should read
public static void testProperties(CommPort thePort) {
try {
thePort.enableReceiveThreshold(10);
System.out.println("Receive threshold supported");
}
catch (UnsupportedCommOperationException e) {
System.out.println("Receive threshold not supported");
}
try {
thePort.enableReceiveTimeout(10);
System.out.println("Receive timeout supported");
}
catch (UnsupportedCommOperationException e) {
System.out.println("Receive timeout not supported");
}
try {
thePort.enableReceiveFraming(10);
System.out.println("Receive framing supported");
}
catch (UnsupportedCommOperationException e) {
System.out.println("Receive framing not supported");
}
}
p. 520: In the last code fragment on the page, the &
should
be a |
. That is,
com1.setFlowControlMode(SerialPort.FLOWCONTROL_RTSCTS_IN
| SerialPort.FLOWCONTROL_RTSCTS_OUT);