• 大小: 0.25M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: 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;
namespace SerialCommunicate
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false;
        }

        private void button1_Click(object sender EventArgs e)
        {
            try
            {
                serialPort1.PortName = comboBox1.Text;
                serialPort1.BaudRate = Convert.ToInt32(comboBox2.Text10);//十进制数据转换
                serialPort1.Open();
                button1.Enabled = false;//打开串口按钮不可用

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-03-30 10:15  SerialCommunicate\
     目录           0  2020-03-30 10:15  SerialCommunicate\.vs\
     目录           0  2020-03-30 10:15  SerialCommunicate\.vs\SerialCommunicate\
     目录           0  2020-03-30 10:15  SerialCommunicate\.vs\SerialCommunicate\v16\
     文件       44544  2020-04-20 11:12  SerialCommunicate\.vs\SerialCommunicate\v16\.suo
     目录           0  2020-03-30 10:15  SerialCommunicate\.vs\SerialCommunicate\v16\Server\
     目录           0  2020-04-20 11:12  SerialCommunicate\.vs\SerialCommunicate\v16\Server\sqlite3\
     文件           0  2020-03-30 10:06  SerialCommunicate\.vs\SerialCommunicate\v16\Server\sqlite3\db.lock
     文件      577536  2020-04-20 11:12  SerialCommunicate\.vs\SerialCommunicate\v16\Server\sqlite3\storage.ide
     目录           0  2020-04-20 11:12  SerialCommunicate\SerialCommunicate\
     文件       13899  2020-04-20 11:12  SerialCommunicate\SerialCommunicate\Form1.Designer.cs
     文件        5321  2020-04-20 11:12  SerialCommunicate\SerialCommunicate\Form1.cs
     文件        6189  2020-04-20 11:12  SerialCommunicate\SerialCommunicate\Form1.resx
     文件         498  2013-07-16 12:52  SerialCommunicate\SerialCommunicate\Program.cs
     目录           0  2020-03-30 10:15  SerialCommunicate\SerialCommunicate\Properties\
     文件        1372  2013-07-16 12:52  SerialCommunicate\SerialCommunicate\Properties\AssemblyInfo.cs
     文件        2886  2013-07-16 12:52  SerialCommunicate\SerialCommunicate\Properties\Resources.Designer.cs
     文件        5612  2013-07-16 12:52  SerialCommunicate\SerialCommunicate\Properties\Resources.resx
     文件        1104  2013-07-16 12:52  SerialCommunicate\SerialCommunicate\Properties\Settings.Designer.cs
     文件         249  2013-07-16 12:52  SerialCommunicate\SerialCommunicate\Properties\Settings.settings
     文件        3747  2013-07-16 12:54  SerialCommunicate\SerialCommunicate\SerialCommunicate.csproj
     目录           0  2020-03-30 10:15  SerialCommunicate\SerialCommunicate\bin\
     目录           0  2020-03-30 10:15  SerialCommunicate\SerialCommunicate\bin\Debug\
     文件       14848  2013-07-19 23:53  SerialCommunicate\SerialCommunicate\bin\Debug\SerialCommunicate.exe
     文件       36352  2013-07-19 23:53  SerialCommunicate\SerialCommunicate\bin\Debug\SerialCommunicate.pdb
     文件       22472  2020-04-20 09:53  SerialCommunicate\SerialCommunicate\bin\Debug\SerialCommunicate.vshost.exe
     文件         490  2015-06-04 12:48  SerialCommunicate\SerialCommunicate\bin\Debug\SerialCommunicate.vshost.exe.manifest
     文件       44032  2018-01-24 11:16  SerialCommunicate\SerialCommunicate\bin\Debug\lpk.dll
     目录           0  2020-03-30 10:15  SerialCommunicate\SerialCommunicate\obj\
     目录           0  2020-04-20 09:53  SerialCommunicate\SerialCommunicate\obj\Debug\
     文件        1423  2020-04-20 09:53  SerialCommunicate\SerialCommunicate\obj\Debug\DesignTimeResolveAssemblyReferences.cache
............此处省略13个文件信息

评论

共有 条评论