tty = (SerialPort) port.openPort("Penman Driver", 1000);
tty = (SerialPort) port.open("Penman Driver", 1000);
	private void init_comm(String portName) throws NoSuchPortException,PortInUseException,			IOException,UnsupportedCommOperationException {		// get list of ports available on this particular computer.		// Enumeration pList = CommPortIdentifier.getPortIdentifiers();		// Print the list. A GUI program would put these in a chooser!		// while (pList.hasMoreElements()) {			// CommPortIdentifier cpi = (CommPortIdentifier)pList.nextElement();			// System.err.println("Port " + cpi.getName());		// }				// Open a port. 		CommPortIdentifier port =			CommPortIdentifier.getPortIdentifier(portName);		// This form of openPort takes an Application Name and a timeout.		tty = (SerialPort) port.openPort("Penman Driver", 1000);		// set up the serial port		tty.setSerialPortParams(9600, SerialPort.DATABITS_8,			SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);		tty.setFlowcontrolMode(SerialPort.FLOWCTRL_RTSCTS_OUT|			SerialPort.FLOWCTRL_RTSCTS_OUT);		// Get the input and output streams		is = new DataInputStream(tty.getInputStream());		os = new DataOutputStream(tty.getOutputStream());	}