Design Based on ARM Real-time File Storage Management System
- Author
- WangNing
- Advisor
- DuGang
- School
- Chinese Geology University (Beijing)
- Major
- Detection Technology and Automation
- Classification
- TP333 Memory
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 16
- Citations
- 0
Abstract
With the intelligent measuring instruments now used more and more popular, itsreal-time nature of the system requirements and the increasing stability. Moreover, thecurrent pace of development in this field is also growing fast, the measuringinstrument updates and scalability requirements are relatively high. This requires thesystem to be updated and expanded capacity can be guaranteed. Therefore, this paperis mainly for the above two requirements, ARM-based real-time file storagemanagement system design.The system will eventually achieve the functions are: to ensure the premise ofreal-time data acquisition and display on VFD display; can always under the controlof the user to save the converted data (on the PC side can show the data analyzed);through Local access can always read and manage stored data content; systemfirmware upgrade. Among them, display and keyboard control fully considered thereal-time requirements, have carried out interrupt mode processing.The system needs to complete the application layer software modules: inembedded real-time operating system kernel Toppers/ASP to complete the four mainfunctions of tasks: handling data acquisition, real-time data display, keyboardinteractive, file storage management. The system needs to complete the driver layersoftware modules: Based on the LPC2478(ARM7) controller keyboard driver; FatFStransplant on an SD card interface driver. Bootloader design: Each has debuggingembedded system development and expansion of the functional needs, so this featureis also carried out a detailed design. Join in the bootloader on the basis of the systemfirmware update upgrade module: You can remotely upgrade firmware (Xmodem filetransfer protocol), you can also upgrade the firmware of local SD card (FatFS filesystem support).System design final test results: The main test of the system stability and the long-running real-time data collection preservation. The system design can meet themarket existing benchtop digital multimeter performance requirements, but also in thefile storage management has gone beyond some high-performance digital multimeter.System Design Summary: low performance early in the design completed, afterthe software structure optimization, the final result than the initial design has beensignificantly improved performance, mainly reflected in: File traversal and data typeconversion in two ways. That part of the performance increase of60%or more.Scalability of the system is very flexible and can be extended as required network portfor remote communication (currently serial communication), high-speed USBcommunication (currently SD card communication), on-site analysis of large dataprocessing. The part of the expansion is not yet complete, the future need furtherimprovement.
Table of contents
Summary 5-6
Abstract 6-11
Chapter 1 Introduction background 11-13
1.1 systems research 11
1.2 system the purpose and significance of the study 11-12
1.3 system to complete the function 12-13
Chapter 2 hardware platform 13-18
design and working principle 2.1 hardware platforms 13-15
2.1.1 hardware platform design 13
2.1.2 works 13-15
2.1.2.1 original data collection transmission 14
2.1.2.2 raw data 14
2.1.2.3 data processing 14
2.1. 2.4 function Control 14-15
2.1.2.5 interface displays 15
2.1.2.6 file storage management 15
2.1.2.7 overall system work 15
2.2 board-level hardware module design 15-18
2.2.1 LPC2478 CPU design 15-17
2.2.2 SDRAM design 17
2.2.3 NorFLASH design 17
2.2.4 keyboard design 17
2.2.5 display design 17 - 18
nbsp Chapter 3 software development environment ; 18-21
3.1 Eclipse development platform free 18-19
3.1.1 features support 18 <br / > 3.1.2 interface demo 18-19
3.2 GNU cross compiler debugging tools 19
3.2.1 toolchain 19
3.2 .2 Makefile project preparation 19
3.3 OpenJTAG debug agent 19-21
Chapter 4 System software Design 21-54
4.1 Toppers / development ASP kernel 21-24
4.1.1 Toppers / ASP kernel architecture 21
4.1.2 static API and configuration 21-22
4.1.3 Toppers / ASP kernel development 22-23
4.1.4 the system is designed to use the system development ( configuration main.cfg in ) 23-24 <br / > Creating 4.1.4.1 main task create nbsp 23
4.1.4.2 data acquisition tasks ; 23
create nbsp 4.1.4.3 GUI display tasks ; 23 <br / > Creating 4.1.4.4 keyboard handling tasks 23
create nbsp 4.1.4.5 file operational tasks ; 23
4.1.4.6 LCD refresh cycle timer mechanism opens 23
4.1.4.7 communication and synchronization mechanisms between tasks created 23-24
4.1.4.8 memory Management to develop 24
4.1.4.9 middleware FatFS 24
4.2 Bootloader design 24-30
4.2.1 Requirements 24-25
4.2.2 the overall structure design 25-26
4.2.3 detailed design 26-30
4.2.3.1 file Structure 26-27
4.2.3.2 Makefile MCU -related configuration settings 27-28
4.2.3.3 API function 28-29
4.2.3.4 Start.s Detailed 29-30
interactive nbsp 4.2.3.5 command ; operating results 30
4.2.3.6 Bootloader after starting 30
4.3 FatFS file system on the SD card transplant 30-35
4.3.1 FatFS file hierarchical system design nbsp 31
4.3.2 LPC2478 the SD / MMC card interface ; 31-33
4.3.3 portable concrete realization 33-35
4.3.3.1 data type and configuration achieve 4.3.3.3 underlying function 33
performance testing 33
4.3.3.4 after transplantation 33 - 35
4.4 graphical user interface (GUI) package 35-38
package and object manipulation of data structures 4.4.1 class 35-38
4.4.1.1 structural class 35-36
4.4.1.2 object Update 36
4.4.1.3 data Acquisition interface 36-37
4.4.1.4 file Storage management interface 37-38
4.4.2 interface display mechanism 38
4.4.2.1 memory design 38
4.4.2.2 screen refresh mechanism 38
4.5 keyboard -driven design 38-41
4.5.1 functional analysis of key acquisition chip 38-39
4.5.1.1 I2C bus introduction 38-39
4.5.1.2 CH452 chip 39
4.5.2 driver function key reads the realization 39-41
4.5.2.1 keyboard interrupt mode initialization 40
4.5.2.2 keyboard open 40
4.5.2.3 keyboard data Read 40-41
4.5.2.4 keyboard light control 41
4.5.2.5 keyboard close 41
4.5.2.6 interrupt service function 41
4.6 application design 41 - 54
4.6.1 application development principles 41-42
4.6.1.1 the most notable feature is the thread priority and interrupt priority 42
4.6.1.2 shared memory design communication and synchronization nbsp 42
4.6.1.3 tasks between threads ; 42
4.6.1.4 main thread task design 42
4.6.2 application structure 42-54
4.6.2.1 global variables (critical DB) design 43-44
4.6.2.2 task communication 44
4.6.2.3 data acquisition task (TASK1) 44-45
4.6.2.4 user interface displays the task (TASK2) 45-47
4.6. 2.5 keyboard control task (TASK3) 47-48
4.6.2.6 file storage management tasks (TASK4) 48-54
Chapter 5 System test 54 - 56
5.1 stability Test 54-55
5.1.1 testing process 54
5.1.2 test Results 54-55
5.2 real-time test 55-56
5.2.1 Real-time data acquisition 55
5.2.2 real-time data storage 55-56
Chapter 6 design Summary and expansion difficult and technical key 56-63
6.1 system design 56-60
6.1.1 Bootloader boot code design 56-59
6.1.1.1 completion 56-57
6.1.1.2 Xmodem file transfer protocol 57-59
6.1.2 file System (FatFS) dependent SD card control drive 59-60
6.1.3 file storage management performance 60
6.1.3.1 document retrieval 60
6.1.3.2 Float convert string 60
6.1.3.3 file System optimal access 60
6.2 system is not completed and pending extension 60-62
6.2. 1 Bootloader extended application communication mechanism 60-61
6.2.1.1 and development of the host 61
6.2.1.2 system Firmware Upgrade Interface 61
6.2.1.3 extensions can be implemented 61
6.2.2 file storage management extensions extended 61-62
6.2.3 GUI user interface 62
upgrade application 6.2.4 CPU 's 62
6.3 system in actual products 62-63
Thanks 63-64
References 64-67
Appendix 67-69
Related dissertations
- Design and Implementation of Harmless Agricultural Data Collection System
- ARM-based Multi-channel Data Acquisition Technology Research and Development
- The Study on the Resource and Service Releasing System Based on the Newest Opac
- The Research of Household Remote Monitoring Based on Embedded Web Server
- Remote Monitor System for Oil Wells Working Condition Based on GPRS
- The Design of Integrated Circuit Board Remote Maintenance Online Monitoring System
- Engine Room Monitoring System Based on the Embedded Web Server
- Research and Design of Intelligent Video Surveillance System Based on ARM
- The Research and Design of Embedded Graphic Remote Monitor Terminal
- Research and implementation of TaaS monitoring system
- The Design of Embedded Network Video Surveillance System Based on ARM9
- Gas Measurement and Control System Research Based on Satellite Communications
- Data Acquisition System of Cavern Based on Embedded Web Server
- Research and Design of Remote Monitoring System Based on ARM
- Research and Realization of Embedded Data Acquisition and Recording System for Industrial Process Based on ARM
- Study on Embedded Data Acquisition System Application
- The Study of Physiological Parameters Monitoring and Remote Wireless Alarming System Based on ARM
- Study on ARM-based Embedded Monitoring and Measuring System of Refrigerated Vehicle for Fresh-keeping of Fruit and Vegetable
- Research and Realization of Dynamic Simulation Circulating Water Device Control and Data Processing System Based on ARM
- Design of Human Physiological Parameters Acquisition System Based on Embedded Linux