Lock end multi-task processing method and device, intelligent lock, storage medium and equipment

By introducing the concepts of main task and functional tasks into the smart lock, the problem of low processing efficiency of existing smart lock function events is solved, and the smart lock can handle multiple functional events at the same time, improving processing efficiency.

CN119516650APending Publication Date: 2025-02-25GUANGDONG KETYOO INTELLIGENT TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411671447.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

Existing smart locks are inefficient when handling functional events. The processing of functional events is sequential. A stuck function event will cause other functional events to fail to run, resulting in low processing efficiency.

Method used

By introducing the concepts of main tasks and functional tasks into the smart lock, the main task is driven to create corresponding functional tasks based on the received functional events, and transmit the functional events to the functional tasks for processing. After obtaining the event processing result, the main task executes event instructions.

Benefits of technology

It realizes that the smart lock can handle multiple functional events at the same time, improves the efficiency of the smart lock processing function events, avoids the sequential dependence of functional events, and improves the system's concurrent processing capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119516650A_ABST
    Figure CN119516650A_ABST
Patent Text Reader

Abstract

The invention provides a lock end multi-task processing method and device, an intelligent lock, a storage medium and equipment, and is applied to the intelligent lock which comprises a main task. The method comprises the steps of driving a main task to create a corresponding function task according to a received function event; transmitting the function event to the function task, and driving the function task to process the function event to obtain an event processing result; and transmitting the event processing result to the main task, so that the main task executes an event instruction according to the event processing result. The function event processing efficiency of the intelligent lock can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of lock-end task processing, and specifically to a lock-end multi-task processing method, device, smart lock, storage medium and equipment. Background Art

[0002] Most of the smart locks currently on the market do not have an operating system. The processing of functional events is carried out sequentially through clock fragments. If one functional event is stuck, other functional events cannot be run either. The processing of a single functional event is seriously coupled with the processing of other functional events and cannot run independently. It is often necessary to wait for the last functional event to be completed before executing the next functional event. Therefore, the efficiency of smart locks in processing functional events is very low. Summary of the invention

[0003] The purpose of this application is to overcome the shortcomings and deficiencies in the prior art and to provide a lock-end multi-tasking processing method, apparatus, smart lock, storage medium and device that can improve the efficiency of the smart lock in processing functional events.

[0004] A first aspect of an embodiment of the present application provides a lock-end multi-task processing method, which is applied to a smart lock, wherein the smart lock includes a main task; the method includes:

[0005] According to the received functional events, the main task is driven to create corresponding functional tasks;

[0006] Transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining an event processing result;

[0007] The event processing result is transmitted to the main task, so that the main task executes the event instruction according to the event processing result.

[0008] A second aspect of an embodiment of the present application provides a lock-end multi-task processing device, wherein the smart lock includes a main task; the device includes:

[0009] The function task creation module is used to drive the main task to create the corresponding function task according to the received function event;

[0010] A function event processing module, used for transmitting the function event to the function task, driving the function task to process the function event, and obtaining an event processing result;

[0011] The execution module is used to transmit the event processing result to the main task, so that the main task executes the event instruction according to the event processing result.

[0012] A third aspect of an embodiment of the present application provides a smart lock, the smart lock comprising a main task; the smart lock is used to perform the following steps:

[0013] According to the received functional events, the main task is driven to create corresponding functional tasks;

[0014] Transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining an event processing result;

[0015] The event processing result is transmitted to the main task, so that the main task executes the event instruction according to the event processing result.

[0016] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the lock-end multi-tasking processing method described above are implemented.

[0017] A fifth aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the steps of the lock-end multitasking method as described above when executing the computer program.

[0018] Compared with the related art, the present application can drive the main task to create a corresponding functional task according to the received functional event, and then transmit the functional event to the functional task, drive the functional task to process the functional event, obtain the event processing result, and then the main task executes the event instruction according to the event processing result to complete the processing and execution of the functional event. Since the functional time is processed by the corresponding functional task, multiple functional events can be processed at the same time, which improves the efficiency of the smart lock in processing functional events.

[0019] In order to provide a clearer understanding of the present application, the specific implementation of the present application will be described below in conjunction with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 The flowchart of the lock terminal multi-task processing method according to one embodiment of the present application.

[0021] Figure 2 Flow chart of steps S201 - S202 of a lock terminal multi-task processing method according to an embodiment of the present application.

[0022] Figure 3 This is a schematic diagram of module connections of a lock-end multi-task processing device according to an embodiment of the present application.

[0023] Figure 4 Schematic diagram of a smart lock according to an embodiment of the present application

