A magnetic lock security authorization method and system for internet of things access control

CN122657992APending Publication Date: 2026-08-28ZHEJIANG RANHONG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610697570.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-05-20
Publication Date
2026-08-28

AI Technical Summary

Technical Problem

[0004]针对上述的相关技术,在实际的磁力锁权限管控方面,大部分为提前录入相关识别信息,或由拥有权限的用户远程操控磁力锁的开关,导致存在临时用户时需要通过拥有权限的用户陪同,因此磁力锁安全授权的高效性与可靠性尚有改善空间

Benefits of technology

通过开门用户信息查找相同用户信息,当存在时直接授权并开门,当不存在时得到待确认用户信息,接收到确认信号时才授权并将其作为临时用户信息,同时依次执行用户剔除操作,避免了磁力锁权限需提前录入或通过已授权用户远程帮助开门的问题,提高了磁力锁授权的高效性与可靠性;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122657992A_ABST
    Figure CN122657992A_ABST
Patent Text Reader

Abstract

The application relates to a magnetic lock safety authorization method and system for Internet of Things access control, and relates to the field of Internet of Things safety technology, which comprises the following steps: obtaining door opening user information in response to a preset door opening signal; searching for corresponding same user information in a preset user information library according to the door opening user information; when the same user information exists, performing a magnetic lock door opening operation; when the same user information does not exist, determining to-be-confirmed user information according to the door opening user information; when a preset confirmation signal is received, determining temporary user information through the to-be-confirmed user information; and performing a user elimination operation according to the temporary user information and outputting a preset user change signal. The application has the effect of improving the efficiency and reliability of magnetic lock authorization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of Internet of Things (IoT) security technology, and in particular to a magnetic lock security authorization method and system for IoT access control. Background Technology

[0002] In fields such as IoT security, intelligent access control, and home security, magnetic lock security authorization under IoT access control is a core component for ensuring the security of site entrances and exits, standardizing personnel access permissions, and realizing intelligent management and control of magnetic locks. The security, flexibility, and convenience of its authorization directly affect the protection effect of the access control system, personnel passage efficiency, and management and operation costs.

[0003] Currently, magnetic lock authorization devices and systems based on IoT technology have emerged in the industry. Their core is to achieve remote transmission and verification of authorization information by integrating an identity recognition module and an IoT communication module. Combined with an access control module, they complete the control of magnetic lock unlocking permissions, replacing the traditional manual unlocking, mechanical key control, and local single authorization mode. This lays the foundation for improving the intelligence level of magnetic lock authorization and reducing manual management costs.

[0004] Regarding the aforementioned technologies, in practical magnetic lock access control, most methods involve pre-entering relevant identification information or having authorized users remotely control the magnetic lock's opening and closing. This results in temporary users needing to be accompanied by authorized users, thus the efficiency and reliability of magnetic lock security authorization still have room for improvement. Summary of the Invention

[0005] To improve the efficiency and reliability of magnetic lock authorization, this invention provides a magnetic lock security authorization method and system for Internet of Things access control.

[0006] In a first aspect, the present invention provides a magnetic lock security authorization method for Internet of Things access control, which adopts the following technical solution: A secure authorization method for magnetic locks in Internet of Things (IoT) access control includes: Step 1: In response to the preset door opening signal, obtain the user information for opening the door; Step 2: Search for the corresponding user information in the preset user information database based on the user information of the user who opened the door; Step 3: When the same user information exists, execute the magnetic lock opening operation; Step 4: If the same user information does not exist, determine the user information to be confirmed based on the user information that opened the door; Step 5: Upon receiving a preset confirmation signal, determine the temporary user information using the user information to be confirmed; Step 6: Perform user removal operation according to temporary user information and output preset user change signals.

[0007] By adopting the above technical solution, the system searches for identical user information based on the user information of the door opening user. If the information exists, the system directly authorizes and opens the door. If the information does not exist, the system obtains user information to be confirmed. Only when a confirmation signal is received is the system authorized and the information is used as temporary user information. At the same time, the system sequentially performs user removal operations, thereby realizing automatic authorization and updating of user information for the magnetic lock and improving the efficiency and reliability of magnetic lock authorization.

[0008] Optionally, methods for determining temporary user information based on the user information to be confirmed include: Step 50: Obtain user confirmation information based on the user information to be confirmed; Step 51: Extract user keywords from user confirmation information; Step 52: When there are preset temporary keywords for user keywords, determine the temporary user information through the user information to be confirmed; Step 53: When there are no temporary keywords for user keywords, determine the new user information through the user information to be confirmed and perform the storage operation.

[0009] By adopting the above technical solution, user authorization types are distinguished by extracting keywords from user confirmation information. Temporary user information is generated for temporary users, and new user information is generated and stored for non-temporary users. This achieves classified authorization management for temporary visitors and long-term users, improving the flexibility and targeting of magnetic lock authorization management.

[0010] Optionally, methods for performing user removal operations based on temporary user information include: Step 60: Obtain the user image corresponding to the temporary user information; Step 61: Extract user features from user images; Step 62: Obtain the image of the user leaving; Step 63: Extract user departure features from the user departure image; Step 64: When the user characteristics match the user departure characteristics, perform the user removal operation.

