rs232 protocol RRS feed

  • Question

  • hi

    i hav to right rs232 protocol to communicate between two pcs in c or cpp can somone send me code i want detail functionality of rs232 protocol.

    Monday, August 16, 2010 9:31 AM


  • RS-232 is not a protocol - it is a specification of the electrical properties of the hardware interface like signal levels and input impedance - see chapter "RS-232" of my SerialPort tutorial.

    If you don't mind VB examples, the tutorial describes how to send and receive bytes through the serial port.

    On top of this you need a communication protocol. There are several possibilities where the simplest one is an ASCII protocol where each telegram is terminated with a given byte - usually LF or CR. What do you intend to do?



    Everything should be made as simple as possible, but not simpler. Any fool can write code that a computer can understand. Good programmers write code that humans understand.
    • Marked as answer by eryang Monday, August 23, 2010 7:37 AM
    Monday, August 16, 2010 5:31 PM