CN109830024A - A kind of electron key unlocking method, device and electron key - Google Patents

A kind of electron key unlocking method, device and electron key Download PDF

Info

Publication number
CN109830024A
CN109830024A CN201910168693.8A CN201910168693A CN109830024A CN 109830024 A CN109830024 A CN 109830024A CN 201910168693 A CN201910168693 A CN 201910168693A CN 109830024 A CN109830024 A CN 109830024A
Authority
CN
China
Prior art keywords
rotation
lockset
angle
unlocking mechanism
electron key
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.)
Granted
Application number
CN201910168693.8A
Other languages
Chinese (zh)
Other versions
CN109830024B (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.)
Zhuhai Unitech Power Technology Co Ltd
Original Assignee
Zhuhai Unitech Power 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 Zhuhai Unitech Power Technology Co Ltd filed Critical Zhuhai Unitech Power Technology Co Ltd
Priority to CN201910168693.8A priority Critical patent/CN109830024B/en
Publication of CN109830024A publication Critical patent/CN109830024A/en
Application granted granted Critical
Publication of CN109830024B publication Critical patent/CN109830024B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of electron key unlocking method, device and electron keys, wherein this method comprises: the unlocking mechanism for detecting the electron key on current time period by multi-axial sensor is inserted into the current pose angle of the lockset in unlocking process;Present rotation angel degree is determined according to the attitude angle detected in the current attitude angle and a upper time cycle;It is updated according to the accumulative rotation angle that the present rotation angel degree obtained a upper time cycle, obtains the accumulative rotation angle on current time period;In the case that the accumulative rotation angle on the time cycle meets lockset unlocking condition in this prior, processing is unlocked to lockset, therefore, it is low to the detection accuracy of rotation position in the process to can solve electron key unlock lockset in the related technology, and the problem of unlock direction of rotation of electron key can not be detected, detection accuracy is improved, unlock direction of rotation can be determined by present rotation angel degree.

Description

A kind of electron key unlocking method, device and electron key
Technical field
The present invention relates to the communications fields, in particular to a kind of electron key unlocking method, device and electron key.
Background technique
It is anti-error that the anti-error operation that unblocks, single unlock rod computer key are carried out using bilingual locking bar and single unlock rod with computer key The advantages that spoon is experienced in the presence of locking, easy to operate, it is more and more to apply in major network and power distribution network anti-error system, by Dan Xiesuo Bar computer key is inserted into lockset, if the lockset meets operation logic, computer key discharges locking structure, rotates computer key, It can complete to unlock.It is detected, is existed following several with Hall using magnet steel currently, computer key rotation unlocks successful state A disadvantage:
1, because of magnet steel magnetic field strength consistency problem, cause detection error big, error is missed up to 30 °, therefore often The case where survey, test leakage;
2, some rotation position can only be detected, the other angles in rotation round can not be detected;
3, the unlock direction of rotation of computer key can not be detected.
It is low to the detection accuracy of rotation position in the process for the unlock lockset of electron key in the related technology, and can not detect The problem of unlock direction of rotation of electron key, not yet proposition solution.
Summary of the invention
The embodiment of the invention provides a kind of electron key unlocking method, device and electron keys, at least to solve correlation It is low to the detection accuracy of rotation position during electron key unlock lockset in technology, and the unlock rotation of electron key can not be detected The problem of turning direction.
According to one embodiment of present invention, a kind of electron key unlocking method is provided, comprising:
Electron key rotate unlock lockset during, detected on current time period by multi-axial sensor described in The unlocking mechanism of electron key is inserted into the current pose angle of the lockset, wherein the multi-axial sensor be arranged to every Predetermined period of time detects the attitude angle that the unlocking mechanism is inserted into the lockset;
The unlock is determined according to the attitude angle detected in the current pose angle and a upper time cycle The present rotation angel degree of mechanism;
The accumulative rotation angle for the unlocking mechanism that a upper time cycle was obtained according to the present rotation angel degree It is updated, obtains the accumulative rotation angle on current time period;
In the case where the accumulative rotation angle on the current time period meets lockset unlocking condition, to the lockset It is unlocked processing.
Optionally, the accumulative rotation of a unlocking mechanism upper time cycle obtained according to the present rotation angel degree Gyration is updated, and the accumulative rotation angle obtained on current time period includes:
The direction of rotation of the unlocking mechanism is determined according to the present rotation angel degree;
The unlocking mechanism that a upper time cycle was obtained according to the direction of rotation and the present rotation angel degree Cumulative rotation angle be updated, obtain the accumulative rotation angle on current time period.
Optionally, a solution upper time cycle obtained according to the direction of rotation and the present rotation angel degree The cumulative rotation angle of latch mechanism is updated, and the accumulative rotation angle obtained on current time period includes:
In the situation identical with the unlock direction of rotation of the lockset pre-saved of the direction of rotation, work as by described in Accumulative rotation angle on the preceding time cycle is set as the accumulative rotation angle and the current rotation that a time cycle obtains The sum of absolute value of gyration, wherein in the case that the present rotation angel degree is greater than 0, determine the direction of rotation and institute It is identical to state unlock direction of rotation;
In the case where the direction of rotation is opposite with the unlock direction of rotation of the lockset pre-saved, work as by described in Accumulative rotation angle on the preceding time cycle is set as the accumulative rotation angle and the current rotation that a time cycle obtains The difference of the absolute value of gyration, wherein in the case that the present rotation angel degree is less than 0, determine the direction of rotation and institute It is opposite to state unlock direction of rotation.
Optionally, institute is determined according to the attitude angle detected in the current pose angle and a upper time cycle The present rotation angel degree for stating unlocking mechanism includes:
The present rotation angel degree is set as detecting in the current pose angle and a upper time cycle The difference of the attitude angle arrived.
Optionally, in the unlocking mechanism for detecting the electron key on current time period by the multi-axial sensor It is inserted into before the current pose angle of the lockset, the method also includes:
Read the identity of the lockset;
Under the identity of the lockset and the matched situation of identity of the electron key, by the solution lock machine The lockable mechanism pop-up being arranged in structure.
Optionally, after the lockable mechanism pop-up being arranged in the unlocking mechanism, the method also includes:
The initial attitude angle that the unlocking mechanism is inserted into the lockset is detected by the multi-axial sensor, wherein will The cumulative rotation angle of the unlocking mechanism on first time cycle is set as first time cycle upper solution The rotation angle of latch mechanism, by first time cycle, the rotation angle of the upper unlocking mechanism is set as described first The unlocking mechanism detected on time cycle is inserted between the attitude angle of the lockset and the initial attitude angle Difference.
Optionally, right in the case where the accumulative rotation angle on the current time period meets lockset unlocking condition The lockset is unlocked processing
In the case where the accumulative rotation angle on the current time period reaches predetermined angular threshold value, to the lockset It is unlocked processing.
Optionally, the unlocking mechanism insertion institute of the electron key is detected on current time period by multi-axial sensor The current pose angle for stating lockset includes:
It is detected on the current time period by six axle sensors described in the unlocking mechanism insertion of the electron key The current pose angle of lockset, wherein the multi-axial sensor is six axle sensor.
According to another embodiment of the invention, a kind of electron key is additionally provided, comprising:
Unlocking mechanism, wherein the unlocking mechanism is connect with master controller;
Multi-axial sensor, the multi-axial sensor are connect with the master controller, for rotating unlock lock in electron key During tool, the unlocking mechanism for detecting the electron key on current time period by multi-axial sensor is inserted into the lock The current pose angle of tool, wherein the multi-axial sensor is arranged to every predetermined time period and detects the unlocking mechanism It is inserted into the attitude angle of the lockset, the current pose angle is sent to the master controller;
The master controller, for according to the posture detected in the current pose angle and a upper time cycle Angle determines the present rotation angel degree of the unlocking mechanism;A upper time cycle was obtained according to the present rotation angel degree The accumulative rotation angle of the unlocking mechanism is updated, and obtains the accumulative rotation angle on current time period;Work as described In the case that accumulative rotation angle on the preceding time cycle meets lockset unlocking condition, processing is unlocked to the lockset.
Optionally, the master controller is also used to determine the rotation side of the unlocking mechanism according to the present rotation angel degree To;The unlocking mechanism that a upper time cycle was obtained according to the direction of rotation and the present rotation angel degree it is cumulative Rotation angle is updated, and obtains the accumulative rotation angle on current time period.
Optionally, the multi-axial sensor includes three axis gravitational accelerometers and three-axis gyroscope, the multi-axial sensor Any one axis it is consistent with axially retaining for the unlocking mechanism.
Optionally, the unlocking mechanism further includes reading code coil, wherein the reading code coil is for reading the lockset Identity, and the identity of the lockset is sent to the master controller;
The master controller is also used to the case where the identity of the lockset is matched with the identity of electron key Under, Xiang Suoshu unlocking mechanism sends the pop instruction for the lockable mechanism pop-up being arranged in the unlocking mechanism;
The unlocking mechanism is also used to be popped up the lockable mechanism according to the pop instruction.
Optionally, the electron key further include: sound broadcasting module, wherein
The sound broadcasting module, for carrying out voice prompting in unlocking process.
According to another embodiment of the invention, a kind of electron key tripper is additionally provided, comprising:
First detection module is used for during electron key rotates unlock lockset, by multi-axial sensor current The unlocking mechanism that the electron key is detected on time cycle is inserted into the current pose angle of the lockset, wherein the multiaxis The every predetermined time period that sensor is arranged to detects the attitude angle that the unlocking mechanism is inserted into the lockset;
Determining module, for according to the attitude angle detected in the current pose angle and a upper time cycle Determine the present rotation angel degree of the unlocking mechanism;
Update module, the unlocking mechanism for being obtained according to the present rotation angel degree to a upper time cycle Accumulative rotation angle is updated, and obtains the accumulative rotation angle on current time period;
Unlocked state, the case where meeting lockset unlocking condition for the accumulative rotation angle on the current time period Under, processing is unlocked to the lockset.
Optionally, the update module includes:
Determination unit, for determining the direction of rotation of the unlocking mechanism according to the present rotation angel degree;
Updating unit, for what is obtained according to the direction of rotation and the present rotation angel degree to a upper time cycle The cumulative rotation angle of the unlocking mechanism is updated, and obtains the accumulative rotation angle on current time period.
Optionally, the updating unit, is also used to
In the situation identical with the unlock direction of rotation of the lockset pre-saved of the direction of rotation, work as by described in Accumulative rotation angle on the preceding time cycle is set as the accumulative rotation angle and the current rotation that a time cycle obtains The sum of absolute value of gyration, wherein in the case that the present rotation angel degree is greater than 0, determine the direction of rotation and institute It is identical to state unlock direction of rotation;
In the case where the direction of rotation is opposite with the unlock direction of rotation of the lockset pre-saved, work as by described in Accumulative rotation angle on the preceding time cycle is set as the accumulative rotation angle and the current rotation that a time cycle obtains The difference of the absolute value of gyration, wherein in the case that the present rotation angel degree is less than 0, determine the direction of rotation and institute It is opposite to state unlock direction of rotation.
Optionally, the determining module, is also used to
The present rotation angel degree is set as detecting in the current pose angle and a upper time cycle The difference of the attitude angle arrived.
Optionally, described device further include:
Read module, for reading the identity of the lockset;
Pop-up module, the case where matching for the identity in the lockset with the identity of the electron key Under, the lockable mechanism being arranged in the unlocking mechanism is popped up.
Optionally, described device further include:
Second detection module is inserted into the initial of the lockset for detecting the unlocking mechanism by the multi-axial sensor Attitude angle, wherein set described first for the cumulative rotation angle of the unlocking mechanism on first time cycle The rotation angle of the unlocking mechanism on time cycle, by the rotation angle of first time cycle upper unlocking mechanism The unlocking mechanism for being set as detecting on first time cycle be inserted into the lockset attitude angle and it is described just Difference between beginning attitude angle.
Optionally, the unlocked state, is also used to
In the case where the accumulative rotation angle on the current time period reaches predetermined angular threshold value, to the lockset It is unlocked processing.
Optionally, the first detection module, is also used to
It is detected on the current time period by six axle sensors described in the unlocking mechanism insertion of the electron key The current pose angle of lockset, wherein the multi-axial sensor is six axle sensor.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described Step in embodiment of the method.
Through the invention, in unlocking process, the electron key is detected on current time period by multi-axial sensor Unlocking mechanism be inserted into the current pose angle of the lockset;It was examined according to the current pose angle and on a upper time cycle The attitude angle measured determines the present rotation angel degree of the unlocking mechanism;When according to the present rotation angel degree to upper one Between the period obtained accumulative rotation angle of the unlocking mechanism be updated, obtain the accumulative rotation angle on current time period Degree;In the case where the accumulative rotation angle on the current time period meets lockset unlocking condition, the lockset is carried out Unlock processing, therefore, can solve in the related technology electron key unlock lockset during it is low to the detection accuracy of rotation position, And the problem of unlock direction of rotation of electron key can not be detected, pass through the easy current rotation of predetermined period of time detection of multi-axial sensor Gyration and accumulative rotation angle, improve detection accuracy, can determine unlock direction of rotation by present rotation angel degree.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of electron key unlocking method of the embodiment of the present invention;
Fig. 2 is the flow chart of electron key unlocking method according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of electron key according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of electron key according to the preferred embodiment of the invention;
Fig. 5 is the block diagram of the function composition of pcb board according to an embodiment of the present invention;
Fig. 6 is the schematic diagram of four-quadrant algorithm according to an embodiment of the present invention;
Fig. 7 is the flow chart of unlock attitude detection according to an embodiment of the present invention;
Fig. 8 is the block diagram of electron key tripper according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of electron key unlocking method of the embodiment of the present invention The hardware block diagram of mobile terminal, as shown in Figure 1, mobile terminal 10 may include that one or more (only shows one in Fig. 1 It is a) (processor 102 can include but is not limited to the processing of Micro-processor MCV or programmable logic device FPGA etc. to processor 102 Device) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the biography for communication function Transfer device 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to show Meaning, does not cause to limit to the structure of above-mentioned mobile terminal.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 Perhaps less component or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair The corresponding computer program of message method of reseptance in bright embodiment, processor 102 are stored in memory 104 by operation Computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its His non-volatile solid state memory.In some instances, memory 104 can further comprise remotely setting relative to processor 102 The memory set, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but not It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation Device (NetworkInterface Controller, referred to as NIC), can be connected by base station with other network equipments to It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as RF) module is used to wirelessly be communicated with internet.
Based on above-mentioned mobile terminal, a kind of electron key unlocking method is present embodiments provided, Fig. 2 is according to the present invention The flow chart of the electron key unlocking method of embodiment, as shown in Fig. 2, the process includes the following steps:
Step S202, during electron key rotates unlock lockset, by multi-axial sensor in current time period The unlocking mechanism of the upper detection electron key is inserted into the current pose angle of the lockset, wherein the multi-axial sensor quilt It is set as every predetermined time period and detects the attitude angle that the unlocking mechanism is inserted into the lockset;
Step S204 is determined according to the attitude angle detected in the current pose angle and a upper time cycle The present rotation angel degree of the unlocking mechanism;
Step S206, the unlocking mechanism that a upper time cycle was obtained according to the present rotation angel degree it is accumulative Rotation angle is updated, and obtains the accumulative rotation angle on current time period;
Step S208, in the case where the accumulative rotation angle on the current time period meets lockset unlocking condition, Processing is unlocked to the lockset.
S202 to S208 through the above steps can solve electron key in the related technology and unlock lockset in the process to rotation The detection accuracy of position is low, and the problem of can not detect the unlock direction of rotation of electron key, easily predetermined by multi-axial sensor Time cycle detects present rotation angel degree and accumulative rotation angle, improves detection accuracy, can be true by present rotation angel degree Surely direction of rotation is unlocked.
Optionally, above-mentioned steps S206 can specifically include:
Step S2061 determines the direction of rotation of the unlocking mechanism according to the present rotation angel degree;
Step S2062, the institute that a upper time cycle was obtained according to the direction of rotation and the present rotation angel degree The cumulative rotation angle for stating unlocking mechanism is updated, and obtains the accumulative rotation angle on current time period.
When calculating accumulative rotation angle, it may be considered that unlock direction of rotation, different according to unlock direction of rotation carry out It adds deduct, specifically, above-mentioned steps S2062 may include:
In the situation identical with the unlock direction of rotation of the lockset pre-saved of the direction of rotation, work as by described in Accumulative rotation angle on the preceding time cycle is set as the accumulative rotation angle and the current rotation that a time cycle obtains The sum of absolute value of gyration, wherein in the case that the present rotation angel degree is greater than 0, determine the direction of rotation and institute It is identical to state unlock direction of rotation;
In the case where the direction of rotation is opposite with the unlock direction of rotation of the lockset pre-saved, work as by described in Accumulative rotation angle on the preceding time cycle is set as the accumulative rotation angle and the current rotation that a time cycle obtains The difference of the absolute value of gyration, wherein in the case that the present rotation angel degree is less than 0, determine the direction of rotation and institute It is opposite to state unlock direction of rotation.
Further, above-mentioned steps S204 can specifically include:
The present rotation angel degree is set as detecting in the current pose angle and a upper time cycle The difference of the attitude angle arrived.
It when being inserted into lockset for electron key in the embodiment of the present invention, needs to first verify that whether match with the lockset, has Body, read the identity of the lockset;It is matched in the identity of the lockset with the identity of the electron key In the case where, the lockable mechanism being arranged in the unlocking mechanism is popped up.Lockable mechanism is that setting is solved in unlocking mechanism The structural member of lock control cooperates for the automatic spring after lockset identity ID successful match with unlocking part inside lockset, so that Key can start to be unlocked lockset operation;When matching unsuccessful, key can not be unlocked operation.
In the embodiment of the present invention, the initial appearance that the unlocking mechanism is inserted into the lockset is detected by the multi-axial sensor State angle, wherein when setting described first for the cumulative rotation angle of the unlocking mechanism on first time cycle Between the period upper unlocking mechanism rotation angle, by first time cycle, the rotation angle of the upper unlocking mechanism is set It is set to the unlocking mechanism detected on first time cycle and is inserted into the attitude angle of the lockset and described initial Difference between attitude angle.
In the embodiment of the present invention, above-mentioned steps S208 be can specifically include: the accumulative rotation on the current time period In the case that gyration reaches predetermined angular threshold value, processing is unlocked to the lockset.
In the embodiment of the present invention, the multi-axial sensor can specifically can be with for the six axle sensors above-mentioned steps S202 It include: the unlocking mechanism insertion lockset for detecting the electron key on the current time period by six axle sensors Current pose angle.
Embodiment 2
The embodiment of the present invention, additionally provides a kind of electron key, and Fig. 3 is showing for electron key according to an embodiment of the present invention It is intended to, as shown in Figure 3, comprising:
Unlocking mechanism 32, wherein the unlocking mechanism is connect with master controller 36;
Multi-axial sensor 34, the multi-axial sensor 34 are connect with master controller 36, are unlocked for rotating in electron key During lockset, it is inserted by the unlocking mechanism 32 that multi-axial sensor 34 detects the electron key on current time period The current pose angle of the lockset, wherein the multi-axial sensor 34 is arranged to described in every predetermined time period detection Unlocking mechanism 32 is inserted into the attitude angle of the lockset, and the current pose angle is sent to the master controller 36;
The master controller 36, for according to the appearance detected in the current pose angle and a upper time cycle State angle determines the present rotation angel degree of the unlocking mechanism 32;A upper time cycle was obtained according to the present rotation angel degree To the accumulative rotation angle of the unlocking mechanism 32 be updated, obtain the accumulative rotation angle on current time period;? In the case that accumulative rotation angle on the current time period meets lockset unlocking condition, place is unlocked to the lockset Reason.
Optionally, the master controller 36 is also used to determine the rotation of the unlocking mechanism 32 according to the present rotation angel degree Turn direction;The unlocking mechanism 32 that a upper time cycle was obtained according to the direction of rotation and the present rotation angel degree Cumulative rotation angle be updated, obtain the accumulative rotation angle on current time period.
Optionally, the electron key further include:
The multi-axial sensor 34 includes three axis gravitational accelerometers and three-axis gyroscope, and the multi-axial sensor 34 is appointed An axis and the unlocking mechanism 32 of anticipating axially retain consistent.
Optionally, the unlocking mechanism 32 further includes reading code coil, wherein the reading code coil is for reading the lockset Identity, and the identity of the lockset is sent to the master controller 36;
The master controller 36 is also used in the identity of the lockset and the matched feelings of the identity of electron key Under condition, Xiang Suoshu unlocking mechanism 32 sends the pop instruction for the lockable mechanism pop-up being arranged in the unlocking mechanism 32;
The unlocking mechanism 32 is also used to be popped up the lockable mechanism according to the pop instruction.
Optionally, the electron key further include: sound broadcasting module, wherein
The sound broadcasting module, for carrying out voice prompting in unlocking process.
Below by taking multi-axial sensor is six axle sensors as an example, above-described embodiment 1 and 2 is illustrated.
Fig. 4 is the schematic diagram of electron key according to the preferred embodiment of the invention, as shown in figure 4, including single unlock rod mould Block 41 (one kind of above-mentioned unlocking mechanism 32), six axle sensors 42, master controller 36, memory 43, pcb board 44, power supply 45, outside Shell 46, display screen 47, operation button 48, sound broadcasting module 49;
The top of the prominent shell 46 of single unlock rod module 41, including unlock rod, reading code coil, lockable mechanism, master controller 36 read lockset ID, discharge the lockable mechanism, can unlock to the lock core of mechanical lock;
Six axle sensors 42 include three axis gravitational accelerometers and three-axis gyroscope, are arranged on pcb board, six axle sensors Any one axis and single unlock rod module 41 axially retain consistent, the data of six axle sensors acquisition issue master control by bus Device 36 processed;
The data that master controller 36 sends six axle sensors 42 are filtered, and unlock appearance is resolved under four-quadrant algorithm State rotates angle.
Memory 43 sends Posture acquisition data, authorization message, lockset unlocking motion for caching six axle sensors 42 Information etc..
Pcb board 44, is arranged in the center of inside of shell 46, and Fig. 5 is the function composition of pcb board according to an embodiment of the present invention Block diagram, as shown in figure 5, be integrated with master controller 36 on pcb board 44, power supply 45, memory 43, six axle sensors 42, display Shield 47, operation button 48, sound broadcasting module 49.Pcb board 44 is the control centre of entire computer key (i.e. electron key), is used In carrying out identification to lockset, data record is saved, the movement of control locking structure, rotation position detection etc.;
Power supply 45 carries out power supply power supply for computer key;
Shell 46 is the receiving carrier of entire computer key;
Display screen 47 is embedded in 46 outer surface of shell, for showing information and state;
Operation button 48, the position of manpower operation is convenient in the outer surface that shell 46 is arranged in, for opening computer key Shutdown and task operating;
Sound broadcasting module 49, voice prompting when for being operated.
Single unlock rod unlocks attitude detection process
Starting, as shown in figure 4, ID code module built in lockset, is inserted into lockset for computer key, passes through single unlock rod module 41 Built-in reading code coil reads the identity ID of lockset, and master controller 36 judges whether current lockset matches according to lockset identity ID, If matching, master controller 36 discharges the lockable mechanism in single unlock rod 1, and starting six axle sensor data acquisition is merged with posture It calculates;
Attitude detection is unlocked, when computer key is inserted into lockset, master controller 36 is first to the current posture angle calculated Degree is filtered, and the posture angle for being currently inserted into lockset is recorded after filtering and carries out voice prompting, indicates that computer key can be with Carry out rotation unlock operation;It rotates in unlocking process, master controller 36 constantly parses current posture angle, in rotation angle When degree reaches lockset unlocking condition, voice prompting is unlocked successfully.
Attitude angle detection algorithm is unlocked, different locksets corresponds to different unlocking motions, includes direction of rotation and rotation Two dimensions of angle, such as rotate clockwise 90 °, are rotated by 360 ° counterclockwise, rotation angle can at 360 ° hereinafter, or 360 ° or more.Fig. 6 is the schematic diagram of four-quadrant algorithm according to an embodiment of the present invention, as shown in fig. 6, will be orthogonal in single unlock rod Face is divided into four quadrants, and just insertion lockset is first saved in four-quadrant and passes through filtered attitude angle, when rotating unlock, first According to rotation angle variation track determine current unlock direction of rotation, then in real time current attitude angle be stored in The unlock rotation angle of current lockset is compared in memory, thinks to unlock successfully if matching.Under four-quadrant design, root According to the variation track of rotation angle, revolution number can also be calculated, that is, can detect that rotation angle is more than 360 ° of solution Lock movement.
Fig. 7 is the flow chart of unlock attitude detection according to an embodiment of the present invention, as shown in fig. 7, comprises:
Step S702, single unlock rod are inserted into lockset and read lockset identity ID;
Step S704 judges whether current lockset can operate according to authorization message, if the determination result is NO, Step S706 is executed, in the case where the judgment result is yes, executes step S708;
Step S706 passes through acousto-optic hint mistake;
Step S708 calculates initial unlock attitude angle under four-quadrant and filters, saves;
Step S710, acousto-optic hint can be operated;
Step S712 obtains unlock posture direction of rotation and rotation angle in real time under four-quadrant;
Step S714 judges that direction of rotation, rotation angle are matched with current lockset, if the determination result is NO, Return step S712 is executed in the case where the judgment result is yes;
Step S716, acousto-optic hint unlock successfully.
Embodiment 3
According to another embodiment of the invention, a kind of electron key tripper is additionally provided, Fig. 8 is according to the present invention The block diagram of the electron key tripper of embodiment, as shown in Figure 8, comprising:
First detection module 82, for being worked as during electron key rotates unlock lockset by multi-axial sensor The unlocking mechanism that the electron key is detected on the preceding time cycle is inserted into the current pose angle of the lockset, wherein described more The every predetermined time period that axle sensor is arranged to detects the attitude angle that the unlocking mechanism is inserted into the lockset;
Determining module 84, for according to the attitude angle detected in the current pose angle and a upper time cycle Degree determines the present rotation angel degree of the unlocking mechanism;
Update module 86, the unlocking mechanism for being obtained according to the present rotation angel degree to a upper time cycle Accumulative rotation angle be updated, obtain the accumulative rotation angle on current time period;
Unlocked state 88 meets the feelings of lockset unlocking condition for the accumulative rotation angle on the current time period Under condition, processing is unlocked to the lockset.
Optionally, the update module 86 includes:
Determination unit, for determining the direction of rotation of the unlocking mechanism according to the present rotation angel degree;
Updating unit, for what is obtained according to the direction of rotation and the present rotation angel degree to a upper time cycle The cumulative rotation angle of the unlocking mechanism is updated, and obtains the accumulative rotation angle on current time period.
Optionally, the updating unit, is also used to
In the situation identical with the unlock direction of rotation of the lockset pre-saved of the direction of rotation, work as by described in Accumulative rotation angle on the preceding time cycle is set as the accumulative rotation angle and the current rotation that a time cycle obtains The sum of absolute value of gyration, wherein in the case that the present rotation angel degree is greater than 0, determine the direction of rotation and institute It is identical to state unlock direction of rotation;
In the case where the direction of rotation is opposite with the unlock direction of rotation of the lockset pre-saved, work as by described in Accumulative rotation angle on the preceding time cycle is set as the accumulative rotation angle and the current rotation that a time cycle obtains The difference of the absolute value of gyration, wherein in the case that the present rotation angel degree is less than 0, determine the direction of rotation and institute It is opposite to state unlock direction of rotation.
Optionally, the determining module 84, is also used to
The present rotation angel degree is set as detecting in the current pose angle and a upper time cycle The difference of the attitude angle arrived.
Optionally, described device further include:
Read module, for reading the identity of the lockset;
Pop-up module, the case where matching for the identity in the lockset with the identity of the electron key Under, the lockable mechanism being arranged in the unlocking mechanism is popped up.
Optionally, described device further include:
Second detection module is inserted into the initial of the lockset for detecting the unlocking mechanism by the multi-axial sensor Attitude angle, wherein set described first for the cumulative rotation angle of the unlocking mechanism on first time cycle The rotation angle of the unlocking mechanism on time cycle, by the rotation angle of first time cycle upper unlocking mechanism The unlocking mechanism for being set as detecting on first time cycle be inserted into the lockset attitude angle and it is described just Difference between beginning attitude angle.
Optionally, the unlocked state 88, is also used to
In the case where the accumulative rotation angle on the current time period reaches predetermined angular threshold value, to the lockset It is unlocked processing.
Optionally, the first detection module 82, is also used to
It is detected on the current time period by six axle sensors described in the unlocking mechanism insertion of the electron key The current pose angle of lockset, wherein the multi-axial sensor is six axle sensor.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any Combined form is located in different processors.
Embodiment 4
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps Calculation machine program:
S11 is detected on current time period during electron key rotates unlock lockset by multi-axial sensor The unlocking mechanism of the electron key is inserted into the current pose angle of the lockset, wherein the multi-axial sensor is arranged to Every predetermined time period detects the attitude angle that the unlocking mechanism is inserted into the lockset;
S12, according to the attitude angle determination detected in the current pose angle and a upper time cycle The present rotation angel degree of unlocking mechanism;
S13, the accumulative rotation for the unlocking mechanism that a upper time cycle was obtained according to the present rotation angel degree Angle is updated, and obtains the accumulative rotation angle on current time period;
S14, in the case where the accumulative rotation angle on the current time period meets lockset unlocking condition, to described Lockset is unlocked processing.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read- Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard The various media that can store computer program such as disk, magnetic or disk.
Embodiment 5
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S11 is detected on current time period during electron key rotates unlock lockset by multi-axial sensor The unlocking mechanism of the electron key is inserted into the current pose angle of the lockset, wherein the multi-axial sensor is arranged to Every predetermined time period detects the attitude angle that the unlocking mechanism is inserted into the lockset;
S12, according to the attitude angle determination detected in the current pose angle and a upper time cycle The present rotation angel degree of unlocking mechanism;
S13, the accumulative rotation for the unlocking mechanism that a upper time cycle was obtained according to the present rotation angel degree Angle is updated, and obtains the accumulative rotation angle on current time period;
S14, in the case where the accumulative rotation angle on the current time period meets lockset unlocking condition, to described Lockset is unlocked processing.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc. With replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (16)

1. a kind of electron key unlocking method characterized by comprising
During electron key rotates unlock lockset, the electronics is detected on current time period by multi-axial sensor The unlocking mechanism of key is inserted into the current pose angle of the lockset, wherein the multi-axial sensor is arranged to every predetermined Time cycle detects the attitude angle that the unlocking mechanism is inserted into the lockset;
The unlocking mechanism is determined according to the attitude angle detected in the current pose angle and a upper time cycle Present rotation angel degree;
It was carried out according to accumulative rotation angle of the present rotation angel degree to the unlocking mechanism that a upper time cycle obtains It updates, obtains the accumulative rotation angle on current time period;
In the case where the accumulative rotation angle on the current time period meets lockset unlocking condition, the lockset is carried out Unlock processing.
2. the method according to claim 1, wherein according to the present rotation angel degree to a upper time cycle The accumulative rotation angle of the obtained unlocking mechanism is updated, and obtains the accumulative rotation angle packet on current time period It includes:
The direction of rotation of the unlocking mechanism is determined according to the present rotation angel degree;
The unlocking mechanism that a upper time cycle was obtained according to the direction of rotation and the present rotation angel degree it is tired Gyration of putting english is updated, and obtains the accumulative rotation angle on current time period.
3. according to the method described in claim 2, it is characterized in that, according to the direction of rotation and the present rotation angel degree pair The cumulative rotation angle for the unlocking mechanism that a upper time cycle obtains is updated, and is obtained tired on current time period Meter rotates angle
In the situation identical with the unlock direction of rotation of the lockset pre-saved of the direction of rotation, when will be described current Between accumulative rotation angle on the period be set as the accumulative rotation angle and the present rotation angel that a time cycle obtains The sum of absolute value of degree, wherein in the case that the present rotation angel degree is greater than 0, determine the direction of rotation and the solution It is identical to lock direction of rotation;
In the case where the direction of rotation is opposite with the unlock direction of rotation of the lockset pre-saved, when will be described current Between accumulative rotation angle on the period be set as the accumulative rotation angle and the present rotation angel that a time cycle obtains The difference of the absolute value of degree, wherein in the case that the present rotation angel degree is less than 0, determine the direction of rotation and the solution It is opposite to lock direction of rotation.
4. according to the method described in claim 2, it is characterized in that, according to the current pose angle and a upper time cycle The attitude angle that upper detection obtains determines that the present rotation angel degree of the unlocking mechanism includes:
Set what detection in the current pose angle and a upper time cycle obtained for the present rotation angel degree The difference of attitude angle.
5. method according to claim 1 to 4, which is characterized in that working as by the multi-axial sensor The unlocking mechanism that the electron key is detected on the preceding time cycle is inserted into before the current pose angle of the lockset, the method Further include:
Read the identity of the lockset;
It, will be in the unlocking mechanism under the identity of the lockset and the matched situation of identity of the electron key The lockable mechanism of setting pops up.
6. according to the method described in claim 5, it is characterized in that, in the lockable mechanism pop-up being arranged in the unlocking mechanism Later, the method also includes:
The initial attitude angle that the unlocking mechanism is inserted into the lockset is detected by the multi-axial sensor, wherein by first The cumulative rotation angle of the unlocking mechanism on a time cycle is set as first time cycle upper solution lock machine The rotation angle of structure, by first time cycle, the rotation angle of the upper unlocking mechanism is set as first time The unlocking mechanism detected on period is inserted into the difference between the attitude angle of the lockset and the initial attitude angle.
7. according to claim 1 to method described in 4, which is characterized in that the accumulative rotation angle on the current time period In the case that degree meets lockset unlocking condition, being unlocked processing to the lockset includes:
In the case where the accumulative rotation angle on the current time period reaches predetermined angular threshold value, the lockset is carried out Unlock processing.
8. according to claim 1 to method described in 4, which is characterized in that examined on current time period by multi-axial sensor The unlocking mechanism for surveying the electron key is inserted into the current pose angle of the lockset and includes:
The unlocking mechanism for detecting the electron key on the current time period by six axle sensors is inserted into the lockset Current pose angle, wherein the multi-axial sensor be six axle sensor.
9. a kind of electron key characterized by comprising
Unlocking mechanism, wherein the unlocking mechanism is connect with master controller;
Multi-axial sensor, the multi-axial sensor are connect with the master controller, for rotating unlock lockset in electron key In the process, the current pose angle that the unlocking mechanism is inserted into the lockset is detected on current time period by multi-axial sensor Degree, wherein the every predetermined time period that the multi-axial sensor is arranged to detects the unlocking mechanism and is inserted into the lockset The current pose angle is sent to the master controller by attitude angle;
The master controller, for according to the attitude angle detected in the current pose angle and a upper time cycle Determine the present rotation angel degree of the unlocking mechanism;Described in being obtained according to the present rotation angel degree to a upper time cycle The accumulative rotation angle of unlocking mechanism is updated, and obtains the accumulative rotation angle on current time period;When described current Between in the case that accumulative rotation angle on the period meets lockset unlocking condition, processing is unlocked to the lockset.
10. electron key according to claim 9, which is characterized in that the master controller is also used to according to described current Rotation angle determines the direction of rotation of the unlocking mechanism;According to the direction of rotation and the present rotation angel degree to upper one The cumulative rotation angle for the unlocking mechanism that time cycle obtains is updated, and obtains the accumulative rotation on current time period Angle.
11. electron key according to claim 9, which is characterized in that the multi-axial sensor accelerates including three axis gravity Degree meter and three-axis gyroscope, any one axis of the multi-axial sensor are consistent with axially retaining for the unlocking mechanism.
12. the electron key according to any one of claim 9 to 11, which is characterized in that
The unlocking mechanism further includes reading code coil, wherein and the reading code coil is used to read the identity of the lockset, and The identity of the lockset is sent to the master controller;
The master controller is also used under the identity of the lockset and the matched situation of the identity of electron key, to The unlocking mechanism sends the pop instruction for the lockable mechanism pop-up being arranged in the unlocking mechanism;
The unlocking mechanism is also used to be popped up the lockable mechanism according to the pop instruction.
13. electron key according to claim 12, which is characterized in that the electron key further include: sound plays mould Block, wherein
The sound broadcasting module, for carrying out voice prompting in unlocking process.
14. a kind of electron key tripper characterized by comprising
First detection module is used for during electron key rotates unlock lockset, by multi-axial sensor in current time The unlocking mechanism that the electron key is detected on period is inserted into the current pose angle of the lockset, wherein the multiaxis sensing The every predetermined time period that device is arranged to detects the attitude angle that the unlocking mechanism is inserted into the lockset;
Determining module, for being determined according to the attitude angle detected in the current pose angle and a upper time cycle The present rotation angel degree of the unlocking mechanism;
Update module, the unlocking mechanism for being obtained according to the present rotation angel degree to a upper time cycle it is accumulative Rotation angle is updated, and obtains the accumulative rotation angle on current time period;
Unlocked state, in the case where meeting lockset unlocking condition for the accumulative rotation angle on the current time period, Processing is unlocked to the lockset.
15. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer Program is arranged to execute the method described in any item of the claim 1 to 8 when operation.
16. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory Sequence, the processor are arranged to run the computer program to execute the side described in any item of the claim 1 to 8 Method.
CN201910168693.8A 2019-03-06 2019-03-06 Electronic key unlocking method and device and electronic key Active CN109830024B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910168693.8A CN109830024B (en) 2019-03-06 2019-03-06 Electronic key unlocking method and device and electronic key

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910168693.8A CN109830024B (en) 2019-03-06 2019-03-06 Electronic key unlocking method and device and electronic key

