Smart Home RS232 WiFi Bridge Modul

Tasmota EI-OT USB TTL MQTT HTML TCP WiFi Bridge virtueller WLan COM Port ESP8266 Modul inkl. Firmware

EI-OT USB TTL WiFi Bridge virtueller WiFi COM Port © ei-ot ®

Tasmota ESP8266 TCP USB TTL virtual COM Port communication © ei-ot ®

EI-OT ESP8266 serial Bridge USB TTL virtual COM Port Tasmota Template © ei-ot ®

EI-OT ESP8266 USB TTL WiFi Bridge Module GPIO's © ei-ot ®

EI-OT ESP8266 USB TTL WiFi Bridge Module typical application © ei-ot ®

 

 

Das USB TTL WiFi Bridge / virtueller WLan COM Port Modul erlaubt die direkte WLan Anbindung eines virtuellen COM Port über das lokale Netzwerk. Beispielsweise in Kombination mit unserem RS232 WiFi Bridge Modul (in diesem Angebot nicht enthalten) läßt sich mittels dem USB TTL WiFi Bridge Modul eine serielle Verbindung über WLan realisieren.

Funktionsprinzip
Oftmals verfügen Geräte und Maschinen über eine spezifische Software, die mittels einer seriellen, kabelgebundenen Verbindung über eine physische, serielle Schnittstelle (COM Port) auf das jeweilige Endgerät verbindet. Das macht es notwendig in der jeweiligen Software Konfiguration einen lokalen, am Host befindlichen COM Port zu verwenden. Das USB TTL WiFi Bridge Modul basiert auf 2 Komponenten
  • einem CH340 USB TTL Konverter um einen virtuellen COM Port über die USB Schnittstelle eines Host Computer zu realisieren
  • ESP8266 ESP-01 Modul um serielle Daten auf ein lokales WLan Netzwerk zu transferieren
Das USB TTL WiFi Bridge Modul stellt dabei die typischen Parameter wie
  • Baudrate
  • Parität
  • Daten Bits
  • Stop Bits
einer seriellen Schnittstelle bereit.

 Das USB TTL WiFi Bridge Modul basiert auf dem ESP8266 ESP-01. Der ESP8266 ESP-01 verfügt über einen 8Mbit SPI Flash Speicher und erlaubt eine einfache Smart Home Integration in lokale / private Heimnetzwerke.  

Die Inbetriebnahme
des USB TTL WiFi Bridge Modul ist denkbar einfach. Sowohl die Spannungsversorgung als auch serielle Anbindung erfolgt komplett über die USB Schnittstelle, lediglich
  1. Treiber des CH340 USB TTL Konverter downloaden
  2. ZIP Datei entpacken
  3. Treiberpaket installieren
  4. ESP8266 ESP-01 Modul auf dem CH340 USB TTL Konverter aufstecken (bitte Richtung / Pfeil beachten)
  5. USB TTL Konverter in eine USB Schnittstelle am Host Computer einstecken
 

virtueller WLan COM Port USB TTL WLan Tasmota Bridge Modul basierend auf dem ESP8266 zur einfachen Anbindung eines virtuellen COM Port in einem WLan Netzwerk.

 

Die Tasmota Firmware des USB TTL WiFi Bridge Moduls wurde speziell auf die Übertragung von seriellen Daten optimiert und verfügt neben den erforderlichen Bibliotheken zusätzlich über

    • TCP Bridge Bibliothek um serielle Daten direkt über einen TCP Socket zu übertragen
    • Serial Bridge Bibliothek
 
   

Our USB TTL WiFi Bridge / virtual COM Port Module is perfect to integrate Devices with a serial Interface into local WiFi Networks. Especially in Combination with our RS232 WiFi Bridge Module (not included) the USB TTL WiFi Bridge / virtual COM Port Modul works as virtual COM Port to transfer serial Data over WiFi Network.

Working Principle

Often Devices got a specific Application to operate and control thru a serial interface. In Detail a (virtual) COM Port is required to establish a wired serial connection to a device.

The USB TTL to WiFi Bridge Module is based on 2 components

  • a CH340 USB TTL Converter to establish a virtual COM Port thru USB Interface on Host Computer
  • ESP8266 ESP-01 Module to transfer serial Data to a local WiFi Network
The USB TTL WiFi Bridge Module supports all typical Parameter  such as
  • Baudrate
  • Parity
  • Data Bits
  • Stop Bits
of a serial Interface.
  The USB TTL WiFi Bridge Module is based on the ESP8266 ESP-01 Module. The ESP8266 ESP-01 Modules got a 8Mbit Flash ROM, flashed with Tasmota Firmware for easy Smart Home Integration / Setup.  
The Installation
of the USB TTL WiFi Bridge Module
  1. Download CH340 USB TTL Converter
  2. extract ZIP Folder
  3. install Driver
  4. connect ESP8266 ESP-01 Module to CH340 USB TTL Converter (pay attention to direction / Arrow)
  5. connect USB TTL Converter to Host Computer thru USB Interface
   

virtual WiFi COM Port USB TTL WiFi Tasmota Bridge Module based on ESP8266 for easy integration of a virtual COM Port into local WiFi Networks.

 

The Tasmota Firmware of the USB TTL WiFi Bridge Module is optimized to transfer serial Data. Besides basic Libraries the Tasmota Firmware supports

    • TCP Bridge Library to transfer serial Data thru TCP Socket
    • Serial Bridge Library
 
EI-OT USB TTL COM Port WiFi Bridge Module Features
VCC Spannungsversorgung DC 5 Volt (USB) VCC  / Input Voltage DC 5 Volt (USB)
Schnittstellen USB TTL
Baudrate 1200-250400
Parität
Stop Bits
Data Bits
Datenformat String, Binary, Hex
Interfaces USB TTL
Baudrate 1200-250400
Parität
Stop Bits
Data Bits
Dataformat String, Binary, Hex
Serial Delimiter / Escape Character Code ASCII decimal 1-127, 128 (32-127), disable
unterstütztes Datenformat String
Binary
Hex
supported Data Format String
Binary
Hex
Steuerzeichen Escape Character Code ASCII decimal 1-127
128 (32-127)
254 deaktiviert & post HEX String
255 deaktiviert
Serial Delimiter Escape Character Code ASCII decimal 1-127
128 (32-127)
254 deaktiviert & post HEX String
255 deaktiviert
serieller Puffer 256-520 serial Buffer 256-520
Protokolle (TCP Socket), HTTP, REST, MQTT, Domoticz, Home Assistant Protocols (TCP Socket), HTTP, REST, MQTT, Domoticz, Home Assistant
typische Anwendung Herstellen eines virtuellen COM Port zur Einbindung in lokale WLan Netzwerke typical Application  Implement a virtual COM Port thru local WiFi Networks
Leistung Strom Power Current
Stromverbrauch (ohne externe Module oder Sensoren) 80mA (durchschnittlich)

270mA (max.)

23mA (Modem Sleep)

5mA (Light Sleep)

<3mA (Deep Sleep)

Current Consumption (w/o external Sensors or Modules) 80mA (average)

270mA (max.)

23mA (Modem Sleep)

5mA (Light Sleep)

<3mA (Deep Sleep)

