Serial OverIP communication between Server and Client: Difference between revisions

From Teltonika Networks Wiki
No edit summary
(No difference)

Revision as of 11:19, 30 December 2022

Main Page > General Information > Configuration Examples > RS232/485 > Serial OverIP communication between Server and Client

The information in this page is updated in accordance with firmware version 07.02.7.

Introduction

This article provides a configuration example to enable communication from a serial device connected to the TRB142/5 to another serial device (e.g. RUT955/6) using OverIP via public IP or RMS VPN.

Configuration Overview and Prerequisites

TRB142/5 and RUT955/6 have serial communication ports, that combined with Serial-Over-IP functionality on server enabled to gather of all information from clients, and simultaneously send to all clients in remote sites.

Prerequisites

  • 2 devices with serial port (e.g. TRB142/5, RUT955/6, TRB245/55)
  • 2 end devices capable of serial communication (we're going to use a PC and Hercules app)
  • Serial cables to connect to the end device ( 2 x RS232-USB will be used)
  • Public IP or RMS VPN configured.

Topology

Configuration

OverIP server

Firstly, we'll need to configure the Serial-Over-IP server. Navigate to Services->RS232, or (if you're going to use RS485, navigate there instead).

  1. Enable the interface
  2. Select baud rate (9600)
  3. Serial type (Over IP)
  4. Mode Server
  5. Select port (8000)

Now, you should let specific IP through, or just use 0.0.0.0/0 for the whole internet to be allowed in.

  1. Select through which interface serial packets will come in
  2. Add it
  3. Type, which IPs will be allowed in
  4. Save

OverIP client

  1. Enable the interface
  2. Select baud rate (9600)
  3. Serial type (Over IP)
  4. Mode Client
  5. Type in the server's public IP or RMS VPN's IP
    1. You can check your RMS VPN's IP by navigating to RMS VPN->VPN Hubs and selecting the hub where your serial devices are connected.
    2. Now you can check your OverIP server's IP
  6. Select port (8000)

Testing

After configuration has been complete, we'll need to test it. Launch Hercules on both PCs and connect using serial protocol to connect to TRB142/5 and RUT955/6.

  1. Select serial protocol
  2. Select the COM port to which your device is connected (On PC you can use Device Manager (Windows) to check this)
  3. Match the baud rate to which you've configured in the device
  4. Open the connection

  1. Now try sending any message from the client to the server and vice versa.
  2. You should see the message you've sent appearing on the other side of the serial device.