TGY Cyber logo

πŸ“˜ ES2C-TTL - Ethernet & WiFi to TTL Serial with 2 Channels

Video Tutorial

TTL Serial to Ethernet & WiFi Converter with 2 Channels

ES2C-TTL

1. Introduction

The ES2C-TTL offers the same capabilities as the ES2C (RS232 version): Ethernet connectivity, expanded voltage regulator range (6 to 23V), optimized firmware for maximum stability and reliability, plus high-quality components and finish. The difference is the serial interface: the device has two TTL serial ports (TX, RX, and GND) instead of RS232 (DB9), enabling direct connection to TTL-level equipment and communication via Ethernet or Wi-Fi through TCP/IP, HTTP via API and MQTT protocols.

Ideal for scales UPX EA-15, ACQUA, and Toledo Prix 3, as well as printers, microterminals, and other TTL-compatible devices.

Data received from the network is transmitted to the serial port, and data sent by serial is transmitted over the network.

1.0.1

1.1 Installation

Connect the ES2C-TTL to a power supply with output between 6V and 23V.

The power supply included with the ES2C-TTL Kit operates at 127V or 220V, and the device will be ready for configuration and use.


2. Webserver

The ES2C-TTL is configured through an internal webserver.
To access it, simply connect to the network created by the device and open your browser.

2.1 Connecting to the ES2C-TTL network

  1. On your computer or phone, open Wi-Fi settings.
  2. Find the network named "ES2C-TTL" (no default password).
  3. Connect, the webserver will already be available for access.
2.1.1

2.2 Accessing the webserver

Open your browser and type the address:

http://10.10.10.10
2.2.1

⚠️ Make sure to use "http://" and not "https://", as the server does not support HTTPS.


2.3 Logging into the webserver

The login screen will display the following fields:

Field Default value
Username admin
Password admin
2.3.1

3. Configuring the device

The webserver has five sections:

  1. System configuration
  2. Serial port configuration
  3. General configuration
  4. Status view
  5. Protocol configuration

3.1 System configuration

In this section you can adjust:

  • Authentication data (webserver username and password)3.1.1
  • Ethernet network settings (DHCP or manual)3.1.2
  • Wi-Fi network and operation settings3.1.3 3.1.4

LAN Configuration

Field Description
Network IP Fixed IP address (if manual mode)
Subnet mask Default: 255.255.255.0
Gateway Router address
DNS Default: 8.8.8.8 (Google)
DHCP Can be enabled or disabled

⚠️ Disabled DHCP mode is recommended to avoid IP changes and loss of communication.

Wi-Fi Configuration

Field Description
Wi-Fi Mode AP + STA, AP, or STA
Network name SSID displayed in Wi-Fi search
Password Wi-Fi connection password
Channel Default "1" or values between 1-13

πŸ“Ά AP (Access Point): Creates the ES2C-TTL network for configuration.
πŸ“‘ STA (Station): Connects the ES2C-TTL to the local Wi-Fi network.
πŸ” AP + STA: Allows simultaneous configuration and operation (recommended).

Channel Frequency
1 (Default) 2.412 GHz
2 2.417 GHz
3 2.422 GHz
4 2.427 GHz
5 2.432 GHz
6 2.437 GHz
7 2.442 GHz
8 2.447 GHz
9 2.452 GHz
10 2.457 GHz
11 2.462 GHz
12 2.467 GHz
13 2.472 GHz

3.2 Serial port configuration

The ES2C-TTL has two independent serial ports, configurable individually.

3.2.1
Parameter Description
Baud Rate Communication speed. Supported values: 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 250000, 921600
Data Bits Data bits
Stop Bits Stop bits
Parity Parity type
Port TCP/IP port associated with serial

By default:

  • Serial 1 β†’ Port 1100
  • Serial 2 β†’ Port 1101

⚠️ Ports cannot be the same.

Each serial port can be enabled or disabled as needed.


3.3 General configuration

This tab contains the basic system options:

3.3.1
Option Function
Restart Restarts the converter
Language Portuguese / English
Factory Reset Returns to original settings

⚠️ Resetting the system erases all user configurations.


3.4 Saving data

After configuring each section, click "Save".
A success message will be displayed at the top of the page.
Restart the ES2C-TTL to apply the changes.

