Research of Measuring and Controling Network Transport Protocol Based on the CAN Bus

Author
YangZuoWen
Advisor
ZhanMing
School
Northeastern University
Major
Detection Technology and Automation
Classification
TP273.5 Computer control, computer control system
Degree
Master's thesis
Year
2010
Downloads
47
Citations
0

Request the full text

Abstract

With the development of industrial control systems to network direction, real-time communication is becoming increasingly important among the network instruments, even between the network instrument and the controller. Therefore, a suitable network transmission protocol should be formulated. This issue does a research on CAN-bus transport protocol in the realization based on CAN communication, by building a multi-channel data acquisition circuit. And try to solve the problem on bus competition and bus congestion existing at the multi-master communication. So the topic of this issue is mainly divided into two parts:one part is research of the CAN-bus transport protocol and another part is designing multi-channel data acquisition circuit.The designing principle of CAN-bus transport protocol is using simply, being universal, equipment can be increased and the software can be upgraded. And it must be satisfied to the basic demands of CAN communication. This transport protocol formulated parameter registers by using theory of Modbus communication protocol and applied designing ways of classifying function and parameter registers that referenced Hart communication protocol. Priority of message types and priority of sending nodes are combined in the protocol and the identifier will be divided into the frame type, MAC ID and the frame code, in order to deal with the arbitration problem when multi-master communication occurred. Content of the protocol will be reflected by the identifier and data field.4bytes of data field will be used for data transmission and the other4bytes used for the protocol. To visit a data among network nodes by visiting the parameter registers. The protocol made regulations in detail on the specific frame format, the distribution method of identifier and data field and communication patterns.The multi-channel data acquisition circuit is responsive to designing idea of SOC and contains three modules, including the main controller, the CAN communication module and the ADC module. The entire circuit is divided into the motherboard and the sampling board. The motherboard is responsible for processing the measurement data and the realization of CAN network communication. And the sampling board is responsible for analog quantity sampling of multi-channel. The main controller is a8-bit SOC MCU C8051F500, which is usually launched in a vehicle. The CAN communication will be achieved by the CAN controller embedded in C8051F500and the CAN interface chip CTM1050.ADC module used a highly integrated chip ADS1248who greatly reduced the complexity of the signal sampling, multi-channel choice and signal amplification circuit and increased reliability of system at the same time.

Table of contents

Summary 5-6 Abstract 6-12 Chapter 1 Introduction 12-16 1.1 subject background 12-15 1.1.1 industrial control systems 12 1.1.2 field bus Control System 12-13 1.1.3 fieldbus technology 13-15 1.2 topics main content and significance 15-16 Chapter 2 CAN-bus specification describes 16-22 2.1 CAN-bus hierarchy 16 -17 2.1.1 CAN-bus physical layer 16-17 2.1.2 CAN-bus data link layer 17 2.1.3 CAN-bus application layer 17 2.2 CAN-bus frame format and frame type 17-19 2.2.1 frame format 17-18 2.2.2 frame type 18-19 2.3 CAN-bus error types 19-20 2.4 CAN-bus MAC 20 2.5 CAN-bus bit timing and bit synchronization 20-22 Chapter 3 common protocol specification describes 22-30 3.1 DeviceNet protocol 22-24 3.1. 1 DeviceNet protocol Introduction 22-23 3.1.2 DeviceNet connection 23 messaging 3.1.3 DeviceNet is 23-24 3.2 Modbus protocol 24-27 3.2.1 Modbus protocol Profile 24-25 3.2.2 Modbus protocol data format 25-26 3.2. 3 Modbus function Code 26-27 3.3 HART protocol 27-30 3.3.1 HART protocol Introduction 27 3.3.2 HART protocol command set 27-28 3.3.3 HART protocol frame format 28-30 Chapter 4 CAN-bus transfer protocol 30-52 <br / > 4.1 transfer Protocol program development 30-32 4.1.1 protocol requires 30 4.1.2 multi-master arbitration 30-31 4.1 .3 agreement overall program design 31-32 4.2 transport protocol packet format 32-45 4.2.1 CAN packet distribution 32-34 4.2.2 frame format 34 4.2.3 data storage 34-36 4.2.4 communication frame format parsing 36-45 <br / > 4.3 communication mode 45-48 4.3.1 master-slave communication 45-47 4.3.2 multi-master communication 47-48 control 4.4 communication 48-52 Chapter 5 network Node overall design overall 52-64 5.1 node needs analysis 52 5.2 overall program design 52-53 5.3 key modules introduced 53-64 5.3.1 master controller C8051F500 53-57 5.3.2 Bosch CAN communication module 57-62 5.3.3 ADC ADS1248 62-63 5.3.4 C2 debug Interface 63-64 first 6 network node hardware design 64-74 6.1 CAN interface module design 64-66 6.1.1 CAN Interface Selection 64-65 <br / > electrical protection 6.1.2 CAN module 65-66 6.2 analog acquisition module design 66-69 6.2.1 multi-channel isolation design 66 -68 6.2.2 analog circuit design collection 68-69 6.3 power module design 69-72 6.4 LCD module design 72 - 73 6.5 relay output design 73-74 Chapter 7 network node software design 74-90 7.1 software, the overall design 74-75 7.2 main design 75-76 7.3 initialization routine design 76-80 7.3.1 port configuration and clock configuration 76 - 77 7.3.2 CAN module initialization 77-78 7.3.3 A / D initialization subroutine 78-79 7.3.4 LCD initialization routine 79-80 7.4 functional module programming 80-90 7.4.1 CAN module functions to achieve the program 80-84 7.4.2 configuration parameters program 84-85 7.4.3 voltage measurement and processing procedures 85-87 7.4.4 LCD display 87-90 Chapter 8 system debugging 90-102 8.1 system debugging ideas 90-91 8.1.1 hardware debug 90-91 8.1.2 software debugging 91 8.2 debugging tools 91-95 8.2.1 IDE compiler environment 91-93 8.2.2 U-EC5 -Circuit Debugger 93-94 8.2.3 9810 card debugging assistant 94-95 8.3 network system debugging 95-102 8.3.1 debugging method 95-96 8.3.2 debugging results 96-102 Chapter 9 conclusions and Prospects 102-104 References 104-106 Thanks 106

