• 大小: 0.66M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-23
  • 语言: C#
  • 标签: 串口通讯  

资源简介

有些下位机通过串口显示交互信息(可能是一次性,可能开机自动触发),上位机需要从中查找指定定关键字。这个时候就需要有一个能够实时接收并显示,并能够实时“等待”某个关键字,TerminalWaiter就是为此而来。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Threading;
using System.Collections;
using System.Reflection;
using System.IO.Ports;
using TerminalWaiter;

namespace TerminalWaiter
{
    public partial class Dbg_UI : UserControl
    {
        public EMoudle EMoudleInstance;
        public bool IsStoppingDataReceive=false;

        public Dbg_UI()
        {
            InitializeComponent();
            chb_D_CheckedChanged(null null);
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (string.IsNullOrEmpty(textBox1.Text))
            {
                richTextBox1.AppendText(“Textbox content can not be null!\r\n“);
                textBox1.Focus();
                return;
            }
            Thread thd = new Thread(new T

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     60928  2019-09-19 18:02  TerminalWaiter\.vs\BBKFxtrControl\v14\.suo

    ..A..H.     64512  2019-07-22 19:00  TerminalWaiter\.vs\Keysight34410A\v14\.suo

    ..A..H.     55296  2019-07-23 08:57  TerminalWaiter\.vs\KS34410A\v14\.suo

    ..A..H.     53248  2019-09-26 16:42  TerminalWaiter\.vs\TerminalWaiter\v14\.suo

     文件       7680  2019-07-22 14:29  TerminalWaiter\TerminalWaiter\.vs\Keysight34410A\v14\.suo

     文件        250  2019-09-21 18:42  TerminalWaiter\TerminalWaiter\bin\Debug\HardwareCFG.xml

     文件     386048  2019-11-14 09:03  TerminalWaiter\TerminalWaiter\bin\Debug\MyLib.dll

     文件     192000  2019-11-14 09:03  TerminalWaiter\TerminalWaiter\bin\Debug\MyLib.pdb

     文件      30208  2019-11-15 14:31  TerminalWaiter\TerminalWaiter\bin\Debug\TerminalWaiter.exe

     文件      44544  2019-11-15 14:31  TerminalWaiter\TerminalWaiter\bin\Debug\TerminalWaiter.pdb

     文件      22688  2019-11-15 14:31  TerminalWaiter\TerminalWaiter\bin\Debug\TerminalWaiter.vshost.exe

     文件        490  2018-04-12 07:35  TerminalWaiter\TerminalWaiter\bin\Debug\TerminalWaiter.vshost.exe.manifest

     文件       6719  2019-09-23 13:44  TerminalWaiter\TerminalWaiter\Dbg_UI.cs

     文件       8415  2019-09-23 13:42  TerminalWaiter\TerminalWaiter\Dbg_UI.designer.cs

     文件       5817  2019-09-23 13:42  TerminalWaiter\TerminalWaiter\Dbg_UI.resx

     文件       3689  2019-09-23 10:54  TerminalWaiter\TerminalWaiter\Dev_UI.cs

     文件       6593  2019-09-23 10:54  TerminalWaiter\TerminalWaiter\Dev_UI.Designer.cs

     文件      19578  2019-09-23 10:54  TerminalWaiter\TerminalWaiter\Dev_UI.resx

     文件       3995  2019-09-23 11:48  TerminalWaiter\TerminalWaiter\EMoudle.cs

     文件       2099  2019-09-19 14:41  TerminalWaiter\TerminalWaiter\obj\Debug\BBKFxtrControl.csproj.FileListAbsolute.txt

     文件       1259  2019-09-19 11:27  TerminalWaiter\TerminalWaiter\obj\Debug\BBKFxtrControl.csproj.GenerateResource.Cache

     文件       9218  2019-09-18 15:10  TerminalWaiter\TerminalWaiter\obj\Debug\BBKFxtrControl.csprojResolveAssemblyReference.cache

     文件     145920  2019-09-19 14:41  TerminalWaiter\TerminalWaiter\obj\Debug\BBKFxtrControl.dll

     文件      46460  2019-09-20 16:23  TerminalWaiter\TerminalWaiter\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6690  2019-11-15 14:31  TerminalWaiter\TerminalWaiter\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件       2873  2019-07-22 19:00  TerminalWaiter\TerminalWaiter\obj\Debug\Keysight34410A.csproj.FileListAbsolute.txt

     文件       1192  2019-07-22 19:00  TerminalWaiter\TerminalWaiter\obj\Debug\Keysight34410A.csproj.GenerateResource.Cache

     文件       9352  2019-07-22 16:39  TerminalWaiter\TerminalWaiter\obj\Debug\Keysight34410A.csprojResolveAssemblyReference.cache

     文件        180  2019-07-22 19:00  TerminalWaiter\TerminalWaiter\obj\Debug\Keysight34410A.FormDiag.resources

     文件        180  2019-07-22 19:00  TerminalWaiter\TerminalWaiter\obj\Debug\Keysight34410A.UserControl_UI.resources

............此处省略63个文件信息

评论

共有 条评论