This page is a part of ReMapPro online Help Manual.
ReMapPro makes serial (RS232) data from your PC available on TCP/IP-based networks and makes TCP/IP data available on COM port on your PC. Visit Home of ReMapPro for more information.



Configuring Comport

To configure Comport for a connection channel, you should specify Port settings and TCP/IP settings within a COM-Port tab. You can define several COM-Port tabs to form the COM-Port table.


Serial Port Settings

In this section, you set the parameters for a serial port (COM1, COM2, etc) on your system for Comport to use (i.e. the connection preferences that determine how data is sent and reassembled by your serial devices).

The COM-port tab has the Ports settings box where you can enter or select a number of serial ports you want to configure (with an attached device). Also, there are three buttons (Add, Delete and Delete all) you can use to create COM port array.

Available serial ports you can add are either one of physical COM ports on your PC or one of virtual serial ports known to your system (from the pool you created with the VSP driver or other tools).

Settings

This button displays the COMx settings window for the serial port selected from the current COM port array displayed (COMx). It is described below.

Add

This button displays the Add COM-port dialog box that lets you select serial ports and add them to the array of COM ports.

The ? sign marks serial ports that are absent in your system.

The # sign marks serial ports that are currently in use.

The word Virtual marks virtual serial ports in your system.

Clear all clears all selections in the list.

Add closes the box and copies ports selected to the array of COM ports.

Note that you may only copy (and have in the COM ports array) one selected port for the TCP/IP client mode.

Cancel closes the box with no changes.

Delete

This button removes COM ports selected from the current COM port array displayed.

Delete all

This button removes all COM ports from the current COM port array displayed.

Port monitor

This button displays the COM-port monitor dialog box that lets you control data logging for a serial port selected. (Refer to section Monitoring COM Ports below.)


The COM Port Settings Box

This dialog is used to set up the configuration parameters for the current COM-port to their default or desired values. These are Bit per second, Data bits, Parity, Stop bits, and Flow control. For COM port options, the settings must match the COM port behavior expected by the PC application that will use this COM port.

Restore

You can use this button to discard values you have just changed and to restore your previous configuration settings (from the comport.dat file located in the installation directory) for the current COM-port.

Default

This button is used to reset the configuration parameters for the current COM-port to their default values.

For more information, refer to Appendix B. Serial Connection Overview.

Bit per second

Specifies the transmission rate in bits per second. You can choose an appropriate value from the list box.

The speed at which devices transmit data is called the throughput. This is measured in bits per second (bps). Bits per second is the number of bits transmitted every second, used as a measure of the speed at which a device can transfer data. A character is made up of 8 bits. In asynchronous communication, each character may be preceded by a start bit and may terminate with a stop bit. So for each character, 10 bits are transmitted. For example, if a device communicates at 2,400 bits per second, then 240 characters are sent every second.

For serial communications, speed in bits per second can be divided by 10 to approximate the characters transmitted per second.

Data bits

Specifies the number of data bits in a character. Most systems now use 8 bits to represent a single data character (extended ASCII). In rare instances, some older systems still use 7 bits. Valid values for data bits are in the range 5 through 8. The default value is 7. Not all computers support the values 5 and 6. You can choose an appropriate number from the list box.

Parity

Specifies how the system uses the parity bit to check for transmission errors.

The parity value can be set to one of the following:

None

Send no parity bit.

Even

Set the parity bit to 0 or 1 to make the number of 1 bits even.

Odd

Set the parity bit to 0 or 1 to make the number of 1 bits odd.

Mark (1)

Set the parity bit always to 1.

Space (0)

Set the parity bit always to 0.

The default value is Even. You can choose an appropriate value from the list box. Not all computers support the values Mark and Space. Most modem connections now use more reliable and sophisticated methods of error checking, so this is usually set to None.

Stop bits

Specifies the number of stop bits that define the end of a character: 1, 1.5, or 2. You can choose an appropriate number from the list box. If the baud rate is 110, the default value is 2; otherwise, the default value is 1. Not all computers support the value 1.5.

Flow control

From within the list box, you can choose one of the following:

XON/XOFF

Specifies whether the XON or XOFF protocol for data-flow control is on or off.

Software flow control (also called XON/XOFF or CTRL+S/CTRL+Q) uses data characters to indicate that the data flow should start or stop. This enables a device to send a control character to signal another device to stop transmitting while it catches up.

Software flow control is slower and usually less desirable than hardware flow control. Software flow control is used only for transmitting text. It cannot be used for binary file transfer because binary data may contain the special flow control characters.

Hardware

Hardware flow control (RTS/CTS) depends on the device to control the flow of data. This should be used with all high-speed modems or modems that compress data.

RTS specifies whether the Request To Send circuit is set to on, off, handshake, or toggle.

CTS specifies whether output handshaking that uses the Clear To Send circuit is on or off.

None

No flow control options will be used (the default value).

Note

