public WcaInterfaceCommandResult SendCommandSync(WcaInterfaceAddress destination, byte cmd, byte[] data, out byte[] receivedData)
        {
            //  byte result = 0;
            receivedData = null;
            WcaInterfaceCommandResult result = WcaInterfaceCommandResult.ExecutionTimeout;

            if (m_Initilized)
            {
                GeneralCommand gcmd = new GeneralCommand(m_SerialInterface, 0x01, cmd, data, "");
                m_Target.Queue(gcmd);
                m_Target.Wait();

                if (gcmd.Result == WcaInterfaceCommandResult.PosAck)
                {
                    receivedData = gcmd.ReveivedData;
                }/*
                  * else if (gcmd.Result == WcaInterfaceCommandResult.NegAck)
                  * {
                  * result = 2;
                  * // receivedData = gcmd.ReveivedData;
                  * }
                  * else
                  * {
                  * result = 3;
                  * }*/
                result = gcmd.Result;
            }
            return(result);
        }
 public bool SendCommandASync(WcaInterfaceAddress destination, byte cmd)
 {
     return(false);
 }
 public WcaInterfaceCommandResult SendCommandSync(WcaInterfaceAddress destination, byte cmd, out byte[] receivedData)
 {
     return(SendCommandSync(destination, cmd, null, out receivedData));
 }