public void SendCmd(string cmd) { m_ComPort.ClearBuffer(); m_ComPort.WriteLine(cmd); int ret = m_ComPort.WaitDetect(500); //default is 5's timeout // return ret; }