AN2836 Freescale Semiconductor / Motorola, AN2836 Datasheet - Page 21

no-image

AN2836

Manufacturer Part Number
AN2836
Description
Web Server Development with MC9S12NE64 and OpenTCP
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Overview of a Web Server Developed Using OpenTCP TCP/IP Stack
This section provides an overview of the web server and source code developed with OpenTCP. A
graphical overview of the web server is shown in
This web server is developed for distribution with the EVB9S12NE64 as a binary file, P&E_ICD.abs .
P&E_ICD.abs is located in the in the bin directory in a typical CodeWarrior project.
demo.htm in a web browser. demo.htm is one of the four pages stored on the web server. The other three
pages on the web server are static. demo.htm , however, provides dynamic web page functionality using
an embedded ActiveX control, NE64DemoNOPIC.ocx . NE64DemoNOPIC.ocx is stored on the web
server as part of the NE64DemoNOPIC.cab file and is developed to fit in the MC9S12NE64 internal
FLASH memory along with the other web page data.
The ActiveX control for the example was built with Microsoft Studio Visual Basic 6, but this is not a
requirement. Another ActiveX development IDE could have be used. In fact, instead of using an ActiveX
control, a Java applet or other web technology could be used to add the dynamic web page functionality.
This discussion does not include a step-by-step guide of how to develop an ActiveX component with
Visual Basic, but does provide some high-level ActiveX development considerations.
The ActiveX control, in this example, contains several basic Windows component objects, which are
itemized in
Freescale Semiconductor
CommandButton
ToggleButton
Component
ProgressBar
Winsock
TextBox
Table
Timers
Shape
Label
6. Each object adds to the overall ActiveX functionality as shown in
Web Server Development with MC9S12NE64 and OpenTCP, Rev. 0
Table 6. Windows Component Objects
Quantity
12
1
2
6
1
3
2
4
Overview of a Web Server Developed Using OpenTCP TCP/IP Stack
Provides a TCP or UDP connection
Provide periodic timer events
Provides a two-state button
Provides a graphical view of the current value within a range
Provides a user command button
Provides a user data input or display field
Provide a round graphical object
Provides GUI labels for headings
Figure
2.
Description
Figure 13
Table
6.
shows
21

Related parts for AN2836