Dec 23, 2011
I am trying to get serial port communication working between two PC's.
View 1 Replies
My environment is: XP SP3, 9 pin serial ports on both ends, connected by a null modem cable, Visual Basic 2010 Express.
I have a sending routine and a receiving routine, both based on the on line documentation.
There are no Errors, Warnings or messages.
Problem: The receiving machine shows no sign of receiving a message sent by the sending PC. I have tried making the sending PC into the receiving PC - makes no difference.
My sending routine looks like this:
Sub SendSerialData(ByVal SendData As String)
'Send string to serial port
Using com1 As IO.Ports.SerialPort = My.Computer.Ports.OpenSerialPort("COM1", 9600, Parity.None, 8, StopBits.One)