CREATE & UPLOAD CUSTOM WEBPAGES INTO BARIONET WEB-SERVER ------------------------------------------------------------------------------ - All necessary files can be found in the support & downloads section of www.datanab.com - Copy the following files into a folder. (lets call the folder 'C:\TEST') 1) web2cob.exe 2) mimetype.ini - Create a subfolder of TEST called WEB. ie. C:\TEST\WEB - Design your pages and put all html files into the C:\TEST\WEB folder. For examples of how to show input values & command outputs from the web page, see pages 29 & 30 of the BarioNet Manual V146 at: http://www.datanab.com/docs/barionet/manuals/v146/Barionet_Manual_V146_20041005.pdf Also read the devkit manual at: http://www.datanab.com/docs/barionet/manuals/v146/Barionet_DevKit_Manual_V1_46_20041008.pdf Or check out the relay tog example code at: http://www.datanab.com/docs/barionet/programs/relaytog.zip - When finished, you need to package all of the html files from the WEB folder into one main file that the BarioNet can read. To do so, run the following cmd from a cmd prompt window with the starting path of C:\TEST> web2cob.exe /o webapp.cob /d WEB - the above command means: "use the web2cob.exe packaging program to create an output file named 'webapp.cob' from the source files located in the directory 'WEB'. After running that command, a new file called 'webapp.cob' will be created within the C:\TEST\ folder. - now you need to upload the new file 'webapp.cob' into an open memory area. To do so, use the same Cmd Prompt window and run the following command: tftp -i 172.16.17.1 PUT webapp.cob WEB4 - in the above command, substitute your controller's ip address with the one listed. The above command uses a built-in windows tool called tftp to transfer the webapp.cob file in binary mode via ftp to the ip address specified. It transfers it to the WEB4 portion of the BarioNet's memory. - typically WEB1 & WEB2 are used for the built in web application, help application, and PIC firmware. WEB3 is reserved. This leaves WEB4, WEB5, & WEB6 available for the user. Each memory area is 64KB, so if your .cob file is larger than that, it will run over into the next memory area.