Skip to main content

TCP Socket Mode

RemoteCOM (C20 - C25)

This article presents a simple instruction of a first connection between a TCP client and a RS232/485 device through the RemoteCOM. Firstly, connect the RemoteCOM according to the diagram below.

Then, it is necessary to configure the RemoteCOM’s ports. It can be done, for example, via the device’s web page. Ports' configuration can be also done via the Telnet, serial or service console. Set the “TCP Socket” option in the “Service” field on the “Port” page. Check also if the port number is set correctly in the “Port” field. Set desired options of the RS232/485 connection (“Baud Rate”, “Data Bits”, “Parity”, “Stop Bits” - these options should be the same as in the RS232/485 device).

518960b3-054f-491f-afab-5ad319c53274.png

Now, the device should be ready to work. Once the TCP Client creates a TCP socket, the bidirectional communication should be available.

Test connection

Connection can be easily tested with a USB-RS232/485 converter and Hercules Setup Utility software. Connect the RemoteCOM’s RS232/485 port to the USB-RS232/485 converter and plug it in to the USB port of a PC. Open Hercules Setup Utility program and go to the “Serial” page. Set serial connection options according to the previous RemoteCOM’s ports configuration and open the COM port. Then, go to the “TCP Client” page and set the device’s IP address and port. After a successful connection, there should be the bidirectional communication available.

df091a6c-b716-4a25-800a-123a10bcb250.png