[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115563":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":8,"htmlUrl":8,"language":9,"languages":8,"totalLinesOfCode":8,"stars":10,"forks":11,"watchers":12,"openIssues":13,"contributorsCount":13,"subscribersCount":13,"size":13,"stars1d":12,"stars7d":14,"stars30d":14,"stars90d":13,"forks30d":13,"starsTrendScore":11,"compositeScore":15,"rankGlobal":8,"rankLanguage":8,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":17,"hasPages":19,"topics":20,"createdAt":8,"pushedAt":21,"updatedAt":22,"readmeContent":23,"aiSummary":24,"trendingCount":13,"starSnapshotCount":13,"syncStatus":25,"lastSyncTime":26,"discoverSource":27},115563,"ESP-WiFi-Jam-Detector","TheDigital1\u002FESP-WiFi-Jam-Detector","TheDigital1",null,"C",66,7,1,0,14,50.11,"GNU General Public License v3.0",false,"main",true,[],"2026-11-10 20:37:39","2026-11-22 13:38:36","# esp-wifi-jammer-detector\n\nA **receive-only** 2.4 GHz + 5 GHz RF interference \u002F possible-jamming detector\nfor the Waveshare **ESP32-C5-Touch-LCD-3.5**. It uses the ESP32-C5's own Wi-Fi\nreceiver as a snapshot SDR (via [ESPARGOS esp-sdr](https:\u002F\u002Fgithub.com\u002FESPARGOS\u002Fesp-sdr))\nand shows the noise floor and spectrum on the built-in touchscreen.\n\nIt never transmits, injects or deauthenticates anything. It can show that the\nRF environment changed; it cannot prove intent. A microwave oven will look\nlike interference on 2.4 GHz.\n\n## Features\n\n- **Standalone:** runs entirely on the ESP32-C5 board; no PC, phone or\n  network needed.\n- **Both Wi-Fi bands:** sweeps 2400–2483.5 MHz and 5150–5895 MHz in 48 MHz\n  slices at 80 MS\u002Fs, stitched into one spectrum per band (312.5 kHz bins).\n  About 4.5 sweeps\u002Fs on 2.4 GHz and one 5 GHz sweep every 0.83 s.\n- **Single-band mode:** turn either band off; 2.4 GHz alone runs at about\n  12 sweeps\u002Fs.\n- **Learns normal:** a 60 s per-bin baseline, stored in flash and tracked for\n  slow drift.\n- **Four detectors:** raised wideband floor, persistent narrowband carrier,\n  swept signal and pulsed wideband energy, with NORMAL \u002F SUSPECT \u002F ALARM\n  states.\n- **Alarms:** flashing red border and an optional beep through the on-board\n  speaker.\n- **Screens:** status tiles per band, live spectrum (~10 fps) with max-hold\n  and baseline, scrolling waterfall, and touch settings for every threshold.\n- **TF-card logging:** a CSV row for every state change. About 2 minutes\n  after each alarm, a BMP of the waterfall with the alarm row in the middle.\n- **Battery level** from the AXP2101 power chip.\n- **Home Assistant:** plug the detector into the Home Assistant machine and\n  install the bridge app from this repository. Alarms, readings, events and\n  every setting appear as a device through MQTT discovery\n  ([below](#home-assistant)).\n- **Receive only:** no transmit, injection or deauth code, and Wi-Fi\n  networking is off while scanning.\n\n## On the device\n\n### Microwave oven test (2.4 GHz)\n\nA running microwave oven next to the device: the 2.4 GHz waterfall fills with\npulsed wideband energy and the status screen goes to SUSPECT (\"pulsed energy,\nbusy Wi-Fi or microwave oven?\"). 5 GHz scanning is off here.\n\n[![Microwave oven running next to the device: 2.4 GHz waterfall and SUSPECT status](docs\u002Fmedia\u002Fmicrowave-2g4.gif)](docs\u002Fmedia\u002Fmicrowave-2g4.mp4)\n\nClick the GIF for the full 33 s video with sound (MP4, 5.4 MB).\n\n### Screens\n\n| Status screen | 2.4 GHz waterfall (5 GHz off) | 5 GHz waterfall (2.4 GHz off) |\n|---|---|---|\n| ![Status screen: both bands NORMAL](docs\u002Fmedia\u002Fstatus.gif) | ![2.4 GHz waterfall with busy Wi-Fi on channels 1, 6 and 11](docs\u002Fmedia\u002Fwaterfall-2g4.gif) | ![5 GHz waterfall, mostly quiet with activity around channels 140-165](docs\u002Fmedia\u002Fwaterfall-5g.gif) |\n\n| Settings: General | Settings: Detection | Settings: Scan & timing |\n|---|---|---|\n| ![General settings: re-learn, auto-range, card and battery status, brightness, alarm beep](docs\u002Fmedia\u002Fsettings-general.jpg) | ![Detection thresholds](docs\u002Fmedia\u002Fsettings-detection.jpg) | ![Scan bands toggles and alarm timing](docs\u002Fmedia\u002Fsettings-scan.jpg) |\n\n## Home Assistant\n\nPlug the detector into a USB port of your Home Assistant machine and it shows\nup as a **Jammer Detector** device: alarms, readings and event history per\nband, plus controls for every setting on the touchscreen. The bridge app\nincluded in this repository reads the detector over USB and publishes it\nthrough MQTT discovery, so there is no YAML to write. The detector itself\nstill never uses Wi-Fi.\n\n![Home Assistant dashboard section: alarm, state and readings per band, 24 h floor-rise and occupancy history, activity log, controls and detection settings](docs\u002Fmedia\u002Fhome-assistant.png)\n\n**Setup** (needs an MQTT broker such as the Mosquitto broker app, and the MQTT\nintegration):\n\n1. Flash firmware **1.1.0 or later** (see [Flash a release](#flash-a-release-no-build)).\n2. In **Settings → Apps → App store**, open the menu (⋮) → **Repositories**\n   and add `https:\u002F\u002Fgithub.com\u002FTheDigital1\u002FESP-WiFi-Jam-Detector`.\n3. Install **Jammer Detector Bridge**. Home Assistant builds it on your\n   machine.\n4. On its **Configuration** tab, pick the detector\n   (`Espressif USB JTAG serial debug unit`) and start the app.\n\n**What you get**, per band (2.4 GHz and 5 GHz):\n\n- an **alarm** binary sensor for automations\n- **state** (learning \u002F normal \u002F suspect \u002F alarm \u002F off)\n- **interference kind** (wideband \u002F swept \u002F narrowband \u002F pulsed)\n- **floor rise** in dB and **occupancy** in %\n- alarms since boot\n- an **event** entity with one event per state change, carrying all the\n  detector metrics\n\nDevice-wide, you get:\n\n- **Battery** and **Charging**\n- **Controls:** a **Re-learn baseline** button, an **Alarm beep** switch, a\n  **Bands scanned** select, and a number for every detection threshold and\n  timing. Changes are applied and saved on the device straight away, the same\n  as on its screen.\n\nThe bridge reconnects by itself if the detector is unplugged or restarts.\nWhile it is disconnected, its entities show as unavailable. Full details,\nincluding an example notification automation, are in\n[DOCS.md](ha_addon\u002Fjammer_detector_bridge\u002FDOCS.md).\n\nThe USB protocol under the bridge is plain JSON lines, so any other host can\nuse it too ([docs\u002FLINK.md](docs\u002FLINK.md)).\n\n## Flash a release (no build)\n\nDownload `esp-wifi-jammer-detector-vX.Y.Z-merged.bin` from\n[Releases](https:\u002F\u002Fgithub.com\u002FTheDigital1\u002FESP-WiFi-Jam-Detector\u002Freleases) and\nwrite it at offset 0 with esptool 5 (`pip install esptool`; on esptool 4 the\ncommand is `esptool.py ... write_flash`):\n\n```sh\nesptool --chip esp32c5 -p \u002Fdev\u002FttyACM0 -b 460800 write-flash 0x0 esp-wifi-jammer-detector-v1.1.0-merged.bin\n```\n\nUse the board's USB-C port (`COMx` on Windows). This keeps your settings and\nlearned baselines; the separate `bootloader.bin` (0x2000),\n`partition-table.bin` (0x8000) and app (0x10000) are attached too, with\n`SHA256SUMS`.\n\n## Build and flash\n\nThe receiver depends on private PHY internals of one exact ESP-IDF commit, so\nuse that commit and nothing else:\n\n| | |\n|---|---|\n| ESP-IDF | `25fe69f946311abdaf9ad56591f25fedbc20ac98` (6.2-dev), from esp-sdr's `firmware-targets.json` (`esp32c5`) |\n| esp-sdr | `f86da81807b7f6e850742f6b789d9468c190ad41`, vendored in `components\u002Fespsdr_rx` |\n| LVGL | 9.5.0 (component manager) |\n| esp_codec_dev | 1.5.11 (component manager), as in Waveshare's factory demo |\n\n```sh\nmkdir -p ~\u002Fesp\u002Fesp-idf-espsdr && cd ~\u002Fesp\u002Fesp-idf-espsdr\ngit init && git remote add origin https:\u002F\u002Fgithub.com\u002Fespressif\u002Fesp-idf.git\ngit fetch --depth 1 origin 25fe69f946311abdaf9ad56591f25fedbc20ac98 && git checkout FETCH_HEAD\ngit submodule update --init --recursive --depth 1\n.\u002Finstall.sh esp32c5\n\n. ~\u002Fesp\u002Fesp-idf-espsdr\u002Fexport.sh\ncd esp-wifi-jammer-detector\nidf.py set-target esp32c5      # first time only\nidf.py build\nidf.py -p \u002Fdev\u002FttyACM0 flash monitor\n```\n\n`idf.py flash` also writes the partition table. Settings, gains and baselines\nlive in their own NVS partition, `jd_nvs` (256 KB at 0x410000); to start from\nscratch, erase it with `parttool.py --port \u002Fdev\u002FttyACM0 erase_partition\n--partition-name jd_nvs` (or `idf.py erase-flash`).\n\nOn Linux, ModemManager may grab the board's USB port and reset it. Stop it, or\nadd a udev rule with `ENV{ID_MM_DEVICE_IGNORE}=\"1\"` for USB vendor `303a`.\n\nHost unit tests (no board needed): `make -C test_host`. This also generates\nthe synthetic spectra for the detector tests with `tools\u002Fsim_spectra.py`\n(Python 3, standard library only).\n\n## Using it\n\n- **BOOT** short press cycles the screens: status → spectrum → settings.\n  **Long press (1.5 s)** re-learns both baselines from any screen.\n- **Status** (default): one tile per band, coloured by state (grey learning,\n  green normal, amber suspect, red interference), with the floor rise against\n  the baseline, an evidence-duty bar (ALARM needs 80 %), the last alarm (as\n  uptime) and the sweep rate. Tap a tile for its spectrum.\n- **Spectrum:** the current average (cyan, filled), max-hold (orange) and the\n  learned baseline (grey) in relative dB, with Wi-Fi channel ticks and U-NII\n  labels. **2.4 \u002F 5** switches band, **Reset max** clears max-hold.\n  **Waterfall** switches the plot to a scrolling history: one row per sweep,\n  newest at the top, coloured by dB above the baseline (dark blue −5 dB →\n  cyan → yellow → red +30 dB; absolute level while learning). The left margin\n  shows the age of the rows. History (236 sweeps, ~2–4 min) is kept for both\n  bands all the time.\n- **Settings:** three tabs (General, Detection, Scan & timing) instead of a\n  scrolling list, because a full-screen LVGL redraw costs ~80 ms of CPU here\n  and scrolling ran at a few frames\u002Fs while starving the sweep. Re-learn,\n  auto-range gain, defaults; detection thresholds, sweep weighting and\n  brightness (applied when a slider is released, saved to\n  flash 2 s later or when leaving the screen); alarm beep on\u002Foff and **Test**.\n  The General tab also shows the TF-card and power status.\n- **Scan bands** (Scan & timing tab): 2.4 GHz and 5 GHz can each be turned\n  off; one always stays on. With 5 GHz off, 2.4 GHz is swept about 12 times\n  a second instead of about 4.5. A band that is off shows **OFF** on the\n  status screen, never alarms, and its detector restarts from NORMAL (baseline\n  kept) when it is turned back on.\n- Any ALARM flashes a red border on every screen. With **Alarm beep** on, it\n  also beeps three times (2 kHz) on entering ALARM and every 15 s while it\n  lasts. The codec, I2S and amplifier only run during a beep; with beeps\n  playing continuously the floor did not move (5 GHz within 0.1 dB, 2.4 GHz\n  within normal Wi-Fi variation), so a beep cannot keep an alarm going.\n- **Event log:** with a FAT-formatted TF card inserted (and DIP switch JP8\n  pin 2 ON, per Waveshare's BSP), every state change is appended to\n  `\u002Fjd_events.csv` on the card: boot number, uptime, band, from\u002Fto state,\n  kind and all detector metrics. The card is optional.\n- **Alarm snapshots:** with a card in, each time a band enters ALARM its\n  waterfall is saved once the alarm row has scrolled to the middle of the\n  plot (about 2 minutes later at the default sweep rate), so the image shows\n  as much before the alarm as after it. Files go to `\u002Fwaterfall\u002F` on the card\n  as `boot\u003CN>_up\u003CS>s_\u003Cband>_\u003Ckind>.bmp`, matching the `boot` and `uptime_s`\n  columns of the CSV. The image has the band, kind, uptime, frequency axis,\n  colour scale and a red mark on the alarm row, with times relative to it.\n  One image per alarm; a second alarm before the image is saved is in it.\n- **Battery:** the status screen header shows `USB`, `battery NN%` or\n  `charging NN%` from the AXP2101 fuel gauge, read every 5 s.\n- **Home Assistant:** see [Home Assistant](#home-assistant) above.\n- **USB link:** the protocol under the bridge. While a host sends commands,\n  the device sends a status line every 10 s and on every state change, one\n  line per event (the same fields as the TF-card log), and takes commands to\n  re-learn and to change any setting (applied and saved as if changed on the\n  screen). Open the port with DTR and RTS both high, or the board resets.\n  Format and examples: [docs\u002FLINK.md](docs\u002FLINK.md).\n- **First boot:** the receiver auto-ranges its gain (~8 s) and stores it, then\n  learns the baseline for 60 s and stores it. Keep the RF environment normal\n  during learning: anything present then becomes \"normal\". **Later boots**\n  restore both and are watching within ~3 s; re-learn (long press) after\n  moving the device. **Auto-range gain** in Settings re-ranges and re-learns.\n\n## How it works\n\n### Receiver\n\nSnapshot capture from the C5 Wi-Fi receiver through esp-sdr's debug path:\nup to 16,380 complex 10-bit samples per snapshot, with reception stopped\nbetween snapshots. Tuning above 3000 MHz selects the 5 GHz RF path.\n\n### Band plan (measured in M3)\n\nCaptures run at **80 MS\u002Fs with the widest analog filter**, and the central\n**48 MHz** of each 1024-point FFT is kept. That span was the flattest option\nmeasured (within about ±1.5 dB, and the filter is −13 dB at Nyquist, so no\naliasing); 40 MS\u002Fs left only about ±15 MHz flat and needed 25 tunes for 5 GHz\ninstead of 16.\n\n| Band | Range | Tunes (centres) | Grid |\n|---|---|---|---|\n| 2.4 GHz | 2400–2483.5 MHz | 2 (2424, 2472 MHz) | 268 bins × 312.5 kHz |\n| 5 GHz | 5150–5895 MHz | 16 (5174 … 5894 MHz, 48 MHz steps) | 2384 bins × 312.5 kHz |\n\n5 GHz sub-bands are labelled U-NII-1 (5150–5250), U-NII-2A (5250–5350),\nU-NII-2C (5470–5730) and U-NII-3 (5735–5895); 5350–5470 MHz is swept but\nnot labelled.\n\nPer tune: 4 snapshots (configurable), Hann window, Q15 fixed-point FFT (the C5\nhas no FPU), average power and per-snapshot max, DC spike notched (±2 bins),\nthen 4 FFT bins are reduced to one 312.5 kHz grid bin and stitched into the\nband spectrum. The schedule sweeps 2.4 GHz twice for every 5 GHz sweep.\n\n### Gain\n\nGain is fixed per band while sweeping: hardware AGC would hide a raised noise\nfloor. On first boot (or from Settings) an auto-range steps down from the top gain index until\nclipping across the whole band is at most 100 ppm of samples, then backs off\n2 more indices. Typical result here: 2.4 GHz ≈ 65–70, 5 GHz ≈ 81. The result\nis stored and reused at every boot, because a baseline is only valid at the\ngain it was learned at.\n\n### Measured timing (M3, this board)\n\n| | |\n|---|---|\n| Full 2.4 GHz sweep | ~0.12 s |\n| Full 5 GHz sweep | ~1.3 s |\n| Per tune | retune + DC recalibration ~25–30 ms at 5 GHz (~7 ms at 2.4 GHz), ~2–5 ms per snapshot, ~2 ms FFT per snapshot |\n| Spectrum display | ~10 frames\u002Fs |\n\nOn the status and settings screens the UI uses much less CPU, so sweeps run\nfaster (M5: ~0.08 s and ~0.83 s).\n\n### Self-interference and the radio-quiet window\n\nLCD SPI traffic measurably affects the 2.4 GHz receiver: with the display\nredrawing during captures the floor rose up to ~3 dB at 2462 MHz (no effect at\n5 GHz). The firmware therefore never lets an LCD DMA transfer overlap a\ncapture (`board_rf_quiet_begin\u002Fend`). Captures take precedence; a capture\nwaits at most for the strip already in flight.\n\n### Tasks and CPU (single core)\n\n| Task | Priority | Notes |\n|---|---|---|\n| LVGL \u002F UI | 11 | short bursts, mostly waiting on LCD DMA; the plot is drawn straight to the panel in strips, not through LVGL |\n| sweep | 10 (12 during each ~2 ms capture) | CPU-bound; yields 10 % for detect and idle |\n| detect | 9 | one band spectrum per completed sweep; a sweep is dropped (counted) rather than block the sweep |\n| link_tx, link_rx | 2 (12 while writing) | USB link; each message is written inside a radio-quiet window, and dropped rather than waited for |\n\nThe brief asked for the sweep to have the highest priority. Below the sweep,\nthe UI only managed about 1 frame\u002Fs, because the 25 ms 5 GHz retunes starved\nit. With the UI on top it still takes only the CPU it really uses (about 25 %).\n\n### Detection (M4)\n\nThe receiver is uncalibrated, so detection looks for **change against a\nlearned baseline**, per band (`main\u002Fdetect.c`, no ESP-IDF headers, host-tested).\n\nPer sweep the detector gets, for every 312.5 kHz bin, the **mean**, **min** and\n**max** power over the tune's K snapshots. The min matters: energy present in\nevery snapshot (a jammer, a CW tone) raises it, bursty Wi-Fi mostly does not.\n\n- **Baseline:** for 60 s, the median per bin of the mean spectrum, and per\n  10 MHz cell the median of the 20th-percentile floor (mean and min spectra).\n  Afterwards it follows slow changes (clipped EMA, ~1 dB per 30 sweeps at\n  most) only while the band is NORMAL with no evidence. A gain change\n  re-learns.\n- **Metrics** (logged every 10 s and on every state change): floor rise per\n  cell (median and max), continuous (min-spectrum) floor rise, share of cells\n  raised, occupancy (bins ≥ 6 dB over the cell's baseline floor), per-cell\n  duty over the window, spectral flatness of the most raised cell, clipping,\n  narrowband cluster, swept-peak tracker.\n- **Evidence:**\n\n| Kind | Condition (defaults) | Can alarm |\n|---|---|---|\n| wideband | min-spectrum floor ≥ 10 dB up in ≥ 60 % of cells | yes |\n| narrowband | ≤ 16 bins (5 MHz) whose min power is ≥ 15 dB over baseline in ≥ 90 % of the last 5 s of sweeps, with quiet shoulders | yes |\n| swept | a narrow peak ≥ 15 dB moving steadily one way (sawtooth wraps allowed) for ≥ 4 sweeps, covering ≥ 60 % of the band | yes |\n| pulsed wideband | mean-spectrum floor ≥ 10 dB up in ≥ 60 % of cells, or ≥ 50 % of snapshots clipped | SUSPECT only |\n\n- **State per band:** NORMAL → SUSPECT (evidence in 2 consecutive sweeps) →\n  ALARM (SUSPECT ≥ 5 s and alarm-capable evidence in ≥ 80 % of the last 5 s of\n  sweeps) → NORMAL (no alarm-capable evidence for 10 s). SUSPECT returns to\n  NORMAL after 5 s without evidence. Every transition is logged with metrics.\n- All thresholds are in `detect_config_t` (`detect_default_config()`); M5 will\n  make them editable and persist them.\n\nHost tests (`test_host\u002Ftest_detect.c`) replay 160 s of synthetic sweeps per\nscenario from `tools\u002Fsim_spectra.py` (60 s learning, event from 70 s to 130 s)\nwith the real sweep timing and the default thresholds:\n\n| Scenario | 2.4 GHz | 5 GHz |\n|---|---|---|\n| clean (AP, beacons, BLE, fixed spurs) | normal | normal |\n| busy Wi-Fi (iperf-like 80–90 % airtime on several channels) | suspect (pulsed), no alarm | normal |\n| wideband floor +15 dB \u002F +12 dB | ALARM wideband after ~7 s | ALARM wideband after ~8 s |\n| CW tone +25 dB \u002F +20 dB | ALARM narrowband after ~11 s | ALARM narrowband after ~12 s |\n| swept tone (20 s \u002F 40 s sawtooth) | ALARM swept after ~19 s | ALARM swept after ~32 s |\n| microwave oven (50 Hz gated, drifting carrier) | suspect (pulsed) | normal |\n| slow 4 dB floor drift | normal | normal |\n\nAll of them also pass with other random seeds (`sim_spectra.py --seed`).\n\n## Known limits\n\n- **Snapshot gaps:** each snapshot lasts 12.8 µs (1024 samples at 80 MS\u002Fs),\n  taken a few milliseconds apart. Short or low-duty-cycle bursts can be missed.\n  Detection must rely on statistics over many sweeps.\n- **Uncalibrated dB:** all levels are relative (gain-table indices are not\n  dB), so detection compares against a learned baseline, not absolute dBm.\n- **5 GHz sweep time** is about 1.3 s, dominated by per-frequency DC\n  recalibration in the receiver.\n- **Bursty vs continuous:** a jammer that is only on part of the time, busy\n  Wi-Fi and a mains-gated microwave oven all look alike at this time\n  resolution; they reach SUSPECT (\"pulsed wideband\"), not ALARM. Busy 2.4 GHz\n  Wi-Fi can therefore show amber. Inverter microwave ovens run nearly\n  continuously and may alarm.\n- **Single-channel interference** that is continuous and as wide as a Wi-Fi\n  channel (20–160 MHz) is indistinguishable from a saturated Wi-Fi link and is\n  not flagged; narrowband needs ≤ 5 MHz and wideband ≥ 60 % of the band.\n- **Swept detection** needs the sweep to be slow compared with our own\n  sweep (seconds per pass); a fast sweep looks like wideband or pulsed\n  energy instead.\n- **Stored baseline:** the baseline from the last learning (refreshed hourly\n  from the slow EMA) is restored at boot. After moving the device to a\n  different RF environment, re-learn, or it may alarm or miss things.\n- **Flash writes:** saving the 5 GHz baseline (~10 KB) takes up to ~0.6 s\n  and can cost one 2.4 GHz sweep (logged as dropped).\n- **Alarm time** is uptime: the PCF85063 RTC is never set, because there is no\n  network time while the radio scans. The event log's `boot` column (a counter\n  in NVS) tells boots apart.\n- **TF-card writes** share SPI2 with the LCD and run inside the radio-quiet\n  window, so the sweep pauses for the write (typically tens of ms). A\n  ~300 KB alarm snapshot is written 32 rows at a time with 300 ms gaps, so\n  the sweep keeps running between the pieces. Saving stops with under 2 MB\n  free on the card.\n- **Battery percentage** is the AXP2101's own fuel gauge, uncalibrated for\n  the attached cell; untested here without a battery fitted.\n- **No Wi-Fi networking:** while sweeping, the radio is retuned constantly, so\n  normal Wi-Fi (scan\u002Fconnect\u002FAP) is not available.\n- Normal Wi-Fi start-up runs the PHY's own calibration once at boot, as on every\n  ESP32. Retunes use esp-sdr's receive-only DC recalibration with no TX\n  loopback.\n\n## Source layout\n\n```\ncomponents\u002Fboard\u002F      Waveshare board support (pins cited in include\u002Fboard_pins.h)\ncomponents\u002Fespsdr_rx\u002F  ESP32-C5 receiver vendored from esp-sdr (see VENDORED.md)\nmain\u002Fbandplan.c        tune centres and frequency grid (host-tested)\nmain\u002Fdsp.c             window, FFT, dB, percentiles, DC notch (host-tested)\nmain\u002Fdetect.c          baseline, metrics, heuristics, state machine (host-tested)\nmain\u002Fdetector.c        detector task: assembles band spectra, logs transitions\nmain\u002Fplot.c            spectrum renderer (host-tested)\nmain\u002Fsweep.c           sweep task, auto-range, stitched spectra\nmain\u002Flvgl_port.c       LVGL display\u002Ftouch glue, PSRAM allocator\nmain\u002Fsettings.c        settings, gains and baselines in NVS (jd_nvs partition)\nmain\u002Fsettings_values.c settings defaults and range check (host-tested)\nmain\u002Faudio.c           alarm beep via ES8311 + NS4150B (esp_codec_dev)\nmain\u002Feventlog.c        TF-card CSV log of detector state changes, BMP writer\nmain\u002Flink.c            USB link tasks (docs\u002FLINK.md)\nmain\u002Flink_proto.c      USB link message format and command parser (host-tested)\nmain\u002Fparams.c          adjustable settings table, shared by the screen and the link (host-tested)\nmain\u002Fui.c              screen switching, BOOT button, alarm border\nmain\u002Fui_status.c       status screen (default)\nmain\u002Fui_spectrum.c     spectrum screen and waterfall\nmain\u002Fui_settings.c     settings screen\nmain\u002Fcharacterize.c    optional receiver\u002FLCD measurements (CONFIG_JD_CHARACTERIZE)\ntest_host\u002F             host unit tests\nha_addon\u002F              Home Assistant app: USB-to-MQTT bridge (jdbridge\u002F, tests\u002F)\nrepository.yaml        makes this repository a Home Assistant app repository\ntools\u002Fsim_spectra.py   synthetic spectra for the detector tests\n```\n\n## Licence\n\nGPL-3.0-or-later (see `LICENSE`), because it includes code from ESPARGOS\nesp-sdr (GPL-3.0-or-later, Copyright ESPARGOS contributors). Third-party\nnotices are in `NOTICE`.\n","这是一款基于ESP32-C5硬件的纯接收式Wi-Fi干扰与疑似阻塞检测工具，利用其内置Wi-Fi射频前端实现2.4 GHz和5 GHz双频段频谱扫描与噪声分析。核心功能包括实时频谱显示、瀑布图、自适应基线学习、四种干扰模式识别（宽频抬升、窄带持续载波、扫频信号、脉冲宽带能量），以及本地声光告警与TF卡日志记录。设备完全离线运行，不发射、不注入、不关联网络，符合合规监测要求。适用于无线网络运维人员、物联网部署工程师及电磁环境评估场景，用于快速定位非恶意RF干扰源（如微波炉、蓝牙设备）或可疑持续性阻塞行为。",2,"2026-11-24 04:51:21","CREATED_QUERY"]