WLan 802.11 WiFi 802.11
Frequenzbereich 2412 – 2884 Mhz. Frequency Range 2412 – 2884 Mhz.
Sendeleistung 802.11b: 16±2 dBm (@11Mbps)
802.11g: 14±2 dBm (@54Mbps)
802.11n: 13±2 dBm (@HT20, MCS7)
Transmit Power 802.11b: 16±2 dBm (@11Mbps)
802.11g: 14±2 dBm (@54Mbps)
802.11n: 13±2 dBm (@HT20, MCS7
Empfangs – Empfindlichkeit CCK, 1 Mbps : -90dBm
CCK, 11 Mbps: -85dBm
6 Mbps (1/2 BPSK): -88dBm
54 Mbps (3/4 64-QAM): -70dBm
HT20, MCS7 (65 Mbps, 72.2 Mbps): -67dBm
Receiving Sensitivity CCK, 1 Mbps : -90dBm
CCK, 11 Mbps: -85dBm
6 Mbps (1/2 BPSK): -88dBm
54 Mbps (3/4 64-QAM): -70dBm
HT20, MCS7 (65 Mbps, 72.2 Mbps): -67dBm
Sicherheit WEP/WPA-PSK/WPA2-PSK Security WEP/WPA-PSK/WPA2-PSK
Antenne 2,5dBi PCB Antenne integriert Antenna 2.5dBi integrated PCB Antenna
IPv4 Unterstützung DHCP und statisch IPv4 Support DHCP and static
Anschlüsse Connections
Pinleiste 2-polig Spannungsversorgung (5V / GND) Pin Header 2-pin Power Supply (5V / GND)
2 x Pinleiste 3-polig DB-9 RS232 Jumper Brücke für Pin 2 und Pin 3 (RX / TX) 2 x Pin Header 3-pin DB-9 RS232 Jumper to connect Pin 2 and Pin 3 (RX / TX)
RS232 SUB-D9 DB-9 Anschlussbuchse RS232 Anschluss (Buchse / female) RS232 SUB-D9 DB-9 connector RS232 Connector female
Tasmota Firmware Tasmota Firmware
 Konfiguration  grafische Benutzeroberfläche über Browser http://192.168.4.1 Configuration   over Webinterface thru Browser http://192.168.4.1
unterstützte Schnittstellen USB TTL seriell, virtueller COM Port supported Interface USB TTL serial, virtual COM Port
EI-OT Modul AP / Access Point SSID
Tasmota WLan Konfiguration

Die Tasmota Firmware erlaubt eine einfache WLan Konfiguration mittels Webinterface. An dieser Stelle sei erwähnt, die Tasmota Firmware unterstützt den SoftAP Modus (Access Point) lediglich zur WLan Konfiguration. Sobald das jeweilige Modul als Client in einem bestehenden Netzwerk eingebunden wurde, wird der SoftAP Modus nicht mehr unterstützt.

Tasmota Client Anbindung mittels Webinterface

Nachdem das jeweilige Modul mit Spannung versorgt wurde startet das Modul im SoftAP Modus. Innerhalb der Netzwerkumgebung eines

  • Computers
  • Mobiltelefon
  • Tablet
  • erscheint nun ein neuer Tasmota SoftAP / Access Point. Die WLan Konfiguration mittels dem Tasmota Webinterface erfolgt mittels 5 einfachen Schritten:

    1. Stelle eine WLan Verbindung über Systemeinstellungen / Netzwerkeinstellungen zu dem Tasmota Soft AP wird als tasmota-??????-???? Access Point angezeigt. Der Tasmota SoftAP verfügt über keine Sicherheitseinstellungen, es wird kein Passwort benötigt.
    2. Nachdem eine WLan Verbindung hergestellt wurde öffnet sich üblicherweise das Tasmota Webinterface innerhalb des festgelegten Standardbrowsers. Alternativ kann das Tasmota Webinterface durch Aufruft der url http://192.168.4.1 innerhalb eines Webbrowsers aufgerufen werden. Tasmota führt eigenständig einen Netzwerkscan aus und gibt die Liste verfügbarer Netzwerke aus. Sollte das gewünschte Netzwerk nicht im Tasmota Webinterinterface nicht aufgelistet sein, Scan for all WiFi Networks anklicken, sodass erneut ein Netzwerkscan durchgeführt wird.
    3. Wähle das jeweilige Netzwerk aus (anklicken), Tasmota übernimmt dann das jeweilige Netzwerk in das Textfeld WiFi Network. Ergänze nun die erforderlichen Parameter durch das Netzwerk Passwort und klicke auf den Button Save.
    4. Das Tasmota Modul startet eigenständig und versucht eine Verbindung mit dem zuvor festgelegtem Netzwerk herzustellen (Dauer ca. 20-30 Sekunden).
    5. Wurde die Verbindung erfolgreich hergestellt erscheint die Meldung Successful WiFi Connection sowie die Angabe der vom Router mittels DHCP zugewiesenen IP Adresse.
      1. Wichtig das Tasmota Modul ist nun nur noch über dieses IP Adresse erreichbar.
      2. Bitte WLan Verbindung überprüfen, ob sich der Client im gleichen Netzwerk wie das Tasmota Modul befindet (gegebenenfalls mit dem entsprechenden WLan Netzwerk verbinden) , da sonst kein Redirect erfolgen kann.
    6. Das Tasmota Modul ist nun als WLan Client unter der zuvor (unter 5.) ausgegebenen IP Adresse erreichbar.
    Tasmota WiFi Configuration

    The Tasmota firmware allows simple WiFi configuration thru Browser web interface. At this point it should be mentioned that the Tasmota firmware only supports SoftAP mode (access point) for WiFi configuration. As soon as a Tasmota module has been integrated as a WiFi client in an existing network, SoftAP mode is disabled.

    Tasmota WiFi Client Setup

    After Tasmota module has been supplied with voltage, the module starts as Tasmota SoftAP. Within network environment of

  • Computer
  • Mobile phone
  • Tablet
  • a new Tasmota SoftAP / Access Point appears. The WiFi configuration using the Tasmota web interface in 5 simple steps:

    1. Establish a WiFi connection via system settings / network settings to the Tasmota Soft AP, appears as tasmota-??????-???? access point. The Tasmota SoftAP has no security settings, so no password is required.
    2. After a WiFi connection has been established, the Tasmota web interface usually opens within the specified standard browser. Alternatively, the Tasmota web interface can be accessed by accessing the url http://192.168.4.1 within a web browser. Tasmota independently runs a network scan and outputs the list of available networks. If the desired network is not listed click on Scan for all WiFi Networks so that a network scan is carried out again.
    3. Select the respective WiFi network (click), Tasmota will then add the respective network to the WiFi Network text field. Now add the network password to the required parameters and click on the Save button.
    4. The Tasmota module starts independently and tries to establish a connection to the previously defined network (duration approx. 20-30 seconds).
    5. If the connection has been established successfully, the message Successful WiFi Connection appears as well as the IP address of the Tasmota Module assigned by the router using DHCP.
      1. Important: the Tasmota module can now only be reached via this IP address.
      2. Please make sure the WiFi connection to  your client is in the same network as the Tasmota module. If necessary, connect to the corresponding WiFi network, otherwise no redirect can proceeded.
    6. The Tasmota module can now be reached as a WiFi client thru the IP address previously issued (under 5.).

    EI-OT Module Tasmota Template activation

    EI-OT USB TTL virtual COM Port module Tasmota GPIO configuration

    Tasmota virtual COM Port comunication

    Tasmota  Template aktivieren

    Im Eigentlichen bedarf es keinerlei zusätzlichen Konfiguration des USB TTL WiFi Bridge Moduls. Die Tasmota Firmware aktiviert standardmässig

    • GPIO1 als TX
    • GPIO3 als RX

     

    Mit einfachen Worten, wurde GPIO1 und GPIO3 nicht anderweitig konfiguriert ist die serielle UART Schnittstelle aktiv. Nachdem die  WLan Konfiguration durchgeführt wurde, kann das USB TTL WiFi Bridge Modul mittels dem integrierten Tasmota Template konfiguriert werden. Das Template aktiviert dabei die 2 verfügbaren GPIO's des USB TTL WiFi Bridge Moduls. Im Detail werden dabei die GPIO's des ESP-01 im Tasmota Webinterface Button Einstellungen und dann Button Gerät aktiviert. Die GPIO's können dann mithilfe des DropDown individuell konfiguriert werden. Aktivierung des Tasmota Template:

    1. klicke auf Einstellungen um das Tasmota Konfigurationsmenü zu öffnen
    2. klicke im Tasmota Einstellungssmenü auf Erweitert
    3. klicke auf das Kontrollkästchen
    4. klick auf den Button Speichern, Tasmota aktiviert das Template und führt einen Neustart durch
    5. nach erfolgreichem Neustart sind nun die GPIO's des USB TTL WiFi Bridge Modul verfügbar Zu beachten GPIO1 (TX) und GPIO3 (RX) sind bereits als UART aktiviert und müssen nicht explizit als TX und RX konfiguriert werden.
    6. um direkt mit der UART / USB Schnittstelle zu kommunizieren klicke auf Konsole
    7. Innerhalb der Tasmota Konsole werden nun sämtliche seriellen Daten ausgegeben, bzw. kann mittels dem Tasmota UART / seriellen Befehlssatz mit der USB / UART Schnittstelle kommuniziert werden
    enable Tasmota Template

    In fact, there is no need for any additional configuration of the USB TTL WiFi Bridge module. The Tasmota firmware activates by default

    • GPIO1 as TX
    • GPIO3 as RX

     

    In simple words, if GPIO1 and GPIO3 are not configured otherwise, the serial UART interface of the USB TTL WiFi Bridge Module is active. After the WiFi configuration is finished, the dual USB TTL WiFi Bridge Module can be configured by using integrated Tasmota Template. The template activates the available GPIOs of the USB TTL WiFi Bridge module. In detail, the GPIOs of the ESP-01 are activated in the Tasmota web interface button Settings and then the Module button. The GPIO's can then be individually configured using the dropdown.

    1. click on Configuration
    2. in the Tasmota Configuration Menu click on Other
    3. click on CheckBox
    4. click on Save
    5. after a successful restart, the GPIOs of the USB TTL WiFi Bridge Module are now available Please note GPIO1 (TX) and GPIO3 (RX) are already activated as UART and do not need to be explicitly configured as TX and RX
    6. to communicate directly with the UART / USB interface, click on Console
    7. communicate to USB TTL thru Tasmota Console by using Tasmota serial instruction set
     
    Tasmota Template Problem

    Sollte das Modul / der ESP8266 bereits mit einem anderen Tasmota Template betrieben worden sein, ist dieses Template weiterhin aktiv - es wird kein USB TTL WiFi Bridge (0) Modul im DropDown der Geräteeinstellung angezeigt -.

    An dieser Stelle sei erwähnt selbst ein Tasmota Firmware Reset löscht diesen Template Eintrag nicht!

    Tasmota Template Änderung
    1. klicke auf Einstellungen um das Tasmota Konfigurationsmenü zu öffnen
    2. klicke im Tasmota Einstellungssmenü auf Erweitert
    3. füge im Textfeld Vorlage folgenden Text ein
      {"NAME":"USB TTL WiFi Bridge","GPIO":[0,1,0,1,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":18}
    4. klicke auf das Kontrollkästchen
    5. klick auf den Button Speichern
    6. Tasmota aktiviert nun das Template und führt einen Neustart durch und lädt die Grundkonfiguration basierend auf der Tasmota Geräte Vorlage
    Tasmota Template Problem

    If the module / ESP8266 has already been operated with a different Tasmota template, this template is still active - no USB TTL WiFi Bridge (0) module is displayed in the drop-down of the device settings -.

    At this point it should be mentioned that even a Tasmota firmware reset does not delete this template entry!

    Change Tasmota Template
    1. click on Configuration
    2. in the Tasmota Configuration Menu click on Other
    3. paste following text into Textfield Template
      {"NAME":"USB TTL WiFi Bridge","GPIO":[0,1,0,1,0,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":18}
    4. click on CheckBox
    5. click on Save
    6. Tasmota initiate a reboot and restart EI-OT Module based on Tasmota Template