This paper makes research of Onboard Vending Machine(OVM)used in Bus Rapid Transit,the specific job is the design and implemention of its structure,hardware and software.Bus Rapid Transit is a new kind of public transport beyond rail transit and normal bus,its has more capacity than normal bus and has closed platform as rail transit,each Bus Rapid Transit also has a dedicated operation and dispatching system,at the present,there are more than 34 cities in China has Bus Rapid Transit.OVM is a kind of critical assistant vending machine in Bus Rapid Transit,it can reduce time needed to get in bus and stuff in bus,but there is still no relevant research in China.This paper try to do some research about OVM and make a prototype of it.This paper first make the module partition of OVM and design the shell of all modules due to usage requirements and environment.Then specified three critical technics in OVM control system:software architecture of embedded system,serial communicating protocol,application of design pattern.Next introduce the structure hardware and software of cash module,the hardware and software of pre-paid card reader,the hardware and software of I/O(input/ouput)module.At last,this paper also makes hierarchical design of application software,realize functional units in each layer by using the technique of dynamic linking library,realize user interface by using the technique of HTML(HyperText Markup Language),realize background program by using the technique of MFC(Microsoft Foundation Classes),the background program can satisified passengers and maintainers by call of function units and interaction of HTML files.The end of this paper points out some points that needs to be polished intending to provide some help for future research. |