Local Asynchronous Communications and Data Transmission Protocols
Bit-Wise Data Transmission Principles
Fundamental Requirements for Bit Transmission:
Energy Encoding: Conversion of binary digital bits (s and s) into physical energy formats.
Medium Propagation: Transmission of physical energy through a physical medium.
Energy Decoding: Reception and conversion of physical energy back into digital bits.
Energy Forms: Data energy can manifest as electric current, radio waves, infrared pulses, or optical light signals.
System Agreement: The transmitter and receiver must explicitly agree on the exact encoding scheme and physical transmission timing parameters.
Transmission Methods: Parallel vs. Serial
Parallel Transmission:
Mechanism: Sends multiple data bits simultaneously over separate parallel channels (individual wires or distinct frequency bands) within the same cable or radio path.
Synchronization: All parallel bits are synchronized to a shared clock signal.
Data Unit: Typically transfers ( or character) at a time.
Primary Example: Legacy connections between a personal computer and a printer via a parallel printer port and parallel cable.
Serial Transmission:
Mechanism: Sends data bits sequentially, one after another, across a single transmission channel or wire.
Trade-Offs: Reduces physical wiring costs and complexity, but decreases maximum data transfer speed relative to parallel modes.
Primary Example: Serial connections between a computer and a modem utilizing the RS-232 protocol.
Timing Classes in Serial Transmission
Synchronous Communication:
Real-time communication occurring when endpoints are connected simultaneously.
Examples include landline phone calls, Skype voice/video calls, real-time text chat, and face-to-face conversation.
Isochronous Communication:
Time-dependent data transmission operating under strict delivery time constraints.
Slot Allocation: Assigns each transmitting data source a fixed duration slot within every cyclic loop across all sources, guaranteeing regular transmission opportunities.
Examples include real-time voice streams, live video feeds, and high-frequency telemetry.
Asynchronous Communication:
Characteristics: Data is transmitted at irregular intervals rather than in a continuous, steady stream (time-delayed delivery).
Coordination: Operates without explicit coordination between the transmitter and receiver regarding the exact arrival timing of individual bits.
Arbitrary Delays: Transmitters can wait arbitrarily long periods between successive transmissions (e.g., a computer keyboard waiting for user keystrokes).
Signal Properties: The raw physical electrical signal does not inherently contain timing information defining where individual bits begin or end.
Hardware Implementations: RS-232 serial devices (such as IBM-compatible computer COM ports 1, 2, 3, and 4), Asynchronous Transfer Mode (ATM), PS/2 ports, keyboards, and computer mice.
Software and Communication Examples: Snail mail, emails, Springdoo messages, blogs, forums, podcasts, videoblogs (vlogs), discussion boards, and cellular SMS text messaging.
Signal Encoding Standards and Voltage Schemes
Voltage-Based Encoding:
Represents binary values through varying electrical voltage levels across a conductor.
Common Standard Logic:
Negative Voltage = Binary
Positive Voltage = Binary
Standards Organizations:
Standards define system operation to ensure interoperability between equipment manufactured by different vendors.
ITU: International Telecommunications Union
EIA: Electronic Industries Association
IEEE: Institute for Electrical and Electronics Engineers
The RS-232 Standard (RS-232-C)
Overview:
Standard developed by the EIA for character-based serial asynchronous data transfer across copper wiring.
Formal standard specification name: RS-232-C.
Serial: Encodes and transmits bits one bit at a time.
Asynchronous: Characters can be transmitted at any arbitrary time without individual bit synchronization.
Physical and Electrical Specifications:
Maximum Distance: Cable length must be less than .
Voltage Boundaries: Represents binary data using differential voltages between and .
Connector Standard: Uses a 25-pin connector (DB-25), with designated pins mapped to data lines, electrical ground, and hardware control signals.
Pin Assignment Rules:
Computer Transmit Data (TXD): Pin 2
Computer Receive Data (RXD): Pin 3
Modem Pin Mapping: Inverted relative to the computer (Transmits on Pin 3, Receives on Pin 2).
Idle Wire State: The transmitter never leaves the physical wire at . When idle, the transmitter actively applies a continuous negative voltage (binary ).
RS-232 Signal Terminology:
MARK: Represents a negative voltage, corresponding to binary logic
SPACE: Represents a positive voltage, corresponding to binary logic
Character Framing and Timing in RS-232
Asynchronous Character Framing:
Data is transferred as discrete characters of fixed size and format.
Start Bit: The transmitter signals the start of a character by pulling the voltage from negative to positive (transmitting a binary ). The receiver uses this voltage transition to detect character arrival.
Data Bits: Usually consists of representing the character.
Stop Bit(s): After character payload transmission, the transmitter sends (a binary , corresponding to negative voltage / MARK) to return the line to idle.
Transmission Overhead: Sending a single character requires sending across the wire ().
Transmission Rate Metrics:
Baud Rate: Measures the number of physical signal state changes per second.
Bits Per Second (bps): Measures the actual number of logical data bits transferred per second.
Relationship: Baud rate and bit rate are not inherently identical if multi-level signaling is used; however, in RS-232 binary signaling, the baud rate equals the bit rate.
Rate Configuration: Bit rate alignment between endpoints is configured via hardware switch settings, software configurations, or automatic baud rate detection.
Framing Errors and BREAK Signals:
Framing Error: Occurs when transmitter and receiver operate at mismatched bit speeds, causing the stop bit to not be detected at the expected time interval.
BREAK Signal: An intentional, forced framing error transmitted by RS-232 equipment as a control signal.
Duplexing and High-Speed Serial Alternatives
Full-Duplex Communication:
Enables both connected endpoints to send and receive data simultaneously.
Requires a dedicated electrical transmission path in each direction.
Universal Serial Bus (USB):
Modern serial communication standard providing higher transfer bandwidth than legacy RS-232.
Data Rates: Supports speeds up to under the USB 2.0 specification.
4-Wire Physical Cable Interface:
allocated for differential data signals
allocated for power supply
allocated for electrical ground signal
Physical Hardware Constraints and Tolerances
Signal Imperfections:
Physical digital hardware cannot instantaneously step between voltage levels, creating non-ideal square wave transitions.
External electromagnetic interference and extended wire lengths cause physical signal attenuation and waveform distortion.
Tolerance Specifications:
The RS-232 specification establishes explicit limits defining the signal waveform precision required of transmitters and the degree of distortion tolerance required of receivers.