Images not showing on browser, perhaps due to dataflash hogging CPU? Re: [En-Nut-Discussion] user page written in html or ????
Brett Abbott
Brett.Abbott at digital-telemetry.com
Wed May 10 22:34:55 CEST 2006
Hugo
a slight twist in the thread if I may.
I have also found that nut web pages with many photos dont display all
of them. I have found that both browser type and link speed/propagation
delay affect the result. Another major factor is "how busy" the nut
is doing other things. The more threads and stuff, the more likely that
images wont get served up.
At this stage I have not spend much time looking into it as it was
quicker to remove the images for the required result.
A simple ethereal trace combined with a uart output log of request
submissions processed ought to show you where the loss of message is
occurring. I suspect that the browser sends multiple requests, one for
each image and that the ethernut, is not keeping up - perhaps due to the
non interuptible nature of the dataflash file routines. I added some
yields between blocks into the xflash functions and got some improvement
so suspect that some focus here to make the dataflash functions more
interupt based would yield results.
A Question for the ethernet guys - how does the ethernet chip(s) on the
Ethernut 1 and 2 handle multiple incoming TCP requests if they are not
processed by nutos before the next one is received - do we lose old ones
or new ones? or do they queue up (how big is the queue?).
Hugo, please let me know of progress. This would be much appreciated.
Thanks
Brett
Hugo Simon wrote:
>Hi Heidi
>
>What is exactly your problem. I had some difficulties too with non html
>files (binary or text) download, too. But mine came from the dataflash, not
>from the program memory. My problems had to do with the MIME type. NutOS
>always says the file is html, so most browsers tried to display the file,
>not to download it. So I defined my file as a cgi and built a callback
>function for it which sets the download header to binary, then my Internet
>Explorer and Mozilla both loaded the file correctly.
>
>But there is one problem left, if you use many pictures on your website on
>the nut it often failes to send some of them. Don't know how about this now.
>
>bye
>Thorsten
>
>----- Original Message -----
>From: "HeidiPSU" <just_me_heidi33 at yahoo.com>
>To: <en-nut-discussion at egnite.de>
>Sent: Wednesday, May 10, 2006 2:42 AM
>Subject: [En-Nut-Discussion] user page written in html or ????
>
>
>
>
>>I am working with a college team. We are using the nut in our senior
>>
>>
>project.
>
>
>>I need to create a user page (linked to the nut server) using a browser
>>
>>
>that
>
>
>>allows the user to download data files saved on the flash, select the data
>>file to view, and then display the information.
>>
>>I have already written this code using html buttons and windows and
>>
>>
>simulted
>
>
>>in on my home server extracting files form other computers so Iknow my
>>
>>
>page
>
>
>>design works, but am having a lot of difficulty linking it and finding out
>>how to get it to read files on the ethernut. There seems to be almost no
>>information on this anywhere which make me want to conclude..... Maybe it
>>
>>
>is
>
>
>>not compatable with Html coding?
>>
>>Does anyone know what language is better for me to design this user page
>>
>>
>in?
>
>
>>Thanks
>>-Heidi
>>--
>>View this message in context:
>>
>>
>http://www.nabble.com/user-page-written-in-html-or--t1588569.html#a4311304
>
>
>>Sent from the MicroControllers - Ethernut forum at Nabble.com.
>>
>>_______________________________________________
>>En-Nut-Discussion mailing list
>>En-Nut-Discussion at egnite.de
>>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>>
>>
>>
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>
>
>
>
--
-----------------------------------------------------------------
Brett Abbott, Managing Director, Digital Telemetry Limited
Email: Brett.Abbott at digital-telemetry.com
PO Box 24 036 Manners Street, Wellington, New Zealand
Phone +64 (4) 5666-860 Mobile +64 (21) 656-144
------------------- Commercial in confidence --------------------
More information about the En-Nut-Discussion
mailing list