Tutorial zur USB TCP Bridge Konfiguration des USB WLan Bridge Modul.
In diesem Tutorial wird die Konfiguration des USB serial Bridge Modul beschrieben, um eine direkte
- TCP to serial Bridge herzustellen
- notwendigen TCP Socket mittels Konsole zu initiieren
USB ESP8266 TCP serial Bridge Configuration ![]() |
USB seriell auf TCP Konfiguration
Nachdem die ESP8266 USB WiFi Bridge Basiskonfiguration durchgeführt wurde, kann das USB WiFi Bridge Modul wie folgt als TCP serielles Bridge Modul konfiguriert werden:
|
USB serial to TCP Configuration
After the ESP8266 USB WiFi Bridge Module basic configuration is finished, the ESP8266 USB WIFi Bridge Module must be configured. TCP serial Bridge Configuration of the ESP8266 USB WiFi Bridge Module Step by Step:
|
ESP8266 USB TCP serial Bridge Telnet Communication![]() |
TCP Socket Konfiguration
An dieser Stelle sei erwähnt, leider wird oftmals TCP gleichgestellt mit HTTP, deshalb hier kurz mit einfachen Worten richtiggestellt. HTTP, sowie FTP usw. sind Protokolle die über eine TCP Verbindung übertragen werden. Ein Zugriff auf eine direkte TCP Verbindung / Socket kann dementsprechend nicht mittels einem Browser erfolgen. Nachdem die ESP8266 serielle TCP Bridge Konfiguration abgeschlossen wurde, müssen nun die notwendigen Parameter für die TCP Verbindung / Socket konfiguriert werden. Bitte berücksichtigen, zur weiteren Kommunikation mit dem CH340 USB TTL Konverter muss selbstredend
Hinweis: Die Verbindung basiert dabei auf einem TCP Socket, d.h. weder Daten, noch sonstige Informationen des seriellen Datenaustausch werden in der Konsole des USB WiFi Bridge Modul ausgegeben. Mittels dieser Standard Konfiguration unterstützt das ESP8266 USB to WLan Modul bis zu 2 parallele TCP Verbindungen, d.h. bis zu 2 Geräte können gleichzeitig auf das ESP8266 USB Modul zugreifen. Alternativ kann die TCP Verbindung auch auf eine fixe Remote IP Adresse, sodass nur ein Gerät / Rechner zugreifen kann konfiguriert werden. Die Konfiguration eines TCP Remote Zugriff erfolgt durch TCPStart PORT, Remote-IP-Adresse, z.B. TCPStart 8080, 192.168.178.20 Die TCP Verbindung wird unterbrochen, besser gesagt der TCP Server wird gestoppt durch Eingabe von TCPStart 0 Es gilt zu beachten, dass der TCP Server stets durch die Konsole aktiviert werden muss, STARTET NICHT NACH DEM BOOTEN! Diesbezüglich muss bei Bedarf mittels entsprechender Tasmota Rule der TCP Server entsprechend aktiviert werden. Um den TCP Server beim Booten zu aktivieren, einfach die folgende Tasmota Rule Rule1 ON System#Boot do TCPStart Port in die Kommandozeile eingeben (selbstredend muss Port durch den jeweiligen Port ersetzt werden) und durch drücken der ENTER Taste bestätigen. Zur Aktivierung der Tasmota Rule nun Rule1 1 in die Kommando Zeile eingeben und erneut die ENTER drücken. Der TCP Server wird nun beim Bootvorgang des USB WiFi Modul aktiviert. |
TCP Socket Configuration
After the ESP8266 serial TCP Bridge is configuration, the TCP Socket must be configured. At this Point, TCP its not HTTP, in simple words, HTTP is a protocol running thru TCP connection. So a direct TCP connection will not work in a browser. A TCP Socket connection is based on a specific PORT (for example for HTTP Devices are listening to Port 80), so only a specific Port its required for a TCP Socket connection.
To configure TCP serial Bridge on ESP8266 Module side use Console / Command Line
Note: The connection is based on TCP Socket, so ESP8266 Console will not show any Data or information of serial Data Transfer. The USB WiFi Bridge Module supports now up to 2 parallel TCP connections. For configuring only one Remote IP Address the TCPStart Parameter must contain PORT and Remote-IP-Address, fro example TCPStart 8080, 192.168.178.20. To shut down the TCP Server write TCPStart 0 into Console Command Line and press ENTER key. For security reasons, the TCP bridge is not started at boot, and requires an explicit TCPStart command thru Command Line. To activate permanent TCP Server use Tasmota Rule, for example Rule1 ON System#Boot do TCPStart Port and press ENTER Key, of course, Port must be replaced with your Port Number. Type Rule1 1 into Command Line and Press ENTER Key to enable Rule1. |

