I open the COM port (“COM1”) with CreateFile and then use WriteFile to send data to device. And as the title says, WriteFile always succeeds and even returns correct number of bytes in *lpNumberOfBytesWritten, as if it had really delivered the bytes, even though the device is not connected!! Is this normal behavior or did I messed up something hardly?
P.S.: I’m having problems with talking to my device so I’d like to know if this is normal or not.
The serial port is a fairly simple device, and I don’t think it has much notion of whether or not a device is attached. So, naturally, you can always write characters to the serial port and the bits will just harmlessly ooze out of the connector.