Roadmap to Sample Programs
INDEX


Sample programs are provided in the Dynamic C SAMPLES folder. The various directories in the SAMPLES folder contain specific sample programs that illustrate the use of the corresponding Dynamic C libraries with particular boards.

Single-Board Computers

BL1800

BL2000

BL2100

BL2500

BL2600

LP3500

General Board Operation
...Board ID
...LEDs
Digital I/O
A/D Converter
D/A Converter
Storing/Retrieving
Calibration Constants
Serial Communication
TCP/IP
Serial Flash
Power Modes
Relay Outputs
LCD/Keypad
RabbitNet

Operator Interfaces

OP6600/OP6700

OP6800

OP7200

General Board Operation
...Board ID
...LEDs
...User Block Info
Digital I/O
A/D Converter
D/A Converter
Storing/Retrieving
Calibration Constants
Serial Communication
TCP/IP
LCD/Keypad
RabbitNet

RabbitNet Peripheral Cards

RN1100

RN1200

RN1300

RN1400

RN1600

General Board Operation
Digital I/O
A/D Converter
D/A Converter
Relay Outputs
Keypad/Display Interface

Most of the sample programs for RabbitCore modules are based on peripherals available on the Prototyping Board associated with the specific RabbitCore module, and so the Prototyping Board is required to run the sample programs. Sample programs illustrating the LCD/keypad require the optional LCD/keypad module.

Rabbit 2000 Based RabbitCore Modules

RCM2000

RCM2100

RCM2200

RCM2300

General Board Operation
Digital I/O
Serial Communication
TCP/IP
LCD/Keypad

Rabbit 3000 Based RabbitCore Modules

RCM3000

RCM3100

RCM3200

RCM3300

RCM3400

RCM3600

RCM3700

Digital I/O
...IrDA transceivers
A/D Converter
Serial Communication
TCP/IP
Serial Flash
LCD/Keypad
RabbitNet
RabbitWeb Module
SSL Module
Remote Application Update
Integrating Dynamic C Modules

Click here for a roadmap to TCP/IP sample programs that are not board-specific.

1.1 BL1800

1.1.1 Digital I/O

FOLDER: SAMPLES\JACKRAB

1.1.2 A/D Converter

FOLDER: SAMPLES\JACKRAB

1.1.3 Serial Communication

FOLDER: SAMPLES\JACKRAB

1.1.4 LCD/Keypad

FOLDER: SAMPLES\JACKRAB

1.2 BL2000

1.2.1 General Board Operation

FOLDER: SAMPLES\BL2000

1.2.2 Digital I/O

FOLDER: SAMPLES\BL2000\IO

1.2.3 A/D Converter

FOLDER: SAMPLES\BL2000\ADC

1.2.4 D/A Converter

FOLDER: SAMPLES\BL2000\DAC

1.2.5 Serial Communication

FOLDER: SAMPLES\BL2000\RS232

FOLDER: SAMPLES\BL2000\RS485

1.2.6 Relay Outputs

FOLDER: SAMPLES\BL2000\IO

1.2.7 TCP/IP

FOLDER: SAMPLES\BL2000\TCPIP

1.3 BL2100

1.3.1 General Board Operation

FOLDER: SAMPLES\BL2100

1.3.2 Digital I/O

FOLDER: SAMPLES\BL2100\IO

1.3.3 A/D Converter

FOLDER: SAMPLES\BL2100\ADC

NOTE This sample program will overwrite the calibration constants set at the factory.

1.3.4 D/A Converter

FOLDER: SAMPLES\BL2100\DAC

NOTE This sample program will overwrite the calibration constants set at the factory.

1.3.5 Using Calibration Constants

FOLDER: SAMPLES\BL2100\Calib_Save_Retrieve

The following sample programs prompt you to use a serial number for the BL2100. This serial number can be any 5-digit number of your choice, and will be unique to a particular BL2100. Do not use the MAC address on the bar code label of the RabbitCore module attached to the BL2100 since you may at some later time use that particular RabbitCore module on another BL2100, and the previously saved calibration data would no longer apply.

NOTE Calibration data must be saved previously in a file by the sample program SAVECALIB.C.

NOTE Use the sample program GETCALIB.C to retrieve the data and rewrite it to the single-board computer.

1.3.6 Serial Communication

FOLDER: SAMPLES\BL2100\RS232

FOLDER: SAMPLES\BL2100\RS-485

1.3.7 TCP/IP

FOLDER: SAMPLES\BL2100\TCPIP

1.4 BL2500

1.4.1 General Board Operation

FOLDER: SAMPLES\BL2500

1.4.2 Digital I/O

FOLDER: SAMPLES\BL2500\IO

1.4.3 A/D Converter

FOLDER: SAMPLES\BL2500\ADC

1.4.4 D/A Converter

FOLDER: SAMPLES\BL2500\DAC

1.4.5 Using Calibration Constants

FOLDER: SAMPLES\BL2500\ADC

NOTE Use the sample program DNLOADCALIB.C to retrieve the data and rewrite it to the single-board computer.

NOTE Calibration data must be saved previously in a file by the sample program UPLOADCALIB.C.
NOTE In addition to loading the calibration constants on the replacement RabbitCore module, you will also have to add the product information for the BL2500 to the ID block associated with the RabbitCore module. The sample program WRITE_IDBLOCK.C, available on the Z-World Web site at http://www.zworld.com/support/feature_downloads.shtml, provides specific instructions and an example.

1.4.6 Serial Communication

FOLDER: SAMPLES\BL2500\SERIAL

1.4.7 TCP/IP

FOLDER: SAMPLES\BL2500\TCPIP

1.5 BL2600

1.5.1 General Board Operation

FOLDER: SAMPLES\BL2600

1.5.2 Digital I/O

FOLDER: SAMPLES\BL2600\IO

1.5.3 A/D Converter

FOLDER: SAMPLES\BL2600\ADC

NOTE The calibration sample programs will overwrite the calibration constants set at the factory.

1.5.4 D/A Converter

FOLDER: SAMPLES\BL2600\DAC

NOTE The calibration sample programs will overwrite the calibration constants set at the factory.

1.5.5 Using Calibration Constants

FOLDER: SAMPLES\BL2600\ADC

FOLDER: SAMPLES\BL2600\ADC

1.5.6 Serial Communication

FOLDER: SAMPLES\BL2600\RS232


NOTE For the sequence that does yield parity errors, the errors won't occur for each byte received. This is because certain byte patterns along with the stop bit will appear to generate the correct parity for the UART.

FOLDER: SAMPLES\BL2600\RS485

1.5.7 Serial Flash

FOLDER: SAMPLES\BL2600\SF1000

The following sample programs demonstrate the use of the optional SF1000 serial flash card on the BL2600. The SF1000 User's Manual contains additional information and API functions for the SF1000.

1.5.8 TCP/IP

FOLDER: SAMPLES\BL2600\TCPIP

1.6 LP3500

1.6.1 Power Modes

FOLDER: SAMPLES\LP3500\POWER

1.6.2 Digital I/O

FOLDER: SAMPLES\LP3500\IO

1.6.3 A/D Converter

FOLDER: SAMPLES\LP3500\ADC

NOTE This sample program will overwrite the calibration constants set at the factory.

NOTE This sample program will overwrite the calibration constants set at the factory.

NOTE This sample program will overwrite the calibration constants set at the factory.

NOTE This sample program will overwrite the calibration constants set at the factory.

1.6.4 Serial Communication

FOLDER: SAMPLES\LP3500\RS232

FOLDER: SAMPLES\LP3500\RS485

1.6.5 Relay Outputs

FOLDER: SAMPLES\LP3500\RELAY

1.6.6 LCD/Keypad

FOLDER: SAMPLES\LP3500\DISPLAY_KEYPAD

These two sample programs are board-specific to the LP3500. Click here for additional sample programs that illustrate the use of the LCD/keypad module.

1.7 Intellicom

1.7.1 General Board Operation

FOLDER: SAMPLES\ICOM

1.7.2 Digital I/O

FOLDER: SAMPLES\ICOM

1.7.3 Serial Communication

FOLDER: SAMPLES\ICOM

1.7.4 TCP/IP

FOLDER: SAMPLES\ICOM

The programs TCP_SEND.C and TCP_RESPOND.C are meant to be executed on two different Intellicom boards so that the two boards communicate with each other. In the absence of a second board, PCSEND.EXE (used with TCP_SEND.C) and PCRESPOND.EXE (used with TCP_RESPOND.C) in the SAMPLES\ICOM\WINDOWS directory can be used on the PC console side at the command prompt. Both the executables and the C source code are located in the WINDOWS directory.

Using PCSEND

PCSEND.C is the source code for PCSEND.EXE used on the PC console side to communicate with an Intellicom board. The executable PCSEND.EXE is similar to TCP_SEND.C, but is run at the command prompt to communicate with an Intellicom board running TCP_RESPOND.C.

Using PCRESPOND

PCRESPOND.C is the source code for PCRESPOND.EXE used on the PC console side to communicate with an Intellicom board. The executable PCRESPOND.EXE is similar to TCP_RESPOND.C, but is run at the command prompt to communicate with an Intellicom board running TCP_SEND.C.

1.7.5 LCD/Keypad

FOLDER: SAMPLES\ICOM

1.8 OP6800

1.8.1 General Board Operation

FOLDER: SAMPLES\OP6800

FOLDER: SAMPLES\OP6800\DEMO_BD

1.8.2 Digital I/O

FOLDER: SAMPLES\OP6800\IO

1.8.3 Serial Communication

FOLDER: SAMPLES\OP6800\RS232

FOLDER: SAMPLES\OP6800\RS485

1.8.4 TCP/IP

FOLDER: SAMPLES\OP6800\TCPIP

1.9 OP7200

1.9.1 General Board Operation

FOLDER: SAMPLES\OP7200

1.9.2 Digital I/O

FOLDER: SAMPLES\OP7200\IO

1.9.3 A/D Converter

FOLDER: SAMPLES\OP7200\ADC

NOTE The above sample programs will overwrite the calibration constants set at the factory.

1.9.4 Using Calibration Constants

FOLDER: SAMPLES\OP7200\Calib_Save_Retrieve

The following sample programs illustrate how to save or retrieve the calibration constants. Note that both sample programs prompt you to use a serial number for the OP7200. This serial number can be any 5-digit number of your choice, and will be unique to a particular OP7200. Do not use the MAC address on the bar code label of the RabbitCore module attached to the OP7200 since you may at some later time use that particular RabbitCore module on another OP7200, and the previously saved calibration data would no longer apply.

NOTE Use the sample program GETCALIB.C to retrieve the data and rewrite it to the single-board computer.

NOTE Calibration data must be saved previously in a file by the sample program SAVECALIB.C.
NOTE In addition to loading the calibration constants on the replacement RabbitCore module, you will also have to add the product information for the OP7200 to the ID block associated with the RabbitCore module. The sample program WRITE_IDBLOCK.C, available on the Z-World Web site at http://www.zworld.com/support/feature_downloads.shtml, provides specific instructions and an example.

1.9.5 Serial Communication

FOLDER: SAMPLES\OP7200\RS232

FOLDER: SAMPLES\OP7200\RS485

1.9.6 TCP/IP

FOLDER: SAMPLES\OP7200\TCPIP

1.9.7 LCD/Keypad

FOLDER: SAMPLES\OP7200\LCD_BASIC

FOLDER: SAMPLES\OP7200\LCD_KEYPAD

FOLDER: SAMPLES\OP6800\LCD_TOUCHSCREEN

1.10 RabbitNet Peripheral Cards

1.10.1 General Board Operation

FOLDER: SAMPLES\RABBITNET

1.10.2 Digital I/O Card

1.10.2.1 Digital I/O

FOLDER: SAMPLES\RABBITNET\RN1100\DIO

1.10.2.2 A/D Converter

FOLDER: SAMPLES\RABBITNET\RN1100\AIN

