The content of the invention
It is a primary object of the present invention to provide a kind of automatic vending machine unlocking control method, electronic equipment and readable storage
Medium, it is intended to solve the security presence hidden danger of current automatic vending machine, the problem of security is poor.
To achieve the above object, one aspect of the present invention provides a kind of automatic vending machine unlocking control method, including following step
Suddenly:
Request of unlocking is received, monitors the mechanical lock status of automatic vending machine;
After the mechanical lock status of automatic vending machine is in an open state, there is provided electronic key asks interface, for initiating electronics
Key authentication operates;
After electronic key is verified, control automatic vending machine is unlocked.
Alternatively, after the step of mechanical lock status of the monitoring automatic vending machine, further include:
Whether the mechanical lock of monitoring automatic vending machine has unlocking operation;
After having unlocking operation, judge whether the unlocking operation of the mechanical lock of the automatic vending machine is completed;
After the completion of by the unlocking operation of the mechanical lock, the door to be opened of automatic vending machine is controlled to open predetermined angle,
The mechanical lock status indication of automatic vending machine is in an open state.
Alternatively, it is described after electronic key is verified, control automatic vending machine unlock the step of include:
After electronic key is verified, the door standard-sized sheet to be opened of automatic vending machine is controlled.
Alternatively, the offer electronic key request interface, after the step of initiation electronic key verification operation, is also wrapped
Include:
Electronic key checking request is initiated based on electronic key request interface;
The electronic keying information of input is received, the electronic keying information is sent to server, to verify the electronics
Whether key information is correct;
After receiving server and returning to correct feedback information, judge that electronic key is verified.
Alternatively, after described the step of initiating electronic key checking request based on electronic key request interface, also
Including:
The electronic keying information of input is received, the electronic keying information ratio that the electronic keying information and server are returned
It is right;
When consistent, judge that electronic key is verified.
Alternatively, after described the step of initiating electronic key checking request based on electronic key request interface, also
Including:
When not receiving the electronic keying information of input in preset time, failure of unlocking is judged;
The door to be opened is controlled to close.
Alternatively, after described the step of initiating electronic key checking request based on electronic key request interface, also
Including:
When not receiving the electronic keying information of input in preset time, judge whether received again in setting time
Asked to unlocking;
Do not receive unlocking request again in setting time, terminate this unlocking flow, the control door to be opened closes
Close.
In addition, to achieve the above object, another aspect of the present invention also provides a kind of electronic equipment, the electronic equipment bag
Include:The automatic vending machine that memory and processor and being stored in can be run on the memory and on the processor is unlocked control
Processing procedure sequence, the automatic vending machine unlock when control program is performed by the processor and realize that automatic vending machine as described above is opened
Lock control method.
Alternatively, the electronic equipment is automatic vending machine.
In addition, to achieve the above object, another aspect of the present invention also provides a kind of readable storage medium storing program for executing, the readable storage
Automatic vending machine unlocking control program is stored with medium, the automatic vending machine, which is unlocked, controls program real when being executed by processor
Now automatic vending machine unlocking control method as described above.
The present invention
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:Request of unlocking is received, monitors the mechanical lock status of automatic vending machine;
After the mechanical lock status of automatic vending machine is in an open state, there is provided electronic key asks interface, for initiating electronic key verification
Operation;After electronic key is verified, control automatic vending machine is unlocked.
Due to the security presence hidden danger of current automatic vending machine, the problem of security is poor.The present invention provides a kind of solution party
Case, by the way that mechanical lock and electronic lock ensured the unlocking operation of automatic vending machine jointly, and mechanical lock is unlocked in preceding, electronics
Lock is unlocked rear, is unlocked in sequence, could be opened the unlocking of automatic vending machine.Rather than only ensure by mechanical lock automatic
The safety of vending machine, improves the security of automatic vending machine.
As shown in Figure 1, the electronic devices structure signal for the hardware running environment that Fig. 1, which is the embodiment of the present invention, to be related to
Figure.
Electronic equipment of the embodiment of the present invention can be automatic vending machine or be connected with automatic vending machine PC, intelligence
The control devices such as mobile phone, tablet computer, pocket computer, remote controler.Outside automatic vending machine during other equipment, other equipment is led to
The order for performing that mechanical lock and electronic lock are unlocked is crossed, unlocks in sequence, ensures the security of automatic vending machine.
As shown in Figure 1, the electronic equipment can include:Processor 1001, such as CPU, network interface 1004, user interface
1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is used for realization the connection communication between these components.
User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally connect including the wired of standard
Mouth, wave point (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or the memory of stabilization
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
Alternatively, electronic equipment can also include camera, RF (Radio Frequency, radio frequency) circuit, sensor,
Voicefrequency circuit, WiFi module, detector (magnet ring+Hall sensor) etc..Wherein, sensor ratio such as imaging sensor, infrared
Sensor and other sensors.And it can detect as one kind of motion sensor, gravity accelerometer in all directions
The size of (generally three axis) acceleration, can detect that size and the direction of gravity when static, available for identification electronic equipment appearance
The application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of state, Vibration identification correlation function (such as pedometer,
Tap) etc.;Certainly, electronic equipment can also configure gyroscope, barometer, hygrometer, thermometer, temperature sensor etc. other sensing
Device, details are not described herein.
It will be understood by those skilled in the art that the terminal structure shown in Fig. 1 does not form the restriction to electronic equipment, can
With including than illustrating more or fewer components, either combining some components or different components arrangement.
As shown in Figure 1, as in a kind of memory 1005 of readable storage medium storing program for executing can include operating system, network service
Module, Subscriber Interface Module SIM and automatic vending machine control application program.
In the terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, is carried out with background server
Data communication;User interface 1003 is mainly used for connecting client (user terminal), with client into row data communication;And processor
1001 can be used for calling the automatic vending machine control application program stored in memory 1005, and perform following operation:
Request of unlocking is received, monitors the mechanical lock status of automatic vending machine;
After the mechanical lock status of automatic vending machine is in an open state, there is provided electronic key asks interface, for initiating electronics
Key authentication operates;
After electronic key is verified, control automatic vending machine is unlocked.
Further, after the step of mechanical lock status of the monitoring automatic vending machine, the processor 1001 can be with
For calling the automatic vending machine stored in memory 1005 to control application program, and perform following operation:
Whether the mechanical lock of monitoring automatic vending machine has unlocking operation;
After having unlocking operation, judge whether the unlocking operation of the mechanical lock of the automatic vending machine is completed;
After the completion of by the unlocking operation of the mechanical lock, the door to be opened of automatic vending machine is controlled to open predetermined angle,
The mechanical lock status indication of automatic vending machine is in an open state.
Further, the processor 1001 can be used for calling the automatic vending machine control stored in memory 1005 should
With program, and perform following operation:
After electronic key is verified, the door standard-sized sheet to be opened of automatic vending machine is controlled.
Further, the offer electronic key request interface, after the step of initiation electronic key verification operation, institute
State processor 1001 to can be used for calling the automatic vending machine control application program stored in memory 1005, and perform following behaviour
Make:
Electronic key checking request is initiated based on electronic key request interface;
The electronic keying information of input is received, the electronic keying information is sent to server, to verify the electronics
Whether key information is correct;
After receiving server and returning to correct feedback information, judge that electronic key is verified.
Further, after described the step of initiating electronic key checking request based on electronic key request interface,
The processor 1001 can be used for calling the automatic vending machine control application program stored in memory 1005, and perform following
Operation:
The electronic keying information of input is received, the electronic keying information ratio that the electronic keying information and server are returned
It is right;
When consistent, judge that electronic key is verified.
Further, after described the step of initiating electronic key checking request based on electronic key request interface,
The processor 1001 can be used for calling the automatic vending machine control application program stored in memory 1005, and perform following
Operation:
When not receiving the electronic keying information of input in preset time, failure of unlocking is judged;
The door to be opened is controlled to close.
Further, after described the step of initiating electronic key checking request based on electronic key request interface,
The processor 1001 can be used for calling the automatic vending machine control application program stored in memory 1005, and perform following
Operation:
When not receiving the electronic keying information of input in preset time, judge whether received again in setting time
Asked to unlocking;
Do not receive unlocking request again in setting time, terminate this unlocking flow, the control door to be opened closes
Close.
With reference to Fig. 2, one embodiment of the invention provides a kind of automatic vending machine control method, the automatic vending machine control
Method includes:
Step S10, receives request of unlocking, and monitors the mechanical lock status of automatic vending machine;
In the present embodiment, the electronic equipment is by taking automatic vending machine as an example, automatic vending machine (Vending Machine,
VEM) it is the machine that can pay goods automatically according to the coin of input.Automatic vending machine is the commonly used equipment of business automation, it from
Time, the limitation in place, can save manpower, convenient transaction.A kind of brand-new retailing form, be otherwise known as 24 it is small when seek
The micro supermarket of industry.Domestic common Vending Machine is divided into four kinds at present:Drink dispenser, food automatic vending
Machine, comprehensive automation vending machine, cosmetics Vending Machine.
And automatic vending machine as one of unserviced equipment, it is necessary to ensure its security, not so automatic vending machine
Owner, or perhaps the owner of goods for automatic saler can cause property loss because automatic vending machine is robbed or burgled.Automatic
Mechanical lock is provided with vending machine, the mechanical lock can unlock according to mechanical key, and after automatic vending machine locking, whether is detecting
There are unlocking operation, request of unlocking is received, monitors the mechanical lock status of automatic vending machine, the machinery lock status includes pinning,
The state such as opening, half-open.After request of unlocking is received, mechanical lock status is monitored, judges whether mechanical lock is in open mode.
Specifically, with reference to figure 3, judge that the step of whether mechanical lock is in open mode includes:
Whether step S11, the mechanical lock for monitoring automatic vending machine have unlocking operation;
Step S12, after having unlocking operation, judges whether the unlocking operation of the mechanical lock of the automatic vending machine is completed;
Step S13, after the completion of by the unlocking operation of the mechanical lock, controls the door to be opened of automatic vending machine to open in advance
If angle, the mechanical lock status indication of automatic vending machine is in an open state.
Mechanical lock needs the mode of machinery to open, and the mode such as insertion key is opened, and whether monitoring mechanical lock has unlocking
Operation, but there is unlocking operation just can can't successfully unlock, and judge whether successfully to open mechanical lock, it is to judge key insertion lock
After, if predetermined angle is gone to, or turns to predeterminated position, if it is, judging to unlock successfully, if it is not, then judging to open
Open failure.After unlocking successfully, the door to be opened of automatic vending machine can be controlled to open predetermined angle, by the machinery of automatic vending machine
Lock status mark is in an open state.The predetermined angle is the angle less than standard-sized sheet, after the predetermined angle is opened, the use of outside
Family can not take the article inside automatic vending machine away, also can not be to the inside admixture product.In an embodiment of the present invention, in success
After unlocking, prompt message is sent, mechanical lock is had already turned on prompting, mechanical lock mark is in an open state.
Step S20, after the mechanical lock status of automatic vending machine is in an open state, there is provided electronic key asks interface, supplies
Initiate electronic key verification operation;
It is opened detecting automatic vending machine by way of physics, after open mode, there is provided electronic key please
Interface is asked, for initiating electronic key verification operation.Electronic lock is connected with mechanical lock, and individually opening wherein one lock can not open certainly
Dynamic vending machine, only when two locks are in open mode, can open the door of automatic vending machine.Unlocking user can be in machine
After tool lock is in open mode, input and the verification operation of interface progress electronic key are asked according to the electronic key of offer.
Specifically, with reference to figure 4, the process of electronic key verification includes:
Step S21, electronic key checking request is initiated based on electronic key request interface;
Step S22, receives the electronic keying information of input, and the electronic keying information is sent to server, with verification
Whether the electronic keying information is correct;
Step S23, after receiving server and returning to correct feedback information, judges that electronic key is verified.Here
Electronic key verification, simply provide request interface and electronic key inputting interface in automatic vending generator terminal, and processing procedure exists
Server, verification process is also in server, and after user sends request at electronic key request interface, it is close that server can issue electronics
For key to user terminal (mobile phone or pad etc.), user is based on request interface input electronic key again, sends to server and makes verification,
When consistent with the electronic key of request, it is verified.
Specifically, with reference to figure 5, the process of electronic key verification can also be:
Step S24, receives the electronic keying information of input, and the electronic keying information and electronics that server returns is close
Key information compares;
Step S25, when consistent, judges that electronic key is verified.
Here verification process is unlike those described above to be, verification process not in server end, and user terminal either from
Dynamic generator terminal of selling goods, for user after request is sent based on request interface, electronic key is issued to user terminal and automatic selling by server
Cargo aircraft end, user receive the electronic key for verification in the input of request interface, and electronic key is carried out in automatic vending generator terminal
Verification, when the electronic keying information is consistent with the electronic keying information that server returns, judge that electronic key verification is logical
Cross.
Step S30, after electronic key is verified, control automatic vending machine is unlocked.
Electronic key input by user and server preserve or server be handed down to the electronics at electronic slot machine end
During key agreement, judge electronic key by the way that electron key is opened, and control automatic vending machine is unlocked.Here control automatic selling
It is that the control corresponding door of automatic vending machine is all turned on that cargo aircraft, which is unlocked, and user can be put into cargo or take out cargo.Specifically, institute
The step of stating after electronic key is verified, controlling automatic vending machine to unlock includes:After electronic key is verified, control
The door standard-sized sheet to be opened of automatic vending machine.
The present embodiment by ensureing the unlocking operation of automatic vending machine, and mechanical lock jointly by mechanical lock and electronic lock
Unlock preceding, electronic lock is unlocked rear, is unlocked in sequence, could be opened the unlocking of automatic vending machine.Rather than only lean on machine
Tool is locked to ensure the safety of automatic vending machine, improves the security of automatic vending machine.
It is described close based on electronic key request interface initiation electronics in a preferred embodiment of the present invention with reference to figure 6
After the step of key checking request, further include:
Step S40, when not receiving the electronic keying information of input in preset time, judges failure of unlocking;
Step S50, the control door to be opened are closed.
In the present embodiment, in electronic key verification process is performed, if server has issued electronic key letter
Breath, and it is close based on electronic key request interface input electronics not receive user in preset time server or automatic vending machine
Key, then judge the electronic key time-out this time issued, can not open corresponding door to be opened by this electronic key again, then
The door to be opened that control is opened by mechanical lock is closed, and is returned to door-closing in-place position, close door to be opened.When described default
Between can be 5 minutes or 6 minutes etc..By setting the time, and prevent that electronic key from losing or leakage causes other users
So that automatic vending machine unsafe condition, the security of automatic vending machine is improved.
In an embodiment of the present invention, when not receiving the electronic keying information of input in preset time, judge setting
Whether unlocking request is received in fixing time again;Do not receive unlocking request again in setting time, terminate this unlocking
Flow, the control door to be opened are closed.The setting time is different from preset time, and the setting time is more than described default
Time, i.e. when selection performs setting time, when preset time reaches, do not close mechanical lock and door to be opened, and be to continue with
Whether detection user sends unlocking request, if sent, is directly verified, is verified by electronic key, turned on
Door, if verification is not by closing door.In setting time, user need not open mechanical lock by mechanical key again, and only
The verification process of restarting electronic key is needed, avoids the operating process of complexity, is improving automatic vending machine safety
On the basis of property, excessive troublesome operation is reduced, improves the efficiency of unlocking.
The present invention also provides a kind of electronic equipment, the electronic equipment includes:Memory and processor and it is stored in described
On memory and the automatic vending machine that can run on the processor is unlocked control program, and the automatic vending machine is unlocked control
Program realizes automatic vending machine unlocking control method as described above when being performed by the processor.The electronic equipment can be
The equipment of automatic vending machine or other control automatic vending machines.
The present embodiment by ensureing the unlocking operation of automatic vending machine, and mechanical lock jointly by mechanical lock and electronic lock
Unlock preceding, electronic lock is unlocked rear, is unlocked in sequence, could be opened the unlocking of automatic vending machine.Rather than only lean on machine
Tool is locked to ensure the safety of automatic vending machine, improves the security of automatic vending machine.
In addition, the embodiment of the present invention also proposes a kind of readable storage medium storing program for executing, it is stored with the readable storage medium storing program for executing automatic
Vending machine, which is unlocked, controls program, and the automatic vending machine unlocks when control program is performed by the processor and realizes following operate:
Request of unlocking is received, monitors the mechanical lock status of automatic vending machine;
After the mechanical lock status of automatic vending machine is in an open state, there is provided electronic key asks interface, for initiating electronics
Key authentication operates;
After electronic key is verified, control automatic vending machine is unlocked.
Further, after the step of mechanical lock status of the monitoring automatic vending machine, the automatic vending machine is unlocked
Control program realizes following operation when being performed by the processor:
Whether the mechanical lock of monitoring automatic vending machine has unlocking operation;
After having unlocking operation, judge whether the unlocking operation of the mechanical lock of the automatic vending machine is completed;
After the completion of by the unlocking operation of the mechanical lock, the door to be opened of automatic vending machine is controlled to open predetermined angle,
The mechanical lock status indication of automatic vending machine is in an open state.
Further, the automatic vending machine unlocks when control program is performed by the processor and realizes following operation:
After electronic key is verified, the door standard-sized sheet to be opened of automatic vending machine is controlled.
Further, the offer electronic key request interface, after the step of initiation electronic key verification operation, institute
State when automatic vending machine unlocking control program is performed by the processor and realize following operation:
Electronic key checking request is initiated based on electronic key request interface;
The electronic keying information of input is received, the electronic keying information is sent to server, to verify the electronics
Whether key information is correct;
After receiving server and returning to correct feedback information, judge that electronic key is verified.
Further, after described the step of initiating electronic key checking request based on electronic key request interface,
The automatic vending machine unlocks when control program is performed by the processor and realizes following operation:
The electronic keying information of input is received, the electronic keying information ratio that the electronic keying information and server are returned
It is right;
When consistent, judge that electronic key is verified.
Further, after described the step of initiating electronic key checking request based on electronic key request interface,
The automatic vending machine unlocks when control program is performed by the processor and realizes following operation:
When not receiving the electronic keying information of input in preset time, failure of unlocking is judged;
The door to be opened is controlled to close.
Further, after described the step of initiating electronic key checking request based on electronic key request interface,
The automatic vending machine unlocks when control program is performed by the processor and realizes following operation:
When not receiving the electronic keying information of input in preset time, judge whether received again in setting time
Asked to unlocking;
Do not receive unlocking request again in setting time, terminate this unlocking flow, the control door to be opened closes
Close.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those key elements, and
And other elements that are not explicitly listed are further included, or further include as this process, method, article or system institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical element in the process of key element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in one as described above
In readable storage medium storing program for executing (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be hand
Machine, computer, server, automatic vending machine, or network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills
Art field, is included within the scope of the present invention.