Reading COM port in Binary mode

T

tapsto

I am openning a COM port and reading data. The data coming to the COM port
is "Odd parity". When I read the data from the COM port the parity bit is
stripped. How to I configure it such that the parity bit is preserved.

Thanks

psuedo code:
CreateFile( "COM1", GENERIC_READ, .....)
....
SetCommState(....
SetCommTimeouts(...
.....
WaitCommEvent( .....
....
ReadFile(
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top