Communication device for automatic vending machine
The communication device for vending machines addresses the challenge of adapting to 4G and 5G standards by using Ethernet for data communication, allowing multiple simultaneous connections and reducing development complexity and costs.
Patent Information
- Application Number
- JP2023065066
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-12
- Publication Date
- 2024-10-25
AI Technical Summary
Vending machines equipped with 3G wireless communication cannot adapt to 4G and 5G standards, leading to issues with data communication initiation and inability to perform multiple simultaneous communications, and existing solutions like PPP links face performance degradation and complexity in application development.
A communication device for vending machines that uses Ethernet for data communication, enabling constant connection and allowing multiple simultaneous communications via a control unit connected to the vending machine's control device based on arbitrary communication rules, using Ethernet frame packets and IP links.
Enables simultaneous communication with multiple terminals, reduces development complexity and costs, and improves performance by using Ethernet frame packets, facilitating easier application development and reducing programming time.
Smart Images

Figure 2024151599000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a communication device that enables a vending machine to communicate with a server via a network, and more specifically, to a communication device that is incorporated in a vending machine and connects a control device of the vending machine to a network. [Background technology]
[0002] Conventionally, a communication device has been built into a vending machine in order to centrally manage sales-related data such as sales and product inventory in the vending machine by a server, and to perform electronic payments using electronic money, as disclosed in Patent Document 1. The communication device built into the vending machine plays a role of relaying data communication between the vending machine's control device and the server.
[0003] In such communication devices, for example, wired or wireless communication is used to connect to the Internet or a local area network (LAN), but wireless communication is particularly common in vending machines, which are often placed outdoors.
[0004] Conventionally, wireless communication has adopted the 3G (3rd Generation) standard. In the 3G standard, when starting data communication, one terminal sends a "connection request" to the other terminal to request the establishment of a communication link. If the terminal that receives the "connection request" is ready to communicate, it sends a message back to the terminal that sent the "connection request" indicating that it is "ready," and communication begins.
[0005] That is, in 3G wireless communication, a "connection request" is exchanged when data communication is to start. In a communication device built into a vending machine, for example, when a "connection request" is sent from a server to the communication device, this is configured to trigger the start of data communication between the control device of the vending machine and the communication device. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] Special Publication No. 2011-525265 [Patent Document 2] JP 2019-186892 A Summary of the Invention [Problem to be solved by the invention]
[0007] However, in recent years, 4G (4th Generation) and 5G (5th Generation) standards have come to be commonly used in wireless communication instead of 3G standards. The 4G and 5G standards are designed to establish a constant communication link between terminals so that constant communication can be performed between terminals.
[0008] As a result, the "connection request" that has been used as a trigger to start data communication between the vending machine's control device and the communication device is not made, and data is sent suddenly, so data communication cannot be started between the vending machine's control device and the communication device, and data communication cannot be performed between the server and the vending machine's control device.
[0009] It is possible to solve such problems by changing the data communication protocol between the vending machine's control device and communication device; however, the communication protocol between the vending machine's control device and communication device is determined by the vending machine manufacturer, etc., and cannot be easily changed.
[0010] For this reason, for example, Patent Document 2 proposes a relay device that is interposed between a communication device (communication module) and a control device of the vending machine.
[0011] The relay device disclosed in Patent Document 2 is configured to establish a PPP communication link with the communication module and maintain a state in which data packet communication is possible between the relay device and the communication module using the PPP (Point to Point Protocol) communication link. For example, when a data packet is sent from the server to the communication module, the relay device receives the data packet via the communication module, and the received data packet is used as a trigger to establish a PPP communication link with the vending machine's control device and start data communication.
[0012] However, when using such data communication over a PPP communication link, PPP is a protocol for 1:1 communication between two points at the second layer of the OSI reference model, so one terminal cannot communicate with multiple terminals simultaneously. This creates problems such as the inability to communicate data for electronic payment while sales-related data is being sent and received between a vending machine and a server.
[0013] In order to perform 1:N communication using PPP, packet switching at layer 3 of the OSI reference model is required. In this case, however, the amount of data required increases compared to communication at layer 2, resulting in a problem of reduced performance.
[0014] In view of the current situation, the present invention aims to provide a communication device for a vending machine that allows the vending machine to carry out multiple communications simultaneously without causing a degradation in performance, and that further facilitates the development of devices and applications that require communication with the vending machine, thereby reducing development costs. [Means for solving the problem]
[0015] The present invention has been invented to solve the problems in the prior art as described above, and the present invention is a communication device for a vending machine for connecting a control device of the vending machine to a network, a communication unit that is connectable to the network through constant communication; A control unit that can be connected to the control device of the vending machine based on any communication rule; Equipped with The communication unit and the control unit are configured to perform data communication via Ethernet, The control unit is In response to a connection request from a control device of the vending machine, the control unit and the control device are connected based on the arbitrary communication rule, The control unit and the control device are configured to connect to each other based on the arbitrary communication rule in response to data reception from the network side via the communication unit. Effect of the Invention
[0016] According to the present invention, the vending machine's control device communicates with the vending machine in any manner determined by the vending machine manufacturer, for example, data communication via PPP, while communication with the communication module is via Ethernet, allowing the vending machine's control device to communicate with multiple terminals simultaneously.
[0017] In addition, because communication is via Ethernet frame packets at layer 2 of the OSI reference model, the amount of data can be significantly reduced compared to when packets are switched at layer 3, thereby improving performance.
[0018] Furthermore, by using Ethernet communication, control is easier than with PPP communication and programming labor is reduced, making it easier to develop devices and applications that need to communicate with vending machines, for example, and reducing development costs. [Brief description of the drawings]
[0019] [Figure 1] FIG. 1 is a schematic diagram illustrating the configuration of a communication system using a vending machine communication device in this embodiment. [Diagram 2]FIG. 2 is a sequence diagram showing the flow of data communication initiated by a vending machine. [Diagram 3] FIG. 3 is a sequence diagram showing a flow of server-initiated data communication. [Figure 4] FIG. 4 is a sequence diagram showing a flow when data communication occurs before an IP link is established. [Diagram 5] FIG. 5 is a sequence diagram showing a flow when a link abnormality occurs. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0020] Hereinafter, embodiments (examples) of the present invention will be described in more detail with reference to the drawings. FIG. 1 is a schematic diagram illustrating the configuration of a communication system using a vending machine communication device in this embodiment.
[0021] The communication system 100 of the present embodiment has a configuration in which a control device 50 of a vending machine 40, a communication device 10 for a vending machine, and a server 60 are connected via a network 70.
[0022] The control device 50 is a control device incorporated in an existing vending machine 40, and controls the operation of the vending machine 40. Specifically, the control device 50 controls the operation related to the sale of products in the vending machine 40 (including electronic payment processing), manages product sales data, and the like.
[0023] The vending machine communication device 10 of this embodiment includes a control unit 12 and a communication unit 14. The control unit 12 is connected to the control device 50 of the vending machine 40, and communication between the control unit 12 and the vending machine's control device 50 is configured to take place based on any communication rules defined by the vending machine manufacturer, for example, data communication using PPP (Point to Point Protocol).
[0024] The communication unit 14 is configured to be capable of wireless communication with a wireless station 30 (base station) installed by a mobile communication carrier using a communication service provided by the mobile communication carrier, and is connected to the network 70 via this wireless station 30. Note that the communication between the communication unit 14 and the wireless station 30 is not particularly limited as long as a constant communication link is established and constant communication is possible, and for example, wireless communication of the 4G standard or the 5G standard can be used.
[0025] The control unit 12 and the communication unit 14 are configured to perform data communication via Ethernet. Specifically, an IP link is established between the control unit 12 and the communication unit 14, thereby performing data communication between the control unit 12 and the communication unit 14.
[0026] The server 60 includes, for example, a sales company server 60a for managing sales-related data such as sales and product inventory at the vending machine 40, and an electronic payment company server 60b for making electronic payments using electronic money, etc. The server 60 that communicates with the vending machine communication device 10 may be limited to one, but when the sales company that sells products and the electronic payment company that makes electronic payments are different, they are generally managed by different servers, so it is preferable to configure the device to communicate with multiple servers 60a, 60b as shown in FIG. 1.
[0027] The network 70 is generally the Internet, but may be a network that does not involve the Internet, such as a network using dedicated lines.
[0028] In the communication system 100 of this embodiment configured as above, data communication is performed between the control device 50 and the server 60 as follows.
[0029] <1> Sequence in vending machine-driven data communication FIG. 2 is a sequence diagram showing the flow of data communication initiated by a vending machine. 2, when the vending machine communication device 10 of this embodiment is powered on and starts up (S10), first, the communication unit 14 establishes a constant communication link with the wireless station 30 (S11). This enables constant communication between the communication unit 14 and the wireless station 30, and ultimately enables data communication between the communication unit 14 and the server 60.
[0030] Next, a connection request command (e.g., an ATD command) is transmitted from the control unit 12 to the communication unit 14 (S12). When the communication unit 14 receives the connection request command, it transmits a connection completion code (e.g., a CONNECT result code) to the control unit 12 in response to the command, if a connection with the control unit 12 is possible (S13). This establishes an IP link between the control unit 12 and the communication unit 14 (S14), and data communication becomes possible.
[0031] In this state, when a connection request command is sent from the control device 50 to the control unit 12 (S15), the control unit 12 responds by sending a connection completion code to the control device 50 (S16). As a result, a PPP communication link is established between the control device 50 and the control unit 12 (S17), enabling data communication. Note that in this embodiment, a PPP communication link is established between the control device 50 and the control unit 12, but this is not limiting, and as described above, communication can be performed based on any communication rules determined by the vending machine manufacturer or the like.
[0032] This enables data communication between the control device 50 and the server 60, and for example, data related to electronic payment can be transmitted and received between the control device 50 and the electronic payment operator server 60b (S18).
[0033] By configuring in this manner, communication between the control device 50 and the control unit 12 can be carried out based on any communication rules defined by the vending machine manufacturer, etc., making it possible to utilize existing vending machines.
[0034] In addition, an IP link is established between the control unit 12 and the communication unit 14, enabling data communication via Ethernet. Therefore, the communication unit 14 can transmit data packets sent from the control unit 12 directly to the server 60 via the wireless station 30 and the network 70, thereby improving communication performance.
[0035] Furthermore, an IP link is established between the control unit 12 and the communication unit 14, enabling data communication via Ethernet, so that the control unit 12 can communicate with multiple servers 60a, 60b simultaneously. This makes it possible, for example, to transmit sales-related data from the control terminal 50 to the sales company server 60a while also performing data communication for electronic payment with the electronic payment company server 60b.
[0036] When data communication between the control device 50 and the server 60 ends and communication between the control device 50 and the control unit 12 does not occur, the control unit 12 disconnects the PPP communication link after a predetermined time has elapsed (S19). Next, the control unit 12 transmits a line disconnection code (e.g., a NO CARRIER result code) to the control device 50 (S20).
[0037] <2> Sequence in server-initiated data communication FIG. 3 is a sequence diagram showing a flow of server-initiated data communication. 3, when the vending machine communication device 10 of this embodiment is powered on and starts up (S30), first, the communication unit 14 establishes a constant communication link with the wireless station 30 (S31). This enables constant communication between the communication unit 14 and the wireless station 30, and ultimately enables data communication between the communication unit 14 and the server 60.
[0038] Next, a connection request command (e.g., an ATD command) is transmitted from the control unit 12 to the communication unit 14 (S32). When the communication unit 14 receives the connection request command, it transmits a connection completion code (e.g., a CONNECT result code) to the control unit 12 in response to the command, if a connection with the control unit 12 is possible (S33). This establishes an IP link between the control unit 12 and the communication unit 14 (S34), and data communication becomes possible.
[0039] In this state, when request data is sent from the server 60 to the control device 50 to request the transmission of sales-related data (S35), this request data is sent to the communication unit 14 via the network 70 and the wireless station 30 (S36).
[0040] When the communication unit 14 receives the request data, it transmits the request data to the control unit 12 using the IP link established with the control unit 12 (S37).
[0041] When the control unit 12 receives the request data (data packet), it uses this as a trigger to send a call detection code (e.g., a RING result code) to the control device 50 (S38). Next, the control unit 12 sends a connection completion code (e.g., a CONNECT result code) to the control device 50 (S39). As a result, a PPP communication link is established between the control device 50 and the control unit 12 (S40), and data communication becomes possible. Note that in this embodiment, a PPP communication link is established between the control device 50 and the control unit 12, but this is not limiting, and as described above, communication can be performed based on any communication rules determined by the vending machine manufacturer, etc.
[0042] Next, the control unit 12 transmits the request data to the control device 50 (S41). The control device 50 transmits sales-related data to the server 60 by receiving the request data.
[0043] At this time, a PPP communication link is established between the control device 50 and the control unit 12, an IP link is established between the control device 12 and the communication unit 14, and a constant communication link is established between the communication unit 14 and the wireless station 30. Therefore, data communication is possible from the control device 50 to the server 60, and the sales-related data sent from the control device 50 is sent to the server 60 as is.
[0044] <3> Sequence when data communication occurs before IP link is established FIG. 4 is a sequence diagram showing a flow when data communication occurs before an IP link is established. 4, when the vending machine communication device 10 of this embodiment is powered on and starts up (S50), first, the communication unit 14 establishes a constant communication link with the wireless station 30 (S51). This enables constant communication between the communication unit 14 and the wireless station 30, and ultimately enables data communication between the communication unit 14 and the server 60.
[0045] In this state, when a connection request command (e.g., ATD command) is sent from the control device 50 to the control unit 12 (S52), the control unit 12 sends a busy tone detection code (e.g., BUSY result code) to the control device 50 (S53). As a result, the control device 50 determines that the vending machine communication device 10 is not yet ready, and waits for a predetermined time.
[0046] By configuring in this manner, it is possible to prevent a PPP communication link from being established between the control unit 12 and the control device 50 before an IP link is established between the control unit 12 and the communication unit 14, which would result in, for example, sales-related data or data related to electronic payment being sent unnecessarily from the control device 50.
[0047] Thereafter, similar to S12 to S18 in the above-mentioned "sequence for vending machine-initiated data communication," an IP link is established between the control unit 12 and the communication unit 14, and a PPP communication link is established between the control unit 12 and the control device 50, enabling data communication to be performed between the control device 50 and the server 60 (S54 to S60).
[0048] <4> Sequence when a link failure occurs FIG. 5 is a sequence diagram showing a flow when a link abnormality occurs. 5, when the vending machine communication device 10 of this embodiment is powered on and starts up (S70), first, the communication unit 14 establishes a constant communication link with the wireless station 30 (S71). This enables constant communication between the communication unit 14 and the wireless station 30, and ultimately enables data communication between the communication unit 14 and the server 60.
[0049] Next, a connection request command (e.g., ATD command) is transmitted from the control unit 12 to the communication unit 14 (S72). When the communication unit 14 receives the connection request command, it transmits a connection completion code (e.g., CONNECT result code) to the control unit 12 in response to the command, if a connection with the control unit 12 is possible (S73). This establishes an IP link between the control unit 12 and the communication unit 14 (S74), and data communication becomes possible.
[0050] If some kind of abnormality occurs (S75) and the IP link between the control unit 12 and the communication unit 14 is cut off (S76), the control unit 12 transmits a connection request command again (S77). When the communication unit 14 receives the connection request command, it transmits a connection completion code to the control unit 12 in response to the command if connection with the control unit 12 is possible (S78). This establishes an IP link between the control unit 12 and the communication unit 14 (S79), and data communication becomes possible again.
[0051] In this way, by configuring the control unit 12 to automatically return to normal as necessary so as to maintain an established IP link between the control unit 12 and the communication unit 14, it is possible to prevent, for example, request data sent from the server 60 from not reaching the control unit 12.
[0052] Although the preferred embodiment of the present invention has been described above, the present invention is not limited to this embodiment, and various modifications are possible without departing from the scope of the present invention. [Explanation of symbols]
[0053] 10 Communication device for vending machines 12 Control section 14 Communications Department 30 Radio Station 40 Vending Machine 50 Control device 60 servers 60a Merchant Server 60b Electronic payment business server 70 Network
Claims
[Claim 1] A communication device for a vending machine for connecting a control device of the vending machine to a network, a communication unit that is connectable to the network through constant communication; A control unit that can be connected to the control device of the vending machine based on any communication rule; Equipped with The communication unit and the control unit are configured to perform data communication via Ethernet, The control unit is In response to a connection request from a control device of the vending machine, the control unit and the control device are connected based on the arbitrary communication rule, A communication device for a vending machine configured to connect the control unit and the control device based on the arbitrary communication rule in response to data reception from the network side via the communication unit.
Citation Information
Patent Citations
System and method for providing vending machine sales network data management
JP2011525265A
Control device, relay device and communication system
JP2019186892A
