Control method, device, control system and terminal device of IoT device

By establishing UWB communication with terminal devices through UWB tags independent of IoT devices, convenient control of IoT devices is achieved, solving the problems of high power consumption and inconvenient control in existing technologies, and improving the degree of automation.

CN114513771BActive Publication Date: 2025-12-19GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202011282240.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-16
Publication Date
2025-12-19
Estimated Expiration
2040-11-16

AI Technical Summary

Technical Problem

In existing technologies, the control methods for IoT devices require direct operation between the terminal device and the IoT device, resulting in high power consumption and inconvenient control.

Method used

By setting up a UWB tag independent of the IoT device, the terminal device establishes UWB communication with the UWB tag, determines the device information of the IoT device based on the data frames sent by the UWB tag, and establishes a data communication connection for control.

Benefits of technology

It reduces the power consumption of IoT devices and improves the automation and convenience of terminal devices controlling IoT devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114513771B_ABST
    Figure CN114513771B_ABST
Patent Text Reader

Abstract

The application discloses a control method and device of an IoT device, a control system and a terminal device, and belongs to the technical field of UWB. The method is applied to a terminal device, and the method comprises the following steps: establishing UWB communication with a UWB tag, the UWB tag is used for representing an IoT device to be connected, and the UWB tag is independent of the IoT device; determining device information of the IoT device represented by the UWB tag; establishing a data communication connection with the IoT device according to the device information, and controlling the IoT device. Due to the independence between the UWB tag and the IoT device, any operation between the terminal device and the IoT device is not required before the terminal device and the IoT device establish the data communication connection, the device power consumption of the IoT device is reduced, and then the automation and convenience of the terminal device in controlling the IoT device are improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of UWB, and particularly relate to a control method and device of an Internet of Things (IoT) equipment, a control system and a terminal equipment. BACKGROUND

[0002] Ultra Wide Band (UWB) is a wireless carrier communication technology, which does not use a sine carrier, but transmits data by using a nanosecond non-sine wave narrow pulse. Therefore, the frequency spectrum range occupied by UWB is very wide, and the data transmission rate can reach hundreds of megabits per second or more. In application scenarios, UWB has the advantages of low system complexity, low transmit signal power spectrum density, insensitivity to channel fading, low interception ability, high positioning accuracy, and is particularly suitable for high-speed wireless access in dense multipath places such as indoor places. SUMMARY

[0003] Embodiments of the present application provide a control method and device of an IoT equipment, a control system and a terminal equipment. The technical solution is as follows:

[0004] In one aspect, the present application provides a control method of an IoT equipment, which is used for a terminal equipment, and the method comprises:

[0005] establishing UWB communication with a UWB tag, the UWB tag being used to represent an IoT equipment to be connected, and the UWB tag being independent of the IoT equipment;

[0006] determining device information of the IoT equipment represented by the UWB tag;

[0007] establishing data communication connection with the IoT equipment according to the device information, and controlling the IoT equipment.

[0008] In another aspect, the present application provides a control method of an IoT equipment, which is used for a UWB tag, and the method comprises:

[0009] establishing UWB communication with a terminal equipment;

[0010] sending a data frame to the terminal equipment, so that the terminal equipment determines device information of an IoT equipment represented by the UWB tag according to the data frame sent by the UWB tag, establishes data communication connection with the IoT equipment according to the device information, and controls the IoT equipment.

[0011] In another aspect, the present application provides a control device of an IoT equipment, which comprises:

[0012] The communication establishing module is configured to establish UWB communication with a UWB tag, the UWB tag being configured to represent an IoT device to be connected, and the UWB tag being independent of the IoT device;

[0013] The determining module is configured to determine device information of the IoT device represented by the UWB tag.

[0014] The control module is configured to establish a data communication connection with the IoT device according to the device information, and control the IoT device.

[0015] In another aspect, the embodiments of the present application provide a control device of an IoT device, the device comprising:

[0016] The communication establishing module is configured to establish UWB communication with a terminal device.

[0017] The data sending module is configured to send a data frame to the terminal device, so that the terminal device determines device information of an IoT device represented by the UWB tag according to the data frame sent by the UWB tag, establishes a data communication connection with the IoT device according to the device information, and controls the IoT device.

[0018] In another aspect, the embodiments of the present application provide a control system of an IoT device, the system comprising a terminal device, a UWB tag and an IoT device.

[0019] The terminal device establishes UWB communication with the UWB tag, the UWB tag being configured to represent an IoT device to be connected, and the UWB tag being independent of the IoT device.

[0020] The UWB tag sends a data frame to the terminal device.

[0021] The terminal device determines device information of an IoT device represented by the UWB tag according to the data frame sent by the UWB tag, establishes a data communication connection with the IoT device according to the device information, and controls the IoT device.

[0022] In another aspect, the embodiments of the present application provide a terminal device, the terminal device comprising a processor, a memory and a UWB component.

[0023] The processor is electrically connected with the memory and the UWB component respectively.

[0024] The UWB component is configured to establish UWB communication with a UWB tag, and receive a data frame sent by the UWB tag, the UWB tag being configured to represent an IoT device to be connected, and the UWB tag being independent of the IoT device.

[0025] The memory stores at least one instruction for being executed by the processor to perform the following steps:

[0026] According to the data frame sent by the UWB tag, device information of the IoT device represented by the UWB tag is determined;

[0027] According to the device information, a data communication connection is established with the IoT device, and the IoT device is controlled.

[0028] In another aspect, an embodiment of the present application provides a UWB assembly, comprising: a UWB antenna and an interface circuit;

[0029] The UWB antenna and the interface circuit are electrically connected;

[0030] The UWB assembly is used to be connected with a terminal device through the interface circuit, so that the terminal device can establish UWB communication with a UWB tag and connect with an IoT device represented by the UWB tag.

[0031] In another aspect, an embodiment of the present application provides a computer readable storage medium, which stores at least one program code. The program code is loaded and executed by a processor to implement the control method of the IoT device according to the above aspect.

[0032] In another aspect, an embodiment of the present application provides a computer program product or computer program, which comprises computer instructions stored in a computer readable storage medium. A processor of a terminal device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to make the terminal device perform the control method of the IoT device provided in various optional implementation manners of the above aspect.

[0033] The technical scheme provided by the embodiments of the present application can bring the following beneficial effects:

[0034] By setting the UWB tag representing the IoT device, and the UWB tag being independent of the IoT device, the terminal device can establish UWB communication with the UWB tag, establish data communication connection with the IoT device represented by the UWB tag, and control the IoT device. Due to the independence between the UWB tag and the IoT device, before the terminal device establishes data communication connection with the IoT device, any operation between the terminal device and the IoT device is not required, which reduces the device power consumption of the IoT device, and further improves the automation and convenience of the terminal device controlling the IoT device. BRIEF DESCRIPTION OF DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative effort on the basis of these drawings.

[0036] Figure 1 A schematic diagram showing an implementation environment of one example embodiment of the present application is shown;

[0037] Figure 2 A flowchart of a control method of an IoT device provided by one example embodiment of the present application is shown;

[0038] Figure 3 A flowchart of a control method of an IoT device provided by another example embodiment of the present application is shown;

[0039] Figure 4 A process diagram showing a terminal device controlling a target IoT device is shown according to one example embodiment of the present application;

[0040] Figure 5 A diagram showing a terminal device displaying a control interface is shown according to one example embodiment of the present application;

[0041] Figure 6 A flowchart of a control method of an IoT device provided by another example embodiment of the present application is shown;

[0042] Figure 7 A structural diagram of an antenna in a UWB assembly according to one example embodiment of the present application is shown;

[0043] Figure 8 A working timing diagram of a UWB assembly and multiple UWB tags according to one example embodiment of the present application is shown;

[0044] Figure 9 A process diagram showing a horizontal antenna group measuring a horizontal direction angle is shown according to one example embodiment of the present application;

[0045] Figure 10 A process diagram showing determining a spatial position relationship between a terminal device and a UWB tag is shown according to one example embodiment of the present application;

[0046] Figure 11 A structural block diagram of a control device of an IoT device provided by one embodiment of the present application is shown;

[0047] Figure 12 A structural block diagram of a control device of an IoT device provided by one embodiment of the present application is shown;

[0048] Figure 13 A structure block diagram of a terminal device provided by an example embodiment of the present application is shown;

[0049] Figure 14 A structure block diagram of a terminal system provided by an example embodiment of the present application is shown;

[0050] Figure 15 A structure diagram of a terminal accessory shown by an example embodiment of the present application is shown;

[0051] Figure 16 A structure block diagram of a UWB component provided by an example embodiment of the present application is shown;

[0052] Figure 17 A structure block diagram of a control system of an IoT device provided by an example embodiment of the present application is shown. DETAILED DESCRIPTION

[0053] For the purpose, technical solutions and advantages of the present application to be clearer, the embodiments of the present application will be further described in detail below with reference to the drawings.

[0054] Reference is made to Figure 1 which shows a schematic diagram of an implementation environment of an example embodiment of the present application, the implementation environment including a terminal device 110, at least one IoT device 120 and a UWB tag 130.

[0055] The terminal device 110 is a device with spatial position awareness capability, which means that the terminal device 110 can perceive the spatial position relationship between itself and other devices. The terminal device 110 can be a smart phone, a tablet computer, a smart remote controller, a smart watch or other portable electronic devices.

[0056] In the embodiments of the present application, the terminal device 110 can establish UWB communication with the UWB tag 130 through the UWB component. That is, the terminal device 110 can receive the data frame sent by the UWB tag 130 through the UWB component, and determine the spatial position relationship between the terminal device 110 and the UWB tag 130 according to the data frame sent by the UWB tag 130.

[0057] Optionally, the UWB component can be separated from the terminal device 110, or the UWB component is independent of the terminal device 110. That is, the terminal device 110 has the function of establishing UWB communication with the UWB tag 130 when the UWB component is installed or worn; when the terminal device 110 does not carry or does not install the UWB component, the terminal device 110 can not be able to establish UWB communication with the UWB tag. In this application scenario, the UWB component can be packaged as a terminal accessory, such as a mobile phone shell, a mobile phone protective sleeve, a mobile phone pendant, etc.

[0058] Optionally, the UWB component can also be arranged inside the terminal device 110, that is, the UWB component is arranged inside the terminal device 110, so that the terminal device 110 can establish UWB communication with the UWB tag 130 through the UWB component.

[0059] The IoT device 120 is an electronic device that can establish a data communication connection function with the terminal device 110, which can be a smart television 122, a smart speaker 121, a smart door lock 123, a smart refrigerator, a smart air conditioner, a smart lamp, a vehicle-mounted air conditioner, etc. The above data communication connection refers to that the IoT device 120 and the terminal device 110 can interact information through the data communication connection, which can be a WiFi connection, a Bluetooth connection, an infrared connection, etc., and the present application does not constitute a limitation.

