Re: About serial communication



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

.



Relevant Pages

  • Re: What we expect out of the next generation Xbox
    ... MMORPGs or other MMO games that use a persistent world. ... For a MMOFPS game that does not use a persistent world, ... on a console, but I suspect, that is going to change in the future. ... Communication is a HUGE element of MMO's ...
    (alt.games.video.xbox)
  • GPS access
    ... believe i need to enable it fro the console. ... Flowserve Corporation 1350 North Mountain Springs Parkway Springville, ... or copying of this communication is strictly prohibited. ... To join/leave the list, search archives, change list settings, * ...
    (comp.sys.hp.mpe)
  • Re: Controlling COBOL DDs named SYSOUT
    ... On Dec 28, 2007, at 10:16 AM, Tom Marchant wrote: ... message came out in the console, ... That did require communication but IIRC it was a push of the interrupt button and the program made a query and I responded and put in the "sequence number" and it started from there. ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)
  • Re: prom monitor not responding
    ... i tried to make a serial connection with a ... You could probably reset the PROM monitor environment from up there. ... I´d very much suspect the "console" you made up using hyperterm. ... Why not connect that Indigo2 with your O2 on a little ethernet, ...
    (comp.sys.sgi.hardware)
  • Re: Keeping my started tasks WTO output off the console?
    ... > How do I issue a WTO and have the output NOT go to the console? ... > I do want the WTO output in my joblog, but I would prefer to keep the ... > The information contained in this communication (including any attachments ... > or an agent responsible for delivering it to the intended recipient, ...
    (bit.listserv.ibm-main)