This is my first message on fourm ....looking forward to reply
This is regarding serial port in visual basic 2008.
when i run the following VB program. After 2 minutes it will will show on my hyperterminal (configured at 9600, 8bit,1 stop bit ). And I will get strange characters like }~j2 .......
Basically, i need help in reading and writing data in ( hex ) and display messages on hyperterminal:
Code:
Expand|Select|Wrap|Line Numbers
- Public Class Form1
- Sub SendSerialData(ByVal data As String)
- ' send string to serial port
- Using com1 As IO.Ports.SerialPort = _
- My.Computer.Ports.OpenSerialPort("COM1")
- com1.WriteLine(data)
- End Using
- End Sub
- End Class