serial binary protocol

Thread Starter

embed_v

Joined Aug 30, 2010
24
hiii,
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.??



Thnx,
 

beenthere

Joined Apr 20, 2004
15,819
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.
 
Top