User`s manual

BL4S100 Users Manual 101
RWEB_IO_SAMPLE.C—Demonstrates using RabbitWeb to display the status of multi-
ple I/O lines (analog and digital) in a Web browser, and allows the user to change the
digital outputs by clicking the buttons on the page.
The sample program uses an IFRAME (invisible frame) to refresh the I/O readings
every two seconds. Since the Web browser does not have to re-render the entire page,
updates are quick and flicker free.
Once the sample program is compiled and running, open your PC Web browser. As
long as you have not modified the TCPCONFIG 1 macro in the sample program, enter
the following server address in your Web browser to bring up the Web page served by
the sample program.
http://10.10.6.100
Now use a wire to touch +5 V from header J4 on the BL4S100 to the various digital and
analog inputs on header J3, J15, and J16
SMTP.C—Uses the SMTP library to send an e-mail when a pushbutton switch on the
Demonstration Board is pressed.
TELNET.C—Allows you to communicate with the BL4S100 using the Telnet protocol.
This program takes anything that comes in on a port and sends it out Serial Port D and
displays the content in the Dynamic C STDIO window. It uses a digital input to indicate
that the TCP/IP connection should be closed and a digital output to toggle an LED to
indicate that there is an active connection.
Once the sample program is compiled and running, start the Telnet program on your PC
(Start > Run telnet 10.10.6.100). As long as you have not modified the TCPCON-
FIG 1
macro in the sample program, the IP address is 10.10.6.100 as shown; otherwise
use the TCP/IP settings you entered in the TCP_CONFIG.LIB library. Each character
you type will be printed in Dynamic C's STDIO window, indicating that the board is
receiving the characters typed via TCP/IP.