Research on Implementing Real-Time Publish/Subscribe Communication Protocol Based on CAN Bus
- Author
- WangWenXiang
- Advisor
- TanYongDong
- School
- Southwest Jiaotong University
- Major
- Proceedings of the
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2006
- Downloads
- 91
- Citations
- 0
Abstract
Communication is basic of real-time control system. Data is meaningful only when it is transferred reliably in a limited time. Distributed real-time application has unique communication requirements. Real-time applications must handle different kinds of data flow;many nodes intercommunication making data flow complex;and dynamic configuration changes occur as nodes leave and join the network. Strict timing requirements further complicate the entire design. Traditional Client/Server architectures route all communications through a central server. This make them ill-suited to handle real-time data distribution. Publish/Subscribe architectures, designed to distribute data to many nodes simultaneously and anonymously, have clear advantages for real-time application developers. In Publish/subscribe model, publisher and subscriber send or receive data anonymously and does not need to have detail information of networks, nor address of other nodes. Application can be publisher or subscriber or both of them. Publish/Subscribe work well in distributed application which handles complex data flow.CAN bus(CAN: Controller Area Network) is a kind of Field bus. Comparing to normal communication bus, the data communication of CAN bus has excellent characters of reliability, real-time and flexibility, and the strongpoint of Field bus. The CAN-bus is well suited to implement Publish/Subscribe communication model.The research of this thesis aim at the architectures of Publish/Subscribe and the technology of CAN bus of Field bus. The problem of routing, filtering, binding, reliability and efficiency must be solved, when implementing Publish/Subscribe model based on CAN bus. This thesis, desiged two function modules(Event Channel Handler and Event Channel Broker)based on trying to exploit CAN basic features as far as possible. The ECH provides an event channel interface to the application object and performs the filtering of messages based on their event tags. The ECB handles binding and configuration request. The system of implementing the procotol is composed of Supervisory PC, USBCAN card and the development platform of ARM7. This software is based on Real-Time Embedded Operating System of ucOS-II and Integrated Development Environment of ARM developer suite v1.2. The programming language is chosen as C.Through the test and analysis, the fuctions of ECH and ECB meet the need of the design, the Publish/Subscribe communication protocol based on CAN bus meets the need of real-time control system.
Table of contents
Chapter 1 Introduction 7-11
1.1 issues raised 7-8
1.2 status quo at home and abroad analysis 8-9
1.3 this study objectives and main content 9-11
of Chapter 2 real-time control system communications needs of 11-14
2.1 real-time control systems 11-12
2.1.1 Introduction to real-time systems; nbsp 11
2.1.2 characteristics of real-time systems the 11-12
2.2 demand for real-time control system communications 12
2.3 semantic analysis of real-time data streams 12-14
2.3.1 data stream type 12
2.3.2 data attributes 12-13
2.3. 3 data mode 13-14
Chapter 3 the RTPS structure principle 14-19
3.1 point-to-point (point-to-point) structure 14
3.2 Client / Server (Client / Server) structure 14-15
3.3 publish / subscribe (Publish / Subscribe) structure 15-19
3.3.1 Publish / nbsp Subscribe structural formation and development; 15-16
3.3.2 Publish / Subscribe structures constitute 16
3.3.3 Publish / Subscribe structure features 16 - real-time system of the Publish / Subscribe 17
3.3.5 RealTime P / S structure of the advantages and disadvantages of 17-19
Chapter 4 CAN 17
3.3.4 bus technology 19-30
4.1 CAN bus performance characteristics 19
4.2 CAN bus network protocol technical specifications 19-26
4.2.1 the hierarchical structure of the CAN bus 19-21
4.2.2 Physical Layer Overview 21-22
4.2.3 Overview of the Data Link layer 22-26 < br /> 4.2.3.1 logical link (LLC) sublayer 22-23
4.2.3.2 Media Access Control (MAC) sublayer 23-26
4.3 CAN bus Error type defined detection capability 26-28
4.4 the CAN chips introduction 28-30
Chapter 5 RTPS protocol based on CAN-bus implementation 30 - 56
5.1 RTPS protocol design the 30-34
5.1.1 released its parameters the 31-32
5.1.2 Order and its parameters 32
5.1.3 Reliability and timing mechanism 32-33
5.1.4 RTPS model Client / Server request 33
5.1.5 RTPS data the receiving process 33
5.1.6 RTPS suitable for real-time control system causes 33-34
5.2 RTPS protocol based on CAN-bus key technical analysis 34-39
5.2.1 protocol mapping the 34-35 5.2.2 routing problems
the 35-36
5.2.3 filter questions 36 -37
5.2.4 binding problem 37-38
5.2.5 reliability, efficiency and latency issues 38-39
5.3 custom CAN applications layer 39-40
5.3.1 CAN application layer protocol About 39
5.3.2 self-defined data format of the CAN communication protocol 39-40 <br / > 5.4 overall RTPS protocol based on CAN-bus design 40-52
5.4.1 test devices introduced 41-42
5.4.2 operating system, select 42-44
5.4.3 ADS 1.2 integrated development environment introduced the Communication Theory 44-45
5.4.4 ARMCAN, is 45-52
5.5 specific technology 52-56
5.5.1 The Event Channel Handlers 53-54
5.5.2 The Event Channel Broker 54-56
Chapter 6 test results and evaluation 56-60
6.1 of the ECB and ECH The function test 56
6.2 release / test ordered 56-60
Conclusion the 60-61
Acknowledgements 61-62
Reference 62-65
Appendix 65-91
studying master's degree thesis and published during the research results 91
Related dissertations
- Research on Online Programming System Based on CAN-bus
- The Embedded Industrial Control Module Based on iCAN Protocol
- The Design of CNC System for Automatic Gemstone Grinder
- The Design of Data Recorder for Special Vehicles Based on Ethernet
- Design of CAN-Ethernet Gateway Based on ARM
- A Scheme Design for the Development of Cable Status Testing Device
- Design and Exploit on Vehicle-mounted Monitoring Terminal of Electric Vehicle
- Study on Control System of Automobile Electric Door Lock on the Basis of the CAN Bus Technology
- Research and Implementation of25Hz Phase Sensitive Track Circuit Electronic Receiver
- AM335X-based Jacauard Control System Design for Circular Knitting Machine
- CAN-based Upper Computer System Design for Loom
- Research on Coal Mine Safety Monitoring System Based on Data Fusion
- Design for Glass Electric Furnace Feeding Monitoring and Real-time Temperature Control System
- Research on Optimal Design of Automatic Production Line in Mixed Plastic Products
- The Research and Design of the Remote Monitoring System for Solar-Heating Fresh Air Based on the CAN-Bus and Internet
- Research of the Special Vehicles Remote Monitoring Terminal Based on MCU
- The Design and Implementation Multifunctional Mixed I/O Modules
- The Research and Design of Embedded Fresh Air Monitoring System Based on ARM
- Design and Realization of Main Control Module in Electric Wheelchair Based on DSP
- Research on Control System of Overflow Dyeing Machine Based on ARM and CAN Bus Technology