Default Com Port

You can set up default com port properties so that new com ports automatically have the desired values.

To set default values for com ports:

  1. From the Tools menu, select Options, and then click the Default Com Port tab.

  2. 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.

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).

Connection Timeout

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.

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.

Tx Empty

If  you selected Use RFC 2217, select one of the following options from the drop-down list:

  • CPR Transmit Buffer Empty: CPR notifies the application when the CPR has transmitted data and its buffer is empty.

  • Device Server Transmit Buffer Empty: CPR notifies the application when the device server has transmitted data and its buffer is empty.

Notes:

Overlapped and non-overlapped writes remain pending until the transmit empty event occurs.

Only applications that have registered to receive transmit empty events through Microsoft Windows' APIs are notified of transmit empty events.

 

  1. You have the following options:

 

See also

Configure the Com Port