The Research and Realization of Hardware for USB Devices
- Author
- LiLun
- Advisor
- YuZhiPing
- School
- China University of Geosciences
- Major
- Applied Computer Technology
- Classification
- TP336 Bus channel
- Degree
- Master's thesis
- Year
- 2003
- Downloads
- 660
- Citations
- 3
Abstract
With the gradual popularization of computer network, computer information security issues become increasingly important. This topic in the study of the existing security architecture based on the combination of computer peripheral interface, developed a new USB interface encryption system. Universal Serial Bus (USB) is a new interface technology applications in the PC area. Since the Windows98 operating system, full support for USB interface, USB bus technology gradually entered the practical stage, and is becoming the most important connection of PC peripherals. USB is fast, bidirectional, synchronous, serial interface, dynamic connection and low prices to meet the PC, present and future development needs. USB as a new kind of computer peripheral bus standard, from the emergence of standards to the large-scale application in just a few years time, all thanks to its easy-to-use, real hot-swap, high-performance The low cost and system advantages. USB interface technologies through in-depth study of this article, combined with the structural features of the PC, and a USB connection for data encryption system based on the PC platform solutions, a USB encryption system based on this program. This paper describes the design of the USB interface and USB bus Popular technology; based on practical needs, focusing on the selection and application of USB interface chip; elaborate the USB encryption system development process, put forward some of the USB interface hardware design new ideas. Also, the key technologies of the USB interface hardware research, and propose practical solutions. The system consists of three major subsystems, namely: 1. USB1.1 interface subsystem; 2. Windows operating system, drivers and applications; 3. FPGA encryption subsystem. The main focus of this thesis is that the hardware implementation of the device-side firmware writing detailed discussion of programs and a USB connection USB firmware design method. This paper, circuit design, modular design, and focus on narrative USB interface chip I ~~ 2C bus modules and encryption module specific design aspects of circuit connection. The firmware design major development steps and flow chart, and supplemented by the corresponding code section. Different firmware in assembly language development, all of the code are the completion of the C language, both to improve the portability of the program to enhance the legibility of the program. Device class specification concepts and device class driver concept, first introduced in the driver section. Description Windows-driven development model, an integrated development environment, develop USB drivers Finally, the realization of the drivers of this topic. Different driver methods with other developers, joint use DriverWorks and the Windows DDK two tools to develop device drivers. The WDM driver wizard first use DriverWorks Driver Wizard to create a program framework, and then use the DDK to complete the final driver. The experiment proved that the system can indeed achieve the desired objectives, the completion of the development of a the encryption system prototype with USB1.1 communication interface. The end of the article, a review of the USB interface system design, pointing out that some of the existing defects and improved to make preparations for future system upgrades.
Table of contents
Chapter 1 Introduction 11-16
1.1 research background, current status, and subject sources 11-12
1.1.1 research background and technical status 11 - 12
1.1.2 subject sources 12
1.2 overall design of the system 12-14
1.2.1 USB interface subsystem design 12-13
1.2.2 software subsystem design 13-14
1.2.3 cryptographic subsystem, design work I do and chapters in 14
1.3 arrangements 14-16
1.3.1 I do work 14
1.3.2 thesis structure 14-16
USB technology Overview the 16-24 2.1 USB technology development
16-17
2.2 USB host 17-19
2.2.1 buses, the physical topology 17
2.2.2 USB host and USB device interaction 17-18
the 2.2.3 USB system hardware and software elements 18-19 < br /> 2.3 USB device operation 19-21
2.3.1 dynamic installation and removal 19
2.3.2 address assignment are found; 19
2.3. 3 Configuration 19-20
2.3.4 data transfer 20
2.3.5 Power Management 20-21
2.3.6 request processing 21
2.3.7 request errors 21
2.4 USB Device 21-24
2.4.1 the SETUP packet format 22-23 < br /> 2.4.2 standard equipment requests 23-24
Chapter of the development of the USB interface circuit the 24-36
3.1 P89C51RD2 of, characterized 24-26
3.1.1 P89C51RD2 technical characteristics 25
3.1.2 the system P89C51RD2 25-26
3.2 USB interface chip 26 - 33
3.2.1 register settings 27-31
3.2.2 51 connected to the 9603 hardware design 31-32
3.2.3 the USB end hardware connection design 32-33
3.2.4 problems that need attention 33
3.3 I ~~ 2C bus basic principle 33-36
3.3.1 the bus node addressing the 33-34
3.3.2 SCM system I to 2C bus analog 34
3.3.3 I 2C bus timing 34-35
3.3.4 AT24C64 nbsp with P89C51RD2 microcontroller interface; 35-36
Chapter USB interface firmware development 36-47
the 4.1 firmware procedural framework 36
4.2 header file descriptor 36-39
4.3 9603 operating instructions 39-41
4.3.1 read and write operations 39
4.3.2 initialization 39
4.3.3 state transition process the the 39-41 node
4.4 operating 41-45 the
the 4.4.1 node operating 41-44
4.4.2 sending and receiving nodes of information processing 44-45
4.5 the I-2C bus programming 45-46
4.6 connection encryption modules are found; 46-47
Chapter preparation device driver 47-53
5.1 USB driver 47-48
5.1.1 USB driver architecture 47-48
5.1.2 USB device drivers 48
5.1.3 USB drivers 48
5.1.4 USB host controller driver 48
5.2 preparation USB. device driver 48-53
5.2.1 Development Tools Select 48-49
5.2.2 USB programming functions 49-50
5.2.3 with DriverWorks generated WDM driver 50-52
5.2 .4 USB drivers loaded 52-53
Chapter test and summarize 53-57
6.1 Functional Test The 53-55 6.2 summarizes
55-57
Acknowledgements 57-58 the
References 58-60
Related dissertations
- Study and Design of Data Communication and the Host of Telemetry and Command System Basing on GSM Network
- Research on USB Protocol and USB Interface Drivers
- USB Interface Technology and Application Study
- Vehicle traveling data recorder
- Embedded Linux-based USB Encryption Driver Design
- Development of Human-Computer Interaction for Control System of Grating Homochromatic Instrument
- Design of a Control System Based on USB Interface
- Software Design of Digital TV Receiver Based on USB2.0Technology
- Study of Data Transmission System Based on USB2.0and FPGA
- The research of wireless service information system for subway station
- The Study of Well Logging Cable DataTransmission System Based on USB
- The Design of High Speed Data Collection System Base on USB Bus
- The Design of USB Host/Slave Interface in Embedded Systems Based on ARM
- Microassembly Robot Vision System Research Base on Image Transmission and Recognition
- The Software Development on Interface System of Imaging Tracker Capability Evaluation System
- Analysis and Improvement of Driving Program of Embedded Linux
- Data Acquisition and Signal Processing Based on USB2.0
- High-performance data acquisition system based on USB and FPGA design and implementation of technology
- The Research and Design of LCD Figure and Character Display System Based on USB
- Research and Design of Data Acquisition System Based on USB