The source code for the default web pages contained on the Modtronix SBC68EC 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.
The Modtronix SBC68EC 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 SBC68EC 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 this File System Image. After creating it, it can be uploaded to the target via the serial port (Xmodem protocol) or FTP.
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:
- Get a free download from www.ghisler.com
- Select [net][ftp connect] from menu
- Click on "new connection" button
- Enter any name in the "Session" box
- Enter the target IP address in the "Host name" box, the default value is "10.1.0.1"
- Enter your username and password in the "Username" and "Password" boxes. The default values are "admin" and "pw"
- Connect and download the File System Image (default file is default.img) file containing the HTML pages
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.
The "../src/webpages/" folder in the downloaded source code contains some example web pages. Each example is contained in its own folder, and are:
- default: This folder contains the default web page contained on the Modtronix SBC68EC Web Server.
- compress: This folder contains an example of how to use the HTTP Compression feature of the Modtronix Web Server.
- js_adc: This folder contains some web pages that demonstrate how to use JavaScript to scale Analog values read by the ADC.
- webterm: This folder contains an example of how to use a Java Applet with the Modtronix SBC68EC Demo Web Server.
Generated on Wed Feb 22 12:39:27 2006 for SBC68EC Web Server by
1.4.5