IP Library Granted Patent US 12663539
Granted Patent B2
US 12663539 · App. 18/262,801 · Granted Jun 23, 2026

Method for interaction between devices, position determining method, electronic device, and chip system

Inventors: Qi Wang (Shenzhen, CN); Jianhui Li (Shenzhen, CN); Yuxing Wang (Hangzhou, CN); Zhenguo Du (Shenzhen, CN)
Assignee: Huawei Technologies Co., Ltd.
G01S15/104
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12663539
App. No.
18/262,801
Granted
Jun 23, 2026
Kind
B2
Abstract

Methods, electronic devices, and chip systems relating to interaction between devices are provided. A method includes: a first electronic device sends a first sound wave signal and a second sound wave signal to a second electronic device by using a first speaker and a second speaker. The first electronic device receives relative position information between the second electronic device and the first electronic device sent by the second electronic device. The relative position information is determined by a receiving result of receiving the first sound wave signal and the second sound wave signal by a first microphone of the second electronic device.

Claims (60)

1 . A method for interaction between devices, comprising:

receiving, by a second electronic device, a first sound wave signal sent by a first electronic device by using a first speaker;

receiving, by the second electronic device, a second sound wave signal sent by the first electronic device by using a second speaker; and

determining, by the second electronic device, a relative position between the second electronic device and the first electronic device based on a time difference between first moment and a second moment, a distance between the first speaker and the second speaker, and a sampling frequency of a microphone of the second electronic device, wherein the first moment is a moment at which the second electronic device receives the first sound wave signal, the second moment is a moment at which the second electronic device receives the second sound wave signal, and wherein the time difference is determined based on a difference between quantities of sampling points at which the microphone of the second electronic device samples the first sound wave signal and the second sound wave signal, wherein the difference between quantities of sampling points is calculated by performing correlation calculation on the first sound wave signal and the second sound wave signal after converting the first sound wave signal and the second sound wave signal to a same frequency band, and wherein the relative position is determined by comparing the difference between quantities of sampling points with a preset sampling point value that is positively correlated with the distance between the first speaker and the second speaker and the sampling frequency of the microphone.

2 . The method according to claim 1 , wherein the first speaker is located on a first side of the second speaker, the second speaker is located on a second side of the first speaker, the first side is a left side or a right side, the second side is a side opposite to the first side, and the determining relative position between the second electronic device and the first electronic device based on the first moment and the second moment comprises:

determining that the second electronic device is located on a second side of the first electronic device when the difference between the first moment and the second moment is greater than or equal to a first threshold, wherein the first threshold is a positive number; or

determining that the second electronic device is located on a first side of the first electronic device when the difference between the first moment and the second moment is less than or equal to a second threshold, wherein the second threshold is a negative number; or

determining that the second electronic device is located on the front side or the rear side of the first electronic device when the difference between the first moment and the second moment is less than a first threshold and greater than a second threshold.

3 . The method according to claim 1 , wherein the first sound wave signal is sent by the first speaker at a third moment,

the second sound wave signal is sent by the second speaker at a fourth moment,

a difference between the third moment and the fourth moment is a first time difference, and

the second moment is determined after the second sound wave signal is moved leftward by the first time difference.

4 . The method according to claim 1 , wherein after the determining relative position between the second electronic device and the first electronic device, the method further comprises:

sending, by the second electronic device, information of the relative position to the first electronic device.

5 . A method for interaction between devices comprising:

sending, by a first electronic device, a first sound wave signal by using a first speaker;

sending, by the first electronic device, a second sound wave signal by using a second speaker, wherein the first sound wave signal and the second sound wave signal are used to determine relative position information between second electronic devices and the first electronic device;

receiving, by the first electronic device, the relative position information between a second electronic device and the first electronic device sent by the second electronic device, wherein the relative position information is determined based on a time difference between first moment and a second moment, a distance between the first speaker and the second speaker, and a sampling frequency of a microphone of the second electronic device, wherein the first moment is a moment at which the second electronic device receives the first sound wave signal, the second moment is a moment at which the second electronic device receives the second sound wave signal, and wherein the time difference is determined based on a difference between quantities of sampling points at which the microphone of the second electronic device samples the first sound wave signal and the second sound wave signal, wherein the difference between quantities of sampling points is calculated by performing correlation calculation on the first sound wave signal and the second sound wave signal after converting the first sound wave signal and the second sound wave signal to a same frequency band, and wherein the relative position is determined by comparing the difference between quantities of sampling points with a preset sampling point value that is positively correlated with the distance between the first speaker and the second speaker and the sampling frequency of the microphone; and

interacting, by the first electronic device with the second electronic device based on the relative position information.

6 . The method according to claim 5 , wherein the sending a first sound wave signal by using a first speaker comprises sending the first sound wave signal at a third moment by using the first speaker; and

the sending a second sound wave signal by using a second speaker comprises: sending the second sound wave signal at a fourth moment by using the second speaker, wherein a time difference between the third moment and the fourth moment is a first time difference for determining a receiving moment at which the second electronic device receives the second sound wave signal.

