Sundance SMT6060-TCPIP User Manual

Page 23

Advertising
background image

Revision 0.4

Page 23 of 23

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:

[email protected]

www.sundancedsp.com

Because the example doesn’t actually implement a file system on the SMT363 we
emulate a simple file system by providing a file “test1”. To test, execute a get
command like this:

ftp> get test1

200 PORT command successful.
150 Opening ASCII mode data connection.

6.7.

RECV EXAMPLE

This example demonstrates a simple socket receive application. A task on a DSP node initializes the
sockets API, and then proceeds to use standard socket semantics to open a port and read a quantity of
bytes from a remotely networked machine.

For this example, we used an SMTP mail server’s address.You need to change "smt6060-
tcpip/examples/recv/dsp/socktest.c".

#define CONFIG_INET_ADDR

"207.22.44.49"

#define CONFIG_INET_PORT

"25"

to values appropriate for your network. In the above example, the test will open a socket to an SMTP
port (mail server) and read the header that is offered. You can make sure that a target machine is ready,
by simply telnet-ing to it.

Next, build and run recv.app. You should see output similar to this on your 3L Diamond server.

Figure 14 - SMT6060-TCPIP RECV Example Output

6.8.

RECVC EXAMPLE

This example illustrates a simple receive client. You need to run a sender server on your development
machine.

In the folder smt6060-tcpip\examples\servers\sender run the command

sender 1

sender:

listening on 0.0.0.0:1 ...

Advertising