| As China’s urbanization and the rapid growth of private cars,the problem of urban traffic congestion is serious increasingly,and the city development is greatly restricted.In order to solve this problem,construction of rapid rail transit and public transportation is active in many cities of our country.The Automatic Fare Collection System(AFC)is a important component of the urban rail transit,and completes the work of tickets saling and checking efficiently and accurately without staff to guard.The Ticket Vending Machine(TVM)is the most important part of the AFC system,is also the most frequently used and most requirement terminal equipment,the robustness and stability of the software system will affect user experience directly.First,the study of this paper expounds the present development of AFC system、TVM and mobile payment at home and abroad.Then design and realize the metro automatic ticket vending machine software system based on We Chat payment under the background of Shen Zhen Metro Line 1 project.The design of the system such as hardware structure,software function modules,and business process is given based on the full investigation of the functional requirements of ticket vending machine software system,the focuses on the detailed design of the main modules of the main control module,such as business process of the master module,mode switch and communication business,the business process of maintenance module.In the end,I realize the metro automatic ticket vending system by Visual C++ develop language,applicating serial port communication technology,dynamic link library.The system has been tested by strict system function,safety and performance,then I analyze and summarize the test results,determined the system software can meet the requirements of on-line operation.The modular design is adopted in the process of design and implementation,this made the hardware module such as ticket issue module,read and write device,QR droid private,printer can be transplanted directly into other devices such as AVM,Gate to improve the reusable property of the program.This paper makes a simple analysis of the problems existing in the design and implementation of the system,then gives some improvements as a reference for future system upgrade and optimization. |