-
Serial Port Silliness
Hello,
I'm just trying to get into some serial port programming. At the moment I'm treating it exactly as I would a file, so I get a handle using CreateFile and "\\\\.\\COM1" for the filename. Then I engage in a spot of send and receive with my device, using ReadFile and WriteFile.
The problem is, although I'm able to transmit properly, any bytes I receive seem to have their most significant bit cleared. 7 bit transfer? How do I turn this off?
-
-
Now see here's the funny thing:- you go through all the rigmarole of checking these settings in the Device Manager to make sure they're correct, and yet when you finally get a handle to the port Windows decides you'd be better off with 1200 baud, 7N1. GAAAAAHHHH!
Thanks Salem. :)