Method and system for collaborative voice switching between door locks
Through the collaborative function of Bluetooth tag status monitoring and neighbor door lock, the communication efficiency and response delay of smart door locks in voice communication are solved, and seamless voice interconnection between smart door locks is realized to meet users' efficient communication needs.
Patent Information
- Application Number
- CN202510773839.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-11
- Publication Date
- 2025-07-11
- Estimated Expiration
- 2045-06-11
AI Technical Summary
The existing smart door locks have problems in voice communication, poor information transmission and delayed response in terms of voice communication, especially when the owner is unable to effectively answer home calls when he leaves home, and lacks the coordination function of the adjacent door lock.
Through Bluetooth tag status monitoring and broadcast request, the door lock detects the owner leaving home and generates a transfer request broadcast. The neighbor door lock prompts a call when it senses the Bluetooth tag, and establishes a voice channel under the authorization of the answer button to realize voice data flow and call management between the door locks.
It realizes seamless voice interconnection between smart door locks, meets users' efficient communication needs in smart home environment, and ensures that members who leave their home can answer home calls in a timely manner.
Smart Images

Figure CN120302271A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of voice technology, and particularly relates to a method and system for collaborative voice transfer between door locks. Background Art
[0002] With the continuous development of smart home systems, smart door locks not only have the traditional mechanical unlocking function but also integrate wireless communication technology to achieve remote control and status monitoring. However, existing smart door locks still have deficiencies in voice communication. Especially when the owner is away from home, calls from the family may be missed, affecting communication efficiency. In addition, current smart door locks lack the collaborative function with neighboring door locks, resulting in poor information transmission and response delays. At the same time, the security and reliability of existing voice call systems also urgently need to be improved. Summary of the Invention
[0003] The purpose of the present invention is to provide a method and system for collaborative voice transfer between door locks to solve the deficiencies in the prior art, enabling seamless voice interconnection between smart door locks and meeting the user's high-efficiency communication needs in a smart home environment.
[0004] An embodiment of the present application provides a method for collaborative voice transfer between door locks, the method comprising: Bluetooth tag status monitoring and broadcast request: When door lock A detects that the Bluetooth tag Tag-DID of owner a leaves the communication range, cache the leaving-home status information of the tag; when door lock A receives a call from the mobile terminal of owner b and there is no answer at home, generate a transfer request broadcast message containing the ID, IP of door lock A, and the leaving-home Bluetooth tag Tag-DID, and send it to other door locks; Neighboring door lock Bluetooth tag matching and reminder: When door lock Z receives the transfer request broadcast message and senses the Tag-DID of owner a, prompt door lock A to make a call; Transfer authorization and connection establishment: When owner a presses the answering button corresponding to the Bluetooth tag Tag-DID, door lock Z initiates a transfer connection request to door lock A to establish a voice channel with door lock A; Voice data transfer and call management: According to the established voice channel, real-time voice data is transmitted between door lock Z, door lock A, and the mobile terminal of owner b; when the voice call ends, door lock A disconnects the connection with door lock Z and the mobile terminal to complete this voice transfer call.
[0005] Optionally, the Bluetooth tag status monitoring and broadcast request includes: Bluetooth tag leaving detection: According to door lock A periodically listening to Bluetooth advertisement packets, if the paired Tag-DID is not detected continuously for N times, it is determined that owner a leaves home with the tag, and the going-out status information is cached; Call response timeout judgment: When the door lock A receives a call from the mobile APP of the host b, a 30-second countdown is started; if no one answers through the inner panel of the door lock A during this period, the transfer process is triggered; Broadcast message generation and sending: According to the timeout result, a broadcast message containing the ID, IP, and Tag-DID of the door lock A is generated and sent to other door locks through the local area network in a group, and a 30-second validity period is set.
[0006] Optionally, the neighbor door lock Bluetooth tag matching and reminder includes: Broadcast message reception and caching: According to the door lock Z receiving and parsing the broadcast message, the Tag-DID and the IP of the door lock A are extracted and cached in the local queue; Tag dynamic sensing and matching: When the Bluetooth module of the door lock Z detects that the Tag-DID enters the communication range and the comparison with the cached queue is successful, a voice reminder is triggered; Reminder method control: According to the matching result, the door lock Z starts the voice module to play a preset prompt tone and at the same time lights up the LED indicator on the outer panel.
[0007] Optionally, the transfer authorization and connection establishment includes: Bluetooth tag answer instruction parsing: According to the door lock Z receiving the answer button signal sent by the Tag-DID, its Tag-DID and the authorization timestamp are extracted; Transfer request generation and sending: According to the authorization information, the door lock Z sends a connection request to the IP of the door lock A, including the event ID and the Tag-DID; Connection verification and channel establishment: According to the door lock A verifying the validity of the event ID and the Tag-DID, if they match and the call has not timed out, a TCP / IP voice channel is established with the door lock Z.
[0008] Optionally, the voice data transfer and call management includes: Voice data packet transmission: According to the established channel, the door lock A splits the voice stream of the mobile APP into data packets and forwards them to the door lock Z through the local area network; Real-time two-way communication: According to the door lock Z receiving and playing the voice data, at the same time collecting the voice of the host a and sending it back to the door lock A and the mobile APP; Call termination processing: According to the hang-up signal from the mobile APP or the door lock Z, the door lock A closes the channel, deletes the cached event ID, and generates a call log.
[0009] Another embodiment of the present application provides a system for collaborative voice transfer between door locks, and the system includes: Request module, used for Bluetooth tag status monitoring and broadcast request: when door lock A detects that the Bluetooth tag Tag-DID of owner a has left the communication range, it caches the away status information of the tag; when door lock A receives a call from the mobile terminal of owner b and no one at home answers the call, it generates a forwarding request broadcast message containing the ID, IP address and Bluetooth tag Tag-DID of door lock A that has left home, and sends it to other door locks; The reminder module is used for Bluetooth tag matching and reminder of neighbor door locks: when door lock Z receives the forwarding request broadcast message and senses the Tag-DID of owner a, it prompts door lock A to call; Establish a module for transfer authorization and connection establishment: When the owner a presses the answer button corresponding to the Bluetooth tag Tag-DID, the door lock Z initiates a transfer connection request to the door lock A and establishes a voice channel with the door lock A; Management module, used for voice data flow and call management: according to the established voice channel, voice data is transmitted in real time between door lock Z, door lock A and owner b's mobile terminal; when the voice call ends, door lock A disconnects from door lock Z and the mobile terminal to complete the voice transfer call.
[0010] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above methods when running.
[0011] Yet another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the methods described above.
[0012] Compared with the prior art, the present invention provides a method for collaborative voice transfer between door locks, Bluetooth tag status monitoring and broadcast request: according to door lock A detecting that the Bluetooth tag Tag-DID carried by owner a leaves the communication range, the out-of-door status information of the tag is cached, and the broadcast result of the transfer request is obtained; neighbor door lock Bluetooth tag matching and reminder: according to door lock Z receiving the broadcast message and sensing that the Tag-DID enters its communication range, a reminder result of the person carrying the Bluetooth tag is obtained; transfer authorization and connection establishment: according to owner a pressing the answer button of the Bluetooth tag, the transfer connection result between the door locks is obtained; voice data flow and call management: according to the established voice channel, voice data is transmitted in real time between door lock Z, door lock A and owner b's mobile phone APP, and the complete process result of voice transfer is obtained, thereby realizing seamless voice interconnection between smart door locks and meeting users' efficient communication needs in a smart home environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1Hardware structure block diagram of a computer terminal for a method of collaborative voice transfer between door locks provided by an embodiment of the present invention; Figure 2 Flow schematic diagram of a method of collaborative voice transfer between door locks provided by an embodiment of the present invention; Figure 3 Structure schematic diagram of a system for collaborative voice transfer between door locks provided by an embodiment of the present invention. Detailed implementation manners
[0014] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0015] An embodiment of the present invention first provides a method for collaborative voice transfer between door locks. This method can be applied to electronic devices, such as computer terminals, specifically, ordinary computers, etc.
[0016] The following takes running on a computer terminal as an example to describe it in detail. Figure 1 Hardware structure block diagram of a computer terminal for a method of collaborative voice transfer between door locks provided by an embodiment of the present invention. As Figure 1 shown, this computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the memory can include a non-volatile storage medium and an internal memory.
[0017] The non-volatile storage medium can store an operating system and a computer program. This computer program includes program instructions. When the program instructions are executed, the processor can execute any method of collaborative voice transfer between door locks.
[0018] The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
[0019] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any method of collaborative voice transfer between door locks.
[0020] This network interface is used for network communication, such as sending assigned tasks, etc. Those skilled in the art can understand that Figure 1 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.
[0021] It should be understood that the processor may be a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0022] See Figure 2 , an embodiment of the present invention provides a method for collaborative voice transfer between door locks, which may include the following steps: S201, Bluetooth tag status monitoring and broadcast request: When door lock A detects that the Bluetooth tag Tag-DID of owner a leaves the communication range, cache the leaving-home status information of the tag; when door lock A receives a call from the mobile terminal of owner b and no one answers at home, generate a transfer request broadcast message including the ID, IP of door lock A, and the already left-home Bluetooth tag Tag-DID, and send it to other door locks; specifically, the Bluetooth tag status monitoring and broadcast request includes: Bluetooth tag departure detection: According to door lock A periodically listening to Bluetooth advertisement packets, if the paired Tag-DID is not detected continuously for N times, it is determined that owner a has left home with the tag, and cache the going-out status information; Call response timeout judgment: According to door lock A receiving a call from the mobile phone APP of owner b, start a 30-second countdown; if no one answers through the inner panel of door lock A during this period, trigger the transfer process; Broadcast message generation and sending: According to the timeout result, generate a broadcast message including the ID, IP of door lock A, and Tag-DID, and send it to other door locks through the local area network in a group, and set a 30-second validity period.
[0023] S202, Bluetooth tag matching and reminder of neighbor door lock: When door lock Z receives the transfer request broadcast message and senses the Tag-DID of owner a, prompt door lock A to make a call; specifically, the Bluetooth tag matching and reminder of neighbor door lock includes: Broadcast message reception and caching: According to door lock Z receiving and parsing the broadcast message, extract Tag-DID and the IP of door lock A, and cache them to the local queue; Tag dynamic sensing and matching: According to the Bluetooth module of door lock Z detecting that the Tag-DID enters the communication range and the comparison with the cached queue is successful, trigger a voice reminder; Reminder mode control: Based on the matching result, the door lock Z activates the voice module to play a preset reminder sound and simultaneously lights up the LED indicator on the outer panel.
[0024] S203, Transfer authorization and connection establishment: When the host a presses the answer button corresponding to the Bluetooth tag Tag-DID, the door lock Z sends a transfer connection request to the door lock A to establish a voice channel with the door lock A. Specifically, the transfer authorization and connection establishment includes: Bluetooth tag answer instruction parsing: According to the answer button signal sent by the Tag-DID received by the door lock Z, extract its Tag-DID and authorization timestamp. Transfer request generation and sending: According to the authorization information, the door lock Z sends a connection request to the IP of the door lock A, including the event ID and Tag-DID. Connection verification and channel establishment: According to the door lock A's verification of the validity of the event ID and Tag-DID, if they match and the call has not timed out, a TCP / IP voice channel is established with the door lock Z.
[0025] S204, Voice data transfer and call management: Based on the established voice channel, voice data is transmitted in real time among the door lock Z, the door lock A, and the mobile terminal of the host b. When the voice call ends, the door lock A disconnects from the door lock Z and the mobile terminal to complete this voice transfer call. Specifically, the voice data transfer and call management includes: Voice data packet transmission: According to the established channel, the door lock A splits the voice stream of the mobile phone APP into data packets and forwards them to the door lock Z through the local area network. Real-time two-way communication: According to the door lock Z receiving and playing the voice data, the voice of the host a is collected and sent back to the door lock A and the mobile phone APP at the same time. Call termination processing: According to the hang-up signal from the mobile phone APP or the door lock Z, the door lock A closes the channel, deletes the cached event ID, and generates a call log.
[0026] In practical applications, the host who is away from home can call their own door lock through the mobile phone APP of the smart door lock to have a voice / video call with other hosts at home for remote care and to understand the situation at home. However, sometimes when family members go out, they cannot answer the call and intercom from the mobile phone APP.
[0027] A Bluetooth tag is a wireless short-range communication device based on Bluetooth technology. Its implementation principle is based on Bluetooth Low Energy (BLE) technology, which can transmit data in low-power mode, thus extending the battery life of the device. The Bluetooth tag is an active device, and the working status of the tag can be turned on or off through the switch on the tag. When the Bluetooth tag leaves the factory, it will be assigned a unique DID (Bluetooth-Tag Declaration ID, Bluetooth tag declaration ID, abbreviated as Tag-DID). This Tag-DID is the identity identifier of the Bluetooth tag, similar to the MAC address of a WiFi device. This unique ID ensures that the Bluetooth tag can be accurately identified and tracked.
[0028] 1. Core idea: When the home door lock A receives a call from a certain family member B, the family member A at home can answer and communicate on the door lock, but when member A goes out, the call cannot be answered. The improved design is as follows: When member A goes out with the Bluetooth tag; when member B calls the home door lock and no one answers the call for 30 seconds, it broadcasts to all door locks in the community, including all Bluetooth tag IDs paired with itself and the home room number; when a certain door lock Z senses the Bluetooth tag of member A, it calls member A, and the content includes member A's room number to attract member A's attention; member A presses the answer button on door lock Z, and door lock Z establishes a connection with door lock A to realize the transfer and interaction of voice data among door lock Z, door lock A, and member B. Improvement point 1: When the home door lock receives a call, it synchronously asks other door locks who has detected one of the Bluetooth IDs. If a door lock senses one of the Bluetooth IDs, it reminds the member to answer, thus accelerating the answering process. Improvement point 2: If a member goes out with a Bluetooth tag and the home door lock senses it, the home door lock only carries this Bluetooth ID during the broadcast. Improvement point 3: The home door lock pre-announces the set of Bluetooth IDs bound to itself. After other door locks detect it, they actively and real-time tell the home door lock. If the home door lock receives a voice call, it immediately connects to that door lock. If there are multiple Bluetooth IDs outside and multiple other door locks report, the home door lock can also make a point-to-multipoint call when receiving a call.
[0029] 2. The complete technical implementation process is as follows: (1) Prerequisites: The smart door lock is installed on the host's entrance door, and a family member information table is saved, including name, face image / feature vector, mobile APP-ID, Tag-DID of the Bluetooth tag successfully paired with the door lock, etc. The door locks are connected to the network, and a door lock list is recorded, including the door lock ID of other smart door locks, Tag-DID of the Bluetooth tag successfully paired with the door lock (there can be multiple), etc. (Generally, the pairing process is as follows: both the Bluetooth tag and the door lock are in the on state, the Bluetooth tag is in the peripheral mode, and the door lock is in the central mode. When the door lock listens to the advertisement data packet of the Bluetooth tag, it can extract the MAC address of the tag (i.e., Tag-DID). Manually select the sensed Tag-DID on the door lock panel and confirm the pairing one by one. This pairing process is not the focus of the present invention and will not be elaborated.)
[0030] The APP of the smart door lock is installed on the host's mobile phone, and it has an independent APP-ID.
[0031] (2) The owner a of door lock A takes the Bluetooth tag out when going out: When a goes out, he takes the Bluetooth tag Tag-DID(1) in the on state. After a passes by the smart door lock and leaves home, door lock A continuously listens to the Bluetooth advertisement messages periodically (once every 2 seconds) (at this time, if Tag-DID(1) is within the Bluetooth communication range, it can be sensed). If Tag-DID(1) cannot be sensed, the leaving information of Tag-DID(1) is immediately cached, including Tag-DID(1). A also caches other sensed Bluetooth tags (at this time, the other tags at home have not been taken out of the house and are still at home and can be sensed by A).
[0032] Note: Each family may have multiple Bluetooth tags, and each tag has been paired with the smart door lock. For example, door lock A has 3 Bluetooth tags (such as Tag-DID(1), Tag-DID(2), Tag-DID(3)), just like a mechanical lock at home has 3 mechanical keys, and the owner a can take any one out when going out. When the other tags are all at home, (3) when the owner b of door lock A calls door lock A through the mobile APP remotely and there is no response after 30 seconds, door lock A sends a broadcast message to request the neighbor door lock to perform a call transfer.
[0033] Owner B, who is away from home, calls door lock A through the smart door lock's mobile phone APP. If C is at home, he can answer owner B's call through the inner panel of the smart door lock (at this time, the inner panel will ring) and establish a video / voice call. After the call, either party can hang up the video / voice call and the process ends. If owner B calls door lock A and waits for 30 seconds but no one at home answers (this may be the case when no one else in the house is at home), door lock A maintains the call establishment and waits, and sends a "Who will transfer" request message to all door locks, including the event ID number (which can be numbered by door lock ID number + current clock), door lock ID (A), door lock IP (A), Bluetooth tag Tag-DID (1), Tag-DID (2), Tag-DID (3), timestamp, etc. Other door locks (such as door lock Z) receive and cache A's broadcast message, and automatically delete it after 30 seconds (generally speaking, when the owner calls his own door lock through the APP, the waiting time will not be too long, and generally the call will be hung up if it is not connected within 30 seconds). If door lock A does not receive a response after 30 seconds of maintaining the call with owner B, it will automatically hang up the call from owner B and end the process. If owner B disconnects and calls again within 30 seconds after door lock A sends the broadcast message, the "Who will transfer" request message broadcast will not be resent.
[0034] Note: Anyone at home (such as a, c, d, etc.) can answer the video / voice call with owner b through the inner panel of the smart door lock. The broadcast message sent by door lock A contains all the successfully paired Bluetooth tags Tag-DID of door lock A to ensure that the family can realize the call transfer of the present invention with any Bluetooth tag. The cached broadcast message is automatically deleted after 30 seconds to ensure the validity of the call. For example, at this time, the family has returned home or is not in the community, and the mobile phone APP that initiated the call is unlikely to be disconnected after waiting too long, and then multiple calls can be made again. If no one answers the multiple calls, the process ends.
[0035] (4) Family members carrying Bluetooth tags can answer calls from their own door locks at their neighbor's door through the neighbor's door lock.
[0036] When the owner a of the home door lock A passes by the door lock Z, Z senses the Bluetooth tag Tag-DID(1) carried by the owner a of A. After successful comparison with the Bluetooth tag Tag-DID number in the broadcast message of "who will transfer" sent by the cached door lock A, the door lock ID (A) number in the broadcast message is extracted and the voice prompt "Door lock A is calling" is immediately given on the outer panel of the door lock Z to attract a's attention. If a does not notice the voice prompt on the outer panel of Z, leaves the community (no longer passes by any door lock), and more than 30 seconds have passed, the process ends. If a hears the voice prompt on the outer panel of Z, then press the answer button on the carried Bluetooth tag Tag-DID(1) (a button on the Bluetooth tag, set to "answer", to confirm the establishment of communication with Z) to send an authorization message of "answer", the content includes Tag-DID(1), etc. The door lock Z receives the authorization information of "answer" of the Bluetooth tag Tag-DID(1), queries the door lock list according to Tag-DID(1) and queries the door lock IP (A) of the door lock A, and initiates a request to establish a transfer connection with the door lock A. The request message includes the event ID number sent by A, etc. If the door lock A is in the waiting state of maintaining the call connection with the owner b at this time, then A receives the connection request from Z and establishes a connection with Z. The door lock Z transfers the call of the owner b of the door lock A. At this time, the owner a of the door lock A can have a video / voice conversation with the owner b of the door lock A on the outer panel of the door lock Z. If the owner b of the door lock A has hung up the call when the door lock Z establishes a connection with A, then the process ends after waiting for 30 seconds, and the door lock A disconnects the transfer connection between the door lock Z and A. In the established call connection, if you want to end the video / voice conversation, the owner a can inform the owner b to end the call or the owner b can directly hang up the call. At this time, the door lock A disconnects the connection established between the door lock Z and A, as well as the connection between the door lock A and the owner b. The door lock A caches the call record transferred through the door lock Z this time, and the content includes the event ID number, etc.
[0037] Note: The transfer connection can be used to answer the video / voice call by using the other party's door lock. For example, after the transfer connection between Z and A is established, Z can replace A to have a video / voice conversation with the owner b.
[0038] (5) If the owner calls his own door lock again through the mobile APP within the set 30-second time limit, the home door lock does not need to send a broadcast request for transfer again. The family members carrying the Bluetooth tag in the broadcast message within the validity period can answer the call transfer of the owner of their own home to their own door lock through the transfer of the neighbor's door lock at the neighbor's door.
[0039] If, after Master A ends a call with Master B through door lock Z and within 30 seconds after door lock A broadcasts a request message of "Who wants to transfer?", Master A comes to door lock Y again. At this time, door lock Y senses the Bluetooth tag Tag-DID(1) carried by Master A of lock A. After successful comparison with the Bluetooth tag Tag-DID number in the broadcast message of "Who wants to transfer?" sent by door lock A cached, it immediately gives a voice prompt of "Door lock A is calling" on the outer panel of door lock Y to attract Master A's attention. If Master A has just ended a call at this time, he will ignore this voice prompt and leave directly, and the process ends. If Master A wants to call Master B again at this time, he can press the answer button of Bluetooth tag Tag-DID(1) according to the method in step (4). Door lock Y receives the "answer" information of Bluetooth tag Tag-DID(1), queries the door lock list according to Tag-DID(1) and queries the door lock IP(A) of door lock A, and initiates a request to establish a transfer connection with door lock A. The request message includes the event ID number sent by A, etc. When door lock A receives the connection request from door lock Y, it extracts the event ID number and compares it with the call record transferred by door lock Z cached. If it finds that there is already a call connection record, and if Master B initiates a call again after ending the call transferred by door lock Z at this time, then door lock A and Y establish a connection and build a video / voice call transferred by door lock Y according to the method in step (4); if Master B does not initiate a call at this time, then door lock A rejects the connection request from door lock Y and sends a reply message of "Connection rejected", including the event ID number sent by A, etc. Door lock Y receives the message of "Connection rejected" and gives a voice prompt of "Unable to connect" on the outer panel of the door lock. After Master A hears the voice prompt, he leaves Y and the process ends.
[0040] Note: If, after the aforementioned call ends and within 30 seconds after door lock A broadcasts a request message of "Who wants to transfer?", Master B initiates a call again, then if Master A is sensed by a certain door lock Y, a call transferred by door lock Y can be built again.
[0041] (6) Further improvement: When the door lock receives a call from its own master, the door lock broadcasts all the successfully paired Bluetooth tag ID numbers to other door locks. If a door lock senses this Bluetooth tag ID number, it reminds the person carrying this Bluetooth tag to answer, thus accelerating the answering (no need to wait for 30 seconds at this time).
[0042] In steps (3) and (4), when the owner b of door lock A calls their own door lock A via the mobile phone APP while being in a different location, while the door lock A rings and calls inside the inner panel of its own door lock, it simultaneously sends a broadcast message of "Who will transfer" to all door locks (at this time, instead of delaying for 30 seconds to wait for a family member to respond and answer, a broadcast message is sent simultaneously during the waiting period), including the event ID number (which can be numbered with the door lock ID number + the current clock), door lock ID (A), door lock IP (A), Bluetooth tag Tag-DID (at this time, including all Bluetooth tag ID numbers that the door lock has successfully paired), timestamp, etc. Other door locks receive and cache the broadcast message and then delete it after 30 seconds. At this time, for example, when door lock Z senses the Bluetooth tag Tag-DID (1) (at this time, the Bluetooth tag Tag-DID (1) carried by the owner a of A passes by door lock Z), it immediately follows the methods in steps (3) and (4) to alert the attention of the owner a and realizes a conversation with the mobile phone APP of the owner b of A through the transfer via Z.
[0043] If when Z queries the door lock list according to Tag-DID (1) and queries the door lock IP (A) of door lock A, and initiates a request to establish a transfer connection with door lock A (the request message includes the event ID number sent by A, etc.), if there is someone (such as family member c) at home in door lock A and answers b's call first on the inner panel, then after A receives the transfer connection request from Z, it sends a "reject" reply message to Z, including the event ID number, door lock ID (A), door lock IP (A), Bluetooth tag Tag-DID (1) (at this time, door lock A has been answered by the family member c at home on the inner panel). After Z receives the "reject" reply message, the process ends. If door lock A has established a transfer connection and is already in the state of having a conversation with the mobile phone APP of the owner b of A through the transfer via Z, then A immediately stops the ringing of the inner panel of the door lock and no longer receives calls on the inner panel. If at this time the family member c at home just hears the ringing and comes to answer, they cannot answer.
[0044] (7) Further improvement: When the door lock sends a request message broadcast of "Who will transfer" to all door locks, only send the Bluetooth tag Tag-DID that has been clearly left home and gone out in the cache, so as to reduce the amount of information in the broadcast message sent by door lock A, and can also save the cache space of other door locks receiving the broadcast message and the comparison overhead of the Tag-DID number after sensing the Bluetooth tag.
[0045] In step (4), when the door lock receives a call from the mobile phone APP of the owner b in a different place, it sends a request message of "Who will transfer" as a broadcast to all door locks, including the event ID number (which can be numbered with the door lock ID number + the current clock), the door lock ID (A), the door lock IP (A), the Bluetooth tag Tag-DID (1), the timestamp, etc. (At this time, only the Bluetooth tag Tag-DID (1) that has left home and gone out cached by the door lock is sent because, according to step (2), the door lock recognizes that Tag-DID (1) is not at home; if multiple Bluetooth tags Tag-DID that have left home and gone out have been cached according to step (2), then multiple Tag-DIDs need to be sent at this time). When other door locks (such as door lock Z) receive the broadcast message of "Who will transfer", they cache the message. When a Bluetooth tag is sensed, according to step (4), a conversation between door lock A that needs to be transferred through Z and the owner b in a different place through the mobile phone APP can be established. This method can reduce the amount of information in the broadcast message sent by door lock A and also save the cache space of the door locks receiving the broadcast message and the comparison overhead of the Tag-DID (because at this time A only sends the Bluetooth tags that have clearly left home, rather than all the Bluetooth tags that A has successfully paired).
[0046] (8) Further improvement: Door lock A pre-sends all the Bluetooth tag IDs successfully paired with its own door lock to other door locks for storage through a broadcast message. When any door lock senses its own Bluetooth tag, it should send a message to inform this lock. When there is a need for call transfer from the owner's mobile phone APP, it automatically queries the door locks that have sent messages and are within the time limit, and connects to them to achieve call transfer. If multiple door locks can be connected, a multi-point-to-multi-point form is used to establish multiple connections, and finally, the door lock selected by the person who has left home and is outside is chosen to conduct the conversation for call transfer.
[0047] The door lock announces the set of all successfully paired Bluetooth tag Tag-DIDs of this lock to all other door locks: First, door lock A pairs with its own Bluetooth tags one by one and stores them in the door lock list, including the door lock ID, door lock IP, Tag-DIDs of the Bluetooth tags successfully paired with the door lock (there can be multiple), etc. When door lock A is started for the first time or restarted, it sends a "My Paired Bluetooth" broadcast message containing the door lock ID (A), door lock IP (A), and Tag-DIDs of the Bluetooth tags successfully paired with the door lock (including multiple tag ID numbers at this time) to all other door locks. Other door locks (such as door lock Z) receive the "My Paired Bluetooth" broadcast message from A and extract the information therein to write into the door lock list of this lock, including the door lock ID (A), door lock IP (A), and Tag-DIDs of the Bluetooth tags successfully paired with door lock A (there can be multiple), etc. (Other door locks use the same method to send and receive Bluetooth tags successfully paired. At this time, door lock Z stores all other door lock IDs in the community and their successfully paired Bluetooth tags).
[0048] When the owner a who leaves his own door lock A carries the successfully paired Bluetooth tag Tag-DID(1) and passes by door lock Z, Z senses Tag-DID(1). After comparing and querying it with the Tag-DID numbers of the Bluetooth tags in the door lock list saved in this lock, if the comparison and query are successful, it extracts the corresponding door lock ID (A) and door lock IP (A) of Tag-DID(1) and actively sends a "Tag Detected" message to door lock A, including the door lock ID (Z), door lock IP (Z), and the Tag-DID(1) of the sensed Bluetooth tag, etc. Door lock A receives and caches this message and deletes it after 30 seconds of storage. If within the subsequent 30 seconds, door lock A receives "Tag Detected" messages sent by multiple door locks, it caches these multiple messages simultaneously and deletes each of them after 30 seconds of storage (the storage time starts from the moment of receiving the message).
[0049] If the owner b of the door lock A calls the door lock A through the mobile phone APP when in a different place at this time, the door lock A immediately checks whether there is a "found tag" message in the cache. If there is, it extracts the door lock ID (Z) and door lock IP (Z) in the "found tag" message record (at this time, the message is within 30 seconds, such as the door lock Z). Then A actively initiates a connection request to the door lock Z and establishes a connection with Z, and transfers the call from the mobile phone APP of the owner b to the door lock Z. At this time, the owner a can have a conversation with the mobile phone APP of the owner b in front of the door lock Z. If the door lock A finds that there are multiple "found tag" messages (such as the door lock X, door lock Y, and door lock Z) when checking whether there is a "found tag" message in the cache, it simultaneously calls and establishes connections with the door lock X, door lock Y, and door lock Z in a point-to-multipoint manner. According to the method in step (4), if the owner a presses the answer button on the door lock (such as the door lock Z), A uses the connection with the door lock Z as the call link for transferring the mobile phone APP of the owner b, and at the same time interrupts the connections with other door locks (such as the door lock X and door lock Y at this time). After the call between the owner a and b ends, the door lock A disconnects the connection between A and Z and the connection between A and the mobile phone APP of the owner b, and the process ends.
[0050] Beneficial effects: Family members build a call between the owner of their own home and their own door lock transferred through the neighbor's door lock through the induction and confirmation of the Bluetooth tag Tag-DID on the neighbor's door lock, solving the problem of answering the call of their own door lock after the family members leave home.
[0051] It can be seen that for the Bluetooth tag status monitoring and broadcast request: according to the door lock A detecting that the Bluetooth tag Tag-DID carried by the owner a leaves the communication range, caching the going-out status information of the tag to obtain the broadcast result of the transfer request; for the Bluetooth tag matching and reminder of the neighbor's door lock: according to the door lock Z receiving the broadcast message and sensing that the Tag-DID enters its communication range, obtaining the reminder result of the person carrying the Bluetooth tag; for the transfer authorization and connection establishment: according to the owner a pressing the answer button of the Bluetooth tag, obtaining the transfer connection result between the door locks; for the voice data transfer and call management: according to the established voice channel, real-time transmission of voice data among the door lock Z, door lock A, and the mobile phone APP of the owner b to obtain the complete process result of the voice transfer, so as to realize the seamless voice interconnection between intelligent door locks and meet the efficient communication needs of users in the smart home environment.
[0052] Another embodiment of the present invention provides a system for collaborative voice transfer between door locks. Refer to Figure 3 and the system may include: Request module 301, for Bluetooth tag status monitoring and broadcast request: When door lock A detects that the Bluetooth tag Tag-DID of master a leaves the communication range, cache the leaving-home status information of this tag; when door lock A receives a call from the mobile terminal of master b and there is no answer at home, generate a transfer request broadcast message containing the ID, IP of door lock A and the Bluetooth tag Tag-DID that has left home, and send it to other door locks. Reminder module 302, for neighbor door lock Bluetooth tag matching and reminder: When door lock Z receives the transfer request broadcast message and senses the Tag-DID of master a, prompt door lock A to make a call. Establishment module 303, for transfer authorization and connection establishment: When master a presses the answer button corresponding to the Bluetooth tag Tag-DID, door lock Z initiates a transfer connection request to door lock A to establish a voice channel with door lock A. Management module 304, for voice data transfer and call management: According to the established voice channel, real-time transfer of voice data among door lock Z, door lock A and the mobile terminal of master b; when the voice call ends, door lock A disconnects the connection with door lock Z and the mobile terminal to complete this voice transfer call.
[0053] It can be seen that for Bluetooth tag status monitoring and broadcast request: According to door lock A detecting that the Bluetooth tag Tag-DID carried by master a leaves the communication range, cache the going-out status information of this tag to obtain the broadcast result of the transfer request; for neighbor door lock Bluetooth tag matching and reminder: According to door lock Z receiving the broadcast message and sensing that the Tag-DID enters its communication range, obtain the reminder result of the person carrying the Bluetooth tag; for transfer authorization and connection establishment: According to master a pressing the answer button of the Bluetooth tag, obtain the transfer connection result between door locks; for voice data transfer and call management: According to the established voice channel, real-time transfer of voice data among door lock Z, door lock A and the mobile phone APP of master b to obtain the complete process result of voice transfer, so as to realize seamless voice interconnection between intelligent door locks and meet the efficient communication needs of users in the smart home environment.
[0054] The embodiment of the present invention also provides a storage medium, in which a computer program is stored, and the computer program is set to execute the steps in any one of the above method embodiments when running.
[0055] Specifically, in this embodiment, the above storage medium can be set to store a computer program for executing the following steps: S201, Bluetooth tag status monitoring and broadcast request: When door lock A detects that the Bluetooth tag Tag-DID of owner a leaves the communication range, cache the leaving-home status information of the tag; when door lock A receives a call from the mobile terminal of owner b and there is no answer at home, generate a transfer request broadcast message containing the ID, IP of door lock A and the left-home Bluetooth tag Tag-DID, and send it to other door locks; S202, Bluetooth tag matching and reminder of neighbor door lock: When door lock Z receives the transfer request broadcast message and senses the Tag-DID of owner a, prompt door lock A to make a call; S203, Transfer authorization and connection establishment: When owner a presses the answer button corresponding to the Bluetooth tag Tag-DID, door lock Z initiates a transfer connection request to door lock A to establish a voice channel with door lock A; S204, Voice data transfer and call management: According to the established voice channel, real-time transfer of voice data among door lock Z, door lock A and the mobile terminal of owner b; when the voice call ends, door lock A disconnects from door lock Z and the mobile terminal to complete this voice transfer call.
[0056] It can be seen that for the Bluetooth tag status monitoring and broadcast request: According to door lock A detecting that the Bluetooth tag Tag-DID carried by owner a leaves the communication range, cache the going-out status information of the tag to obtain the broadcast result of the transfer request; for the Bluetooth tag matching and reminder of neighbor door lock: According to door lock Z receiving the broadcast message and sensing that the Tag-DID enters its communication range, obtain the reminder result of the person carrying the Bluetooth tag; for the transfer authorization and connection establishment: According to owner a pressing the answer button of the Bluetooth tag, obtain the transfer connection result between door locks; for the voice data transfer and call management: According to the established voice channel, real-time transfer of voice data among door lock Z, door lock A and the mobile phone APP of owner b to obtain the complete process result of voice transfer, so as to realize seamless voice interconnection between intelligent door locks and meet the efficient communication needs of users in the smart home environment.
[0057] An embodiment of the present invention further provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0058] Specifically, the above electronic device may further include a transmission device and an input / output device, where the transmission device is connected to the above processor, and the input / output device is connected to the above processor.
[0059] Specifically, in this embodiment, the above processor may be configured to execute the following steps through a computer program: S201, Bluetooth tag status monitoring and broadcast request: When door lock A detects that the Bluetooth tag Tag-DID of owner a leaves the communication range, cache the out-of-home status information of the tag; when door lock A receives a call from the mobile terminal of owner b and there is no answer at home, generate a transfer request broadcast message containing the ID, IP of door lock A and the out-of-home Bluetooth tag Tag-DID, and send it to other door locks; S202, Bluetooth tag matching and reminder of neighbor door lock: When door lock Z receives the transfer request broadcast message and senses the Tag-DID of owner a, prompt door lock A to make a call; S203, Transfer authorization and connection establishment: When owner a presses the answer button corresponding to the Bluetooth tag Tag-DID, door lock Z initiates a transfer connection request to door lock A to establish a voice channel with door lock A; S204, Voice data transfer and call management: According to the established voice channel, real-time voice data is transmitted among door lock Z, door lock A and the mobile terminal of owner b; when the voice call ends, door lock A disconnects from door lock Z and the mobile terminal to complete this voice transfer call.
[0060] It can be seen that for Bluetooth tag status monitoring and broadcast request: according to door lock A detecting that the Bluetooth tag Tag-DID carried by owner a leaves the communication range, cache the out-of-home status information of the tag to obtain the broadcast result of the transfer request; for Bluetooth tag matching and reminder of neighbor door lock: according to door lock Z receiving the broadcast message and sensing that the Tag-DID enters its communication range, obtain the reminder result of the person carrying the Bluetooth tag; for transfer authorization and connection establishment: according to owner a pressing the answer button of the Bluetooth tag, obtain the transfer connection result between door locks; for voice data transfer and call management: according to the established voice channel, real-time voice data is transmitted among door lock Z, door lock A and the mobile phone APP of owner b to obtain the complete process result of voice transfer, so as to realize seamless voice interconnection between intelligent door locks and meet the efficient communication needs of users in the smart home environment.
[0061] The above has described in detail the structure, features and function effects of the present invention according to the illustrated embodiments. The above is only the preferred embodiment of the present invention, but the present invention is not limited to the implementation scope shown in the drawings. Any changes made according to the concept of the present invention, or modified into equivalent embodiments with equivalent changes, still within the spirit covered by the specification and drawings, shall be within the protection scope of the present invention.
Claims
1. A method for collaborative voice transfer between door locks, characterized in that, The method comprises: Bluetooth tag status monitoring and broadcast request: When door lock A detects that the Bluetooth tag Tag-DID of owner a has left the communication range, it caches the away status information of the tag; when door lock A receives a call from owner b's mobile terminal and no one at home answers the call, it generates a forwarding request broadcast message containing door lock A's ID, IP and the Bluetooth tag Tag-DID that has left home, and sends it to other door locks; Neighbor door lock Bluetooth tag matching and reminder: When door lock Z receives the forwarding request broadcast message and senses the Tag-DID of owner a, it prompts door lock A to call; Transfer authorization and connection establishment: When the owner a presses the answer button corresponding to the Bluetooth tag Tag-DID, the door lock Z initiates a transfer connection request to the door lock A and establishes a voice channel with the door lock A; Voice data flow and call management: According to the established voice channel, voice data is transmitted in real time between door lock Z, door lock A and owner b's mobile terminal; when the voice call ends, door lock A disconnects from door lock Z and the mobile terminal to complete the voice transfer call.
2. The method according to claim 1, wherein The Bluetooth tag status monitoring and broadcast request includes: Bluetooth tag departure detection: Door lock A periodically monitors Bluetooth advertising packets. If the paired Tag-DID is not detected for N consecutive times, it is determined that the owner A has left home with the tag, and the exit status information is cached; Call response timeout judgment: When door lock A receives a call from owner B’s mobile phone APP, a 30-second countdown starts; if no one answers the call through the inner panel of door lock A during this period, the transfer process is triggered; Broadcast message generation and sending: Based on the timeout result, a broadcast message containing the ID, IP and Tag-DID of door lock A is generated and sent to other door locks via the LAN, with a validity period of 30 seconds.
3. The method according to claim 2, wherein The neighbor door lock Bluetooth tag matching and reminder includes: Broadcast message reception and caching: Receive and parse broadcast messages based on door lock Z, extract Tag-DID and door lock A's IP, and cache them in the local queue; Tag dynamic sensing and matching: The Bluetooth module of door lock Z detects that the Tag-DID enters the communication range, and successfully matches with the cache queue, triggering a voice reminder; Reminder mode control: According to the matching result, the door lock Z starts the voice module to play the preset reminder tone and lights up the LED indicator on the outer panel.
4. The method according to claim 3, characterized in that, The transfer authorization and connection establishment include: Bluetooth tag answer command analysis: According to the answer button signal sent by the Tag-DID received by the door lock Z, its Tag-DID and authorization timestamp are extracted; Transfer request generation and sending: According to the authorization information, door lock Z sends a connection request to the IP of door lock A, including event ID and Tag-DID; Connection verification and channel establishment: The validity of the event ID and Tag-DID is verified according to door lock A. If they match and the call has not timed out, a TCP / IP voice channel is established with door lock Z.
5. The method according to claim 4, characterized in that, The voice data transfer and call management include: Voice data packet transmission: According to the established channel, door lock A splits the voice stream of the mobile phone APP into data packets and forwards them to door lock Z through the local area network; Real-time two-way communication: Receive and play voice data according to door lock Z, and collect the owner a's voice and send it back to door lock A and mobile phone APP; Call termination processing: According to the hang-up signal from the mobile phone APP or door lock Z, door lock A closes the channel, deletes the cached event ID, and generates a call log.
6. A system for collaborative voice transfer between door locks, characterized in that, The system comprises: Request module, used for Bluetooth tag status monitoring and broadcast request: when door lock A detects that the Bluetooth tag Tag-DID of owner a has left the communication range, it caches the away status information of the tag; when door lock A receives a call from the mobile terminal of owner b and no one at home answers the call, it generates a forwarding request broadcast message containing the ID, IP address and Bluetooth tag Tag-DID of door lock A that has left home, and sends it to other door locks; The reminder module is used for Bluetooth tag matching and reminder of neighbor door locks: when door lock Z receives the forwarding request broadcast message and senses the Tag-DID of owner a, it prompts door lock A to call; Establish a module for transfer authorization and connection establishment: When the owner a presses the answer button corresponding to the Bluetooth tag Tag-DID, the door lock Z initiates a transfer connection request to the door lock A and establishes a voice channel with the door lock A; Management module, used for voice data flow and call management: according to the established voice channel, voice data is transmitted in real time between door lock Z, door lock A and owner b's mobile terminal; when the voice call ends, door lock A disconnects from door lock Z and the mobile terminal to complete the voice transfer call.
7. The system according to claim 6, wherein The request module is specifically used for: Bluetooth tag departure detection: Door lock A periodically monitors Bluetooth advertising packets. If the paired Tag-DID is not detected for N consecutive times, it is determined that the owner A has left home with the tag, and the exit status information is cached; Call response timeout judgment: When door lock A receives a call from owner B’s mobile phone APP, a 30-second countdown starts; if no one answers the call through the inner panel of door lock A during this period, the transfer process is triggered; Broadcast message generation and sending: Based on the timeout result, a broadcast message containing the ID, IP and Tag-DID of door lock A is generated and sent to other door locks via the LAN, with a validity period of 30 seconds.
8. The system according to claim 7, wherein The reminder module is specifically used for: Broadcast message reception and caching: Receive and parse broadcast messages based on door lock Z, extract Tag-DID and door lock A's IP, and cache them in the local queue; Tag dynamic sensing and matching: The Bluetooth module of door lock Z detects that the Tag-DID enters the communication range, and successfully matches with the cache queue, triggering a voice reminder; Reminder mode control: According to the matching result, the door lock Z starts the voice module to play the preset reminder tone and lights up the LED indicator on the outer panel.
9. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 5 when executed.
10. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent door lock control method and device, updating method and device, and intelligent door lock
CN110246245A
Bluetooth intelligent lock system and use method thereof
CN113112650A
Visual intercom method and device based on intelligent door lock and intelligent door lock
CN115412697A
Door lock voice interaction method and device and related product
CN119479120A
Personnel monitoring method and system based on intelligent door lock and storage medium
CN119851384A
Cited By
Method and system for interaction between door lock and mobile terminal
CN122054116A
Method and system for door lock interacting with mobile terminal
CN122054116B