@Override
	public void serialEvent(SerialPortEvent event) {
		
		
		if(event.isBREAK())
		{
			if(state!=SerialState.Disconnected)
			{
				disconnect();
				System.out.println(">>Break);"); //$NON-NLS-1$
			}
		}
		if(event.isERR())
		{
			if(state!=SerialState.Disconnected)
			{
				disconnect();
				System.out.println(">>Error"); //$NON-NLS-1$
			}
		}
		if(serialPort == null)
			System.out.println(">>Null"); //$NON-NLS-1$

	}