http://blog.sina.com.cn/s/blog_6c67dab30101p3vn.html ------------------------------------------------------------------------------- public partial class Form1 : Form { int k = 0; int[] crc_data1 = { 0, 0 }; int[] crc_data2 = { 0, 0, 0, 0, 0 }; int[] crc_data3 = { 0, 0, 0, 0, 0 }; int x = 0; short qtemp; byte[] new_byte1 = { 0, 0, 0, 0, 0, 0, 0 }; SolidBrush bush1 = new SolidBrush(Color.Red); SolidBrush bush2 = new SolidBrush(Color.Green); public Form1() { InitializeComponent(); } //串口初始化 private void Form1_Load(object sender, EventArgs e) { serialPort1.PortName = "COM3"; serialPort1.BaudRate