C#, COM串口通讯基类
串口常用的使用流程1、初始化串口2、打开串口3、发送数据4、接收数据public class SerialCommon{ public SerialPort MySerialPort = new SerialPort(); public string[] GetPortNames() { return SerialPort.GetPortNames();//获取当前计算机的串行端口名…
串口常用的使用流程1、初始化串口2、打开串口3、发送数据4、接收数据public class SerialCommon{ public SerialPort MySerialPort = new SerialPort(); public string[] GetPortNames() { return SerialPort.GetPortNames();//获取当前计算机的串行端口名…