beautypg.com

Sundance SMT6060-TCPIP User Manual

Page 29

background image

Revision 0.4

Page 29 of 29

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

SMT363

NET2DSP

Ethernet

Other

modules

Other

modules

PC running host

application or

Diamond server

Carrier board

Figure 21 - SMT6060-TCPIP SMT363 Configuration as Network Interface

Note: This technique can be used to run the Diamond server on a notebook computer connected to the
Ethernet of a stand-alone carrier board.

The net2dsp application implements a simple server that accepts connections from network applications.
The network application then sends instructions to the server. The instructions could be:

1. Write data to a comport of the SMT363
2. Read data from a comport of the SMT363

All transactions take the form of a data structure like this:

typedef struct {

int device;
int cmd;
int bytes;

} command;

“device” refers to which Diamond channel (and indirectly which comport) should be used for the
operation.

“cmd” indicates read or write from device. (0 = read, and 1 = write)

“bytes” selects how many bytes to read or write.

6.15. CONFIGURING THE HOST

The host application is build into the Sundance host driver software. You activate the host functionality
by making a number of entries into the registry of the machine where you wish to run the host software.

The key

HKEY_LOCAL_MACHINE\SOFTWARE\SmtDrv\ethernet