Serial Comunication

how to do a serial comunication in C?
I need to set Bps, Parity, etc…

Take a look at the tc* family of operations, particularily tcgetattr and
tcsetattr.

cheers,

Kris

“eu” <scaraqnx@yahoo.com.br> wrote in message
news:ap1afc$gu7$1@inn.qnx.com

how to do a serial comunication in C?
I need to set Bps, Parity, etc…

Kris Warkentin <kewarken@qnx.com> wrote:

Take a look at the tc* family of operations, particularily tcgetattr and
tcsetattr.

And our docs aren’t always the clearest on how to do this…but we do
implement Posix here, so any general Posix/Unix description of how to
do this will generally work in the QNX 6 environment as well.

Advanced Programming in the Unix Environment by W. Richard Stevens
has a good chapter on this kind of stuff.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Another great book for this with more of a tutorial view is ‘Beginning Linux
Programming’ - Matthew and Stones, Wrox Press.

It says Linux but the vast majority of it is applicable to general Unix and
QNX programming. Very easy to read and understand.

cheers,

Kris

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:ap3phk$g26$2@nntp.qnx.com

Kris Warkentin <> kewarken@qnx.com> > wrote:
Take a look at the tc* family of operations, particularily tcgetattr and
tcsetattr.

And our docs aren’t always the clearest on how to do this…but we do
implement Posix here, so any general Posix/Unix description of how to
do this will generally work in the QNX 6 environment as well.

Advanced Programming in the Unix Environment by W. Richard Stevens
has a good chapter on this kind of stuff.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.