Research and Realization of Ethernet Interface for Field Devices

Author
FanZhanHua
Advisor
LiaoChangChu
School
Chongqing University
Major
Electrical Engineering
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2005
Downloads
266
Citations
4

Request the full text

Abstract

With the development of the Industrial Ethernet technology, Ethernet has already permeated through control layer and device layer. So far, almost all main providers of PLC and remote I/O devices can provide products with Ethernet interface. It can be predicted that there will be no market for the products without Ethernet interface in the future. So many field supervisory control devices developed before need to be appended Ethernet interface urgently. The main task of the paper is to research the realization method of linking field supervisory control devices to Ethernet with low cost by experiment. The main contents are as follows. 1. The paper presents the global design scheme and considers the design frame, thought and method of the hardware and software in terms of the overall situation. 2. Using 51 serial MCU and the Ethernet controller RTL8019AS, the paper establishes the experimental platform with simple interface circuit, small volume and low cost. The paper also designs the Ethernet controller’s driver according to its operating principle. 3. The paper designs the embedded TCP/IP stack and offers the simple, convenient and practical API(Application Programming Interface). On the basis of guaranteeing to realize the main function of TCP/IP, the paper simplifies the protocol of TCP/IP, reduces the program code and saves the memory space taken up. The embedded TCP/IP stack has the following features: (1) It supports multi TCP connections and multi UDP ports. (2) The API is simple and convenient to be used and easy to be understood. (3) The size of its code and the RAM it uses is moderate. (4) The code is easy to be migrated and cut. (5) The program is easy to be read and maintained. 4. By calling the API functions, the system test of the embedded TCP/IP is performed. The test indicates that the experimental provision has realized the main function of every layer of TCP/IP, has high performance and can be applied to industrial field.

Table of contents

Chinese Abstract 4-5 Abstract 5-9 1 Introduction 9-13 1.1 topics background 9-10 < br /> 1.2 research topics 10-11 1.3 the purpose and significance of issues 11-12 1.4 the main thesis work 12-13 <br / > 2 overall design 13-20 2.1 overall program selection 13 2.2 hardware experimental platform design 13-14 2.3 software design The basic idea 14-15 2.3.1 layered design ideas 14 2.3.2 modular program 14-15 2.3.3 for the idea of ??object 15 2.3.4 based on embedded system with limited resources, consider 15 2.4 globally defined 15-16 2.5 memory management 16-19 2.6 chapter Summary 19-20 3 Ethernet controller hardware interface and its driver design 20-34 3.1 ether network controller selection 20 3.2 ethernet controller RTL8019AS Profile 20-23 3.2.1 pin description 21 3.2.2 register Description 21-22 3.2.3 RTL8019AS chip RAM 22-23 3.3 hardware interface circuit design 23-27 3.3.1 RTL8019AS with the host processor interface mode 23-24 3.3.2 RTL8019AS with 8051 hardware interface 24-25 3.3.3 I / O base address identified with the corresponding pin connection 25-27 3.4 ethernet controller works 27-30 3.4.1 local and remote DMA DMA 27 - 28 3.4.2 packet sending process 28-29 3.4.3 packet receiving process 29-30 3.5 driver design 30-33 3.5.1 read / write register 30 3.5.2 read / write dual-port RAM 30-31 3.5.3 initialization procedure 31 3.5.4 sender 31-32 3.5.5 receiving program 32-33 3.6 Summary 33-34 4 embedded TCP / IP protocol stack design 34-60 4.1 overall implementation framework 34-37 4.1.1 implement the agreement and the overall data flow diagram 34 4.1.2 packet encapsulation 34-35 4.1.3 design to achieve some tips 35-37 4.2 network Interface layer 37-39 4.2.1 ethernet interface module 37-38 4.2.2 network Interface Module 38-39 4.3 ARP protocol module 39-42 4.3.1 Overview 39 4.3.2 ARP packet encapsulation 39 4.3.3 data Structures 39-40 4.3.4 function design 40-42 4.4 IP protocol modules 42-44 4.4.1 Overview 42 <br / > 4.4.2 data Structures 42-43 4.4.3 function design 43-44 4.5 ICMP protocol modules 44-45 4.5 .1 Overview 44 4.5.2 ICMP packet encapsulation 44-45 4.5.3 ICMP packet header data structure 45 4.5 .4 function design 45 4.6 UDP protocol module 45-51 4.6.1 Overview 45 4.6.2 data structure and variable definitions 45-47 4.6.3 main function is designed 47-51 4.7 TCP protocol modules 51-59 4.7.1 Overview 51 4.7.2 data Structures 51-53 4.7.3 TCB chain and packet queue 53 4.7.4 TCP state transition 53-54 4.7.5 serial number and confirmation 54-55 4.7.6 TCP flow control 55 4.7.7 main function is designed 55-59 4.8 chapter Summary 59-60 5 system test 60-68 5.1 test procedures and Methods 60 5.2 embedded TCP / IP testing main content 60 5.3 test environment 60-61 5.4 test program design 61-65 5.4. a read from the serial EEPROM network address 61 5.4.2 TCP / IP protocol stack initialization 61-62 5.4.3 distribution server and client TCP TCB and listens connect 62-63 5.4.4 receive UDP data set UDP port 63 5.4.5 Timing call stack to be timed processing function 63 5.4.6 handling serial communication frame 63-65 5.5 each functional test cases 65-67 5.5.1 ARP, IP functional test 65 5.5.2 TCP function test 65-67 5.5.3 UDP function test 67 5.6 test Summary 67 5.7 Summary 67-68 6 Full Summary 68-69 Thanks 69-70 References 70-73 <br / > Appendix A breadboard kind photos 73 master's degree in Appendix B of the papers published during directory 73-74 originality statement 74 <br / > dissertations copyright attorney 74

Related dissertations

  1. Study of CPS Communication Based on MCU and Intelligent Optimization Algorithms
    FuJiaXin ·Shenyang University of construction ·2013 ·Master's thesis
  2. Stirling Engine Fuel Management System Based on Ethernet
  3. Research and Design on Oil Mist Detector of Marine Diesel Engine Crankcase
    LiHongFei ·Wuhan University of Technology ·2013 ·Master's thesis
  4. Design of RFID-based Logistics Tracking System
  5. Research and Design of Embedded ECG Data Acquisition System
  6. The Design of High Reliability Gigabit Ethernet Based on SOC System
  7. Research and Application of Remote Monitoring Technology in Dishwasher
    ShenFei ·Guangdong University of Technology ·2008 ·Master's thesis
  8. The Research of Embedded Ethernet Based on DSP
    SunSiHai ·Hefei University of Technology ·2008 ·Master's thesis
  9. Research and Realization of Ethernet Technology in the DSP System
    MoYunPeng ·Shenyang University of Technology ·2007 ·Master's thesis
  10. Research of Image Acquisition and Long-distance Transmission System Based on FPGA and DSP
    LuoJian ·Wuhan University of Technology ·2007 ·Master's thesis
  11. The Design of Bridge Illumination and Power Supply System Based on Ethernet
    QuShengChao ·Wuhan University of Technology ·2007 ·Master's thesis
  12. A Study on the Principles of Communication between Secretaries and Leaders
    WangZhuo ·Jinan University ·2013 ·Master's thesis
  13. Cross-cultural Communication Management of Chinese Overseas Investments Projects
  14. Group Enterprise Management in the Communication Problems Probing
    WangZhanZhong ·Henan University ·2012 ·Master's thesis
  15. An Empirical Study on IS Outsourcing Enterprises’ Boundary Expansion and Outsourcing Performance
  16. Analysis of telecom broadband service ability of NN city and promotion strategy research
  17. Research on Customer Satisfaction of DZMCC
  18. Impact of Industry-University Cooperative Organizations’Interactive Behavior on Firms’ Innovative Performance
  19. Research on the Impact Mechanism of International Team Performance
    WangSong ·Zhejiang University ·2014 ·Master's thesis
  20. Study on human resources management system of chuanrun chemicals sales team.