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

Request the full text

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

  1. Research of Fieldbus Multi-Protocol Conversion Gateway Based on PROFIBUS-DP Slave
  2. The Research on Protocol Converter between CAN-bus and Modbus
    XuHui ·Northeastern University ·2010 ·Master's thesis
  3. Design of RS-485 bus communication system based on the distributed multi
  4. Wireless Grain Situation Monitoring System Node Designing Based on ZigBee
    LuShuJie ·Henan University of Technology ·2012 ·Master's thesis
  5. Design and Realization of Computer Embroidery Machine Monitoring System Based on ARM
    ZhangWeiYe ·Zhejiang University of Technology ·2007 ·Master's thesis
  6. The Design of 12000Nm~3 Flue Gas Discharge Desulfuration/denitration Monitoring System
    LiHong ·Beijing Jiaotong University ·2007 ·Master's thesis
  7. The Vehicle Malfunction Diagnosis Analytical System Based on LabVIEW
    LuoZuo ·Wuhan University of Technology ·2007 ·Master's thesis
  8. The research and implementation of an integrated network of multi - protocol conversion
  9. Light Based on Embedded Linux Gateway Design
    YangXianQiang ·Sichuan University ·2006 ·Master's thesis
  10. Design of Embedded Data Acquisition and Processing System of MEMS-INS
  11. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  12. Usb Without Invasive Data Collection Technology Research
  13. Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
  14. Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
  15. Grating Data Acquisition and Error Correction Technology
    DongShanShan ·Hefei University of Technology ·2014 ·Master's thesis
  16. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  17. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  18. Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
    AiTianLun ·Dalian Jiaotong University ·2012 ·Master's thesis
  19. Research and Design of High-power Temperature Control System Based on PROFIBUS
  20. Design of DeviceNet-CANopen Integrated Slave Node
    LiuXueWei ·Tianjin University of Technology ·2013 ·Master's thesis