[0060] The UWB tag 130 is used to represent the IoT device 120, that is, the UWB tag 130 is independent of the IoT device 120. Independent means that the UWB tag 130 is a device independent of the IoT device 120, which can be sold as a product independently, and is not integrated into the IoT device 120 as part of the IoT device 120, nor is it a component module of the IoT device 120. And when the UWB tag 130 is bound with the IoT device 120, the UWB tag 130 and the IoT device 120 do not have a data communication connection relationship, but only have a mapping relationship, which means that the IoT device 120 represented by the UWB tag 130 can be determined. Figure 1 As shown in the figure, the UWB tag 131 is used to represent the IoT device 121, the UWB tag 132 is used to represent the IoT device 122, and the UWB tag 132 is used to represent the IoT device 123.

[0061] In the present application, the UWB tag 130 sends a data frame to the terminal device 110, and the terminal device 110 determines the device information of the IoT device 120 represented by the UWB tag according to the received data frame, and establishes a data communication connection with the IoT device 120 according to the device information, and controls the IoT device 120.

[0062] Please refer toFigure 2 Fig. 14 is a flowchart illustrating a control method of an IoT device according to an example embodiment of the present application. The example embodiment of the present application applies the method to Figure 1 The method is described by taking a terminal device and a UWB tag as an example. The method comprises the following steps.

[0063] In step 201, the terminal device establishes UWB communication with the UWB tag. The UWB tag is used to represent an IoT device to be connected, and the UWB tag is independent of the IoT device.

[0064] In the application scenario of the example embodiment of the present application, the UWB tag can broadcast a data frame, and the terminal device can receive the data frame broadcast by the UWB tag. That is, the terminal device establishes UWB communication with the UWB tag, or the UWB tag establishes UWB communication with the terminal device.

[0065] The UWB tag is used to represent an IoT device to be connected, that is, the UWB tag is independent of the IoT device. The independence means that the UWB tag is a device independent of the IoT device, and can be sold as a product independently. The UWB tag is not integrated into the IoT device as part of the IoT device, nor is it a component module of the IoT device. After the UWB tag is bound to the IoT device, the UWB tag and the IoT device do not have a data communication connection relationship, but only have a mapping relationship, which means that the IoT device represented by the UWB tag can be determined through the UWB tag.

[0066] Based on the relationship that the UWB tag is independent of the IoT device, the UWB tag can be attached to the IoT device, or the UWB tag can be placed near the IoT device. The UWB tag can be placed at a position away from the IoT device, and the example embodiment of the present application does not limit the setting position of the UWB tag.

[0067] Optionally, since the UWB tag is independent of the IoT device, in a possible implementation, the UWB tag can have an independent power supply, for example, a button cell is arranged inside the UWB tag, which is used to provide power for the UWB tag when the UWB tag is in a working state.

[0068] Optionally, the UWB tag is provided with a USB interface, and the UWB tag is charged through the USB interface to maintain the endurance of the UWB tag.

[0069] In the charging scenario, a USB line can be used to connect the UWB tag and the IoT device. Correspondingly, the UWB tag and the IoT device establish a charging connection relationship, and the IoT device only supplies power to the UWB tag. The UWB tag and the IoT device have no data communication connection relationship.

[0070] The data communication connection refers to that the IoT device and the terminal device can interact information through the data communication connection, which can be a WiFi connection, a Bluetooth connection, an infrared connection, etc., and the embodiments of the present application do not constitute a limitation.

[0071] Optionally, in the charging scenario, other devices can also be used to charge the UWB tag, such as a mobile power supply, a fixed power supply, etc.

[0072] Step 202: The UWB tag sends a data frame to the terminal device.

[0073] The UWB tag has the function of broadcasting the data frame.

[0074] For the broadcasting mode of the data frame by the UWB tag, in some possible embodiments, when the UWB tag is started, the data frame can be broadcasted in real time; or the data frame is broadcasted every preset time period, such as every 30 s; or the data frame is broadcasted in real time within a preset time period, such as the UWB tag broadcasts the data frame in real time within the time period from 8:00 in the morning to 8:00 in the evening.

[0075] Step 203: The terminal device determines the device information of the IoT device represented by the UWB tag.

[0076] Based on the relationship between the UWB tag and the IoT device represented thereby, the terminal device can determine the device information of the IoT device represented by the UWB tag according to the data frame broadcasted by the UWB tag.

[0077] The device information can be information uniquely representing the IoT device, such as a device identifier, a device name, device location information, etc., of the IoT device.

[0078] For the mode of determining the device information of the IoT device represented by the UWB tag by the terminal, taking the determination of the device identifier as an example, the following cases can be included:

[0079] 1. The device identifier of the IoT device represented by the UWB tag is added in the data frame.

[0080] In a possible embodiment, the UWB tag adds the device identifier of the IoT device represented thereby to the data frame and sends the data frame to the terminal device. Correspondingly, the terminal device receives the data frame sent by the UWB tag and extracts the device identifier of the IoT device represented by the UWB tag from the data frame.

[0081] 2. The tag identifier of the UWB tag is added in the data frame, and the mapping relationship between the UWB tag and the IoT device is stored in the terminal device.

[0082] In another possible implementation, the UWB tag adds the tag identity of the UWB tag itself into the data frame, and sends the data frame to the terminal device. Correspondingly, the terminal device receives the data frame sent by the UWB tag, extracts the tag identity corresponding to the UWB tag from the data frame, and acquires the device identity from the mapping relationship according to the tag identity, where the device identity is the device identity of the IoT device represented by the UWB tag.

[0083] 3. The data frame has the device identity and the location information of the IoT device represented by the UWB tag added therein.

[0084] In another possible implementation, the UWB tag adds the device identity and the location information into the data frame, and sends the data frame to the terminal device. Correspondingly, the terminal device receives the data frame sent by the UWB tag, and acquires the device identity and the location information of the IoT device represented by the UWB tag from the data frame.

[0085] In step 204, the terminal device establishes a data communication connection with the IoT device according to the device information, and controls the IoT device.

[0086] In a possible implementation, after the terminal device determines the device information of the IoT device represented by the UWB tag, the terminal device can directly establish a data communication connection with the corresponding IoT device according to the device information, and control the IoT device.

[0087] In an exemplary example, if the device information is the device identity, the terminal device can determine the corresponding IoT device according to the device identity, establish a data communication connection with the IoT device, and control the IoT device.

[0088] To sum up, in the embodiments of the present application, the UWB tag representing the IoT device is provided, and the UWB tag is independent of the IoT device. The terminal device can establish a data communication connection with the IoT device represented by the UWB tag by establishing a UWB communication with the UWB tag, and control the IoT device. Due to the independence between the UWB tag and the IoT device, the terminal device does not need to perform any operation with the IoT device before establishing a data communication connection with the IoT device, which reduces the device power consumption of the IoT device, and further improves the automation and convenience of the terminal device in controlling the IoT device.

[0089] Please refer to Figure 3 which shows a flowchart of a control method of an IoT device provided by another exemplary embodiment of the present application. The embodiment of the present application takes the method applied to the terminal device shown in Figure 1 as an example for description. The method comprises the following steps.

[0090] Step 301, establishing UWB communication with a UWB tag, the UWB tag being used to represent an IoT device to be connected, and the UWB tag being independent of the IoT device.

[0091] The implementation of this step can refer to the above embodiments, which are not repeated here.

[0092] Step 302, determining the UWB tag pointed by the terminal device as the target UWB tag according to the data frame sent by at least one UWB tag.

[0093] Based on the user's need to control a certain IoT device through the terminal device, the terminal device will generally be pointed at the IoT device. Therefore, based on the user's behavior habit, when determining that the terminal device establishes a data communication connection with a certain IoT device, the positional relationship between the terminal device and the UWB tag is set as a direct relationship, that is, the UWB tag pointed by the terminal device is determined as the target UWB tag, so that the terminal device can establish a data communication connection with the target IoT device represented by the target UWB tag in the subsequent process and control it.

[0094] Based on the principle of realizing the ability of the terminal to perceive the spatial positional relationship by the UWB technology, in one possible implementation, when determining the spatial positional relationship between the terminal device and the UWB tag, a positioning method in the UWB technology can be used, such as Angle of Arrival (AOA) measurement: determining the spatial position of an object according to the angle of arrival of the data frame; Phase Difference of Arrival (PDOA) measurement: determining the spatial position of an object according to the phase difference of arrival of the data frame. The specific positioning principle used to determine the spatial positional relationship in the embodiments of the present application does not constitute a limitation.

[0095] Optionally, for the case that the application scenario contains a terminal device and a single UWB tag representing a single IoT device, if the user needs to control the IoT device, the terminal device can be directly aligned with the UWB tag corresponding to the IoT device. Correspondingly, the terminal device can receive the data frame sent by the UWB tag, and determine the IoT device represented by the UWB tag according to the data frame, so as to establish a data communication connection with the IoT device, and then control the IoT device.

[0096] Optionally, in the application scenario, the terminal device and a plurality of UWB tags are included, and different UWB tags represent different IoT devices. When the UWB tags are in a working state, the terminal device can receive data frames sent by the plurality of UWB tags, and determine a spatial position relationship between each UWB tag and the terminal device according to the data frame sent by at least one UWB tag, and filter out a target UWB tag pointed by the terminal device, so as to determine a target IoT device controlled by the user.

[0097] In step 303, target device information of the target IoT device represented by the target UWB tag is determined according to the data frame sent by the target UWB tag.

[0098] In a possible implementation, when the terminal device determines the target UWB tag pointed by the terminal device according to the received data frame, that is, the terminal device determines that the user wants to control the target IoT device represented by the target UWB tag through the terminal device. Since the data frame adds related content for determining the device information of the IoT device, the target device information of the target IoT device represented by the target UWB tag can be determined according to the data frame sent by the target UWB tag, and then the data communication connection is established with the target IoT device according to the target device information, and the target IoT device is controlled.

[0099] The information included in the data frame can include the following three cases:

[0100] 1. The data frame sent by the UWB tag includes the device identifier and the position information of the IoT device, and the terminal device is used to establish a data communication connection with the IoT device and control the IoT device according to the device identifier and the position information.

[0101] The device identifier is the device identifier of the IoT device represented by the UWB tag. The device identifier can be an identifier that uniquely identifies the IoT device. For example, the device identifier can be a machine code, a device number, or the like of the IoT device, which is not limited in the embodiments of the present application.

[0102] The position information can be the position information of the UWB tag, or the position information of the IoT device.

[0103] For the position information of the UWB tag, in the application scenario, the UWB tag and the IoT device represented thereby are placed at the same position, and correspondingly, the position information of the UWB tag can be used instead of the position information of the IoT device.

[0104] For the position information of the IoT device, in the application scenario, the UWB tag can be placed at the same position as the IoT device represented thereby, or the UWB tag can be placed at a different position from the IoT device.

[0105] In a possible implementation, when the target UWB tag sends the data frame, the target UWB tag can carry the target device identification of the target IoT device and the target position information in the data frame, or carry the target device identification of the target IoT device and the target position information of the target UWB tag in the data frame. Correspondingly, when the terminal device receives the data frame sent by the target UWB tag, the terminal device can obtain the target device identification of the target IoT device and the target position information from the data frame, and establish a data communication connection with the target IoT device and control the target IoT device according to the target device identification and the target position information.

[0106] 2. The data frame sent by the UWB tag contains the device identification of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device according to the device identification and control the IoT device.

[0107] In another possible implementation, when the UWB tag sends the data frame, the UWB tag carries the device identification of the IoT device represented by the UWB tag. Correspondingly, when the terminal device receives the data frame sent by each UWB tag, the terminal device can determine the device identification of the IoT device represented by each UWB tag.

[0108] Correspondingly, when the terminal device determines the target UWB tag pointed by the terminal device, the terminal device can obtain the target device identification of the target IoT device represented by the target UWB tag from the data frame sent by the target UWB tag.

[0109] 3. The data frame sent by the UWB tag contains the tag identification, and the terminal device stores a mapping relationship between the UWB tag and the IoT device. The terminal device is configured to obtain the device identification from the mapping relationship according to the tag identification, and establish a data communication connection with the IoT device according to the device identification and control the IoT device.

[0110] The tag identification can be information for uniquely identifying the UWB tag, for example, a tag number of the UWB tag.

[0111] In a possible implementation, the terminal device pre-stores a mapping relationship between each UWB tag and the IoT device represented by the UWB tag. The mapping relationship can be a corresponding relationship between the tag identification and the device identification.

[0112] In an exemplary example, the mapping relationship between the UWB tag and the IoT device can be as shown in Table 1:

[0113] Table 1

[0114] Tag identification Device identification UWB tag 1 IoT device B UWB tag 2 IoT device A UWB tag 4 IoT device D

[0115] In a possible implementation, the UWB tag carries the tag identifier in a data frame. Correspondingly, after receiving the data frame sent by the UWB tag, the terminal device obtains the tag identifier of the UWB tag from the data frame, and determines the device identifier corresponding to the tag identifier according to the mapping relationship, and then determines the IoT device represented by the UWB tag according to the device identifier.

[0116] Optionally, for the scenario in which the data frame sent by the UWB tag only carries the tag identifier, the terminal needs to pre-store the mapping relationship between the UWB tag and the IoT device. In an exemplary example, the process of storing the mapping relationship in the terminal can include the following steps:

[0117] I. In response to a binding operation, obtaining the tag identifier of the UWB tag to be bound.

[0118] To enable the terminal to determine the IoT device represented by the UWB tag according to the tag identifier contained in the data frame, in a possible implementation, the terminal device performs a binding operation. Correspondingly, after receiving the binding operation, the terminal device obtains the tag identifier of the UWB tag to be bound.

[0119] II. In response to a selection operation on the IoT device, establishing a mapping relationship between the tag identifier and the device identifier corresponding to the IoT device.

[0120] In a possible implementation, the terminal device can pre-register the IoT devices corresponding to different application scenarios. For example, room 1 corresponds to IoT devices A-C, and room 2 corresponds to IoT devices D-G. Correspondingly, the user can view the IoT devices located in different application scenarios in the terminal device. When the user needs to bind the UWB tag and the IoT device, the user can select the IoT device in the terminal device and input the tag identifier of the UWB tag to be bound with the IoT device. Correspondingly, after receiving the selection operation on the IoT device, the terminal device can bind the device identifier of the IoT device and the tag identifier, thereby establishing the mapping relationship between the UWB tag and the IoT device represented by the UWB tag in the terminal device.

[0121] Optionally, the user can also directly input the corresponding relationship between the tag identifier and the device identifier into the terminal device. Correspondingly, the terminal device establishes the mapping relationship between the tag identifier and the device identifier corresponding to the IoT device.

[0122] In another possible application scenario, the mapping relationship between the UWB tag and the IoT device is not permanently bound, and the user can modify or delete the mapping relationship between the UWB tag and the IoT device according to requirements. For example, before modification, the UWB tag 1 is used to represent the IoT device A, and after modification, the UWB tag 1 is used to represent the IoT device D. Correspondingly, the user needs to delete the mapping relationship corresponding to the UWB tag in the terminal device, and rebind the UWB tag 1 and the IoT device C.

[0123] Correspondingly, in a possible implementation, when the terminal device receives the unbinding operation, the corresponding relationship between the tag identifier of the UWB tag and the device identifier can be deleted according to the tag identifier of the UWB tag indicated by the unbinding operation, so as to delete the mapping relationship indicated by the UWB tag.

[0124] In step 304, a data communication connection is established with the target IoT device according to the target device information, and the target IoT device is controlled.

[0125] The target device information is information for uniquely identifying the target IoT device. For example, the target device information can be a target device identifier or target location information of the target IoT device.

[0126] In a possible implementation, after the terminal device determines the target device information, a data communication connection can be established with the target IoT device indicated by the target device information, so as to control the target IoT device.

[0127] The connection mode between the terminal device and the target IoT device can be a WiFi connection or a Bluetooth connection. Under different connection modes, the terminal device and the target WiFi connection establish a data communication connection in different ways. In an exemplary example, the process in which the terminal device establishes a data communication connection with the target IoT device can include the following steps:

[0128] I. If the connection mode of the target IoT device and the terminal device is a WiFi connection, a WiFi data communication connection is established between the target IoT device and the terminal device through a routing device according to the device identifier of the target IoT device, wherein the target IoT device and the terminal device are connected to the routing device.

[0129] In a possible application scenario, the target IoT device and the terminal device are connected to the same WiFi, that is, the target IoT device and the terminal device are connected to the same routing device to access the network. Correspondingly, when the terminal device needs to establish a data communication connection with the target IoT device, a WiFi data communication connection can be established between the target IoT device and the terminal device through the routing device according to the device identifier of the target IoT device.

[0130] For the specific manner of establishing a data communication connection, in an exemplary example, the terminal device can send a connection establishment instruction to the routing device. The connection establishment instruction contains the device identifier corresponding to the target IoT device. In response, the routing device sends a connection establishment instruction to the target IoT device according to the device identifier of the target IoT device carried in the connection establishment instruction. The target IoT device receives the connection establishment instruction and establishes a WiFi data communication connection with the terminal device.

[0131] II. If the connection between the target IoT device and the terminal device is a Bluetooth connection, the target IoT device establishes a Bluetooth data communication connection with the terminal device according to the device identifier of the target IoT device.

[0132] In another possible implementation, the terminal device can establish a Bluetooth data communication connection with the target IoT device. That is, if the connection between the target IoT device and the terminal device is a Bluetooth connection, the terminal device can establish a Bluetooth data communication connection with the target IoT device according to the device identifier corresponding to the target IoT device.

[0133] For the specific manner of establishing a Bluetooth data communication connection, in a possible implementation, the terminal device and the IoT device both enable Bluetooth function. The terminal device can receive a Bluetooth signal broadcasted by other IoT devices. The Bluetooth signal can carry the device identifier corresponding to each IoT device. The terminal device can determine the target Bluetooth signal from the received multiple Bluetooth signals according to the device identifier corresponding to the target IoT device. The target Bluetooth signal is broadcasted by the target IoT device and establishes a Bluetooth data communication connection with the target IoT device.

[0134] Optionally, the terminal device can also directly broadcast a Bluetooth connection instruction containing the device identifier corresponding to the target IoT device. When the target IoT device receives the Bluetooth connection instruction, it determines that the device identifier is consistent with its own device identifier and establishes a Bluetooth data communication connection with the terminal device.

[0135] In a possible implementation, when the terminal device determines the target IoT device that the user wants to control, it can establish a Bluetooth data communication connection or a WiFi data communication connection with the target IoT device and control the target IoT device based on the established data communication connection.

[0136] In order to avoid user misoperation, leading to that the terminal device establishes an invalid data communication connection with the target IoT device, and occupies the device resources of the target IoT device. In a possible implementation, a connection condition is set, that is, the terminal device needs to establish a data communication connection with the target IoT device under the condition that the connection condition is met.

[0137] Among them, different connection conditions are set for different IoT devices due to different functions of different IoT devices, so that the user can adopt different operations for different IoT devices, further improving the accuracy of establishing a data communication connection. For example, if the connection condition corresponding to the IoT device A is the touch condition, and the connection condition corresponding to the IoT device B is the gesture condition, when the terminal device determines that the target IoT device is the IoT device A. However, the connection condition implemented by the user is the gesture condition. Obviously, the connection condition is not met, and the determination of the target IoT device may not be accurate and may not correspond to the user's expectation. At this time, the terminal device can stop establishing a data communication connection with the IoT device A, so as to avoid establishing an incorrect data communication connection.

[0138] In a possible implementation, after the terminal device determines the target IoT device, it is further judged whether the terminal device meets the connection condition corresponding to the target IoT device. If the connection condition corresponding to the target IoT device is met, a data communication connection is established with the target IoT device, and the target IoT device is controlled. If the connection condition corresponding to the target IoT device is not met, the terminal device stops establishing a data communication connection with the target IoT device.

[0139] Among them, the connection condition includes at least one of a pointing duration condition, a gesture condition, a touch condition, a sensor condition and a voice control condition.

[0140] For the scenario of determining the pointing duration condition as the connection condition: the terminal device determines that the duration of pointing to the target UWB tag exceeds the duration threshold, and determines that the user wants the terminal device to establish a data communication connection with the target IoT device represented by the target UWB tag. Among them, the duration threshold can be 5s, which is a default value set by the developer in advance, or set by the user. When the terminal device determines that the target UWB tag is pointed to within 5s, it is determined that the terminal device meets the connection condition corresponding to the target IoT device, and a data communication connection is established with the target IoT device, and the target IoT device is controlled. Otherwise, the terminal device stops establishing a data communication connection with the target IoT device.

[0141] Optionally, the pointing duration condition can be set by the user, and different pointing duration conditions can be set for different IoT devices. For example, the pointing duration condition corresponding to the IoT device A is 3s, and the pointing duration condition corresponding to the IoT device B is 5s, which is not limited in the embodiments of the present application.

[0142] For the scenario of determining gesture condition as connection condition: but the terminal device detects that the user performs a preset gesture corresponding to the target IoT device, indicating that the user needs the terminal device to establish a data communication connection with the target IoT device, and the preset gesture can be "OK gesture", or "slide the terminal screen", etc.

[0143] Optionally, the user can set different preset gestures for different IoT devices. For example, the gesture condition corresponding to IoT device A is to detect that the user makes an "OK" gesture; and the gesture condition corresponding to IoT device B is to detect that the user draws a preset pattern on the terminal device screen, etc.

[0144] For the scenario of determining touch condition as connection condition: when the terminal device detects that the user touches a preset position of the terminal, such as a fingerprint recognition area, and detects that the fingerprint is a fingerprint for controlling the terminal device to establish a data communication connection with the target IoT device; or the terminal device detects that the user taps the screen of the terminal device, and establishes a data communication connection with the target IoT device.

[0145] Optionally, the user can also set different touch conditions for different IoT devices.

[0146] For the scenario of determining sensor condition as connection condition: the terminal device can establish a data communication connection with the target IoT device when detecting that the user holds the terminal to perform a preset operation. For example, the terminal device detects that the user holds the terminal device to perform a "shake" operation, and establishes a data communication connection with the target IoT device.

[0147] Optionally, the user can also set different sensor conditions for different IoT devices.

[0148] For the scenario of determining voice control condition as connection condition: when the terminal device determines the target IoT device, it can start a voice detection function, and when a voice instruction related to the target IoT device is detected, it establishes a data communication connection with the target IoT device. For example, the preset voice instruction in the voice control condition corresponding to the smart TV is "screen projection", and when the terminal device determines that the target IoT device is the smart TV and receives the screen projection instruction, the terminal device and the smart TV establish a data communication connection in advance.

[0149] Optionally, the user can set different voice control conditions for different IoT devices.

[0150] Since the UWB tag is only used to represent the IoT device, the UWB tag and the IoT device can be located in different spaces. For example, the UWB tag is located in room A, and the IoT device represented by the UWB tag is located in room B. The user can pre-establish a data communication connection between the terminal device and the target IoT device by pointing the terminal device to the target UWB tag, so as to improve the efficiency of subsequent control of the target IoT device. In this application scenario, if the terminal device establishes a data communication connection with the target IoT device too early, the connection power consumption between the terminal device and the target IoT device will obviously increase. Therefore, in a possible implementation, a distance condition is set, that is, the distance between the terminal device and the target IoT device needs to meet the distance condition to allow the terminal device to establish a data communication connection with the target IoT device.

[0151] Based on the user wanting to control the target IoT device through the terminal device to perform a target operation, the distance between the terminal device and the target IoT device generally adopts a nearest principle. In a possible implementation, when the terminal device determines the target IoT device, the distance between the terminal device and the target IoT device is obtained. When it is determined that the distance is less than a distance threshold, a data communication connection is established with the target IoT device according to the target device information, and the target IoT device is controlled.

[0152] In the method for determining the distance between the terminal device and the target IoT device, since the data frame sent by the UWB tag contains the position information of the IoT device, in a possible implementation, after the terminal device determines the target IoT device, the terminal device can obtain the position information of the target IoT device from the data frame sent by the target UWB tag, and determine the distance between the terminal device and the target IoT device according to the position information and the position information of the terminal device.

[0153] Optionally, the distance threshold can be set by the user according to the demand, or a system default value is used. For example, the distance threshold can be 3 m.

[0154] In summary, in a possible implementation, after the terminal device determines the target IoT device, it is necessary to judge whether the distance between the terminal device and the target IoT device is less than the distance threshold. If it is less than the distance threshold, it is further judged whether the terminal device meets the connection condition of the target IoT device, and after meeting the connection condition, a data communication connection is established with the target IoT device and control is performed.

[0155] In the method for determining the distance between the terminal device and the target IoT device, since the data frame sent by the UWB tag contains the position information of the IoT device, in a possible implementation, after the terminal device determines the target IoT device, the terminal device can obtain the position information of the target IoT device from the data frame sent by the target UWB tag, and determine the distance between the terminal device and the target IoT device according to the position information and the position information of the terminal device.

[0156] In this embodiment, based on the behavior habit that the user wants to control the IoT device through the terminal device, the terminal device is pointed to the IoT device. According to the data frame sent by the at least one UWB tag received by the terminal device, the UWB tag pointed by the terminal device is determined as the target UWB tag, and the IoT device represented by the target UWB tag is determined as the target IoT device. A data communication connection is established with the target IoT device, and the target IoT device is controlled, thereby achieving the purpose of controlling the target IoT device through the communication between the UWB tag and the terminal device. In addition, by setting the connection condition, the user can avoid misoperation of the terminal device, which can avoid the terminal device and the target IoT device establishing an invalid data communication connection, thereby improving the accuracy of the terminal device controlling the target IoT device.

[0157] In a possible application scenario, for different IoT devices, the target operation performed by the terminal device to control the IoT device is not the same.

[0158] For the scenario where the target IoT device is a smart TV, when the terminal determines that the target IoT device is a smart TV, the terminal device can control the target IoT device to perform a screen projection operation, that is, the current display screen of the terminal device can be transmitted to the smart TV.

[0159] In an exemplary example, as shown in Figure 4 Fig. 1 shows a process diagram of a terminal device controlling a target IoT device according to an exemplary embodiment of the present application. In this example, the target IoT device is a smart TV, and the terminal device 410 displays a video playing interface 411. After the terminal device determines that the target IoT device is a smart TV, the current display screen of the terminal device 410 can be transmitted to the smart TV 420. Correspondingly, the smart TV 420 displays a video playing interface 421.

[0160] Optionally, before the terminal device transmits the current display screen to the smart TV, an operation confirmation control can be displayed on the display interface of the terminal device. If the user needs to perform a screen projection operation, the operation confirmation control can be clicked. Correspondingly, the terminal device receives the click operation on the operation confirmation control, and transmits the current display screen of the terminal device to the smart TV, so that the user can continue to watch the display content through the smart TV.

[0161] Optionally, if the target IoT device is a smart TV, in a possible implementation, the terminal device can also display a control interface corresponding to the smart TV, and the control interface further includes a function control corresponding to the smart TV. For example, a video progress adjustment control, and the user can click the video progress adjustment control. The terminal device responds to the trigger operation of the video progress adjustment control to control the smart TV to adjust the current video playing progress.

[0162] For the scenario that the target IoT device is a smart home device, in a possible implementation, when the terminal determines that the target IoT device is a smart home device, a control interface corresponding to the whole smart home device can be displayed in the terminal device. The control interface includes function controls corresponding to the smart home device. The user can click the function controls of the control interface according to the demand, and the terminal device controls the smart home device to execute the corresponding device function in response to the triggering operation of the function controls in the control interface.

[0163] The smart home device can include a smart refrigerator, a smart sound box, a smart door lock, a smart curtain, a smart lamp, a smart air conditioner, and the like. The embodiments of the present application do not limit the types of smart home devices.

[0164] If the target IoT device is a smart sound box, the control interface displayed in the terminal device can include a volume adjustment control, a music progress adjustment control, a play mode adjustment control, and the like. If the target IoT device is a smart door lock, the control interface displayed in the terminal device can include a password setting control, an on-off control, and the like. If the target IoT device is a smart curtain, the control interface displayed in the terminal device can include a curtain light-shading adjustment control, a curtain on-off control, and the like. If the target IoT device is a smart air conditioner, the control interface displayed in the terminal device can include a temperature adjustment control, a mode adjustment control, a wind speed adjustment control, an on-off control, and the like. If the target IoT device is a smart lamp, the control interface displayed in the terminal device can include a lamp on-off control, a brightness adjustment control, a color temperature adjustment control, and the like.

[0165] In an exemplary example, as shown in FIG. 5, Figure 5 As shown in FIG. 5, it shows a schematic diagram of displaying a control interface in a terminal device according to an exemplary embodiment of the present application. Taking a smart air conditioner as an example, the terminal device displays a control interface 501, and the control interface 501 displays an on-off control 502, a mode adjustment control 503, a wind speed adjustment control 504, a temperature adjustment control 505, a light control 506, an up-down wind sweeping control 507, and a left-right wind sweeping control 508. When the user clicks the mode adjustment control 503, the terminal device controls the smart air conditioner to adjust the mode in response to the triggering operation of the mode adjustment control 503. For example, the mode is adjusted from the cooling mode to the heating mode.

[0166] In the above embodiment, when the target UWB tag pointed by the terminal is determined, the spatial position relationship between the terminal device and the target UWB tag needs to be determined, and when the spatial position relationship is determined, the phase difference of the data frame arriving at the antenna needs to be calculated. Therefore, in a possible implementation, the terminal device establishes UWB communication with the UWB tag through the UWB component, that is, the UWB component receives the data frame sent by the UWB tag.

[0167] Please refer to Figure 6 , which shows a flowchart of a control method of an IoT device provided by another example embodiment of the present application. The embodiment of the present application applies the method to Figure 1 The method is described by taking a terminal device as an example, and the method comprises the following steps.

[0168] In step 601, a UWB component establishes UWB communication with a UWB tag.

[0169] The UWB component is detachable from the terminal device, or the UWB component is arranged inside the terminal device.

[0170] For the scenario in which the UWB component is detachable from the terminal device, the UWB component can be packaged as a terminal accessory, such as a mobile phone protective cover, a mobile phone pendant, and the like. When the terminal device wears the terminal accessory, the terminal device can establish UWB communication with the UWB tag through the UWB component.

[0171] In a possible implementation, the UWB tag sends a data frame, and the terminal device can receive the data frame sent by the UWB tag through the UWB component. Correspondingly, the terminal device can establish UWB communication with the UWB tag through the UWB component.

[0172] Since the application scenario of the embodiment of the present application contains multiple UWB tags, and different UWB tags only send data frames in the working state and do not receive data frames. In order to avoid the conflict problem of the data frames sent by different UWB tags, in a possible implementation, when the UWB tag sends a data frame to the terminal device, it needs to listen to the target channel in real time, and send the data frame to the terminal device on the target channel when the target channel is idle.

[0173] The UWB tag detects the target channel by using a clear channel assessment (CCA) technology, and sends the data frame through the target channel when it is determined that the target channel is in an idle state or the received signal strength of the target channel is lower than a threshold value, so as to avoid the conflict of the data frame transmission leading to the subsequent inability to measure the spatial position relationship, and thus the capacity of the target channel can be improved.

[0174] Optionally, if the UWB tag detects that the target channel is in an occupied state at a first time, it does not broadcast the data frame at the first time, and randomly delays to a second time. The data frame is broadcasted at the second time, or the data frame is continuously broadcasted when it is detected that the target channel is in an idle state. When the data frame conflict is detected, the UWB tag can send the data frame by using an ALOHA protocol.

[0175] At step 602, the spatial position relationship between the terminal device and the UWB tag is determined according to the data frames sent by the same UWB tag, and the spatial position relationship includes a horizontal direction angle and a vertical direction angle.

[0176] In a possible application scenario, based on the spatial positioning principle in the UWB technology, if it is necessary to measure the horizontal direction angle and the vertical direction angle between two objects at the same time, the UWB assembly needs to set two different directional antenna groups, each of which contains two antennas for measuring the horizontal direction angle and the vertical direction angle, respectively. For example, the first antenna group and the second antenna group have a preset included angle, which can be 60 degrees.

[0177] In an exemplary example, the first antenna group can be a horizontal antenna group, and the second antenna group can be a vertical antenna group. The horizontal antenna group includes a first antenna and a second antenna, and the first antenna and the second antenna are horizontally arranged antennas. The vertical antenna group includes a first antenna and a third antenna, and the first antenna and the third antenna are vertically arranged antennas. That is, the UWB assembly includes three antennas, wherein the first antenna is a common antenna, which can be used to measure the horizontal direction angle and the vertical direction angle.

[0178] Since the application scenario of the embodiment of the present application is ultimately to determine whether the terminal device is directed to the target UWB tag, when the UWB assembly is set, in order to reduce the calculation amount of the terminal device, the horizontal direction of the terminal device can be corresponded, that is, the horizontal antenna group of the UWB assembly is consistent with the horizontal direction of the terminal device, and the vertical antenna group of the UWB assembly is consistent with the vertical direction of the terminal device.

[0179] Optionally, taking the horizontal antenna group and the vertical antenna group as an example, the UWB assembly can also include four antennas, i.e., a first antenna, a second antenna, a third antenna and a fourth antenna. The first antenna and the second antenna are the horizontal antenna group, and the third antenna and the fourth antenna are the vertical direction group, which is not limited in the embodiment of the present application.

[0180] In an exemplary example, as shown in FIG. 7, Figure 7 As shown in FIG. 7, it shows the structure diagram of the antennas in the UWB assembly of an exemplary embodiment of the present application. The first antenna group includes a first antenna 701 and a second antenna 702, the second antenna group includes the first antenna 701 and a third antenna 703, and the connecting line of the first antenna 701 and the second antenna 702 has a preset included angle with the connecting line of the first antenna 701 and the third antenna 703.

[0181] Since two sets of antennas are needed to determine the spatial position relationship between the terminal device and the UWB tag, in a possible implementation, the terminal device needs to alternate the first set of antennas and the second set of antennas to receive at least one data frame broadcast by the UWB tag when receiving the data frame.

[0182] In a possible implementation, if it is needed to determine the spatial position of the UWB tag, when the first set of antennas in the UWB assembly is in a receiving state, a data frame sent by the UWB tag is received, so as to calculate the horizontal direction angle between the UWB tag and the terminal device; then the UWB assembly is switched from the first set of antennas to the second set of antennas, and the data frame sent by the UWB tag is received again, so as to calculate the vertical direction angle between the UWB tag and the terminal device.

[0183] The application scenario of the embodiments of the present application can include multiple UWB tags, and in the process of measuring the spatial position relationship, the set of antennas in the UWB assembly needs to be switched. In order to avoid the case that the terminal device does not receive all the data frames broadcast by all the UWB tags in the application scenario when the set of antennas is switched, resulting in that the measurement of the spatial position relationship of all the UWB tags in the application scenario cannot be realized in one set of antenna switching process, thereby reducing the accuracy of comparing and judging the target UWB tag pointed and faced by the terminal device. In a possible implementation, the identification of the antenna assembly is inserted into the data frame broadcast by the UWB tag, so that the terminal device can record the tag identification corresponding to the received data frame before switching the antenna. Thus, whether the data frame broadcast by each UWB tag included in the application scenario is received can be judged based on the tag identification, and the accuracy of the antenna switching time is improved.

[0184] In an exemplary example, determining the data frame sent by the same UWB tag can include the following steps:

[0185] I. Receiving at least one data frame broadcast by the UWB tag through the first set of antennas, and constructing a tag set according to the identification of the assembly contained in the data frame.

[0186] The data frame contains the tag identification corresponding to the UWB tag. The tag identification can be the number of different UWB tags in the application scenario, for example, if the number of the UWB tag is 3, the data frame broadcast by the UWB tag contains the tag identification "3", or the machine code of different UWB tags can be used as the tag identification, and the type of the tag identification is not limited in the embodiments of the present application.

[0187] To improve the accuracy of the antenna group switching timing, in a possible implementation, when the terminal device starts receiving the data frames broadcast by each UWB tag through the first antenna group, the tag identifier is obtained from the data frame, and a tag set is created, and the tag identifier is added to the tag set. The terminal device can determine whether the data frames broadcast by each UWB tag in the current application scenario have been received when the first antenna group in the UWB assembly is in a receiving state, by the change of the tag identifier in the tag set.

[0188] In an exemplary example, if the tag identifier is the number of the UWB tag, the corresponding tag set can be A = {2, 3, 5}, indicating that the data frames broadcast by the UWB tag 2, the UWB tag 3, and the UWB tag 5 have been received when the first antenna group in the UWB assembly is in a receiving state.

[0189] II. Switching the second antenna group to receive the data frames broadcast by at least one UWB tag in response to the tag set stopping changing.

[0190] Based on the characteristics of the real-time broadcast data frames of the UWB tag, the terminal device adds the tag identifier contained in the received data frame to the tag set in real time. If the tag set contains the tag identifier, it is not added repeatedly. If the tag identifier does not exist in the tag set, the tag identifier is continuously added to the tag set until the tag set stops changing. That is, no new tag identifier is added to the tag set within a period of time, indicating that there can be no UWB tag in the application scenario except the UWB tag corresponding to the tag identifier already in the tag set. Correspondingly, the terminal device can control the UWB assembly to switch the antenna group receiving the data frame, such as switching from the first antenna group to the second antenna group, so as to continue receiving the data frames broadcast by the UWB tag when the second antenna group is in a working state.

[0191] Optionally, when the terminal device is switched from the second antenna group to the first antenna group, the tag set obtained when the first antenna group is in a receiving state in the last switching process can also be used to determine the timing of switching from the second antenna assembly to the first antenna group. In this way, it can be avoided that a data frame broadcast by a certain UWB tag is missed, thereby causing the measurement of the spatial positions of all UWB tags to fail in one antenna group switching process.

[0192] In an exemplary example, if the tag set B = {1, 2, 3, 4} indicates that the data frames broadcast by the UWB tags 1 to 4 are received when the first antenna group in the UWB assembly is in a working state. Then, in order to realize the measurement of the spatial positions of the four UWB tags, it is necessary to ensure that the data frames broadcast by the UWB tags 1 to 4 are received when the second antenna group in the UWB assembly is in a working state, and then the first antenna group can be switched back.

[0193] As shown in Figure 8 FIG. 6 shows a working timing diagram of the UWB assembly and the plurality of UWB tags according to an example embodiment of the present application. The UWB tags include UWB tag 1-UWB tag 4. When each UWB tag is in a working state, it broadcasts a data frame by listening to the channel state of the target channel. For example, UWB tag 1 listens to the target channel at T1 and broadcasts a data frame at T1. Then, UWB tag 1 continues to listen to the target channel. When the target channel is occupied, UWB tag 1 continues to listen to the target channel until the target channel is idle, i.e., UWB tag 1 broadcasts a data frame at T2. Correspondingly, when the UWB assembly is in a working state, the horizontal antenna group first receives the data frames broadcast by the UWB tags in a first time period. When it is determined that the data frames broadcast by the UWB tags are received, the horizontal antenna group is switched to the vertical antenna group, and the vertical antenna group receives the data frames broadcast by the UWB tags in a second time period.

[0194] In a possible implementation, the terminal receives the data frames broadcast by the at least one UWB tag through the UWB assembly, and divides the received data frames into different data frame groups according to the tag identifiers contained in the data frames. The data frames contained in the same data frame group are broadcast by the same UWB tag. Correspondingly, the terminal device can determine the spatial position relationship between the terminal device and the UWB tag according to the same data frame group.

[0195] In the example embodiment, the UWB assembly includes the first antenna group and the second antenna group. Correspondingly, according to the data frames broadcast by the same UWB tag, there are data frames received by the first antenna group and data frames received by the second antenna group. Therefore, the horizontal direction angle between the terminal device and the UWB tag can be determined according to the data frames received by the first antenna group, and the vertical direction angle between the terminal device and the UWB tag can be determined according to the data frames received by the second antenna group. The horizontal direction angle and the vertical direction angle are combined to determine the spatial position relationship between the terminal device and the UWB tag.

[0196] The method for determining the spatial position relationship can include the following steps:

[0197] I. determining the horizontal direction angle between the terminal device and the UWB tag according to the data frames received by the first antenna group.

[0198] Based on the principle of measuring the angle in the UWB technology, the horizontal direction angle between the terminal device and the UWB tag can be determined according to the data frames received by the first antenna group.

[0199] Optionally, the first antenna group can be a horizontal antenna group.

[0200] The principle of measuring the horizontal direction angle is described by taking the PDOA as an example. The horizontal antenna group includes the first antenna and the second antenna. When the horizontal antenna group is in the working state, a certain distance exists between the two antennas. The horizontal direction angle between the second UWB component and the first UWB component in the horizontal direction can be calculated according to the arrival phase difference of the same data frame to the two antennas.

[0201] In an exemplary example, as shown in Figure 9 The horizontal direction angle of the UWB tag 901 relative to the horizontal antenna group is α. According to the geometric relationship, the horizontal direction angle is equal to the angle θ. The horizontal antenna group 902 includes the first antenna and the second antenna. The distance between the first antenna and the second antenna is d. The data frame broadcast by the UWB tag 901 has an arrival phase difference when the data frame arrives at the first antenna and the second antenna of the horizontal antenna group 902. The horizontal direction angle θ can be calculated according to the arrival phase difference.

[0202] As shown in Figure 9 The angle formula based on the PDOA principle can be represented as:

[0203]

[0204] Wherein, represents the angle (which can represent the horizontal position angle between the terminal device and the UWB tag in this embodiment), represents the wavelength, represents the arrival phase difference, and represents the horizontal distance between the first antenna and the second antenna.

[0205] II. Determine the vertical direction angle between the terminal device and the UWB tag according to the data frame received by the second antenna group.

[0206] Similar to the measurement of the horizontal direction angle described above, based on the principle of measuring the angle in the UWB technology and the position distribution of the antennas in the UWB component, the vertical direction angle between the UWB component and the UWB tag can be determined by the data frame received by the second antenna group.

[0207] Optionally, the second antenna group can be a vertical antenna group.

[0208] The principle of measuring the vertical direction angle is described by taking the PDOA as an example. The vertical antenna group includes the first antenna and the third antenna. When the vertical antenna group is in the working state (signal receiving state), a preset distance exists between the two antennas. The vertical direction angle between the terminal device and the UWB tag in the vertical direction can be calculated according to the arrival phase difference of the same data frame to the first antenna and the third antenna. The principle of measuring the vertical direction angle according to the arrival phase difference is the same as the principle of measuring the horizontal direction angle.

