Skip to main content

Serial Port Operating Modes

To set the operating modes of the device's serial port:

  • DTU
  • General Settings

follow the menus. The operating mode can be selected from the Type section under Protocol Format Select. The RLTK421 supports three different operating modes:

  • NET (Transparent data transmission),
  • MODBUS (MODBUS RTU → MODBUS TCP conversion),
  • HTTPD (HTTP client mode).

The RLTK421 supports 4 independent socket connections. These sockets are numbered from socket A to socket D.

Socket A supports the following configurations:

  • TCP client: The RLTK421 acts as a client to connect to a TCP server.
  • TCP server: The RLTK421 acts as a server to listen for incoming TCP client connections.
  • UDP client: The RLTK421 acts as a client to send UDP packets to a remote UDP server.
  • UDP server: The RLTK421 acts as a server to receive UDP packets from remote UDP clients.

Sockets B, C, and D support the following configurations:

  • TCP client: The RLTK421 acts as a client to connect to a TCP server.
  • UDP client: The RLTK421 acts as a client to send UDP packets to a remote UDP server. OperatingModes-421

NET Mode

In this mode, the user can provide transparent data transmission between the serial device and the network server with simple parameter settings.

Select the operating mode as NET. Click on Save & Apply.

NETMode1-421

Set the serial port parameters. Click on Save & Apply.

NETMode2-421

Set the device as TCP Client (TCPC), enter the server address and port. Click on Save & Apply.

NETMode3-421

After setting all parameters, restart the device for the parameters to take effect.

NETMode3-421

Once the device restarts, the data transmitted from the serial port will be readable by your server.

Modbus Mode

In this mode, the RLTK421 can perform bidirectional protocol conversion between serial MODBUS RTU data and MODBUS TCP data on the network. The MODBUS mode supports 4 socket connections, and these connections are independent of each other. Socket A provides TCP client/server support, while sockets B/C/D only operate as TCP clients.

Select the operating mode as Modbus. Click on Save & Apply.

Modbus1-421

Set the device as TCP Server (TCPS), enter the server port. Click on Save & Apply.

Modbus2-421

HTTPD Mode

In this mode, the user's serial device can send request data to the HTTP server. The RLTK421 processes the data received from the server and then transmits it to the serial device. By default, the HTTP header in the server data is removed. Users can configure whether this feature is enabled or not via AT commands.

HTTPDMode1-421

HTTPDMode2-421