1.10.3 A/D Converter Card

FOLDER: SAMPLES\RABBITNET\RN1200

1.10.4 D/A Converter Card

FOLDER: SAMPLES\RABBITNET\RN1300


NOTE This sample program must be compiled to flash.



NOTE This sample program must be compiled to flash.



NOTE The calibration constants set at the factory will be overwritten when you run this sample program.

1.10.5 Relay Card

FOLDER: SAMPLES\RABBITNET\RN1400

1.10.6 Keypad/Display Interface

FOLDER: SAMPLES\RABBITNET\RN1600

1.11 LCD/Keypad Module

FOLDER: SAMPLES\LCD_Keypad\122x32_1x7

1.12 RCM2000

1.12.1 General Board Operation

FOLDER: SAMPLES\RCM2000

1.12.2 Digital I/O

FOLDER: SAMPLES\RCM2000

1.12.3 Serial Communication

FOLDER: SAMPLES\RCM2000

1.12.4 LCD/Keypad

FOLDER: SAMPLES\RCM2000

1.13 RCM2100

1.13.1 General Board Operation

FOLDER: SAMPLES\RCM2100

1.13.2 Digital I/O

FOLDER: SAMPLES\RCM2100

1.13.3 Serial Communication

FOLDER: SAMPLES\RCM2100

1.13.4 TCP/IP

FOLDER: SAMPLES\RCM2100

1.13.5 LCD/Keypad

FOLDER: SAMPLES\RCM2100

1.14 RCM2200

1.14.1 General Board Operation

FOLDER: SAMPLES\RCM2200

1.14.2 Digital I/O

FOLDER: SAMPLES\RCM2200

1.14.3 Serial Communication

FOLDER: SAMPLES\RCM2200

1.14.4 TCP/IP

FOLDER: SAMPLES\RCM2200

1.14.5 LCD/Keypad

FOLDER: SAMPLES\RCM2200

1.15 RCM2300

1.15.1 General Board Operation

FOLDER: SAMPLES\RCM2300

1.15.2 Digital I/O

FOLDER: SAMPLES\RCM2300

1.15.3 Serial Communication

FOLDER: SAMPLES\RCM2300

1.15.4 LCD/Keypad

FOLDER: SAMPLES\RCM2300

1.16 RCM3000

1.16.1 Digital I/O

FOLDER: SAMPLES\RCM3000

1.16.2 Serial Communication

FOLDER: SAMPLES\RCM3000\SERIAL

1.16.3 TCP/IP

FOLDER: SAMPLES\RCM3000\TCPIP

1.16.4 LCD/Keypad

FOLDER: SAMPLES\RCM3000\LCD_KEYPAD

These three sample programs are board-specific to the RCM3000. Click here for additional sample programs that illustrate the use of the LCD/keypad module.

1.17 RCM3100

1.17.1 Digital I/O

FOLDER: SAMPLES\RCM3100

1.17.2 Serial Communication

FOLDER: SAMPLES\RCM3100\SERIAL

1.17.3 LCD/Keypad

FOLDER: SAMPLES\RCM3100\LCD_KEYPAD

These three sample programs are board-specific to the RCM3100. Click here for additional sample programs that illustrate the use of the LCD/keypad module.

1.18 RCM3200

1.18.1 Digital I/O

FOLDER: SAMPLES\RCM3200

1.18.2 Serial Communication

FOLDER: SAMPLES\RCM3200\SERIAL

1.18.3 TCP/IP

FOLDER: SAMPLES\RCM3200\TCPIP

1.18.4 LCD/Keypad

FOLDER: SAMPLES\RCM3200\LCD_KEYPAD

These three sample programs are board-specific to the RCM3200. Click here for additional sample programs that illustrate the use of the LCD/keypad module.

1.19 RCM3300

1.19.1 Digital I/O

FOLDER: SAMPLES\RCM3200

1.19.2 Serial Communication

FOLDER: SAMPLES\RCM3300\SERIAL

1.19.3 TCP/IP

FOLDER: SAMPLES\RCM3300\TCPIP

1.19.3.1 RabbitWeb

FOLDER: SAMPLES\RCM3300\TCPIP\RABBITWEB

1.19.4 LCD/Keypad

FOLDER: SAMPLES\RCM3300\LCD_KEYPAD

These three sample programs are board-specific to the RCM3400. Click here for additional sample programs that illustrate the use of the LCD/keypad module.

1.19.5 Serial Flash

1.19.5.1 Onboard Serial Flash

FOLDER: SAMPLES\RCM3300\SerialFlash

1.19.5.2 SF1000 Serial Flash Card

FOLDER: SAMPLES\RCM3300\SF1000

1.19.6 Remote Application Update

FOLDER: SAMPLES\RCM3300\RemoteApplicationUpdate

Complete information on the use of these programs is provided in the Remote Application Update instructions, which are available with the online documentation.

1.19.7 Dynamic C FAT File System, RabbitWeb, and SSL Modules

The Dynamic C FAT File System, RabbitWeb, and Secure Sockets Layer (SSL) modules have been integrated into a sample program for the RCM3300. The sample program will only run on the RCM3300 and RCM3700, and requires that you have installed the Dynamic C FAT File System, RabbitWeb, and SSL modules.

TIP Before running any of the sample programs described in this section, you should look at and run sample programs for the TCP/IP ZSERVER.LIB library, the FAT file system, RabbitWeb, SSL, the download manager, and HTTP upload to become more familiar with their operation.

The INTEGRATION.C sample program in the SAMPLES\RCM3300\Module_Integration folder demonstrates the use of the TCP/IP ZSERVER.LIB library and FAT file system functionality with RabbitWeb dynamic HTML content, all secured using SSL. The sample program also supports dynamic updates of both the application and its resources using the Rabbit Download Manager (DLM) and HTTP upload capability, respectively—note that neither of these currently supports SSL security.

Before you run the INTEGRATION.C sample program, you will first 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 serial flash for use with the FAT file system. If the serial flash is already formatted, FMT_DEVICE.C gives you the option of erasing the serial 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 files into the FAT file system via #ximport.

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 before.

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 way, the page is protected so that you cannot accidentally change it, possibly restricting yourself from performing future updates. If you wish, you may place the upload page into the FAT file system to allow the upload page to be updated.

To try out the update capability, click the upload link on the admin page and choose a simple text file to replace monitor.ztm. Open another browser window and load the main Web 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.

When you refresh the page in your browser, you will see that the page has been restored. You have successfully updated and restored your application's files remotely!

When you are finished with the INTEGRATION.C sample program, you need to follow a special shutdown procedure before powering off to prevent any possible corruption of the FAT file system. Press and hold switch S2 on the Prototyping Board until LED DS3 blinks rapidly to indicate that it is now safe to turn the RCM3300 off. This procedure can be modified by the user to provide other application-specific shutdown tasks.

1.20 RCM3400

1.20.1 Digital I/O

FOLDER: SAMPLES\RCM3400

1.20.2 A/D Converter

FOLDER: SAMPLES\RCM3400\ADC

NOTE The above sample programs will overwrite any existing calibration constants.

1.20.3 Serial Communication

FOLDER: SAMPLES\RCM3400\SERIAL

1.20.4 TCP/IP

FOLDER: SAMPLES\RCM3400\TCPIP

1.20.5 LCD/Keypad

FOLDER: SAMPLES\RCM3400\LCD_KEYPAD

These three sample programs are board-specific to the RCM3400. Click here for additional sample programs that illustrate the use of the LCD/keypad module.

1.21 RCM3600

1.21.1 Digital I/O

FOLDER: SAMPLES\RCM3600

1.21.2 A/D Converter Inputs

FOLDER: SAMPLES\RCM3600\ADC


NOTE The above sample programs will overwrite any existing calibration constants.

1.21.3 Serial Communication

FOLDER: SAMPLES\RCM3600\SERIAL

1.21.4 LCD/Keypad

FOLDER: SAMPLES\RCM3600\LCD_KEYPAD

These three sample programs are board-specific to the RCM3600. Click here for additional sample programs that illustrate the use of the LCD/keypad module.