[0209] In an exemplary example, such as Figure 10 The diagram illustrates a process for determining the spatial relationship between a terminal device and a UWB tag, as shown in an exemplary embodiment of this application. The application scenario includes a terminal device 1001 and a UWB tag 1002, with the terminal device 1001 equipped with a UWB component. The UWB tag 1002 broadcasts data frames through a target channel, and the terminal device 1001 receives these data frames via its UWB component. Based on these data frames, the terminal device 1001 determines the horizontal angle θ and the vertical angle φ between itself and the UWB tag 1002. The corresponding position of the UWB tag 1002 is determined to be at a horizontal angle + θ and a vertical angle + φ of the terminal device 1001.

[0210] Step 603: Based on the spatial relationship between the terminal device and each UWB tag, determine the UWB tag that the terminal device points to as the target UWB tag.

[0211] The application scenario in this application embodiment includes multiple UWB tags. The terminal calculates the spatial positional relationship between different UWB tags and UWB components based on the data frames broadcast by different UWB tags. Based on the spatial positional relationship, the target UWB tag that the terminal device is facing (pointing to) can be determined.

[0212] Specifically, determining whether the terminal device is pointing at the UWB tag can be done by judging whether the spatial relationship between the terminal device and the UWB tag deviates. That is, determining whether the horizontal angle between the terminal device and the UWB tag deviates from the preset horizontal angle range, and whether the vertical angle between the terminal device and the UWB tag deviates from the preset vertical angle range.

[0213] In one possible implementation, a preset angular range is defined for the spatial relationship between the terminal device and the UWB tag when the terminal device is facing (pointing at) the UWB tag. Since the spatial relationship includes both horizontal and vertical angles, the corresponding horizontal angle between the terminal device and the UWB tag must satisfy a horizontal angle range, and the vertical angle must satisfy a vertical angle range.

[0214] The horizontal angle can be -10 degrees to 10 degrees, and the vertical angle can be 0 degrees to 90 degrees. This application does not impose any limitations on these aspects.

[0215] In an exemplary example, after the terminal determines the spatial position relationship between the terminal device and each UWB tag, each spatial position relationship can be displayed in the background of the terminal. For example: UWB tag A: horizontal angle -30 degrees, vertical angle 10 degrees; UWB tag B: horizontal angle -2 degrees, vertical angle 10 degrees; UWB tag C: horizontal angle 35 degrees, vertical angle 5 degrees; UWB tag D: horizontal angle 60 degrees, vertical angle 20 degrees. Based on the screening condition of the terminal determining the pointing direction in the foregoing: the horizontal angle range can be -10 degrees to 10 degrees, and the vertical angle range can be 0 degrees to 90 degrees. Since the spatial position relationship between the UWB tag B and the terminal device is within the angle range, it is determined that the terminal device points to the UWB tag B, that is, the UWB tag B is the target UWB tag.

[0216] In step 604, the target device information of the target IoT device represented by the target UWB tag is determined according to the data frame sent by the target UWB tag.

[0217] In step 605, a data communication connection is established with the target IoT device according to the target device information, and the target IoT device is controlled.

[0218] The implementation of steps 604 and 605 can refer to the foregoing embodiments, and will not be described here.

[0219] In this embodiment, the terminal device receives the data frame through the UWB component to measure the spatial position relationship (horizontal angle and vertical angle) between the terminal device and the UWB tag. In addition, the tag identifier is carried in the data frame broadcast by the UWB tag, so that in the application scenario with multiple UWB tags, the data frames broadcast by different UWB tags can be distinguished. On the basis of simultaneously measuring the spatial position relationship of multiple UWB tags, the confusion of the data frames broadcast by different UWB tags is avoided, which is conducive to improving the accuracy of measuring the spatial position relationship of the UWB tag. In addition, by presetting the horizontal angle range and the vertical angle range, the target UWB tag pointed at (pointed to) by the terminal device is screened from the determined spatial position relationship of multiple UWB tags, so that the terminal device can accurately establish a data communication connection with the target IoT device represented by the target UWB tag.

[0220] As can be known from the above embodiments, in the process that the terminal device establishes a data communication connection with the target IoT device, the UWB component only receives data frames in the working state and does not broadcast data frames, that is, the UWB component only receives the data frames broadcast by the UWB tag. Correspondingly, the UWB tag broadcasts data frames in the working state and does not receive data frames. That is, the UWB tag only broadcasts data frames in the working state and does not receive data frames, which can reduce the power consumption of the UWB tag. Meanwhile, when the UWB tag broadcasts data frames, the data frames can be broadcast based on the CCA and ALOHA protocols, which can avoid data frame conflicts and thus improve the capacity of the target channel.

[0221] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, refer to the method embodiments of the present application.

[0222] Please refer to Figure 11 , which shows a structural block diagram of a control apparatus of an IoT device provided by an embodiment of the present application. The apparatus has functions implemented in the above-mentioned method embodiments and executed by the terminal device side, which can be implemented by hardware or corresponding software executed by hardware. As shown in Figure 11 , the apparatus can include:

[0223] The communication establishment module 1101 is configured to establish UWB communication with a UWB tag, the UWB tag being used to represent an IoT device to be connected, and the UWB tag being independent of the IoT device.

[0224] The determination module 1102 is configured to determine device information of the IoT device represented by the UWB tag.

[0225] The control module 1103 is configured to establish a data communication connection with the IoT device according to the device information and control the IoT device.

[0226] Optionally, the determination module 1102 includes:

[0227] The first determination unit is configured to determine, according to the data frames sent by at least one UWB tag, that the UWB tag pointed to by the terminal device is a target UWB tag.

[0228] The second determination unit is configured to determine, according to the data frames sent by the target UWB tag, target device information of a target IoT device represented by the target UWB tag.

[0229] The control module 1103 includes:

[0230] The control unit is configured to establish a data communication connection with the target IoT device according to the target device information, and control the target IoT device.

[0231] Optionally, the first determining unit is further configured to:

[0232] determine a spatial position relationship between the terminal device and each UWB tag according to the data frames transmitted by the same UWB tag, the spatial position relationship including a horizontal direction angle and a vertical direction angle;

[0233] determine the UWB tag pointed to by the terminal device as the target UWB tag according to the spatial position relationship between the terminal device and each UWB tag.

[0234] Optionally, the first determining unit is further configured to:

[0235] determine the UWB tag as the target UWB tag if the horizontal direction angle between the terminal device and the UWB tag is within a horizontal angle range, and the vertical direction angle between the terminal device and the UWB tag is within a vertical angle range.

[0236] Optionally, the control unit is further configured to:

[0237] establish a data communication connection with the target IoT device according to the target device information, and control the target IoT device in response to a distance between the terminal device and the target IoT device being less than a distance threshold.

[0238] Optionally, the control unit is further configured to:

[0239] establish a data communication connection with the target IoT device, and control the target IoT device in response to the connection condition corresponding to the target IoT device being met.

[0240] The connection condition includes at least one of a pointing duration condition, a gesture condition, a touch condition, a sensor condition, and a voice control condition.

[0241] Optionally, the data frame transmitted by the UWB tag includes a device identifier and position information of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device and control the IoT device according to the device identifier and the position information.

[0242] Optionally, the data frame transmitted by the UWB tag includes a device identifier of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device and control the IoT device according to the device identifier.

[0243] Optionally, the UWB tag sends a tag identifier in a data frame, and the terminal device stores a mapping relationship between the UWB tag and the IoT device, and the terminal device is configured to acquire a device identifier of the IoT device from the mapping relationship according to the tag identifier, and establish a data communication connection with the IoT device according to the device identifier and perform control.

[0244] Optionally, the control unit is further configured to:

[0245] If the connection mode between the target IoT device and the terminal device is WiFi connection, the control unit is further configured to: establish a WiFi data communication connection between the target IoT device and the terminal device through a routing device according to the device identifier of the target IoT device, wherein the target IoT device and the terminal device are both connected to the routing device.

[0246] Optionally, the control unit is further configured to:

[0247] If the connection mode between the target IoT device and the terminal device is Bluetooth connection, the control unit is further configured to: establish a Bluetooth data communication connection between the target IoT device and the terminal device through a Bluetooth component according to the device identifier of the target IoT device.

[0248] Optionally, the apparatus further comprises:

[0249] The acquisition module is configured to acquire a tag identifier of a UWB tag to be bound in response to a binding operation.

[0250] The creation module is configured to establish a mapping relationship between the tag identifier and a device identifier corresponding to the IoT device in response to a selection operation on the IoT device.

[0251] Optionally, the apparatus further comprises:

[0252] The deletion module is configured to delete the mapping relationship indicated by the UWB tag in response to an unbinding operation.

[0253] Optionally, the control unit is further configured to:

[0254] In response to the target IoT device being a smart television, the control unit is further configured to: transmit a current display screen of the terminal device to the smart television.

[0255] Optionally, the control unit is further configured to:

[0256] In response to the target IoT device being a smart home device, the control unit is further configured to: display a control interface corresponding to the smart home device, and the control interface includes a function control corresponding to the smart home device.

[0257] In response to a triggering operation on a function control in the control interface, the smart home device is controlled to perform a corresponding device function.

[0258] Optionally, the communication establishing module comprises:

[0259] The communication establishing unit is configured to establish UWB communication with the UWB tag through a UWB component, the UWB component being detachable from the terminal device, or the UWB component being arranged inside the terminal device.

[0260] Optionally, the UWB component receives data frames in a working state and does not send data frames.

[0261] In the embodiment, the UWB tag representing the IoT device is arranged, and the UWB tag is independent of the IoT device. The terminal device can establish data communication connection with the IoT device represented by the UWB tag by establishing UWB communication with the UWB tag, and control the IoT device. Due to the independence between the UWB tag and the IoT device, the terminal device and the IoT device do not need to perform any operation before the data communication connection is established, which reduces the device power consumption of the IoT device, and improves the automation and convenience of the terminal device in controlling the IoT device.

[0262] Please refer to Figure 12 which shows a structural block diagram of a control device of an IoT device according to an embodiment of the present application. The device has functions implemented by the UWB tag side in the above-mentioned method embodiments, which can be implemented by hardware, or corresponding software executed by hardware. As shown in Figure 12 , the device can comprise:

[0263] The communication establishing module 1201 is configured to establish UWB communication with the terminal device;

[0264] The data sending module 1202 is configured to send data frames to the terminal device, so that the terminal device determines device information of the IoT device represented by the UWB tag according to the data frames sent by the UWB tag, establishes data communication connection with the IoT device according to the device information, and controls the IoT device.

[0265] Optionally, the data frames sent by the UWB tag contain device identification and position information of the IoT device, and the terminal device is configured to establish data communication connection with the IoT device and control the IoT device according to the device identification and the position information.

[0266] Optionally, the UWB tag sends a device identifier of the IoT device in the data frame, and the terminal device is configured to establish a data communication connection with the IoT device according to the device identifier and perform control.

[0267] Optionally, the UWB tag sends a tag identifier in the data frame, and the terminal device stores a mapping relationship between the UWB tag and the IoT device, and is configured to obtain a device identifier from the mapping relationship according to the tag identifier, and establish a data communication connection with the IoT device according to the device identifier and perform control.

[0268] Optionally, the UWB tag sends the data frame in a working state and does not receive the data frame.

[0269] The data sending module 1202 comprises:

[0270] The listening unit is configured to listen to a target channel.

[0271] The data sending unit is configured to send the data frame to the terminal device on the target channel in response to the target channel being idle.

[0272] In the embodiments of the present application, the UWB tag representing the IoT device is provided, and the UWB tag is independent of the IoT device. The terminal device can establish a UWB communication with the UWB tag, establish a data communication connection with the IoT device represented by the UWB tag, and control the IoT device. Due to the independence between the UWB tag and the IoT device, the terminal device does not need to perform any operation with the IoT device before establishing a data communication connection with the IoT device, which reduces the device power consumption of the IoT device and improves the automation and convenience of the terminal device in controlling the IoT device.

[0273] It should be noted that: the apparatus provided in the above embodiments is only used as an example to illustrate the division of the above functional modules in realizing its functions. In actual application, the above functions can be completed by different functional modules according to needs, i.e., the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process is described in detail in the method embodiments, which will not be repeated here.

[0274] In a possible application scenario, the UWB component can be packaged as an internal antenna component of the terminal, and the UWB component is electrically connected to the terminal device through an internal circuit board. Therefore, the corresponding terminal device can receive the data frame broadcast by the UWB tag through the UWB component.

[0275] Please refer toFigure 13 Fig. 13 shows a block diagram of a structure of a terminal device 1300 according to an example embodiment of the present application. The terminal device 1300 in the present application can include one or more of the following components: a processor 1310, a memory 1320, and a UWB component 1330, wherein the processor 1310 is electrically connected to the memory 1320 and the UWB component 1330, respectively.

[0276] The processor 1310 can include one or more processing cores. The processor 1310 connects various parts in the entire terminal device 1300 by various interfaces and lines, and performs various functions of the terminal device 1300 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 1320, and calling data stored in the memory 1320. Optionally, the processor 1310 can be implemented in at least one of a hardware form of a digital signal processing (DSP), a field-programmable gate array (FPGA), and a programmable logic array (PLA). The processor 1310 can integrate one or a combination of a CPU, a graphics processor (GPU), and a modem. Among them, the CPU mainly processes operating systems, user interfaces, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the touch display screen; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 1310, but be implemented by a separate communication chip.

[0277] The memory 1320 can include a random access memory (RAM) and can also include a read-only memory (ROM). Optionally, the memory 1320 includes a non-transitory computer-readable storage medium. The memory 1320 can be used to store instructions, programs, codes, code sets, or instruction sets. The memory 1320 can include a program storage area and a data storage area, where the program storage area can store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing each of the above-mentioned method embodiments, etc., and the operating system can be an Android system (including a system developed based on the Android system), an IOS system developed by Apple Inc. (including a system developed based on the IOS system), or other systems. The data storage area can also store data created by the terminal device 1300 in use (such as a phone book, audio and video data, chat record data, etc.).

[0278] The UWB component 1330 is configured to receive a data frame broadcast by an external UWB component, so that the terminal device 1300 can process the data frame by the processor to achieve the purpose of determining the spatial position of the IoT device according to the data frame.

[0279] In the embodiments of the present application, the memory 1320 stores at least one instruction, and the at least one instruction is used to be executed by the processor 1310 to perform the control method of the IoT device as shown in the above embodiments.

[0280] Optionally, the terminal device 1300 can also include a touch display screen, which can be a capacitive touch display screen, configured to receive a touch operation of a user using a finger, a stylus, or any suitable object on or near the touch display screen, and display a user interface of each application. The touch display screen is usually arranged on the front panel of the terminal device 1300. The touch display screen can be designed to be a full screen, a curved screen, or a special-shaped screen. The touch display screen can also be designed to be a combination of a full screen and a curved screen, a combination of a special-shaped screen and a curved screen, and the embodiments of the present application do not limit this.

[0281] In addition, those skilled in the art can understand that the structure of the terminal device 1300 shown in the above-mentioned drawings does not constitute a limitation on the terminal device 1300, and the terminal can include more or fewer components than the diagram, or combine certain components, or different component arrangements. For example, the terminal device 1300 also includes radio frequency circuitry, a camera assembly, sensors (excluding temperature sensors), audio circuitry, a wireless fidelity (WiFi) assembly, a power supply, a Bluetooth assembly, and the like, which are not described here.

[0282] In another possible implementation, the UWB assembly can be packaged as a terminal accessory that is independent of the terminal device. When the terminal device is equipped with the terminal accessory, the terminal device and the terminal accessory are electrically connected through the interface circuit, so that the terminal device can have a spatial position sensing capability. When the terminal device is not equipped with the terminal accessory, the terminal device does not have a spatial position sensing capability.

[0283] Please refer to Figure 14 which shows a structural block diagram of a terminal system 1400 provided by an example embodiment of the present application. The terminal system 1400 in the present application can include one or more of the following devices: a terminal device 1410 and a terminal accessory 1420.

[0284] The terminal device 1410 includes a memory and a processor, the memory storing at least one instruction for being executed by the processor to implement the control method of the IoT device described in the above-mentioned embodiments.

[0285] The terminal accessory 1420 includes a UWB assembly for receiving a data frame broadcast by an external UWB assembly and transmitting the data frame to the terminal device 1410 through an interface circuit, so that the terminal device 1410 can sense the spatial position relationship of the object according to the data frame.

[0286] Optionally, the terminal accessory 1420 can be a protective shell of the terminal device 1410, a terminal pendant, or the like, which can be installed or worn on the terminal 1410.

[0287] In an example embodiment, as shown in Figure 15As shown in FIG. 16, which shows a structural schematic diagram of a terminal accessory 1500 according to an example embodiment of the present application. The terminal accessory 1500 is taken as an example of a terminal protective shell. The terminal accessory 1500 includes a UWB component 1501 and an interface circuit 1502. The UWB component 1501 transmits a data frame to a terminal device through the interface circuit 1502. Optionally, the terminal accessory 1500 further includes a universal serial bus hub (USB Hub). When the terminal device is worn with the terminal accessory 1500, the terminal accessory 1500 can communicate with the terminal through the USB Hub. Optionally, the terminal accessory 1500 further includes an infrared lamp. The terminal device can control an IoT device through the infrared lamp.

[0288] Please refer to Figure 16 As shown in FIG. 16, which shows a structural schematic diagram of a UWB component 1600 according to an example embodiment of the present application.

[0289] The UWB component 1600 includes a UWB antenna 1601 and an interface circuit 1602. The UWB antenna 1601 and the interface circuit 1602 are electrically connected.

[0290] The UWB component 1600 is used to be connected with a terminal device through the interface circuit 1602, so that the terminal device can establish UWB communication with a UWB tag and connect with an IoT device represented by the UWB tag.

[0291] Please refer to Figure 17 As shown in FIG. 16, which shows a structural schematic diagram of a UWB component 1600 according to an example embodiment of the present application.

[0292] In the example embodiment of the present application, the terminal device 1701 establishes UWB communication with the UWB tag 1702. The UWB tag 1702 is used to represent an IoT device 1703 to be connected, and the UWB tag 1702 is independent of the IoT device 1703.

[0293] The UWB tag 1702 sends a data frame to the terminal device 1701.

[0294] The terminal device 1701 determines device information of the IoT device 1703 represented by the UWB tag 1702 according to the data frame sent by the UWB tag 1702, establishes data communication connection with the IoT device 1703 according to the device information, and controls the IoT device 1703.

[0295] The embodiment of the present application further provides a computer readable storage medium, which stores at least one program code, the program code is loaded and executed by a processor to implement the control method of the IoT device according to various embodiments.

[0296] According to an aspect of the present application, a computer program product or computer program is provided, which includes computer instructions stored in a computer readable storage medium. A processor of a terminal device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the terminal device to perform the control method of the IoT device provided in various optional implementation manners of the above aspect.

[0297] It should be understood that "multiple" mentioned herein refers to two or more. The "and / or" describes the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B can represent the following three cases: A exists alone, A and B exist together, and B exists alone. The character " / " generally represents that the associated objects before and after it are in an "or" relationship. In addition, the step numbers described herein only exemplarily show a possible execution order between steps, and in some other embodiments, the above steps can also be executed in a different order from the number order, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in an order opposite to the illustration, and the embodiments of the present application do not limit this.

[0298] The above only describes optional embodiments of the present application, and does not limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A control method of an IoT device, characterized by, The method is used for a terminal device, a UWB component of the terminal device receives a data frame in an operating state and does not send a data frame, and the method comprises: In response to a binding operation, obtaining a tag identifier of a UWB tag to be bound; In response to a selection operation on an IoT device, establishing a mapping relationship between the tag identifier and a device identifier corresponding to the IoT device; Establishing UWB communication with at least one UWB tag, different UWB tags are used to represent different IoT devices to be connected, and the UWB tags are independent of the IoT devices, the UWB tags send data frames in an operating state and do not receive data frames, wherein the UWB tags send data frames to the terminal device on a target channel when the target channel is detected to be idle; Determining target device information of a target IoT device represented by a target UWB tag among the at least one UWB tag, the target UWB tag is a UWB tag pointed to by the terminal device, the data frame sent by the UWB tag contains a tag identifier, and the IoT device represented by the UWB tag is determined based on the mapping relationship between the UWB tag and the IoT device stored in the terminal device; According to the target device information and the target IoT device, a data communication connection is established, and the target IoT device is controlled.

2. The method of claim 1, wherein, The determination of the target device information of the target IoT device represented by the target UWB tag among the at least one UWB tag comprises: According to the data frame sent by at least one UWB tag, the UWB tag pointed to by the terminal device is determined to be the target UWB tag; According to the data frame sent by the target UWB tag, the target device information of the target IoT device represented by the target UWB tag is determined; According to the target device information and the target IoT device, a data communication connection is established, and the target IoT device is controlled. The determination of the target device information of the target IoT device represented by the target UWB tag among the at least one UWB tag comprises:

3. The method of claim 2, wherein, According to the data frame sent by at least one UWB tag, the UWB tag pointed to by the terminal device is determined to be the target UWB tag; According to the data frame sent by the target UWB tag, the target device information of the target IoT device represented by the target UWB tag is determined; According to the target device information and the target IoT device, a data communication connection is established, and the target IoT device is controlled.

