Universal Serial-Internet Switche Based on MC9S12NE64
- Author
- YuanChengWen
- Advisor
- WangHaiRui
- School
- Kunming University of Science and Technology
- Major
- Computer Software and Theory
- Classification
- TP368.12 Microprocessor
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 37
- Citations
- 0
Abstract
Serial communication ease of use, high reliability, and strong enough for industrial equipment, communications capabilities, has been widely used in the field of Industrial Automation Instrumentation, automation control. Serial communication transmission distance is short and not directly with the network interconnect defects, a serious impediment to the remote control of serial devices and data sharing. Background strongly advocated in today's Internet of Things, all electronic devices linked into the network has become a trend, and the key step is to realize the shortcut serial device networking. The preferred solution for serial port - Ethernet converter serial device shortcut networking, many businesses have been related technologies into research and development of related products. Applications from low-end to high-end applications, from industrial to commercial areas, development of appropriate product. However, most of the commercial serial - Ethernet converter there are higher prices, it is difficult to achieve the wide application of the low end of the field. This paper proposed a simple and low-cost solutions based on analysis of existing the commercial serial port Ethernet converter. The hardware platform Freescale 16-bit microcontroller MC9S12NE64, software development environment with the MT-IDE For HCS12 integrated development environment. Rich MC9S12NE64 chip chip hardware resources without doing any expansion work will be able to meet the hardware requirements for the design. This work to achieve the the OpenTCP modification of the agreement with the transplant. Serial and Ethernet interface data with each other forwards, but also remotely modify the function parameters and system runtime error automatically restart mechanism. Finally, the related functions of the system was tested. System to start and complete a series of initialization, start the server side, and then enters the main loop. Serial data and network data processing in the body of the loop, to enter WAIT low-power mode. WAIT low-power mode, the CPU does not perform any instruction only interrupt the system wakes up from WAIT mode. Wake up the system after the operation of the loop body is executed again and then re-enter the WAIT mode. Online modification of the realization of the server-side mode, network parameters and serial communication parameters to achieve the basic functions of the serial port - Ethernet converter; system low-cost network chip and simple design, and WAIT modes to achieve to meet the low-cost, low- the positioning of the power consumption; zero-copy of the agreement is good way to improve the real-time nature of the converter; single connection maintenance, and automatic restart mechanism adds a layer of protection mechanisms for the stable operation of the system, so the entire design of the system is expected to requirements.
Table of contents
Summary 3-4
ABSTRACT 4-8
Chapter 1 Introduction 8-12
1.1 Background and Significance < br /> 1.2 research status 8-10
1.3 thesis research 10-11
to 1.4 papers structural tissue 11-12
Chapter II Overview of theoretical knowledge 12-24
2.1 Ethernet 12-15
the 2.1.1 Network stratification About 12-14 <br / > 2.1.2 protocol encapsulation 14-15
2.2 embedded Ethernet the 15-17 2.2.1 Embedded Ethernet technology development
15 -16
2.2.2 the need for development of applications for embedded Ethernet technology to 2.2.3 the significance of the development of the application embedded Ethernet technology
16-17 17 < br /> 2.3 common embedded Ethernet solutions the 17-21 2.3.1 dedicated embedded network protocol EMIT technology
18
2.3.2 32-bit microprocessor the device embedded real-time operating system 18-19
2.3.3 NIC 8/16 bit microcontrollers TCP / IP protocol stack program 19-20
2.3.4 TCP / IP stack chip 8/16 bit microcontrollers program the 2.3.5 network microcontroller-based single-chip solution 20
20-21
2.4 Serial to Ethernet the gateway key technology 21-22
2.4.1 serial to Ethernet key technologies: operating mode 21
2.4.2 Serial to Ethernet key technology: serial framing technology 21-22
2.4.3 serial key technology to Ethernet: 9 technology
22 2.5 Chapter Summary 22-24 < br /> Chapter system hardware design 24-38
3.1 hardware selection and system functional analysis the 3.1.1 Hardware Selection 24-26
24 -26
3.1.2 system functional requirements 26
3.2 MC9S12NE64 functional modules 26-37
3.2.1 power module 26 - 27
3.2.2 background debug mode (Background Debug Mode, BDM) the 27-28 3.2.3 interrupt module
28-29
3.2.4 Timer interface module 29-30
3.2.5 FLASH module and system storage mapping 30-31
3.2.6 Universal serial 31-33
3.2 .7 network module 33-37
3.3 Chapter Summary 37-38
Chapter system software design 38-56
4.1 MC9S12NE64's, early initialized the 38-42
4.1.1 main chip initialization 38
4.1.2 the EPHY module initialization 38-39
4.1.3 EMAC module initialization 39-40
4.1.4 EMAC MII interface subroutine designed 40-42
4.2 NE64_OPENTCP agreement microcontroller above transplant the 42-49
4.2.1 NE64_OpenTCP, the state converted 42-44
4.2.2 OpenTCP agreement with Universal the TCP / IP protocol 44-47 < br /> 4.2.3 NE64_OpenTCP agreement transplantation 47-49
4.3 system functions to achieve the 49-55 4.3.1 system main function
49-51
4.3.2 interrupt handling 51-52
4.3.3 WAIT low-power mode 52-53
4.3.4 system stability 53 -54
4.3.5 Remote parameters modified to achieve 54-55
4.4 Chapter Summary 55-56
Chapter serial Ethernet converter test the 56-62
5.1 test software Introduction 56-57
5.2 connection is established, the test 57-59
5.3 data forwarding test 59-60
5.3.1 TCP client end to the serial port to send data 59
5.3.2 serial to Ethernet data transmission 59-60
5.4 nbsp test parameter modification; the 60-61
5.5 This chapter summary the 61-62
Chapter 6 Conclusion and Prospects 62-64
Acknowledgements 64-66
Reference 66-70
Appendix: the degree during the published papers 70
Related dissertations
- The Development of the Gateway in Networked Digital Home
- The Design of Marine Embedded Serial Device Server
- The Design of Data Acquisition Module on Ethernet Based on OpenTCP
- The Design of the Computer Room Monitoring System Based on Embedded Web Server
- Design and Implementation of Embedded Web Server Based on MC9S12NE64
- Reseach on the Network for the Control System of the Cable-mesh Reflector Based on Ethernet Technology
- The Study on Oilfield SCADA System Based on Wireless Ethernet
- The Development of Measurement and Control System Based on Embedded Web Server
- Embedded Web-based bridge the development and monitoring unit
- The Key Technology Research on Smart Home System Based on ZigBee Wireless Network
- Research on Community Medical Management System Based on ZigBee Technology and Long-range Communication Technology
- The Research on Automatic Heating System
- Research of Internet-based Thermal Parameter Measurement and Control of Key Technologies