62
RabbitCore RCM3305/RCM3315
First, you need to format and partition the serial flash. Find the
FMT_DEVICE.C
sample
program in the Dynamic C
SAMPLES\FileSystem
folder. Open this sample program
with the
File > Open
menu, then compile and run it by pressing
F9
.
FMT_DEVICE.C
formats the mass storage device for use with the FAT file system. If the serial flash or
NAND flash is already formatted,
FMT_DEVICE.C
gives you the option of erasing the
mass storage flash and reformatting it with a single large partition. This erasure does not
check for non-FAT partitions and will destroy
all
existing partitions.
Next, run the
INTEGRATION_FAT_SETUP.C
sample program in the Dynamic C
SAMPLES\RCM3300\Module_Integration
folder. Open this sample program with the
File > Open
menu, then compile and run it by pressing
F9
.
INTEGRATION_FAT_
SETUP.C
will copy some
#ximported
files into the FAT file system.
The last step to complete before you can run the
INTEGRATION.C
sample program is to
create an SSL certificate. The SSL walkthrough in the online documentation for the
Dynamic C SSL module explains how to do this.
Now you are ready to run the
INTEGRATION.C
sample program in the Dynamic C
SAMPLES\RCM3300\Module_Integration
folder. Open this sample program with the
File > Open
menu, then compile and run it by pressing
F9
.
NOTE:
Since HTTP upload and the Dynamic C SSL module currently do not work
together, compiling the
INTEGRATION.C
sample
program will generate a serious
warning. Ignore the warning because we are not using HTTP upload over SSL. A
macro (
HTTP_UPLOAD_SSL_SUPRESS_WARNING
) is available to suppress the
warning message.
Open a Web browser, and browse to the device using the IP address from the
TCP_
CONFIG.LIB
library or the URL you assigned to the device. The humidity monitor will
be displayed in your Web browser. This page is accessible via plain HTTP or over SSL-
secured HTTPS. Click on the administrator link to bring up the admin page, which is
secured automatically using SSL with a user name and a password. Use
myadmin
for user
name and use
myadmin
for the password.
The admin page demonstrates some RabbitWeb capabilities and provides access to the
HTTP upload page. Click the upload link to bring up the HTTP upload page, which allows
you to choose new files for both the humidity monitor and the admin page. If your browser
prompts you again for your user name and password, they are the same as above.
Note that the upload page is a static page included in the program flash, and can only be
updated by recompiling and downloading the application. This page is protected so that
you cannot accidentally change the upload page, possibly restricting yourself from per-
forming future updates.
To try out the update capability, click the upload link on the admin page and choose a sim-
ple text file to replace
monitor.ztm
. Open another browser window and load the main
page. You will see that your text file has replaced the humidity monitor. To restore the
monitor, go back to the other window, click back to go to the upload page again, and
choose
HUMIDITY_MONITOR.ZHTML
to replace
monitor.ztm
and click
Upload
.
Summary of Contents for RCM3305
Page 6: ...RabbitCore RCM3305 RCM3315...
Page 14: ...8 RabbitCore RCM3305 RCM3315...
Page 22: ...16 RabbitCore RCM3305 RCM3315...
Page 28: ...22 RabbitCore RCM3305 RCM3315...
Page 70: ...64 RabbitCore RCM3305 RCM3315...
Page 106: ...100 RabbitCore RCM3305 RCM3315...
Page 144: ...138 RabbitCore RCM3305 RCM3315...
Page 160: ......