A good way to think about it is:
Application
↓
MAC
↓
Baseband
↓
RF
↓
Antenna
These are different layers inside a wireless chip such as ESP32-S31 , Wi‑Fi , Bluetooth , or 802.15.4 radios.
1. RF (Radio Frequency)
RF is the analog radio hardware that actually transmits and receives electromagnetic waves.
Typical RF blocks:
PA (Power Amplifier)
LNA (Low Noise Amplifier)
Mixer
PLL
Synthesizer
ADC/DAC
Antenna Switch
RF is responsible for:
Generating 2.4GHz signals
Receiving 2.4GHz signals
Amplifying signals
Channel tuning
Example:
Wi-Fi Channel 1
2412 MHz
The RF subsystem tunes itself to:
2412 MHz
and sends energy out through the antenna.
Think of RF as:
"The radio transmitter and receiver."
2. Baseband
Baseband converts digital data into a waveform that RF can transmit, and vice versa.
Example:
Data:
101100101001
Baseband performs:
Modulation
Demodulation
Encoding
Decoding
Synchronization
Error correction
For example:
Wi-Fi
Baseband handles:
OFDM
QPSK
16QAM
64QAM
1024QAM
Bluetooth
Baseband handles:
GFSK
π/4-DQPSK
8DPSK
802.15.4
Baseband handles:
O-QPSK
DSSS
So:
Application Data
↓
Baseband
↓
RF Signal
Think of baseband as:
"The modem."
Just like a cable modem converts bits into signals, the wireless baseband converts bits into radio symbols.
3. MAC (Media Access Control)
MAC decides:
When to transmit
Who can transmit
Addressing
Acknowledgements
Retries
Packet formatting
MAC is a protocol layer.
For example:
Wi-Fi MAC
Responsible for:
CSMA/CA
ACK
Association
Authentication
Beacon processing
Bluetooth MAC
Responsible for:
Connection management
Advertising
Scanning
Link establishment
802.15.4 MAC
Responsible for:
PAN ID
Short address
ACK
Backoff
Channel access
Think of MAC as:
"The traffic police."
It decides:
My turn?
Your turn?
Wait?
Retry?
Example: Sending "Hello"
Suppose ESP32 sends:
"Hello"
Application
Send Hello
MAC
Creates packet:
Destination Address
Source Address
CRC
Payload=Hello
Baseband
Converts packet into:
0
1
0
1
symbols
Applies:
Encoding
Modulation
Synchronization
RF
Converts waveform to:
2.4GHz radio energy
and sends it through the antenna.
Real ESP32-S31 Example
When using Wi‑Fi:
TCP/IP
↓
Wi-Fi MAC
↓
Wi-Fi Baseband
↓
2.4GHz RF
↓
Antenna
When using BLE:
BLE Host
↓
BLE MAC
↓
BLE Baseband
↓
2.4GHz RF
↓
Antenna
When using Thread (802.15.4):
IPv6
↓
802.15.4 MAC
↓
802.15.4 Baseband
↓
2.4GHz RF
↓
Antenna
Many modern chips share the same RF hardware while implementing multiple MAC/Baseband protocols.
Analogy
Imagine sending a package:
MAC = Logistics Company
Address?
Tracking number?
Retry if lost?
Baseband = Packaging Machine
Pack box
Add labels
Convert to transport format
``
RF = Truck
Physically moves package
For ESP32-S31 Specifically
The advertised feature:
Wi-Fi + BLE + 802.15.4
``
usually means:
Shared 2.4GHz RF
↑
Wi-Fi Baseband
BLE Baseband
802.15.4 Baseband
↑
Corresponding MACs
The RF hardware is largely shared, while different MAC and Baseband engines implement the protocol-specific behavior.
In one sentence:
-
RF = generates and receives the actual 2.4 GHz radio waves.
-
Baseband = converts bits ↔ radio symbols (modem function).
-
MAC = controls packet transmission, addressing, acknowledgements, and channel access.