Hi,
When I send 0xff over serial, I only recv 0x7f. My write/read type is unsigned char, so I can't see why I'm not recv'ing the MSB. Any ideas?
Thank you.
Hi,
When I send 0xff over serial, I only recv 0x7f. My write/read type is unsigned char, so I can't see why I'm not recv'ing the MSB. Any ideas?
Thank you.
Last edited by coletek; 04-02-2009 at 07:17 PM.
"What comes around, goes around"
Solved: As I suspected, it was a serial port config issue. I had the strip
parity bit option set (i.e. options.c_iflag |= (INPCK | ISTRIP)).
"What comes around, goes around"