The Generic Driver Framework Design of USB Wireless Network Adapter Based on Linux
- Author
- ChenLiPeng
- Advisor
- ZhaoHongWei
- School
- Jilin University
- Major
- Applied Computer Technology
- Classification
- TP393.05 Network equipment
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 119
- Citations
- 1
- Linux operating system
- USB interface
- USB wireless network card drivers
- ieee802.11agreement
- Software Reuse
- software layered
Abstract
The Linux operating system is one leader in open source world.Linux is the best choicefor embedded projects that just because Linux is open source. To go through the purchase ofhardware in a typical embedded project, the production of circuit boards, cutting a suitableoperating system, add the process of application layer software. Want to choose a suitableoperating system on the basis of certain characteristics of the hardware, if the operatingsystem is closed that the difficulty can be imagined. Linux operating system supports manyUSB wireless card. Each Wireless card has it’s own driver, these drivers have the same orsimilar point from functions,responsibilities,the interface called and service agreements. Whynot to summarize the same point, and deal with their differences to design a USB wirelesscard generic driver?I must mention the driver in the process of cutting the Linux operating system whichmaking it support special hardware. In an embedded project which will often encountercertain hardware can not work, if do not know the driver’s knowledge at this time, theproblem will become very difficult. Driver source code occupy the largest proportion of theamount of code in the Linux operating system kernel. Therefore, the driver’s knowledge isvery worth to study. The purpose of this paper is to design generic driver framework programunder in-depth study Linux USB wireless network card drivers, which using software reuseand software layered technology to together the various types of USB wireless network carddriver, The generic driver framework program also can be used as ieee802.11an extension ofthe agreement in the driver layer. The various types of USB wireless network card puts thedifferences processing into the parameter file in user space. When need one network carddriver, the generic driver framework program reads the wireless card’s hardware parameterfile and dynamic composition of the network card driver. In this article, this process is that thesystem calls the generic driver framework program when a USB wireless card plugged intothe USB interface, the generic driver framework program goes to a specified path directory tofinds the parameter file of the hardware and reads the parameter file,generates thecorresponding parameter chain, then the generic driver framework chang into a proprietarydriver for this hardware. This whole process is similar to the driver to find the firmware, theprocess of looking for the firmware is also the first in the specified path directory to findfirmware, and then read into the hardware chip, only the firmware is compiled device chip toexecute instructions. If set up the driver accordance with this way, then the parameters in the parameter chain to be able to handle all the differences of their own hardware. This articledesign parameters data structure which in the parameter chain, design a parameter calculatorin the core part of the processing parameters, and seal the package several interface functionsof the drive communicate to USB devices. Parameter processing section also defines theparameters from and whereabouts.In this way to design the driver, then the proportion of the driver’s source code will begreatly reduced. And USB wireless network card in this article the generic driver frameworkprogram has matured, the preparation work of the USB wireless network card driver into thepreparation of the network card in the user space hardware parameter file. This paper selectedtwo different types of USB wireless card to test the effect of the generic driver framework,and test a network card working conditions, the driver works normal. In line with the originalintention of the original design.
Table of contents
Summary 5-7
Abstract 7-11
Chapter 1 Introduction 11-15
1.1 Background and Significance 11 - the main thesis of 13
1.2 13-15
Chapter 2 USB wireless network card driver software and hardware environment 15-24
2.1 Linux kernel 15-17
2.2 USB interfaces 17-20
2.3 Ieee802.11 protocol layer 20-22
2.4 USB wireless adapter 22-24
Chapter 3 to explore the function and parameter handling 24-43
3.1 parameters chain functional design 24-25
3.2 USB wireless LAN Driver writing tasks 25-26
3.3 private data structure design 26-40
3.3.1 priv_dev private data structures 26-29
3.3.2 parameters chain node data structure 29-34
3.3.3 private stack data structure 34-40
3.4 reads the parameter file 40-43
Chapter 4 drivers function 43-53
4.1 driver start, receive and stop functions 43-48
4.1.1 installed firmware 43-44
4.1. 2 Set queue 44-46
4.1.3 receiver function 46-48
4.1.4 stop function 48
4.2 Add Remove interface functions 48-49
4.3 configuration functions 49
4.4 configured to receive the filter function 49-50
4.5 send function 50-53 <br / > Chapter 5 tests and experiments 53-58
5.1 test objectives 53
5.2 tested devices 53
5.3 test Method 53
5.4 test Procedure 53-54
5.5 test results 54-58
Chapter 6 Conclusion and outlook 58-60
References 60-63
Thanks 63
Related dissertations
- USB Driver Programming Implementation Based on ARM and Linux Platform
- Design of Embedded Construction Safety Video Monitoring System Based on S3C6410
- Design of the High-speed Data Acquisition System Based on USB Interface
- Research of120Emergency Vehicle Terminal Multi-channel Data Acquisition System Based on Beidou Navigation Satellite System
- Design of Embedded Motion Controller Based on ARM and Motion Control Chip
- Research on facet reusable component library based on
- Research of the Software Components Retrieval Technology Based on Text and Graphic Processing
- Semantic Analysis for CASE Design Documation and Adaptive Evaluation for Components
- Design and Implementation of the Motion Control System Based on USB Interface
- Video Capture and Coding System Based on Embedded Systems
- Design and Implementation about ALSA Audio Driver Based on the ARM Platform
- Based on Design and Research of Beidou and GPRS Vehicle Terminal
- Research of Embedded Devices Based on Home Medicalmonitor
- Research on Virtual Digital Camera Based on Camera Link Interface
- Research on the Key Technology of Compiled-typed Cnc System Based on USB Communication Interface
- Design of Portable Methane Gas Detection with USB Interface
- Research of GIS Business System Software Rapid Development Technology Based on Product Line Mode
- Research and Design of Water Stop Remote Terminal Based on Embedded System
- Design and Implementation of Home Monitoring System Based on ARM
- Design of the Image Capturing Module for Optical Microscope Sequence Slice Base on USB