|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.|
Table 3-239 Ports
||Slave||Slave port for connecting to a SerialData master.|