This application claims all benefits accruing under 35 U.S.C. §119 from China Patent Application No. 201210573796.0, filed on Dec. 26, 2012 in the State Intellectual Property Office of China. The contents of the China Application are hereby incorporated by reference.
1. Technical Field
The disclosure generally relates to vending machines, and particularly relates to product selection systems and methods for vending machines.
2. Description of Related Art
Vending machines have been in common use for dispensing items such as snacks, beverages, alcohol, cigarettes, lottery tickets, cologne, consumer products and even gold and gems to customers automatically, after the customers insert currency or credit into the machines. These vending machines typically have a plurality of selector keys or switches to allow the customer to select a specific item. However, when multiple selector keys are pressed down simultaneously or consecutively in an extremely short span of time, the vending machines cannot determine a correct response and a conflict will occur accordingly.
Therefore, there is room for improvement within the art.
Many aspects of the embodiments can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the embodiments. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the views.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings, in which like reference numerals indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references can mean “at least one.”
In general, the word “module,” as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language such as Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable-programmable read-only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media are compact discs (CDs), digital versatile discs (DVDs), Blu-Ray discs, Flash memory, and hard disk drives.
The product selection panels 20-40 are connected to the main controller 10 via a bus 60 and an interrupt line 70. In some embodiments, the bus 60 is an RS-485 bus.
The product selection panel 20 includes selector keys 21, 22, and 23. Each of the keys 21-23 is associated with a type of product stored in the vending machine. In some embodiments, a plurality of indicating lamps is located below the keys 21-23. For example, when a V-shaped lamp below a selector key is turned on, it represents that a particular type of product is stocked, and when an X-shaped lamp below a selector key is turned on, it represents that a particular type of product is sold out.
The product selection panel 30 includes selector keys 31-33 and the product selection panel 40 includes selector keys 41-43, and all panels operate in the same way. In some embodiments, a plurality of indicating lamps is located below the keys 31-33 and 41-43.
When a user presses down one of the selector keys, the corresponding product selection panel detects a key-down event. In response to the key-down event, the product selection panel sends an interrupt signal to the main controller 10. In some embodiments, when the product selection panel detects the key-down event, the product selection panel pulls voltage of the interrupt line 70 to high level. When the main controller 10 detects that the voltage of the interrupt line 70 is turned to high level, the main controller 10 determines that an interrupt signal is received.
When the main controller 10 receives the interrupt signal from the product selection panel, the main controller 10 broadcasts a suspending command to all of the product selection panels 21-23, 31-33, and 41-43, via the bus 60. Each of the product selection panels 21-23, 31-33, and 41-43 suspends further detection of any key-down event in response to receiving the suspending command. Thus, any new key-down event will be ignored.
When the main controller 10 receives the interrupt signal from the product selection panel, the main controller 10 obtains the detected key-down event from the product selection panels via the bus 60. The main controller 10 executes a routine associated with the key-down event to dispense a product.
The buzzer 50 is connected to the main controller 10. When the main controller 10 receives the interrupt signal from the product selection panel, the main controller 10 may control the buzzer 50 to buzz as an acknowledgement to the user of a command given to the vending machine.
When the main controller 10 has finished executing the routine associated with the key-down event, the main controller 10 broadcasts a resuming command to all of the product selection panels 21-23, 31-33, and 41-43 via the bus 60. Each of the product selection panels 21-23, 31-33, and 41-43 resumes detection of key-down events in response to receiving the resuming command.
In some embodiments, when the product selection panels 21-23, 31-33, and 41-43 do not receive a resuming command within a predetermined time period, the product selection panels 21-23, 31-33, and 41-43 may resume detection of key-down event themselves without the a resuming command.
In step S201, a key-down event is detected in relation to one of the product selection panels 20, 30, and 40.
In step S202, the product selection panel sends an interrupt signal to the main controller 10 via the interrupt line 70.
In step S203, the main controller 10 broadcasts a suspending command to all of the product selection panels 21-23, 31-33, and 41-43, via the bus 60.
In step S204, each of the product selection panels 21-23, 31-33, and 41-43 suspends the further detection of key-down event in response to receiving the suspending command. Thus, any new key-down event will be ignored.
In step S205, the main controller 10 obtains the detected key-down event from a product selection panel via the bus 60.
In step S206, the main controller 10 executes a routine associated with the key-down event to dispense a product.
In step S207, when the main controller 10 has finished executing the routine associated with the key-down event, the main controller 10 broadcasts a resuming command to all of the product selection panels 21-23, 31-33, and 41-43, via the bus 60.
In step S208, each of the product selection panels 21-23, 31-33, and 41-43 resumes the detection of key-down event in response to receiving the resuming command
Although numerous characteristics and advantages have been set forth in the foregoing description of embodiments, together with details of the structures and functions of the embodiments, the disclosure is illustrative only, and changes may be made in detail, especially in the matters of arrangement of parts within the principles of the disclosure to the full extent indicated by the broad general meaning of the terms in which the appended claims are expressed.
In particular, depending on the embodiment, certain steps or methods described may be removed, others may be added, and the sequence of steps may be altered. The description and the claims drawn for or in relation to a method may give some indication in reference to certain steps. However, any indication given is only to be viewed for identification purposes, and is not necessarily a suggestion as to an order for the steps.
Number | Date | Country | Kind |
---|---|---|---|
2012 1 05737960 | Dec 2012 | CN | national |
Number | Name | Date | Kind |
---|---|---|---|
5914886 | Lee | Jun 1999 | A |
6980887 | Varga et al. | Dec 2005 | B2 |
7357314 | Kusakawa | Apr 2008 | B2 |
7726562 | Walker et al. | Jun 2010 | B2 |
Number | Date | Country | |
---|---|---|---|
20140180472 A1 | Jun 2014 | US |