Understanding the Layers of Wireless Chips: RF, Baseband, and MAC in ESP32-S31

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.

相关推荐
杜子不疼.1 天前
2026 Mac 远控专项实测:我看着 UU 远程 Mac 端这一年
mac·远程工作
镰刀韭菜9 天前
2026 年 10 月 Mac 本地大模型:24GB / 64GB / 128GB 怎么选
mac·qwen·apple silicon·ollama·本地llm
Ceelog10 天前
CleanBit 安全高效的 Mac 磁盘清理助手
mac
csdn_aspnet12 天前
macOS 10 、Docker 玩轉 MySQL
运维·mysql·macos·docker·容器·mac
Cooper2512 天前
DDC 命令成功但屏幕不动:用 gamma 表重做亮度映射
python·mac
goehou12 天前
两台 Mac 拼成推理池,加机器不加内存
mac·集群·ollama·本地推理
fthux16 天前
总想着“忙完再休息”?让 Tick Rest 提醒你,先歇一会儿
开源·github·mac·swift·提醒·消息提醒·tick rest·tick rest for mac·消息提醒app
流浪00117 天前
计算机网络篇23:数据链路层——以太网帧格式与 MAC 地址,MTU 牵住 UDP 和 TCP,ARP 拿 IP 换 MAC
计算机网络·mac·数据链路层·arp·mtu·局域网通信
fthux18 天前
待办清单写满了,别忘了给休息留个位置:试试 Tick Rest
开源·github·mac·提醒·open source·消息提醒·tick rest·tick rest for mac·消息提醒app
csdn_aspnet19 天前
Redis 入门:Windows、Mac安装指南
数据库·windows·redis·缓存·mac