You copied the Doc URL to your clipboard.

Using the TelnetTerminal

This virtual component permits the transfer of UART data between a TCP/IP socket on the host and a serial port on the target.

Figure 1-1 TelnetTerminal block diagram of one possible relationship between the target and host through the TelnetTerminal component

The TelnetTerminal block is what you configure when you define TelnetTerminal component parameters. The Virtual Machine is your model system.

On the target side, the console process that is invoked by your target OS relies on a suitable driver being present. Such drivers are normally part of the OS kernel. The driver passes serial data through a UART. The data is forwarded to the TelnetTerminal component, which exposes a TCP/IP port to the world outside of the model. This port can be connected to by, for example, a Telnet process on the host.

You can change the startup behavior for each of up to four TelnetTerminals by modifying the corresponding component parameters.

If the TelnetTerminal connection is broken, for example by closing a client telnet session, the port is re-opened on the host. This could have a different port number if the original one is no longer available. Before the first data access, you can connect a client of your choice to the network socket. If there is no existing connection when the first data access is made, and the start_telnet parameter is true, a host telnet session is started automatically.

The port number of a particular TelnetTerminal instance can be defined when your model system starts. The actual value of the port used by each TelnetTerminal is declared when it starts or restarts, and might not be the value that you specified if the port is already in use. If you are using Model Shell, the port numbers are displayed in the host window in which you started the model.

You can start the TelnetTerminal component in telnet mode or raw mode.

Telnet mode
Support a subset of the RFC 854 protocol: the terminal participates in negotiations between the host and client concerning what is and is not supported, but there is no flow control.
Raw mode
The byte stream passes unmodified between the host and the target. The terminal does not participate in initial capability negotiations between the host and client, and instead acts as a TCP/IP port. You can use this feature to directly connect to your target through the TelnetTerminal component.

Installing Telnet on Microsoft Windows 7

Microsoft Windows 7 does not include the Telnet application by default. Follow these steps to install it:

  1. Download the Telnet application by following the instructions on the Microsoft web site.
  2. Select Start > Control Panel > Programs and Features. A window opens that lets you uninstall or change programs.
  3. Select Turn Windows features on or off in the left-hand side bar. The Windows Features dialog opens.
  4. Select the Telnet Client check box and click OK. The installation might take several minutes to complete.