A method for managing electric locks
Through the intelligent lock management system, using mobile terminal wireless power supply and communication technology, combined with the real-name authentication and authority verification of the lock management system, the key management complexity and safety hazards caused by the inconsistent lock standards in the power system are solved, and efficient and safe lock management is achieved.
Patent Information
- Application Number
- CN202211197459.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2025-09-23
- Estimated Expiration
- 2042-09-29
AI Technical Summary
The lack of unified lock standards in existing power systems has led to complex key management, an increase in the number of keys, and the use of universal keys poses safety risks and uncontrolled management.
Adopting intelligent lock management system, wireless power supply and communication through mobile terminal, combined with lock management system to realize real-name authentication and centralized management, generate and update switch lock keys, and use MAC address and IMEI code for permission verification.
This eliminates the need to manage a large number of keys, improves the security and management efficiency of smart locks, reduces the risk of misoperation, and ensures the safety of power equipment.
Smart Images

Figure CN115830742B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electric lock management, and in particular to an electric lock management method. Background Art
[0002] The current power system manages a large number of power equipment, including substation access control systems, ring main units (RMUs), box-type transformers, branch boxes, distribution substations, and switchgear. For operational safety and theft prevention, the doors to these facilities have traditionally been managed using a variety of traditional locks. With the expansion of power grid facilities, the number of locks has also increased. Due to the lack of standardized locks, numerous key management issues have arisen.
[0003] Every time the team members conduct inspections, maintenance, switching operations or read electricity meters, they must first find the corresponding key from a large bunch of keys to open the door and unlock the door, which is time-consuming and laborious. If they bring the wrong key to the site, they have to go back and find the key again. Some staff members even use the method of prying open the locks to work for the sake of convenience, resulting in a waste of resources and a failure to form management.
[0004] To facilitate key management, many regions have introduced universal keys. This solution involves using a single key to open all locks in a district or even the entire city. This reduces the number of keys, facilitates on-site work, and simplifies key management. However, this gives on-site staff too much authority, creating the risk of management losing control. This creates a safety hazard of accidentally entering dangerous areas, and if keys are loaned to external construction teams, effective supervision becomes impossible, creating a significant risk of loss of control. Summary of the Invention
[0005] The object of the present invention is to provide a method for managing electric locks to solve the problems raised in the above background technology.
[0006] The present invention is implemented through the following technical solution: A method for managing electric locks, comprising the following steps:
[0007] S101: The user brings the mobile terminal close to the smart lock. The mobile terminal wirelessly powers the smart lock, and the smart lock sends the MAC address information and coordinate location information of the lock to the outside world via the public frequency.
[0008] S102: After receiving the MAC address information and coordinate location information, the mobile terminal automatically sends a first response instruction to the lock management system. The lock management system verifies the first response instruction and, upon successful verification, feeds back an unlocking key and a locking key to the mobile terminal.
[0009] S103: The user inputs a lock command or an unlock command through the mobile terminal, and calls the unlock key or the lock key and sends it through the MAC address;
[0010] S104: The smart lock decrypts the unlocking key or the locking key, and performs corresponding operations according to the decrypted unlocking key or the locking key.
[0011] Optionally, before step S101, it also includes: before the smart lock is put into use, the smart lock is connected to the lock management system, the MAC address information of the smart lock is obtained, and a corresponding first key and operation string are generated for the smart lock, and the lock management system sends the first key and operation string to the smart lock.
[0012] Optionally, after connecting the smart lock to the lock management system, the default string stored in the smart lock is read, and an erase command is sent to the smart lock to erase the default string stored in the smart lock and write the generated operation string into the smart lock.
[0013] Optionally, generate the operation string, specifically including
[0014] Performing character recognition on the default character string to obtain a plurality of individual characters, and recording the order of the obtained characters;
[0015] Establishing a 3×3 matrix, and randomly filling each constant ranging from 1 to 9 into different positions of the matrix to form a first matrix and a second matrix;
[0016] Determining whether the characters are prime numbers in order of the obtained characters; if the characters are prime numbers, writing the characters into specific positions of the first matrix and calculating the values of the first matrix; and if the characters are non-prime numbers, writing the characters into specific positions of the second matrix and calculating the values of the second matrix, where the specific positions are determined according to the order of the obtained characters;
[0017] The values of the first matrix and the values of the second matrix are arranged in the order of the obtained characters to form an arrangement string. The arrangement string is input into a one-way hash function and set to different lengths to obtain operation strings of lengths K and L respectively. The operation string of length K is used to unlock the smart lock, and the operation string of length L is used to lock the smart lock.
[0018] Optionally, before step S101, the method further includes: the mobile terminal establishing a data connection with the lock management system, and sending an authorization request to the lock management system, wherein the authorization request includes the IMEI code of the mobile terminal and an authorization instruction;
[0019] The lock management system records the IMEI code of the mobile terminal to form an IMEI code record set, and generates a corresponding second key for the IMEI code. The lock management system sends the second key to the mobile terminal.
[0020] Optionally, after receiving the MAC address information, the mobile terminal automatically combines the MAC address information, IMEI code, and coordinate position of the mobile terminal to form a combined string, and encrypts the combined string using the second key to form a first response instruction.
[0021] Optionally, the lock management system verifies the first response instruction, specifically including:
[0022] The lock management system decrypts the first response instruction, obtains the decrypted IMEI code, and searches the IMEI code record set based on the IMEI code to determine whether the IMEI code is recorded in the IMEI code record set;
[0023] If recorded, the coordinate location information of the mobile terminal obtained after decryption is compared with the coordinate location information of the specific place to determine whether the mobile terminal has the operation authority for the specific place. If so, the verification is passed.
[0024] Optionally, after the verification is passed, the unlocking key and the locking key are fed back to the mobile terminal, specifically including: the lock management system obtains the unlocking string and the locking string in the operation string based on the decrypted MAC address information, and encrypts the unlocking string and the locking string by the first key to form the unlocking key and the locking key.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] The present invention provides a method for managing electric locks. Users use mobile terminals to wirelessly power smart locks. A battery-free design is adopted, so there is no need for regular maintenance and battery replacement. The lock management system resets the new unlocking key and locking key of the smart lock, thereby improving the security of the smart lock. At the same time, it also combines mobile Internet technology to realize real-name authentication management of locks and mobile terminals through the system management background, realizing centralized management of lock control authorization, thereby ensuring the safety of substation equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only preferred embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 This is a flow chart of a power lock management method provided by the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present invention more apparent, exemplary embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments of the present invention, and it should be understood that the present invention is not limited to the exemplary embodiments described herein. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative work should fall within the scope of protection of the present invention.
[0030] In the following description, numerous specific details are provided to provide a more thorough understanding of the present invention. However, it will be apparent to those skilled in the art that the present invention may be practiced without one or more of these details. In other instances, certain technical features well known in the art are not described to avoid confusion with the present invention.
[0031] It should be understood that the present invention can be implemented in different forms and should not be interpreted as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to make disclosure thorough and complete and to fully convey the scope of the present invention to those skilled in the art.
[0032] The purpose of the terms used herein is only to describe specific embodiments and is not intended to limit the present invention. When used herein, the singular forms "a", "an", and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "comprising" and / or "comprising", when used in this specification, determine the presence of the features, integers, steps, operations, elements and / or parts, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or groups. When used herein, the term "and / or" includes any and all combinations of the relevant listed items.
[0033] In order to fully understand the present invention, a detailed structure will be provided in the following description to illustrate the technical solution proposed by the present invention. Optional embodiments of the present invention are described in detail below. However, in addition to these detailed descriptions, the present invention may also have other implementations.
[0034] See also Figure 1 , a method for managing electric locks, comprising the following steps:
[0035] S101: The user brings the mobile terminal close to the smart lock. The mobile terminal wirelessly powers the smart lock, and the smart lock sends the MAC address information and coordinate location information of the lock to the outside world via the public frequency.
[0036] S102: After receiving the MAC address information and coordinate location information, the mobile terminal automatically sends a first response instruction to the lock management system. The lock management system verifies the first response instruction and, upon successful verification, feeds back an unlocking key and a locking key to the mobile terminal.
[0037] S103: The user inputs a lock command or an unlock command through the mobile terminal, and calls the unlock key or the lock key and sends it through the MAC address;
[0038] S104: The smart lock decrypts the unlocking key or the locking key, and performs corresponding operations according to the decrypted unlocking key or the locking key.
[0039] The smart lock described in this embodiment is installed in power equipment locations such as substation access control, ring network cabinets, box-type transformers, branch boxes, distribution stations, and switchgear. The smart lock uses an anti-corrosion drive mechanism that works in conjunction with related drive units to complete the lock control function. Both unlocking and locking are separated and require command interaction. The smart lock has no lock core and uses wireless power supply and communication methods, with power supply and communication interaction achieved by a mobile terminal. When opening or closing the lock, the user only needs to bring the mobile terminal close to the smart lock and enter the operation command, eliminating the need to manage a large number of keys.
[0040] Specifically, before step S101, it also includes: before the smart lock is put into use, the smart lock is connected to the lock management system, the MAC address information of the smart lock is obtained, and a corresponding first key and operation string are generated for the smart lock. The lock management system sends the first key and operation string to the smart lock.
[0041] In this embodiment, the lock management system can generate a corresponding first key based on the MAC address information of the smart lock. After obtaining the MAC address information of the smart lock, it responds and generates an operation string. Its main purpose is to complete the registration of the smart lock in the lock management system.
[0042] Furthermore, in order to improve the security of the smart lock, after the smart lock is connected to the lock management system, the default string stored in the smart lock is read, and an erase command is sent to the smart lock to erase the default string stored in the smart lock, and the generated operation string is written into the smart lock, where the default string is the original unlocking default string and locking default string of the smart lock, and the string is composed of a 6-digit random number from 1 to 9.
[0043] Specifically, in a preferred embodiment of the present invention, generating the operation string specifically includes:
[0044] The default string is subjected to character recognition to obtain multiple individual characters, and the order of the obtained characters is recorded. For example, when the default string is 687984, the characters are subjected to character recognition to obtain individual characters "6", "8", "7", "9", "8", "4", and the recorded character order is: single character "6", order 1, single character "8", order 2, etc.
[0045] A 3×3 matrix is established, and each constant ranging from 1 to 9 is randomly filled into different positions of the matrix to form a first matrix and a second matrix. For example, the established first matrix may be:
[0046]
[0047] The second matrix established can be:
[0048]
[0049] The aforementioned first matrix and second matrix are merely an implementation of the present invention and do not limit the matrix.
[0050] According to the order of the obtained characters, determine whether the characters are prime numbers in turn. If the characters are prime numbers, write the characters into specific positions of the first matrix and calculate the values of the first matrix. If the characters are non-prime numbers, write the characters into specific positions of the second matrix and calculate the values of the second matrix. The specific positions are determined according to the order of the obtained characters.
[0051] In this step, taking the default string 687984 as an example, based on the order in which the single characters are obtained, it is determined whether the single character "6" is a prime number. Since the character 6 is not a prime number, the second matrix is selected, the first digit in the second matrix is erased, and the character "6" is substituted in, thereby forming the second matrix. The value of the second matrix at this time is calculated, and then it is determined whether the single character "8" is a prime number. Since the character "8" is not a prime number, the second matrix is selected, the second digit in the second matrix is erased, and the character "8" is substituted in. The second matrix formed is, for example:
[0052]
[0053] Calculate the value of the second matrix at this time, and so on. After the values of the first matrix and the second matrix are calculated in sequence, the values of the first matrix and the second matrix are arranged in the order of calculation to form an arrangement string. The arrangement string is input into the one-way hash function and set to different lengths to obtain operation strings of lengths K and L respectively. The length K is equal to the length of the default string, and the length L is equal to the default string length + 1. The operation string of length K is used to unlock the smart lock, and the operation string of length L is used to lock the smart lock. At the same time, the operation string of length K and the operation string of length L are associated and stored with the MAC address.
[0054] Specifically, before step S101, the method further includes: the mobile terminal establishing a data connection with the lock management system and sending an authorization request to the lock management system, wherein the authorization request includes the IMEI code of the mobile terminal and an authorization instruction;
[0055] The lock management system records the IMEI code of the mobile terminal to form an IMEI code record set, and generates a corresponding second key for the IMEI code. The lock management system sends the second key to the mobile terminal.
[0056] In this embodiment, the lock management system can generate a corresponding second key based on the IMEI code of the mobile terminal and send the second key to the mobile terminal. The main purpose is to complete the registration of the smart terminal in the lock management system and set the data encryption transmission method for the mobile terminal.
[0057] When maintenance is required, the operator will apply for operating authority for a certain place in advance from the lock management system through the mobile terminal. The place contains multiple smart locks. After the application is approved, the place coordinates recorded in the lock management system will be marked. When the operator comes to the work site with the mobile terminal, the mobile terminal will receive the MAC address information and lock coordinate position information of the lock. The mobile terminal automatically combines the MAC address information, IMEI code, and coordinate position of the mobile terminal to form a combined string, encrypts the combined string through the second key to form a first response instruction, and sends the first response instruction to the lock management system.
[0058] The lock management system decrypts the first response instruction using a second key to obtain the decrypted IMEI code, and searches the IMEI code record set based on the IMEI code to determine whether the IMEI code is recorded in the IMEI code record set;
[0059] If recorded, the coordinate location information of the mobile terminal obtained after decryption will be compared with the coordinate location information of the specific place. If the coordinate location information of the mobile terminal is within the range of the coordinate location of the specific place, it is determined that the mobile terminal has the operating authority of the specific place, and its first response instruction is verified.
[0060] Specifically, after the verification is passed, the lock management system obtains an unlocking string with a length of K and a locking string with a length of L based on the decrypted MAC address information, and encrypts the unlocking string and the locking string by a second key to form an unlocking key and a locking key. The unlocking key and the locking key are sent to the mobile terminal, and the mobile terminal temporarily stores the unlocking key and the locking key within time t. After the timeout, the mobile terminal automatically deletes the unlocking key and the locking key.
[0061] When the operator inputs the unlocking command into the mobile terminal, the mobile terminal sends the unlocking key with the MAC address of the lock as the destination. The smart lock decrypts the unlocking key based on the second key, obtains the unlocking string, and compares it with the operation string of length L stored in itself. If the comparison is consistent, the unlocking operation of the smart lock is realized.
[0062] When the operator inputs the locking command into the mobile terminal, the mobile terminal sends the locking key with the MAC address of the lock as the destination. The smart lock decrypts the locking key based on the second key, obtains the locking string, and compares it with the operation string of length K stored in itself. If the comparison is consistent, the locking operation of the smart lock is realized.
[0063] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for managing electric locks, characterized in that: The following steps are involved: S101: The user brings the mobile terminal close to the smart lock. The mobile terminal wirelessly powers the smart lock, and the smart lock sends the MAC address information and coordinate location information of the lock to the outside world via the public frequency. S102: After receiving the MAC address information and coordinate location information, the mobile terminal automatically sends a first response instruction to the lock management system. The lock management system verifies the first response instruction and, upon successful verification, feeds back an unlocking key and a locking key to the mobile terminal. S103: The user inputs a lock command or an unlock command through the mobile terminal, and calls the unlock key or the lock key and sends it through the MAC address; S104, the smart lock decrypts the unlocking key or the locking key, and performs a corresponding operation according to the decrypted unlocking key or the locking key; Before the smart lock is put into use, the smart lock is connected to the lock management system to obtain the MAC address information of the smart lock, and a corresponding first key and operation string are generated for the smart lock. The lock management system sends the first key and operation string to the smart lock; After connecting the smart lock to the lock management system, reading the default string stored in the smart lock, and sending an erase command to the smart lock to erase the default string stored in the smart lock, and writing the generated operation string into the smart lock; Generating the operation string specifically includes: Performing character recognition on the default character string to obtain a plurality of individual characters, and recording the order of the obtained characters; Establishing a 3×3 matrix, and randomly filling each constant ranging from 1 to 9 into different positions of the matrix to form a first matrix and a second matrix; Determining whether the characters are prime numbers in order of the obtained characters; if the characters are prime numbers, writing the characters into specific positions of the first matrix and calculating the values of the first matrix; and if the characters are non-prime numbers, writing the characters into specific positions of the second matrix and calculating the values of the second matrix, where the specific positions are determined according to the order of the obtained characters; The values of the first matrix and the values of the second matrix are arranged in the order of the obtained characters to form an arrangement string. The arrangement string is input into a one-way hash function and set to different lengths to obtain operation strings of lengths K and L respectively. The operation string of length K is used to unlock the smart lock, and the operation string of length L is used to lock the smart lock.
2. A power lock management method according to claim 1, characterized in that: Before step S101, the method further includes: the mobile terminal establishing a data connection with the lock management system and sending an authorization request to the lock management system, wherein the authorization request includes the IMEI code of the mobile terminal and an authorization instruction; The lock management system records the IMEI code of the mobile terminal to form an IMEI code record set, and generates a corresponding second key for the IMEI code. The lock management system sends the second key to the mobile terminal.
3. A power lock management method according to claim 2, characterized in that: After receiving the MAC address information, the mobile terminal automatically combines the MAC address information, the IMEI code, and the coordinate position of the mobile terminal to form a combined string, and encrypts the combined string using the second key to form a first response instruction.
4. A power lock management method according to claim 3, characterized in that: The lock management system verifies the first response instruction, specifically including: The lock management system decrypts the first response instruction, obtains the decrypted IMEI code, and searches the IMEI code record set based on the IMEI code to determine whether the IMEI code is recorded in the IMEI code record set; If recorded, the coordinate location information of the mobile terminal obtained after decryption is compared with the coordinate location information of the specific place to determine whether the mobile terminal has the operation authority for the specific place. If so, the verification is passed.
5. A power lock management method according to claim 4, characterized in that: After the verification is passed, the unlocking key and the locking key are fed back to the mobile terminal, specifically including: the lock management system obtains the unlocking string and the locking string in the operation string based on the decrypted MAC address information, and encrypts the unlocking string and the locking string with the first key to form the unlocking key and the locking key.
Citation Information
Patent Citations
Lock management scheme based on time dynamic password and low power consumption Bluetooth technology
CN107492161A
Intelligent lock system and control method thereof
CN110570547A
Passive NFC cloud lock system
CN112634494A