CN108894609A - Recording method, device and the key of switch lock - Google Patents

Recording method, device and the key of switch lock Download PDF

Info

Publication number
CN108894609A
CN108894609A CN201810721126.6A CN201810721126A CN108894609A CN 108894609 A CN108894609 A CN 108894609A CN 201810721126 A CN201810721126 A CN 201810721126A CN 108894609 A CN108894609 A CN 108894609A
Authority
CN
China
Prior art keywords
key
feature locations
lockhole
acceleration
lockset
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.)
Pending
Application number
CN201810721126.6A
Other languages
Chinese (zh)
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.)
Chengdu Mingtutong Technology Co Ltd
Original Assignee
Chengdu Mingtutong 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 Chengdu Mingtutong Technology Co Ltd filed Critical Chengdu Mingtutong Technology Co Ltd
Priority to CN201810721126.6A priority Critical patent/CN108894609A/en
Publication of CN108894609A publication Critical patent/CN108894609A/en
Pending legal-status Critical Current

Links

Classifications

    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B41/00Locks with visible indication as to whether the lock is locked or unlocked

Landscapes

  • Lock And Its Accessories (AREA)

Abstract

The embodiment of the present application provides recording method, device and the key of a kind of switch lock, is related to lock technology field.Method includes:In the lockhole that key is inserted into lockset and during rotation, key is obtained during rotation by the process number of each feature locations in preset multiple feature locations, wherein preset multiple feature locations are located in lockhole;Determine that key execution is unlocking operation or shuts operation according to by number;Record unlocking operation shuts operation, and record executes the current time of operation.Therefore, the key is by the unlocking operation that executes to itself or the determination and the record that shut operation, inexpensive and easy-operating the prompt whether user has been unlocked or shut realized.

Description

