示例#1
0
        private void buttonManualSend_Click(object sender, EventArgs e)
        {
            //Manual send

            //get input
            List <byte> inputData = SupportFunctions.ASCIIHexStringToByteList(this.richTextBoxManualInput.Text);

            if (inputData == null)
            {
                this.UpdateStatusTerminal("Input Error - check input data", true);
                return;
            }

            if (this.checkBoxApplyTigerProtocol.Checked == true)
            {
                //apply Tiger
                inputData = ProtocolCommunicationsTiger.GeneratePacketForTx(inputData);
            }

            //Send
            this.SendToOpenSerialPort(inputData);
        }