CN109801436B - Cash payment protocol conversion system of vending machine - Google Patents
Cash payment protocol conversion system of vending machine Download PDFInfo
- Publication number
- CN109801436B CN109801436B CN201910066170.2A CN201910066170A CN109801436B CN 109801436 B CN109801436 B CN 109801436B CN 201910066170 A CN201910066170 A CN 201910066170A CN 109801436 B CN109801436 B CN 109801436B
- Authority
- CN
- China
- Prior art keywords
- capacitor
- level conversion
- resistor
- cash payment
- protocol conversion
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 90
- 239000003990 capacitor Substances 0.000 claims description 52
- 102100039435 C-X-C motif chemokine 17 Human genes 0.000 claims description 2
- 101000889048 Homo sapiens C-X-C motif chemokine 17 Proteins 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 8
- 235000015429 Mirabilis expansa Nutrition 0.000 description 1
- 244000294411 Mirabilis expansa Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 235000013536 miso Nutrition 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
Abstract
The invention relates to the field of vending machines, in particular to a cash payment protocol conversion system of a vending machine. The conversion system comprises cash payment equipment, a protocol conversion module and a main control panel, wherein the main control panel is electrically connected with the protocol conversion module; the protocol conversion module consists of a single chip microcomputer, an MDB drive level conversion circuit and a serial port level conversion circuit, and the MDB drive level conversion circuit and the serial port level conversion circuit are respectively and electrically connected with the single chip microcomputer. The invention solves the problem that the serial port of the main control board of the vending machine can not be directly communicated with the mainstream cash payment equipment in the market, and through the protocol conversion module, the main control board can be communicated with the mainstream cash payment equipment based on the MDB protocol in the vending machine industry through the serial port to complete the cash payment function.
Description
Technical Field
The invention relates to the field of vending machines, in particular to a cash payment protocol conversion system of a vending machine.
Background
With the improvement of scientific technology and living standard, people pay more and more attention to the rapid convenience of commodity purchasing, and the vending machine industry is favored by people because the distribution of the vending machine terminal can not be limited by conditions such as time, place and the like. In order to meet the consumption requirements of various crowds, the vending machine is generally provided with a plurality of payment modes, mainly including a cash payment mode and an electronic payment mode. Cash payment may involve a variety of payment devices such as a paper currency machine, a coin slot machine, a coin change machine, a card swipe machine, and the like. Most of the devices circulating in the market at present adopt MDB communication protocols, and no matter hardware interfaces or software protocols, the devices cannot directly communicate with the serial port of the vending machine main control board.
Disclosure of Invention
In order to solve the technical problems described in the background art, the invention provides a cash payment protocol conversion system of a vending machine, which solves the problem that a serial port of a main control board of the vending machine cannot be directly communicated with mainstream cash payment equipment on the market.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a cash payment protocol conversion system of a vending machine comprises cash payment equipment, a protocol conversion module and a main control panel, wherein the main control panel is electrically connected with the protocol conversion module; the protocol conversion module consists of a single chip microcomputer, an MDB drive level conversion circuit and a serial port level conversion circuit, and the MDB drive level conversion circuit and the serial port level conversion circuit are respectively and electrically connected with the single chip microcomputer.
Specifically, the main control board is electrically connected with a serial port level conversion circuit of the protocol conversion module.
Specifically, the cash payment device is electrically connected with the MDB driving level conversion circuit of the protocol conversion module.
Specifically, the serial port level conversion circuit is composed of a capacitor C5, a capacitor C6, a capacitor C7, a capacitor C8, a capacitor C9 and a level conversion chip, wherein one end of a capacitor C8 is connected with a 1 st pin of the level conversion chip, the other end of the capacitor C8 is connected with a 3 rd pin of the level conversion chip, one end of a capacitor C7 is connected with a 4 th pin of the level conversion chip, the other end of the capacitor C7 is connected with a 5 th pin of the level conversion chip, a power supply of the level conversion chip, one end of the capacitor C9 and one end of the capacitor C5 are connected in parallel, the other end of the capacitor C9 is connected to a 2 nd pin of the level conversion chip, the other end of the capacitor C5 is connected in parallel with one end of a capacitor C6 and the other end of the capacitor C6 is.
Specifically, the MDB drive level conversion circuit consists of a capacitor C, a PNP type triode Q, an NPN type triode Q, a power supply VCC, a resistor R and a TVS tube D, wherein one end of the resistor R and one end of the capacitor C are connected in parallel to the power supply VCC, the other end of the resistor R and the other end of the capacitor C are connected in parallel to a base electrode of the NPN type triode Q, one end of the resistor R and one end of the resistor R are connected in parallel to a collector electrode of the NPN type triode Q, the other end of the resistor R, one end of the resistor R and an emitter electrode of the PNP type triode Q are connected in parallel to the power supply VCC, the other end of the resistor R and a collector electrode of the PNP type triode Q are connected in parallel to a base electrode of the PNP type triode Q, the other end of the resistor R and a base electrode of the PNP type triode Q are connected in parallel, the other end of the resistor R1 and the other end of the TVS tube D1 are connected in parallel to ground.
Specifically, the single chip microcomputer is STM32F030C8T 6.
The invention has the beneficial effects that: the invention provides a cash payment protocol conversion system of a vending machine, which solves the problem that a serial port of a main control board of the vending machine cannot be directly communicated with mainstream cash payment equipment on the market.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a block diagram of the present invention;
FIG. 2 is a diagram of the internal framework of the protocol conversion module of the present invention;
FIG. 3 is a circuit diagram of a serial port level shift circuit of the present invention;
FIG. 4 is a circuit diagram of the MDB drive level shift circuit of the present invention;
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic views illustrating only the basic structure of the present invention in a schematic manner, and thus show only the constitution related to the present invention.
Fig. 1 is a block diagram of the structure of the present invention, fig. 2 is a diagram of an internal framework of a protocol conversion module of the present invention, fig. 3 is a circuit diagram of a serial port level conversion circuit of the present invention, and fig. 4 is a circuit diagram of an MDB driving level conversion circuit of the present invention.
A cash payment protocol conversion system of a vending machine comprises cash payment equipment, a protocol conversion module and a main control panel, wherein the main control panel is electrically connected with the protocol conversion module; the protocol conversion module consists of a single chip microcomputer, an MDB drive level conversion circuit and a serial port level conversion circuit, and the MDB drive level conversion circuit and the serial port level conversion circuit are respectively and electrically connected with the single chip microcomputer. The main control board is electrically connected with the serial port level conversion circuit of the protocol conversion module. The cash payment device is electrically connected with the MDB driving level conversion circuit of the protocol conversion module. The serial port level conversion circuit is composed of a capacitor C5, a capacitor C6, a capacitor C7, a capacitor C8, a capacitor C9 and a level conversion chip, one end of the capacitor C8 is connected with a 1 st pin of the level conversion chip, the other end of the capacitor C8 is connected with a 3 rd pin of the level conversion chip, one end of a capacitor C7 is connected with a 4 th pin of the level conversion chip, the other end of the capacitor C7 is connected with a 5 th pin of the level conversion chip, a power supply of the level conversion chip, one end of a capacitor C9 and one end of a capacitor C5 are connected in parallel, the other end of the capacitor C9 is connected to a 2 nd pin of the level conversion chip, the other end of the capacitor C5 is connected with one end of a capacitor C6 in parallel, the other end of the capacitor C6 is. The MDB driving level conversion circuit comprises a capacitor C1, a PNP type triode Q1, a PNP type triode Q2, an NPN type triode Q3, a power supply VCC1, a power supply VCC2, a power supply VCC3, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R8 and a TVS tube D1, wherein one end of the resistor R3 and one end of the capacitor C1 are connected in parallel to the power supply 1, the other end of the resistor R3 and the other end of the capacitor C1 are connected in parallel to the base of the NPN type triode Q3, one end of the resistor R6 and one end of the resistor R4 are connected in parallel to the collector of the NPN type triode Q3, the other end of the resistor R6, one end of the resistor R2, the emitter of the PNP type triode Q2 and the emitter of the PNP type triode Q2 are connected in parallel to the base of the PNP type triode Q2, and the emitter of the PNP type triode Q2 are connected in parallel to the base 2, the other end of the resistor R1 and the other end of the TVS tube D1 are connected in parallel to ground. The single chip microcomputer is STM32F030C8T 6.
With reference to fig. 1 and fig. 2, the single chip microcomputer is an STM32F030C8T6 of the semiconductor company, the crystal provides accurate timing, and the reset chip provides a power-on reset signal. The 232 level conversion uses SP 3232-L. The single chip microcomputer serves as a core processing unit and is used for converting data of the MDB equipment into serial port data to be communicated with the main control board. However, the single chip microcomputer is 3.3V TTL standard level, and cannot be directly connected to the main control board and the MDB device, and level standard conversion is required.
As shown in fig. 3, the serial port level conversion circuit is used for converting the serial port level.
As shown in fig. 4, the MDB driving level converting circuit is used to convert the MDB signal. When U2TX is at low level, Q3 and Q1 are turned on, MOSI is at high level after being divided by R2 and R1, and when U2TX is at high level, Q3 and Q1 are turned off, MOSI is at low level; u2RX is in phase with MISO.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.
Claims (5)
1. A cash payment protocol conversion system of a vending machine is characterized in that: the cash payment system comprises cash payment equipment, a protocol conversion module and a main control panel, wherein the main control panel is electrically connected with the protocol conversion module; the protocol conversion module consists of a single chip microcomputer, an MDB driving level conversion circuit and a serial port level conversion circuit, the MDB driving level conversion circuit and the serial port level conversion circuit are respectively electrically connected with the single chip microcomputer, the serial port level conversion circuit consists of a capacitor C5, a capacitor C6, a capacitor C7, a capacitor C8, a capacitor C9 and a level conversion chip, one end of a capacitor C8 is connected with a 1 st pin of the level conversion chip, the other end of the capacitor C8 is connected with a 3 rd pin of the level conversion chip, one end of a capacitor C7 is connected with a 4 th pin of the level conversion chip, the other end of the capacitor C7 is connected with a 5 th pin of the level conversion chip, a power supply of the level conversion chip, one end of a capacitor C9 and one end of a capacitor C5 are connected in parallel, the other end of the capacitor C9 is connected with a 2 nd pin of the level conversion chip, the other end of the capacitor C5 is, the 15 th pin of the level conversion chip is grounded.
2. The vending machine cash payment protocol conversion system of claim 1, wherein: the main control board is electrically connected with the serial port level conversion circuit of the protocol conversion module.
3. The vending machine cash payment protocol conversion system of claim 1, wherein: the cash payment device is electrically connected with the MDB driving level conversion circuit of the protocol conversion module.
4. The vending machine cash payment protocol conversion system of claim 1, wherein: the MDB driving level conversion circuit comprises a capacitor C1, a PNP type triode Q1, a PNP type triode Q2, an NPN type triode Q3, a power supply VCC1, a power supply VCC2, a power supply VCC3, a resistor R1, a resistor R2, a resistor R3, a resistor R4, a resistor R5, a resistor R6, a resistor R8 and a TVS tube D1, wherein one end of the resistor R3 and one end of the capacitor C1 are connected in parallel to the power supply 1, the other end of the resistor R3 and the other end of the capacitor C1 are connected in parallel to the base of the NPN type triode Q3, one end of the resistor R6 and one end of the resistor R4 are connected in parallel to the collector of the NPN type triode Q3, the other end of the resistor R6, one end of the resistor R2, the emitter of the PNP type triode Q2 and the emitter of the PNP type triode Q2 are connected in parallel to the base of the PNP type triode Q2, and the emitter of the PNP type triode Q2 are connected in parallel to the base 2, the other end of the resistor R1 and the other end of the TVS tube D1 are connected in parallel to ground.
5. The vending machine cash payment protocol conversion system of claim 1, wherein: the single chip microcomputer is STM32F030C8T 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910066170.2A CN109801436B (en) | 2019-01-24 | 2019-01-24 | Cash payment protocol conversion system of vending machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910066170.2A CN109801436B (en) | 2019-01-24 | 2019-01-24 | Cash payment protocol conversion system of vending machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109801436A CN109801436A (en) | 2019-05-24 |
CN109801436B true CN109801436B (en) | 2020-11-10 |
Family
ID=66560222
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910066170.2A Active CN109801436B (en) | 2019-01-24 | 2019-01-24 | Cash payment protocol conversion system of vending machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109801436B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111444129B (en) * | 2020-03-05 | 2021-10-29 | 百富计算机技术(深圳)有限公司 | MDB data transmission method and terminal device |
CN114326526B (en) * | 2021-12-31 | 2023-07-07 | 福建新大陆支付技术有限公司 | Vending machine, instruction parsing method, storage medium, and slave device thereof |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1441368A (en) * | 2003-01-23 | 2003-09-10 | 青岛澳柯玛自动商用设备有限公司 | Radio network management system for vendors |
CN2864828Y (en) * | 2005-07-01 | 2007-01-31 | 北京迅捷瑞通商务技术有限公司 | Vending machine with non-contact MDB controller |
CN2836108Y (en) * | 2005-08-19 | 2006-11-08 | 北京迅捷瑞通商务技术有限公司 | Automatic coffee machine with contact-less card MDB controller |
US20090306817A1 (en) * | 2008-06-09 | 2009-12-10 | The Coca-Cola Company | Virtual Vending Machine |
CN202159385U (en) * | 2011-06-05 | 2012-03-07 | 贝克曼集团有限公司 | Commodity bar code management system for vending machine |
US20140012414A1 (en) * | 2012-03-05 | 2014-01-09 | Álvaro Osnaya Pérez | System and method of telemetry applied to vending machines |
CN205656710U (en) * | 2016-05-25 | 2016-10-19 | 官伟岩 | Automatic vending machine control system |
CN106127945A (en) * | 2016-06-28 | 2016-11-16 | 陶帅 | A kind of payment based on MDB/ICP agreement controls device |
CN106097580A (en) * | 2016-07-07 | 2016-11-09 | 江阴市万沅电子科技有限公司 | The control system of automatic vending machine |
-
2019
- 2019-01-24 CN CN201910066170.2A patent/CN109801436B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109801436A (en) | 2019-05-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE60124273T2 (en) | METHOD AND DEVICE FOR SIGNALING THE DATA TRANSFER BETWEEN A USB PORT AND A USB CHIP CARD MODULE | |
US6752321B1 (en) | Smart card and method that modulates multi-color LED indicative of operational attributes and/or transactions between the smart card and USB port of a USB host | |
JP3357048B2 (en) | Method and interface for interfacing a portable data carrier to a host processor | |
US5659800A (en) | System for directly sending undecoded raw signals from reader device via external slave interface to personal computer through communication port without first decoding the signals | |
CN103389845B (en) | A kind of capacitance touch screen burn test system | |
CN109801436B (en) | Cash payment protocol conversion system of vending machine | |
US20090287864A1 (en) | Electronic module for programming chip cards comprising contacts | |
CN203573621U (en) | LED lamp panel and LED display screen | |
US20120319975A1 (en) | Screen unit with a touch panel | |
CN110855696B (en) | Protocol switching equipment suitable for MDB/ICP bus tandem connection payment module | |
CN203950298U (en) | A kind of wireless programming device | |
CN209117185U (en) | A kind of detector module on focal plane of infrared ray signal processor | |
CN215121002U (en) | Dual-path VGA automatic switching circuit based on BMC | |
AU2015227541A1 (en) | Gaming machine that changes color of symbol in rearranging symbols | |
CN202995822U (en) | An automatic fare collection system master control unit | |
CN103035035A (en) | Automatic fare collection system main control unit | |
CN103473861A (en) | Pos machine device based on cellphone card swiping | |
CN203142409U (en) | Automobile electronic combination instrument with functions set by external connection module | |
CN109510823B (en) | SPI and ISO7816 converting circuit | |
CN205910687U (en) | Simplify communication circuit suitable for MDBICP bus | |
US20030016488A1 (en) | Multi-function portdock | |
CN101334920A (en) | POS machine host | |
CN205508003U (en) | POS machine low -power consumption mainboard structure and computer | |
CN221960239U (en) | Test equipment of vehicle-mounted display screen | |
CN203338361U (en) | Dynamic encryption type card reader |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20210304 Address after: Room 1731, 1188 Renmin South Road, Kunshan Development Zone, Suzhou City, Jiangsu Province Patentee after: Suzhou yipule Information Technology Co.,Ltd. Address before: 215000 unit 1727, 17th floor, South Building, No.1 building, Kuncheng Plaza, 1188 Renmin South Road, Kunshan Development Zone, Kunshan City, Suzhou City, Jiangsu Province Patentee before: KUNSHAN YIPUTENG AUTOMATION TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right |