Пример #1
0
        protected void FileTransmitting(atResult result)
        {
            if(result.ResultType == LYC.Common.ATResultType.Success)
            {
                if(m_IsDownLoad)
                {
                    MessageBox.Show("DownLoad Successed!");
                }
                else
                {
                    MessageBox.Show("ReadBack Successed!");
                }
            }
            
            else if(result.ResultType == LYC.Common.ATResultType.Failure)
            {
                if(m_IsDownLoad)
                {
                    MessageBox.Show("DownLoad Failure!");
                }
                else
                {
                    MessageBox.Show("ReadBack Failure!");
                }

            }
            else if(result.ResultType == LYC.Common.ATResultType.TimeOut)
            {
                MessageBox.Show("Time Out!");
            }
            FileTransmittingCallback(result);
        }
Пример #2
0
 protected void ReceivedConnectReponse(atResult result)
 {
     if(result.ResultType == LYC.Common.ATResultType.Message && result.ResultText.Length >=2)
     {
      if((result.ResultText)[0] == 'O' && (result.ResultText)[1] == 'K')
      {
         if(m_pre_net)
             m_connection = ConnectionType.NETWORK;
         else
             m_connection = ConnectionType.SERIAL_PORT;
         
      }
     }
 }
Пример #3
0
        protected void Rebooting(atResult result)
        {

            if(result.ResultType == LYC.Common.ATResultType.Message && result.ResultText.Length >=2)
            {
            if (result.ResultText.IndexOf("OK")!=-1)
            {
                    RebootingCallback();
                    if (m_spPort.IsOpen)
                    {
                        m_spPort.Close();
                    }
                    if (m_cmdClient.IsRun)
                    {
                        m_cmdClient.Stop();
                    }
                m_connection = ConnectionType.NONE;
            }
            }
        }      
Пример #4
0
 protected virtual void FileTransmittingCallback(atResult result)
 {
     return;
 }