# cifertech/nrfbox architecture

> Architecture diagram of the GitHub repository cifertech/nrfbox, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/cifertech/nrfbox
- Repository: https://github.com/cifertech/nrfbox

## Overview

nRFBOX is an ESP32-based wireless exploration toolkit with a button-and-OLED interface and radio features spanning 2.4 GHz, BLE, and Wi-Fi. The README describes the user selecting tools such as scanning, analysis, and signal testing; settings also expose display/NeoPixel controls and firmware update. The source index and excerpts support several module responsibilities and shared configuration, but the main sketch was not sampled, so its dispatch links and some feature-to-module mappings remain unverified.

Main entry points: [`nRFBox/ism.cpp`](https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp) (2.4 GHz tools), [`nRFBox/bluetooth.cpp`](https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp) (BLE tools), [`nRFBox/setting.cpp`](https://github.com/cifertech/nrfbox/blob/main/nRFBox/setting.cpp) (Shared settings), [`nRFBox/config.h`](https://github.com/cifertech/nrfbox/blob/main/nRFBox/config.h) (Hardware configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_firmware["Device firmware"]
  node_main["Firmware entry<br/>[nRFBox.ino]"]
  node_settings["Shared settings<br/>[setting.cpp]"]
  node_config["Hardware configuration<br/>[config.h]"]
end

subgraph group_radio["Radio tools"]
  node_ismtools["2.4 GHz tools<br/>[ism.cpp]"]
  node_bletools["BLE tools<br/>[bluetooth.cpp]"]
  node_wifitools["Wi-Fi tools<br/>[wifi.cpp]"]
  node_wifiuser["Nearby networks<br/>[wifi.cpp]"]
  node_deauth["Wi-Fi deauthentication<br/>[wifi.cpp]"]
  node_blejam["BLE disruption<br/>[bluetooth.cpp]"]
  node_blescan["BLE scanning<br/>[bluetooth.cpp]"]
  node_spoof["BLE spoofing<br/>[bluetooth.cpp]"]
  node_sourapple["Sour Apple<br/>[bluetooth.cpp]"]
  node_analyzer["Signal analyzer<br/>[ism.cpp]"]
  node_scanner["Channel scanner<br/>[ism.cpp]"]
  node_jammer["2.4 GHz jammer<br/>[ism.cpp]"]
  node_proto["Proto Kill<br/>[ism.cpp]"]
end

subgraph group_interface["Device interface"]
  node_icons["Display assets<br/>[icon.h]"]
  node_pixels["NeoPixel feedback<br/>[neopixel.cpp]"]
end

subgraph group_support["Hardware support"]
  node_sharedheader["Shared declarations<br/>[setting.h]"]
  node_radios["nRF24 setup<br/>[setting.cpp]"]
  node_display["OLED display<br/>[config.h]"]
end

node_user(("Device user"))

node_user -.->|"operates"| node_main
node_main -.->|"dispatches"| node_settings
node_main -.->|"dispatches"| node_ismtools
node_main -.->|"dispatches"| node_bletools
node_main -.->|"dispatches"| node_wifitools
node_config -->|"includes"| node_sharedheader
node_ismtools -->|"includes"| node_config
node_ismtools -->|"includes"| node_icons
node_ismtools -->|"includes"| node_sharedheader
node_bletools -->|"includes"| node_config
node_bletools -->|"includes"| node_icons
node_wifitools -->|"includes"| node_config
node_wifitools -->|"includes"| node_icons
node_settings -->|"includes"| node_sharedheader
node_settings -->|"includes"| node_icons
node_settings -->|"includes"| node_config
node_pixels -->|"includes"| node_sharedheader
node_pixels -->|"includes"| node_config
node_ismtools -->|"implements"| node_analyzer
node_ismtools -->|"implements"| node_scanner
node_ismtools -->|"implements"| node_jammer
node_ismtools -.->|"supports"| node_proto
node_bletools -->|"implements"| node_blejam
node_bletools -->|"implements"| node_blescan
node_bletools -->|"implements"| node_spoof
node_bletools -->|"implements"| node_sourapple
node_wifitools -->|"implements"| node_wifiuser
node_wifitools -->|"implements"| node_deauth
node_settings -->|"updates"| node_display
node_settings -.->|"configures"| node_pixels
node_ismtools -.->|"uses"| node_radios

click node_main "https://github.com/cifertech/nrfbox/blob/main/nRFBox/nRFBox.ino"
click node_settings "https://github.com/cifertech/nrfbox/blob/main/nRFBox/setting.cpp"
click node_config "https://github.com/cifertech/nrfbox/blob/main/nRFBox/config.h"
click node_ismtools "https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp"
click node_bletools "https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp"
click node_wifitools "https://github.com/cifertech/nrfbox/blob/main/nRFBox/wifi.cpp"
click node_icons "https://github.com/cifertech/nrfbox/blob/main/nRFBox/icon.h"
click node_pixels "https://github.com/cifertech/nrfbox/blob/main/nRFBox/neopixel.cpp"
click node_sharedheader "https://github.com/cifertech/nrfbox/blob/main/nRFBox/setting.h"
click node_radios "https://github.com/cifertech/nrfbox/blob/main/nRFBox/setting.cpp"
click node_display "https://github.com/cifertech/nrfbox/blob/main/nRFBox/config.h"
click node_wifiuser "https://github.com/cifertech/nrfbox/blob/main/nRFBox/wifi.cpp"
click node_deauth "https://github.com/cifertech/nrfbox/blob/main/nRFBox/wifi.cpp"
click node_blejam "https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp"
click node_blescan "https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp"
click node_spoof "https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp"
click node_sourapple "https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp"
click node_analyzer "https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp"
click node_scanner "https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp"
click node_jammer "https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp"
click node_proto "https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_settings,node_config,node_user toneBlue
class node_ismtools,node_bletools,node_wifitools,node_wifiuser,node_deauth,node_blejam,node_blescan,node_spoof,node_sourapple,node_analyzer,node_scanner,node_jammer,node_proto toneAmber
class node_icons,node_pixels toneMint
class node_sharedheader,node_radios,node_display toneRose
```

## Components

### Device firmware

- [Firmware entry](https://github.com/cifertech/nrfbox/blob/main/nRFBox/nRFBox.ino): `nRFBox/nRFBox.ino`
- [Shared settings](https://github.com/cifertech/nrfbox/blob/main/nRFBox/setting.cpp): `nRFBox/setting.cpp`
- [Hardware configuration](https://github.com/cifertech/nrfbox/blob/main/nRFBox/config.h): `nRFBox/config.h`

### Radio tools

- [2.4 GHz tools](https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp): `nRFBox/ism.cpp`
- [BLE tools](https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp): `nRFBox/bluetooth.cpp`
- [Wi-Fi tools](https://github.com/cifertech/nrfbox/blob/main/nRFBox/wifi.cpp): `nRFBox/wifi.cpp`
- [Nearby networks](https://github.com/cifertech/nrfbox/blob/main/nRFBox/wifi.cpp): `nRFBox/wifi.cpp`
- [Wi-Fi deauthentication](https://github.com/cifertech/nrfbox/blob/main/nRFBox/wifi.cpp): `nRFBox/wifi.cpp`
- [BLE disruption](https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp): `nRFBox/bluetooth.cpp`
- [BLE scanning](https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp): `nRFBox/bluetooth.cpp`
- [BLE spoofing](https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp): `nRFBox/bluetooth.cpp`
- [Sour Apple](https://github.com/cifertech/nrfbox/blob/main/nRFBox/bluetooth.cpp): `nRFBox/bluetooth.cpp`
- [Signal analyzer](https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp): `nRFBox/ism.cpp`
- [Channel scanner](https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp): `nRFBox/ism.cpp`
- [2.4 GHz jammer](https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp): `nRFBox/ism.cpp`
- [Proto Kill](https://github.com/cifertech/nrfbox/blob/main/nRFBox/ism.cpp): `nRFBox/ism.cpp`

### Device interface

- [Display assets](https://github.com/cifertech/nrfbox/blob/main/nRFBox/icon.h): `nRFBox/icon.h`
- [NeoPixel feedback](https://github.com/cifertech/nrfbox/blob/main/nRFBox/neopixel.cpp): `nRFBox/neopixel.cpp`

### Hardware support

- [Shared declarations](https://github.com/cifertech/nrfbox/blob/main/nRFBox/setting.h): `nRFBox/setting.h`
- [nRF24 setup](https://github.com/cifertech/nrfbox/blob/main/nRFBox/setting.cpp): `nRFBox/setting.cpp`
- [OLED display](https://github.com/cifertech/nrfbox/blob/main/nRFBox/config.h): `nRFBox/config.h`

### Other components

- **Device user**

## Connections

- Device user → Firmware entry: operates
- Firmware entry → Shared settings: dispatches
- Firmware entry → 2.4 GHz tools: dispatches
- Firmware entry → BLE tools: dispatches
- Firmware entry → Wi-Fi tools: dispatches
- Hardware configuration → Shared declarations: includes (evidence: `nRFBox/config.h`)
- 2.4 GHz tools → Hardware configuration: includes (evidence: `nRFBox/ism.cpp`)
- 2.4 GHz tools → Display assets: includes (evidence: `nRFBox/ism.cpp`)
- 2.4 GHz tools → Shared declarations: includes (evidence: `nRFBox/ism.cpp`)
- BLE tools → Hardware configuration: includes (evidence: `nRFBox/bluetooth.cpp`)
- BLE tools → Display assets: includes (evidence: `nRFBox/bluetooth.cpp`)
- Wi-Fi tools → Hardware configuration: includes (evidence: `nRFBox/wifi.cpp`)
- Wi-Fi tools → Display assets: includes (evidence: `nRFBox/wifi.cpp`)
- Shared settings → Shared declarations: includes (evidence: `nRFBox/setting.cpp`)
- Shared settings → Display assets: includes (evidence: `nRFBox/setting.cpp`)
- Shared settings → Hardware configuration: includes (evidence: `nRFBox/setting.cpp`)
- NeoPixel feedback → Shared declarations: includes (evidence: `nRFBox/neopixel.cpp`)
- NeoPixel feedback → Hardware configuration: includes (evidence: `nRFBox/neopixel.cpp`)
- 2.4 GHz tools → Signal analyzer: implements (evidence: `nRFBox/ism.cpp`)
- 2.4 GHz tools → Channel scanner: implements (evidence: `nRFBox/ism.cpp`)
- 2.4 GHz tools → 2.4 GHz jammer: implements (evidence: `nRFBox/ism.cpp`)
- 2.4 GHz tools → Proto Kill: supports (evidence: `nRFBox/ism.cpp`)
- BLE tools → BLE disruption: implements (evidence: `nRFBox/bluetooth.cpp`)
- BLE tools → BLE scanning: implements (evidence: `nRFBox/bluetooth.cpp`)
- BLE tools → BLE spoofing: implements (evidence: `nRFBox/bluetooth.cpp`)
- BLE tools → Sour Apple: implements (evidence: `nRFBox/bluetooth.cpp`)
- Wi-Fi tools → Nearby networks: implements (evidence: `nRFBox/wifi.cpp`)
- Wi-Fi tools → Wi-Fi deauthentication: implements (evidence: `nRFBox/wifi.cpp`)
- Shared settings → OLED display: updates (evidence: `nRFBox/setting.cpp`)
- Shared settings → NeoPixel feedback: configures
- 2.4 GHz tools → nRF24 setup: uses
