Hello element14,
In this post, I'm going to explain you how to host a webserver from EK-TM4C1294XL Connected Launchpad from TI.
In this system, you can host your website from a pendrive and connect it to the dev kit to go on air
With this webserver, you can
* Host a website with static webpages.
* Access the dev kit through command line via USB
* Control the board via CGI handlers.
* Logs all the page requests to "www.log" file at the root of filesystem
* Logs all the serial commands to "cmd.log" file at the root of file system.
This is the test connections I used :
Here is video introduction to the system :
This video explains about the working :
This is a demo of how to control LEDs onboard. You'll be able to see that the USB card reader flashes with each request indicating that these requests are logged into "www.log" file.
How to host your website?
1. Format your USB drive( preferably less that 4GB ) to FAT filesystem.
2. Copy your website to the drive.
3. You must have the index of your website at the root of the drive.
4. Plug the drive to dev kit and enjoy.
How to add your own controls?
To add your own control routines, you can go to "httpserver/cgiHandlers.h" and declare your CGI handler and define it in "httpserver/cgiHandlers.c". I already have included a sample CGI handler "hCGI_ioControl" in the file. After that, you have to add your handler to CGI lookup table in 'cgiHandlers.h' like this :
static const tCGI g_psConfigCGIURIs[] = { { "/io_control.cgi", (tCGIHandler)hCGI_ioControl }, // CGI_INDEX_CONTROL };
and you are done. Make sure that you cgi handler always return a file name( either a real filename on disk or a virtual one, as I did ).
The CCS project, sample website and detailed instructions are available at : https://github.com/v-i-s-h/uServer
Happy hacking,
vish