Specifications
1–18 Chapter 1: Using the NicheStack TCP/IP Stack
Nios II Simple Socket Server Overview
Using the NicheStack TCP/IP Stack - Nios II Edition Tutorial June 2011 Altera Corporation
Figure 1–11 shows the structure of the design example described in “Introduction” on
page 1–1. The sections following the figure describe the tasks in the figure.
The figure shows the state of the system after initialization. When the NicheStack
TCP/IP Stack software component receives an Ethernet packet that contains an LED
command sent from a telnet client program, the NicheStack TCP/IP Stack processes
the incoming Ethernet packet with the TCP/IP protocol and presents the data packet
to the socket server task using the sockets API. The LED management tasks then
extract and post the LED command contained in the data packet to the LED command
queue for processing.
Figure 1–11. Nios II Simple Socket Server Data Flow Diagram
LED
Management
Task
LED Blink
Task
NicheStack
TCP/IP
Task
SSS LED Frequency Mailbox
TCP/IP Ethernet packet exchange with telnet
client on host PC using NicheStack sockets API
NicheStack
Timer
Task
A single MicroC/OS-II software component function call
NicheStack Software Component Interface consisting of socket function calls
SSS LED Command Q
321Q
NicheStack Software Component
LED write
Nios II
Simple Socket
Server Task
OSMboxAccept
OSQPendOSQPost
OSMboxPost
LED
Ethernet packet
Monitor
PHY
Task
PHY driver level interface