Sundance SMT6060-TCPIP User Manual
Page 24
Revision 0.4
Page 24 of 24
Sundance Digital Signal Processing Inc.
4790 Caughlin Parkway 233, Reno, NV 89519-0907, U.S.A.
Tel: +1 (775) 827-3103, Fax: +1 (775) 827-3664, email:
www.sundancedsp.com
sender: connect from 192.128.64.6:1591 [8192 sndbuf]
sender: continuous send
send: No error
sender: 10010624 bytes in 18.000 sec (4.449 Mbps)
sender: stats min=8192 max=8192 avg=8192 cnt=1222
sender:
listening on 0.0.0.0:1 ...
This will run the sender server application on your development machine.
Next you need to build the DSP application. Before you do, change the value in recvc.c to the IP address
of the development machine where the sender server is running.
#define CONFIG_IP_ADDR
"192.128.64.3" // address of server
Next, build and run the recvc.app file on the DSP.
Figure 15 -SMT6060-TCPIP Recvc Example Output
The receiver client application will open a connection to the sender server and exchange data with it.
6.9.
RECVD EXAMPLE
This example demonstrates a recv() socket server application running on the DSP network. A daemon
task on a DSP node initializes the sockets API, and then listens on a socket to inbound TCP/IP
connections. Each task listens on a different port number, thus creating a number of independent
receiver servers on various ports.
Build and run the recvd.app application on the DSP network. Wait until the SMT363 has obtained an IP
address, and the application is running.
Next, in the folder smt6060-tcpip\examples\clients\sender, run sender.exe and specify the IP address of
the SMT363 as well as port 1. (The third parameter is the number of bytes to transfer during the test)
sender 192.128.64.6 1 100000