-
Notifications
You must be signed in to change notification settings - Fork 167
21 RF24
Geo edited this page Sep 17, 2025
·
10 revisions
The RF24 mode is designed to work with nRF24L01 transceiver modules, which operate in the 2.4 GHz ISM band. It is typically found in wireless devices such as computer mice, keyboards, game controllers, as well as in technologies operating in the 2.4 GHz band like Bluetooth and Wi-Fi.
| Command | Description |
|---|---|
scan |
Scan all 126 channels (2400–2525 MHz) and save the best channel |
sniff |
Raw packet sniffer at the selected channel (dump hex/ASCII) |
sweep |
Sweep over channels, estimates activity percent per channel |
jam |
Generate sweeping RF noise across a selected channel group to test interference and jamming effects. |
setchannel |
Set the operating channel (0–125 → 2400 + ch MHz) |
config |
Interactive setup of SPI pins and CE/CSN, then initialize NRF24 |
- Emitting RF energy may be regulated or illegal in your jurisdiction outside ISM rules.
- Avoid interfering with legitimate devices (mice, keyboards, remotes, Wi‑Fi, BLE).
- Keep output power and duty cycle minimal when testing.
- You are responsible for how you use these features.
- The nRF24L01 is a very low‑cost 2.4 GHz transceiver.
-
scanreports energy activity using RPD (Received Power Detector) and carrier sense flags. - Wideband protocols like Wi‑Fi appear as blocks of active channels (20+ wide).
- Narrowband signals (e.g., other nRF24 devices, 2.4 GHz peripherals) show as isolated peaks.
- RF24 cannot decode Wi‑Fi/BLE — only detect their presence.
Configure the RF24 pins/params:
- CE (Chip Enable)
- CSN (Chip Select)
- SCK / MISO / MOSI (SPI bus)
- VCC (3.3V)
config # Configure SPI + CE/CSN, initialize nRF24L01
setchannel # Tune the channel
sniff # Dump received packets
scan # Scan all 126 channels to find the best channel
sweep # Sweep all 126 channels to estimate activity

⚠️ Voltage Warning: Devices should only operate at 3.3V or 5V.
Do not connect peripherals using other voltage levels — doing so may damage your ESP32.