|Home > Fast Models components > Peripheral components > TelnetTerminal|
A host interface onto a serial port: exposes the two way serial data channel over a TCP/IP interface, and automatically opens a telnet application connected to the network socket, unless a user application connects first. This model is written in C++.
TelnetTerminal contains the following CADI targets:
When the simulation is started and the TelnetTerminal component is enabled, the component opens a server (listening) socket on a TCP/IP port. This is port 5000 by default.
Data written to the SerialData port is transmitted over the network socket. When data becomes available on the network socket, the TelnetTerminal component buffers the data. The data can then be read from SerialData.
If there is no connection to the network socket when the first data access is made, a host telnet session is automatically started. Prior to this first access, you can connect a client of your choice to the network socket. If the connection between the TelnetTerminal component and the client is broken at any time, the port is re-opened, permitting you to make another client connection.
To set the parameters, the syntax to use in a configuration file or on the command line is:
x is the terminal identifier and can be 0, 1, 2, or 3.
|In telnet mode, this component supports a subset of the telnet protocol defined in RFC 854.|
|In raw mode, this component does not interpret or modify the byte stream contents. This permits a debugger connection, for example, to connect a gdb client to a gdbserver running on the target operating system.|
Specifies the command line used to launch a terminal application and connect to the opened TCP port. The
TelnetTerminal component replaces the keywords
%title, if specified, with the opened port number and component name, respectively. After replacing
%title, the command line is executed verbatim.
An empty string, which is the default, launches xterm on Linux or telnet.exe on Windows.
motherboard.terminal_0.terminal="putty.exe -telnet %port localhost"
Table 3-262 Ports
||Slave||Slave port for connecting to a SerialData master.|