CN114743305A - Bridging method and device between VMC (virtual machine center) and peripheral device of vending machine - Google Patents
Bridging method and device between VMC (virtual machine center) and peripheral device of vending machine Download PDFInfo
- Publication number
- CN114743305A CN114743305A CN202110019105.1A CN202110019105A CN114743305A CN 114743305 A CN114743305 A CN 114743305A CN 202110019105 A CN202110019105 A CN 202110019105A CN 114743305 A CN114743305 A CN 114743305A
- Authority
- CN
- China
- Prior art keywords
- vmc
- frame
- bridging
- vending machine
- sends
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07F—COIN-FREED OR LIKE APPARATUS
- G07F11/00—Coin-freed apparatus for dispensing, or the like, discrete articles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Control Of Vending Devices And Auxiliary Devices For Vending Devices (AREA)
Abstract
The invention discloses a bridging method between VMC and peripheral device of vending machine, the method includes that the peripheral device sends reset instruction which needs to simulate MDB slave device to bridging device, the bridging device records the device address of the peripheral device, the VMC sends polling frame, the bridging device converts the stored reset instruction sent by the peripheral device into 9bit frame and sends the frame to the VMC, after the VMC receives the reset instruction of the address replied by the bridging device, sending out a setting frame, replying a confirmation character ACK of a VMC device of the vending machine by the bridging device, converting the setting frame sent by the VMC of the vending machine into an 8-bit frame by the bridging device, sending the 8-bit frame to an external device, sending a configuration data frame to the bridging device by the external device, sending a polling frame to the bridging device by the VMC of the vending machine, packaging the configuration data frame into a frame in an MDB format after receiving the polling frame sent by the VMC of the vending machine by the bridging device, and sending the frame to the VMC of the vending machine.
Description
Technical Field
The invention relates to the technical field of vending machines, in particular to a bridging method and device between a VMC (virtual machine controller) and a peripheral device of a vending machine.
Background
In commercial vending machine configurations, the common cash accepting components of the vending machine include vending controls and bill/coin acceptors. They communicate via standard MDB/Internal Communication Protocol (ICP). Although the MDB/ICP standard may support master-slave device to multi-slave device communication, older vending machines do not consider more components for additional payment options. Thus, existing vending machines are difficult to reconfigure or upgrade. In addition, in order to support the central cloud management platform, it is necessary to have an aggregation function of all payments (mobile payment and cash payment). Based on the master/slave architecture in MDB/ICP, it is not possible for cloud management to communicate directly with a slave device (e.g. bill/coin acceptor). The commercial MDB/ICP-232 replacement communicates with the bill/coin acceptor based on analog MDB/VMC timing control, but it does not provide for communication with the host device via the MDB/ICP standard. Thus, such replacement cannot be directly used to upgrade an existing older vending machine.
The bridging method existing in the prior art converts the MDB protocol into a proprietary protocol and provides the proprietary protocol to developers. At which point the developer only needs to be concerned with the proprietary protocol. However, the number of MDB peripheral devices that can be accessed by this bridging method is limited, and the versatility is poor. Therefore, there is a need in the art for a new method for bridging between the VMC of the vending machine and the peripheral device, and for enabling the peripheral device to be more conveniently connected to the VMC of the vending machine.
Disclosure of Invention
One of the technical problems to be solved by the present invention is to realize bridging between the VMC and the peripheral devices of the vending machine.
In order to solve the above technical problem, the present invention provides a method for bridging between a VMC and a peripheral device of a vending machine, wherein the bridging method comprises the following steps:
A. the peripheral device sends a reset instruction which needs to simulate the MDB slave equipment to the bridging equipment; the reset instruction is in the format of an equipment address + command byte of the peripheral device;
B. the bridge device receives and stores the reset instruction and records the device address of the peripheral device.
C poll frames are sent by the vending machine VMC.
D. After receiving the polling frame sent by the VMC, the bridging device removes the address byte from the stored reset instruction sent by the peripheral device, recalculates the check, adds the mode bit after the last byte, converts the byte into a 9-bit frame and sends the frame to the VMC.
E. After receiving the reset instruction of the address returned by the bridge device, the VMC of the vending machine sends out a setting frame.
F. The bridge device replies with a vending machine VMC device acknowledge character ACK.
G. The bridging device removes the mode bit of the command byte from the setting frame sent by the vending machine VMC, converts the setting frame into an 8-bit frame and sends the 8-bit frame to the peripheral equipment.
H. The peripheral device sends a configuration data frame to the bridge device, wherein the configuration data frame is in the format of a device address + a command byte of the peripheral device.
I. The vending machine VMC sends a polling frame to the bridge device.
J. After receiving the polling frame sent by the VMC, the bridging device encapsulates the configuration data frame into a frame with an MDB format and sends the frame to the VMC;
K. the VMC of the vending machine sends out service data 1;
l, after receiving the service data 1 sent by the VMC, the bridging equipment replies an acknowledgement character ACK, removes the mode bit of the command byte from the service data 1, converts the mode bit into an 8-bit frame and sends the frame to the peripheral device;
m, the peripheral device sends service data 2 to the bridging device, wherein the format of the service data 2 is the device address + command byte of the peripheral device;
and N, after receiving the service data 2, the bridging device removes the address bytes and converts the address bytes into a 9-bit MDB format frame, and sends a polling frame of a corresponding address to the VMC through the VMC and then replies the polling frame to the VMC.
In one embodiment, the vending machine VMC will periodically send polling frames when the MDB bus is idle.
In one embodiment, when the instruction from the peripheral device is not stored in the bridge device, the bridge device directly replies to the vending machine VMC acknowledge character ACK.
According to another aspect of the present invention, there is also provided a bridging device between a vending machine VMC and a peripheral device, wherein the bridging device stores instructions for implementing the bridging method.
According to another aspect of the present invention, there is also provided a storage device, in which instructions for implementing the bridging method are stored.
The sending frame format of the peripheral device in the invention is as follows: the processing mode of the frame that the bridging device forwards the external device to the VMC of the vending machine is that the address + MDB service data (8bit) is as follows: the address byte is removed, the service data frame is converted into 9 bits, and a mode bit (mode bit) is added to the last byte, and the processing mode of the bridge device for forwarding the data of the vending machine VMC to the external device is as follows: the pattern of the first byte, namely the command byte, is removed, and the 9-bit frame is converted into 8 bits.
Compared with the prior art, the technical scheme of the invention has the following advantages:
1. the technical scheme of the invention realizes the multiplexing MDB protocol, can be directly accessed without changing the peripheral equipment aiming at different types of peripheral equipment, and realizes the communication between the peripheral equipment and the VMC of the vending machine.
2. The technical scheme of the invention improves the VMC expansibility of the vending machine, and when the MDB protocol is updated, the original accessed peripheral equipment can be ensured to still work normally only by correspondingly updating the bridging equipment.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a schematic flow diagram of a method according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to the accompanying drawings.
FIG. 1 is a schematic flow diagram according to an embodiment of the present invention. In this embodiment, the VMC of the vending machine is connected to the bridge device by using an MDB bus, and performs communication according to an MDB protocol. The bridge device is connected with the peripheral device by using an RS232 interface. The method is described below with reference to fig. 1.
The bridging method between the vending machine VMC and the peripheral device of the embodiment comprises the following steps:
A. the peripheral device sends a reset instruction which needs to simulate the MDB slave equipment to the bridging equipment; the reset instruction is in the format of an equipment address + command byte of the peripheral device;
B. the bridge device receives and stores the reset instruction and records the device address of the peripheral device.
C poll frames are sent by the vending machine VMC.
D. After receiving the polling frame sent by the VMC, the bridging device removes the address byte from the stored reset instruction sent by the peripheral device, recalculates the check, adds the mode bit after the last byte, converts the byte into a 9-bit frame and sends the frame to the VMC.
E. After receiving the reset instruction of the address returned by the bridge device, the VMC of the vending machine sends out a setting frame.
F. The bridge device replies with a vending machine VMC device acknowledge character ACK.
G. The bridging device removes the mode bit of the command byte from the setting frame sent by the vending machine VMC, converts the setting frame into an 8-bit frame and sends the 8-bit frame to the peripheral equipment.
H. The peripheral device sends a configuration data frame to the bridge device, wherein the configuration data frame is in the format of a device address + a command byte of the peripheral device.
I. The vending machine VMC sends a polling frame to the bridge device.
J. After receiving the polling frame sent by the VMC, the bridging device encapsulates the configuration data frame into a frame with an MDB format and sends the frame to the VMC;
K. the VMC of the vending machine sends out service data 1;
l, after receiving the service data 1 sent by the VMC, the bridging equipment replies an acknowledgement character ACK, removes the mode bit of the command byte from the service data 1, converts the mode bit into an 8-bit frame and sends the frame to the peripheral device;
m, the peripheral device sends service data 2 to the bridging device, wherein the format of the service data 2 is the device address of the peripheral device plus a command byte;
and N, after receiving the service data 2, the bridging device removes the address bytes and converts the address bytes into a 9-bit MDB format frame, and sends a polling frame of a corresponding address to the VMC through the VMC and then replies the polling frame to the VMC.
In the bridging method of the present embodiment, the vending machine VMC will periodically send polling frames when the MDB bus is idle. Meanwhile, when the instruction sent by the peripheral device is not stored in the bridge device, the bridge device directly replies the confirmation character ACK of the VMC of the vending machine.
The above description is only an embodiment of the present invention, and the protection scope of the present invention is not limited thereto, and any person skilled in the art should modify or replace the present invention within the technical specification of the present invention.
Claims (5)
1. A bridging method between a vending machine VMC and peripheral devices is characterized by comprising the following steps:
A. the peripheral device sends a reset instruction which needs to simulate the MDB slave equipment to the bridging equipment; the reset instruction is in the format of an equipment address + command byte of the peripheral device;
B. the bridging device receives and stores the reset instruction and records the device address of the peripheral device;
c, sending a polling frame by the VMC;
D. after receiving the polling frame sent by the VMC, the bridging device removes the address byte from the stored reset instruction sent by the peripheral device, recalculates the check, adds the mode bit after the last byte, converts the address byte into a 9-bit frame and sends the frame to the VMC;
E. after receiving the reset instruction of the address replied by the bridging device, the VMC of the vending machine sends out a setting frame;
F. the bridging equipment replies a confirmation character ACK to the VMC equipment of the vending machine;
G. the bridging equipment removes the mode bit of the command byte from the setting frame sent by the VMC, converts the setting frame into an 8-bit frame and sends the 8-bit frame to the peripheral device;
H. the peripheral device sends a configuration data frame to the bridging equipment, wherein the configuration data frame is in a format of equipment address + command byte of the peripheral device;
I. the VMC sends a polling frame to the bridging device;
J. after receiving the polling frame sent by the VMC, the bridging device encapsulates the configuration data frame into a frame with an MDB format and sends the frame to the VMC;
K. the VMC of the vending machine sends the business data 1;
l, after receiving the service data 1 sent by the VMC, the bridging equipment replies an acknowledgement character ACK, removes the mode bit of the command byte from the service data 1, converts the mode bit into an 8-bit frame and sends the frame to the peripheral device;
m, the peripheral device sends service data 2 to the bridging device, wherein the format of the service data 2 is the device address of the peripheral device plus a command byte;
and N, after receiving the service data 2, the bridging device removes the address bytes and converts the address bytes into a 9-bit MDB format frame, and sends a polling frame of a corresponding address to the VMC through the VMC and then replies the polling frame to the VMC.
2. The bridging method of claim 1, the vending machine VMC will periodically send polling frames when the MDB bus is idle.
3. The bridging method according to claim 2, wherein when the instruction from the peripheral device is not stored in the bridging device, the bridging device directly replies to the vending machine VMC acknowledge character ACK.
4. Bridging device between a vending machine VMC and an external device, in which instructions are stored for implementing the bridging method according to one of the claims 1 to 3.
5. A storage device having stored therein instructions for implementing the bridging method of any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110019105.1A CN114743305B (en) | 2021-01-07 | 2021-01-07 | Bridging method and device between VMC (virtual machine center) and peripheral device of vending machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110019105.1A CN114743305B (en) | 2021-01-07 | 2021-01-07 | Bridging method and device between VMC (virtual machine center) and peripheral device of vending machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114743305A true CN114743305A (en) | 2022-07-12 |
CN114743305B CN114743305B (en) | 2023-04-07 |
Family
ID=82274071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110019105.1A Active CN114743305B (en) | 2021-01-07 | 2021-01-07 | Bridging method and device between VMC (virtual machine center) and peripheral device of vending machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114743305B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410557A (en) * | 2014-12-25 | 2015-03-11 | 深圳中科讯联科技有限公司 | Dynamic networking method and communication method based on RS-485 |
CN104809813A (en) * | 2015-02-13 | 2015-07-29 | 湖南金码智能设备制造有限公司 | Barcode payment method and device for vending machine |
CN106447930A (en) * | 2016-08-31 | 2017-02-22 | 北京映翰通网络技术股份有限公司 | Vending machine function extension device and transformation method |
CN107154107A (en) * | 2017-03-27 | 2017-09-12 | 北京映翰通网络技术股份有限公司 | A kind of automatic vending machine Function Extension device and method |
CN111373427A (en) * | 2017-09-19 | 2020-07-03 | 美国映翰通网络有限公司 | MDB data processing method and system of vending machine |
-
2021
- 2021-01-07 CN CN202110019105.1A patent/CN114743305B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410557A (en) * | 2014-12-25 | 2015-03-11 | 深圳中科讯联科技有限公司 | Dynamic networking method and communication method based on RS-485 |
CN104809813A (en) * | 2015-02-13 | 2015-07-29 | 湖南金码智能设备制造有限公司 | Barcode payment method and device for vending machine |
CN106447930A (en) * | 2016-08-31 | 2017-02-22 | 北京映翰通网络技术股份有限公司 | Vending machine function extension device and transformation method |
CN107154107A (en) * | 2017-03-27 | 2017-09-12 | 北京映翰通网络技术股份有限公司 | A kind of automatic vending machine Function Extension device and method |
CN111373427A (en) * | 2017-09-19 | 2020-07-03 | 美国映翰通网络有限公司 | MDB data processing method and system of vending machine |
Also Published As
Publication number | Publication date |
---|---|
CN114743305B (en) | 2023-04-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102197364B (en) | Systems and methods for managing printer settings in a networked computing environment | |
US11972247B2 (en) | Software upgrading method, apparatus, and system | |
JP5283806B2 (en) | Communication architecture for industrial process control systems. | |
KR101856486B1 (en) | Method for bi-direction calling between open system and mainframe system | |
JP2010272971A (en) | Control system and method for rewriting control program | |
CN100442704C (en) | Method for upgrading remote subsystem in communication system | |
CN108063775A (en) | Communication protocol compatibility method, apparatus and system | |
CN109451098A (en) | FPGA accelerator card MAC Address configuration method, device and accelerator card | |
CN104750524A (en) | Upgraded data package transmitting method and device and data package upgrading method and device | |
US20220382920A1 (en) | Terminal and communication method | |
CN110990325A (en) | Data transmission method and device based on I2C bus | |
CN114743305B (en) | Bridging method and device between VMC (virtual machine center) and peripheral device of vending machine | |
CN113259273B (en) | Switch control method, switch, computer device, and storage medium | |
CN212486527U (en) | Slave station conversion device based on MODBUS protocol | |
CN109857553A (en) | EMS memory management process and device | |
CN101882110A (en) | Method for downloading data and terminal equipment | |
CN105491082A (en) | Remote resource access method and switch equipment | |
CN114513792B (en) | Remote network control method and device based on eSIM card | |
CN114095303B (en) | Communication device, data transmission method and electronic device | |
CN113645088B (en) | Automatic regulation method, system, device and medium for network card NCSI signal | |
CN106302201A (en) | Flow control methods, equipment and system | |
CN111580857B (en) | Equipment firmware online configuration method, device and system | |
CN114827967A (en) | Software updating method, Bluetooth device and storage medium | |
CN103858091B (en) | A kind of management method and equipment of storage device | |
CN103024087B (en) | Support massive store and the system and method for ethernet communication simultaneously |
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 |