Re: About serial communication
- From: Josef Moellers <josef.moellers@xxxxxxxxxxxxxxxxxxx>
- Date: Fri, 18 Aug 2006 08:36:00 +0200
Dharmendra 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
http://www.faqs.org/docs/Linux-HOWTO/Serial-Programming-HOWTO.html#INTRO
http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html
(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.
First, I would check if the serial connection is OK by using a communication program on both ends, e.g. minicom.
A possible error might be that you didn't use a "Null-Modem"-Cable.
If you can establish the working if the connection, you could try to strip down your program to the bare essential and post it here. It's hard to diagnose something one doesn't know.
Also, you could run your program under "strace" and check whether all system calls behave as you would expect them, especially those that do the serial communication stuff.
--
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize
-- T. Pratchett
.
- References:
- About serial communication
- From: Dharmendra
- About serial communication
- Prev by Date: What is the best tool for traceing the driver??
- Next by Date: Re: About serial communication
- Previous by thread: About serial communication
- Next by thread: Re: About serial communication
- Index(es):
Relevant Pages
|