Ultrasonic Wave-Based Device Connection Method and Related Apparatus
Abstract
An ultrasonic wave-based device connection method includes a first electronic device that sends ultrasonic signals that carry detection information and that are in different bands, and obtains decoded information that is obtained by decoding each ultrasonic signal and that is fed back by a second electronic device. Detection information corresponding to each of the ultrasonic signals is compared with the decoded information to determine a target band in which the second electronic device decodes an ultrasonic wave, and then connection information is sent using an ultrasonic wave in the target band such that the second electronic device establishes a connection to the first electronic device based on the connection information.
Claims
exact text as granted — not AI-modified1 . An method implemented by a first electronic device, the method comprising:
sending a detection signal comprising first ultrasonic signals, wherein the first ultrasonic signals are in a one-to-one correspondence with different bands, and wherein each of the first ultrasonic signals comprises corresponding detection information; receiving, from a second electronic device, a feedback message comprising decoded information that is based on decoding each of the first ultrasonic signals; determining a target band from the different bands based on the detection information and the decoded information; and sending a target ultrasonic signal in the target band, wherein the target ultrasonic signal comprises connection information to establish a connection between the second electronic device and the first electronic device.
2 . The method of claim 1 , further comprising obtaining the detection signal by superimposing the first ultrasonic signals.
3 . The method of claim 1 , wherein the target band comprises a plurality of subbands, wherein the method further comprises obtaining the target ultrasonic signal by superimposing a plurality of second ultrasonic signals in different subbands, and wherein each of the second ultrasonic signals carries a part of the connection information.
4 . The method of claim 1 , wherein before sending the detection signal, the method further comprises receiving a broadcast message instructing the first electronic device to send the detection signal.
5 . The method of claim 4 , wherein the broadcast message comprises device information of the second electronic device and, wherein the method further comprises storing a mapping relationship between the device information and the target band.
6 . The method of claim 5 , further comprising sending the mapping relationship to a server.
7 . The method of claim 1 , further comprising:
obtaining a reverberation time of an environment in which the first electronic device is located; and determining, based on the reverberation time, a duration of a waveform that is in the detection signal and that represents each character in the detection information.
8 . The method of claim 1 , further comprising:
sequentially sending second ultrasonic signals carrying third detection information with gradually changing bands when the detection information differs from the decoded information; and receiving, from the second electronic device, third decoded information for the second ultrasonic signals until the third decoded information matches the third detection information.
9 . The method of claim 1 , further comprising using the connection to perform screen projection or join a conference.
10 . The method of claim 1 , wherein the different bands are non-overlapping.
11 . The method of claim 1 , wherein the connection information comprises a projection code, a pairing key, a conference number, or an Internet Protocol (IP) address of the first electronic device.
12 . A first electronic device comprising:
a memory configured to store instructions; and one or more processors coupled to the memory, wherein when executed by the one or more processors, the instructions cause the first electronic device to:
send a detection signal comprising first ultrasonic signals, wherein the first ultrasonic signals are in a one-to-one correspondence with different bands, and wherein each of the first ultrasonic signals comprises corresponding detection information;
receive, from a second electronic device, a feedback message comprising decoded information that is based on decoding each of the first ultrasonic signals;
determine a target band from the different bands based on the detection information and the decoded information; and
send a target ultrasonic signal in the target band,
wherein the target ultrasonic signal carries connection information to establish a connection between the second electronic device and the first electronic device.
13 . The first electronic device of claim 12 , wherein when executed by the one or more processors, the instructions further cause the first electronic device to obtain the detection signal by superimposing the first ultrasonic signals.
14 . The first electronic device of claim 12 , wherein the target band comprises a plurality of subbands, wherein when executed by the one or more processors, the instructions further cause the first electronic device to obtain the target ultrasonic signal by superimposing a plurality of second ultrasonic signals in different subbands, and wherein each of the second ultrasonic signals carries a part of the connection information.
15 . The first electronic device of claim 12 , wherein before sending the detection signal, when executed by the one or more processors, the instructions further cause the first electronic device to receive a broadcast message instructing the first electronic device to send the detection signal.
16 . A non-transitory computer-readable storage medium storing instructions that, when executed by one or more processors, cause a first electronic device to:
send a detection signal comprising first ultrasonic signals, wherein the first ultrasonic signals are in a one-to-one correspondence with different bands, and wherein each of the first ultrasonic signals comprises corresponding detection information; receive, from a second electronic device, a feedback message comprising decoded information that is based on decoding each of the first ultrasonic signals; determine a target band from the different bands based on the detection information and the decoded information; and send a target ultrasonic signal in the target band, wherein the target ultrasonic signal carries connection information to establish a connection between the second electronic device and the first electronic device.
17 . The non-transitory computer-readable storage medium of claim 16 , wherein when executed by the one or more processors, the instructions further cause the first electronic device to obtain the detection signal by superimposing the first ultrasonic signals.
18 . The non-transitory computer-readable storage medium of claim 16 , wherein the target band comprises a plurality of subbands, wherein when executed by the one or more processors, the instructions further cause the first electronic device to obtain the target ultrasonic signal by superimposing a plurality of second ultrasonic signals in different subbands, and wherein each of the second ultrasonic signals carries a part of the connection information.
19 . A computer program product comprising computer-executable instructions that are stored on a non-transitory computer storage medium and that, when executed by one or more processors, cause a first electronic device to:
send a detection signal comprising first ultrasonic signals, wherein the first ultrasonic signals are in a one-to-one correspondence with different bands, and wherein each of the first ultrasonic signals comprises corresponding detection information; receive, from a second electronic device, a feedback message comprising decoded information that is based on decoding each of the first ultrasonic signals; determine a target band from the different bands based on the detection information and the decoded information; and send a target ultrasonic signal in the target band, wherein the target ultrasonic signal carries connection information to establish a connection between the second electronic device and the first electronic device.
20 . The computer program product of claim 19 , wherein when executed by the one or more processors, the instructions further cause the first electronic device to obtain the detection signal by superimposing the first ultrasonic signals.Join the waitlist — get patent alerts
Track US2026075668A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.