-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserial.html
More file actions
243 lines (224 loc) · 11.4 KB
/
Copy pathserial.html
File metadata and controls
243 lines (224 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#000000" />
<title>GhostESP Serial Console and Web Serial Tools</title>
<meta name="description" content="Connect to GhostESP over Web Serial for console access, screen mirroring, file browsing, crash decoding, device setup, logs, and ESP32 troubleshooting.">
<meta name="robots" content="index, follow">
<meta property="og:type" content="website">
<meta property="og:title" content="GhostESP Serial Console and Web Serial Tools">
<meta property="og:description" content="Connect to GhostESP over Web Serial for console access, screen mirroring, file browsing, crash decoding, logs, and ESP32 troubleshooting.">
<meta property="og:url" content="https://ghostesp.net/serial">
<meta property="og:site_name" content="GhostESP">
<meta property="og:image" content="https://ghostesp.net/images/IMG_1178.webp">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="GhostESP Serial Console and Web Serial Tools">
<meta name="twitter:description" content="Connect to GhostESP over Web Serial for console, files, screen mirror, and crash decoding.">
<meta name="twitter:image" content="https://ghostesp.net/images/IMG_1178.webp">
<link rel="canonical" href="https://ghostesp.net/serial">
<link rel="alternate" type="application/rss+xml" title="GhostESP Blog" href="https://ghostesp.net/feed.xml">
<link rel="icon" type="image/x-icon" href="images/favicon.ico">
<link rel="apple-touch-icon" sizes="180x180" href="images/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon-16x16.png">
<link rel="manifest" href="images/site.webmanifest">
<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=Share+Tech+Mono&family=Space+Grotesk:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
<link rel="stylesheet" href="css/main.css" />
<link rel="stylesheet" href="css/serial.css" />
<link rel="stylesheet" href="css/serial-mirror.css" />
<link rel="stylesheet" href="css/serial-files.css" />
<link rel="stylesheet" href="css/serial-crash.css" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "GhostESP Serial Console",
"url": "https://ghostesp.net/serial",
"applicationCategory": "DeveloperApplication",
"operatingSystem": "Web browser",
"description": "Web Serial console, screen mirror, file browser, and crash decoder for GhostESP devices.",
"isAccessibleForFree": true,
"publisher": {
"@type": "Organization",
"name": "GhostESP",
"url": "https://ghostesp.net/"
}
}
</script>
</head>
<body>
<a href="#main-content" class="skip-link">Skip to content</a>
<canvas id="dotTerrain"></canvas>
<nav id="nav"><noscript><a href="/">Home</a> <a href="boards.html">Boards</a> <a href="flasher.html">Flasher</a> <a href="serial.html">Serial Console</a> <a href="marketplace.html">Apps</a> <a href="asset-marketplace.html">Asset Packs</a> <a href="irdb.html">IRDB</a> <a href="blog.html">Blog</a> <a href="https://docs.ghostesp.net">Docs</a></noscript></nav>
<main id="main-content" class="serial-page">
<div class="serial-container">
<!-- Welcome Card (shown when disconnected) -->
<div class="welcome-card" id="welcomeCard">
<div class="welcome-icon">
<svg viewBox="0 0 24 24" width="48" height="48" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 2L2 7l10 5 10-5-10-5z"/>
<path d="M2 17l10 5 10-5"/>
<path d="M2 12l10 5 10-5"/>
</svg>
</div>
<h1>Connect Your Device</h1>
<p class="welcome-desc">Plug in your GhostESP device and click connect to get started.</p>
<div class="welcome-steps">
<div class="welcome-step">
<span class="step-num">1</span>
<span>Plug in your device via USB</span>
</div>
<div class="welcome-step">
<span class="step-num">2</span>
<span>Click the button below</span>
</div>
<div class="welcome-step">
<span class="step-num">3</span>
<span>Select your device from the popup</span>
</div>
</div>
<div class="welcome-baud-row">
<label for="welcomeBaud" class="welcome-baud-label">Baud Rate</label>
<select class="btn" id="welcomeBaud">
<option value="9600">9600</option>
<option value="19200">19200</option>
<option value="38400">38400</option>
<option value="57600">57600</option>
<option value="115200" selected>115200</option>
<option value="230400">230400</option>
<option value="460800">460800</option>
<option value="921600">921600</option>
</select>
</div>
<button class="btn btn-primary btn-lg" id="welcomeConnect">
<i class="bi bi-usb-symbol"></i> Connect Device
</button>
<div class="welcome-hint">
<i class="bi bi-info-circle"></i>
Requires a Chromium-based browser (Chrome, Edge, Opera)
</div>
<div class="welcome-hint">
<i class="bi bi-usb-symbol"></i>
COM port not showing? Install the <a href="https://www.wch-ic.com/downloads/ch341ser_exe.html" target="_blank" rel="noopener">CH341 serial driver</a>.
</div>
<div class="contextual-discord-cta" style="margin-top:1.5rem; text-align:left;">
<div class="contextual-discord-cta-icon"><i class="bi bi-discord" style="font-size:1.2rem;"></i></div>
<div class="contextual-discord-cta-content">
<h4>Need help getting started?</h4>
<p>Join our Discord for setup guides and community support.</p>
</div>
<a href="https://discord.gg/5cyNmUMgwh" target="_blank" rel="noopener" class="btn btn-secondary btn-small">Join</a>
</div>
</div>
<!-- Console Main (shown when connected) -->
<div class="console-main hidden" id="consoleMain">
<div class="tab-bar">
<button class="tab-btn active" data-tab="console">
<i class="bi bi-terminal"></i>
<span>Console</span>
</button>
<button class="tab-btn" data-tab="mirror">
<i class="bi bi-display"></i>
<span>Mirror</span>
</button>
<button class="tab-btn" data-tab="files">
<i class="bi bi-folder2-open"></i>
<span>Files</span>
</button>
<button class="tab-btn" data-tab="crash">
<i class="bi bi-bug"></i>
<span>Crash</span>
</button>
</div>
<div class="tab-content active" id="tab-console">
<div class="console" id="console">
<div class="console-output" id="output"></div>
</div>
<div class="controls-container">
<div class="quick-commands">
<span class="quick-label">Quick:</span>
<button class="quick-cmd" data-cmd="help" title="Show available commands">help</button>
<button class="quick-cmd" data-cmd="scan" title="Scan WiFi networks">scan</button>
<button class="quick-cmd" data-cmd="stop" title="Stop current operation">stop</button>
<button class="quick-cmd" data-cmd="info" title="Show device info">info</button>
</div>
<div class="control-panel">
<button class="btn btn-primary" id="connectButton">Disconnect</button>
<button class="btn" id="clearButton">Clear</button>
<button class="btn" id="exportButton">Export</button>
<select class="btn" id="baudSelect">
<option value="9600">9600</option>
<option value="19200">19200</option>
<option value="38400">38400</option>
<option value="57600">57600</option>
<option value="115200" selected>115200</option>
<option value="230400">230400</option>
<option value="460800">460800</option>
<option value="921600">921600</option>
</select>
</div>
<div class="input-group">
<input type="text" class="serial-input" id="serialInput" placeholder="Type a command and press Enter..." />
<button class="btn btn-send" id="sendButton">
<i class="bi bi-send-fill"></i>
</button>
</div>
</div>
</div>
<div class="tab-content" id="tab-mirror">
<div class="mirror-root" id="mirrorRoot"></div>
</div>
<div class="tab-content" id="tab-files">
<div class="files-root" id="filesRoot"></div>
</div>
<div class="tab-content" id="tab-crash">
<div class="crash-root" id="crashRoot"></div>
</div>
</div>
</div>
</main>
<!-- Browser Support Dialog -->
<div class="dialog-overlay" id="browserDialog">
<div class="dialog">
<h2>Browser Not Supported</h2>
<p>Web Serial API is only supported in Chromium-based browsers (Chrome, Edge, Opera). Please use a supported browser.</p>
<button class="btn btn-primary" onclick="document.getElementById('browserDialog').style.display = 'none'">Close</button>
</div>
</div>
<!-- Permission Dialog -->
<div class="dialog-overlay" id="permissionDialog">
<div class="dialog">
<h2>Select Device</h2>
<p>Choose your device from the browser popup and click "Connect" to establish a serial connection.</p>
<button class="btn btn-primary" onclick="document.getElementById('permissionDialog').style.display = 'none'">OK</button>
</div>
</div>
<script src="js/components.js"></script>
<script src="js/social-proof.js"></script>
<script src="js/main.js"></script>
<script src="js/dot-terrain.js"></script>
<script src="js/serial.js"></script>
<script src="js/serial-mirror.js"></script>
<script src="js/serial-files.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jszip.min.js"></script>
<script src="js/serial-crash.js?v=20260304j"></script>
<script>
// Quick command buttons
document.querySelectorAll('.quick-cmd').forEach(function(btn) {
btn.addEventListener('click', function() {
var cmd = btn.dataset.cmd;
if (window.serialConsole && window.serialConsole.isConnected) {
window.serialConsole.sendCommand(cmd).catch(function() {});
window.serialConsole.log('> ' + cmd + '\n');
}
});
});
</script>
<script src="js/cookie-consent.js" defer></script>
</body>
</html>