1.22 RCM3700

1.22.1 Digital I/O

FOLDER: SAMPLES\RCM3700

1.22.2 A/D Converter

FOLDER: SAMPLES\RCM3700\ADC

NOTE The above sample programs will overwrite any existing calibration constants.

1.22.3 Serial Communication

FOLDER: SAMPLES\RCM3700\SERIAL

1.22.4 TCP/IP

FOLDER: SAMPLES\RCM3700\TCPIP

1.22.4.1 RabbitWeb

FOLDER: SAMPLES\RCM3700\TCPIP\RABBITWEB

You will need to have the Dynamic C RabbitWeb module installed before you run the sample programs described in this section. The sample programs can be found in the SAMPLES\RCM3700\TCPIP\RABBITWEB folder.

1.22.4.2 Secure Sockets Layer (SSL)

FOLDER: SAMPLES\RCM3700\TCPIP\SSL

You will need to have the Dynamic C SSL module installed before you run the sample programs described in this section. The sample programs can be found in the SAMPLES\RCM3700\TCPIP\SSL folder.

Before running these sample programs, you will have to create an SSL certificate. The SSL walkthrough in the online documentation for the Dynamic C SSL module explains how to do this.

1.22.5 Serial Flash

FOLDER: SAMPLES\RCM3700\Serial_Flash

1.22.6 LCD/Keypad

FOLDER: SAMPLES\RCM3700\LCD_KEYPAD

These three sample programs are board-specific to the RCM3700. Click here for additional sample programs that illustrate the use of the LCD/keypad module.

1.22.7 Dynamic C FAT File System, RabbitWeb, and SSL Modules

The Dynamic C FAT File System, RabbitWeb, and Secure Sockets Layer (SSL) modules have been integrated into a sample program for the RCM3700. The sample program will only run on the RCM3300 and RCM3700, and requires that you have installed the Dynamic C FAT File System, RabbitWeb, and SSL modules.

NOTE These sample programs will work only on the RCM3700, and not the RCM3710. The download manager portion of the sample program will only work on an RCM3300.

TIP Before running any of the sample programs described in this section, you should look at and run sample programs for the TCP/IP ZSERVER.LIB library, the FAT file system, RabbitWeb, SSL, the download manager, and HTTP upload to become more familiar with their operation.

The INTEGRATION.C sample program in the SAMPLES\RCM3700\Module_Integration folder demonstrates the use of the TCP/IP ZSERVER.LIB library and FAT file system functionality with RabbitWeb dynamic HTML content, all secured using SSL. The sample program also supports dynamic updates of both the application and its resources using the Rabbit Download Manager (DLM) and HTTP upload capability, respectively—note that neither of these currently supports SSL security.

Before you run the INTEGRATION.C sample program, you will first 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 serial flash for use with the FAT file system. If the serial flash is already formatted, FMT_DEVICE.C gives you the option of erasing the serial 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\RCM3700\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 files into the FAT file system via #ximport.

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\RCM3700\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 before.

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 way, the page is protected so that you cannot accidentally change it, possibly restricting yourself from performing future updates. If you wish, you may place the upload page into the FAT file system to allow the upload page to be updated.

To try out the update capability, click the upload link on the admin page and choose a simple text file to replace monitor.ztm. Open another browser window and load the main Web 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.

When you refresh the page in your browser, you will see that the page has been restored. You have successfully updated and restored your application's files remotely!

When you are finished with the INTEGRATION.C sample program, you need to follow a special shutdown procedure before powering off to prevent any possible corruption of the FAT file system. Press and hold switch S1 on the Prototyping Board until LED DS1 blinks rapidly to indicate that it is now safe to turn the RCM3700 off. This procedure can be modified by the user to provide other application-specific shutdown tasks.


INDEX


Z-World, Inc.
www.zworld.com
Phone: 1.530.757.3737
FAX: 1.530.757.3792
Rabbit Semiconductor
www.rabbitsemiconductor.com
Phone: 1.530.757.8400
FAX: 1.530.757.8402