Related dissertations

  1. Design of Network Multimedia Communication System Based on ARM11
    WangZhenLi ·University of North ·2014 ·Master's thesis
  2. Electronic Records Data Transfer Protocol Based on OWL and Research of Middle Ware Interface
    XiaoFan ·Wuhan University of Technology ·2012 ·Master's thesis
  3. Design and Implementation of Virtual Desktop Client Based on SPICE Protocol
    LiBo ·South China University of Technology ·2012 ·Master's thesis
  4. Design and Research of Network Multimedia Communication System
    NanChunHui ·University of North ·2013 ·Master's thesis
  5. Research on Optimization of Real-time P2P Streaming Media Transfer Protocol
    JiangZhiXuan ·Beijing Jiaotong University ·2012 ·Master's thesis
  6. The Design of Optical Transmission Card Based on CPCI
    WangLiLi ·University of North ·2012 ·Master's thesis
  7. Research on Transport Prptocols of Next Generation Internet Architecture
    LiZuo ·Shandong University ·2007 ·Doctoral dissertation
  8. Study on the Key Technology of Working Face Monitoring and Gas Concentration Prediction Based on WSN
    WangQuanFu ·China University of Mining and Technology ·2009 ·Doctoral dissertation
  9. A Study of Rate-Controlled Transport Protocol for Wireless Sensor Network
    ZhouZhi ·Central South University ·2008 ·Master's thesis
  10. Research of Data Management and Transfer Model Based on Multi-Replica in Grid Environment
    GuoLanTu ·China University of Petroleum ·2007 ·Master's thesis
  11. Design and Implementation of Software System for Remote Wireless ECG Monitoring Based on PDA
    ZhaoZuo ·Tsinghua University ·2006 ·Master's thesis
  12. Multimedia web - based remote monitoring system design
  13. Research on Key Technology and Implement of VOD System
    KuangGuoFang ·Harbin Engineering University ·2007 ·Master's thesis
  14. ASM - based multimedia teaching system design and optimization
    LiLiLi ·Guizhou University ·2007 ·Master's thesis
  15. The Research and Development of Remote Controlling System Based on Scanning SEM
    ZhangZuo ·Jilin University ·2007 ·Master's thesis
  16. Implementation & Research on Key Technologies of Distant Multimedia Teaching System
    ChenHuiDong ·Shanghai Jiaotong University ·2007 ·Master's thesis
  17. iSCSI its start in the Windows platform implementation
    ChenJunMing ·Zhejiang University ·2005 ·Master's thesis
  18. DSP Realization of High Reliability Data Transmission
  19. The Study and Improvement of STP (Self-spreading Transport Protocols) System
  20. Research on the Architecture of Space Information Transmission Network