Re: termios ifnterface, raw?
My speed is B9600.
I thought setting the c_cflag baudrate is good enough. Is it not?
It sounds like cfmakeraw will take care of most of these flags.
--- On Fri 01/27, Peter Chubb < email@example.com > wrote:
From: Peter Chubb [mailto: firstname.lastname@example.org]
Date: Sat, 28 Jan 2006 07:05:59 +1100
Subject: Re: termios ifnterface, raw?
>>>>> "Robbie" == Robbie <email@example.com> writes:
Robbie> Hi, I'm using the program below to grab data from the serial
Robbie> port. The data is in a predefined language and does not follow
Robbie> the typical character set, but sending commands.
Where do you set the baudrate?
You need to do cfsetospeed() and cfsetispeed() on the struct termios
before the tcsetattr.
And you may find cfmakeraw() to be useful.
Join Excite! - http://www.excite.com
The most personalized portal on the Web!