Design and Implementation of Embedded Web Server Based on MC9S12NE64

Author
WangWenChao
Advisor
LiJingZuo
School
Northeastern University
Major
Embedded systems and applications
Classification
TP393.09 The application of computer network
Degree
Master's thesis
Year
2008
Downloads
52
Citations
0

Request the full text

Abstract

With the fast development of Internet technology and embedded systems, the Embedded Internet Technology is being widely applied to more and more fields. In 2004, FREESCALE provided MC9S12NE64, a low-cost,16-bit, S12 serial MCU, which can be connected to the Internet with a single chip. The MC9S12NE64 integrates an Ethernet controller that includes a media access controller (MAC) and a physical transceiver (PHY), so it is compliant to IEEE802.3. As a universal Ethernet-connected chip, this chip can work in full-duplex mode and half-duplex mode, and can implement 10/100Mbps Ethernet network. What’s more, it can support auto-negotiation, too. MC9S12NE64 can be compliant to a third TCP/IP stack. It’s core-speed is up to 50MHz. This chip is integrated with 8K RAM,64K Flash and an 8-channel, 10-bit ADC module. The same to other MCUs, several serial communication interfaces can be provided in this chip, such as UART, SPI, IIC. So, MC9S12NE64 is a good choice for an economical Embedded Internet System.FREESCALE selects an open source TCP/IP stack for MC9S12NE64, OpenTCP. OpenTCP is a TCP/IP stack implementation that is tailored for 8-bit and 16-bit embedded processors. The paper describes the migration of OpenTCP TCP/IP stack to MC9S12NE64, including two parts, hardware and software. The system implements some usual TCP/IP protocols, such as ICMP, UDP, TCP, HTTP, etc, and connects some simple peripheral equipment such as a temperature measurement circruit and an EEPROM device through GPIO, A/D and IIC. What’s more the software implements CGI function in the web pages, so the system can support dynamic web page function. Therefore, user can control remote equipments in a web browser. The paper provides a scheme for information appliance to connect to Internet without extra PC or gateway. The low-cost and hign-performance scheme has the advantage of reliability and agility. It can be applied to automation devices without requiring fast communication speed.The result of this experiment shows that the system can transmit data steadily with good performance, and can be fit to the demand of system, so it has a wide application prospect.

Table of contents

Abstract 5-6 ABSTRACT 6-7 directory 7-10 Chapter 1 Introduction 10-14 <br / > 1.1 Overview of embedded Internet 10-11 1.2 Embedded Web Server Overview 11-12 1.3 topics raised 12-13 1.4 the main content and significance of the research 13 1.5 Journal organizational structure 13-14 Chapter 2 Embedded WEB SERVER overall system design 14-18 < br /> 2.1 Embedded Web Server system targets 14 2.2 Embedded Web Server system overall program 14 2.3 Embedded Web Server system hardware design 14-16 of 2.4 chip MC9S12NE64 on the characteristics 16-17 2.5 Embedded Web Server system software design 17-18 Chapter 3 network interface layer Design and Implementation 18-36 3.1 Ethernet media access controller (EMAC) 18-21 3.1.1 EMAC performance 18 - 19 3.1.2 EMAC internal structure 19 3.1.3 EMAC external signal description 19-20 3.1.4 EMAC registers brief 20-21 3.2 EMAC functional description are found; 21-29 3.2.1 Ethernet frame structure 21-22 3.2.2 EMAC the receiving part 22-25 3.2.3 EMAC data transmission parts 25-26 3.2.4 EMAC receive / transmit buffer 26 <br / > 3.2.5 EMAC Half / Full duplex mode 26 3.2.6 the EMAC MII management interface 26-28 3.2.7 EMAC closed loop mode and software reset 28 3.2.8 EMAC interrupt 28-29 3.3 the EPHY Ethernet physical layer transceiver 29-32 3.3 nbsp of the .1 EPHY characteristics; 29 3.3.2 the EPHY, a block diagram of the external signal 29-31 to 3.3.3 the EPHY of, the internal registers brief 31 - 32 the 3.3.4 the EPHY initialization process 32 3.4 TCP / IP protocol network interface layer software implementation 32-36 3.4.1 MC9S12NE64 storage space 33 a 3.4.2 MC9S12NE64 module initialization 33-35 3.4.3 MC9S12NE64 the EMAC module EPHY module initialization 35-36 Chapter 4 TCP / IP protocol analysis and design nbsp 36-44 4.1 TCP / IP Principle brief; 36 the 4.2 network layer protocol analysis 36-40 4.2.1 ARP protocol 37-38 4.2.2 RARP protocol 38 the 4.2.3 IP protocol 38-39 4.2.4 ICMP protocol 39 the 4.2.5 network layer protocol design 39-40 4.3 transport layer protocol analysis 40-41 4.3.1 UDP protocol 40 4.3.2 TCP the 40-41 4.3.3 transport layer protocol design 41 4.4 application layer protocol analysis 41-42 4.5 embedded TCP / IP protocol stack design 42-44 Chapter 5 embedded systems TCP / IP protocol to achieve the 44-74 5.1 data package the ARP 5.2 44 achieve 5.2.1 OPENTCP, 44-49 ARP protocol cache table 45-46 5.2.2 OPENTCP in the ARP packet processing 46-49 5.3 IP protocol functions to simplify and achieve the 5.3.1 IP datagrams structure 49-55 49-50 5.3.2 OPENTCP IP protocol features simplify 50-51 5.3. of 3 OPENTCP IP datagram processing 55-64 51-54 5.3.4 using ICMP protocol to achieve PING the 54-55 5.4 TCP protocol implementations 5.4.1 TCP packet structure 55-57 5.4.2 to establish TCP connection process 57 5.4.3 TCP closes the connection process nbsp 5.4.4 TCP protocol state machine; 57-58 58-60 5.4.5 of OPENTCP the TCP protocol to achieve 60-64 5.5 UDP protocol realization 64-67 5.5.1 UDP Protocol Introduction nbsp the; 64 5.5.2 UDP protocol message format 64-65 5.5. 3 OPENTCP in the the UDP frame data structure the 65-66 5.5.4 OPENTCP UDP protocol concrete realization the 66-67 5.6 HTTP protocol implementations 67 5.6.1 -74 OPENTCP in the realization of the HTTP protocol the 69-70 5.6.2 compiled C code on page file 70-72 5.6.3 implementation on embedded WEB SERVER nbsp 72 5.6.4 implementations of dynamic web pages; the protocol stack 72-74 6th chapter OPENTCP, test 74-82 < br /> 6.1 PING function test 74-76 6.2 UDP protocol test 76-77 6.3 TCP and HTTP protocol test 77-80 6.4 final page test 80-82 Chapter 7 Conclusion to References 82-84 84-88 Acknowledgements 88

