User’s Manual
91
The following sample programs, found in the
SAMPLES/LCD_Keypad/122x32_1x7/
TCPIP
folder, are targeted at the Ethernet-enabled versions of the BL2100, the BL2100
and the BL2110. Remember to configure the IP address, netmask, and gateway as indi-
cated in the sample programs.
•
MBOXDEMO.C
—This program implements a web server that allows e-mail messages to
be entered that are then shown on the LCD display. The keypad allows you to scroll
within messages, flip to other e-mails, mark messages as read, and delete e-mails.
When a new e-mail arrives, an LED turns on, and turns off once the message has been
marked as read. A log of all e-mail actions is kept, and can be displayed in the Web
browser. All current e-mails can also be read with the Web browser.
When using
MBOXDEMO.C
, connect the BL2100 and a PC (or other device with a Web
Browser) to an Ethernet. If you connect the PC and the BL2100 directly, be sure to use
a crossover Ethernet cable; strait-through Ethernet cables and a hub may be used
instead.
•
TCP_RESPOND.C
—This program and
TCP_SEND.C
are executed on two separate sin-
gle-board computers to demonstrate how the two boards communicate with each other.
Use
PCSEND.EXE
on the PC console side at the command prompt if you do not have a
second board.
PCSEND.EXE
is located with source code in the
SAMPLES/
LCD_Keypad/Windows
directory.
TCP_RESPOND.C
waits for a message from another single-board computer. The mes-
sage received is displayed on the LCD, and you may respond by pressing a key on the
keypad. The response is then sent to the remote single-board computer.
•
TCPSEND.C
—This program and
TCP_RESPOND.C
are executed on two separate single-
board computers to demonstrate how the two boards communicate with each other. Use
PCRESPOND.EXE
on the PC console side at the command prompt if you do not have a
second board.
PCRESPOND.EXE
is located with source code in the
SAMPLES/
LCD_Keypad/Windows
directory.
When a key on the keypad is pressed, a message associated with that key is sent to a
specified destination address and port. The destination then responds to that message.
The response is displayed on the LCD.
Note that only the
LEFT
and
UP
scroll keys are set up to cause a message to be sent.
When using
TCPSEND.C
and
TCP_RESPOND.C
, connect the BL2100 and the other single-
board computer to an Ethernet. If you connect the them directly, be sure to use a crossover
Ethernet cable; strait-through Ethernet cables and a hub may be used instead.
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: ......