web_hvac web_pages files

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

web_hvac web_pages files

web_hvac web_pages files

MQX includes a great demo for the web server in \<MQX_Path>\demo\web_hvac.  The web pages in this demo show how MQX can serve up data through the web server, and dynamically update the web page, for example the thermostat hvac properties are updated every second.  Also, the user can use a web page form to submit data to the server and update the application, like changing the temperature set point.  This is done with HTML forms, javascript, and CGI running in the MQX application.

However, the web_pages directory in the web_hvac demo is missing the actual source files for the web pages.  Starting with MQX v4.0.2, they disappeared from the MQX release.  And since then, the web server APIs and CGI functionality has changed. 

Posted here is the web_page directory for web_hvac, including the source code for the web pages.

Tags (1)
Attachments
Comments

Is this the web pages for the old implementation, or the new implementation? Where is this data stored for the new web server implementation if we no longer have files for it? Are there any guides explaining the generation of pages with their new CGI and server implementation, or is that HVAC demo and reverse engineering what they did the best solution?

Hi Sean,

These are the updated web pages, and they work with the latest release of MQX v4.1.1.

In addition to the web_hvac demo, the web server and CGI are documented in the RTCS documentation, installed with MQX at \Freescale_MQX_4_1_1\doc\rtcs\MQX_RTCS_User_Guide.pdf. There is also another web server example that uses CGI in \Freescale_MQX_4_1_1\rtcs\examples\httpsrv

Thanks

Thanks. The only other thing that's confusing me is that the web_hvac demo still runs and shows a fully functional webpage despite these files not existing. How does that work? And can these just be placed in the web_hvac/web_pages directory to begin modifying them?

Hi Sean,

The demo still works because the tfs_data.c file is still present and included in the web_hvac build. This is the TFS file that contains the data of the files served by the web server. tfs_data.c is generated for the MQX TFS driver by running the mktfs.bat batch file in the web_hvac directory. That batch file runs the TFS utility on the web_pages directory to generate tfs_data.c. So if you wanted to modify the web pages in the demo, you would update the web pages in web_pages directory, then run the mktfs.bat batch file, and then build the web_hvac project.

Thanks

Thank goodness Derek had posted this for us.  I was looking all over for these files to try to figure out how to make a web page that would allow me to toggle digital outputs!

No ratings
Version history
Last update:
‎10-09-2014 03:44 AM
Updated by: