| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Audi A4 B5 HVAC Diagnostic</title>
- <!-- Fonts -->
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Outfit:wght@300;400;600;800&display=swap" rel="stylesheet">
- <link rel="stylesheet" href="/static/css/style.css">
- </head>
- <body>
- <div class="app-container">
- <!-- Header -->
- <header class="header glass-panel">
- <div class="logo-area">
- <div class="rings">
- <div class="ring"></div><div class="ring"></div><div class="ring"></div><div class="ring"></div>
- </div>
- <h1>A4 B5 <span>HVAC DIAGNOSTIC</span></h1>
- </div>
-
- <div class="connection-area">
- <div class="port-selector">
- <select id="portSelect">
- <option value="">Scanning ports...</option>
- </select>
- <button id="refreshPortsBtn" class="icon-btn" title="Refresh Ports">↻</button>
- </div>
- <button id="connectBtn" class="btn btn-primary">Connect</button>
- <div class="status-indicator">
- <div id="statusDot" class="dot disconnected"></div>
- <span id="statusText">Disconnected</span>
- </div>
- </div>
- </header>
- <!-- Main Content (Hidden until connected) -->
- <main id="mainContent" class="main-content hidden">
- <!-- ECU Info Bar -->
- <div class="ecu-info-bar glass-panel">
- <div class="ecu-item">
- <span class="label">MODULE</span>
- <span class="value">08 - Auto HVAC</span>
- </div>
- <div class="ecu-item">
- <span class="label">PART NUMBER</span>
- <span class="value" id="ecuPartNum">--</span>
- </div>
- <div class="ecu-item">
- <span class="label">EXTRA INFO</span>
- <span class="value" id="ecuExtra">--</span>
- </div>
- <div class="ecu-actions">
- <button id="exportAllBtn" class="btn btn-export" title="Export all data for AI analysis">
- <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0a1 1 0 0 1 1 1v5.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L7 6.586V1a1 1 0 0 1 1-1zM1 10a1 1 0 0 1 1 1v2a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1v-2a1 1 0 1 1 2 0v2a3 3 0 0 1-3 3H3a3 3 0 0 1-3-3v-2a1 1 0 0 1 1-1z"/></svg>
- Export Report
- </button>
- </div>
- </div>
- <!-- Live Dashboard Gauges -->
- <section id="gaugeDashboard" class="gauge-dashboard glass-panel">
- <div class="panel-header">
- <h2>Live Dashboard</h2>
- <div class="panel-actions">
- <div class="live-toggle">
- <label class="switch">
- <input type="checkbox" id="dashLiveToggle">
- <span class="slider round"></span>
- </label>
- <span>Auto-Refresh</span>
- </div>
- </div>
- </div>
- <div class="gauge-grid">
- <!-- Row 1: Temperature Gauges -->
- <div class="gauge-card" id="gaugeInteriorTemp">
- <canvas id="gaugeCanvasInterior" width="160" height="160"></canvas>
- <div class="gauge-info">
- <span class="gauge-value" id="gaugeValInterior">--</span>
- <span class="gauge-unit">°C</span>
- </div>
- <span class="gauge-label">Interior Temp</span>
- </div>
- <div class="gauge-card" id="gaugeOutsideTemp">
- <canvas id="gaugeCanvasOutside" width="160" height="160"></canvas>
- <div class="gauge-info">
- <span class="gauge-value" id="gaugeValOutside">--</span>
- <span class="gauge-unit">°C</span>
- </div>
- <span class="gauge-label">Outside Temp</span>
- </div>
- <div class="gauge-card" id="gaugeEvapTemp">
- <canvas id="gaugeCanvasEvap" width="160" height="160"></canvas>
- <div class="gauge-info">
- <span class="gauge-value" id="gaugeValEvap">--</span>
- <span class="gauge-unit">°C</span>
- </div>
- <span class="gauge-label">Evaporator Temp</span>
- </div>
- <!-- Row 2: Operational Gauges -->
- <div class="gauge-card" id="gaugeBlower">
- <canvas id="gaugeCanvasBlower" width="160" height="160"></canvas>
- <div class="gauge-info">
- <span class="gauge-value" id="gaugeValBlower">--</span>
- <span class="gauge-unit">V</span>
- </div>
- <span class="gauge-label">Blower Speed</span>
- </div>
- <div class="gauge-card" id="gaugeCompressor">
- <div class="compressor-status" id="compressorStatusIcon">
- <div class="compressor-ring off">
- <svg width="60" height="60" viewBox="0 0 60 60" fill="none">
- <circle cx="30" cy="30" r="24" stroke="currentColor" stroke-width="3" fill="none"/>
- <text x="30" y="34" text-anchor="middle" fill="currentColor" font-size="14" font-weight="700">A/C</text>
- </svg>
- </div>
- </div>
- <div class="gauge-info">
- <span class="gauge-value" id="gaugeValCompressor">OFF</span>
- <span class="gauge-unit"></span>
- </div>
- <span class="gauge-label">Compressor</span>
- </div>
- <div class="gauge-card" id="gaugeSystemV">
- <canvas id="gaugeCanvasSysV" width="160" height="160"></canvas>
- <div class="gauge-info">
- <span class="gauge-value" id="gaugeValSysV">--</span>
- <span class="gauge-unit">V</span>
- </div>
- <span class="gauge-label">System Voltage</span>
- </div>
- </div>
- </section>
- <!-- Car Sensor Diagram -->
- <section class="car-diagram-section glass-panel">
- <div class="panel-header">
- <h2>Sensor Map — Audi A4 B5</h2>
- <span class="diagram-legend">
- <span class="legend-item"><span class="legend-dot ok"></span> Normal</span>
- <span class="legend-item"><span class="legend-dot warn"></span> Warning</span>
- <span class="legend-item"><span class="legend-dot fault"></span> Fault / Open</span>
- </span>
- </div>
- <div class="car-diagram-container">
- <svg id="carDiagram" viewBox="0 0 900 420" xmlns="http://www.w3.org/2000/svg">
- <defs>
- <filter id="glow-ok">
- <feGaussianBlur stdDeviation="3" result="blur"/>
- <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
- </filter>
- <filter id="glow-fault">
- <feGaussianBlur stdDeviation="4" result="blur"/>
- <feMerge><feMergeNode in="blur"/><feMergeNode in="SourceGraphic"/></feMerge>
- </filter>
- <linearGradient id="bodyGrad" x1="0" y1="0" x2="1" y2="1">
- <stop offset="0%" stop-color="rgba(30,30,50,0.6)"/>
- <stop offset="100%" stop-color="rgba(15,15,30,0.8)"/>
- </linearGradient>
- <linearGradient id="windowGrad" x1="0" y1="0" x2="0" y2="1">
- <stop offset="0%" stop-color="rgba(0,212,255,0.08)"/>
- <stop offset="100%" stop-color="rgba(0,212,255,0.02)"/>
- </linearGradient>
- </defs>
- <!-- Car Body - Top-down view (sedan profile) -->
- <!-- Main body outline -->
- <path d="M 150,60 Q 120,60 100,80 L 80,120 Q 70,150 70,210 Q 70,270 80,300 L 100,340 Q 120,360 150,360 L 750,360 Q 780,360 800,340 L 820,300 Q 830,270 830,210 Q 830,150 820,120 L 800,80 Q 780,60 750,60 Z"
- fill="url(#bodyGrad)" stroke="rgba(255,255,255,0.15)" stroke-width="2"/>
- <!-- Hood area -->
- <path d="M 150,75 L 300,75 L 300,345 L 150,345 Q 130,345 115,325 L 95,290 Q 85,265 85,210 Q 85,155 95,130 L 115,95 Q 130,75 150,75 Z"
- fill="rgba(255,255,255,0.02)" stroke="rgba(255,255,255,0.06)" stroke-width="1"/>
- <text x="190" y="215" fill="rgba(255,255,255,0.15)" font-size="13" text-anchor="middle" font-family="Outfit">ENGINE BAY</text>
- <!-- Windshield -->
- <path d="M 300,90 L 380,90 L 380,330 L 300,330 Z"
- fill="url(#windowGrad)" stroke="rgba(0,212,255,0.15)" stroke-width="1.5"/>
- <text x="340" y="215" fill="rgba(255,255,255,0.1)" font-size="10" text-anchor="middle" font-family="Outfit">WINDSHIELD</text>
- <!-- Dashboard / Firewall area -->
- <line x1="300" y1="75" x2="300" y2="345" stroke="rgba(255,255,255,0.1)" stroke-width="1" stroke-dasharray="4,4"/>
- <!-- Cabin area -->
- <rect x="380" y="90" width="220" height="240" rx="5"
- fill="rgba(255,255,255,0.01)" stroke="rgba(255,255,255,0.06)" stroke-width="1"/>
- <text x="490" y="215" fill="rgba(255,255,255,0.1)" font-size="13" text-anchor="middle" font-family="Outfit">CABIN</text>
- <!-- Rear window -->
- <path d="M 600,95 L 670,95 L 670,325 L 600,325 Z"
- fill="url(#windowGrad)" stroke="rgba(0,212,255,0.12)" stroke-width="1"/>
- <!-- Trunk area -->
- <path d="M 670,80 L 750,80 Q 770,80 785,95 L 805,125 Q 815,150 815,210 Q 815,270 805,295 L 785,325 Q 770,340 750,340 L 670,340 Z"
- fill="rgba(255,255,255,0.01)" stroke="rgba(255,255,255,0.06)" stroke-width="1"/>
- <text x="740" y="215" fill="rgba(255,255,255,0.1)" font-size="11" text-anchor="middle" font-family="Outfit">TRUNK</text>
- <!-- Wheels -->
- <ellipse cx="200" cy="65" rx="35" ry="10" fill="rgba(255,255,255,0.04)" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/>
- <ellipse cx="200" cy="355" rx="35" ry="10" fill="rgba(255,255,255,0.04)" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/>
- <ellipse cx="680" cy="65" rx="35" ry="10" fill="rgba(255,255,255,0.04)" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/>
- <ellipse cx="680" cy="355" rx="35" ry="10" fill="rgba(255,255,255,0.04)" stroke="rgba(255,255,255,0.1)" stroke-width="1.5"/>
- <!-- HVAC Box (behind dashboard) -->
- <rect x="310" y="140" width="65" height="140" rx="4"
- fill="rgba(0,212,255,0.05)" stroke="rgba(0,212,255,0.2)" stroke-width="1" stroke-dasharray="3,3"/>
- <text x="342" y="195" fill="rgba(0,212,255,0.3)" font-size="8" text-anchor="middle" font-family="Outfit" transform="rotate(-90,342,195)">HVAC UNIT</text>
- <!-- ======= SENSOR MARKERS ======= -->
- <!-- G17 - Outside Air Temp - Front bumper/radiator area -->
- <g class="sensor-group" id="sensorG17" data-sensor="G17">
- <circle cx="95" cy="210" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
- <circle cx="95" cy="210" r="3" fill="#00d4ff"/>
- <line x1="103" y1="210" x2="130" y2="175" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
- <rect x="65" y="155" width="95" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
- <text x="112" y="168" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G17 — OUTSIDE</text>
- <text x="112" y="183" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G17">--°C</text>
- </g>
- <!-- G65 - High Pressure Sensor - Engine bay, near A/C lines -->
- <g class="sensor-group" id="sensorG65" data-sensor="G65">
- <circle cx="240" cy="130" r="8" fill="rgba(0,230,118,0.15)" stroke="#00e676" stroke-width="2" filter="url(#glow-ok)"/>
- <circle cx="240" cy="130" r="3" fill="#00e676"/>
- <line x1="248" y1="130" x2="270" y2="100" stroke="rgba(0,230,118,0.4)" stroke-width="1"/>
- <rect x="210" y="78" width="95" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,230,118,0.3)" stroke-width="1"/>
- <text x="257" y="91" fill="#00e676" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G65 — A/C PRESS</text>
- <text x="257" y="106" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G65">-- V</text>
- </g>
- <!-- G263 - Evaporator Temp - Inside HVAC box -->
- <g class="sensor-group" id="sensorG263" data-sensor="G263">
- <circle cx="335" cy="180" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
- <circle cx="335" cy="180" r="3" fill="#00d4ff"/>
- <line x1="343" y1="175" x2="375" y2="135" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
- <rect x="325" y="110" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
- <text x="375" y="123" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G263 — EVAP</text>
- <text x="375" y="138" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G263">--°C</text>
- </g>
- <!-- G89 - Fresh Air Intake - Plenum, below cabin filter -->
- <g class="sensor-group" id="sensorG89" data-sensor="G89">
- <circle cx="310" cy="105" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
- <circle cx="310" cy="105" r="3" fill="#00d4ff"/>
- <line x1="310" y1="97" x2="310" y2="50" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
- <rect x="260" y="22" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
- <text x="310" y="35" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G89 — FRESH AIR</text>
- <text x="310" y="50" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G89">--°C</text>
- </g>
- <!-- G107 - Sunlight Sensor - Top of dashboard, near defroster -->
- <g class="sensor-group" id="sensorG107" data-sensor="G107">
- <circle cx="395" cy="210" r="8" fill="rgba(255,165,2,0.15)" stroke="#ffa502" stroke-width="2" filter="url(#glow-ok)"/>
- <circle cx="395" cy="210" r="3" fill="#ffa502"/>
- <line x1="403" y1="210" x2="440" y2="210" stroke="rgba(255,165,2,0.4)" stroke-width="1"/>
- <rect x="440" y="195" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(255,165,2,0.3)" stroke-width="1"/>
- <text x="490" y="208" fill="#ffa502" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G107 — SUNLIGHT</text>
- <text x="490" y="223" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G107">--</text>
- </g>
- <!-- G56 - Dash Panel Temp - Behind climate control faceplate, center console -->
- <g class="sensor-group" id="sensorG56" data-sensor="G56">
- <circle cx="395" cy="260" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
- <circle cx="395" cy="260" r="3" fill="#00d4ff"/>
- <line x1="403" y1="260" x2="440" y2="260" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
- <rect x="440" y="245" width="115" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
- <text x="497" y="258" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G56 — DASH PANEL</text>
- <text x="497" y="273" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G56">--°C</text>
- </g>
- <!-- G86 - Interior Temp (Headliner) - In the headliner -->
- <g class="sensor-group" id="sensorG86" data-sensor="G86">
- <circle cx="490" cy="150" r="8" fill="rgba(0,212,255,0.15)" stroke="#00d4ff" stroke-width="2" filter="url(#glow-ok)"/>
- <circle cx="490" cy="150" r="3" fill="#00d4ff"/>
- <line x1="490" y1="142" x2="490" y2="80" stroke="rgba(0,212,255,0.4)" stroke-width="1"/>
- <rect x="440" y="48" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(0,212,255,0.3)" stroke-width="1"/>
- <text x="490" y="61" fill="#00d4ff" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">G86 — HEADLINER</text>
- <text x="490" y="76" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_G86">--°C</text>
- </g>
- <!-- Flap Motors label cluster (inside HVAC box) -->
- <g class="sensor-group" id="sensorFlaps">
- <rect x="315" y="235" width="55" height="40" rx="3" fill="rgba(0,0,0,0.5)" stroke="rgba(255,255,255,0.1)" stroke-width="1"/>
- <text x="342" y="250" fill="rgba(255,255,255,0.4)" font-size="7" text-anchor="middle" font-family="Outfit">FLAP MOTORS</text>
- <text x="342" y="262" fill="rgba(255,255,255,0.25)" font-size="7" text-anchor="middle" font-family="JetBrains Mono">V68 V70</text>
- <text x="342" y="272" fill="rgba(255,255,255,0.25)" font-size="7" text-anchor="middle" font-family="JetBrains Mono">V71 V85</text>
- </g>
- <!-- Coolant Temp - Engine block area -->
- <g class="sensor-group" id="sensorCoolant">
- <circle cx="240" cy="250" r="8" fill="rgba(255,51,102,0.15)" stroke="#ff3366" stroke-width="2" filter="url(#glow-ok)"/>
- <circle cx="240" cy="250" r="3" fill="#ff3366"/>
- <line x1="248" y1="255" x2="270" y2="290" stroke="rgba(255,51,102,0.4)" stroke-width="1"/>
- <rect x="215" y="290" width="100" height="36" rx="4" fill="rgba(0,0,0,0.7)" stroke="rgba(255,51,102,0.3)" stroke-width="1"/>
- <text x="265" y="303" fill="#ff3366" font-size="9" text-anchor="middle" font-family="Outfit" font-weight="600">COOLANT TEMP</text>
- <text x="265" y="318" fill="#f0f0f5" font-size="14" text-anchor="middle" font-family="JetBrains Mono" font-weight="700" id="diag_Coolant">--°C</text>
- </g>
- <!-- Direction arrow -->
- <text x="110" y="390" fill="rgba(255,255,255,0.15)" font-size="11" font-family="Outfit">◀ FRONT</text>
- <text x="750" y="390" fill="rgba(255,255,255,0.15)" font-size="11" font-family="Outfit" text-anchor="end">REAR ▶</text>
- </svg>
- </div>
- </section>
- <div class="dashboard-grid">
- <!-- Fault Codes Panel -->
- <section class="panel dtc-panel glass-panel">
- <div class="panel-header">
- <h2>Fault Codes (DTCs)</h2>
- <div class="panel-actions">
- <button id="exportDTCBtn" class="btn btn-export-sm" title="Export fault codes">⤓ Export</button>
- <button id="readDTCBtn" class="btn btn-secondary">Read Faults</button>
- <button id="clearDTCBtn" class="btn btn-danger">Clear</button>
- </div>
- </div>
-
- <div id="dtcContainer" class="dtc-list scrollable">
- <div class="empty-state">
- <div class="icon">✓</div>
- <p>Click "Read Faults" to check for codes.</p>
- </div>
- </div>
- </section>
- <!-- Measurements Panel -->
- <section class="panel meas-panel glass-panel">
- <div class="panel-header">
- <h2>Measurement Blocks</h2>
- <div class="group-selector">
- <label>Group:</label>
- <div class="group-pills" id="groupPills">
- <!-- Generated by JS -->
- </div>
- <input type="number" id="customGroupInput" min="1" max="255" placeholder="Custom">
- <button id="readGroupBtn" class="btn btn-secondary">Read</button>
- <button id="exportMeasBtn" class="btn btn-export-sm" title="Export measurement blocks">⤓ Export</button>
- </div>
- </div>
- <div class="meas-controls">
- <div class="live-toggle">
- <label class="switch">
- <input type="checkbox" id="liveModeToggle">
- <span class="slider round"></span>
- </label>
- <span>Live Monitor</span>
- </div>
- <span id="groupNameLabel" class="group-name">Select a group</span>
- </div>
- <div id="measContainer" class="meas-grid">
- <!-- Measurement Cards (Generated by JS) -->
- </div>
- </section>
- </div>
- </main>
- <!-- Log Panel -->
- <footer class="log-panel glass-panel">
- <div class="log-header">
- <h3>Communication Log</h3>
- <button id="toggleLogBtn" class="icon-btn">▼</button>
- </div>
- <div id="logContainer" class="log-content scrollable font-mono collapsed">
- <div class="log-line system">Ready. Please connect to continue.</div>
- </div>
- </footer>
- </div>
- <!-- Modals -->
- <div id="confirmModal" class="modal hidden">
- <div class="modal-content glass-panel">
- <h3>Clear Fault Codes</h3>
- <p class="warning">Are you sure you want to clear all stored fault codes from the HVAC module? This action cannot be undone.</p>
- <div class="modal-actions">
- <button id="cancelModalBtn" class="btn btn-secondary">Cancel</button>
- <button id="confirmClearBtn" class="btn btn-danger">Yes, Clear Faults</button>
- </div>
- </div>
- </div>
- <script src="/static/js/app.js"></script>
- </body>
- </html>
|