# Transmission Methods and Directions

- **Track:** Cambridge IGCSE™ Computer Science (0478 / 0984) (CAMBRIDGE IGCSE 0478)
- **Module:** Section 2: Data Transmission
- **Estimated Duration:** 15 minutes
- **Access:** Open Theory (All-Access for Interactive IDE &amp; Autotests)

---

## Theory & Conceptual Background

Data transmission refers to the movement of digital binary data from one device or component to another. Computer systems categorize data transmission along two dimensions: the **direction of travel** and the **number of bits sent concurrently**.

---

## Learning Objectives

- Compare and contrast **Simplex**, **Half-Duplex**, and **Full-Duplex** transmission directions.
- Compare **Serial** and **Parallel** data transmission methods, explaining data skew and crosstalk.
- Explain the operation, architecture, benefits, and drawbacks of the **Universal Serial Bus (USB)**.

---

## 1. Directions of Data Transmission

Data flow between two communicating endpoints occurs in one of three directional modes:

```text
Simplex:       [Sender]  ==============================>  [Receiver]
Half-Duplex:   [Device A] <=========== (Turn 1) =========  [Device B]
                          ========== (Turn 2) =========>
Full-Duplex:   [Device A] <============================>  [Device B]
```

### Simplex Transmission

- **Operation**: Data travels in **one direction only** at all times.
- **Example**:
- Computer sending video signals to a monitor.
- Barcode scanner sending scanned codes to a point-of-sale terminal.
- Sensor sending temperature data to a microcontroller.

### Half-Duplex Transmission

- **Operation**: Data travels in **both directions, but only one direction at a time**. Devices take turns transmitting; while one is sending, the other must listen.
- **Example**:
- Walkie-talkie two-way radios ("Push-to-talk").
- Early wireless communication systems where sender and receiver shared a single channel.

### Full-Duplex Transmission

- **Operation**: Data travels in **both directions simultaneously** at the same time.
- **Example**:
- Modern broadband fiber-optic internet connection.
- Smartphone telephone conversation (both parties can speak and hear at the exact same instant).

---

## 2. Serial vs Parallel Transmission

```text
SERIAL:    Bit 7 -> Bit 6 -> Bit 5 -> Bit 4 -> Bit 3 -> Bit 2 -> Bit 1 -> Bit 0  (Single Wire)

           Wire 7: Bit 7 -------------------------->
           Wire 6: Bit 6 -------------------------->
PARALLEL:  ...
           Wire 1: Bit 1 -------------------------->
           Wire 0: Bit 0 --------------------------> (Multiple Wires Simultaneously)
```

### Serial Data Transmission

- **How It Works**: Bits are transmitted **one by one sequentially** down a single physical wire or channel.
- **Characteristics**:
- **No Data Skew**: Because all bits travel down the exact same physical path, they cannot arrive out of synchronization.
- **Minimal Crosstalk**: Low electrical interference between adjacent wires.
- **Distance**: Reliable over long distances (hundreds of meters or across networks).
- **Cost**: Lower manufacturing cost because fewer wires and smaller connectors are needed.

### Parallel Data Transmission

- **How It Works**: Multiple bits (typically 8, 16, 32, or 64 bits simultaneously) are transmitted over **multiple parallel wires**.
- **Characteristics**:
- **High Transfer Rate over Very Short Distances**: Because 8 bits travel at the same moment, early engineers used it for internal CPU data buses and printers.
- **Data Skew**: Over longer cables, tiny variations in physical wire resistance, capacitance, and length cause electrical pulses to travel at slightly different speeds. The bits arrive out of sync, corrupting the byte.
- **Crosstalk**: High electromagnetic interference between closely packed parallel wires can induce voltages in adjacent lines, flipping bits.
- **Cable Bulk & Cost**: Thick, bulky cables with large multi-pin connectors.

---

## Summary Comparison: Serial vs Parallel

  
| Feature | Serial Transmission | Parallel Transmission |
| --- | --- | --- |
| **Number of Wires** | Single data line (or twisted pair). | Multiple parallel data lines (e.g. 8 or 16). |
| **Bit Timing** | One bit at a time sequentially. | Multiple bits simultaneously. |
| **Data Skew** | None (impossible on a single line). | Significant risk over medium/long distances. |
| **Crosstalk** | Minimal. | Severe over longer cables. |
| **Reliable Distance** | Long distances (kilometres). | Very short distances (typically $< 2$ metres). |
| **Modern Application** | USB, SATA, PCIe, Ethernet, Internet. | Internal CPU data buses (internal to motherboard/chip). |

---

## Written practice and self-review

The Universal Serial Bus (USB) is the dominant industry standard for connecting computer peripherals.

1. State **three distinct benefits** of using a USB connection compared to older legacy ports.
2. Describe **one technical limitation** of USB cables.

Write an explanation before checking the theory. Check that each claim answers the question, uses the correct concept and explains why it applies. Discuss uncertain points with a teacher. The structured exercise below checks specific facts; it does not automatically mark this explanation.

---

## Interactive Exercises & Autotest Specifications

### Exercise 1: Exam-Style Check: Serial vs Parallel Data Transmission (Multiple choice, 25 XP)

**Instructions:**
Why is high-speed serial transmission preferred over parallel transmission for long-distance external data connections such as USB?

**Options:**
- **A**: In parallel transmission over longer cables, bits travel at slightly different speeds across separate wires, causing data skew (de-synchronization) and cross-talk interference.
- **B**: Parallel transmission is too cheap to manufacture.
- **C**: Serial cables require 32 parallel wires to send one byte.
- **D**: Serial transmission only works in simplex mode.


**Autotest Expectations:**
- **Correct option selected**: `selection_match` -> Expected: `b`

### Exercise 2: Exam-Style Question: Classify Data Transmission Direction Scenarios (Fill in blank, 35 XP)

**Instructions:**
Classify the data transmission direction (Simplex, Half-Duplex, or Full-Duplex) for each scenario:

1. A computer sends audio data to a connected loudspeaker: [blank_1]
2. Two security guards communicate over two-way walkie-talkies (taking turns to transmit): [blank_2]
3. A video conference where participants speak and hear each other simultaneously: [blank_3]


**Starter Code:**
```text
{"prompt":"Classify each scenario as Simplex, Half-Duplex, or Full-Duplex:","template":"1. Computer to loudspeaker: [blank_1]\n2. Walkie-talkie communication: [blank_2]\n3. Simultaneous video call: [blank_3]","word_bank":["Simplex","Half-Duplex","Full-Duplex","Parallel","Serial","Asynchronous"],"blanks":[{"id":"blank_1"},{"id":"blank_2"},{"id":"blank_3"}]}
```

**Autotest Expectations:**
- **Loudspeaker is Simplex**: `text_exact` -> Expected: `Simplex`
- **Walkie-talkie is Half-Duplex**: `text_exact` -> Expected: `Half-Duplex`
- **Video call is Full-Duplex**: `text_exact` -> Expected: `Full-Duplex`

### Exercise 3: Application: Check the reasoning (Fill in blank, 30 XP)

**Instructions:**
Work out each answer before submitting. Both parties transmit at the same time: Only one direction is possible: Bits sent one after another over one channel:


**Starter Code:**
```text
{"prompt":"Application: Check the reasoning","template":"1. Both parties transmit at the same time: [blank_1]\n2. Only one direction is possible: [blank_2]\n3. Bits sent one after another over one channel: [blank_3]","blanks":[{"id":"blank_1"},{"id":"blank_2"},{"id":"blank_3"}],"word_bank":["full-duplex","simplex","serial","half-duplex","parallel","asymmetric"]}
```