[0011] By adopting the above technical solution, by collecting images of temporary users and extracting user features, and by comparing the user's identity with the image and departure features when leaving, the removal operation is only performed when it is confirmed that the temporary user has left the premises. This achieves accurate and automatic revocation of temporary user permissions, avoids the security risks caused by residual permissions after the temporary user leaves the premises, and improves the security and intelligence level of magnetic lock authorization.

[0012] Optionally, when user characteristics match user departure characteristics, the methods for performing user removal operations include: Step 640: Deconstruct the temporary user information to obtain the temporary permission duration and the number of temporary permissions; Step 641: If only temporary permission counts exist, find the corresponding critical range of permission counts based on the user keywords and the temporary permission counts; Step 642: When the number of temporary permissions falls into the critical range of permission count, output a preset removal alarm signal and continuously monitor the number of temporary permissions; Step 643: When the number of temporary permissions reaches 0, perform the user removal operation; Step 644: If only temporary permission time exists, find the corresponding permission time threshold range based on user keywords and temporary permission time; Step 645: When the temporary permission time falls into the permission time critical range, output a removal alarm signal and continuously monitor the temporary permission time; Step 646: When the temporary permission time is 0, perform the user removal operation; Step 647: If both the temporary permission time and the number of temporary permissions exist, continue to monitor the number of temporary permissions and execute step 643, or continue to monitor the temporary permission time and execute step 646.

[0013] By adopting the above technical solutions, the control of temporary user permissions is refined to two dimensions: time and frequency. By clarifying the permission threshold, alarm prompts and monitoring methods for different situations, the control of user removal operations is made more precise and standardized, avoiding the abuse of temporary permissions and improving the scientificity and operability of temporary user permission management.

[0014] Optionally, after outputting the user change signal, the system may also include: Step 70: Upon receiving a user change signal, obtain the original user information; Step 71: Obtain extended temporary information based on temporary user information; Step 72: When extended temporary information exists, combine the extended temporary information, the newly added user information, and the original user information to obtain extended updated information and define it as updated user information output; Step 73: When the extended temporary information does not exist, combine the temporary user information, the newly added user information and the original user information to obtain the standard update information and define it as the updated user information output.

[0015] By adopting the above technical solution, an update process is triggered when user information changes. Depending on whether there is an extension requirement, extended update information and standard update information are generated respectively, realizing dynamic updating and flexible adaptation of user permission information, and improving the consistency and stability of magnetic lock authorization management.

[0016] Optionally, methods for obtaining extended temporary information based on temporary user information include: Step 710: Obtain extension application information; Step 711: Extract extension keywords from the extension application information; Step 712: When the extended keyword exists, combine the extended application information with the temporary user information to obtain the extended temporary information; Step 713: If the extension keyword does not exist, output the extension application information; Step 714: Upon receiving the preset extension confirmation signal, combine the extension application information and temporary user information to obtain temporary extension information.

[0017] By adopting the above technical solution, the extension keyword is obtained by extending the application information. When the keyword exists, it is combined with the temporary user information to obtain new temporary extension information. When the keyword does not exist, the temporary extension information is generated only after receiving the extension confirmation signal. This realizes the automation of permission delay, avoids the failure of permission due to the user's extension application not being reviewed in time, and improves the flexibility and reliability of magnetic lock authorization.

[0018] Optionally, it also includes a method for outputting updated user information, which includes: Step 730: Obtain user instruction information; Step 731: Obtain user requirement information through user instruction information; Step 732: If user demand information exists, obtain extended temporary information through user demand information and execute steps 72 to 73 to obtain updated user information and output it; Step 733: If the user's requested information does not exist, output the updated user information and execute the deletion command according to the user's instruction information.

[0019] By adopting the above technical solution, with user instruction information as the core, user instructions are first obtained and user needs are parsed. When user needs exist, temporary information is generated to extend permissions and permissions are updated. When there are no user needs, the updated user information is directly output and the deletion instruction is executed. This achieves accurate response to user needs, avoids redundant instructions and invalid operations, and improves the efficiency and standardization of permission management.

[0020] Optionally, if user demand information exists, the method for obtaining extended temporary information from the user demand information and executing steps 72 to 73 to obtain updated user information and outputting it includes: Step 7320: Determine instruction characteristic information through user instruction information; Step 7321: Find the corresponding identical instruction information based on instruction feature information; Step 7322: If the same instruction information exists, output the updated user information and execute the deletion instruction operation according to the user instruction information; Step 7323: If the same instruction information does not exist, obtain the extended temporary information through the user request information and execute steps 72 to 73 to obtain the updated user information and output it.

[0021] By adopting the above technical solution, user commands are extracted for features and compared with historical identical commands. Duplicate commands are directly cleaned up to avoid redundant execution, while new commands are executed normally and permissions are updated. This achieves deduplication control and efficient processing of user commands, improving the smoothness and stability of magnetic lock authorization management.

