Rabbit Semiconductor 101-0505 Datasheet


Add to my manuals
108 Pages

advertisement

Rabbit Semiconductor 101-0505 Datasheet | Manualzz

5.2.5 LCD/Keypad Sample Programs Showing TCP/IP Features

The following sample programs, found in the

TCPIP

subdirectory in

SAMPLES/LCD_Keypad/122x32_1x7

, are targeted at the Ethernet-enabled versions of the OP6800. Remember to configure the IP address, netmask, and gateway as indicated in the sample programs.

MBOXDEMO.C

—This program implements a web server that allows Web 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 OP6800 and a PC (or other device with a Web

Browser) to an Ethernet. If you connect the PC and the OP6800 directly, be sure to use a crossover Ethernet cable; straight-through Ethernet cables and a hub may be used instead.

TCP_RESPOND.C

—This program and

TCP_SEND.C

are executed on two separate single-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 message 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 singleboard 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 OP6800 and the other singleboard computer to an Ethernet. If you connect the them directly, be sure to use a crossover

Ethernet cable; straight-through Ethernet cables and a hub may be used instead.

40

MiniCom (OP6800)

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

advertisement

Table of contents