Re: About serial communication



"Dharmendra" <vasadia.linuxdevicedriver@xxxxxxxxx> wrote:
Hi all,

i am writing program for serail communication, in which whatever i
typed on a console of one computer must appear on console of other
computer which seriall connected using RS232.
i have use following documentation for the program

http://www.easysw.com/~mike/serial/serial.html#2_5

The above is a very good resource.

http://www.faqs.org/docs/Linux-HOWTO/Serial-Programming-HOWTO.html#INTRO

That one has too many errors and is confusing.

http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html

That particular program is *disgusting*.

(I have directly download COM.C program from this sites and
connected two PCs using serial line eventhough it is not working)

i deadly need your help. please help me what i have to do now.

The best thing you can do is is toss that particular program in
the bit heap and start over. The first URL you list above is an
excellent source of information. The second one is interesting
and informative, but the code has too many bugs.

I don't represent these as a solution to your program needs, but
there are several examples on my web page of how to properly
write serial com programs for Unix/Linux.

http://web.newsguy.com/floyd_davidson/code/

--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@xxxxxxxxxx
.