Research of CAN-USB Bus Interconnection Technology and Implementation Method
- Author
- LiuYanJun
- Advisor
- ZhangPing
- School
- Beijing University of Chemical Technology
- Major
- Detection Technology and Automation
- Classification
- TP273.5 Computer control, computer control system
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 378
- Citations
- 2
Abstract
On the basis of CAN bus and USB bus technical, the reality of CAN-USB bus interconnection technology and implementation method have been studied and A CAN-USB adapter has been designed. This adapter can collect the information of each node of CAN bus and transmit it to the host computer. It can transmit the order and data from host computer to each node of the CAN bus. It can control every node of the CAN bus. It has some merits such as high performance-cost ratio, strong anti-interference ability, quick transmission speed. Used in reality, this adapter can improve the integrated level of control system in industry obviously.CSMA/CA (Carrier-Sense Multiple Access with Collision Detection and Arbitration on Message priorities) communication agreement has been used in CAN bus. When a lot of nodes send the data at the same time, the CAN bus arbitrate the message by the PRI of the identifier. The data from the node of high PRI can continue transmitting, but the real-time character of the low PRI node is unable to be guaranteed. Because mostly the data in practical application are periodic, the algorithm of TDMA (Time Division Multiple Access) has been used in the adapter. The data transmission of the whole network has been managed by the application layer. So the real-time character of data transmission, especially the periodic data transmission, has been improved. The algorithm of TDMA leaves enough resources for hard real-time information. So even under the
Table of contents
Chapter Summary 11-16
1.1 USB Bus Technical Overview 11-13
the 1.1.1 USB technology development status 11
1.1.2 the USB bus systems described the 11-12 1.1.3 USB device hierarchical model
12
the 1.1.4 USB bus technology advantages 12-13
1.2 CAN bus technology overview 13-14
1.2.1 CAN bus technology development status 13
1.2.2 CAN node hierarchy 13-14
1.2.3 CAN technical characteristics 14
1.2.4 CAN bus technology advantages 1.3 Current Research 14
14-15
1.4 research topics 15-16
second chapter overall design 16-21
2.1 design goals of 16
2.2 overall design architecture 16-18
2.2.1 USB protocol selection 16-17
2.2.2 CAN communication protocol selection and improvement 17
2.2.3 Control and the The interface chip select 17-18
2.2.4 overall program of design 18
2.3 development programs the 18-20
2.3.1 development steps 18-19
2.3.2 hardware development program 19
2.3.3 firmware design 19
2.3.4 driver design 19
2.3.5 application debugging issues need to be resolved in 19-20
2.4 20-21
Chapter hardware circuit design 21-26
3.1 chip the 21-23 3.1.1 P89C52 microcontroller
21
3.1.2 PDIUSBD12 chip 21-22
3.1.3 SJA1000 chip 22-23
the 3.2 schematic design the 23-26 3.2.1 microcontroller interface circuit
3.2.2 USB on the 23rd the interface circuit 23-24
3.2.3 CAN interface circuit 24-25
3.2.4 PCB diagram design 25-26
Chapter the firmware programming 26-48
4.1 Introduction to development technology be introduced on
4.1.1 KeilC51, 26-29 26
4.1.2 CAN protocol specification frame structure 26-27
4.1.3 USB protocol specification, and frame structure 27-28
4.1.4 USB bus data transfer type 28-29 < br /> 4.2 CAN bus communication protocol optimization 29-32
4.2.1 clock synchronization structure the 29-30 4.2.2 reserved slots
priority structures nbsp scheduling of hard real-time information; 30-32
4.2.3 32
4.2.4 CAN data frame structure defined 32
4.3 firmware principle 32-35
4.3.1 before and after the break out of the loop structure 32-33
4.3.2 firmware structural principle 33-35
4.4 hardware interface defined the 35-38
4.4.1 CAN hardware interfaces defined the 35-36
4.4.2 CAN basic control function instructions 36-37
4.4.3 USB device communication pipeline definition the 37-38
4.4.4 USB device descriptor defined 38
4.5 firmware to achieve 38-48
4.5.1 The main loop program 38-39
4.5.2 USB interrupt service routine 39-41
4.5.3 USB data processing 41
4.5.4 CAN interrupt service routine to 4.5.4 CAN data processing 41-43
43-48
Chapter WDM driver model design 48 -65
5.1 WDM model structure 48-49
5.2 USB driver hierarchy 49-50
5.3 driver routines 50 - 61
5.3.1 initialization entry routines 51-53
5.3.2 AddDevice function in processing 53-56
5.3.3 Plug and Play Example process nbsp the 5.3.4 data read and write routines 56-58
; 58-59
5.3.5 Power Management 59-61
5.4 driver with the application communications the 5.5 drivers 61-63
compile and debug 63-65
Chapter VI experimental test 65-70
6.1 driver installed 65-66
6.2 communication test 66-70
6.2.1 USB communication test analysis 66-68
6.2. 2 CAN communication test analysis 68-70
conclusion 70-71
Reference 71-73
Acknowledgements 73-74 < br /> degree during the article 74
Related dissertations
- Research on USB Protocol and USB Interface Drivers
- Design and Realization of CS-50Catalyst Production Control System Based on CAN Bus
- Embedded Linux-based USB Encryption Driver Design
- The Research on Protocol Converter between CAN-bus and Modbus
- Development of Human-Computer Interaction for Control System of Grating Homochromatic Instrument
- Development of Device Driver Sotfware for Video Capture Card on Windows
- The High Frame Rate Scene Generation System Design and Implementation Based on the Windows Platform
- Design and Implementation of Driver Programming Based on PCI Bus
- Design of Display and Control Software for Radar Data Acquisition System Based Oil PCI Express Bus
- Software Design of Digital TV Receiver Based on USB2.0Technology
- Design and Research of CAN-USB Host-Slave Communication Adapter
- Study and Design of Data Communication and the Host of Telemetry and Command System Basing on GSM Network
- Hard Target Penetration Fuze high-speed signal test system simulator driver design
- Research on the Wireless Network Card Driver and Management Application on Windows
- The Design of USB Host/Slave Interface in Embedded Systems Based on ARM
- Research and Application of USB Device Driver Based on Windows WDM
- Research and Design of Data Acquisition System Based on USB Interface
- Design and Realization of Computer Embroidery Machine Monitoring System Based on ARM
- The Research of Data Communication System Based on USB
- A virtual oscilloscope research and design