Computer and Modernization

Previous Articles     Next Articles

 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

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