Recording method, device and the key of switch lock
Technical field
This application involves lock technology fields, in particular to a kind of recording method of switch lock, device and key.
Background technique
Key has obtained extremely wide application in history for thousands of years as the key equipment unlocked and shut.
Summary of the invention
The application is to provide recording method, device and the key of a kind of switch lock.
Embodiments herein is realized in the following way:
In a first aspect, the embodiment of the present application provides a kind of recording method of switch lock, the method includes:It is inserted in key During entering into the lockhole of lockset and rotating, obtains the key and pass through preset multiple feature locations during rotation In each feature locations pass through number, wherein preset multiple feature locations are located in the lockhole;According to the warp It crosses number and determines that key execution is unlocking operation or shuts operation;Record the unlocking operation or it is described shut operation, And record executes the current time of operation.
The technical solution provided with reference to first aspect, in some possible implementations, the acquisition key exists By the process number of each feature locations in preset multiple feature locations in rotation process, including:The key is obtained to exist The acceleration generated in rotation process;It is determined according to the acceleration generated in the rotation process and passes through preset multiple Q-characters Each feature locations passes through number in setting.
The technical solution provided with reference to first aspect, in some possible implementations, acceleration includes quadrature component It is described to be determined according to the acceleration generated in the rotation process by each in preset multiple feature locations with vertical pivot component The process number of feature locations, including:Quadrature component based on the acceleration generated in the rotation process is located at each feature Number in the default quadrature component value range of position, and the vertical pivot component based on the acceleration generated in the rotation process Number in the default vertical pivot components range value of each feature locations, determines each spy in preset multiple feature locations That levies position passes through number.
The technical solution provided with reference to first aspect, it is described according to the process time in some possible implementations Number determines that the key execution is unlocking operation or shuts operation, including:According to each feature locations of process and adjacent Sequencing determines rotation direction of the key in the lockhole between each feature locations;According to each feature locations Determine turnning circle of the key in the lockhole by number;According to the rotation direction and the turnning circle Determine that key execution is unlocking operation or shuts operation.
The technical solution provided with reference to first aspect, in some possible implementations, acceleration further includes transverse and longitudinal axis Component, it is described in the lockhole that key is inserted into lockset and during rotation, it obtains the key and passes through during rotation In preset multiple feature locations before the process number of each feature locations, the method also includes:Judge the key Whether the? vertical axis component of the acceleration of generation is in preset duration close to zero;When to be, determine that the key is inserted into lock In the lockhole of tool.
Second aspect, the embodiment of the present application provide a kind of recording device of switch lock, the recording device of the switch lock Including:Number obtains module, is turning in the lockhole that key is inserted into lockset and during rotation, obtaining the key Each feature locations passes through number in the preset multiple feature locations of dynamic process in the process, wherein preset multiple spies Sign position is located in the lockhole.Determining module is operated, for determining that the key execution is out by number according to described Lock operation shuts operation.Operation record module, for record the unlocking operation or it is described shut operation, and record executes The current time of operation.
The third aspect, the embodiment of the present application provide a kind of key, and the key includes:Shell;Key body, the key The installation of spoon ontology is on the housing;Trigger switch, the trigger switch are installed on the housing, processing unit, the place Device is managed in the shell, and the processing unit is connect with the trigger switch.Wherein, it is inserted into the key body When in the lockhole of lockset, the home loop of the trigger switch by the lockset active force and be in channel status, it is described Processing unit obtains electric energy and in running order, the work of the processing unit from the home loop in channel status State is used to execute the recording method of the switch lock.
In conjunction with the technical solution that the third aspect provides, in some possible implementations, the trigger switch is described It is located proximate on shell in the junction of the shell and the key body.
In conjunction with the technical solution that the third aspect provides, in some possible implementations, the key further includes:Electricity Pond, the battery are arranged in the shell, and the battery is connect with the home loop.
In conjunction with the technical solution that the third aspect provides, in some possible implementations, the key further includes:Display Panel, on the housing, the display panel is connect with the battery for the display panel setting;Wireless communicator, it is described Wireless communicator is arranged in the shell, and the wireless communicator is connect with the processing unit and the battery respectively, with And the wireless communicator is connect by network with server.
Fourth aspect, the embodiment of the present application provide a kind of non-volatile program code that can be performed with processing unit Computer-readable storage media, said program code make the recording method of the processing unit execution switch lock.
The beneficial effect of the embodiment of the present application is:
In the lockhole that key is inserted into lockset and during rotation, key by passing through during rotation obtained from body That crosses each feature locations in preset multiple feature locations pass through number, just can be executed by determine that out by number For unlocking operation or operation is shut, and records the unlocking operation or shuts operation.Therefore, the key is by opening itself execution Whether lock operation or determination and the record for shutting operation, inexpensive and easy-operating realize have been unlocked or have been closed to user The prompt of lock.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structural schematic diagram of key of the application first embodiment offer;
Fig. 2 shows a kind of structural block diagrams for key that the application first embodiment provides;
Fig. 3 shows a kind of flow chart of the recording method of switch lock of the application second embodiment offer;
Fig. 4 shows the state signal of key in a kind of recording method of switch lock of the application second embodiment offer Figure;
Fig. 5 shows the position signal of key in a kind of recording method of switch lock of the application second embodiment offer Figure;
Fig. 6 shows a kind of structural block diagram of the recording device of switch lock of the application 3rd embodiment offer.
Icon:10- key;11- shell;12- key body;13- trigger switch;14- battery;15- processing unit;151- Acceleration transducer;152- handles chip;16- wireless communicator;17- display panel.
Specific embodiment
User needs to open door lock by key or closes door lock when entering or going out.
But inventor has found by long-term practical studies, and whether user may forget oneself after unlocking or closure It had opened lock or had closed lock, at this point, user often returns to check whether to have opened lock or closed lock.The return of user Check it is not only time-consuming and laborious, and experience it is also excessively poor.To improve such case, can be regarded in the prior art by being installed on doorway Frequency monitors, when occurring the case where user forgets oneself whether to have opened lock or has closed lock, will pass through checking monitoring video Just it is determined.But installation video monitoring implement it is not only troublesome, cost again it is too high.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying As a result, therefore, the solution that the discovery procedure of the above problem and hereinafter the embodiment of the present application are proposed regarding to the issue above Scheme all should be the contribution that inventor makes the application during the application.
Based on the studies above, the embodiment of the present application provides recording method, device and the key of a kind of switch lock.In key During being inserted into the lockhole of lockset and rotating, key by passing through preset multiple spies obtained from body during rotation The process number of each feature locations in position is levied, it just can be by determine that out that executing is unlocking operation or pass by number Lock operation, and record the unlocking operation or shut operation.Therefore, which by the unlocking operation that executes to itself or shuts behaviour The determination of work and record, it is inexpensive and easy-operating the prompt whether user has been unlocked or shut realized.
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Term " first ", " the Two " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Fig. 1 and Fig. 2 are please referred to, the embodiment of the present application provides a kind of key 10.The key 10 includes:Shell 11, key Ontology 12, trigger switch 13, battery 14, processing unit 15, wireless communicator 16 and display panel 17.Wherein, processing unit 15 It is connect respectively with trigger switch 13, wireless communicator 16 and display panel 17 and processing unit 15 is connect with trigger switch 13, And trigger switch 13 is then connect with battery 14, in addition, battery 14 is also connect with wireless communicator 16 and display panel 17.
Shell 11 can for plastic material be made or flexible thermoplastic macromolecule material made of flat structure, Wherein, the thermoplastic macromolecule material includes:Silica gel and rubber etc..The inside of shell 11 be it is hollow, in order to handle dress Setting 15, battery 14 and wireless communicator 16 can be arranged into the shell 11.
Club shaped structure made of the substantially metal material of key body 12, be provided on key body 12 for in lockset The dentalation that agrees with of dentalation.Key body 12 can be connect with shell 11, in order to which user is by holding shell 11 And key body 12 is inserted into lockset, and the dentalation in the dentalation and lockset on key body 12 is agreed with And lockset is opened.
Trigger switch 13 is also disposed on shell 11, and from 10 overall structure of key for, trigger switch 13 is in shell A movable protrusion is formed on 11.There is home loop, and the home loop is in disconnected in original state inside trigger switch 13 Line state.When key body 12 is inserted into the lockhole of lockset, trigger switch 13 is applied based on the extruding of lockset by lockset Active force, i.e., the protrusion formed on shell 11 by lockset active force and activity generates displacement, raised displacement just makes Raised home loop can must be closed, so that home loop is changed into from breaking transition in channel status.And work as key sheet When body 12 takes out from the lockhole of lockset, trigger switch 13 is no longer influenced by the active force of lockset application, raised from displacement state Restore to original state, then, home loop is just no longer closed by protrusion, and then home loop is also restored to initial accordingly Off state.
In the present embodiment, to be triggered convenient for trigger switch 13 by lockset, the position on shell 11 is arranged in trigger switch 13 It can be close to the junction of shell 11 and key body 12.
Battery 14 can be the common button cell 14 in market, and battery 14 with the home loop of trigger switch 13 by connecting It connects.When home loop is in off state, battery 14 then can not be exported electric energy by home loop.It is in home loop When channel status, battery 14 can then be exported electric energy to processing unit 15 by home loop, so that processing unit 15 is based on The electric energy of acquisition and be activated and in working condition.It is thereby achieved that processing unit 15 executes unlocking operation or pass in key 10 Lock operation when just it is in running order, play the role of it is energy-efficient, extend battery 14 use the time.
Processing unit 15 may include:Acceleration transducer 151 and processing chip 152, wherein acceleration transducer 151 It is connect with processing chip 152.
Acceleration transducer 151 can be G-sensor acceleration transducer 151, and acceleration transducer 151 is being in work When making state, the acceleration that key 10 generates during executing unlocking operation or shutting and operate can be acquired, and will acquisition To acceleration export chip 152 to processing, wherein acceleration is 3-axis acceleration, and the value of acceleration includes:Quadrature component, Vertical pivot component and? vertical axis component.
Processing chip 152 can be a kind of IC chip.During realization, each step of the above method can lead to The integrated logic circuit for the hardware crossed in processing chip 152 or the instruction of software form are completed.Above-mentioned processing chip 152 can To be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), specific integrated circuit (ASIC), Ready-made programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hard Part component.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor It can be microprocessor or the processor be also possible to any conventional processor etc..In conjunction with disclosed in the embodiment of the present invention The step of method, can be embodied directly in hardware decoding processor and execute completion, or with the hardware and software in decoding processor Block combiner executes completion.Software module can be located at random access memory, flash memory, read-only memory, programmable read only memory Or in the storage medium of this fields such as electrically erasable programmable memory, register maturation.Processing chip 152 is by being added The acceleration that velocity sensor 151 acquires, processing chip 152 can execute the recording method of switch lock.Handle chip 152 to The execution of recording method based on switch lock, processing chip 152 can store implementing result into the ROM of itself, and place Implementing result can also be respectively sent to wireless communicator 16 and display panel 17 by reason chip 152.
Wireless communicator 16 can be communication chip common on the market, such as the carrier communication chip of 4G.Wireless communication Device 16 can be in running order by obtaining the electric energy that battery 14 exports.Wireless communicator 16 can pass through network and service Device connection, wireless communicator 16 obtain what processing chip 152 was sent by being connected to the processing chip 152 in processing unit 15 After implementing result, which can be transmitted to server by wireless communicator 16, so that server again send out by the execution structure It send to corresponding user terminal (electronic equipment that user terminal is the user for being unlocked or being shut using key 10), then using Family terminal can know the implementing result.
Display panel 17 can be liquid crystal display panel 17 common on the market, for example, LCD display (Liquid Crystal Display, liquid crystal display).Display panel 17, which can be embedded in, to be arranged on shell 11, and display panel 17 can be with It is in running order by obtaining the electric energy that battery 14 exports.Display panel 17 is in the execution for obtaining the processing transmission of chip 152 As a result after, display panel 17 can in real time be shown the implementing result, so that user could be aware that the implementing result.
Second embodiment
Referring to Fig. 3, the embodiment of the present application provides a kind of recording method of switch lock, the recording method of the switch lock can To be applied to key, i.e., the recording method of the switch lock is executed by key.The recording method of the switch lock includes:Step S100, step S200 and step S300.
It should be noted that the recording method of switch lock can also be applied to other execution equipment, such as terminal device, After i.e. other execution equipment are communicated with key foundation, the data that key is sent are obtained to execute the recording method of the switch lock. Optionally, the present embodiment is illustrated so that key executes the recording method of the switch lock as an example, but is not intended as limiting.
Step S100:In the lockhole that key is inserted into lockset and during rotation, obtains the key and rotating By the process number of each feature locations in preset multiple feature locations in journey, wherein preset multiple Q-characters Setting in the lockhole.
Execute unlocking operation in key or before shutting operation, trigger switch on the key may by false triggering so that Key carries out the result of erroneous judgement and even output error.For example, trigger switch is squeezed by other objects when key is placed in pocket Pressure and by false triggering, at this point, the acceleration that key generates when will acquire key in pocket, thus defeated based on the acceleration Make mistake result.
So, for avoid key due to false triggering and output error as a result, and lead to that user is caused to mislead, triggering After switch is triggered, key may determine that the? vertical axis component of the acceleration of the generation of key in preset duration whether close to Zero, wherein for the continuity for guaranteeing unlocking action, preset duration can be 0.1-0.4 seconds.
Therefore, when being judged as NO, key can determine that key is false triggering at this time, then terminates the execution of follow-up process.
When being judged as YES, key can then determine that key is inserted into the lockhole of lockset at this time.
It is understood that in the lockhole that key is inserted into lockset, and when key is not removed also, key is unlocked The? vertical axis component for rotating or shutting the acceleration that rotation generates substantially levels off to zero.It therefore in a triggered, can be based on acceleration The? vertical axis component of degree, which substantially levels off to, zero determines whether key is inserted into the lockhole of lockset.
Such as shown in Fig. 4, the X-axis in Fig. 4 is horizontal axis, Y-axis is vertical pivot and Z axis is the longitudinal axis.In Fig. 4, the shape of key A State is the state being inserted into lockhole.Under this state, the? vertical axis component a1 for the acceleration that key A is generated levels off to 0 substantially.That , key A can be rotated to the direction a or the direction b rotates to execute the operation unlocked or shut.
In this present embodiment, after determining in the lockhole that key is inserted into lockset, key can be based on the acceleration of generation ? vertical axis component do not level off to and zero determine that key is just being extracted out from lockhole.Therefore key can be inserted into lockset to key is determined Lockhole just collects the acceleration that the key generates from extraction in lockhole to determining key and is being analyzed in this period, wherein Just to understand, what the present embodiment was generated using collecting the acceleration of key generation in this period as key during rotation It is illustrated for acceleration.And in fact, collecting the acceleration of key generation also not necessarily key in this period The acceleration or even key that spoon rotation generates may also not rotated, but the key still can acceleration to not having rotary state Degree is acquired and analyzes.
Specifically, the acceleration machinery that key generates the key obtained in this period during rotation divides Analysis, to obtain the longitudinal axis point of the acceleration generated in the quadrature component and rotation process of the acceleration generated in rotation process Amount.
As a kind of mode, for convenient for based on the quadrature component and rotation process for obtaining the acceleration generated in rotation process The? vertical axis component of the acceleration of middle generation is analyzed, and can determine the circle number of the key turns.It is pre-set in key more A feature locations, and preset multiple feature locations are located in lockhole, then which have passed through based on the acceleration analysis key A little feature locations are just capable of determining that the circle number of the key turns.And to guarantee accurately determine the analysis of acceleration Which feature locations key passes through, therefore each feature locations are position range in multiple feature locations.
The default quadrature component value range of acceleration and pre- has also been preset at each feature locations in the present embodiment, in key If vertical pivot components range value.So key can be located at every based on the quadrature component for the acceleration that key generates during rotation Number in the default quadrature component value range of a feature locations, and the acceleration that is generated during rotation based on key Vertical pivot component is located at the number in the default vertical pivot components range value of each feature locations, therefore key can be determined in key Rotation process in by each feature locations in preset multiple feature locations pass through number.
It should be noted that being directed to multiple feature locations of the present embodiment, in actually judgement, the quantity of feature locations is got over It is more, then unlocking to key or the operation judges shut are more accurate.But, it is contemplated that the quantity of feature locations can be made too much It is excessive at computational load, and again cannot easily be achieved, optionally, the present embodiment can use feature locations for 4-6, for example, special Levying position is 4, and the degree of this feature position is respectively at 0 °, 90 °, 180 ° and 270 °.
As shown in figure 5, for convenient for the understanding to this programme, the present embodiment is illustrated so that feature locations are 4 as an example.It should 4 feature locations difference feature locations A, feature locations B, feature locations C and feature locations D.Wherein, feature locations A key turns It moves to position that is about horizontal but being located above, feature locations B is key turns to about vertically but positioned at the position of right, Q-character Setting C is key turns to about horizontal but underlying position, and feature locations D is key turns to about vertically but positioned at left Position.If being in the range of feature locations A with position in the lockhole of key insertion lockset, and rotates clockwise and carry out for a circle Explanation.
When starting turning, vertical pivot component approximation of the key based on acceleration at feature locations A is with zero and positioned at Q-character It sets in the default vertical pivot components range value of A, and the quadrature component again based on acceleration at feature locations A is not zero, thus key It determines by feature locations A.
With the progress of rotation, when turning at feature locations B, horizontal axis of the key based on acceleration at feature locations B Component approximation is with zero and in the default quadrature component value range of feature locations B, and again based on acceleration at feature locations B Vertical pivot component is not zero, so that key is determined by feature locations B.
Also with the progress of rotation, when turning at feature locations C, key based at feature locations C acceleration it is perpendicular Axis component approximation is based on acceleration at feature locations C with zero and in the default vertical pivot components range value of feature locations C again Quadrature component be not zero, so that key is determined by feature locations C.
Finally, when turning at feature locations D, quadrature component approximation of the key based on acceleration at feature locations D with Zero and in the default quadrature component value range of feature locations D, and the vertical pivot component again based on acceleration at feature locations D is not It is zero, so that key is determined by feature locations D.
After at this point, can determine that key rotates clockwise a circle, by feature locations A, feature locations B, feature Position C and feature locations D is each primary.
Step S200:Determine that key execution is unlocking operation or shuts operation by number according to described.
Obtain each feature locations after number, key is also it needs to be determined that rotation side of the key in rotation out To.In the present embodiment, key can be according to sequencing between each feature locations and adjacent each feature locations of process Determine rotation direction of the key in lockhole.
As a kind of mode, key can also in advance for each feature locations set a state added value, and for convenient for Judgement, state added value need to guarantee that the state added value of each feature locations and the state added value of neighbor feature location are subtracted each other Result can not be identical.It so, is also accordingly each feature locations when successively determining that key passes through each feature locations Add the state added value of each feature locations.Finally, according to each feature locations and adjacent each feature locations of process Between sequencing, the state added value of each feature locations and the state added value of adjacent each feature locations are subtracted each other, It is made the difference as a result, and this is made the difference result making the difference result with default and carrying out matching the rotation side that can determine the key To.
For example, feature locations A, feature locations B, feature locations C and feature locations D are respectively 1,1,0 and 2.If key with Feature locations A is that starting point rotates clockwise a circle, then the result normal condition that makes the difference obtained is to make the difference with clockwise preset As a result matched 0,1, -2 and 1.If key rotates counterclockwise a circle by starting point of feature locations A, then what is obtained makes the difference result Normal condition is and counterclockwise default makes the difference result matched -1,2, -1 and 0.
In addition, being actually to rotate, but cause to judge since acceleration information acquires error to avoid key The generation of wrong situation is a part in making the difference result with it is default make the difference result and match when, key is based on a part matching Data determine rotation direction.
For example, the default result that makes the difference is 0,1, -2 and 1, but making the difference result is -1,1, -2 and 2.So key is based on 1 and -2 Matching can also determine that key is to rotate clockwise.
It should be noted that if this makes the difference result and the default result that makes the difference mismatches, then key can directly determine out The rotation of key is not the operation (for example turn to half inverts again after and take out) unlocked or shut, and terminates subsequent stream Journey.
In this present embodiment, key also it needs to be determined that out key rotation when turnning circle.In the present embodiment, key can To determine turnning circle of the key in the lockhole by number according to each feature locations.
Also it is used as a kind of mode, based on the state added value of above-mentioned each feature locations, key is according to each Q-character That sets passes through number, and the state added value of each feature locations is added with the state added value of other feature position, obtains phase Add as a result, and the addition result and default addition result match can determine the key turn turnning circle.
Also for example, the case where feature locations A, feature locations B, feature locations C and feature locations D are respectively 1,1,0 and 2 Under.If key rotates clockwise two circles half by starting point of feature locations A, then the addition result normal condition obtained is and presets Addition result matched 10, and the circle of the key turns two half is determined for 10 based on addition result.
It furthermore is also actually to rotate, but cause to judge since acceleration information acquires error to avoid key The generation of the case where error, difference between addition result and default addition result is in the error range of permission, key It can also determine that the addition result is matched with default addition result.
Also for example, permitting if it is 9 that key, which rotates clockwise the addition result that two circles half obtain by starting point of feature locations A, Perhaps in the case that error range is -1 to 1, which is 9 to be also believed to default addition result be 10 matchings.
It is also required to explanation, if the addition result and default addition result mismatch, then key can directly determine Also rotating for key is not the operation (for example turn to half inverts again after and take out) unlocked or shut out, and is terminated subsequent Process.
Unlocking operation corresponding to rotating manner and turnning circle has also been preset in the present embodiment, in key or shuts behaviour Make.For example, having preset, to rotate clockwise and rotate two circles half corresponding for unlocking operation, and has preset and rotated counterclockwise and turn Corresponding dynamic two circle half is to shut operation.So key can correspond to really according to the rotation direction and turnning circle determined Fixed key execution is unlocking operation or shuts operation.
Step S300:Record the unlocking operation or it is described shut operation, and record executes the current time of operation.
After determining that key execution is unlocking operation or shuts operation, key by the unlocking operation or can also be shut Operation is associated with current time, and by the unlocking operation after association current time or shuts operation note storage.
Simultaneously, key can also will will be associated with the unlocking operation after current time or shut the corresponding data of operation It is shown, so that user is known.For example, the content of display can be:X, which divides, when XXXX X month X day X performs unlocking behaviour for X seconds Make.And key by the unlocking operation after the association current time or can also shut the corresponding data of operation and pass through network It is sent to server, so that user obtains the data by user terminal from server.
3rd embodiment
Referring to Fig. 6, the embodiment of the present application provides a kind of recording device 100 of switch lock, the record dress of the switch lock 100 processing units for being applied to above-mentioned key are set, the recording device 100 of the switch lock includes:
Number obtains module 110, for obtaining the key in the lockhole that key is inserted into lockset and during rotation Spoon is during rotation by the process number of each feature locations in preset multiple feature locations, wherein described preset Multiple feature locations are located in the lockhole.
Determining module 120 is operated, for determining that the key execution is unlocking operation or pass by number according to described Lock operation.
Operation record module 130, for record the unlocking operation or it is described shut operation, and record executes operation Current time.
It should be noted that due to it is apparent to those skilled in the art that, for the convenience and letter of description Clean, system, the specific work process of device and unit of foregoing description can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
It should be understood by those skilled in the art that, the embodiment of the present application can provide as the production of method, system or computer program Product.Therefore, in terms of the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and hardware Embodiment form.Moreover, it wherein includes computer available programs generation that the embodiment of the present application, which can be used in one or more, The meter implemented in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code The form of calculation machine program product.
In conclusion the embodiment of the present application provides recording method, device and the key of a kind of switch lock.Method includes: In the lockhole that key is inserted into lockset and during rotation, obtains key and pass through preset multiple features during rotation Each feature locations passes through number in position, wherein preset multiple feature locations are located in lockhole;According to true by number Determine key execution to be unlocking operation or shut operation;Record unlocking operation shuts operation, and record executes working as operation The preceding time.
In the lockhole that key is inserted into lockset and during rotation, key by passing through during rotation obtained from body That crosses each feature locations in preset multiple feature locations pass through number, just can be executed by determine that out by number For unlocking operation or operation is shut, and records the unlocking operation or shuts operation.Therefore, the key is by opening itself execution Whether lock operation or determination and the record for shutting operation, inexpensive and easy-operating realize have been unlocked or have been closed to user The prompt of lock.
The above is only preferred embodiment of the present application, are not intended to limit this application, for those skilled in the art For member, various changes and changes are possible in this application.Within the spirit and principles of this application, it is made it is any modification, Equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should be noted that:Similar label and letter are under Similar terms are indicated in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing It is further defined and explained.
More than, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and it is any to be familiar with Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.