[0024] 100. Lock-end multi-task processing device; 101. Function task creation module; 102. Function event processing module; 103. Execution module; 10. Smart lock. DETAILED DESCRIPTION

[0025] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0026] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.

[0027] When the following description relates to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. The singular forms of "a", "said" and "the" used in the present application and the appended claims are also intended to include the majority form, unless the context clearly indicates other meanings. The words "if" / "if" used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0028] In addition, in the description of this application, unless otherwise specified, "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.

[0029] See also Figure 1 , which is a flow chart of a lock-end multi-task processing method of an embodiment of the present application, the lock-end multi-task processing method is applied to a smart lock, and the smart lock includes a main task. Among them, the main task is a task processing unit that runs continuously when the smart lock is started.

[0030] The lock-end multitasking method includes:

[0031] S1: According to the received functional event, drive the main task to create the corresponding functional task.

[0032] Among them, functional events may include fingerprint verification, password verification, face recognition, running timed events, voice interaction, remote communication interaction and other functions that smart locks can perform.

[0033] There is an event task manager preset in the main task, which is used to create functional tasks. When the main task receives a functional event, the main task will execute the event task manager and occupy the data space of the smart lock to create the corresponding functional task.

[0034] S2: Transmit the functional event to the functional task, drive the functional task to process the functional event, and obtain an event processing result.

[0035] Among them, each functional task can call the data stored in the smart lock when processing a functional event. For example, the functional task corresponding to fingerprint verification can call the fingerprint data read by the smart lock in real time and the user fingerprint data pre-recorded by the smart lock; the functional task corresponding to password verification can call the unlock password input by the smart lock in real time and the unlock password data pre-recorded by the smart lock. After the functional task processes the functional event, it will get an event processing result, which is used to indicate whether the corresponding functional event is allowed to be executed.

[0036] S3: Transmitting the event processing result to the main task, so that the main task executes the event instruction according to the event processing result.

[0037] Different event processing results correspond to different event instructions. For example, if the event processing result indicates that the corresponding function event is not allowed to be executed, the corresponding event instruction includes an event instruction for refusing to execute the function event, and the corresponding event instruction may also include at least one event instruction such as emitting a prompt tone for refusing to execute, emitting a light for refusing to execute, displaying the result of refusing to execute, and displaying the reason for refusing to execute. If the event processing result indicates that the corresponding function event is allowed to be executed, the corresponding event instruction includes an event instruction for executing the function event, and the corresponding event instruction may also include at least one event instruction such as emitting a prompt tone for completing the execution, emitting a light for completing the execution, and displaying the result of completing the execution.

[0038] Compared with the related art, the present application can drive the main task to create a corresponding functional task according to the received functional event, and then transmit the functional event to the functional task, drive the functional task to process the functional event, obtain the event processing result, and then the main task executes the event instruction according to the event processing result to complete the processing and execution of the functional event. Since the functional time is processed by the corresponding functional task, multiple functional events can be processed at the same time, which improves the efficiency of the smart lock in processing functional events.

[0039] See also Figure 2In a feasible embodiment, the step of S2: transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining the event processing result comprises:

[0040] S201: Acquire a corresponding target function event set according to the system status of the smart lock.

[0041] The system state includes a first system state, a second system state and a third system state, therefore, step S201 includes: if the system state is the first system state, determining a preset first state function event set as the function event set; if the system state is the second system state, determining a preset second state function event set as the function event set; if the system state is the third system state, determining a preset third state function event set as the function event set;

[0042] Among them, the number of events in the first state function event set is greater than the number of events in the second state function event set, and the number of events in the second state function event set is greater than the number of events in the third state function event set.

[0043] For example, the first system state is the function processing state (normal operation state), and the corresponding first state function event set has the most events, which can be all the function events of the smart lock; the second system state is the standby state, and the corresponding second state function event set is part of the events in the first state function event set; the third system state is the sleep state, and the corresponding third state function event set is part of the events in the second state function event set. Specifically, the events in the second state function event set are less than the events in the first state function event set, such as fingerprint unlocking events, fingerprint entry events, password unlocking events, password change events, face information unlocking events, face information entry events, etc.; the events in the third state function event set are less than the events in the second state function event set, such as running timing events, voice interaction, remote communication interaction, etc.

[0044] S202: If the functional event belongs to the target functional event set, retain the corresponding functional task; if the functional event does not belong to the target functional event set, delete the corresponding functional task.

