Communication method and apparatus
By using acoustic signal communication and ranging technology, the problem of accidental unlocking in contactless unlocking technology has been solved, improving security and accuracy while reducing power consumption.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2024-12-31
- Publication Date
- 2026-06-30
AI Technical Summary
Existing contactless unlocking technology is prone to inaccurate detection, leading to accidental unlocking and posing a security risk.
Communication is achieved using acoustic signals. By receiving and decoding the sequence matching and distance judgment of acoustic signals, the matching between the terminal device and the door lock device is ensured. The field-of-view characteristics and ranging function of acoustic signals are used to identify the user's position and distance to determine whether to unlock the door.
It improves the security of contactless unlocking, reduces the risk of accidental unlocking, accurately distinguishes between real users and strangers, and reduces power consumption.
Smart Images

Figure CN122313601A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a communication method and apparatus. Background Technology
[0002] Smart locks are a core product of smart homes, designed to provide users with safer and smarter unlocking services. Through contactless unlocking technology, users can unlock the door automatically without manually entering a password, swiping a card, using facial recognition, or employing an app, simply by carrying their mobile phone. The unlocking is achieved through communication between the phone and the lock. However, this can easily lead to inaccurate detection, resulting in accidental unlocking and potential security issues. Summary of the Invention
[0003] This application provides a communication method and apparatus that can improve the security of contactless unlocking.
[0004] Firstly, this application provides a communication method applicable to a terminal device. For example, the terminal device may be a terminal equipment, a component within the terminal equipment (e.g., a processor, chip, chip system, circuit, or functional module), or a logical node, logical module, or software capable of implementing all or part of the terminal equipment's functions.
[0005] The method includes: a terminal device receiving a first acoustic signal, the first acoustic signal being an acoustic signal encoded based on a first sequence; the terminal device receiving a second acoustic signal, the second acoustic signal being used to determine the distance between the terminal device and a door lock device; and the terminal device sending a first signal, the first signal being used to determine whether the door lock device is unlocked, provided that the sequence obtained by decoding the first acoustic signal matches the second sequence and the distance between the terminal device and the door lock device meets a preset condition, and the second sequence matches the first sequence.
[0006] As can be seen, in this method, the terminal device receives a first acoustic signal encoded by the door lock device based on a first sequence. If the first sequence matches a second sequence, then the sequence obtained by the terminal device decoding the first acoustic signal also matches the second sequence. This indicates that the terminal device and the door lock device are matched, reflecting that the user of the terminal device is the actual user of the door lock device (also referred to as the "real user"). When the terminal device and the door lock device are matched, and the distance between them meets a preset condition, the terminal device sends a first signal to assist the door lock device in determining whether to unlock, thus improving the security of contactless unlocking.
[0007] Furthermore, this method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the field of view (FOV) directional characteristics of sound wave signals, the door lock device can send a first and a second sound wave signal outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. Therefore, by checking whether the terminal device receives the first and second sound wave signals, it is possible to identify whether the terminal device is outside the door. This helps to unlock the door when the terminal device is outside and prevent it from unlocking when it is inside.
[0008] Furthermore, in this method, the terminal device determines the distance between itself and the door lock device based on a second acoustic signal sent by the door lock device. It is evident that this method utilizes acoustic signals for distance measurement, resulting in higher accuracy. For example, the terminal device can accurately calculate the distance between itself and the door lock device by measuring the flight time of the received acoustic signal. This helps distinguish between a real user and a stranger in scenarios where both are present, preventing accidental unlocking due to the inability to differentiate between them. In an optional implementation, the first signal is used to instruct the door lock device to unlock.
[0009] In another alternative implementation, the first signal is a third acoustic signal, which is an acoustic signal obtained by encoding a third sequence. The third sequence is matched with a fourth sequence. The third acoustic signal is used to determine unlocking when the sequence obtained by decoding the third acoustic signal by the door lock device matches the fourth sequence.
[0010] Based on the above scheme, when the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends a third acoustic signal encoded with a third sequence. This allows the door lock device to determine unlocking if the sequence obtained by decoding the third acoustic signal matches the fourth sequence. A match between the door lock device's third acoustic signal and the fourth sequence indicates a match between the door lock device and the terminal device. This method enables the door lock device to unlock even when the distance between the terminal device and the door lock device meets the preset condition and multiple checks confirm a match between the door lock device and the terminal device, further improving the security of contactless unlocking.
[0011] In one alternative implementation, the preset condition is that the distance between the terminal device and the door lock device is less than a first value; or, the preset condition is that the trend of change in the distance between the terminal device and the door lock device is decreasing.
[0012] In an optional implementation, the method further includes: if the sequence obtained by decoding the first acoustic signal does not match the second sequence, and the number of times the first acoustic signal is decoded is less than or equal to the second value, the terminal device decodes the first acoustic signal received again.
[0013] Understandably, the distance between the terminal device and the door lock device, as well as the environment in which the terminal device is located, may affect the signal strength of the first acoustic signal received by the terminal device, thereby affecting the sequence obtained by the terminal device after decoding the first acoustic signal. Therefore, a mismatch between the sequence obtained by the terminal device after decoding the first acoustic signal and the second sequence may be due to factors such as distance or environment. When the sequence obtained by the terminal device after decoding the first acoustic signal does not match the second sequence, and the number of times the first acoustic signal is decoded is less than or equal to the second value, decoding the received first acoustic signal again helps reduce the likelihood of the door lock device failing to unlock due to a mismatch between the sequence obtained after decoding the first acoustic signal and the second sequence caused by external factors such as environment or distance.
[0014] In one alternative implementation, before the terminal device receives the first acoustic signal, the method further includes: if the terminal device is successfully connected to the door lock device, the terminal device sends a fourth signal, the fourth signal being used to instruct the door lock device to send an acoustic signal.
[0015] In an optional implementation, the method further includes: the terminal device receiving a response signal corresponding to the fourth signal, the response signal carrying a second sequence, the second sequence being generated by the door lock device when the terminal device and the door lock device are successfully connected.
[0016] Based on the above scheme, the second sequence can be a random sequence generated by the door lock device when the terminal device and the door lock device are successfully connected, so that the second sequence has randomness, which is beneficial to improving the security of contactless unlocking.
[0017] In an alternative implementation, the method further includes: the terminal device receiving a second sequence, the second sequence being generated by the door lock device when the terminal device is bound to the door lock device.
[0018] Based on the above scheme, the second sequence can be a specific sequence generated by the door lock device when the terminal device is bound to the door lock device. The second sequence can be applied to subsequent multiple unlocking scenarios, which helps to reduce the power consumption of the door lock device.
[0019] In an alternative implementation, before the terminal device receives the second acoustic signal, the method further includes: if the sequence obtained by decoding the first acoustic signal matches the second sequence, the terminal device sends a fifth signal, which instructs the door lock device to send an acoustic signal for ranging.
[0020] Based on the above scheme, if the sequence obtained by the terminal device from decoding the first acoustic signal does not match the second sequence, it can choose not to send the fifth signal. The mismatch between the sequence obtained by the terminal device from decoding the first acoustic signal and the second sequence indicates a possible mismatch between the terminal device and the door lock device, suggesting that the user of the terminal device may not be the actual user of the door lock device. Therefore, if the door lock device does not receive the fifth signal, it can choose not to send the second acoustic signal, thereby avoiding the need for distance measurement and distance verification, thus reducing overhead and power consumption.
[0021] Secondly, this application provides a communication method that can be applied to a door lock device. For example, the door lock device can be a door lock, a component within the door lock (such as a processor, chip, chip system, circuit, or functional module), or a logic node, logic module, or software capable of implementing all or part of the door lock functions.
[0022] The method includes: a door lock device sending a first acoustic signal, the first acoustic signal being an acoustic signal obtained based on a first sequence encoding; the door lock device sending a second acoustic signal, the second acoustic signal being used to determine the distance between a terminal device and the door lock device; the door lock device receiving a first signal, the first signal being sent by the terminal device after decoding the first acoustic signal to a sequence that matches a second sequence, and the distance between the terminal device and the door lock device meeting a preset condition, wherein the second sequence matches the first sequence; and the door lock device determining whether to unlock based on the first signal.
[0023] In one alternative implementation, the first signal is used to instruct the door lock device to unlock. The door lock device determines whether to unlock based on the first signal, including: the door lock device determining whether to unlock based on the first signal.
[0024] In one optional implementation, the first signal is a third acoustic signal, which is an acoustic signal obtained by encoding a third sequence, and the third sequence matches a fourth sequence. The door lock device determines whether to unlock based on the first signal, including: the door lock device determines unlocking if the sequence obtained by decoding the third acoustic signal matches the fourth sequence.
[0025] In an optional implementation, the method further includes: if the sequence obtained by decoding the third acoustic signal does not match the fourth sequence, and the number of times the third acoustic signal is decoded is less than or equal to the third value, the door lock device decodes the received third acoustic signal again.
[0026] In one alternative implementation, the preset condition is that the distance between the terminal device and the door lock device is less than a first value; or, the preset condition is that the trend of change in the distance between the terminal device and the door lock device is decreasing.
[0027] In one alternative embodiment, the door lock device includes a sensor. The door lock device transmits a first acoustic signal, including: the door lock device transmitting the first acoustic signal upon detecting a terminal device via the sensor.
[0028] In one alternative implementation, before the door lock device sends the first acoustic signal, the method further includes: the door lock device receiving a fourth signal, the fourth signal being used to instruct the door lock device to send the acoustic signal.
[0029] In an optional implementation, the method further includes: upon successful connection between the door lock device and the terminal device, the door lock device generates a first sequence and a second sequence. The door lock device sends a response signal corresponding to the fourth signal, the response signal carrying the second sequence.
[0030] In an alternative implementation, the method further includes: when the door lock device is bound to a terminal device, the door lock device generates a first sequence and a second sequence. The door lock device then sends the second sequence.
[0031] In one alternative implementation, before the door lock device sends the second acoustic signal, the method further includes: the door lock device receiving a fifth signal, the fifth signal being used to instruct the door lock device to send an acoustic signal for ranging.
[0032] For the beneficial effects of the various embodiments in the second aspect, please refer to the description of the corresponding embodiments in the first aspect, which will not be repeated here.
[0033] Thirdly, this application provides a communication method that can be applied to a terminal device. For example, the terminal device can be a terminal equipment, a component within the terminal equipment (such as a processor, chip, chip system, circuit, or functional module), or a logic node, logic module, or software capable of implementing all or part of the functions of the terminal equipment.
[0034] The method includes: a terminal device receiving a first acoustic signal, the first acoustic signal being an acoustic signal encoded based on a first sequence; the terminal device receiving a second acoustic signal, the second acoustic signal being used to determine the distance between the terminal device and a door lock device; the terminal device sending a sequence obtained by decoding the first acoustic signal and the distance between the terminal device and the door lock device, the sequence obtained by decoding the first acoustic signal and the distance between the terminal device and the door lock device being used in conjunction with a second sequence to determine whether the door lock device is unlocked, the second sequence being matched with the first sequence.
[0035] As can be seen, in this method, the terminal device receives a first acoustic signal encoded by the door lock device based on a first sequence. The first sequence matches a second sequence. The terminal device then sends the sequence obtained by decoding the first acoustic signal to the door lock device, allowing the door lock device to determine whether the sequence obtained by the terminal device matches the second sequence. The matching of the sequence obtained by the terminal device from decoding the first acoustic signal with the second sequence indicates a match between the terminal device and the door lock device, reflecting that the user of the terminal device is the actual user of the door lock device (also referred to as the "real user"). The terminal device sends the distance between itself and the door lock device, determined based on the second acoustic signal, to the door lock device, allowing the door lock device to determine whether the distance between them meets a preset condition. This reduces the power consumption of the terminal device. Furthermore, it helps the door lock device determine whether to unlock when the terminal device matches the door lock device and the distance between them meets the preset condition, thus improving the security of contactless unlocking.
[0036] Furthermore, this method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound wave signals, the door lock device can send a first and a second sound wave signal outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. Therefore, by checking whether the terminal device receives the first and second sound wave signals, it is possible to identify whether the terminal device is outside the door. This helps to unlock the door when the terminal device is outside and prevent it from unlocking when it is inside.
[0037] Furthermore, in this method, the terminal device determines the distance between itself and the door lock device based on a second acoustic signal sent by the door lock device. It is evident that this method utilizes acoustic signals for distance measurement, resulting in higher accuracy. For example, the terminal device can accurately calculate the distance between itself and the door lock device by measuring the time of flight of the received acoustic signal. This helps to distinguish between a real user and a stranger in scenarios where both are present, preventing accidental unlocking due to the inability to differentiate between them.
[0038] In one alternative implementation, before the terminal device receives the first acoustic signal, the method further includes: if the terminal device is successfully connected to the door lock device, the terminal device sends a fourth signal, the fourth signal being used to instruct the door lock device to send an acoustic signal.
[0039] In an optional implementation, the method further includes: the terminal device receiving a response signal corresponding to the fourth signal, the response signal carrying a second sequence, the second sequence being generated by the door lock device when the terminal device and the door lock device are successfully connected.
[0040] Based on the above scheme, the second sequence can be a random sequence generated by the door lock device when the terminal device and the door lock device are successfully connected, so that the second sequence has randomness, which is beneficial to improving the security of contactless unlocking.
[0041] In an alternative implementation, the method further includes: the terminal device receiving a second sequence, the second sequence being generated by the door lock device when the terminal device is bound to the door lock device.
[0042] Based on the above scheme, the second sequence can be a specific sequence generated by the door lock device when the terminal device is bound to the door lock device. The second sequence can be applied to subsequent multiple unlocking scenarios, which helps to reduce the power consumption of the door lock device.
[0043] Fourthly, this application provides a communication method applicable to a door lock device. For example, the door lock device can be a door lock, a component within the door lock (e.g., a processor, chip, chip system, circuit, or functional module), or a logic node, logic module, or software capable of implementing all or part of the door lock functions.
[0044] The method includes: a door lock device sending a first acoustic signal, the first acoustic signal being an acoustic signal obtained based on a first sequence encoding; the door lock device sending a second acoustic signal, the second acoustic signal being used to determine the distance between a terminal device and the door lock device; and the door lock device determining to unlock when the sequence obtained by the terminal device decoding the first acoustic signal matches the second sequence, and the distance between the receiving terminal device and the door lock device meets a preset condition, wherein the second sequence matches the first sequence.
[0045] In one alternative implementation, the preset condition is that the distance between the terminal device and the door lock device is less than a first value; or, the preset condition is that the trend of change in the distance between the terminal device and the door lock device is decreasing.
[0046] In one alternative embodiment, the door lock device includes a sensor. The door lock device transmits a first acoustic signal, including: the door lock device transmitting the first acoustic signal upon detecting a terminal device via the sensor.
[0047] In one alternative implementation, before the door lock device sends the first acoustic signal, the method further includes: the door lock device receiving a fourth signal, the fourth signal being used to instruct the door lock device to send the acoustic signal.
[0048] In an optional implementation, the method further includes: upon successful connection between the door lock device and the terminal device, the door lock device generates a first sequence and a second sequence. The door lock device sends a response signal corresponding to the fourth signal, the response signal carrying the second sequence.
[0049] In an alternative implementation, the method further includes: when the door lock device is bound to a terminal device, the door lock device generates a first sequence and a second sequence. The door lock device then sends the second sequence.
[0050] For the beneficial effects of the various embodiments in the fourth aspect, please refer to the description of the corresponding embodiments in the third aspect, which will not be repeated here.
[0051] Fifthly, this application provides a communication method that can be applied to a terminal device. For example, the terminal device can be a terminal equipment, a component within the terminal equipment (such as a processor, chip, chip system, circuit, or functional module), or a logic node, logic module, or software capable of implementing all or part of the functions of the terminal equipment.
[0052] The method includes: a terminal device receiving a first acoustic signal, the first acoustic signal being an acoustic signal encoded based on a first sequence; the terminal device receiving a second acoustic signal, the second acoustic signal being used to determine the distance between the terminal device and a door lock device; the terminal device sending a second signal and the distance between the terminal device and the door lock device, the second signal being used to indicate that the sequence obtained by decoding the first acoustic signal matches the second sequence, the second signal and the distance between the terminal device and the door lock device being used to determine whether the door lock device is unlocked, and the second sequence matching the first sequence.
[0053] As can be seen, in this method, the terminal device receives a first acoustic signal encoded by the door lock device based on a first sequence. If the first sequence matches the second sequence, then the sequence obtained by the terminal device after decoding the first acoustic signal also matches the second sequence. This indicates that the terminal device and the door lock device are matched, reflecting that the user of the terminal device is the actual user of the door lock device (also referred to as the "real user"). When the sequence obtained by the terminal device after decoding the first acoustic signal matches the second sequence, the terminal device sends a second signal so that the door lock device can determine that the sequence obtained by the terminal device after decoding the first acoustic signal matches the second sequence, thereby confirming that the terminal device and the door lock device are matched.
[0054] The terminal device also sends the distance between itself and the door lock device, determined based on the second acoustic signal, to the door lock device so that the door lock device can determine whether the distance between the terminal device and the door lock device meets the preset conditions. This reduces the power consumption of the terminal device.
[0055] The above solution helps the door lock device determine whether to unlock when the terminal device and the door lock device are matched and the distance between the terminal device and the door lock device meets the preset conditions, thereby improving the security of contactless unlocking.
[0056] Furthermore, this method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound wave signals, the door lock device can send a first and a second sound wave signal outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. Therefore, by checking whether the terminal device receives the first and second sound wave signals, it is possible to identify whether the terminal device is outside the door. This helps to unlock the door when the terminal device is outside and prevent it from unlocking when it is inside.
[0057] Furthermore, in this method, the terminal device determines the distance between itself and the door lock device based on a second acoustic signal sent by the door lock device. It is evident that this method utilizes acoustic signals for distance measurement, resulting in higher accuracy. For example, the terminal device can accurately calculate the distance between itself and the door lock device by measuring the time of flight of the received acoustic signal. This helps to distinguish between a real user and a stranger in scenarios where both are present, preventing accidental unlocking due to the inability to differentiate between them.
[0058] In an optional implementation, the method further includes: if the sequence obtained by decoding the first acoustic signal does not match the second sequence, and the number of times the first acoustic signal is decoded is less than or equal to the second value, the terminal device decodes the first acoustic signal received again.
[0059] Understandably, the distance between the terminal device and the door lock device, as well as the environment in which the terminal device is located, may affect the signal strength of the first acoustic signal received by the terminal device, thereby affecting the sequence obtained by the terminal device after decoding the first acoustic signal. Therefore, a mismatch between the sequence obtained by the terminal device after decoding the first acoustic signal and the second sequence may be due to factors such as distance or environment. When the sequence obtained by the terminal device after decoding the first acoustic signal does not match the second sequence, and the number of times the first acoustic signal is decoded is less than or equal to the second value, decoding the received first acoustic signal again helps reduce the likelihood of the door lock device failing to unlock due to a mismatch between the sequence obtained after decoding the first acoustic signal and the second sequence caused by external factors such as environment or distance.
[0060] In one alternative implementation, before the terminal device receives the first acoustic signal, the method further includes: if the terminal device is successfully connected to the door lock device, the terminal device sends a fourth signal, the fourth signal being used to instruct the door lock device to send an acoustic signal.
[0061] In an optional implementation, the method further includes: the terminal device receiving a response signal corresponding to the fourth signal, the response signal carrying a second sequence, the second sequence being generated by the door lock device when the terminal device and the door lock device are successfully connected.
[0062] Based on the above scheme, the second sequence can be a random sequence generated by the door lock device when the terminal device and the door lock device are successfully connected, so that the second sequence has randomness, which is beneficial to improving the security of contactless unlocking.
[0063] In an alternative implementation, the method further includes: the terminal device receiving a second sequence, the second sequence being generated by the door lock device when the terminal device is bound to the door lock device.
[0064] Based on the above scheme, the second sequence can be a specific sequence generated by the door lock device when the terminal device is bound to the door lock device. The second sequence can be applied to subsequent multiple unlocking scenarios, which helps to reduce the power consumption of the door lock device.
[0065] In an alternative implementation, before the terminal device receives the second acoustic signal, the method further includes: if the sequence obtained by decoding the first acoustic signal matches the second sequence, the terminal device sends a fifth signal, which instructs the door lock device to send an acoustic signal for ranging.
[0066] Based on the above scheme, if the sequence obtained by the terminal device from decoding the first acoustic signal does not match the second sequence, it can choose not to send the fifth signal. The mismatch between the sequence obtained by the terminal device from decoding the first acoustic signal and the second sequence indicates a possible mismatch between the terminal device and the door lock device, suggesting that the user of the terminal device may not be the actual user of the door lock device. Therefore, if the door lock device does not receive the fifth signal, it can choose not to send the second acoustic signal, thereby avoiding the need for distance measurement and distance verification, thus reducing overhead and power consumption.
[0067] Sixthly, this application provides a communication method applicable to a door lock device. For example, the door lock device may be a door lock, a component within the door lock (e.g., a processor, chip, chip system, circuit, or functional module), or a logic node, logic module, or software capable of implementing all or part of the door lock functions.
[0068] The method includes: a door lock device sending a first acoustic signal, the first acoustic signal being an acoustic signal obtained based on a first sequence encoding; the door lock device sending a second acoustic signal, the second acoustic signal being used to determine the distance between a terminal device and the door lock device; and the door lock device determining to unlock upon receiving the second signal, provided that the distance between the receiving terminal device and the door lock device meets a preset condition, the second signal indicating that the sequence obtained by decoding the first acoustic signal matches the second sequence, and the second sequence matches the first sequence.
[0069] In one alternative implementation, the preset condition is that the distance between the terminal device and the door lock device is less than a first value; or, the preset condition is that the trend of change in the distance between the terminal device and the door lock device is decreasing.
[0070] In one alternative embodiment, the door lock device includes a sensor. The door lock device transmits a first acoustic signal, including: the door lock device transmitting the first acoustic signal upon detecting a terminal device via the sensor.
[0071] In one alternative implementation, before the door lock device sends the first acoustic signal, the method further includes: the door lock device receiving a fourth signal, the fourth signal being used to instruct the door lock device to send the acoustic signal.
[0072] In an optional implementation, the method further includes: upon successful connection between the door lock device and the terminal device, the door lock device generates a first sequence and a second sequence. The door lock device sends a response signal corresponding to the fourth signal, the response signal carrying the second sequence.
[0073] In an alternative implementation, the method further includes: when the door lock device is bound to a terminal device, the door lock device generates a first sequence and a second sequence. The door lock device then sends the second sequence.
[0074] In one alternative implementation, before the door lock device sends the second acoustic signal, the method further includes: the door lock device receiving a fifth signal, the fifth signal being used to instruct the door lock device to send an acoustic signal for ranging.
[0075] For the beneficial effects of the various embodiments in the sixth aspect, please refer to the description of the corresponding embodiments in the fifth aspect, which will not be repeated here.
[0076] Seventhly, this application provides a communication method that can be applied to a terminal device. For example, the terminal device can be a terminal equipment, a component within the terminal equipment (such as a processor, chip, chip system, circuit, or functional module), or a logic node, logic module, or software capable of implementing all or part of the functions of the terminal equipment.
[0077] The method includes: a terminal device receiving a first acoustic signal, the first acoustic signal being an acoustic signal encoded based on a first sequence; the terminal device receiving a second acoustic signal, the second acoustic signal being used to determine the distance between the terminal device and a door lock device; the terminal device sending a sequence obtained by decoding the first acoustic signal and a third signal, the third signal being used to indicate that the distance between the terminal device and the door lock device meets a preset condition, the sequence obtained by decoding the first acoustic signal and the third signal being used in combination with a second sequence to determine whether the door lock device is unlocked, the second sequence matching the first sequence.
[0078] As can be seen, in this method, the terminal device receives a first acoustic signal encoded by the door lock device based on a first sequence. The first sequence matches a second sequence. The terminal device then sends the sequence obtained by decoding the first acoustic signal to the door lock device, allowing the door lock device to determine whether the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence, thus reducing the power consumption of the terminal device. The fact that the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence indicates that the terminal device and the door lock device are matched, reflecting that the user of the terminal device is the actual user of the door lock device (also referred to as the "real user").
[0079] The terminal device determines the distance between itself and the door lock device based on the second acoustic signal sent by the door lock device. If the distance between the terminal device and the door lock device meets the preset conditions, the terminal device sends a third signal so that the door lock device can determine that the distance between the terminal device and the door lock device meets the preset conditions.
[0080] The above solution helps the door lock device determine whether to unlock when the terminal device and the door lock device are matched and the distance between the terminal device and the door lock device meets the preset conditions, thereby improving the security of contactless unlocking.
[0081] Furthermore, this method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound wave signals, the door lock device can send a first and a second sound wave signal outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. Therefore, by checking whether the terminal device receives the first and second sound wave signals, it is possible to identify whether the terminal device is outside the door. This helps to unlock the door when the terminal device is outside and prevent it from unlocking when it is inside.
[0082] Furthermore, in this method, the terminal device determines the distance between itself and the door lock device based on a second acoustic signal sent by the door lock device. It is evident that this method utilizes acoustic signals for distance measurement, resulting in higher accuracy. For example, the terminal device can accurately calculate the distance between itself and the door lock device by measuring the time of flight of the received acoustic signal. This helps to distinguish between a real user and a stranger in scenarios where both are present, preventing accidental unlocking due to the inability to differentiate between them.
[0083] In one alternative implementation, the preset condition is that the distance between the terminal device and the door lock device is less than a first value; or, the preset condition is that the trend of change in the distance between the terminal device and the door lock device is decreasing.
[0084] In one alternative implementation, before the terminal device receives the first acoustic signal, the method further includes: if the terminal device is successfully connected to the door lock device, the terminal device sends a fourth signal, the fourth signal being used to instruct the door lock device to send an acoustic signal.
[0085] In an optional implementation, the method further includes: the terminal device receiving a response signal corresponding to the fourth signal, the response signal carrying a second sequence, the second sequence being generated by the door lock device when the terminal device and the door lock device are successfully connected.
[0086] Based on the above scheme, the second sequence can be a random sequence generated by the door lock device when the terminal device and the door lock device are successfully connected, so that the second sequence has randomness, which is beneficial to improving the security of contactless unlocking.
[0087] In an alternative implementation, the method further includes: the terminal device receiving a second sequence, the second sequence being generated by the door lock device when the terminal device is bound to the door lock device.
[0088] Based on the above scheme, the second sequence can be a specific sequence generated by the door lock device when the terminal device is bound to the door lock device. The second sequence can be applied to subsequent multiple unlocking scenarios, which helps to reduce the power consumption of the door lock device.
[0089] Eighthly, this application provides a communication method applicable to a door lock device. For example, the door lock device can be a door lock, a component within the door lock (e.g., a processor, chip, chip system, circuit, or functional module), or a logic node, logic module, or software capable of implementing all or part of the door lock's functions.
[0090] The method includes: a door lock device sending a first acoustic signal, the first acoustic signal being an acoustic signal encoded based on a first sequence; the door lock device sending a second acoustic signal, the second acoustic signal being used to determine the distance between a terminal device and the door lock device; and the door lock device determining to unlock when the sequence obtained by decoding the first acoustic signal from the receiving terminal device matches the second sequence, and a third signal is received, the third signal indicating that the distance between the terminal device and the door lock device meets a preset condition, and that the second sequence matches the first sequence.
[0091] In one alternative implementation, the preset condition is that the distance between the terminal device and the door lock device is less than a first value; or, the preset condition is that the trend of change in the distance between the terminal device and the door lock device is decreasing.
[0092] In one alternative embodiment, the door lock device includes a sensor. The door lock device transmits a first acoustic signal, including: the door lock device transmitting the first acoustic signal upon detecting a terminal device via the sensor.
[0093] In one alternative implementation, before the door lock device sends the first acoustic signal, the method further includes: the door lock device receiving a fourth signal, the fourth signal being used to instruct the door lock device to send the acoustic signal.
[0094] In an optional implementation, the method further includes: upon successful connection between the door lock device and the terminal device, the door lock device generates a first sequence and a second sequence. The door lock device sends a response signal corresponding to the fourth signal, the response signal carrying the second sequence.
[0095] In an alternative implementation, the method further includes: when the door lock device is bound to a terminal device, the door lock device generates a first sequence and a second sequence. The door lock device then sends the second sequence.
[0096] For the beneficial effects of the various embodiments in the eighth aspect, please refer to the description of the corresponding embodiments in the seventh aspect, which will not be repeated here.
[0097] Ninthly, this application also provides a communication device. This communication device can be a terminal device, a chip, or a logic module or software capable of implementing all or part of the functions of a terminal device. The communication device has the functionality to implement some or all of the embodiments described in the first, third, fifth, or seventh aspects above. Alternatively, the communication device can be a door lock device, or a chip, or a logic module or software capable of implementing all or part of the functions of a door lock device. The communication device has the functionality to implement some or all of the embodiments described in the second, fourth, sixth, or eighth aspects above. The functions can be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more units or modules corresponding to the above functions.
[0098] In one possible design, the communication device may include a processing unit configured to support the communication device in performing the corresponding functions described in the above methods. Optionally, the communication device may also include a communication unit for supporting communication between the communication device and other communication devices. Optionally, the communication device may further include a storage unit coupled to the processing unit and the communication unit, which stores necessary program instructions and data for the communication device. Additionally, the processing unit may be used to control the communication unit to transmit and receive data / signaling.
[0099] In one embodiment, the communication unit is configured to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. The communication unit is also configured to receive a second acoustic signal, which is used to determine the distance between the communication device and the door lock device. If the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between the communication device and the door lock device meets a preset condition, the communication unit is further configured to send a first signal, which is used to determine whether the door lock device is unlocked, and the second sequence matches the first sequence.
[0100] In addition, other alternative implementations of the communication device in this regard can be found in the relevant content of the first aspect above, and will not be described in detail here.
[0101] In another embodiment, the communication unit is configured to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. The communication unit is also configured to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device. The communication unit is further configured to receive a first signal, which is transmitted by the terminal device when the sequence obtained by decoding the first acoustic signal matches a second sequence, and the distance between the terminal device and the communication device meets a preset condition, wherein the second sequence matches the first sequence. The processing unit is configured to determine whether to unlock based on the first signal.
[0102] In addition, other alternative implementations of the communication device in this regard can be found in the relevant content of the second aspect above, and will not be described in detail here.
[0103] In another embodiment, the communication unit is configured to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. The communication unit is also configured to receive a second acoustic signal, which is used to determine the distance between the communication device and the door lock device. The communication unit is further configured to transmit a sequence obtained by decoding the first acoustic signal and the distance between the communication device and the door lock device. The sequence obtained by decoding the first acoustic signal and the distance between the communication device and the door lock device are used in conjunction with a second sequence to determine whether the door lock device is unlocked, wherein the second sequence matches the first sequence.
[0104] In addition, other alternative implementations of the communication device in this regard can be found in the relevant content of the third aspect above, and will not be described in detail here.
[0105] In another embodiment, the communication unit is configured to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. The communication unit is also configured to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device. If the sequence obtained by the receiving terminal device from decoding the first acoustic signal matches the second sequence, and the distance between the receiving terminal device and the communication device meets a preset condition, the processing unit is configured to determine unlocking, whereby the second sequence matches the first sequence.
[0106] In addition, other alternative implementations of the communication device in this regard can be found in the relevant content of the fourth aspect above, and will not be described in detail here.
[0107] In another embodiment, the communication unit is configured to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. The communication unit is also configured to receive a second acoustic signal, which is used to determine the distance between the communication device and the door lock device. The communication unit is further configured to transmit a second signal and the distance between the communication device and the door lock device. The second signal is used to indicate that the sequence obtained by decoding the first acoustic signal matches the second sequence. The second signal and the distance between the communication device and the door lock device are used to determine whether the door lock device is unlocked, and the second sequence matches the first sequence.
[0108] In addition, other alternative implementations of the communication device in this regard can be found in the relevant content of the fifth aspect above, and will not be described in detail here.
[0109] In another embodiment, the communication unit is configured to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. The communication unit is also configured to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device. Upon receiving the second signal and if the distance between the receiving terminal device and the communication device meets a preset condition, the processing unit is configured to determine unlocking, wherein the second signal indicates that the sequence obtained by decoding the first acoustic signal matches the second sequence, and the second sequence matches the first sequence.
[0110] In addition, other alternative implementations of the communication device in this regard can be found in the relevant content of the sixth aspect above, and will not be described in detail here.
[0111] In another embodiment, the communication unit is configured to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. The communication unit is also configured to receive a second acoustic signal, which is used to determine the distance between the communication device and the door lock device. The communication unit is further configured to transmit a sequence obtained by decoding the first acoustic signal and a third signal, the third signal being used to indicate that the distance between the communication device and the door lock device meets a preset condition. The sequence obtained by decoding the first acoustic signal and the third signal are used in conjunction with the second sequence to determine whether the door lock device is unlocked, and the second sequence matches the first sequence.
[0112] In addition, other alternative implementations of the communication device in this regard can be found in the relevant content of the seventh aspect above, and will not be described in detail here.
[0113] In another embodiment, the communication unit is configured to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. The communication unit is also configured to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device. If the sequence obtained by the receiving terminal device from decoding the first acoustic signal matches the second sequence, and a third signal is received, the processing unit is configured to determine unlocking. The third signal indicates that the distance between the terminal device and the communication device meets a preset condition, and that the second sequence matches the first sequence.
[0114] In addition, other alternative implementations of the communication device in this regard can be found in the relevant content of the eighth aspect above, and will not be described in detail here.
[0115] As an example, the communication unit can be a transceiver or a communication interface, the storage unit can be a memory, and the processing unit can be a processor. The processor is coupled to the memory, which stores programs or instructions for the processor. The processor can be used to execute computer programs or instructions stored in the memory, and / or, through logic circuitry, cause the communication device to perform the methods described in the first or second aspect above. The transceiver or communication interface can be used to transmit and receive signals and / or data.
[0116] In another embodiment, the communication device is a chip or chip system. The processing unit may also be a processing circuit or logic circuit; the transceiver unit may be an input / output interface, interface circuit, output circuit, input circuit, pin, or related circuit on the chip or chip system.
[0117] In one possible implementation, the processor can be used for, for example, but not limited to, baseband-related processing, and the transceiver or communication interface can be used for, for example, but not limited to, radio frequency transceiver. The aforementioned devices can be disposed on separate chips, or at least partially or entirely on the same chip. For example, the processor can be further divided into analog baseband processors and digital baseband processors. The analog baseband processor can be integrated with the transceiver (or communication interface) on the same chip, while the digital baseband processor can be disposed on a separate chip. With the continuous development of integrated circuit technology, more and more devices can be integrated on the same chip. For example, a digital baseband processor can be integrated with multiple application processors (e.g., but not limited to graphics processors, multimedia processors, etc.) on the same chip. Such a chip can be called a system-on-a-chip (SoC). Whether the various devices are disposed independently on different chips or integrated on one or more chips often depends on the needs of the product design. This application does not limit the implementation form of the aforementioned devices.
[0118] Tenthly, this application also provides a processor for executing the various methods described above. In executing these methods, the processes of sending and receiving the aforementioned information can be understood as the process of the processor outputting the aforementioned information, and the process of the processor inputting the aforementioned information. When outputting the aforementioned information, the processor outputs the aforementioned information to a transceiver so that the transceiver (or communication interface) can transmit it. After being output by the processor, the aforementioned information may require further processing before reaching the transceiver (or communication interface). Similarly, when the processor receives the input information, the transceiver (or communication interface) receives the aforementioned information and inputs it to the processor. Furthermore, after the transceiver (or communication interface) receives the aforementioned information, the aforementioned information may require further processing before being input to the processor.
[0119] Unless otherwise specified, or unless it contradicts its actual function or internal logic in the relevant description, the transmission and reception operations involved by the processor can be more generally understood as processor output and reception, input and other operations, rather than transmission and reception operations directly performed by radio frequency circuits and antennas.
[0120] In implementation, the processor can be a dedicated processor for executing these methods, or it can be a processor that executes computer instructions stored in memory to execute these methods, such as a general-purpose processor. The memory can be a non-transitory memory, such as read-only memory (ROM), which can be integrated with the processor on the same chip or disposed on different chips. This application does not limit the type of memory or the arrangement of the memory and processor.
[0121] Eleventhly, this application also provides a communication system including means for performing the method described in the first aspect and means for performing the method described in the second aspect. In another possible design, the system may further include other devices that interact with the means for performing the method described in the first aspect, and / or other devices that interact with the means for performing the method described in the second aspect.
[0122] In a twelfth aspect, this application also provides a communication system including means for performing the method described in the third aspect and means for performing the method described in the fourth aspect. In another possible design, the system may further include other devices that interact with the means for performing the method described in the third aspect, and / or other devices that interact with the means for performing the method described in the fourth aspect.
[0123] In a thirteenth aspect, this application also provides a communication system including means for performing the method described in the fifth aspect and means for performing the method described in the sixth aspect. In another possible design, the system may further include other devices that interact with the means for performing the method described in the fifth aspect, and / or other devices that interact with the means for performing the method described in the sixth aspect.
[0124] In a fourteenth aspect, this application also provides a communication system including means for performing the method described in the seventh aspect and means for performing the method described in the eighth aspect. In another possible design, the system may further include other devices that interact with the means for performing the method described in the seventh aspect, and / or other devices that interact with the means for performing the method described in the eighth aspect.
[0125] In a fifteenth aspect, this application provides a computer-readable storage medium storing a computer program that, when run, causes the method described in any one of the first to eighth aspects to be executed.
[0126] In a sixteenth aspect, this application also provides a computer program product including instructions, the computer program product comprising: computer program code, which, when executed, causes the method described in any one of the first to eighth aspects to be performed.
[0127] In a seventeenth aspect, this application provides a chip including at least one processor for executing instructions to cause the methods described in any one of the first to eighth aspects to be performed. Optionally, the chip further includes an interface circuit for receiving the executed instructions and transmitting them to the processor. And / or, the interface circuit is used to receive information from the processor and output information. Optionally, the chip further includes a memory for storing instructions and data. Attached Figure Description
[0128] Figure 1 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application;
[0129] Figure 2 This is a schematic diagram of a contactless unlocking method provided in an embodiment of this application;
[0130] Figure 3 This is a schematic diagram of another contactless unlocking method provided in an embodiment of this application;
[0131] Figure 4 This is a schematic diagram of a terminal device and a door lock device provided in an embodiment of this application;
[0132] Figure 5 This is a flowchart illustrating a communication method 100 provided in an embodiment of this application;
[0133] Figure 6 This is a schematic diagram of a first acoustic signal and a second acoustic signal provided in an embodiment of this application;
[0134] Figure 7 This is a schematic diagram of another first acoustic signal and a second acoustic signal provided in an embodiment of this application;
[0135] Figure 8 This is a schematic diagram illustrating the position change of a terminal device according to an embodiment of this application;
[0136] Figure 9 This is a schematic diagram illustrating another change in the position of a terminal device provided in an embodiment of this application;
[0137] Figure 10 This is a schematic diagram of another communication method provided in an embodiment of this application;
[0138] Figure 11 This is a schematic diagram of another communication method provided in an embodiment of this application;
[0139] Figure 12 This is a schematic diagram of another communication method provided in an embodiment of this application;
[0140] Figure 13 This is a flowchart illustrating a communication method 200 provided in an embodiment of this application;
[0141] Figure 14 This is a flowchart illustrating a communication method 300 provided in an embodiment of this application;
[0142] Figure 15 This is a flowchart illustrating a communication method 400 provided in an embodiment of this application;
[0143] Figure 16 This application provides a schematic diagram of the structure of a communication device;
[0144] Figure 17 This application provides a schematic diagram of the structure of another communication device. Detailed Implementation
[0145] The embodiments of this application are described below with reference to the accompanying drawings.
[0146] The technical solutions of this application embodiment can be applied to various communication systems. For example, Global System for Mobile Communications (GSMA), Long Term Evolution (LTE) system, Universal Mobile Telecommunications System (UMTX), Vehicle-to-Everything (V2X), Internet of Things (IoT), 4th Generation (4G) mobile communication system, 5th Generation (5G) mobile communication system, New Radio (NR) system, Next Generation Cellular Communication System, and, with the continuous development of communication technology, the technical solutions of this application embodiment can also be used in future communication systems. This application embodiment can also be applied to short-range communication systems, such as Bluetooth, Wireless Local Area Network (WLAN), and Wireless Fidelity (Wi-Fi).
[0147] For example, embodiments of this application can be applied to scenarios involving contactless unlocking. Based on contactless unlocking technology, when a user approaches the door lock, there is no need to manually enter a password, swipe a card, or use an application; automatic unlocking can be achieved simply by using communication technology. For example, combined with... Figure 1 Users can bring their mobile phones close to the door lock, and the door lock will automatically unlock based on the communication between the mobile phone and the door lock.
[0148] One type of contactless unlocking technology is based on Bluetooth to achieve contactless unlocking. In this method, for example... Figure 2 As shown, Bluetooth devices are installed separately on the exterior and interior lock bodies, requiring wiring between them, resulting in a complex architecture. When millimeter-wave radar detects someone at the door, it wakes up the lock and sends a signal via Bluetooth. The lock identifies whether the user is outside by comparing the received signal strength indication (RSSI) between the exterior Bluetooth and the user's phone, and the RSSI between the interior Bluetooth and the user's phone. Furthermore, the lock measures the distance between the phone and the lock based on the RSSI between Bluetooth and the phone, or it measures the distance based on the millimeter-wave radar. The lock unlocks when it detects the user is outside, the distance between the user's phone and the lock is less than a threshold, and Bluetooth communication authentication with the phone is successful. The Bluetooth communication authentication includes determining whether the lock and the phone can communicate via Bluetooth. If they can communicate, authentication is successful; otherwise, authentication fails.
[0149] It is evident that in Bluetooth-based contactless unlocking technology, comparing the RSSI of dual Bluetooth devices to identify whether the user is inside or outside the door, Bluetooth's RSSI has poor stability, resulting in unreliable identification results. Furthermore, the method of measuring the distance between the phone and the lock using RSSI between Bluetooth and the phone is prone to fluctuations, with an accuracy of only 5 to 10 meters. This method has poor ranging accuracy, posing a risk of inaccurate distance measurement and increasing Bluetooth power consumption. Additionally, in scenarios where both the user and a stranger are present, contactless unlocking technologies based on Bluetooth RSSI or millimeter-wave radar cannot distinguish between users and strangers, potentially leading to accidental unlocking and significant security risks.
[0150] Another contactless unlocking technology is based on ultra-wideband (UWB) wireless communication. UWB wireless communication uses ultra-wideband frequency bandwidth, and its main feature is its ability to achieve high-precision positioning. In this method, such as... Figure 3 As shown, ultra-wideband (UWB) antennas are installed on both the inner and outer lock bodies, and the UWB antennas installed on the outer and inner sides require wiring, resulting in a complex architecture. After the Bluetooth connection installed on the outer side is established with the mobile phone, the door lock is activated by sending signals through both the inner and outer UWB antennas. Based on the signals sent by the inner and outer UWB antennas, the distance between the user's mobile phone and the door lock is measured, and the user's location is determined. This allows the door lock to automatically unlock when the user approaches from the outside and remain unlocked when the user approaches from the inside.
[0151] Seamless unlocking technology based on UWB requires the phone to have UWB functionality (e.g., a UWB antenna), and is not suitable for phones without UWB capability. Therefore, seamless unlocking technology based on UWB cannot cover a large number of users. Furthermore, seamless unlocking technology based on UWB only uses the distance between the user's phone and the door lock as the basis for unlocking, which poses a significant security risk.
[0152] Therefore, embodiments of this application provide a communication method that can improve the security of contactless unlocking.
[0153] The embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0154] For ease of explanation, this application uses a terminal device and a door lock device as the execution subjects to illustrate the corresponding methods. However, this application does not limit the form of the terminal device and the door lock device. The terminal device and the door lock device are described below by way of example.
[0155] 1. Terminal device
[0156] In the embodiments of this application, the terminal device may be a terminal equipment, or a chip, chip system, hardware or processor that supports the device in implementing the corresponding method (e.g., a chip, chip system, hardware or processor in a terminal equipment), or a logic module or software or unit that can implement all or part of the functions of the device (e.g., a module or software or unit in a terminal equipment), etc.
[0157] Terminal equipment can also be called user equipment (UE), user communication equipment, terminal, access terminal, subscriber unit, user station, mobile station, mobile station (MS), remote station, remote terminal, mobile terminal (MT), mobile device, user terminal, user agent, or user equipment.
[0158] The terminal device in this application embodiment can be a handheld device with wireless communication function, an embedded communication module, or a wearable device. For example, the terminal device can be a cellular phone, smartphone, tablet computer, laptop computer, PDA, mobile internet device (MID), wireless data card, personal computer (PC), personal digital assistant (PDA) computer, wireless modem, handset, handheld terminal, laptop computer, machine type communication (MTC) terminal, wearable device (e.g., smartwatch, smart bracelet, pedometer, smart glasses, etc.).
[0159] Terminal devices can also be virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, customer-premises equipment (CPE), light user equipment (light UE), reduced capability user equipment (REDCAP UE), wireless terminals in industrial control, intelligent robots, robotic arms, workshop equipment, wireless terminals in self-driving, wireless terminals in remote medical, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, and flying equipment (e.g., intelligent robots, hot air balloons, drones, airplanes), etc.
[0160] Optional, such as Figure 4As shown, the terminal device may include one or more of the following: a communication unit, and a module / unit for receiving acoustic signals. The communication unit is used by the terminal device to achieve wireless communication with the door lock device. The communication unit can also be replaced by a communication module or communication unit, etc. For example, the terminal device and the door lock device can communicate via short-range communication technologies (e.g., Bluetooth, Wi-Fi) or cellular networks. The module / unit for receiving acoustic signals can be, for example, a microphone. The terminal device can receive acoustic signals through the microphone, which can also be simply referred to as a mic. Figure 4 The terminal device is illustrated using a mobile phone as an example, and the module / unit / unit for receiving sound wave signals in the terminal device is illustrated using a microphone as an example.
[0161] Optionally, the terminal device may also include a module / unit for transmitting sound wave signals. For example, the terminal device may include a speaker, through which the terminal device can transmit sound wave signals.
[0162] The embodiments of this application do not limit the specific technology or device form used in the terminal. It is understood that a terminal can be referred to as a communication device. For example, a terminal can be understood as a device with terminal functions. For example, the device used to implement the terminal functions can be a terminal itself; it can also be a device capable of supporting the terminal in implementing those functions, such as a chip system, hardware circuit, software module, or hardware circuit plus software module. This device can be installed in the terminal or can be used in conjunction with the terminal.
[0163] The deployment methods of terminal devices listed above are merely examples. As standard technologies evolve, other deployment forms of terminal devices may exist, and this application does not limit them.
[0164] 2. Door locking device
[0165] In the embodiments of this application, the door lock device may be a door lock, or a chip, chip system, hardware or processor that supports the device in implementing the corresponding method (e.g., the chip, chip system, hardware or processor in the door lock), or a logic module or software or unit that can implement all or part of the functions of the device (e.g., the module or software or unit in the door lock), etc.
[0166] The door lock can be a room door lock, a vehicle door lock, a household door lock, a door lock in a security device, a door lock in a marine setting (such as door locks on private boats or commercial vessels), a door lock in a flight setting (such as door locks in civil aviation or airplanes), or a door lock in other scenarios. It is understood that the embodiments of this application can be applied to various unlocking and unlocking scenarios, and are not limited thereto.
[0167] Optional, such as Figure 4As shown, the door lock device may include one or more of the following: a wireless communication module, a sound wave module, and a sensor. The wireless communication module enables the door lock device to communicate wirelessly with a terminal device; for example, communication between the door lock device and the terminal device can be achieved through short-range communication technologies (e.g., Bluetooth, Wi-Fi) or cellular networks. The sound wave module enables the door lock to transmit sound wave signals; for example, the sound wave module includes a speaker, through which the door lock device can transmit sound wave signals. The sensor is used to detect whether someone is approaching the door lock; for example, the sensor may be a moving target detection sensor. Optionally, the door lock device may also include a module / unit for receiving sound wave signals; for example, the door lock device may also include a microphone, through which the door lock device can receive sound wave signals. The microphone can also be simply referred to as a mic.
[0168] In this embodiment, the sound wave signal may be, for example, an ultrasonic signal. This applies to any sound wave signal mentioned in the embodiments of this application (e.g., the first sound wave signal, the second sound wave signal, the third sound wave signal), which will not be described again below.
[0169] In addition, when the sound wave signal is an ultrasonic signal, Figure 4 The acoustic module in the system can be an ultrasonic module.
[0170] The embodiments of this application do not limit the specific technology or equipment form used in the door lock device. It is understood that the door lock device can also be called a communication device. For example, a door lock device can be understood as a device with door lock functionality. For example, the device used to implement the door lock function can be a door lock; it can also be a device that supports the door lock in implementing this function, such as a chip system, hardware circuit, software module, or hardware circuit plus software module. This device can be installed in the door lock or can be used in conjunction with the door lock.
[0171] The above-listed deployment methods of door lock devices are merely examples. As standard technologies evolve, other deployment forms of door lock devices may exist, and this application does not limit such deployments.
[0172] The embodiments disclosed in this application will be presented to illustrate various aspects, embodiments, or features of this application in relation to systems including multiple devices, components, modules, etc. It should be understood and appreciated that individual systems may include additional devices, components, modules, etc., and / or may not include all the devices, components, modules, etc. discussed in conjunction with the accompanying drawings. Furthermore, combinations of these approaches may also be used.
[0173] Please see Figure 5 , Figure 5 This is a flowchart illustrating a communication method 100 provided in an embodiment of this application. The communication method 100 includes the following steps.
[0174] S101, the door lock device sends a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Correspondingly, the terminal device receives the first acoustic signal.
[0175] In this application embodiment, the sequence can be: a key, data, a character, or a string, etc. This applies to any sequence mentioned in this application embodiment (e.g., the first sequence, the second sequence, the third sequence, and the fourth sequence mentioned later).
[0176] Optionally, the first acoustic signal is an acoustic signal obtained based on the first sequence encoding. This can be understood as: the door lock device encodes the first sequence to obtain the first acoustic signal. Then, the door lock device sends the first acoustic signal.
[0177] Optionally, the method further includes: after receiving the first acoustic signal, the terminal device decodes the first acoustic signal.
[0178] S102, the door lock device sends a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device. Correspondingly, the terminal device receives the second acoustic signal.
[0179] Optionally, the method further includes: after receiving the second acoustic signal, the terminal device determines the distance between the terminal device and the door lock device based on the second acoustic signal. It is evident that the terminal device performs distance measurement based on the second acoustic signal.
[0180] S103. When the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends a first signal, and the second sequence matches the first sequence. Correspondingly, the door lock device receives the first signal.
[0181] S104. The door lock device determines whether to unlock based on the first signal.
[0182] The optional implementation methods of communication method 100 are described below.
[0183] In one optional implementation, the door lock device may send a first acoustic signal and a second acoustic signal in the following optional implementation methods 1.1, 1.2, or 1.3.
[0184] In implementation method 1.1, the door lock device combines the first acoustic signal and the second acoustic signal together for transmission.
[0185] Based on implementation method 1.1, while decoding the first acoustic signal, the terminal device can also determine the distance between the terminal device and the door lock device based on the second acoustic signal. This reduces the time required for the terminal device to determine whether the sequence obtained from decoding the first acoustic signal matches the second sequence and whether the distance between the terminal device and the door lock device meets the preset condition. This also reduces the time required for the terminal device to determine whether to send the first signal. Therefore, in step S103, if the sequence obtained from decoding the first acoustic signal matches the second sequence and the distance between the terminal device and the door lock device meets the preset condition, the first signal can be sent as quickly as possible. This allows for a reduction in unlocking time and improved user experience in step S104 when the door lock device determines to unlock based on the first signal. The distance determination in this embodiment can also refer to distance-related parameters, such as spatial coordinates or spatial parameters.
[0186] For example, the door lock device sends signal #1, which is a signal obtained by combining the first sound wave signal and the second sound wave signal.
[0187] In one alternative approach, in signal #1, the first acoustic wave signal and the second acoustic wave signal occupy consecutive time-domain resources. For example... Figure 6 As shown in part (A), the time domain resources occupied by the first sound wave signal are earlier than those occupied by the second sound wave signal, and the end time of the first sound wave signal overlaps with or is adjacent to the start time of the second sound wave signal. Or, as... Figure 6 As shown in part (B), the time domain resources occupied by the second sound wave signal are earlier than those occupied by the first sound wave signal, and the end time of the second sound wave signal overlaps with or is adjacent to the start time of the first sound wave signal.
[0188] In another alternative approach, in signal #1, the time interval between the first and second acoustic wave signals is greater than zero. For example... Figure 7 As shown in part (A), the time domain resources occupied by the first acoustic signal are earlier than those occupied by the second acoustic signal, and the time interval between the end time of the first acoustic signal and the start time of the second acoustic signal is greater than zero. Or, as Figure 7 As shown in section (B), the time domain resources occupied by the second acoustic signal are earlier than those occupied by the first acoustic signal, and the time interval between the end time of the second acoustic signal and the start time of the first acoustic signal is greater than zero. The time interval between the first and second acoustic signals can be, for example, 100 milliseconds or 50 ms, and this embodiment does not limit the specific value of this time interval.
[0189] In implementation method 1.2, the door lock device first sends a first acoustic signal. If the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence, the door lock device sends a second acoustic signal.
[0190] Based on implementation method 1.2, if the sequence obtained by the terminal device from decoding the first acoustic signal does not match the second sequence, the door lock device may not send the second acoustic signal, reducing signaling overhead. Furthermore, since the door lock device does not send the second acoustic signal when the sequence obtained by the terminal device from decoding the first acoustic signal does not match the second sequence, the terminal device may not need to perform the operation of determining the distance between the terminal device and the door lock device based on the second acoustic signal, further reducing the power consumption of the terminal device.
[0191] Optionally, if the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence, the door lock device sends the second acoustic signal, including: the terminal device sending a fifth signal, which instructs the door lock device to send an acoustic signal for ranging, upon receiving the fifth signal.
[0192] Understandably, the door lock device sends a first acoustic signal, and the terminal device decodes the received first acoustic signal. If the sequence obtained by decoding the first acoustic signal matches a second sequence, the terminal device sends a fifth signal to instruct the door lock device to send an acoustic signal for distance measurement. After receiving the fifth signal, the door lock device sends a second acoustic signal. Based on the second acoustic signal, the terminal device determines the distance between itself and the door lock device. If the distance between itself and the door lock device meets a preset condition, the terminal device sends the first signal. Alternatively, if the sequence obtained by decoding the first acoustic signal does not match the second sequence, the terminal device does not send the fifth signal; therefore, the door lock device will not receive the fifth signal, and it may choose not to send the second acoustic signal.
[0193] In implementation method 1.3, the door lock device first sends a second acoustic signal. When the distance between the terminal device and the door lock device meets a preset condition, the door lock device sends a first acoustic signal.
[0194] Based on implementation method 1.3, when the distance between the terminal device and the door lock device does not meet the preset conditions, the door lock device may not send the first acoustic signal, reducing signaling overhead. Furthermore, when the distance between the terminal device and the door lock device does not meet the preset conditions, and the door lock device does not send the first acoustic signal, the terminal device may not need to perform the operations of decoding the first acoustic signal and determining whether the sequence obtained from decoding the first acoustic signal matches the second sequence, further reducing the power consumption of the terminal device.
[0195] Optionally, when the distance between the terminal device and the door lock device meets a preset condition, the door lock device sends a first acoustic signal, including: the terminal device sending a sixth signal when the distance between it and the door lock device meets the preset condition, the sixth signal being used to instruct the door lock device to send an coded acoustic signal. Upon receiving the sixth signal, the door lock device sends the first acoustic signal.
[0196] Understandably, the door lock device sends a second acoustic signal, and the terminal device determines the distance between itself and the door lock device based on the second acoustic signal. If the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends a sixth signal to instruct the door lock device to send an encoded acoustic signal. After receiving the sixth signal, the door lock device sends a first acoustic signal. The terminal device decodes the first acoustic signal, and if the sequence obtained from decoding the first acoustic signal matches a second sequence, the terminal device sends the first signal. Alternatively, if the distance between the terminal device and the door lock device meets the preset condition, the terminal device does not send the sixth signal; therefore, if the door lock device does not receive the sixth signal, it may not send the first acoustic signal.
[0197] In one alternative implementation, the first acoustic signal may be transmitted multiple times by the door lock device. For example, the door lock device may transmit the first acoustic signal multiple times periodically or non-periodically. For instance, the door lock device may transmit the first acoustic signal once every 100ms.
[0198] Similarly, the second acoustic signal can be transmitted multiple times by the door lock device. For example, the door lock device can transmit the second acoustic signal multiple times periodically or non-periodically. For instance, the door lock device can transmit the second acoustic signal once every 100ms.
[0199] Optionally, in the case where the door lock device combines the first and second acoustic signals for transmission, signal #1 can be transmitted multiple times by the door lock device. Signal #1 is the signal obtained by combining the first and second acoustic signals. For example, the door lock device can transmit signal #1 multiple times periodically or non-periodically. For details regarding signal #1, please refer to the relevant description in Embodiment 1.1, which will not be repeated here.
[0200] In one optional implementation, under certain circumstances or scenarios, the door lock device can be triggered to start sending sound wave signals. Specifically, this can be as described in optional implementation 2.1 or implementation 2.2 below.
[0201] In implementation method 2.1, upon receiving the fourth signal sent by the terminal device, the door lock device begins to transmit an acoustic signal. The fourth signal is used to instruct the door lock device to transmit an acoustic signal.
[0202] Optionally, the fourth signal is sent by the terminal device upon successful connection with the door lock device. Understandably, the terminal device sends the fourth signal upon successful connection with the door lock device. Upon receiving the fourth signal, the door lock device begins transmitting an acoustic signal.
[0203] For example, when the terminal device successfully connects to the door lock device, it sends a fourth signal. Upon receiving the fourth signal, the door lock device sends a signal obtained by combining the first and second acoustic signals. This example can be applied to the aforementioned embodiment 1.1. It is evident that the door lock device receives the fourth signal before sending the signal obtained by combining the first and second acoustic signals.
[0204] For example, when the terminal device successfully connects to the door lock device, it sends a fourth signal. Upon receiving the fourth signal, the door lock device sends a first acoustic signal. If the sequence obtained by the terminal device from decoding the first acoustic signal matches a second sequence, the door lock device then sends a second acoustic signal. This example can be applied to the aforementioned embodiment 1.2. It is evident that the door lock device receives the fourth signal before sending the first acoustic signal.
[0205] As another example, when the terminal device successfully connects to the door lock device, it sends a fourth signal. Upon receiving the fourth signal, the door lock device sends a second acoustic signal. If the distance between the terminal device and the door lock device meets a preset condition, the door lock device then sends a first acoustic signal. This example can be applied to the aforementioned embodiment 1.3. It is evident that the door lock device receives the fourth signal before sending the second acoustic signal.
[0206] Furthermore, in this embodiment, the connection between the terminal device and the door lock device can be achieved, for example, via Bluetooth. In this scenario, a successful connection between the terminal device and the door lock device specifically means that the Bluetooth of the terminal device and the Bluetooth of the door lock device are successfully connected. Additionally, in the scenario where the connection between the terminal device and the door lock device is based on Bluetooth, the signaling interaction between the terminal device and the door lock device can be achieved via Bluetooth. For example, the fourth signal, the first signal, and the response signal and the fifth signal mentioned later can be Bluetooth signals, or they can be transmitted via Bluetooth. Further details will not be elaborated upon below. Moreover, after the terminal device's Bluetooth is paired with the door lock device's Bluetooth for the first time, subsequent Bluetooth connections between the terminal device and the door lock device can be automatically established without manual intervention.
[0207] Optionally, after receiving the fourth signal, the door lock device also sends a response signal corresponding to the fourth signal, so that the terminal device can prepare to receive the acoustic signal. Optionally, the door lock device starts sending the acoustic signal after sending the response signal; or, the door lock device starts sending the acoustic signal at the same time as sending the response signal.
[0208] In addition, the terminal device sending a fourth signal and / or the door lock device sending a response signal corresponding to the fourth signal also helps with time synchronization between the terminal device and the door lock device.
[0209] In embodiment 2.2, the door lock device includes a sensor. Upon detecting the terminal device via the sensor, the door lock device begins transmitting an acoustic signal.
[0210] For example, when the door lock device detects the terminal device through a sensor, it sends a signal obtained by combining a first acoustic signal and a second acoustic signal. This example can be applied to the aforementioned embodiment 1.1.
[0211] As another example, when the door lock device detects the terminal device via a sensor, it sends a first acoustic signal. If the sequence obtained by the terminal device decoding the first acoustic signal matches a second sequence, the door lock device then sends a second acoustic signal. This example can be applied to the aforementioned embodiment 1.2.
[0212] As another example, when the door lock device detects the terminal device via a sensor, it sends a second acoustic signal. If the distance between the terminal device and the door lock device meets a preset condition, the door lock device then sends a first acoustic signal. This example can be applied to the aforementioned embodiment 1.3.
[0213] In one alternative approach, the sensor can be a moving target detection sensor. The moving target detection sensor can be implemented, for example, based on acoustic waves, millimeter-wave radar, or Bluetooth.
[0214] For example, the sensor is a Bluetooth-based sensor. The door lock device can determine whether it has detected the terminal device by checking if a Bluetooth connection has been established with it, and thus determine whether a user is approaching the door lock device. If the door lock device confirms a successful Bluetooth connection with the terminal device, it means that the door lock device has detected the terminal device, determines that a user is approaching the door lock device, and then begins to send sound wave signals.
[0215] For example, a door lock device may have a 3-meter monitoring range. When a moving target approaches and is within 3 meters of the door lock device, the sensor will detect the moving target and report this information to the main controller in the door lock device.
[0216] Alternatively, the sensor is a motion sensor. A motion sensor can be based on infrared, sound waves, or microwaves, for example. The door lock device uses the motion sensor to detect if someone is approaching, and then, upon detecting someone's approach, begins sending an acoustic signal.
[0217] In one optional implementation, the sequence obtained by the terminal device from decoding the first acoustic signal is matched with the second sequence, which may be as described in optional implementation 3.1 or implementation 3.2 below.
[0218] Implementation method 3.1: The sequence obtained by the terminal device from decoding the first sound wave signal is matched with the second sequence, which can be: the sequence obtained by the terminal device from decoding the first sound wave signal is completely identical to the second sequence.
[0219] For example, the second sequence is 01001. If the terminal device decodes the first sound wave signal and obtains the sequence 01001, then the sequence obtained by the terminal device from decoding the first sound wave signal matches the second sequence.
[0220] Implementation Method 3.2: Matching the sequence obtained by the terminal device from decoding the first acoustic signal with the second sequence can be achieved by the similarity between the sequence obtained by the terminal device from decoding the first acoustic signal and the second sequence being greater than or equal to a fourth value. The fourth value can be, for example, predefined or preconfigured, or determined through negotiation between the door lock device and the terminal device; there are no restrictions on this.
[0221] For example, the second sequence is 0100100111, and the fourth value is 90%. Assuming the terminal device decodes the first sound wave signal to obtain the sequence 0100100111, it can be seen that the similarity between the decoded sequence and the second sequence is 100%, meaning they match. Now, assuming the terminal device decodes the first sound wave signal to obtain the sequence 1100100111, it can be seen that the similarity between the decoded sequence and the second sequence is 90%, meaning they match. Finally, assuming the terminal device decodes the first sound wave signal to obtain the sequence 1111100111, it can be seen that the similarity between the decoded sequence and the second sequence is 60%, meaning they do not match.
[0222] Furthermore, in this embodiment, if the sequence obtained by the terminal device from decoding the first sound wave signal matches the second sequence, it indicates that the terminal device has successfully decoded the first sound wave signal. If the sequence obtained by the terminal device from decoding the first sound wave signal does not match the second sequence, it indicates that the terminal device has failed to decode the first sound wave signal.
[0223] In one alternative implementation, the second sequence is a sequence stored by the terminal device. The first sequence is a sequence stored by the door lock device.
[0224] Optionally, the second sequence matches the first sequence in the following ways: the second sequence is the same as the first sequence; or the second sequence is different from the first sequence, and the second sequence has a corresponding or related relationship with the first sequence.
[0225] The terminal device stores the second sequence, which can be implemented using either Implementation Method 4.1 or Implementation Method 4.2.
[0226] In implementation method 4.1, when the door lock device is bound to the terminal device, the door lock device generates a first sequence and a second sequence, stores the first sequence, and sends the second sequence to the terminal device; after receiving the second sequence, the terminal device stores the second sequence.
[0227] For example, the second sequence is the same as the first sequence. When the door lock device is bound to the terminal device, the door lock device generates a specific sequence #1, stores sequence #1, and sends sequence #1 to the terminal device. The terminal device receives sequence #1 and then stores sequence #1.
[0228] For example, the second sequence differs from the first sequence. When the door lock device is bound to the terminal device, the door lock device generates specific sequences #1 and #2, which have a corresponding or associated relationship. The door lock device stores sequence #1 and sends sequence #2 to the terminal device. The terminal device receives sequence #2 and then stores it. Therefore, the first sequence is sequence #1, and the second sequence is sequence #2.
[0229] In implementation method 4.2, when the door lock device is bound to the terminal device, the terminal device generates a first sequence and a second sequence, stores the second sequence, and sends the first sequence to the door lock device; after receiving the first sequence, the door lock device stores the first sequence.
[0230] For example, the second sequence is the same as the first sequence. When the door lock device is bound to the terminal device, the terminal device generates a specific sequence #1, stores sequence #1, and sends sequence #1 to the door lock device. The door lock device receives sequence #1 and then stores it.
[0231] For example, the second sequence differs from the first sequence. When the door lock device is bound to the terminal device, the terminal device generates specific sequences #1 and #2, which have a corresponding or associated relationship. The terminal device stores sequence #2 and sends sequence #1 to the door lock device. The door lock device receives sequence #1 and then stores it. Therefore, the first sequence is sequence #1, and the second sequence is sequence #2.
[0232] As can be seen, in the above-described embodiments 4.1 or 4.2, the first sequence and the second sequence are generated when the door lock device is bound to the terminal device, and the first sequence and the second sequence can be applied to multiple subsequent unlocking scenarios. This eliminates the need to regenerate and transmit sequences for each unlocking scenario, reducing power consumption and signaling overhead.
[0233] For example, let's take the case where the second sequence is the same as the first sequence and the door lock device receives the fourth signal, triggering the door lock device to start sending sound wave signals, as an example:
[0234] When the door lock device is bound to the terminal device, the door lock device generates a specific sequence #1, stores the sequence #1, and sends the sequence #1 to the terminal device. The terminal device receives the sequence #1 and stores it.
[0235] Subsequently, in the first unlocking scenario, when the terminal device and the door lock device successfully connect for the first time, the terminal device sends a fourth signal to the door lock device. This fourth signal instructs the door lock device to send an acoustic signal. The door lock device sends a first acoustic signal #1, which is encoded based on sequence #1. The door lock device then sends a second acoustic signal. If the sequence obtained by decoding the first acoustic signal #1 matches sequence #1, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends the first signal. Based on the first signal, the door lock device determines whether to unlock.
[0236] In the second unlocking scenario, when the terminal device and the door lock device successfully connect for the second time, the terminal device sends a fourth signal to the door lock device. This fourth signal instructs the door lock device to send an acoustic signal. The door lock device sends a first acoustic signal #1, which is encoded based on sequence #1. The door lock device then sends a second acoustic signal. If the sequence obtained by decoding the first acoustic signal #1 matches sequence #1, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends the first signal. Based on the first signal, the door lock device determines whether to unlock.
[0237] Subsequent unlocking scenarios are similar and are also implemented using sequence #1, which will not be elaborated further.
[0238] In implementation method 4.3, when the door lock device successfully connects to the terminal device, it generates a second sequence and sends the second sequence. After receiving the second sequence, the terminal device stores the second sequence.
[0239] Optionally, in the scenario where the door lock device receives a fourth signal (the fourth signal is used to instruct the door lock device to send an acoustic signal), the second sequence may be carried in the response signal sent by the door lock device corresponding to the fourth signal.
[0240] For example, the second sequence is the same as the first sequence. When the door lock device successfully connects to the terminal device, it randomly generates sequence #1. When the terminal device successfully connects to the door lock device, it sends a fourth signal, which instructs the door lock device to send an acoustic signal. After receiving the fourth signal, the door lock device sends a response signal corresponding to the fourth signal, which includes sequence #1. The terminal device receives the response signal and stores the sequence #1 carried in the response signal. Therefore, both the second and first sequences are sequence #1.
[0241] For example, the second sequence differs from the first sequence. When the door lock device successfully connects to the terminal device, it randomly generates sequences #1 and #2, which have a corresponding or associated relationship. When the terminal device successfully connects to the door lock device, it sends a fourth signal, which instructs the door lock device to send an acoustic signal. Upon receiving the fourth signal, the door lock device sends a response signal corresponding to the fourth signal, which includes sequence #2. The terminal device receives the response signal and stores the sequence #2 carried within it. Therefore, the first sequence is sequence #1, and the second sequence is sequence #2.
[0242] As can be seen, in the above-described implementation 4.3, the first sequence and the second sequence are generated when the door lock device and the terminal device are successfully connected, and the first sequence and the second sequence are applicable to this unlocking scenario. It is understandable that the first sequence and the second sequence are regenerated for different unlocking scenarios. Therefore, the first sequence used in different unlocking scenarios may be different, and the second sequence may be different in different unlocking scenarios. This helps to prevent the first sequence and the second sequence generated in a certain unlocking scenario from being leaked, causing accidental unlocking in other unlocking scenarios, and thus improving security.
[0243] For example, let's take the case where the second sequence is the same as the first sequence, the first and second sequences are generated by the door lock device, and the door lock device receives the fourth signal, triggering the door lock device to start sending sound wave signals, as an example:
[0244] In the first unlocking scenario, when the terminal device and the door lock device successfully connect for the first time, the terminal device sends a fourth signal to the door lock device, which instructs the door lock device to send an acoustic signal. The door lock device generates sequence #1 and sends sequence #1 to the terminal device. The door lock device then sends a first acoustic signal #1, which is encoded based on sequence #1. The door lock device then sends a second acoustic signal. If the sequence obtained by decoding the first acoustic signal #1 matches sequence #1, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends the first signal. Based on the first signal, the door lock device determines whether to unlock.
[0245] In the second unlocking scenario, when the terminal device and the door lock device successfully connect for the second time, the terminal device sends a fourth signal to the door lock device, which instructs the door lock device to send an acoustic signal. The door lock device generates sequence #2 and sends sequence #2 to the terminal device. The door lock device then sends a first acoustic signal #2, which is encoded based on sequence #2. The door lock device then sends a second acoustic signal. If the sequence obtained by decoding the first acoustic signal #2 matches sequence #2, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends the first signal. Based on the first signal, the door lock device determines whether to unlock.
[0246] Subsequent unlocking scenarios are similar. In any unlocking scenario, the door lock device randomly generates a sequence upon successful connection with the terminal device and sends it to the terminal device. The door lock device encodes the sequence generated in this unlocking scenario to obtain the first acoustic signal. The terminal device matches the sequence received in this unlocking scenario with the sequence obtained by decoding the first acoustic signal. Further details are omitted.
[0247] In an optional implementation, the method further includes: if the sequence obtained by decoding the first acoustic signal does not match the second sequence, and the number of times the first acoustic signal has been decoded is less than or equal to the second value, the terminal device decodes the received first acoustic signal again. This implementation can be applied to a scenario where the door lock device sends the first acoustic signal multiple times. The number of times the first acoustic signal has been decoded can, for example, be the number of times decoding the first acoustic signal has failed. For details regarding failed decoding of the first acoustic signal, please refer to the foregoing explanation, which will not be repeated here.
[0248] Additionally, for example, the distance between the terminal device and the door lock device, and the environment in which the terminal device is located, may affect the signal strength of the first acoustic signal received by the terminal device, thereby affecting the sequence obtained by the terminal device after decoding the first acoustic signal. The sequence obtained by the terminal device after decoding the first acoustic signal with different signal strengths may be different.
[0249] For example, when the distance between the terminal device and the door lock device is far, the first sound wave signal received by the terminal device is relatively weak; when the distance between the terminal device and the door lock device is close, the first sound wave signal received by the terminal device is relatively strong. As another example, when the terminal device is obstructed (e.g., the terminal device is inside a backpack), the first sound wave signal received by the terminal device is relatively weak; when the terminal device is not obstructed (e.g., the user is holding the terminal device), the first sound wave signal received by the terminal device is relatively strong.
[0250] Therefore, the mismatch between the sequence obtained by the terminal device from decoding the first sound wave signal and the second sequence may be due to factors such as distance or environment. Thus, if the terminal device decodes the first sound wave signal again when the sequence obtained from decoding the first sound wave signal does not match the second sequence, and the number of times the first sound wave signal is decoded is less than or equal to the second value, this helps reduce the likelihood of the door lock failing to unlock due to the mismatch between the sequence obtained from decoding the first sound wave signal and the second sequence caused by external factors such as environment or distance.
[0251] For example, suppose the door lock device sends a first sound wave signal every 100ms, the second value is 2, and the second sequence is sequence #0.
[0252] Combination Figure 8 ( Figure 8 (The terminal device in the example is a mobile phone.) At time t1, the terminal device is located at position #1 and placed inside a backpack. The terminal device receives the first sound wave signal, i.e., the first sound wave signal #1, and decodes the first sound wave signal #1 to obtain the sequence #1. If sequence #1 matches sequence #0, the terminal device does not need to decode the subsequently received first sound wave signal.
[0253] If sequence #1 does not match sequence #0, the terminal device fails to decode the first sound wave signal once. At time t1+100ms, the terminal device receives the first sound wave signal again, i.e., first sound wave signal #2. At this time, the terminal device is located at position #2 and the user is holding the terminal device. The sequence obtained by the terminal device decoding the first sound wave signal #2 is sequence #2. If sequence #2 matches sequence #0, the terminal device does not need to decode subsequent received first sound wave signals.
[0254] If sequence #2 does not match sequence #0, the terminal device has failed to decode the first sound wave signal twice. At time t1+200ms, the terminal device receives the first sound wave signal again, which is now first sound wave signal #3. At this time, the terminal device is located at position #3 and the user is holding the terminal device. The sequence obtained by the terminal device decoding the first sound wave signal #3 is sequence #3. If sequence #3 matches sequence #0, the terminal device does not need to decode subsequent received first sound wave signals.
[0255] If sequence #3 does not match sequence #0, the terminal device has failed to decode the first sound wave signal 3 times, which does not meet the requirement of being less than or equal to the second value, and the process ends. Therefore, the door lock will not unlock.
[0256] In one optional implementation, the preset conditions for determining the distance between the terminal device and the door lock device may be as described in optional implementation 5.1 or implementation 5.2.
[0257] In implementation method 5.1, the preset condition is that the distance between the terminal device and the door lock device is less than a first value. It is understood that if the distance between the terminal device and the door lock device, determined by the terminal device based on the second acoustic signal, is less than the first value, then the distance between the terminal device and the door lock device meets the preset condition.
[0258] Alternatively, the preset condition is that the distance between the terminal device and the door lock device is less than or equal to a first value. Understandably, if the distance between the terminal device and the door lock device, determined by the terminal device based on the second acoustic signal, is less than or equal to the first value, it indicates that the distance between the terminal device and the door lock device meets the preset condition.
[0259] The first value can be predefined or preconfigured, or determined by negotiation between the door lock device and the terminal device, and there are no restrictions on this.
[0260] In implementation method 5.2, the preset condition is that the distance between the terminal device and the door lock device is decreasing. It is understood that if the distance between the terminal device and the door lock device, determined by the terminal device based on the second acoustic signal, is decreasing, then the distance between the terminal device and the door lock device meets the preset condition.
[0261] This implementation method 5.2 can be applied to a scenario where the door lock device sends a second acoustic signal multiple times. In this scenario, the terminal device can determine a distance based on the second acoustic signal received once. If the distance determined by the second acoustic signals received multiple times in chronological order shows a decreasing trend, the distance between the terminal device and the door lock device meets the preset conditions.
[0262] Optionally, the change in distance between the terminal device and the door lock device can be caused by a change in the position of the terminal device. For example, if a user moves while carrying the terminal device, the change in the user's position will cause a change in the position of the terminal device.
[0263] For example, suppose the door lock device sends the first and second acoustic signals every 100ms. Combined with... Figure 9 ( Figure 9(The terminal device in this example is a mobile phone.) At time t1, the second acoustic signal received by the terminal device at position #1 is called second acoustic signal #1. The distance between the terminal device and the door lock device determined based on second acoustic signal #1 is called distance #1. The terminal device moves from position #1 to position #2, at time t1+100ms. The second acoustic signal received by the terminal device is called second acoustic signal #2. The distance between the terminal device and the door lock device determined based on second acoustic signal #2 is called distance #2. The terminal device moves from position #2 to position #3, at time t1+200ms. The second acoustic signal received by the terminal device is called second acoustic signal #3. The distance between the terminal device and the door lock device determined based on second acoustic signal #3 is called distance #3. The terminal device moves from position #3 to position #4, at time t1+300ms. The second acoustic signal received by the terminal device is called second acoustic signal #4. The distance between the terminal device and the door lock device determined based on second acoustic signal #4 is called distance #4. Among them, distance #1 > distance #2 > distance #3 > distance #4. It can be seen that the trend of the distance between the terminal device and the door lock device determined by the second sound wave signal is decreasing, indicating that the distance between the terminal device and the door lock device meets the preset conditions.
[0264] In an alternative implementation, the first signal mentioned in step S103 and step S104 can be described as in the following alternative implementations 6.1 and 6.2.
[0265] In implementation method 6.1, the first signal is used to instruct the door lock device to unlock. The door lock device determines whether to unlock based on the first signal, including: the door lock device determines to unlock based on the first signal.
[0266] Understandably, when the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends a first signal to instruct the door lock device to unlock. Upon receiving the first signal, the door lock device determines that it is unlocking. Therefore, when the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends a command to the door lock device to instruct it to unlock.
[0267] In implementation method 6.2, the first signal is a third acoustic signal, which is an acoustic signal obtained by encoding a third sequence, and the third sequence matches a fourth sequence. The door lock device determines whether to unlock based on the first signal, including: the door lock device determines to unlock if the sequence obtained by decoding the third acoustic signal matches the fourth sequence.
[0268] The process of the terminal device sending a third acoustic signal, the door lock device decoding the third acoustic signal, and the sequence obtained by the door lock device decoding the third acoustic signal matching with the fourth sequence is similar to the aforementioned process of the door lock device sending a first acoustic signal, the terminal device decoding the first acoustic signal, and the sequence obtained by the terminal device decoding the first acoustic signal matching with the second sequence. Please refer to the aforementioned explanations. A brief description follows.
[0269] Optionally, the third acoustic signal can be transmitted multiple times by the terminal device. For example, the terminal device can transmit the first acoustic signal multiple times periodically or non-periodically. For instance, the terminal device can transmit the first acoustic signal once every 100ms.
[0270] Optionally, the sequence obtained by the door lock device from decoding the third acoustic signal matches the fourth sequence. This can be achieved by the door lock device decoding the third acoustic signal and obtaining the sequence exactly the same as the fourth sequence; or by the door lock device decoding the third acoustic signal and obtaining the sequence with a similarity greater than or equal to a fifth value. The fifth value can be, for example, predefined or preconfigured, or determined through negotiation between the door lock device and the terminal device, and there are no restrictions on this. The fifth value can be the same as or different from the aforementioned fourth value (used for comparing the similarity between the sequence obtained by the terminal device from decoding the third acoustic signal and the second sequence).
[0271] In this embodiment, if the sequence obtained by the door lock device from decoding the third acoustic signal matches the fourth sequence, it indicates that the door lock device has successfully decoded the third acoustic signal. If the sequence obtained by the door lock device from decoding the third acoustic signal does not match the fourth sequence, it indicates that the door lock device has failed to decode the third acoustic signal.
[0272] Optionally, the third sequence is a sequence stored in the terminal device. The fourth sequence is a sequence stored in the door lock device. Matching the third sequence and the fourth sequence can be: the third sequence and the fourth sequence are the same; or it can be: the third sequence and the fourth sequence are different, and the third sequence and the fourth sequence have a corresponding or related relationship.
[0273] Optionally, the third and fourth sequences can be generated by the door lock device or the terminal device when the door lock device is bound to the terminal device. Alternatively, the third and fourth sequences can be generated by the door lock device when the door lock device and the terminal device are successfully connected. Furthermore, the third and fourth sequences can be generated simultaneously with the aforementioned first and second sequences, or they can be generated at different times (e.g., sequentially).
[0274] Optionally, the method further includes: if the sequence obtained by decoding the third sound wave signal does not match the fourth sequence, and the number of times the third sound wave signal is decoded is less than or equal to the third value, the door lock device decodes the received third sound wave signal again. This implementation can be applied to a scenario where the terminal device sends the third sound wave signal multiple times. The number of times the third sound wave signal is decoded can be, for example, the number of times the third sound wave signal decoding fails. This implementation is similar to the aforementioned method where the sequence obtained by decoding the first sound wave signal does not match the second sequence, and the number of times the first sound wave signal is decoded is less than or equal to the second value, and can be referred to the relevant descriptions, which will not be repeated here.
[0275] In summary, in this communication method 100, the door lock device sends a first acoustic signal, and the terminal device receives the first acoustic signal. The first acoustic signal is an acoustic signal obtained based on a first sequence encoding. The door lock device sends a second acoustic signal, and the terminal device receives the second acoustic signal. The second acoustic signal is used to determine the distance between the terminal device and the door lock device. If the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between the terminal device and the door lock device meets a preset condition, the terminal device sends a first signal, and the second sequence matches the first sequence. Based on the first signal, the door lock device determines whether to unlock.
[0276] As can be seen, in this method, the terminal device receives a first acoustic signal encoded by the door lock device based on a first sequence. If the first sequence matches a second sequence, then the sequence obtained by the terminal device decoding the first acoustic signal also matches the second sequence. This indicates that the terminal device and the door lock device are matched, reflecting that the user of the terminal device is the actual user of the door lock device (also referred to as the "real user"). When the terminal device and the door lock device are matched, and the distance between them meets a preset condition, the terminal device sends a first signal to assist the door lock device in determining whether to unlock, thus improving the security of contactless unlocking. Therefore, this method can achieve highly secure contactless unlocking.
[0277] Furthermore, this method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound wave signals, the door lock device can send a first and a second sound wave signal outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. Therefore, by checking whether the terminal device receives the first and second sound wave signals, it is possible to identify whether the terminal device is outside the door. This helps to unlock the door when the terminal device is outside and prevent it from unlocking when it is inside.
[0278] Furthermore, in this method, the terminal device determines the distance between itself and the door lock device based on a second acoustic signal sent by the door lock device. It is evident that this method utilizes acoustic signals for distance measurement, resulting in higher accuracy and aiding in precise positioning of the terminal device. For example, the terminal device can accurately calculate the distance between itself and the door lock device by measuring the time of flight of the received acoustic signal. This helps distinguish between a real user and a stranger in scenarios where both are present at the door lock device, preventing accidental unlocking due to the inability to differentiate between them.
[0279] Furthermore, the distance measurement method using sound wave signals (e.g., ultrasonic signals) provided in this application embodiment can be extended to other scenarios besides terminal devices and door lock devices, such as distance measurement between different terminal devices. For example, one terminal device sends a sound wave signal, and another terminal device measures the distance between the two terminal devices based on the received sound wave signal.
[0280] The method provided in this application, which involves "a door lock device sending an coded acoustic signal, a terminal device decoding the received acoustic signal, and determining whether the terminal device and the door lock device are compatible by comparing the sequence obtained by the terminal device from decoding the acoustic signal with the sequence used by the door lock device to encode the acoustic signal," can also be extended to other scenarios besides the connection between the terminal device and the door lock device, such as distance measurement between different terminal devices. For example, a first terminal device sends an coded acoustic signal, a second terminal device decodes the received acoustic signal, and the sequence obtained by the second terminal device from decoding the acoustic signal is compared with the sequence used by the first terminal device to encode the acoustic signal to determine whether the first terminal device and the second terminal device are compatible.
[0281] Based on communication method 100, embodiments of this application also provide some exemplary communication methods, as shown in Examples 1 to 3 below.
[0282] Example 1: The first sequence is the same as the second sequence and is sequence #1. (Combined) Figure 10 The communication method described in Example 1 includes the following steps.
[0283] S201. The terminal device determines whether it has successfully connected with the door lock device via Bluetooth. If the terminal device has successfully connected with the door lock device via Bluetooth, proceed to steps S202 to S208. Otherwise, proceed to step S201 again.
[0284] S202. The terminal device sends a fourth signal via Bluetooth, which instructs the door lock device to send an acoustic signal. Correspondingly, the door lock device receives the fourth signal via Bluetooth.
[0285] S203. The door lock device sends a response signal corresponding to the fourth signal via Bluetooth. Correspondingly, the terminal device receives the response signal corresponding to the fourth signal via Bluetooth.
[0286] S204. The door lock device encodes sequence #1 to obtain the first acoustic signal.
[0287] S205, The door lock device plays the first sound wave signal through a speaker.
[0288] The door lock device can send the first sound wave signal multiple times, either periodically or non-periodically, through a horn.
[0289] S206. The terminal device receives the first sound wave signal via the microphone.
[0290] Understandably, the terminal device records the first sound wave signal via a microphone.
[0291] The terminal device can continuously receive the first sound wave signal via a microphone.
[0292] S207, The terminal device decodes the first acoustic signal.
[0293] S208. The terminal device determines whether decoding the first acoustic signal was successful. If the terminal device fails to decode the first acoustic signal, proceed to step S209. If the terminal device successfully decodes the first acoustic signal, proceed to steps S210 to S214.
[0294] Specifically, if the sequence obtained by the terminal device from decoding the first sound wave signal matches sequence #1, then the decoding of the first sound wave signal is successful. If the sequence obtained by the terminal device from decoding the first sound wave signal does not match sequence #1, then the decoding of the first sound wave signal is unsuccessful.
[0295] S209. The terminal device determines whether the number of failed decoding attempts for the first acoustic signal is greater than a second value. If the number of failed decoding attempts for the first acoustic signal is less than or equal to the second value, steps S206 to S208 are executed again. If the number of failed decoding attempts for the first acoustic signal is greater than the second value, the process ends, and the door lock device will not unlock.
[0296] S210. The terminal device sends a fifth signal via Bluetooth, which instructs the door lock device to send an acoustic signal for distance measurement. Correspondingly, the door lock device receives the fifth signal via Bluetooth.
[0297] S211, The door lock device plays a second sound wave signal through a speaker.
[0298] The door lock device can send the first sound wave signal multiple times, either periodically or non-periodically, through a horn.
[0299] S212, The terminal device receives the second sound wave signal via a microphone.
[0300] Understandably, the terminal device records a second sound wave signal via a microphone.
[0301] The terminal device can continuously receive the second sound wave signal via a microphone.
[0302] S213. The terminal device determines the distance between the terminal device and the door lock device based on the received second acoustic signal.
[0303] S214. The terminal device determines whether the distance between the terminal device and the door lock device is less than a first value. If the distance between the terminal device and the door lock device is greater than or equal to the first value, steps S212 to S214 are executed again. If the distance between the terminal device and the door lock device is less than the first value, steps S215 and S216 are executed.
[0304] S215. The terminal device sends a first signal via Bluetooth, the first signal being used to instruct the door lock device to unlock. Correspondingly, the door lock device receives the first signal via Bluetooth.
[0305] S216, Door lock device unlocks.
[0306] For a detailed explanation of each step in Example 1, please refer to the relevant explanation in the aforementioned communication method 100, which will not be repeated here.
[0307] As can be seen, in the communication method described in Example 1, after the terminal device automatically establishes a Bluetooth connection with the door lock device, it triggers the door lock device to send an acoustic signal by sending a Bluetooth command (i.e., the fourth signal). After receiving the first acoustic signal through the microphone, the terminal device decodes the first acoustic signal. By comparing the sequence obtained from decoding the first acoustic signal with the sequence #1 stored in the terminal device, it determines whether the terminal device and the door lock device are compatible, or in other words, whether the user of the terminal device is the real user of the door lock device, thus improving the security of contactless unlocking.
[0308] This method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound waves, the door lock device can send sound waves outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. This method can also accurately identify whether the user is inside or outside the door.
[0309] Furthermore, in this method, the terminal device can accurately calculate the distance between the terminal device and the door lock device by receiving the flight time of the second sound wave signal through the microphone, thus enabling the differentiation between the user and the stranger in scenarios where the user and the stranger are present at the same time.
[0310] Furthermore, for the door lock device, this method is implemented using a speaker (for transmitting sound wave signals) and a single Bluetooth connection. This requires no additional hardware or additional cost, resulting in a simple architecture that saves on hardware costs and system power consumption. It also avoids the wiring issues associated with using dual Bluetooth devices. For the terminal device, this method can be implemented using Bluetooth and a microphone, demonstrating its wide compatibility with various terminal devices. For example, a mobile phone can use Bluetooth and a microphone to implement the method, making it compatible with various types of mobile phones and solving the problem of strong dependence on mobile phone type in UWB-based contactless unlocking technology.
[0311] Example 2: The first sequence is the same as the second sequence and is sequence #1. (Combined) Figure 11 The communication method described in Example 2 includes the following steps.
[0312] S301. The door lock device detects whether a user is approaching the door lock device via a sensor. If the door lock device detects that a user is approaching the door lock device via the sensor, steps S302 to S306 are executed. Otherwise, step S301 is executed again.
[0313] S302, The door lock device encodes sequence #1 to obtain the first acoustic signal.
[0314] S303, The door lock device plays the first sound wave signal through a speaker.
[0315] The door lock device can send the first sound wave signal multiple times, either periodically or non-periodically, through a horn.
[0316] S304. The terminal device receives the first sound wave signal via the microphone.
[0317] Understandably, the terminal device records the first sound wave signal via a microphone.
[0318] The terminal device can continuously receive the first sound wave signal via a microphone.
[0319] S305, The terminal device decodes the first acoustic signal.
[0320] S306. The terminal device determines whether the decoding of the first sound wave signal is successful. If the terminal device fails to decode the first sound wave signal, proceed to step S307. If the terminal device successfully decodes the first sound wave signal, proceed to steps S308 to S312.
[0321] Specifically, if the sequence obtained by the terminal device from decoding the first sound wave signal matches sequence #1, then the decoding of the first sound wave signal is successful. If the sequence obtained by the terminal device from decoding the first sound wave signal does not match sequence #1, then the decoding of the first sound wave signal is unsuccessful.
[0322] S307. The terminal device determines whether the number of failed decoding attempts for the first acoustic signal is greater than a second value. If the number of failed decoding attempts for the first acoustic signal is less than or equal to the second value, steps S304 to S306 are executed again. If the number of failed decoding attempts for the first acoustic signal is greater than the second value, the process ends, and the door lock device will not unlock.
[0323] S308. The terminal device sends a fifth signal via Bluetooth, which instructs the door lock device to send an acoustic signal for distance measurement. Correspondingly, the door lock device receives the fifth signal via Bluetooth.
[0324] S309, The door lock device plays a second sound wave signal through a speaker.
[0325] The door lock device can send the first sound wave signal multiple times, either periodically or non-periodically, through a horn.
[0326] S310, The terminal device receives the second acoustic signal via a microphone.
[0327] Understandably, the terminal device records a second sound wave signal via a microphone.
[0328] The terminal device can continuously receive the second sound wave signal via a microphone.
[0329] S311. The terminal device determines the distance between the terminal device and the door lock device based on the received second acoustic signal.
[0330] S312. The terminal device determines whether the distance between the terminal device and the door lock device is less than a first value. If the distance between the terminal device and the door lock device is greater than or equal to the first value, steps S310 to S312 are executed again. If the distance between the terminal device and the door lock device is less than the first value, steps S313 and S314 are executed.
[0331] S313. The terminal device sends a first signal via Bluetooth, which instructs the door lock device to unlock. Correspondingly, the door lock device receives the first signal via Bluetooth.
[0332] S314, Door lock device unlocks.
[0333] For a detailed explanation of each step in Example 2, please refer to the relevant explanation in the aforementioned communication method 100, which will not be repeated here.
[0334] As can be seen, in the communication method described in Example 2, the door lock device detects the terminal device through a sensor, thereby determining whether a user is approaching the door lock. Upon detecting the terminal device, the door lock device begins sending an acoustic signal. The terminal device receives the first acoustic signal via a microphone, decodes it, and determines whether the terminal device and the door lock device are compatible by comparing the decoded sequence with sequence #1 stored in the terminal device. In other words, it determines whether the user of the terminal device is the actual user of the door lock device, thus improving the security of contactless unlocking.
[0335] In this method, the door lock device detects the terminal device through a sensor, thereby determining whether a user is approaching the door lock. This avoids the problem of unstable Bluetooth connection latency in the method of determining whether a user is approaching the door lock device using Bluetooth connection.
[0336] This method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound waves, the door lock device can send sound waves outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. This method can also accurately identify whether the user is inside or outside the door.
[0337] Furthermore, in this method, the terminal device can accurately calculate the distance between the terminal device and the door lock device by receiving the flight time of the second sound wave signal through the microphone, thus enabling the differentiation between the user and the stranger in scenarios where the user and the stranger are present at the same time.
[0338] Furthermore, for the door lock device, this method utilizes a speaker (for transmitting sound signals), a single Bluetooth connection, and a sensor. This eliminates the need for additional hardware and costs, resulting in a simple architecture that saves on hardware costs and system power consumption. It also avoids the wiring issues associated with dual Bluetooth connections. For the terminal device, this method can be implemented using Bluetooth and a microphone, demonstrating its wide compatibility with various device types. For example, a mobile phone can also implement this method using Bluetooth and a microphone, thus overcoming the strong dependence on specific phone types inherent in UWB-based contactless unlocking technologies.
[0339] Example 3: The first sequence is the same as the second sequence and is sequence #1. The third sequence is the same as the fourth sequence and is sequence #2. (Combined) Figure 12 The communication method described in Example 3 includes the following steps.
[0340] S401. The door lock device detects whether a user is approaching the door lock device via a sensor. If the door lock device detects that a user is approaching the door lock device via the sensor, steps S402 to S406 are executed. Otherwise, step S401 is executed again.
[0341] S402, The door lock device encodes sequence #1 to obtain the first acoustic signal.
[0342] S403, The door lock device plays the first sound wave signal through a speaker.
[0343] The door lock device can send the first sound wave signal multiple times, either periodically or non-periodically, through a horn.
[0344] S404, The terminal device receives the first sound wave signal via the microphone.
[0345] Understandably, the terminal device records the first sound wave signal via a microphone.
[0346] The terminal device can continuously receive the first sound wave signal via a microphone.
[0347] S405, The terminal device decodes the first acoustic signal.
[0348] S406. The terminal device determines whether decoding the first sound wave signal was successful. If the terminal device fails to decode the first sound wave signal, proceed to step S407. If the terminal device successfully decodes the first sound wave signal, proceed to steps S408 to S412.
[0349] Specifically, if the sequence obtained by the terminal device from decoding the first sound wave signal matches sequence #1, then the decoding of the first sound wave signal is successful. If the sequence obtained by the terminal device from decoding the first sound wave signal does not match sequence #1, then the decoding of the first sound wave signal is unsuccessful.
[0350] S407. The terminal device determines whether the number of failed decoding attempts for the first acoustic signal is greater than a second value. If the number of failed decoding attempts for the first acoustic signal is less than or equal to the second value, steps S404 to S406 are executed again. If the number of failed decoding attempts for the first acoustic signal is greater than the second value, the process ends, and the door lock device will not unlock.
[0351] S408. The terminal device sends a fifth signal via Bluetooth, which instructs the door lock device to send an acoustic signal for distance measurement. Correspondingly, the door lock device receives the fifth signal via Bluetooth.
[0352] S409, The door lock device plays a second sound wave signal through a speaker.
[0353] The door lock device can send the first sound wave signal multiple times, either periodically or non-periodically, through a horn.
[0354] S410, the terminal device receives the second acoustic signal via a microphone.
[0355] Understandably, the terminal device records a second sound wave signal via a microphone.
[0356] The terminal device can continuously receive the second sound wave signal via a microphone.
[0357] S411. The terminal device determines the distance between the terminal device and the door lock device based on the received second acoustic signal.
[0358] S412. The terminal device determines whether the distance between the terminal device and the door lock device is less than a first value. If the distance between the terminal device and the door lock device is greater than or equal to the first value, steps S410 to S412 are executed again. If the distance between the terminal device and the door lock device is less than the first value, steps S413 to S416 are executed.
[0359] S413, The terminal device obtains the third acoustic signal from sequence #2.
[0360] S414. The terminal device plays a third sound wave signal through a speaker.
[0361] The terminal device can send a third sound wave signal multiple times, either periodically or non-periodically, through a speaker.
[0362] S415, The door lock device receives a third acoustic signal via a microphone.
[0363] Understandably, the door lock device records a third sound wave signal via a microphone.
[0364] The door lock device can continuously receive a third sound wave signal via a microphone.
[0365] S416, the door lock device decodes the third acoustic signal.
[0366] S417. The door lock device determines whether the decoding of the third acoustic signal was successful. If the door lock device fails to decode the third acoustic signal, proceed to step S418. If the door lock device successfully decodes the third acoustic signal, proceed to step S419.
[0367] If the sequence obtained by the door lock device from decoding the third acoustic signal matches sequence #2, then the decoding of the third acoustic signal is successful. If the sequence obtained by the door lock device from decoding the third acoustic signal does not match sequence #2, then the decoding of the third acoustic signal is unsuccessful.
[0368] S418. The door lock device determines whether the number of failed decoding attempts for the third acoustic signal is greater than a third value. If the number of failed decoding attempts for the third acoustic signal is less than or equal to the third value, steps S415 to S417 are executed again. If the number of failed decoding attempts for the third acoustic signal is greater than the third value, the process ends, and the door lock device will not unlock.
[0369] S419. Door lock device unlocks.
[0370] For a detailed explanation of each step in Example 3, please refer to the relevant explanation in the aforementioned communication method 100, which will not be repeated here.
[0371] As can be seen, in the communication method described in Example 3, the door lock device detects the terminal device through a sensor, thereby determining whether a user is approaching the door lock. Upon detecting the terminal device, the door lock device begins sending an acoustic signal. The terminal device receives the first acoustic signal via a microphone and decodes it. By comparing the sequence obtained from decoding the first acoustic signal with sequence #1 stored in the terminal device, it determines whether the terminal device and the door lock device are compatible, or in other words, whether the user of the terminal device is the actual user of the door lock device. This improves the security of contactless unlocking.
[0372] In this method, the door lock device detects the terminal device through a sensor, thereby determining whether a user is approaching the door lock. This avoids the problem of unstable Bluetooth connection latency in the method of determining whether a user is approaching the door lock device using Bluetooth connection.
[0373] This method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound waves, the door lock device can send sound waves outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. This method can also accurately identify whether the user is inside or outside the door.
[0374] Furthermore, in this method, the terminal device can accurately calculate the distance between the terminal device and the door lock device by receiving the flight time of the second sound wave signal through the microphone, thus enabling the differentiation between the user and the stranger in scenarios where the user and the stranger are present at the same time.
[0375] Furthermore, in this method, when the sequence obtained by decoding the first acoustic signal matches sequence #1 (indicating a match between the door lock device and the terminal device), and the distance between the terminal device and the door lock device is less than a first value, the terminal device sends a third acoustic signal obtained by encoding sequence #2 through a speaker. The door lock device unlocks when the decoded and received third acoustic signal matches sequence #2. The match between the sequence obtained by the door lock device from decoding the third acoustic signal and sequence #2 indicates a match between the door lock device and the terminal device. This method enables the door lock device to unlock even when the distance between the terminal device and the door lock device is less than a first value, and multiple checks confirm a match between the door lock device and the terminal device, further improving the security of contactless unlocking.
[0376] This method eliminates the need for Bluetooth communication, thus resolving issues of unreliable Bluetooth connections and connection latency.
[0377] Furthermore, for the door lock device, this method utilizes a speaker (for transmitting sound signals), a single Bluetooth connection, and a sensor. This eliminates the need for additional hardware and costs, resulting in a simple architecture that saves on hardware costs and system power consumption. It also avoids the wiring issues associated with dual Bluetooth connections. For the terminal device, this method can be implemented using Bluetooth and a microphone, demonstrating its wide compatibility with various device types. For example, a mobile phone can also implement this method using Bluetooth and a microphone, thus overcoming the strong dependence on specific phone types inherent in UWB-based contactless unlocking technologies.
[0378] Please see Figure 13 , Figure 13 This is a flowchart illustrating a communication method 200 provided in an embodiment of this application. The communication method 200 includes the following steps.
[0379] S501, the door lock device sends a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Correspondingly, the terminal device receives the first acoustic signal.
[0380] S502, the door lock device sends a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device. Correspondingly, the terminal device receives the second acoustic signal.
[0381] S503, the terminal device sends the sequence obtained by decoding the first acoustic signal and the distance between the terminal device and the door lock device; correspondingly, the door lock device receives the sequence obtained by the terminal device by decoding the first acoustic signal and the distance between the terminal device and the door lock device.
[0382] S504. When the sequence obtained by the receiving terminal device from decoding the first acoustic signal matches the second sequence, and the distance between the receiving terminal device and the door lock device meets the preset conditions, the door lock device determines to unlock, and the second sequence matches the first sequence.
[0383] As can be seen, the difference between communication method 200 and communication method 100 is that in communication method 200, the terminal device sends the sequence obtained by decoding the first acoustic signal to the door lock device, which then determines whether the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence. Furthermore, the terminal device sends the distance between the terminal device and the door lock device determined based on the second acoustic signal to the door lock device, which then determines whether the distance between the terminal device and the door lock device meets a preset condition. The door lock device determines to unlock if the received sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence and the received distance between the terminal device and the door lock device meets the preset condition. The remaining optional implementations of communication method 200 are similar to those of communication method 100, and can be found in the relevant descriptions of communication method 100. The optional implementations of communication method 200 are briefly described below.
[0384] In one alternative implementation, the door lock device may send a first acoustic signal and a second acoustic signal in the following exemplary manner.
[0385] For example, the door lock device combines the first and second acoustic signals and transmits them together. This method can be found in Embodiment 1.1 of the communication method 100, and will not be repeated here. In this method, the sequence obtained by the terminal device decoding the first acoustic signal in step S503, and the distance between the terminal device and the door lock device, can be transmitted simultaneously, or they can be transmitted at different times (e.g., sequentially).
[0386] For example, the door lock device first sends a first acoustic signal. If the sequence obtained by the terminal device from decoding the first acoustic signal matches a second sequence, the door lock device sends a second acoustic signal. In this method, the sequence obtained by the terminal device from decoding the first acoustic signal and the distance between the terminal device and the door lock device in step S503 are not sent simultaneously.
[0387] Understandably, the door lock device sends a first acoustic signal. The terminal device decodes the received first acoustic signal and sends the sequence obtained from decoding the first acoustic signal to the door lock device. If the sequence obtained from decoding the first acoustic signal by the terminal device matches a second sequence, the door lock device sends a second acoustic signal. The terminal device determines the distance between itself and the door lock device based on the second acoustic signal and sends this distance to the door lock device. If the distance between itself and the door lock device meets a preset condition, the door lock device unlocks.
[0388] For example, the door lock device first sends a second acoustic signal. When the distance between the terminal device and the door lock device meets a preset condition, the door lock device sends a first acoustic signal. In this method, the sequence obtained by the terminal device decoding the first acoustic signal in step S503 and the distance between the terminal device and the door lock device are not sent simultaneously.
[0389] Understandably, the door lock device sends a second acoustic signal. The terminal device determines the distance between itself and the door lock device based on the received second acoustic signal and sends this distance to the door lock device. If the received distance between the terminal device and the door lock device meets a preset condition, the door lock device sends a first acoustic signal. The terminal device decodes the received first acoustic signal and sends the resulting sequence to the door lock device. If the sequence obtained from decoding the first acoustic signal by the terminal device matches the second sequence, the door lock device determines that it is unlocking.
[0390] In one alternative implementation, the first acoustic signal may be transmitted multiple times by the door lock device. The second acoustic signal may also be transmitted multiple times by the door lock device. See the relevant description in communication method 100; it will not be repeated here.
[0391] In one alternative implementation, under certain circumstances or scenarios, the door lock device can be triggered to start sending sound wave signals.
[0392] For example, upon receiving a fourth signal from the terminal device, the door lock device begins transmitting an acoustic signal. The fourth signal instructs the door lock device to transmit the acoustic signal. See Embodiment 2.1 of Communication Method 100 for details, which will not be repeated here.
[0393] For example, the door lock device includes a sensor. Upon detecting the terminal device through the sensor, the door lock device begins transmitting an acoustic signal. See embodiment 2.2 of communication method 100 for details, which will not be repeated here.
[0394] In one optional implementation, the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence, which can be: the sequence obtained by the terminal device from decoding the first acoustic signal is completely identical to the second sequence. Alternatively, the similarity between the sequence obtained by the terminal device from decoding the first acoustic signal and the second sequence is greater than or equal to a fourth value. See the relevant description in communication method 100 for further details, which will not be repeated here.
[0395] In one alternative implementation, the first sequence and the second sequence are stored in the door lock device.
[0396] Understandably, in communication method 200, the generation of the first acoustic signal using the first sequence and the matching judgment between the second sequence and the sequence obtained by decoding the first acoustic signal by the terminal device are both performed by the door lock device. Therefore, the door lock device stores the first sequence and the second sequence.
[0397] Optionally, the second sequence matches the first sequence in the following ways: the second sequence is the same as the first sequence; or the second sequence is different from the first sequence, and the second sequence has a corresponding or related relationship with the first sequence.
[0398] Optionally, when the door lock device is bound to the terminal device, the door lock device generates the first sequence and the second sequence.
[0399] Alternatively, when the door lock device is bound to the terminal device, the terminal device generates a first sequence and a second sequence, and sends the first sequence and the second sequence to the door lock device.
[0400] Alternatively, if the door lock device successfully connects to the terminal device, it generates a first sequence and a second sequence.
[0401] For details, please refer to the relevant description in Communication Method 100, which will not be repeated here.
[0402] In one alternative implementation, the door lock device sends the first acoustic signal multiple times, and the terminal device can receive the first acoustic signal multiple times. Then, the terminal device can decode the first acoustic signal multiple times and send the sequence obtained from decoding the first acoustic signal multiple times to the door lock device.
[0403] If the sequence obtained by the terminal device from decoding the first sound wave signal does not match the second sequence, and the number of times the decoding of the first sound wave signal fails is less than or equal to the second value, the door lock device determines whether the sequence obtained by the terminal device from decoding the first sound wave signal again matches the second sequence.
[0404] For example, suppose the door lock device sends a first sound wave signal every 100ms, the second value is 2, and the second sequence is sequence #0.
[0405] Combination Figure 8 ( Figure 8(The terminal device in this example is a mobile phone.) At time t1, the terminal device is located at position #1 and placed inside a backpack. The terminal device receives the first sound wave signal, i.e., the first sound wave signal #1, decodes the first sound wave signal #1 to obtain sequence #1, and sends sequence #1 to the door lock device. At time t1+100ms, the terminal device receives the first sound wave signal, i.e., the first sound wave signal #2. At this time, the terminal device is located at position #2 and the user is holding the terminal device. The terminal device decodes the first sound wave signal #2 to obtain sequence #2, and sends sequence #2 to the door lock device. At time t1+200ms, the terminal device receives the first sound wave signal, i.e., the first sound wave signal #3. At this time, the terminal device is located at position #3 and the user is holding the terminal device. The terminal device decodes the first sound wave signal #3 to obtain sequence #3, and sends sequence #3 to the door lock device. The subsequent receiving, decoding, and sending of the decoded first sound wave signal sequence by the terminal device are similar and will not be described in detail.
[0406] After receiving sequence #1, the door lock device determines whether sequence #1 matches sequence #0. If sequence #1 matches sequence #0, the door lock device does not need to determine whether the sequences obtained by the subsequent receiving terminal device from decoding the first acoustic signal (e.g., sequences #2 and #3) match sequence #0.
[0407] If sequence #1 does not match sequence #0, the door lock device determines that the terminal device failed to decode the first acoustic signal once, and then checks whether sequence #2 matches sequence #0. If sequence #2 matches sequence #0, the door lock device does not need to check whether the sequence obtained by the terminal device after decoding the first acoustic signal (e.g., sequence #3) matches sequence #0.
[0408] If sequence #2 does not match sequence #0, the door lock device determines that the terminal device has failed to decode the first acoustic signal twice. The door lock device then checks whether sequence #3 matches sequence #0. If sequence #3 matches sequence #0, the door lock device no longer needs to check whether the sequence obtained by the terminal device from decoding the first acoustic signal subsequently matches sequence #0.
[0409] If sequence #3 does not match sequence #0, the door lock device determines that the terminal device has failed to decode the first acoustic signal 3 times, which does not meet the requirement of being less than or equal to the second value, and the process ends. Therefore, the door lock device will not unlock.
[0410] In one optional implementation, the preset condition for determining the distance between the terminal device and the door lock device is that the distance between the terminal device and the door lock device is less than a first value. Alternatively, the preset condition is that the distance between the terminal device and the door lock device shows a decreasing trend. See the relevant description in communication method 100; it will not be repeated here.
[0411] In summary, in this communication method 200, the terminal device receives a first acoustic signal encoded by the door lock device based on a first sequence. The first sequence matches a second sequence. The terminal device then sends the sequence obtained by decoding the first acoustic signal to the door lock device, allowing the door lock device to determine whether the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence. The matching of the sequence obtained by the terminal device from decoding the first acoustic signal with the second sequence indicates a match between the terminal device and the door lock device, reflecting that the user of the terminal device is the actual user of the door lock device (also referred to as the "real user"). The terminal device sends the distance between itself and the door lock device, determined based on the second acoustic signal, to the door lock device, allowing the door lock device to determine whether the distance between them meets a preset condition. This reduces the power consumption of the terminal device. Furthermore, it helps the door lock device determine whether to unlock when the terminal device and the door lock device are matched and the distance between them meets the preset condition, thus improving the security of contactless unlocking.
[0412] Furthermore, this method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound wave signals, the door lock device can send a first and a second sound wave signal outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. Therefore, by checking whether the terminal device receives the first and second sound wave signals, it is possible to identify whether the terminal device is outside the door. This helps to unlock the door when the terminal device is outside and prevent it from unlocking when it is inside.
[0413] Furthermore, in this method, the terminal device determines the distance between itself and the door lock device based on a second acoustic signal sent by the door lock device. It is evident that this method utilizes acoustic signals for distance measurement, resulting in higher accuracy. For example, the terminal device can accurately calculate the distance between itself and the door lock device by measuring the time of flight of the received acoustic signal. This helps to distinguish between a real user and a stranger in scenarios where both are present, preventing accidental unlocking due to the inability to differentiate between them.
[0414] Please see Figure 14 , Figure 14This is a flowchart illustrating a communication method 300 provided in an embodiment of this application. The communication method 300 includes the following steps.
[0415] S601, the door lock device sends a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Correspondingly, the terminal device receives the first acoustic signal.
[0416] S602, the door lock device sends a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device. Correspondingly, the terminal device receives the second acoustic signal.
[0417] S603, the terminal device sends a second signal and the distance between the terminal device and the door lock device. The second signal is used to indicate whether the sequence obtained by decoding the first acoustic signal matches the second sequence, and whether the second sequence matches the first sequence. Correspondingly, the door lock device receives the second signal and the distance between the terminal device and the door lock device.
[0418] S604. When the door lock device receives the second signal and the distance between the receiving terminal device and the door lock device meets the preset conditions, it determines to unlock.
[0419] As can be seen, the difference between communication method 300 and communication method 100 is that in communication method 300, the terminal device determines whether the sequence obtained by decoding the first acoustic signal matches the second sequence, and sends a second signal to the door lock device if the sequence matches. Furthermore, the terminal device sends the distance between itself and the door lock device determined based on the second acoustic signal to the door lock device, which then determines whether the distance between itself and the door lock device meets a preset condition. Upon receiving the second signal and finding that the distance between itself and the door lock device meets the preset condition, the door lock device determines to unlock. The remaining optional implementations of communication method 300 are similar to those of communication method 100, and can be found in the relevant descriptions of communication method 100. The optional implementations of communication method 300 are briefly described below.
[0420] In one alternative implementation, the door lock device may send a first acoustic signal and a second acoustic signal in the following exemplary manner.
[0421] For example, the door lock device combines the first and second acoustic signals and transmits them together. This method can be found in Embodiment 1.1 of the communication method 100, and will not be repeated here. In this method, the second signal, the distance between the terminal device and the door lock device in step S603 can be transmitted simultaneously, or they can be transmitted at different times (e.g., sequentially).
[0422] For example, the door lock device first sends a first acoustic signal. If the sequence obtained by the terminal device decoding the first acoustic signal matches a second sequence, the door lock device sends a second acoustic signal. In this method, the second signal in step S603 and the distance between the terminal device and the door lock device are not sent simultaneously.
[0423] Understandably, the door lock device sends a first acoustic signal. The terminal device decodes the received first acoustic signal. If the sequence obtained from decoding the first acoustic signal matches a second sequence, the terminal device sends a second signal. Upon receiving the second signal, the door lock device sends a second acoustic signal. The terminal device determines the distance between itself and the door lock device based on the second acoustic signal and sends this distance to the door lock device. If the received distance between itself and the door lock device meets a preset condition, the door lock device determines to unlock. Optionally, the second signal can be a fifth signal, which instructs the door lock device to send an acoustic signal for distance measurement. Alternatively, if the sequence obtained from decoding the first acoustic signal matches a second sequence, the terminal device sends both the second and fifth signals.
[0424] For example, the door lock device first sends a second acoustic signal. When the distance between the terminal device and the door lock device meets a preset condition, the door lock device sends a first acoustic signal. In this method, the second signal and the distance between the terminal device and the door lock device in step S603 are not sent simultaneously.
[0425] Understandably, the door lock device sends a second acoustic signal. The terminal device determines the distance between itself and the door lock device based on the received second acoustic signal and sends this distance to the door lock device. If the received distance between the terminal device and the door lock device meets a preset condition, the door lock device sends a first acoustic signal. The terminal device decodes the received first acoustic signal; if the sequence obtained from decoding the first acoustic signal matches a second sequence, the terminal device sends a second signal. Upon receiving the second acoustic signal, the door lock device determines that it is unlocked.
[0426] In one alternative implementation, the first acoustic signal may be transmitted multiple times by the door lock device. The second acoustic signal may also be transmitted multiple times by the door lock device. See the relevant description in communication method 100; it will not be repeated here.
[0427] In one alternative implementation, under certain circumstances or scenarios, the door lock device can be triggered to start sending sound wave signals.
[0428] For example, upon receiving a fourth signal from the terminal device, the door lock device begins transmitting an acoustic signal. The fourth signal instructs the door lock device to transmit the acoustic signal. See Embodiment 2.1 of Communication Method 100 for details, which will not be repeated here.
[0429] For example, the door lock device includes a sensor. Upon detecting the terminal device through the sensor, the door lock device begins transmitting an acoustic signal. See embodiment 2.2 of communication method 100 for details, which will not be repeated here.
[0430] In one optional implementation, the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence, which can be: the sequence obtained by the terminal device from decoding the first acoustic signal is completely identical to the second sequence. Alternatively, the similarity between the sequence obtained by the terminal device from decoding the first acoustic signal and the second sequence is greater than or equal to a fourth value. See the relevant description in communication method 100 for further details, which will not be repeated here.
[0431] In one alternative implementation, the second sequence is a sequence stored by the terminal device. The first sequence is a sequence stored by the door lock device.
[0432] Optionally, the second sequence matches the first sequence in the following ways: the second sequence is the same as the first sequence; or the second sequence is different from the first sequence, and the second sequence has a corresponding or related relationship with the first sequence.
[0433] Optionally, when the door lock device is bound to the terminal device, the door lock device generates a first sequence and a second sequence, stores the first sequence, and sends the second sequence to the terminal device; after receiving the second sequence, the terminal device stores the second sequence.
[0434] Alternatively, when the door lock device is bound to the terminal device, the terminal device generates a first sequence and a second sequence, stores the second sequence, and sends the first sequence to the door lock device; after receiving the first sequence, the door lock device stores the first sequence.
[0435] Alternatively, if the door lock device successfully connects to the terminal device, it generates a first sequence and a second sequence. The door lock device stores the first sequence and sends the second sequence to the terminal device. After receiving the second sequence, the terminal device stores it.
[0436] For details, please refer to the relevant description in communication method 100, which will not be repeated here.
[0437] In an optional implementation, the method further includes: if the sequence obtained by decoding the first acoustic signal does not match the second sequence, and the number of times the first acoustic signal has been decoded is less than or equal to the second value, the terminal device decodes the received first acoustic signal again. This implementation can be applied to scenarios where the door lock device sends the first acoustic signal multiple times. See the relevant description in communication method 100 for further details.
[0438] In one optional implementation, the preset condition for determining the distance between the terminal device and the door lock device is that the distance between the terminal device and the door lock device is less than a first value. Alternatively, the preset condition is that the distance between the terminal device and the door lock device shows a decreasing trend. See the relevant description in communication method 100; it will not be repeated here.
[0439] In summary, in this communication method 300, when the terminal device receives a first acoustic signal encoded by the door lock device based on a first sequence, and the first sequence matches a second sequence, then the terminal device decodes the first acoustic signal to obtain a sequence that matches the second sequence. This indicates that the terminal device matches the door lock device, reflecting that the user of the terminal device is the actual user of the door lock device (also referred to as the real user). When the terminal device decodes the first acoustic signal to obtain a sequence that matches the second sequence, it sends a second signal so that the door lock device can determine that the sequence decoded by the terminal device matches the second sequence, thereby confirming that the terminal device matches the door lock device.
[0440] The terminal device also sends the distance between itself and the door lock device, determined based on the second acoustic signal, to the door lock device so that the door lock device can determine whether the distance between the terminal device and the door lock device meets the preset conditions. This reduces the power consumption of the terminal device.
[0441] The above solution helps the door lock device determine whether to unlock when the terminal device and the door lock device are matched and the distance between the terminal device and the door lock device meets the preset conditions, thereby improving the security of contactless unlocking.
[0442] Furthermore, this method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound wave signals, the door lock device can send a first and a second sound wave signal outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. Therefore, by checking whether the terminal device receives the first and second sound wave signals, it is possible to identify whether the terminal device is outside the door. This helps to unlock the door when the terminal device is outside and prevent it from unlocking when it is inside.
[0443] Furthermore, in this method, the terminal device determines the distance between itself and the door lock device based on a second acoustic signal sent by the door lock device. It is evident that this method utilizes acoustic signals for distance measurement, resulting in higher accuracy. For example, the terminal device can accurately calculate the distance between itself and the door lock device by measuring the time of flight of the received acoustic signal. This helps to distinguish between a real user and a stranger in scenarios where both are present, preventing accidental unlocking due to the inability to differentiate between them.
[0444] Please see Figure 15 , Figure 15 This is a flowchart illustrating a communication method 400 provided in an embodiment of this application. The communication method 400 includes the following steps.
[0445] S701, the door lock device sends a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Correspondingly, the terminal device receives the first acoustic signal.
[0446] S702, the door lock device sends a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device. Correspondingly, the terminal device receives the second acoustic signal.
[0447] S703, the terminal device sends a sequence and a third signal obtained by decoding the first acoustic signal. The third signal is used to indicate that the distance between the terminal device and the door lock device meets a preset condition. Correspondingly, the door lock device receives the sequence and the third signal obtained by the terminal device from decoding the first acoustic signal.
[0448] S704. The door lock device determines to unlock when the sequence obtained by decoding the first acoustic signal by the receiving terminal device matches the second sequence and a third signal is received; the second sequence matches the first sequence.
[0449] As can be seen, the difference between communication method 400 and communication method 100 is that in communication method 400, the terminal device sends the sequence obtained by decoding the first acoustic signal to the door lock device, and the door lock device determines whether the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence. The terminal device determines whether the distance between the terminal device and the door lock device, determined based on the second acoustic signal, meets a preset condition, and sends a third signal if the distance between the terminal device and the door lock device meets the preset condition. The door lock device determines to unlock if the received sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence and if it receives the third signal. The remaining optional implementations of communication method 400 are similar to those of communication method 100, and can be found in the relevant descriptions in communication method 100. The optional implementations of communication method 400 are briefly described below.
[0450] In one alternative implementation, the door lock device may send a first acoustic signal and a second acoustic signal in the following exemplary manner.
[0451] For example, the door lock device combines the first and second acoustic signals and transmits them together. This method can be found in Embodiment 1.1 of the communication method 100, and will not be repeated here. In this method, the sequence and the third signal obtained by the terminal device in step S703 after decoding the first acoustic signal can be transmitted simultaneously, or they can be transmitted at different times (e.g., sequentially).
[0452] For example, the door lock device first sends a first acoustic signal. If the sequence obtained by the terminal device from decoding the first acoustic signal matches a second sequence, the door lock device sends a second acoustic signal. In this method, the sequence obtained by the terminal device from decoding the first acoustic signal and the third signal in step S703 are not sent simultaneously.
[0453] Understandably, the door lock device sends a first acoustic signal. The terminal device decodes the received first acoustic signal and sends the sequence obtained from decoding the first acoustic signal to the door lock device. If the sequence obtained from decoding the first acoustic signal by the terminal device matches a second sequence, the door lock device sends a second acoustic signal. The terminal device determines the distance between itself and the door lock device based on the second acoustic signal, and if the distance between the terminal device and the door lock device meets a preset condition, it sends a third signal. Upon receiving the third signal, the door lock device determines that it is unlocking.
[0454] For example, the door lock device first sends a second acoustic signal. When the distance between the terminal device and the door lock device meets a preset condition, the door lock device sends a first acoustic signal. In this mode, the sequence obtained by the terminal device decoding the first acoustic signal and the third signal in step S703 are not sent simultaneously.
[0455] Understandably, the door lock device sends a second acoustic signal. The terminal device determines the distance between itself and the door lock device based on the received second acoustic signal, and sends a third signal if the distance between them meets a preset condition. Upon receiving the third signal, the door lock device sends a first acoustic signal. The terminal device decodes the received first acoustic signal and sends the resulting sequence to the door lock device. The door lock device determines that it is unlocked if the sequence obtained from decoding the first acoustic signal by the terminal device matches the second sequence.
[0456] In one alternative implementation, the first acoustic signal may be transmitted multiple times by the door lock device. The second acoustic signal may also be transmitted multiple times by the door lock device. See the relevant description in communication method 100; it will not be repeated here.
[0457] In one alternative implementation, under certain circumstances or scenarios, the door lock device can be triggered to start sending sound wave signals.
[0458] For example, upon receiving a fourth signal from the terminal device, the door lock device begins transmitting an acoustic signal. The fourth signal instructs the door lock device to transmit the acoustic signal. See Embodiment 2.1 of Communication Method 100 for details, which will not be repeated here.
[0459] For example, the door lock device includes a sensor. Upon detecting the terminal device through the sensor, the door lock device begins transmitting an acoustic signal. See embodiment 2.2 of communication method 100 for details, which will not be repeated here.
[0460] In one optional implementation, the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence, which can be: the sequence obtained by the terminal device from decoding the first acoustic signal is completely identical to the second sequence. Alternatively, the similarity between the sequence obtained by the terminal device from decoding the first acoustic signal and the second sequence is greater than or equal to a fourth value. See the relevant description in communication method 100 for further details, which will not be repeated here.
[0461] In one alternative implementation, the first sequence and the second sequence are stored in the door lock device.
[0462] Understandably, in communication method 400, the generation of the first acoustic signal using the first sequence and the matching judgment between the second sequence and the sequence obtained by decoding the first acoustic signal by the terminal device are both performed by the door lock device. Therefore, the door lock device needs to store the first sequence and the second sequence.
[0463] Optionally, the second sequence matches the first sequence in the following ways: the second sequence is the same as the first sequence; or the second sequence is different from the first sequence, and the second sequence has a corresponding or related relationship with the first sequence.
[0464] Optionally, when the door lock device is bound to the terminal device, the door lock device generates the first sequence and the second sequence.
[0465] Alternatively, when the door lock device is bound to the terminal device, the terminal device generates a first sequence and a second sequence, and sends the first sequence and the second sequence to the door lock device.
[0466] Alternatively, if the door lock device successfully connects to the terminal device, it generates a first sequence and a second sequence.
[0467] For details, please refer to the relevant description in Communication Method 100, which will not be repeated here.
[0468] In one alternative implementation, the door lock device sends the first acoustic signal multiple times, and the terminal device can receive the first acoustic signal multiple times. Then, the terminal device can decode the first acoustic signal multiple times and send the sequence obtained from decoding the first acoustic signal multiple times to the door lock device.
[0469] If the sequence obtained by the terminal device from decoding the first acoustic signal does not match the second sequence, and the number of failed decodings of the first acoustic signal is less than or equal to the second value, the door lock device determines whether the sequence obtained by the terminal device from decoding the first acoustic signal again matches the second sequence. See the relevant description in communication method 200; it will not be repeated here.
[0470] In one optional implementation, the preset condition for determining the distance between the terminal device and the door lock device is that the distance between the terminal device and the door lock device is less than a first value. Alternatively, the preset condition is that the distance between the terminal device and the door lock device shows a decreasing trend. See the relevant description in communication method 100; it will not be repeated here.
[0471] In summary, in this communication method 400, the terminal device receives a first acoustic signal encoded by the door lock device based on a first sequence. The first sequence matches a second sequence. The terminal device then sends the sequence obtained by decoding the first acoustic signal to the door lock device, allowing the door lock device to determine whether the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence, thus reducing the power consumption of the terminal device. The fact that the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence indicates that the terminal device and the door lock device are matched, reflecting that the user of the terminal device is the actual user of the door lock device (also referred to as the "real user").
[0472] The terminal device determines the distance between itself and the door lock device based on the second acoustic signal sent by the door lock device. If the distance between the terminal device and the door lock device meets the preset conditions, the terminal device sends a third signal so that the door lock device can determine that the distance between the terminal device and the door lock device meets the preset conditions.
[0473] The above solution helps the door lock device determine whether to unlock when the terminal device and the door lock device are matched and the distance between the terminal device and the door lock device meets the preset conditions, thereby improving the security of contactless unlocking.
[0474] Furthermore, this method is based on sound wave signals (e.g., ultrasonic signals). Utilizing the FOV (Field of View) characteristic of sound wave signals, the door lock device can send a first and a second sound wave signal outwards. The terminal device can receive the sound wave signal when it is outside the door, and cannot receive it when it is inside. Therefore, by checking whether the terminal device receives the first and second sound wave signals, it is possible to identify whether the terminal device is outside the door. This helps to unlock the door when the terminal device is outside and prevent it from unlocking when it is inside.
[0475] Furthermore, in this method, the terminal device determines the distance between itself and the door lock device based on a second acoustic signal sent by the door lock device. It is evident that this method utilizes acoustic signals for distance measurement, resulting in higher accuracy. For example, the terminal device can accurately calculate the distance between itself and the door lock device by measuring the time of flight of the received acoustic signal. This helps to distinguish between a real user and a stranger in scenarios where both are present, preventing accidental unlocking due to the inability to differentiate between them.
[0476] To achieve the functions of the methods provided in the embodiments of this application, the network element / device may include hardware structures and / or software modules, implementing the above functions in the form of hardware structures, software modules, or a combination of hardware structures and software modules. Whether a particular function is executed in the form of hardware structures, software modules, or a combination of hardware structures and software modules depends on the specific application and design constraints of the technical solution.
[0477] like Figure 16As shown, this application embodiment provides a communication device 1600. The communication device 1600 can be a terminal device, or a component of a terminal device (e.g., an integrated circuit, a chip, etc.). Alternatively, the communication device 1600 can be a door lock device, or a component of a door lock device (e.g., an integrated circuit, a chip, etc.). The communication device 1600 can also be other communication units used to implement the methods in the method embodiments of this application. The communication device 1600 may include a processing unit 1601. Optionally, the communication device 1600 may further include a communication unit 1602, where the processing unit 1601 controls the communication unit 1602 to perform data / signaling transmission and reception. The communication unit 1602 may also be referred to as a transceiver unit. Optionally, the communication unit 1602 may include a sending unit and a receiving unit; the sending unit can be used to send data / signaling, and the receiving unit can be used to receive data / signaling. Optionally, the communication device 1600 may also include a storage unit 1603, which can be used to store information and / or data and / or instructions, etc. The storage unit 1603 can interact with the processing unit 1601 or the communication unit 1602.
[0478] In one possible design, regarding the case where the communication device 1600 is used to implement the functions of the terminal device in the above method embodiments:
[0479] Communication unit 1602 is used to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Communication unit 1602 is also used to receive a second acoustic signal, which is used to determine the distance between communication device 1600 and door lock device. If the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between communication device 1600 and door lock device meets a preset condition, communication unit 1602 is further used to send a first signal, which is used to determine whether the door lock device is unlocked, and the second sequence matches the first sequence.
[0480] In another possible design, regarding the case where the communication device 1600 is used to implement the function of the door lock device in the above method embodiment:
[0481] Communication unit 1602 is used to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Communication unit 1602 is also used to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device 1600. Communication unit 1602 is also used to receive a first signal, which is transmitted by the terminal device after the sequence obtained by decoding the first acoustic signal matches a second sequence, and the distance between the terminal device and the communication device 1600 meets a preset condition, wherein the second sequence matches the first sequence. Processing unit 1601 is used to determine whether to unlock based on the first signal.
[0482] In another possible design, regarding the case where the communication device 1600 is used to implement the functions of the terminal device in the above method embodiments:
[0483] Communication unit 1602 is used to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Communication unit 1602 is also used to receive a second acoustic signal, which is used to determine the distance between communication device 1600 and door lock device. Communication unit 1602 is also used to transmit a sequence obtained by decoding the first acoustic signal and the distance between communication device 1600 and door lock device. The sequence obtained by decoding the first acoustic signal and the distance between communication device 1600 and door lock device are used in conjunction with a second sequence to determine whether the door lock device is unlocked. The second sequence matches the first sequence.
[0484] In another possible design, regarding the case where the communication device 1600 is used to implement the function of the door lock device in the above method embodiment:
[0485] Communication unit 1602 is used to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Communication unit 1602 is also used to transmit a second acoustic signal, which is used to determine the distance between the terminal device and communication device 1600. If the sequence obtained by the receiving terminal device from decoding the first acoustic signal matches the second sequence, and the distance between the receiving terminal device and communication device 1600 meets a preset condition, processing unit 1601 is used to determine unlocking, whereby the second sequence matches the first sequence.
[0486] In another possible design, regarding the case where the communication device 1600 is used to implement the functions of the terminal device in the above method embodiments:
[0487] Communication unit 1602 is used to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Communication unit 1602 is also used to receive a second acoustic signal, which is used to determine the distance between communication device 1600 and door lock device. Communication unit 1602 is also used to send a second signal and the distance between communication device 1600 and door lock device. The second signal is used to indicate that the sequence obtained by decoding the first acoustic signal matches the second sequence. The second signal and the distance between communication device 1600 and door lock device are used to determine whether the door lock device is unlocked, and the second sequence matches the first sequence.
[0488] In another possible design, regarding the case where the communication device 1600 is used to implement the function of the door lock device in the above method embodiment:
[0489] Communication unit 1602 is used to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Communication unit 1602 is also used to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device 1600. Upon receiving the second signal, and if the distance between the receiving terminal device and the communication device 1600 meets a preset condition, processing unit 1601 is used to determine unlocking, whereby the second signal indicates that the sequence obtained by decoding the first acoustic signal matches the second sequence, and the second sequence matches the first sequence.
[0490] In another possible design, regarding the case where the communication device 1600 is used to implement the functions of the terminal device in the above method embodiments:
[0491] Communication unit 1602 is used to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Communication unit 1602 is also used to receive a second acoustic signal, which is used to determine the distance between communication device 1600 and door lock device. Communication unit 1602 is also used to send a sequence obtained by decoding the first acoustic signal and a third signal. The third signal is used to indicate that the distance between communication device 1600 and door lock device meets a preset condition. The sequence obtained by decoding the first acoustic signal and the third signal are used in combination with the second sequence to determine whether the door lock device is unlocked. The second sequence matches the first sequence.
[0492] In another possible design, regarding the case where the communication device 1600 is used to implement the function of the door lock device in the above method embodiment:
[0493] Communication unit 1602 is used to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Communication unit 1602 is also used to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device 1600. When the sequence obtained by the receiving terminal device from decoding the first acoustic signal matches the second sequence, and a third signal is received, processing unit 1601 is used to determine unlocking. The third signal indicates that the distance between the terminal device and the communication device 1600 meets a preset condition, and that the second sequence matches the first sequence.
[0494] The embodiments of this application and the method embodiments shown above are based on the same concept and have the same technical effects. For the specific principles, please refer to the description of the embodiments shown above, which will not be repeated here.
[0495] This application also provides a communication device 1700, such as... Figure 17As shown. The communication device 1700 can be a terminal device, or a chip, chip system, or processor that enables the terminal device to implement the above methods. Alternatively, the communication device 1700 can be a door lock device, or a chip, chip system, or processor that enables the door lock device to implement the above methods. This device can be used to implement the methods described in the above method embodiments, and for details, please refer to the description in the above method embodiments.
[0496] The communication device 1700 may include one or more processors 1701. The processor 1701 can be used to implement some or all of the functions of the terminal-side device or network-side device through logic circuits or by running computer programs. The processor 1701 may be a general-purpose processor or a special-purpose processor, etc. For example, it may be one or a combination of one or more of the following: baseband processor, digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, central processing unit (CPU), application-specific integrated circuit (ASIC), digital signal processor (DSP), microprocessor unit (MPU), microcontroller unit (MCU), graphics processing unit (GPU), field-programmable gate array (FPGA), artificial intelligence processor (AI processor), or neural processing unit (NPU). The baseband processor can be used to process communication protocols and communication data, while the central processing unit can be used to control communication devices, execute software programs, and process data from software programs. Communication devices include, for example, base stations, baseband chips, terminals, terminal chips, DUs, or CUs.
[0497] Optionally, the communication device 1700 may include one or more memories 1702, which may store instructions 1704 that can be executed on the processor 1701, causing the communication device 1700 to perform the methods described in the above method embodiments. Optionally, the memory 1702 may also store data. The processor 1701 and the memory 1702 may be provided separately or integrated together.
[0498] Memory 1702 may include, but is not limited to, non-volatile memory such as cache, read-only memory (ROM), random access memory (RAM), synchronous dynamic random access memory (SDRAM), hard disk drive (HDD), or solid-state drive (SSD). Memory 902 may also include random access memory (RAM), erasable programmable read-only memory (EPROM), ROM, or compact disc read-only memory (CD-ROM), etc. Memory is any other medium capable of carrying or storing desired program code having an instruction or data structure form and accessible by a computer, but is not limited to this. The memory in the embodiments of this application may also be a circuit or any other device capable of implementing storage functions for storing computer programs or instructions, and / or data.
[0499] Optionally, the communication device 1700 may further include a transceiver 1705 and / or an antenna 1706. The transceiver 1705 may be referred to as a transceiver unit, transceiver, or transceiver circuit, etc., and is used to implement transceiver functions. The transceiver 1705 may include a receiver and a transmitter; the receiver may be referred to as a receiver or receiving circuit, etc., and is used to implement a receiving function; the transmitter may be referred to as a transmitter or transmitting circuit, etc., and is used to implement a transmitting function.
[0500] In one possible design, regarding the case where the communication device 1700 is used to implement the functions of the terminal device in the above method embodiments:
[0501] Transceiver 1705 is used to receive a first acoustic signal, which is an acoustic signal obtained by encoding a first sequence. Transceiver 1705 is also used to receive a second acoustic signal, which is used to determine the distance between communication device 1700 and door lock device. If the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between communication device 1700 and door lock device meets a preset condition, transceiver 1705 is also used to transmit a first signal, which is used to determine whether the door lock device is unlocked, and the second sequence matches the first sequence.
[0502] In another possible design, regarding the case where the communication device 1700 is used to implement the function of the door lock device in the above method embodiment:
[0503] Transceiver 1705 is used to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Transceiver 1705 is also used to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device 1700. Transceiver 1705 is also used to receive a first signal, which is transmitted by the terminal device after the sequence obtained by decoding the first acoustic signal matches a second sequence, and the distance between the terminal device and the communication device 1700 meets a preset condition, wherein the second sequence matches the first sequence. Processor 1701 is used to determine whether to unlock based on the first signal.
[0504] In another possible design, regarding the case where the communication device 1700 is used to implement the functions of the terminal device in the above method embodiments:
[0505] Transceiver 1705 is used to receive a first acoustic signal, which is an acoustic signal obtained by encoding a first sequence. Transceiver 1705 is also used to receive a second acoustic signal, which is used to determine the distance between communication device 1700 and door lock device. Transceiver 1705 is also used to transmit a sequence obtained by decoding the first acoustic signal and the distance between communication device 1700 and door lock device. The sequence obtained by decoding the first acoustic signal and the distance between communication device 1700 and door lock device are used in conjunction with a second sequence to determine whether the door lock device is unlocked. The second sequence matches the first sequence.
[0506] In another possible design, regarding the case where the communication device 1700 is used to implement the function of the door lock device in the above method embodiment:
[0507] Transceiver 1705 is used to transmit a first acoustic signal, which is an acoustic signal obtained by encoding a first sequence. Transceiver 1705 is also used to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device 1700. If the sequence obtained by the receiving terminal device from decoding the first acoustic signal matches the second sequence, and the distance between the receiving terminal device and the communication device 1700 meets a preset condition, the processor 1701 determines that the device is unlocked, and the second sequence matches the first sequence.
[0508] In another possible design, regarding the case where the communication device 1700 is used to implement the functions of the terminal device in the above method embodiments:
[0509] Transceiver 1705 is used to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Transceiver 1705 is also used to receive a second acoustic signal, which is used to determine the distance between communication device 1700 and door lock device. Transceiver 1705 is also used to transmit a second signal, indicating the distance between communication device 1700 and door lock device. The second signal indicates that the sequence obtained by decoding the first acoustic signal matches the second sequence. The second signal and the distance between communication device 1700 and door lock device are used to determine whether the door lock device is unlocked, and the second sequence matches the first sequence.
[0510] In another possible design, regarding the case where the communication device 1700 is used to implement the function of the door lock device in the above method embodiment:
[0511] Transceiver 1705 is used to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Transceiver 1705 is also used to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device 1700. Upon receiving the second signal, and if the distance between the receiving terminal device and the communication device 1700 meets a preset condition, processor 1701 is used to determine unlocking, whereby the second signal indicates that the sequence obtained by decoding the first acoustic signal matches the second sequence, and the second sequence matches the first sequence.
[0512] In another possible design, regarding the case where the communication device 1700 is used to implement the functions of the terminal device in the above method embodiments:
[0513] Transceiver 1705 is used to receive a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Transceiver 1705 is also used to receive a second acoustic signal, which is used to determine the distance between communication device 1700 and door lock device. Transceiver 1705 is also used to transmit a sequence obtained by decoding the first acoustic signal and a third signal. The third signal is used to indicate that the distance between communication device 1700 and door lock device meets a preset condition. The sequence obtained by decoding the first acoustic signal and the third signal are combined with a second sequence to determine whether the door lock device is unlocked. The second sequence matches the first sequence.
[0514] In another possible design, regarding the case where the communication device 1700 is used to implement the function of the door lock device in the above method embodiment:
[0515] Transceiver 1705 is used to transmit a first acoustic signal, which is an acoustic signal obtained based on a first sequence encoding. Transceiver 1705 is also used to transmit a second acoustic signal, which is used to determine the distance between the terminal device and the communication device 1700. If the sequence obtained by the receiving terminal device from decoding the first acoustic signal matches the second sequence, and a third signal is received, processor 1701 is used to determine unlocking. The third signal indicates that the distance between the terminal device and the communication device 1700 meets a preset condition, and that the second sequence matches the first sequence.
[0516] In another possible design, the processor 1701 may include a transceiver for implementing receive and transmit functions. For example, the transceiver may be a transceiver circuit, an interface, or an interface circuit. The transceiver circuit, interface, or interface circuit for implementing receive and transmit functions may be separate or integrated. The aforementioned transceiver circuit, interface, or interface circuit may be used for reading and writing code / data, or for transmitting or relaying signals.
[0517] In another possible design, the processor 1701 may optionally store instructions 1703, which, when executed on the processor 1701, cause the communication device 1700 to perform the methods described in the above method embodiments. Instructions 1703 may be embedded in the processor 1701; in this case, the processor 1701 may be implemented in hardware.
[0518] In another possible design, the communication device 1700 may include circuitry that can perform the functions of transmitting, receiving, or communicating as described in the foregoing method embodiments. The processor and transceiver described in this application embodiment can be implemented on integrated circuits (ICs), analog ICs, radio frequency integrated circuits (RFICs), mixed-signal ICs, application-specific integrated circuits (ASICs), printed circuit boards (PCBs), electronic devices, etc. The processor and transceiver can also be manufactured using various IC process technologies, such as complementary metal-oxide semiconductors (CMOS), n-metal-oxide-semiconductor (NMOS), positive-channel metal-oxide semiconductors (PMOS), bipolar junction transistors (BJTs), bipolar CMOS (BiCMOS), silicon-germanium (SiGe), gallium arsenide (GaAs), etc.
[0519] Those skilled in the art will also understand that the various illustrative logical blocks and steps listed in the embodiments of this application can be implemented by electronic hardware, computer software, or a combination of both. Whether such functionality is implemented through hardware or software depends on the specific application and the overall system design requirements. Those skilled in the art can use various methods to implement the described functionality for a specific application, but such implementation should not be construed as exceeding the scope of protection of the embodiments of this application.
[0520] The embodiments of this application and the above-described method embodiments are based on the same concept and have the same technical effects. For the specific principles, please refer to the description in the above-described method embodiments, which will not be repeated here.
[0521] This application also provides a computer-readable storage medium for storing computer software instructions that, when executed by a communication device, implement the functions of any of the above method embodiments.
[0522] This application also provides a computer program product for storing computer software instructions, which, when executed by a communication device, implement the functions of any of the above method embodiments.
[0523] This application also provides a computer program that, when run on a computer, implements the functions of any of the above method embodiments.
[0524] This application also provides a chip including a processor. The processor is used to execute code or instructions to implement the functions of any of the above method embodiments. Optionally, the chip further includes an interface, and the processor is coupled to the interface, which is used to receive or output signals.
[0525] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVDs)), or semiconductor media (e.g., SSDs), etc.
[0526] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0527] Furthermore, unless otherwise specified or logically conflicting, the terminology and / or descriptions of different embodiments are consistent and can be referenced by each other. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0528] It is understood that some optional features in the various embodiments of this application may not depend on other features in certain scenarios, or may be combined with other features in certain scenarios, without limitation.
[0529] It is understood that the solutions in the embodiments of this application can be used in combination, and the explanations or descriptions of various terms, similar operations or steps appearing in the embodiments can be referenced or explained to each other in the various embodiments, and this application does not limit them.
[0530] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist simultaneously, or B exists alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, and c can mean: a, or, b, or, c, or, a and b, or, a and c, or, b and c, or, a, b, and c. Here, a, b, and c can each be single or multiple.
[0531] In this application, the terms "first," "second," and various numerical designations are used for ease of description and are not intended to limit the scope of the embodiments of this application. For example, they may be used to distinguish different messages, rather than to describe a specific order or sequence. It should be understood that such descriptions can be interchanged where appropriate to describe solutions other than those described in this application.
[0532] In this application, the terms “comprising” and “having”, and any variations thereof, are intended to cover non-exclusive inclusion, such that a process, method, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those steps or units that are explicitly listed, but may include other steps or units that are not explicitly listed or that are inherent to such process, method, product, or apparatus.
[0533] In this application, "for indicating" can include both direct and indirect indication. When describing an indication message as indicating A, it can include whether the indication message directly indicates A or indirectly indicates A, but does not necessarily mean that the indication message carries A.
[0534] In this application, "sending information to XX (device / network element)" can be understood as the destination of the information being that device / network element. This can include sending information directly or indirectly to that device / network element. "Receiving information from XX (device / network element), or receiving information from XX (device / network element)" can be understood as the source of the information being that device / network element. This can include receiving information directly or indirectly from that device / network element. Information may undergo necessary processing between the source and destination, such as format changes, but the destination can understand the valid information from the source.
[0535] In this application, the terms "exemplary," "for example," or "example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary," "for example," or "example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of terms such as "exemplary," "for example," or "example" is intended to present the relevant concepts in a specific manner to facilitate understanding.
Claims
1. A communication method, characterized in that, Applied to a terminal device, the method includes: Receive a first acoustic signal, wherein the first acoustic signal is an acoustic signal obtained based on a first sequence encoding; Receive a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device; When the sequence obtained by decoding the first acoustic signal matches the second sequence, and the distance between the terminal device and the door lock device meets a preset condition, a first signal is sent. The first signal is used to determine whether the door lock device is unlocked, and the second sequence matches the first sequence.
2. The method according to claim 1, characterized in that, The first signal is used to instruct the door lock device to unlock; or, The first signal is a third acoustic signal, which is an acoustic signal obtained by encoding a third sequence. The third sequence is matched with a fourth sequence. The third acoustic signal is used to determine unlocking when the sequence obtained by the door lock device decoding the third acoustic signal matches the fourth sequence.
3. A communication method, characterized in that, Applied to a terminal device, the method includes: Receive a first acoustic signal, wherein the first acoustic signal is an acoustic signal obtained based on a first sequence encoding; Receive a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device; The sequence obtained by decoding the first acoustic signal and the distance between the terminal device and the door lock device are sent. The sequence obtained by decoding the first acoustic signal and the distance between the terminal device and the door lock device are used to determine whether the door lock device is unlocked by combining a second sequence, wherein the second sequence matches the first sequence.
4. A communication method, characterized in that, Applied to a terminal device, the method includes: Receive a first acoustic signal, wherein the first acoustic signal is an acoustic signal obtained based on a first sequence encoding; Receive a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device; The system sends a second signal and the distance between the terminal device and the door lock device. The second signal is used to indicate whether the sequence obtained by decoding the first sound wave signal matches the second sequence. The second signal and the distance between the terminal device and the door lock device are used to determine whether the door lock device is unlocked. The second sequence matches the first sequence.
5. A communication method, characterized in that, Applied to a terminal device, the method includes: Receive a first acoustic signal, wherein the first acoustic signal is an acoustic signal obtained based on a first sequence encoding; Receive a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device; The device sends a sequence obtained by decoding the first acoustic signal and a third signal. The third signal is used to indicate that the distance between the terminal device and the door lock device meets a preset condition. The sequence obtained by decoding the first acoustic signal and the third signal are used in combination with a second sequence to determine whether the door lock device is unlocked. The second sequence matches the first sequence.
6. The method according to claim 1, 2, or 5, characterized in that, The preset condition is that the distance between the terminal device and the door lock device is less than a first value; or... The preset condition is that the distance between the terminal device and the door lock device is decreasing.
7. The method according to claim 1, 2, or 4, characterized in that, The method further includes: If the sequence obtained by decoding the first acoustic signal does not match the second sequence, and the number of times the first acoustic signal is decoded is less than or equal to the second value, then the first acoustic signal received again is decoded.
8. The method according to any one of claims 1 to 7, characterized in that, Before receiving the first acoustic signal, the method further includes: When the terminal device is successfully connected to the door lock device, a fourth signal is sent, which is used to instruct the door lock device to send an acoustic signal.
9. The method according to claim 8, characterized in that, The method further includes: Receive a response signal corresponding to the fourth signal, the response signal carrying the second sequence, the second sequence being generated by the door lock device when the terminal device and the door lock device are successfully connected.
10. The method according to any one of claims 1 to 8, characterized in that, The method further includes: The second sequence is received, which is generated by the door lock device when the terminal device is bound to the door lock device.
11. The method according to claim 1, 2, 4, or 7, characterized in that, Before receiving the second acoustic signal, the method further includes: If the sequence obtained by decoding the first acoustic signal matches the second sequence, a fifth signal is sent, which instructs the door lock device to send an acoustic signal for ranging.
12. A communication method, characterized in that, Applied to door lock devices, the method includes: Send a first acoustic signal, the first acoustic signal being an acoustic signal obtained based on a first sequence encoding; Send a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device; The terminal device receives a first signal, which is sent when the sequence obtained by decoding the first sound wave signal matches a second sequence, and the distance between the terminal device and the door lock device meets a preset condition. The second sequence matches the first sequence. Based on the first signal, determine whether to unlock.
13. The method according to claim 12, characterized in that, The first signal is used to instruct the door lock device to unlock; Determining whether to unlock based on the first signal includes: determining whether to unlock based on the first signal.
14. The method according to claim 12, characterized in that, The first signal is a third acoustic signal, which is an acoustic signal obtained by encoding a third sequence, and the third sequence is matched with a fourth sequence; The step of determining whether to unlock based on the first signal includes: determining unlock if the sequence obtained by decoding the third acoustic signal matches the fourth sequence.
15. The method according to claim 14, characterized in that, The method further includes: If the sequence obtained by decoding the third acoustic signal does not match the fourth sequence, and the number of times the third acoustic signal is decoded is less than or equal to the third value, the third acoustic signal received again is decoded.
16. A communication method, characterized in that, Applied to door lock devices, the method includes: Send a first acoustic signal, the first acoustic signal being an acoustic signal obtained based on a first sequence encoding; Send a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device; If the sequence obtained by the receiving terminal device from decoding the first acoustic signal matches the second sequence, and the distance between the receiving terminal device and the door lock device meets a preset condition, then unlocking is determined, and the second sequence matches the first sequence.
17. A communication method, characterized in that, Applied to door lock devices, the method includes: Send a first acoustic signal, the first acoustic signal being an acoustic signal obtained based on a first sequence encoding; Send a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device; Upon receiving the second signal and if the distance between the receiving terminal device and the door lock device meets a preset condition, the lock is determined to be unlocked. The second signal is used to indicate that the sequence obtained by decoding the first sound wave signal matches the second sequence, and the second sequence matches the first sequence.
18. A communication method, characterized in that, Applied to door lock devices, the method includes: Send a first acoustic signal, the first acoustic signal being an acoustic signal obtained based on a first sequence encoding; Send a second acoustic signal, which is used to determine the distance between the terminal device and the door lock device; If the sequence obtained by the terminal device from decoding the first acoustic signal matches the second sequence, and a third signal is received, the lock is determined to be unlocked. The third signal is used to indicate that the distance between the terminal device and the door lock device meets a preset condition, and the second sequence matches the first sequence.
19. The method according to any one of claims 12 to 18, characterized in that, The preset condition is that the distance between the terminal device and the door lock device is less than a first value; or... The preset condition is that the distance between the terminal device and the door lock device is decreasing.
20. The method according to any one of claims 12 to 19, characterized in that, The door lock device includes a sensor; the sending of the first acoustic signal includes: If the terminal device is detected by the sensor, the first acoustic signal is sent.
21. The method according to any one of claims 12 to 20, characterized in that, Before sending the first acoustic signal, the method further includes: A fourth signal is received, which instructs the door lock device to send an acoustic signal.
22. The method according to claim 21, characterized in that, The method further includes: If the door lock device and the terminal device are successfully connected, the first sequence and the second sequence are generated. A response signal corresponding to the fourth signal is sent, the response signal carrying the second sequence.
23. The method according to any one of claims 12 to 21, characterized in that, The method further includes: When the door lock device is bound to the terminal device, the first sequence and the second sequence are generated; Send the second sequence.
24. The method according to any one of claims 12 to 15, 17, characterized in that, Before sending the second acoustic signal, the method further includes: A fifth signal is received, which instructs the door lock device to send an acoustic signal for distance measurement.
25. A communication device, characterized in that, The apparatus includes modules or units for implementing the method of any one of claims 1, 2, 6 to 10, or includes modules or units for implementing the method of any one of claims 3, 8 to 10, or includes modules or units for implementing the method of any one of claims 4, 7 to 11, or includes modules or units for implementing the method of any one of claims 5, 6, 8 to 10, or includes modules or units for implementing the method of any one of claims 12 to 15, 19 to 24, or includes modules or units for implementing the method of any one of claims 16, 19 to 23, or includes modules or units for implementing the method of any one of claims 17, 19 to 24, or includes modules or units for implementing the method of any one of claims 18 to 23.
26. A communication device, characterized in that, Includes at least one processor; The processor is configured to, by executing a computer program or instructions stored in a memory, and / or by using logic circuitry, cause the communication device to perform the method of any one of claims 1, 2, 6 to 10, or to perform the method of any one of claims 3, 8 to 10, or to perform the method of any one of claims 4, 7 to 11, or to perform the method of any one of claims 5, 6, 8 to 10, or to perform the method of any one of claims 12 to 15, 19 to 24, or to perform the method of any one of claims 16, 19 to 23, or to perform the method of any one of claims 17, 19 to 24, or to perform the method of any one of claims 18 to 23.
27. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed, causes the method as described in any one of claims 1, 2, 6 to 10 to be performed, or causes the method as described in any one of claims 3, 8 to 10 to be performed, or causes the method as described in any one of claims 4, 7 to 11 to be performed, or causes the method as described in any one of claims 5, 6, 8 to 10 to be performed, or causes the method as described in any one of claims 12 to 15, 19 to 24 to be performed, or causes the method as described in any one of claims 16, 19 to 23 to be performed, or causes the method as described in any one of claims 17, 19 to 24 to be performed, or causes the method as described in any one of claims 18 to 23 to be performed.
28. A computer program product, the computer program product comprising: Computer program code that, when executed, causes the method as described in any one of claims 1, 2, 6 to 10 to be performed, or causes the method as described in any one of claims 3, 8 to 10 to be performed, or causes the method as described in any one of claims 4, 7 to 11 to be performed, or causes the method as described in any one of claims 5, 6, 8 to 10 to be performed, or causes the method as described in any one of claims 12 to 15, 19 to 24 to be performed, or causes the method as described in any one of claims 16, 19 to 23 to be performed, or causes the method as described in any one of claims 17, 19 to 24 to be performed, or causes the method as described in any one of claims 18 to 23 to be performed.