Knob type electronic coded lock and code positioning method, unlocking method and device thereof

文档序号:1795263 发布日期:2021-11-05 浏览:16次 中文

阅读说明:本技术 旋钮式电子密码锁及其密码定位方法、解锁方法、装置 (Knob type electronic coded lock and code positioning method, unlocking method and device thereof ) 是由 郁迅 姚飞 于 2021-08-20 设计创作,主要内容包括:本发明提供了一种旋钮式电子密码锁及其密码定位方法、解锁方法、装置,其中,该旋钮式电子密码锁包括:导电件和密码盘,其中,导电件可与密码盘相对转动;密码盘在沿导电件与密码盘相对转动的转动路径上间隔设置有若干触点组,触点组包括至少两个触点,至少两个触点沿转动路径依次设置;导电件可在转动时与触点耦合电连接。从而通过利用触点组间的间隙作为密码输入位,并通过对触点组中的触点进行编码的方式,实现了根据触点导通顺序对旋钮绝对位置的识别,从而在进行密码输入时,旋钮停留在触点组的间隙可大大降低密码锁的功耗,并且具有成本低、体积小的特点。(The invention provides a knob type electronic coded lock and a code positioning method, an unlocking method and a device thereof, wherein the knob type electronic coded lock comprises the following components: the conducting piece and the password disk can rotate relatively; the password disk is provided with a plurality of contact groups at intervals along a rotating path of the conductive piece rotating relative to the password disk, each contact group comprises at least two contacts, and the at least two contacts are sequentially arranged along the rotating path; the conductive member can be coupled and electrically connected with the contact when rotating. Therefore, the gaps among the contact groups are used as password input positions, and the contacts in the contact groups are coded, so that the absolute positions of the knobs can be identified according to the conduction sequence of the contacts, the knobs stop at the gaps of the contact groups when the passwords are input, the power consumption of the coded lock can be greatly reduced, and the coded lock has the characteristics of low cost and small size.)

1. A knob type electronic combination lock, comprising: a conductive piece and a cipher disk, wherein,

the conductive piece can rotate relative to the password disk;

the password disk is provided with a plurality of contact groups at intervals along a rotating path of the conductive piece and the password disk which rotate relatively, each contact group comprises at least two contacts, and the at least two contacts are sequentially arranged along the rotating path;

the conductive piece can be coupled and electrically connected with the contact when rotating.

2. The knob type electronic combination lock according to claim 1, further comprising: and the controller is connected with the contacts and used for receiving the conduction signals of the contact group and controlling the working state of the knob type electronic coded lock according to the conduction signals.

3. The knob type electronic combination lock according to claim 1, wherein the contacts comprise: the code disc comprises a first contact piece and a second contact piece, the second contact piece is arranged on the code disc, the first contact piece is arranged above the second contact piece, and the conductive piece can press the first contact piece when rotating so as to enable the first contact piece to be in contact conduction with the second contact piece.

4. The knob type electronic combination lock according to claim 1, wherein the gap between two adjacent contact sets is a positioning identification bit, and one or more of all the positioning identification bits is a code input identification bit.

5. The knob type electronic combination lock according to claim 1, wherein the conductive member is a brush.

6. The knob type electronic combination lock according to any one of claims 1 to 5, further comprising: and the knob shell is fixedly connected with the conductive piece or the password disk.

7. A code positioning method applied to the knob type electronic code lock according to any one of claims 1 to 6, wherein the method comprises:

monitoring the conducting signals of each contact group;

starting timing after all contacts of the current contact group are sequentially switched from on to off, and stopping timing when the timing time reaches a first preset time or the contact conduction of the adjacent contact group is monitored;

judging whether the timing time length reaches a second preset time length, wherein the second preset time length is less than or equal to the first preset time length;

and when the timing duration reaches the second preset duration, determining the current input password based on the current conduction sequence of each contact in the current contact group and the corresponding relation between the preset conduction sequence of the current contact group and the password.

8. A code positioning method applied to the knob type electronic code lock according to any one of claims 1 to 6, wherein the method comprises:

monitoring the conducting signals of each contact group, and determining the rotating direction based on the conducting signals of the current contact group;

judging whether the current rotating direction is opposite to the previous rotating direction;

and when the current rotation direction is opposite to the previous rotation direction and the previous rotation direction is a first preset direction, determining the current input password based on the current conduction sequence of each contact in the current contact group and the corresponding relation between the preset conduction sequence of the current contact group and the password.

9. An unlocking method applied to the knob type electronic combination lock according to any one of claims 1 to 6, wherein the method comprises:

acquiring a preset unlocking password;

sequentially determining input passwords by using the password positioning method as claimed in claim 7 or 8 to form an input password string;

when the number of digits of the input password string reaches the number of digits of the preset unlocking password, judging whether the input password string is completely consistent with the preset unlocking password;

and when the input password string is completely consistent with the preset unlocking password, controlling the unlocking of the knob type electronic password lock.

10. A combination locator for use with a knob-type electronic combination lock according to any one of claims 1 to 6, wherein the combination locator comprises:

the monitoring module is used for monitoring the conducting signals of the contact groups;

the first processing module is used for starting timing after all contacts of the current contact group are sequentially switched from on to off, and stopping timing when the timing time reaches a first preset time or the contact conduction of the adjacent contact group is monitored;

the second processing module is used for judging whether the timing duration reaches a second preset duration, wherein the second preset duration is less than or equal to the first preset duration;

and the third processing module is used for determining the current input password based on the current conducting sequence of each contact in the current contact group and the corresponding relation between the preset conducting sequence of the current contact group and the password when the timing duration reaches the second preset duration.

11. A combination locator for use with a knob-type electronic combination lock according to any one of claims 1 to 6, the combination locator comprising:

the second monitoring module is used for monitoring the conducting signals of the contact groups and determining the rotating direction based on the conducting signals of the current contact group;

the judging module is used for judging whether the current rotating direction is opposite to the previous rotating direction;

and the password positioning module is used for determining the current input password based on the current conducting sequence of each contact in the current contact group and the corresponding relation between the preset conducting sequence of the current contact group and the password when the current rotating direction is opposite to the previous rotating direction and the previous rotating direction is a first preset direction.

12. An unlocking device applied to the knob type electronic combination lock according to any one of claims 1 to 6, wherein the unlocking device comprises:

the acquisition module is used for acquiring a preset unlocking password;

a fourth processing module, configured to determine the input passwords sequentially by using the password locating apparatus according to claim 10 or 11, to form an input password string;

the fifth processing module is used for judging whether the input password string is completely consistent with the preset unlocking password or not when the number of digits of the input password string reaches the number of digits of the preset unlocking password;

and the sixth processing module is used for controlling the unlocking of the knob type electronic coded lock when the input code string is completely consistent with the preset unlocking code.

13. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any one of claims 7-9.

Technical Field

The invention relates to the technical field of electronic locks, in particular to a knob type electronic coded lock and a code positioning method, an unlocking method and a device thereof.

Background

The electronic coded lock using the single knob for inputting the code is key to determine the code corresponding to the current knob position. In the related art, the current absolute position of the knob is located to determine the corresponding password input, such as: when the knob is rotated to a certain password position, the processor determines the absolute position of the current knob after the knob needs to stay for a certain time so as to determine the input password, and the detection circuit is always in a conducting state during the stay of the knob, so that the power consumption is very high.

Disclosure of Invention

In view of this, embodiments of the present invention provide a knob type electronic combination lock, and a combination positioning method, an unlocking method, and an apparatus thereof, so as to overcome the problem of high power consumption of the knob type electronic combination lock in the prior art.

According to a first aspect, an embodiment of the present invention provides a knob type electronic combination lock, including:

a conductive piece and a cipher disk, wherein,

the conductive piece can rotate relative to the password disk;

the password disk is provided with a plurality of contact groups at intervals along a rotating path of the conductive piece and the password disk which rotate relatively, each contact group comprises at least two contacts, and the at least two contacts are sequentially arranged along the rotating path;

the conductive piece can be coupled and electrically connected with the contact when rotating.

Optionally, the knob type electronic combination lock further comprises: and the controller is connected with the contacts and used for receiving the conduction signals of the contact group and controlling the working state of the knob type electronic coded lock according to the conduction signals.

Optionally, the contact includes: the cipher disk comprises a first contact piece and a second contact piece, wherein the second contact piece is arranged on the cipher disk, the first contact piece is arranged above the second contact piece, and the conductive piece can press the first contact piece when rotating so as to enable the first contact piece and the second contact piece to be in contact conduction.

Optionally, the gap between two adjacent contact sets is a positioning identification bit, and one or more positioning identification bits of all the positioning identification bits are password input identification bits.

Optionally, the conductive member is a brush.

Optionally, the knob type electronic combination lock further comprises: and the knob shell is fixedly connected with the conductive piece or the password disk.

According to a second aspect, an embodiment of the present invention provides a code positioning method, which is applied to the knob type electronic code lock described in the first aspect and any one of the optional implementations thereof, and the method includes:

monitoring the conducting signals of each contact group;

starting timing after all contacts of the current contact group are sequentially switched from on to off, and stopping timing when the timing time reaches a first preset time or the contact conduction of the adjacent contact group is monitored;

judging whether the timing time length reaches a second preset time length, wherein the second preset time length is less than or equal to the first preset time length;

and when the timing duration reaches the second preset duration, determining the current input password based on the current conduction sequence of each contact in the current contact group and the corresponding relation between the preset conduction sequence of the current contact group and the password.

According to a third aspect, an embodiment of the present invention provides a code positioning method, which is applied to the knob type electronic code lock described in the first aspect and any one of the optional implementations thereof, and the method includes:

monitoring the conducting signals of each contact group, and determining the rotating direction based on the conducting signals of the current contact group;

judging whether the current rotating direction is opposite to the previous rotating direction;

and when the current rotation direction is opposite to the previous rotation direction and the previous rotation direction is a first preset direction, determining the current input password based on the current conduction sequence of each contact in the current contact group and the corresponding relation between the preset conduction sequence of the current contact group and the password.

According to a fourth aspect, an embodiment of the present invention provides an unlocking method, which is applied to the knob type electronic combination lock described in the first aspect and any one of the optional implementations thereof, and the method includes:

acquiring a preset unlocking password;

determining input passwords in sequence by adopting the password positioning method of the second aspect to form an input password string;

when the number of digits of the input password string reaches the number of digits of the preset unlocking password, judging whether the input password string is completely consistent with the preset unlocking password;

and when the input password string is completely consistent with the preset unlocking password, controlling the unlocking of the knob type electronic password lock.

According to a fifth aspect, an embodiment of the present invention provides a code positioning device, which is applied to the knob type electronic code lock described in the first aspect and any one of the optional implementations thereof, and the code positioning device includes:

the monitoring module is used for monitoring the conducting signals of the contact groups;

the first processing module is used for starting timing after all contacts of the current contact group are sequentially switched from on to off, and stopping timing when the timing time reaches a first preset time or the contact conduction of the adjacent contact group is monitored;

the second processing module is used for judging whether the timing duration reaches a second preset duration, wherein the second preset duration is less than or equal to the first preset duration;

and the third processing module is used for determining the current input password based on the current conducting sequence of each contact in the current contact group and the corresponding relation between the preset conducting sequence of the current contact group and the password when the timing duration reaches the second preset duration.

According to a sixth aspect, an embodiment of the present invention provides a code positioning device, which is applied to the knob type electronic code lock described in the first aspect and any one of the optional embodiments thereof, and the device includes:

the second monitoring module is used for monitoring the conducting signals of the contact groups and determining the rotating direction based on the conducting signals of the current contact group;

the judging module is used for judging whether the current rotating direction is opposite to the previous rotating direction;

and the password positioning module is used for determining the current input password based on the current conducting sequence of each contact in the current contact group and the corresponding relation between the preset conducting sequence of the current contact group and the password when the current rotating direction is opposite to the previous rotating direction and the previous rotating direction is a first preset direction.

According to a seventh aspect, an embodiment of the present invention provides an unlocking device, which is applied to the knob type electronic combination lock described in the first aspect and any one of the optional implementations of the first aspect, where the unlocking device includes:

the acquisition module is used for acquiring a preset unlocking password;

a fourth processing module, configured to determine the input passwords in sequence by using the password positioning apparatus of the fourth aspect, so as to form an input password string;

the fifth processing module is used for judging whether the input password string is completely consistent with the preset unlocking password or not when the number of digits of the input password string reaches the number of digits of the preset unlocking password;

and the sixth processing module is used for controlling the unlocking of the knob type electronic coded lock when the input code string is completely consistent with the preset unlocking code.

According to an eighth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing the computer to perform the method of the second aspect or the third aspect.

The technical scheme of the invention has the following advantages:

1. the embodiment of the invention provides a knob type electronic coded lock, which comprises: the conducting piece and the password disk can rotate relatively; the password disk is provided with a plurality of contact groups at intervals along a rotating path of the conductive piece rotating relative to the password disk, each contact group comprises at least two contacts, and the at least two contacts are sequentially arranged along the rotating path; the conductive member can be coupled and electrically connected with the contact when rotating. Therefore, the gaps among the contact groups are used as password input positions, and the contacts in the contact groups are coded, so that the absolute positions of the knobs can be identified according to the conduction sequence of the contacts, the knobs stop at the gaps of the contact groups when the passwords are input, the power consumption of the coded lock can be greatly reduced, and the coded lock has the characteristics of low cost and small size.

2. The password positioning method provided by the embodiment of the invention is applied to the knob type electronic password lock provided by another embodiment of the invention, and the conduction signals of all contact groups are monitored; starting timing after all contacts of the current contact group are sequentially switched from on to off, and stopping timing when the timing time reaches a first preset time or the contact conduction of the adjacent contact group is monitored; judging whether the timing time length reaches a second preset time length, wherein the second preset time length is less than or equal to the first preset time length; and when the timing duration reaches a second preset duration, determining the current input password based on the current conducting sequence of each contact in the current contact group and the corresponding relation between the preset conducting sequence of the current contact group and the password. Therefore, the interval time of conduction between adjacent contact groups is monitored to serve as the positioning identification of the knob, then the input password is determined by utilizing the contact conduction sequence, the accurate positioning of the input password is realized, the gap between the contact groups is utilized to serve as the password input bit identification, and when the password is input, the knob stops at the gap between the contact groups, so that the power consumption of the password lock can be greatly reduced.

3. The password positioning method provided by the embodiment of the invention is applied to the knob type electronic password lock provided by another embodiment of the invention, and the rotation direction is determined by monitoring the conducting signals of each contact group and based on the conducting signals of the current contact group; judging whether the current rotating direction is opposite to the previous rotating direction; and when the current rotation direction is opposite to the previous rotation direction and the previous rotation direction is a first preset direction, determining the current input password based on the current conduction sequence of each contact in the current contact group and the corresponding relation between the preset conduction sequence of the current contact group and the password. Therefore, the rotation direction is determined by monitoring the conduction signal of the current contact group, the change of the rotation direction is used as a knob positioning mark, then the input password is determined by utilizing the contact conduction sequence, the accurate positioning of the input password is realized, the gap between the contact groups is used as a password input bit mark, and when the password is input, the knob stops at the gap of the contact groups, so that the power consumption of the password lock can be greatly reduced.

4. The unlocking method provided by the embodiment of the invention is applied to the knob type electronic coded lock provided by the other embodiment of the invention, and the preset unlocking password is obtained; the input passwords are sequentially determined by adopting the password positioning method provided by another embodiment of the invention to form an input password string; when the number of digits of the input password string reaches the number of digits of the preset unlocking password, judging whether the input password string is completely consistent with the preset unlocking password; and when the input password string is completely consistent with the preset unlocking password, the knob type electronic password lock is controlled to unlock. Therefore, the password positioning method provided by the embodiment of the invention is utilized to obtain the password input by the user and compare the password input by the user with the preset unlocking password to realize the unlocking function.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.

FIG. 1 is a schematic structural diagram of a knob type electronic combination lock according to an embodiment of the present invention;

FIG. 2 is a schematic structural diagram of a cipher disk according to an embodiment of the present invention;

FIG. 3 is a flowchart of a password locating method according to an embodiment of the present invention;

FIG. 4 is another flowchart of a password locating method according to an embodiment of the present invention;

FIG. 5 is a flow chart of an unlocking method of an embodiment of the present invention;

FIG. 6 is a schematic structural diagram of a password pointing device according to an embodiment of the present invention;

FIG. 7 is a schematic view of another structure of a password pointing device according to an embodiment of the present invention;

FIG. 8 is a schematic structural diagram of an unlocking device according to an embodiment of the present invention;

fig. 9 is a schematic structural diagram of a controller of a knob type electronic combination lock according to an embodiment of the invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The technical features mentioned in the different embodiments of the invention described below can be combined with each other as long as they do not conflict with each other.

The electronic coded lock using the single knob for inputting the code is key to determine the code corresponding to the current knob position. In the related art, the current absolute position of the knob is located to determine the corresponding password input, such as: when the knob is rotated to a certain password position, the processor determines the absolute position of the current knob after the knob needs to stay for a certain time so as to determine the input password, and the detection circuit is always in a conducting state during the stay of the knob, so that the power consumption is very high.

Based on the above problem, an embodiment of the present invention provides a knob type electronic combination lock, as shown in fig. 1, the knob type electronic combination lock provided by the embodiment of the present invention includes: the device comprises a conductive piece 1 and a password disk 2, wherein the conductive piece 1 can rotate relative to the password disk 2; the password disk 2 is provided with a plurality of contact groups 21 at intervals along a rotating path of the conductive piece 1 rotating relative to the password disk 2, each contact group 21 comprises two contacts 211, and the two contacts 211 are sequentially arranged along the rotating path; the conductive member 1 may be coupled to the contact 211 to be electrically connected when rotating. It should be noted that, in the embodiment of the present invention, an example that one contact set 21 includes two contacts 211 is taken as an example for description, in practical applications, one contact set 21 may be composed of 3 or more than 3 contacts 211, and the specific number may be flexibly set according to actual needs, which is not limited to this.

Specifically, as shown in fig. 1, in the embodiment of the present invention, the contact sets 21 are uniformly arranged at fixed intervals to form a circle, and the password disk 2 is also described by taking a circular structure as an example, the contact sets are uniformly arranged to facilitate the judgment of password input, and the circle is designed to reduce the conductive area of the conductive member 1 and ensure the accuracy of the contact between the conductive member 1 and the contact 211 during the rotation process. In practical applications, the intervals and positions between the contact groups 21 on the combination disks 2 may also be set at will, as long as it can be ensured that the conductive members 1 can sequentially contact all the contacts 211 to achieve contact conduction in the rotating process, and the shapes of the combination disks 2 may also be set to other shapes, such as a ring shape, and the invention is not limited in sequence.

Specifically, in an embodiment, the contact 211 includes: the first contact piece is arranged above the second contact piece, the key elastic piece is arranged above the conductive electrode, and the conductive piece can press the first contact piece of the key elastic piece when rotating so as to enable the first contact piece of the key elastic piece to be in contact with the conductive electrode of the second contact piece.

For example, the first contact member is a key dome, the second contact member is a conductive electrode, the key dome is disposed above the conductive electrode, and the conductive member 1 can press the key dome when rotating, so that the key dome contacts the conductive electrode. For example, the conductive member 1 is an electric brush, when the electric brush and the password pad 2 rotate relatively, the electric brush presses the button spring, so that the button spring contacts with the corresponding conductive electrode, and the circuit where the conductive electrode is located is turned on, and after the electric brush leaves the button spring, the button spring resets, and the circuit where the corresponding conductive electrode is located is turned off. Thus, by encoding the contacts 211 of each contact set 21 in advance, the absolute position of the brushes can be determined by the conduction signal generated when the brushes contact the contacts 211, thereby determining the password input. And provides good reliability for the knob type electronic coded lock by utilizing the button elastic sheet.

It should be noted that the first contact and the second contact may also be a combination of a spring plate and a spring ball, as long as the contact can be conducted, and the conductive element may also be a carbon brush, the contact is a circuit board contact, or the conductive element is a reed pipe, the contact is a combination of a magnet, and the like, which is not limited in the present invention.

Specifically, in an embodiment, the gap between two adjacent contact sets 21 is a positioning identification bit, and one or more positioning identification bits of all the positioning identification bits are password input identification bits. And the rest positioning identification positions are empty positions. The knob type electronic combination lock further comprises: and the controller is connected with the contact 211 and is used for receiving the conducting signal of the contact group 21 and controlling the working state of the knob type electronic coded lock according to the conducting signal. The knob type electronic combination lock further comprises an electronic lock actuating mechanism, and the controller is connected with the electronic actuating mechanism and controls the electronic lock actuating mechanism to unlock or lock by processing the conducting signal. The electronic lock actuating mechanism can adopt a locking structure of an electronic lock in the prior art, and is not described in detail herein.

Specifically, in the embodiment of the present invention, the controller is integrated on the combination disk 2, so as to further reduce the volume of the combination lock, and the controller may be, for example, a device with a signal processing function, such as a microprocessor or an FPGA, which is not limited to this. The specific operation of the above controller is referred to in the following description of the method embodiment, and will not be described in detail here.

Specifically, in an embodiment, the above-mentioned knob type electronic combination lock further includes: the knob shell is fixedly connected with the conductive piece 1 or the password disk 2. When the knob shell is fixedly connected with the conductive piece 1, the conductive piece 1 is contacted with the contact 211 on the password disk 2 along with the rotation of the knob shell, so that a circuit corresponding to the contact 211 is conducted, and a conducting signal is correspondingly generated; when the knob shell is fixedly connected with the password disk 2, the password disk 2 rotates along with the knob shell, and when the contact 211 on the password disk 2 contacts with the conductive piece 1 at the fixed position, the circuit corresponding to the contact 211 is conducted, and a conducting signal is correspondingly generated. By coding all contacts 211 on the combination disk 2, a precise positioning of the rotary position of the rotary knob can be achieved.

Illustratively, when the knob housing is fixedly connected with the conductive member 1, a knob identifier is provided at a position on the outer surface of the knob housing corresponding to the conductive member 1, and a corresponding password value is correspondingly provided at a gap between two adjacent contact sets 21 on the password disk 2, when a user rotates the knob to make the corresponding knob identifier on the knob housing align with a certain password value, and the user stays for a certain time, the input of the password value can be completed.

The working principle and the engineering process of the knob type electronic combination lock provided by the embodiment of the invention will be described in detail with reference to specific application examples.

Taking the cipher disk shown in fig. 2 as an example, the positioning positions 11 are located at the circumferential edge of the cipher disk and are uniformly distributed; a plurality of electrodes are distributed in the middle of the adjacent positioning positions 11, each pair of electrodes forms a contact 211, and at least 2 contacts 211 exist between the adjacent positioning positions 11; the positioning position 11 can be used as an input position 13 of a knob code or an empty position 14 which is not defined; when the knob rotates, the contact 211 in the gap of the positioning position 11 is conducted, so that the information of the rotation of the knob is obtained; the contact 211 can be coded, and the information of the rotation direction and the position of the knob can be obtained through the coding of the contact 211 and the coding sequence; the knob stays on the positioning position 11 for a certain time or triggers other contacts 211, so that the knob can be used as the input of a password bit; the input of continuous passwords is formed by rotating and stopping the knob for a plurality of times, and an input password string is formed.

When the knob type electronic coded lock is in a working state, namely a user inputs a password, the rotation time of the knob is far shorter than the password input confirmation time, namely the contact group conduction time is far shorter than the time that the knob stays at the gap between two adjacent contact groups to input the password for confirmation, so that the working power consumption of the knob type electronic coded lock is reduced. And when the knob type electronic coded lock is in a non-working state, all the contacts on the coded disk are not conducted at the moment by stopping the knob at the positioning identification position, namely the gap between two adjacent contact groups, so that the power consumption of the knob type electronic coded lock is further reduced.

Through the cooperation of the above parts, the knob type electronic coded lock provided by the embodiment of the invention realizes the identification of the absolute position of the knob according to the conduction sequence of the contacts by using the gap between the contact groups as the code input bit and coding the contacts in the contact groups, so that the power consumption of the coded lock can be greatly reduced when the knob stays in the gap between the contact groups during the code input, and the coded lock has the characteristics of low cost and small volume.

The embodiment of the present invention further provides a password positioning method, which is applied to a controller in a knob type electronic password lock provided by another embodiment of the present invention, as shown in fig. 3, the password positioning method includes:

step S101: the conduction signals of the contact sets are monitored.

Specifically, when a conductive piece of a knob type electronic coded lock is contacted with a certain contact in the rotating process of a knob, a circuit where the contact is located is conducted, and then a conducting signal, namely a high-level signal, is received to a controller connected with the conductive piece.

Step S102: and starting timing after all contacts of the current contact group are sequentially switched from on to off, and stopping timing when the timing time reaches a first preset time or the contact conduction of the adjacent contact group is monitored.

Specifically, in the process of rotating a knob of the knob type electronic coded lock, contacts in two adjacent groups of contact groups are sequentially switched on and then switched off, so that when all contacts of one contact group are switched on and switched off and then switched on until a contact of the next contact group is switched on, the time that the conductive piece, namely the knob mark, stays in a gap between the two groups of contact groups is the time that the knob mark stays in the gap. The first preset duration is

Step S103: and judging whether the timing time length reaches a second preset time length.

And the second preset time length is less than or equal to the first preset time length. Specifically, the second preset time period is preset time for indicating the password input by the user, and when the time that the conductive piece, i.e. the knob mark, stays in the gap between the two contact sets exceeds the time, the user is considered to perform a password input operation. For example, the second preset time period is 3s, and the first preset time period is 4s, which is only taken as an example and not limited thereto.

Step S104: and when the timing duration reaches a second preset duration, determining the current input password based on the current conducting sequence of each contact in the current contact group and the corresponding relation between the preset conducting sequence of the current contact group and the password.

Specifically, the corresponding relationship between the preset conduction sequence of each contact group and the password is set in advance according to the input requirement of the coded lock, assuming that the current contact group is composed of a contact a and a contact B, a gap between one side close to the contact a and the adjacent contact is a first password input position, the corresponding preset input password is a, a gap between one side close to the contact B and the adjacent contact is a second password input position, the corresponding preset input password is B, if the current conduction sequence is from a to B, the stop position of the knob operated by the user is the second password input position, the corresponding input password is determined to be B, otherwise, if the current conduction sequence is from B to a, the stop position of the knob operated by the user is the first password input position, and the corresponding input password is determined to be a. Therefore, the rotation information of the knob is determined according to the conducting sequence of each contact in the contact group, and the positioning of the input password is further realized.

By executing the steps, the password positioning method provided by the embodiment of the invention realizes the accurate positioning of the input password by monitoring the conduction interval time between the adjacent contact groups as the positioning identification of the knob and then determining the input password by utilizing the conduction sequence of the contacts, and the power consumption of the password lock can be greatly reduced by utilizing the clearance between the contact groups as the password input bit identification when the password is input and the knob stays in the clearance between the contact groups.

The embodiment of the present invention further provides a password positioning method, which is applied to a controller in a knob type electronic password lock provided by another embodiment of the present invention, as shown in fig. 4, the password positioning method includes:

step S11: the turn-on signals of each contact set are monitored and the direction of rotation is determined based on the turn-on signals of the current contact set.

Specifically, when a conductive piece of a knob type electronic coded lock is contacted with a certain contact in the rotating process of a knob, a circuit where the contact is located is conducted, and then a conducting signal, namely a high-level signal, is received to a controller connected with the conductive piece. Since each contact set includes two contacts, the rotation direction can be determined by the conduction order of the two contacts, such as: the contact numbers of the contact group are 11 and 12, if the conduction sequence is 11 and 12, the rotation direction is clockwise rotation, otherwise, the rotation direction is counterclockwise rotation.

Step S12: and judging whether the current rotating direction is opposite to the previous rotating direction.

Step S13: and when the current rotation direction is opposite to the previous rotation direction and the previous rotation direction is a first preset direction, determining the current input password based on the current conduction sequence of each contact in the current contact group and the corresponding relation between the preset conduction sequence of the current contact group and the password.

Specifically, the first preset direction may be set to be a clockwise direction or an anticlockwise direction as required, for example, taking the first preset direction as the clockwise direction, when the user operates the knob to move clockwise to a certain position, and then rotates counterclockwise, the direction change point is determined as the password input position, and the input password may be determined according to the contact conduction sequence of the current contact group at the password input position.

The corresponding relation between the preset conduction sequence of each contact group and the password is set in advance according to the input requirement of the coded lock, the current contact group is assumed to be composed of a contact A and a contact B, a gap between one side close to the contact A and the adjacent contact is a first password input position, the corresponding preset input password is a, a gap between one side close to the contact B and the adjacent contact is a second password input position, the corresponding preset input password is B, if the current conduction sequence is from A to B, the stop position of the knob operated by the user is the second password input position, the corresponding input password is determined to be B, otherwise, if the current conduction sequence is from B to A, the stop position of the knob operated by the user is the first password input position, and the corresponding input password is determined to be a. Therefore, the rotation information of the knob is determined according to the conducting sequence of each contact in the contact group, and the positioning of the input password is further realized.

By executing the steps, the password positioning method provided by the embodiment of the invention determines the rotation direction by monitoring the conduction signal of the current contact group, utilizes the change of the rotation direction as the knob positioning identification, then utilizes the contact conduction sequence to determine the input password, realizes the accurate positioning of the input password, and utilizes the gap between the contact groups as the password input bit identification, and when the password is input, the knob stays in the gap between the contact groups, thus greatly reducing the power consumption of the password lock.

An embodiment of the present invention provides an unlocking method, which is applied to a controller of a knob type electronic coded lock provided in another embodiment of the present invention, and as shown in fig. 5, the unlocking method includes:

step S201: and acquiring a preset unlocking password.

The preset unlocking password is a password which is preset by a user and used for unlocking the knob type electronic password lock, and the specific set digit of the password can be set according to requirements, such as 4 digits, 6 digits and the like, but the invention is not limited thereto.

Step S202: the password positioning method provided by the other embodiment of the invention is adopted to sequentially determine the input passwords to form the input password string.

Specifically, the process of sequentially determining the input password by the password positioning method is described in detail in the above embodiments, and is not described herein again.

Step S203: and when the digit of the input password string reaches the digit of the preset unlocking password, judging whether the input password string is completely consistent with the preset unlocking password.

Step S204: and when the input password string is completely consistent with the preset unlocking password, the knob type electronic password lock is controlled to unlock.

Specifically, if the controller identifies that the digit number of the password string reaches the digit number of the preset unlocking password, the user is indicated to finish password input through the knob, whether the password input by the user is correct or not is judged by comparing whether the password corresponding to the corresponding position of the identified password string and the preset unlocking password is the same or not, if the password input by the user is completely consistent with the preset unlocking password, the knob type electronic password lock is controlled to unlock, otherwise, the user is prompted to input a wrong password, the identified password is cleared, and the user rotates the knob again to identify the input password again.

Specifically, when the clearance between two arbitrary adjacent contact groups is not the password input identification bit, can regard this clearance as the sign bit that resets of knob formula electronic trick lock, at the in-process of user input password string, if the knob stops when the clearance exceeds foretell second preset duration, clear away the password of inputing before, the discernment of inputing the password again, thereby when the user finds the input error, can carry out artifical the reset, and carry out password input again, avoid because the extravagant password input number of times of password input error, provide convenience for the user, improve user experience.

By executing the steps, the unlocking method provided by the embodiment of the invention obtains the password input by the user by using the password positioning method provided by the other embodiment of the invention, and compares the password input with the preset unlocking password to realize the unlocking function.

The embodiment of the present invention further provides a password positioning device, which is applied to a controller of a knob type electronic password lock provided by another embodiment of the present invention, as shown in fig. 6, the password positioning device includes:

the monitoring module 101 is configured to monitor the conducting signals of each contact group, and for details, refer to the related description of step S101 in the foregoing method embodiment, which is not described herein again.

The first processing module 102 is configured to start timing after all contacts of a current contact group are sequentially switched from on to off, and stop timing when a timing duration reaches a first preset duration or when it is monitored that contacts of an adjacent contact group are on. For details, refer to the related description of step S102 in the above method embodiment, and no further description is provided here.

The second processing module 103 is configured to determine whether the timing duration reaches a second preset duration, where the second preset duration is less than or equal to the first preset duration. For details, refer to the related description of step S103 in the above method embodiment, and no further description is provided here.

And the third processing module 104 is configured to determine, when the timing duration reaches a second preset duration, a current input password based on a current conduction sequence of each contact in the current contact group and a correspondence between a preset conduction sequence of the current contact group and the password. For details, refer to the related description of step S104 in the above method embodiment, and no further description is provided here.

