Development of Interface Card for Grating Sensor Based on Ethernet
- Author
- LvZhuo
- Advisor
- TangWenYan
- School
- Harbin Institute of Technology
- Major
- Instrument Science and Technology
- Classification
- TP212.14 Light sensor
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 61
- Citations
- 0
Abstract
Grating sensor is an important device for precision measuring, which is widely applied in the fields of position measuring, numerical control machine, automation control and so on. With the fast development of network technology, existing subsequent electronic devices for grating sensor become difficult to meet the need of the instruments internetizing. In this thesis, an interface card which can process the signal of grating sensor and access Ethernet is developed.Firstly, the network foundation which is necessary in designing an Ethernet interface circuit is introduced. It includes technology characteristics of Ethernet, the protocol model and the process of encapsulation and demultiplexing of TCP/IP. Besides, four schemes for realizing embedded Ethernet are discussed.Secondly, the methods of designing the interface card for grating sensor are illuminated. In the part of hardware design, the grating signal processing module is designed in a CPLD device. The methods of realizing the functions of filtering, four-subdivision, sensing, counting and MCU interface are described in detail. The internal structure and principle of Ethernet controller are analyzed, and the Ethernet interface circuit is designed using this controller. In the part of software design, the initialization of Ethernet controller and the process in which Ethernet packets are received and sent are studied thoroughly. After analyzing the embedded TCP/IP protocols, the interface card software which can control the whole card, receive and send Ethernet packets is completed.Lastly, the concept of windows network application based on Winsock is presented. The testing software for grating sensor is developed. In addition, the experiments that measured signals from grating sensor are given. The experiments results prove that the interface card can work perfectly.
Table of contents
Summary 4-5
Abstract 5-9
Chapter 1 Introduction 9-13
1.1 research purpose and significance 9-10
1.2 research status 10-11
1.3 This paper studies the content 11-13
Chapter 2 Ethernet technology with TCP / IP agreement 13-20
2.1 Ethernet technology 13-15
2.1.1 Ethernet transmission media 13-14
2.1.2 Ethernet frame format 14
2.1.3 Ethernet works 14-15
2.2 TCP / IP protocol 15-17
2.2 .1 TCP / IP layered model 15-16
2.2.2 TCP / IP package and resolve 16-17
2.3 embedded Ethernet 17-19
2.4 Chapter Summary 19-20
Chapter 3 the grating sensor interface card hardware design 20-32
3.1 grating sensor interface card overall structure 20
3.2 single-chip control module 20-21
3.3 the raster signal processing module 21-25
3.3.1 grating signal processing module overall structure nbsp ; 21-22
3.3.2 filter the four subdivision to the logic nbsp 3.3.3 22-23
; 23-24
3.3.4 counter nbsp and the three-way multiplexer; 24-25
3.3.5 latch 25
3.3.6 cleared logic 25
3.4 Ethernet interface module 25-30
3.4.1 Ethernet controller RTL8019AS 26-28
3.4.2 Ethernet interface hardware circuit 28-30
3.5 Chapter Summary 30-32
Chapter 4 the grating sensor interface card software design 32-47
4.1 interface card main program 32-34
4.1.1 initialization part 32
4.1.2 query part 32-33
4.1.3 interrupted treatment, part 33-34
4.2 the microcontroller initialization 34
4.2.1 Timer 0 initialization 34
4.2.2 Interrupt initialization 34
4.3 Ethernet network interface drivers are found; 34-39
4.3.1 RTL8019AS initialization the 35-36
4.3.2 Ethernet frame transceiver 36-39
4.4 embedded TCP / IP protocol 39-45
4.4.1 simplifies the TCP / IP protocol 39-40
4.4.2 ARP protocol 40 - 41
4.4.3 IP protocol the 41-43 4.4.4 ICMP protocol
the 43-44
4.4.5 UDP protocol 44-45 < br /> 4.5 Chapter Summary 45-47
Chapter 5 test software with the experimental results nbsp 47-53
5.1 Winsock-based testing software; 47-50 < br /> 5.1.1 Winsock Overview 47
5.1.2 socket 47-48
5.1.3 the Winsock programming model 48-49 <br / > 5.1.4 Test Software 49-50
5.2 Experimental results the 50-52 5.2.1 PING program
50-51
5.2 .2 raster data acquisition 51-52
5.3 Chapter Summary 52-53
conclusion 53-54
Reference 54 - 58
studying for a degree during the academic 58-59
original statement of the Journal of Harbin Institute of Technology Journal of Harbin Institute of Technology using the power of attorney 59
59
Harbin Institute of Technology master's degree the classified papers manage 59-60
Acknowledgements 60
Related dissertations
- Stirling Engine Fuel Management System Based on Ethernet
- Research and Design of Embedded ECG Data Acquisition System
- The Design of High Reliability Gigabit Ethernet Based on SOC System
- Research and Application of Remote Monitoring Technology in Dishwasher
- The Research of Embedded Ethernet Based on DSP
- Research and Realization of Ethernet Technology in the DSP System
- Research of Image Acquisition and Long-distance Transmission System Based on FPGA and DSP
- The Design of Bridge Illumination and Power Supply System Based on Ethernet
- Design and Implementation of a Remote Computer Room Monitoring System
- The Design of Integrated Circuit Board Remote Maintenance Online Monitoring System
- Design of Remote Control System Based on Ethernet
- Research on Mechanical Vibration Testing System
- Design and Research on Micro-displacement Measurement System for PZT Actuated HGA
- Design of Remote Strain Measurement System Based on FGPA
- Measurement of Human Breath Based on Ordinary Camera
- Research on Micro-aperture Rapid Measuring System Based on Luminous Flux
- Design and Implementation of Multi-channel Data Acquisition System
- Key Technology Reserch Data Acquisition System Based on Gprs
- Network-based Wind Power Monitoring Data Acquisition System
- Research on Real-time Mornitoring System of High-voltage Switchgear