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.

相关推荐
xbzb9 天前
IP、掩码、网关、DNS 到底谁管什么?网络基础与七种设备一次讲清
网络·网关·mac·ip·dns·掩码
sbjdhjd15 天前
从 VLAN 到 MSTP 的交换网络入门
网络·计算机网络·mac·ip·stp·vlan·交换机
Web3&Basketball17 天前
Meta Muse 816B 实测:两台 Mac 本地跑通
macos·大模型·mac·本地部署·moe·显存优化·meta muse
CocoaKier23 天前
如何安装旧版的MacOS系统?
macos·ios·mac
Hello_Pyhx25 天前
WinDirStat 2.9.3:从目录扫描到可复查的占用报表
windows·mac·垃圾清理
OliverQiu1 个月前
开源一个 macOS 小工具:集中管理 ChatGPT 的网络启动配置
macos·chatgpt·swiftui·mac·proxy·codex·dmg
bug和崩溃我都要1 个月前
QT 开发的专业截图录屏工具 - macOS版 / Windows版
windows·qt·mac·录屏·截屏
Fcy6481 个月前
Linux下 数据链路层详解(从以太网到ARP协议)
linux·mac·以太网·数据链路层·arp
我命由我123452 个月前
Mac 操作系统 - 一些使用记录
运维·windows·学习·系统安全·运维开发·mac·学习方法