//创建一个串口通讯 SerialPort CurrentPort = null; CurrentPort = new SerialPort(); CurrentPort.ReadBufferSize = 128; CurrentPort.PortName = comName; //端口号 CurrentPort.BaudRate = bandRate; //比特率 CurrentPort.Parity =parity;//奇偶校验 CurrentPort.StopBits = ...
//创建一个串口通讯 SerialPort CurrentPort = null;CurrentPort = new SerialPort();CurrentPort.ReadBufferSize = 128;CurrentPort.PortName = comName; //端口号 CurrentPort.BaudRate = bandRate; //比特率 CurrentPort.Parity =parity;//奇偶校验 CurrentPort.StopBits = stop;//停止位 Curr...