Linux Serial Programming

I

ibwhoib

Hey all,

I caught a job where I have to write a linux daemon that communicates with a
device connected to a serial port. Here are some details.

I connect to the device in the standard fashion:

fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY);

I set the port options:
 
C

CBFalconer

ibwhoib said:
I caught a job where I have to write a linux daemon that
communicates with a device connected to a serial port. Here are
some details.

I connect to the device in the standard fashion:

fd = open(device, O_RDWR | O_NOCTTY | O_NDELAY);

I set the port options:

See below:

--
Some useful references:
<http://www.ungerhu.com/jxh/clc.welcome.txt>
<http://www.eskimo.com/~scs/C-faq/top.html>
<http://benpfaff.org/writings/clc/off-topic.html>
<http://anubis.dkuug.dk/jtc1/sc22/wg14/www/docs/n869/> (C99)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,710
Latest member
bernietqt

Latest Threads

Top