Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: displaying data in html pages
PostPosted: Wed Jul 02, 2008 6:48 am 
Offline

Joined: Thu Feb 28, 2008 5:37 am
Posts: 65
I am running the thttpd web server on my AT91sam9263EK board running Angstrom Linux(2.6.24).

The application needs to receive the data from the serial port every 1 second these are certain parameter values. These values are to be displayed on the web pages that are being served by the thttpd server .

A host requesting the web page will receive the requested page with all the data fields populated with the latest values and the pages will be automatically updated every 4 secs.

How do I populate the html or dhtml pages with the with the data I am receiving from the serial port (i have written C code for reading the data from serial port) :?:

thanks,
Devendra


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 03, 2008 9:36 am 
Offline

Joined: Sun Sep 02, 2007 1:39 pm
Posts: 77
I'ld suggest you use shared memory to store the values and use a CGI to generate (part of) the html.

http://www.acme.com/software/thttpd/thttpd_man.html#CGI

Writing a html file everytime is a waste of resources.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron