You could use stty to set the serial speed with a system() call.


On 29 Jan 2007 18:26:04 -0500, DJ Delorie <> wrote:

"Nicole Phang" <> writes:
>      i_speed = cfsetispeed(&options, B19200);  //setting input baud
>      o_speed = cfsetospeed(&options, B19200);  //setting output baud
>                cfmakeraw(&attr);

1. Try cfmakeraw() before set*speed().

2. Try the stty while the program still holds the serial port open.
   Once the port is closed, all bets are off.

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
gumstix-users mailing list