Based on Embedded Linux System Instrument Driver Module Design

Author
DingXiaoZuo
Advisor
TianShuLin
School
University of Electronic Science and Technology
Major
Measuring Technology and Instrument
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2009
Downloads
178
Citations
1

Request the full text

Abstract

Along with the rapid development of computer science and information technology, embedded technology, one of the best-developed branches of that, gains a wide range of applications in the scientific instrument field.At the beginning of this paper, several common embedded operating systems were analyzed. According to the comprehensive comparison, it was found that open-source Linux system as an advanced, efficient and stable operating system is well suited for developing embedded instrument.Device driver is one of the most important parts for developing software of embedded system. The main contents of this paper are the development of Linux device drivers that are suitable for the embedded Linux instrument, and two kinds of drivers were discussed. The first one is the driver that drives the hardware device inside the local instrument. And the second one is the driver that makes the instrument controlled by PC remotely when the instrument is a unit of the network-integrated test system.In the discussion of the first one, the paper introduced and compared several methods of data transfer between user space and kernel space. Then, combined with the instances of TDR cable test module and power management module in the project of network failure analyzer (NFA), the paper described the usage of proc file system for driver development. The driver module developed with proc file system is clear in structure, easy in use and fit for non-realtime application. The power management module can reduce the power consumption for the portable embedded system. After that, the paper discussed the usage of UIO (Userspace I/O) for driver development, also with the example of DDS waveform generator module in the Arbitrary Waveform Generator (AWG) project. This sort of driver fits for the device of large throughput, realtime or simply reading, writing register and handling interrupt.When discoursing on the remote device driver, the article focused on three aspects, which were USB driver, Ethernet driver and application design. Linux USB Gadget Ehternet is a kernel module that can simulate the USB into the Ethernet interface. With the help of this module, the USB driver can be much simplified and easy-transplanted and can share application with Ethernet remote driver. Application layer program used server and client model as its communication model and defined application layer protocol. TCP/IP protocol was used to ensure the correctness of data transfer on the network and opening of the program framework.So far, all driver instances mentioned in the paper have successfully running in the NFA and AWG, which have successfully passed technical appraisal.

Table of contents

Abstract 4-5 ABSTRACT 5-9 Chapter Introduction 9-16 1.1 embedded systems applications in instrumentation 9-10 1.2 embedded operating system overview 10-14 1.2.1 embedded operating system selection method 10-12 1.2. 2 common embedded operating system 12-14 1.3 content of this study 14-16 Chapter embedded Linux operating system and device drivers 16 -25 2.1 embedded LINUX operating system 16-20 2.1.1 embedded Linux development and current status 16-17 2.1.2 Linux kernel structure 17-19 2.1.3 Linux source code directory Description 19-20 2.2 LINUX-based instrument driver design 20-25 2.2.1 internal device driver structure design 20-22 2.2.2 remote instrument Driver structural design 22-25 Chapter instrument internal drive module design 25-55 3.1 kernel space and user space data exchange 25-31 3.1.1 kernel space and user space introduces 25-26 3.1.2 several common data exchange 26-31 3.2 using the PROC file system driver module design 31-46 3.2.1 proc file system Introduction 32 - 34 3.2.2 network TDR cable fault Tester test Driven design 34-41 3.2.3 network fault tester power management module design 41-46 <br / > 3.3 driver module using the UIO mechanism design 46-55 3.3.1 UIO mechanism introduced 46-48 3.3.2 arbitrary Waveform Generator DDS waveform generator module driven design 48-55 Chapter remote drive outside of the instrument module design 55-75 4.1 USB communication module design 55-61 4.1.1 Linux USB Gadget introduction 55-58 4.1.2 Gadget Ethernet transplantation 58-61 4.2 ethernet module design 61-64 4.3 based on TCP / IP protocol application layer communication module design 64-75 4.3.1 infrastructure 64-66 4.3.2 application layer protocol design 66 -69 4.3.3 PC control terminal design 69-71 4.3.4 instrument side design 71-75 CHAPTER functional testing and validation 75-79 Chapter VI Conclusion and Outlook 79-80 Thanks 80-81 References 81-82 <br / > during the research for Master 82-83

Related dissertations

  1. ARM embedded video monitoring system based on compressed sensing
  2. Linux operating system on the ARM hardware platform transplantation
  3. Embedded Software Design of AC Field Detection Instrument Based on ARM
  4. Research on Embedded Control System for Palletizing Robot
    YangYang ·Nanjing Forestry University ·2013 ·Master's thesis
  5. Research and Design on Embedded Face Recognition Entrance Guard System
    LiuXinPeng ·Hebei University of Engineering ·2013 ·Master's thesis
  6. Design and Implementation of Experiment Platform for Operating System Based on Linux
    XiaoLiang ·Central South University ·2013 ·Master's thesis
  7. The Design and Implementation of Embedded High Definition Video Monitoring System
  8. Embedded TCP streaming media playing system based on
  9. Research on Embedded Network Video Monitoring System Based on the ARM
  10. Lights Control and Test System Based on Qt
  11. Research on GPS Vehicle Navigation System Based on ARM9
  12. The Study of Intelligent Traffic Signal Based on Fuzzy Neural Network
    ZhouXianWen ·West China University ·2012 ·Master's thesis
  13. System of Video Surveillance on Slip-form Paver
    WangJiangTao ·Chang'an University ·2013 ·Master's thesis
  14. Design and Implementation of the Embedded Video Surveillance Server Based on ARM and Linux
    JiaoFangChao ·Shandong Normal University ·2012 ·Master's thesis
  15. Design of the ECG Telemobitoring Terminal Based on Embedded Linux and GPRS
    LiGuan ·Tianjin Medical University ·2009 ·Master's thesis
  16. Design and Research on Chinese Medicine Coating’s Monitoring System Based on ARM-LINUX
    LouZuo ·Nanchang University of Aeronautics and ·2011 ·Master's thesis
  17. The Research and Design of Embedded Video Surveillance for Baby Based on OpenCV
    JiangYaMing ·Jinan University ·2012 ·Master's thesis
  18. Standard Industrial Signal Acquisition System Based on ARM
    WanQuan ·South China University of Technology ·2012 ·Master's thesis
  19. Research of Protocol Conversion Module Based on CANopen-EtherNet/IP
    XuDongHui ·Tianjin University of Technology ·2012 ·Master's thesis
  20. Design and Implementation of Command&Control Computer with Master-Slave