DataReceived
brian0031
这个作者很懒,什么都没留下…
展开
-
c#通过DataReceived接收串口数据(转换16进制)
private void Form1_Load(object sender, EventArgs e){ serialPort1.PortName = "COM1"; serialPort1.BaudRate = 9600; serialPort1.DataBits = 8; //数据位 serialPort1.Parity = System.IO.Po原创 2012-05-17 16:03:52 · 8701 阅读 · 0 评论 -
serialPort1_DataReceived 执行二次 messagebox
private void serialPort1_DataReceived(object sender, System.IO.Ports.SerialDataReceivedEventArgs e){ if (textBox1.Text.Trim().Length == 0 ) { System.Threading.Thread.Sleep(200); /原创 2012-05-23 12:18:01 · 1226 阅读 · 0 评论