热敏打印机层次化固件的设计与实现
发布时间:2018-07-03 20:53
本文选题:打印机固件 + 层次化 ; 参考:《山东大学》2012年硕士论文
【摘要】:打印机层次化固件是专门针对热敏打印机设计的打印控制系统,不仅具备通用的打印控制功能,也同时考虑了热敏打印的特殊要求。本文通过深入分析热敏打印机的业务流程以及打印要求,针对热敏打印机的具体应用,设计了层次化的固件方案并给出了具体的实现原理。 在对固件的整体设计中,采用层次化和模块化的指导思想,以提高打印机固件代码的复用性和扩展性。在固件层次化架构中,通过对系统进行分层设计来限制层次内变化对其它层次的影响,例如将应用层的流程控制和系统层的硬件操作分开,可以在新产品的硬件发生变化时只改变系统层代码,从而有效复用应用层;此外,将系统按功能分成不同的模块,包括指令解析、内存管理、文件管理、设备管理等模块,模块的高内聚低耦合特性不但使得系统组织更清晰,也利于系统的复用。 在层次化固件中,为了应对打印控制过程的复杂状态,引入定制的基于事件的任务管理,将复杂的流程控制的更改变成简单的任务的创建和删除,进而提高新产品的研发速度。基于事件的任务管理确保了只在需要的时候进行任务调度,避免了不必要的任务切换。此外,任务管理的引入使得系统可以方便的更改控制流程,通过将具体业务分解为单个任务可以使得开发人员专注于开发的功能。 同时,考虑到热敏打印技术对打印连续性的特殊要求,引入中断和任务统一调度的概念,满足热敏打印的连续打印需求。热敏打印原理说明打印头加热的时间决定打印的质量,这样在打印的过程中如果被中断会严重影响打印效果。而中断的一般处理流程决定了中断服务程序会打断当前执行的程序,这样就要求引入中断和任务统一调度的概念,通过判断中断的优先级决定是否响应,进而满足热敏打印机连续打印的要求。 目前,打印机层次化固件已经应用到具体的热敏打印机中,并且性能稳定。在面对不断的新变化时能很快的进行扩展,同时系统具有层次性和模块化的特性,大大降低了系统的维护成本。
[Abstract]:Printer hierarchical firmware is a printing control system designed for thermal printer. It not only has universal printing control function, but also takes into account the special requirements of thermal printing. By analyzing the business flow and printing requirements of thermal printer, this paper designs a hierarchical firmware scheme and gives the implementation principle for the specific application of thermal printer. In order to improve the reusability and expansibility of the printer firmware code, the hierarchical and modular guidelines are adopted in the overall design of the firmware. In the firmware hierarchical architecture, the hierarchical design of the system is used to limit the influence of the change within the hierarchy on other layers, such as separating the flow control of the application layer from the hardware operation of the system layer. In addition, the system can be divided into different modules according to its functions, including instruction parsing, memory management, file management, equipment management and so on. The high cohesion and low coupling characteristics of the modules not only make the system organization clearer, but also facilitate the reuse of the system. In the hierarchical firmware, in order to deal with the complex state of print control process, the customized event-based task management is introduced to change the complex process control into simple task creation and deletion, thus improving the speed of new product development. Event-based task management ensures task scheduling only when needed and avoids unnecessary task switching. In addition, the introduction of task management makes it easy for the system to change the control flow. By breaking down the specific business into a single task, developers can focus on the development function. At the same time, considering the special requirements of thermal printing technology for printing continuity, the concepts of interrupt and task scheduling are introduced to meet the continuous printing requirements of thermal printing. The heat sensitive printing principle shows that the heating time of the printing head determines the quality of the printing, so if the printing process is interrupted, the printing effect will be seriously affected. The general process of interrupt determines that the interrupt service program will interrupt the current executing program, which requires the introduction of the concept of interrupt and task scheduling, and determines whether to respond by judging the priority of interrupt. And then meet the thermal printer printing requirements. At present, the hierarchical firmware of the printer has been applied to the specific thermal printer, and the performance is stable. In the face of continuous new changes can be expanded quickly, at the same time the system has the characteristics of hierarchy and modularization, greatly reduce the maintenance costs of the system.
【学位授予单位】:山东大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP334.8
【参考文献】
相关期刊论文 前10条
1 张炯,金惠华,尚利宏,昌盛;一种嵌入式系统软件的非干涉测试方法[J];北京航空航天大学学报;2004年07期
2 姚海根;;撞击式打印机及历史地位和现状(下)[J];出版与印刷;2008年03期
3 张会生;基于77E58的高速行式热敏打印机控制板的研制[J];电子技术应用;2004年01期
4 宁焕生;徐群玉;;全球物联网发展及中国物联网建设若干思考[J];电子学报;2010年11期
5 赵宸;;浅析黑盒测试与白盒测试[J];硅谷;2010年11期
6 王晶;吴上生;;热转印标签打印机控制电路的研究[J];工业仪表与自动化装置;2010年05期
7 李秋英,刘斌,阮镰;灰盒测试方法在软件可靠性测试中的应用[J];航空学报;2002年05期
8 陈红艳;;热转印印刷工艺的发展现状[J];今日印刷;2007年02期
9 于刚;热转印打印机的工作原理与维护[J];铁路计算机应用;2003年01期
10 马林;孙旭松;;针式打印机电源故障分析和检修方法[J];通信电源技术;2009年02期
,本文编号:2094971
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2094971.html