CN108064398B - Electron key management method and device - Google Patents

Electron key management method and device Download PDF

Info

Publication number
CN108064398B
CN108064398B CN201680025112.XA CN201680025112A CN108064398B CN 108064398 B CN108064398 B CN 108064398B CN 201680025112 A CN201680025112 A CN 201680025112A CN 108064398 B CN108064398 B CN 108064398B
Authority
CN
China
Prior art keywords
authorization
time
service life
electron key
authorization message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201680025112.XA
Other languages
Chinese (zh)
Other versions
CN108064398A (en
Inventor
王志芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Liwei Zhilian Technology Co Ltd
Original Assignee
Shenzhen Liwei Zhilian Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Liwei Zhilian Technology Co Ltd filed Critical Shenzhen Liwei Zhilian Technology Co Ltd
Publication of CN108064398A publication Critical patent/CN108064398A/en
Application granted granted Critical
Publication of CN108064398B publication Critical patent/CN108064398B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit

Abstract

The present invention discloses a kind of electron key management method and device, for managing the electron key of offline mobile terminal, the electron key management method includes the following steps, obtains the authorization message from authorization platform, and the authorization message includes the electron key and service life of corresponding door lock number;When using the authorization message, judge whether the authorization message is in service life;If the authorization message is in service life, the electron key is issued to door lock.The present invention has the effect of improving the safety of electron key.

Description

Electron key management method and device
Technical field
The present invention relates to electron key management domains, in particular to electron key management method and device.
Background technique
With the development of Internet of Things, intelligent door lock starts to be widely applied.When visitor wishes to open intelligent door lock, Ke Yitong Network is crossed remotely to the electron key of owner's application opening door lock, owner can according to need and visitor is authorized to use electronics key Spoon.When owner wishes to cancel the authorization of electron key, the authorization of the electron key can also be cancelled by network remote.
But when being in off-line state after the mobile terminal of visitor is authorized, the authorization that visitor obtains is not available, To which owner can not be accessed;It is there are also a kind of situation, when being in off-line state after the mobile terminal of visitor is authorized, owner It will be unable to the authorization of revocation electron key.This safety that will lead to electron key reduces.
Summary of the invention
The main object of the present invention is to provide electron key management method and device, it is intended to improve the safety of electron key Property.
To achieve the above object, a kind of electron key management method proposed by the present invention, for managing offline mobile terminal Electron key, the electron key management method includes the following steps,
The authorization message from authorization platform is obtained, the authorization message includes the electron key of corresponding door lock number and makes Use the time limit;
When using the authorization message, judge whether the authorization message is in service life;
If the authorization message is in service life, the electron key is issued to door lock.
Preferably, before described the step of obtaining from the authorization message of authorization platform, further includes:
When in the online state connecting with authorization platform, Xiang Shouquan platform issues authorized application;
After issuing authorized application always be in online state, and after issuing authorized application it is online again and be in it is online When state, the authorization notification from the authorization platform push is received;
It is described obtain from authorization platform authorization message the step of include:
When the authorization notification is that application passes through, the authorization message in the authorization notification is obtained.
Preferably, the electron key management method further includes following steps,
With authorization platform connect and it is online when, obtain authorization platform plateau time, reset counter be zero and open Begin to count;
Using the plateau time obtained as initial time, and obtain between the initial time and local system time Initial time difference;
It is described when using the authorization message, judge that the step of whether authorization message is in service life includes:
When using the authorization message, when the initial time is obtained theoretical plus the count value of the counter Between, and obtain the current difference between the theoretical time and local system time;
Judge whether the difference between the current difference and the initial time difference is less than preset value, and described Local system time is located in the service life;
If the difference between the current difference and the initial time difference is less than preset value, and the local system The system time is located in the service life, then determines to be in service life;Otherwise, it is determined that being not at service life.
Preferably, the electron key management method further includes following steps,
With authorization platform connect and it is online when, obtain authorization platform plateau time, reset counter be zero and open Begin to count;
Using the plateau time obtained as initial time, and obtain between the initial time and local system time Initial time difference;
In preset interval, the count value by the initial time plus the counter obtains theoretical time, obtains institute The current difference between theoretical time and local system time is stated, and judges the current difference and the initial time difference Between difference whether be more than preset value;
If not exceeded, then judging again in next preset interval;
If being more than, time modification information is recorded;
It is described when using the authorization message, judge that the step of whether authorization message is in service life includes:
When using the authorization message, time modification information if it does not exist, and local system time is located at described make With in the time limit, then determine in service life;Otherwise determine to be not at service life.
Preferably, the authorization message further includes available number;
It is described when using the authorization message, judge whether the authorization message is in service life;If the authorization The step of information is in service life, then the electron key is issued to door lock specifically includes:
When using the authorization message, judge whether the authorization message is in service life, and can described in judgement It is whether remaining with number;
It is in service life in the authorization message, and described when there can be residue with number, it will be under the electron key It is sent to door lock, and described can subtract one with number.
Preferably, the electron key management method further includes following steps,
In with the online state that connect of authorization platform, and it is described when can be reduced with number, will described in can be with secondary Number is restored.
A kind of electron key managing device provided by the invention, it is described for managing the electron key of offline mobile terminal Electron key managing device includes,
Receiving module, for obtaining the authorization message from authorization platform, the authorization message includes corresponding door lock number Electron key and service life;
Judgment module, for judging whether the authorization message is in service life when using the authorization message;
The electron key is issued to door lock if being in service life for the authorization message by door opening module.
Preferably, the receiving module includes,
Application unit, for when in the online state connecting with authorization platform, Xiang Shouquan platform to issue authorized application;
Receiving unit is used to be in online state always after issuing authorized application, and after issuing authorized application again It is online and be in online state when, receive from it is described authorization platform push authorization notification;
Storage unit, for obtaining the authorization message in the authorization notification when the authorization notification is that application passes through.
Preferably, the electron key managing device further includes,
Time module, for authorization platform connect and it is online when, obtain authorization platform plateau time, resetting counting Device is zero and starts counting;
Initial difference module using the plateau time obtained as initial time, and obtains the initial time and local Initial time difference between system time;
The judgment module is specifically used for:
When using the authorization message, when the initial time is obtained theoretical plus the count value of the counter Between, and obtain the current difference between the theoretical time and local system time;
Judge whether the difference between the current difference and the initial time difference is less than preset value, and described Local system time is located in the service life;
If the difference between the current difference and the initial time difference is less than preset value, and the local system The system time is located in the service life, then determines to be in service life;Otherwise, it is determined that being not at service life.
Preferably, the electron key managing device further includes,
Time module, for authorization platform connect and it is online when, obtain authorization platform plateau time, resetting counting Device is zero and starts counting;
Initial difference module, for using the plateau time obtained as initial time, and obtain the initial time with Initial time difference between local system time;
It is spaced comparison module, in preset interval, the count value by the initial time plus the counter to be obtained Theoretical time is obtained, obtains the current difference between the theoretical time and local system time, and judge the current difference Whether the difference between the initial time difference is more than preset value;If not exceeded, then sentencing again in next preset interval It is disconnected;If being more than, time modification information is recorded;
The judgment module is specifically used for:
When using the authorization message, time modification information if it does not exist, and local system time is located at described make With in the time limit, then determine in service life;Otherwise determine to be not at service life.
Preferably, the authorization message further includes available number;
The judgment module is specifically used for when using the authorization message, and judging whether the authorization message is in makes With the time limit, and can whether remaining with number described in judging;
The door opening module is specifically used in the authorization message being in service life, and it is described can have with number it is surplus The electron key is issued to door lock by Yu Shi, and described can subtract one with number.
Preferably, the electron key managing device further includes,
Restore number module, in the online state that connect of authorization platform, and it is described can have with number subtract When few, it can be restored described with number.
Electron key management method provided by the present invention and device, by increasing service life to the authorization message Limitation can also be visited then when visitor's mobile terminal is in offline by detecting whether authorization message is located at validity period to limit The permission of the electron key of visitor avoids the case where can not connecting authorization platform within the authorizing limited phase and can not opening the door.Therefore, originally Embodiment has the effect of improving the safety of electron key.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with The structure shown according to these attached drawings obtains other attached drawings.
Fig. 1 is the flow chart of electron key management method first embodiment of the present invention;
Fig. 2 is the flow chart of electron key management method second embodiment of the present invention;
Fig. 3 is the flow chart of electron key management method 3rd embodiment of the present invention;
Fig. 4 is the flow chart of a process of electron key management method fourth embodiment of the present invention;
Fig. 5 is the flow chart of another process of electron key management method fourth embodiment of the present invention;
Fig. 6 is the flow chart of the 5th embodiment of electron key management method of the present invention;
Fig. 7 is the module diagram of electron key managing device first embodiment of the present invention;
Fig. 8 is the module diagram of receiving module shown in Fig. 7;
Fig. 9 is the module diagram of electron key managing device second embodiment of the present invention;
Figure 10 is the module diagram of electron key managing device 3rd embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
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.
Please refer to Fig. 1, electron key managing device first embodiment of the present invention, for managing the electronics of offline mobile terminal Key.The electron key management method includes the following steps,
Step S100, obtains the authorization message from authorization platform, and the authorization message includes the electricity of corresponding door lock number Sub- key and service life;Wherein, the mobile terminal of visitor is connect by network with authorization platform, and applying for electronic key. After authorization platform passes through, then corresponding electron key will be issued, for opening the door lock of reference numeral.Service life can root It is set according to needs, such as 10s, 60s, 3 minutes or 10 minutes etc..
Step S200 judges whether the authorization message is in service life when using the authorization message;If so, S300 is thened follow the steps, if it is not, then terminating.Wherein, when the mobile terminal of visitor needs to carry out opening door lock using the authorization message When, then start checking process first;Judge whether authorization message is in the scheme of service life, usually judges that visitor is mobile eventually Whether the local zone time at end exceeds the service life of authorization, such as service life is 14:00~15:00, then when local zone time is When in 14:00~15:00, then determine in service life, otherwise determines outside service life;Certainly, in order to reaching To safer effect, can also by the way that additional timer is arranged, such as when the service life of authorization is 10 minutes, then from Start timing when authorized, when the timer does not reach 10 minutes, then determine in service life, otherwise determines to be in Outside service life.
The electron key is issued to door lock by step S300.Preferably, after issuing the electron key to door lock, The response of door lock is recorded to log of opening the door, and the enabling log is uploaded to enabling platform after networking again, thus just Owner is counted and fed back in enabling platform.
The present embodiment, by the authorization message increase service life limitation, then visitor's mobile terminal be in from When line, also can by detect authorization message whether be located at validity period, come limit visitor electron key permission, avoid moving The case where terminal can not connect authorization platform within the authorizing limited phase and can not open the door.Therefore, the present embodiment, which has, improves electronics The effect of the safety of key.
Visitor generallys use the online side for waiting authorization completion or online poll licensing status in applying for electronic key Case.Such scheme causes to occupy the drawback that resource is higher and occupancy flow is more.In order to solve this problem, the present embodiment is into one Step proposes following proposal:
Fig. 2 is please referred to, electron key managing device second embodiment of the present invention, the present embodiment is using first embodiment as base Plinth has increased step S400, step S410 and step S420 newly before step S100, and by step S110 come replacement step S100.It is specific:
Step S400, when in the online state connecting with authorization platform, Xiang Shouquan platform issues authorized application;Its In, application content may include applicant, application time and application reason etc..
Step S410, after issuing authorized application always be in online state, and after issuing authorized application it is online again And when being in online state, receive the authorization notification from the authorization platform push;Wherein, presence is preferably connected using long The mode connect is online, to save electric energy and data traffic.
Step S420 judges whether that the authorization notification passes through for application;If so, S110 is thened follow the steps, if it is not, then tying Beam.
Step S110, obtains the authorization message in the authorization notification, and the authorization message includes what corresponding door lock was numbered Electron key and service life.
The present embodiment, by after applying for electronic key, waiting the scheme of authorization platform push authorization notification, relative to biography The online scheme for waiting authorization completion and online poll licensing status of system, has the effect of saving flow and electric energy.
Under off-line state, the scheme of verification term of validity is carried out based on local zone time, further encounters following problem: being visited After the system time of visitor's modification mobile terminal, the system time of mobile terminal is also within authorization validity period, so that electronics key What spoon authorized cannot be on time expired.In order to solve this problem, the present embodiment further provides following proposal.
Fig. 3 is please referred to, electron key managing device 3rd embodiment of the present invention, the present embodiment is using first embodiment as base Plinth has increased step S500 and step S510 newly before step S100, and step S200 has been described in detail;The electricity Sub- key management method further includes following steps,
Step S500, with authorization platform connect and it is online when, obtain authorization platform plateau time, reset counter be It zero and starts counting;Preferably, multiple counters are set and start simultaneously at counting, to any counter by system close or When person's failure, can continue to count by other counters, and restart this be killed or the counter of failure after, will count Number information is synchronized with other pedometers.Preferably, it is counted using two counters.Preferably, two counters can be with Using house dog counter, two house dog counters are mutually monitored, inspect periodically other side not when can be in a very short period of time Start other side.
Step S510 using the plateau time obtained as initial time, and obtains the initial time and local system Initial time difference between time.
The step S200 judges whether the authorization message is in service life when using the authorization message Step includes:
Step S210, when using the authorization message, the count value by the initial time plus the counter is obtained Theoretical time is obtained, and obtains the current difference between the theoretical time and local system time.For example, initial time is 10:00:00, this hour counter are counted as 800 seconds, then theoretical time is 10:13:20, and local system time is 10 at this time: 13:33, then current difference is 13 seconds.
It is default to judge whether the difference between the current difference and the initial time difference is less than by step S211 Value, if so, thening follow the steps S212;If it is not, then terminating.Wherein, preset value can be set to 0.05 second, 1 second or 2 minutes etc.. If current difference is 13 seconds, it has then been more than preset value that preset value, which is 5 seconds,.Usually under normal circumstances, the timing system of mobile terminal System should generally be accurately, and preset value is 1~2 second.If judging current difference beyond threshold value, usually can be determined that for User modifies intentionally.
Step S212, judges whether the local system time is located in the service life;If so, thening follow the steps S213;If it is not, then terminating.
Step S213 determines to be in service life;Otherwise, it is determined that being not at service life.
The present embodiment carries out timing by obtaining the server time of authorization platform online, while in local counter, To by calculation server time and counter and local system time, that is, can determine that local system time whether there is Modification.To avoid there are the system time of visitor's malicious modification mobile terminal, so that the service life of electron key is not The effect that can normally work has achieved the effect that the safety for improving electron key.
Under the thinking of 3rd embodiment, counter can be handled separately as an independent flow, can be obtained Better stability.Specifically please refer to following proposal
Fig. 4 and Fig. 5 are please referred to, electron key managing device fourth embodiment of the present invention, the present embodiment is with first embodiment Based on, increase an independent process newly, and step 200 is described in detail;The electron key management method is also Include the following steps,
Step S600, with authorization platform connect and it is online when, obtain authorization platform plateau time, reset counter be It zero and starts counting.
Step S610 using the plateau time obtained as initial time, and obtains the initial time and local system Initial time difference between time.
Step S620, in preset interval, when the initial time is obtained theoretical plus the count value of the counter Between, obtain the current difference between the theoretical time and local system time;Wherein, it is described interval can be set to 1 minute, 10 minutes or 20 minutes etc..
Step S630 judges whether the difference between the current difference and the initial time difference is more than preset value; If not exceeded, then return step S620, i.e., judge again in next preset interval;If being more than, S640 is thened follow the steps.
Step S640 records time modification information.Wherein, which can be only a mark information, can also To include specific modification information, such as time, gap size etc..
The step S200 judges whether the authorization message is in service life when using the authorization message Step includes:
Step S220 judges whether that local system time is located in the service life when using the authorization message; If so, thening follow the steps S221;If it is not, then terminating.
Step S221, in the absence of judging whether between modification information;If so, thening follow the steps S222;If it is not, then terminating. Wherein, which is obtained by step S640.
Step S222 determines to be in service life.
The present embodiment carries out judging whether local system time is modified by independent process, relative to third reality Example is applied, this programme has independent process shorter, runs more stable effect.
Safety in addition to electron key is defined and ensured in service life can also come by using on number It is defined, the present embodiment further provides following proposal.
Fig. 6 is please referred to, the 5th embodiment of electron key managing device of the present invention, the present embodiment is using first embodiment as base Plinth, come replacement step S100, is described in detail step S200 to by step S120, and newly-increased step S700;
Step S120, obtains the authorization message from authorization platform, and the authorization message includes the electricity of corresponding door lock number Sub- key, service life and available number.Wherein, it can be can be with number 1 time, 2 times or 5 times etc..
The step S200 judges whether the authorization message is in service life when using the authorization message;If The step of authorization message is in service life, then the electron key is issued to door lock specifically includes:
Step S230 judges whether the authorization message is in service life when using the authorization message.If so, Then follow the steps S231;If it is not, then terminating.
Step S231 judges whether online;If so, thening follow the steps S300;If it is not, thening follow the steps S232.
Whether step S232, can remaining with number described in judgement.If so, S233 is thened follow the steps, if it is not, then terminating.
Step S233, it is described to subtract one with number.Step S300 is executed later.For example, can be 1 time with number, then number After subtracting one, it can be 0 time with number, then cannot open the door.
The present embodiment can use number by increasing restrictive condition, so that door opening times of the visitor in off-line state are limited, Increase control condition, achievees the effect that improve electron key uses safely under off-line state.
Preferably, after step S300, step S700 is executed:
Step S700, in the online state that connect of authorization platform, and it is described when can be reduced with number, by institute Available number is stated to be restored.
The present embodiment, by that can be restored again with number to described, so that visitor when online again When offline again, it can be opened the door with number by reducing.
Please refer to Fig. 7, a kind of first embodiment of electron key managing device of the present invention, for managing offline mobile terminal Electron key.The electron key managing device includes,
Receiving module 100, for obtaining the authorization message from authorization platform, the authorization message includes that corresponding door lock is compiled Number electron key and service life;Wherein, the mobile terminal of visitor is connect by network with authorization platform, and applying for electronic Key.After authorization platform passes through, then corresponding electron key will be issued, for opening the door lock of reference numeral.Service life It can according to need and set, such as 10s, 60s, 3 minutes or 10 minutes etc..
Judgment module 200, for judging whether the authorization message is in validity period when using the authorization message Limit;Wherein, when the mobile terminal of visitor needs to carry out opening door lock using the authorization message, then start checking process first;Sentence Whether disconnected authorization message is in the scheme of service life, usually judges whether the local zone time of visitor's mobile terminal exceeds authorization Service life, such as service life is 14:00~15:00, then when local zone time is in 14:00~15:00, then determines In service life, otherwise determine outside service life;Certainly, safer in order to achieve the effect that, it can also lead to It crosses and additional timer is set, such as when the service life of authorization is 10 minutes, then the timing since when authorized, when this When timer does not reach 10 minutes, then determine in service life, otherwise determines outside service life.
The electron key is issued to door if being in service life for the authorization message by door opening module 300 Lock.Preferably, after issuing the electron key to door lock, the response of door lock is recorded to log of opening the door, and networking again The enabling log is uploaded to enabling platform afterwards, consequently facilitating enabling platform statistics and feedback owner.
The present embodiment, by the authorization message increase service life limitation, then visitor's mobile terminal be in from When line, also can by detect authorization message whether be located at validity period, come limit visitor electron key permission, avoid awarding The case where can not connecting authorization platform in power limited period and can not open the door.Therefore, the present embodiment has the peace for improving electron key The effect of full property.
Please referring to Fig. 8, it is preferred that the receiving module 100 includes,
Application unit 110, for when in the online state connecting with authorization platform, Xiang Shouquan platform to issue authorization Shen Please;Wherein, application content may include applicant, application time and application reason etc..
Receiving unit 120 is used to be in online state always after issuing authorized application, and after issuing authorized application again It is secondary online and be in online state when, receive from it is described authorization platform push authorization notification;Wherein, presence is preferably adopted Mode with long connection is online, to save electric energy and data traffic.
Storage unit 130, for obtaining the authorization letter in the authorization notification when the authorization notification is that application passes through Breath.
The present embodiment, by after applying for electronic key, waiting the scheme of authorization platform push authorization notification, relative to biography The online scheme for waiting authorization completion and online poll licensing status of system, has the effect of saving flow and electric energy.
Preferably, the electron key managing device further includes,
Time module 400, for authorization platform connect and it is online when, obtain authorization platform plateau time, reset Counter is zero and starts counting;Preferably, multiple counters are set and start simultaneously at counting, to be in any counter System closes or when failure, can continue to count by other counters, and is closed or the counting of failure restarting this After device, count information and other pedometers are synchronized.Preferably, it is counted using two counters.Preferably, two meters Number devices house dog counter can be used, two house dog counters mutually monitor, inspect periodically other side not when can be in pole Start other side in short time.
Initial difference module 500 using the plateau time obtained as initial time, and obtains the initial time and this Initial time difference between ground system time;
The judgment module 200 is specifically used for:
When using the authorization message, when the initial time is obtained theoretical plus the count value of the counter Between, and obtain the current difference between the theoretical time and local system time;For example, initial time is 10:00:00, This hour counter is counted as 800 seconds, then theoretical time is 10:13:20, and local system time is 10:13:33 at this time, then when Preceding difference is 13 seconds.
Judge whether the difference between the current difference and the initial time difference is less than preset value, and described Local system time is located in the service life;Wherein, preset value can be set to 0.05 second, 1 second or 2 minutes etc..If working as Preceding difference is 13 seconds, and it has then been more than preset value that preset value, which is 5 seconds,.Usually under normal circumstances, the timekeeping system of mobile terminal is logical It often should be accurately, preset value is 1~2 second.If judging current difference beyond threshold value, usually can be determined that for It modifies intentionally at family.
If the difference between the current difference and the initial time difference is less than preset value, and the local system The system time is located in the service life, then determines to be in service life;Otherwise, it is determined that being not at service life.
The present embodiment carries out timing by obtaining the server time of authorization platform online, while in local counter, To by calculation server time and counter and local system time, that is, can determine that local system time whether there is Modification.To avoid there are the system time of visitor's malicious modification mobile terminal, so that the service life of electron key is not The effect that can normally work has achieved the effect that the safety for improving electron key.
Fig. 9 is please referred to, present embodiment additionally provides the second embodiment of device, on the basis of first embodiment On, the present embodiment has increased interval comparison module 600 newly, and the function of judgment module 200 is changed.Specifically, described Electron key managing device further includes,
It is spaced comparison module 600, in preset interval, the initial time to be added to the count value of the counter Obtain theoretical time, obtain the current difference between the theoretical time and local system time, and judge it is described current poor Whether the difference between value and the initial time difference is more than preset value;If not exceeded, then again in next preset interval Judgement;If being more than, time modification information is recorded;Wherein, the interval can be set to 1 minute, 10 minutes or 20 minutes Etc..The modification information can be only a mark information, also may include specific modification information, such as time, gap Size etc..
The judgment module 200 is specifically used for:
When using the authorization message, time modification information if it does not exist, and local system time is located at described make With in the time limit, then determine in service life;Otherwise determine to be not at service life.
The present embodiment carries out judging whether local system time is modified by independent process, has independent stream Journey is shorter, runs more stable effect.
Figure 10 is please referred to, present embodiment additionally provides the 3rd embodiment of device, on the basis of first embodiment On, the present embodiment has increased recovery number module 600 newly, by the function renewal of receiving module 100, by the function of judgment module 200 It is changed, the function of door opening module 300 is updated.It is specific:
The receiving module 100, the received authorization message of institute further include available number;It wherein, can be with number It is 1 time, 2 times or 5 times etc..
The judgment module 200 is specifically used for judging whether the authorization message is in when using the authorization message Service life, and can whether remaining with number described in judgement;
The door opening module 300 is specifically used in the authorization message being in service life, and described can have with number When remaining, the electron key is issued to door lock, and described can subtract one with number.For example, can be 1 time with number, then it is secondary After number subtracts one, it can be 0 time with number, then cannot open the door.
The present embodiment can use number by increasing restrictive condition, so that door opening times of the visitor in off-line state are limited, Increase control condition, achievees the effect that improve safe handling of the electron key under off-line state.
Preferably, the present embodiment further include: restore number module 600, for online in connecting with authorization platform State, and it is described when can be reduced with number, it can be restored described with number.
The present embodiment, by that can be restored again with number to described, so that visitor when online again When offline again, it can be opened the door with number by reducing.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
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 terminal, calculate Machine, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.
Industrial applicibility
Electron key management method provided by the present invention and device, by increasing service life to the authorization message Limitation can also be visited then when visitor's mobile terminal is in offline by detecting whether authorization message is located at validity period to limit The permission of the electron key of visitor avoids the case where can not connecting authorization platform within the authorizing limited phase and can not opening the door.Therefore, originally Embodiment has the effect of improving the safety of electron key.

Claims (12)

1. a kind of electron key management method, for managing the electron key of offline mobile terminal, the electron key manager Method includes the following steps,
The authorization message from authorization platform is obtained, the authorization message includes the electron key and validity period of corresponding door lock number Limit;
Connect with the authorization platform and it is online when, obtain the plateau time of the authorization platform, resetting counter is zero simultaneously And it starts counting;
Using the plateau time obtained as initial time, and obtain initial between the initial time and local system time Time difference;
When using the authorization message, the count value according to the initial time plus the counter obtains theoretical time, And the current difference between the theoretical time and local system time is obtained, further according to the current difference and described initial Difference between time difference judges whether the authorization message is in service life;
If the authorization message is in service life, the electron key is issued to door lock.
2. electron key management method as described in claim 1, wherein obtain the authorization message from authorization platform described The step of before, further includes:
When in the online state connecting with authorization platform, Xiang Shouquan platform issues authorized application;
Be in online state always after issuing authorized application, and after issuing authorized application it is online again and in online state When, receive the authorization notification from the authorization platform push;
It is described obtain from authorization platform authorization message the step of include:
When the authorization notification is that application passes through, the authorization message in the authorization notification is obtained.
3. electron key management method as described in claim 1, wherein it is described when using the authorization message, according to institute When stating initial time plus the count value acquisition theoretical time of the counter, and obtaining the theoretical time and local system Between between current difference, judge that the authorization is believed further according to the difference between the current difference and the initial time difference Cease that the step of whether being in service life includes:
Judge whether the difference between the current difference and the initial time difference is less than preset value, and the local System time is located in the service life;
If the difference between the current difference and the initial time difference is less than preset value, and when the local system Between be located at the service life in, then determine be in service life;Otherwise, it is determined that being not at service life.
4. electron key management method as described in claim 1, wherein it is described when using the authorization message, according to institute When stating initial time plus the count value acquisition theoretical time of the counter, and obtaining the theoretical time and local system Between between current difference, judge that the authorization is believed further according to the difference between the current difference and the initial time difference Cease that the step of whether being in service life includes:
In preset interval, judge whether the difference between the current difference and the initial time difference is more than preset value;
If not exceeded, then judging again in next preset interval;
If being more than, time modification information is recorded;
When using the authorization message, time modification information if it does not exist, and local system time is located at the validity period In limit, then determine to be in service life;Otherwise determine to be not at service life.
5. electron key management method as described in claim 1, wherein the authorization message further includes available number;
It is described when using the authorization message, judge whether the authorization message is in service life;If the authorization message In service life, then the step of electron key being issued to door lock, specifically includes:
When using the authorization message, judge whether the authorization message is in service life, and can be used described in judgement secondary Whether number is remaining;
It is in service life in the authorization message, and described when there can be residue with number, the electron key is issued to Door lock, and described can subtract one with number.
6. electron key management method as claimed in claim 5, wherein the electron key management method further includes walking as follows Suddenly,
In with the online state that connect of authorization platform, and it is described when can be reduced with number, will described in can use number into Row restores.
7. a kind of electron key managing device, for managing the electron key of offline mobile terminal, the electron key management dress Set including,
Receiving module, for obtaining the authorization message from authorization platform, the authorization message includes the electricity of corresponding door lock number Sub- key and service life;
Time module, for authorization platform connect and it is online when, obtain authorization platform plateau time, reset counter be It zero and starts counting;
Initial difference module using the plateau time obtained as initial time, and obtains the initial time and local system Initial time difference between time;
Judgment module, for adding the count value of the counter according to the initial time when using the authorization message Theoretical time is obtained, and obtains the current difference between the theoretical time and local system time, further according to described current Difference between difference and the initial time difference judges whether the authorization message is in service life;
The electron key is issued to door lock if being in service life for the authorization message by door opening module.
8. electron key managing device as claimed in claim 7, wherein the receiving module includes,
Application unit, for when in the online state connecting with authorization platform, Xiang Shouquan platform to issue authorized application;
Receiving unit, it is online again for being in online state always after issuing authorized application, and after issuing authorized application And when being in online state, receive the authorization notification from the authorization platform push;
Storage unit, for obtaining the authorization message in the authorization notification when the authorization notification is that application passes through.
9. electron key managing device as claimed in claim 7, wherein the judgment module is specifically used for:
When using the authorization message, judge whether the difference between the current difference and the initial time difference does not surpass Preset value is crossed, and the local system time is located in the service life;
If the difference between the current difference and the initial time difference is less than preset value, and when the local system Between be located at the service life in, then determine be in service life;Otherwise, it is determined that being not at service life.
10. electron key managing device as claimed in claim 7, wherein the electron key managing device further includes,
It is spaced comparison module, for judging the difference between the current difference and the initial time difference in preset interval Whether value is more than preset value;If not exceeded, then judging again in next preset interval;If being more than, time modification letter is recorded Breath;
The judgment module is specifically used for:
When using the authorization message, time modification information if it does not exist, and local system time is located at the validity period In limit, then determine to be in service life;Otherwise determine to be not at service life.
11. electron key managing device as claimed in claim 7, wherein the authorization message further includes available number;
The judgment module is specifically used for judging whether the authorization message is in validity period when using the authorization message Limit, and can whether remaining with number described in judgement;
The door opening module is specifically used in the authorization message being in service life, and described when can have residue with number, The electron key is issued to door lock, and described can subtract one with number.
12. electron key managing device as claimed in claim 11, wherein the electron key managing device further includes,
Restore number module, in the online state that connect of authorization platform, and it is described when can be reduced with number, It can be restored described with number.
CN201680025112.XA 2016-12-20 2016-12-20 Electron key management method and device Active CN108064398B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/111039 WO2018112744A1 (en) 2016-12-20 2016-12-20 Electronic key management method and device

Publications (2)

Publication Number Publication Date
CN108064398A CN108064398A (en) 2018-05-22
CN108064398B true CN108064398B (en) 2019-07-30

Family

ID=62138090

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680025112.XA Active CN108064398B (en) 2016-12-20 2016-12-20 Electron key management method and device

Country Status (2)

Country Link
CN (1) CN108064398B (en)
WO (1) WO2018112744A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109615755A (en) * 2019-01-23 2019-04-12 广东启正电子科技有限公司 A kind of gate inhibition's open method and system
EP3933154A4 (en) * 2019-02-25 2022-03-23 Honda Motor Co., Ltd. Vehicle, vehicle onboard device, and management method
CN110675543B (en) * 2019-10-24 2024-02-13 珠海格力电器股份有限公司 Method for configuring access card, control method of door lock and door lock
CN112309008A (en) * 2020-10-29 2021-02-02 一汽奔腾轿车有限公司 Safety management platform of automobile digital key
CN112669491B (en) * 2020-12-16 2022-12-09 广州橙行智动汽车科技有限公司 Vehicle digital key distribution management method and device
CN113066209A (en) * 2021-03-23 2021-07-02 上海银基信息安全技术股份有限公司 Method and device for safe off-line use of digital key and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010071009A (en) * 2008-09-19 2010-04-02 Ntt Docomo Inc Unlocking system and unlocking method
CN103248614A (en) * 2012-02-09 2013-08-14 上海新华解放数字阅读传媒有限公司 Implementation method of safety time of client
CN103390302A (en) * 2012-05-10 2013-11-13 株式会社东海理化电机制作所 Electronic key registration system, electronic key registration control device and electronic key
CN104063935A (en) * 2014-06-30 2014-09-24 深圳市同创新佳科技有限公司 Hotel guest room management method and system based on electronic key management server
CN104063817A (en) * 2014-05-29 2014-09-24 深圳市同创新佳科技有限公司 Hotel room management method and system based on electronic key management server
CN104183041A (en) * 2014-08-21 2014-12-03 深圳市同创新佳科技有限公司 Management method and system of simulated electronic key based on smart mobile phone

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004076439A (en) * 2002-08-20 2004-03-11 Token Corp Real estate brokerage business support system
CN102831686B (en) * 2012-09-03 2015-12-16 深圳达实信息技术有限公司 A kind of access control system and visitor's access permission control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010071009A (en) * 2008-09-19 2010-04-02 Ntt Docomo Inc Unlocking system and unlocking method
CN103248614A (en) * 2012-02-09 2013-08-14 上海新华解放数字阅读传媒有限公司 Implementation method of safety time of client
CN103390302A (en) * 2012-05-10 2013-11-13 株式会社东海理化电机制作所 Electronic key registration system, electronic key registration control device and electronic key
CN104063817A (en) * 2014-05-29 2014-09-24 深圳市同创新佳科技有限公司 Hotel room management method and system based on electronic key management server
CN104063935A (en) * 2014-06-30 2014-09-24 深圳市同创新佳科技有限公司 Hotel guest room management method and system based on electronic key management server
CN104183041A (en) * 2014-08-21 2014-12-03 深圳市同创新佳科技有限公司 Management method and system of simulated electronic key based on smart mobile phone

Also Published As

Publication number Publication date
WO2018112744A1 (en) 2018-06-28
CN108064398A (en) 2018-05-22

Similar Documents

Publication Publication Date Title
CN108064398B (en) Electron key management method and device
CN102624677B (en) Method and server for monitoring network user behavior
US8250398B2 (en) Event time management in an electric vehicle charging station without a battery-backed real time clock
CN106646057B (en) Stop active judgment method of sending a telegram in reply
CN108470313A (en) A kind of operation operation overall process management-control method and system based on mobile internet
CN103106130B (en) A kind of software action data monitoring method of mobile terminal and system
CN108053532B (en) Unlocking time limit setting method and system based on intelligent cloud lock
CN103771211A (en) Elevator monitoring system based on Internet of Things
CN103180693A (en) Electric utility meter comprising load identifying data processor
WO2019238133A1 (en) Resource management and control method and system
CN205263918U (en) Intelligent entrance guard of transformer substation based on APP control
CN106850558A (en) Intelligent electric meter abnormal state detection method based on seaconal model time series
CN104110891A (en) Water heater, water heater system, water heater control method, wearable intelligent device and server
WO2018232892A1 (en) Method and device for intelligently monitoring and predicting elevator malfunctions
CN105752784B (en) A kind of monitoring method for the monitoring device supervised automatically for elevator maintenance
de Carvalho et al. Analyzing impact of communication network topologies on reconfiguration of networked microgrids, impact of communication system on smart grid reliability, security and operation
CN207573043U (en) A kind of charging management system
CN105450714A (en) Method and device for remotely controlling terminal application installation
CN104506923A (en) Multimedia processing device, server and method
CN109410068A (en) Electronic device, the electric power data Missing Data Filling method based on XGBoost and storage medium
CN106656995A (en) Device control method and device
CN106530124A (en) Method and system for power utilization control
CN102570610A (en) Intelligent electricity-stealing preventing system and method
CN106791595A (en) A kind of equipment fault positioning monitoring system and method based on coding positioning, video evidence obtaining and 3D modeling
US10664930B2 (en) Device for powering an electrical appliance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 W1A 4, Guangdong high tech Industrial Village, 034 New South Road, Shenzhen, Nanshan District, Nanshan District.

Applicant after: Shenzhen Liwei Zhilian Technology Co., Ltd.

Address before: 518000 W1A 4, Guangdong high tech Industrial Village, 034 New South Road, Shenzhen, Nanshan District, Nanshan District.

Applicant before: Shenzhen ZTE NetView Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant