Managing the RT-TCP/IP Stack Options

You can use the RTX64Config command line to display or modify the specified configuration parameter for the specified RTTCP/IP stack instance.

To display the current RT-TCP/IP parameters:

  1. Open a Command Prompt.
  2. Type RTX64Config, and then type /tcpip. For example:

RTX64Config /tcpip

To start the RT-TCP/IP stack:

  1. Open a Command Prompt.
  2. Type RTX64Config, and then type /tcpip followed by the stack ID.
  3. Type /start. For example

RTX64Config /tcpip 0 /start

NOTE: Currently, the stackid must have a value of 0, since only one instance of the RT-TCP/IP stack is supported with this release.

To stop the RT-TCP/IP stack:

  1. Open a Command Prompt.
  2. Type RTX64Config, and then type /tcpip followed by the stack ID.
  3. Type /stop. For example

RTX64Config /tcpip 0 /stop

NOTE: Currently, the stackid must have a value of 0, since only one instance of the RT-TCP/IP stack is supported with this release.

NOTE: You cannot stop the RT-TCP/IP Stack programmatically through the Vanguard Framework if clients are attached to it.

Configuring RT-TCP/IP Parameters

You can use the RTX64Config utility to change RT-TCP/IP configuration parameters. To do this, specify one of the following parameters after /tcpip stackid

NOTE: Currently, the stackid must have a value of 0, since only one instance of the RT-TCP/IP stack is supported with this release.

  • Memory — Display or modify the amount of memory allocated to the RT-TCP/IP stack in kilobytes. The default value is 1024.
  • TickInterval — Display or modify the RT-TCP/IP stack’s tick interval in milliseconds. The default is 100.
  • MaxSockets — Display or modify the maximum number of sockets that the RT-TCP/IP stack will provide. The specified value must be in the range 1 to 255. The default is 64.
  • StackMTU — Display or modify the RT-TCP/IP stack’s default Maximum Transmission Unit (MTU) in bytes. The specified value must be in the range 1500 to 9000. This can be overridden for a specific interface by configuring the MTU of the interface (see option /interface below). The default value is 1500.
  • TimerIdealProcessor — Display or modify the timer thread ideal processor of the RT-TCP/IP stack. The specified value must be a positive integer that specifies a RTSS processor. NOTE: Processor numbers are zero-based. By default, the first RTSS processor is the ideal processor.
  • TimerPriority — Display or modify the RT-TCP/IP stack’s timer priority. The specified value must be a valid RTSS priority in the range 0 to 127, where 0 is the lowest priority and 127 is the highest priority. The default is 66.
  • IdealProcessor — Display or modify the RT-TCP/IP stack’s ideal processor. The main thread of the stack will be run on this processor. The specified value must be a non-negative integer referencing an RTSS processor number. NOTE: Processor numbers are zero based. By default, the first RTSS processor is the ideal processor.
  • Verbose — Display or modify the RT-TCP/IP stack's verbosity setting. The specified value must be true (to specify that the stack runs in verbose mode) or false (to specify that the stack runs in non-verbose mode). By default, verbose mode is disabled.

Usage:

RTX64Config /tcpip stackid parameter [ value ]

 

For more RT-TCP/IP stack related options, see RTX64Config Usage.

Related topics: