ADVANTECH Serial2TCP Router App User Guide

June 14, 2024
Advantech

ADVANTECH Serial2TCP Router App

© 2023 Advantech Czech s.r.o. No part of this publication may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photography, recording, or any information storage and retrieval system without written consent. Information in this manual is subject to change without notice, and it does not represent a commitment on the part of Advantech. Advantech Czech s.r.o. shall not be liable for incidental or consequential damages resulting from the furnishing, performance, or use of this manual. All brand names used in this manual are the registered trademarks of their respective owners. The use of trademarks or other designations in this publication is for reference purposes only and does not constitute an endorsement by the trademark holder.

Used symbols

  • Danger – Information regarding user safety or potential damage to the router.
  • Attention – Problems that can arise in specific situations.
  • Information – Useful tips or information of special interest.
  • Example – Example of function, command or script.

Changelog

Serial2TCP Changelog
v1.0.1 (2013-11-12)

  • First release.

v1.0.2 (2014-11-25)

  • Reworked tcp connection to server.

v1.1.0 (2017-03-21)

  • Recompiled with new SDK.

v1.2.0 (2018-09-27)

  • Added support of ttyUSB.

v1.2.1 (2018-09-27)

  • Added expected ranges of values to JavaSript error messages.

Router app Description

Router app is not contained in the standard router firmware. Uploading of this router app is described in the Configuration manual (see Chapter Related Documents). The router app is not v4 platform compatible. Serial2TCP module allows connecting of the serial line device and TCP Server or Servers. Communication in both ways – serial to TCP and TCP to serial – is possible. It can be used in data collecting and measurement applications – sending data from serial line connected meter or sending commands and control data to any meters or serial line devices remotely via TCP. Function principle is demonstrated in figure 1.

To make the router app work, a serial expansion port has to be installed in the router. After uploading of the router app, you can set the serial line communication parameters and up to 5 TCP Servers. Router then performs as a TCP Client and arranges the communication of TCP Servers and serial line. The module is designed specifically for RS232 standard of serial line communication.

ADVANTECH Serial2TCP Router App 1

Configuration

Configuration of the Serial2TCP moudule is accessible via web interface of the router in the Customization section. Clicking on the Router apps, installed router apps can be viewed. Clicking on the Serial2TCP, it can be configured. Screenshot of the configuration is shown in the figure 2. There’s menu on the left, containing System Log (shows system log) and Return (to return into router’s configuration) items. There’s configuration of the router app on the right.

ADVANTECH Serial2TCP Router App 2

In the upper part of the configuration – Expansion Ports Overview – there are installed expansion ports shown. In case of using all the expansion ports the other way (e.g. TCP/UDP access enabled in the Expansion Port 1/2 section in the routers’s configuration) the attention appears. To activate the module, check the Enable Serial2TCP item (change applies after clicking the Apply button). There is definition of a serial line connection parameters below – see the table.

ADVANTECH Serial2TCP Router App 3

In the last part – TCP Clients Setup – there can be up to 5 TCP Clients (for connecting to 5 TCP Servers) configured. Configuration items for particular TCP Client are described in the table below:

ADVANTECH Serial2TCP Router App 4

When configured properly, serial line data are sent by TCP Clients to TCP servers – all the configured and listening servers will receive the same data from the serial line. Data sent from any configured TCP Servers will reach the serial line as well (it is received by the particular TCP Client and sent to the serial line).

System Log

In case of any problems with connection it is possible to view the system log – pressing the System Log menu item. There are detailed reports from individual applications running in the router displayed. Activity of the Serial2TCP module is indicated in rows starting with “serial2tcp”. System Log also displays informations about the successful or unsuccessful connection establishment. Press the emphSave button to save the system log to your computer.ADVANTECH Serial2TCP Router App 5

Related Documents

You can obtain product-related documents on Engineering Portal at icr.advantech.cz address. To get your router’s Quick Start Guide, User Manual, Configuration Manual, or Firmware go to the Router Models page, find the required model, and switch to the Manuals or Firmware tab, respectively. The Router Apps installation packages and manuals are available on the Router Apps page. For the Development Documents, go to the DevZone page.

References

Read User Manual Online (PDF format)

Read User Manual Online (PDF format)  >>

Download This Manual (PDF format)

Download this manual  >>

Related Manuals