The password positioning apparatus provided in the embodiment of the present invention is configured to execute the password positioning method provided in the above embodiment, and the implementation manner and the principle thereof are the same, and the details refer to the related description of the above method embodiment and are not repeated.

Through the cooperative cooperation of the components, the password positioning device provided by the embodiment of the invention realizes the accurate positioning of the input password by monitoring the conduction interval time between the adjacent contact groups as the positioning identifier of the knob and then determining the input password by utilizing the conduction sequence of the contacts, and the power consumption of the password lock can be greatly reduced by utilizing the clearance of the knob staying in the contact group as the password input bit identifier when the password is input and by utilizing the clearance between the contact groups as the password input bit identifier.

The embodiment of the present invention further provides a password positioning device, which is applied to a controller of a knob type electronic password lock provided by another embodiment of the present invention, as shown in fig. 7, the password positioning device includes:

and the second monitoring module 11 is configured to monitor the conduction signals of the contact sets, and determine the rotation direction based on the conduction signals of the current contact set. For details, refer to the related description of step S11 in the above method embodiment, and no further description is provided here.

And a judging module 12, configured to judge whether the current rotation direction is opposite to the previous rotation direction. For details, refer to the related description of step S12 in the above method embodiment, and no further description is provided here.

And the password positioning module 13 is configured to determine a current input password based on a current conducting sequence of each contact in the current contact group and a corresponding relationship between a preset conducting sequence of the current contact group and the password when the current rotation direction is opposite to the previous rotation direction and the previous rotation direction is a first preset direction. For details, refer to the related description of step S13 in the above method embodiment, and no further description is provided here.

The password positioning apparatus provided in the embodiment of the present invention is configured to execute the password positioning method provided in the above embodiment, and the implementation manner and the principle thereof are the same, and the details refer to the related description of the above method embodiment and are not repeated.

Through the cooperative cooperation of the above components, the password positioning device provided by the embodiment of the invention determines the rotation direction by monitoring the conduction signal of the current contact group, and uses the change of the rotation direction as the knob positioning identifier, and then determines the input password by using the contact conduction sequence, so that the accurate positioning of the input password is realized, and the gap between the contact groups is used as the password input bit identifier, and when the password is input, the knob stays in the gap between the contact groups, so that the power consumption of the password lock can be greatly reduced.

An embodiment of the present invention further provides an unlocking device, which is applied to a controller of a knob type electronic combination lock according to another embodiment of the present invention, as shown in fig. 8, the unlocking device includes:

the obtaining module 201 is configured to obtain a preset unlocking password. For details, refer to the related description of step S201 in the above method embodiment, and no further description is provided here.

The fourth processing module 202 is configured to determine the input passwords in sequence by using the password locating apparatus provided in another embodiment of the present invention, so as to form an input password string. For details, refer to the related description of step S202 in the above method embodiment, and no further description is provided herein.

The fifth processing module 203 is configured to determine whether the input password string is completely consistent with the preset unlocking password when the number of bits of the input password string reaches the number of bits of the preset unlocking password. For details, refer to the related description of step S203 in the above method embodiment, and no further description is provided here.

And the sixth processing module 204 is configured to control the knob type electronic combination lock to unlock when the input combination string is completely consistent with the preset unlocking combination. For details, refer to the related description of step S204 in the above method embodiment, and no further description is provided herein.

The unlocking device provided by the embodiment of the invention is used for executing the unlocking method provided by the embodiment, the implementation manner and the principle are the same, and the detailed content refers to the relevant description of the embodiment of the method and is not repeated.

Through the cooperative cooperation of the components, the unlocking device provided by the embodiment of the invention realizes the accurate positioning of the input password by monitoring the conduction interval time between the adjacent contact groups as the positioning identifier of the knob and then determining the input password by utilizing the conduction sequence of the contacts, and the power consumption of the coded lock can be greatly reduced by utilizing the clearance of the knob staying in the contact group as the password input bit identifier when the password is input and by utilizing the clearance between the contact groups as the password input bit identifier.

As shown in fig. 9, the controller in the knob type electronic combination lock according to the embodiment of the present invention includes: a processor 901 and a memory 902, wherein the processor 901 and the memory 902 may be connected by a bus or by other means, and fig. 9 illustrates an example of a connection by a bus.

Processor 901 may be a Central Processing Unit (CPU). The Processor 901 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.

The memory 902, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the methods in the above-described method embodiments. The processor 901 executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory 902, that is, implements the methods in the above-described method embodiments.

The memory 902 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 901, and the like. Further, the memory 902 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 902 may optionally include memory located remotely from the processor 901, which may be connected to the processor 901 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.

One or more modules are stored in the memory 902, which when executed by the processor 901 performs the methods in the above-described method embodiments.

The specific details of the controller may be understood by referring to the corresponding related descriptions and effects in the above method embodiments, and are not described herein again.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, and the implemented program can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.

Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:自锁的锁

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!