• 大小: 0.06M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-25
  • 语言: C#
  • 标签: C#  串口  c  

资源简介

C#串口助手,与下位机通信

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO.Ports;
using System.Text.Regularexpressions;

namespace SerialportSample
{
    public partial class SerialportSampleForm : Form
    {
        private SerialPort comm = new SerialPort();
        private StringBuilder builder = new StringBuilder();//避免在事件处理方法中反复的创建,定义到外面。
        private long received_count = 0;//接收计数
        private long send_count = 0;//发送计数

        public SerialportSampleForm()
        {
            InitializeComponent();
        }

        //窗体初始化
        private void Form1_Load(object sender EventArgs e)
        {
            //初始化下拉串口名称列表框
  

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

     文件      16384  2015-09-09 16:51  SerialportSample\SerialportSample\bin\Debug\SerialportSample.exe

     文件      38400  2015-09-09 16:51  SerialportSample\SerialportSample\bin\Debug\SerialportSample.pdb

     文件      24224  2015-09-09 16:53  SerialportSample\SerialportSample\bin\Debug\SerialportSample.vshost.exe

     文件        490  2013-06-18 20:28  SerialportSample\SerialportSample\bin\Debug\SerialportSample.vshost.exe.manifest

     文件       6110  2010-05-17 01:19  SerialportSample\SerialportSample\Form1.cs

     文件      15770  2010-05-17 01:06  SerialportSample\SerialportSample\Form1.Designer.cs

     文件       5817  2010-05-17 01:06  SerialportSample\SerialportSample\Form1.resx

     文件       2873  2015-09-09 16:51  SerialportSample\SerialportSample\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7071  2015-09-09 16:51  SerialportSample\SerialportSample\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        324  2010-05-17 01:19  SerialportSample\SerialportSample\obj\x86\Debug\GenerateResource.read.1.tlog

     文件        812  2010-05-17 01:19  SerialportSample\SerialportSample\obj\x86\Debug\GenerateResource.write.1.tlog

     文件       2675  2015-09-09 16:53  SerialportSample\SerialportSample\obj\x86\Debug\SerialportSample.csproj.FileListAbsolute.txt

     文件        977  2015-09-09 16:51  SerialportSample\SerialportSample\obj\x86\Debug\SerialportSample.csproj.GenerateResource.Cache

     文件       9180  2015-03-06 08:59  SerialportSample\SerialportSample\obj\x86\Debug\SerialportSample.csprojResolveAssemblyReference.cache

     文件      16384  2015-09-09 16:51  SerialportSample\SerialportSample\obj\x86\Debug\SerialportSample.exe

     文件      38400  2015-09-09 16:51  SerialportSample\SerialportSample\obj\x86\Debug\SerialportSample.pdb

     文件        180  2015-03-06 08:59  SerialportSample\SerialportSample\obj\x86\Debug\SerialportSample.Properties.Resources.resources

     文件        180  2015-03-06 08:59  SerialportSample\SerialportSample\obj\x86\Debug\SerialportSample.SerialportSampleForm.resources

     文件        523  2010-05-16 03:24  SerialportSample\SerialportSample\Program.cs

     文件       1468  2010-05-16 02:19  SerialportSample\SerialportSample\Properties\AssemblyInfo.cs

     文件       2858  2010-05-16 02:19  SerialportSample\SerialportSample\Properties\Resources.Designer.cs

     文件       5612  2010-05-16 02:19  SerialportSample\SerialportSample\Properties\Resources.resx

     文件       1099  2010-05-16 02:19  SerialportSample\SerialportSample\Properties\Settings.Designer.cs

     文件        249  2010-05-16 02:19  SerialportSample\SerialportSample\Properties\Settings.settings

     文件       3691  2010-05-16 02:31  SerialportSample\SerialportSample\SerialportSample.csproj

     文件        890  2010-05-16 02:19  SerialportSample\SerialportSample.sln

    ..A..H.     19456  2010-05-17 01:20  SerialportSample\SerialportSample.suo

    ..A..H.     38912  2015-09-09 16:56  SerialportSample\SerialportSample.v12.suo

     目录          0  2010-05-16 02:19  SerialportSample\SerialportSample\obj\x86\Debug\TempPE

     目录          0  2015-09-09 16:51  SerialportSample\SerialportSample\obj\x86\Debug

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

评论

共有 条评论