serial binary protocol

Discussion in 'Embedded Systems and Microcontrollers' started by embed_v, Feb 15, 2011.

  1. embed_v

    Thread Starter New Member

    Aug 30, 2010
    i want to impliment a serial binaryy protocol for my serial communication.
    there are two types of serial protocol format 1)TEXT 2) BINARY.

    i am want to use binary type so guide me how to code for it.
    and format is 1 byte rx and tx. over serial port.
    i knw about text format and about its coding in C but how will do this for BINARY.??

  2. beenthere

    Retired Moderator

    Apr 20, 2004
    When you send data, the control is the number of bytes sent. There is no essential difference between ASCII and binary.

    Common things to be specified are:
    1. Baud rate
    2. Number of start & stop bits.
    3. Parity

    Outside of that, you simply send the contents of a file. You do need to prepare the receiving computer for the transfer.
  3. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    Take a look at FTP (File Transfer Protocol).