A device control method and related devices

Through short-range wireless communication technology, the target device is determined using signal arrival angle (AOA), which solves the problem that smart home devices cannot be coordinated and controlled, and realizes simple coordinated and control between multiple devices, improving user experience.

CN113921002BActive Publication Date: 2025-06-27HUAWEI TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010658726.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-09
Publication Date
2025-06-27
Estimated Expiration
2040-07-09

AI Technical Summary

Technical Problem

Existing smart home devices cannot achieve coordinated control of multiple devices through simple operations, resulting in poor user experience.

Method used

Through the near-range wireless communication technology, the first device determines the signal arrival angle (AOA) of the second device and the third device based on the received message, and then sends a message to the second device to perform a response operation, achieving coordinated control between multiple devices.

Benefits of technology

Through simple operation, coordinated control between multiple devices is achieved, which improves the user experience and avoids the problem of multiple devices responding simultaneously.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113921002B_ABST
    Figure CN113921002B_ABST
Patent Text Reader

Abstract

A device control method is disclosed, characterized in that the method is applied to a communication system, the communication system includes: a first device, a second device, and a third device, and the first device, the second device, and the third device communicate using a short-range wireless communication technology. The method includes: the second device sends a first message; the first message carries the identifier of the second device; the third device sends a second message; the second message carries the identifier of the third device; the first device determines the angle of arrival (AOA) of the signal of the second device based on the received first message; the first device determines the signal AOA of the third device based on the received second message; the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device; the second device performs a response operation in response to the received third message. Embodiments of the present application can achieve coordinated control among multiple devices through simple operations, effectively improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electronic technologies, and in particular, to a device control method and related devices. Background Art

[0002] With the development of technologies, smart home devices have become increasingly popular. When a user wakes up a specific smart home device by voice at home, multiple smart home devices in the home may respond. Since smart home devices cannot truly perceive the user's real intention, precise wake-up and control of multiple devices cannot be achieved. For example, when there are multiple Huawei devices (set-top boxes, speakers, TVs, etc.) at home and the user calls the Huawei device "Xiaoyi, Xiaoyi", all Huawei devices that receive the user's voice command may be woken up and respond, causing trouble to the user. In addition, when the user intends to connect and pair a mobile phone with a specific smart home device, the user needs to perform cumbersome manual operations for multiple smart home devices to complete the pairing.

[0003] In summary, currently, coordinated control of multiple devices cannot be achieved through simple operations, resulting in poor user experience. Summary of the Invention

[0004] The embodiments of this application provide a device control method and related devices, which can achieve coordinated control among multiple devices through simple operations, effectively improving the user experience.

[0005] In a first aspect, this application provides a device control method, which is applied to a communication system. The communication system includes: a first device, a second device, and a third device. The first device, the second device, and the third device communicate using short-range wireless communication technology. The method includes:

[0006] The second device sends a first message; the first message carries the identifier of the second device; the third device sends a second message; the second message carries the identifier of the third device; the first device determines the Angle of Arrival (AOA) of the signal of the second device based on the received first message, and the first device determines the signal AOA of the third device based on the received second message; the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device; the second device performs a response operation in response to the received third message.

[0007] The present application provides a method for data sharing. The first device can respectively obtain the signal AOA of the second device and the signal AOA of the third device according to the messages sent by the second device and the third device. Then, based on the signal AOA of the second device and the signal AOA of the third device, the target device (such as the second device) of the first device can be determined, and the second device can be made to perform a response operation through a third message. In this way, coordinated control among multiple devices can be achieved through simple operations, effectively enhancing the user experience.

[0008] In a possible implementation manner, the second device sending the first message includes: the second device sending the first message in response to a detected voice command; the third device sending the second message includes: the third device sending the second message in response to a detected voice command; the second device performing a response operation in response to the received third message includes: the second device outputting response information in response to the received third message and the voice command. In this way, the second device and the third device can initiate AOA measurement in response to the above voice command, and the target device determined based on the signal AOAs of the second device and the third device can also respond to the above voice command. Therefore, the target device in the second device and the third device can be accurately controlled through simple operations.

[0009] In a possible implementation manner, before the second device sends the first message and before the third device sends the second message, it further includes: the first device sending a fourth message in response to a detected voice instruction, and the fourth message carries the identifier of the first device; the second device sending the first message includes: the second device sending the first message to the first device based on the fourth message; the third device sending the second message includes: the third device sending the second message to the first device based on the fourth message; the second device performing a response operation in response to the received third message includes: the second device outputting response information in response to the received third message and the voice command. In this way, the first device can initiate AOA measurement in response to the above voice command, and the target device determined based on the signal AOAs of the second device and the third device can also respond to the above voice command. Therefore, the target device in the second device and the third device can be accurately controlled through simple operations.

[0010] In a possible implementation, before the second device sends the first message and before the third device sends the second message, it further includes: the first device sends a fourth message in response to a detected first user operation, and the fourth message carries the identifier of the first device; the second device sending the first message includes: the second device sends the first message to the first device based on the fourth message; the third device sending the second message includes: the third device sends the second message to the first device based on the fourth message. In this way, in response to the first user operation, the first device can initiate AOA measurement, and the target device determined based on the AOA of the signals of the second device and the third device can also respond to the above voice command. Therefore, the target device in the second device and the third device can be accurately controlled through simple operations.

[0011] In a possible implementation, the first device determines the angle of arrival (AOA) of the signal of the second device based on the received first message, and the first device determines the AOA of the signal of the third device based on the received second message, including: in response to the received first user operation, the first device determines the AOA of the signal of the second device based on the received first message and determines the AOA of the signal of the third device based on the received second message. In this way, the second device and the third device can initiate AOA measurement at regular intervals. When the first device detects the first user operation, the first device can determine the AOA of the signals of the second device and the third device according to the messages sent by the second device and the third device, and the target device determined based on the AOA of the signals of the second device and the third device can also respond to the above voice command. Therefore, the target device in the second device and the third device can be accurately controlled through simple operations.

[0012] In a possible implementation, before the first device sends a third message to the second device based on the AOA of the signal of the second device and the AOA of the signal of the third device, it further includes: the first device determines the distance of the second device based on the received first message; the first device determines the distance of the third device based on the received second message; the first device sending the third message to the second device based on the AOA of the signal of the second device and the AOA of the signal of the third device includes: the first device sends the third message to the second device based on the AOA of the signal of the second device, the distance of the second device, the AOA of the signal of the third device, and the distance of the third device. In this way, the target device in the second device and the third device can be determined from two dimensions of signal AOA and distance, improving the possibility of accurately controlling the target device among multiple devices.

[0013] In a possible implementation, before the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the first device determines the received signal strength indication (RSSI) of the second device based on the received first message; the first device determines the RSSI of the third device based on the received second message; the first device sending a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device includes: the first device sending a third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, and the RSSI of the third device. In this way, the target device among the second device and the third device can be determined from three dimensions of signal AOA, distance, and RSSI, improving the possibility of accurately controlling the target device in multiple devices.

[0014] In a possible implementation, the first device sending a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device includes: when the first device determines that the device with the signal AOA closest to 0 degrees among the second device and the third device is the second device, the first device sends a third message to the second device. In this way, the target device can be determined according to the signal AOAs of the second device and the third device.

[0015] In a possible implementation, the first device sending a third message to the second device based on the signal AOA of the second device, the distance of the second device, the signal AOA of the third device, and the distance of the third device includes: when the difference between the signal AOAs of the second device and the third device is greater than a first threshold, and the first device determines that the device with the smallest signal AOA among the second device and the third device is the second device, the first device sends a third message to the second device; or when the difference between the signal AOAs of the second device and the third device is less than or equal to a second threshold, and the first device determines that the device with the smallest distance among the second device and the third device is the second device, the first device sends a third message to the second device. In this way, the target device can be determined according to the signal AOAs of the second device and the third device, and the distances of the second device and the third device.

[0016] In a possible implementation, the above-mentioned first device sends a third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, and the RSSI of the third device, including: when the RSSI of the second device is greater than the preset RSSI and the RSSI of the third device is less than or equal to the preset RSSI, the first device sends a third message to the second device; or, when the RSSI of the second device and the RSSI of the third device are both greater than or both less than or equal to the preset RSSI, and the difference between the signal AOAs of the second device and the third device is greater than the first threshold, the first device determines that the device with the smallest signal AOA among the second device and the third device is the second device, and the first device sends a third message to the second device; or, when the RSSI of the second device and the RSSI of the third device are both greater than or both less than or equal to the preset RSSI, and the difference between the signal AOAs of the second device and the third device is less than or equal to the second threshold, the first device determines that the device with the smallest distance among the second device and the third device is the second device, and the first device sends a third message to the second device. In this way, the target device can be determined according to the signal AOAs of the second device and the third device, the distances of the second device and the third device, and the RSSIs of the second device and the third device.

[0017] In a possible implementation, the above-mentioned first device determines the distance of the second device based on the received first message; before the first device determines the distance of the third device based on the received second message, it further includes:

[0018] The first device receives the first message and sends a fifth message to the second device; the second device receives the fifth message and sends a sixth message to the first device; the first device receives the second message and sends a seventh message to the second device; the second device receives the seventh message and sends an eighth message to the first device; the first device determines the distance of the second device based on the received first message; the above-mentioned first device determines the distance of the third device based on the received second message, including: the first device determines the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message; the first device determines the distance of the third device based on the sending and receiving times of the second message, the seventh message, and the eighth message. In this way, determining the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message, and determining the distance of the third device based on the sending and receiving times of the second message, the seventh message, and the eighth message can improve the accuracy of distance measurement.

[0019] In a possible implementation, after the second device receives the fifth message and before sending the sixth message to the first device, it further includes: the first device sends a ninth message to the second device; the second device receives the ninth message; the first device determines the distance of the second device based on the first message, the fifth message, and the sixth message, including: the first device determines the distance of the second device based on the sending and receiving times of the first message, the fifth message, the sixth message, and the ninth message. In this way, determining the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message, and determining the distance of the second device based on the sending and receiving times of the first message, the fifth message, the sixth message, and the ninth message can improve the accuracy of distance measurement.

[0020] In a possible implementation, the above-mentioned sixth message carries the times when the second device sends the first message, receives the fifth message, and sends the sixth message.

[0021] In a possible implementation, the above-mentioned sixth message carries the times when the second device sends the first message, receives the fifth message, receives the ninth message, and sends the sixth message.

[0022] In a possible implementation, before the first device sends the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the fourth device sends a tenth message; the tenth message carries the identifier of the fourth device; the first device determines the signal arrival angle AOA of the fourth device based on the received tenth message; the first device sends the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: the first device sends the third message to the second device based on the signal AOA of the second device, the signal AOA of the third device, and the signal AOA of the fourth device.

[0023] In a possible implementation, before the first device sends the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the first device determines the distance and RSSI of the fourth device based on the received tenth message; the first device sends the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: the first device sends the third message to the second device based on the signal AOA of the second device, the distance of the second device, the signal AOA of the third device, and the distance of the third device.

[0024] In a possible implementation, before the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the first device determines the received signal strength indication (RSSI) of the second device based on the received first message; the first device determines the RSSI of the third device based on the received second message; the first device sends the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: the first device sends the third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, the RSSI of the third device, the distance of the fourth device, and the RSSI of the fourth device.

[0025] In a possible implementation, the first device sends the third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, the RSSI of the third device, the distance of the fourth device, and the RSSI of the fourth device, including: when only the RSSI of the second device among the second device, the third device, and the fourth device is greater than the preset RSSI, the first device sends the third message to the second device; or, when the number of devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device is greater than 1, determine the two devices with the signal AOA closest to the preset angle among the devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device; when the number of devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device is equal to 0, determine the two devices with the signal AOA closest to the preset angle among the second device, the third device, and the fourth device, and when the difference between the signal AOAs of the two devices is greater than the first threshold, determine the device with the smallest signal AOA among the two devices as the second device, and the first device sends the third message to the second device; or, when the number of devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device is greater than 1, determine the two devices with the signal AOA closest to the preset angle among the devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device; when the number of devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device is equal to 0, determine the two devices with the signal AOA closest to the preset angle among the second device, the third device, and the fourth device, and when the difference between the AOAs of the two devices is less than or equal to the second threshold, determine the device with the smallest distance among the two devices as the second device, and the first device sends the third message to the second device.

[0026] Second aspect, the present application provides a data sharing method, including: a first device receives a first message sent by a second device; the first message carries an identifier of the second device; the first device receives a second message sent by a third device; the second message carries an identifier of the third device; the first device determines an angle of arrival (AOA) of a signal of the second device based on the first message; the first device determines an AOA of a signal of the third device based on the second message; the first device sends a third message to the second device based on the AOA of the signal of the second device and the AOA of the signal of the third device; the third message is used to instruct the second device to perform a response operation.

[0027] The present application provides a data sharing method. The first device can respectively obtain the AOA of the signal of the second device and the AOA of the signal of the third device according to the messages sent by the second device and the third device, and then can determine a target device (such as the second device) of the first device based on the AOA of the signal of the second device and the AOA of the signal of the third device, and instruct the second device to perform a response operation through the third message. In this way, coordinated control among multiple devices can be achieved through simple operations, effectively improving the user experience.

[0028] In a possible implementation manner, the above first message is sent by the second device in response to a detected voice command; the second message is sent by the second device in response to a detected voice command; the third message is used to instruct the second device to output response information in response to the voice command. In this way, the second device and the third device can initiate AOA measurement in response to the above voice command, and the target device determined based on the AOAs of the signals of the second device and the third device can also respond to the above voice command. Therefore, the target device in the second device and the third device can be accurately controlled through simple operations.

[0029] In a possible implementation manner, before the first device receives the first message sent by the second device and before the first device receives the second message sent by the third device, it further includes: the first device sends a fourth message in response to the detected voice command, and the fourth message carries an identifier of the first device; the first message is sent by the second device based on the fourth message; the second message is sent by the third device based on the fourth message; the third message is used to instruct the second device to output response information in response to the voice command. In this way, the first device can initiate AOA measurement in response to the above voice command, and the target device determined based on the AOAs of the signals of the second device and the third device can also respond to the above voice command. Therefore, the target device in the second device and the third device can be accurately controlled through simple operations.

[0030] In a possible implementation, before the first device receives the first message sent by the second device and before the first device receives the second message sent by the third device, it further includes: the first device sends a fourth message in response to a detected first user operation, and the fourth message carries the identifier of the first device; the first message is sent by the second device based on the fourth message; the second message is sent by the third device based on the fourth message. In this way, in response to the first user operation, the first device can initiate AOA measurement, and the target device determined based on the AOAs of the signals of the second device and the third device can also respond to the above voice command. Therefore, the target device in the second device and the third device can be accurately controlled through simple operations.

[0031] In a possible implementation, the first device determines the angle of arrival (AOA) of the signal of the second device based on the first message; the first device determines the AOA of the signal of the third device based on the second message, including: in response to the received first user operation, the first device determines the AOA of the signal of the second device based on the first message and determines the AOA of the signal of the third device based on the second message. In this way, the second device and the third device can initiate AOA measurement at regular intervals. When the first device detects the first user operation, the first device can determine the AOAs of the signals of the second device and the third device according to the messages sent by the second device and the third device, and the target device determined based on the AOAs of the signals of the second device and the third device can also respond to the above voice command. Therefore, the target device in the second device and the third device can be accurately controlled through simple operations.

[0032] In a possible implementation, before the first device sends a third message to the second device based on the AOA of the signal of the second device and the AOA of the signal of the third device, it further includes: the first device determines the distance of the second device based on the first message; the first device determines the distance of the third device based on the second message; the first device sends a third message to the second device based on the AOA of the signal of the second device and the AOA of the signal of the third device, including: the first device sends a third message to the second device based on the AOA of the signal of the second device, the distance of the second device, the AOA of the signal of the third device, and the distance of the third device. In this way, the target device in the second device and the third device can be determined from two dimensions of signal AOA and distance, which increases the possibility of accurately controlling the target device among multiple devices.

[0033] In a possible implementation, before the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the first device determines the received signal strength indication (RSSI) of the second device based on the first message; the first device determines the RSSI of the third device based on the second message; the first device sends the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: the first device sends the third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, and the RSSI of the third device. In this way, the target device among the second device and the third device can be determined from three dimensions of signal AOA, distance, and RSSI, improving the possibility of accurately controlling the target device in multiple devices.

[0034] In a possible implementation, the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: when the first device determines that the device with the signal AOA closest to 0 degrees among the second device and the third device is the second device, the first device sends the third message to the second device. In this way, the target device can be determined according to the signal AOA of the second device and the third device.

[0035] In a possible implementation, the first device sends a third message to the second device based on the signal AOA of the second device, the distance of the second device, the signal AOA of the third device, and the distance of the third device, including: when the difference between the signal AOA of the second device and the signal AOA of the third device is greater than a first threshold, and the first device determines that the device with the smallest signal AOA among the second device and the third device is the second device, the first device sends the third message to the second device; or when the difference between the signal AOA of the second device and the signal AOA of the third device is less than or equal to a second threshold, and the first device determines that the device with the smallest distance among the second device and the third device is the second device, the first device sends the third message to the second device. In this way, the target device can be determined according to the signal AOA of the second device and the third device, and the distance between the second device and the third device.

[0036] In a possible implementation, the above-mentioned first device sends a third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, and the RSSI of the third device, including: when the RSSI of the second device is greater than a preset RSSI and the RSSI of the third device is less than or equal to the preset RSSI, sending the third message to the second device; or, when the RSSIs of both the second device and the third device are greater than or both are less than or equal to the preset RSSI and the difference in the signal AOAs of the second device and the third device is greater than a first threshold, the first device determines that the device with the smallest signal AOA among the second device and the third device is the second device and sends the third message to the second device; or, when the RSSIs of both the second device and the third device are greater than or both are less than or equal to the preset RSSI and the difference in the signal AOAs of the second device and the third device is less than or equal to a second threshold, the first device determines that the device with the smallest distance among the second device and the third device is the second device and sends the third message to the second device. In this way, the target device can be determined based on the signal AOAs of the second device and the third device, the distances of the second device and the third device, and the RSSIs of the second device and the third device.