Related dissertations

  1. The Design of the Computer Room Monitoring System Based on Embedded Web Server
    ChenZuo ·Central China Normal University ·2011 ·Master's thesis
  2. The Development of the Gateway in Networked Digital Home
    ZhuKongBin ·Jilin University ·2008 ·Master's thesis
  3. Networked Embedded Systems Technology Applied Research
    SuEnJie ·Northwestern Polytechnical University ·2004 ·Master's thesis
  4. Embedded linux based Web Server
  5. The Analysis, Transplantation and Applied Research on Embedded Operating System μC/OS-Ⅱ
    WeiJianYe ·Shandong Normal University ·2007 ·Master's thesis
  6. Embedded Internet - based remote monitoring system design
    KouXiangZuo ·Southwest Petroleum University ·2006 ·Master's thesis
  7. The Development of Measurement and Control System Based on Embedded Web Server
    ZhengHongJing ·Suzhou University ·2006 ·Master's thesis
  8. A Long-distance Monitor and Control Technology Based on Embedded Web Server
    ZhangMei ·Guizhou University ·2006 ·Master's thesis
  9. Research on Embedded Internet Technology Based on uClinux
    QuZuo ·Wuhan University of Technology ·2006 ·Master's thesis
  10. The Study of Embedded Internet Technology in Information Appliance
    ChenLiJuan ·Jiangnan University ·2005 ·Master's thesis
  11. Design of Remote Data Acquisition System Based on the Embedded Internet
    YangQing ·Tianjin University ·2004 ·Master's thesis
  12. Designment and Development of Embedded Security Web Gateway Base on Field-bus
    DuYunHai ·Jiangsu University ·2005 ·Master's thesis
  13. The Study and Implementtation of Embedded Internet Based on Uclinux
  14. Embedded Internet Connecting Technology and Realization
  15. The Design of Marine Embedded Serial Device Server
  16. The Design of Data Acquisition Module on Ethernet Based on OpenTCP
    ChenJian ·Jilin University ·2009 ·Master's thesis
  17. Universal Serial-Internet Switche Based on MC9S12NE64
  18. The Research of Household Remote Monitoring Based on Embedded Web Server
  19. Embedded Network Monitoring System Based on ZIGBEE
  20. Embedded Web-based Online Greenhouse Environmental Monitoring and Control System
    ZhouChao ·Xiamen University ·2014 ·Master's thesis