计算机与现代化

• 应用与开发 • 上一篇    下一篇

 基于状态模式的地铁纸币处理器设备驱动程序设计

  

  1. 南京理工大学机械工程学院,江苏南京210094
  • 收稿日期:2014-12-23 出版日期:2015-04-27 发布日期:2015-04-29
  • 作者简介:卢超(1990-),男,江苏淮安人,南京理工大学机械工程学院硕士研究生,研究方向:地铁自动售检票(AFC)系统; 徐骏善(1966-),男,江苏南京人,副教授,硕士,研究方向:计算机集成制造,企业信息化。

 Writing Device Driver Program of Metro Banknote Acceptor Machine Based on State Pattern

  1. School of Mechanical Engineering, Nanjing University of Science & Technology, Nanjing 210094, China
  • Received:2014-12-23 Online:2015-04-27 Published:2015-04-29

摘要:  介绍地铁自动售票机(TVM)纸币处理器设备驱动程序编写所涉及的相关技术,主要包括设计模式中的状态模式,并辅之以Windows线程同步技术。结合这2种技术实现工控机和纸币处理器的交互和通信。该方法对符合RS-232的设备的驱动程序编写有着一定的参考意义。

关键词:  , 自动售票机, 设备驱动, 状态模式, 线程同步

Abstract: This paper introduces the related technology of subway automatic ticket vending machine software when writing Banknote Acceptor Machine device driver, including state pattern which is one of design patterns and complemented by thread synchronization technology for Windows. Combining, the above two kinds of technology to realize the industrial computer and Banknote Acceptor Machine BU interaction and communication, the methods have a certain reference value for the programming of compliance with RS-232 device driver.

Key words: automatic ticket vending machine, device driver, state pattern, thread synchronization