Claims (10)

1. a kind of recording method of switch lock, which is characterized in that the method includes:
In the lockhole that key is inserted into lockset and during rotation, obtain the key pass through during rotation it is preset Each feature locations passes through number in multiple feature locations, wherein preset multiple feature locations are located at the lockhole In;
Determine that key execution is unlocking operation or shuts operation by number according to described;
Record the unlocking operation or it is described shut operation, and record executes the current time of operation.
2. the recording method of switch lock according to claim 1, which is characterized in that the acquisition key was rotating By the process number of each feature locations in preset multiple feature locations in journey, including:
Obtain the acceleration that the key generates during rotation;
It is determined according to the acceleration generated in the rotation process by each feature locations in preset multiple feature locations By number.
3. the recording method of switch lock according to claim 2, which is characterized in that acceleration includes quadrature component and vertical pivot Component, it is described to be determined according to the acceleration generated in the rotation process by each Q-character in preset multiple feature locations The process number set, including:
Quadrature component based on the acceleration generated in the rotation process is located at the default quadrature component model of each feature locations The number in value is enclosed, and the vertical pivot component based on the acceleration generated in the rotation process is located at the pre- of each feature locations If the number in vertical pivot components range value, the process number of each feature locations in preset multiple feature locations is determined.
4. the recording method of switch lock according to claim 3, which is characterized in that described to be determined according to described by number Key execution is unlocking operation or shuts operation, including:
Determine the key in institute according to sequencing between each feature locations of process and adjacent each feature locations The rotation direction in lockhole is stated, and determines that the key turns in the lockhole by number according to each feature locations Moving-coil number;
Determine that key execution is unlocking operation or shuts operation according to the rotation direction and the turnning circle.
5. the recording method of switch lock described in -4 any claims according to claim 1, which is characterized in that acceleration further includes cross ? vertical axis component, it is described in the lockhole that key is inserted into lockset and during rotation, obtain the key during rotation Before process number by each feature locations in preset multiple feature locations, the method also includes:
Judge the? vertical axis component of the acceleration of the generation of the key in preset duration whether close to zero;
When to be, determine that the key is inserted into the lockhole of lockset.
6. a kind of recording device of switch lock, which is characterized in that the recording device of the switch lock includes:
Number obtains module, is turning in the lockhole that key is inserted into lockset and during rotation, obtaining the key Each feature locations passes through number in the preset multiple feature locations of dynamic process in the process, wherein preset multiple spies Sign position is located in the lockhole;
Determining module is operated, for determining that key execution is unlocking operation or shuts operation by number according to described;
Operation record module, for record the unlocking operation or it is described shut operation, and record execute operation it is current when Between.
7. a kind of key, which is characterized in that the key includes:
Shell;
Key body, the key body installation is on the housing;
Trigger switch, the trigger switch are installed on the housing,
Processing unit, the processing unit is in the shell, and the processing unit is connect with the trigger switch;
Wherein, when the key body is inserted into the lockhole of lockset, the home loop of the trigger switch is by the lock The active force of tool and be in channel status, the processing unit from the home loop in channel status obtain electric energy and from In working condition, the working condition of the processing unit is used to execute the switch lock as described in any claim of claim 1-5 Recording method.
8. key according to claim 7, which is characterized in that
The trigger switch being located proximate in the junction of the shell and the key body on the housing.
9. key according to claim 8, which is characterized in that the key further includes:
Battery, the battery are arranged in the shell, and the battery is connect with the home loop.
10. key according to claim 9, which is characterized in that the key further includes:
Display panel, on the housing, the display panel is connect with the battery for the display panel setting;
Wireless communicator, the wireless communicator are arranged in the shell, and the wireless communicator is filled with the processing respectively It sets and is connected with the battery and the wireless communicator is connect by network with server.
CN201810721126.6A 2018-07-03 2018-07-03 Recording method, device and the key of switch lock Pending CN108894609A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810721126.6A CN108894609A (en) 2018-07-03 2018-07-03 Recording method, device and the key of switch lock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810721126.6A CN108894609A (en) 2018-07-03 2018-07-03 Recording method, device and the key of switch lock