⚠️ To restart the converter, quickly press the physical reset button once.
Attention: Do not hold the button for more than 10 seconds, as this will cause the converter to return to factory settings.


3.5 System Status

3.5.1
3.5.2

Displays information such as:

Parameter Example
System Name ES2C-TTL TGY
MAC 70:B8:F6:5C:BE:BC
IP 192.168.15.11
Mask 255.255.255.0
Firmware Version 1
Webserver Version 1

RSSI (Wi-Fi signal strength)

Value (dBm) Quality
0 to -50 Excellent
-51 to -60 Good
-61 to -70 Acceptable
-71 to -80 Weak
-81 to -100 Poor

Also displayed is the total bytes sent and received by each serial port via the TCP/IP protocol.


3.6 Protocols

3.6.1

In this tab, you can enable or disable the communication protocols supported by the ES2C-TTL: TCP/IP, API (HTTP) and MQTT.

To ensure greater system stability, it is recommended to enable only the protocols that are actually needed. By default, only the TCP/IP protocol is enabled. The MQTT protocol can only be enabled if both TCP/IP and API protocols are disabled.

4. Physical interface of the device

The ES2C-TTL has:

  • 2 TTL serial ports β€” TX, RX, and GND signals (direct connection to TTL-level equipment; verify voltage and pinout in your scale or peripheral manual)

    4.3.1

    The 5V pin can operate as an input (INPUT), powering the converter, or as an output (OUTPUT, up to 1 A), powering connected peripherals when the ES2C-TTL is powered by the external supply (6–23 V). Warning: do not power the device simultaneously via the dedicated power supply and the 5V pin; use only one power source at a time.

  • 1 reset button

  • 1 indicator LED

4.1 Button

Action Function
Quick press Restarts the system
Hold pressed (10s) Restores factory settings

4.2 Indicator LED

LED State Meaning
Fast blinking (200ms) Error β€” requires restart
Slow blinking (1s) Normal operation
Irregular blinking System updating
Fixed on Initializing
Off Powered off

5. Testing Software

The TGY Cyber Suite is recommended software for testing and validating ES2C-TTL serial communication.

5.1.1

After downloading the software, you can see how to test the communication by watching the video below:

⚠️ The video demonstrates using the WS1C converter, but the same procedure is valid for the ES1C.

Steps:

  1. In the TGY Cyber Suite software, access the TCP/IP Test tab
  2. Connect the loop connector to the ES2C-TTL as shown in the video.
  3. Enter the IP and serial port.
  4. Click Connect.
  5. Type a message and send.
  6. If there is loopback between TTL TX and RX, the text will return in the reception field.

6. API - Application Programming Interface

The ES2C-TTL provides a REST API that facilitates integration with various external systems and applications.
Activation or deactivation of the API can be performed in the protocols menu, as explained in section 3.6 of this manual.

Watch the video below to see how to use the API in practice:


⚠️ All requests require an authentication token (minimum 6 digits).


6.1 Endpoint: /post-serial-data

Returns data received by the serial port in JSON format.

Example request:

URL:

POST http://192.168.15.130/post-serial-data

Header:

Authorization: 123456

JSON Body:

{
  "port": 1100,
  "time": 2500,
  "command": ""
}
  • port: port to listen to
  • time: listening time (ms)
  • command: optional command to send before listening

cURL:

curl -X POST http://192.168.15.130/post-serial-data \
  -H "Accept: application/json, text/plain, */*" \
  -H "Content-Type: application/json" \
  -H "Authorization: 123456" \
  -d '{"port":1100,"time":500,"command":"\u0005"}'

You can validate the API functionality with the TGY Cyber Suite software

⚠️ Listening time below 30 seconds is recommended to avoid blocking other functions.


7. MQTT - Message Queuing Telemetry Transport

The ES2C-TTL offers MQTT protocol support, providing an efficient solution for cloud application integration and IoT automation. Configuration to enable or disable MQTT can be easily performed through the protocols menu, as detailed in section 3.6 of this manual. Check out the video below for a practical demonstration of how to use MQTT with your ES2C-TTL:

πŸ“˜ ES2C-TTL - Ethernet & WiFi to TTL Serial with 2 Channels – TGY Cyber Docs