Publications (2)

Publication Number Publication Date
CN109830024A true CN109830024A (en) 2019-05-31
CN109830024B CN109830024B (en) 2020-12-08

Family

ID=66865461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910168693.8A Active CN109830024B (en) 2019-03-06 2019-03-06 Electronic key unlocking method and device and electronic key

Country Status (1)

Country Link
CN (1) CN109830024B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117649714A (en) * 2024-01-30 2024-03-05 珠海唯码科技有限公司 Door lock monitoring system, method, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1896443A (en) * 2005-08-09 2007-01-17 常州一匙通数码锁业有限公司 Microconsumption electronic lock with power-supply provided by key
CN103207734A (en) * 2012-01-11 2013-07-17 深圳富泰宏精密工业有限公司 Electronic device unlocking system and method
US20130321263A1 (en) * 2012-05-31 2013-12-05 Hon Hai Precision Industry Co., Ltd. System and method for unlocking screen of portable electronic device
CN104236935A (en) * 2014-09-28 2014-12-24 河北工业大学 Driving actuator for driver controller
CN106225732A (en) * 2016-08-25 2016-12-14 贵州华昌汽车电器有限公司 A kind of key gear angle detection device and detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1896443A (en) * 2005-08-09 2007-01-17 常州一匙通数码锁业有限公司 Microconsumption electronic lock with power-supply provided by key
CN103207734A (en) * 2012-01-11 2013-07-17 深圳富泰宏精密工业有限公司 Electronic device unlocking system and method
US20130321263A1 (en) * 2012-05-31 2013-12-05 Hon Hai Precision Industry Co., Ltd. System and method for unlocking screen of portable electronic device
CN104236935A (en) * 2014-09-28 2014-12-24 河北工业大学 Driving actuator for driver controller
CN106225732A (en) * 2016-08-25 2016-12-14 贵州华昌汽车电器有限公司 A kind of key gear angle detection device and detection method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117649714A (en) * 2024-01-30 2024-03-05 珠海唯码科技有限公司 Door lock monitoring system, method, equipment and storage medium
CN117649714B (en) * 2024-01-30 2024-03-29 珠海唯码科技有限公司 Door lock monitoring system, method, equipment and storage medium

