实时操作系统在热打印机中的应用研究
发布时间:2018-03-16 03:27
本文选题:实时操作系统 切入点:热敏打印机 出处:《哈尔滨工业大学》2012年硕士论文 论文类型:学位论文
【摘要】:热敏打印机以其打印速度快、打印质量高、综合使用成本低等优点,在交易凭条、票据、条码/标签等打印领域得到广泛应用。目前市场对热敏打印机提出了越来越多的要求,如支持更多本地化语言、支持更复杂的人机接口、支持更丰富的通讯方式、支持更丰富的外接模块等,,使得传统的热敏打印机前后台处理模式由于自身的缺陷,已无法满足以上需求。 通过引入操作系统,将成熟平台上的驱动程序、协议栈、中间件及应用软件应用到热敏打印机中,能够弥补传统设计的弊端,改善产品设计弊端,为此本文开展了如下工作: 首先,搭建了实时操作系统的开发平台,通过比较各操作系统的经济性等可行性指标选择了并搭建了eCos3.0系统。并在eCos3.0自带的i386平台上对搭建的系统进行了测试及熟悉系统开发的基本过程,测试结果表明平台搭建成功。 接着,在SmartARM2400开发板进行了移植实验,主要讨论了硬件抽象层的移植,包括Flash驱动移植及文件系统的移植,并做了相应的移植验证测试,测试结果表明eCos在ARM平台上移植成功。 然后,将eCos系统向目标板98NP进行移植,并进行了移植测试,测试结果表明eCos系统在目标板上移植成功,在此基础上对目标板添加了按键指示灯驱动程序并进行了相关的测试,测试结果表明成功将实时系统在目标板移植之后可以根据产品实际需要添加相应的服务子程序。 最后,对打印机移植平台进行了任务模块及中断优先级的划分,并添加完善了相应的服务子程序,在此基础上对打印机系统进行了测试,包括实时性测试、通讯测试及打印效果测试实验。测试结果表明CPU运行频率一定时,程序在片内Flash运行实时性较片外SDRAM好;无论程序运行在片内Flash还是片外SDRAM,CPU运行频率升高,系统实时性也提高;目标板与上位机通讯及打印效果良好。 本文所研究的实时操作系统在热打印机上的应用得出的一些结论及数据为实时操作系统在其他设备上的应用提供了一定的借鉴。
[Abstract]:Thermal printer has been widely used in the fields of trade bar, bill, bar code / label and so on because of its high printing speed, high printing quality and low cost, etc. At present, the market has put forward more and more requirements for thermal printer. Such as supporting more localized languages, supporting more complex man-machine interfaces, supporting more abundant communication modes, supporting richer external modules, etc., which makes the traditional preprocessing mode of thermal printer due to its own defects. Can no longer meet the above requirements. By introducing the operating system and applying the drivers, protocol stacks, middleware and application software on the mature platform to the thermal printer, it can make up the disadvantages of the traditional design and improve the malpractice of the product design. For this reason, this paper has carried out the following work:. First of all, the development platform of real-time operating system is built. The eCos3.0 system is selected and built by comparing the feasibility index of each operating system, and the system is tested and familiar with the basic process of system development on the i386 platform of eCos3.0. The test results show that the platform is successfully built. Then, the porting experiment is carried out on the SmartARM2400 development board, which mainly discusses the transplantation of the hardware abstraction layer, including the porting of the Flash driver and the file system, and makes the corresponding transplant verification test. The test results show that the eCos is successfully transplanted on the ARM platform. Then, the eCos system is transplanted to the target board 98NP, and the transplant test is carried out. The test results show that the eCos system is successfully transplanted on the target board. On this basis, the key indicator driver is added to the target board and the relevant tests are carried out. The test results show that the real-time system can add corresponding service subroutines according to the actual needs of the product after transplanting the target board successfully. Finally, the task module and interrupt priority of the printer transplant platform are divided, and the corresponding service subroutine is added and perfected. On this basis, the printer system is tested, including real-time test. The test results show that when the frequency of CPU is fixed, the real-time performance of the program running in Flash is better than that in SDRAM, and the real-time performance of the system is improved no matter how frequently the program runs in or out of the chip. The target board communicates with the host computer and the printing effect is good. Some conclusions and data obtained from the application of real-time operating system in thermal printer in this paper provide some reference for the application of real-time operating system in other equipments.
【学位授予单位】:哈尔滨工业大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP334.8;TP316
【参考文献】
相关期刊论文 前10条
1 邵贝贝,许庆丰,王若鹏;嵌入式RTOS讲座(1) 什么是嵌入式实时操作系统[J];单片机与嵌入式系统应用;2001年07期
2 周永红,王玲玲;如何构建eCos嵌入式系统[J];单片机与嵌入式系统应用;2005年11期
3 户永清;罗江;;实时多任务操作系统(RTOS)引入单片机开发领域的研究[J];四川文理学院学报;2007年05期
4 窦振中,汪立森;标准并行接口汉字热敏微型打印机的实现[J];电子计算机与外部设备;2000年04期
5 陈杰;蒋玉峰;;基于RTOS的飞行数据采集系统[J];电子技术应用;2007年10期
6 陈杰;陈超;周建军;莫钦华;;基于RTOS的小型无人机飞行控制系统[J];电子技术应用;2009年04期
7 侯艳利;黄廷磊;彭建;;RTOS在电解质分析仪中的任务调度及应用[J];桂林电子科技大学学报;2007年01期
8 吴友宇;余翔;;基于飞思卡尔单片机的微型热敏打印机的设计与实现[J];国外电子元器件;2006年07期
9 姚玉春;孟Ze;孙以泽;孙志军;;基于DSP和RTOS的步进电机簇绒提花控制系统设计[J];机械设计与制造;2011年02期
10 易宏宇;宗光华;王巍;;基于RTOS的幕墙擦洗机器人平台控制系统开发[J];军民两用技术与产品;2007年02期
本文编号:1618142
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1618142.html