wewa
wewa

Reputation: 1678

SerialPort object does not receive any data under Windows XP

I have a SerialPort object to control a gsm modem connected to a virtual com port. My problem is that i do not receive any data under Windows XP. The DataReceived Event is not triggered nor outputs port.ReadExisting() any data if called periodically. But when i shut down my program and connect with putty to this port, the response of the modem is displayed.

Under Windows 7 data is received correctly.

What could be the problem here?

Upvotes: 0

Views: 301

Answers (1)

wewa
wewa

Reputation: 1678

Software handshake needs to be enabled.

this.serialPort.Handshake = System.IO.Ports.Handshake.XOnXOff;

I found this out by comparing the putty settings with the serial port settings in my program. So the problem was not the operating system itself, but the used flow control.

Upvotes: 1

Related Questions