4. The method of claim 3, wherein, The determination of the target device information of the target IoT device represented by the target UWB tag among the at least one UWB tag comprises: According to the data frame sent by at least one UWB tag, the UWB tag pointed to by the terminal device is determined to be the target UWB tag; According to the spatial position relationship between the terminal device and each UWB tag, the UWB tag pointed to by the terminal device is determined to be the target UWB tag. The determination of the target device information of the target IoT device represented by the target UWB tag among the at least one UWB tag comprises: The UWB tag with the horizontal direction angle between the terminal device within a horizontal angle range and the vertical direction angle between the terminal device within a vertical angle range is determined as the target UWB tag.

5. The method of claim 2, wherein, The establishing a data communication connection with the target IoT device according to the target device information and controlling the target IoT device comprises: In response to a distance between the terminal device and the target IoT device being less than a distance threshold, establishing a data communication connection with the target IoT device according to the target device information and controlling the target IoT device.

6. The method of claim 2, wherein, The establishing a data communication connection with the target IoT device according to the target device information and controlling the target IoT device comprises: In response to the connection condition corresponding to the target IoT device being met, establishing a data communication connection with the target IoT device and controlling the target IoT device; The connection condition comprises at least one of a pointing duration condition, a gesture condition, a touch condition, a sensor condition, and a voice control condition.

7. The method of claim 2, wherein: The data frame sent by the UWB tag comprises a device identifier and position information of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device and control the IoT device according to the device identifier and the position information.

8. The method of claim 2, wherein: The data frame sent by the UWB tag comprises a device identifier of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device and control the IoT device according to the device identifier.

9. The method of any one of claims 7 to 8, wherein, The establishing a data communication connection with the target IoT device according to the target device information comprises: If the connection mode of the target IoT device and the terminal device is WiFi connection, a WiFi data communication connection is established between the target IoT device and the terminal device through a routing device according to a device identifier of the target IoT device, and the target IoT device and the terminal device are connected to the routing device.

10. The method of any one of claims 7 to 8, wherein, The establishing a data communication connection with the target IoT device according to the target device information comprises: If the connection mode of the target IoT device and the terminal device is Bluetooth connection, a Bluetooth data communication connection is established between the target IoT device and the terminal device through a Bluetooth component according to a device identifier of the target IoT device.

11. The method of claim 1, wherein, The method further comprises: In response to an unbinding operation, deleting the mapping relationship indicated by the UWB tag.

12. The method of claim 2, wherein, The controlling the target IoT device comprises: In response to the target IoT device being a smart television, transmitting a current display screen of the terminal device to the smart television.

13. The method of claim 2, wherein, The controlling the target IoT device comprises: In response to the target IoT device being a smart home device, displaying a control interface corresponding to the smart home device, the control interface comprising a function control corresponding to the smart home device; In response to a trigger operation on the function control in the control interface, controlling the smart home device to execute a corresponding device function.

14. The method of claim 1, wherein, The establishing a UWB communication with at least one UWB tag comprises: The UWB component is separable from the terminal device, or the UWB component is arranged inside the terminal device.

15. A control method of an IoT device, characterized by, The method is used for the UWB tag, and the method comprises: The UWB component of the terminal device receives the data frame in the working state and does not send the data frame; When the target channel is detected to be idle, the data frame is sent to the terminal device on the target channel, so that the terminal device determines target device information of a target IoT device represented by a target UWB tag according to the data frame sent by at least one UWB tag, establishes a data communication connection with the target IoT device according to the target device information, and controls the target IoT device, the target UWB tag is a UWB tag pointed by the terminal device, the UWB tag sends the data frame in the working state and does not receive the data frame, the data frame sent by the UWB tag contains a tag identifier, and the IoT device represented by the UWB tag is determined based on a mapping relationship between the UWB tag and the IoT device stored in the terminal device.

16. The method of claim 15, wherein The data frame sent by the UWB tag contains device identification and position information of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device and control the IoT device according to the device identification and the position information.

17. The method of claim 15, wherein The data frame sent by the UWB tag contains device identification of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device and control the IoT device according to the device identification.

18. A control apparatus of an IoT device, characterized by, The apparatus comprises: An acquisition module configured to acquire a tag identifier of a UWB tag to be bound in response to a binding operation; A creation module configured to establish a mapping relationship between the tag identifier and device identification corresponding to an IoT device in response to a selection operation of the IoT device; A communication establishment module configured to establish UWB communication with at least one UWB tag, different UWB tags are used to represent different IoT devices to be connected, the UWB tags are independent of the IoT devices, the UWB tags send data frames in the working state and do not receive data frames, and the UWB tags send the data frames to a terminal device on a target channel when the target channel is detected to be idle, a UWB component of the terminal device receives the data frame in the working state and does not send the data frame; A determination module configured to determine target device information of a target IoT device represented by a target UWB tag in at least one UWB tag, the target UWB tag is a UWB tag pointed by the terminal device. The control module is configured to establish a data communication connection with the target IoT device according to the target device information, and control the target IoT device, the data frame sent by the UWB tag contains a tag identifier, and the IoT device represented by the UWB tag is determined based on a mapping relationship between the UWB tag and the IoT device stored in the terminal device.

19. A control apparatus of an IoT device, characterized by, The apparatus comprises: The communication establishment module is configured to establish UWB communication with the terminal device, the UWB component of the terminal device receives data frames in a working state and does not send data frames; The data sending module is configured to send a data frame to the terminal device on a target channel when it is detected that the target channel is idle, so that the terminal device determines target device information of a target IoT device represented by a target UWB tag according to the data frame sent by at least one UWB tag, establishes a data communication connection with the target IoT device according to the target device information, and controls the target IoT device, the target UWB tag is a UWB tag pointed to by the terminal device, the UWB tag sends data frames in a working state and does not receive data frames, the data frame sent by the UWB tag contains a tag identifier, and the IoT device represented by the UWB tag is determined based on a mapping relationship between the UWB tag and the IoT device stored in the terminal device.

20. A control system of an IoT device, characterized by, The system comprises a terminal device, a UWB tag and an IoT device, the UWB component of the terminal device receives data frames in a working state and does not send data frames; In response to a binding operation, the terminal device acquires a tag identifier of a UWB tag to be bound; In response to a selection operation on an IoT device, the terminal device establishes a mapping relationship between the tag identifier and a device identifier corresponding to the IoT device; The terminal device establishes UWB communication with at least one UWB tag, different UWB tags are used to represent different IoT devices to be connected, and the UWB tags are independent of the IoT devices, the UWB tags send data frames in a working state and do not receive data frames, and the UWB tags send data frames to the terminal device on a target channel when it is detected that the target channel is idle; The UWB tag sends a data frame to the terminal device on a target channel when it is detected that the target channel is idle; The terminal device determines target device information of a target IoT device represented by a target UWB tag according to the data frame sent by the UWB tag, establishes a data communication connection with the target IoT device according to the target device information, and controls the target IoT device, the target UWB tag is a UWB tag pointed to by the terminal device, the data frame sent by the UWB tag contains a tag identifier, and the IoT device represented by the UWB tag is determined based on a mapping relationship between the UWB tag and the IoT device stored in the terminal device.

21. A terminal device, comprising: The terminal device comprises a processor, a memory and a UWB component. The processor is electrically connected with the memory and the UWB component respectively; The UWB component is configured to establish UWB communication with a UWB tag and receive a data frame sent by the UWB tag, the UWB tag is configured to represent an IoT device to be connected, and the UWB tag is independent of the IoT device, the UWB tag sends a data frame in a working state and does not receive a data frame, wherein the UWB tag sends a data frame to the terminal device on a target channel when a target channel is detected to be idle; The memory stores at least one instruction, and the at least one instruction is used for being executed by the processor to perform the following steps: In response to a binding operation, obtaining a tag identifier of a UWB tag to be bound; In response to a selection operation of the IoT device, establishing a mapping relationship between the tag identifier and a device identifier corresponding to the IoT device; According to the data frame sent by at least one UWB tag, determining target device information of a target IoT device represented by a target UWB tag, the target UWB tag being a UWB tag pointed to by the terminal device, the UWB component of the terminal device receiving a data frame in a working state and not sending a data frame, the data frame sent by the UWB tag containing a tag identifier, and the IoT device represented by the UWB tag being determined based on the mapping relationship between the UWB tag and the IoT device stored in the terminal device; According to the target device information, establishing a data communication connection with the target IoT device and controlling the target IoT device.

22. The terminal device of claim 21, wherein, The at least one instruction is also used for being executed by the processor to perform the following steps: According to the data frame sent by at least one UWB tag, determining that the UWB tag pointed to by the terminal device is the target UWB tag; According to the data frame sent by the target UWB tag, determining the target device information of the target IoT device represented by the target UWB tag; According to the target device information, establishing a data communication connection with the target IoT device and controlling the target IoT device.

23. The terminal device of claim 22, wherein, The at least one instruction is also used for being executed by the processor to perform the following steps: According to the data frame sent by the same UWB tag, determining a spatial position relationship between the terminal device and the UWB tag, the spatial position relationship including a horizontal direction angle and a vertical direction angle; According to the spatial position relationship between the terminal device and each UWB tag, determining that the UWB tag pointed to by the terminal device is the target UWB tag.

24. The terminal device of claim 23, wherein, The at least one instruction is also used for being executed by the processor to perform the following steps: The UWB tag with the horizontal direction angle between the terminal device located in a horizontal angle range and the vertical direction angle between the terminal device located in a vertical angle range is determined as the target UWB tag.

25. A UWB assembly comprising: The UWB component includes a UWB antenna and an interface circuit; The UWB antenna and the interface circuit are electrically connected. The UWB component is configured to be connected to a terminal device through the interface circuit, so that the terminal device can acquire a tag identifier of a UWB tag to be bound in response to a binding operation, establish a mapping relationship between the tag identifier and a device identifier corresponding to an IoT device in response to a selection operation of the IoT device, establish UWB communication with at least one UWB tag, determine target device information of a target IoT device represented by a target UWB tag from the at least one UWB tag, and establish a data communication connection with the target IoT device according to the target device information, to control the target IoT device, the target UWB tag being a UWB tag pointed to by the terminal device, the UWB tag sending a data frame in a working state and not receiving a data frame, wherein the UWB tag sends a data frame to the terminal device on a target channel when a target channel is detected to be idle, the data frame sent by the UWB tag containing a tag identifier, and an IoT device represented by the UWB tag being determined based on a mapping relationship between the UWB tag and the IoT device stored in the terminal device.

26. The UWB assembly of claim 25, wherein, The UWB component is a protective shell of the terminal device.

27. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one program code, the program code is loaded and executed by the processor to implement the control method of the IoT device according to any one of claims 1 to 14, or the control method of the IoT device according to any one of claims 15 to 17.

Citation Information

Patent Citations

  • System for remotely controlling a controllable device

    CN105493635A

  • Target searching method and device, storage medium and computer equipment

    CN110650439A

  • Positioning method, device and system based on ultra wide band

    CN110764052A