A kind of have device and its implementation that intelligent reminding carries the key function
Technical field
The invention belongs to the electron key technical field, be specifically related to a kind of device that intelligent reminding carries the key function that has, the invention still further relates to the implementation method of said apparatus.
Background technology
Prompting is carried key apparatus as a kind of auxiliary prompting device, the people that prevent fast pace life go out or use key after key is retained within doors.Existing key reminds carrying device mainly to be divided into two kinds of forms, and a kind of is key chain or belt hook alarm set, utilizes electromagnetic principle, when key when key chain or belt hook take off, come the control circuit break-make through the magnetic field that changes, produce then and remind sound; Another kind of antitheft door alarm set when door is opened, utilizes photoelectricity or mechanical hook-up to come the control circuit break-make, produces then to remind sound.These two kinds of promptings are carried key apparatus and are all had weak point.The former, when the user not when key chain or belt hook take off key, but do not carry key chain or belt hook is gone out, not conducting of control circuit, device does not produce prompting sound, can not reach to remind the function of carrying key; No matter the latter is that the user carries key and gos out, and still has the visitor to enter, as long as door is opened, control circuit is with regard to conducting, and device will produce prompting sound, and obvious this prompting is unnecessary, and this type device is a kind of " foolproof ", non intelligent alarm set.In general, key apparatus is carried in existing prompting, and is simple in structure, and principle is simple and easy, dehumanization, intellectuality.
Summary of the invention
The purpose of this invention is to provide a kind of device that intelligent reminding carries the key function that has, solved existing prompting and carried key apparatus, simple in structure, principle is simple and easy, dehumanization, intelligentized problem.
Another object of the present invention provides the implementation method of said apparatus.
The technical scheme that the present invention adopted is, a kind of have a device that intelligent reminding carries the key function, comprises the doorbell that is installed in the antitheft door outside; The visitor asks the user to open the door through pressing doorbell, on the wall within doors of antitheft door top infrared inductor is installed, and in the sensing range of infrared inductor below, passes through when the user gos out; Go out gate signal thereby recorded the user by infrared inductor, on the wall of adjacent antitheft door controller is installed, controller comprises microprocessor module; Microprocessor module is connected with voice module, radio receiving transmitting module b, doorbell and infrared inductor respectively; This device also comprises electron key, is provided with the power management module and the radio receiving transmitting module a that are connected in the electron key, and radio receiving transmitting module a and radio receiving transmitting module b communicate; Wherein
Doorbell is used to gather the guest request enabling signal, and the guest request enabling signal is sent to the microprocessor module of controller;
Infrared inductor is used to gather user's inlet/outlet signal, and this signal is sent to the microprocessor module of controller;
Radio receiving transmitting module b is used for the transmitting/receiving wireless signal, and this wireless signal comprises: broadcast, handshake, key sign, reception signal strength values;
Microprocessor module is used to send handshake, starts the foundation of handshake communication relation; Legal key sign according to user storage; Relatively the key sign of electron key forwarding if identical sign is arranged, is then sent the radio receiving transmitting module b that handshake is given controller; Make controller and electron key set up the radio communication relation; Whether microprocessor module also is further used for sending and carries the key signal, through the receiving intensity value that the user who receives goes out gate signal, guest request enabling signal and collects, judge to produce and carry the key signal;
Voice module is used for receiving and carries the key signal, produces and reminds sound, reaches the effect of carrying key of reminding;
Radio receiving transmitting module a; Be used for the transmitting/receiving wireless signal, this wireless signal comprises: broadcast, handshake, key sign, reception signal strength values also are further used for producing power supply control request signal; Promptly through after the broadcast that listens to radio receiving transmitting module b transmission; Send activation request signal and give power management module, when not setting up handshake communication and concern, send the sleep request signal to power management module;
Power management module; Be used for controlling the power supply status of electron key radio receiving transmitting module a; Promptly realize activation and the dormancy of wireless receiving module a through receiving corresponding power supply control request signal; In addition, the user directly cuts off or connects the power supply of radio receiving transmitting module a as required through the switch of power module.
Another technical scheme that the present invention adopted is, a kind of have an implementation method that intelligent reminding carries the device of key function, specifically implements according to following steps:
Step 1: the radio receiving transmitting module b in the controller sends broadcast; If having set up then, the handshake communication relation directly carry out step 2; Otherwise start the foundation of handshake communication relation, after promptly the radio receiving transmitting module a in the electron key listened to broadcast, the key that sends electron key self identified the radio receiving transmitting module b to controller; Microprocessor module in the controller is according to the legal key sign of user storage; Compare the key sign that electron key sends, if there is not identical sign, then handshake communication is set up failure; If identical sign is arranged; Microprocessor module sends handshake and gives radio receiving transmitting module b; Set up the correspondence between radio receiving transmitting module a and the radio receiving transmitting module b, realize both radio communications, the key of microprocessor module storage simultaneously status information is for existing legal key;
Step 2: when handshake communication is set up; Radio receiving transmitting module b in the controller sends signal with certain intensity; Radio receiving transmitting module a in the electron key gathers this receiving intensity value of sending signal; And this intensity level returned to radio receiving transmitting module b, the microprocessor module collection is the reception signal strength values that forwards of storage radio receiving transmitting module b also;
Step 3: when handshake communication was set up failure, microprocessor module storage key status information was not for existing legal key;
Step 4: send the user and go out gate signal and give microprocessor module when doorbell sends guest request enabling signal or infrared inductor; Microprocessor module is carried out corresponding interrupt routine; Comprising that guest request is opened the door interrupts and user's interruption of going out; When microprocessor module does not receive above-mentioned signal, then return step 1.
Characteristics of the present invention also are,
The interruption of opening the door of guest request in the described step 4, specifically implement according to following steps:
Step a: doorbell sends the guest request enabling signal, after microprocessor module receives this signal, stores this signal, and this moment, the guest request enabling signal was effective;
Step b: microprocessor module starts timing function, and timing begins, in order to calculate the visitor by the delay time that gets into outside the room within doors;
Step c: whether the timing function of monitoring microprocessor module finishes, if do not finish, it is effective then to continue to keep the guest request enabling signal; If finish, microprocessor module is removed the guest request enabling signal, and this moment, the guest request enabling signal was invalid, and returned master routine.
User in the described step 4 interruption of going out, specifically implement according to following steps:
Step a: infrared inductor sends the user and goes out gate signal; After microprocessor module receives this signal; The state of inquiry guest request enabling signal, if the guest request enabling signal effectively then do not send and do not carry the key signal and give voice module, the voice module prompting of also not sounding.If the guest request enabling signal is invalid, then carry out next step;
Step b: microprocessor module inquiry key status information, if there is not legal key, then there is not corresponding door key within doors in explanation; If there is legal key, the reception signal strength values that the further inquiry of microprocessor module has been stored changes from small to big if receive signal strength values, and it is near more explain that electron key leaves the distance of controller, and promptly the user carries key and gos out; If it is constant to receive signal strength values, the invariant position of electron key is described, the user does not carry key and gos out;
Step c: if the user does not carry key and gos out, microprocessor module sends and carries the key signal and give voice module, the voice module prompting of sounding, and return original program; If the user carries that key is gone out or do not have legal key within doors, microprocessor module does not send and carries the key signal and give voice module, the voice module prompting of also not sounding, and return original program.
The invention has the beneficial effects as follows, through the infrared induction module user is gone out the microprocessor module that gate signal sends to the controller module, whether microprocessor module is according to existing the guest request enabling signal to judge that the user gos out or greets a guest.If greet a guest, then do not produce and carry the key signal; If go out, microprocessor module is further discerned the key state, if the key state for there not being legal key, explains that not existing corresponding door key, microprocessor module not to produce within doors carries the key signal; If the key state is for existing legal key, microprocessor module further judges through the reception signal strength values of storage whether the user carries key.Go out when the user carries key, microprocessor module does not produce and carries the key signal; If the user leaves behind key and gos out, microprocessor module produces and carries the key signal.Can find out from said process, go out when leaving behind key that device according to the invention reminds it to carry key people; And in other cases, never bother people's normal trip, solve " foolproof " door effectively and opened the defective that key apparatus is carried in prompting; Simultaneously realized also no matter key hangs over key chain or is placed on other place; As long as the user gos out and leaves behind key, all can produce sound prompting effectively, thereby reach prompting function hommization, intelligentized purpose.
Description of drawings
Fig. 1 is the arrangement plan of a kind of embodiment of apparatus of the present invention;
Fig. 2 is the structural drawing of a kind of embodiment of apparatus of the present invention;
Fig. 3 is the implementation method process flow diagram of a kind of embodiment of apparatus of the present invention.
Among the figure, 1. electron key, 2. antitheft door, 3. doorbell, 4. infrared inductor, 5. controller, 6. power management module, 7. radio receiving transmitting module a, 8. microprocessor module, 9. voice module, 10. radio receiving transmitting module b.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is elaborated.
The present invention has the structure that intelligent reminding carries a kind of embodiment of device of key function, like Fig. 1 and shown in Figure 2, comprises the doorbell 3 that is installed in antitheft door 2 outsides, and the visitor asks the user to open the door through pressing doorbell 3.On the wall within doors of antitheft door 2 tops infrared inductor 4 is installed, when the user gos out in the sensing range of infrared inductor 4 belows process, go out gate signal thereby recorded the user by infrared inductor 4.Controller 5 is installed on the wall of adjacent antitheft door 2, and the structure of controller 5 is as shown in Figure 2, comprises microprocessor module 8, is connected with voice module 9, radio receiving transmitting module b10, doorbell 3 and infrared inductor 4 on the microprocessor module 8 respectively.This device also comprises electron key 1, is provided with the power management module 6 and the radio receiving transmitting module a7 that are connected in the electron key 1, and radio receiving transmitting module a7 and radio receiving transmitting module b10 communicate.
Wherein,
Doorbell 3 is used to gather the guest request enabling signal, and this signal is sent to the microprocessor module 8 of controller 5;
Infrared inductor 4 is used to gather user's inlet/outlet signal, and this signal is sent to the microprocessor module 8 of controller 5;
Radio receiving transmitting module b10 is used for the transmitting/receiving wireless signal, and this wireless signal comprises: broadcast, handshake, key sign, reception signal strength values;
Microprocessor module 8; Be used to send handshake, start the foundation of handshake communication relation, according to the legal key sign of user storage; Relatively the key of electron key 1 forwarding identifies; If identical sign is arranged, then send the radio receiving transmitting module b10 that handshake is given controller 5, make controller 5 and electron key 1 set up the radio communication relation.Whether microprocessor module 8 also is further used for sending and carries the key signal, through the receiving intensity value that the user who receives goes out gate signal, guest request enabling signal and collects, judge to produce and carry the key signal;
Voice module 9 receives and carries the key signal, produces music and reminds sound or " please carry key " sound, reaches the effect of carrying key of reminding;
Radio receiving transmitting module a7 is used for the transmitting/receiving wireless signal, and this wireless signal comprises: broadcast, handshake, key sign, reception signal strength values.This radio receiving transmitting module a7 also is further used for producing power supply control request signal; Promptly through after the broadcast that listens to controller 5 radio receiving transmitting module b10 transmission; Send activation request signal and give power management module 6; When not setting up handshake communication and concern, send the sleep request signal and give power management module 6;
Power management module 6 is used for controlling the power supply status of electron key 1 radio receiving transmitting module a7, promptly realizes activation and the dormancy of electron key 1 wireless receiving module a7 through receiving corresponding power supply control request signal.In addition, the user can directly cut off or connect the power supply of radio receiving transmitting module a7 through the switch of power management module 6 as required.
The present invention has the implementation method that intelligent reminding carries the device of key function, and is as shown in Figure 3, specifically implements according to following steps:
Step 1: the radio receiving transmitting module b10 in the controller 5 sends broadcast; If having set up then, the handshake communication relation directly carry out step 2; Otherwise start the foundation of handshake communication relation, after promptly the radio receiving transmitting module a7 in the electron key 1 listened to broadcast, the key that sends electron key 1 self identified the radio receiving transmitting module b10 to controller 5; Microprocessor module 8 in the controller 5 is according to the legal key sign of user storage; Compare the key sign that electron key 1 sends, if there is not identical sign, then handshake communication is set up failure; If identical sign is arranged; Microprocessor module 8 sends handshake and gives radio receiving transmitting module b10; Set up controller 5 and electron key 1 correspondence between the radio receiving transmitting module separately, realize both radio communications, microprocessor module 8 storage key status informations are for existing legal key simultaneously.
Step 2: when handshake communication was set up, the radio receiving transmitting module b10 in the controller 5 sent signal with certain intensity, and the radio receiving transmitting module a7 in the electron key 1 gathers this receiving intensity value of sending signal, and this intensity level is returned to radio receiving transmitting module b10.The reception signal strength values that microprocessor module 8 is gathered and storage radio receiving transmitting module b10 forwards.
Step 3: when handshake communication was set up failure, microprocessor module 8 storage key status informations were not for existing legal key.
Step 4: send users and go out gate signal and give microprocessor module 8 when doorbell 3 sends guest request enabling signals or infrared inductor 4, microprocessor module 8 is carried out corresponding interrupt routine, when microprocessor module 8 does not receive above-mentioned signal, then returns step 1.
Above-mentioned corresponding interrupt routine comprises that guest request is opened the door to interrupt and user's interruption of going out, and below describes respectively:
Guest request is opened the door and is interrupted specifically implementing according to following steps:
Step a: doorbell 3 sends the guest request enabling signal, after microprocessor module 8 receives this signal, stores this signal, and this moment, the guest request enabling signal was effective.
Step b: microprocessor module 8 starts timing function, and timing begins, in order to calculate the visitor by the delay time that gets into outside the room within doors.
Step c: whether the timing function of monitoring microprocessor module 8 finishes, and does not finish, and it is effective then to continue to keep the guest request enabling signal.If finish, microprocessor module 8 is removed the guest request enabling signal, and this moment, the guest request enabling signal was invalid, and returned master routine.
User's interruption of going out, specifically implement according to following steps:
Step a: infrared inductor 4 sends the user and goes out gate signal; After microprocessor module 8 receives this signal; The state of inquiry guest request enabling signal, if the guest request enabling signal effectively then do not send and do not carry the key signal and give voice module 9, voice module 9 prompting of also not sounding.If the guest request enabling signal is invalid, then carry out next step.
Step b: microprocessor module 8 inquiry key status informations, if there is not legal key, then there is not corresponding door key within doors in explanation; If there is legal key, the reception signal strength values that microprocessor module 8 further inquiries have been stored changes from small to big if receive signal strength values, and it is near more to explain that electron key 1 leaves the distance of controller, and promptly the user carries key and gos out; If it is constant to receive signal strength values, the invariant position of electron key 1 is described, the user does not carry key and gos out.
Step c: if the user does not carry key and gos out, microprocessor module 8 sends and carries the key signal and give voice module 9, voice module 9 prompting of sounding, and return original program; If the user carries that key is gone out or do not have legal key within doors, microprocessor module 8 does not send and carries the key signal and give 9 of voice moulds, voice module 9 prompting of also not sounding, and return original program.
Concrete scheme through the foregoing description can be recognized; Greet a guest the user and to open the door, or the user gos out and carry key, or do not have under the situation of key within doors at all; This device does not produce sound prompting; Leave behind under the key situation but go out, produce sound prompting, reached prompting function hommization, intelligentized purpose the user.
What need explain at last is: the foregoing description is only in order to technical scheme of the present invention to be described, and is non-to its restriction.Although with reference to the foregoing description the present invention is specified, the technician of the industry should recognize: it can be made amendment to the technical scheme of the foregoing description, or part technical characterictic is wherein replaced; But these modifications or replacement do not make the essence of its technical method break away from thought of the present invention and protection domain.