private Boolean checkState()
	{
		int t=0;
		String msg="";
		Boolean stateOk=false;

		try {
			com.serialPort.writeByte((byte)SPACE_KEY);
			while( t < 100 )
			{
				t++;
				Thread.sleep(5);

				if( com.serialPort.getInputBufferBytesCount() > 0 )
				{
					msg += com.serialPort.readString();
					if( msg.endsWith("\r\n>") )
					{
						stateOk=true;
						msg="";
						break;
					}
				}
				
			}
		
		} catch(Exception e)
		{
			stateOk=false;
		}
		flushSerial();
		if( !stateOk )
		{
			return(false);
		}
		return(true);
		
	}