Utility model content
Technical problem to be solved in the utility model is to provide a kind of automatic ticketing and peddles all-in-one, and all-in-one is peddled in this automatic ticketing can solve the problem that existing vending machine can not ticketing function singleness.
In order to address the above problem, the technical scheme that the utility model adopts is: all-in-one is peddled in this automatic ticketing, comprise the slot machine being arranged in cabinet, read paper money machine, small change unit and electric-motor drive unit, slot machine, read paper money machine and small change unit through MDB data bus module, code translator, control the single-chip microcomputer that drives multiple electric motors, deposit unit is connected with electric-motor drive unit, on single-chip microcomputer, be connected with timer conter, in described MDB data bus module, be connected with card reader, described single-chip microcomputer is connected with PC host computer by MAX232 module, in described MAX232 module, be connected with GPRS module, on described single-chip microcomputer, be connected with printer.
Above-mentioned automatic ticketing is peddled in the technical scheme of all-in-one, technical scheme can also be more specifically: described single-chip microcomputer is MSC51 single-chip microcomputer, described printer is μ P printer, 8 output port P0.0~P0.7 of described single-chip microcomputer respectively with the corresponding connection of data-in port DB0~DB7 of described printer, between described single-chip microcomputer and described printer, be connected with gating unit, described gating unit comprises first and the door being connected in parallel, second with door, described second is connected the control enable port EN of triple gate with the output port of door, described first with an input port of door with described second with an input port phase of door and connect and be connected with an addressing port P2.7 of described single-chip microcomputer afterwards, described first is connected with the WR write port of described single-chip microcomputer with another input port of door, described first is connected with the STB gating port of described printer with the output port of door, described second is connected with the RD read port of described single-chip microcomputer with another input port of door, the input port of described triple gate is connected with the BUSY port of described printer, the output port of described triple gate is connected with the output port P0.7 of described single-chip microcomputer and the data-in port DB7 of described printer.
Further: the T1IN port of described MAX232 module is connected with described single-chip microcomputer serial delivery outlet TXD, the R1OUT port of described MAX232 module is connected with described single-chip microcomputer serial input mouth RXD, the R1IN port of described MAX232 module is connected with described PC host computer serial delivery outlet TXD, the T1OUT port of described MAX232 module is connected with described PC host computer serial input mouth RXD, the R2IN port of described MAX232 module is connected with described GPRS module serial delivery outlet TXD, the T2OUT port of described MAX232 module is connected with described GPRS module serial input mouth RXD.
Further: described GPRS module is MC35i module.
Owing to having adopted technique scheme, the utility model compared with prior art has following beneficial effect:
1, in automatic ticketing, peddle on all-in-one and increased card-reading function, the credit card that is convenient for people to use is paid a bill, and has avoided carrying the inconvenience of cash.
2, in automatic ticketing, peddle and on all-in-one, increased printing function, people can input desired commodity according to the prompting of vending machine display screen, and take off from the ticket outlet of corresponding printer the receipt that is printed on password, to selling goods, window is verified the authenticity of receipt and gets commodity, the labour who has saved artificial ticketing, has saved production cost.
3, adopt PC host computer, on display screen, directly input instruction control single chip computer completes exercises, realizes man-machine direct dialogue, and the result completing is presented on display screen, and it is simple to operation directly perceived.
4, due to what adopt between the main control single-chip microcomputer of automatic vending machine and a plurality of peripheral hardware, be MDB/ICP bus communication, and PC host computer, GPRS module adopt, be the communication of RS232 serial binary exchanges data, so complete the conversion of MDB/ICP agreement by MXA-232 module.
5, GPRS module realizes the network management of GPRS network and Internet access by serial ports, supports bank center's end to adopt the connected mode of fixed ip address or domain name, realizes the IC-card payment that all-in-one is peddled in automatic ticketing.
Embodiment
Below in conjunction with accompanying drawing embodiment, the utility model is described in further detail:
Automatic ticketing is peddled all-in-one and is comprised: the ticket checking machine of the ticket that cabinet part, control section and check printer print.Its cabinet part comprises as Fig. 5: the LED display 4 that is arranged on the machine play operation instruction of cabinet upper end and plays each series advertisements is provided with the camera 5 for monitoring, display screen 6 and keyboard 7, the coin slot 8 of corresponding slot machine, the correspondence of PC host computer read the card-reading slot 10 of the throwing paper money mouth 9 of paper money machine, corresponding card reader, the coin discharge 11 of corresponding small change unit, the ticket outlet 12 of corresponding printer, the commodity freight house 14 that is divided into multilayer, passage corresponding thereto and outlet 15 and power switch 13 below LED display.
All-in-one control section is peddled in automatic ticketing shown in Fig. 2, includes the slot machine that is connected in MBD data bus module, reads paper money machine, card reader and small change unit, MDB data bus module is connected with single-chip microcomputer by code translator, the electric-motor drive unit that is connected with timer conter and is attached thereto by register on single-chip microcomputer, on single-chip microcomputer, be connected with printer as shown in Figure 3, 8 output port P0.0~P0.7 of single-chip microcomputer are connected with the data-in port DB0~DB7 of printer respectively, between single-chip microcomputer and printer, be connected with gating unit III, gating unit III comprises first and the door 3 being connected in parallel, second with door 2, second is connected the control enable port EN of triple gate 1 with the output port of door 2, first with a door input port of 3 with second with an input port phase of door 2 and connect afterwards and be connected with an addressing port P2.7 of single-chip microcomputer, first is connected with the WR write port of single-chip microcomputer with another input port of door 3, first is connected with the STB gating port of printer with the output port of door 3, second is connected with the RD read port of single-chip microcomputer with another input port of door 2, the input port of triple gate 1 is connected with the BUSY port of printer, the output port of triple gate 1 is connected with the output port P0.7 of single-chip microcomputer and the data-in port DB7 of printer.GPRS module, PC host computer are connected with single-chip microcomputer by MAX232 module as shown in Figure 4; The T1IN port of MAX232 module is connected with single-chip microcomputer serial delivery outlet TXD, the R1OUT port of MAX232 module is connected with single-chip microcomputer serial input mouth RXD, the R1IN port of MAX232 module is connected with PC host computer serial delivery outlet TXD, the T1OUT port of MAX232 module is connected with PC host computer serial input mouth RXD, the R2IN port of MAX232 module is connected with GPRS module serial delivery outlet TXD, and the T2OUT port of MAX232 module is connected with GPRS module serial input mouth RXD.The ticket checking machine that all-in-one also comprises the receipt that check μ P printer prints is peddled in automatic ticketing.
Above single-chip microcomputer is MSC51 series monolithic, and printer is the mini-printer of μ P series, and GPRS module is MC35i module.
Slot machine, what read to adopt between paper money machine, small change unit, card reader, MBD data bus module, code translator, MCS51 single-chip microcomputer, timer conter, deposit unit, electric-motor drive unit, μ P printer is MDB/ICP bus communication; What PC host computer, MC35i module adopted is the communication of RS232 serial binary exchanges data.
Below several duties that all-in-one is peddled in automatic ticketing:
1.1 commodity of wanting are stored in automatic ticketing and peddle in the freight house 14 of all-in-one, and be the transaction of inserting coins, at coin slot 8 or throwing paper money mouth 9, drop into coins, the title of the input commodity of wanting on the display screen 6 of PC host computer, in instruction corresponding to PC host computer input trade name, the now order of the price of PC host computer goods in transit kind and correspondence is transferred to the R1IN end of MAX232 module from its serial delivery outlet TXD, by MAX232 module, the RS-232 data of PC host computer are converted to MBD data, from the R1OUT end of MAX232 module, by MCS51 single-chip microcomputer serial input terminal RXD, be transferred to MCS51 single-chip microcomputer, now slot machine is also input to MCS51 single-chip microcomputer by the data-signal after identification by MBD data bus module and code translator by paper money recognition part, due to the control able to programme of MCS51 single-chip microcomputer, according to gained, command interpretation becomes corresponding commodity sequential level signal and price sequential level signal to MCS51 single-chip microcomputer, commodity clock signal is exported to register from the addressing port of MCS51 single-chip microcomputer and output port respectively and by addressing, varying level signal is exported from the output port of register respectively, the corresponding commodity freight house of drive motor action control passage is opened, the outlet 15 that commodity are peddled all-in-one from automatic ticketing is sent, and by programming Control freight house passage opening time, after commodity are sent, access door closes, price sequential level signal is controlled small change unit by code translator and MBD data bus module simultaneously, and the required coin of deduction commodity price is sent remaining coin from coin discharge 11, now MCS51 single-chip microcomputer reads the status data in control procedure, and convert digital signal to and from MCS51 single-chip microcomputer serial delivery outlet TXD, be transferred to the T1IN port of MAX232 module, by MAX232 module, the MBD data of CS51 single-chip microcomputer are converted to RS-232 data, from the T1OUT port transmission of MAX232 module to PC host computer serial input mouth RXD, on the display screen 6 of PC host computer, show result data, complete this time transaction.
1.2 required commodity need receipt to get to window, and be the transaction of inserting coins, at coin slot 8 or throwing paper money mouth 9, drop into coins, the title of the input commodity of wanting on the display screen 6 of PC host computer, in instruction corresponding to PC host computer input trade name, the now order of the price of PC host computer goods in transit kind and correspondence is transferred to the R1IN end of MAX232 module from its serial delivery outlet TXD, by MAX232 module, the RS-232 data of PC host computer are converted to MBD data, from the R1OUT end of MAX232 module, by MCS51 single-chip microcomputer serial input terminal RXD, be transferred to MCS51 single-chip microcomputer, now slot machine is also input to MCS51 single-chip microcomputer by the data-signal after identification by MBD data bus module and code translator by paper money recognition part, due to the control able to programme of MCS51 single-chip microcomputer, according to gained, command interpretation becomes corresponding commodity sequential level signal and price sequential level signal to MCS51 single-chip microcomputer, MCS51 single-chip microcomputer adopts inquiry BUSY status signal to drive and control μ P printer by gating unit III, gained commodity clock signal is from output port P0.0~P0.7 output of MCS51 single-chip microcomputer, with address wire P2.7, go reading RD and writing WR signal of gating MCS51 single-chip microcomputer, WR signal after gating connects the STB signal of μ P printer, RD signal after gating removes to read in the BUSY of printer, the printed receipt with Quick Response Code is sent from ticket outlet 12, price sequential level signal is controlled small change unit by code translator and MBD data bus module simultaneously, and the required coin of deduction commodity price is sent remaining coin from coin discharge 11, now MCS51 single-chip microcomputer reads the status data in control procedure, and convert digital signal to and from MCS51 single-chip microcomputer serial delivery outlet TXD, be transferred to the T1IN port of MAX232 module, by MAX232 module, the MBD data of CS51 single-chip microcomputer are converted to RS-232 data, from the T1OUT port transmission of MAX232 module to PC host computer serial input mouth RXD, on the display screen 6 of PC host computer, demonstrate result data, complete this time transaction.
2.1 commodity of wanting are stored in automatic ticketing and peddle in the freight house 14 of all-in-one, and be credit card trade, the card-reading slot 10 insertion credits of peddling all-in-one in automatic ticketing snap into card reader and input password on keyboards 7, qualified through checking, at the display screen 6 of PC host computer, input the title of the commodity of wanting, in instruction corresponding to PC host computer input trade name, the now order of the price of PC host computer goods in transit kind and correspondence is transferred to the R1IN end of MAX232 module from its serial delivery outlet TXD, by MAX232 module, the RS-232 data of PC host computer are converted to MBD data, from the R1OUT end of MAX232 module, by MCS51 single-chip microcomputer serial input terminal RXD, be transferred to MCS51 single-chip microcomputer, now card reader is also input to MCS51 single-chip microcomputer by the data-signal after identification by MBD data bus module and code translator by credit card identification division, due to the control able to programme of MCS51 single-chip microcomputer, according to gained, command interpretation becomes corresponding commodity sequential level signal and price sequential level signal to MCS51 single-chip microcomputer, commodity clock signal is exported to register from the addressing port of MCS51 single-chip microcomputer and output port respectively and by addressing, varying level signal is exported from the output port of register respectively, the corresponding commodity freight house of drive motor action control passage is opened, the outlet 15 that commodity are peddled all-in-one from automatic ticketing is sent, and by programming Control freight house passage opening time, after commodity are sent, access door closes, price sequential level signal is input to the T1IN port of MAX232 module by the serial delivery outlet TXD of MCS51 single-chip microcomputer simultaneously, by MAX232 module, the MBD data of CS51 single-chip microcomputer are converted to RS-232 data, from the T2OUT port transmission of MAX232 module to MC35i communicator module serial input mouth RXD, MC35i communicator module sends to bank management center by Internet network by data message, bank center's end adopts the connected mode of fixed ip address or domain name, the data message of receiving is carried out to analysis and arrangement, in credit card, deduct the required fund of commodity price, and this information is sent back to MC35i communicator module, MC35i communicator module is transferred to the data message of receiving the T2IN port of MAX232 module from serial delivery outlet TXD, by MAX232 module, the RS-232 data of MC35i communicator module are converted to MBD data, from the R1OUT end of MAX232 module, by MCS51 single-chip microcomputer serial input terminal RXD, be transferred to MCS51 single-chip microcomputer, by code translator and MDB data bus module, controlling card reader sends credit card from card-reading slot 10, now MCS51 single-chip microcomputer reads the status data in control procedure, and convert digital signal to and from MCS51 single-chip microcomputer serial delivery outlet TXD, be transferred to the T1IN port of MAX232 module, by MAX232 module, the MBD data of CS51 single-chip microcomputer are converted to RS-232 data, from the T1OUT port transmission of MAX232 module to PC host computer serial input mouth RXD, on the display screen 6 of PC host computer, show result data, complete this time transaction.
2.2 required commodity need receipt to get to window, and be credit card trade, the card-reading slot 10 insertion credits of peddling all-in-one in automatic ticketing snap into card reader and input password on keyboards 7, qualified through checking, the title of the input commodity of wanting on the display screen 6 of PC host computer, in instruction corresponding to PC host computer input trade name, the now order of the price of PC host computer goods in transit kind and correspondence is transferred to the R1IN end of MAX232 module from its serial delivery outlet TXD, by MAX232 module, the RS-232 data of PC host computer are converted to MBD data, from the R1OUT end of MAX232 module, by MCS51 single-chip microcomputer serial input terminal RXD, be transferred to MCS51 single-chip microcomputer, now card reader is also input to MCS51 single-chip microcomputer by the data-signal after identification by MBD data bus module and code translator by credit card identification division, due to the control able to programme of MCS51 single-chip microcomputer, according to gained, command interpretation becomes corresponding commodity sequential level signal and price sequential level signal to MCS51 single-chip microcomputer, MCS51 single-chip microcomputer adopts inquiry BUSY status signal to drive and control μ P printer by gating unit III, gained commodity clock signal is from output port P0.0~P0.7 output of MCS51 single-chip microcomputer, with address wire P2.7, go reading RD and writing WR signal of gating MCS51 single-chip microcomputer, WR signal after gating connects the STB signal of μ P printer, RD signal after gating removes to read in the BUSY of printer, the printed receipt with Quick Response Code is sent from ticket outlet 12, price sequential level signal is input to the T1IN port of MAX232 module by the serial delivery outlet TXD of MCS51 single-chip microcomputer simultaneously, by MAX232 module, the MBD data of CS51 single-chip microcomputer are converted to RS-232 data, from the T2OUT port transmission of MAX232 module to MC35i communicator module serial input mouth RXD, MC35i communicator module sends to bank management center by Internet network by data message, bank center's end adopts the connected mode of fixed ip address or domain name, the data message of receiving is carried out to analysis and arrangement, in credit card, deduct the required fund of commodity price, and this information is sent back to MC35i communicator module, MC35i communicator module is transferred to the data message of receiving the T2IN port of MAX232 module from serial delivery outlet TXD, by MAX232 module, the RS-232 data of MC35i communicator module are converted to MBD data, from the R1OUT end of MAX232 module, by MCS51 single-chip microcomputer serial input terminal RXD, be transferred to MCS51 single-chip microcomputer, by code translator and MDB data bus module, controlling card reader sends credit card from card-reading slot 10, now MCS51 single-chip microcomputer reads the status data in control procedure, and convert digital signal to and from MCS51 single-chip microcomputer serial delivery outlet TXD, be transferred to the T1IN port of MAX232 module, by MAX232 module, the MBD data of CS51 single-chip microcomputer are converted to RS-232 data, from the T1OUT port transmission of MAX232 module to PC host computer serial input mouth RXD, on the display screen 6 of PC host computer, show result data, complete this time transaction.
This automatic ticketing is peddled in all-in-one cabinet and is also provided with refrigeration system, video system and camera monitoring system, and these systems are ubiquitous systems of existing vending machine or ticket machine, and they belong to prior art, repeat no more herein.