private void Button_Read_Click(object sender, RoutedEventArgs e)
        {
            // Generate "SCAN" request and send to reader
            string command = "~T";          // SOH + Read-Identifier

            AddLoggingText(string.Format("Send READ Request: {0}", command));

            if (((SolidColorBrush)border_Result.Background).Color != Colors.Transparent)
            {
                border_Result.Background = new SolidColorBrush(Colors.Transparent);
            }

            textBox_Data.Text = textBox_Label.Text = string.Empty;

            m_SpcInterface.SendSpcRequest(command);
        }
Example #2
0
        private static void SendReadRequest(SpcInterfaceControl _spcIntControl)
        {
            // Generate "SCAN" request and send to reader
            string command = "~T";          // SOH + Read-Identifier

            _spcIntControl.SendSpcRequest(command);
            Console.WriteLine(string.Format("\nSend READ Request: {0}", command));
        }
Example #3
0
        private static void SendWriteRequest(SpcInterfaceControl _spcIntControl)
        {
            if (string.IsNullOrEmpty(m_LastId))
            {
                return;
            }
            // Generate "WRITE" request and send to reader
            string command = "~W";                                                    // SOH + Write-Identifier

            command += m_LastId;                                                      // TID
            command += "ConsoleTest " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); // Equipment-data to write
            _spcIntControl.SendSpcRequest(command);
            Console.WriteLine(string.Format("\nSend WRITE Request: {0}", command));
        }