Publications (1)

Publication Number Publication Date
CN108894609A true CN108894609A (en) 2018-11-27

Family

ID=64347582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810721126.6A Pending CN108894609A (en) 2018-07-03 2018-07-03 Recording method, device and the key of switch lock

Country Status (1)

Country Link
CN (1) CN108894609A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111519995A (en) * 2020-04-29 2020-08-11 德施曼机电(中国)有限公司 Intelligent fingerprint door lock device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1524153A (en) * 2001-05-30 2004-08-25 �����ն����ڶ���ϣ Apparatus for indicating a closure state of a lock
JP2011174265A (en) * 2010-02-24 2011-09-08 Miwa Lock Co Ltd Locking confirmation key to lock
CN105735760A (en) * 2016-02-26 2016-07-06 移康智能科技(上海)有限公司 Intelligent key sleeve, intelligent key assembly and locking prompt method
CN105971399A (en) * 2016-05-05 2016-09-28 四川九洲电器集团有限责任公司 Intelligent key
CN206053574U (en) * 2016-08-28 2017-03-29 上海月阳信息科技有限公司 A kind of electronic reminding formula is locked a door auxiliary device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1524153A (en) * 2001-05-30 2004-08-25 �����ն����ڶ���ϣ Apparatus for indicating a closure state of a lock
JP2011174265A (en) * 2010-02-24 2011-09-08 Miwa Lock Co Ltd Locking confirmation key to lock
CN105735760A (en) * 2016-02-26 2016-07-06 移康智能科技(上海)有限公司 Intelligent key sleeve, intelligent key assembly and locking prompt method
CN105971399A (en) * 2016-05-05 2016-09-28 四川九洲电器集团有限责任公司 Intelligent key
CN206053574U (en) * 2016-08-28 2017-03-29 上海月阳信息科技有限公司 A kind of electronic reminding formula is locked a door auxiliary device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111519995A (en) * 2020-04-29 2020-08-11 德施曼机电(中国)有限公司 Intelligent fingerprint door lock device

