A little problem of my serial port
Yanjun Luo
yjluo at panjet.net
Mon Sep 6 10:43:24 UTC 2004
On Mon, 6 Sep 2004 11:14:26 +0200, Stan wrote
> You must modify termios params.
> Here's a short example :
>
> #include <termios.h>
>
> struct termios Params;
>
> tcgetattr(STDIN_FILENO, &Params);
> Params.c_lflag &= ~(ICANON | ECHO);
> Params.c_cc[VMIN]=0;
> Params.c_cc[VTIME]=30;
> tcsetattr(STDIN_FILENO, TCSANOW, &Params);
Thank you, it's running now.
Regards,
Yanjun Luo.
More information about the users
mailing list