hypery11/flipper-tesla-fsd
Tesla Mod — Flipper Zero & ESP32. Nag killer, FSD region unlock, track mode, BMS dashboard, blind spot alert, high beam strobe, CAN capture, steering mode + more. Works via OBD-II or X179 connector.
About hypery11/flipper-tesla-fsd
hypery11/flipper-tesla-fsd is an open-source project on GitHub, mainly written in C++. Tesla Mod — Flipper Zero & ESP32. Nag killer, FSD region unlock, track mode, BMS dashboard, blind spot alert, high beam strobe, CAN capture It currently holds 1,469 stars and 474 forks with 87 open issues, and was last pushed on 2026-11-24 (repository created 2026-03-31).
Project Overview
Git Homed tracks it on the Today's Trending board, currently at rank #62 with 51 new stars today.
GitHub Repository Details
README
Tesla Mod for Flipper Zero
Open-source Tesla CAN bus toolkit for Flipper Zero and ESP32. FSD region-gate bypass, TLSSC Restore for VIN-banned cars, nag killer with organic torque variation, GTW Config Replay, live BMS dashboard, and 30+ CAN handlers across Model 3, Model Y, Model S, and Model X. Supports HW3, HW4, and Legacy HW1/HW2. Free alternative to the $200+ S3XY Commander — total cost from $14 with the ESP32 port.
[!IMPORTANT]
An active FSD package is required for FSD features — either purchased or subscribed. This tool enables FSD functionality at the CAN bus level, but the vehicle still needs a valid FSD entitlement from Tesla. Non-FSD features (nag killer, BMS dashboard, diagnostics) work without any subscription.
[!CAUTION]
Tesla has begun issuing VIN-level bans (April 2026). Affected vehicles lose the TLSSC toggle silently — no OTA, no warning, persists across account transfers and re-subscriptions. The TLSSC Restore feature (v2.10+) can recover stop sign / traffic light control on banned Palladium and HW4 cars via 0x331 DAS config spoofing. See SECURITY.md and issue #18 for the full ban research.
---
Features
Core FSD
- Auto-detect HW3/HW4 from
GTW_carConfig(0x398), with fallback detection on the ESP32 via0x39B/0x399/0x3FD/0x3EEwhen0x398isn't on the tapped bus - Legacy→HW3 auto-upgrade for Palladium Model S/X — detects
das_hw=0then upgrades when0x3FDappears on the bus - FSD unlock via bit manipulation on
UI_autopilotControl(0x3FD/0x3EE) - Legacy mode for HW1/HW2 (Model S/X 2016-2019)
- Speed profile defaults to fastest, syncs from follow-distance stalk (HW4 / Legacy). On HW3 the car's own FSD speed offset and profile are left alone; the ESP32 HW3 Speed Override toggle brings back the old follow-distance / Autopilot-offset write (#209)
TLSSC Restore (v2.10+)
- Recover Traffic Light and Stop Sign Control on VIN-banned vehicles
- Read-modify-retransmit on CAN ID
0x331— setsDAS_autopilotto SELF_DRIVING - Confirmed working on Palladium (Model S Plaid 2023), HW4 Highland (Model 3 Performance 2024), and Intel HW3 (with AP-first workaround)
- Does NOT restore full FSD visualization — only TLSSC (stop signs / traffic lights)
- Recommended banned-car combination: enable TLSSC Restore + TLSSC bit38 (
0x3FDmux 0 bit 38) together — confirmed reliable on HW3 / 2026.2.6 by @RoyRakete (#18). Either toggle alone is unreliable on some banned firmware; the pair re-enables AP/TACC engagement
GTW Config Replay (v2.9+, renamed from "Ban Shield" in v2.15)
- Watches
GTW_carConfig(0x7FF) and replays the learned-healthy bus broadcast in real time when the gateway emits a modified frame - Learns all 8 mux frames on first run, then auto-arms
- What it actually does: broadcast-layer mask only. When armed, the AP ECU sees the replayed healthy frame instead of the gateway's modified one. Tesla's ban writes to GTW NVRAM (which survives reboots) and to server-side flags; this feature does not undo NVRAM state or backend records, only what other on-bus ECUs see in real time.
- What it doesn't do: prevent bans, undo bans, or change Tesla's server-side entitlement record. No empirical case of ban prevention has been confirmed in 6 weeks of v2.9-v2.14 deployment. Honest framing per #60 and #67. The v2.14 name "Ban Shield" overpromised — the v2.15 rename reflects what the code actually does.
Nag Killer (v2.1+)
- DAS-aware gating — only echoes when DAS is actually demanding hands-on, zero bus traffic when DAS is satisfied
- Organic torque variation — xorshift32 PRNG random walk in 1.00-1.80 Nm with a grip pulse every 5-9 seconds. Every nag path is capped at ±1.8 Nm since v2.16-beta.11, so grip pulses peak at 1.80 Nm (#122)
- On-demand grip pulse (v2.15+) — when
handsOnLevelrises into a nag-demand state (0 imminent / 3 escalated), an immediate grip pulse fires and the periodic schedule resets. Closes the 2-second yellow-escalation window that could open between scheduled pulses on v2.14 and earlier - EPAS counter+1 echo on
0x370with level 0 (nag imminent) and level 3 (escalated alarm) suppression - Tap Party CAN (X179 pins 2/3) for the nag killer.
0x370is on Party CAN — not Vehicle CAN (9/10), and the Chassis CAN copy (13/14 on some harnesses) trips the 2026.14.x preflight. Confirmed working on HW4 2026.20 by tapping 2/3 (#100). A single-CAN board on the wrong pair has nothing to echo — the usual cause of "nag killer does nothing on HW4." Check your car's wiring diagram (or the Service Mode → CAN Port page, where available) for which pin is Party on your harness; see HARDWARE.md.
AP-First mode (v2.14+, for 2026.14.x firmware)
- Tesla 2026.14.x added a preflight check that blocks AP/TACC engagement if CAN injection is already active
- When AP-First is enabled, the app monitors
DAS_autopilotStatefrom0x39Band only starts injecting0x3FDafter AP is engaged. On ESP32, the DAS status source follows detected HW version. - Nag killer, TLSSC Restore, and GTW Config Replay are unaffected (they target different CAN IDs)
14.x firmware warning (v2.15+)
- Default ON. Flipper running scene replaces the BMS / flags line with
!14.x: TX may stop APwhenever the warning toggle is enabled. ESP32 web dashboard shows a dismissible yellow banner at the top. - Pessimistic default: most users on 14.x firmware don't know they're affected until autosteer disengages mid-drive. The warning reaches them before they enable any TX feature.
- Opt-out via the On 14.x? Settings toggle (Flipper) or the Dismiss button on the banner (ESP32, persisted in NVS). Disable if you are sure you're on pre-14.x firmware.
- Regional caveat: enforcement intensity varies by market. Some regions (markets without Tesla direct presence) appear to enforce less aggressively. See #122 for the running 14.x / 2026.20 tracker.
- "Does this unlock FSD on 2026.14.x / .20 / .26.x?" Short answer: no — the activation preflight and an off-CAN region lock block it, while nag killer / TLSSC / Summon EU / captures still work. Full explanation in the FSD-on-14.x FAQ (#168), with the frame-level proof in #163.
Diagnostics (read-only, no FSD required)
- Live BMS dashboard: pack voltage, current, SoC (the BMS figure from
0x292and, on the ESP32, the car's own from0x33A), temperature range - Performance panel (ESP32 web dashboard, read-only, opt-in): acceleration / braking timers (0-50, 0-60 mph, 0-100, 100-0 km/h with a per-session best), estimated longitudinal G (dv/dt of speed, no IMU), wheel slip %, and pack temperature / power. Speed and est. G work on any tap carrying
0x257; wheel slip needs Party CAN (0x175); temperature and power need the BMS frames on a Vehicle-CAN tap. Transmits nothing - Vehicle speed, steering angle, motor torque, brake state
- DAS status: autopilot state, hands-on nag level, lane change state, blind spot warning, FCW, vision speed limit
- GTW autopilot tier readback (NONE/HIGHWAY/ENHANCED/SELF_DRIVING/BASIC)
- OTA detection with debounce — auto-suspends TX during firmware updates unless the explicit Ignore OTA override is enabled. Only a stable "installing" value counts; on newer cars
0x318byte6 is a rolling counter and can't trip it (#183) - Autopark pause — all TX stops while the car runs in-car Autopark and resumes when it ends; FSD engaged isn't affected (#180)
CAN Capture + Test Profiles (v2.16+)
- CAN Capture — record every received frame to the SD card in candump format (
apps_data/tesla_mod/captures/). Read-only; safe to run on any car. Feedstools/tesla_crc_cracker.py. - Send Test — load a user-authored
.cantesttext profile from the SD card and replay your own frames. Defaults to dry-run; transmitting is hard-gated to a parked, stationary car (fail-closed) and re-checked before every frame. Result is logged for a bug report. Format + workflow: docs/cantest-format.md, example: examples/example.cantest.
Extra unlocks (v2.16+, opt-in, default OFF)
ESP32 dashboard only for now — the Flipper menu doesn't have these toggles, so a Flipper never sets the summon bit (bit47).
- Summon EU Unlock —
0x3FDmux1: clears bit19 (EU AP restriction) and sets bit47 (summon-enable) to expose Summon on EU-restricted cars - Continue on Green —
0x3FDmux0 bit39UI_fsdContinueOnGreenWithCIPV— continue through a green light behind a lead car without a stalk confirmation; pairs with TLSSC - Right-Hand Drive (RHD) override —
0x3F8bit41UI_drivingSide= RHD. RHD markets only - AP branch/tier selector —
0x3FDmux1 bits 40-42UI_apmv3Branch: Live / Stage / Dev / Stage2 / EAP / Demo. Experimental, non-persistent UI hint — reverts when injection stops - Adjustable Track Mode (experimental) —
0x313UI_trackModeSettings: Handling Balance + Stability Assist + post-drive cooling, checksum recomputed. Vehicle bus; defaults to rotation 100 / stability 30%. Likely Performance-only: a decompile of the rear drive-unit firmware shows the Track Mode state machine staysUNAVAILABLEunless the car'sGTW_performancePackageisPERFORMANCE, so on a non-Performance car this request probably has no effect. We have no on-car confirmation it engages Track Mode on a non-Performance trim — if you have evidence either way, say so on #285 - Acceleration Mode (experimental) —
0x334UI_powertrainControlUI_pedalMap(byte0 bits 5-6): Off (pass-through) / Chill / Standard / Performance, written into the car's own frame with the counter kept and the checksum recomputed. A new mode only switches at standstill; Off, or a mode change on the touchscreen while driving, goes back to pass-through at once. The touchscreen keeps showing your own setting.0x334is on Vehicle and Chassis CAN, not OBD-II Party CAN. It changes the pedal map only, not the drive unit's power rating. Likely no effect: a decompile of the rear drive-unit firmware shows "Standard" and "Performance" pedal maps are handled identically — the map that matters is set byGTW_performancePackagein the car config, not by this frame — so treat this as unproven. Not car-validated. Idea from ColinM-sys/tesla-can-boost (#211)
Settings (runtime toggles)
Most toggles are on both builds. Flipper only: GTW Config Replay, Emerg. Vehicle, ScrollPress AP, Nav FSD Route, Lane Graph, Tier Override, Dev Mode, Hands-Off, Force LHD, MCP Crystal. ESP32 only: FSD Unlock (master switch for the 0x3FD FSD bits, off by default), HW3 Speed Override, Ignore OTA, Abort Guard, Continuous AP, China Mode, Right-Hand Drive, the Extra unlocks above and the Hardware selector (the Flipper uses Force HW3/HW4/Legacy in its main menu).
Stable (car-tested):
| Setting | Description |
|---------|-------------|
| Mode | Active / Listen-Only / Service. Listen-Only is the first-boot default — MCP2515 is in hardware listen-only mode and physically cannot TX. |
| Nag Killer | DAS-aware EPAS counter+1 echo with organic torque variation. |
| Force FSD | Bypass the isFSDSelectedInUI check. Does not bypass Tesla's server-side entitlement — only affects local CAN frame flow. |
| Ignore OTA | Allows CAN TX in Active mode even when 0x318 reports a Tesla OTA update in progress. Default is off. |
| TLSSC Restore | 0x331 DAS config spoof to recover TLSSC on banned vehicles. Triggers MCU reboot. |
| AP-First (14.x) | Delay 0x3FD injection until AP is engaged. Required for Tesla firmware 2026.14.x. |
| GTW Config Replay | Replay learned-healthy GTW_carConfig (0x7FF) broadcasts when the gateway emits modified frames. CAN-broadcast-layer mask only — does not undo NVRAM or backend-side ban flags, does not prevent bans. Renamed from "Ban Shield" in v2.15 (#60, #67). |
| Suppress Chime | Kill the ISA speed warning chime (HW4 only, 0x399). On ESP32 this is active only after HW4 detection; Legacy/HW3 use 0x399 as DAS status instead. |
| Emerg. Vehicle | Enable emergency vehicle detection flag (HW4 only, bit59). |
| Precondition | Battery preheat trigger via 0x082. |
Beta (untested, please report results):
| Setting | CAN ID | Description |
|---------|--------|-------------|
| ScrollPress AP | 0x3C2 mux=1 | HW4-only, Service mode only. Engages AP via a time-based, human-like scroll-wheel gesture (press ~250ms → scroll-up ~150ms → press ~250ms → scroll-up) on swcRightPressed (bits 12-13) + swcRightScrollTicks (bits 24-29), fired when DAS_autopilotState rises 0→1 — no 0x3FD touch. First known 2026.14.x bypass; discovered + bench-verified on Highland HW4 / 2026.14.2 by @JakNo (#43, timed flow #82). HW3 disabled in v2.15 after @DmitroPanteliuk's emergency-brake report on Intel HW3 2026.14.6 |
| Nav FSD Route | 0x3F8 bits 13/48/49 | Enable nav-based FSD routing (EU/restricted regions) |
| TLSSC bit38 | 0x3FD mux0 bit38 | Explicit TLSSC enable; pair with TLSSC Restore (0x331) as the recommended banned-car combo |
| Lane Graph | 0x3FD mux1 bit45 | UI_showLaneGraph — lane visualization on non-FSD tier |
| Tier Override | 0x7FF mux=2 | Force GTW_autopilot to SELF_DRIVING (more aggressive than GTW Config Replay — actively writes rather than replays) |
| Dev Mode | 0x3F8 bit5 | UI_dasDeveloper flag |
| Right-Hand Drive (RHD) | 0x3F8 bit41 | UI_drivingSide = RHD (bit41 set, bit40 clear — mutually exclusive with the old LHD probe). RHD markets only. Honest note: the earlier Force-LHD probe was empirically ineffective — values 0/1/2 all left FSD on the LHD side on a banned RHD HW3 / 2026.2.6 (#66); RHD now ships as the requested-direction override (ESP32; the Flipper menu still has the old Force LHD toggle) |
| Hands-Off | 0x3F8 bit14 | UI-level hands-on disable (second nag vector) |
| Telemetry Off | 0x3F8 bits 19/42/43/44/55 + 0x3FD mux1 bits 48/50 | Clears the reachable telemetry-enable flags (clip / trip / road-segment on 0x3F8, cabin-camera / China on 0x3FD). Experimental — reachable flags only, not the Vehicle-bus ECU log-upload, and not a ban guarantee. Use only with SIM pulled |
14.x experimental (off by default, please report):
These target Tesla 2026.14.x / 2026.20 behaviour and are all off by default. They are probes, not confirmed universal fixes — see #122 for live status. Toggle in the ESP32 web dashboard (and Flipper Settings where available).
| Setting | Description |
|---------|-------------|
| Abort Guard (ESP32) | Steer-jerk mitigation (#108). The activation jerk is the car aborting the engage (DAS_autopilotState → 8 ABORTING → 9 ABORTED). When on, cuts all activation injection the instant an abort state appears and stays off until a clean disengage. Validated on-car: eliminated the jerk on wide/straight roads (0 in hundreds of cycles, was ~1/25–30). Limit: some narrow roads jump straight to FAULT (9) with no lead, which it can't catch. |
| Soft Engage | Steer-jerk mitigation (#108). Holds the activation-edge injection until the wheel is within ±5° of centre. Needs 0x129 (steering angle) on the tapped bus; degrades to AP-First-only if absent. Largely superseded by Abort Guard for straight-road jerks. |
| Nag Burst | Echoes 0x370 in bursts (~1 s on / ~1.5 s off) instead of continuously (#122). The rest periods are the believed reason some in-the-wild devices evade the stricter 14.x nag detector. Pairs with a ±1.8 Nm steering-torque cap. |
| EPAS-faithful (Mode-C) | Demand-state torque model that mirrors a real EPAS instead of flipping handsOnLevel (#100). For cars where the standard nag killer trips the preflight. Not yet confirmed on-car. |
| Instant Engage | Steer-jerk / activation-lag A/B (#108, #129). With AP-First on, injects as soon as AP is engaged (DAS state ≥ 3) instead of waiting out the 1 s stability debounce. Still holds while AP is only available (state 2). |
| Minimal Inject | Narrow-road steer-jerk probe (#108). Injects only a short burst (5 frames) at the start of each engagement, then stops until the car disengages. Stacks with Instant Engage. |
| Signal Map (ESP32 → advanced) | Override where the nag killer reads AP-state / hands-on / steering: id + byte/shift/mask (#122). For variants whose 0x39B/0x399 layout differs. Freshness-gated — a wrong map fails closed, and the dashboard warns when the mapped DAS id never shows up on the bus. A field with mask 0 is ignored. Leave DAS id 0 for auto-detect. The Flipper has a preset picker instead (Auto / 0x39B b0 / 0x39B b1 / 0x399 b0). |
Hardware:
| Setting | Description |
|---------|-------------|
| MCP Crystal | 16 / 8 / 12 MHz — match your CAN module's crystal frequency. |
| Hardware (ESP32) | Auto-detect / Force HW4 / Force HW3 / Force Legacy. Auto-detect needs 0x398, which many Model 3/Y never send — pin your car if detection is wrong. NVS-persisted, applied at boot. |
HW Support
| Tesla HW | Bits Modified | Speed Profile | |----------|---------------|---------------| | Legacy (HW1/HW2) | bit46 | 3 levels (0-2) | | HW3 | bit46 | car's own (3 levels with HW3 Speed Override) | | HW4 (FSD V14+) | bit46 + bit60 | 5 levels (0-4) |
---
Hardware
Flipper Zero
| Component | Description | Price | |-----------|-------------|-------| | Flipper Zero | The multi-tool device | ~$170 | | Electronic Cats CAN Bus Add-On | MCP2515-based CAN transceiver (v1.2 supported) | ~$30 | | OBD-II cable or X179 pigtail | Connect to Tesla's CAN bus | ~$5-10 |
ESP32 (from $14)
Full-featured ESP32 port with WiFi web dashboard, NVS settings persistence, deep sleep, and factory reset. Same core CAN logic as the Flipper app; a few toggles exist on only one build (see Settings).
The ESP32 firmware maps AP/DAS status by detected hardware version:
| Detected HW | 0x399 | 0x39B | ISA speed chime |
|-------------|---------|---------|-----------------|
| Legacy HW1/HW2 | DAS_status | not used | disabled |
| HW3 | DAS_status | not used | disabled |
| HW4 | ISA_SPEED | DAS_status | enabled |
| Board | Cost | Build target |
|-------|------|-------------|
| M5Stack ATOM Lite + ATOMIC CAN | ~$14 | m5stack-atom |
| Lilygo T-CAN485 | ~$15 | esp32-lilygo |
| Waveshare ESP32-S3-RS485-CAN | ~$18 | waveshare-s3-can |
| LilyGO TTGO T-Display + MCP2515 | ~$20 | ttgo-tdisplay |
| LilyGO T-2CAN (dual CAN) | ~$24 | lilygo-t2can |
| LilyGO T-2CAN FD (dual CAN, MCP2518FD) | ~$25 | lilygo-t2can-fd |
| Generic ESP32 + MCP2515 | ~$6 | esp32-mcp2515 |
See esp32/README.md for setup, and HARDWARE.md for the full comparison + wiring diagrams + X179 pinouts.
Connection points
- OBD-II — Party CAN. On 2019+ Model 3 / 2020–April 2024 Model Y it sits in the rear center console area and needs a Tesla adapter cable; 2024+ Juniper / later Highland builds use DoIP (Ethernet) there, not CAN. May go silent in Drive on some Model 3/Y builds.
- X179 (behind the rear center console) — recommended. The pin→bus map varies by harness, so check your car's wiring diagram before wiring (or the Service Mode → CAN Port page, where the car has it). See
HARDWARE.mdfor 20-pin and 26-pin pinouts and links to Tesla's Electrical Reference.
---