熱敏打印機(jī)層次化固件的設(shè)計(jì)與實(shí)現(xiàn)
本文選題:打印機(jī)固件 + 層次化 ; 參考:《山東大學(xué)》2012年碩士論文
【摘要】:打印機(jī)層次化固件是專門針對(duì)熱敏打印機(jī)設(shè)計(jì)的打印控制系統(tǒng),不僅具備通用的打印控制功能,也同時(shí)考慮了熱敏打印的特殊要求。本文通過(guò)深入分析熱敏打印機(jī)的業(yè)務(wù)流程以及打印要求,針對(duì)熱敏打印機(jī)的具體應(yīng)用,設(shè)計(jì)了層次化的固件方案并給出了具體的實(shí)現(xiàn)原理。 在對(duì)固件的整體設(shè)計(jì)中,采用層次化和模塊化的指導(dǎo)思想,以提高打印機(jī)固件代碼的復(fù)用性和擴(kuò)展性。在固件層次化架構(gòu)中,通過(guò)對(duì)系統(tǒng)進(jìn)行分層設(shè)計(jì)來(lái)限制層次內(nèi)變化對(duì)其它層次的影響,例如將應(yīng)用層的流程控制和系統(tǒng)層的硬件操作分開(kāi),可以在新產(chǎn)品的硬件發(fā)生變化時(shí)只改變系統(tǒng)層代碼,從而有效復(fù)用應(yīng)用層;此外,將系統(tǒng)按功能分成不同的模塊,包括指令解析、內(nèi)存管理、文件管理、設(shè)備管理等模塊,模塊的高內(nèi)聚低耦合特性不但使得系統(tǒng)組織更清晰,也利于系統(tǒng)的復(fù)用。 在層次化固件中,為了應(yīng)對(duì)打印控制過(guò)程的復(fù)雜狀態(tài),引入定制的基于事件的任務(wù)管理,將復(fù)雜的流程控制的更改變成簡(jiǎn)單的任務(wù)的創(chuàng)建和刪除,進(jìn)而提高新產(chǎn)品的研發(fā)速度;谑录娜蝿(wù)管理確保了只在需要的時(shí)候進(jìn)行任務(wù)調(diào)度,避免了不必要的任務(wù)切換。此外,任務(wù)管理的引入使得系統(tǒng)可以方便的更改控制流程,通過(guò)將具體業(yè)務(wù)分解為單個(gè)任務(wù)可以使得開(kāi)發(fā)人員專注于開(kāi)發(fā)的功能。 同時(shí),考慮到熱敏打印技術(shù)對(duì)打印連續(xù)性的特殊要求,引入中斷和任務(wù)統(tǒng)一調(diào)度的概念,滿足熱敏打印的連續(xù)打印需求。熱敏打印原理說(shuō)明打印頭加熱的時(shí)間決定打印的質(zhì)量,這樣在打印的過(guò)程中如果被中斷會(huì)嚴(yán)重影響打印效果。而中斷的一般處理流程決定了中斷服務(wù)程序會(huì)打斷當(dāng)前執(zhí)行的程序,這樣就要求引入中斷和任務(wù)統(tǒng)一調(diào)度的概念,通過(guò)判斷中斷的優(yōu)先級(jí)決定是否響應(yīng),進(jìn)而滿足熱敏打印機(jī)連續(xù)打印的要求。 目前,打印機(jī)層次化固件已經(jīng)應(yīng)用到具體的熱敏打印機(jī)中,并且性能穩(wěn)定。在面對(duì)不斷的新變化時(shí)能很快的進(jìn)行擴(kuò)展,同時(shí)系統(tǒng)具有層次性和模塊化的特性,大大降低了系統(tǒng)的維護(hù)成本。
[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.
【學(xué)位授予單位】:山東大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2012
【分類號(hào)】:TP334.8
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 張炯,金惠華,尚利宏,昌盛;一種嵌入式系統(tǒng)軟件的非干涉測(cè)試方法[J];北京航空航天大學(xué)學(xué)報(bào);2004年07期
2 姚海根;;撞擊式打印機(jī)及歷史地位和現(xiàn)狀(下)[J];出版與印刷;2008年03期
3 張會(huì)生;基于77E58的高速行式熱敏打印機(jī)控制板的研制[J];電子技術(shù)應(yīng)用;2004年01期
4 寧煥生;徐群玉;;全球物聯(lián)網(wǎng)發(fā)展及中國(guó)物聯(lián)網(wǎng)建設(shè)若干思考[J];電子學(xué)報(bào);2010年11期
5 趙宸;;淺析黑盒測(cè)試與白盒測(cè)試[J];硅谷;2010年11期
6 王晶;吳上生;;熱轉(zhuǎn)印標(biāo)簽打印機(jī)控制電路的研究[J];工業(yè)儀表與自動(dòng)化裝置;2010年05期
7 李秋英,劉斌,阮鐮;灰盒測(cè)試方法在軟件可靠性測(cè)試中的應(yīng)用[J];航空學(xué)報(bào);2002年05期
8 陳紅艷;;熱轉(zhuǎn)印印刷工藝的發(fā)展現(xiàn)狀[J];今日印刷;2007年02期
9 于剛;熱轉(zhuǎn)印打印機(jī)的工作原理與維護(hù)[J];鐵路計(jì)算機(jī)應(yīng)用;2003年01期
10 馬林;孫旭松;;針式打印機(jī)電源故障分析和檢修方法[J];通信電源技術(shù);2009年02期
,本文編號(hào):2094971
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/2094971.html