Magnetic coding key, anti-theft system and decoding method
Through the combination of magnetic coded keys and anti-theft system, the encoding comparison between keys and locks is achieved using magnetic induction components and stepper motors, solving the problem between locks between safety and convenience, and achieving high security and convenient lock unlocking function.
Patent Information
- Application Number
- CN202411886820.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-20
- Publication Date
- 2025-05-09
AI Technical Summary
Existing locks are difficult to take into account both safety and convenience, especially in wet and sun-exposed environments, and there is a risk of leakage of passwords and fingerprint information, which affects security.
A magnetic encoding key is adopted, and a magnetic area of different polarities is encoded through an encryption unit. Combined with an annular magnet and a non-ferromagnetic material shell, an anti-theft system and decoding method are designed, and a magnetic induction element and a stepper motor are used to realize the encoding comparison and unlocking of the key and lock.
It greatly improves the safety and convenience of the lock, is difficult to replicate and is suitable for occasions with high security requirements, and improves the overall safety performance of the lock.
Smart Images

Figure CN119964275A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of locks, and in particular to a magnetically coded key, an anti-theft system and a decoding method. Background Art
[0002] Locks are indispensable in daily life. Whether it is personal, commercial, industrial or other applications, there are very wide and rigid use requirements. The reliability of locks is related to the safety of related facilities. Therefore, choosing locks with higher reliability and higher security level is undoubtedly of great significance to users. In the field of electricity technology, the box for storing electricity meters is related to the safety of electricity and information. The previous simple mechanical locks have low security and are prone to rust in some special environments such as humid and exposed environments. At the same time, they lack the convenience of opening and closing.
[0003] Electronic locks are now widely used in various occasions. Their functions are mainly to lock and unlock by setting limited passwords, setting fingerprint comparisons, and retaining traditional key mechanical unlocking structures. They generally integrate basic electronic circuits such as single-chip microcomputers and motor drive circuits to achieve their functions. They have good reliability and safety. Applying them to electricity meter boxes can greatly increase their convenience and safety. This type of lock is quite easy to unlock and lock, but at the same time, due to the risk of leakage of passwords, fingerprint information, etc., the security of the lock will be affected, and in some cases it cannot even be guaranteed. For this reason, we propose a magnetically coded key, an anti-theft system, and a decoding method. Summary of the invention
[0004] In view of the above problems, a magnetically encoded key in the present invention is proposed.
[0005] To solve the above technical problems, the present invention provides the following technical solutions: a magnetically encoded key, which particularly includes an encryption unit, wherein the encryption unit includes at least one magnet, and the magnet is composed of a plurality of magnetic regions with different polarities; and the magnetic regions on the magnet and a single magnet are arranged.
[0006] As a preferred solution of the magnetically coded key of the present invention, magnetic regions of different polarities are encoded, wherein the encoding method includes but is not limited to binary encoding, ASCALL code or further converting the binary encoding into hexadecimal encoding.
[0007] As a preferred solution of the magnetically coded key of the present invention, the magnetic regions of different polarities are encoded by binary coding, and one of the magnetic regions of the same polarity is selected and labeled as , and another magnetic region of the same polarity is selected and labeled as .
[0008] As a preferred solution of the magnetically encoded key of the present invention, the magnet is arranged in a ring shape, a plurality of ring magnets are nested with each other, and the ring magnets are axially magnetized.
[0009] As a preferred solution of the magnetically encoded key of the present invention, the shell wrapped around the outside of the encryption unit is made of non-ferromagnetic material.
[0010] As a preferred solution of the magnetically coded key of the present invention, the outer wall of the shell is provided with a locking area, and the shell is provided with a portable hole.
[0011] In view of the above problems, an anti-theft system in the present invention is proposed.
[0012] To solve the above technical problems, the present invention provides the following technical solutions: an anti-theft system, comprising a magnetically coded key and a lock, wherein the lock is provided with a positioning area which is engaged with the card position area; and a decryption unit located on the lock, wherein the decryption unit comprises a code input module, wherein the code input module is connected to a verification code matching module; the verification code matching module is connected to a stepper motor control module, wherein the stepper motor control module is connected to control the lock; and, a code comparison between the key and the lock is performed through the verification code matching module. If the comparison is consistent, the stepper motor is driven by the stepper motor control module to control the lock to be unlocked.
[0013] As a preferred solution of the anti-theft system described in the present invention, the coding input module includes a magnetic induction element and a signal conditioning circuit; the magnetic induction element corresponds to the size and magnetic pole position of the magnetic coded key, and the magnetic induction element includes but is not limited to a Hall element or a magnetoresistive element; the signal conditioning circuit is connected to the magnetic induction element, and the signal conditioning circuit can process the signal output by the magnetic induction element into a digital signal or a TTL level signal, and then compare the code through the verification coding matching module.
[0014] As a preferred solution of the anti-theft system of the present invention, the magnetic induction element is welded on the circuit board, a plurality of magnetic induction units are integrated in the magnetic induction element, and each magnetic induction unit is arranged in one-to-one correspondence with the magnetic pole position of each magnetic coded key.
[0015] In view of the above problems, a decoding method in the present invention is proposed.
[0016] To solve the above technical problems, the present invention provides the following technical solutions: a decoding method, which includes a magnetically coded key, and also includes: by inserting the magnetically coded key into a key slot, the coding input module inputs a signal to a verification code matching module, and the verification code matching module performs a coding comparison between the key and the lock. If the comparison is consistent, the stepper motor is driven by the stepper motor control module to complete the unlocking of the lock.
[0017] The beneficial effects of the present invention are as follows: based on the magnetic coded key, it is possible to greatly improve the security of the traditional electronic password lock while maintaining the advantage of convenient unlocking; and it has a simple structure, low processing difficulty, and is difficult to copy. It can be used in some occasions with higher security requirements, such as bank vaults, corporate servers, etc. It can also be used in general occasions by reducing the number of magnetic rings and magnetic poles, greatly improving the safety performance of the lock, and is suitable for meter boxes, computer chassis, server information rooms and other general application occasions. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. Among them:
[0019] Figure 1 This is a schematic diagram of the multi-ring magnet before encoding in the present invention.
[0020] Figure 2 This is a schematic diagram of the multi-ring magnet after encoding in the present invention.
[0021] Figure 3 It is a schematic diagram of the shell connection structure in the present invention.
[0022] Figure 4 It is a side view of the shell connection structure in the present invention.
[0023] Figure 5 It is a schematic diagram of the connection structure of the decryption unit in the present invention.
[0024] Figure 6 It is a schematic diagram of the connection structure of the magnetic induction unit in the present invention. DETAILED DESCRIPTION
[0025] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the accompanying drawings.
[0026] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0027] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0028] Secondly, the present invention is described in detail with reference to the schematic diagram. When describing the embodiments of the present invention in detail, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0029] Example 1
[0030] Reference Figure 1-2 , which is the first embodiment of the present invention, and provides a magnetically encoded key, an encryption unit 100, the encryption unit 100 includes at least one magnet 101, and the magnet 101 is composed of a plurality of magnetic regions 101a with different polarities; and the magnet 101 and the magnetic regions 101a on the single magnet 101 are arranged.
[0031] The number, shape and size of the magnets 101 can be adjusted according to security requirements, such as Figure 1 It is shown that a plurality of annular magnets 101 are nested with each other, but it is not excluded that a completely different decoding process can be achieved by changing the size of the magnet 101, such as the radius or diameter of the sector magnet 101. Therefore, the codes between the password magnetic grids of different sizes are also independent of each other, which better ensures the uniqueness of the code.
[0032] It is additionally noted that the magnet 101 is divided into a plurality of regions with different magnetic poles, namely, magnetic regions 101a, such as Figure 2 As shown, the magnet 101 can be considered to be composed of many independent magnetic regions 101a. The magnetic regions 101a can be separated and bonded into a whole ring or other set shapes. The magnet 101 can also be integrated and directly use a specific magnetizing fixture to construct different magnetic poles thereon through the magnetizing process.
[0033] The magnets 101 and the magnetic regions 101a on a single magnet 101 can be arranged, that is, the shape, number and size of the magnets 101 can be adjusted according to needs, and the combination order of the magnetic regions 101a on each magnet 101a can also be adjusted. This method can increase the security of the magnetically coded key and make it difficult to copy.
[0034] In summary, by arranging the magnets 101 and the magnetic regions 101a on the single magnet 101 through the encryption unit 100, the security of the encryption unit 100 can be increased, making it difficult to replicate and easy to process.
[0035] Example 2
[0036] Reference Figure 1 to Figure 6 , which is the second embodiment of the present invention. This embodiment is based on the previous embodiment, but differs in that the magnetic regions 101a of different polarities are encoded, wherein the encoding method includes but is not limited to binary encoding, ASCALL code or further converting the binary encoding into hexadecimal encoding.
[0037] For a magnet composed of a pair of magnetic poles, there are N poles and S poles on the top. The N pole is marked as 1 in the positive direction and the S pole is marked as 0. It is represented by binary code and collected by magnetic sensors. By combining the magnetic poles, a new coding method can be constructed, which can be used as a password for electronic locks.
[0038] Preferably, the magnetic regions 101 a of different polarities are encoded in a binary encoding manner, and one of the magnetic regions 101 a of the same polarity is selected and marked as 0, and another magnetic region 101 a of the same polarity is selected and marked as 1.
[0039] It is further explained that in addition to using 01 code, the encoding and decoding method can also use other types of coding forms such as ASCALL code to convert binary code into hexadecimal code for further internal encoding. Improving the form and type of coding can also generate more code numbers and expand its range.
[0040] Preferably, the magnet 101 is arranged in an annular shape, and a plurality of annular magnets 101 are nested with each other, and the annular magnets 101 are axially magnetized.
[0041] The magnetic rings all adopt the axial magnetization method, that is, NS magnetic poles can be constructed on the upper and lower surfaces of the magnet 101.
[0042] Preferably, the shell 200 wrapped around the encryption unit 100 is made of non-ferromagnetic material.
[0043] By magnetizing the magnetic grid, the polarity of the magnetic pole at the corresponding position can be selected, and then the corresponding binary code can be compiled; Figure 2The figure shows the magnetization of the magnetic ring. Different colors represent different magnetic poles, and they can be selected arbitrarily. After the magnetization is completed, the magnetic coded key can theoretically achieve 2 X The number of different codes, X is the number of poles. If the planned poles are as many as 90, the number of codes that can be realized is 1,237,940,039,285,380,274,899,124,224. You can choose any different code without worrying about duplication.
[0044] In one solution of this embodiment, the magnetically encoded key is composed of a plurality of annular magnets 101 nested with each other and a central magnet 101 located in the middle, such as Figure 2 The central magnet 101 also needs to be magnetized, and the magnetization direction is not limited. It can be used for magnetic field awakening of the lock. That is, once the lock recognizes the magnetic field of the central magnet 101, it immediately wakes up the electronic lock from the low power consumption mode and identifies the magnetic field of the magnetic pole at the corresponding position.
[0045] The shell of the magnetically encoded key, that is, the housing 200 is made of non-ferromagnetic materials such as plastic, copper, and aluminum, and is embedded with multiple annular magnets 101. The magnetic ring material can use common magnetic materials such as bonded neodymium iron boron, bonded aluminum nickel cobalt, ferrite materials, etc.
[0046] Preferably, a locking area 201 is provided on the outer wall of the shell 200 , and a portable hole 202 is provided on the shell 200 .
[0047] By setting the locking area 201, the locking area 201 can be a groove or a protrusion set on the shell, but can be of any shape. Through shape design, not only the safety is increased from a mechanical level, but also the absolute position can be limited to be inserted into the key slot, so that the corresponding magnetic field polarity information can be displayed at the corresponding position.
[0048] The design of the portable hole 202 takes into account the convenience of daily carrying; and to magnetize the manufactured magnetic coded key, a specific magnetizing fixture is required to set the corresponding parameters and current direction, so it is quite difficult to copy the magnetic coded key. This difficulty in copying is equivalent to improving the safety performance of the electronic lock.
[0049] Example 3
[0050] Reference Figure 1 to Figure 6 , which is the third embodiment of the present invention, is based on the previous embodiment, but differs in that this embodiment proposes an anti-theft system.
[0051] Specifically, the lock is provided with a positioning area that is embedded with the locking area 201; and a decryption unit 300 is located on the lock, the decryption unit 300 includes a code input module 301, and the code input module 301 is connected to a verification code matching module 302; the verification code matching module 302 is connected to a stepper motor control module 303, and the stepper motor control module 303 is connected to control the lock; and, the code of the key and the lock is compared through the verification code matching module 302. If the comparison is consistent, the stepper motor is driven by the stepper motor control module 303 to control the lock to be unlocked.
[0052] By aligning the locking area 201 on the magnetically encoded key with the positioning area on the lock and embedding it, the magnetically encoded key is matched with the lock in the correct position, so that the information of the polarity of the relevant magnetic area 101a can be matched.
[0053] Preferably, the encoding input module 301 includes a magnetic sensing element 301a and a signal conditioning circuit 301b; the magnetic sensing element 301a corresponds to the size and magnetic pole position of the magnetic coded key, and the magnetic sensing element 301a includes but is not limited to a Hall element or a magnetoresistive element; the signal conditioning circuit 301b is connected to the magnetic sensing element 301a, and the signal conditioning circuit 301b can process the signal output by the magnetic sensing element 301a into a digital signal or a TTL level signal, and then compare the code through the verification code matching module 302.
[0054] According to the size and magnetic pole position of the corresponding magnetic coded key, a corresponding magnetic sensing element 301a is set, which can be a Hall element, a magnetoresistive element or other magnetic sensing element; the magnetic sensing element is welded on the circuit board, and each magnetic pole position of the magnetic coded key needs to correspond to a magnetic sensing unit 301a-1 (multiple units may be integrated in one element), such as Figure 6 , the position of the magnetic induction element 301a corresponds one to one Figure 2 The yellow-green block in the middle serves as the code input module 301 of the magnetically coded electronic lock; the code input module also inherits the signal conditioning circuit 301b, which connects a large number of magnetic sensing elements 301a and processes the signals output by the magnetic sensing elements 301a into digital signals or TTL level signals, so as to facilitate the use of the code comparison circuit.
[0055] Preferably, the magnetic sensing element 301a is welded on a circuit board, and a plurality of magnetic sensing units 301a-1 are integrated in the magnetic sensing element 301a, and each magnetic sensing unit 301a-1 is arranged in one-to-one correspondence with the magnetic pole position of each magnetic coded key.
[0056] The overall anti-theft system consists of a magnetically coded key, magnetic sensor hardware, signal conditioning hardware, code matching verification hardware, a stepper motor, and a mechanical lock. The implementation process is to first insert the magnetically coded key into the key slot, and the magnetic sensor corresponding to the magnetic pole position can then identify the polarity of the magnetic pole at the corresponding position, and convert it into the corresponding binary code through the signal conditioning circuit, and then compare the code with the lock body. If the comparison is consistent, the unlocking action is performed, that is, the stepper motor is driven to unlock the mechanical / electromagnetic lock.
[0057] In actual use, by installing the magnetic coded key in the key slot, the magnetic pole on the magnetic coded key passes through the shell 200 material that will not affect the magnetic field, and exerts its own magnetic field on the magnetic sensing element 301a; after the central magnetic field element senses that the magnetic field strength value is greater than a certain range, the signal conditioning circuit 301b activates the coding matching circuit, and the coding matching circuit reads the magnetic field information on many sensing elements, and compares the converted binary code with the internally stored code, and then verifies whether to perform the unlocking operation.
[0058] The magnetic sensing unit 301a-1 may be a Hall sensor, a magnetoresistive sensor or other magnetic sensors.
[0059] Based on the above content, combined with the basic stepper motor drive circuit and the traditional mechanical lock, a complete magnetically encoded electronic lock can be formed.
[0060] In summary, by constructing a code based on the magnetic polarity on the static magnetostatic grid to serve as a password, the magnetic induction unit 301a-1 is used to identify the polarity to achieve decoding; and then the consistency of the code is compared as an unlocking condition, thereby realizing a complete electronic lock function, replacing digital passwords, mechanical keys and fingerprint unlocking.
[0061] Example 4
[0062] Reference Figure 1 to Figure 6 , which is the fourth embodiment of the present invention. This embodiment is based on the previous embodiment, but the difference is that this embodiment proposes a decoding method. By inserting the magnetic coded key into the key slot, the code input module 301 inputs the signal to the verification code matching module 302, and the verification code matching module 302 performs a code comparison between the key and the lock. If the comparison is consistent, the stepper motor is driven by the stepper motor control module 303 to complete the unlocking of the lock.
[0063] Importantly, it should be noted that the construction and arrangement of the present application shown in a plurality of different exemplary embodiments are only exemplary. Although only a few embodiments are described in detail in this disclosure, it should be readily understood by those who refer to this disclosure that many modifications are possible (e.g., the size, scale, structure, shape and proportion of various elements, and parameter values (e.g., temperature, pressure, etc.), installation arrangement, use of materials, color, directional changes, etc.) without substantially departing from the novel teachings and advantages of the subject matter described in the application. For example, the element shown as integrally formed can be composed of multiple parts or elements, the position of the element can be inverted or otherwise changed, and the nature or number or position of the discrete element can be changed or changed. Therefore, all such modifications are intended to be included in the scope of the present invention. The order or sequence of any process or method steps can be changed or reordered according to alternative embodiments. In the claims, any "device plus function" clause is intended to cover the structure of performing the function described herein, and is not only structurally equivalent but also equivalent structure. Without departing from the scope of the present invention, other replacements, modifications, changes and omissions can be made in the design, operating conditions and arrangement of the exemplary embodiments. Therefore, the invention is not limited to a specific embodiment, but extends to numerous modifications still falling within the scope of the appended claims.
[0064] Additionally, in order to provide a concise description of exemplary embodiments, all features of an actual embodiment (ie, those features that are not relevant to the best mode presently contemplated for carrying out the invention or those that are not relevant to implementing the invention) may not be described.
[0065] It will be appreciated that in the development of any actual implementation, as in any engineering or design project, numerous implementation-specific decisions may be made. Such a development effort may be complex and time-consuming, but will be a routine task of design, fabrication, and production for those of ordinary skill having the benefit of this disclosure without undue experimentation.
[0066] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A magnetically coded key, characterized in that: include, An encryption unit (100), the encryption unit (100) comprising at least one magnet (101), wherein the magnet (101) is composed of a plurality of magnetic regions (101a) of different polarities; and The magnets (101) and the magnetic regions (101a) on a single magnet (101) are arranged.
2. The magnetically coded key according to claim 1, characterized in that: The magnetic regions (101a) of different polarities are encoded, wherein the encoding method includes but is not limited to using binary code, ASCALL code or further converting the binary code into hexadecimal code.
3. The magnetically coded key according to claim 2, characterized in that: The magnetic regions (101a) of different polarities are encoded in a binary encoding manner, one of the magnetic regions (101a) of the same polarity is selected and marked as 0, and the other magnetic region (101a) of the same polarity is selected and marked as 1.
4. The magnetically coded key according to claim 1, characterized in that: The magnet (101) is arranged in an annular shape, a plurality of annular magnets (101) are nested with each other, and the annular magnets (101) are magnetized axially.
5. The magnetically coded key according to claim 1, characterized in that: It also includes a shell (200) wrapped around the outside of the encryption unit (100), and the shell (200) is made of non-ferromagnetic material.
6. The magnetically coded key according to claim 5, characterized in that: The outer wall of the shell (200) is provided with a locking area (201), and the shell (200) is provided with a portable hole (202).
7. An anti-theft system, characterized in that: The magnetically encoded key according to any one of claims 1 to 6 further comprises: A lock, wherein the lock is provided with a positioning area that engages with the locking area (201); and A decryption unit (300) located on the lock, the decryption unit (300) comprising a code input module (301), the code input module (301) being connected to a verification code matching module (302); The verification code matching module (302) is connected to a stepper motor control module (303), and the stepper motor control module (303) is connected to control the lock; and, The code verification and matching module (302) performs a code comparison between the key and the lock. If the comparison is consistent, the stepper motor is driven by the stepper motor control module (303) to control the lock to be unlocked.
8. The anti-theft system according to claim 7, characterized in that: The encoding input module (301) comprises a magnetic induction element (301a) and a signal conditioning circuit (301b); The magnetic sensing element (301a) corresponds to the size and magnetic pole position of the magnetic coding key, and the magnetic sensing element (301a) includes but is not limited to a Hall element or a magnetoresistive element; The signal conditioning circuit (301b) is connected to the magnetic induction element (301a), and the signal conditioning circuit (301b) can process the signal output by the magnetic induction element (301a) into a digital signal or a TTL level signal, and then perform coding comparison through the verification coding matching module (302).
9. The anti-theft system according to claim 8, characterized in that: A magnetic induction element (301a) is welded on a circuit board, wherein a plurality of magnetic induction units (301a-1) are integrated in the magnetic induction element (301a), and each magnetic induction unit (301a-1) is arranged in one-to-one correspondence with the magnetic pole position of each magnetic coding key.
10. A decoding method, characterized in that: The magnetically encoded key according to any one of claims 7 to 9 further comprises: By inserting the magnetically coded key into the key slot, the code input module (301) inputs a signal to the verification code matching module (302), and the verification code matching module (302) performs a code comparison between the key and the lock. If the comparison is consistent, the stepper motor is driven by the stepper motor control module (303) to complete the unlocking of the lock.