Design of Embedded Gateway Base on Heterogeneous Multi-protocol
- Author
- ZhengDongYue
- Advisor
- ChenShuangYe
- School
- Beijing University of Technology
- Major
- Control Science and Engineering
- Classification
- TN915.05 Communication network equipment
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 12
- Citations
- 0
Abstract
With the development of industrial technology, industrial field device network,and control remote technology become a new trend. But in the traditionalinstrumentation equipment, the majority of field devices using either the RS485interface or CAN communication interface. The RS485bus network and CAN busnetwork could communicate with devices in their own network respectively within acertain distance, but not interoperate nor information share. The rapid development ofEthernet technology provides for the field device to network. This paper presents aheterogeneous embedded microprocessor LM3S8962-based communication gatewayto solve the underlying device industry in heterogeneous network cannotcommunicate with each other that meet the underlying device connected to theEthernet traditional industries needs to achieve the purpose of sharing information.Firstly, a systematic analysis of the overall architecture of the communicationgateway is designed, then the Modbus standard protocols, and CAN bus data protocolframe format are introduced. On this basis, the functions needed to implement in thecommunication gateway is designed in theory. Packaging and delivery process data incommunication gateway illustrates the design of the protocol conversion. A layereddesign is adopted for the software versatility and then the conversion design of themiddleware protocol and the process of data stream are discussed. The new design ofbuffer method and register map method is proposed to resolve the difficulty that therate does not match between the different networks.Secondly, The paper describes the detailed design of the circuit to achievecommunication gateway. The LM3S8962core system circuit is achieved to meet theneed of basic functions of the processor running. The peripheral circuits are achievedinterface function of the communication gateway, including CAN bus interface circuit,RS485interface circuit, Ethernet interface circuitry, EEPROM memory circuits,large Flash memory interface circuit and so on. The architecture of software design and the implementation of heterogeneous communication gateway are elaboratedincluding the ports of uC/OS-II real-time embedded operating system on theLM3S8962microcontroller, embedded TCP/IP protocol stack LWIP, communicationthrough TCP connecting and the task management in multi-tasking system.Third, the Ethernet collision detection mechanism--CSMA/CD (Carrier SenseMultiple Access/Collision Detection) works with Collisions the arbitration algorithm-binary exponential back-off algorithm BEB and its limitations for collision isdiscussed and an improved BEB algorithm is proposed. Mathematical theory analysisand computer simulation are adopted for data simulation for calculation andsimulation. According to the results of Matlab simulation, the average queuing delaytime has been reduced even in the case of heavy load as same as the Ethernet terminalto send a data collision probability. The improved BEB algorithm has effort on theperformance of the real-time Ethernet improvement.Finally, the industrial electric heating equipment for laboratory testing,embedded heterogeneous communication gateway in heterogeneous networkcommunications, stability and real-time to meet the design requirements, an effectivesolution in heterogeneous network devices in a multi-master fieldbus communicationconflict the questions, complete multi-protocol data between heterogeneous networksframe conversion and communication
Table of contents
Summary 4-6
ABSTRACT 6-11
Chapter 1 Introduction 11-17
1.1 research background and significance 11 -14
1.1.1 industrial network technology application status 11-13
1.1.2 heterogeneous communication gateway needs analysis 13-14
1.1.3 significance 1.2 Status domestic and foreign research 14
14-15
1.3 The main work and papers arrangement 15-16
1.4 Summary 16 -17
Chapter 2 gateway protocol analysis and communications gateway model 17-31
2.1 Modbus protocol stack design 17-21
2.1.1 MODBUS protocol Overview 17-18
2.1.2 Modbus packet format 18-20
2.1.3 Modbus master design 20-21
2.1.4 Modbus slave design 21
2.2 CAN data protocol 21-23
frame 2.2.1 Data 22-23
2.2.2 remote Frame 23
2.2.3 error frame 23
2.2.4 overload frame 23
2.3 communications gateway model 23-30 <br / > 2.3.1 protocol conversion model introduced 24-26
2.3.2 gateway protocol conversion model 26
2.3.3 middleware protocol converter design 26-28
2.3.4 vary the speed of the match 28-30
2.4 Summary design 30-31
Chapter 3 embedded heterogeneous communication gateway and implementation 31-55
3.1 overall hardware architecture 31-32
3.2 LM3S8962 microcontroller 32-34
3.3 peripheral circuit design 34 -39
3.3.1 system debug interface circuit 34
3.3.2 power module circuit 34-35
3.3.3 communications interface circuits 35 -37
3.3.4 data storage circuit 37-38
3.3.5 lower machine equipment 38-39
3.4 embedded software design heterogeneous communications gateway 39-54
3.4.1 uC / OS-II on the LM3S8962 transplant 39-42
3.4.2 LWIP transplant on uC / OS-II operating system 42-44
link 3.4.3 TCP data 44-48
3.4.5 protocol format conversion program designed 48-50
3.4. 6 bus device register map design 50-53
3.4.7 control command queue buffer design 53-54
3.5 Summary 54-55 <br / > Real-time analysis Chapter 4 Ethernet gateways and improvement 55-65
4.1 CSMA / CD with BEB detection algorithm 55-57
4.1.1 CSMA / CD detection 55-56
4.1.2 BEB algorithm 56
4.1.3 BEB algorithm limitations 56-57
4.2 Ethernet delay analysis 57-58
4.3 real-time Ethernet communication of some programs 58-59
4.4 BEB algorithm improvements and matlab simulation 59-63
4.4. improved 1 BEB algorithm 59-61
4.4.2 improved BEB algorithm Matlab simulation 61-63
4.5 Summary 63-65
first 5 gateway communications Test and analysis build nbsp 65-71
5.1 test environment ; 65-67
5.1.1 test hardware environment 65-67 <br / > 5.1.2 test software environment 67
5.2 TCP connection is established 67-69
5.3 Summary 69-71
conclusion 71-73
References achievement 73-77
master's degree during 77-79
Thanks 79
Related dissertations
- Communication of DC Micro_Grid and It's Energy Management System
- The Study of WTB and Ethernet Gateway and Its Inauguration Module's Implementations
- The Design and Realization of CAN Buses and Ethernet’s Gateway Based on FPGA
- The Design of Wireless Sensor Network Gateway for Agricultural Monitoring
- Design and implementation of Ethernet /MVB gateway based on Embedded System
- Reserch and Realization of Embedded Industry Network Controller Based on ARM and LINUX
- The Embedded Serial-Ethernet Server Design
- The Design and Research of the Embedded Modbus/Modbus TCP Gateway
- Based on Embedded Ethernet and CAN bus Gateway Design
- Study and Realization of CAN-Ethernet Gateway Based on ARM7
- Integration Methods and Application Research of Field Bus Based on PROFIBUS-DP
- The Communication System Design of CAN Bus with Ethernet
- Design of the Communication System of CAN Bus with Ethernet
- Design of Remote Control System Based on Ethernet
- Design of Remote Strain Measurement System Based on FGPA
- Design and Implementation of Multi-channel Data Acquisition System
- Network-based Wind Power Monitoring Data Acquisition System
- Research on Real-time Mornitoring System of High-voltage Switchgear
- Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
- Research of Fieldbus Relay Basing on CAN Bus