ARM Technical Support Knowledge Articles

What does the mode parameter on the telnet_terminal model do?

Applies to: Fast Models

Answer

The telnet_terminal model acts as a bi-directional bridge for serial byte data between the simulated and host system through a TCP/IP socket.

One of the parameters for this component is 'mode'. This parameter takes a string input and can be one of the following:

  1. raw
  2. telnet

Raw Mode

In raw mode the component acts as a transparent bridge, transmitting all bytes across the socket unmodified.

Telnet Mode

In telnet mode additional handshaking between telnet_terminal and the connected terminal on the host system is required every time a client attatches to the socket.

The handshake consists of sending five 3 byte commands and checking the responses from the client. The send commands (>>) and required responses (<<) are as follows:

If the model receives an incorrect response from the client it will print an error message and quit.

Once the handshake has completed successfully the model acts, like raw mode, as a transparent bridge. No telnet command will be interpreted nor escape sequences modified by the component. If your client terminal application assumes these escaped characters will be filtered, as telnetd does, then this filtering should be done prior to transmitting through the socket.

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential