Intelligent lock temporary unlocking method and device, computer device and storage medium
By using a smart lock temporary unlocking method and an electronic key management system to provide temporary unlocking codes, the problems of difficult repairs caused by Bluetooth connection failures and inconvenient traditional key management are solved, thus realizing safe and efficient management of power cabinets and unified monitoring of devices from multiple manufacturers.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGZHOU POWER SUPPLY BUREAU GUANGDONG POWER GRID CO LTD
- Filing Date
- 2024-06-25
- Publication Date
- 2026-07-07
AI Technical Summary
When the existing smart lock system fails to connect via Bluetooth, repair personnel are unable to obtain the unlocking code, which affects the efficiency of emergency repairs to the power cabinet. Furthermore, traditional physical key management presents security risks and is inconvenient to manage.
This invention provides a method for temporarily unlocking smart locks. It manages smart keys with real-name registration, distributes temporary unlock codes electronically, supports automatic or manual acquisition, ensures that only authorized personnel can obtain the unlock code, and provides a backup acquisition method when Bluetooth connection fails, thereby achieving centralized and unified management and real-time monitoring.
It improves the security management level of power cabinets, reduces delays caused by key problems, ensures that emergency repair personnel can obtain the unlocking code in a timely manner, improves the reliability of power supply and the accuracy of the unlocking process, and supports unified scheduling and monitoring of smart lock devices from multiple manufacturers.
Smart Images