[0037] In a possible implementation, the above-mentioned first device determines the distance of the second device based on the first message; before the first device determines the distance of the third device based on the second message, it further includes: the first device sends a fifth message to the second device based on the received first message; the first device receives a sixth message sent by the second device; the first device sends a seventh message to the second device based on the received second message; the first device receives an eighth message sent by the third device; the above-mentioned first device determines the distance of the second device based on the first message; the first device determines the distance of the third device based on the second message, including: the first device determines the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message; the first device determines the distance of the third device based on the sending and receiving times of the second message, the seventh message, and the eighth message. In this way, determining the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message, and determining the distance of the third device based on the sending and receiving times of the second message, the seventh message, and the eighth message can improve the accuracy of distance measurement.

[0038] In a possible implementation, before the first device receives the sixth message sent by the second device, it further includes: the first device sends a ninth message to the second device; the first device determines the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message, including: the first device determines the distance of the second device based on the sending and receiving times of the first message, the fifth message, the sixth message, and the ninth message. In this way, determining the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message, and determining the distance of the second device based on the sending and receiving times of the first message, the fifth message, the sixth message, and the ninth message can improve the accuracy of distance measurement.

[0039] In a possible implementation, the sixth message carries the times when the second device sends the first message, receives the fifth message, and sends the sixth message.

[0040] In a possible implementation, the sixth message carries the times when the second device sends the first message, receives the fifth message, receives the ninth message, and sends the sixth message.

[0041] In a third aspect, the present application provides a terminal, where the terminal is the first device, and the terminal includes: a processor, a short-range wireless communication module, and a memory; wherein, the processor and the memory are coupled, and the processor is connected to the short-range wireless communication module; the short-range wireless communication module is configured to receive the first message sent by the second device; the first message carries the identifier of the second device; the short-range wireless communication module is further configured to receive the second message sent by the third device; the second message carries the identifier of the third device; the processor is configured to determine the angle of arrival (AOA) of the signal of the second device based on the first message; the processor is further configured to determine the signal AOA of the third device based on the second message; the processor is further configured to determine that the second device is the target device based on the signal AOA of the second device and the signal AOA of the third device; the short-range wireless communication module is further configured to send a third message to the second device; the third message is used to instruct the second device to perform a response operation.

[0042] In a possible implementation, the terminal further includes: two UWB antennas, the short-range wireless communication module is a UWB communication module, and the UWB communication module is connected to the two UWB antennas; the short-range wireless communication module is specifically configured to receive the first message sent by the second device through the two UWB antennas; the short-range wireless communication module is specifically configured to receive the second message sent by the third device through the two UWB antennas; the processor is specifically configured to determine the angle of arrival (AOA) of the signal of the second device based on the phase difference of the first message on the two UWB antennas; the processor is specifically configured to determine the signal AOA of the third device based on the phase difference of the second message on the two UWB antennas;

[0043] In a possible implementation, the above first message is sent by the second device in response to a detected voice command; the second message is sent by the second device in response to a detected voice command; the third message is used to instruct the second device to output response information in response to the voice command.

[0044] In a possible implementation, before the short-range wireless communication module receives the first message sent by the second device and the second message sent by the third device, the above processor is further configured to: send a first instruction to the short-range wireless communication module in response to the detected voice command; the short-range wireless communication module is further configured to send a fourth message based on the first instruction, and the fourth message carries the identifier of the first device; the first message is sent by the second device based on the fourth message; the second message is sent by the third device based on the fourth message; the third message is used to instruct the second device to output response information in response to the voice command.

[0045] In a possible implementation, before the short-range wireless communication module receives the first message sent by the second device and the second message sent by the third device, the above processor is further configured to: send a first instruction to the short-range wireless communication module in response to a detected first user operation; the short-range wireless communication module is further configured to send a fourth message based on the first instruction, and the fourth message carries the identifier of the first device; the first message is sent by the second device based on the fourth message; the second message is sent by the third device based on the fourth message.

[0046] In a possible implementation, the above processor is specifically configured to: in response to the received first user operation, determine the angle of arrival (AOA) of the signal of the second device based on the first message, and determine the signal AOA of the third device based on the second message.

[0047] In a possible implementation, before the above processor determines that the second device is the target device based on the signal AOA of the second device and the signal AOA of the third device, the processor is further configured to: determine the distance of the second device based on the first message; determine the distance of the third device based on the received second message; the above processor is specifically configured to: determine that the second device is the target device based on the signal AOA of the second device, the distance of the second device, the signal AOA of the third device, and the distance of the third device.

[0048] In a possible implementation, before determining that the second device is the target device based on the signal AOA of the second device and the signal AOA of the third device, the above-mentioned processor is further configured to: determine the received signal strength indication (RSSI) of the second device based on the received first message; determine the RSSI of the third device based on the received second message; specifically, the above-mentioned processor is configured to: determine that the second device is the target device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, and the RSSI of the third device.

[0049] In a possible implementation, specifically, the above-mentioned processor is configured to: determine that the second device with the signal AOA closest to 0 degrees among the second device and the third device is the target device.

[0050] In a possible implementation, specifically, the above-mentioned processor is configured to: when the difference between the signal AOAs of the second device and the third device is greater than the first threshold, determine that the second device with the minimum signal AOA among the second device and the third device is the target device; when the difference between the signal AOAs of the second device and the third device is less than or equal to the second threshold, determine that the second device with the minimum distance among the second device and the third device is the target device.

[0051] In a possible implementation, specifically, the above-mentioned processor is configured to: when the RSSI of the second device is greater than the preset RSSI and the RSSI of the third device is less than or equal to the preset RSSI, determine that the second device is the target device; when the RSSIs of the second device and the third device are both greater than or both less than or equal to the preset RSSI and the difference between the signal AOAs of the second device and the third device is greater than the first threshold, determine that the second device with the minimum signal AOA among the second device and the third device is the target device; when the RSSIs of the second device and the third device are both greater than or both less than or equal to the preset RSSI and the difference between the signal AOAs of the second device and the third device is less than or equal to the second threshold, determine that the second device with the minimum distance among the second device and the third device is the target device.

[0052] In a possible implementation, before the processor determines the distance of the second device based on the first message and determines the distance of the third device based on the second message, the above-mentioned short-range wireless communication module is further configured to:

[0053] After receiving the first message, send a fifth message to the second device; the above-mentioned short-range wireless communication module is further configured to receive a sixth message sent by the second device; the above-mentioned short-range wireless communication module is further configured to send a seventh message to the third device after receiving the second message; the above-mentioned short-range wireless communication module is further configured to receive an eighth message sent by the third device; the above-mentioned processor is specifically configured to: determine the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message; determine the distance of the third device based on the sending and receiving times of the second message, the seventh message, and the eighth message.

[0054] In a possible implementation manner, the above-mentioned short-range wireless communication module is further configured to: send a ninth message to the second device before receiving the sixth message sent by the second device; the above-mentioned processor is specifically configured to: determine the distance of the second device based on the sending and receiving times of the first message, the fifth message, the sixth message, and the ninth message.

[0055] In a possible implementation manner, the above-mentioned sixth message carries the times when the second device sends the first message, receives the fifth message, and sends the sixth message.

[0056] In a possible implementation manner, the above-mentioned sixth message carries the times when the second device sends the first message, receives the fifth message, receives the ninth message, and sends the sixth message.

[0057] In a fourth aspect, the present application provides a chip system, which can be disposed in the first device, the second device, and the third device. Taking the first device as an example, the chip system includes: a processor and a UWB chip. Among them, the above-mentioned UWB chip can receive the first message sent by the second device through a UWB antenna; the first message carries the identifier of the second device; the above-mentioned UWB chip can also receive the second message sent by the third device through the UWB antenna; the second message carries the identifier of the third device; the above-mentioned processor is configured to determine the angle of arrival (AOA) of the signal of the second device based on the first message; the above-mentioned processor is further configured to determine the signal AOA of the third device based on the second message; the above-mentioned processor is further configured to determine that the second device is the target device based on the signal AOA of the second device and the signal AOA of the third device; the above-mentioned UWB chip can also send a third message to the second device through the UWB antenna; the third message is used to instruct the second device to perform a response operation.

[0058] This application provides a chip system, which can be disposed in a first device. The first device measures the signal AOA of a second device and a third device through UWB positioning measurement technology. Then, the first terminal can determine the target device (such as the second device) of the first device according to the signal AOAs of the second device and the third device, and execute a response operation on the second device through a third message. In this way, coordinated control among multiple devices can be achieved through simple operations, effectively improving the user experience.

[0059] In a fifth aspect, this application provides a communication device, including one or more processors and one or more memories. The one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the communication device executes the device control method in any possible implementation manner of the above second aspect.

[0060] In a sixth aspect, an embodiment of this application provides a computer storage medium, including computer instructions. When the computer instructions run on an electronic device, the communication device executes the device control method in any possible implementation manner of any aspect above.

[0061] In a seventh aspect, an embodiment of this application provides a computer program product. When the computer program product runs on a computer, the computer executes the device control method in any possible implementation manner of any aspect above. Description of the Drawings

[0062] Figure 1A and Figure 1B is a schematic diagram of a voice interaction scenario provided by an embodiment of this application;

[0063] Figure 2 is a schematic diagram of a system architecture provided by an embodiment of this application;

[0064] Figure 3A is a schematic diagram of the structure of an electronic device provided by an embodiment of this application;

[0065] Figure 3B is a schematic diagram of the coordinate system of an electronic device provided by an embodiment of this application;

[0066] FIG. 3C to FIG. 3E is a schematic diagram of the UWB antenna distribution provided by an embodiment of this application;

[0067] Figure 4 is a schematic diagram of the structure of another electronic device provided by an embodiment of this application;

[0068] Figure 5ASchematic flowchart of a device control method provided by an embodiment of the present application;

[0069] Figure 5B Schematic diagram of a ranging algorithm 1 provided by an embodiment of the present application;

[0070] Figure 5C Schematic flowchart of another device control method provided by an embodiment of the present application;

[0071] Figure 5D Schematic diagram of a signal AOA provided by an embodiment of the present application;

[0072] Figure 5E Schematic diagram of a ranging algorithm 2 provided by an embodiment of the present application;

[0073] Fig. 5F Schematic flowchart of another device control method provided by an embodiment of the present application;

[0074] Figure 5G Schematic flowchart of a process for determining a target device provided by an embodiment of the present application;

[0075] Figure 5H Schematic flowchart of another process for determining a target device provided by an embodiment of the present application;

[0076] Fig. 6A Schematic flowchart of another device control method provided by an embodiment of the present application;

[0077] Figure 6B Schematic diagram of a ranging algorithm 3 provided by an embodiment of the present application;

[0078] Figure 6C Schematic flowchart of another device control method provided by an embodiment of the present application;

[0079] Fig.6D Schematic diagram of a ranging algorithm 4 provided by an embodiment of the present application;

[0080] Fig. 6E Schematic flowchart of another device control method provided by an embodiment of the present application;

[0081] Fig. 7A Schematic diagram of a pairing connection scenario provided by an embodiment of the present application;

[0082] FIG. 7B to FIG. 7E Schematic diagram of a pairing connection interface provided by an embodiment of the present application;

[0083] Figure 7F Schematic diagram of another pairing connection scenario provided by an embodiment of the present application;

[0084] Figure 7G Another schematic diagram of the pairing connection interface provided by the embodiment of the present application;

[0085] Fig. 8A Another schematic diagram of the process of the device control method provided by the embodiment of the present application;

[0086] Figure 8B Another schematic diagram of the ranging algorithm 3 provided by the embodiment of the present application;

[0087] Figure 8C Another schematic diagram of the process of the device control method provided by the embodiment of the present application;

[0088] Fig.8D Another schematic diagram of the process of the device control method provided by the embodiment of the present application;

[0089] Fig. 8E Another schematic diagram of the ranging algorithm 2 provided by the embodiment of the present application;

[0090] Figure 8F Another schematic diagram of the process of the device control method provided by the embodiment of the present application;

[0091] Fig. 9A Another schematic diagram of the process of the device control method provided by the embodiment of the present application;

[0092] Fig. 9B Another schematic diagram of the ranging algorithm 2 provided by the embodiment of the present application;

[0093] Fig. 9C Another schematic diagram of the process of the device control method provided by the embodiment of the present application;

[0094] Fig.9D Another schematic diagram of the ranging algorithm 1 provided by the embodiment of the present application;

[0095] Fig. 10A and Fig. 10B Another schematic diagram of the software architecture provided by the embodiment of the present application;

[0096] Fig. 10C Another schematic diagram of the structure of the hardware system provided by the embodiment of the present application;

[0097] Fig. 10D Another schematic diagram of the structure of the UWB chip system provided by the embodiment of the present application. Detailed implementation manners

[0098] The technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings. Among them, in the description of the embodiments of the present application, unless otherwise specified, " / " means "or". For example, A / B may mean A or B; "and / or" in the text is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiments of the present application, "a plurality of" means two or more than two.

[0099] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as implying or suggesting relative importance or implicitly indicating the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, unless otherwise specified, the meaning of "a plurality of" is two or more.

[0100] Currently, smart home devices are becoming more and more popular, and there may be multiple smart home devices in a user's house, such as speakers, televisions, air conditioners, etc.

[0101] In one implementation, multiple smart home devices within a certain area can be connected to a network (such as a local area network, the Internet.) to achieve interaction with the cloud or other devices. Users can obtain online or local information through smart home devices. For example, users can control home devices such as speakers and televisions to obtain news, weather, travel information, play songs, shop online, etc. Users can also control other smart home devices through a specified smart home device. For example, users can control the speaker to turn lights on and off, open and close curtains, etc.

[0102] Currently, users can interact with smart home devices through methods such as voice and gestures. For example, users can wake up smart home devices through voice and then control the devices through methods such as voice and gestures.

[0103] It can be understood that an electronic device capable of voice interaction usually includes a microphone and has voice recognition capabilities to implement voice recognition on the collected ambient sound. In some embodiments, the application processor (AP) of the smart home device remains powered on, and the microphone sends the collected voice information to the AP. The AP recognizes the above voice information and can execute the operations corresponding to the above voice information. For example, when the AP recognizes that the above voice information includes a preset wake-up word, it generates a corresponding response message (for example, the voice message "I'm here"). In some embodiments, the microphone of the electronic device is connected to a microprocessor, and the microprocessor remains powered on while the AP of the electronic device is not powered on. The microphone sends the collected voice information to the microprocessor, and the microprocessor recognizes the above voice information and determines whether to wake up the AP, that is, power on the AP. For example, when the microprocessor recognizes that the above voice information includes a preset wake-up word, it wakes up the AP. Among them, the preset wake-up word can be the default setting of the electronic device before leaving the factory, or can be pre-set by the user in the electronic device according to their own needs, and no specific limitation is made here.

[0104] An embodiment of the present application provides a device control method. In the proposed method, when the user utters a voice command (such as a preset wake-up word), the electronic device 100 is pointed at a target device among multiple nearby smart home devices. The smart home device that receives and recognizes the above voice command initiates a measurement of the azimuth parameter. The target device pointed by the user can be determined based on the azimuth parameters of multiple smart home devices, and the target device responds to the user's wake-up. The azimuth parameters of the smart home device can include the distance between the device and the electronic device 100, the angle of arrival (AOA) of the signal of the device on the electronic device 100, and the received signal strength indicator (RSSI). Among them, RSSI can be used to determine whether there is an occlusion between the device and the electronic device 100. For the scenario of multiple smart home devices, the proposed method can improve the possibility of accurately controlling home devices and enhance the user experience.

[0105] Exemplarily, such as Figure 1AAs shown, there are multiple smart home devices near the user, such as speaker 201, refrigerator 202, television 203, air conditioner 204, etc. At least two of the above-mentioned multiple smart home devices have the same wake-up word. For example, the wake-up words of speaker 201, refrigerator 202, television 203, and air conditioner 204 are the same (e.g., "Xiaoyi, Xiaoyi"). When the user intends to wake up speaker 201 among the above-mentioned multiple smart home devices, the user points the electronic device 100 (e.g., smart bracelet) at speaker 201 and says the wake-up word "Xiaoyi, Xiaoyi" of the above-mentioned speaker 201. The devices that receive and detect the wake-up word among the above-mentioned multiple smart home devices respectively initiate the measurement of the orientation parameter (i.e., the orientation parameter relative to the smart bracelet). After determining that the target device pointed by the user is speaker 201 according to the orientation parameters of the multiple smart home devices, the electronic device 100 sends an indication message to speaker 201 to instruct speaker 201 to respond to the user's wake-up word. As Figure 1A shown, after receiving the above indication message, speaker 201 emits a voice message "I'm here".

[0106] In some embodiments, after speaker 201 responds to the user's wake-up, the speaker will respond to the user's instructions (such as voice instructions, gesture instructions, etc.) and interact with the user until the user wakes up other smart home devices. Exemplarily, as Figure 1B shown, after the user hears the response of the speaker, the user says "What's the weather like in Longgang today". Multiple smart home devices can all receive and detect the voice message "What's the weather like in Longgang today". Only the awakened speaker 201 queries the weather in Longgang today through the network according to the above voice message "What's the weather like in Longgang today" and emits a voice message "It's sunny in Longgang today, 25 degrees to 32 degrees, south wind level 3".

[0107] It should be noted that Figure 1A and Figure 1B The scenarios shown are only for illustrating a multi-device scenario by way of example and are not a limitation to this application. In various implementation scenarios, it may include a different number and / or different types of devices from those shown in the figure. For example, it may include more or fewer devices, or include other devices different from the Figure 1A and Figure 1B devices shown in the figure.

[0108] Next, a communication system (such as a smart home system) provided by an embodiment of this application is introduced. The smart home system can connect various devices in the home (such as audio and video devices, air conditioner control, lighting system, curtain control, digital cinema system, etc.) together through Internet of Things technology, providing multiple functions and means such as home appliance control, lighting control, indoor and outdoor remote control, environmental monitoring, and timing control. The user can also control various devices in the home through the smart home APP installed on the electronic device 100 (such as a mobile phone, smart bracelet, etc.).

