Design and Research of CAN-USB Host-Slave Communication Adapter
- Author
- FuXianHao
- Advisor
- ChenXing
- School
- Dalian University of Technology
- Major
- Pattern Recognition and Intelligent Systems
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 100
- Citations
- 0
Abstract
As one kind of field bus, CAN is widely applied in many areas for its great features of distributed control and real-time capability, such as industrial production, automotive electronics, robots and aerospace. In the process of design, development and debugging, monitoring and maintenance of CAN bus system, it is necessary to connect it to the computer for online monitoring, test, data analysis, performance verification and troubleshooting using its powerful analysis and processing capability. On the other hand, for many CAN bus systems which need long-term running, such as the monitoring of field geological condition, data needs to be saved in mass storage facilities for data analysis and data mining. In such conditions, saving the data to the computer on-line will be very inconvenient, so there is a need for the off-line storage function.In the traditional methods of connecting the CAN bus and the computer, using the RS232interface can no longer meet the increasingly high speed requirements and has been gradually eliminated. The method of using the acquisition cards based on PCI and ISA has the disadvantages of hard to install, poor portability and scalability, high price. USB interface has been widely used and becomes one of the essential interfaces for computer peripherals because of its good scalability, supporting hot plug, low cost, convenience to use, high transfer rate and great portability. The method of using USB interface for CAN communication is gradually developing. The USB-CAN adapter used now can only support the USB slave mode. It just receives and transmits the CAN packets and is hard to configure with low efficiency. It does not support USB host mode and can’t save the data to storage facilities. The price is high too. As a result, the market needs a adapter which supports both host and slave mode and can save data off-line with high efficiency and low cost.The paper introduces the status and needs of the CAN bus communication with the computer, compares the advantages and disadvantages of various methods, studies the standard protocol of USB and CAN, and put forward a scheme of CAN adapter based on USB interface and supporting host and slave mode. The adapter uses STC89C54RD+as the microcontroller, CH375as the USB interface chip and SJA1000as the CAN controller chip. In USB slave mode, the adapter can handle the bidirectional communication between CAN bus and the computer. The computer can send orders to configure the lower machine, and can receive, display and store the CAN bus data. In USB host mode, the adapter can store the CAN bus data to the memory of the USB interface in a file. The paper describes the overall scheme of the adapter, the division of module and the selection of devices in details, designs the hardware and software of lower machine and the application program of upper machine. The adapter integrates the advantages of USB and CAN, has low cost, good scalability, strong stability and wide range of applications. It has great application value and popularization value.
Table of contents
Summary 4-5
Abstract 5-9
1 Introduction 9-12
1.1 Background and Significance 9-10
1.2 and the main research work 10-12
2 USB and CAN bus technology 12-22
2.1 USB bus technology 12-17
2.1.1 USB emergence and development 12
2.1.2 USB system level model 12-15
2.1.3 USB communication protocol 15-16
2.1.4 USB advantage of 16-17
2.2 CAN bus technology 17-21
2.2.1 CAN bus generation and development 17 - 18
2.2.2 CAN hierarchical structure 18-19
2.2.3 CAN communication protocol 19-21
2.2.4 CAN advantage 21
2.3 Summary 21-22
3 overall program to identify and component selection 22-34
3.1 overall program to determine 22-24
3.2 USB protocol and CAN protocol selection 24
3.3 interface chip select 24-26
3.4 chip introduced 26-33
3.4 .1 STC89C54RD microcontroller 26-27
3.4.2 CH375 chip 27-29
3.4.3 SJA1000 chip 29-32
3.4 .4 PCA82C250 chip 32-33
3.5 Summary 33-34
4 system hardware design 34-41
4.1 chip test 34-35
4.2 microcontroller interface circuit 35-38
4.3 CH375 interface circuit 38-39
4.4 SJA1000 interface circuit 39 - 40
4.5 Summary 40-41
5 system software design 41-59
5.1 development tools to select 41
5.2 firmware design 41-52
5.2.1 firmware principle 41-44
5.2.2 firmware design 44-52
5.3 PC program design 52-58
5.3.1 program overall framework nbsp 52-55
5.3.2 device operation ; 55-57
5.3.3 data transceiver 57-58
5.4 Summary 58-59
conclusion 59-61
References 61-63
post master's degree during the academic situation 63-64
Thanks 64-65
Related dissertations
- Research of Fieldbus Multi-Protocol Conversion Gateway Based on PROFIBUS-DP Slave
- The Research on Protocol Converter between CAN-bus and Modbus
- Design of RS-485 bus communication system based on the distributed multi
- Wireless Grain Situation Monitoring System Node Designing Based on ZigBee
- Design and Realization of Computer Embroidery Machine Monitoring System Based on ARM
- The Design of 12000Nm~3 Flue Gas Discharge Desulfuration/denitration Monitoring System
- The Vehicle Malfunction Diagnosis Analytical System Based on LabVIEW
- The research and implementation of an integrated network of multi - protocol conversion
- Light Based on Embedded Linux Gateway Design
- Design of Embedded Data Acquisition and Processing System of MEMS-INS
- Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
- Usb Without Invasive Data Collection Technology Research
- Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
- Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
- Grating Data Acquisition and Error Correction Technology
- CCD Data Acquisition System Implementation Based on FPGA
- Research of Data Acquistion System Based on FPGA
- Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
- Research and Design of High-power Temperature Control System Based on PROFIBUS
- Design of DeviceNet-CANopen Integrated Slave Node