58
Wildcat (BL2000)
5.4 Running More Sample Programs With a Direct Connection
The program
SSI.C
(
SAMPLES\BL2000\TCPIP\
) demonstrates how to make the
BL2000 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. LEDs DS4–DS8
on the BL2000 will match those on the Web page. 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
SMTP.C
(
SAMPLES\BL2000\TCPIP\
) allows you to send an E-mail
when a switch on the Demonstration Board is pressed. Follow the instructions included
with the sample program.
The sample program
TELNET.C
(
SAMPLES\BL2000\TCPIP\
) allows you to communi-
cate with the BL2000 using the Telnet protocol. This program takes anything that comes
in on a port and sends it out Serial Port B. It uses digital input IN0 to indicate that the
TCP/IP connection should be closed, and it uses high-current output OUT0 to indicate that
there is an open connection. You may change the digital input and output to suit your
application needs.
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.5 Where Do I Go From Here?
NOTE:
If you purchased your BL2000 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
and at
.
•
Use the Technical Support e-mail form at
.
If the sample programs ran fine, you are now ready to go on.
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
Summary of Contents for BL2020
Page 38: ...34 Wildcat BL2000...
Page 84: ...80 Wildcat BL2000...
Page 88: ...84 Wildcat BL2000...
Page 92: ...88 Wildcat BL2000...
Page 94: ......