[0109] Please refer to Figure 2 , Figure 2 which exemplarily shows a schematic diagram of a communication system 300 provided in an embodiment of the present application. As Figure 2 shown, the communication system 300 includes electronic device 100, electronic devices 201, 202, 203, 204, etc. The electronic device 100 can assist a user in selecting and controlling various smart home devices at home (such as speakers, televisions, refrigerators, air conditioners, etc.). Among them,

[0110] the electronic devices (such as electronic device 100, electronic devices 201, 202, 203, or 204) have an ultra-wideband (UWB) communication module, and may also have one or more of a Bluetooth communication module, a WLAN communication module, and an infrared communication module. Taking the electronic device 100 as an example, the electronic device 100 can detect and scan the electronic devices (such as electronic devices 201, 202, 203, or 204) near the electronic device 100 by transmitting signals through one or more of the UWB communication module, the Bluetooth communication module, the WLAN communication module, and the infrared communication module, so that the electronic device 100 can discover the nearby electronic devices through one or more of the short-range wireless communication protocols of UWB, Bluetooth, WLAN, and infrared, establish a wireless communication connection with the nearby electronic devices, and can transmit data to the nearby electronic devices.

[0111] The present application does not specifically limit the type of the electronic device (such as electronic device 100, electronic devices 201, 202, 203, or 204). In some embodiments, the electronic device in the embodiment of the present application can be a mobile phone, a wearable device (such as a smart bracelet), a tablet computer, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) / virtual reality (VR) device, and other portable devices. It can also be devices such as speakers, televisions, refrigerators, air conditioners, vehicle-mounted devices, printers, projectors, etc. Exemplary embodiments of the electronic device include but are not limited to those equipped with or other operating systems.

[0112] In a possible implementation, the electronic devices 100, 201, 202, 203, and 204 can communicate directly with each other. In a possible implementation, the electronic devices 100, 201, 202, 203, and 204 can be connected to a local area network (LAN) by means of a wired or wireless fidelity (WiFi) connection. For example, the electronic devices 100, 201, 202, 203, and 204 are all connected to the same electronic device 301, and the electronic devices 100, 201, 202, 203, and 204 can communicate indirectly through the electronic device 301. The electronic device 301 can be one of the electronic devices 100, 201, 202, 203, and 204, or can also be an additional third-party device, such as a router, a cloud server, a gateway, a smart device controller, etc. Among them, the cloud server can be a hardware server or can be implanted in a virtualized environment. For example, the cloud server can be a virtual machine running on a hardware server that can include one or more other virtual machines. The electronic device 301 can send data to the electronic devices 100, 201, 202, 203, and 204 through the network, and can also receive data sent by the electronic devices 100, 201, 202, 203, and 204.

[0113] The electronic device 301 can include a memory, a processor, and a transceiver. Among them, the memory can be used to store relevant programs for voice wake-up words and UWB positioning; the memory can also be used to store the orientation parameters of an electronic device (for example, the electronic device 201) obtained by the UWB positioning technology; the memory can also be used to store messages exchanged through the electronic device 301, data and / or configurations related to the electronic device 100 and nearby devices. The processor can be used to determine a response target device according to the orientation parameters of multiple nearby devices when obtaining the orientation parameters of multiple nearby devices in the local area network. The transceiver can be used to communicate with the electronic devices connected to the local area network. It should be noted that in the embodiments of the present application, multiple nearby devices can be connected to the same local area network or may not be connected to the same local area network, and no specific limitation is made here.

[0114] It can be understood that the structure shown in this embodiment does not constitute a specific limitation on the communication system 300. In other embodiments of the present application, the communication system 300 may include more or fewer devices than shown in the figure.

[0115] Next, the electronic device 100 involved in the embodiments of the present application will be introduced.

[0116] Referring to Figure 3A , Figure 3A FIG. shows a schematic structural diagram of an exemplary electronic device 100 provided by the embodiments of the present application.

[0117] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0118] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0119] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.

[0120] Among them, the controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0121] The NPU can perform artificial intelligence operations by using convolutional neural network (CNN) processing. For example, by using the CNN model to perform a large amount of information recognition and information screening, the training and recognition of scene intelligence can be realized.

[0122] A memory can also be set in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can save the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0123] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0124] The I2C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be respectively coupled to the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface to implement the touch function of the electronic device 100.

[0125] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple groups of I2S buses. The processor 110 may be coupled to the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering a call through a Bluetooth headset.

[0126] The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through the PCM bus interface. In some embodiments, the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering a call through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0127] The UART interface is a general-purpose serial data bus for asynchronous communication. This bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is usually used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 may transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0128] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100.

[0129] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0130] The USB interface 130 is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other electronic devices, such as AR devices, etc.

[0131] It can be understood that the interface connection relationships between the various modules illustrated in the embodiments of this application are only illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 can also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0132] The charging management module 140 is used to receive a charging input from a charger. Among them, the charger can be a wireless charger or a wired charger. In some embodiments of wired charging, the charging management module 140 can receive the charging input from the wired charger through the USB interface 130. In some embodiments of wireless charging, the charging management module 140 can receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.

[0133] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives inputs from the battery 142 and / or the charging management module 140 and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.

[0134] The wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.

[0135] The antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as the diversity antenna of the wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0136] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc. applied to the electronic device 100. The mobile communication module 150 can include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least some functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 can be disposed in the same device.

[0137] The modulation and demodulation processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Subsequently, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modulation and demodulation processor may be an independent device. In other embodiments, the modulation and demodulation processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.

[0138] The wireless communication module 160 may provide solutions for wireless communications applied to the electronic device 100, including Ultra-Wideband (UWB), wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive the signal to be transmitted from the processor 110, perform frequency modulation and amplification on it, and convert it into electromagnetic waves through the antenna 2 and radiate it out.

[0139] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with a network and other devices via wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS), and / or satellite based augmentation systems (SBAS).

[0140] Among them, UWB wireless communication is a wireless personal area network communication technology with low power consumption and high-speed transmission. Different from the continuous carrier mode used by common communication technologies, UWB uses pulse signals to transmit data. UWB transmits data using non-sinusoidal narrow pulse signals in the nanosecond (ns) to picosecond (ps) range, and time modulation technology enables its transmission rate to be greatly improved. Because extremely short pulses are used, while enabling high-speed communication, the transmit power of UWB devices is very small, only one-hundredth to one-thousandth of that of current continuous carrier systems, so the power consumption is relatively low.

[0141] Compared with traditional narrowband systems, UWB systems have the advantages of strong penetration, low power consumption, good anti-multipath effect, high security, low system complexity, and can provide precise positioning accuracy. UWB can be applied to wireless communication applications that require high-quality services and can be used in fields such as wireless personal area networks (WPANs), home network connections, and short-range radars. UWB will become a technical means to solve the contradiction between the demand for high-speed Internet access in enterprises, homes, public places, etc. and the increasingly crowded frequency resource allocation.

[0142] In the embodiments of the present application, the electronic device 100 can measure distance and RSSI through a UWB antenna. The electronic device 100 can implement AOA measurement through at least two UWB antennas. The following introduces the arrangement and distribution of the UWB antennas provided exemplarily in the embodiments of the present application.

[0143] First, define the reference coordinate system of the electronic device. Exemplarily, as Figure 3B shown, the coordinate system of the electronic device can be defined in the following way: the X-axis is parallel to the short side direction of the electronic device screen and points from the left side of the screen to the right side; the Y-axis is parallel to the long side direction of the screen and points from the bottom of the screen to the top; the Z-axis is perpendicular to the plane formed by the X-axis and the Y-axis, that is, the Z-axis is perpendicular to the plane where the screen is located. When the electronic device is placed horizontally with the screen facing up, the Z-axis is opposite to the direction of gravity.

[0144] It should be noted that the top, bottom, left, and right mentioned in the embodiments of the present application are relative and are exemplary descriptions in specific implementation manners, and should not limit the embodiments of the present application. It can be understood that when the posture of the electronic device changes, the top, bottom, left, and right of the electronic device mentioned in the embodiments of the present application will not change.

[0145] FIG. 3C to FIG. 3E Exemplarily shows the electronic device 100 with UWB antennas. In Figure 3C , the electronic terminal 100 has 2 UWB antennas, namely antenna A and antenna B. Among them, the connection line between antenna A and antenna B is parallel to the X-axis of the electronic device, and the 2 UWB antennas are arranged in a one-dimensional manner. In Figure 3D , the electronic terminal 100 has 3 antennas, namely antenna A, antenna B, and antenna C. Among them, the connection line between antenna B and antenna C is parallel to the Y-axis of the electronic device, and the 3 UWB antennas are arranged in a two-dimensional manner. In Figure 3E , the electronic device has 4 UWB antennas, namely antenna A, antenna B, antenna C, and antenna d. In some embodiments, the connection line between antenna C and antenna B is parallel to the Z-axis of the electronic device, and the 4 UWB antennas are arranged in a three-dimensional manner. FIG. 3C to FIG. 3EAmong them, the distance between antenna A and antenna V is d1, the distance between antenna A and antenna C is d2, and the distance between antenna A and antenna B is d3. Among them, d1, d2, and d3 are all less than λ / 2, where λ is the wavelength of the electromagnetic wave.

[0146] It should be noted that FIG. 3C to FIG. 3E The arrangement of the UWB antennas shown and their distribution positions on the electronic device are only for illustrative purposes and do not limit this application. For example, under the same arrangement, in addition to FIG. 3C to FIG. 3E the number of UWB antennas shown, the electronic device 100 can also have a larger number of UWB antennas; under the same arrangement, in addition to FIG. 3C to FIG. 3E the distribution positions of the UWB antennas shown, there can also be other distribution positions.

[0147] In the embodiments of this application, the UWB antennas and the aforementioned antenna 1 and antenna 2 can be multiplexed or independent of each other. No specific limitation is made here.

[0148] In some embodiments, when the electronic device is in the standby state, the UWB communication module of the electronic device 100 can be in the powered-on state.

[0149] The electronic device 100 realizes the display function through the GPU, the display screen 194, and the application processor, etc. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0150] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0151] In some embodiments of the present application, the interface content currently output by the system is displayed on the display screen 194. For example, the interface content is the interface provided by an instant messaging application.

[0152] The electronic device 100 can implement the shooting function through the ISP, camera 193, video codec, GPU, display screen 194, application processor, etc.

[0153] The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, and the light passes through the lens and is transmitted to the camera's photosensitive element. The optical signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also optimize the noise, brightness, and skin color of the image through algorithms. The ISP can also optimize parameters such as the exposure and color temperature of the shooting scene. In some embodiments, the ISP can be disposed in the camera 193.

[0154] The camera 193 is used to capture still images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format such as RGB or YUV. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0155] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

[0156] The video codec is used to compress or decompress digital videos. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0157] The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission pattern between human brain neurons, it can quickly process input information and can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0158] The external memory interface 120 can be used to connect to an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to achieve the data storage function. For example, files such as music and videos are saved in the external memory card.

[0159] The internal memory 121 can be used to store computer-executable program code, and the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store the operating system, application programs required for at least one function (such as the sound playback function, image playback function, etc.). The data storage area can store data created during the use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 can include high-speed random access memory and can also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.

[0160] The electronic device 100 can implement audio functions through the audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and the application processor, etc. Such as music playback, recording, etc.

[0161] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or part of the functional modules of the audio module 170 can be disposed in the processor 110.

[0162] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or hands-free calls through the speaker 170A.

[0163] The receiver 170B, also known as the "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the receiver 170B can be placed close to the human ear to receive the voice.

[0164] The microphone 170C, also known as the "microphone" or "transmitter", is used to collect sounds (such as ambient sounds, including sounds made by people and devices), and convert the sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. When the voice wake-up function of the electronic device is turned on, the microphone 163 can collect ambient sounds in real time to obtain audio data. Among them, the situation of the microphone 163 collecting sounds is related to the environment. For example, when the surrounding environment is noisy and the user says the wake-up word, the sound collected by the microphone 163 includes the surrounding environmental noise and the sound of the user saying the wake-up word. Another example is that when the surrounding environment is quiet and the user says the wake-up word, the sound collected by the microphone 163 is the sound of the user saying the wake-up word. Another example is that when the surrounding environment is noisy and the voice wake-up function of the electronic device is turned on, but the user does not say the wake-up word to wake up the electronic device, the sound collected by the microphone 163 is only the surrounding environmental noise. In some other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also achieve a noise reduction function. In some other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to achieve functions such as collecting sound signals, noise reduction, identifying the sound source, and achieving a directional recording function.

[0165] The headphone jack 170D is used to connect a wired headphone. The headphone jack 170D can be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0166] The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A can be disposed on the display screen 194. In some alternative embodiments of the present application, the pressure sensor 180A can be used to capture the pressure value generated when the user's finger touches the display screen, and transmit the pressure value to the processor so that the processor can identify which finger part the user uses to input the user operation.

[0167] There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. Capacitive pressure sensors can be at least two parallel plates with conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed. In some optional embodiments of the present application, the pressure sensor 180A can transmit the detected capacitance value to the processor so that the processor identifies which finger part (knuckle or fingertip, etc.) the user inputs the user operation. In some optional embodiments of the present application, the pressure sensor 180A may also calculate the number of touch points based on the detected signal, and transmit the calculated value to the processor so that the processor can recognize whether the user inputs the user operation through a single finger or multiple fingers.

[0168] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (the X-axis, Y-axis, and Z-axis of the electronic device) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0169] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0170] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0171] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers. In some optional embodiments of the present application, the acceleration sensor 180E can be used to capture the acceleration value generated when the user's finger touches the display screen (or the user's finger taps the rear side frame of the rear shell of the electronic device 100), and transmit the acceleration value to the processor so that the processor can identify which finger part the user uses to input the user operation.

[0172] In the embodiments of the present application, the electronic device 100 can determine the posture change of the electronic device 100 through the gyroscope sensor and / or the acceleration sensor, and then identify the user operation. For example, according to the posture change of the electronic device 100, it is recognized that the current user operation is a pointing operation. The pointing operation can be that the user points the electronic device 100 in a specific direction and keeps pointing in that specific direction within a preset time.

[0173] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance through infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0174] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode can be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses the photodiode to detect the infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear for a call, so as to automatically turn off the display screen to achieve the purpose of power saving. The proximity light sensor 180G can also be used for automatic unlocking and locking of the leather case mode and pocket mode.

[0175] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.

[0176] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint answering of incoming calls, etc.

[0177] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor near the temperature sensor 180J to reduce power consumption and implement thermal protection. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In some other embodiments, when the temperature is lower than yet another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown caused by low temperature.

[0178] The touch sensor 180K, also known as the "touch panel". The touch sensor 180K can be disposed on the display screen 194, and together with the display screen 194, it forms a touch screen, also known as the "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch operation refers to an operation in which a user's hand, elbow, stylus, etc. touches the display screen 194. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In some other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, at a different position from the display screen 194.

[0179] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals of the vibrating bone mass of the human vocal part. The bone conduction sensor 180M can also contact the human pulse and receive blood pressure pulsation signals. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone to form a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vibrating bone mass of the vocal part acquired by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure pulsation signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.

[0180] The keys 190 include a power-on key, volume keys, etc. The keys 190 can be mechanical keys or touch keys. The electronic device 100 can receive key inputs and generate key signal inputs related to the user settings and function controls of the electronic device 100.

[0181] The motor 191 can generate vibration prompts. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations on different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminder, receiving messages, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0182] The indicator 192 can be an indicator light and can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0183] The SIM card interface 195 is used to connect the SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to achieve contact and separation from the electronic device 100.

[0184] Here, taking the electronic device 201 as an example, the structure of a smart home device provided by an embodiment of the present application will be introduced.

[0185] Figure 4 The structural schematic diagram of the electronic device 201 provided by an embodiment of the present application is exemplarily shown.

[0186] As Figure 4 shown, the electronic device 201 may include: a processor 401, a memory 402, a wireless communication processing module 403, an antenna 404, a power switch 405, a wired LAN communication processing module 406, a USB communication processing module 407, and an audio module 408. Among them:

[0187] The processor 401 can be used to read and execute computer-readable instructions. In a specific implementation, the processor 401 may mainly include a controller, an arithmetic unit, and registers. Among them, the controller is mainly responsible for instruction decoding and sending control signals for the operations corresponding to the instructions. The arithmetic unit is mainly responsible for storing the register operands and intermediate operation results temporarily stored during the instruction execution process. In a specific implementation, the hardware architecture of the processor 401 can be an application-specific integrated circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, etc.

[0188] In some embodiments, the processor 401 can be used to parse the signals received by the wireless communication module 403 and / or the wired LAN communication processing module 406, such as the probe request broadcast by the terminal 100, etc. The process 401 can be used to perform corresponding processing operations according to the parsing results, such as generating a probe response, etc.

[0189] In some embodiments, the processor 401 may also be used to generate signals transmitted by the wireless communication module 403 and / or the wired LAN communication processing module 406, such as Bluetooth broadcast signals and beacon signals.

[0190] The memory 402 is coupled to the processor 401 and is used to store various software programs and / or multiple sets of instructions. In a specific implementation, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 402 may store an operating system, such as an embedded operating system like uCOS, VxWorks, RTLinux, etc. The memory 402 may also store a communication program, which may be used for the terminal 100 to communicate with one or more servers or accessory devices.

[0191] The wireless communication module 403 may include one or more of a UWB communication module 403A, a Bluetooth communication module 403B, a WLAN communication module 403C, and an infrared communication module 403D. Among them, the UWB communication module 403A may be integrated onto a chip (System on Chip, SOC), and the UWB communication module 403A may also be integrated with other communication modules (such as the Bluetooth communication module 403B) either in hardware or software.

[0192] In some embodiments, one or more of the UWB communication module 403A, the Bluetooth communication module 403B, the WLAN communication module 403C, and the infrared communication module 403D may monitor signals transmitted by other devices (such as the electronic device 100), such as measurement signals, scan signals, etc., and may send response signals, such as measurement responses, scan responses, etc., so that other devices (such as the electronic device 100) can discover the electronic device 201 and establish a wireless communication connection with other devices (such as the electronic device 100) through one or more short-range wireless communication technologies among UWB, Bluetooth, WLAN, or infrared for data transmission.

