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

-RobB

On 29 Jan 2007 18:26:04 -0500, DJ Delorie < dj@delorie.com> wrote:

"Nicole Phang" < nphang@eink.com> 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 SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users