使用VB.net 2005编写串口通信程序,自收自发没问题,但是发送出去后,在串口调试助手显示 Dim buffer As Byte() = System.Text.Encoding.ASCII.GetBytes("aaaaaaa") Dim offset As Integer = 0 Dim count As Integer = 4 Try RS232.Write(buffer, 0, buffer.Length) f = True Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.OkOnly) f = False End Try If f Then Rcount += Me.SendTextBox.Text.Length Me.Send_count_status.Text = "发送:" + Rcount.ToString End If