IP Library Granted Patent US 12701361
Granted Patent B2
US 12701361 · App. 18/649,839 · Granted Aug 4, 2026

Method for determining orientation information and electronic device

Inventors: Qi Wang (Shenzhen, CN); Xiaoxian Li (Shenzhen, CN); Zhenguo Du (Shenzhen, CN)
Assignee: Huawei Technologies Co., Ltd.
H04R5/02H04R2205/024
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 12701361
App. No.
18/649,839
Granted
Aug 4, 2026
Kind
B2
Abstract

This application provides a method for determining orientation information and an electronic device. In the method, a first electronic device may determine, based on a received second sequence, whether a device sending a first sequence associated with the second sequence is a second electronic device. If the device sending the first sequence is the second electronic device, the first electronic device may determine orientation information of the second electronic device based on the first sequence. This helps determine an orientation of the second electronic device or an orientation of the first electronic device based on the orientation information, and prevent a user from manually participating in orientation configuration, thereby reducing operation complexity and improving user experience.

Claims (92)

1 . A method for determining orientation information, the method comprising:

receiving, by a first electronic device, N sequences, wherein N is a positive integer greater than 1;

determining, by the first electronic device, a sequence with a best signal quality among the N sequences as a first sequence:

receiving, by the first electronic device, a second sequence, wherein the first sequence is associated with the second sequence;

determining, by the first electronic device, whether a device sending the first sequence is a second electronic device based on the second sequence; and

based on determining that the device sending the first sequence is the second electronic device based on the second sequence, determining, by the first electronic device, orientation information of the second electronic device based on the first sequence.

2 . The method according to claim 1 , wherein the method further comprises:

sending, by the first electronic device, a third sequence to the second electronic device;

wherein the determining whether the device sending the first sequence is the second electronic device comprises:

based on the second sequence being the same as the third sequence, determining that the device sending the first sequence is the second electronic device; and

based on the second sequence being different from the third sequence, determining that the device sending the first sequence is not the second electronic device.

3 . The method according to claim 2 , wherein the sending the third sequence to the second electronic device comprises:

receiving a first operation instruction; and

sending the third sequence to the second electronic device in response to the first operation instruction.

4 . The method according to claim 1 , wherein the method further comprises:

obtaining, by the first electronic device, an identifier of the second electronic device;

wherein the determining whether the device sending the first sequence is the second electronic device comprises:

based on the second sequence being the identifier of the second electronic device, determining that the device sending the first sequence is the second electronic device; and

based on the second sequence being not the identifier of the second electronic device, determining that the device sending the first sequence is not the second electronic device.

5 . The method according to claim 1 , wherein before the receiving the N sequences, the method further comprises:

receiving, by the first electronic device, a third sequence from the second electronic device;

wherein the determining whether the device sending the first sequence is the second electronic device comprises:

based on the second sequence being the same as the third sequence, determining that the device sending the first sequence is the second electronic device; and

based on the second sequence being different from the third sequence, determining that the device sending the first sequence is not the second electronic device.

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

sending, by the first electronic device, a fourth sequence by using a first speaker; and

receiving, by the first electronic device, the fourth sequence by using a first microphone at a first moment;

wherein the determining the orientation information of the second electronic device based on the first sequence comprises:

determining an angle of the second electronic device relative to the first electronic device based on the first sequence;

determining first time information based on a second moment at which the first sequence is received and the first moment, wherein the orientation information comprises the angle of the second electronic device relative to the first electronic device and the first time information; and

sending the orientation information to the second electronic device.

7 . The method according to claim 6 , wherein the method further comprises:

sending, by the first electronic device, the third sequence by using the first speaker, wherein the fourth sequence is associated with the third sequence.

8 . The method according to claim 6 , wherein the method further comprises:

receiving, by the first electronic device, a fifth sequence; and

receiving, by the first electronic device, the second sequence, wherein the fifth sequence is associated with the second sequence;

wherein the determining the angle of the second electronic device relative to the first electronic device based on the first sequence comprises:

based on the third sequence being the same as the second sequence, determining that the device sending the fifth sequence is the second electronic device; and

determining the angle of the second electronic device relative to the first electronic device based on the first sequence and the fifth sequence.

9 . The method according to claim 8 ,

wherein that the first sequence is associated with the second sequence indicates that an interval between a time domain resource for receiving the first sequence and a time domain resource for receiving the second sequence is a first preset time domain interval, and/or an interval between a frequency domain resource for receiving the first sequence and a frequency domain resource for receiving the second sequence is a first preset frequency domain interval; and/or

wherein that the third sequence is associated with the fourth sequence indicates that an interval between a time domain resource for sending the third sequence and a time domain resource for sending the fourth sequence is a second preset time domain interval, and/or an interval between a frequency domain resource for sending the third sequence and a frequency domain resource for sending the fourth sequence is a second preset frequency domain interval; and/or

wherein that the fifth sequence is associated with the second sequence indicates that an interval between a time domain resource for receiving the fifth sequence and a time domain resource for receiving the second sequence is a third preset time domain interval, and/or an interval between a frequency domain resource for receiving the fifth sequence and a frequency domain resource for receiving the second sequence is a third preset frequency domain interval.

10 . The method according claim 1 , wherein the method further comprises:

determining, by the first electronic device, a sound channel of the second electronic device based on the orientation information of the second electronic device, wherein the second electronic device is a sound box; and

sending, by the first electronic device, an audio signal to the second electronic device based on the sound channel of the second electronic device.

11 . The method according to claim 10 , wherein the method further comprises:

receiving, by the first electronic device, a first short-range wireless signal from the second electronic device; and

determining, by the first electronic device based on the first short-range wireless signal and a first ultrasonic signal, whether the second electronic device and the first electronic device are in a same space, wherein the first ultrasonic signal is an ultrasonic signal for sending the first sequence;

wherein the determining the sound channel of the second electronic device based on the orientation information of the second electronic device comprises:

based on the second electronic device and the first electronic device being in the same space, determining the sound channel of the second electronic device based on the orientation information of the second electronic device.

12 . A method for determining orientation information, the method comprising:

sending, by a second electronic device, a first sequence to a first electronic device; and

sending, by the second electronic device, a second sequence to the first electronic device, wherein the first sequence is associated with the second sequence, the second sequence is used by the first electronic device to determine an electronic device sending the first sequence, and the first sequence is used by the first electronic device to determine orientation information of the second electronic device;

wherein the sending the first sequence to the first electronic device comprises:

sending a plurality of first sequences to the first electronic device by using a plurality of speakers, respectively, wherein the plurality of speakers are in one-to-one correspondence with the plurality of first sequences; and

wherein the sending the second sequence to the first electronic device comprises:

sending a plurality of second sequences to the first electronic device by using the plurality of speakers, respectively, wherein the plurality of speakers are in one-to-one correspondence with the plurality of second sequences, wherein a given first sequence and a given second sequence that are sent by using a same speaker of the plurality of speakers are associated.

13 . The method according to claim 12 , wherein before the sending the second sequence to the first electronic device, the method further comprises:

receiving the second sequence from the first electronic device.

14 . The method according to claim 12 ,

wherein the sending the first sequence to the first electronic device comprises:

sending the first sequence by using a second speaker; and

wherein the method further comprises:

receiving, by the second electronic device, the first sequence by using a second microphone at a third moment;

receiving, by the second electronic device, a fourth sequence at a fourth moment;

determining, by the second electronic device, second time information based on the third moment and the fourth moment;

receiving, by the second electronic device, the orientation information of the second electronic device from the first electronic device, wherein the orientation information of the second electronic device comprises an angle of the second electronic device relative to the first electronic device and first time information; and

determining, by the second electronic device, a distance between the second electronic device and the first electronic device based on the first time information and the second time information.

15 . The method according to claim 14 , wherein the method further comprises:

determining, by the second electronic device, a sound channel of the first electronic device based on the distance between the second electronic device and the first electronic device and the angle of the second electronic device relative to the first electronic device, wherein the first electronic device is a sound box; and

sending, by the second electronic device, an audio signal to the first electronic device based on the sound channel of the first electronic device.

16 . The method according to claim 14 , wherein the method further comprises:

receiving, by the second electronic device, a third sequence from the first electronic device, wherein the third sequence associated with the fourth sequence; and

based on the third sequence being the same as the second sequence, determining that the electronic device sending the fourth sequence is the first electronic device.

17 . The method according to claim 16 ,

wherein that the first sequence is associated with the second sequence indicates that an interval between a time domain resource for sending the first sequence and a time domain resource for sending the second sequence is a first preset time domain interval, and/or an interval between a frequency domain resource for sending the first sequence and a frequency domain resource for sending the second sequence is a first preset frequency domain interval; and/or

wherein that the third sequence is associated with the fourth sequence indicates that an interval between a time domain resource for receiving the third sequence and a time domain resource for receiving the fourth sequence is a second preset time domain interval, and/or an interval between a frequency domain resource for receiving the third sequence and a frequency domain resource for receiving the fourth sequence is a second preset frequency domain interval.

18 . A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are run on an electronic device, the electronic device is configured to implement operations comprising:

receiving N sequences, wherein N is a positive integer greater than 1;

determining a sequence with a best signal quality among the N sequences as a first sequence;

receiving a second sequence, wherein the first sequence is associated with the second sequence;

determining, based on the second sequence, whether a device sending the first sequence is a second electronic device; and

based on determining that the device sending the first sequence is the second electronic device, determining orientation information of the second electronic device based on the first sequence.

19 . The computer-readable storage medium according to claim 18 , wherein the operations further comprise:

sending a third sequence to the second electronic device;

wherein the determining, based on the second sequence, whether the device sending the first sequence is the second electronic device comprises:

based on the second sequence being the same as the third sequence, determining that the device sending the first sequence is the second electronic device; and

based on the second sequence being different from the third sequence, determining that the device sending the first sequence is not the second electronic device.

20 . The computer-readable storage medium according to claim 19 , wherein the sending the third sequence to the second electronic device comprises:

receiving a first operation instruction; and

sending the third sequence to the second electronic device in response to the first operation instruction.