Development of Terminal Driver and Communication Programs on Embedded Linux
- Author
- LiJun
- Advisor
- LvYueGang
- School
- North China Electric Power University (Beijing)
- Major
- Control Theory and Control Engineering
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2009
- Downloads
- 217
- Citations
- 0
Abstract
Since 1991 distribution for the first time,the application of Linux is more and more widely.Embedded Linux is an operation system which is cut off and modified from common Linux,and which can run on embedded computer system.Since it has the advantages from Linux and Embedded System, Embedded Linux has large market prospect.This paper studies some problems of wind turbine generators industrial controller based on the open source Linux system and embedded chip at91rm9200 target board.It implements serial driver,analysis of the terminal of the driver,and debugging emphasis and difficulty of transplantation driver.It also implements the Modbus protocol,which is widely used in industrial field for instructions and data transmission function.At the end of this paper,there is an implementation of TCP/IP data transmission program.
Table of contents
Chinese Abstract 3
Abstract 3-6
first chapter 6-8
1.1 Linux Introduction 6-7 < br /> 1.2 research background and significance and research work done 7-8
Chapter terminal device driver development 8-18
2.1 terminal Equipment 8-10
2.1.1 serial Port terminal (/ dev / ttySn) 8
2.1.2 pseudo-terminals (/ dev / pty /) 8 - 9
2.1.3 console terminal (/ dev / ttyn, / dev / console) 9-10
2.2 terminal device driver structure 10-12
2.3 tty line settings 12-13
2.3.1 line set user-space interfaces 12
2.3.2 tty driver set_termios The 12
2.3. 3 tty driver ioctl function 12-13
2.4 UART device driver 13-18
Chapter terminal driver to prepare 18-28 <br / > 3.1 AT91RM9200 serial port driver data structures 19-21
3.2 AT91RM9200 serial driver initialization and release 21-22
3.3 AT91RM9200 serial data transceiver 22-26
3.4 AT91RM9200 serial interrupt program 26-28
Chapter driver debugging and transplantation 28-39
4.1 driver debugging 28 -32
4.1.1 kernel print information -printk () 28-29
4.1.2 how messages are recorded 29-30
4.1.3 speed Limit 30-31
4.1.4 printing device ID 31
4.1.5 using the / proc file system 31
4.1.6 debugging nbsp by monitoring ; 31-32
4.1.7 oops 32
4.1.8 other methods and tools 32
4.2 drivers transplant 32 - 36
4.2.1 portable data types 32-33
4.2.2 intervals 33-34
4.2.3 page Size 34
4.2.4 endian 34-35
4.2.5 data Alignment 35
4.2.6 kernel version 35-36 <br / > 4.3 migration from Linux2.4 device driver to Linux2.6 36-39
4.3.1 kernel modules Makefile 36
4.3.2 version of the kernel module is loaded when checking 36
4.3.3 kernel module loading and unloading function 36
4.3.4 kernel module usage count 36-37
4.3.5 kernel module export symbols 37
4.3.6 kernel module input parameters 37
4.3.7 kernel module alias , load the interface 37
4.3.8 structure body initialization 37
4.3.9 character device drivers and other 37-39
Chapter communication procedures and communication protocols developed 39-49 <br / > 5.1 socket-based communication program development 39-43
5.1.1 socket connection 39
5.1.2 socket attribute 39 -40
5.1.3 client - server model 40-41
5.1.4 client program development 41-42
5.1.5 server-side application development 42-43
5.2 Moudbus communication protocol development 43-49
5.2.1 Modbus communication protocol 44
5.2.2 Modbus for transfusion 44-45
5.2.3 Modbus protocol 45-49
Chapter VI Conclusion 49-50
References 50 - 52
Thanks 52-53
papers published during the study period and participation in scientific research situation 53
Related dissertations
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Study on Embedded Data Acquisition System Application
- Research and Realization on the Key Technology of Monitoring System about Granary Environment Based on ARM9
- The System Design and Implementation of Smart Home Control Terminal Based on Linux
- AGV car design and development of image recognition and motion control technology based on
- Research and Design on Embedded Face Recognition Entrance Guard System
- Research of the Embedded Tumor Medical Image Analyzer
- Design of Electroacoustic Air Defense Alarm Controller Based on ARM9
- The Designand Realization of Embedded USB Mass Storage System
- Design and Realization of intelligent mobile video surveillance system based on embedded and OpenCV
- Video Based on S3C6410Processing Terminal Design
- Ad Hoc Network Protocol Design by nRF24l01under the ARM-linux Environment
- Design of Image Acquisition and Wireless Transmission System for Barley Field Based on ARM and WiFi
- The Research on the Terminal Equipment in Power Quality Online Monitoring System
- The design of intelligent Home Furnishing monitoring system based on ARM
- Design of On-line Monitoring System for Circuit Breaker in Metro Based on Embedded System Traction Substation
- Research and Design of New Portable Family ECG Monitorring System
- The Crane Remote Monitoring System Based on Embedded Linux Research