Figure CN118629110B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart lock technology, and in particular to a method, apparatus, computer device, computer-readable storage medium, and computer program product for temporarily unlocking a smart lock. Background Technology
[0002] With the rapid development of smart grids, power distribution cabinets, as a crucial component of the power grid, are vital for ensuring power supply security and reliability. Traditional power distribution cabinet locking systems rely heavily on physical keys, leading to inconvenience in management, significant security risks, and difficulties in real-time monitoring. Therefore, adopting modern intelligent locking systems is essential to improve the security management of power distribution cabinets. Intelligent lock service management and application systems enable centralized and unified management of intelligent lock devices from multiple manufacturers. Intelligent key allocation employs a "real-name" management system, allowing maintenance personnel to open relevant cabinets based on work orders, substations, and areas. This improves the safety and reliability of on-site operations and enhances the precision and intelligence of distribution network operation and maintenance.
[0003] Currently, smart keys need to connect to a mobile phone via Bluetooth to obtain an unlocking code. However, due to differences in Bluetooth versions or mobile phone types, there may be instances where obtaining the unlocking code fails, preventing repair personnel from unlocking the door and carrying out repairs upon arrival at the scene.
[0004] Therefore, there is an urgent need for a method, device, computer equipment, computer-readable storage medium, and computer program product for temporarily unlocking smart locks, which can improve the efficiency of obtaining the unlocking code when it is necessary to open the smart lock. Summary of the Invention
[0005] Therefore, it is necessary to provide a method, device, computer equipment, computer-readable storage medium, and computer program product for temporarily unlocking smart locks that can improve the efficiency of obtaining the unlocking code when it is necessary to unlock the smart lock, in order to address the above-mentioned technical problems.
[0006] Firstly, this application provides a method for temporarily unlocking a smart lock, including:
[0007] Retrieve the account login request based on the input from the front-end page;
[0008] Upon successful account login, a first page response message is sent, which includes at least one function option identifier and a corresponding jump control identifier on the fault repair page.
[0009] Receive the operation request returned based on the jump control identifier;
[0010] In response to the operation request, a second page response message is sent, which includes a link to fill in the information on the target lock page for temporary permission verification.
[0011] Receive a request to obtain a temporary unlock code returned by filling in the link based on the information;
[0012] If the temporary unlock code acquisition request is verified, a corresponding temporary unlock code is generated and returned.
[0013] In one embodiment, the function option identifier includes a work order list option identifier; receiving the operation request returned based on the jump control identifier includes:
[0014] Receive requests to fill out work orders;
[0015] If the filling operation request is verified, a third page response information is sent. The third page response information includes an embedded sub-identifier of the jump control identifier corresponding to the work order list option identifier.
[0016] Receive the operation request returned based on the embedded sub-identifier.
[0017] In one embodiment, the function option identifier includes a temporary unlock option identifier.
[0018] In one embodiment, the process of determining the information filling link includes:
[0019] Obtain historical communication connection records between the electronic key and the device;
[0020] Based on the historical communication connection records, determine the corresponding information to fill in the link.
[0021] In one embodiment, determining the corresponding information filling link based on the historical communication connection record includes:
[0022] If a communication connection is established between the electronic key and the device based on the historical communication connection records, the corresponding page fields in the information entry link include the door lock number, unlocking reason, authorization duration, and an automatic unlocking confirmation button. The automatic unlocking confirmation button is used to indicate that after actively obtaining the corresponding temporary unlocking code through the electronic key, an automatic unlocking operation will be performed.
[0023] In one embodiment, determining the corresponding information filling link based on the historical connection records includes:
[0024] If it is determined from the historical communication connection records that there is no communication connection between the electronic key and the device, the corresponding page fields for the information filling link include key number, door lock number, unlocking reason, authorization duration, and a confirmation button for manual unlocking. The confirmation button for manual unlocking is used to indicate that the temporary unlocking code is passively input into the unlocking code input panel of the electronic key and to perform a manual unlocking operation.
[0025] Secondly, this application also provides a temporary unlocking device for a smart lock, comprising:
[0026] The acquisition module is used to acquire account login requests based on input from the front-end page;
[0027] The sending module is used to send a first page response information when the account login is successful. The first page response information includes at least one function option identifier and a corresponding jump control identifier of the fault repair page.
[0028] The acquisition module is also used to receive an operation request returned based on the jump control identifier;
[0029] The sending module is also configured to respond to the operation request by sending a second page response information, the second page response information including a link to fill in the information of the target lock page for temporary verification of permissions;
[0030] The acquisition module is also used to receive a temporary unlocking code acquisition request returned by filling in the link based on the information;
[0031] The sending module is also used to generate and return a corresponding temporary unlocking code if the temporary unlocking code acquisition request is verified.
[0032] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0033] Retrieve the account login request based on the input from the front-end page;
[0034] Upon successful account login, a first page response message is sent, which includes at least one function option identifier and a corresponding jump control identifier on the fault repair page.
[0035] Receive the operation request returned based on the jump control identifier;
[0036] In response to the operation request, a second page response message is sent, which includes a link to fill in the information on the target lock page for temporary permission verification.
[0037] Receive a request to obtain a temporary unlock code returned by filling in the link based on the information;
[0038] If the temporary unlock code acquisition request is verified, a corresponding temporary unlock code is generated and returned.
[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:
[0040] Retrieve the account login request based on the input from the front-end page;
[0041] Upon successful account login, a first page response message is sent, which includes at least one function option identifier and a corresponding jump control identifier on the fault repair page.
[0042] Receive the operation request returned based on the jump control identifier;
[0043] In response to the operation request, a second page response message is sent, which includes a link to fill in the information on the target lock page for temporary permission verification.
[0044] Receive a request to obtain a temporary unlock code returned by filling in the link based on the information;
[0045] If the temporary unlock code acquisition request is verified, a corresponding temporary unlock code is generated and returned.
[0046] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:
[0047] Retrieve the account login request based on the input from the front-end page;
[0048] Upon successful account login, a first page response message is sent, which includes at least one function option identifier and a corresponding jump control identifier on the fault repair page.
[0049] Receive the operation request returned based on the jump control identifier;
[0050] In response to the operation request, a second page response message is sent, which includes a link to fill in the information on the target lock page for temporary permission verification.
[0051] Receive a request to obtain a temporary unlock code returned by filling in the link based on the information;
[0052] If the temporary unlock code acquisition request is verified, a corresponding temporary unlock code is generated and returned.
[0053] The aforementioned methods, devices, computer equipment, computer-readable storage media, and computer program products for temporary unlocking of smart locks enhance the security management of power distribution cabinets by managing smart keys with real names, ensuring that only authorized maintenance personnel can obtain the unlocking code. In traditional physical key management methods, keys may be lost or misused. The smart lock control system electronically assigns unlocking codes, enabling rapid response to emergency repair needs and reducing delays caused by key issues. The smart lock control system can monitor the lock status in real time, ensuring that the power distribution cabinet can be quickly opened for emergency repairs, improving the reliability of power supply. To address the potential failure of Bluetooth connections, this method provides a backup unlocking code acquisition method, ensuring that maintenance personnel can obtain the unlocking code promptly even if the Bluetooth connection fails. Through a centralized and unified management system, smart lock devices from multiple manufacturers can be managed more effectively, achieving unified scheduling and monitoring of different lock control devices. The smart lock control system can assign corresponding unlocking permissions based on work order tasks, the specific situation of the power distribution room and area, supporting refined management of power distribution network operation and maintenance. In emergency repair situations, this method can quickly generate temporary unlock codes, ensuring that repair personnel can promptly enter the power cabinet to perform necessary operations. Automated unlock code generation and distribution reduce the possibility of human error and improve the accuracy of the entire unlocking process. Attached Figure Description
[0054] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0055] Figure 1 This is an application environment diagram of a temporary unlocking method for a smart lock in one embodiment;
[0056] Figure 2 This is a flowchart illustrating a temporary unlocking method for a smart lock in one embodiment;
[0057] Figure 3 This is a flowchart illustrating a temporary unlocking method for a smart lock in another embodiment;
[0058] Figure 4 This is a diagram of the account login page for a temporary unlocking device of a smart lock in one embodiment;
[0059] Figure 5 This is a diagram showing the troubleshooting process for a temporary unlocking device of a smart lock in one embodiment.
[0060] Figure 6This is a diagram of the work order processing page for a temporary unlocking device of a smart lock in one embodiment.
[0061] Figure 7 This is a lock control page diagram of a temporary unlocking device for a smart lock in one embodiment;
[0062] Figure 8 This is a structural block diagram of a temporary unlocking device for a smart lock in one embodiment;
[0063] Figure 9 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0064] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0065] The temporary unlocking method for smart locks provided in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, terminal 102 communicates with server 104 via a network. A data storage system can store the data that server 104 needs to process. The data storage system can be integrated onto server 104, or it can be located in the cloud or on another network server.
[0066] The server receives an account login request based on input from the front-end page; if the account login is successful, it sends a first page response message, which includes at least one function option identifier from the fault repair page and a corresponding redirection control identifier; it receives an operation request returned based on the redirection control identifier; in response to the operation request, it sends a second page response message, which includes an information entry link for the target lock control page used for temporary authorization verification; it receives a temporary unlock code retrieval request returned based on the information entry link; if the temporary unlock code retrieval request is verified, it generates and returns the corresponding temporary unlock code.
[0067] The terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart in-vehicle systems, and projection devices. Portable wearable devices can include smartwatches, smart bracelets, and head-mounted displays. Head-mounted displays can be virtual reality (VR) devices, augmented reality (AR) devices, and smart glasses. The server 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0068] In one exemplary embodiment, such as Figure 2 As shown, a method for temporarily unlocking a smart lock is provided, which can be applied to... Figure 1 Taking the server in the example, the explanation includes the following steps S202 to S212. Wherein:
[0069] Step S202: Obtain the account login request based on the input on the front-end page.
[0070] Specifically, the front-end page refers to the interface through which the user interacts with the server, such as the interface of a webpage or mobile application. On this interface, users can input information using controls such as input boxes. The user enters their account information, such as username and password, on the front-end page and then submits this login request. This request is the first step for the user to access the server for further operations. The server needs to be able to receive the login request submitted by the user. This typically involves the front-end page sending data to the back-end server, which receives and processes this data. The server needs to verify the correctness of this input information to ensure that only legitimate users can log in.
[0071] The purpose of this step is to verify the user's identity and ensure they have the right to access the smart lock's unlocking function. This is part of a security measure to prevent unauthorized access.
[0072] Step S204: If the account login is successful, send the first page response information. The first page response information includes at least one function option identifier and the corresponding jump control identifier of the fault repair page.
[0073] Specifically, after a successful account login, the server needs to send the first page response information to the user, which is usually displayed through the front-end page.
[0074] The fault repair page refers to a specific page within the server, dedicated to handling fault repair tasks related to power cabinets. After a user successfully logs in, the server may redirect them to this page on the device. The fault repair page displays multiple function options, each with an identifier. These identifiers may be buttons, links, or menu items, which users can click to select the desired action. In addition to function options, the page also includes navigation controls that allow users to navigate between different pages or functions. Each navigation control also has an identifier to help the system identify the page or function the user wants to navigate to.
[0075] The purpose of this step is to provide users with a clear interface so that they know what operations they can perform after successfully logging in, and can easily navigate between different parts of the server.
[0076] Step S206: Receive the operation request returned based on the jump control identifier.
[0077] Step S208: In response to the operation request, send a second page response message, which includes a link to fill in the information on the target lock page for temporary authorization verification.
[0078] Specifically, after a user initiates an action request by clicking a navigation control (such as a button or link), the server needs to receive this request. This typically means that the user's front-end interface sends a signal to the server indicating that the user wants to perform a specific action. Upon receiving the action request, the server needs to respond. This usually involves the server processing the request and determining the next step based on the type of request. In response to the user's action request, the server will send a second page response message to the user. This response may include loading a new page or displaying new information or controls on the current page.
[0079] In some situations, users may need temporary access to certain functions or data. The server needs to verify whether the user has the authority to make such temporary access. This may involve checking the user's role, permissions, or specific task authorization. The target lock page refers to the specific page the user needs to access, which is related to the control of the smart lock. For example, it might be a page that allows the user to enter an unlock code or perform other lock operations. To perform temporary permission verification, the server may provide a link or form through which the user needs to fill in the necessary information. This information may include the user's identity information, task details, or other verification data.
[0080] In this way, the server can grant users temporary access without violating security policies. This increases the server's flexibility while ensuring that only appropriate users can access specific functions when needed.
[0081] Step S210: Receive a request to obtain a temporary unlock code based on the information filling link.
[0082] Specifically, after the user fills in the required information at the information fill-in link and submits it, this operation generates a request, which is sent back to the server. This request contains all the information filled in by the user, as well as a request for a temporary unlocking code. The server receives the temporary unlocking code request submitted by the user. This request is the user's way of asking the server to provide a temporary unlocking code so that the smart lock can be opened within a short period of time.
[0083] The purpose of this step is to provide a secure way for users to obtain temporary unlock codes when needed, while ensuring the security and controllability of the entire process.
[0084] Step S212: If the temporary unlock code acquisition request is verified, generate the corresponding temporary unlock code and return it.
[0085] Specifically, before a user submits a request, the server may need to perform a series of verification steps to ensure the request's legitimacy and security. This may include checking the user's identity, permissions, and whether the requested unlock code complies with security policies. If the user's request passes verification, the server will generate a temporary unlock code. This unlock code typically has a time limit or a usage limit to ensure it is not valid indefinitely, thereby reducing security risks. Once the temporary unlock code is generated, the server will return it to the user. The user can use this code to temporarily unlock the smart lock.
[0086] The aforementioned method for temporarily unlocking smart locks utilizes a real-name registration system for smart keys, ensuring that only authorized maintenance personnel can obtain the unlocking code, thereby enhancing the security management of the power cabinet. In traditional physical key management, keys can be lost or misused. The smart lock control server electronically assigns unlocking codes, enabling rapid response to emergency repair requests and reducing delays caused by key issues. The smart lock control server can monitor the lock's status in real time, ensuring rapid access to the power cabinet for emergency repairs, improving the reliability of power supply. Addressing the potential for Bluetooth connection failures, this method provides a backup unlocking code acquisition method, ensuring timely access for repair personnel even in the event of Bluetooth connection failure. A centralized and unified management server allows for more effective management of smart lock devices from multiple manufacturers, enabling unified scheduling and monitoring of different lock control devices. The smart lock control server can assign appropriate unlocking permissions based on work order tasks, power room conditions, and regional specifics, supporting refined management of power distribution network operations. In emergency repair situations, this method can quickly generate temporary unlocking codes, ensuring that repair personnel can promptly enter the power cabinet to perform necessary operations. Automated unlock code generation and distribution reduce the possibility of human error and improve the accuracy of the entire unlocking process.
[0087] In one exemplary embodiment, such as Figure 3 As shown, the function option identifiers include work order list option identifiers; receiving operation requests based on jump control identifiers includes:
[0088] Step S302: Receive the request to fill in the business work order;
[0089] Step S304: If the operation request is verified, send the third page response information. The third page response information includes the embedded sub-identifier of the jump control identifier corresponding to the work order list option identifier.
[0090] Step S306: Receive the operation request returned based on the embedded sub-identifier.
[0091] Specifically, the function option identifier refers to the function options displayed on the user interface that are available for the user to select. Each option has a unique identifier, which is used by the server to identify the operation that the user wants to perform.
[0092] Specifically, the function option identifiers here include the work order list option, which is the interface section where users can view or manage work orders. The server receives operation requests from users based on navigation control identifiers. For example, if a user clicks a button to fill out or view a work order, this click action generates an operation request. One possible operation request from a user is to fill out a business work order. This usually means that the user needs to enter or update information related to the work order. After the user submits a request to fill out a work order, the server needs to verify the validity of this request, which may include checking whether the user has permission to fill out a work order and whether the submitted information meets the requirements.
[0093] If the action request is successfully verified, the server will send a third-page response to the user. This may include new page content or an update to the current page. The third-page response may contain further subdivisions of the ticket list option identifiers, i.e., embedded sub-identifiers of the redirect control identifiers.
[0094] Users can perform further operations based on these embedded sub-identifiers, such as selecting to view specific types of work orders, or accessing the lock control page from the work order filling page. The server receives operation requests returned based on the embedded sub-identifiers.
[0095] It should be noted that users can also access the lock control page while filling out a work order. The verification result of the work order does not have to be related to the user's access permission to the lock control page.
[0096] In this embodiment, by providing clear function options and sub-identifiers, the user experience can be improved, enabling users to intuitively find and perform the operations they need. A user-friendly interface is provided, allowing users to operate according to their needs while ensuring the security and effectiveness of the operations.
[0097] In one exemplary embodiment, the function option identifier includes a temporary unlock option identifier.
[0098] Specifically, the device's user interface typically offers multiple function options for the user to choose from, such as unlocking, viewing status, and modifying settings. Each function option has a function option identifier, which the server uses to identify which function the user has selected.
[0099] The temporary unlock option identifier is one type of function option identifier, specifically used in scenarios where users need to temporarily unlock the smart lock. This identifier represents a specific operation option on the user interface, allowing the user to directly request temporary unlocking. When the user selects this temporary unlock option, the server provides a way, usually by redirecting to the lock control page, that allows the user to directly perform the unlocking operation. This page may contain a form for entering an unlock code, a QR code scanner, or other unlocking mechanisms.
[0100] In this embodiment, by providing a clear temporary unlocking option on the interface, the user experience can be improved, allowing users to intuitively find and use the unlocking function, and enabling users to quickly access the unlocking function in emergency situations.
[0101] In one exemplary embodiment, the process of determining the information filling link includes:
[0102] Obtain historical communication connection records between the electronic key and the device;
[0103] Based on historical communication connection records, determine the corresponding information to fill in the link.
[0104] Specifically, the server first needs to collect and analyze records of past communications between the electronic key (smart key) and the user's device (such as a mobile phone or tablet). This may include information such as connection frequency, time, duration, and successful and failed attempts. By analyzing this historical data, the server can identify communication patterns, preferred communication protocols, and potential compatibility issues. For example, the server may discover that a certain device has a higher connection success rate with the electronic key during a specific time period, or that a certain device has a more stable connection when using a specific communication protocol.
[0105] When there has been a communication connection between the electronic key and the device, the information to be filled in the information entry link should be different from the information to be filled in when there has been no communication connection.
[0106] In this embodiment, by analyzing the historical communication connection records between electronic devices, different information filling links can be pushed, achieving intelligent and personalized verification.
[0107] In one exemplary embodiment, the corresponding information filling link is determined based on historical communication connection records, including:
[0108] If a communication connection is established between the electronic key and the device based on historical communication connection records, the corresponding page fields for information entry include the door lock number, reason for unlocking, authorization duration, and an automatic unlocking confirmation button. The automatic unlocking confirmation button is used to indicate that after actively obtaining the corresponding temporary unlocking code through the electronic key, the automatic unlocking operation will be executed.
[0109] Specifically, the server analyzes historical communication connection records to confirm a stable communication connection between the electronic key and the user's device. In this case, the page accessed by the user via the information filling link includes the following fields:
[0110] Lock number: Identifies the smart lock that needs to be unlocked.
[0111] Reason for unlocking: The specific reason why the user requests to unlock.
[0112] Authorization duration: The length of time the temporary unlock code is valid.
[0113] Automatic unlock confirmation button: Users can click this button to authorize the server to automatically perform the unlocking operation after the electronic key obtains a temporary unlocking code.
[0114] In one exemplary embodiment, the corresponding information filling link is determined based on historical connection records, including:
[0115] If it is determined from historical communication connection records that there is no communication connection between the electronic key and the device, the corresponding page fields for information entry include key number, door lock number, unlocking reason, authorization duration, and a confirmation button for manual unlocking. The confirmation button for manual unlocking is used to indicate that the temporary unlocking code is passively entered into the unlocking code input panel of the electronic key and to perform a manual unlocking operation.
[0116] Specifically, by analyzing historical communication connection records, the server discovered that there was no stable communication connection between the electronic key and the user's device. In this case, the page accessed by the user via the information filling link contains the following fields:
[0117] Key number: A number that identifies the electronic key and may be used to identify the key in the absence of direct communication.
[0118] Lock number: Identifies the smart lock that needs to be unlocked.
[0119] Reason for unlocking: The specific reason why the user requests to unlock.
[0120] Authorization duration: The length of time the temporary unlock code is valid.
[0121] Confirmation button for manual unlocking: Users can click this button to instruct the server to generate a temporary unlocking code. Users then need to manually enter this unlocking code into the unlocking code input panel of the electronic key to perform the manual unlocking operation.
[0122] Commonalities: Regardless of whether a communication connection exists, users need to provide the door lock number, reason for unlocking, and authorization duration. These are all to ensure the security and accuracy of the unlocking request.
[0123] difference:
[0124] 1. When a communication connection exists, an automatic unlocking option can be provided, which typically relies on the direct communication capability between the electronic key and the user device.
[0125] 2. In the absence of a communication connection, the user needs to manually enter the unlock code, which may be because the communication capability between the electronic key and the user device is limited or non-existent.
[0126] In this embodiment, through these two embodiments, the server flexibly adjusts the user operation process according to different communication conditions to ensure that the unlocking process is both safe and convenient.
[0127] In an exemplary embodiment, before obtaining the account login request based on the front-end page, the method further includes: developing the front-end page; the front-end page development method includes the Vue progressive framework, which is used to encapsulate hypertext markup templates, cascading style sheet templates, and client-side script templates into template components.
[0128] In one exemplary embodiment, the front-end page is initialized using the Vue progressive framework, the hypertext markup template is converted into a virtual document object model, and the front-end page is partially rendered using the virtual document object model.
[0129] In an exemplary embodiment, when there is changed data in the template component, the virtual document object model is rendered using the Vue progressive framework based on the changed data; the minimum update range of the front-end page is obtained based on the difference between the virtual document object model before and after rendering; and the front-end page is partially rendered using the real document object model based on the minimum update range.
[0130] In one exemplary embodiment, the Model-View-View Model (MVVM) pattern is used to establish bidirectional links between the view layer and the business logic layer in the Vue Progressive Framework, as well as between the data layer and the business logic layer in the Vue Progressive Framework.
[0131] In an exemplary embodiment, the lifecycle steps of the Vue progressive framework include a creation step, a mounting step, an update step, and a destruction step; based on the change data, the corresponding hook functions and execution periods in the lifecycle steps are determined.
[0132] The most detailed embodiment of this application is as follows:
[0133] Figure 4This is a screenshot of the account login page, where users... Figure 4 The device shown displays the login account information for its application front-end interface.
[0134] After successfully logging in, the device enters the fault repair page. Figure 5 The image shows a page for emergency repair. The page contains multiple function option icons, including an order list icon, a station query icon, and a temporary unlocking icon. The unlocking solution in this application mainly selects the two function entry points: the order list and the temporary unlocking.
[0135] When a user clicks the "Select Order List" icon, they will be redirected to... Figure 6 The page shown Figure 6 A page for filling out work orders, in Figure 6 Users can fill in the fault location, the person reporting the fault, the fault time, and the time of reporting the fault in the work order. Figure 6 The page also contains an embedded sub-identifier for function options (i.e., an electronic lock control identifier).
[0136] Figure 7 The image shows the lock control page. Users can click on either the temporary unlock icon or the electronic lock control icon to be redirected to [the page / location]. Figure 7 On the page shown. Figure 7 The device offers both automatic and manual unlocking functions, allowing users to choose the appropriate method based on their needs. When the device and electronic key have established a communication connection, users only need to fill in the lock number, reason for unlocking, and authorization duration. Clicking "Automatic Unlocking" will allow the electronic key to proactively obtain a temporary unlocking code in the background and unlock the smart lock with one click. When the device and electronic key have not established a communication connection, users need to fill in the key code, lock number, reason for unlocking, and authorization duration. Clicking "Manual Unlocking" will display a temporary unlocking code on the page, which users can manually enter into the unlocking code input panel of the electronic key to unlock the smart lock.
[0137] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0138] Based on the same inventive concept, this application also provides a smart lock temporary unlocking device for implementing the aforementioned smart lock temporary unlocking method. The solution provided by this device is similar to the implementation described in the above method; therefore, the specific limitations in one or more smart lock temporary unlocking device embodiments provided below can be found in the limitations of the smart lock temporary unlocking method described above, and will not be repeated here.
[0139] In one exemplary embodiment, such as Figure 8 As shown, a temporary unlocking device for a smart lock is provided, including: an acquisition module 802, used to acquire an account login request based on input from a front-end page;
[0140] The sending module 804 is used to send the first page response information when the account login is successful. The first page response information includes at least one function option identifier and the corresponding jump control identifier of the fault repair page.
[0141] The acquisition module 802 is also used to receive operation requests returned based on the jump control identifier;
[0142] The sending module 804 is also used to respond to the operation request by sending a second page response information, which includes a link to fill in the information of the target lock page for temporary verification of permissions.
[0143] The acquisition module 802 is also used to receive a temporary unlocking code acquisition request returned based on the information filling link;
[0144] The sending module 804 is also used to generate and return the corresponding temporary unlocking code if the temporary unlocking code acquisition request is verified.
[0145] In an exemplary embodiment, the function option identifier includes the work order list option identifier; the acquisition module 802 is also used to receive a work order filling operation request;
[0146] The sending module 804 is also used to send third page response information when the operation request is verified. The third page response information includes the embedded sub-identifier of the corresponding jump control identifier of the work order list option identifier.
[0147] The acquisition module 802 is also used to receive operation requests returned based on the embedded sub-identifier.
[0148] In one exemplary embodiment, the function option identifier includes a temporary unlock option identifier.
[0149] In one exemplary embodiment, the acquisition module 802 is further configured to acquire historical communication connection records between the electronic key and the device; the processing module is configured to determine the corresponding information to fill in the link based on the historical communication connection records.
[0150] In an exemplary embodiment, when it is determined that there is a communication connection between the electronic key and the device based on historical communication connection records, the corresponding page fields for filling in the information include the door lock number, unlocking reason, authorization duration, and an automatic unlocking confirmation button. The automatic unlocking confirmation button is used to indicate that after actively obtaining the corresponding temporary unlocking code through the electronic key, the automatic unlocking operation will be performed.
[0151] In an exemplary embodiment, if it is determined from historical communication connection records that there is no communication connection between the electronic key and the device, the corresponding page fields for filling in the information include key number, door lock number, unlocking reason, authorization duration, and a confirmation button for manual unlocking. The confirmation button for manual unlocking is used to indicate that the temporary unlocking code is passively entered into the unlocking code input panel of the electronic key and to perform a manual unlocking operation.
[0152] The modules in the aforementioned temporary unlocking device for smart locks can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0153] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores account data, login history data, etc. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communicating with external terminals via a network. When executed by the processor, the computer program implements a temporary unlocking method for a smart lock.
[0154] Those skilled in the art will understand that Figure 9 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0155] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0156] Retrieve the account login request based on the input from the front-end page;
[0157] Upon successful account login, send the first page response information, which includes at least one function option identifier and the corresponding jump control identifier on the fault repair page.
[0158] Receive operation requests returned based on the jump control identifier;
[0159] In response to the operation request, a second page response message is sent, which includes a link to fill in the information on the target lock page for temporary authorization verification.
[0160] Receive a request to obtain a temporary unlock code returned based on the information filled in via the link;
[0161] If the temporary unlock code acquisition request is verified, the corresponding temporary unlock code is generated and returned.
[0162] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0163] Function option identifiers include work order list option identifiers;
[0164] Receive requests to fill out work orders;
[0165] If the operation request is successfully verified, a third-page response is sent. The third-page response includes an embedded sub-identifier of the corresponding jump control identifier for the work order list option identifier.
[0166] Receive operation requests returned based on embedded sub-identifiers.
[0167] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0168] The function option labels include the temporary unlock option label.
[0169] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0170] Obtain historical communication connection records between the electronic key and the device;
[0171] Based on historical communication connection records, determine the corresponding information to fill in the link.
[0172] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0173] If a communication connection is established between the electronic key and the device based on historical communication connection records, the corresponding page fields for information entry include the door lock number, reason for unlocking, authorization duration, and an automatic unlocking confirmation button. The automatic unlocking confirmation button is used to indicate that after actively obtaining the corresponding temporary unlocking code through the electronic key, the automatic unlocking operation will be executed.
[0174] In one embodiment, the processor, when executing a computer program, also performs the following steps:
[0175] If it is determined from historical communication connection records that there is no communication connection between the electronic key and the device, the corresponding page fields for information entry include key number, door lock number, unlocking reason, authorization duration, and a confirmation button for manual unlocking. The confirmation button for manual unlocking is used to indicate that the temporary unlocking code is passively entered into the unlocking code input panel of the electronic key and to perform a manual unlocking operation.
[0176] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:
[0177] Retrieve the account login request based on the input from the front-end page;
[0178] Upon successful account login, send the first page response information, which includes at least one function option identifier and the corresponding jump control identifier on the fault repair page.
[0179] Receive operation requests returned based on the jump control identifier;
[0180] In response to the operation request, a second page response message is sent, which includes a link to fill in the information on the target lock page for temporary authorization verification.
[0181] Receive a request to obtain a temporary unlock code returned based on the information filled in via the link;
[0182] If the temporary unlock code acquisition request is verified, the corresponding temporary unlock code is generated and returned.
[0183] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0184] Function option identifiers include work order list option identifiers;
[0185] Receive requests to fill out work orders;
[0186] If the operation request is successfully verified, a third-page response is sent. The third-page response includes an embedded sub-identifier of the corresponding jump control identifier for the work order list option identifier.
[0187] Receive operation requests returned based on embedded sub-identifiers.
[0188] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0189] The function option labels include the temporary unlock option label.
[0190] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0191] Obtain historical communication connection records between the electronic key and the device;
[0192] Based on historical communication connection records, determine the corresponding information to fill in the link.
[0193] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0194] If a communication connection is established between the electronic key and the device based on historical communication connection records, the corresponding page fields for information entry include the door lock number, reason for unlocking, authorization duration, and an automatic unlocking confirmation button. The automatic unlocking confirmation button is used to indicate that after actively obtaining the corresponding temporary unlocking code through the electronic key, the automatic unlocking operation will be executed.
[0195] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0196] If it is determined from historical communication connection records that there is no communication connection between the electronic key and the device, the corresponding page fields for information entry include key number, door lock number, unlocking reason, authorization duration, and a confirmation button for manual unlocking. The confirmation button for manual unlocking is used to indicate that the temporary unlocking code is passively entered into the unlocking code input panel of the electronic key and to perform a manual unlocking operation.
[0197] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, performs the following steps:
[0198] Retrieve the account login request based on the input from the front-end page;
[0199] Upon successful account login, send the first page response information, which includes at least one function option identifier and the corresponding jump control identifier on the fault repair page.
[0200] Receive operation requests returned based on the jump control identifier;
[0201] In response to the operation request, a second page response message is sent, which includes a link to fill in the information on the target lock page for temporary authorization verification.
[0202] Receive a request to obtain a temporary unlock code returned based on the information filled in via the link;
[0203] If the temporary unlock code acquisition request is verified, the corresponding temporary unlock code is generated and returned.
[0204] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0205] Function option identifiers include work order list option identifiers;
[0206] Receive requests to fill out work orders;
[0207] If the operation request is successfully verified, a third-page response is sent. The third-page response includes an embedded sub-identifier of the corresponding jump control identifier for the work order list option identifier.
[0208] Receive operation requests returned based on embedded sub-identifiers.
[0209] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0210] The function option labels include the temporary unlock option label.
[0211] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0212] Obtain historical communication connection records between the electronic key and the device;
[0213] Based on historical communication connection records, determine the corresponding information to fill in the link.
[0214] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0215] If a communication connection is established between the electronic key and the device based on historical communication connection records, the corresponding page fields for information entry include the door lock number, reason for unlocking, authorization duration, and an automatic unlocking confirmation button. The automatic unlocking confirmation button is used to indicate that after actively obtaining the corresponding temporary unlocking code through the electronic key, the automatic unlocking operation will be executed.
[0216] In one embodiment, when the computer program is executed by a processor, it also performs the following steps:
[0217] If it is determined from historical communication connection records that there is no communication connection between the electronic key and the device, the corresponding page fields for information entry include key number, door lock number, unlocking reason, authorization duration, and a confirmation button for manual unlocking. The confirmation button for manual unlocking is used to indicate that the temporary unlocking code is passively entered into the unlocking code input panel of the electronic key and to perform a manual unlocking operation.
[0218] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0219] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0220] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0221] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for temporarily unlocking a smart lock, characterized in that, The method includes: Retrieve the account login request based on the input from the front-end page; Upon successful account login, a first page response message is sent, which includes at least one function option identifier and a corresponding jump control identifier on the fault repair page. Receive the operation request returned based on the jump control identifier; In response to the operation request, a second page response message is sent, which includes an information entry link for the target lock control page used for temporary verification of permissions. The process of determining the information entry link includes: obtaining historical communication connection records between the electronic key and the device; determining the corresponding information entry link based on the historical communication connection records, wherein: when it is determined based on the historical communication connection records that there is a communication connection between the electronic key and the device, the page entry items corresponding to the information entry link include the door lock number, unlocking reason, authorization duration, and an automatic unlocking confirmation button. The automatic unlocking confirmation button is used to indicate that after actively obtaining the corresponding temporary unlocking code through the electronic key, an automatic unlocking operation is performed. Receive a request to obtain a temporary unlock code returned by filling in the link based on the information; If the temporary unlock code acquisition request is verified, a corresponding temporary unlock code is generated and returned.
2. The method according to claim 1, characterized in that, The function option identifier includes a work order list option identifier; receiving the operation request returned based on the jump control identifier includes: Receive requests to fill out work orders; If the filling operation request is verified, a third page response information is sent. The third page response information includes an embedded sub-identifier of the jump control identifier corresponding to the work order list option identifier. Receive the operation request returned based on the embedded sub-identifier.
3. The method according to claim 1, characterized in that, The function option identifier includes a temporary unlock option identifier.
4. The method according to claim 1, characterized in that, The step of determining the corresponding information to fill in the link based on the historical connection records includes: If it is determined from the historical communication connection records that there is no communication connection between the electronic key and the device, the corresponding page fields for the information filling link include key number, door lock number, unlocking reason, authorization duration, and a confirmation button for manual unlocking. The confirmation button for manual unlocking is used to indicate that the temporary unlocking code is passively input into the unlocking code input panel of the electronic key and to perform a manual unlocking operation.
5. A temporary unlocking device for a smart lock, characterized in that, The apparatus for using the method of any one of claims 1 to 4 comprises: The acquisition module is used to acquire account login requests based on input from the front-end page; The sending module is used to send a first page response information when the account login is successful. The first page response information includes at least one function option identifier and a corresponding jump control identifier of the fault repair page. The acquisition module is also used to receive an operation request returned based on the jump control identifier; The sending module is also configured to respond to the operation request by sending a second page response information, the second page response information including a link to fill in the information of the target lock page for temporary verification of permissions; The acquisition module is also used to receive a temporary unlocking code acquisition request returned by filling in the link based on the information; The sending module is also used to generate and return a corresponding temporary unlocking code if the temporary unlocking code acquisition request is verified.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4.