BL4S200 User’s Manual
137
5.2.4 Running More Demo Programs With a Direct Connection
The program
SSI.C
(
SAMPLES\BLxS2xx\TCPIP\
) demonstrates how to make the
BL4S200 a Web server. This program allows you to turn the LEDs on an attached Demon-
stration Board from the Tool Kit on and off from a remote Web browser. The LEDs on the
Demonstration Board match the ones on the Web page. Follow the instructions included
with the sample program. 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.
Otherwise use the TCP/IP settings you entered in the
TCP_CONFIG.LIB
library.
The sample program
RWEB DIGITAL OUTPUTS.C
(
SAMPLES\BLxS2xx\TCPIP\
) dem-
onstrates using the
digOut()
function call to control configurable I/O sinking outputs to
toggle LEDs on and off on the Demonstration Board from your Web browser.
The sample program
TELNET.C
(
SAMPLES\BLxS2xx\TCPIP\
) allows you to communi-
cate with the BL4S200 using the Telnet protocol. This program takes anything that comes
in on a port and sends it out Serial Port E (BL4S200) or Serial Port B (BL4S210). 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.
Follow the instructions included with the sample program. Run the Telnet program on
your PC (
Start > Run
telnet 10.10.6.100
). As long as you have not modified the
TCPCONFIG 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.
5.3 Where Do I Go From Here?
NOTE:
If you purchased your BL4S200 through a distributor or Rabbit partner, contact
the distributor or partner first for technical support.
If there are any problems at this point:
•
Use the Dynamic C
Help
menu to get further assistance with Dynamic C.
•
Check the Rabbit Technical Bulletin Board and forums at
www.rabbit.com/support/bb/
and at
www.rabbit.com/forums/
.
•
Use the Technical Support e-mail form at
www.rabbit.com/support/questionSubmit.shtml
.
If the sample programs ran fine, you are now ready to go on.
Additional sample programs are described in the
Dynamic C TCP/IP User’s Manual
.
Refer to the
Dynamic C TCP/IP User’s Manual
to develop your own applications.
An
Introduction to TCP/IP
provides background information on TCP/IP, and is available on
the
Web site
.
electronic components distributor