Serial communication is a method of data transfer where information is transmitted one bit at a time over a single communication path. This approach contrasts with parallel communication, where multiple bits are sent simultaneously across multiple channels.
Data bits transmitted one after another in sequence
Requires specific protocols to manage communication
Ensures data integrity through structured procedures
Uses one communication channel for bidirectional data
Uses special control characters to structure and manage data frames
Practical demonstration of protocol implementation in action
Techniques to prevent data misinterpretation as control commands
Efficient alternative using flag sequences instead of characters
Character-oriented protocols use specific control characters embedded within the data stream to define the structure and boundaries of transmitted data frames.
| Character | Function | Purpose |
|---|---|---|
| SYN | Synchronization | Establishes and maintains synchronization between sender and receiver |
| STX | Start of Text | Marks the beginning of the data field |
| ETX | End of Text | Marks the end of the data field |
| DLE | Data Link Escape | Used for achieving data transparency |
| BCC | Block Check Character | Error detection code for the frame |
A typical transmission sequence demonstrates how control and data characters are combined:
Problem: If the actual data contains bit patterns identical to control characters, the receiver may misinterpret data as control commands.
Solution: Use character escaping techniques with DLE (Data Link Escape) to distinguish control characters from data that looks like control characters.
Example: If data contains ETX, transmit as DLE ETX to indicate it's data, not a control command.
Bit-oriented protocols provide a more efficient alternative to character-oriented methods by using unique flag sequences to delimit frames rather than relying on 8-bit control characters.
Unique bit pattern (e.g., 01111110) marks frame boundaries
Hardware-level technique for data transparency
Better suited for high-speed communications
No character escaping needed
Purpose: Prevents data from accidentally containing the flag sequence (01111110)
Method: When transmitting data, if five consecutive 1s appear, automatically insert a 0. The receiver removes these stuffed bits.
Example:
| Aspect | Character-Oriented Protocol | Bit-Oriented Protocol |
|---|---|---|
| Frame Delimiter | 8-bit ASCII control characters (STX, ETX) | Unique flag bit sequence (01111110) |
| Data Transparency | Character escaping with DLE | Hardware bit stuffing/destuffing |
| Efficiency | Lower (character-based overhead) | Higher (bit-level processing) |
| Implementation | Software-intensive | Hardware-optimized |
| Speed | Suitable for moderate speeds | Optimized for high-speed links |
| Complexity | Simpler conceptually | More complex but more efficient |
| Use Cases | Legacy systems, text-based communication | Modern networks, high-speed data transfer |