When you want to "connect" a serial data source with a serial data destination (e.g., across the network or as two virtual serial ports), make sure that the serial port settings on both sides of such a "connection" be matched.


The Extra String Box

In the Extra String box, you can specify the following edit fields:

Connection

When the TCP/IP connection gets established, the bytes sequence you specified in the field will first be sent to the COM port.

Disconnection

When the TCP/IP connection gets closed, the bytes sequence you specified in the field will finally be sent to the COM port.

These options may be useful if the TCP/IP client is suddenly disconnected from the TCP/IP server while attached via Comport to one of remote sites. To disconnect the modem from the remote site on the unattended server, this is a way to be able to drop DTR, etc.


TCP/IP Settings

In this section, you set the parameters for a remote TCP connection Comport will use on your system while running a particular serial-to-network session. General TCP/IP settings are described in chapter Using ComSetup. For more information, refer to Appendix A. TCP/IP Connection Overview.

The following entry fields are available in the TCP/IP settings box to configure a network part of the connection channels:

IP

Specifies an IP address of the remote TCP/IP server on the network Comport will communicate with (as a TCP/IP client only).

Port

This field specifies a TCP/IP port number Comport will use for the remote connection (i.e. a socket number).

If you configure Comport (i.e. a COM port) to act as a TCP/IP client, then you will need to specify the IP address and the port number of the remote TCP/IP server that you want to connect to.

If you configure Comport (i.e. a COM port) to act as a TCP/IP server, then the IP address of the local PC will be used and you only need to specify the local TCP/IP port number that you would like to use.

You can specify any port number between 1 and 65535 which does not cause conflicts between services and Comport. To prevent conflicts between services and Comport, it is recommended to use free port numbers between 1024 and 65535, i.e. unprivileged ports and not used by services. (See also the services system file.)

Ignore TCP/IP connections exceeding the limit

With this check box enabled, Comport will immediately close those TCP/IP client connections that cannot be established because of lack of available free COM ports in the pool (i.e. Comport will ignore the connection requests instead of enqueueing them). (For the TCP/IP server mode only.)

The max number of available COM ports in the virtual serial ports pool (or the COM port array) may be changed. (See section The "[COMPORT]" Section of the ini-file below.)


The Mode Box

For the serial port you specify in the Com port tab, you should also specify the mode in which Comport will communicate with a remote system. Comport can function as either a TCP/IP client or a TCP/IP server.

TCP server

In this mode, Comport will wait for remote clients' requests to a TCP/IP port you specified in the Port field (to establish a connection with a remote system, and then to convert and transfer serial data to/from a connected TCP client).

For the TCP server mode, you can choose the protocol (IPv4 or IPv6) the software will use with remote clients.

Note: As a TCP/IP server, Comport allows to accept only a single client connection to a TCP/IP port. Incoming data received from the client is transmitted out the serial port as it is received. Incoming serial data is sent to a connected TCP/IP client. This enables fully bi-directional communications. Comport allows multiple sessions to run simultaneously but each with different COM-port.

You can use Comport as a TCP/IP server with multiple COM ports (in the COM port array) on a single IP port (so that multiple modems could be used on the same IP port with auto-switching from one modem to the next).

TCP client

In this mode, Comport will establish a connection with a remote system you specified in the IP field, and then convert and transfer serial data to/from the remote TCP server through the TCP/IP port you specified in the Port field.

In the TCP client mode, the software automatically negotiates with the remote server on which protocol to use (IPv4 or IPv6).

Note: As a TCP/IP client, Comport allows to establish a connection to a single TCP/IP server. Normally any data received through the TCP/IP port that it connects to will be transmitted out the serial port and any data received through the serial port will be sent back to the TCP/IP server. This enables fully bi-directional communications. Comport allows multiple sessions to run simultaneously but each with different COM-port.

Note: as a TCP/IP client, Comport initiates the connection(s) to the print server(s) or serial server(s) based on the predefined port mapping. In auto-start mode, the connection is initiated when the mapping program is started. If the connection fails, the connection attempt will be repeated for a user-defined number of times and interval. If the connection attempt fails beyond the user-defined limit, then a pop-up message will appear informing the user that the COM port is not available and ask if the user wants to keep retrying (the message can be disabled if desired).


The Enable Reconnection Box

With this check box enabled, Comport will initiate periodical attempts to reconnect the TCP/IP client connection that gets closed (for the TCP/IP client mode only).

This option is useful when any disruption in connection will cause Comport's TCP/IP client to automatically go to stop. If the option is disabled, the client does not restart until someone clicks the Start button on the client.

The Reconnection period setting specifies the frequency of these attempts (in seconds). The default value is set to 10.

The Number of retries setting specifies the maximal number of these attempts. The default value is set to 10. The maximal value is 1.000.000. You can use value 0 instead of a very large number.




Home | Product | Download | Order Now | Upgrade | Support | Pricing | Company Information | Contact Us


Labtam Copyright 1999 - 2007 LabtamTM Inc.