Design and Implementation of USB Printer Driver of Embedded System
- Author
- ZhaoHaiTao
- Advisor
- LuoShouShan
- School
- Beijing University of Posts and Telecommunications
- Major
- Software Engineering
- Classification
- TP334.8 Printing devices
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 148
- Citations
- 0
- USB host
- USB printer driver
- embedded devices
- OTG dual-use equipment
- Input / output device management
Abstract
With the growing popularity of the USB interface, it has not only become one of the standard interfaces on the PC interface supported by many embedded devices become more and more. To add USB host controller embedded devices, embedded devices like PC as external USB printer, man-machine interface devices (mouse, keyboard, etc.), flash memory and other external devices, so greatly improving the scalability of embedded devices and ease of use. Embedded devices connect a USB printer to print statements such demand, detailed design and coding to achieve a USB print driver. , Through the operation of the user interface of the embedded devices embedded devices through a USB cable to connect the printer to print out a list of embedded devices account statements. The demand for software design of a modular software architecture, software architecture level includes: USB host control drive, USB device drivers, I / O management system and the upper application. And eventually in the printer driver is implemented in this framework. Mainly the following aspects: 1. USB technology development process, an overview of the architecture of the USB bus protocol and data flow. USB device and USB device enumeration process is described. The article also describes OTG technology, it is a complement of the USB protocol and is fully compatible with the USB protocol. In response to user demand, the development of software requirements, software requirements. Outline design of two implementations of USB host controller and OTG dual-use equipment. Software structure to describe and compare the two programs. Finalized using the USB host controller program, system block diagram is given and each module is described. 3 USB host system are reviewed. It includes USB core driver and hardware more closely the relationship between host controller driver. The Text Encoding achieve the USB core driver, data structure, initialize the USB core driver interface functions described in detail. Paper on the nucleus real-time operating system with C language coding USB printer driver. USB printer driver data structures. Its initialization process, the interface functions are analyzed in detail. It also describes how to write data and read the printer status information to the printer. 5 I / O management system and its interface functions. Coding the printer driver I / O interface module. Upper application and print a report outline design.
Table of contents
Abstract 4-6
Abstract 6-10
first chapter 10-13
1.1 USB development process 10 - 11
1.2 project tasks 11-12
1.3 paper structure 12-13
Chapter II USB architecture overview 13-28 <br / > 2.1 USB system Overview 13-17
2.2 USB bus protocol and data stream 17-20
2.2.1 USB bus protocol 17-18 <br / > 2.2.2 USB data stream types 18-20
2.3 USB device with bus enumeration 20-24
2.3.1 USB devices 20-23 < br /> 2.3.2 USB bus enumeration process 23-24
2.4 physical interface 24-25
2.4.1 electrical Characteristics 24
2.4.2 mechanical properties 24-25
2.5 OTG Overview 25-27
2.6 Summary 27-28
Chapter 3 System software requirements Analysis and architecture design 28-35
3.1 software architecture design needs analysis 28-30
3.2 USB host and OTG programs compare 30-32 <br / > 3.3 software design architecture diagram and overview 32-34
3.4 Summary 34-35
Chapter embedded USB host system 35-46 <br / > 4.1 USB host system 35-39
4.1.1 USB host system architecture 35-38
4.1.2 USB host system software 38-39
4.2 USBD realize Profile 39-45
4.2.1 USBD data structures 39-42
4.2.2 USBD initialization 42-43
4.2.3 USBD interface functions 43-45
4.3 Summary 45-46
Chapter printer driver implementation 46-62 <br / > 5.1 printer driver related data structures 46-50
5.2 printer driver initialization 50-51
5.3 printer driver to connect and disconnect 51-53 < br /> 5.4 the pipeline use 53
5.5 writes the printing device and the state acquiring 53-55
5.6 device I / O management 55-59
5.7 report printing 59-61
5.8 Summary 61-62
Chapter function test 62-68
6.1 equipment pieces For testing 62-66
6.2 print function test 66-67
6.3 Summary 67-68
Chapter VII Conclusion 68 -70
7.1 thesis work summarizes 68
7.2 problems and Prospects 68-70
Appendix 1: USBD initialization code 70-75 <br / > Appendix 2: USBD interface functions defined 75-77
Appendix 3: LPRPRT_DRYR_REGISTER realization 77-79
Appendix 4: FNBUILDLPRPIPE code 79-81 <br / > References 81-82
Thanks 82
Related dissertations
- Research and implementation of data recorder SD card and embedded USB host based
- Research and Implementation of Data Acquisition System Based on Mobile GIS Technology
- The Research and Implementation of Embedded Virtual Roaming Scene’s Dynamical Generation
- The Research of the Mass Data Out-of-Core Organization and Retrieval Method of Embedded Three-dimensional Electronic MAP
- The Design of Data Storage and Communication Module Based on Embedded Technology
- USB HOST embedded systems technology research and achieve
- Design and Implementation of USB host , USB - RS232 interface converter
- USB Technology and Its Application in Embedded System
- The Design and Implementation of an Embeddeb WEB Server
- Study of Data Storage Based on the ARM and USB-Host in Chemical Irradiance Detecting System
- Development of Embedded Platform for Computerized Embroidery Machine
- Technology Researcher Based on Mass Storage USB HOST
- The Design of Car MP3 Player System
- Research and Design of Vehicle Travelling Data Recorder Mainframe Based on Vehicle Network
- The Research and Implement of an Temprature Measuring System Based on USB Host
- Research on Measurement and Control System of Electronic Universal Testing Machine Based on DSP
- Research and Realization of Embedded USB-HOST
- DSP-based micro intelligent reading System
- Reciprocating compressor line monitoring and diagnostic system development CMD-3N
- Internet access study of embedded devices