Configure the Com Port

You must configure a new com port before it can be used by any communications software.

To configure com port settings:

  1. Click the com port in the tree structure. The Settings tab displays. Alternatively, double-click the com port on the Com Port List tab.

Note: Ctrl + up arrow or Ctrl + down arrow displays the next or previous com port on the Settings tab..

  1. Enter the following information:

Buffer Writes

If selected, when an application opens a COM port and starts writing to that port, CPR will buffer those writes and try to send as many as possible in a single TCP packet (speeds processing).

Server Reconnect

If selected, enables the com port to reconnect to the device server after the device server disconnects from CPR.

No Net Close

If selected, when an application closes the com port, CPR does not close the network connection. To disconnect CPR from the device server, right-click the com port in the com port tree view on the left  or in the Com Port List on the right, or select  Disconnect on the Com Port menu.

Connection Timeout (in seconds)

Number of seconds the com port should wait before attempting to connect to the next device server in the list, or before aborting the connection attempt.

Timeout Reconnect

If selected, CPR re-establishes the connection if the connection times out  When auto-reconnecting, CPR tries to reconnect until the connection succeeds or the number of tries reaches the value in Reconnect Limit.

Reconnect Limit
(0 = forever)

The number of times CPR attempts to re-establish the connection. A value of 0 means CPR will continuously attempt to connect.

Listen Mode

If selected, CPR listens on the configured TCP port for incoming connection requests.  There are two kinds of Listen Mode. From the drop-down list, select one of the following:

Normal - port closed after disconnect:  The TCP port will close once the connection to the device server is broken.

Auto- back to listen mode after disconnect: CPR goes back into listen mode once the connection is broken.

TCP Port

The number of the TCP port you want CPR to listen on. Click the Add to Firewall button to add the TCP port to the firewall's exclusion list if the firewall is turned on. The firewall will then allow traffic on this TCP port.

TCP KeepAlive

CPR uses the TCP protocol to detect when connections are no longer valid. To enable this capability, select the checkbox. (See the device server's user guide for more information.)

KeepAlive Time (msec)

The time, in milliseconds, that TCP will poll the connection with the device server.

KeepAlive Interval (msec)

If TCP detects a connection failure, it will poll for the connection every KeepAlive Interval milliseconds that you specify here. If, after 5 tries, the connection is still invalid, TCP will notify CPR, and CPR will tear down the connection socket.

If the CPR port was configured to be in Listen Mode - Auto, the CPR port will go back to listening on the appropriate TCP port.

Use RFC 2217

Com port control option protocol that controls:

  • Device server serial port settings (baud rate, data bits, parity, stop bits, flow control)

  • DTR relationships to  DCD and DSR serial port signals across the network.

Note:  To use RFC2217, the device server must support this protocol. To find out whether your device server supports RFC2217, please see the documentation that comes with the unit or the Lantronix web site (www.lantronix.com).

DTR

If you selected Use RFC 2217, select one of the options to tie the remote DTR with the DCD and DSR of the virtual com port. The default is to tie DTR to DCD and keep DSR always active.

 

  1. To redirect the com port to up to eight device servers, double-click each desired device server in the Devices pane.

Note: Alternatively, right-click the device server in the list of devices and select Add to Settings.

The following information displays for each device server:

Service

Number of the device server in the list of device ports that the com port can connect to.

Notes:  

  • When a com port is open, it attempts to connect to the first device server in the list. If the com port does not make a successful connection in the time specified in Connection Timeout (above), it tries the next device server. This procedure continues with each device server in turn until the com port makes a successful connection or tries all the listed device servers.

  • To reorder the device servers in the list, left-click  the left side of a row and then drag it up or down.

Host

IP address of the device server.

!

Error or Warning icons will appear here.  Hover the mouse over the icons to view the error or warning.

TCP Port

Port on the device server to which the com port will connect.

After an IP Address is entered, a web icon appears in this column.  Pressing this icon will launch a web browser and the configuration page of the device will be displayed.

 

  1. WARNING!   If the Host is on the other side of a router or a remote firewall, then UDP ports 30718, 43282 and 43283 may need to be added to the firewall's exclusion list.  You may experience trouble opening this com port if these UDP ports are not excluded.

  2. Also, some legacy device servers respond on UDP port 43283.  If you are unable to connect to a device server, one possible cause is the Firewall on this machine is blocking this port.  Press the 'Add Rx Port' button to add this port to the Firewall.   If the button caption reads 'Remove Rx Port' then the port has already been added and can be removed by pressing this button.

  3. You have the following options:

Note: Once you save the com port configuration, system names and information display at the top of the window.

 

See also

Com Port Tests

Default Com Port