EI-OT RS485 ESP8266 Tasmota config
RS485 Module

RS485 ESP8266 serielle Kommunikation Beispiel

serielle Kommunikation

Zwar unterstützt die Tasmota Firmware eine Vielzahl von RS485 basierenden Protokollen, reduziert auf die Hardware erfolgt aber stets eine Umsetzung des RS485 Level auf die serielle UART Schnittstelle des ESP8266.

Dementsprechend kann eine direkte Kommunikation, beispielsweise über die Tasmota Console erfolgen. Im folgenden RS485 WLan Bridge  Beispiel wird ein typischer USB RS485 Konverter direkt mit dem EI-OT RS485 verbunden:

  • A Kanal auf A Kanal
  • B Kanal auf B Kanal

Im Bezug des PC / MAC wird ferner ein typisches serial terminal Programm (Roger Meiers Cool Term) verwendet.

Im eigentlichen Bedarf es keiner großen Einstellungen, lediglich die Baudrate des seriellen Terminals muß auf 115200 b/s (Tasmota Firmware Standard Baudrate) gesetzt werden. Ferner sollte der Line Modus (Befehlszeilen Modus) im Terminal Programm aktiviert sein.

serial Communication

Although the Tasmota firmware supports a variety of RS485-based protocols. But reduced to the hardware / basic function, the RS485 level is always converted to 3.3V UART level transmitted thru serial UART interface of the ESP8266.

Accordingly, direct communication can take place, for example via the Tasmota Console. In the following RS485 WiFi Bridge example, a typical USB RS485 converter is connected directly to the EI-OT RS485:

  • A channel on A channel
  • B channel to B channel

A typical serial terminal program (Roger Meier’s Cool Term) is also used for the PC / MAC.

In actual fact, no major settings are required, only the baud rate of the serial terminal must be set to 115200 b/s (Tasmota firmware standard baud rate).

EI-OT ESP8266 RS232 RX TX serial Bridge Configuration
RS485 WLan Beispiel

Nachdem wie oben beschrieben eine entsprechende Verbindung zwischen RS485 USB Konverter und dem RS485 WLan Bridge Modul hergestellt wurde, kann auch schon mit direkten WLan RS485 Kommunikation begonnen werden.

  1. klicke auf Tools um das Tasmota Tools Menü zu öffnen
  2. klicke im Tasmota Tools Menü auf Console
  3. im jeweiligen seriellen Terminal Programm sollte die Verbindung zum USB RS485 Konverter entsprechend geöffnet sein. Tippt man nun in der Befehlszeile der Tasmota Console
    SerialSend just a String from Tasmota over Wifi to RS485 USB Converter ein und drückt die Taste ENTER
  4. erscheint der vorgenannte String auch schon im seriellen Terminal Programm
  5. Wechselt man nun in die Befehlszeile des seriellen Terminal Programms und gibt hier back to Tasmota thru USB RS485 Converter ein und drückt die Taste ENTER
  6. so erscheint der vorgenannte Text im Ausgabefenster der Tasmota Console

In Anlehnung an die Tasmota Firmware, im Detail serial commands sowie in Kombination mit Tasmota Rules kann jedwede individuelle Lösung zur Herstellung einer individuellen RS485 WLan Bridge herbeigeführt werden.

RS485 WiFi Example

After a connection  between the RS485 USB converter and the RS485 WLan bridge module has been established (as described above), a WiFi RS485 WiFi brdige communication can begin.

  1. click on Tools to open the Tasmota Tools menu
  2. click Console in the Tasmota Tools menu
  3. The connection to the USB RS485 converter should be open accordingly in the respective serial terminal program. Now type in the command line of the Tasmota Console
    SerialSend just a String from Tasmota over Wifi to RS485 USB Converter and press the ENTER key
  4. the string now appears in the serial terminal program
  5. now switch to the command line of the serial terminal program and write  back to Tasmota thru USB RS485 Converter into command line and press the ENTER key
  6. and the string appears in the output window of the Tasmota Console

Based on the Tasmota firmware, in detail serial commands and / or in combination with Tasmota Rules, any solution can be created to create an individual RS485 WLan bridge.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert