a hibakeresési üzenetekről az Alapvető “Hello World” -re, a soros kommunikációra több mint három kis vezeték. now imagine being able to cut the cord to your next microcontroller project and use your phone as a VT100 terminal. This was the premise of [Ondřej Hruška]’s Wireless terminal Project where he took an ESP8266 and added an in-browser terminal emulator which can be accessed over WiFi. The final hardware uses an ESP-01 module mounted atop a breadboard adapter with a 3.3V LDO, protection circuitry for the pins and under-voltage disable.
The firmware is based on [SpriteTM]’s libesphttpd code which was modified to include the VT100 escape sequence parser. Az elemzőt viszont az állami készítőt kódolták, és összeállították a Ragel használatával, amely jelentősen egyszerűsíti az ilyen projekteket. When you access the tiny web server, the loaded web page starts to communicate over web sockets to the ESP-01. A terminálból származó kulcsnyomók a pufferre és az elemzőre és a vezérlő logikára kerülnek. The characters are then passed to the hardware UART lines at 115200bps and if an escape sequence is detected, the corresponding action is carried out instead.
[Ondřej Hruška] megosztja a kódot, valamint a PDF-ben lévő felhasználói kézikönyvet minden olyan személy számára, aki ki szeretné kipróbálni, és segíteni fogja a projektet. Az állami gépekről való tanulás kis inspirációjával kiterjesztheti a projektet saját használatára is.
Köszönjük az ötletet [Marco Saarloos]