User’s Manual
37
DATALOGGER.C
This sample program illustrates the use of embedded Web servers and downloadable data
via wireless by implementing a prototype wireless datalogger. A PC or notebook can dis-
play or download the log file, reset the log files, and set the current date/time via a Web
browser.
To run this sample program, you will need an access point and PC/notebook (infrastructure
mode) or a notebook with 802.11b wireless compatibility working in the ad-hoc mode. By
default, encryption is turned off by the
_WIFI_WEP_FLAG
flag in the
TCPCONFIG 9
macro used in the sample program and defined in the Dynamic C
TCP_CONFIG.LIB
library, and the
_WIFI_MODE
macro is set to the infrastructure mode. If you are using the
ad-hoc mode, you will need to change
WIFICONF_INFRASTRUCT
to
WIFICONF_ADHOC
in the following line in the Dynamic C
TCP_CONFIG.LIB
library.
#define _WIFI_MODE WIFICONF_ADHOC
If your access point has encryption turned on for the infrastructure mode, you will have to
set the
WIFICONF_WEP_DISABLE
flag to
WIFICONF_WEP_ENABLE
in the following line in the
Dynamic C
TCP_CONFIG.LIB
library to enable encryption.
#define _WIFI_WEP_FLAG WIFICONF_WEP_ENABLE
You may also need to change the encryption keys and select one of the four keys with
#define _WIFI_USEKEY " "
. Contact the administrator of the access point or review the
documentation for the access point to determine the encryption keys.
Once the sample program is running either in the infrastructure mode or the ad-hoc mode,
it logs the IP address of users who request the Web page via a browser and logs keypresses
for switch S2 on the Prototyping Board (switch S1 on the RCM3600/3700 Prototyping
Board). The log can be viewed online.
Enter
http://10.10.6.100
(or the network IP address you supplied to the Dynamic C
TCP_CONFIG.LIB
library) and press
Enter
to view the Web page.
Summary of Contents for RCM3000
Page 8: ...4 802 11b Wi Fi Add On Kits ...
Page 28: ...24 802 11b Wi Fi Add On Kits ...
Page 56: ...52 802 11b Wi Fi Add On Kits ...
Page 60: ...56 802 11b Wi Fi Add On Kits ...
Page 68: ...64 802 11b Wi Fi Add On Kits ...
Page 78: ...74 802 11b Wi Fi Add On Kits ...
Page 80: ...76 802 11b Wi Fi Add On Kits ...
Page 82: ...78 RabbitCore RCM3800 ...
Page 86: ......