[0045] Among them, the event task manager in the main task can delete the functional tasks to release the occupied data space in the smart lock and reduce the amount of data processing required by the smart lock to reduce the power consumption of the smart lock. Among them, the more functional tasks are retained, the greater the power consumption of the smart lock, but the smart lock will process the newly received functional events corresponding to the retained functional tasks more efficiently; the fewer functional tasks are retained, the lower the power consumption of the smart lock, but the smart lock will process the newly received functional events corresponding to the deleted functional tasks more slowly, because the smart lock needs to recreate the deleted functional tasks according to the newly received functional events, so its processing efficiency will be slower.

[0046] In this embodiment, a first state function event set, a second state function event set, and a third state function event set including different numbers of events can be preset according to different system states of the smart lock to determine whether the functional task needs to be deleted under different system states, so that the power consumption and event processing efficiency of the smart lock correspond to the system state.

[0047] In a feasible embodiment, the step S1: driving the main task to create a corresponding functional task according to the received functional event includes:

[0048] S11: Determine the target resource area corresponding to the functional event.

[0049] Among them, the data space of the smart lock can be divided into multiple resource areas, one resource area can correspond to several types of functional events, and the target resource area is the resource area corresponding to the functional event.

[0050] S12: Determine the task code corresponding to the function event according to the preset correspondence relationship between the function event and the task code.

[0051] The task code corresponding to the functional event is a logical step for processing the functional event, so the task codes corresponding to different types of functional events are independent of each other.

[0052] S13: Loading the task code through the target resource area to obtain a functional task running in the target resource area.

[0053] Among them, the task code needs to be loaded into the target resource area before it can run, and the task code loaded into the target resource area is the functional task, which can be used to process the corresponding functional events, such as verifying the corresponding functional events, to transmit the event processing results to the main task, so that the main task executes the event instructions according to the event processing results.

[0054] In this embodiment, the functional task corresponding to the functional event can be successfully created by loading the task code in the target resource area.

[0055] In a feasible embodiment, the target resource area includes a first resource area, a second resource area and a third resource area;

[0056] The step S2: transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining the event processing result includes:

[0057] S211: If the system state is the first system state, retain the functional tasks running in the first resource area, the second resource area, and the third resource area.

[0058] S212: If the system state is the second system state, and all functional tasks running in the third resource area output event processing results to the main task, clear the functional tasks running in the third resource area and retain the functional tasks running in the first resource area and the second resource area.

[0059] S213: If the system state is the third system state, and all functional tasks running in the third resource area and the second resource area output event processing results to the main task, clear the functional tasks running in the second resource area and the third resource area, and retain the functional tasks running in the first resource area.

[0060] In this embodiment, the resource area that needs to be cleared can be determined according to the system status, so that after the functional task processes the functional event and obtains the event processing result, the resource area can be cleared to control the power consumption and event processing efficiency of the smart lock, so that the power consumption and event processing efficiency of the smart lock correspond to the system status.

[0061] In a feasible embodiment, the step S3: transmitting the event processing result to the main task so that the main task executes the event instruction according to the event processing result includes:

[0062] The event processing result is transmitted to a message queue, so that the main task obtains the event processing result from the message queue to execute instructions.

[0063] Among them, the message queue can realize the decoupling between different functional tasks, avoid direct mutual dependence between functional tasks, reduce the coupling degree of the system, and the message queue can also realize asynchronous processing, put some complex and time-consuming data processing into the background asynchronous processing, improve the system's throughput and concurrency performance, and facilitate the independent operation of functional tasks.

[0064] See also Figure 3 The second embodiment of the present application provides a lock-end multi-task processing device 100, which is applied to a smart lock. The smart lock includes a main task; the device includes:

[0065] The function task creation module 101 is used to drive the main task to create a corresponding function task according to the received function event;

[0066] The function event processing module 102 is used to transmit the function event to the function task, drive the function task to process the function event, and obtain an event processing result;

[0067] The execution module 103 is used to transmit the event processing result to the main task, so that the main task executes the event instruction according to the event processing result.

[0068] It should be noted that the lock-end multi-task processing device 100 provided in the second embodiment of the present application only uses the division of the above-mentioned functional modules as an example when executing the lock-end multi-task processing method. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the lock-end multi-task processing device 100 provided in the second embodiment of the present application and the lock-end multi-task processing method of the first embodiment of the present application are of the same concept. The implementation process thereof is detailed in the method embodiment and will not be repeated here.

[0069] See also Figure 4 According to a third aspect of an embodiment of the present application, a smart lock 10 is provided, wherein the smart lock 10 includes a main task; the smart lock 10 is used to perform the following steps:

[0070] According to the received functional events, the main task is driven to create corresponding functional tasks;

[0071] Transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining an event processing result;

[0072] The event processing result is transmitted to the main task, so that the main task executes the event instruction according to the event processing result.

