资讯动态

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

发布时间:2026/10/22 18:59:11 来源:尧图企业网站定制
A good way to think about it is:Application ↓ MAC ↓ Baseband ↓ RF ↓ AntennaThese are different layers inside a wireless chip such asESP32-S31,Wi‑Fi,Bluetooth, or802.15.4radios.1. RF (Radio Frequency)RF is theanalog radio hardwarethat actually transmits and receives electromagnetic waves.Typical RF blocks:PA (Power Amplifier) LNA (Low Noise Amplifier) Mixer PLL Synthesizer ADC/DAC Antenna SwitchRF is responsible for:Generating 2.4GHz signals Receiving 2.4GHz signals Amplifying signals Channel tuningExample:Wi-Fi Channel 1 2412 MHzThe RF subsystem tunes itself to:2412 MHzand sends energy out through the antenna.Think of RF as:The radio transmitter and receiver.2. BasebandBaseband converts digital data into a waveform that RF can transmit, and vice versa.Example:Data: 101100101001Baseband performs:Modulation Demodulation Encoding Decoding Synchronization Error correctionFor example:Wi-FiBaseband handles:OFDM QPSK 16QAM 64QAM 1024QAMBluetoothBaseband handles:GFSK π/4-DQPSK 8DPSK802.15.4Baseband handles:O-QPSK DSSSSo:Application Data ↓ Baseband ↓ RF SignalThink 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 formattingMAC is a protocol layer.For example:Wi-Fi MACResponsible for:CSMA/CA ACK Association Authentication Beacon processingBluetooth MACResponsible for:Connection management Advertising Scanning Link establishment802.15.4 MACResponsible for:PAN ID Short address ACK Backoff Channel accessThink of MAC as:The traffic police.It decides:My turn? Your turn? Wait? Retry?Example: Sending HelloSuppose ESP32 sends:HelloApplicationSend HelloMACCreates packet:Destination Address Source Address CRC PayloadHelloBasebandConverts packet into:0 1 0 1 symbolsApplies:Encoding Modulation SynchronizationRFConverts waveform to:2.4GHz radio energyand sends it through the antenna.Real ESP32-S31 ExampleWhen using Wi‑Fi:TCP/IP ↓ Wi-Fi MAC ↓ Wi-Fi Baseband ↓ 2.4GHz RF ↓ AntennaWhen using BLE:BLE Host ↓ BLE MAC ↓ BLE Baseband ↓ 2.4GHz RF ↓ AntennaWhen using Thread (802.15.4):IPv6 ↓ 802.15.4 MAC ↓ 802.15.4 Baseband ↓ 2.4GHz RF ↓ AntennaMany modern chips share the same RF hardware while implementing multiple MAC/Baseband protocols.AnalogyImagine sending a package:MAC Logistics CompanyAddress? Tracking number? Retry if lost?Baseband Packaging MachinePack box Add labels Convert to transport format RF TruckPhysically moves packageFor ESP32-S31 SpecificallyThe advertised feature:Wi-Fi BLE 802.15.4 usually means:Shared 2.4GHz RF ↑ Wi-Fi Baseband BLE Baseband 802.15.4 Baseband ↑ Corresponding MACsThe 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.

读完文章,也想定制专属网站?

尧图设计师 24 小时内与您沟通定制方案

免费获取报价 →
↑