public MeasureAppModule(String comPort, Map<String, String> map) {
			try {
				this.comPort = comPort;
				this.map = map;
				serialPort = (SerialPort) portId.open("SimpleReadApp", 2000);
				inputStream = serialPort.getInputStream();
				serialPort.addEventListener(this);
				serialPort.notifyOnDataAvailable(true);
				serialPort.setSerialPortParams(9600, SerialPort.DATABITS_8, SerialPort.STOPBITS_1, SerialPort.PARITY_NONE);
			}
			// 端口已被占用
			catch (PortInUseException e) {
				e.printStackTrace();
			}
			// 读取IO流失败
			catch (IOException e) {
				e.printStackTrace();
			}

			catch (TooManyListenersException e) {
				e.printStackTrace();
			}
			// 不支持的Comm操作异常
			catch (UnsupportedCommOperationException e) {
				e.printStackTrace();
			}
		}