2 web demonstration – SENA HD1100 User Manual

Page 25

Advertising
background image

Starter Kit and User Manual for the HelloDevice 1100

22

5.2.2 Web Demonstration

Use the sample Web files located in the “IODemo” folder in HelloDevice utility software for digital I/O control

on the Web. (Refer to the file location in the Figure 5.1) Web files used for the digital I/O demo are “index.html”,

“io.jar” and “404.html”. This example demonstrates control of the demo board I/O with the HelloDevice

connected to the Web

(1) Modify the IP address in the “index.html” file in the “IODemo” folder. Input the current HelloDevice IP

address to the IP address parameter related to the Java applet in the “index.html” file. Leave other parameter

unchanged and save the file.

Figure 5.10. Modifying the “index.html” file for digital I/O control

Note!

Several parameters can be used for Java applet I/O communication.

-

IP address: HelloDevice IP address

-

TCP port: Always set as 6001

-

Polling interval: 100 ms resolution, Set proper value according to the application

e.g. “polling value =1” means that I/O status will be polled at every 10 ms.

(2) Build and upload the Web files in the “IODemo” folder. Upload the Web page to the HelloDevice by

following the steps described in the Chapter 5.1. Select the “IODemo” folder that contains the Web files, instead

of the “FirstDemo” folder.

<HTML>

<HEAD>

<TITLE>IOdemo</TITLE>

</HEAD>

<BODY>

<H1>IOdemo</H1>

<APPLET CODE=IOdemo.class ARCHIVE=io.jar WIDTH=250 HEIGHT=300>

<param name=host value="192.168.1.15">

<param name=port value=6001>

<param name=polling value=1>

</APPLET>

</BODY>

</HTML>

Advertising