Template:Netvorking Creating Bidirectional communication between two serial devices over TCP/IP

From Teltonika Networks Wiki

Introduction

This article contains step-by-step instructions on how to set up bidirectional communication between two serial RS 232 devices over TCP/IP.

Prerequisites

You will need:

  • Two RUT955 devices with Public IP
  • Two end devices (PCs or RS232 devices able to send and receive data, here we will be using PCs with serial simulators)

Topology

End devices are connected to separate RUT955 routers through RS232 connection, and routers communicate to each other through ISP with Public IPs.

Networking rut955 configuration example bidirectional serial comunication over tcp topology.png

RUT955 configurations

When configuring routers in a way that devices connected through serial port, in this example two computers using RS232, could communicate with each other, acting as both, Master and Slave, you only need to configure section in Services > RS232/RS485 > RS232 section, configuration on both devices is almost identical except Client and Server part, where they are reversed.

Networking rut955 configuration example bidirectional serial comunication over tcp rut configuration.png