Skip to content

21 RF24

Geo edited this page Sep 17, 2025 · 10 revisions

RF24 Mode

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.


🧩 Commands

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

⚠️ Important Warning (Transmission)

  • 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.

📝 Notes

  • The nRF24L01 is a very low‑cost 2.4 GHz transceiver.
  • scan reports 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.

⚙️ config

Configure the RF24 pins/params:

  • CE (Chip Enable)
  • CSN (Chip Select)
  • SCK / MISO / MOSI (SPI bus)
  • VCC (3.3V)
image

📌 Example Usage

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

▶️ Demo

rf24

🔧 Hardware

NRF24L_with_antenna_large_d9c1b462-1635-49aa-b8c3-4d0d3bdf0489

Clone this wiki locally