6.6.2. Operating the MicroC/TCP-IP Simple Socket Server
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.
- From your operating system, open a command shell or a terminal.
Note: On Windows, you can also use Run on the Start menu.
- 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.
Did you find the information on this page useful?