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(
 
Ad

Advertisements

T

Thomas Lutz

To preserve the parity bit set the parity to None and use 8 databits.
 

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

Similar Threads

COM port query 1
Com port locks up computer 0
USB-to-Serial Losing COM port in 2000 but not in XP 0
COM Objects 2
com+ issues 0
Serial Port Driver 4
Configure COM+ Queued Components 0
Event Viewer Com + error 1

Top