7 . The method according to claim 5 , wherein the interacting with the second electronic device based on the relative position information comprises:

detecting, by the first electronic device, a first operation for first target content displayed by the first electronic device;

determining, by the first electronic device, whether the first operation corresponds to the relative position information; and

sending, by the first electronic device, the first target content to a display interface of the second electronic device for display when the first operation corresponds to the relative position information.

8 . The method according to claim 5 , wherein the second electronic devices comprise a second electronic device located on the left side of the first electronic device and a second electronic device located on the right side of the first electronic device, and the interacting with the second electronic device based on the relative position information comprises:

detecting, by the first electronic device, a second operation for first target content displayed by the first electronic device; and

sending, by the first electronic device, the first target content to a display interface of the second electronic device located on the left side of the first electronic device for display when the second operation is an operation of extending the first target content leftward; or

sending, by the first electronic device, the first target content to a display interface of the second electronic device located on the right side of the first electronic device for display when the second operation is an operation of extending the first target content rightward.

9 . The method according to claim 5 , wherein the method further comprises:

after a position of the first electronic device changes or a position of the second electronic device changes, re-determining the relative position information between the first electronic device and the second electronic device.

10 . The method according to claim 5 , wherein the first sound wave signal and the second sound wave signal are sound wave signals on different frequency bands; or

the first sound wave signal and the second sound wave signal are sound wave signals of different orthogonal sequences.

11 . The method according to claim 5 , wherein the distance between the first speaker and the second speaker is greater than 20 cm.

12 . An electronic device, comprising one or more processors, a memory, and a display, wherein

the memory and the display are coupled to the one or more processors, the memory stores computer program code for execution by the one or more processors to perform operations comprising:

receiving a first sound wave signal sent by a first electronic device by using a first speaker;

receiving a second sound wave signal sent by the first electronic device by using a second speaker, wherein the first speaker is different from the second speaker; and

determining a relative position between the second electronic device and the first electronic device based on a time difference between first moment and a second moment, a distance between the first speaker and the second speaker, and a sampling frequency of a microphone of the second electronic device, wherein the first moment is a moment at which the second electronic device receives the first sound wave signal, the second moment is a moment at which the second electronic device receives the second sound wave signal, and wherein the time difference is determined based on a difference between quantities of sampling points at which the microphone of the second electronic device samples the first sound wave signal and the second sound wave signal, wherein the difference between quantities of sampling points is calculated by performing correlation calculation on the first sound wave signal and the second sound wave signal after converting the first sound wave signal and the second sound wave signal to a same frequency band, and wherein the relative position is determined by comparing the difference between quantities of sampling points with a preset sampling point value that is positively correlated with the distance between the first speaker and the second speaker and the sampling frequency of the microphone.

13 . The electronic device according to claim 12 , wherein the first speaker is located on a first side of the second speaker, the second speaker is located on a second side of the first speaker, the first side is a left side or a right side, the second side is a side opposite to the first side, and the determining relative position between the second electronic device and the first electronic device based on the first moment and the second moment comprises:

determining that the second electronic device is located on a second side of the first electronic device when the difference between the first moment and the second moment is greater than or equal to a first threshold, wherein the first threshold is a positive number; or

determining that the second electronic device is located on a first side of the first electronic device when the difference between the first moment and the second moment is less than or equal to a second threshold, wherein the second threshold is a negative number; or

determining that the second electronic device is located on the front side or the rear side of the first electronic device when the difference between the first moment and the second moment is less than a first threshold and greater than a second threshold.

14 . The electronic device according to claim 12 , wherein the first sound wave signal is sent by the first speaker at a third moment,

the second sound wave signal is sent by the second speaker at a fourth moment,

a difference between the third moment and the fourth moment is a first time difference, and

the second moment is determined after the second sound wave signal is moved leftward by the first time difference.

15 . The electronic device according to claim 12 , wherein after the determining relative position between the second electronic device and the first electronic device, the electronic device is further enabled to perform:

sending information of the relative position to the first electronic device.

16 . The method according to claim 2 , wherein after the determining relative position between the second electronic device and the first electronic device, the method further comprises:

sending information of the relative position to the first electronic device.

17 . The method according to claim 5 , wherein the method further comprises:

after a position of the first electronic device changes and a position of the second electronic device changes, re-determining the relative position information between the first electronic device and the second electronic device.

18 . The method according to claim 6 , wherein

the first sound wave signal and the second sound wave signal are sound wave signals on different frequency bands; or

the first sound wave signal and the second sound wave signal are sound wave signals of different orthogonal sequences.

19 . The method according to claim 7 , wherein

the first sound wave signal and the second sound wave signal are sound wave signals on different frequency bands; or

the first sound wave signal and the second sound wave signal are sound wave signals of different orthogonal sequences.

20 . The method according to claim 6 , wherein the distance between the first speaker and the second speaker is greater than 20 cm.