<html>
<head>
  <meta http-equiv="Content-Type" content="text/html">
  <title>Embedded Server Technology to Connect RS232 Devices</title>
  <meta name="description"
  content="Etherpath, thin server, device server, RS-232-Ethernet converter, RS-232, RTU, SCADA, load control,embedded server">
  <meta name="keywords"
  content="Etherpath, thin server, device server, RS-232-Ethernet converter, RS-232, RTU, SCADA, load control,embedded server">
  <meta name="robots" content="index,follow">
  <meta name="revisit-after" content="15 days">
  <meta name="resource-type" content="document">
  <meta name="distribution" content="global, world">
</head>

<body>
<HTML>
<HEAD>
<META NAME="editor" CONTENT="Testing">
<TITLE>Data Comm for Business, Inc.</TITLE>
</HEAD>
<BODY BGCOLOR="ffffff">
<center>
<table width = 738  border = 0 ><tr  valign="top" ><td align = left ><a href= "/index.html" border = 0 ><IMG SRC="/media/logoandname.gif" height ="30" border = 0></a>
</td><td align = right  valign="top" >
<form action=http://www.cartserver.com/sc/cart.cgi method=POST>
<input type=hidden name=item value="b-1055">
<input type=image border=0 name=view src="/media/stand_viewsm.gif"  >
</form></td><td align =right><form action=http://www.cartserver.com/sc/cart.cgi method=POST>
<input type=hidden name=item value="b-1055">
<input type=image border=0 name=checkout src="/media/stand_outsm.gif" >
</form><br> 
</td></tr>
</table>
<script type='text/javascript'>
function Go(){return}  

</script>
</center>
<p></p>
<script type='text/javascript' src='/header_menu_var.js'></script>
<script type='text/javascript' src='/header_menu_com.js'></script>
<noscript>Your browser does not support script. Sorry, no navigation.</noscript>
 
</BODY>
</HTML>

<body>

<center>
<h2>Using the Etherpath with PC and Unix Port Redirection</h2>
</center>

<p>In addition to its most common use as a "nailed-up RS-232 pipe" when used
in pairs, the Etherpath serial server is often used  to provide remote serial
port access for a computer connected through the TCP/IP network.  There are
several different methods to use software to complete this connection.  We'll
discuss the most common approaches and give some examples of code and program
packages that are freely available or can be purchased at reasonable cost.
The major categories (in order by ease of implementation) are...</p>
<ol>
  <li>Manual telnet access to the Etherpath</li>
  <li>Scripted telnet access to the Etherpath using standard communications
    software</li>
  <li>Port redirector software</li>
  <li>Custom-written application software</li>
</ol>

<p></p>

<h3><b>Manual telnet</b></h3>
The easiest way to access the remote serial port is to simply telnet to the
Etherpath from a workstation.  Once the telnet session is established, all
keystrokes are passed through to the Etherpath serial port and any data
incoming on that port is passed to the screen of the workstation computer. 
This is the method most often used for casual access to remote management
ports on equipment such as PBX machines, routers, datacom equipment,
seldom-used host computers, and other devices that require plain terminal
access.  For MSWindows users, Windows is installed with a program,
telnet.exe, that can be used; or commonly used terminal emulation programs
are available such as Procomm, Hyperterm Pro, etc.   All unix machines are
supplied with a telnet program.

<p></p>

<h3><b>Scripted Telnet</b></h3>
Using the same telnet programs, a script (or batch file) is written to
automate the process.  This script file may be used to connect to the remote
device, cause some control commands to be sent, or read status and log it to
a disk file.  The Windows programs we have the most experience with are
Procomm's ASPECT scripting language, and WRQ's Reflection series scripts.  On
Unix machines, shell scripts are used with bash or other shells, or more
capable scripting languages are used such as perl.

<h3></h3>

<p><b>Port Redirector Software</b>When PC or Unix application software must
access the remote device through an Etherpath connection, and the software
can not be modified for TCP/IP communications, the most straight-forward
method is to use port redirection software.  A port redirector program tricks
the computer into thinking that the remote port is actually a local COM:
port.  This software would be run on the computer workstation, then the
application software reads and writes to the COM: port normally... none the
wiser.  This approach is commonly used with proprietary software that the
customer either can't change because of technical or economic factors.</p>

