Need some help with Serial Communication

This is a discussion on Need some help with Serial Communication within the C Programming forums, part of the General Programming Boards category; Hi all, can ny one of u help me with a serial communication program that i am trying to write. ...

  1. #1
    Im a Capricorn vsriharsha's Avatar
    Join Date
    Feb 2002
    Posts
    192

    Need some help with Serial Communication

    Hi all,
    can ny one of u help me with a serial communication program that i am trying to write.
    The functionality to be achieved is that I open a file (a text file) and send it through COM1 and it should be displayed on the screen as and when the characters are received at COM 2 (A NULL-MODEM Cable is connecting them both).
    I need to know if I have to follow any protocol or is it just enough if i send the characters one by one and run the recieve function in a constant loop until i send the EOF char (after i finish the file). (BOTH FUNCTIONS are RUNNING at the same time in two different MS-DOS windows).

    Plz. Help Me out Soon.

    Regards
    Help everyone you can

  2. #2
    Registered User
    Join Date
    Feb 2002
    Posts
    9

    Talking serial comm reply

    hi,

    there is no requirement of using any protocol,

    you can send the file directly,

    only thing to be taken care all the carriage return '\r' in the
    transmitter file is to be replaced by '\n' in the receiever if the
    both files are to be similar ,try this out it will work ,

    mail me if it works,

    mmjahagirdar@yahoo.co.in

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Duplex communication thro serial port
    By Priyachu in forum Linux Programming
    Replies: 1
    Last Post: 05-30-2009, 05:03 AM
  2. Serial port Communication
    By vin_pll in forum C++ Programming
    Replies: 23
    Last Post: 01-07-2009, 09:32 AM
  3. Serial pot communication through c program
    By vin_pll in forum C++ Programming
    Replies: 2
    Last Post: 01-01-2009, 12:52 PM
  4. Please help with serial communication problem - Long
    By spdylude in forum Windows Programming
    Replies: 3
    Last Post: 04-06-2005, 10:41 AM
  5. Serial communication packets
    By Roaring_Tiger in forum C Programming
    Replies: 3
    Last Post: 04-26-2003, 09:33 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21