Updating The Web Pages

Introduction

The source code for the default web pages contained on the Modtronix SBC65EC Web Server is located in the "../src/webpages/default" folder of the downloaded source code. For details on the HTTP Web Server, supported file types, HTTP Compression, HTTP Authentication, CGI and Dynamic Web Pages see the HTTP Web Server section of this document.

Example Web Pages

Many additional example web pages are included in the ../src/webpages folder of the downloaded source code. For details, see Example Web Pages.

Modifying And Updating The Web Pages

The Modtronix SBC65EC Web Server uses the FSEE File System to store Web pages in the external EEPROM. Future versions of this application will add additional file systems that allow web pages to be stored on the PIC's FLASH memory or an Atmel DataFlash chip.

All files making up the web pages have to have the format 8.3 (file name no longer than 8 characters and extension no longer than 3 characters), and must be located in a single folder. Any file starting with the 'X' character will require the user to be logged in to view it, for example "XPAGE.HTM".

Web files can not be uploaded to the Modtronix SBC65EC Web Server individually. All files have to be compiled into a File System Image, and then this image is uploaded to the target. The Modtronix Network Bootloader application is used to create and upload this file to the target Ethernet board. The following methods can be used to upload the File System Image to the target board.

Uploading the File System Image with the Modtronix Network Bootloader

The simplest method is to use the built in FTP server of the Modtronix Network Bootloader. Simply click on the "Upload Web Page" button, and the File System Image is uploaded to the board at the given IP address.

Uploading the File System Image with a FTP client

A FTP client can be used to connect to the target board and upload the File System Image. The default user name is "admin" and the password is "pw". After connecting to the target board, simply upload the entire File System Image file. After doing this, the target will contain the new Web pages.

Total Commander is a great free application that can be used to do all ftp transfers. It can do much more then just ftp. To upload the File System Image with Total Command, do the following:

Uploading the File System Image via the Xmodem protocol

A Terminal program capable of sending files via the Xmodem protocol can be used to send the File System Image file to the target. For this to work, the target has to be connected to the PC running the Terminal program (HyperTerminal on Windows for example) via its RS232 port. After powering up the target board, enter RS232 configuration mode by following the instructions displayed on the Terminal program. Then select "Download File System Image" from the menu, and send the created "File System Image" file via the Xmodem protocol. In HyperTerminal, this can be done by selecting the "Send File..." menu item in the "Transfer" menu. This will open the "Send File" dialog box. Select Xmodem protocol, and send the "File System Image" file created with the Modtronix Network Bootloader program. After doing this, the target will contain the new Web pages.

Troubleshooting and FAQ when using the Modtronix Network Bootloader

For troubleshooting and Frequently asked questions when using the "Modtronix Network Bootloader" , see

Troubleshooting and FAQ


Generated on Wed Feb 3 12:45:36 2010 for SBC65EC Web Server by  doxygen 1.5.8