[0022] Optionally, methods for obtaining door-opening user information include: Step 10: Obtain an image of the hand opening the door; Step 11: Determine hand features using images of hands opening the door; Step 12: Find corresponding similar hand information based on hand feature information; Step 13: When similar hand information is present, execute the magnetic lock opening operation; Step 14: When similar hand information does not exist, output the preset door opening information table to obtain the door opening user information.

[0023] By adopting the above technical solution, hand features are obtained from images of hands opening the door. Users with similar hand information can be directly allowed to open the door, while user information is collected through an information form for unidentified users. This achieves a user information acquisition method that combines biometric recognition and form collection, improving the security of door opening verification and the convenience of user information collection.

[0024] Secondly, this invention provides a magnetic lock security authorization system for Internet of Things access control, employing the following technical solution: A magnetic lock security authorization system for Internet of Things access control includes: The acquisition module is used to acquire user images, user departure images, original user information, extension application information, user instruction information, and images of hands opening the door. A memory for storing a program for a magnetic lock security authorization method for Internet of Things access control as described above; The processor loads and executes programs from memory.

[0025] By adopting the above technical solution, the acquisition module accurately collects user images and other relevant data, the memory reliably stores programs and data, and the processor loads and executes the entire process of authorization, removal, and update. The three work together to replace manual operation, improve the efficiency and accuracy of authorization management, and realize automated control of permissions and real-time updates of information, avoiding human operation errors and redundant instructions.

[0026] In summary, the present invention has at least one of the following beneficial technical effects: By searching for the same user information in the door opening user information, if the same user information exists, the user is directly authorized and the door is opened. If the user information does not exist, the user information to be confirmed is obtained. Only when the confirmation signal is received is the user authorized and treated as a temporary user information. At the same time, the user removal operation is performed sequentially. This avoids the problem that the magnetic lock permissions need to be entered in advance or that the door needs to be opened remotely with the help of an authorized user, thus improving the efficiency and reliability of magnetic lock authorization. By comparing the image features of the user upon authorization and upon departure, information on temporary users who need to be removed is obtained, thus avoiding situations where temporary users retain their magnetic lock permissions after leaving the site. This improves the efficiency and reliability of magnetic lock permission updates. By identifying extension keywords from temporary information, the temporary information is automatically updated when it exists, thus avoiding the expiration of permissions due to untimely review of user permission extension applications and improving the real-time performance and efficiency of magnetic lock permission extension. Attached Figure Description

[0027] Figure 1 This is a flowchart of a magnetic lock security authorization method for Internet of Things access control according to an embodiment of this application. Detailed Implementation

[0028] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments.

[0029] This invention discloses a secure authorization method for magnetic locks in Internet of Things (IoT) access control. (Refer to...) Figure 1 A magnetic lock security authorization method for Internet of Things access control includes: Step 1: In response to the preset door opening signal, obtain the user information for opening the door.

[0030] The door opening signal is a signal triggered when a user needs to open the door, used to initiate the magnetic lock authorization and verification process. The system responds to this door opening signal by monitoring the user's actions on the access control device in real time, or by triggering commands sent from a mobile terminal or the cloud.

[0031] User information refers to information about users who require authorization to open the magnetic lock through the system. This user information is collected by the system through user scanning a QR code or inputting relevant information on the control terminal.

[0032] Step 2: Search for the corresponding user information in the preset user information database based on the user information of the user who opened the door.

[0033] "Same user information" refers to user authorization information that is completely identical to or successfully matches the current user information that opens the door. The method for finding this same user information is that the user information database stores the correspondence between user information that opens the door and the same user information. This correspondence is obtained by the system after integrating the user's initial settings and subsequently added user information. When the system receives user information that opens the door, it automatically searches for the same user information in the user information database.

[0034] Step 3: When the same user information exists, perform the magnetic lock opening operation.

[0035] The magnetic lock unlocking operation refers to the action of the system controlling the magnetic lock to de-energize and unlock, thus releasing the lock from its locked state and allowing the door to open. Here, the magnetic lock unlocking operation is performed by the system sending an opening level signal to the magnetic lock drive circuit through the IoT control unit, causing the electromagnetic coil to lose power and release the lock, thereby completing the unlocking process.

[0036] When the same user information exists, it means that this is a user who already has the necessary permissions, so the magnetic lock is used to open the door.

[0037] Step 4: If the same user information does not exist, determine the user information to be confirmed based on the user information that opened the door.

[0038] User information pending confirmation refers to user information that requires confirmation from the homeowner or administrator before authorization can be granted. This user information is determined by the system marking it as pending review and confirmation after it determines that the user information for opening the door has not been entered into the database.

[0039] When the same user information does not exist, it means that the user is a new user. In order to avoid the impact of blind authorization, the user information to be confirmed is determined based on the user information of the user who opened the door.

[0040] Step 5: Upon receiving a preset confirmation signal, determine the temporary user information using the user information to be confirmed.

[0041] A confirmation signal is an authorization command signal issued by the homeowner or administrator through the control terminal, granting the user to be confirmed access to the magnetic lock. The confirmation signal is received by the system monitoring the operation commands of the homeowner or administrator's terminal via the IoT communication module, and determining that a confirmation signal has been received upon detecting an authorization command.

[0042] Temporary user information refers to visitor information that, after confirmation by the homeowner or administrator, grants limited access permissions and is valid only for a specified period or number of visits. Temporary user information is determined by the system generating corresponding temporary authorized user information based on the user information to be confirmed and pre-defined temporary permission rules after receiving a confirmation signal.

[0043] Upon receiving a confirmation signal, it indicates that the homeowner or administrator has viewed and confirmed the user information to be confirmed and approved its authorization request. Therefore, the temporary user information is determined through the user information to be confirmed.

[0044] Step 6: Perform user removal operation according to temporary user information and output preset user change signals.

[0045] User removal refers to the system's permission management operation of removing temporary user information from the user database and revoking the user's corresponding magnetic lock opening privileges. The execution method for user removal is that the system deletes the temporary user information from the user database and synchronously updates the permission status to complete the operation. The specific execution determination method will be described in the following steps. User change signals are the prompt signals issued by the system after completing the addition, removal, or permission change of user information, used to indicate changes in the user database and authorization status. The output method for user change signals is that the system generates and sends corresponding status change prompt signals through the control terminal or cloud backend after performing user removal or permission update operations.

[0046] The methods for determining temporary user information through user information to be confirmed include: Step 50: Obtain user confirmation information based on the user information to be confirmed.

[0047] User confirmation information refers to the feedback information provided by the homeowner or administrator regarding the review results, authorization type, and related permission settings for the user to be confirmed. Here, user confirmation information is obtained by the system directly defining the user information to be confirmed as user confirmation information upon receiving a confirmation signal.

[0048] Step 51: Extract user keywords from user confirmation information.

[0049] User keywords refer to identifying terms used to distinguish user identity types and authorization attributes, such as: tenant, repairman, visitor, etc. The method for extracting user keywords here is that the system identifies and filters feature words related to user identity types from user confirmation information through text matching or keyword retrieval algorithms.

[0050] Step 52: When there are preset temporary keywords for user keywords, determine the temporary user information through the user information to be confirmed.

[0051] Temporary keywords are characteristic words used to identify users who have temporary authorization. These temporary keywords are set by the user based on their actual authorization needs and entered into the system; examples include: maintenance, visitor, and cleaning.

[0052] The temporary user information is determined by the system directly generating user authorization information with temporary permission attributes based on the user information to be confirmed when the user keyword is determined to be a temporary keyword match.

[0053] When a user's keywords include temporary keywords, it indicates that the user is not a resident or long-term user here. Therefore, temporary user information is determined through the user information to be confirmed.

[0054] Step 53: When there are no temporary keywords for user keywords, determine the new user information through the user information to be confirmed and perform the storage operation.

[0055] New user information refers to user authorization information determined to be valid indefinitely. The method for determining new user information here is that the system directly generates long-term valid user authorization information based on the user information to be confirmed. Storage operation refers to the data saving behavior of writing and saving the new user information to the user information database. The execution method for this storage operation is that the system writes the generated long-term valid new user information to the local or cloud-based user information database, completing the persistent data storage.

[0056] When no temporary keywords are available for the user, it indicates that the user may be a long-term resident or frequent visitor, such as a tenant. Therefore, the user information to be added is determined through the user information to be confirmed and the storage operation is performed.

[0057] The methods for performing user removal operations based on temporary user information include: Step 60: Obtain the user image corresponding to the temporary user information.

[0058] User images refer to facial or body feature image information of temporary users. These user images are obtained by the system capturing on-site images of temporary users through cameras on access control or terminal devices, or by receiving portrait images uploaded by users.

[0059] Step 61: Extract user features from user images.

[0060] User features refer to facial or human biometric data used to uniquely identify a user. Here, user features are extracted by the system using a deep learning-based facial feature extraction algorithm to process user images and extract fixed-dimensional facial feature vectors, which serve as feature information for identity comparison.

[0061] Step 62: Obtain the image of the user leaving.

[0062] User departure images refer to the images captured by the system when a user leaves the controlled area or exits the access control monitoring area. These images are obtained by the system monitoring the movement direction of people within the area in real time using access control cameras. When a person is detected moving from the inside out and about to leave the monitoring area, the system automatically triggers the capture of a user departure image.

[0063] Step 63: Extract user departure features from the user departure image.

[0064] User departure features refer to facial or human biometric information used to identify and confirm the identity of departing users. Here, user departure features are extracted by the system processing the user departure image using an image feature extraction algorithm to extract departure feature information that can be compared with user characteristics.

[0065] Step 64: When the user characteristics match the user departure characteristics, perform the user removal operation.

[0066] When the user characteristics match the user departure characteristics, it means that the temporary user has left the controlled area protected by the magnetic lock and has fulfilled the user's needs. Therefore, the user removal operation is executed. This is performed regardless of whether there are multiple people or a single person. The operation is executed as soon as a temporary user is collected.

[0067] When a user's characteristics match their departure characteristics, the methods for performing user removal include: Step 640: Deconstruct the temporary user information to obtain the temporary permission duration and the number of temporary permissions.

[0068] Temporary access time refers to the valid period of time set for a temporary user, allowing them to open the magnetic lock. This temporary access time is calculated by the system parsing the current and end times from the temporary user information to obtain the corresponding valid period. Temporary access count refers to the maximum number of valid times a temporary user is allowed to open the magnetic lock. This temporary access count is calculated by the system extracting the total number of times the lock can be opened from the temporary user information to obtain the corresponding authorization count.

[0069] Step 641: If only temporary permission counts exist, find the corresponding critical range of permission counts based on the user keywords and the number of temporary permission counts.

[0070] The critical range for the number of temporary access privileges refers to the warning value range used to determine whether the number of temporary access privileges is about to be exhausted. The method for finding this critical range is that different temporary users have different critical ranges. These ranges are set by staff according to actual needs and entered into the system. When the system receives the number of temporary access privileges, it automatically retrieves the corresponding warning value range based on the temporary user type corresponding to the user's keywords. For example, if a renovation worker has a total of 14 authorized door openings, the critical range for the number of access privileges can be set to 3 remaining.

[0071] If only temporary permission counts exist, it means that the homeowner or administrator only granted the temporary user the permissions a certain number of times. Therefore, the corresponding permission count threshold range is found based on user keywords and temporary permission counts.

[0072] Step 642: When the number of temporary permissions falls into the critical range of permission count, output a preset removal alarm signal and continuously monitor the number of temporary permissions.

[0073] The expulsion alarm signal is a warning signal used to indicate that privileges are about to be exhausted and to prepare for automatic expulsion. The expulsion alarm signal is output by the system sending warning signals to both the homeowner / administrator terminal and the temporary user terminal via cloud-based IoT after determining that the required number of privileges has been reached. The monitoring method for the number of temporary privileges is that the system collects the magnetic lock's door opening trigger records in real time, matches the corresponding temporary user based on user characteristics, deducts the temporary privilege count one by one, and continuously updates and monitors the current remaining privilege count.

[0074] When the number of temporary permissions falls into the critical range, it means that the user's permissions are about to run out. To prevent the user from needing permissions again after they have been used up, an alert signal is output and the number of temporary permissions is continuously monitored.

[0075] Step 643: When the number of temporary permissions is 0, perform the user removal operation.

[0076] When the number of temporary permissions is 0, it means that the temporary user has exhausted the number of times they can open the door, so the user is removed.

[0077] Step 644: If only temporary permission time exists, find the corresponding permission time threshold range based on user keywords and temporary permission time.

[0078] The permission time threshold range refers to the time interval used to determine when a temporary user's authorization period is about to expire. The method for finding this threshold range is that different temporary users have different threshold ranges, which are set and entered into the system by staff based on actual needs. When the system receives the temporary permission time, it automatically retrieves the corresponding time warning interval based on the temporary user type corresponding to the user's keywords. For example, if a maintenance worker's authorization period is 4 hours, a 30-minute advance warning can be set as the threshold reminder time.

[0079] If only temporary permission time exists, it means that the temporary user is only granted permission to enter the controlled area during that time period. Therefore, the corresponding permission time threshold range is found based on the user keywords and the temporary permission time.

[0080] Step 645: When the temporary permission time falls into the permission time critical range, output a removal alarm signal and continuously monitor the temporary permission time.

[0081] The temporary permission time is monitored by the system through real-time synchronization with the cloud IoT clock, continuously comparing the current time with the temporary permission expiration time, calculating the remaining authorization time in real time and monitoring whether it has entered the permission time threshold range.

[0082] When the temporary permission time falls into the permission time threshold range, it means that the user's permission is about to expire. In order to avoid the permission being deleted due to insufficient time, a removal alarm signal is output at this time and the temporary permission time is continuously monitored.

[0083] Step 646: When the temporary permission time is 0, perform the user removal operation.

[0084] When the temporary permission time is 0, it means that the authorization period for the temporary user has expired, so the user removal operation is performed.

[0085] Step 647: If both the temporary permission time and the number of temporary permissions exist, continue to monitor the number of temporary permissions and execute step 643, or continue to monitor the temporary permission time and execute step 646.

[0086] If both the temporary permission time and the number of temporary permissions exist, it means that the user's access permissions are strictly limited in terms of the number of times and the time. Therefore, continuously monitor the number of temporary permissions and execute step 643, or continuously monitor the temporary permission time and execute step 646. As long as one of the two meets the removal criteria, the user removal operation will be performed.

[0087] The output of the user change signal also includes: Step 70: Upon receiving a user change signal, obtain the original user information.

[0088] Original user information refers to the original user authorization information stored in the user information database that has not yet been updated. The original user information is obtained by the system retrieving the outdated original authorization data from the user information database.

[0089] When a user change signal is received, it indicates that the authorization information stored in the user information database needs to be changed, so the original user information is retrieved.

[0090] Step 71: Obtain extended temporary information based on temporary user information.

[0091] Temporary extension information refers to permission extension information used to extend temporary permissions or increase the number of door openings. This temporary extension information is obtained by the system through confirmation from the homeowner or administrator regarding user permission extensions; the specific method will be described in the following steps.

[0092] Step 72: When extended temporary information exists, combine the extended temporary information, the newly added user information, and the original user information to obtain extended update information and define it as updated user information output.

[0093] Extended update information refers to the complete temporary permission update data formed by merging extended temporary information, newly added user information, and original user information. This extended update information is obtained by the system merging the extended temporary information, newly added user information, and original user information and calculating permissions upon confirming the existence of extended temporary information, generating extended update information containing the latest authorized content. Updated user information refers to the latest temporary user authorization information that is ultimately written to the database and used for access control permission determination. The updated user information is output by the system synchronizing the extended update information to the cloud IoT network to overwrite the original user information, and simultaneously transmitting it to the terminal corresponding to the user information to complete the output.

[0094] When temporary information for extension exists, it indicates that the temporary user needs to extend the time or number of times. In order to avoid the information being deleted due to failure to update in time, the temporary information for extension, the newly added user information and the original user information are combined to obtain the extended update information and defined as the updated user information output.

[0095] Step 73: When the extended temporary information does not exist, combine the temporary user information, the newly added user information and the original user information to obtain the standard update information and define it as the updated user information output.

[0096] Standard update information refers to the regular temporary permission update data formed by integrating temporary user information, newly added user information, and original user information when there is no need for permission extension. The standard update information is obtained by the system merging and replacing fields of the temporary user information, newly added user information, and original user information when it confirms that extension temporary information does not exist, generating regular permission update data that does not contain permission extension content.

[0097] When the temporary information for extension does not exist, it means that no temporary user needs to extend the validity period of their permissions. Therefore, the temporary user information, the newly added user information, and the original user information are combined to obtain the standard update information and defined as the updated user information output.

[0098] The methods for obtaining extended temporary information based on temporary user information include: Step 710: Obtain extension application information.

[0099] Extension request information refers to requests to extend the duration of temporary permissions or increase the number of temporary permissions. This extension request information is obtained by the system receiving permission extension request data submitted by users or administrators through a cloud-based IoT interface.

[0100] Step 711: Extract extension keywords from the extension application information.

[0101] Extension keywords refer to identifying terms related to the type and object of permission extension, such as "extend time" or "increase the number of times." The method for extracting extension keywords here is that the system uses a keyword matching algorithm to identify and extract core feature words related to permission extension from the extension application information.

[0102] Step 712: When the extended keyword exists, combine the extended application information with the temporary user information to obtain the extended temporary information.

[0103] The temporary information is obtained by the system based on the extension duration or number of extensions in the extension application information, and by adding extensions to the remaining permissions of the temporary user information to calculate the new extended permission information.

[0104] When the extension keyword exists, it means that the system can directly extend the permission without manual operation. Therefore, the extension application information and temporary user information are combined to obtain the extension temporary information.

[0105] Step 713: If the extension keyword does not exist, output the extension application information.

[0106] The output method for extension application information here is that the system will directly send the application content that does not identify valid extension keywords to the homeowner or administrator terminal for manual review and processing.

[0107] When the extension keyword is not found, it means that the system cannot identify a valid extension type, so the extension application information is output.

[0108] Step 714: Upon receiving the preset extension confirmation signal, combine the extension application information and temporary user information to obtain temporary extension information.

[0109] An extension confirmation signal is a command signal confirming the extension of permissions. This extension confirmation signal is received by the system via cloud-based IoT from the homeowner or administrator, who sends the permission extension confirmation command.

[0110] Upon receiving an extension confirmation signal, it indicates that the homeowner or administrator has approved the user's permission extension request. Therefore, by combining the extension request information with the temporary user information, temporary extension information can be obtained.

[0111] This also includes a method for outputting updated user information, which includes: Step 730: Obtain user instruction information.

[0112] User instruction information refers to control commands issued by homeowners, administrators, or authorized users via terminal devices to add, modify, delete, or query user permissions. This user instruction information is obtained by the system receiving permission management-related instruction data from the user terminal through a cloud-based IoT interface.

[0113] Step 731: Obtain user requirement information through user instruction information.

[0114] User requirement information refers to the specific details of actual management needs regarding temporary user permission settings, modifications, extensions, or cancellations. This user requirement information is obtained by the system performing semantic parsing and instruction decomposition on user commands to extract actual requirements such as permission operation type, permission duration, and number of door openings.

[0115] Step 732: If user demand information exists, obtain extended temporary information through user demand information and execute steps 72 to 73 to obtain updated user information and output it.

[0116] The temporary information is obtained by extracting the permission extension duration or number of extensions from the user's request information, and then calculating the corresponding permission extension data by combining it with the remaining permissions of the current temporary user information.

[0117] If user request information exists, it means that a user needs to modify or adjust the user information related to authorization. Therefore, the temporary information is extended through the user request information, and steps 72 to 73 are executed to obtain updated user information and output it.

[0118] Step 733: If the user's requested information does not exist, output the updated user information and execute the deletion command according to the user's instruction information.

[0119] The delete command operation refers to the process of clearing or destroying invalid or processed user command information. Here, the delete command operation is executed by the system directly deleting the user command information from the local cache and cloud records when it determines that the user's request information does not exist.

[0120] If the user request information does not exist, it means that no user needs to modify or adjust the user information related to the magnetic lock authorization. Therefore, the updated user information is output and the deletion command is executed according to the user instruction information.

[0121] Among them, if user demand information exists, the method of obtaining extended temporary information through user demand information and executing steps 72 to 73 to obtain updated user information and outputting it includes: Step 7320: Determine instruction characteristic information through user instruction information.

[0122] Instruction feature information refers to the characteristic identification information that indicates the instruction type, the target of the operation, and the execution method. The method for determining instruction feature information here is that the system parses the user instruction information to extract feature data such as instruction type, user identifier, and operation content.

[0123] Step 7321: Find the corresponding identical instruction information based on instruction feature information.

[0124] Identical instruction information refers to past instruction information that is completely identical to the current instruction in terms of type, target, and execution content. The method for finding identical instruction information here is for the system to search and compare the extracted instruction feature information with the user information database for matching feature fields.

[0125] Step 7322: If the same instruction information exists, output the updated user information and execute the deletion instruction operation according to the user instruction information.

[0126] If the same instruction information exists, it means that the user has already initiated a similar permission modification instruction. To avoid instruction redundancy and repeated execution, the updated user information obtained in step 73 is output and the deletion instruction operation is executed according to the user instruction information.

[0127] Step 7323: If the same instruction information does not exist, obtain the extended temporary information through the user request information and execute steps 72 to 73 to obtain the updated user information and output it.

[0128] If the same instruction information does not exist, it means that the instruction is being issued for the first time. Therefore, the temporary information is extended through the user request information, and steps 72 to 73 are executed to obtain updated user information and output it.

[0129] The methods for obtaining user information who opens the door include: Step 10: Obtain an image of the hand opening the door.

[0130] The hand image for opening the door refers to the image information of the user's hand features captured by the acquisition device when the user opens the door. The hand image for opening the door is obtained in real time by the system through an image acquisition device located next to the magnetic lock, which captures the image when the user triggers the unlocking operation.

[0131] Step 11: Determine hand feature information from the image of the hand opening the door.

[0132] Hand feature information refers to the physiological feature data of the hands used to identify users. Here, the hand feature information is determined by the system using the HOG (Histogram of Oriented Gradients) algorithm combined with a lightweight CNN deep learning model to extract features from images of hands opening into a door. Features such as hand size, finger proportions, palm print contours, and joint distribution are quantized into 128-dimensional feature vectors to obtain standardized hand feature information.

[0133] Step 12: Find the corresponding similar hand information based on the hand feature information.

[0134] Similar hand information refers to reference feature information that is similar in feature dimension to the current hand feature information and has a matching degree higher than a threshold. The method for finding similar hand information is as follows: the system extracts and stores the features of the hand images of all authorized users when they first open the door. When the system receives another hand image from opening the door, it performs association retrieval and matching based on the extracted hand features, and uses the cosine similarity formula to calculate the matching degree to obtain similar hand information. The matching degree threshold is set by the administrator according to actual needs, for example: 0.85.

[0135] Step 13: When similar hand information exists, perform the magnetic lock opening operation.

[0136] When similar hand information is present, it indicates that the current user is an authorized and legitimate user, and therefore the magnetic lock opening operation is executed.

[0137] Step 14: When similar hand information does not exist, output the preset door opening information table to obtain the door opening user information.

[0138] The door opening information form is a form used to collect information on the identity and authorization of temporary door opening users. It is set up by the homeowner or administrator according to actual needs and entered into the system. The door opening information form is output by the system pushing or displaying it to the current user's terminal. The user fills it out and submits it to obtain the door opening user information.

[0139] When similar hand information is not found, it indicates that the user is an unauthorized user or a user that the system cannot recognize. Therefore, the door opening information table is output to obtain the user information. This embodiment uses multi-dimensional fusion features of hand shape, palm print outline, joint distribution, and finger ratio for recognition. Compared with a single hand shape feature, it has a higher distinguishability. According to actual tests, the false recognition rate is less than 0.1% in ordinary home and small office scenarios, which can meet the identity uniqueness recognition requirements of magnetic lock access control and can be used as an effective identity recognition basis.

[0140] Based on the same inventive concept, embodiments of the present invention provide a magnetic lock security authorization system for Internet of Things access control.

[0141] One example is a magnetic lock security authorization system for IoT access control, comprising: The acquisition module is used to acquire user images, user departure images, original user information, extension application information, user instruction information, and images of hands opening the door. A memory for storing a program for a magnetic lock security authorization method for Internet of Things access control; The processor loads and executes programs from memory.

[0142] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0143] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiments. All technical solutions falling within the scope of the present invention's concept are within the scope of protection of the present invention. It should be noted that for those skilled in the art, any improvements and modifications made without departing from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A magnetic lock security authorization method for Internet of Things access control, characterized in that, include: Step 1: In response to the preset door opening signal, obtain the user information for opening the door; Step 2: Search for the corresponding user information in the preset user information database based on the user information of the user who opened the door; Step 3: When the same user information exists, execute the magnetic lock opening operation; Step 4: If the same user information does not exist, determine the user information to be confirmed based on the user information that opened the door; Step 5: Upon receiving a preset confirmation signal, determine the temporary user information using the user information to be confirmed; Step 6: Perform user removal operation according to temporary user information and output preset user change signals.

