首页 > 代码库 > C#用SerialPort实现串口通讯

C#用SerialPort实现串口通讯

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.Text.RegularExpressions;
using System.IO.Ports;

namespace SerialPort
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }

        private void CmdSend_Click(object sender, EventArgs e)
        {
            string outdata = http://www.mamicode.com/TextSend.Text;>