Nios® V Embedded Processor Design Handbook

ID 726952
Date 8/12/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

6.6.2. Operating the MicroC/TCP-IP Simple Socket Server

To display the µC/TCP-IP Simple Socket Server application messages, the example design utilizes the JTAG UART Intel FPGA IP. You can begin the display message by using the following command:
juart-terminal 

The JTAG UART terminal displays the booting message logs, followed by the µC/TCP-IP setup logs from the µC/TCP-IP Simple Socket Server example design.

Within the µC/TCP-IP setup logs, find a message stating the system adopts the current IP address (as configured in main.c source code). If DHCP is enabled, the DHCP server-supplied IP address displays the message that indicates the DHCP client for the Ethernet interface acquires a DHCP IP address.

The message “[sss_task] Simple Socket Server listening on port <port number>” is displayed when the µC/TCP-IP Stack is ready for connection.

After the µC/TCP-IP Stack is ready, you can start a telnet session to interact with the stack. To start a telnet session, follow these steps:
  1. From your operating system, open a command shell or a terminal.
    Note: On Windows, you can also use Run on the Start menu.
  2. Type the following command, specifying either the static IP address or the DHCP server-provided IP address:
    telnet <IP Address> <Port>

If the connection to the development board is successful, the menu of available commands display in a command window.

Telnet Session to Intel FPGA Device Figure shows the Nios V Simple Socket Server Menu, along with the following entered commands:

  • 0 to 3: Toggle board LEDs D0 to D3
  • S: Board LED Light Show
  • Q: Terminate Session

When you enter commands at the command prompt, Ethernet sends the commands over the telnet connection to a task waiting on a socket for commands. The task responds to those commands by sending instructions to another task that manipulates the LED.

In the following examples, the configured IP address for the Simple Socket Server is 192.168.1.45 at port 80.

Figure 90. Display Message from Intel FPGA device
Figure 91. Telnet Session to Intel FPGA Device