Hierarchical Firmware’s Design and Implementation for Thermal Printer
- Author
- YinHongFei
- Advisor
- JiaZhiPing
- School
- Shandong University
- Major
- Computer technology
- Classification
- TP334.8 Printing devices
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 49
- Citations
- 0
Abstract
Hierarchical firmware is designed especially for thermal printer, and it includes basic print control system and special function for thermal print technology. After a carefully requirement analysis, this paper describes the design principle of hierarchical firmware and implementation method.The basic principle for firmware’s design is keeping hierarchical and modular to improve the extensibility and reusability. Thus, any changes of one module can hardly affect others. For example, by separating applications and system functions, we can only adjust applications when applying this system to another platform. The key modules include orders analysis, memory management and file management.In order to address more complicated print control process, we introduce a novel theory named event-based task management. For replacing print control with task management, this method makes system development more efficient. Furthermore, it ensures tasks scheduling only occurs when it is necessary, and it also decreases the times of task context switching.To fulfill the requires of executes continuously for thermal print process, we introduce a novel strategy that both tasks and interrupt service routines need to apply allowance from tasks scheduler before they begin to run. For keeping the quality of print process, print task cannot be preempted by other tasks. As we all know, interrupt service routines have a higher priority and can preempt the system’s control easily. Thus, we need take tasks and interrupt service routines under unified management to decide which task runs.By now, our hierarchical firmware for thermal printer has been widely used and it performs very stable. As our firmware has been designed with high hierarchical and modular, it can be easily extended when need to face new changes, and it also decreases the high expensive for system maintenance.
Table of contents
Summary 8-9
ABSTRACT 9-10
Chapter 1 Introduction 10-14
1.1 system development background 10-11
1.2 research status major work 11-12
1.3 article organizational structure 12-13
1.4 article 13-14 <br / > Chapter 2 needs analysis 14-26
2.1 system Overview 14-15
2.2 system goals and solve problems 15-16
2.3 system Requirements Analysis 16-26
2.3.1 system functional requirements 17-23
2.3.2 system non-functional requirements 23-26 <br / > summary of Chapter 3 system design 26-35
3.1 overall design 26-30
3.1.1 system level design 27-29
3.1.2 application layer design 29-30
3.2 overall module 30-35
3.2.1 data Flow prototype 32-33
3.2. 2 tasks prototype 33-35
Chapter 4 detailed system design 35-45
4.1 instruction parsing principle 35-37
4.2 tasks and interrupt management 37-39
4.2.1 printer system task manager 37-39
4.2.2 printer system interrupt handling 39
4.3 code efficiency optimization principles 39-45
Chapter 5 System implementation and testing 45-72
5.1 command parsing achieve 45-54
5.1. 1 ZPL command parsing 45-52
5.1.2 BTP command parsing 52-54
5.2 document management implementations 54-64
5.2. a document stored in memory 55-59
5.2.2 open file management 59-64
5.3 memory management to achieve 64-69 <br / > 5.4 system test 69-72
Chapter 6 summary and Outlook 72-74
References 74-76
Thanks 76-77
dissertation defense review and table 77