• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (7): 167-171.

• 论文 • Previous Articles     Next Articles

Design and Implementation of a Prepayment  Safe System Based on Centralized Control

SONG Zhiqiang1,2,SHAN Lei3   

  1. (1.Department of Control and  System Engineering,
    School of Management and Engineering,Nanjing University,Nanjing 210093;
    2.Department of Information,Suzhou Institute of Trade and Commerce,Suzhou 215009;
    3.Suzhou Peacock Electronics Co., Ltd, Suzhou 215001,China)
  • Received:2010-09-10 Revised:2010-12-15 Online:2011-07-21 Published:2011-07-25

Abstract:

A prepayment safe system based on centralized control is designed and implemented. The system consists of industrial personal computer, coin acceptor, bill acceptor, slave computer, power, etc. The structure diagram is given, the industrial personal computer instead of the system of microchip and LCD is the host, a communication protocol relevant to slave computer is realized, and communication protocol relevant to bill acceptor, as well as the key points of programming in software development is analyzed. The host software is programmed and rapidly developed by using C++ Builder 6. The system uses InterBase 6.5 as its database and it has lower cost compared with largescale databases such as SQL Server and Oracle. The modules of user interface, communication, system set, information record, advertisement are introduced in detail. To assure the accuracy for the  changemaking, an algorithm of changemaking problem based on this system is put forward. Through actual application, the stability and reliability of the system are proved, and the user demands are also met.

Key words: prepayment safe;RS485;communication protocol;software design;changemaking problem