[0193] In some other embodiments, one or more of the UWB communication module 403A, the Bluetooth communication module 403B, the WLAN communication module 403C, and the infrared communication module 403D may also transmit signals, such as broadcasting UWB measurement signals and beacon signals, so that other devices (such as the electronic device 100) can discover the electronic device 201 and establish a wireless communication connection with other devices (such as the electronic device 100) through one or more short-range wireless communication technologies among UWB, Bluetooth, WLAN, or infrared for data transmission.

[0194] The wireless communication module 403 may also include a cellular mobile communication module (not shown). The cellular mobile communication processing module may communicate with other devices (such as a server) through cellular mobile communication technology.

[0195] The antenna 404 can be used to transmit and receive electromagnetic wave signals. The antennas of different communication modules can be multiplexed or independent of each other to improve the utilization rate of the antennas. For example, the antenna of the Bluetooth communication module 403A can be multiplexed as the antenna of the WLAN communication module 403B. For example, the UWB communication module 403A needs to use an independent UWB antenna.

[0196] In the implementation of this application, to implement UWB communication, the electronic device 201 has at least one UWB antenna.

[0197] The power switch 405 can be used to control the power supply to the electronic device 201.

[0198] The wired LAN communication processing module 406 can be used to communicate with other devices in the same LAN through the wired LAN, and can also be used to connect to the WAN through the wired LAN to communicate with the devices in the WAN.

[0199] The USB communication processing module 407 can be used to communicate with other devices through a USB interface (not shown).

[0200] The audio module 408 can be used to output an audio signal through an audio output interface, so that the electronic device 201 supports audio playback. The audio module can also be used to receive audio data through an audio input interface. The electronic device 201 can be a media playback device such as a television or a speaker, or a non-media playback device such as an air conditioner or a refrigerator. When the voice wake-up function of the electronic device 201 is turned on, the audio module 408 can collect the surrounding ambient sound in real time to obtain audio data. The audio module can also perform speech recognition on the audio data received by the audio module.

[0201] It should be understood that Figure 4 the illustrated electronic device 201 is only an example, and the electronic device 201 may have more or fewer components than Figure 4 those shown in the figure, may combine two or more components, or may have a different component configuration. The various components shown in the figure can be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0202] The following is a detailed description of a device control method provided by an embodiment of the present application in combination with a voice interaction scenario. Among them, the devices involved in the flowchart of the method include electronic device 100, electronic device 201, electronic device 202 and electronic device 203. In the embodiment of the present application, it is not limited to electronic device 100, electronic device 201, electronic device 202 and electronic device 203. The devices involved in the flowchart of the method may include more or fewer devices. Figure 5A The above is only an exemplary explanation of the present application and should not be construed as limiting.

[0203] Please refer to Figure 5A , Figure 5A A device control method provided in an embodiment of the present application is shown. In the method, when the electronic device 201 detects a user's voice command (such as a preset wake-up word), a UWB measurement request is initiated; the electronic device 100 determines the distance between the electronic device 100 and the electronic device 201 according to the UWB measurement request. Specifically, the device control method includes but is not limited to steps S101 to S107, wherein:

[0204] S101. The electronic device 201 collects environmental sounds in real time.

[0205] When the user intends to control the electronic device 201 by voice, the user points the electronic device 100 to the electronic device 201 and speaks a voice command. For example, when the user wants to wake up the electronic device 201, the user points the electronic device 100 to the electronic device 201 and speaks "Xiaoyi, Xiaoyi", that is, the above voice command includes the preset wake-up word "Xiaoyi, Xiaoyi". For example, when the user wants to control the electronic device 201 to play music, the user points the electronic device 100 to the electronic device 201 and speaks "play music".

[0206] For example, the three-dimensional coordinate system of the electronic device 100 is as follows: Figure 3B In some embodiments, when the user points the electronic device 100 toward the electronic device 201 , it means that the Y axis of the electronic device 100 is pointed toward the electronic device 201 .

[0207] In some embodiments, the electronic device 201 may collect voice information in real time or periodically when the voice wake-up function is turned on.

[0208] S102: The electronic device 201 detects a voice command based on the above-mentioned environmental sound.

[0209] Exemplarily, the electronic device 201 collects the voice emitted by the user through the audio module. For example, the specific content of the voice is "Xiaoyi, Xiaoyi". The electronic device 201 compares the specific content of the collected voice "Xiaoyi, Xiaoyi" with the voice keyword "Xiaoyi, Xiaoyi" of the pre-stored wake-up word. If the specific content of the voice is consistent with the voice keyword of the pre-stored wake-up word, it is determined that the voice emitted by the user is the wake-up word "Xiaoyi, Xiaoyi".

[0210] In some embodiments, the electronic device 201 detects the voice command issued by the user according to the above ambient sound.

[0211] Exemplarily, the electronic device 201 collects the voice emitted by the user through the audio module 408. For example, the specific content of the voice is "Xiaoyi, Xiaoyi". The electronic device 201 compares the specific content of the collected voice "Xiaoyi, Xiaoyi" with the voice keyword "Xiaoyi, Xiaoyi" of the pre-stored wake-up word, and compares the voice feature of the collected voice with the voice feature of the preset user. If the specific content of the voice is consistent with the voice keyword of the pre-stored wake-up word, and the matching degree between the voice feature of the collected voice and the voice feature of the preset user exceeds a certain threshold, it is determined that the preset user issues the wake-up word "Xiaoyi, Xiaoyi".

[0212] S103. The electronic device 201 broadcasts a UWB measurement request, and the electronic device 100 receives the above UWB measurement request. The UWB measurement request carries the identity document (ID) ID1 of the electronic device 201.

[0213] After the electronic device 201 detects the voice command of the user, in order to determine the target device to be controlled by the above voice command, the electronic device 201 initiates the measurement of the azimuth parameter. In some embodiments, the above azimuth parameter may include the distance between the electronic device 201 and the electronic device 100, the signal AOA of the electronic device 201 on the electronic device 100, and may also include RSSI. Among them, RSSI can be used to determine whether there is an occlusion between the electronic device 201 and the electronic device 100.

[0214] Specifically, the electronic device 201 broadcasts a first measurement request, records the sending time of the first measurement request as T1, the first measurement request carries ID1, and the first measurement request is used to measure the azimuth parameter of the electronic device 201. The electronic device 100 receives the first measurement request sent by the electronic device 201 at the moment T2 and records the receiving time of the first measurement request as T2.

[0215] S104. The electronic device 100 determines the azimuth parameter of the electronic device 201 according to the above UWB measurement request.

[0216] In some embodiments, the UWB measurement request carries the sending time of the UWB measurement request. The electronic device 100 can determine the distance to the electronic device 201 based on the sending time and receiving time of the UWB measurement request. According to the UWB measurement request, the electronic device 100 can also determine the AOA and RSSI of the UWB measurement request signal.

[0217] S105. The electronic device 100 determines that the target device is the electronic device 201 according to the orientation parameters of the electronic devices 201, 202, and 203.

[0218] In some embodiments, the orientation parameters include distance, signal AOA, and RSSI. The electronic device 100 determines, according to the orientation parameters of the electronic devices 201, 202, and 203, that among the devices without occlusion from the electronic device 100, the device with the AOA closest to the preset angle or the shortest distance is the electronic device 201.

[0219] In some embodiments, the orientation parameters include distance and signal AOA. The electronic device 100 determines, according to the orientation parameters of the electronic devices 201, 202, and 203, that the device with the AOA closest to the preset angle or the shortest distance is the electronic device 201.

[0220] In some embodiments, the orientation parameter includes signal AOA. The electronic device 100 determines, according to the signal AOAs of the electronic devices 201, 202, and 203, that the device with the AOA closest to the preset angle is the electronic device 201.

[0221] S106. The electronic device 100 sends the first indication information to the electronic device 201.

[0222] S107. In response to the first indication information and the above voice command, the electronic device 201 sends out a response message.

[0223] According to the type of the electronic device 201, the above response message can be presented in one or more of the forms such as voice, text, image, animation, etc. For example, if the electronic device 201 is a display device (such as a television) including a display screen, the above response message can be presented as the text message "I'm here". For example, if the electronic device 201 is an audio device (such as a speaker) including a speaker, the above response message can be presented as the voice message "I'm here". Exemplarily, as Figure 1A shown, the speaker emits the voice "I'm here".

[0224] In some embodiments, refer to Figure 5B, the electronic device 201 initiates a UWB measurement request, and the electronic device 100 calculates the orientation parameters of the electronic device 201. The electronic device 100 can use ranging algorithm 1 to determine the distance of the electronic device 201. Refer to Figure 5C , step S104 may specifically include S104A to S104D, where:

[0225] S104A. The electronic device 100 sends a first measurement response to the electronic device 201 at time T3, and the first measurement response carries ID1 and the identity identifier ID2 of the electronic device 100.

[0226] Specifically, the electronic device 100 sends a first measurement response to the electronic device 201 at time T3, and records the sending time of the first measurement response as T3. The electronic device 201 receives the first measurement response at time T4, and records the receiving time of the first measurement request as T4. Among them, the first measurement response carries ID1 and ID2.

[0227] S104B. The electronic device 100 sends a second measurement request to the electronic device 201 at time T5, and the second measurement request carries ID1 and ID2.

[0228] Specifically, the electronic device 100 sends a second measurement request to the electronic device 201 at time T5, and records the sending time of the second measurement request as T5. The electronic device 201 receives the second measurement request at time T6, and records the receiving time of the second measurement request as T6. Among them, the second measurement request carries ID1 and ID2.

[0229] S104C. The electronic device 201 sends a second measurement response to the electronic device 100 at time T7, and the second measurement request carries T1, T4, T6, T7, ID1 and ID2.

[0230] Specifically, the electronic device 201 sends a second measurement response to the electronic device 100 at time T7, and records the sending time of the second measurement response as T7. The electronic device 100 receives the second measurement request at T8, and records the receiving time of the second measurement request as T8. Among them, the second measurement request carries T1, T4, T6, T7, ID1 and ID2.

[0231] S104D. Determine the distance of the electronic device 201 according to T1, T2, T3, T4, T5, T6, T7 and T8, and determine the signal AOA and RSSI of the electronic device 201 according to the first measurement request and / or the second measurement response.

[0232] Specifically, step S104D may include:

[0233] (1) The electronic device 100 determines the distance to the electronic device 201 based on T1, T2, T3, T4, T5, T6, T7, and T8.

[0234] Specifically, the electronic device 100 determines the average one-way flight time T between the electronic device 100 and the electronic device 201 according to T1, T2, T3, T4, T5, T6, T7, and T8. Then, according to the product of the one-way flight time T and the electromagnetic wave propagation speed C, the distance D to the electronic device 201 can be determined as C * T.

[0235] Reference Figure 5B , the time difference between the sending time T1 of the first measurement request and the receiving time T4 of the first measurement response is equal to Tround1, the time difference between the receiving time T2 of the first measurement request and the sending time T3 of the first measurement response is equal to Trelay1, the time difference between the sending time T5 of the second measurement request and the receiving time T8 of the second measurement response is equal to Tround2, and the time difference between the receiving time T6 of the second measurement request and the sending time T7 of the second measurement response is equal to Trelay2. In the embodiments of the present application, the one-way flight time T can be expressed as follows:

[0236]

[0237] (2) The electronic device 100 determines the signal AOA of the electronic device 201 based on the first measurement request and / or the second measurement response.

[0238] In the embodiments of the present application, the electronic device 100 can calculate the receiving direction of the signal according to the phase difference of the first measurement request signal and / or the second measurement response reaching different UWB antennas, so as to determine the orientation of the electronic device 201 relative to the electronic device 100.

[0239] Exemplarily, as Figure 5D shown, the electronic device 100 receives the wireless signal sent by the electronic device 201. The signal AOA of this signal at the electronic device 100 (that is, the incident angle θ of the above wireless signal relative to the connection line between the receiving antenna 1 and the receiving antenna 2) can be determined according to the phase difference of this signal on the receiving antenna 1 and the receiving antenna 2 of the electronic device 100 determined.

[0240] Among them, can be expressed as follows,

[0241]

[0242] Among them, λ is the wavelength, and φ(θ) is the antenna hardware phase difference. The incident angle θ, that is, the signal AOA of the electronic device 201, can be determined by the above formula.

[0243] Reference Figure 3D and Figure 3E , in some embodiments, when the user points the electronic device 100 at the electronic device 201, it means pointing the Y-axis of the electronic device 100 at the electronic device 201. The electronic device 100 determines the AOA of the signal sent by the electronic device 201 received by the electronic device 100 according to the phase difference of the received signals of at least two of the antennas A, B, and C.

[0244] In some embodiments, the electronic device 100 determines the AOA of the signal sent by the electronic device 201 (i.e., the incident angle relative to the Y-axis) according to the phase difference between the antennas A and C. The connection line between the antennas A and C is parallel to the Y-axis. In this implementation, the closer the AOA of the signal of the electronic device 201 is to 0 degrees, the more the electronic device 100 points to the electronic device 201. In some other embodiments, the electronic device 100 determines the AOA of the signal sent by the electronic device 201 (i.e., the incident angle relative to the X-axis) according to the phase difference between the antennas A and B. The connection line between the antennas A and B is parallel to the X-axis. In this implementation, the closer the AOA of the signal of the electronic device 201 is to 90 degrees, the more the electronic device 100 points to the electronic device 201. In some other embodiments, the electronic device 100 determines the AOA of the signal sent by the electronic device 201 (i.e., the incident angle relative to the Z-axis) according to the phase difference between the antennas B and C. The connection line between the antennas B and C is parallel to the Z-axis. In this implementation, the closer the AOA of the signal of the electronic device 201 is to 90 degrees, the more the electronic device 100 points to the electronic device 201.

[0245] It can be understood that the electronic device 100 may determine the AOA of the signal of the electronic device 201 according to the first measurement request in step S104A, or may determine the AOA of the signal of the electronic device 201 according to the second measurement response in step S104C, or may determine the AOA of the signal of the electronic device 201 according to the average value of the AOAs corresponding to the first measurement request and the second measurement response. No specific limitation is made here.

[0246] (3) The electronic device 100 determines the RSSI of the signal sent by the electronic device 201.

[0247] In some embodiments, the electronic device 100 determines the RSSI of the signal sent by the electronic device 201 according to the average value of the RSSIs of the first measurement request and the second measurement response. In some embodiments, the electronic device 100 determines the RSSI of the signal sent by the electronic device 201 according to the RSSI of the first measurement request or the second measurement response.

[0248] It can be understood that the electronic device 100 may also determine the RSSI of the signal sent by the electronic device 201 according to the RSSI of the first measurement request in step S104A,

[0249] In the embodiments of the present application, it is possible to determine whether there is an obstacle between the electronic device 100 and the electronic device 201 according to the RSSI of the signal sent by the electronic device 201.

[0250] It can be understood that under the non-line-of-sight (NLOS) propagation condition with obstacles, the signal attenuation is large, and under the line-of-sight (LOS) propagation condition without obstacles, the signal attenuation is small. Under the same propagation condition, the farther the distance, the greater the signal attenuation. In the embodiments of the present application, according to the RSSI of the first measurement request signal and / or the second measurement response signal, and the distance of the electronic device 201, it is possible to determine whether there is an obstacle between the electronic device 100 and the electronic device 201.

[0251] In some embodiments, according to the distance between the electronic device 100 and the electronic device 201, a preset RSSI of the signal sent by the electronic device 201 received by the electronic device 100 can be determined. When the RSSI of the signal sent by the electronic device 201 received is less than the preset RSSI, it is determined that there is an obstacle between the electronic device 100 and the electronic device 201, otherwise there is no obstacle.

[0252] In some embodiments, the orientation parameters of the electronic device 201 may include the distance of the electronic device 201, the signal AOA, and the first identifier. Among them, the first identifier of the electronic device 201 is used to characterize whether there is an obstacle between the electronic device 100 and the electronic device 201. For example, the first identifier equal to 1 indicates there is an obstacle, and the first identifier equal to 0 indicates there is no obstacle.

[0253] In some other embodiments, refer to Figure 5E , the electronic device 201 initiates a UWB measurement request, the electronic device 100 calculates the orientation parameters of the electronic device 201, and the electronic device 100 can also use the ranging algorithm 2 to determine the distance of the electronic device 201. Refer to Fig. 5F , step S104 may specifically include S104E to S104G.

[0254] Among them, determining the distance of the electronic device 201 according to T1, T2, T3, T4, T9, and T10 in step S104G specifically includes: the electronic device 100 determines the average one-way flight time T between the electronic device 100 and the electronic device 201 according to T1, T2, T3, T4, T9, and T10. Then, according to the product of the one-way flight time T and the electromagnetic wave propagation speed C, the distance D to the electronic device 201 can be determined as C*T.

[0255] Refer to Figure 5E, the time difference between the sending time T1 of the first measurement request and the receiving time T4 of the first measurement response is equal to Tround1, the time difference between the receiving time T2 of the first measurement request and the sending time T3 of the first measurement response is equal to Trelay1, the time difference between the sending time T3 of the first measurement response and the receiving time T10 of the third measurement response is equal to Tround2, the time difference between the receiving time T6 of the first measurement response and the sending time T9 of the third measurement response is equal to Trelay2, and the one-way flight time T can be as shown in Formula 1.

[0256] In the embodiments of the present application, the electronic device 100 may determine that the target device is the electronic device 201 according to one or more of the distance, signal AOA, and RSSI of the electronic devices 201, 202, and 203.

[0257] Reference Figure 5G , in step S105, the electronic device 100 determines that the target device is the electronic device 201 according to the orientation parameters of the electronic devices 201, 202, and 203, which may specifically include:

[0258] S1. According to the RSSI (or the first identifier) in the orientation parameters of the electronic devices 201, 202, and 203, determine whether there is a device without occlusion from the electronic device 100. If so, execute step S2; if not, execute step S4.

