Design of the Discrete I/O Device Based on Fieldbus
- Author
- QinDong
- Advisor
- SunZuo
- School
- Xi'an University of Science and Technology
- Major
- Communication and Information System
- Classification
- TP273 Automatic control,automatic control system
- Degree
- Master's thesis
- Year
- 2010
- Downloads
- 114
- Citations
- 1
Abstract
Along with information technology’s development, the intellectualization, theinformationization, and the network become the modern industry control,s hot spots. Sincethe 1980s, the opening industrial control fieldbus has developed rapidly, and has changed thestatus of technology. Gradually, a kind of product, long-distance IO has developed maturelywhich is based on the network connections dispersion control and the embedded equipment’scontrol technology , may disperse the disposition in the field, connects local the input/outputsignals, realizes the request disposition.In the industrial control area, the fieldbus technology spreads control functions to thefield. MODBUS is one of the fieldbus standards, it conforms to the IEC physical layerstandard, provides with dual-media redundancy and time-critical transmission mechanism..Real-time industry field discrete data’s gathering presents developers with a wide rangeof requirements including increased processing performance, low power consumption, highI/O bandwidth for data acquisition, scalable storage capability, reliability, long-life supportand standards-based connectivity. The wide range of ARM processors, whose characters arelower price, lower power consumption, easier development and higher processingperformance, helps developers deliver the highest performance for the gathering system.S3C2440 is one kind of technical grade ARM microprocessor, because of its high ratio ofperformance to price, its high dependability and so on, therefore selects it to do for the systemdevelopment hardware platform.Linux operating system is widely used in ARM application in virtue of its simply andhigh efficient kernel, abundant network performance and sustainment to many processors,enabled it to obtain the widespread application in the embedded industrial control area, butthe real-time processing industry field discrete data is one of industrial control domain mainapplications.In this paper,“Design of the discrete I/O device based on fieldbus”implements an intact and general embedded system development platform. It briefly introduces the I/O devicebased on the MODBUS fieldbus, this device has connected the MODBUS fieldbus and thetraditional discrete control device. First briefly introduces the system overall concept design,second, divides into the system design the hardware design and the software design two majorparts.The system hardware first carries on the simple introduction to the ARM processor andthe S3C2440 microprocessor, importantly elaborated the S3C2440 processor and the memory(Nand and SDRAM) connection and so on RS485, GPIO designs, analysis to the discerteinput/output circuit in depth, may simultaneously carries on 16 group discrete the output andgathering, and has made the related debugging to the hardware.The system software divides into the superior machine and the lower position machinetwo parts: The superior machine takes Windows XP as the developing platform, uses theVC++ software designing communication surface, MSComm controls to carry on theMODBUS serial port programming, it has the simplicity of operating and strong flexibility.The lower position machine takes embedded Linux as the core platform, first constructsembedded Linux, mainly includes bootloader, kernel translation and transplant as well asfilesystem’s construction. Then to the MODBUS agreement’s transplant and the characterdevice driver (serial port, GPIO) has made the thorough analysis, especially has realized withthe C language based on RS485 the communication MODBUS serial port programming, hasgiven the software flow chart and the core code, and has carried on the debugging to thesoftware.
Table of contents
Abstract 2-4
ABSTRACT 4-9
1 Introduction 9-15
1.1 Introduction
1.2 Background 9-10
1.3 line of research and content structure 10-11
1.3.1 line of research 10-11
1.3.2 content structure 11
1.4 Analysis of Key Technologies 11-15
1.4.1 fieldbus technology 11-12
1.4.2 embedded technology 12-15
2 MODBUS fieldbus technology overview 15-23
About
2.1 MODBUS bus technology and features 15
2.2 MODBUS protocol serial link layer implementation 15-18
2.2.1 MODBUS master / slave protocol principles 16
2.2.2 MODBUS bus two serial transmission mode 16-18
2.3 Error detection domain 18-19
2.4 MODBUS application layer protocol 19-22
2.4.1 MODBUS function code 19-21
2.4.2 MODBUS abnormal response 21-22
2.5 This chapter Summary 22-23
3 overall program design 23-26
About 3.1 Remote IO products 23
the
the 3.2 IO module demand analysis 23-24
3.3 system hardware design 24
3.4 system software solutions designed 24-25
3.5 This chapter Summary 25-26
switch I / O module hardware structure design 26-41
4.1 hardware system overall design 26
the
a 4.2 core processor chip select 26-28
4.2.1 the ARM About 26
4.2.2 S3C2440 Introduction 26-28
4.3 memory modules 28-30
4.4 power module 30-31
4.5 IO module 31-34
4.5.1 GPIO interface introduced 31-32
4.5.2 switch input and output part of the circuit design 32-34
4.6 RS485 module 34-37
4.6.1 serial basic type introduced 34-36
4.6.2 serial circuit design 36-37
4.7 Other peripheral module 37-40
4.7.1 clock module 37
the
the 4.7.2 reset the module 37-38
4.7.3 JTAG debug module 38-39
4.7.4 Network Module 39
4.7.5 keyboard module 39
4.7.6 RS232 to RS485 module 39-40
4.8 This chapter Summary 40-41
5 operating system transplant driven development 41-62
5.1 embedded operating system 41-42
5.2 BOOTLOADER transplant 42-44
5.2.1 U-Boot About 42
5.2.2 U-Boot running analysis 42-43
5.2.3 U-Boot transplant 43-44
5.3 embedded Linux kernel transplant 44-49
5.3.1 Introduction to Embedded Linux 44
5.3.2 embedded Linux advantage of 44-45
5.3.3 Embedded Linux transplantation 45-49
5.4 embedded root file system build 49-51
5.4.1 Buybox About 50-51
5.4.2 Busybox configuration compiled 51
the 5.4.3 root file system mirror build 51
5.5 MODBUS protocol transplant 51-57
5.5.1 FreeMODBUS About 51-52
5.5.2 FreeModbus agreement needed software / hardware needs 52
5.5.3 freemodbus transplant 52-56
5.5.4 Test Results 56-57
5.6 Linux character device driver development 57-61
5.6.1 GPIO driver 58-59
5.6.2 serial driver 59-61
5.7 Chapter Summary 61-62
the 6 switch I / O module software structure design 62-76
6.1 system communication needs and programs 62-63
6.1.1 system communication topology analysis 62-63
6.1.2 communication software design and analysis 63
6.2 upper machine serial communication 63-68
6.2.1 MSComm introduced 63-64
6.2.2 MSComm control common properties 64-
6.2.3 application MSComm control communication program design 64-68
6.3 lower machine serial communication 68-75
6.3.1 header files 69
6.3.2 Open serial 69-70
6.3.3 set the serial port 70-73
6.3.4 serial receiver 73-74
6.3.5 serial send 74-75
6.4 This chapter Summary 75-76
7 Conclusion 76-77
7.1 This article summarizes 76
7.2 Prospects 76-77
Acknowledgements 77-78
the
References 78-80
Appendix 80
Related dissertations
- The Research of Embeded Intelligent Household Based on ARM
- Research on Intelligent Home Furnishing system based on Android
- Design and Implementaiton of a Human-computer Interaction System Train Monitoirng Device
- Human-Computer Interaction Technology Research of Gene Amplification Based on Arm
- Design and implementation of the embedded terminal based on Qt multimedia player
- The Design and Implementation of Data Terminal and Sensor Network Gateway of Mesh Emergency Network in Mine
- Theoretical Research on Image Transmission System Basedon ARM and Bluetooth Technology
- The Design of Reconfiguration of FPGA Based on ARM in a Long Distance
- Study and Implementation on Detection System of Generator Insulation Overheating Device
- Design and Realization of Remote Video Monitoring System Based on the Embedded System
- The Research on Embedded Flight Control System Based on Quadrotor X450
- The Design of Portable Video Surveillance Terminal Based on ARM
- Research of Embedded Home Video Surveillance System Based on S3C2440
- The Unattended Telecommunication Room of Data Acquisition System
- Research and Design of Embedded Intelligent Concentrator Based on M-Bus
- As the design device of dynamic control system based on ARM
- The Development of Embedded Remote Data Acquisition System for Internet of Things
- Research of Projection Stereo Lithography Network Control System Base on ARM
- Design and Implementation of Smart Home System Based on ARM
- Embedded Control Module Designed for Vacuum Coating Device Based on ARM