#
# XPort Configuration and Test Applet 
#
# 2006 MBARI
# author: k headley
#

Description
Builds a Java applet that may be loaded into a Lantronix XPort
to provide a GUI for configuring the XPort's GPIO pins and
testing its serial port interface.

Install
- make an install directory (preferably with no whitespace in the path)
- Unpack the files into the install directory
- make a copy of env.sh (e.g. myenv.sh)
- edit myenv to set required environment variables
	- JAVA_DEV_ROOT (path to install directory)
	- XPORT_HOST (XPort hostname or IP Address; see notes below)

Use Notes
- source myenv to set the environment:
	$ . ./myenv.sh [<xportHostAddress>]

- build the applet:
	$ make release
	- creates build directory structure
	- COB file is in JAVA_DEV_ROOT/build/bin
	- COB content is in JAVA_DEV_ROOT/build/src

- Other make targets are described by the help target
	$ make help

- test the applet:
	$ make test

	- Java appletviewer should load the applet using xport.html
	- Should be able to configure XPort GPIO pins if XPort 
	  hardware is available

- configure the XPort
	- Use XPort Installer to configure the XPort hostname (it should match the one set in myenv.sh)
	- set IP address to 0.0.0.0 in xport installer do enable DHCP
		- if using DHCP, the hostname set in myenv.sh should be a hostname and not an IP address
		- use xport installer, telnet <xport IP> 9999 or web interface at http://<xport IP>/ 
		  to configure IP and hostname

- install the applet:
	- Use XPort Installer utility to load the applet
	- Do not load the applet into memory segments WEB1 or WEB6 (reserved for Lantronix utilities)
	- recommend using partition WEB4
	- OR use tftp:
	- tftp -i <IP_addr> put <.COB> WEB7

	- if you accidentally overwrite the web interface, download the web interface .cob from 
 	  lantronix and install into partition WEB1
