Intelligent door control method, device and equipment and storage medium
Through the networking of the video module of the smart door and the use of server management of the OTA upgrade package, the problem of the existing technology being unable to upgrade at the same time and remotely upgrade is solved, and efficient smart door module upgrade is achieved.
Patent Information
- Application Number
- CN202411811965.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-05-30
AI Technical Summary
The existing smart door technology cannot upgrade each door lock module at the same time, nor can it remotely realize module upgrades.
The video module is used to form a network with each door lock module. The server obtains the upgrade request information sent by the user terminal, determines the corresponding OTA upgrade package, and sends it to the door lock module requested by the user terminal to achieve independent upgrade.
Remote upgrades of each door lock module are realized, and each module can be upgraded independently at the same time, improving the upgrade speed and efficiency.
Smart Images

Figure CN120071471A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of intelligent doors, and particularly to an intelligent door control method, device, equipment and storage medium. Background Art
[0002] The intelligent door replaces the traditional door lock. It not only has the function of opening and closing like a traditional door lock, but also can provide functions such as remote monitoring, visitor records, and status feedback. The intelligent door includes multiple modules such as a front panel, a rear panel, a face module, a radar module, a voice module, and a power board module. When each module needs to be upgraded, OTA firmware is manually burned on the module to complete the upgrade of the module. However, manual burning requires close operation on each door lock module one by one, and manual burning cannot burn all door lock modules at the same time nor achieve remote upgrade.
[0003] In summary, the prior art can neither upgrade all door lock modules simultaneously nor remotely.
[0004] Therefore, the prior art still needs to be improved. Summary of the Invention
[0005] To solve the above technical problems, the present invention provides an intelligent door control method, device, equipment and storage medium, which solves the problem that the prior art can neither upgrade all door lock modules simultaneously nor remotely.
[0006] To achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides an intelligent door control method. The intelligent door includes a video module and each door lock module. The intelligent door control method includes:
[0008] Networking with each of the door lock modules through the video module;
[0009] In the networking state, obtaining the upgrade request information sent by the user terminal and determining the OTA upgrade package corresponding to the upgrade request information;
[0010] Sending the OTA upgrade package to the door lock module requested by the user terminal for upgrade, and the OTA upgrade package is used to independently upgrade the door lock module.
[0011] In one implementation, networking with each of the door lock modules through the video module includes:
[0012] Obtaining the networking request sent by the front panel module through the video module, and the front panel module sends the networking request to the video module through the UART protocol;
[0013] Verify the networking request. When the verification passes, network with each of the door lock modules through the video module.
[0014] In one implementation, determining the OTA upgrade package corresponding to the upgrade request information includes:
[0015] Determine the module identification information and the requested upgrade version information in the upgrade request information;
[0016] Determine the queue corresponding to the module identification information;
[0017] Determine the pointer corresponding to the requested upgrade version information;
[0018] Determine the OTA upgrade package corresponding to the pointer.
[0019] In one implementation, sending the OTA upgrade package to the door lock module requested by the user terminal to upgrade includes:
[0020] Send the OTA upgrade package to the door lock module requested by the user terminal to upgrade through the MQTT protocol.
[0021] In one implementation, a wireless module is provided on the video module, and the video module is connected to the in-door display module through Ethernet or USB serial port protocol.
[0022] In one implementation, the door lock module is a radar module, and the intelligent door control method further includes:
[0023] Obtain the monitoring instruction sent by the user terminal;
[0024] Send the monitoring instruction to the radar module through the video module, and the radar module is used to obtain the target position information in front of the door;
[0025] Obtain the video information collected by the face module and send the video information to the user terminal, where the video information is the video collected by the face module based on the start instruction of the radar module.
[0026] In one implementation, the door lock module includes an in-door voice module and an out-door voice module, and the intelligent door control method further includes:
[0027] Send the time period allowing voice interaction to the video module, and the video module is used to control the voice interaction between the out-door voice module and the in-door voice module based on the time period.
[0028] Second aspect, an embodiment of the present invention further provides an intelligent door control device. The intelligent door includes a video module and each door lock module. The device includes the following components:
[0029] A networking module, configured to network with each of the door lock modules through the video module;
[0030] An upgrade package matching module, configured to obtain upgrade request information sent by a user terminal in a networked state and determine an OTA upgrade package corresponding to the upgrade request information;
[0031] A sending module, configured to send the OTA upgrade package to the door lock module requested by the user terminal for upgrade. The OTA upgrade package is used to independently upgrade the door lock module.
[0032] Third aspect, an embodiment of the present invention further provides a terminal device. The terminal device includes a memory, a processor, and an intelligent door control program stored in the memory and executable on the processor. When the processor executes the intelligent door control program, the steps of the above-mentioned intelligent door control method are implemented.
[0033] Fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium. An intelligent door control program is stored on the computer-readable storage medium. When the intelligent door control program is executed by a processor, the steps of the above-mentioned intelligent door control method are implemented.
[0034] Beneficial effects: The present invention first networks each door lock module with a server. After the server and each door lock module establish a network connection, since the server stores the OTA upgrade packages of each door lock module, that is, the OTA upgrade packages on the server correspond one-to-one with the door lock modules. When the user side needs to upgrade a door lock module, it sends upgrade request information to the server. The server finds the door lock module that the user side needs to upgrade and the OTA upgrade package corresponding to the door lock module, and sends the OTA upgrade package to the door lock module. The door lock module uses the OTA upgrade package to complete the upgrade. From the above analysis, it can be seen that the present invention can remotely upgrade each door lock module through a remote server. Moreover, since the server stores the OTA upgrade packages required by each door lock module, each door lock module can be independently upgraded simultaneously to improve the upgrade speed. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is the overall flowchart of the present invention;
[0036] Figure 2 is the interaction schematic diagram of the intelligent door, the server, and the user terminal (the user terminal is a mobile phone) in the embodiment of the present invention;
[0037] Figure 3 Structural diagram of the intelligent door control device provided by the present invention;
[0038] Figure 4 Internal structure principle block diagram of the terminal device provided by the embodiment of the present invention. Specific implementation manners
[0039] The technical solutions in the present invention will be clearly and completely described below in conjunction with the embodiments and the accompanying drawings of the specification. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0040] It has been found through research that the intelligent door replaces the traditional door lock, which not only has the function of opening and closing the traditional door lock, but also can provide functions such as remote monitoring, visitor records, and status feedback. The intelligent door includes multiple modules such as a front panel, a rear panel, a face module, a radar module, a voice module, and a power board module. When each module needs to be upgraded, the OTA firmware is manually burned on the module to complete the upgrade of the module. However, manual burning requires close-range operation on each door lock module one by one, and manual burning cannot burn all the door lock modules at the same time nor can it be remotely upgraded.
[0041] To solve the above technical problems, the present invention provides an intelligent door control method, device, equipment, and storage medium, which solves the problem that the existing technology can neither upgrade all door lock modules at the same time nor remotely upgrade. Specifically, during implementation, first, the remote server forms a network with each door lock module through the video module; in the networked state, the server obtains the upgrade request information sent by the user terminal and determines the OTA upgrade package corresponding to the upgrade request information; finally, the OTA upgrade package is sent to the door lock module requested to be upgraded by the user terminal, and the OTA upgrade package is used to independently upgrade the door lock module.
[0042] For example, as Figure 2 shown, the intelligent door not only includes a video module and an intelligent door lock module, but also includes an in-door display module. An image acquisition sensor sensor is provided on the video module. The intelligent door lock module includes door lock modules such as a front panel, a rear panel, a face module, a radar module, a voice module, and a power board module. The in-door display module is a tablet or a display screen.
[0043] The server forms a network with each door lock module through the video module. Since the OTA upgrade packages of each door lock module are saved on the server, for example, the server saves the OTA upgrade packages of three versions, namely the first-generation OTA upgrade package, the second-generation OTA upgrade package, and the third-generation OTA upgrade package of the face module, which is a door lock module. If the user terminal sends an upgrade request message to the server to upgrade the face module to the latest third-generation OTA upgrade package, then the server will send the third-generation OTA upgrade package to the face module, and the face module uses the third-generation OTA upgrade package to perform system upgrade.
[0044] When the user terminal simultaneously sends upgrade request messages to the server for the five door lock modules, namely the front panel, the rear panel, the face module, the radar module, the voice module, and the power board module, the server sends the OTA upgrade packages corresponding to these five door lock modules to the corresponding door lock modules respectively, so that the five door lock modules can be independently upgraded.
[0045] The intelligent door control method of this embodiment can be applied to the server. In this embodiment, as Figure 1 shown, the intelligent door control method specifically includes the following steps:
[0046] S100, form a network with each of the door lock modules through the video module.
[0047] The server forms a network with each door lock module through the video module. The video module not only has an image sensor on it to collect face images, and the face module determines whether to open the intelligent door by identifying the face images, but also acts as a communication medium between the server and the door lock module.
[0048] S200, in the networked state, obtain the upgrade request message sent by the user terminal and determine the OTA upgrade package corresponding to the upgrade request message.
[0049] The server receives the upgrade request message sent by the user terminal, and the server parses the upgrade request message to send the OTA upgrade package to the corresponding door lock module.
[0050] S300, send the OTA upgrade package to the door lock module requested by the user terminal to be upgraded, and the OTA upgrade package is used to independently upgrade the door lock module.
[0051] The server sends the OTA upgrade package to the video module, and the video module then sends the OTA upgrade package to the corresponding door lock module.
[0052] Embodiment 1. In this embodiment, step S100 includes the following specific steps: Obtain the networking request sent by the front panel module through the video module, and the front panel module sends the networking request to the video module through the UART protocol; verify the networking request, and when the verification is passed, network with each of the door lock modules through the video module.
[0053] That is, the intelligent door lock module composed of each door lock module sends the PSN and KEY of each door lock module (PSN and KEY are networking requests) to the video module through the UART protocol to request the video module to network with the door lock module. The video module first connects to the router using the Wi-Fi module to achieve networking, performs sha1 encryption processing on the PSN and KEY of the door lock module, and verifies the identity information of the door lock module through the PSN and KEY. That is, the video module compares the received PSN and KEY with the PSN and KEY locally saved in the video module. If the received PSN and KEY are the same as the local PSN and KEY, the identity verification of the door lock module is passed, and the video module networks with the door lock module, thereby enabling the server to successfully network with the door lock module.
[0054] After the video module successfully networks with the server, in order to ensure the stability of the network connection between the two, it is necessary to continuously detect the network connection status between the two. If it is found that the video module and the server are disconnected from the network due to the disconnection between the video module and the WiFi (router), the server will receive a notice of the disconnection and send this notice to the client terminal, and the client terminal will restart the WiFi to enable the server and the video module to reconnect to the network.
[0055] Embodiment 2. In this embodiment, step S200 includes the following specific steps S201, S202, S203, and S204:
[0056] S201, determine the module identification information and the requested upgrade version information in the upgrade request information.
[0057] The module identification information is used to represent the door lock module requested to be upgraded by the user terminal, that is, the module identification information represents the door lock module identified by the user terminal and requested to be upgraded by the user terminal. The requested upgrade version information is used to represent the version to which the user terminal requests to upgrade the door lock module.
[0058] S202, determine the queue corresponding to the module identification information.
[0059] Multiple queues are pre-established in the server for storing OTA upgrade packages. One queue stores multiple versions of the OTA upgrade packages for one door lock module, that is, there is a corresponding relationship between the queue and the door lock module. Therefore, the queue corresponding to the door lock module requested to be upgraded by the user terminal can be found through the module identification information.
[0060] S203. Determine the pointer corresponding to the requested upgrade version information.
[0061] S204. Determine the OTA upgrade package corresponding to the pointer.
[0062] One queue stores multiple versions of the OTA upgrade packages for the same door lock module. The corresponding pointer is found according to the requested upgrade version information of the client terminal, and then the OTA upgrade package of the corresponding version is found according to the pointer.
[0063] The queue in this embodiment is a RandomShuffleQueue queue. The RandomShuffleQueue queue is a random queue that allows reading the OTA upgrade package pointed to by any pointer.
[0064] The queue of this embodiment can also be a first-in, first-out ordinary queue, and the latest version of the OTA upgrade package is located at the head of the queue. From the head of the queue to the tail of the queue, the version levels of the OTA upgrade packages decrease in turn. When the requested upgrade version information sent by the user terminal does not point to the head pointer but to a non-head pointer, the OTA upgrade packages are read from the head of the queue into the stack in turn until the non-head pointer is read, then the OTA upgrade package pointed to by the non-head pointer is sent to the door lock module, and the OTA upgrade packages in the stack are written into the queue again from the tail of the queue.
[0065] Embodiment 3. In this embodiment, the radar module is used to detect the position of the target object in front of the door, and whether to start the video module to shoot the video in front of the intelligent door is judged according to this position. This embodiment includes the following specific steps: Obtain the monitoring instruction sent by the user terminal; Send the monitoring instruction to the radar module through the video module, and the radar module is used to obtain the target position information in front of the door; Obtain the video information collected by the face module, and send the video information to the user terminal, and the video information is the video collected by the face module based on the start instruction of the radar module.
[0066] The face module in this embodiment does not perform real-time monitoring. This will cause the face module to be occupied by a large number of monitoring videos, affecting the functions of the face module to collect and recognize face images. When the user terminal sends a monitoring instruction to the server, the server forwards the monitoring instruction to the radar module through the video module to activate the radar module. When the radar module detects that someone in front of the door exceeds the safe position (the safe position is also the target position information in front of the door), it sends this position to the face module. The face module activates the video recording function to capture the video information in front of the door and sends this video information to the user terminal through the server so that the user terminal can view the visitors in front of the door.
[0067] In summary, the present invention first networks each door lock module with the server. After the server establishes a network connection with each door lock module, since the server stores the OTA upgrade packages of each door lock module, that is, the OTA upgrade packages on the server correspond one-to-one with the door lock modules. When the user end needs to upgrade a door lock module, it sends an upgrade request message to the server. The server finds the door lock module that the user end needs to upgrade and the corresponding OTA upgrade package, and sends this OTA upgrade package to this door lock module. This door lock module uses the OTA upgrade package to complete the upgrade. From the above analysis, it can be seen that the present invention can realize the remote upgrade of each door lock module through a remote server. Also, since the server stores the OTA upgrade packages required by each door lock module, each door lock module can be independently upgraded simultaneously to improve the upgrade speed.
[0068] This embodiment also provides an intelligent door control device, as Figure 3 shown. The device includes the following components:
[0069] A networking module 01, configured to network with each of the door lock modules through the video module;
[0070] An upgrade package matching module 02, configured to obtain the upgrade request message sent by the user terminal and determine the corresponding OTA upgrade package in the networking state;
[0071] A sending module 03, configured to send the OTA upgrade package to the door lock module requested to be upgraded by the user terminal, and the OTA upgrade package is used to independently upgrade this door lock module.
[0072] Based on the above embodiment, the present invention also provides a terminal device, and its principle block diagram can be as Figure 4As shown in the figure. The terminal device includes a processor, a memory, a network interface, and a display screen connected through a system bus. Among them, the processor of the terminal device is used to provide computing and control capabilities. The memory of the terminal device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal device is used to communicate with an external terminal through a network connection. The computer program, when executed by the processor, implements an intelligent door control method. The display screen of the terminal device can be a liquid crystal display screen or an electronic ink display screen.
[0073] Those skilled in the art can understand that Figure 4 the principle block diagram shown in the figure is only a block diagram of some structures related to the solution of the present invention, and does not constitute a limitation on the terminal device to which the solution of the present invention is applied. The specific terminal device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0074] In one embodiment, a terminal device is provided. The terminal device includes a memory, a processor, and an intelligent door control program stored in the memory and executable on the processor. When the processor executes the intelligent door control program, the following operation instructions are implemented:
[0075] Network with each of the door lock modules through the video module;
[0076] In the networking state, obtain the upgrade request information sent by the user terminal, and determine the OTA upgrade package corresponding to the upgrade request information;
[0077] Send the OTA upgrade package to the door lock module requested by the user terminal for upgrade. The OTA upgrade package is used to independently upgrade the door lock module.
[0078] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, storage, database, or other medium used in the embodiments provided by the present invention can include non-volatile and / or volatile memories. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments or equivalently replace some of the technical features. These modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A smart door control method, wherein the smart door includes a video module and door lock modules, characterized in that: The intelligent door control method comprises: Networking is performed with each of the door lock modules through the video module; In a networking state, obtaining upgrade request information sent by a user terminal, and determining an OTA upgrade package corresponding to the upgrade request information; The OTA upgrade package is sent to the door lock module requested to be upgraded by the user terminal, and the OTA upgrade package is used to independently upgrade the door lock module.
2. The intelligent door control method according to claim 1, characterized in that: The video module is networked with each of the door lock modules, including: Acquiring a networking request sent by the front panel module through the video module, and sending the networking request to the video module through a UART protocol; The networking request is verified, and when the verification is successful, networking is performed with each of the door lock modules through the video module.
3. The intelligent door control method according to claim 1, characterized in that: The determining the OTA upgrade package corresponding to the upgrade request information includes: Determining the module identification information and the requested upgrade version information in the upgrade request information; Determining a queue corresponding to the module identification information; Determine a pointer corresponding to the requested upgrade version information; Determine the OTA upgrade package corresponding to the pointer.
4. The intelligent door control method according to claim 1, characterized in that: The OTA upgrade package is sent to the door lock module requested to be upgraded by the user terminal, including: The OTA upgrade package is sent to the door lock module requested to be upgraded by the user terminal via the MQTT protocol.
5. The intelligent door control method according to any one of claims 1 to 4, characterized in that: The video module is provided with a wireless module, and the video module is connected to the display module inside the door via Ethernet or USB serial port protocol.
6. The intelligent door control method according to claim 1, characterized in that: The door lock module is a radar module, and the smart door control method further includes: Obtaining a monitoring instruction sent by the user terminal; The monitoring instruction is sent to the radar module through the video module, and the radar module is used to obtain the target position information in front of the door; The video information collected by the face module is obtained, and the video information is sent to the user terminal, where the video information is the video collected by the face module based on the startup instruction of the radar module.
7. The intelligent door control method according to claim 1, characterized in that: The door lock module includes an inner-door voice module and an outer-door voice module, and the intelligent door control method further includes: A time period during which voice interaction is allowed is sent to the video module, and the video module is used to control the voice interaction between the voice module outside the door and the voice module inside the door based on the time period.
8. A smart door control device, the smart door comprising a video module and door lock modules, characterized in that: The device comprises the following components: A networking module, used for networking with each of the door lock modules through the video module; An upgrade package matching module is used to obtain the upgrade request information sent by the user terminal in a networking state, and determine the OTA upgrade package corresponding to the upgrade request information; The sending module is used to send the OTA upgrade package to the door lock module requested to be upgraded by the user terminal, and the OTA upgrade package is used to independently upgrade the door lock module.
9. A terminal device, characterized in that: The terminal device includes a memory, a processor, and a smart door control program stored in the memory and executable on the processor. When the processor executes the smart door control program, the steps of the smart door control method as described in any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a smart door control program, and when the smart door control program is executed by the processor, the steps of the smart door control method as described in any one of claims 1-7 are implemented.