Banner

Documentation

Contents

Run in test mode
Run as NT service
Copyright and license

Run in test mode

You have the possibility to run the software in test mode, from a command line interface.
The program runs under the current user's environment, with the following parameters :

  • 115200 bauds
  • No parity
  • One stop bit

The command syntax is the one below :
tcp2com --test tcp/[port] com[com_port]

where port is the number of the TCP port and com_port is the number of the serial port

In the console, you should see the following data :

tcp2com in test mode

Run as NT service

tcp2com can be run as a Windows NT service, independently of any user account. Unless you change it, the service is configured to run with the SYSTEM account.

To install the service, type the following command :
tcp2com --install tcp/[port] com[num]

where port is the number of the TCP port and num is the number of the serial port

In the services console, you should notice the newly installed service :

tcp2com as NT service

The service, when freshly installed, runs with the following parameters :

  • 115200 bauds
  • No parity
  • One stop bit

If you wish to change them to fit your needs, use regedit tool and go to :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\tcp2com-NN\Parameters (where NN refers to your COM port number)

You will come to the following screen :

Regsitry keys

Here are the insteresting keys you can manually modify :
  • ComBaudRate : speed of COM port (default is 115200)
  • ComParity : sets Com port parity (can be 0 or 1, default is 0)
  • ComStopBits : sets Com stop bits (can be 0 or 1, default is 0)
  • BindAddress : allows you to restrict TCP listening from a specific adress, for security (default is ANY of your ethernet interfaces - 0.0.0.0)
  • Password : restricts service connection with a password (default is empty -> auto-login)


To remove a service, type the following command :
tcp2com --remove tcp2com-[num] where num refers to the installed tcp2com service

Copyright and license

tcp2com - A network to serial port mapper
Copyright © 2004 Christophe Buguet and Gérald Villemure.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.