1

Linux termios modifying first character after serial port read()

view story
linux-howto

http://stackoverflow.com – My termios setup is modifying the first character read from the serial port using read(). I have a microcontroller talking to a linux box. The microcontroller responds to commands sent from the linux machine. The setup is as follows: microcontroller(PIC24F) RS485 port <--> RS485 to USB converter <--> Ubuntu PC. When I run a terminal program such as Cutecom everything works as planned. I send a command character to the PIC and I get a response however when I use my command line program the first character is being modified. Here is my code: #include <string.h> #include <stdl (HowTos)