[0259] In some embodiments, according to the distance of the electronic device 201, the preset RSSI of the signal sent by the electronic device 201 received by the electronic device 100 can be determined. When the RSSI of the signal sent by the electronic device 201 is less than the preset RSSI, it is determined that there is occlusion between the electronic device 100 and the electronic device 201; otherwise, there is no occlusion.

[0260] In some embodiments, when the first identifier of the electronic device 201 is equal to the first value (for example, 1), there is no occlusion between the electronic device 201 and the electronic device 100; when the first identifier of the electronic device 201 is equal to the second value (for example, 0), there is occlusion between the electronic device 201 and the electronic device 100.

[0261] S2. Determine whether the number of devices without occlusion among the electronic devices 201, 202, and 203 is equal to 1. If so, execute step S3; if not, execute step S4.

[0262] S3. Determine the above-mentioned electronic device without occlusion as the electronic device 201.

[0263] It can be understood that when there is only one device without occlusion near the electronic device 100, determine this device without occlusion as the target device that the user intends to wake up.

[0264] S4. Determine two electronic devices whose signal AOAs are closest to the preset angle.

[0265] In some embodiments, if step S1 determines that there is no device among the electronic devices 201, 202, and 203 that has no occlusion with the electronic device 100, then in S4, the electronic device 100 determines two electronic devices among the electronic devices 201, 202, and 203 whose signal AOAs are closest to the preset angle.

[0266] In some embodiments, if step S2 determines that the number of devices among the electronic devices 201, 202, and 203 that have no occlusion with the electronic device 100 is greater than 1, then in S4, the electronic device 100 determines two electronic devices among the non-occluded devices of the electronic devices 201, 202, and 203 whose signal AOAs are closest to the preset angle.

[0267] In some embodiments, the electronic device 100 determines the signal AOA of the electronic device 201 according to the phase difference between antenna A and antenna C, and the connection line between antenna A and antenna C is parallel to the Y-axis. In this implementation manner, the above preset angle is equal to 0 degrees. In some other embodiments, the electronic device 100 determines the signal AOA sent by the electronic device 201 according to the phase difference between antenna A and antenna B, and the connection line between antenna A and antenna B is parallel to the X-axis. In this implementation manner, the above preset angle is equal to 90 degrees. In some other embodiments, the electronic device 100 determines the signal AOA sent by the electronic device 201 according to the phase difference between antenna B and antenna C, and the connection line between antenna B and antenna C is parallel to the Z-axis. In this implementation manner, the above preset angle is equal to 90 degrees.

[0268] It can be understood that the above preset angle can be different when the signal AOA determination method of the electronic device 201 is different. In the embodiments of the present application, the above preset angle can also be other values, which are not specifically limited herein.

[0269] S5. Whether the difference between the signal AOAs of the above two electronic devices is greater than the first threshold. If yes, execute step S6; if not, execute step S7.

[0270] For example, the first threshold is 10 degrees.

[0271] S6. Determine that the electronic device whose signal AOA is closer to the preset angle among the above two electronic devices is the electronic device 201.

[0272] S7. Determine that the electronic device with a smaller distance among the above two electronic devices is the electronic device 201.

[0273] It can be understood that in the above embodiments, the electronic device 100 determines that the electronic device closest to the pointing direction of the electronic device 100 and with the shortest distance among the unobstructed devices (or all devices) is the device that the user intends to wake up.

[0274] In some other embodiments of the present application, the direction parameter includes distance and signal AOA. Step S105 may specifically only include S4 to S7. That is, the electronic device 100 determines the device closest to the preset angle or with the shortest distance among the nearby devices as the electronic device 201 according to the orientation parameters of the nearby devices.

[0275] It should be noted that in some embodiments, the user can use one or more electronic devices (such as smartphones, smart bracelets, tablets) to control nearby smart home devices. After the smart home device detects the user's voice command (such as a preset wake-up word), it broadcasts a UWB measurement request, and the user's electronic devices (such as the Figure 5C and Fig. 5F electronic device 100 and the electronic device 500 shown) that receive the above UWB measurement request will both send measurement responses to the electronic device 201, and further can respectively determine the orientation parameters of the electronic device 201 relative to the electronic device 100 and the electronic device 500.

[0276] In some embodiments of the present application, another method for determining a target device according to the orientation parameters of multiple electronic devices is provided, and the specific implementation manner can refer to Figure 5H .

[0277] As Figure 5H shown, after step S2, S8 may further be included.

[0278] S8. Whether the difference between the signal AOA of the unobstructed nearby device and the preset angle is less than a preset difference. If so, step S3 is executed; if not, S9 is executed.

[0279] For example, the preset difference is 20 degrees.

[0280] S9. Determine that the electronic device 100 has no target device.

[0281] As Figure 5H shown, after step S4, S10 may further be included.

[0282] S10. Whether the difference between the signal AOA of the electronic device with the signal AOA closest to the preset angle and the preset angle is less than the preset difference. If so, S5 is executed; if not, S9 is executed.

[0283] In this way, in the case where there are multiple user electronic devices (such as the electronic device 100 and the electronic device 500) that can control smart home devices, the proposed method can reduce the possibility of misjudging the target device.

[0284] Please refer to Fig. 6A , Fig. 6A which shows another device control method provided in the embodiments of the present application. The devices involved in the flowchart of this method include electronic device 100, electronic device 201, electronic device 202, and electronic device 203. In the proposed method, when electronic device 201 detects a voice command (such as a preset wake-up word) from the user, it initiates a UWB measurement request; and electronic device 201 can determine the distance from electronic device 100 according to the measurement response feedback by electronic device 100. The above device control method includes but is not limited to steps S201 to S209, where:

[0285] S201. Electronic device 201 collects ambient sound in real time.

[0286] S202. Electronic device 202 detects a voice command based on the above ambient sound.

[0287] Specifically, reference can be made to the relevant embodiments of step S102. Details are not described herein again.

[0288] S203. Electronic device 201 broadcasts a UWB measurement request, and electronic device 100 receives the above UWB measurement request.

[0289] Specifically, electronic device 201 broadcasts a first measurement request at time T1. The first measurement request carries ID1 and is used to measure the orientation parameters of electronic device 201. At the same time, electronic device 201 records the sending time of the first measurement request as T1. Electronic device 100 receives the first measurement request sent by electronic device 201 at time T2 and records the reception time of the first measurement request as T2.

[0290] S204. Electronic device 100 sends a measurement response to electronic device 201.

[0291] S205. Electronic device 201 determines the orientation parameters of electronic device 201 according to the measurement response sent by electronic device 100.

[0292] S206. Electronic device 201 sends the orientation parameters of electronic device 201 to electronic device 301.

[0293] S207. Electronic device 301 determines that the target device is electronic device 201 according to the orientation parameters of electronic device 201, electronic device 202, and electronic device 203.

[0294] Specifically, how electronic device 301 determines the target device according to the orientation parameters of electronic device 201, electronic device 202, and electronic device 203 can be referred to Figure 5G and Figure 5HRelated embodiments are not described in detail here.

[0295] S208. The electronic device 301 sends first indication information to the electronic device 201.

[0296] S209. In response to the first indication information and the above voice command, the electronic device 201 issues a response message.

[0297] In some embodiments, referring to Figure 6B , the electronic device 201 initiates a UWB measurement request, and the electronic device 201 uses a ranging algorithm 3 to determine the distance of the electronic device 201. Referring to Figure 6C , step S204 may further include step S204A and step S204B.

[0298] S204A. The electronic device 100 determines that the signal AOA of the electronic device 201 is AOA1 according to the phase difference of the first measurement request on different antennas.

[0299] Specifically, how the electronic device 100 determines AOA1 can refer to the related embodiments of step S104D, which are not described in detail here.

[0300] S204B. The electronic device 100 sends a first measurement response to the electronic device 201 at time T3, and the first measurement request carries AOA1, T2, T3, ID1, and ID2. The electronic device 201 receives the first measurement response sent by the electronic device 100 at time T4, and records the reception time of the first measurement response as T4.

[0301] It can be understood that Figure 6B in the illustrated embodiment, the electronic device 100 determines the signal AOA of the electronic device 201. In some embodiments, the smart furniture device can distinguish the direction where the electronic device 100 is located according to the signal sent by the electronic device 100, but cannot distinguish the pointing direction of the electronic device 100.

[0302] Step S205 specifically includes: for the electronic device 100, the electronic device 201 determines that the signal AOA of the electronic device 201 is AOA1, the electronic device 201 determines the distance of the electronic device 201 according to T1, T2, T3, and T4, and the electronic device 201 determines the RSSI of the first measurement response.

[0303] Specifically, for how the electronic device 201 determines whether there is an occlusion based on the RSSI of the first measurement response, reference can be made to step S104D, which will not be elaborated here. The electronic device 201 determines the average one-way flight time T of the signal between the electronic device 100 and the electronic device 201 according to T1, T2, T3, and T4. Then, based on the product of the one-way flight time T and the electromagnetic wave propagation speed C, the distance D from the electronic device 201 can be determined as D = C * T.

[0304] Reference Figure 6B , the time difference between the transmission time T1 of the first measurement request and the reception time T4 of the first measurement response is equal to Tround1, and the time difference between the reception time T2 of the first measurement request and the transmission time T3 of the first measurement response is equal to Trelay1. The one-way flight time T can be expressed as follows:

[0305]

[0306] In some embodiments, reference Figure 6C and Fig.6D , the electronic device 201 can initiate measurement requests multiple times. According to the transceiver times of the multiple measurement requests and multiple measurement responses, the average value of the one-way flight time is obtained using the ranging algorithm 4 shown in Fig.6D to reduce the distance measurement error.

[0307] Next, in combination with the voice interaction scenario, another device control method provided in this application will be introduced. The devices involved in the flowchart of this method include the electronic device 100, the electronic device 201, the electronic device 202, and the electronic device 203. Specifically, reference Fig. 6E , the above device control method includes but is not limited to steps S211 to S216, where:

[0308] S211. The electronic device 201 collects environmental sounds in real time.

[0309] S212. When the electronic device 201 detects a voice command based on the above environmental sounds, it determines the decibel information of the above voice command.

[0310] S213. The electronic device 201 sends the decibel information determined by the electronic device 201 to the electronic device 301.

[0311] Among them, the electronic device 301 can be the electronic device 100, or one of the nearby devices (such as the electronic device 202), or a third-party device such as a router or a gateway. No specific limitation is made here.

[0312] S214. The electronic device 301 determines that the electronic device 201 with the largest decibel information is the target device according to the decibel information of the electronic device 201, the electronic device 202, and the electronic device 203.

[0313] S215. The electronic device 301 sends first indication information to the electronic device 201.

[0314] S216. In response to the first indication information and the above voice command, the electronic device 201 issues a response message.

[0315] In some embodiments, when the electronic device 201 receives and detects a voice command, it determines the energy information of the voice command and sends the energy information to the electronic device 301. The electronic device 301 can also determine, according to the energy information of the voice commands received by the electronic device 201, the electronic device 202, and the electronic device 203, that the electronic device with the maximum energy information is the target device that the user intends to wake up.

[0316] In addition, in combination with the connection and pairing scenario, the embodiments of the present application further provide another device control method, and the proposed method can realize the pairing connection between the electronic device 100 and the target device through a simple operation.

[0317] Exemplarily, as Fig. 7A shown, there are multiple smart home devices near the user, such as the speaker 201, the refrigerator 202, the television 203, the air conditioner 204, etc. When the user intends to pair and connect the electronic device 100 with one of the multiple smart home devices, the user points the electronic device 100 at the target device (for example, the speaker 201). In response to the detected first user operation (for example, the user clicks the back shell of the electronic device 100), the electronic device 100 initiates the measurement of the orientation parameters (such as distance, signal AOA, RSSI, etc.) of the multiple smart home devices. According to the orientation parameters of the multiple smart home devices, it can be determined that the target device that the user intends to pair and connect is the speaker 201; the electronic device 100 can obtain the connection parameters of the speaker 201 and establish a connection with the speaker 201 according to the connection parameters.

[0318] As Fig. 7A shown, the electronic device 100 can be a Huawei mobile phone. After the electronic device 100 successfully establishes a connection with the speaker 201, the speaker 201 can send a voice message "Connected to the Huawei mobile phone". Exemplarily, as Figure 7B shown, after the electronic device 100 successfully establishes a connection with the speaker 201, the electronic device 100 can also display a prompt message 501, and the prompt message 501 is used to prompt the user that the electronic device 100 has established a connection with the speaker 201. The specific content of the prompt message 501 can be "Connected to the speaker".

[0319] In some embodiments, Figure 7BThe exemplary user interface 10 can be the Home screen. The user interface 10 may include a status bar, a navigation bar, a calendar indicator, and a weather indicator. It may also include multiple application icons, such as the icon for file transfer, the icon for the gallery, the icon for music, the icon for smart home, and so on.

[0320] In an embodiment of the present application, after the electronic device 100 establishes a connection with the speaker 201, the user can control the speaker 201 through the electronic device 100. Exemplarily, as Figure 7C shown, the electronic device 100 can receive an input operation (e.g., a click operation) by the user on the prompt message 501, and in response to the detected input operation, the electronic device 100 displays the control interface 11 of the speaker 201.

[0321] The user interface 11 may include: an application title bar 601, a connection card 602, a music card 603, and a nearby devices card 604. Among them:

[0322] The connection card 602 may include an indication information 602A and a connection method 602B. Among them, the indication information 602A is used to represent whether the speaker 201 is currently in an online state or an offline state. The online state means that the speaker 201 is currently connected to the Internet, and the offline state means that the speaker 201 is currently not connected to the Internet. The connection method 602B is used to indicate the current connection method between the speaker 201 and the electronic device 100. When the current connection method between the speaker 201 and the electronic device 100 is Bluetooth, the connection method 602B can be presented as the Bluetooth icon. When the current connection method between the speaker 201 and the electronic device 100 is WiFi, the connection method 602B can be presented as the WiFi icon.

[0323] The music card 603 may include a music name 603A, a pause control 603B, a previous control 603C, a next control 603D, a progress bar 603E, a volume 603F, and a more control 603H.

[0324] The pause control 603B can receive an input operation (e.g., a click operation) by the user. In response to the detected user operation, the speaker 201 pauses playing music.

[0325] The previous control 603C can receive an input operation (e.g., a click operation) by the user. In response to the detected user operation, the speaker 201 can play the previous song in the current music playlist.

[0326] The next control 603D can receive an input operation (e.g., a click operation) by the user. In response to the detected user operation, the speaker 201 can play the next song in the current music playlist.

[0327] The progress bar 603E can indicate the total duration of the current song (e.g., 04:42) and the played duration (e.g., 00:42).

[0328] The volume 603F can receive user input operations (e.g., a sliding operation). In response to the detected user operation, the speaker 201 adjusts the playback volume of the speaker 201.

[0329] The more controls 603H can receive user input operations (e.g., a sliding operation). In response to the detected user operation, the electronic device 100 can display more function options of the music card, such as sharing, deleting, downloading, etc.

[0330] The nearby device card 604 can include icons of one or more nearby devices, such as the air conditioner icon 604A, the living room TV icon 604B, and the refrigerator icon 604C. The arrangement order of the icons of multiple nearby devices in the nearby device card 604 can be based on factors such as distance or usage frequency. The nearby device card 604 can receive user input operations (e.g., a long press operation). In response to the detected user operation, the electronic device 100 can display more icons of nearby devices. The air conditioner icon 604A, the living room TV icon 604B, or the refrigerator icon 604C can receive user input operations (e.g., a click operation). In response to the detected user operation, the electronic device 100 can display the control interface corresponding to the device.

[0331] In addition to the way of displaying the control interface 11 of the speaker 201 as shown in 7C, there can be other ways, which are not specifically limited here.

[0332] Exemplarily, as Fig.7D shown, the user interface 10 includes a smart home icon 502. The electronic device 100 can receive a user input operation on the smart home icon 502 (e.g., a click operation). In response to the above input operation, the electronic device 100 displays the user interface 12 of the smart home.

[0333] The user interface 12 can include: an application title bar 701, a region selection bar 702, a home device display bar 703, an add control 704, and a function bar 705. Among them:

[0334] The region selection bar 702 can include: an all control 702A, a living room control 702B, and a master bedroom control 702C. Among them, any one of the all control 702A, the living room control 702B, and the master bedroom control 702C can receive a user input operation (e.g., a click operation). In response to the detected input operation, the electronic device 100 can display the home devices in the area corresponding to the control in the home device display bar 703.

[0335] As Fig.7DAs shown, the home device display bar 703 displays multiple home devices in the living room. The multiple home devices include: speaker 703A, living room TV 703B, air conditioner 703C in the living room, refrigerator 703D, and table lamp 703E in the living room. Any one of the multiple home devices displayed in the home device display bar 703 can receive a user input operation (e.g., a click operation). In response to the detected input operation, the electronic device 100 displays the control interface of this home device.

[0336] Exemplarily, as Fig. 7E shown, the electronic device 100 receives a user operation (e.g., a click operation) by the user on the speaker 703A. In response to the detected above input operation, the electronic device 100 displays the control interface 11 of the speaker.

[0337] The add control 704 can receive a user input operation (e.g., a click operation). In response to the detected input operation, the electronic device 100 displays an interface for adding home devices.

[0338] The function bar 705 may include a smart home icon 705A, a mall icon 705B, a cool play icon 705C, and a user center icon 705D. It receives a user input operation (e.g., a click operation). In response to the detected input operation, the electronic device 100 displays the interface corresponding to this icon.

[0339] Exemplarily, as Figure 7F shown, when the user intends to pair and connect the electronic device 100 with the TV 203, the user points the electronic device 100 at the TV 203. The electronic device 100 responds to the detected first user operation by the user (e.g., the user clicks the back shell of the electronic device 100). The electronic device 100 measures the orientation parameters of the above multiple smart home devices, and based on the above multiple smart home device orientation parameters, determines that the target device the user intends to pair and connect to is the TV 203. The electronic device 100 obtains the connection parameters of the TV 203 and establishes a connection with the TV 203 according to the above connection parameters. After establishing the connection, a prompt message (e.g., the text message "Connected to Huawei mobile phone") can be displayed on the display screen of the TV 203. In addition, after the electronic device 100 and the TV 203 establish a connection, the TV 203 can be controlled through the control interface of the TV 203 displayed on the electronic device 100. Exemplarily, the control interface 13 of the TV 203 is as Figure 7G shown.

