Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to receive binary data on mscomm

Status
Not open for further replies.

zaknwfp

Technical User
Jul 30, 2004
5
US
I have mscomm inputMode property set to 1 but all I receive is one no matter what I send to it. When I set the inputMode property to 0 and then read the input data as

in_dat = m_comm.GetInput();

buffer = (*in_dat.bstrVal); // buffer is integer array


I get the right data but some bytes are not received correct eventhough there is no framing, overrun, or parity error. Specifically bytes from 0x80 to 0x8F excluding 0x81,0x8D,0x8F are not received correct. For some reason the bytes are read as two byte number.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top