点击或拖拽改变大小

SerialBaseSerialPortInni 方法 (String)

初始化串口信息,9600波特率,8位数据位,1位停止位,无奇偶校验
Initial serial port information, 9600 baud rate, 8 data bits, 1 stop bit, no parity

命名空间:  HslCommunication.Serial
程序集:  HslCommunication (在 HslCommunication.dll 中) 版本:11.8.2.0 (11.8.2.0)
语法
public virtual void SerialPortInni(
	string portName
)

参数

portName
类型:SystemString
端口号信息,例如"COM3"
备注
portName 支持格式化的方式,例如输入 COM3-9600-8-N-1,COM5-19200-7-E-2,其中奇偶校验的字母可选,N:无校验,O:奇校验,E:偶校验,停止位可选 0, 1, 2, 1.5 四种选项
参见