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.
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.