<li><b>Loopback test</b>: Connect the Rx and Tx pins with a piece of wire. Anything you type in the browser should
<li><b>Loopback test</b>: Connect the Rx and Tx pins with a piece of wire. Anything you type in the browser should
appear on the screen. Set Parser Timeout = 0 in <ahref="<?=url('cfg_term')?>">Terminal Settings</a>
appear on the screen. Set Parser Timeout = 0 in <ahref="<?=url('cfg_term')?>">Terminal Settings</a>
to be able to manually enter escape sequences.
to be able to manually enter escape sequences.
<li>There is very little RAM available to the webserver, and it can support at most 4 connections at the same time.
Each terminal session (open window with the terminal screen) uses one persistent connection for screen updates.
<b>Avoid leaving unused windows open</b>, or either the RAM or connections may be exhausted.
<li><b>For best performance</b>, use the module in Client mode (connected to external network) and minimize the number
<li><b>For best performance</b>, use the module in Client mode (connected to external network) and minimize the number
of simultaneous connections. Enabling AP consumes extra RAM and strains the processor.
of simultaneous connections. Enabling AP consumes extra RAM because the DHCP server and Captive Portal
DNS server are started.
<li>In AP mode, <b>check that the WiFi channel used is clear</b>; interference may cause flaky connection.
<li>In AP mode, <b>check that the WiFi channel used is clear</b>; interference may cause flaky connection.
A good mobile app to use for this is
A good mobile app to use for this is
@ -29,7 +34,7 @@
</div>
</div>
<divclass="Box fold">
<divclass="Box fold">
<h2>Escape Sequences Intro</h2>
<h2>Escape Sequences Intro& Nomenclature</h2>
<divclass="Row v">
<divclass="Row v">
<imgsrc="/img/vt100.jpg"class="aside"alt="VT102">
<imgsrc="/img/vt100.jpg"class="aside"alt="VT102">
@ -42,29 +47,69 @@
ESPTerm accepts UTF-8 characters received on the communication UART and displays them on the screen,
ESPTerm accepts UTF-8 characters received on the communication UART and displays them on the screen,
interpreting some codes as Control Characters. Those are e.g. Carriage Return (13), Line Feed (10), Tab (9), Backspace (8) and Bell (7).
interpreting some codes as Control Characters. Those are e.g. Carriage Return (13), Line Feed (10), Tab (9), Backspace (8) and Bell (7).
Escape sequences start with the control character ESC (27), followed by any number of ASCII characters
Escape sequences start with the control character ESC (27), followed by any number of ASCII characters
forming the body of the command. On this page, we'll use <code>\e</code> to indicate ESC.
forming the body of the command.
</p>
</p>
<p>
<h3>Nomenclature & Command Types</h3>
Escape sequences can be divided based on their first character and structure. Most common types are:
</p>
<p>Examples on this help page use the following symbols for special characters and command types:
(spaces are for clarity only, DO NOT include them in the commands!)</p>
<ul>
<li>CSI commands: <code>\e[</code> followed by 1 optional leading character, multiple numbers divided by
<table>
semicolons, and one or two trailing characters. Those control the cursor, set attributes and manipulate screen content. E.g. <code>\e[?7;10h</code>, <code>\e[2J</code></li>