Design and Implementation of Grain Situation Monitor System Based on CAN Bus
- Author
- ShiWeiXiang
- Advisor
- ZhangAiZuo
- School
- Harbin Engineering University
- Major
- Control Theory and Control Engineering
- Classification
- TP277 Monitoring, alarm,fault diagnosis system
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 332
- Citations
- 5
Abstract
The CAN bus is one of the popular field-buses at present, which is more highly reliable and low priced, and being used more and more extensively. In this thesis, a kind of new-type digital grain situation monitor system, based on CAN bus communication network, is studied and designed, which can monitor situation of grain greatly.First of all, the development status and performances of CAN bus are introduced briefly in the thesis, the correlative functions of Physical Layer and Data Link Layer are analyzed, and the main content of technical specification of CAN bus is explained in detail.Secondly, in order to show the application of CAN bus in actual project, the design of grain situation monitor system is given for an example in this thesis. According to framework of the system, the whole design is divided into two parts. One part is the design of monitor module of warehouse based on CAN bus, which can realizes data communication, temperature and humidity measurement, ventilation control, etc. In the design, the hardware and software of the interface of CAN bus are introduced, and the 1-WIRE bus technology of temperature measuring network is discussed; Another part is the design of CAN bus network adapter, which is a difficulty in this thesis. A project of design of CAN bus network adapter based on USB interface is put forward, the controller PDIUSBD12 is used to realize communication to the PC by USB bus, and the virtual device driver is developed by the third software development tool WinDriver. Furthermore, the development flow of adapter is discussed, and the agreement and contents of USB bus are introduced in detail.Finally, the performance of CAN bus protocol is analyzed in the thesis. On one hand, the non-destroyed bit-by-bit arbitrate regulation adopted by CAN bus is analyzed; On the other hand, the mathematical analysis is carried out to explainthe throughput of CAN bus, the performance of CAN bus is proved more superior by comparing with other medium accesses of computer network.
Table of contents
Chapter 1 Introduction 11-16
1.1 research background and significance nbsp the; 11
of 1.2 grain condition monitoring technology development overview 11-12
1.3 Fieldbus technology and the development of CAN bus overview the 12-14
1.4 In this paper, the main research contents 14-16
Chapter 2 CAN bus 16-31
2.1 CAN bus Introduction 16
2.2 CAN bus performance characteristics 16-17
2.3 CAN bus bit value with communication distance 17-18
2.4 CAN bus technology the 18-30 2.4.1 CAN bus
hierarchy 18-20
2.4.2 packet transmission frame structure 20-27
2.4.3 the type of error and failure defined 27-30
2.5 Chapter Summary 30-31
Chapter 3 CAN bus barn and Control node design 31-47
3.1 the nodes hardware design 31-40
3.1.1 microcontroller and auxiliary circuit 31-32
3.1. 2 CAN Bus Interface Circuit 32-36
3.1.3 Temperature and humidity measurement and ventilation control circuit 36-39
3.1.4 power circuit 39-40 < br /> 3.2 firmware node the
3.2.1 SJA1000, 40-45 initialization the
3.2.2 DS18B20, 41-43 data collection 43 -45
3.3 Chapter Summary 45-47
4th chapter USBCAN, adapter design 47-63
4.1 USBCAN adapter hardware design 47-51
4.1.1 the overall structure of the adapter 47-48
4.1.2 USB bus interface circuit 48-51
4.2 USBCAN adapter, Firmware programming 51-61
4.2.1 USB1.1 protocol the 52-56
4.2.2 firmware programming ideas 56-57
4.2 .3 program analysis 57-61
4.3 Chapter Summary 61-63
Chapter 5 program monitoring machine design 63-71
5.1 USB driver development 63-68
5.1.1 WDM Driver Overview the 63-64
5.1.2 USB drivers structural 64-66
5.1.3 IRP and URB the 66-67
5.1.4 USB device driver development process 67-68
5.2 monitoring software designed 68 - 69
5.2.1 software overall structure 68-69
5.2.2 software for USB driver communication 69
5.3 Chapter Summary 69 -71
Chapter 6 CAN bus performance analysis the 71-78
6.1 Control Protocol parsing 71-76
6.1.1 CSMA and CSMA / CD Overview 71-72
6.1.2 CAN bus arbitration mechanism 72-73
6.1.3 CAN bus channel utilization analysis 73-75
6.1 the .4 performance 75-76
6.2 Chapter Summary 76-78
conclusion 78-80
References 80-83 the
studying for a master's degree during the thesis and made the scientific research 83-84
Acknowledgements 84-85
Appendix A the barn monitoring and control node schematic 85 -86
to Appendix B USBCAN network adapter circuit diagram 86
Related dissertations
- The Design and Implementation of the Equivalent Test System Integrated Multiple Bus
- The Design and Realization of Bar Code Identification System Based on USB Bus
- Research of CAN_USB Conversion System Based on FPGA
- The Design of Small Coal Mine Remote Monitoring System Based on ARM
- The Design and Realization of Extended System in Distributed Firealarm System Based on Microcontroller
- The Design of Monitoring System for the Photovoltaic Plant Based on DSP
- Design and Application of the Distributed Monitoring System Based on Embedded Web
- The Design of Hybrid Electric Bus Data Acquisition and Test System
- The Design of Data Monitoring and Control System Based on USB and Lab VIEW
- Industrial Field Data Acquisition System Design Based on CAN Bus
- Design of the Hazard Source Monitoring System Based on CAN Bus
- The Design of Displacement Detection System Based on CPLD Grating Subdividing Technology
- Research on Data Acquisition System of Can Bus
- The Design and Implementation of Vehicle Data Acquisition and Communication Device Based on CAN Bus
- Design of Remote Monitoring System of Agricultural Field Information Based on GPRS Network
- Design and Implementation of Intelligent Wiring Hardness Detection System
- Research on Indoor Localization System for Intelligent Wheelchair
- Research on CAN Bus Communication and Application Experiments
- Based on Can Field-bus Technology and Web Service Home Intelligent Control System Design and Realization
- Research of Fieldbus Relay Basing on CAN Bus