How to control you hardware from a webpage

....using FreeRTOS, Ajax, prototype.js, HTTP POST and a static filesystem

Hello folks, A while back I searched for AJAX under FreeRTOS and didn=92t find anything, so I thought I=92d start a thread to share with the community what I have so far.. I have started a project that uses AJAX calls to send and receive JSON data to update a web page / control hardware. Uses HTTP Post I make use of the FreeRTOS / prototype.js / Protosockets / uIP 1.0 / AT91SAM7X PHP is emulated on the target.

If you are interested in this sort of thing.. Consider joining me to work on the device it is going into..

formatting link

There is no external filesystem used. All the JavaScript libraries are compressed =96 and using content encoding in the response header, the web browser decompresses them on the fly. It saves lots space! You can see all the types of HTTP Headers I have used.. cache connection and so on..

So far.. this a hosted version of what I have done =96 and got working in FreeRTOS / uIP

formatting link

The zip file is the uIP webserver and associated html files

formatting link

I use XAMPP to develop the HTML, then when I=92m happy I use of makefsdata.pl and then hardcode the PHP support into the target =96 so the supplied PHP files are for your test server, not your target.

I can=92t support the project, but if you are trying something similar, consider it as a push in the right direction. Check back from time to time as depending on feedback, I wish to update the files in the links. It=92s not a whole project as such, just the directories where I have made modifications.

As uIP works within its own thread, you must be careful when linking events generated within uIP to your application. Critical sections can be used for reading and writing to variables shared across tasks.. The uip_post.c is used as the link between uIP and your FreeRTOS application code

uIP also has relevant discussions, search for AJAX.

formatting link

Enjoy.. Jon.

Reply to
jonnewcombinternet
Loading thread data ...

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.