AN2836 Freescale Semiconductor / Motorola, AN2836 Datasheet - Page 36

no-image

AN2836

Manufacturer Part Number
AN2836
Description
Web Server Development with MC9S12NE64 and OpenTCP
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
OpenTCP Project Configuration to Optimize the Stack Solution
OpenTCP Project Configuration to Optimize the Stack Solution
When developing a web server, there are several strategies to ensure that the code size of the solution
does not exceed the available resources:
Minimize or Off-Load Web Page Content
A fully featured web page for an application uses valuable FLASH and RAM resources. Before
implementation, it is important to understand the resources that the application will require and balance
them with the web server features. Each web page graphic, for example, can easily require 6 to 8 Kbytes
of FLASH. The following techniques help minimize or off-load web server content and still provide the
connectivity functionality for the application:
36
Minimize or off-load web page content
Use only required network protocols
Set buffers to appropriate values
Use an HTML file compressor — HTML compressors remove unnecessary white space characters
such as carriage returns, line feeds, spaces, and tabs; this can reduce the size of a web page by
as much as 50%. Compressed code requires less space on the web server and client system. More
importantly, compressed HTML files download faster.
Compress any ActiveX controls using a cabinet file as described in the
compressed using “jar” files.
Place ActiveX controls or other content on another web server — the CODEBASE attribute in the
Demo.htm
can be stored on another, larger web server that is reachable by the network in the end application.
The alternative syntax for CODEBASE to point to another location is
CODEBASE=
off-loads the web server content from the embedded device to another web server.
Use a standalone UDP (or TCP) application that is loaded on the client machine instead of building
a web server to provide the remote access. This off-loads the web server content from the
embedded device to the client machine. This is not possible in all cases, but this approach should
be considered. An example UDP application that can replace the web server while providing similar
functionality is provided as an example (see
section shows that the ActiveX cabinet file is on the web server. Alternatively, this code
"
http://www.largewebserver.com/offloadedforNE64.cab#Version=1,0,0,1". This
Web Server Development with MC9S12NE64 and OpenTCP, Rev. 0
Figure
14).
Demo.htm
Freescale Semiconductor
section. Java is

Related parts for AN2836