Jamming: fixed dual carriers 315 + 433.92 MHz (no sweep)

- R1 locks 315 MHz with narrow FM deviation + LFSR; R2 locks 433.92 with max deviation
- Remove VCO sweep tables, tickSweepFast, and hop loop; ~2.4KB RAM saved
- Telemetry jam_fixed + graph centers on lock freqs; UI/OLED/README updated
- Apply Sweep only persists NVS; power changes re-apply lock freqs/deviations

Made-with: Cursor
This commit is contained in:
drjones
2026-03-24 19:08:10 -07:00
parent 01d95ee0e9
commit 656673cffd
3 changed files with 117 additions and 256 deletions

View File

@@ -33,14 +33,19 @@
// External amplifier gain in dB (used only for display — does not affect CC1101 output)
#define DEFAULT_AMP_GAIN_DB 20
// Modulation parameters for jamming
// Deviation 380 kHz = CC1101 hardware maximum.
// Carson's rule BW ≈ 2*(380 + 125) ≈ 1010 kHz of noise per hop.
// With ~1 MHz per hop we get solid overlap between steps and leave no gaps.
#define JAM_BITRATE_KBPS 250.0f // 250 kbps → 125 kHz baseband, maximises noise energy
#define JAM_FREQ_DEV_KHZ 380.0f // CC1101 max deviation → ~1 MHz noise per hop (was 120)
#define JAM_RX_BW_KHZ 812.0f // Maximum RX BW
// Modulation parameters for jamming (LFSR drives GDO0 in direct async TX)
#define JAM_BITRATE_KBPS 250.0f // baseband / channel filter context for RadioLib begin()
#define JAM_FREQ_DEV_KHZ 380.0f // default passed to begin(); per-radio deviation applied after init
#define JAM_RX_BW_KHZ 812.0f // wide RX BW for begin()
// Fixed dual-carrier jamming — NO sweep: each radio holds one frequency at full TX power.
// R2 (433.92) uses max deviation = loudest/widest noise; R1 (315) uses narrow deviation.
#define JAM_LOCK_FREQ_1_MHZ 315.0f
#define JAM_LOCK_FREQ_2_MHZ 433.92f
#define JAM_DEV_KHZ_R2_WIDE 380.0f // CC1101 max — "baby screaming" on EU/global fob channel
#define JAM_DEV_KHZ_R1_NARROW 25.0f // minimal FM swing — energy concentrated on NA 315 MHz
// Legacy sweep constants (NVS + API still accept them; firmware no longer hops)
// Frequency sweep — full coverage of all known car-key-fob sub-GHz bands
//
// Radio 1 (CC1101 #1) — 300320 MHz [CC1101 Band 1: 300348 MHz]