摘要
本文设计并实现了一种集中控制型预付式保管箱系统,系统由工控机、硬币机、纸币机、下位机、电源等组成。主机由工控机代替了传统的单片机和液晶屏构成的系统,实现了与下位机相关的通信协议,分析了与纸币机相关的通信协议以及软件开发中的编程要点,主机软件采用C++Builder 6开发,实现了快速开发。数据库采用InterBase 6.5,相比SQL Server、Oracle等大型数据库,降低了系统的成本。重点介绍了用户界面、通信、系统设置、信息记录、广告等模块。为保证系统找零的准确性,提出了基于本系统的找零算法。通过用户实际应用,验证了所设计的系统是稳定且可靠的,能满足用户需求。
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.
出处
《计算机工程与科学》
CSCD
北大核心
2011年第7期167-171,共5页
Computer Engineering & Science