[0340] Next, in combination with the pairing and connection scenario, another device control method provided in this application will be introduced. Among them, the devices involved in the method flowchart include the electronic device 100, the electronic device 201, the electronic device 202, and the electronic device 203. The devices involved in the method flowchart may include more or fewer devices. Fig. 8A This is only an exemplary explanation of the present application and should not constitute a limitation.

[0341] Please refer to Fig. 8A , Fig. 8A which shows a device control method provided in an embodiment of the present application. When the electronic device 100 detects a first user operation in the proposed method, it initiates a UWB measurement request. And based on the measurement response of the electronic device 201, it determines the distance between the electronic device 100 and the electronic device 201. Specifically, the above device control method includes but is not limited to steps S301 to S307, where:

[0342] S301. The electronic device 100 detects a first user operation.

[0343] In some embodiments, the electronic device 100 detects a change in the attitude of the electronic device 100 through an acceleration sensor and / or a gyroscope sensor, and determines the pointing operation of the electronic device 100 based on the change in the attitude of the electronic device 100. The first user operation is the above pointing operation.

[0344] In some embodiments, the user points the electronic device 100 at a nearby device (such as the electronic device 201) and performs the first user operation. The electronic device 100 detects the above first user operation through an acceleration sensor and / or a gyroscope sensor. The first user operation may be that the user taps the back shell of the electronic device 100, or the user taps the side frame of the electronic device 100.

[0345] Not limited to the above first user operation, the user can also perform the first user operation through a voice command. For example, the specific content of the voice command can be "pairing connection"; the user can also perform the first user operation through a button of the electronic device 100, and no specific limitation is made here.

[0346] S302. In response to the first user operation, the electronic device 100 broadcasts a UWB measurement request, and the electronic device 201 receives the above UWB measurement request.

[0347] In some embodiments, referring to Figure 8B , the electronic device 100 initiates a UWB measurement request, and the electronic device 100 uses ranging algorithm 3 to determine the distance of the electronic device 201. Referring to Figure 8C , step S302 may specifically include: the electronic device 100 broadcasts a fourth measurement request at time T11, and records the sending time of the fourth measurement request as T11. The fourth measurement request carries ID2. The electronic device 201 receives the fourth measurement request sent by the electronic device 100 at time T12, and records the receiving time of the fourth measurement request as T12.

[0348] S303. The electronic device 201 sends a measurement response to the electronic device 100.

[0349] Specifically, referring to Figure 8C , the electronic device 201 sends a fourth measurement response to the electronic device 201 at time T13. The first measurement request carries T12, T13, ID1, and ID2. The electronic device 201 receives the fourth measurement response sent by the electronic device 100 at time T4, and records the reception time of the fourth measurement response as time T14.

[0350] S304. The electronic device 100 determines the orientation parameter of the electronic device 201 according to the measurement response sent by the electronic device 201.

[0351] Specifically, the orientation parameter of the electronic device 201 may include one or more of the distance between the electronic device 201 and the electronic device 100, the signal AOA of the electronic device 201, and the RSSI of the signal sent by the electronic device 201. The electronic device 100 determines the one-way flight time of the signal according to T11, T12, T13, T14, and formula (3), and determines the distance of the electronic device 201 according to the one-way flight time; the electronic device 100 determines the signal AOA and RSSI of the electronic device 201 according to the fourth measurement request. Specifically, how the electronic device 100 determines the orientation parameter of the electronic device 201 can refer to the relevant embodiments of step S104G. Details are not described herein again.

[0352] S305. The electronic device 100 determines that the target device is the electronic device 201 according to the orientation parameters of the electronic device 201, the electronic device 202, and the electronic device 203.

[0353] Specifically, how the electronic device 100 determines the target device according to the orientation parameters of the electronic device 201, the electronic device 202, and the electronic device 203 can refer to Figure 5G the relevant embodiments. Details are not described herein again.

[0354] S306. The electronic device 100 sends a connection request to the electronic device 201, and the electronic device 201 receives the connection request sent by the electronic device 100.

[0355] S307. The electronic device 201 sends the first capability information and corresponding connection parameters to the electronic device 100, and the above first capability information is used to characterize the communication mode supported by the electronic device 201.

[0356] In some embodiments, when the above first capability information characterizes the WiFi communication mode, the corresponding connection parameters may include: device ID, pairing secret key and other parameters. The electronic device 100 can use the connection process of the IEE802.11 standard to establish a WiFi connection with the electronic device 201 based on the above connection parameters;

[0357] In some embodiments, when the first capability information characterizes the Bluetooth communication mode, the corresponding connection parameters may include: parameters such as a secret key, an encryption method, and a Service Set Identifier (SSID). The electronic device 100 may use the connection process of the IEE802.15.1 standard to establish a Bluetooth connection with the electronic device 201 based on the above connection parameters.

[0358] In some embodiments, when the first capability information characterizes both the WiFi communication mode and the Bluetooth communication mode, the electronic device 100 may preferably use the connection process of the IEE802.11 standard to establish a WiFi connection with the electronic device 201 based on the above connection parameters.

[0359] In some embodiments, the fourth measurement request may further carry second capability information, which is used to characterize all communication modes supported by the electronic device 100, such as Bluetooth, WiFi, etc. The fourth measurement response may further carry the first capability information and the corresponding connection parameters. Among them, the second capability information includes the first capability information, and the second capability information is determined by the electronic device 201 based on the second capability information. In this way, after step S305, the electronic device 100 can directly establish a connection with the electronic device 201 according to the first capability information and the corresponding connection parameters in the fourth measurement response, without sending a connection request again.

[0360] In some embodiments, the electronic device 100 may also initiate measurement requests multiple times, and use the ranging algorithm 4 to obtain the average one-way flight time according to the transmission and reception times of the multiple measurement requests and multiple measurement responses, so as to reduce the distance measurement error.

[0361] Please refer to Fig.8D , Fig.8D which shows another device control method provided in the embodiments of the present application. The devices involved in the flowchart of this method include the electronic device 100, the electronic device 201, the electronic device 202, and the electronic device 203. In the proposed method, when the electronic device 100 detects a first user operation, it initiates a UWB measurement request; and the electronic device 201 determines the distance from the electronic device 100 according to the UWB measurement request. Specifically, the above device control method includes but is not limited to steps S401 to S408, where:

[0362] S401. The electronic device 100 detects a first user operation.

[0363] S402. In response to the above first user operation, the electronic device 100 broadcasts a UWB measurement request.

[0364] In some embodiments, step 402 may specifically include: In response to the above first user operation, at time T11, the electronic device 100 broadcasts a fourth measurement request, records the sending time of the fourth measurement request as T11, and the fourth measurement request carries ID2. The electronic device 201 receives the fourth measurement request sent by the electronic device 100 at time T12 and records the receiving time of the fourth measurement request as T12.

[0365] S403. The electronic device 201 determines the orientation parameter of the electronic device 201 according to the above UWB measurement request.

[0366] S404. The electronic device 201 sends the orientation parameter of the electronic device 201 to the electronic device 301.

[0367] S405. The electronic device 301 determines that the target device is the electronic device 201 according to the orientation parameters of the electronic devices 201, 202, and 203.

[0368] Specifically, for how the electronic device 301 determines the target device according to the orientation parameters of the electronic devices 201, 202, and 203, reference may be made to Figure 5G the relevant embodiments. Details are not described herein again.

[0369] S406. The electronic device 301 sends the second indication information to the electronic device 100.

[0370] S407. In response to the second indication information, the electronic device 100 sends a connection request to the electronic device 201.

[0371] S408. The electronic device 201 sends the first capability information and corresponding connection parameters to the electronic device 100.

[0372] In some embodiments, referring to Fig. 8E , the electronic device 100 initiates a UEB measurement request, and the electronic device 201 calculates the distance between the electronic device 100 and the electronic device 201 using the bilateral two-way algorithm 2. Specifically, referring to Figure 8F , step S403 may further include S403A to S403D. Among them:

[0373] S403A. At time T13, the electronic device 201 sends a fourth measurement response to the electronic device 100, and the fourth measurement response carries ID1 and ID2.

[0374] Specifically, at time T13, the electronic device 201 sends a fourth measurement response to the electronic device 100 and records the sending time of the fourth measurement response as T13. The fourth measurement response carries ID1 and ID2. The electronic device 100 receives the fourth measurement response sent by the electronic device 201 at time T14 and records the receiving time of the fourth measurement response as T14.

[0375] S403B. The electronic device 100 determines that the signal AOA of the electronic device 201 is AOA3 according to the phase difference of the fourth measurement response on different antennas.

[0376] Specifically, for how to determine AOA3 according to the phase difference of the fourth measurement response on different antennas, reference can be made to the relevant embodiments of step S104G, which will not be elaborated here.

[0377] S403C. The electronic device 100 sends a fifth measurement response to the electronic device 201. The fifth measurement response carries AOA3, T11, T14, T15, ID1 and ID2.

[0378] S403D. Determine that the signal AOA of the electronic device 201 is AOA3, determine the distance of the electronic device 201 according to T11, T12, T13, T14, T15 and T16, and determine the RSSI of the electronic device 201 according to the fourth measurement request and / or the fifth measurement response.

[0379] Specifically, the electronic device determines the one-way flight time of the signal according to T11, T12, T13, T14, T15, T16 and formula (1), and determines the distance of the electronic device 201 according to the one-way flight time.

[0380] Similarly, in some embodiments, the fourth measurement request may further carry first capability information, and the first capability information is used to characterize one or more communication modes supported by the electronic device 100, such as Bluetooth, WiFi, etc. The fourth measurement response may further carry second capability information and connection parameters, and the second capability information is used to characterize the communication mode selected and supported by the electronic device 201. After step S406, the electronic device 100 can directly establish a connection with the electronic device 201 according to the connection parameters in the fourth measurement response without sending a connection request again.

[0381] In other embodiments, when the electronic device 100 initiates a UWB measurement request, the electronic device 201 may also use ranging algorithm 1 to determine the distance of the electronic device 201. Ranging algorithm 1 can refer to Figure 5B the embodiments, which will not be elaborated here.

[0382] Exemplarily, Fig. 9AAnother device control method provided in an embodiment of the present application is shown. The devices involved in the flowchart of this method include electronic device 100, electronic device 201, electronic device 202, and electronic device 203. In the proposed method, electronic device 201 periodically broadcasts a UWB measurement request; when electronic device 100 detects a first user operation, electronic device 100 determines the orientation parameter of electronic device 201 according to the UWB measurement request broadcast by electronic device 201. Specifically, the above device control method includes but is not limited to steps S501 to S505, where:

[0383] S501. Electronic device 201 periodically broadcasts a UWB measurement request.

[0384] S502. In response to the detected first user operation, electronic device 100 determines the orientation parameter of electronic device 201 according to the above UWB measurement request.

[0385] Specifically, in response to the detected first user operation, electronic device 100 determines the orientation parameter of electronic device 201 according to the sixth measurement request broadcast by electronic device 201. The sixth measurement request carries ID1 and the sending time T17 of the sixth measurement request. Electronic device 100 receives the fourth measurement request sent by electronic device 100 at time T18 and records the reception time of the fourth measurement request as T18.

[0386] S503. Electronic device 100 determines that the target device is electronic device 201 according to the orientation parameters of electronic device 201, electronic device 202, and electronic device 203.

[0387] S504. Electronic device 100 sends a connection request to electronic device 201.

[0388] S505. Electronic device 201 sends the first capability information and corresponding connection parameters to electronic device 100.

[0389] In some embodiments, referring to Fig. 9B , electronic device 201 initiates a UWB measurement request, and electronic device 100 calculates the distance between electronic device 100 and electronic device 201 using ranging algorithm 2. Specifically, referring to Fig. 9C , step S502 may further include S502A to S502C. Where:

[0390] S502A. In response to the detected first user operation, at time T19, electronic device 100 sends a sixth measurement response to electronic device 201 and records the sending time of the sixth measurement response as T19. The sixth measurement response carries ID1 and ID2. Electronic device 201 receives the sixth measurement response sent by electronic device 100 at time T20 and records the reception time of the sixth measurement response as T20.

[0391] S502B. At time T21, the electronic device 100 sends a seventh measurement response to the electronic device 201. The seventh measurement response carries T20, T21, ID1, and ID2. The electronic device 201 receives the seventh measurement response sent by the electronic device 100 at time T22, and records the reception time of the seventh measurement response as T22.

[0392] S502C. The electronic device 100 determines the distance of the electronic device 201 based on T17, T18, T19, T20, T21, and T22, and determines the signal AOA and RSSI of the electronic device 201 based on the sixth measurement request and / or the seventh measurement response.

[0393] Specifically, the electronic device 100 determines the one-way flight time of the signal based on T17, T18, T19, T20, T21, T22, and formula (1), and then determines the distance of the electronic device 201 based on the one-way flight time. For how to determine the signal AOA and RSSI of the electronic device 201 based on the sixth measurement request and / or the seventh measurement response, reference can be made to the relevant embodiments of step S104G, which will not be elaborated here.

[0394] In some embodiments, the sixth measurement request may further carry third capability information, which is used to characterize one or more communication modes that the electronic device 201 can support, such as Bluetooth, WiFi, etc. The sixth measurement response may further carry fourth capability information, which is used to characterize a communication mode selected by the electronic device 100 according to the third capability information and that can be supported. The seventh measurement response may further carry connection parameters corresponding to the fourth capability information of the electronic device 201. After step S503, the electronic device 100 can directly establish a connection with the electronic device 201 according to the connection parameters in the seventh measurement response without sending a connection request again.

[0395] In some embodiments, referring to Fig.9D , when the electronic device 201 initiates a UWB measurement request, the electronic device 100 can also calculate the distance between the electronic device 100 and the electronic device 201 using ranging algorithm 1. In some embodiments, referring to Figure 6B , when the electronic device 201 initiates a UWB measurement request, the electronic device 201 can also calculate the distance between the electronic device 100 and the electronic device 201 using the one-sided two-way algorithm 1. In some embodiments, referring to Fig.6D , when the electronic device 201 initiates a UEB measurement request, the electronic device 201 can also calculate the distance between the electronic device 100 and the electronic device 201 using the one-sided two-way algorithm 2. No specific limitation is made here.

[0396] In the embodiments of the present application, the software system of an electronic device (e.g., electronic device 100) may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. Taking the Android system with a layered architecture as an example in the embodiments of the present application, the software structure of the electronic device 100 is exemplarily described.

[0397] See Fig. 10A , Fig. 10A which shows a software structure block diagram of an electronic device exemplarily provided in the embodiments of the present application. The electronic device can determine the orientation parameters (such as distance, signal AOA, and RSSI) of nearby devices through UWB positioning technology, and then determine the target device that the user intends to wake up or pair and connect with according to the orientation parameters of multiple nearby devices. The electronic device can establish a wireless communication connection with the target device through one or more wireless communication protocols among UWB, Bluetooth, WLAN, and infrared rays, and perform data transmission.

[0398] As Fig. 10A shown, the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into an application layer, an application framework layer, a protocol stack, a hardware abstraction layer (HAL) layer, and a kernel layer from top to bottom.

[0399] Among them:

[0400] The application layer includes a series of application packages, such as smart home, Bluetooth, WLAN, etc. It may also include applications such as a camera, a gallery, a call, music, and video.

[0401] Among them, the smart home APP is a software program that can select and control various smart home devices in the home and is installed on the electronic device used by the user. The smart home APP can be an application pre-installed when the electronic device leaves the factory, or an application downloaded from the network or obtained from other devices during the user's use of the electronic device. The smart home APP can refer to FIG. 7A to FIG. 7G the relevant descriptions of the embodiments.

[0402] The application framework layer provides application programming interfaces (APIs) and programming frameworks for the applications in the application layer. The application framework layer includes some predefined functions.

[0403] As Fig. 10AAs shown, the application framework layer mainly includes APIs and system services (System Server). Among them, the APIs are used to implement communication between the application layer, the protocol stack, the HAL layer, and the kernel layer (kernel). For example, it can provide communication between "smart home" and the HAL layer and the kernel layer (kernel). The APIs can include one or more of UWB API, Bluetooth API, WLAN API, and infrared API. Correspondingly, the system services can include one or more of UWB service, Bluetooth service, WLAN service, and infrared service. The electronic device 100 can detect the orientation parameters of the devices near the electronic device 100 by calling one or more of the UWB API, Bluetooth API, WLAN API, and infrared API to call the corresponding system services. It can also establish a wireless communication connection with nearby devices and perform data transmission by calling one or more of the UWB API, Bluetooth API, WLAN API, and infrared API to call the corresponding system services.

[0404] Among them, the UWB service can specifically include one or more services, such as UWB positioning service. The UWB positioning service can include orientation parameter measurement, where the orientation parameter measurement includes one or more of distance measurement, AOA measurement, and RSSI measurement. For example, the electronic device 100 calls the UWB positioning service through the UWB API to detect the orientation parameters of the devices near the electronic device 100.

