Summary of the invention
The main purpose of the embodiment of the present invention is to provide a kind of inlet/outlet condition detection method and device, it is intended to solve existing
The technical problem that some inlet/outlet state-detection schemes are at high cost, stability is low, user experience is bad.
To achieve these objectives, it on the one hand proposes a kind of inlet/outlet condition detection method, the described method comprises the following steps:
Monitoring, which is unlocked, verifies process and door opening action;
When successively monitoring the unlocking verifying process and the door opening action, judge current as the state of entering;
When only monitoring the door opening action, judge current as door state out.
Optionally, described when successively monitoring unlocking verifying process and the door opening action, judge currently as into
Door state, comprising:
When monitoring the unlocking verifying process in the ban, then monitoring the door opening action within a preset time, then judge
Current is state of entering.
Optionally, the method also includes:
When monitoring the door opening action, triggering judges process: judging pre- before monitoring the door opening action
If whether monitoring verifying process of unlocking in the time;If so, judging current as the state of entering;If it is not, then judgement is currently
Door state out.
Optionally, the monitoring door opening action includes:
Whether monitoring lock body is opened, and when the lock body is opened, judgement monitors door opening action.
Optionally, whether the monitoring lock body, which is opened, includes:
Whether the lock tongue of monitoring lock body has retract action, when the lock tongue has retract action, determines that the lock body is opened.
Optionally, it is described judge currently as enter state the step of after further include:
The identity that the person of entering is determined according to the verifying process of unlocking, starts field corresponding with the identity of the person of entering
Scape control model, to control corresponding smart machine.
On the other hand, a kind of inlet/outlet condition checkout gear is proposed, described device includes:
Monitoring modular, for monitoring unlock verifying process and door opening action;
Judgment module, for when successively monitoring unlocking verifying process and the door opening action, judgement is currently
It enters state;When only monitoring the door opening action, judge current as door state out.
Optionally, the judgment module is used for:
When monitoring the unlocking verifying process in the ban, then monitoring the door opening action within a preset time, then judge
Current is state of entering.
Optionally, the judgment module is used for:
When obtaining information of the monitoring module monitors to the door opening action, triggering judges process: judging the prison
Survey whether module monitors verifying process of unlocking in the preset time before monitoring the door opening action;If so, sentencing
It is disconnected current for state of entering;If it is not, then judging current as door state out.
Optionally, the monitoring modular is used for:
Whether monitoring lock body is opened, and when the lock body is opened, judgement monitors door opening action.
Optionally, the monitoring modular is used for:
Whether the lock tongue of monitoring lock body has retract action, when the lock tongue has retract action, determines that the lock body is opened.
Optionally, described device further includes control module, and the control module is used for:
When judge currently for enter state when, according to it is described unlock verifying process determine the person of entering identity, start and institute
The corresponding scenery control mode of identity for the person of entering is stated, to control corresponding smart machine.
A kind of inlet/outlet condition detection method provided by the embodiment of the present invention is unlocked by monitoring and verifies process and enabling
Movement, using needing to carry out unlocking verifying when entering to realize without carrying out the difference of unlocking verifying when going out to the state of entering
The differentiation of door state, scheme are simple and easy out.Due to increasing hardware device without additional, without user's additional act, because
This effectively reduces cost, improves the stability of system, and greatly improves user experience.
Specific 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 present inventor is carefully studied discovery, and existing access control system just carries out unlocking testing when entering
It does not need then to carry out unlocking verifying when demonstrate,proving, and going out.It is found based on this, the inlet/outlet status monitoring scheme of the embodiment of the present invention,
Process is verified by existing access control system dual lock and door opening action is monitored, and judges whether to have carried out unlocking when opening the door to test
It demonstrate,proves to realize that inlet/outlet differentiates, increases the hardware devices such as sensor, camera without additional, without user's additional act, just
It can accurately identify that current door opening action is entered state or door state out.
The inlet/outlet condition detection method and device of the embodiment of the present invention, can be applied to access control system, and with intelligent family
System, security system etc. is occupied to link.
Referring to Fig. 1, proposes one embodiment of inlet/outlet condition detection method of the invention, the described method comprises the following steps:
S11, monitoring, which are unlocked, verifies process and door opening action.
Monitoring for verifying process of unlocking can read mould by fingerprint authentication module, Password Input module, radio-frequency card
Block, infrared receiving module, bluetooth receiving module etc. verify input module and acquire verification information, then by collected verification information
It is compared with the verification information of preparatory typing, judges whether the two matches.When the two matching, then determine to monitor to unlock to test
Demonstrate,prove process.
Monitoring for door opening action can detect whether door is opened by sensors such as door sensors, when the door is opened,
Then determine to monitor door opening action.Preferably, door opening action, the embodiment of the present invention are mistaken for when door is illegally pried open in order to prevent
In, whether monitoring lock body is opened, and when lock body is opened, then determines to monitor door opening action, when lock body is not opened, no matter door is
No be opened all determines not monitor door opening action.Lock body described here is opened, and be can be automatic opening, is also possible to people
It is manually opened.
By taking mechanical lock body as an example, it can be monitored by detecting elements such as mechanical switch, infrared switch, Hall magnetic switches
Whether the lock tongue of lock body has retract action while retracting (lock tongue can trigger above-mentioned detecting element), when detecting that lock tongue has retract action
When, then determine that lock body is opened.
By taking magnetic key operated lock as an example, can by the detecting elements such as electrical behavior switch, magnetic switch detect lock body whether de-energizing actions
Or magnetic force disappearance movement then determines that lock body is opened when detecting that lock body has de-energizing actions or magnetic force disappearance to act.
In addition to this, when for other types of lock body, it can also monitor by a similar method whether lock body is opened,
This is repeated no more.
S12, when the verifying process and when door opening action of successively monitoring to unlock, judge currently as the state of entering.
In view of from needing to carry out unlocking verifying when entering outdoors, therefore, when successively monitoring verifying process and enabling of unlocking
When movement, just judge current as the state of entering.
Optionally, in order to improve the accuracy of judgement, verifying process of unlocking is monitored in the ban, then monitor within a preset time
When to door opening action, just judge current as the state of entering.It is not monitored within a preset time after monitoring unlocking verifying process
When to door opening action, then gives up the unlocking verifying process that this is monitored and be then judged as out when hereafter monitoring door opening action again
Door state.
Further, when judge currently for enter state when, then combine smart home system, security system etc., start pair
The scenery control mode answered, such as starting home mode, office mode, mode of withdrawing a garrison, to be controlled to corresponding smart machine
System.Wherein, it when the corresponding scene mode such as home mode, office mode, mode of withdrawing a garrison has been turned on, is then failure to actuate.
Further, when judge currently for enter state when, according to unlock verifying process determination the person of entering identity, open
Scenery control mode corresponding with the identity for the person of entering is moved, to control corresponding smart machine.To which, user can be with
The customized scenery control mode oneself liked, when entering, system then starts the scenery control mode of oneself customization automatically.
S13, when only monitoring door opening action, judge currently for out door state.
It does not need to carry out unlocking verifying in view of when going out out of door, therefore, when only monitoring door opening action, then judgement is worked as
Preceding is door state.
In an alternative embodiment, when monitoring door opening action, just triggering judges process: judging monitoring that enabling is dynamic
Whether unlock verifying process is monitored in preset time before work;If so, judging current as the state of entering;If it is not, then
Judge current as door state out.
Further, when judging currently to go out door state, then smart home system, security system etc., starting pair are combined
The scenery control mode answered, such as start the mode, deployable model of leaving home.For example, when judging currently to go out door state, security protection system
Whether somebody then starts deployable model, while smart home system starts as nobody in room in system detection room
It leaves home mode.
Further, when detecting that door is opened, but when lock body is not opened, then determine that someone forces open the door and break in, security protection
System then starts alarm mode and alarms.
The inlet/outlet condition detection method of the embodiment of the present invention is unlocked by monitoring and verifies process and door opening action, is utilized
Without carrying out the difference of unlocking verifying when needing to carry out unlocking verifying and go out when entering, realize to the state of entering and door state out
Differentiation, scheme is simple and easy.Due to increasing hardware device without additional, without user's additional act, therefore it is effectively reduced
Cost, improves the stability of system, and greatly improve user experience.
Referring to fig. 2, inlet/outlet condition checkout gear first embodiment of the invention is proposed, described device includes monitoring modular
And judgment module, in which:
Monitoring modular: for monitoring unlock verifying process and door opening action.
In the embodiment of the present invention, monitoring modular can be monitored open by the existing unlocking authentication unit being installed on a door
Lock verifying process, monitors door opening action by the existing detecting element being installed on a door, sensor etc..
Monitoring for verifying process of unlocking, monitoring modular can be by the fingerprint authentication modules of unlocking authentication unit, close
The verifying input module acquisition verifying letter such as code input module, radio-frequency card read module, infrared receiving module, bluetooth receiving module
Collected verification information, is then compared by unlocking authentication unit with the verification information of preparatory typing, judges two by breath
Whether person matches.When the two matching, then determine to monitor to unlock to verify process.
Monitoring for door opening action, monitoring modular can detect whether door is opened by sensors such as door sensors, work as door
When being opened, then determine to monitor door opening action.Preferably, door opening action is mistaken for when door is illegally pried open in order to prevent, this
In inventive embodiments, whether monitoring module monitors lock body is opened, and when lock body is opened, is then determined to monitor door opening action, is worked as lock
When body is not opened, no matter whether door, which is opened, all determines not monitor door opening action.Lock body described here is opened, and can be
It automatically turns on, is also possible to artificial manually opened.
By taking mechanical lock body as an example, monitoring modular can pass through the detections such as mechanical switch, infrared switch, Hall magnetic switch
Whether the lock tongue of element monitoring lock body has retract action while retracting (lock tongue can trigger above-mentioned detecting element), when detecting that lock tongue has
When retract action, then determine that lock body is opened.
By taking magnetic key operated lock as an example, whether monitoring modular can detect lock body by detecting elements such as electrical behavior switch, magnetic switch
De-energizing actions or magnetic force disappearance movement then determine that lock body is opened when detecting that lock body has de-energizing actions or magnetic force disappearance to act
It opens.
In addition to this, when for other types of lock body, it can also monitor by a similar method whether lock body is opened,
This is repeated no more.
Judgment module: current as the state of entering for judging when successively monitoring unlocking verifying process and door opening action;
When only monitoring door opening action, judge current as door state out.
In view of from outdoors enter when need to carry out unlocking verifying, out of door go out when do not need to carry out unlocking verifying, therefore,
When the verifying process and when door opening action of successively monitoring to unlock, just judge currently as the state of entering, when only monitoring door opening action
When, judge current as door state out.
Optionally, in order to improve the accuracy of judgement, verifying process of unlocking is monitored in the ban, then monitor within a preset time
When to door opening action, just judge current as the state of entering.It is not monitored within a preset time after monitoring unlocking verifying process
When to door opening action, then gives up the unlocking verifying process that this is monitored and be then judged as out when hereafter monitoring door opening action again
Door state.
In an alternative embodiment, when obtaining information of the monitoring module monitors to door opening action, judgment module is just triggered
Judge process: judging whether monitoring modular monitors verifying stream of unlocking in the preset time before monitoring door opening action
Journey;If so, judging current as the state of entering;If it is not, then judging current as door state out.
The inlet/outlet condition checkout gear of the embodiment of the present invention is unlocked by monitoring and verifies process and door opening action, is utilized
Without carrying out the difference of unlocking verifying when needing to carry out unlocking verifying and go out when entering, realize to the state of entering and door state out
Differentiation, scheme is simple and easy.Due to increasing hardware device without additional, without user's additional act, therefore it is effectively reduced
Cost, improves the stability of system, and greatly improve user experience.
Referring to Fig. 3, inlet/outlet monitoring device second embodiment of the invention, the area of the present embodiment and first embodiment are proposed
It is not to increase a control module on the basis of first embodiment, can be managed with intelligence such as smart home system, security systems
Manage one control module of system multiplexing.
The control module is used for: according to current disengaging door state, being managed with intelligence such as smart home system, security systems
System interlink is managed, corresponding scenery control mode is started.
For example, when judge currently as enter state when, control module then combines smart home system, security system etc., opens
Move corresponding scenery control mode, such as starting home mode, office mode, mode of withdrawing a garrison, with to corresponding smart machine into
Row control.Wherein, it when the corresponding scene mode such as home mode, office mode, mode of withdrawing a garrison has been turned on, is then failure to actuate.
For another example, when judging currently to go out door state, control module then combines smart home system, security system etc., opens
Corresponding scenery control mode is moved, such as starts the mode, deployable model of leaving home.For example, leading to when judging currently to go out door state
Cross in security system detection room whether somebody then starts deployable model, and pass through intelligent family as nobody in room
It occupies system and starts mode of leaving home.
Further, when judge currently for enter state when, control module is according to the verifying process determination person of entering that unlocks
Identity starts scenery control mode corresponding with the identity for the person of entering, to control corresponding smart machine.To,
The scenery control mode that user customized oneself can like, when entering, system then starts the scenery control of oneself customization automatically
Mode.
Further, when detecting that door is opened, but when lock body is not opened, control module then determines that someone forces open the door and illegally rushes
Enter, control security system starting alarm mode is alarmed.
To which by linking with smart home system and security system, it is right therewith to start in particular according to the person's of entering identity
The scenery control mode answered improves the intelligence and humanization level of system, is greatly improved user experience.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It should be understood that the above is only a preferred embodiment of the present invention, the scope of the patents of the invention cannot be therefore limited,
It is all to utilize equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content, it is applied directly or indirectly in
Other related technical areas are included within the scope of the present invention.