beautypg.com

Application tutorials – ProSoft Technology MVI69E-LDM User Manual

Page 52

background image

Contents

MVI69E-LDM ♦ "C" Programmable

Developer's Manual

Linux Application Development Module

Page 52 of 130

ProSoft Technology, Inc.

August 21, 2014

4.3

Application Tutorials

The following sections describe how to run and understand the sample applications
provided with the module. These applications handle the data exchange between the
backplane, MVI69E-LDM, and end device(s).

4.3.1 Ethernet Application

You cannot run this sample if Backplane_Sample is running. Backplane_Sample runs by
default during startup. To run the enet_application sample, you must kill the
Backplane_Sample script. See the section entitled "Important Module Startup Information -
Please Read
" for information on how to kill or change the Backplane_Sample script.

The Ethernet Communications program illustrates how to interact with the MVI69E-LDM
using its Ethernet port as both a server and a client communicating through the backplane to
send and receive data. The sample also uses multi-threading in order to run as both a
server and client asynchronously.

To test the MVI69E-LDM as a client:

1 Set up TCP Stress Tester as a server with the following parameters:

o

P

ORT

: 5000

o

C

ONNECTION

: TCP

o

S

END

S

PEED

: Single

o

T

YPE

: Server

2 Subnet Example:

10.1.3.x

(or default 192.168.0.250)

3 Click O

PEN

and allow the TCP Stress Tester to listen once the sample program launches

(steps to launch the sample program below)..