Also Published As

Publication number Publication date
CN109830024B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
US11551498B2 (en) Locking system and method for a movable freight container door
CN106794901B (en) Method, aircraft, server and the control equipment of handling failure
US20180283048A1 (en) Locking System and Method for a Movable Freight Container
CN109983511A (en) Lock is controlled based on the position of activation signal and portable key device
JP2003135808A (en) Locking device, key, and locking method
CN111512009A (en) Door lock baffle with touch and wireless functions
CN112991584A (en) Control method and system for unlocking and locking of vehicle
CN109830024A (en) A kind of electron key unlocking method, device and electron key
CN111911003A (en) Intelligent door lock capable of automatically unlocking and unlocking judging method
US11032705B2 (en) System and method for authenticating user based on path location
CN107818251A (en) A kind of face identification method and mobile terminal
CN105869249A (en) Electronic key-based intelligent lock
JP2021156162A (en) Key system
US20220206167A1 (en) Blast Movement Monitor, System and Method
US11225811B2 (en) Method for detecting a change of a state of a lock and a system for detecting a change of a state of a lock
JP2019041348A (en) Relay attack detector and relay attack detection method
JP2004206677A (en) Monitoring system and device with ic tag
CN106445111A (en) Locking method and device for spatial information of virtual reality equipment
US11132855B2 (en) Pattern recognition locking system and method of operation
JP6549640B2 (en) Vehicle system, portable device, and in-vehicle device
WO2017069108A1 (en) Vehicle communication system and vehicle-mounted device
WO2019171525A1 (en) Determination device, terminal device, determination method, communication method, determination program, and communication program
JP5192185B2 (en) Game machine management system
US10867076B2 (en) Edge device disablement
WO2018088198A1 (en) Vehicle system, portable machine, and vehicle-mounted device

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
GR01 Patent grant
GR01 Patent grant