User`s manual

66 MiniCore RCM5600W
BROWSELED.C—This program demonstrates a basic controller running a Web page.
Four “device LEDs” are created along with four buttons to toggle them. Users can use
their Web browser to change the status of the lights. The DS1, DS2, DS3, and DS4
LEDs on the Digital I/O accessory 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 fol-
lowing server address in your Web browser to bring up the Web page served by the
sample program. Remember to configure the access point to match the default settings
of the TCPCONFIG 1 macro.
http://10.10.6.100.
Otherwise use the TCP/IP settings you entered in the in the “Defines” tab in the Dynamic C
Options > Project Options menu
.
Once you compile and run this sample program, you can use the buttons in the Web
browser to toggle the LEDs on the Digital I/O accessory board on/off.
PINGLED.C—This program demonstrates ICMP by pinging a remote host. It will flash
LED DS2 on the Digital I/O accessory board when a ping is sent and it will flash LED
DS3 when a ping is received.
Before you compile and run this sample program, change PING_WHO and IFC_WIFI_
SSID
to the host and SSID you want to ping. You may modify PING_DELAY to change
the amount of time in milliseconds between the outgoing pings.
Uncomment the VERBOSE define to see the incoming ping replies.
PINGLED_STATS.C—This program is similar to PINGLED.C, but it also displays
receiver/transmitter statistics in the Dynamic C STDIO window.
Before you compile and run this sample program, change PING_WHO and IFC_WIFI_
SSID
to the host and SSID you want to ping. You may modify PING_DELAY to change
the amount of time in milliseconds between the outgoing pings.
Modify the value in the MOVING_AVERAGE macro to change the moving average filter-
ing of the statistics. Also review the
GATHER_INTERVAL and GRAPHICAL macros,
which affect the number of samples to gather and create a bar graph display instead of a
numeric display.
Uncomment the
VERBOSE define to see the incoming ping replies.
Once you compile and run this sample program, LED DS2 on the Digital I/O accessory
board will flash when a ping is sent, and LED DS3 will flash when a ping is received.