Similar Documents

Publication Publication Date Title
JP4728237B2 (en) Method and apparatus for ensuring security of debug circuit
US6895347B2 (en) Computerized methods for data loggers
CN103646208B (en) Monitoring method and device of eMMC
CN106447855A (en) Shake-based unlocking method and terminal equipment
US10977345B2 (en) Authentication session extension using ephemeral behavior detection
CN106208206B (en) A kind of wireless charging method and mobile terminal
CN108678558A (en) The control method and door lock of door lock
CN103279203A (en) Key reuse method and multifunctional key
CN103941847A (en) System and method for unlocking screen
CN103164316B (en) Hardware monitor
CN106569921A (en) Metering core clock processing method and apparatus for dual-core intelligent electric energy meter
CN107656093A (en) A kind of detection method and device of rotary encoder
CN104378260A (en) load rate testing method, device and system of CAN bus
CN108776634A (en) Cabinet environment abnormality eliminating method and device
CN108894609A (en) Recording method, device and the key of switch lock
CN109407498A (en) A kind of clock of power meter test method and clock of power meter test device
CN113077834A (en) Storage device testing method and device, television and storage medium
CN208702273U (en) Key
CN107422254B (en) A kind of built-in chip health status towards integrated micro-system is from monitoring method
CN108072778A (en) A kind of intelligent electric energy meter burglar-proof electric circuit based on MEMS acceleration transducers
FR2736448A1 (en) METHOD AND DEVICE FOR TEMPORARY AUTHORIZATION OF USE OF A PROGRAM PROTECTED BY AN ELECTRONIC CARTRIDGE
CN106482742A (en) The acquisition methods of meter step data and device
CN105843721B (en) A kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk
CN214670882U (en) STS prepayment gas meter based on bluetooth communication
CN106484438A (en) Computer startup method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181127

RJ01 Rejection of invention patent application after publication