A combination method, control method, device, equipment and medium of a door lock system
Patent Information
- Application Number
- CN202611244440.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-17
- Publication Date
- 2026-10-27
AI Technical Summary
[0006]本发明提供了一种门锁系统的组合方法、控制方法、装置、设备及介质,可以解决现有的门锁系统的组合及控制方法存在的门锁系统的组合灵活度较低、门锁系统的组合成本较高,且门锁系统的控制效率较低的问题
[0013]本发明实施例的技术方案,通过响应于用户的设备扫描命令,扫描预设范围内的各可连接设备,获取各可连接设备的设备属性,之后基于各可连接设备的设备属性生成待连接列表,并根据所述待连接列表在各可连接设备中确定各功能单元,之后对各功能单元进行端点映射操作,以对各功能单元进行组合,得到目标门锁系统,之后获取门禁事件订阅表以及至少一个针对门禁事件的订阅声明,并解析各订阅声明,得到与各订阅声明分别匹配的各事件类型,之后将所述各事件类型写入所述门禁事件订阅表,并将各事件类型关联至编排有向图,得到与各事件类型分别匹配的各编排有向图,当检测到属于所述门禁事件订阅表中事件类型的目标门禁事件时,调用与所述目标门禁事件匹配的目标编排有向图,最后通过所述目标门锁系统执行所述编排有向图,以基于所述目标门禁事件对目标门锁系统进行控制,解决了现有的门锁系统的组合及控制方法存在的门锁系统的组合灵活度较低、门锁系统的组合成本较高,且门锁系统的控制效率较低的问题,实现了针对门锁系统的组合及控制,提高了门锁系统的组合灵活度,降低了门锁系统的组合成本,同时提高了门锁系统的控制效率。
Smart Images