[0405] In the embodiments of the present application, the application framework layer can also newly add a motion detector for logically judging the input events obtained and identifying the types of the input events. For example, by information such as the touch coordinates and the timestamp of the touch operation included in the input event, it is judged whether the input event is a knuckle touch event or a fingertip touch event, etc. At the same time, the motion detector can also record the trajectory of the input event and determine the gesture rules of the input event, and respond to different operations according to different gestures. For example, by information such as the acceleration of the electronic device on the three axes included in the input event (for example, the user's finger taps the back or side border of the electronic device), it is judged that the input event is a tap event, etc. For example, by information such as the attitude change of the electronic device and the timestamp of the attitude change included in the input event (for example, the user holds the electronic device for a pointing operation), it is judged that the input event is a pointing event, etc.

[0406] The protocol stack defines multiple profiles and core protocols. Each profile defines its corresponding message format and application rules. The profile can be a UWB service (Application), or it can also be a Bluetooth service, a WLAN service, etc. Exemplarily, such as Fig. 9C As shown, the protocol stack may include a UWB protocol stack, a UWB hardware service module, and a UWB time management module. Among them, the UWB protocol stack may define the message format of UWB transceiver signals (including receiving signals and sending signals), the data format conversion of UWB transceiver signals, the UWB positioning algorithm, etc. The UWB hardware service module may be used to manage the life cycle of the UWB firmware and the software update supporting the UWB firmware. The UWB time management module may be used to record and manage the timestamps of the UWB transceiver signals. In some embodiments, the protocol stack may also include one or more of a Bluetooth protocol stack, a WLAN protocol stack, and an infrared protocol stack. For example, the UWB positioning service of the application framework layer sends a UWB measurement instruction to the UWB protocol stack, instructing the UWB protocol stack to measure the azimuth parameters.

[0407] The kernel layer is the layer between hardware and software. The kernel layer may include one or more of the UWB driver, Bluetooth driver, and WLAN driver, and may also include display drivers, camera drivers, audio drivers, sensor drivers, and so on. The HAL layer and the kernel layer (kernel) are used to perform corresponding operations in response to the functions called by the system services in the application framework layer. For example, in response to the UWB measurement instruction sent by the UWB protocol stack when the UWB positioning service calls, the UWB chip driver sends a UWB measurement request through a hardware device (e.g., a UWB chip).

[0408] In the example of this application, the software structure framework can be on the user's electronic device (such as the electronic device 100 and the electronic device 500 in the above embodiment) or on a smart home device (such as the electronic device 201, the electronic device 202, the electronic device 203, the electronic device 204, etc. in the above embodiment).

[0409] In the voice wake-up scenario, the UWB positioning initiating device is a smart home device (such as electronic device 201). In the pairing connection scenario, the UWB positioning initiating device can be the user's electronic device (such as electronic device 201) or a smart home device (such as electronic device 201).

[0410] Below Fig. 8A Taking the pairing connection scenario in the embodiment as an example, the workflow of the software and hardware of the electronic device 100 is exemplified.

[0411] The acceleration sensor detects a tapping operation (such as tapping the back case of the electronic device or the side frame of the electronic device), and the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the tapping operation into a raw input event (including information such as the tapping position and the timestamp of the tapping operation). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies that the input event is a pairing connection to a smart home device (such as the electronic device 201). The smart home application calls the UWB API of the application framework layer to start the UWB positioning service. The UWB positioning service sends a UWB measurement instruction to the UWB HAL interface in the HAL layer by calling the UWB protocol stack. The UWB HAL interface sends a UWB measurement request to the kernel layer, and the kernel layer drives the UWB chip to broadcast a measurement request (such as the first measurement request) by calling the UWB chip driver according to the above UWB measurement request, and at the same time uses the UWB time management module to record the UWB measurement request sending timestamp.

[0412] In some embodiments of the present application, referring to 8B, the electronic device 100 uses ranging algorithm 3 for distance measurement, the electronic device 100 initiates a UWB positioning measurement, and the electronic device 100 calculates the azimuth parameters. After the UWB chip sends a measurement request (such as the first measurement request) through the antenna, when the UWB chip receives a measurement response (such as the first measurement response) through the antenna, the corresponding measurement parameters are sent to the kernel layer. The measurement parameters may include the timestamps carried in the above measurement response (for example, the reception moment of the first measurement request and the transmission moment of the first measurement response), the reception moment of the first measurement response, the phase difference information of the above measurement response on different antennas, and the RSSI of the above measurement response. The kernel layer sends the above measurement parameters to the UWB protocol stack by calling the UWB HAL interface. After the UWB protocol stack processes the above measurement parameters through the UWB positioning measurement algorithm (such as the distance measurement algorithm, the AOA measurement algorithm, the RSSI measurement algorithm), the azimuth parameters (such as distance, signal AOA and RSSI) of the above electronic device 201 are determined. For example, according to the timestamps carried in the measurement response, the reception moment of the first measurement response, and the transmission moment of the first measurement request recorded by the UWB time management module, the distance of the electronic device 201 is determined using the ranging algorithm 3. The UWB protocol stack sends the above azimuth parameters of the electronic device 201 to the UWB service of the application framework layer, and the UWB service can determine that the target device is the electronic device 201 according to the azimuth parameters of multiple nearby devices.

[0413] In some embodiments, after the UWB service in the application framework layer determines the target device, it sends the first connection request to the HAL and the kernel layer by calling the UWB protocol stack. The UWB chip in the kernel layer drives the UWB chip to send the above connection request to the electronic device 201 to request the establishment of a UWB communication connection and perform data transmission. Optionally, the UWB service in the application framework layer can also call the Bluetooth service, the WLAN service, or the infrared service to send the first connection request to the electronic device 201. For example, the UWB service starts the Bluetooth service and calls the Bluetooth protocol stack through the Bluetooth service, thereby sending the first connection request to the HAL and the kernel layer. The Bluetooth chip in the kernel layer drives the Bluetooth chip to send the first connection request to the electronic device 201 to request the establishment of a Bluetooth communication connection and perform data transmission.

[0414] Exemplarily, referring to Fig. 10B , is another UWB software framework diagram exemplarily provided by the embodiments of the present application. This software framework can be on the user's electronic device (such as the electronic device 100 and the electronic device 500 in the above embodiments), or on a smart home device (such as the electronic device 201, the electronic device 202, the electronic device 203, the electronic device 204, etc. in the above embodiments).

[0415] Combined with Fig. 10A and Fig. 10B , the corresponding relationships between the various modules are described below.

[0416] Fig. 10B The application layer (Android Applications) in Fig. 10A corresponds to the application layer in

[0417] Fig. 10B The (Vendor UWB Frameworks APIs) in Fig. 10A corresponds to the API calls in the application framework layer in

[0418] Fig. 10B The ranging service layer in Fig. 10A corresponds to the system services in the application framework layer in

[0419] Fig. 10B The UWB control interface protocol stack (UCI stack) in Fig. 10A corresponds to the UWB protocol stack in

[0420] Fig. 10B The UWB firmware download (HBCI UWB FW download) in Fig. 10A corresponds to the UWB management module in

[0421] Fig. 10B The time management module (TML) in Fig. 10A corresponds to the UWB time management module in

[0422] Fig. 10B The synchronous peripheral interface driver (SPI driver) in Fig. 10A corresponds to the kernel layer in

[0423] Fig. 10B The Hwlios HW in

[0424] Here, Fig. 10B the functions of each layer in Fig. 10A can refer to the software framework embodiments shown in

[0425] and will not be elaborated here.

[0426] As Fig. 10C shown, an exemplary hardware system architecture is provided in the embodiments of the present application, which may include but is not limited to an application processor 901, a UWB chip 902, radio frequency modules (including radio frequency module 903A and radio frequency module 903B), and antennas (antenna 904A and antenna 904B).

[0427] Among them, the first ends of both radio frequency module 903A and radio frequency module 903B are connected to the UWB chip 902, the second end of radio frequency module 903A is connected to antenna 904A (such as Figure 3E the antenna A shown in Figure 3E ), and the second end of radio frequency module 903B is connected to antenna 904B (such as Fig. 10C the antenna C shown in

[0428] In some embodiments, when the electronic device (e.g., electronic device 201) receives and detects the user's wake-up word, or when the electronic device (e.g., electronic device 100) detects the user's first user operation, the application processor 901 starts the UWB positioning service and sends a measurement instruction to the UWB chip 902 through the UWB positioning service, instructing the UWB chip 902 to perform measurements on azimuth parameters. According to the above measurement instruction, the UWB chip 902 broadcasts a UWB measurement request through the radio frequency module (radio frequency module 903A and / or radio frequency module 903B) and the corresponding antenna.

[0429] In the embodiments of the present application, the electronic device can perform distance measurement, AOA measurement, and RSSI measurement through the UWB chip and its corresponding antenna. The electronic device can also perform wireless data transmission through the UWB chip and its corresponding antenna.

[0430] In some embodiments, the above Fig. 10C The hardware system shown may also include one or more of a Bluetooth chip 905, a WLAN chip 906, and an infrared chip 907. Any one of the Bluetooth chip 905, the WLAN chip 906, and the infrared chip 907 is connected to the antenna through one or more radio frequency modules. Among them, the antennas to which any two of the UWB chip 902, the Bluetooth chip 905, the WLAN chip 906, and the infrared chip 907 are connected through the radio frequency module can be reused or independent of each other. The electronic device can also perform wireless data transmission through one or more of the Bluetooth chip 905, the WLAN chip 906, and the infrared chip 907. In some embodiments, the UWB chip 902 can be integrated into the SOC, and the UWB chip 902 can also be integrated with other chips (e.g., the Bluetooth chip 905) into one body.

[0431] In the example of the present application, the hardware system architecture can be on the user's electronic device (e.g., the electronic device 100 and the electronic device 500 in the above embodiments), or on a smart home device (e.g., the electronic device 201, the electronic device 202, the electronic device 203, the electronic device 204, etc. in the above embodiments).

[0432] The following introduces the UWB chip system architecture 900 in the present application.

[0433] As Fig. 10DAs shown in the figure, an embodiment of the present application provides a UWB chip system architecture 900, which may include, but is not limited to, an application processor (AP) 901 and a UWB chip 902. Among them, the application processor 901 may include a UWB positioning service 901A and a UWB protocol stack 901B, and the UWB chip 902 may include a UWB positioning management module 902A and a UWB positioning measurement module 902B. Among them, the UWB positioning service 901A may be a function / service / application that requires distance measurement, AOA measurement, and / or RSSI measurement.

[0434] In the example of the present application, the UWB chip system 900 may be on a user's electronic device (such as the electronic device 100 and the electronic device 500 in the above embodiments), or on a smart home device (such as the electronic device 201, the electronic device 202, the electronic device 203, the electronic device 204, etc. in the above embodiments).

[0435] Take Fig. 8A the pairing connection scenario in the embodiment as an example. For a UWB positioning initiating device (such as the electronic device 100), the following steps may be implemented in the UWB chip system 900:

[0436] 1. The UWB positioning service 901A sends a start instruction to the UWB protocol stack 901B, instructing the UWB protocol stack 901B to perform UWB positioning, that is, to start measuring azimuth parameters (including distance measurement, AOA measurement, RSSI measurement).

[0437] 2. The UWB protocol stack 901B may send a UWB positioning broadcast instruction to the UWB positioning management module 902A, instructing the UWB positioning management module 902A to perform positioning broadcast.

[0438] 3. The UWB positioning management module 902A may trigger the UWB positioning measurement module 902B to broadcast a UWB positioning measurement request (such as a third measurement request).

[0439] 4. After receiving a UWB positioning measurement response (such as a third measurement response) sent by a nearby device (such as the electronic device 201), the UWB positioning measurement module 902B may send the measurement response to the UWB positioning management module 901A.

[0440] 5. After receiving the measurement response, the UWB positioning management module 901A may parse measurement parameters such as the reception time of the above measurement request, the transmission time of the above measurement response, phase difference information, and the RSSI of the measurement response from the measurement response. Then, the UWB positioning management module 901A may send the above measurement parameters to the UWB positioning protocol stack 901B.

[0441] 6. After receiving the above measurement parameters, the UWB positioning protocol stack 901B determines the orientation parameters of nearby devices through the UWB positioning algorithm (including determining the distance through the distance measurement algorithm, determining the AOA of the signal through the AOA measurement algorithm, and determining whether there is an occlusion of the electronic device 201 based on the above distance and the RSSI of the measurement response).

[0442] 7. After calculating the orientation parameters, the UWB protocol stack 901B can send the orientation parameters of the nearby device to the UWB positioning service 901A.

[0443] 8. The UWB positioning service 901A can determine the target device based on the orientation parameters of multiple nearby devices.

[0444] Based on the foregoing embodiments, the device control method provided by the embodiments of the present application will be introduced next. The device control method includes but is not limited to steps S601 to S603, where:

[0445] S601. The second device sends a first message; the first message carries the identifier of the second device; the third device sends a second message; the second message carries the identifier of the third device;

[0446] Among them, the second device may be the electronic device 201 in the foregoing embodiments, the third device may be the electronic device 202 or the electronic device 203 in the foregoing embodiments, the identifier of the second device may be ID1 of the electronic device 201, and the identifier of the third device may be the identity identifier of the electronic device 202. Refer to Figure 2 In the related embodiments, the electronic device 201, the electronic device 202, or the electronic device 203 may be a smart home device such as a television, a speaker, or an air conditioner.

[0447] In some embodiments, the first device may initiate a positioning measurement, and the first device determines the AOAs of the second device and the third device. The above first message and second message may be Figure 5A the UWB measurement request in the related embodiments, or may also be Figure 5C and Fig. 5F the first measurement request in the related embodiments; the above first message and second message may also be Figure 8C the fourth measurement response in the related embodiments. In some embodiments, the second device and the third device may initiate a positioning measurement, and the first device determines the AOAs of the second device and the third device. The above first message and second message may be Fig. 9A the UWB measurement request in the related embodiments, or may also be the sixth measurement request in the 9C related embodiments.

[0448] S602. The first device determines the angle of arrival (AOA) of the signal of the second device based on the received first message, and determines the AOA of the signal of the third device based on the received second message.

[0449] Among them, the first device may be the electronic device 100 in the foregoing embodiments, and the identifier of the first device may be ID2 of the electronic device 100. Refer to Figure 2 the relevant embodiments, the electronic device 100 may be a portable terminal device such as a smart phone, a smart bracelet, a tablet, etc. How to determine the signal AOA can refer to Figure 5D the relevant embodiments and will not be elaborated here.

[0450] S603. The first device sends a third message to the second device based on the AOA of the signal of the second device and the AOA of the signal of the third device; the second device performs a response operation in response to the received third message.

[0451] Refer to FIG. 5A to FIG. 5F , for the voice interaction scenario, the first device (such as the electronic device 100) may initiate positioning measurement, and the first device (electronic device 100) determines the AOAs of the signals of the second device (electronic device 201) and the third device (such as electronic device 202).

[0452] In some embodiments, the above-mentioned second device sending the first message includes: the second device sends the first message in response to the detected voice command; the above-mentioned third device sending the second message includes: the third device sends the second message in response to the detected voice command; the above-mentioned second device performing a response operation in response to the received third message includes: the second device outputs response information in response to the received third message and the voice command. The above-mentioned first message and second message may be Figure 5A the UWB measurement requests in the relevant embodiments, or may also be Figure 5C and Fig. 5F the first measurement requests in the relevant embodiments. The above-mentioned third message may be Figure 5A the first indication information in the relevant embodiments.

[0453] For the voice interaction scenario, the first device may also initiate positioning measurement, and the first device determines the AOAs of the second device and the third device.

[0454] In some embodiments, before the second device sends the first message and before the third device sends the second message, it further includes: the first device sends a fourth message in response to a detected voice command, and the fourth message carries the identifier of the first device; the second device sending the first message includes: the second device sends the first message to the first device based on the fourth message; the third device sending the second message includes: the third device sends the second message to the first device based on the fourth message; the second device performing a response operation in response to the received third message includes: the second device outputs response information in response to the received third message and a voice command.

[0455] It can be understood that in a smart home scenario, when the user intends to control a target device (such as a TV, speaker) among smart home devices by voice, the user can point the mobile phone at the target device and speak a voice command. When the smart home device or the user's mobile phone detects the user's voice command, it can initiate the measurement of signal AOA, and the user's mobile phone calculates the signal AOA of each smart home device. Furthermore, the mobile phone can determine the user's target device according to the signal AOA of each smart home device. One of multiple smart home devices can be accurately controlled through simple operations.

[0456] Reference FIG. 8A to FIG. 8C , for the pairing connection scenario, the first device can initiate positioning measurement, and the first device determines the signal AOA of the second device and the third device.

[0457] In some embodiments, before the second device sends the first message and before the third device sends the second message, it further includes: the first device sends a fourth message in response to a detected first user operation, and the fourth message carries the identifier of the first device; the second device sending the first message includes: the second device sends the first message to the first device based on the fourth message; the third device sending the second message includes: the third device sends the second message to the first device based on the fourth message. The fourth message can be Fig. 8A the UWB measurement request in related embodiments, and can also be Figure 8C the fourth measurement request in related embodiments. The first message and the second message can be Figure 8C the fourth measurement response in related embodiments. In one implementation, the third message can be Fig. 8A the connection request in related embodiments, and the third message is used to instruct the second device to send connection parameters.

[0458] Reference 9A to 9D , for the pairing connection scenario, the second device and the third device can initiate positioning measurement, and the first device determines the signal AOA of the second device and the third device.

[0459] In some embodiments, the above-mentioned first device determines the angle of arrival (AOA) of the signal of the second device based on the received first message, and determines the AOA of the signal of the third device based on the received second message, including: in response to the detected first user operation, the above-mentioned first device determines the AOA of the signal of the second device based on the received first message, and determines the AOA of the signal of the third device based on the received second message. The above-mentioned first message and second message may be Fig. 9A the UWB measurement request in the relevant embodiments, or may also be the sixth measurement request in the 9C relevant embodiments.

[0460] It can be understood that in the smart home scenario, when the user intends to pair and connect the mobile phone with the target device among the smart home devices (such as a TV, a speaker), the user can point the mobile phone at the target device and perform the first user operation. In one implementation, when the user's mobile phone detects the first user operation, it can initiate the measurement of the AOA of the signal, and the mobile phone calculates the AOA of the signal of each smart home device. In another implementation, each smart home device regularly initiates the positioning measurement. When the user's mobile phone detects the first user operation, in response to the positioning measurement sent by each smart home device, it calculates the AOA of the signal of each smart home device. Furthermore, the mobile phone can determine the user's target device according to the AOA of the signal of each smart home device. One of the multiple smart home devices can be controlled through a simple operation.

[0461] In some embodiments, before the above-mentioned first device sends the third message to the second device based on the AOA of the signal of the second device and the AOA of the signal of the third device, it further includes: the first device determines the distance of the second device based on the received first message; the first device determines the distance of the third device based on the received second message; the above-mentioned first device sends the third message to the second device based on the AOA of the signal of the second device and the AOA of the signal of the third device, including: the first device sends the third message to the second device based on the AOA of the signal of the second device, the distance of the second device, the AOA of the signal of the third device, and the distance of the third device. Refer to FIG. 5A to FIG. 5F 、 FIG. 8A to FIG. 8C and 9A to 9D , the first device (electronic device 100) can determine the distance between the first device (electronic device 100) and the second device (electronic device 201) or the third device (electronic device 202) according to the received signal. In this way, the target device among the second device and the third device can be determined from two dimensions of the AOA and the distance, which improves the possibility of accurately controlling the target device among multiple devices.

[0462] In some embodiments, before the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the first device determines the received signal strength indication (RSSI) of the second device based on the received first message; the first device determines the RSSI of the third device based on the received second message; the first device sending the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device includes: the first device sends the third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, and the RSSI of the third device. In this way, the target device among the second device and the third device can be determined from three dimensions of signal AOA, distance, and RSSI, improving the possibility of accurately controlling the target device in multiple devices. Reference FIG. 5A to FIG. 5F , FIG. 8A to FIG. 8C and 9A to 9D , the first device (electronic device 100) can determine the RSSI between the first device (electronic device 100) and the second device (electronic device 201) or the third device (electronic device 202) according to the received signal. In this way, the target device among the second device and the third device can be determined from three dimensions of signal AOA, distance, and RSSI, improving the possibility of accurately controlling the target device in multiple devices.

[0463] In some embodiments, the first device sending the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device includes: when the first device determines that the device with the signal AOA closest to 0 degrees among the second device and the third device is the second device, the first device sends the third message to the second device.

[0464] Specifically, when the first device determines that the device with the signal AOA closest to a preset angle among the second device and the third device is the second device, the first device sends the third message to the second device. The preset angle can be determined according to the distribution of the UWB antennas used to determine the signal AOA on the first device. Specifically, reference can be made to the relevant embodiments described above Figure 5D . For example, the preset angle can be 0 degrees or 90 degrees.

[0465] In some embodiments, the first device sends a third message to the second device based on the signal AOA of the second device, the distance of the second device, the signal AOA of the third device, and the distance of the third device, including: when the difference between the signal AOAs of the second device and the third device is greater than a first threshold, and the first device determines that the device with the smallest signal AOA among the second device and the third device is the second device, the first device sends the third message to the second device; or, when the difference between the signal AOAs of the second device and the third device is less than or equal to a second threshold, and the first device determines that the device with the smallest distance among the second device and the third device is the second device, the first device sends the third message to the second device. Specifically, for how to determine the target device among multiple devices based on the signal AOA and distance, reference can be made to Figure 5G the relevant embodiments.

[0466] In some embodiments, the first device sends a third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, and the RSSI of the third device, including: when the RSSI of the second device is greater than a preset RSSI and the RSSI of the third device is less than or equal to the preset RSSI, the first device sends the third message to the second device; or, when the RSSIs of both the second device and the third device are greater than or both are less than or equal to the preset RSSI, and the difference between the signal AOAs of the second device and the third device is greater than a first threshold, the first device determines that the device with the smallest signal AOA among the second device and the third device is the second device, and the first device sends the third message to the second device; or, when the RSSIs of both the second device and the third device are greater than or both are less than or equal to the preset RSSI, and the difference between the signal AOAs of the second device and the third device is less than or equal to a second threshold, the first device determines that the device with the smallest distance among the second device and the third device is the second device, and the first device sends the third message to the second device. Specifically, for how to determine the target device among multiple devices based on the signal AOA, distance, and RSSI, reference can be made to Figure 5G and Figure 5H the relevant embodiments.

[0467] In some embodiments, the second threshold is equal to the first threshold. For example, the first threshold is equal to 10 degrees. In some embodiments, the second threshold is not equal to the first threshold. For example, the first threshold is equal to 25 degrees and the second threshold is equal to 20 degrees.

[0468] In the embodiments of the present application, for the ranging algorithms in which the first device initiates positioning measurement and the first device calculates the distance, reference can be made to ranging algorithms 3 and 4 in the foregoing embodiments. For the ranging algorithms in which the second device and the third device initiate positioning measurement and the first device calculates the distance, reference can be made to ranging algorithms 1 and 2 in the foregoing embodiments.

[0469] In some embodiments, the above-mentioned first device determines the distance to the second device based on the received first message; before the first device determines the distance to the third device based on the received second message, it further includes: the first device receives the first message and sends a fifth message to the second device; the second device receives the fifth message and sends a sixth message to the first device; the first device receives the second message and sends a seventh message to the second device; the second device receives the seventh message and sends an eighth message to the first device; the first device determines the distance to the second device based on the received first message; the above-mentioned first device determines the distance to the third device based on the received second message, including: the first device determines the distance to the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message; the first device determines the distance to the third device based on the sending and receiving times of the second message, the seventh message, and the eighth message.

[0470] Exemplarily, in a voice interaction scenario, taking Figure 5E and Fig. 5F the ranging algorithm 2 shown in the embodiment as an example, the second device (such as the electronic device 201) initiates the measurement, and the first device (such as the electronic device 100) performs the distance calculation. Among them, the first message may be Fig. 5F the first measurement request of the embodiment, the fifth message may be Fig. 5F the first measurement response of the embodiment, and the sixth message may be Fig. 5F the second measurement response of the embodiment.

[0471] Exemplarily, in a pairing connection scenario, taking Fig. 9B and Fig. 9C the ranging algorithm 2 shown in the embodiment as an example, the second device (such as the electronic device 201) initiates the measurement, and the first device (such as the electronic device 100) performs the distance calculation. Among them, the first message may be Fig. 9C the sixth measurement request of the embodiment, the fifth message may be Fig. 5F the sixth measurement response of the embodiment, and the sixth message may be Fig. 5F the seventh measurement response of the embodiment.

[0472] In some embodiments, after the above-mentioned second device receives the fifth message and before sending the sixth message to the first device, it further includes: the first device sends a ninth message to the second device; the above-mentioned second device receives the ninth message; the first device determines the distance to the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message, including: the first device determines the distance to the second device based on the sending and receiving times of the first message, the fifth message, the sixth message, and the ninth message.

[0473] Exemplarily, in a voice interaction scenario, taking Figure 5B and Figure 5CTaking the ranging algorithm 1 shown in the embodiment as an example, the second device (such as the electronic device 201) initiates the measurement, and the first device (such as the electronic device 100) performs the distance calculation. Among them, the first message can be Figure 5C the first measurement request of the embodiment, and the fifth message can be Figure 5C the first measurement response of the embodiment, and the ninth message can be Figure 5C the second measurement request of the embodiment, and the sixth message can be Figure 5C the second measurement response of the embodiment. Exemplarily, in the pairing connection scenario, reference can also be made to Fig.9D the ranging algorithm 1 in the embodiment.

[0474] In some embodiments, the above-mentioned sixth message carries the times when the second device sends the first message, receives the fifth message, and sends the sixth message.

[0475] In some embodiments, the above-mentioned sixth message carries the times when the second device sends the first message, receives the fifth message, receives the ninth message, and sends the sixth message.

[0476] It can be understood that the sending time of the first message can also be carried by the first message.

[0477] In some embodiments, before the above-mentioned first device sends the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the fourth device sends the tenth message; the tenth message carries the identifier of the fourth device; the first device determines the signal arrival angle AOA of the fourth device based on the received tenth message; the above-mentioned first device sends the third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: the first device sends the third message to the second device based on the signal AOA of the second device, the signal AOA of the third device, and the signal AOA of the fourth device.

[0478] Among them, the fourth device can be the electronic device 202 or the electronic device 203 in the foregoing embodiments. In some embodiments, the first device can initiate the positioning measurement, and the first device determines the signal AOA of the fourth device. The above-mentioned tenth message can be Figure 5A the UWB measurement request in the related embodiment, and can also be Figure 5C and Fig. 5F the first measurement request in the related embodiment; the above-mentioned tenth message can also be Figure 8C the fourth measurement response in the related embodiment. In some embodiments, the fourth device can initiate the positioning measurement, and the fourth device determines the signal AOA of the fourth device. The above-mentioned tenth message can be Fig. 9A the UWB measurement request in the related embodiment, and can also be the sixth measurement request in the 9C related embodiment.

[0479] In some embodiments, before the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the first device determines the distance and RSSI of the fourth device based on the received tenth message; the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: the first device sends a third message to the second device based on the signal AOA of the second device, the distance of the second device, the signal AOA of the third device, and the distance of the third device. In this way, the target device among the second device, the third device, and the fourth device can be determined from three dimensions of signal AOA, distance, and RSSI, improving the possibility of accurately controlling the target device in multiple devices.

[0480] In some embodiments, before the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, it further includes: the first device determines the received signal strength indication RSSI of the second device based on the received first message; the first device determines the RSSI of the third device based on the received second message; the first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: the first device sends a third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, the RSSI of the third device, the distance of the fourth device, and the RSSI of the fourth device. In this way, the target device among the second device, the third device, and the fourth device can be determined from three dimensions of signal AOA, distance, and RSSI, improving the possibility of accurately controlling the target device in multiple devices.

[0481] In some embodiments, referring to Figure 5G, the above first device sends a third message to the second device based on the signal AOA of the second device, the distance of the second device, the RSSI of the second device, the signal AOA of the third device, the distance of the third device, the RSSI of the third device, the distance of the fourth device, and the RSSI of the fourth device, including: when only the RSSI of the second device among the second device, the third device, and the fourth device is greater than the preset RSSI, the first device sends a third message to the second device; or, when the number of devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device is greater than 1, determine the two devices with the signal AOA closest to the preset angle among the devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device; when the number of devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device is equal to 0, determine the two devices with the signal AOA closest to the preset angle among the second device, the third device, and the fourth device, and when the difference between the signal AOAs of the two devices is greater than the first threshold, determine the device with the smallest signal AOA among the two devices as the second device, and the first device sends a third message to the second device; or, when the number of devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device is greater than 1, determine the two devices with the signal AOA closest to the preset angle among the devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device; when the number of devices with RSSI greater than the preset RSSI among the second device, the third device, and the fourth device is equal to 0, determine the two devices with the signal AOA closest to the preset angle among the second device, the third device, and the fourth device, and when the difference between the AOAs of the two devices is less than or equal to the second threshold, determine the device with the smallest distance among the two devices as the second device, and the first device sends a third message to the second device. Specifically, for how to determine the target device among multiple devices according to the signal AOA, distance, and RSSI, reference can be made to Figure 5G and Figure 5H for the relevant embodiments.

[0482] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. 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 website, computer, server, or data center via wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid-state drive), etc.

[0483] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware with a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The foregoing storage medium includes: various media that can store program codes such as ROM or random access memory RAM, magnetic disks, or optical discs.

Claims

1. A device control method, characterized in that, The method is applied to a communication system, which includes: a first device, a second device, and a third device. The first device, the second device, and the third device communicate using short-range wireless communication technology. The method includes: The second device sends a first message; the first message carries the identifier of the second device; The third device sends a second message; the second message carries the identifier of the third device; The first device determines the angle of arrival (AOA) of the signal of the second device based on the received first message; the first device determines the signal AOA of the third device based on the received second message; The first device sends a third message to the second device based on the difference between the signal AOA of the second device and a preset angle, and the difference between the signal AOA of the third device and the preset angle; the closer the first device points to the second device, the closer the signal AOA of the second device is to the preset angle; the preset angle is determined according to the distribution of the antennas used to determine the signal AOA on the first device, and the preset angle is a fixed reference value; The second device performs a response operation in response to the received third message.

2. A device control method, characterized in that, The method includes: The first device receives a first message sent by the second device; the first message carries the identifier of the second device; The first device receives a second message sent by the third device; the second message carries the identifier of the third device; The first device determines the angle of arrival (AOA) of the signal of the second device based on the first message; the first device determines the signal AOA of the third device based on the second message; The first device sends a third message to the second device based on the difference between the signal AOA of the second device and a preset angle, and the difference between the signal AOA of the third device and the preset angle; the closer the first device points to the second device, the closer the signal AOA of the second device is to the preset angle; the preset angle is determined according to the distribution of the antennas used to determine the signal AOA on the first device, and the preset angle is a fixed reference value; the third message is used to instruct the second device to perform a response operation.

3. The method according to claim 2, wherein The first message is sent by the second device in response to a detected voice command; the second message is sent by the third device in response to the detected voice command; the third message is used to instruct the second device to output response information in response to the voice command.

4. The method according to claim 2, wherein Before the first device receives the first message sent by the second device, and before the first device receives the second message sent by the third device, it further includes: The first device sends a fourth message in response to a detected first user operation, and the fourth message carries the identifier of the first device; the first message is sent by the second device based on the fourth message; the second message is sent by the third device based on the fourth message.

5. The method according to claim 2, characterized in that, Before the first device sends a third message to the second device based on the difference between the signal AOA of the second device and a preset angle, and the difference between the signal AOA of the third device and the preset angle, it further includes: The first device determines the distance of the second device based on the first message; the first device determines the distance of the third device based on the second message; The first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: The first device sends the third message to the second device based on the difference between the signal AOA of the second device and the preset angle, the distance of the second device, the difference between the signal AOA of the third device and the preset angle, and the distance of the third device.

6. The method according to claim 5, wherein Before the first device sends a third message to the second device based on the difference between the signal AOA of the second device and a preset angle, and the difference between the signal AOA of the third device and the preset angle, it further includes: The first device determines the received signal strength indication (RSSI) of the second device based on the first message; the first device determines the RSSI of the third device based on the second message; The first device sends a third message to the second device based on the signal AOA of the second device and the signal AOA of the third device, including: The first device sends the third message to the second device based on the difference between the signal AOA of the second device and the preset angle, the distance of the second device, the RSSI of the second device, the difference between the signal AOA of the third device and the preset angle, the distance of the third device, and the RSSI of the third device.

7. The method according to claim 2, wherein The first device sends a third message to the second device based on the difference between the signal AOA of the second device and a preset angle, and the difference between the signal AOA of the third device and the preset angle, including: When the first device determines that among the signal AOAs of the second device and the third device, the device closest to the preset angle is the second device, the first device sends the third message to the second device.

8. The method according to claim 5, wherein The first device sends the third message to the second device based on the difference between the signal AOA of the second device and the preset angle, the distance of the second device, the difference between the signal AOA of the third device and the preset angle, and the distance of the third device, including: When the difference between the signal AOAs of the second device and the third device is greater than a first threshold, and the first device determines that among the second device and the third device, the device with the signal AOA closest to the preset angle is the second device, the first device sends the third message to the second device; Or, when the difference between the signal AOAs of the second device and the third device is less than or equal to a second threshold, and the first device determines that among the second device and the third device, the device with the smallest distance is the second device, the first device sends the third message to the second device.

9. The method according to claim 6, characterized in that, The first device sends a third message to the second device based on the difference between the signal AOA of the second device and the preset angle, the distance of the second device, the RSSI of the second device, the difference between the signal AOA of the third device and the preset angle, the distance of the third device, and the RSSI of the third device, including: When the RSSI of the second device is greater than the preset RSSI and the RSSI of the third device is less than or equal to the preset RSSI, send the third message to the second device; Or, when the RSSIs of both the second device and the third device are greater than or both are less than or equal to the preset RSSI, and the difference in signal AOAs between the second device and the third device is greater than the first threshold, the first device determines that the device with the signal AOA closest to the preset angle among the second device and the third device is the second device, and sends the third message to the second device; Or, when the RSSIs of both the second device and the third device are greater than or both are less than or equal to the preset RSSI, and the difference in signal AOAs between the second device and the third device is less than or equal to the second threshold, the first device determines that the device with the minimum distance among the second device and the third device is the second device, and sends the third message to the second device.

10. The method according to claim 5, wherein The first device determines the distance of the second device based on the first message; before the first device determines the distance of the third device based on the second message, it further includes: The first device sends a fifth message to the second device based on the received first message; The first device receives a sixth message sent by the second device; The first device sends a seventh message to the second device based on the received second message; The first device receives an eighth message sent by the third device; The first device determines the distance of the second device based on the first message; the first device determines the distance of the third device based on the second message, including: The first device determines the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message; the first device determines the distance of the third device based on the sending and receiving times of the second message, the seventh message, and the eighth message.

11. The method according to claim 10, wherein Before the first device receives the sixth message sent by the second device, it further includes: The first device sends a ninth message to the second device; The first device determines the distance of the second device based on the sending and receiving times of the first message, the fifth message, and the sixth message, including: The first device determines the distance of the second device based on the sending and receiving times of the first message, the fifth message, the sixth message, and the ninth message.

12. The method according to claim 10, characterized in that, The sixth message carries the times when the second device sends the first message, receives the fifth message, and sends the sixth message.

13. The method according to claim 11, characterized in that, The sixth message carries the moments when the second device sends the first message, receives the fifth message, receives the ninth message, and sends the sixth message.

14. A terminal, the terminal being a first device, characterized in that, Comprising: a processor, a short-range wireless communication module, a memory, and one or more programs; wherein the processor and the memory are coupled, and the processor is connected to the short-range wireless communication module; the one or more programs are stored in the memory, and the one or more programs include instructions for performing the method according to any one of claims 2-13.

15. The terminal according to claim 14, wherein The terminal further includes: two UWB antennas, the short-range wireless communication module is a UWB communication module, and the UWB communication module is connected to the two UWB antennas; the preset angle is determined according to the distribution of the two UWB antennas on the first device; The short-range wireless communication module is configured to receive the first message sent by the second device through the two UWB antennas; The short-range wireless communication module is configured to receive the second message sent by the third device through the two UWB antennas; The processor is configured to determine the angle of arrival (AOA) of the signal of the second device based on the phase difference of the first message on the two UWB antennas; The processor is configured to determine the AOA of the signal of the third device based on the phase difference of the second message on the two UWB antennas.

16. A computer-readable medium for storing one or more programs, wherein the one or more programs are configured to be executed by one or more processors, and the one or more programs include instructions for performing the method according to any one of claims 2-13.

Citation Information

Patent Citations

  • Intuitive way to point, access and control appliances & other objects in building interiors

    CN107690679A