60
Smartcat (BL2100)
5.2.4 Running More Demo Programs With a Direct Connection
The program
SSI.C
(
SAMPLES\BL2100\TCPIP\
) demonstrates how to make the
BL2100 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. LED0 and LED1
on the LCD/keypad module (LED1 and LED2 on the Demonstration Board) 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\BL2100\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\BL2100\TCPIP\
) allows you to communi-
cate with the BL2100 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 IN00 to indicate that the
TCP/IP connection should be closed, and it uses high-current output OUT00 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.3 Where Do I Go From Here?
NOTE:
If you purchased your BL2100 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 Smartcat
Page 6: ...Smartcat BL2100 ...
Page 14: ...8 Smartcat BL2100 ...
Page 60: ...54 Smartcat BL2100 ...
Page 78: ...72 Smartcat BL2100 ...
Page 84: ...78 Smartcat BL2100 ...
Page 118: ...112 Smartcat BL2100 ...
Page 124: ...118 Smartcat BL2100 ...
Page 132: ...126 Smartcat BL2100 ...
Page 134: ......