Advertisement

12.06.2003 at 11:08PM PST, ID: 20818626
[x]
Attachment Details

reading and writing to a serial port thru C or C++

Asked by urif in Linux Programming

Tags: serial, port, linux, c

i'm currently trying to read and write a stream of either integers or chars into a device plugged in a serial port.
i know that linux has a device for it under /dev

i tried using the standard open() to open that device but it doesn't seem to be doing anything.
my question is, how do you communicate with a serial port?

any snippet will be of great help,

thanks in advance, i really appreciate any helpStart Free Trial
[+][-]12.07.2003 at 04:46AM PST, ID: 9891779

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Programming
Tags: serial, port, linux, c
Sign Up Now!
Solution Provided By: khkremer
Participating Experts: 1
Solution Grade: A
 
 
[+][-]12.07.2003 at 05:56AM PST, ID: 9891865

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32