RobG 1,892 Posted April 29, 2012 Share Posted April 29, 2012 Here's the web server software for my Ethernet booster pack.The software is 95% ready, still few bugs and some cleanup left, I will post the code when complete.The whole thing takes up just under 4.5KB and uses ~400 bytes of RAM, so you still have ~11KB and ~100 bytes of RAM left for whatever you need.BTW, I really need to get a tripod for my iPhone GeekDoc, bluehash, username and 6 others 9 Quote Link to post Share on other sites
username 198 Posted April 29, 2012 Share Posted April 29, 2012 Verry cool! :clap: Many thanks for your work! Will most certainly be looking it over! Quote Link to post Share on other sites
bluehash 1,581 Posted April 29, 2012 Share Posted April 29, 2012 Good stuff Rob. Keep it up! Quote Link to post Share on other sites
xpg 127 Posted April 29, 2012 Share Posted April 29, 2012 Cool Quote Link to post Share on other sites
jsolarski 94 Posted April 29, 2012 Share Posted April 29, 2012 great work!! Quote Link to post Share on other sites
RobG 1,892 Posted April 30, 2012 Author Share Posted April 30, 2012 Here are few more details. The format of the request is: /A?t=T&n=N&v=V where A is action, T is target, N is number, and V is value. Value can be a single letter, number from 0-255, or hex 0x00-0xFF (upper or lower case.) Action can be: g - get s - set b - bit set c - bit clear (the last two are not implemented yet.) Target can be: p - PxIN o - PxOUT r - PxREN e - PxIES i - PxIE f - PxIFG s - PxSEL t - PxSEL2 m - memory dump a - get ADCMEM c - get ADC channel (not implemented yet.) u - UART/SPI (not implemented yet.) g - general use register (not implemented yet.) x - X-10 commands (not implemented yet.) Number depends on the target, for example port number P1, P2, etc., can be a single letter, number from 0-255, or hex 0x00-0xFF (upper or lower case.) Here's an example ADC xml and here's the port example xml. Here's a page that shows how to use AJAX and jQuery to parse XML. I will probably make my server publicly accessible once I put in port mask to prevent accidental changes and the ajax page will pull the actual temp in my room bluehash and xpg 2 Quote Link to post Share on other sites
pine 140 Posted April 30, 2012 Share Posted April 30, 2012 I want one! No! Two! No! Three! Quote Link to post Share on other sites
RobG 1,892 Posted April 30, 2012 Author Share Posted April 30, 2012 Want to see what my LaunchPad is doing? EDIT: sorry, have to make some changes, will put it back online later this week Quote Link to post Share on other sites
RobG 1,892 Posted May 3, 2012 Author Share Posted May 3, 2012 If you don't like XML, you can switch to HTML GeekDoc and bluehash 2 Quote Link to post Share on other sites
xpg 127 Posted May 3, 2012 Share Posted May 3, 2012 If you don't like XML, you can switch to HTML That's cool. Quote Link to post Share on other sites
RobG 1,892 Posted May 3, 2012 Author Share Posted May 3, 2012 You can give it a try now. ADC switch to HTML switch to XML get all ports get port 2 get memory range 0x1000-0x10FF (cal values ) Hmmm, tomorrow I will add functionality to track number of hits. bluehash, zeke, xpg and 1 other 4 Quote Link to post Share on other sites
jsolarski 94 Posted May 3, 2012 Share Posted May 3, 2012 lol looks great on my phones browser Quote Link to post Share on other sites
bluehash 1,581 Posted May 3, 2012 Share Posted May 3, 2012 I can't seem to get to your IPs. Quote Link to post Share on other sites
RobG 1,892 Posted May 3, 2012 Author Share Posted May 3, 2012 Try now, it was hosed probably overloaded, or a bug. I have to enable WDT to monitor and restart if necessary. Quote Link to post Share on other sites
RobG 1,892 Posted May 3, 2012 Author Share Posted May 3, 2012 Try now, it was hosed probably overloaded, or a bug. I have to enable WDT to monitor and restart if necessary. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.