[0073] It should be noted that the smart lock 10 provided in the third embodiment of the present application and the lock-end multi-tasking processing method of the first embodiment of the present application belong to the same concept, and its implementation process is detailed in the method embodiment, which will not be repeated here.

[0074] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the lock-end multi-tasking processing method described above are implemented.

[0075] A fifth aspect of an embodiment of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the steps of the lock-end multitasking method as described above when executing the computer program.

[0076] The device embodiments described above are merely illustrative, wherein the components described as separate parts may or may not be physically separated, and the parts displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present application. Ordinary technicians in this field can understand and implement it without creative work.

[0077] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0078] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the function selected in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 function selected in a box or multiple boxes.

[0079] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 steps for the function selected in a box or multiple boxes.

[0080] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0081] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0082] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0083] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0084] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A locking end multi-task processing method, characterized in that: Applied to a smart lock, the smart lock includes a main task; the method includes: According to the received functional events, the main task is driven to create corresponding functional tasks; Transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining an event processing result; The event processing result is transmitted to the main task, so that the main task executes the event instruction according to the event processing result.

2. The lock end multi-task processing method according to claim 1, characterized in that: The step of transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining the event processing result includes: According to the system status of the smart lock, obtain the corresponding target function event set; If the functional event belongs to the target functional event set, the corresponding functional task is retained; if the functional event does not belong to the target functional event set, the corresponding functional task is deleted.

3. The lock end multi-task processing method according to claim 2, characterized in that: The step of acquiring a corresponding target function event set according to the system state of the smart lock includes: If the system state is the first system state, determine the preset first state function event set as the target function event set; if the system state is the second system state, determine the preset second state function event set as the target function event set; if the system state is the third system state, determine the preset third state function event set as the target function event set; Among them, the number of events in the first state function event set is greater than the number of events in the second state function event set, and the number of events in the second state function event set is greater than the number of events in the third state function event set.

4. The lock end multi-task processing method according to claim 1, characterized in that: The steps of driving the main task to create a corresponding functional task according to the received functional event include: Determine a target resource area corresponding to the functional event; Determine the task code corresponding to the function event according to the preset correspondence between the function event and the task code; The task code is loaded through the target resource area to obtain a functional task running in the target resource area.

5. The lock end multi-task processing method according to claim 4, characterized in that: The target resource area includes a first resource area, a second resource area and a third resource area; After the step of transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining the event processing result, the method includes: If the system state is the first system state, retaining the functional tasks running in the first resource area, the second resource area and the third resource area; If the system state is the second system state, and all functional tasks running in the third resource area have output event processing results to the main task, clear the functional tasks running in the third resource area, and retain the functional tasks running in the first resource area and the second resource area; If the system state is the third system state, and all functional tasks running in the third resource area and the second resource area output event processing results to the main task, the functional tasks running in the second resource area and the third resource area are cleared, and the functional tasks running in the first resource area are retained.

6. The lock end multi-task processing method according to any one of claims 1 to 5, characterized in that: The step of transmitting the event processing result to the main task so that the main task executes the event instruction according to the event processing result includes: The event processing result is transmitted to a message queue, so that the main task obtains the event processing result from the message queue to execute instructions.

7. A lock-end multi-task processing device, characterized in that: Applied to a smart lock, the smart lock includes a main task; the device includes: The function task creation module is used to drive the main task to create the corresponding function task according to the received function event; A function event processing module, used for transmitting the function event to the function task, driving the function task to process the function event, and obtaining an event processing result; The execution module is used to transmit the event processing result to the main task, so that the main task executes the event instruction according to the event processing result.

8. A smart lock, characterized in that: The smart lock includes a main task; the smart lock is used to perform the following steps: According to the received functional events, the main task is driven to create corresponding functional tasks; Transmitting the functional event to the functional task, driving the functional task to process the functional event, and obtaining an event processing result; The event processing result is transmitted to the main task, so that the main task executes the event instruction according to the event processing result.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the lock-end multi-tasking processing method according to any one of claims 1 to 6 are implemented.

10. A computer device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable by the processor, wherein the processor implements the steps of the lock-end multi-tasking processing method as claimed in any one of claims 1 to 6 when executing the computer program.

Citation Information

Patent Citations

  • Event processing method and device and storage medium

    CN111475263A

  • DCU-based resource scheduling method and device, and computer equipment

    CN112612600A

  • Task allocation method and device, equipment and medium

    CN115599300A

  • Intelligent lock control method and system based on RTOS and intelligent lock

    CN115631558A

  • Event processing method and system, electronic equipment and storage medium

    CN117271157A