Web Pages Upload

The device stores its web page related files as a compressed binary file system image in the EE-PROM chip. This  file system image is created by a Microchip tool and is uploaded as a whole.

The  file system is in a Microchip proprietary format, named MPFS2.  It is  generated by a provided java tool called MPFS2.jar. The MPFS2 generator tool and the web interface source files can be downloaded here as a zip file. To execute the tool,  download the zip file first and extract it somewhere on your HD, for example C:/temp, then click MPFS2.jar to start the program.

Do not delete or modify the directory “Out” or its contents. The file “HTTPPrint.idx ” contains  the name and order of all the dynamic tokens the web server can present.  This file is referenced in the source code and if deleted the dynamic tokens in the HTML files will expand to the wrong content. The generated file system image will be stored in the Out folder under the name given in the application.

Do not delete file MPFS2SettingDetails.xml, It contains important configuration bits for the generator. Once you have started the application do not move or rename the application containing folder as the .xml file stores absolute path info about the whereabouts of the input and output directories.

The folder “Web_pages” contains all the website related source files. Files placed in folders protect and admin require a user name / password before they are being served.  If, for example, you would like to have the output.htm page under password protection  simply move the appropriate file into the “protect” folder and modify pages that reference it to avoid broken links.

The MPFS2 tool has the option to generate and upload a new image in one click, or just generate the file.  If upload is clicked the device needs to be on the networks and configured with it’s default Netbios name as well as the default login credentials.  (see the Advanced button to change the connection parameters).

The binary image can also be uploaded from the device’s web interface using a browser. The following link opens an MPFS2  Image upload page where you can browse for the  bin file, presumably found in the Out directory of the generator tool.

http://WXBOARD/web_upload

Provide your login credential and a page titled MPFS Image Upload will appear with a button to browse  for the file and a button to execute the upload.  Depending on the size it will take a bit to program,  in the end a page indicating success should appear with a link to the home page.