Figure CN122990837A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart home security control, and in particular to a method for combining, controlling, using, assembling, and mediating a door lock system. Background Technology
[0002] With the popularization of smart homes, smart door locks have become the core entry point device for home security. Most smart door lock products on the market currently adopt an integrated architecture: the lock body, front panel, peephole camera, doorbell, display screen, biometric module, and audio / video codec chip are all packaged within the same hardware platform, and the business logic is fixed in the manufacturer's pre-installed firmware. If users need to change the peephole camera specifications, add a separate doorbell button, or reuse the footage from an existing outdoor surveillance camera as the peephole video source, they are often limited by the overall hardware interfaces and fixed software logic, making it impossible to freely combine functional modules according to the actual house layout and usage habits, resulting in low flexibility in door lock system configuration.
[0003] In terms of hardware capabilities, existing video door locks generally integrate high-performance MCUs or dedicated audio / video chips on the front panel to support facial recognition, fingerprint comparison, and real-time encoding and decoding, while running business logic locally within the lock body. Components such as the peephole camera, doorbell button, and in-door display screen are strongly coupled to the lock body's control program, with a fixed binding relationship at the factory. Users cannot select or reuse existing equipment as needed, resulting in redundant deployment of similar hardware, material waste, and a high overall cost for the door lock system.
[0004] Regarding system access methods, most commercial smart locks employ multi-level communication links, requiring unlocking commands, external video, and biometric data to be relayed or stored in the manufacturer's cloud. The home gateway only handles protocol conversion or simple command transmission, failing to become the centralized computing power and programming hub of the lock subsystem. Linkage topology and triggering rules are pre-configured by the manufacturer, and media channels are mostly transmitted point-to-point between devices, making it difficult for users to define cross-device input / output multiplexing and combination relationships. Event notifications and App interface configurations are fragmented, making it impossible to define event subscription relationships and page display simultaneously under a unified entry point, resulting in low control efficiency of the lock system.
[0005] In summary, existing door lock system combination and control methods suffer from low combination flexibility, high combination cost, and low control efficiency. Summary of the Invention
[0006] This invention provides a method for assembling a door lock system, a control method, a device, equipment, and a medium, which can solve the problems of low flexibility in door lock system assembly, high assembly cost, and low control efficiency in existing door lock system assembly and control methods.
[0007] In a first aspect, embodiments of the present invention provide a method for assembling a door lock system, the method comprising: In response to the user's device scanning command, scan for all connectable devices within a preset range and obtain the device attributes of each connectable device; A list of devices to be connected is generated based on the device attributes of each connectable device, and each functional unit is determined in each connectable device according to the list of devices to be connected. Endpoint mapping operations are performed on each functional unit to combine them into the target door lock system.
[0008] Secondly, embodiments of the present invention provide a control method for a door lock system, the method comprising: Obtain the access control event subscription table and at least one subscription statement for an access control event, including proximity detection event, doorbell pressed event, biometric successful identification, unlock completed event, and lock completed event; Parse each subscription claim to obtain the event types that match each subscription claim; Each event type is written into the access control event subscription table, and each event type is associated with an orchestration directed graph to obtain each orchestration directed graph that matches each event type. When a target access control event belonging to the event type in the access control event subscription table is detected, the target orchestration directed graph matching the target access control event is invoked. The orchestration directed graph is executed through the target door lock system to control the target door lock system based on the target access control event.
[0009] Thirdly, this embodiment provides a combination device for a door lock system, the device comprising: The device acquisition module is used to respond to the user's device scanning command, scan for all connectable devices within a preset range, and obtain the device attributes of each connectable device; The functional unit determination module is used to generate a list of devices to be connected based on the device attributes of each connectable device, and to determine each functional unit in each connectable device according to the list of devices to be connected. The unit combination module is used to perform endpoint mapping operations on each functional unit in order to combine the functional units to obtain the target door lock system.
[0010] Fourthly, this embodiment provides a control device for a door lock system, the device comprising: The data acquisition module is used to acquire the access control event subscription table and at least one subscription statement for access control events, including proximity detection events, doorbell pressed events, biometric recognition success, unlocking completion events, and locking completion events; The subscription declaration module is used to parse each subscription declaration and obtain the event types that match each subscription declaration. The directed graph orchestration module is used to write each event type into the access control event subscription table and associate each event type with the orchestration directed graph to obtain each orchestration directed graph that matches each event type. The directed graph matching module is used to call the target orchestration directed graph that matches the target access control event when a target access control event of the event type belonging to the access control event subscription table is detected. The door lock control module is used to execute the orchestration directed graph through the target door lock system to control the target door lock system based on the target access control event.
[0011] Fifthly, embodiments of the present invention provide an electronic device, the electronic device comprising: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform a combination method and control method for a door lock system according to any embodiment of the present invention.
[0012] Sixthly, embodiments of the present invention provide a computer-readable storage medium storing computer instructions, which are used to cause a processor to execute and implement a combination method and control method for a door lock system according to any embodiment of the present invention.
[0013] The technical solution of this invention involves responding to a user's device scanning command, scanning all connectable devices within a preset range, obtaining the device attributes of each connectable device, generating a list to be connected based on the device attributes, determining each functional unit in each connectable device according to the list, performing endpoint mapping operations on each functional unit to combine them into a target door lock system, obtaining an access control event subscription table and at least one subscription claim for access control events, parsing each subscription claim to obtain each event type that matches each subscription claim, writing each event type into the access control event subscription table, and associating each event type with an orchestration directed graph. This process generates directed graphs that match each event type. When a target access control event belonging to the event type in the access control event subscription table is detected, the target directed graph matching the target access control event is invoked. Finally, the directed graph is executed through the target lock system to control the target lock system based on the target access control event. This solves the problems of low flexibility, high cost, and low control efficiency in existing lock system combination and control methods. It realizes the combination and control of lock systems, improves the flexibility of lock system combination, reduces the cost of lock system combination, and improves the control efficiency of lock system.
[0014] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart of a door lock system combination method according to Embodiment 1 of the present invention; Figure 2 This is a flowchart of a control method for a door lock system according to Embodiment 2 of the present invention; Figure 3 This is a schematic diagram of the structure of a combination device for a door lock system according to Embodiment 3 of the present invention; Figure 4 This is a schematic diagram of the structure of a control device for a door lock system according to Embodiment 3 of the present invention; Figure 5This is a schematic diagram of the structure of an electronic device that implements a combination method and control method for a door lock system according to an embodiment of the present invention. Detailed Implementation
[0017] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0018] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, any variations of the terms "comprising" and "having" are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0019] Example 1 Figure 1 This is a flowchart of a door lock system combination method provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation where devices are combined to obtain a door lock system. The method can be executed by a door lock system combination device, which can be implemented in hardware and / or software. The door lock system combination device can be configured in a terminal or server with door lock system combination function.
[0020] like Figure 1 As shown, the method includes: S110. In response to the user's device scanning command, scan all connectable devices within a preset range and obtain the device attributes of each connectable device.
[0021] The device attributes include: a description of the device functions of the connectable device and physical I / O endpoint information.
[0022] Specifically, the device function description is used to characterize the hardware capabilities of each connectable device; the physical I / O endpoint information is used to characterize the physical interface addresses that each connectable device can use for input or output, such as the video stream output endpoint of a camera, the image input endpoint of a display screen, etc.; further, in this embodiment, the scanning of each connectable device within the preset range can be performed concurrently through multiple links such as Bluetooth Low Energy Broadcast scanning, Wi-Fi LAN multicast detection, allowed network access beacon, and Bluetooth Mesh unconfigured device scanning. Each sub-device only needs to support any one of these links to be discovered. This embodiment does not limit the specific links.
[0023] S120. Generate a list of devices to be connected based on the device attributes of each connectable device, and determine each functional unit in each connectable device according to the list of devices to be connected.
[0024] The list to be connected is used to normalize and record information such as the device identifier, device category, link type, and the aforementioned device attributes of each connectable device discovered during the scan, providing a data foundation for the subsequent filtering and mapping of functional units.
[0025] The functional units include at least two of the following: a front panel acquisition unit for door locks, a rear panel interaction unit for door locks, a lock body execution unit, a doorbell unit, a monitoring unit, and an in-door mobile screen unit.
[0026] Optionally, the front panel acquisition unit of the door lock is used to collect facial data of visitors outside the door, the rear panel interaction unit of the door lock is used to receive unlocking or locking operation commands from users inside the door, the lock body execution unit is used to drive the bolt to complete physical unlocking or locking actions, the doorbell unit is used to detect button triggering events outside the door, the monitoring unit is used to collect outdoor video streams, and the mobile screen unit inside the door is used to receive and display video or image data.
[0027] Furthermore, based on the list of devices to be connected, each functional unit is determined from each connectable device, including: determining the standard IO capability type that matches each functional unit according to its type; and selecting each connectable device whose device function description matches each standard IO capability type from the list of devices to be connected as each functional unit, based on the device function description of each connectable device. Specifically, the standard IO capability types corresponding to the front panel acquisition unit of the door lock include: face capture; the standard IO capability types corresponding to the rear panel interaction unit of the door lock include: unlocking interaction and / or locking interaction; the standard IO capability types corresponding to the lock body execution unit include: bolt drive; the standard IO capability types corresponding to the doorbell unit include: button triggering; the standard IO capability types corresponding to the monitoring unit include: video capture; and the standard IO capability types corresponding to the in-door mobile screen unit include: display output.
[0028] For example, if the door lock system to be built needs to implement the face recognition unlocking function, it is necessary to determine the type of the door lock front panel acquisition unit and match the corresponding standard IO capability type as "face acquisition". Then, select connectable devices whose device function description contains "face acquisition" from the list of devices to be connected as door lock front panel acquisition units.
[0029] The standard IO capability type is an abstract capability definition preset on the gateway side, which is used to normalize heterogeneous devices from different manufacturers and with different specifications into a unified atomic IO capability. This allows connectable devices whose device function description matches the standard IO capability type to be selected as the corresponding functional unit, without relying on a specific brand or model.
[0030] S130. Perform endpoint mapping operations on each functional unit to combine the functional units and obtain the target door lock system.
[0031] The endpoint mapping operation refers to the process of establishing a binding relationship between the physical I / O endpoints of each functional unit and predefined door lock semantic function endpoints, thereby decoupling physical hardware capabilities from door lock business semantics. Furthermore, the door lock semantic function endpoints are virtual function interfaces abstracted by the gateway side, used to represent the standardized business capabilities of the door lock system. For example, the peephole video source endpoint provides video footage from outside the door, and the unlocking execution endpoint triggers physical unlocking actions. The physical I / O endpoints are the actual hardware input or output interfaces possessed by each functional unit, such as the lens endpoint of the door lock front panel acquisition unit and the video input endpoint of the monitoring unit. Through endpoint mapping, functional units from different manufacturers or of different specifications can be transparently replaced as long as they have the same type of physical I / O endpoints, without modifying the underlying business logic.
[0032] Specifically, endpoint mapping operations are performed on each functional unit to combine them into a target door lock system. This includes: obtaining pre-defined semantic function endpoints for each door lock based on the type of each functional unit; obtaining physical I / O endpoint information from the device attributes of each functional unit to obtain target physical I / O endpoints that match each functional unit; responding to a user's endpoint configuration command, determining the mapping relationship between each target physical I / O endpoint and each door lock semantic function endpoint based on the endpoint configuration command; establishing a binding relationship between each target physical I / O endpoint and each door lock semantic function endpoint based on the mapping relationship, and combining the functional units based on the binding result to obtain the target door lock system.
[0033] The specific types of the door lock semantic function endpoints are dynamically matched with the types of functional units. In this embodiment, these include at least: peephole video source endpoint, doorbell trigger endpoint, external audio source endpoint, unlocking execution endpoint, internal display endpoint, and internal audio output endpoint. Optionally, the preset rules for the door lock semantic function endpoints are stored locally on the gateway and can be dynamically loaded according to the actual functional unit composition of the target door lock system. Semantic endpoints that do not match a corresponding functional unit are not enabled.
[0034] Furthermore, the target physical I / O endpoint is determined based on the standard I / O capability type of each functional unit and the device function description. For example, the lens endpoint of the door lock front panel acquisition unit corresponds to its standard I / O capability type of "face acquisition", and the video input endpoint of the monitoring unit corresponds to its standard I / O capability type of "video acquisition". Furthermore, the same standard I / O capability type may correspond to multiple physical I / O endpoints. For example, a monitoring unit with a dual-camera module may include a main camera endpoint and an auxiliary camera endpoint. In this case, one of them can be selected as the target physical I / O endpoint according to the preset priority or user configuration.
[0035] Furthermore, the endpoint configuration commands include mapping declarations input by the user through natural language or binding instructions triggered by a graphical interface. For example, if the user declares "use the outdoor monitoring camera as a door lock peephole," the gateway will parse the configuration command and establish a mapping relationship between the video input endpoint of the monitoring unit and the peephole video source endpoint. Furthermore, the same door lock semantic function endpoint can support the mapping switching of multiple candidate physical IO endpoints. For example, the peephole video source endpoint is mapped to the camera endpoint of the door lock front panel acquisition unit by default, and can also be switched to the video input endpoint of the monitoring unit according to the endpoint configuration command. After the switch, all business processes referencing the semantic endpoint will automatically and transparently switch the streaming source without recompiling and reorganizing the logic.
[0036] The technical solution of this invention, in response to a user's device scanning command, scans all connectable devices within a preset range, obtains the device attributes of each connectable device, then generates a list to be connected based on the device attributes of each connectable device, and determines each functional unit in each connectable device according to the list to be connected. Then, it performs endpoint mapping operations on each functional unit to combine the functional units and obtain the target door lock system. This solves the problems of low combination flexibility and high combination cost of existing door lock system combination methods, improves the combination flexibility of door lock systems, and reduces the combination cost of door lock systems.
[0037] Example 2 Figure 2This is a flowchart of a control method for a door lock system provided in Embodiment 2 of the present invention. This embodiment is applicable to the situation of controlling a target door lock system. The method can be executed by a control device of the door lock system. The control device of the door lock system can be implemented in hardware and / or software. The control device of the door lock system can be configured in a terminal or server with door lock system control function.
[0038] like Figure 2 As shown, the method includes: S210, Obtain the access control event subscription table and at least one subscription statement for access control events.
[0039] The access control event subscription table is a data structure maintained by the target door lock system, used to record each event type and its associated directed graph identifier and / or mobile terminal display page identifier; the access control event subscription table is stored in the local non-volatile storage of the target door lock system; the subscription declaration is an instruction input by the user or system to declare the subscription and response method configuration for a specific access control event, and the input form of the subscription declaration includes one or more of natural language description, graphical interface configuration, or structured configuration file.
[0040] The access control events include proximity detection events, doorbell press events, successful biometric identification, unlocking completion events, and locking completion events.
[0041] Furthermore, the proximity detection event is triggered by the human body sensor or proximity sensor of the door lock front panel acquisition unit to detect the approach of people outside the door; the doorbell press event is triggered by the physical button or touch module of the doorbell unit to respond to the doorbell operation of visitors outside the door; the biometric recognition success event is triggered by the biometric feature comparison engine after completing the matching of features such as fingerprint, face or iris locally; the unlocking completion event is triggered by the lock body execution unit after performing the unlocking action and feeding back the status; the locking completion event is triggered by the lock body execution unit after performing the locking action and feeding back the status.
[0042] S220. Parse each subscription claim to obtain the event types that match each subscription claim.
[0043] The parsing of each subscription statement refers to the process of semantic extraction and format conversion of natural language text, graphical configuration data, or structured configuration parameters to obtain event type codes and associated configuration parameters that can be recognized by the target door lock system.
[0044] S230. Write each event type into the access control event subscription table, and associate each event type with the orchestration directed graph to obtain each orchestration directed graph that matches each event type.
[0045] The orchestrated directed graph is a directed acyclic graph structure pre-stored in the target door lock system to describe the event response process, including event triggering nodes, IO action nodes, media processing nodes, and IO output nodes. Further, the event triggering nodes are used to receive and distribute access control events; the IO action nodes are used to issue control commands to physical IO endpoints; the media processing nodes are used to perform encoding / decoding, transcoding, and copying / forking of the original video frames locally on the target door lock system; and the IO output nodes are used to output the processing results to the target physical IO endpoint or mobile terminal.
[0046] Specifically, associating each event type with the orchestration directed graph means establishing a mapping relationship between event types and orchestration directed graph identifiers, so that when a specific event type is triggered, the orchestration directed graph to be executed can be uniquely determined.
[0047] S240. When a target access control event belonging to the event type in the access control event subscription table is detected, the target orchestration directed graph matching the target access control event is invoked.
[0048] It should be noted that the detection process is completed locally on the target door lock system, without the need for event data to be relayed through the manufacturer's cloud.
[0049] S250. The orchestration directed graph is executed through the target door lock system to control the target door lock system based on the target access control event.
[0050] The process of executing the orchestrated directed graph through the target door lock system to control the target door lock system based on the target access control event includes: when the target access control event is a proximity detection event, receiving a proximity detection IO event reported by the door lock front panel acquisition unit; acquiring a target face image through the door lock front panel acquisition unit according to a preset load and accuracy strategy; recognizing the acquired face image through the target door lock system, and issuing an unlocking command to the lock body execution unit after successful recognition; executing the unlocking command through the lock body execution unit to trigger an unlocking completion event, and writing the unlocking completion event into a log and pushing it to the mobile terminal display page.
[0051] The load and accuracy strategy refers to the recognition mode dynamically selected by the target door lock system based on the current CPU utilization, NPU computing power load, and battery level. This includes an MJPEG snapshot recognition mode and a continuous video stream recognition mode. Furthermore, the MJPEG snapshot recognition mode is a low-power mode that combines single-frame image acquisition with fast comparison, suitable for scenarios with limited computing power or insufficient battery. The continuous video stream recognition mode is a high-precision mode for time-series face tracking and recognition, suitable for complex lighting or high-security scenarios. The target door lock system automatically switches between the two modes based on a preset threshold, or the user can manually specify the mode through a subscription claim.
[0052] Furthermore, the target door lock system executes the orchestration directed graph to control the target door lock system based on the target access control event, including: when the target access control event is a doorbell press event, receiving a button trigger IO event reported by the doorbell unit and sending a video acquisition command to the monitoring unit; the monitoring unit executes the video acquisition command to acquire the original video frame and transcodes the original video frame; and the transcoded media stream is copied and split to the mobile screen unit inside the door and the mobile terminal.
[0053] The technical solution of this invention obtains an access control event subscription table and at least one subscription statement for access control events, parses each subscription statement to obtain event types that match each subscription statement, writes each event type into the access control event subscription table, and associates each event type with an orchestration directed graph to obtain orchestration directed graphs that match each event type. When a target access control event belonging to an event type in the access control event subscription table is detected, the target orchestration directed graph matching the target access control event is invoked. Finally, the orchestration directed graph is executed through the target door lock system to control the target door lock system based on the target access control event. This solves the problem of low control efficiency in existing door lock system control methods and improves the control efficiency of the door lock system.
[0054] Example 3 Figure 3 This is a schematic diagram of the structure of a combination device for a door lock system provided in Embodiment 3 of the present invention.
[0055] like Figure 3 As shown, the device includes: The device acquisition module 310 is used to respond to the user's device scanning command, scan each connectable device within a preset range, and obtain the device attributes of each connectable device; Functional unit determination module 320 is used to generate a list to be connected based on the device attributes of each connectable device, and to determine each functional unit in each connectable device according to the list to be connected; The unit combination module 330 is used to perform endpoint mapping operations on each functional unit in order to combine the functional units to obtain the target door lock system.
[0056] The technical solution of this invention, in response to a user's device scanning command, scans all connectable devices within a preset range, obtains the device attributes of each connectable device, then generates a list to be connected based on the device attributes of each connectable device, and determines each functional unit in each connectable device according to the list to be connected. Then, it performs endpoint mapping operations on each functional unit to combine the functional units and obtain the target door lock system. This solves the problems of low combination flexibility and high combination cost of existing door lock system combination methods, improves the combination flexibility of door lock systems, and reduces the combination cost of door lock systems.
[0057] Based on the above embodiments, the functional unit determining module 320 includes: The standard capability determination unit is used to determine the standard I / O capability type that matches each functional unit according to the type of each functional unit. The device filtering unit is used to filter the connectable devices whose device function descriptions match the standard IO capability types from the connectable devices in the list of devices to be connected, and to select each connectable device as a functional unit. The standard IO capabilities of the door lock front panel acquisition unit include: face capture; the standard IO capabilities of the door lock rear panel interaction unit include: unlocking interaction and / or locking interaction; the standard IO capabilities of the lock body execution unit include: bolt drive; the standard IO capabilities of the doorbell unit include: button triggering; the standard IO capabilities of the monitoring unit include: video capture; and the standard IO capabilities of the in-door mobile screen unit include: display output.
[0058] Based on the above embodiments, the unit combination module 330 includes: The functional endpoint acquisition unit is used to acquire the pre-set semantic functional endpoints of each door lock according to the type of each functional unit. The target endpoint determination unit is used to obtain the physical I / O endpoint information in the device attributes of each functional unit and obtain each target physical I / O endpoint that matches each functional unit. The mapping determination unit is used to determine the mapping relationship between each target physical I / O endpoint and each door lock semantic function endpoint in response to the user's endpoint configuration command. The combination unit is used to establish a binding relationship between each target physical I / O endpoint and each door lock semantic function endpoint according to the mapping relationship, and to combine each functional unit based on the binding result to obtain the target door lock system.
[0059] The combination device for a door lock system provided in the embodiments of the present invention can execute the combination method for a door lock system provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the method.
[0060] Example 4 Figure 4 This is a schematic diagram of the structure of a control device for a door lock system provided in Embodiment 4 of the present invention.
[0061] like Figure 4 As shown, the device includes: The data acquisition module 410 is used to acquire an access control event subscription table and at least one subscription statement for an access control event, wherein the access control events include proximity detection event, doorbell pressed event, biometric recognition successful event, unlocking completed event, and locking completed event; The subscription declaration module 420 is used to parse each subscription declaration and obtain the event types that match each subscription declaration. The directed graph orchestration module 430 is used to write each event type into the access control event subscription table and associate each event type with the orchestration directed graph to obtain each orchestration directed graph that matches each event type respectively; The directed graph matching module 440 is used to call the target orchestration directed graph that matches the target access control event when a target access control event of the event type belonging to the access control event subscription table is detected. The door lock control module 450 is used to execute the orchestration directed graph through the target door lock system to control the target door lock system based on the target access control event.
[0062] The technical solution of this invention obtains an access control event subscription table and at least one subscription statement for access control events, parses each subscription statement to obtain event types that match each subscription statement, writes each event type into the access control event subscription table, and associates each event type with an orchestration directed graph to obtain orchestration directed graphs that match each event type. When a target access control event belonging to an event type in the access control event subscription table is detected, the target orchestration directed graph matching the target access control event is invoked. Finally, the orchestration directed graph is executed through the target door lock system to control the target door lock system based on the target access control event. This solves the problem of low control efficiency in existing door lock system control methods and improves the control efficiency of the door lock system.
[0063] Based on the above embodiments, the door lock control module 450 includes: The first event triggering unit is used to receive the proximity detection IO event reported by the door lock front panel acquisition unit when the target access control event is a proximity detection event; The image acquisition unit is used to acquire the target face image through the door lock front panel acquisition unit according to the preset load and accuracy strategy; The recognition unit is used to recognize the collected face image through the target door lock system, and to send an unlocking command to the lock body execution unit after successful recognition; The unlocking triggering unit is used to execute the unlocking command through the lock body execution unit to trigger the unlocking completion event, and to write the unlocking completion event into the log and push it to the mobile terminal display page.
[0064] Based on the above embodiments, the door lock control module 450 further includes: The second event triggering unit is used to receive the button trigger IO event reported by the doorbell unit and send a video acquisition command to the monitoring unit when the target access control event is a doorbell press event. The video transcoding unit is used to execute the video acquisition command through the monitoring unit to acquire the original video frame and transcode the original video frame; The copy and split unit is used to copy and split the transcoded media stream to the mobile screen unit and the mobile terminal inside the door.
[0065] Example 5 Figure 5 A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0066] like Figure 5As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0067] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0068] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as a combination method and control method for a door lock system.
[0069] Accordingly, the method for assembling the door lock system includes: In response to the user's device scanning command, scan for all connectable devices within a preset range and obtain the device attributes of each connectable device; A list of devices to be connected is generated based on the device attributes of each connectable device, and each functional unit is determined in each connectable device according to the list of devices to be connected. Endpoint mapping operations are performed on each functional unit to combine them into the target door lock system.
[0070] In some embodiments, a door lock system combination method and control method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the door lock system combination method and control method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a door lock system combination method and control method by any other suitable means (e.g., by means of firmware).
[0071] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0072] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0073] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0074] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0075] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0076] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0077] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
Claims
1. A method for assembling a door lock system, characterized in that, include: In response to the user's device scanning command, scan for all connectable devices within a preset range and obtain the device attributes of each connectable device; A list of devices to be connected is generated based on the device attributes of each connectable device, and each functional unit is determined in each connectable device according to the list of devices to be connected. Endpoint mapping operations are performed on each functional unit to combine them into the target door lock system.
2. The method according to claim 1, characterized in that, The device attributes include: a description of the device functions of the connectable device and physical I / O endpoint information; The functional unit includes at least two of the following: a door lock front panel acquisition unit, a door lock rear panel interaction unit, a lock body execution unit, a doorbell unit, a monitoring unit, and an in-door mobile screen unit.
3. The method according to any one of claims 1-2, characterized in that, Based on the list of devices to be connected, determine each functional unit among the connectable devices, including: Determine the standard I / O capability type that matches each functional unit based on its type; Based on the device function descriptions of each connectable device in the list to be connected, each connectable device whose device function description matches each standard IO capability type is selected as a functional unit. The standard IO capabilities of the door lock front panel acquisition unit include: face capture; the standard IO capabilities of the door lock rear panel interaction unit include: unlocking interaction and / or locking interaction; the standard IO capabilities of the lock body execution unit include: bolt drive; the standard IO capabilities of the doorbell unit include: button triggering; the standard IO capabilities of the monitoring unit include: video capture; and the standard IO capabilities of the in-door mobile screen unit include: display output.
4. The method according to claim 1, characterized in that, Endpoint mapping operations are performed on each functional unit to combine them into the target door lock system, including: Based on the type of each functional unit, obtain the pre-set semantic function endpoints of each door lock; Obtain the physical I / O endpoint information from the device attributes of each functional unit to obtain the target physical I / O endpoints that match each functional unit; In response to the user's endpoint configuration command, the mapping relationship between each target physical I / O endpoint and each door lock semantic function endpoint is determined according to the endpoint configuration command; Based on the mapping relationship, the target physical I / O endpoints are bound to the door lock semantic function endpoints, and the functional units are combined based on the binding results to obtain the target door lock system.
5. A control method for a door lock system, executed by a target door lock system constructed using the combination method described in claims 1-4, characterized in that, include: Obtain the access control event subscription table and at least one subscription statement for an access control event, including proximity detection event, doorbell pressed event, biometric successful identification, unlock completed event, and lock completed event; Parse each subscription claim to obtain the event types that match each subscription claim; Each event type is written into the access control event subscription table, and each event type is associated with an orchestration directed graph to obtain each orchestration directed graph that matches each event type. When a target access control event belonging to the event type in the access control event subscription table is detected, the target orchestration directed graph matching the target access control event is invoked. The orchestration directed graph is executed through the target door lock system to control the target door lock system based on the target access control event.
6. The method according to claim 5, characterized in that, Executing the orchestrated directed graph through the target door lock system to control the target door lock system based on the target access control event includes: When the target access control event is a proximity detection event, the proximity detection IO event reported by the door lock front panel acquisition unit is received; According to the preset load and accuracy strategy, the target face image is acquired through the door lock front panel acquisition unit; The target door lock system recognizes the collected facial images and sends an unlocking command to the lock body execution unit after successful recognition. The lock body execution unit executes the unlocking command to trigger the unlocking completion event, and writes the unlocking completion event into the log and pushes it to the mobile terminal display page.
7. The method according to claim 5, characterized in that, The method further includes executing the orchestrated directed graph through the target door lock system to control the target door lock system based on the target access control event, and also includes: When the target access control event is a doorbell press event, the system receives the button trigger IO event reported by the doorbell unit and sends a video acquisition command to the monitoring unit. The monitoring unit executes the video acquisition command to acquire the original video frames and then transcodes the original video frames. The transcoded media stream is copied and split to the mobile screen unit and mobile terminal inside the door.
8. A combination device for a door lock system, characterized in that, include: The device acquisition module is used to respond to the user's device scanning command, scan for all connectable devices within a preset range, and obtain the device attributes of each connectable device; The functional unit determination module is used to generate a list of devices to be connected based on the device attributes of each connectable device, and to determine each functional unit in each connectable device according to the list of devices to be connected. The unit combination module is used to perform endpoint mapping operations on each functional unit in order to combine the functional units to obtain the target door lock system.
9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform a combination method and control method for a door lock system according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the combination method and control method of a door lock system according to any one of claims 1-7.