2. The magnetic lock security authorization method for IoT access control according to claim 1, characterized in that, Methods for determining temporary user information based on user information to be confirmed include: Step 50: Obtain user confirmation information based on the user information to be confirmed; Step 51: Extract user keywords from user confirmation information; Step 52: When there are preset temporary keywords for user keywords, determine the temporary user information through the user information to be confirmed; Step 53: When there are no temporary keywords for user keywords, determine the new user information through the user information to be confirmed and perform the storage operation.

3. The magnetic lock security authorization method for IoT access control according to claim 2, characterized in that, Methods for removing users based on temporary user information include: Step 60: Obtain the user image corresponding to the temporary user information; Step 61: Extract user features from user images; Step 62: Obtain the image of the user leaving; Step 63: Extract user departure features from the user departure image; Step 64: When the user characteristics match the user departure characteristics, perform the user removal operation.

4. The magnetic lock security authorization method for IoT access control according to claim 3, characterized in that, When a user's characteristics match their departure characteristics, the methods for performing user removal operations include: Step 640: Deconstruct the temporary user information to obtain the temporary permission duration and the number of temporary permissions; Step 641: If only temporary permission counts exist, find the corresponding critical range of permission counts based on the user keywords and the temporary permission counts; Step 642: When the number of temporary permissions falls into the critical range of permission count, output a preset removal alarm signal and continuously monitor the number of temporary permissions; Step 643: When the number of temporary permissions reaches 0, perform the user removal operation; Step 644: If only temporary permission time exists, find the corresponding permission time threshold range based on user keywords and temporary permission time; Step 645: When the temporary permission time falls into the permission time critical range, output a removal alarm signal and continuously monitor the temporary permission time; Step 646: When the temporary permission time is 0, perform the user removal operation; Step 647: If both the temporary permission time and the number of temporary permissions exist, continue to monitor the number of temporary permissions and execute step 643, or continue to monitor the temporary permission time and execute step 646.

5. The magnetic lock security authorization method for IoT access control according to claim 2, characterized in that, After outputting the user change signal, it also includes: Step 70: Upon receiving a user change signal, obtain the original user information; Step 71: Obtain extended temporary information based on temporary user information; Step 72: When extended temporary information exists, combine the extended temporary information, the newly added user information, and the original user information to obtain extended updated information and define it as updated user information output; Step 73: When the extended temporary information does not exist, combine the temporary user information, the newly added user information and the original user information to obtain the standard update information and define it as the updated user information output.

6. The magnetic lock security authorization method for IoT access control according to claim 5, characterized in that, Methods for obtaining extended temporary information based on temporary user information include: Step 710: Obtain extension application information; Step 711: Extract extension keywords from the extension application information; Step 712: When the extended keyword exists, combine the extended application information with the temporary user information to obtain the extended temporary information; Step 713: If the extension keyword does not exist, output the extension application information; Step 714: Upon receiving the preset extension confirmation signal, combine the extension application information and temporary user information to obtain temporary extension information.

7. The magnetic lock security authorization method for IoT access control according to claim 6, characterized in that, It also includes a method for outputting updated user information, which includes: Step 730: Obtain user instruction information; Step 731: Obtain user requirement information through user instruction information; Step 732: If user demand information exists, obtain extended temporary information through user demand information and execute steps 72 to 73 to obtain updated user information and output it; Step 733: If the user's requested information does not exist, output the updated user information and execute the deletion command according to the user's instruction information.

8. The magnetic lock security authorization method for IoT access control according to claim 7, characterized in that, If user demand information exists, the method for obtaining extended temporary information from the user demand information and executing steps 72 to 73 to obtain updated user information and outputting it includes: Step 7320: Determine instruction characteristic information through user instruction information; Step 7321: Find the corresponding identical instruction information based on instruction feature information; Step 7322: If the same instruction information exists, output the updated user information and execute the deletion instruction operation according to the user instruction information; Step 7323: If the same instruction information does not exist, obtain the extended temporary information through the user request information and execute steps 72 to 73 to obtain the updated user information and output it.

9. A magnetic lock security authorization method for IoT access control according to claim 1, characterized in that, Methods for obtaining door-opening user information include: Step 10: Obtain an image of the hand opening the door; Step 11: Determine hand features using images of hands opening the door; Step 12: Find corresponding similar hand information based on hand feature information; Step 13: When similar hand information is present, execute the magnetic lock opening operation; Step 14: When similar hand information does not exist, output the preset door opening information table to obtain the door opening user information.

10. A magnetic lock security authorization system for Internet of Things access control, characterized in that, include: The acquisition module is used to acquire user images, user departure images, original user information, extension application information, user instruction information, and images of hands opening the door. A memory for storing a program of a magnetic lock security authorization method for Internet of Things access control as described in any one of claims 1 to 9; The processor loads and executes programs from memory.