SENA HD1200 User Manual

Page 26

Advertising
background image

Starter Kit and User Manual for the HelloDevice 1200

23

5.2 Dual-Port RAM Communication demo using Demo Board

The Starter Kit provides a Demo Board and sample programs for the demo of Dual-Port RAM communication.

This section describes how to run the demo.

Use sample web files of the HelloDevice Utility Software in “Demo\DPRDemo” folder to read and write the

contents of Dual-Port RAM of the HelloDevice (See Figure 5.1 for the location of the sample files). index.html,

dpram.jar and 404.html files in the folder are used.

(1) Modify index.html file in “DPRDemo” folder.

Enter IP address of the HelloDevice currently in the IP address parameter associated with Java applet within

index.html file. Save the file without modifying other parameters.

Figure 5.8. Modifying index.html for Dual-Port RAM Communication

Note:

Several parameters can be used for java applet of dual-port RAM communication.

IP address

: the HelloDevice IP address

TCP port

: Always set as 6001

Polling interval

: 10 ms resolution, Set proper value according to the application

e.g. “polling value =1” means that dual-port RAM will be polled at every 10 ms.

(2) Build and upload web files in “DPRDemo” folder.

Follow the procedure described in section 5.1 with web files in “DPRDemo” folder instead of “FirstDemo”

folder to upload these web pages to the HelloDevice.

<HTML>

<HEAD>

<TITLE>Simulator</TITLE>

</HEAD>

<BODY>

<H1>DPRAM R/W demo</H1>

<APPLET CODE=Simulator.class ARCHIVE=dpram.jar WIDTH=520 HEIGHT=450>

<param name=host value="192.168.1.15">

<param name=port value=6001>

<param name=polling value=1>

</APPLET>

</BODY>

</HTML>

Advertising