<p>DCB tested a number of port redirector packages, and recommends only a
couple. The program of choice for Microsoft Windows (all versions) is
Serial/IP by Tactical Software <a
href="http://www.tacticalsoftware.com/links/SI_prod_page.html">(Download a 30
day  trial copy here</a>). This program creates a remote COM: port on the
Windows PC that is accessable just like your local physical ports (up to 255
remote ports are available). This excellent package runs on all varieties of
Microsoft Windows. After trying it, you can purchase a license for Serial/IP
from DCBI f instead, you wish to use DDE connections directly into a
spreadsheet or equivalent, TCPWedge, sold by TAL Technologies (
http://www.taltech.com ) is also a quality product, but it doesn't create
clean, virtual COM: ports. It's about $200 to $400. They also have a demo
version available for download.</p>

<p>TTYD, produced by Joe Croft  at  www.linuxlots.com, is our favorite port
redirector program for most versions of Unix (including Linux, AIX, SCO,
BSD).  This GNU'd software is available for free download from the DCB site
(<a href="termnet-3.1.tar">here</a>), or you can email support@dcbnet.com and
get a copy by return email.  This outstanding program is provided with C
source code.</p>

<p></p>

<h3><b>Custom Software</b></h3>
For specific applications, it makes sense to write a custom program to
communicate with the Etherpath.  A number of DCB's OEM customers choose this
method.  For example, if you are using the Etherpath so your alarm system can
communicate with remote alarm panels or door release units, the program
running on the host computer can be programmed to communicate directly with
the Etherpath using TCP/IP network programming.

<p>An example of this approach is available from DCB <a
href="eth_clnt.zip">here</a>.  This sample system, written in Visual Basic,
retrieves ASCII data from an Etherpath and plots it in a MSWindows screen
window.  The source of the sample data is another PC, running an included
program, that sends the ASCII numbers out its serial port for input to the
remote Etherpath.</p>

<p>Another example of this type programming is the "middleware" program
example written by Hildeco Oy, Ltd in Finland.  Their Visual Basic program
allows multiple computers to "control" a single Etherpath and illustrates
combining UDP communications to the control computer with TCP/IP
communications to the Etherpath.  They have graciously made this example of
the application available <a href="middleware.zip">here</a>.</p>

<p>A program example, written in C, is listed in the Etherpath manual under
Appendix B.  It can be downloaded from <a
href="/manuals/v22etherpath.pdf">here.</a>  This is a simple example of
network programming in MSWindows. Although DCB has technical support
available, customers who implement a custom software solution should have
in-house expertise in network programming.  By examining these sample
programs, most skilled network programmers can produce code that will
communicate effectively with the Etherpath.</p>

<p>If programming expertise isn't available, using port redirector software
is usually the best approach.  The cost and risk is low when implementing
this type of solution.  Using two Etherpath units in "nailed up" mode to
provide a virtual RS-232 cable across the ethernet is even easier since this
method requires no software changes at all.</p>

<p>For answers to other implementation questions, send email to
info@dcbnet.com or call 800-432-2638.  The Etherpath is a quick and easy to
install solution.  Using it can put your device or product on the Ethernet
quickly and economically. <html>
<head>
  <meta http-equiv="Content-Type" content="">
  <title></title>
</head>

<body>
 <table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tbody>
    <tr height="10">
      <td height="10" colspan="4" align="left" valign="top"><hr
        noshade="noshade" size="1">
      </td>
    </tr>
    <tr height="25">
      <td width="33%" height="25" align="left" valign="top"><a
        href="http://www.dcbnet.com/index.html"><img height="25" width="104"
        src="http://www.dcbnet.com/media/dcblogosmall.gif" border="0" alt="img"></a></td>
      <td width="33%" height="25" align="left" valign="top"></td>
      <td width="33%" height="25" align="right" valign="top"></td>
    </tr>
    <tr height="50">
      <td width="25%" height="50" align="left" valign="top"><b>Data Comm for
        Business Inc.</b><br>
        2949 County Road 1000 E<br>
        Dewey, Il 61840</td>
      <td width="25%" height="50" align="left" valign="top">Voice:
        217-897-6600<br>
        Toll Free: 800-4-DCB-NET<br>
        Toll Free: 800-432-2638</td>

      <td width="20%" height="50" align="left" valign="top">Email: <a
        href="http://www.dcbnet.com/contact.html">Contact Page</a><br>
        Web: www.dcbnet.com<br>
        Fax: 217-897-1331</td>

      <td width="25%" height="50" align="left" valign="top">
	  Shopping cart is<!-- START SCANALERT CODE --><center>
<a target=_blank href=https://www.scanalert.com/RatingVerify?ref=cartserver.com><img width=115 height=32 border=0  src=//images.scanalert.com/meter/cartserver.com/12.gif alt='HACKER SAFE certified sites prevent over 99.9 of hacker crime.'></a><!-- END SCANALERT CODE --> 
    </tr>
    <tr height="30%">
      <td height="25" colspan="4" align="left" valign="top"><font
        size="1">All DCB web pages copyright ©1995--2012 Data Comm for
        Business, All rights reserved.<br>
        EtherPath®, EtherSeries®, EtherPoll®, EtherBridge® and EtherModem® are Registered Trademarks of Data Comm for Business, Inc.</font></td>
    </tr>


  </tbody>
</table>
 </body>
</html>

</p>
</body>
</body>
</html>

