CN114513771A - IoT (Internet of things) equipment control method, device, control system and terminal equipment - Google Patents

IoT (Internet of things) equipment control method, device, control system and terminal equipment Download PDF

Info

Publication number
CN114513771A
CN114513771A CN202011282240.7A CN202011282240A CN114513771A CN 114513771 A CN114513771 A CN 114513771A CN 202011282240 A CN202011282240 A CN 202011282240A CN 114513771 A CN114513771 A CN 114513771A
Authority
CN
China
Prior art keywords
uwb
equipment
iot
target
uwb tag
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011282240.7A
Other languages
Chinese (zh)
Inventor
张烨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011282240.7A priority Critical patent/CN114513771A/en
Priority to PCT/CN2021/121747 priority patent/WO2022100314A1/en
Publication of CN114513771A publication Critical patent/CN114513771A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a control method, a control device, a control system and terminal equipment of IoT equipment, and belongs to the technical field of UWB. The method is applied to the terminal equipment and comprises the following steps: establishing UWB communication with a UWB tag, the UWB tag being used to characterize an IoT device to be connected, and the UWB tag being independent of the IoT device; determining device information of an IoT device characterized by the UWB tag; and establishing data communication connection with the IoT equipment according to the equipment information, and controlling the IoT equipment. Due to the independence between the UWB tag and the IoT equipment, before the data communication connection is established between the terminal equipment and the IoT equipment, any operation between the terminal equipment and the IoT equipment is not needed, the equipment power consumption of the IoT equipment is reduced, and the automation and the convenience of controlling the IoT equipment by the terminal equipment are improved.

Description

IoT (Internet of things) equipment control method, device, control system and terminal equipment
Technical Field
The embodiment of the application relates to the technical field of UWB (ultra wide band), in particular to a control method, a control device, a control system and terminal equipment of Internet of Things (IoT) equipment.
Background
The Ultra Wide Band (UWB) technology is a wireless carrier communication technology, which does not use sinusoidal carrier, but uses nanosecond-level non-sinusoidal wave narrow pulses to transmit data, so that the occupied frequency spectrum range is very Wide, and the data transmission rate can reach more than several hundred megabits per second. In an application scene, the UWB technology has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, high positioning accuracy and the like, and is particularly suitable for high-speed wireless access in dense multipath places such as indoor places and the like.
Disclosure of Invention
The embodiment of the application provides a control method, a control device, a control system and a terminal device of IoT equipment. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a control method of an IoT device, where the method is used for a terminal device, and the method includes:
establishing UWB communication with a UWB tag, the UWB tag being used to characterize an IoT device to be connected, and the UWB tag being independent of the IoT device;
determining device information of an IoT device characterized by the UWB tag;
and establishing data communication connection with the IoT equipment according to the equipment information, and controlling the IoT equipment.
In another aspect, an embodiment of the present application provides a method for controlling an IoT device, where the method is used for a UWB tag, and the method includes:
establishing UWB communication with a terminal device;
and sending a data frame to the terminal equipment, enabling the terminal equipment to determine the equipment information of the IoT equipment represented by the UWB tag according to the data frame sent by the UWB tag, establishing data communication connection with the IoT equipment according to the equipment information, and controlling the IoT equipment.
In another aspect, an embodiment of the present application provides a control apparatus for an IoT device, where the apparatus includes:
a communication establishment module for establishing UWB communication with a UWB tag, the UWB tag being used for characterizing an IoT device to be connected, the UWB tag being independent of the IoT device;
a determining module to determine device information for an IoT device characterized by the UWB tag;
and the control module is used for establishing data communication connection with the IoT equipment according to the equipment information and controlling the IoT equipment.
In another aspect, an embodiment of the present application provides a control apparatus for an IoT device, where the apparatus includes:
the communication establishing module is used for establishing UWB communication with the terminal equipment;
and the data sending module is used for sending a data frame to the terminal equipment, so that the terminal equipment determines the equipment information of the 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 equipment information, and controls the IoT equipment.
In another aspect, an embodiment of the present application provides a control system of an IoT device, where the system includes a terminal device, a UWB tag, and an IoT device;
the terminal device establishes UWB communication with the UWB tag, the UWB tag is used for characterizing an IoT device to be connected, and the UWB tag is independent of the IoT device;
the UWB tag sends a data frame to the terminal equipment;
and the terminal equipment determines the equipment information of the 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 equipment information and controls the IoT equipment.
On the other hand, an embodiment of the present application provides a terminal device, where the terminal device includes: a processor, memory, and UWB components;
the processor is electrically connected with the memory and the UWB component respectively;
the UWB component is used for establishing UWB communication with a UWB tag and receiving data frames sent by the UWB tag, the UWB tag is used for characterizing an IoT device to be connected, and the UWB tag is independent of the IoT device;
the memory stores at least one instruction for execution by the processor to perform the steps of:
determining device information of an IoT device represented by the UWB tag according to a data frame sent by the UWB tag;
and establishing data communication connection with the IoT equipment according to the equipment information, and controlling the IoT equipment.
In another aspect, an embodiment of the present application provides a UWB component, including: a UWB antenna and interface circuitry;
the UWB antenna is electrically connected with the interface circuit;
the UWB component is used for being connected with the terminal equipment through the interface circuit, so that the terminal equipment can establish UWB communication with the UWB tag and is connected with the IoT equipment characterized by the UWB tag.
In another aspect, the present embodiments provide a computer-readable storage medium, in which at least one program code is stored, and the program code is loaded and executed by a processor to implement the method for controlling an IoT device according to the above aspect.
In another aspect, embodiments of the present application provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the terminal device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal device executes the control method of the IoT device provided in the various optional implementations of the above aspect.
The technical scheme provided by the embodiment of the application can bring the following beneficial effects:
by setting up the UWB tag that can characterize the IoT device, and the UWB tag is independent of the IoT device, the terminal device can establish a data communication connection with the IoT device characterized 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 equipment, before the data communication connection is established between the terminal equipment and the IoT equipment, any operation between the terminal equipment and the IoT equipment is not needed, the equipment power consumption of the IoT equipment is reduced, and the automation and the convenience of controlling the IoT equipment by the terminal equipment are improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 illustrates a schematic diagram of an implementation environment of an exemplary embodiment of the present application;
fig. 2 illustrates a flowchart of a control method of an IoT device provided by an exemplary embodiment of the present application;
fig. 3 shows a flowchart of a control method of an IoT device provided by another exemplary embodiment of the present application;
fig. 4 illustrates a process diagram of a terminal device controlling a target IoT device according to an exemplary embodiment of the present application;
fig. 5 is a schematic diagram illustrating a display control interface in a terminal device according to an exemplary embodiment of the present application;
fig. 6 shows a flowchart of a control method of an IoT device provided by another exemplary embodiment of the present application;
fig. 7 shows a schematic diagram of the structure of an antenna in a UWB component of an exemplary embodiment of the present application;
FIG. 8 illustrates an operational timing diagram of a UWB assembly and a plurality of UWB tags shown in an exemplary embodiment of the present application;
FIG. 9 is a diagram illustrating a process for measuring horizontal direction angles by a horizontal antenna group according to an exemplary embodiment of the present application;
FIG. 10 is a schematic diagram illustrating a process for determining a spatial location relationship of a terminal device and a UWB tag according to an exemplary embodiment of the present application;
fig. 11 is a block diagram illustrating a control apparatus of an IoT device according to an embodiment of the present application;
fig. 12 is a block diagram illustrating a control apparatus of an IoT device according to an embodiment of the present application;
fig. 13 is a block diagram illustrating a structure of a terminal device according to an exemplary embodiment of the present application;
fig. 14 is a block diagram illustrating a structure of a terminal system according to an exemplary embodiment of the present application;
FIG. 15 illustrates a schematic structural view of a terminal fitting shown in an exemplary embodiment of the present application;
FIG. 16 illustrates a block diagram of an architecture of a UWB module provided in an exemplary embodiment of the present application;
fig. 17 is a block diagram illustrating a control system of an IoT device according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of an implementation environment of an exemplary embodiment of the present application is shown, which includes a terminal device 110, at least one IoT device 120, and a UWB tag 130.
Terminal device 110 is a device with spatial location awareness capability, which refers to: terminal device 110 may perceive a spatial location relationship between it and other devices. The terminal device 110 may be a portable electronic device such as a smart phone, a tablet computer, an intelligent remote controller, and an intelligent watch.
In the embodiment of the present application, the terminal device 110 may establish UWB communication with the UWB tag 130 through the UWB component. That is, the terminal device 110 may receive the data frame transmitted by the UWB tag 130 through the UWB component, and determine the spatial positional relationship between the terminal device 110 and the UWB tag 130 from the data frame transmitted by the UWB tag 130.
Alternatively, the UWB components may be separate from terminal device 110, or the UWB components may be independent of terminal device 110. That is, the terminal device 110 has a function of establishing UWB communication with the UWB tag 130 when the UWB component is mounted or worn; when terminal device 110 is not carrying or is not installed with UWB components, terminal device 110 may not be able to establish UWB communication with UWB tags. Under this application scenario, the UWB component may be packaged as a terminal accessory, for example, the UWB component may be a mobile phone shell, a mobile phone protective case, a mobile phone pendant, and the like.
Alternatively, the UWB component may be disposed inside the terminal device 110, that is, the UWB component is disposed inside the terminal device 110, so that the terminal device 110 may establish UWB communication with the UWB tag 130 through the UWB component.
The IoT device 120 is an electronic device that can establish a data communication connection function with the terminal device 110, and may be a smart television 122, a smart speaker 121, a smart door lock 123, a smart refrigerator, a smart air conditioner, a smart light fixture, an on-vehicle air conditioner, or the like. The data communication connection is as follows: the IoT device 120 and the terminal device 110 may perform information interaction through a data communication connection, where the data communication connection may be a WiFi connection, a bluetooth connection, an infrared connection, and the like, which is not limited in this embodiment of the application.
The UWB tag 130 is used to characterize the IoT device 120, that is, the UWB tag 130 is independent of the IoT device 120. By independent it is meant that UWB tag 130 is a separate device from IoT device 120, being able to be sold separately as a product, rather than being integrated within IoT device 120 as part of IoT device 120, and not being a component module of IoT device 120. And after the UWB tag 130 and the IoT device 120 are bound, the UWB tag 130 and the IoT device 120 do not have a data communication connection relationship, and only have a mapping relationship, where the mapping relationship refers to the IoT device 120 whose characteristic can be determined by the UWB tag 130. As shown in fig. 1, UWB tag 131 is used to characterize IoT device 121, UWB tag 132 is used to characterize IoT device 122, and UWB tag 132 is used to characterize IoT device 123.
In this embodiment of the application, the UWB tag 130 sends a data frame to the terminal device 110, and the terminal device 110 determines, according to the received data frame, device information of the IoT device 120 represented by the UWB tag, establishes a data communication connection with the IoT device 120 according to the device information, and controls the IoT device 120.
Referring to fig. 2, a flowchart of a method for controlling an IoT device according to an exemplary embodiment of the present application is shown, where the method is applied to the terminal device and the UWB tag shown in fig. 1 as an example, the method includes:
in step 201, a terminal device establishes UWB communication with a UWB tag, where the UWB tag is used to characterize an IoT device to be connected, and the UWB tag is independent of the IoT device.
In an application scenario of the embodiment of the present application, the UWB tag may broadcast a data frame, and the terminal device may 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.
Wherein the UWB tag is used to characterize the IoT device to be connected, that is, the UWB tag is independent of the IoT device. The independence means that the UWB tag is an IoT device-independent apparatus that can be sold separately as a product, rather than being integrated within the IoT device as part of the IoT device, and not being a component module of the IoT device. And after the binding of the UWB tag and the IoT device is completed, the UWB tag and the IoT device do not have a data communication connection relation and only have a mapping relation, wherein the mapping relation refers to the IoT device which can be characterized by the UWB tag.
Based on the relationship of the UWB tag independent of the IoT device, the UWB tag may be affixed to the IoT device, or the UWB tag may be placed in proximity to the IoT device; the UWB tag may be placed at a location far away from the IoT device, and the present embodiment does not limit the placement location of the UWB tag.
Optionally, since the UWB tag is independent of the IoT device, in one possible implementation, the UWB tag may have an independent power source, for example, a button battery is disposed inside the UWB tag to provide power to the UWB tag when the UWB tag is in an operating state.
Optionally, the UWB tag is provided with a USB interface, and the UWB tag is charged through the USB interface to maintain the cruising ability of the UWB tag.
In the charging scene, the UWB tag and the IoT device may be connected by using a USB cable, and accordingly, the UWB tag and the IoT device establish a charging connection relationship, and the IoT device only supplies power to the UWB tag, and the UWB tag and the IoT device have no data communication connection relationship.
The data communication connection means: the IoT device and the terminal device may perform information interaction through a data communication connection, where the data communication connection may be a WiFi connection, a bluetooth connection, an infrared connection, and the like, and this is not limited in this embodiment of the application.
Optionally, in a charging scenario, other devices may also be used to charge the UWB tag, for example, a mobile power supply, a fixed power supply, and the like.
Step 202, the UWB tag sends a data frame to the terminal device.
Among them, the UWB tag has a function of broadcasting a data frame.
For the mode of broadcasting the data frame by the UWB tag, in some possible embodiments, the data frame may be broadcast in real time after the UWB tag is started; or broadcast the data frame every preset time period, for example, broadcast the data frame every 30 s; or broadcast the data frame in real time within a preset time period, for example, the UWB tag broadcasts the data frame in real time within a time period of 8:00:00 in the morning to 8:00:00 in the evening.
In step 203, the terminal device determines device information of an IoT device characterized by the UWB tag.
Based on the relationship between the UWB tag and its characterizing IoT device, the terminal device may determine the device information of the IoT device characterized by the UWB tag from the data frames broadcast by the UWB tag.
The device information may be information uniquely representing the IoT device, for example, the device information may be a device identifier, a device name, device location information, and the like of the IoT device.
For the way that the terminal determines the device information of the IoT device characterized by the UWB tag, taking determining the device identifier as an example, the following cases may be included:
1. the data frame is added with the device identification of the IoT device characterized by the UWB tag.
In one possible implementation, the UWB tag adds the device identification of the IoT device that it characterizes to the data frame, which is sent 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 characterized by the UWB tag.
2. The data frame is added with a tag identification of the UWB tag, and the terminal equipment stores the mapping relation between the UWB tag and the IoT equipment.
In another possible implementation, the UWB tag adds its tag identification to the data frame, and transmits the data frame to the terminal device. Correspondingly, the terminal device receives the data frame sent by the UWB tag, extracts the tag identifier corresponding to the UWB tag from the data frame, and obtains the device identifier from the mapping relationship according to the tag identifier, where the device identifier is the device identifier of the IoT device represented by the UWB tag.
3. And adding the device identification and the position information of the IoT device characterized by the UWB tag into the data frame.
In another possible embodiment, the UWB tag adds device identification and location information to the data frame and transmits the data frame to the terminal device. Correspondingly, the terminal device receives the data frame sent by the UWB tag, and obtains the device identifier and the location information of the IoT device characterized by the UWB tag.
And step 204, the terminal equipment establishes data communication connection with the IoT equipment according to the equipment information and controls the IoT equipment.
In a possible implementation manner, after the terminal device determines the device information of the IoT device characterized by the UWB tag, the terminal device may directly establish a data communication connection with the corresponding IoT device according to the device information, and control the IoT device.
In an exemplary example, if the device information is a device identifier, and correspondingly, the terminal device may determine a corresponding IoT device according to the device identifier, establish a data communication connection with the IoT device, and control the IoT device.
In summary, in the embodiment of the present application, by setting the UWB tag that can characterize the IoT device, and the UWB tag is independent from the IoT device, the terminal device can establish UWB communication with the UWB tag, establish data communication connection with the IoT device that is characterized by the UWB tag, and control the IoT device. Due to the independence between the UWB tag and the IoT equipment, before the data communication connection is established between the terminal equipment and the IoT equipment, any operation between the terminal equipment and the IoT equipment is not needed, the equipment power consumption of the IoT equipment is reduced, and the automation and the convenience of controlling the IoT equipment by the terminal equipment are improved.
Referring to fig. 3, a flowchart of a method for controlling an IoT device according to another exemplary embodiment of the present application is shown, where the method is applied to the terminal device shown in fig. 1 as an example, the method includes:
step 301, UWB communication is established with a UWB tag, the UWB tag is used for characterizing an IoT device to be connected, and the UWB tag is independent of the IoT device.
The implementation manner of this step may refer to the above embodiments, which are not described herein.
Step 302, according to the data frame sent by at least one UWB tag, determining that the UWB tag pointed by the terminal device is a target UWB tag.
Based on the user's need to control a certain IoT device through a terminal device, the terminal device is generally pointed to the IoT device. Therefore, based on the behavior habit of the user, when it is determined that the terminal device establishes data communication connection with a certain IoT device, the position relationship between the terminal device and the UWB tag is set to be a direct-facing relationship, that is, the UWB tag pointed by the terminal device is determined to be a target UWB tag, so that the subsequent terminal device can establish data communication connection according to the target IoT device represented by the target UWB tag and control the target IoT device.
Based on the principle that the UWB technology realizes the capability of sensing the spatial position relationship of the terminal, in one possible implementation, when determining the spatial position relationship between the terminal device and the UWB tag, a positioning method in the UWB technology may be adopted, for example, Angle of Arrival (AOA) measurement: determining the spatial position of the object according to the arrival angle of the data frame; the Phase Difference of Arrival (PDOA) of the signals is measured and the spatial position of the object is determined from the Phase Difference of Arrival of the data frames. The embodiment of the present application does not limit the specific positioning principle used for determining the spatial position relationship.
Optionally, for a case that an application scenario includes a terminal device and a single UWB tag, where the UWB tag characterizes a single IoT device, if a user needs to control the IoT device, the terminal device may be directly aligned to the UWB tag corresponding to the IoT device. Correspondingly, the terminal device may receive the data frame sent by the UWB tag, and determine the IoT device characterized by the UWB tag according to the data frame, thereby establishing a data communication connection with the IoT device, and then controlling the IoT device.
Optionally, for an application scenario that includes a terminal device and multiple UWB tags, different UWB tags characterize different IoT devices. When the UWB tag is in an operating state, the terminal device may receive data frames sent by the plurality of UWB tags, determine a spatial position relationship between each UWB tag and the terminal device according to the data frames sent by at least one UWB tag, and screen out a target UWB tag pointed by the terminal device, thereby determining a target IoT device that a user needs to control.
Step 303, determining target device information of the target IoT device represented by the target UWB tag according to the data frame sent by the target UWB tag.
In a possible implementation manner, when the terminal device determines the target UWB tag pointed to by the terminal device according to the received data frame. That is, the terminal device determines a target IoT device that the user wants to control the target UWB tag by the terminal device. Because the data frame is added with the relevant 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.
The information contained in the data frame may include the following three cases:
1. the data frame sent by the UWB tag comprises the equipment identifier and the position information of the IoT equipment, and the terminal equipment is used for establishing data communication connection with the IoT equipment according to the equipment identifier and the position information and controlling the data communication connection.
Wherein the device identity is a device identity of an IoT device characterized by the UWB tag. The device identification may be an identification that uniquely identifies the IoT device. For example, the device identifier may be a machine code, a device number, and the like of the IoT device, which is not limited in this embodiment of the present application.
The location information may be location information of the UWB tag or location information of the IoT device.
For the situation that the location information is location information of the UWB tag, in an application scenario, the UWB tag is placed at the same location as the IoT device characterized by the UWB tag, and correspondingly, the location information of the UWB tag may be adopted to replace the location information of the IoT device.
For the location information being location information of an IoT device, in an application scenario, a UWB tag may be placed at the same location as the IoT device it characterizes, or a UWB tag may be placed at a different location from the IoT device.
In a possible implementation manner, when the target UWB tag transmits the data frame, the target device identifier and the target location information of the target IoT device may be carried in the data frame, or the target device identifier of the target IoT device and the target location information of the target UWB tag are carried in the data frame, and correspondingly, the terminal device receives the data frame transmitted by the target UWB tag, and may obtain the target device identifier and the target location information of the target IoT device from the data frame, so as to establish and control data communication connection with the target IoT device according to the target device representation and the target location information.
2. The data frame sent by the UWB tag comprises the equipment identifier of the IoT equipment, and the terminal equipment is used for establishing data communication connection with the IoT equipment according to the equipment identifier and controlling the data communication connection.
In another possible implementation, when the UWB tag transmits the data frame, the data frame carries the device identifier of the IoT device represented by the UWB tag, and correspondingly, the terminal device receives the data frame transmitted by each UWB tag, and may determine the device identifier of the IoT device represented by each UWB tag.
Correspondingly, after the terminal device determines the target UWB tag pointed by the terminal device, the target device identifier of the target IoT device represented by the target UWB tag can be obtained from the data frame sent by the target UWB tag.
3. The data frame sent by the UWB tag comprises a tag identification, the terminal device stores the mapping relation between the UWB tag and the IoT device, and the terminal device is used for acquiring the device identification from the mapping relation according to the tag identification, establishing data communication connection with the IoT device according to the device identification and controlling the data communication connection.
The tag identification may be information uniquely identifying the UWB tag, for example, a tag number of the UWB tag.
In one possible implementation, a mapping relationship between each UWB tag and the IoT device characterized by the UWB tag is stored in the terminal device in advance, and the mapping relationship may be a correspondence relationship between the tag identifier and the device identifier.
In one illustrative example, the mapping between the UWB tag and the IoT device may be as shown in table one:
watch 1
Label identification Device identification
UWB tag 1 IoT device B
UWB tag 2 IoT device A
UWB tag 4 IoT device D
In one possible embodiment, the UWB tag carries a tag identification in a data frame. Correspondingly, after receiving the data frame sent by the UWB tag, the terminal device acquires the tag identifier of the UWB tag from the data frame, so that the device identifier corresponding to the tag identifier is determined according to the mapping relation, and the IoT device represented by the UWB tag is determined according to the device identifier.
Optionally, for a scenario in which a data frame sent by the UWB tag only carries a tag identifier, a mapping relationship between the UWB tag and the IoT device needs to be stored in the terminal in advance, and in an exemplary example, a process of storing the mapping relationship in the terminal may include the following steps:
and responding to the binding operation to obtain the label identification of the UWB label to be bound.
In order to enable the terminal to determine the IoT device characterized by the UWB tag according to the tag identifier included in the data frame, in a possible implementation, by performing a binding operation in the terminal device, the corresponding terminal device receives the binding operation, and obtains the tag identifier of the UWB tag to be bound.
And secondly, responding to the selection operation of the IoT equipment, and establishing a mapping relation between the label identification and the corresponding equipment identification of the IoT equipment.
In one possible implementation, IoT devices corresponding to different application scenarios may be registered in the terminal device in advance. For example, room 1 corresponds to IoT devices a to C, room 2 corresponds to IoT devices D to G, and accordingly, a user may view IoT devices located in different application scenarios in a terminal device, and when the user needs to bind a UWB tag and an IoT device, may select an IoT device in the terminal device and input a tag identification of the UWB tag bound to the IoT device. Correspondingly, the terminal device receives the selection operation of the IoT device, and may bind the device identifier and the tag identifier of the IoT device, thereby establishing a mapping relationship between the UWB tag and the IoT device characterized by the UWB tag in the terminal device.
Optionally, the user may also directly input the corresponding relationship between the tag identifier and the device identifier into the terminal device, and correspondingly, a mapping relationship between the tag identifier and the device identifier corresponding to the IoT device is established in the terminal device.
In another possible application scenario, the mapping relationship between the UWB tag and the IoT device is not permanently bound, and the user may modify or delete the mapping relationship between the UWB tag and the IoT device as needed. For example, UWB tag 1 is used to characterize IoT device a before modification, and UWB performance 1 is used to characterize IoT device D after modification. Correspondingly, the user needs to delete the mapping relationship corresponding to the UWB tag in the terminal device, and perform the binding operation between the UWB tag 1 and the IoT device C again.
Correspondingly, in a possible implementation manner, when the terminal device receives the unbinding operation, the mapping relationship indicated by the mountains UWB tag can be deleted by deleting the corresponding relationship between the tag label and the device identifier according to the tag label of the UWB tag indicated by the unbinding operation.
And step 304, establishing data communication connection with the target IoT equipment according to the target equipment information, and controlling the target IoT equipment.
The target device information is information uniquely identifying the target IoT device, for example, the target device information may be a target device identification or target location information of the target IoT device.
In a possible implementation manner, after the terminal device determines the target device information, the terminal device may establish a data communication connection with the target IoT device indicated by the target device information, so as to implement control over the target IoT device.
The connection mode between the terminal device and the target IoT device may be WiFi connection or bluetooth connection, and the data communication connection between the terminal device and the target WiFi connection is established in different connection modes. In one illustrative example, the process of the terminal device establishing the data communication connection with the target IoT device may include the steps of:
if the connection mode of the target IoT equipment and the terminal equipment is WiFi connection, WiFi data communication connection is established between the target IoT equipment and the target IoT equipment through the routing equipment according to the equipment identification of the target IoT equipment, wherein the target IoT equipment and the terminal equipment are both accessed to the routing equipment.
In a possible application scenario, the target IoT device and the terminal device are connected with the same WiFi, that is, the target IoT device and the terminal device both participate in the network through the same routing device, and correspondingly, when the terminal device needs to establish a data communication connection with the target IoT device, the WiFi data communication connection may be established with the target IoT device through the routing device according to the device identifier of the target IoT device.
For a specific way of establishing a data communication connection, in an illustrative example, the terminal device may send a connection establishment instruction to the routing device. The connection establishment instruction comprises a device identifier corresponding to the target IoT device, and after receiving the connection establishment instruction, the routing device sends the connection establishment instruction to the target IoT device according to the device identifier of the target IoT device carried in the connection establishment instruction, and the target IoT device receives the connection establishment instruction and establishes WiFi data communication connection with the terminal device.
And if the connection mode of the target IoT equipment and the terminal equipment is Bluetooth connection, establishing Bluetooth data communication connection with the target IoT equipment through a Bluetooth assembly according to the equipment identification of the target IoT equipment.
In another possible implementation, the terminal device may establish a bluetooth data communication connection with the target IoT device. That is to say, if the connection mode between the target IoT device and the terminal device is bluetooth connection, the terminal device may establish bluetooth data communication connection with the target IoT device through the bluetooth component according to the device identifier corresponding to the target IoT device.
In one possible embodiment, both the terminal device and the IoT device start the bluetooth function, specifically for the way to establish the bluetooth data communication connection. The terminal device may receive bluetooth signals broadcast by other IoT devices, the bluetooth signals may carry device identifiers corresponding to the respective IoT devices, and the terminal device may determine a target bluetooth signal from the received multiple bluetooth signals according to the device identifier corresponding to the target IoT device. Wherein the target Bluetooth signal is broadcast by the target IoT device and establishes a Bluetooth data communication connection with the target IoT device.
Optionally, the terminal device may also directly broadcast a bluetooth connection instruction, where the bluetooth connection instruction includes a device identifier corresponding to the target IoT device. And after the target IoT equipment receives the Bluetooth connection instruction, determining that the equipment identifier is consistent with the equipment identifier of the target IoT equipment, and establishing Bluetooth data communication connection with the terminal equipment.
In one possible implementation, after the terminal device determines a target IoT device that the user wants to control, a bluetooth data communication connection or a WiFi data communication connection may be established with the target IoT device, and the target IoT device may be controlled based on the established data communication connection.
In order to avoid misoperation of the user, the terminal device and the target IoT device establish invalid data communication connection, and the device resources of the target IoT device are occupied. In one possible embodiment, a connection condition is set, that is, the terminal device needs to allow the data communication connection to be established with the target IoT device if the connection condition is satisfied.
Because the functions of different IoT devices are different, different connection conditions are set for the different IoT devices, so that a user can adopt different operations for the different IoT devices, and the accuracy of establishing data communication connection is further improved. For example, if the connection condition corresponding to the IoT device a is a touch condition and the connection condition corresponding to the IoT device B is a gesture condition, when the terminal device determines that the target IoT device is the IoT device a. However, the connection condition performed by the user is a gesture condition, and obviously, the connection condition is not satisfied, and it may be that the determination of the target IoT device is inaccurate and does not correspond to the user's desire. At this point, the data communication connection with IoT device a may stop being established, avoiding the erroneous data communication connection being established.
In one possible implementation, after the terminal device determines the target IoT device, it is continuously determined whether the terminal device meets the connection condition corresponding to the target IoT device, and 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; and if the connection condition corresponding to the target IoT equipment is not met, stopping establishing the data communication connection with the target IoT equipment.
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.
For a scenario in which the pointing duration condition is determined as a connection condition: the terminal device determines that the time duration pointing to the target UWB tag exceeds a time duration threshold value, 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. The duration threshold may be 5s, and the duration threshold is preset by a developer, is a default value, or is set by a user. When the terminal equipment determines that the terminal equipment points to the target UWB tag within 5s, determining that the terminal equipment meets the connection condition corresponding to the target IoT equipment, establishing data communication connection with the target IoT equipment, and controlling the target IoT equipment; otherwise, the data communication connection with the target IoT device is stopped.
Alternatively, the pointing duration condition may be set by the user himself, and different pointing duration conditions may 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 this embodiment of the present application.
For scenarios in which a gesture condition is determined as a connection condition: however, the terminal device detects that the user performs a preset gesture corresponding to the target IoT device, which indicates that the user needs to establish a data communication connection between the terminal device and the target IoT device, and the preset gesture may be a gesture of "strolling OK", or a "sliding terminal screen", or the like.
Optionally, the user may set different preset gestures for different IoT devices. For example, IoT device a corresponds to gesture conditions of: detecting a gesture of a user stroking "OK"; the gesture conditions corresponding to IoT device B are: and detecting that a user draws a preset pattern on a screen of the terminal equipment.
For a scenario in which the touch condition is determined as the connection condition: when the terminal device detects that a user touches a preset position of the terminal, such as a fingerprint identification area, and detects that the fingerprint is a fingerprint for controlling the terminal device to establish data communication connection with a target IoT device; or when the terminal detects that the user touches the screen of the terminal device, establishing data communication connection with the target IoT device.
Optionally, the user may also set different touch conditions for different IoT devices.
For scenarios with sensor conditions as connection conditions: the data communication connection may be established with the target IoT device when the terminal device detects that the user holds the terminal to perform the preset operation. For example, the terminal device detects that the user holds the terminal device with a hand to perform a "shake-shake" operation, and establishes a data communication connection with the target IoT device.
Optionally, the user may also set different sensor conditions for different IoT devices.
For a scenario with a voice control condition as a connection condition: the terminal device may start a voice detection function when determining the target IoT device, and establish a data communication connection with the target IoT device when detecting the voice instruction related to the target IoT device. For example, the preset voice instruction is indicated as "screen projection" in the voice control condition corresponding to the smart television, and when the terminal device determines that the target IoT device is the smart television and receives the screen projection instruction, the terminal device and the smart television establish a data communication connection in advance.
Alternatively, the user may set different voice control conditions for the IoT device not to pass through.
Since the UWB tag is only used to characterize the IoT device, the UWB tag and the IoT device may be located in different spaces. For example, the UWB tag is located in room a, and the IoT device characterized by the UWB tag is located in room B, and the user may cause the terminal device to establish a data communication connection with the target IoT device in advance by pointing the terminal device to the target UWB tag, so as to improve the efficiency of subsequently controlling the target IoT device. In this application scenario, if the terminal device establishes a data communication connection with the target IoT device too early, it is obvious that the connection power consumption between the terminal device and the target IoT device is increased. Therefore, in one possible embodiment, a distance condition is set, that is, the distance between the terminal device and the target IoT device needs to satisfy the distance condition, allowing the terminal device to establish a data communication connection with the target IoT device.
The proximity principle is generally adopted based on the distance between the terminal device and the target IoT device when the user wants to control the target IoT device through the terminal device to perform the target operation. In a possible implementation manner, after the terminal device determines the target IoT device, the distance between the terminal device and the target IoT device is obtained, and when the distance is determined to be smaller than the distance threshold, the data communication connection is established with the target IoT device according to the target device information, and the target IoT device is controlled.
In a possible implementation manner, after the terminal device determines the target IoT device, the terminal device may obtain the location information corresponding to 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 location information and the location information of the terminal device.
Optionally, the distance threshold may be set by the user according to the requirement, or a default value of the system may be adopted. For example, the distance threshold may be 3 m.
In summary, in a possible embodiment, after the terminal device determines the target IoT device, it needs to determine whether the distance between the terminal device and the target IoT device is smaller than a distance threshold. And if the distance is smaller than the distance threshold value, continuously judging whether the terminal meets the connection condition corresponding to the target IoT equipment, and establishing data communication connection with the target IoT equipment and controlling after the connection condition is met.
Wherein, the distance judging process and the connection condition judging process can be carried out simultaneously, or the distance judging process is carried out firstly, and then the connection condition judging process is carried out; or the connection condition judgment process is performed first, and then the distance judgment process is performed, which is not limited in the embodiment of the present application.
In this embodiment, based on a behavior habit that a user wants to control an IoT device through a terminal device, the terminal device is pointed to the IoT device. According to the data frame sent by at least one UWB tag received by the terminal equipment, the UWB tag pointed by the terminal equipment is determined to be a target UWB tag, the IoT equipment represented by the target UWB tag is determined to be target IoT equipment, data communication connection is established with the target IoT equipment, and the target IoT equipment is controlled, so that the aim of controlling the target IoT equipment through communication between the UWB tag and the terminal equipment is fulfilled; in addition, by setting the connection conditions, the problem that invalid data communication connection is established between the terminal equipment and the target IoT equipment due to misoperation of the terminal equipment by a user can be avoided, and the accuracy of the terminal equipment in controlling the target IoT equipment is improved.
In one possible application scenario, the target operations performed by the terminal device to control the IoT devices are not the same for different IoT devices.
For a scene in which the target IoT device is the smart television, when the terminal determines that the target IoT device is the smart television, the terminal device may control the target IoT device to perform a screen projection operation, that is, may transmit a current display screen of the terminal device to the smart television.
In one illustrative example, as shown in fig. 4, a process diagram of a terminal device controlling a target IoT device is shown in one illustrative embodiment of the present application. The target IoT device is an intelligent television, the terminal device 410 displays the video playing interface 411, when the terminal device determines that the target IoT device is the intelligent television, the current display screen of the terminal device 410 may be transmitted to the intelligent television 420, and correspondingly, the video playing interface 421 is displayed on the intelligent television 420.
Optionally, before the terminal device transmits the current display frame to the smart television, an operation confirmation control may be displayed in a display interface of the terminal device, and if the user needs to perform a screen-casting operation, the operation confirmation control may be clicked. Correspondingly, the terminal equipment receives the click operation of the operation confirmation control, and the current display picture of the terminal equipment can be transmitted to the intelligent television, so that the user can continuously watch the display content through the intelligent television.
Optionally, if the target IoT device is a smart television, in a possible implementation, a control interface corresponding to the smart television may be further displayed in the terminal device, and the control interface further includes a function control corresponding to the smart television. For example, a user can click the video progress adjusting control, and the terminal device responds to the triggering operation of the video progress adjusting control to control the smart television to adjust the current video playing progress.
In a possible implementation manner, when the terminal determines that the target IoT device is the smart home device, a control interface corresponding to the entire smart home device may be displayed in the terminal device. The control interface comprises a function control corresponding to the intelligent household equipment; the user can click the function control of the control interface according to the requirement, and the terminal equipment responds to the triggering operation of the function control in the control interface and controls the intelligent household equipment to execute the corresponding equipment function.
Wherein, intelligent household equipment can include: intelligence refrigerator, intelligent audio amplifier, intelligent door lock, intelligent (window) curtain, intelligent lamps and lanterns, intelligent air conditioner etc. this application embodiment does not constitute the injecing to the kind of intelligent house equipment.
If the target IoT device is a smart speaker, the control interface displayed in the terminal device may include: volume adjusting control, music progress adjusting control, play mode adjusting control and the like; if the target IoT device is an intelligent door lock, the control interface displayed in the terminal device may include: password setting controls, switch controls, and the like; if the target IoT device is an intelligent curtain, the control interface displayed in the terminal device may include: a curtain shading degree adjusting control, a curtain opening and closing control and the like; if the target IoT device is an intelligent air conditioner, the control interface displayed in the terminal device may include: a temperature adjusting control, a mode adjusting control, a wind speed adjusting control, a switch control and the like; if the target IoT device is an intelligent luminaire, the control interface displayed in the terminal device may include: a lamp switch control, a brightness adjusting control, a color temperature adjusting control and the like.
In an exemplary example, as shown in fig. 5, a schematic diagram of a display control interface in a terminal device according to an exemplary embodiment of the present application is shown. Taking a target IoT device as an example of an intelligent air conditioner, a control interface 501 is displayed in a terminal device, and a switch 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 are displayed in the control interface 501. When the user clicks the mode adjustment control 503, the terminal device responds to the triggering operation of the mode adjustment control 503 to control the intelligent air conditioner adjustment mode. For example, from a cooling mode to a heating mode.
In the above embodiment, when determining the target UWB tag to which the terminal is pointing, it is necessary to determine the spatial positional relationship between the terminal device and the target UWB tag, and when determining the spatial positional relationship, it is necessary to perform calculation based on the phase difference of the data frame arriving at the antenna. In one possible embodiment, therefore, the terminal device establishes UWB communication with the UWB tag via the UWB component, that is to say receives data frames transmitted by the UWB tag via the UWB component.
Referring to fig. 6, it shows a flowchart of a method for controlling an IoT device according to another exemplary embodiment of the present application, which is described in this application by taking the method as an example for being applied to the terminal device shown in fig. 1, and the method includes:
step 601, establishing UWB communication with a UWB tag through a UWB component.
The UWB component can be separated from the terminal equipment, or the UWB component is arranged in the terminal equipment.
Aiming at the scene that the UWB component and the terminal equipment can be separated, the UWB component can be packaged into terminal accessories, such as a mobile phone protective sleeve, a mobile phone pendant and the like, and when the terminal equipment wears the terminal accessories, the terminal equipment can establish UWB communication with a UWB tag through the UWB component.
In one possible implementation, the UWB tag transmits a data frame, the terminal device may receive the data frame transmitted by the UWB tag through the UWB component, and correspondingly, the terminal device may establish UWB communication with the UWB tag through the UWB component.
The application scene of the embodiment of the application comprises a plurality of UWB tags, and different UWB tags only send data frames under the working state and do not receive the data frames. In order to avoid the problem of collision of data frames sent by different UWB tags, in a possible implementation, when a UWB tag sends a data frame to a terminal device, the UWB tag needs to listen to a target channel in real time, and when the target channel is idle, the UWB tag sends the data frame to the terminal device on the target channel.
The UWB tag detects a target Channel by using a Clear Channel Assessment (CCA) technology, and transmits a data frame through the target Channel when the target Channel is determined to be in a Clear state or when the received signal strength of the target Channel is lower than a threshold value, so that the situation that the spatial position relationship measurement cannot be subsequently performed due to transmission collision of the data frame is avoided, and the capacity of the target Channel can be increased.
Optionally, if the UWB tag detects that the target channel is in the occupied state at the first time, the UWB tag does not broadcast the data frame at the first time, and randomly delays the data frame to the second time. And broadcasting the data frame at the second moment, or continuing to broadcast the data frame when the target channel is monitored to be in an idle state. Wherein upon detecting a data frame collision, the UWB tag may transmit the data frame using a random access (ALOHA) protocol.
Step 602, determining a spatial position relationship between the terminal device and the UWB tag according to the data frame sent by the same UWB tag, where the spatial position relationship includes a horizontal direction angle and a vertical direction angle.
In a possible application scenario, based on the spatial location 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 module needs to set two antenna groups in different directions, each antenna group including two antennas for measuring the horizontal direction angle and the vertical direction angle, respectively. For example, a preset included angle is formed between the first antenna group and the second antenna group, and the preset included angle may be 60 degrees.
In one illustrative 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 comprises a first antenna and a second antenna, and the first antenna and the second antenna are horizontally arranged antennas; the vertical antenna group comprises a first antenna and a third antenna, and the first antenna and the third antenna are vertically arranged antennas. That is, the UWB component includes three antennas, where the first antenna is a common antenna that can be used to participate in measuring both horizontal and vertical angles.
In the application scenario of the embodiment of the application, it is finally determined whether the terminal points to the target UWB tag. Therefore, when the UWB component is set, in order to reduce the amount of calculation of the terminal device, the UWB component may correspond to the horizontal direction and the vertical direction of the terminal device, that is, the horizontal antenna group of the UWB component coincides with the horizontal direction of the terminal device, and the vertical antenna group of the UWB component coincides with the vertical direction of the terminal device.
Optionally, taking the horizontal antenna group and the vertical antenna group as an example, the UWB module may also include four antennas, that is, a first antenna, a second antenna, a third antenna, and a fourth antenna. The first antenna and the second antenna are horizontal antenna groups, and the third antenna and the fourth antenna are vertical antenna groups, which are not limited in the embodiments of the present application.
In an illustrative example, as shown in fig. 7, a schematic diagram of the structure of an antenna in a UWB component of an exemplary embodiment of the present application is shown. The first antenna group includes a first antenna 701 and a second antenna 702, the second antenna group includes a first antenna 701 and a third antenna 703, and a preset included angle exists between a connecting line of the first antenna 701 and the second antenna 702 and a connecting line of the first antenna 701 and the third antenna 703.
Since the terminal device needs to be implemented by two groups of antennas when determining the spatial position relationship between the terminal device and the UWB tag, in a possible implementation manner, when the terminal device receives a data frame, the first antenna group and the second antenna group need to alternately receive the data frame broadcasted by at least one UWB tag.
In a possible implementation manner, if the spatial position of the UWB tag needs to be determined, when a first antenna group in the UWB component is in a receiving state, receiving a data frame sent by the UWB tag, so as to calculate a horizontal direction angle between the UWB tag and the terminal device; and switching the UWB assembly from the first antenna group to the second antenna group, and receiving the data frame sent by the UWB tag again, thereby calculating the vertical direction angle between the UWB tag and the terminal equipment.
In an application scenario of the embodiment of the present application, a plurality of UWB tags may be included, and in a process of measuring a spatial position relationship, an antenna group in a UWB component needs to be switched. In order to avoid that when the antenna group is switched, the terminal device does not receive all data frames broadcasted by all the UWB tags in the application scene, so that the measurement of the spatial position relation of all the UWB tags in the application scene cannot be realized in the process of switching the antenna group once, and the subsequent accuracy of comparing and judging the target UWB tags pointed and facing by the terminal device is reduced. In a possible implementation mode, by inserting the antenna assembly identification into the data frame broadcasted by the UWB tag, the terminal can record the tag identification corresponding to the received data frame before switching the antenna. Therefore, whether data frames possibly including data frames broadcasted by various UWB tags in the application scene are received or not can be judged based on the tag identification, and the accuracy of the antenna group switching time is improved.
In one illustrative example, determining the data frames transmitted by the same UWB tag may include the steps of:
firstly, a data frame broadcasted by at least one UWB tag is received through a first antenna group, and a tag set is constructed according to component identification contained in the data frame.
Wherein, the data frame contains the label identification corresponding to the UWB label. The tag identifier may be a number of a different UWB tag in the application scenario, for example, if the number of the UWB tag is 3, a data frame broadcasted by the UWB tag includes the tag identifier "3", or a machine code of the different UWB tag may be used as the tag identifier, and the embodiment of the present application does not limit the type of the tag identifier.
In order to improve the accuracy of the antenna group switching time, in a possible implementation manner, after the terminal device starts to receive a data frame broadcasted by each UWB tag through the first antenna group, a tag identifier is obtained from the data frame, a tag set is created, and the tag identifier is added to the tag set. The terminal can prejudge whether the data frame broadcasted by each UWB tag contained in the current application scene is received when the first antenna group in the UWB component is in the receiving state through the change condition of the tag identification in the tag set.
In an illustrative example, if the tag identifier is the number of the UWB tag, the corresponding tag set may be a ═ {2, 3, 5}, which indicates 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 component is in the receiving state.
And secondly, responding to the stop of the change of the tag set, and switching the second antenna group to receive the data frame broadcasted by at least one UWB tag.
Based on the characteristics of the UWB tag real-time broadcast data frame, the terminal equipment adds the tag identification contained in the received data frame to the tag set in real time, and if the tag set contains the tag identification, the tag identification is not added repeatedly. And if the label set does not have the label identification, continuously adding the label identification in the label set until the label set stops changing. That is, no new tag identifier is added to the tag set within a period of time, which indicates that there may be no UWB tag other than the UWB tag corresponding to the existing tag identifier in the tag set in the application scenario. Correspondingly, the terminal device may control the UWB module to switch the antenna group for receiving the data frame, for example, to switch from the first antenna group to the second antenna group, so as to continue to receive the data frame broadcast by the UWB tag when the second antenna group is in the working state.
Optionally, when the terminal device is switched from the second antenna group to the first antenna group again, the timing for switching from the second antenna group to the first antenna group again may be determined according to the tag set obtained when the first antenna group is in the receiving state in the last switching process. Therefore, the situation that data frames broadcasted by a certain UWB tag are missed to be received can be avoided, and therefore the spatial positions of all UWB tags cannot be measured in the process of switching the antenna group once.
In an exemplary example, if the tag set B is {1, 2, 3, 4}, it indicates that the data frames broadcast by the UWB tags 1 to 4 are received while the first antenna group in the UWB component is in an operating state. Then, in order to realize the measurement of the spatial positions of the four UWB tags, when the second antenna group in the UWB module is in an operating state, it is necessary to ensure that the data frames broadcasted by the UWB tags 1 to 4 are received, and the switching to the first antenna group can be performed again.
As shown in fig. 8, a timing diagram illustrating operation of a UWB component and a plurality of UWB tags is shown in accordance with an exemplary embodiment of the present application. The UWB tag includes a UWB tag 1-a UWB tag 4. When each UWB tag is in the working state, the data frame is broadcasted by the channel state of the interception target channel. For example, the UWB tag 1 senses that the target channel is idle at T1, continues to sense the target channel after broadcasting the data frame at time T1, and continues to sense the target channel when the target channel is occupied until the target channel is in an idle state, i.e., broadcasts the data frame at time T2. Correspondingly, when the UWB component is in an operating state, the horizontal antenna group first receives data frames broadcast by each UWB tag in a first time period. And when the data frames broadcasted by each tag are determined to be received, the horizontal antenna group is switched to the vertical antenna group, and the data frames broadcasted by each UWB tag are received through the vertical antenna group in a second time period.
In one possible implementation, the terminal receives data frames broadcast by at least one UWB tag through the UWB component, and divides the received data frames into different data frame groups according to tag identifications through tag identifications contained in the data frames. The data frames contained in the same data frame group are all broadcast by the same UWB tag, and accordingly, the terminal device can determine the spatial position relationship between the terminal device and the UWB tag according to the same data frame group.
Since the UWB module includes the first antenna group and the second antenna group in the embodiment of the present application, correspondingly, there are a data frame received by the first antenna group and a data frame received by the second antenna group in a data frame broadcast by the same UWB tag. Therefore, it is possible to determine the horizontal direction angle between the terminal device and the UWB tag from the data frame received by the first antenna group, and determine the vertical direction angle between the terminal device and the UWB tag from the data frame received by the second antenna group. And synthesizing the obtained horizontal direction angle and vertical direction angle to determine the spatial position relation between the terminal equipment and the UWB tag.
The method for determining the spatial position relationship may include the following steps:
firstly, according to a data frame received by a first antenna group, determining a horizontal direction angle between a terminal device and a UWB tag.
Based on the principle of measuring angles in the UWB technology, the horizontal direction angle between the terminal device and the UWB tag can be determined through the data frame received by the first antenna group.
Optionally, the first antenna group may be a horizontal antenna group.
The principle of measuring the horizontal angle is described by taking PDOA as an example as follows: because the horizontal antenna group comprises the first antenna and the second antenna, when the horizontal antenna group is in an operating state, because a certain distance exists between the two antennas, the horizontal direction angle between the second UWB module and the first UWB module in the horizontal direction can be calculated according to the arrival phase difference of the same data frame between the two antennas.
In an exemplary example, as shown in fig. 9, a schematic diagram of a process of measuring a horizontal direction angle by a horizontal antenna group according to an exemplary embodiment of the present application is shown. The horizontal direction angle of the UWB tag 901 with respect to the horizontal antenna group is α, and it can be known from the geometric relationship that the horizontal direction angle is equal to the angle θ. The horizontal antenna group 902 includes a first antenna and a second antenna which are separated by a distance d, and a data frame broadcasted by the UWB tag 901 arrives at the first antenna and the second antenna in the horizontal antenna group 902 with an arrival phase difference, and a horizontal direction angle θ can be calculated from the arrival phase difference.
As shown in fig. 9, the measurement angle formula based on the PDOA principle can be expressed as:
Figure BDA0002781155670000131
the angle (in this embodiment, the horizontal azimuth angle of the terminal device and the UWB tag may be represented), the wavelength, the phase difference of arrival, and the horizontal distance between the first antenna and the second antenna are represented.
And secondly, determining the vertical direction angle between the terminal equipment and the UWB tag according to the data frame received by the second antenna group.
Similarly to the above measurement of the horizontal direction angle, based on the principle of angle measurement in the UWB technique and the position distribution of the antennas in the UWB module, the vertical direction angle between the UWB module and the UWB tag can be determined from the data frame received by the second antenna group.
Optionally, the second antenna group may be a vertical antenna group.
The principle of measuring the vertical angle is described by taking PDOA as an example and comprises the following steps: the vertical antenna group includes a first antenna and a third antenna. When the vertical antenna group is in a working state (signal receiving state), because 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 angle in the vertical direction based on the arrival phase difference is the same as the principle of measuring the angle in the horizontal direction.
In an exemplary example, as shown in fig. 10, a schematic diagram of a process for determining a spatial position relationship between a terminal device and a UWB tag according to an exemplary embodiment of the present application is shown. The application scenario includes a terminal device 1001 and a UWB tag 1002, and the terminal device 1001 is provided with a UWB component. The UWB tag 1002 broadcasts a data frame through the object channel, and the terminal device 1001 receives the data frame broadcast by the UWB tag 1002 through the UWB component. The terminal device 1001 determines a horizontal direction angle θ between the terminal device 1001 and the UWB tag 1002 and a vertical direction angle Φ from the data frame. The corresponding UWB tag 1002 is located at an angle + theta in the horizontal direction and an angle + phi in the vertical direction of the terminal device 1001.
Step 603, determining the UWB tag pointed by the terminal device as a target UWB tag according to the spatial position relationship between the terminal device and each UWB tag.
In the application scenario of the embodiment of the present application, a plurality of UWB tags are included. The terminal respectively calculates the spatial position relation between different UWB tags and UWB components according to the data frames broadcasted by the different UWB tags, and further can determine the target UWB tag which is directly opposite to (pointed to) the terminal equipment according to the spatial position relation.
Whether the terminal device points to the UWB tag or not is determined by judging whether the spatial position relation between the terminal device and the UWB tag deviates or not, namely whether the horizontal direction angle between the terminal device and the UWB tag deviates from a preset horizontal angle range or not is determined, and whether the vertical direction angle between the terminal device and the UWB tag deviates from a preset vertical angle range or not is determined.
In a possible implementation manner, an angle range which needs to be satisfied by the spatial position relationship between the terminal device and the UWB tag when the terminal device faces (points to) the UWB tag is preset. Because the spatial position relation contains horizontal and vertical direction angles, the horizontal direction angle between the corresponding terminal device and the UWB tag needs to satisfy the horizontal angle range, and the vertical direction angle needs to satisfy the vertical angle range.
The horizontal angle range may be-10 degrees to 10 degrees, and the vertical angle range may be 0 degree to 90 degrees, which is not limited herein in this application.
In an illustrative example, after the terminal determines the spatial position relationship between the terminal device and each UWB tag, each spatial position relationship may be displayed in the background of the terminal. For example: the UWB tag A: the angle in the horizontal direction is-30 degrees, and the angle in the vertical direction is 10 degrees; UWB tag B: the angle in the horizontal direction is-2 degrees, and the angle in the vertical direction is 10 degrees; UWB tag C: the horizontal direction angle is 35 degrees, and the vertical direction angle is 5 degrees; UWB tag D: the horizontal direction angle is 60 degrees, and the vertical direction angle is 20 degrees. The terminal determines the screening condition of the pointing direction based on the above: the horizontal angle range may be-10 degrees to 10 degrees, the vertical angle range may be 0 degree to 90 degrees, and since the spatial position relationship between the UWB tag B and the terminal device is within the angle range, the terminal device is determined to be directed to the UWB tag B correspondingly, that is, the UWB tag B is the target UWB tag.
Step 604, determining target device information of the target IoT device characterized by the target UWB tag according to the data frame sent by the target UWB tag.
Step 605, establishing a data communication connection with the target IoT device according to the target device information, and controlling the target IoT device.
The implementation manner of step 604 and step 605 may refer to the above embodiments, which are not described herein.
In this embodiment, the terminal device receives the data frame at the UWB component, and thereby realizes measurement of a spatial position relationship (an angle in the horizontal direction and an angle in the vertical direction) between the terminal device and the UWB tag. In addition, the data frames broadcasted by the UWB tags carry tag identifications, so that in an application scene with a plurality of UWB tags, the data frames broadcasted by different UWB tags can be distinguished. On the basis of simultaneously measuring the spatial position relationship of a plurality of UWB tags, the confusion of data frames broadcast by different UWB tags is avoided, and the accuracy of measuring the spatial position relationship of the UWB tags is improved. In addition, through presetting a horizontal angle range and a vertical angle range, based on the determined spatial position relationship of the plurality of UWB tags, a target UWB tag which is just opposite to (pointed to) the terminal device is screened out, and therefore the terminal device can accurately establish data communication connection with a target IoT device represented by the target UWB tag.
As can be seen from the above embodiments, in the process of establishing a data communication connection between the terminal device and the target IoT device, the UWB component in the operating state only receives the data frame, and does not perform the data frame broadcast, that is, the UWB component only receives the data frame broadcast by the UWB tag. Correspondingly, the UWB tag broadcasts a data frame in an operating state, and does not receive the data frame. That is, when the UWB tag is in a working state, only the data frame is broadcast, and the data frame is not received, so that power consumption of the UWB tag can be reduced; meanwhile, when the UWB tag broadcasts the data frame, the data frame can be broadcast based on CCA and ALOHA protocols, and data frame collision can be avoided, so that the capacity of a target channel is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 11, a block diagram of a control apparatus of an IoT device according to an embodiment of the present application is shown. The device has the function executed by the terminal equipment side in the method embodiment, and the function can be realized by hardware or by hardware executing corresponding software. As shown in fig. 11, the apparatus may include:
a communication establishing module 1101 configured to establish UWB communication with a UWB tag, where the UWB tag is configured to characterize an IoT device to be connected, and the UWB tag is independent of the IoT device;
a determining module 1102 for determining device information of an IoT device characterized by the UWB tag;
a control module 1103, configured to establish a data communication connection with the IoT device according to the device information, and control the IoT device.
Optionally, the determining module 1102 includes:
a first determining unit, configured to determine, according to a data frame sent by at least one UWB tag, that a UWB tag pointed to by the terminal device is a target UWB tag;
a second determining unit, configured to determine, according to the data frame sent by the target UWB tag, target device information of a target IoT device characterized by the target UWB tag;
the control module 1103 includes:
and the control unit is used for establishing data communication connection with the target IoT equipment according to the target equipment information and controlling the target IoT equipment.
Optionally, the first determining unit is further configured to:
determining a spatial position relationship between the terminal equipment and the UWB tag according to a data frame sent by the same UWB tag, wherein the spatial position relationship comprises a horizontal direction angle and a vertical direction angle;
and determining the UWB tag pointed by the terminal equipment as the target UWB tag according to the spatial position relation between the terminal equipment and each UWB tag.
Optionally, the first determining unit is further configured to:
and determining the UWB label between the terminal equipment, of which the horizontal direction angle is in the horizontal angle range and the vertical direction angle is in the vertical angle range, as the target UWB label.
Optionally, the control unit is further configured to:
and in response to the fact that the distance between the terminal device and the target IoT device is smaller than a distance threshold value, establishing data communication connection with the target IoT device according to the target device information, and controlling the target IoT device.
Optionally, the control unit is further configured to:
in response to meeting the connection condition corresponding to the target IoT equipment, establishing a data communication connection with the target IoT equipment and controlling the target IoT equipment;
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.
Optionally, the data frame sent by the UWB tag includes a device identifier and location information of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device according to the device identifier and the location information and perform control.
Optionally, the data frame sent 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 according to the device identifier and perform control.
Optionally, a data frame sent by the UWB tag includes a tag identifier, a mapping relationship between the UWB tag and an IoT device is stored in the terminal device, and the terminal device 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.
Optionally, the control unit is further configured to:
if the connection mode of the target IoT device and the terminal device is WiFi connection, establishing WiFi data communication connection with the target IoT device through a routing device according to the device identification of the target IoT device, wherein the target IoT device and the terminal device are both accessed to the routing device.
Optionally, the control unit is further configured to:
and if the connection mode of the target IoT equipment and the terminal equipment is Bluetooth connection, establishing Bluetooth data communication connection with the target IoT equipment through a Bluetooth assembly according to the equipment identification of the target IoT equipment.
Optionally, the apparatus further comprises:
the acquisition module is used for responding to the binding operation and acquiring the label identification of the UWB label to be bound;
a creating module, 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.
Optionally, the apparatus further comprises:
and the deleting module is used for responding to the unbinding operation and deleting the mapping relation indicated by the UWB label.
Optionally, the control unit is further configured to:
and in response to the target IoT device being a smart television, transmitting a current display screen of the terminal device to the smart television.
Optionally, the control unit is further configured to:
responding to that the target IoT equipment is intelligent home equipment, and displaying a control interface corresponding to the intelligent home equipment, wherein the control interface comprises a function control corresponding to the intelligent home equipment;
and responding to the triggering operation of the function control in the control interface, and controlling the intelligent household equipment to execute the corresponding equipment function.
Optionally, the communication establishing module includes:
and the communication establishing unit is used for establishing UWB communication with the UWB tag through a UWB component, and the UWB component is separable from the terminal equipment, or the UWB component is arranged in the terminal equipment.
Optionally, the UWB component receives a data frame in an operating state, and does not transmit the data frame.
In summary, in the embodiment of the present application, by setting the UWB tag that can characterize the IoT device, and the UWB tag is independent from the IoT device, the terminal device can establish UWB communication with the UWB tag, establish data communication connection with the IoT device that is characterized by the UWB tag, and control the IoT device. Due to the independence between the UWB tag and the IoT equipment, before the data communication connection is established between the terminal equipment and the IoT equipment, any operation between the terminal equipment and the IoT equipment is not needed, the equipment power consumption of the IoT equipment is reduced, and the automation and the convenience of controlling the IoT equipment by the terminal equipment are improved.
Referring to fig. 12, a block diagram of a control apparatus of an IoT device according to an embodiment of the present disclosure is shown. The device has the function of implementing the function executed by the UWB tag side in the above method embodiments, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. As shown in fig. 12, the apparatus may include:
a communication establishing module 1201, configured to establish UWB communication with a terminal device;
a data sending module 1202, configured to send a data frame to the terminal device, so that the terminal device determines, according to the data frame sent by the UWB tag, device information of an IoT device characterized by the UWB tag, establishes a data communication connection with the IoT device according to the device information, and controls the IoT device.
Optionally, a data frame sent by the UWB tag includes a device identifier and location information of the IoT device, and the terminal device is configured to establish a data communication connection with the IoT device according to the device identifier and the location information and perform control.
Optionally, the data frame sent 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 according to the device identifier and perform control.
Optionally, a data frame sent by the UWB tag includes a tag identifier, a mapping relationship between the UWB tag and the IoT device is stored in the terminal device, and the terminal device 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.
Optionally, the UWB tag sends a data frame in a working state, and does not receive the data frame;
the data sending module 1202 includes:
the monitoring unit is used for monitoring a target channel;
and the data sending unit is used for responding to the idle target channel and sending the data frame to the terminal equipment on the target channel.
In summary, in the embodiment of the present application, by setting the UWB tag that can characterize the IoT device, and the UWB tag is independent from the IoT device, the terminal device can establish UWB communication with the UWB tag, establish data communication connection with the IoT device that is characterized by the UWB tag, and control the IoT device. Due to the independence between the UWB tag and the IoT equipment, before the data communication connection is established between the terminal equipment and the IoT equipment, any operation between the terminal equipment and the IoT equipment is not needed, the equipment power consumption of the IoT equipment is reduced, and the automation and the convenience of controlling the IoT equipment by the terminal equipment are improved.
It should be noted that: in the above embodiment, when the device implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
In one possible application scenario, the UWB component may 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, so that the corresponding terminal device may receive the data frame broadcast by the UWB tag through the UWB component.
Referring to fig. 13, a block diagram of a terminal device 1300 according to an exemplary embodiment of the present application is shown. Terminal device 1300 in the present application may include one or more of the following components: a processor 1310, a memory 1320, and a UWB assembly 1330, wherein the processor 1310 is electrically coupled to the memory 1320 and the UWB assembly 1330, respectively.
Processor 1310 may include one or more processing cores. The processor 1310 interfaces with various interfaces and circuitry throughout the various parts of the terminal device 1300, performing various functions of the terminal device 1300 and processing data by executing or executing instructions, programs, code sets or instruction sets stored in the memory 1320 and invoking data stored in the memory 1320. Alternatively, the processor 1310 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 1310 may integrate one or a combination of a CPU, a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing contents required to be displayed by the touch display screen; the modem is used to handle wireless communications. It is understood that the modem may be implemented by a communication chip without being integrated into the processor 1310.
The Memory 1320 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). Optionally, the memory 1320 includes a non-transitory computer-readable medium. The memory 1320 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 1320 may include a program storage area and a data storage area, wherein the program storage area may 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, and the like), instructions for implementing the above method embodiments, and the like, and the operating system may be an Android (Android) system (including a system based on Android system depth development), an IOS system developed by apple inc (including a system based on IOS system depth development), or other systems. The stored data area may also store data created by the terminal device 1300 during use (e.g., phone book, audio-video data, chat log data), etc.
The UWB component 1330 is configured to receive data frames broadcasted by the external UWB component, so that the terminal device 1300 may process the data frames by the processor for the purpose of determining the spatial location of the IoT device according to the data frames.
In this embodiment, the memory 1320 has at least one instruction stored therein for execution by the processor 1310 to perform the method for controlling the IoT device as shown in the above embodiment.
Optionally, the terminal device 1300 may further include a touch display screen, which may be a capacitive touch display screen for receiving a touch operation of a user on or near the touch display screen by using any suitable object, such as a finger or a touch pen, and displaying a user interface of each application program. The touch display screen is generally provided on the front panel of the terminal device 1300. The touch display screen may be designed as a full-face screen, a curved screen, or a profiled screen. The touch display screen can also be designed to be a combination of a full-face screen and a curved-face screen, and a combination of a special-shaped screen and a curved-face screen, which is not limited in the embodiment of the present application.
In addition, those skilled in the art will appreciate that the terminal device 1300 depicted in the above figures is not meant to be limiting with respect to the terminal device 1300, and that the terminal may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. For example, the terminal device 1300 further includes a radio frequency circuit, a shooting component, a sensor (not including a temperature sensor), an audio circuit, a Wireless Fidelity (WiFi) component, a power supply, a bluetooth component, and other components, which are not described herein again.
In another possible embodiment, the UWB component may be packaged as a terminal accessory, the terminal accessory being independent of the terminal device, and 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 may have 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.
Referring to fig. 14, a block diagram of a terminal system 1400 according to an exemplary embodiment of the present application is shown. The terminal system 1400 in the present application may include one or more of the following devices: a terminal device 1410 and a terminal accessory 1420.
The terminal device 1410 includes a memory and a processor, and the memory stores at least one instruction, and the at least one instruction is used for being executed by the processor to implement the IoT device control method according to the above-described embodiment.
The terminal accessory 1420 includes a UWB component for receiving data frames broadcast by an external UWB component and transmitting the data frames to the terminal device 1410 through an interface circuit so that the terminal device 1410 can perceive a spatial positional relationship of an object from the data frames.
Alternatively, the terminal accessory 1420 may be a protective case of the terminal device 1410, a terminal pendant, or the like that may be mounted or worn on the terminal 1410.
In an illustrative example, as shown in fig. 15, a schematic diagram of a terminal fitting 1500 shown in an illustrative embodiment of the present application is shown. Taking the terminal accessory 1500 as an example of a terminal protection shell for illustration, the terminal accessory comprises a UWB component 1501 and an interface circuit 1502, and the UWB component 1501 transmits data frames to the terminal device through the interface circuit 1502; optionally, the terminal accessory 1500 further includes a Universal Serial Bus Hub (USB Hub), through which the terminal accessory 1500 can communicate with the terminal when the terminal accessory 1500 is worn by the terminal device; optionally, the terminal accessory 1500 further comprises an infrared lamp, by which the terminal device can control the IoT device.
Referring to fig. 16, a block diagram of an UWB component 1600 provided in an exemplary embodiment of the present application is shown.
The UWB component 1600 includes a UWB antenna 1601 and an interface circuit 1602. The UWB antenna 1601 is electrically connected to the interface circuit 1602.
UWB component 1600 is configured to connect to terminal devices through interface circuitry 1602 to enable terminal devices to establish UWB communications with UWB tags and to connect to IoT devices characterized by UWB tags.
Referring to fig. 17, a block diagram of a control system 1700 for an IoT device according to an exemplary embodiment of the present application is shown. The control system includes a center terminal device 1701, a UWB tag 1702, and an IoT device 1703.
In the present embodiment, terminal device 1701 establishes UWB communication with UWB tag 1702, UWB tag 1702 is used to characterize IoT device 1703 to be connected, and UWB tag 1702 is independent of IoT device 1703;
the UWB tag 1702 sends a data frame to the terminal device 1701;
the terminal device 1701 determines device information of the IoT device 1703 characterized by the UWB tag 1702 according to the data frame sent by the UWB tag 1702, establishes a data communication connection with the IoT device 1703 according to the device information, and controls the IoT device 1703.
The present embodiments also provide a computer-readable storage medium storing at least one program code, which is loaded and executed by a processor to implement the method for controlling an IoT device according to the above embodiments.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the terminal device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the terminal device executes the control method of the IoT device provided in the various optional implementations of the above aspect.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. In addition, the step numbers described herein only exemplarily show one possible execution sequence among the steps, and in some other embodiments, the steps may also be executed out of the numbering sequence, for example, two steps with different numbers are executed simultaneously, or two steps with different numbers are executed in a reverse order to the order shown in the figure, which is not limited by the embodiment of the present application.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (32)

1. A control method of an IoT device, wherein the method is used for a terminal device, and the method comprises the following steps:
establishing UWB communication with a UWB tag, the UWB tag being used to characterize an IoT device to be connected, and the UWB tag being independent of the IoT device;
determining device information of an IoT device characterized by the UWB tag;
and establishing data communication connection with the IoT equipment according to the equipment information, and controlling the IoT equipment.
2. The method of claim 1, wherein the determining device information for the IoT device characterized by the UWB tag comprises:
according to a data frame sent by at least one UWB tag, determining that the UWB tag pointed by the terminal equipment is a target UWB tag;
determining target device information of a target IoT device represented by the target UWB tag according to a data frame sent by the target UWB tag;
the establishing a data communication connection with the IoT device according to the device information and controlling the IoT device include:
and establishing data communication connection with the target IoT equipment according to the target equipment information, and controlling the target IoT equipment.
3. The method according to claim 2, wherein said determining that the UWB tag pointed to by the terminal device is the target UWB tag according to the data frame transmitted by at least one of the UWB tags comprises:
determining a spatial position relationship between the terminal equipment and the UWB tag according to a data frame sent by the same UWB tag, wherein the spatial position relationship comprises a horizontal direction angle and a vertical direction angle;
and determining the UWB tag pointed by the terminal equipment as the target UWB tag according to the spatial position relation between the terminal equipment and each UWB tag.
4. The method according to claim 3, wherein said determining that the UWB tag pointed by the terminal device is the target UWB tag according to the spatial position relationship between the terminal device and each of the UWB tags comprises:
and determining the UWB label between the terminal equipment, of which the horizontal direction angle is in the horizontal angle range and the vertical direction angle is in the vertical angle range, as the target UWB label.
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:
and in response to the fact that the distance between the terminal device and the target IoT device is smaller than a distance threshold value, establishing 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 meeting the connection condition corresponding to the target IoT equipment, establishing a data communication connection with the target IoT equipment and controlling the target IoT equipment;
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,
the data frame sent by the UWB tag comprises the equipment identifier and the position information of the IoT equipment, and the terminal equipment is used for establishing data communication connection with the IoT equipment according to the equipment identifier and the position information and controlling the data communication connection.
8. The method of claim 2,
and the data frame sent by the UWB tag comprises the equipment identifier of the IoT equipment, and the terminal equipment is used for establishing data communication connection with the IoT equipment according to the equipment identifier and controlling the data communication connection.
9. The method of claim 2,
the data frame sent by the UWB tag comprises a tag identification, the terminal equipment stores the mapping relation between the UWB tag and the IoT equipment, and the terminal equipment is used for acquiring the equipment identification from the mapping relation according to the tag identification, establishing data communication connection with the IoT equipment according to the equipment identification and controlling the data communication connection.
10. The method of any of claims 7 to 9, 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, establishing WiFi data communication connection with the target IoT device through a routing device according to the device identification of the target IoT device, wherein the target IoT device and the terminal device are both accessed to the routing device.
11. The method of any of claims 7 to 9, wherein the establishing a data communication connection with the target IoT device according to the target device information comprises:
and if the connection mode of the target IoT equipment and the terminal equipment is Bluetooth connection, establishing Bluetooth data communication connection with the target IoT equipment through a Bluetooth assembly according to the equipment identification of the target IoT equipment.
12. The method of claim 9, further comprising:
responding to the binding operation, and acquiring a tag identifier of the UWB tag to be bound;
in response to a selection operation of the IoT device, establishing a mapping relationship between the tag identity and the corresponding device identity of the IoT device.
13. The method of claim 12, further comprising:
and deleting the mapping relation indicated by the UWB tag in response to the unbinding operation.
14. The method of claim 2, wherein the controlling the target IoT device comprises:
and in response to the target IoT device being a smart television, transmitting a current display screen of the terminal device to the smart television.
15. The method of claim 2, wherein the controlling the target IoT device comprises:
responding to that the target IoT equipment is intelligent home equipment, and displaying a control interface corresponding to the intelligent home equipment, wherein the control interface comprises a function control corresponding to the intelligent home equipment;
and responding to the triggering operation of the function control in the control interface, and controlling the intelligent household equipment to execute the corresponding equipment function.
16. The method of claim 1, wherein establishing UWB communication with the UWB tag comprises:
establish UWB communication through the UWB subassembly with the UWB tag, the UWB subassembly with terminal equipment is separable, perhaps, the UWB subassembly sets up inside the terminal equipment.
17. The method of claim 16 wherein the UWB component receives data frames and does not transmit data frames while in an operational state.
18. A control method of an IoT device, the method being used for a UWB tag, the method comprising:
establishing UWB communication with a terminal device;
and sending a data frame to the terminal equipment, enabling the terminal equipment to determine the equipment information of the IoT equipment represented by the UWB tag according to the data frame sent by the UWB tag, establishing data communication connection with the IoT equipment according to the equipment information, and controlling the IoT equipment.
19. The method of claim 18,
and the data frame sent by the UWB tag comprises the equipment identifier and the position information of the IoT equipment, and the terminal equipment is used for establishing data communication connection with the IoT equipment according to the equipment identifier and the position information and controlling the data communication connection.
20. The method of claim 18,
the data frame sent by the UWB tag comprises the equipment identifier of the IoT equipment, and the terminal equipment is used for establishing data communication connection with the IoT equipment according to the equipment identifier and controlling the data communication connection.
21. The method of claim 18,
the data frame sent by the UWB tag comprises a tag identification, the terminal equipment stores the mapping relation between the UWB tag and the IoT equipment, and the terminal equipment is used for acquiring the equipment identification from the mapping relation according to the tag identification, establishing data communication connection with the IoT equipment according to the equipment identification and controlling the data communication connection.
22. The method of claim 18, wherein the UWB tag transmits data frames in an active state and does not receive data frames;
the sending of the data frame to the terminal device includes:
monitoring a target channel;
and responding to the idle of the target channel, and sending the data frame to the terminal equipment on the target channel.
23. An apparatus for controlling an IoT device, the apparatus comprising:
a communication establishment module for establishing UWB communication with a UWB tag, the UWB tag being used for characterizing an IoT device to be connected, the UWB tag being independent of the IoT device;
a determining module for determining device information of an IoT device characterized by the UWB tag;
and the control module is used for establishing data communication connection with the IoT equipment according to the equipment information and controlling the IoT equipment.
24. An apparatus for controlling an IoT device, the apparatus comprising:
the communication establishing module is used for establishing UWB communication with the terminal equipment;
and the data sending module is used for sending a data frame to the terminal equipment, so that the terminal equipment determines the equipment information of the 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 equipment information, and controls the IoT equipment.
25. A control system of an IoT device, characterized in that the system comprises a terminal device, a UWB tag and an IoT device;
the terminal device establishes UWB communication with the UWB tag, the UWB tag is used for characterizing an IoT device to be connected, and the UWB tag is independent of the IoT device;
the UWB tag sends a data frame to the terminal equipment;
and the terminal equipment determines the equipment information of the 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 equipment information and controls the IoT equipment.
26. A terminal device, characterized in that the terminal device comprises: a processor, memory, and UWB components;
the processor is electrically connected with the memory and the UWB component respectively;
the UWB component is used for establishing UWB communication with a UWB tag and receiving data frames sent by the UWB tag, the UWB tag is used for characterizing an IoT device to be connected, and the UWB tag is independent of the IoT device;
the memory stores at least one instruction for execution by the processor to perform the steps of:
determining device information of an IoT device represented by the UWB tag according to a data frame sent by the UWB tag;
and establishing data communication connection with the IoT equipment according to the equipment information, and controlling the IoT equipment.
27. The terminal device of claim 26, wherein the at least one instruction is further configured to be executed by the processor to:
according to a data frame sent by at least one UWB tag, determining that the UWB tag pointed by the terminal equipment is a target UWB tag;
determining target device information of a target IoT device represented by the target UWB tag according to a data frame sent by the target UWB tag;
and establishing data communication connection with the target IoT equipment according to the target equipment information, and controlling the target IoT equipment.
28. The terminal device of claim 27, wherein the at least one instruction is further configured to be executed by the processor to:
determining a spatial position relationship between the terminal equipment and the UWB tag according to a data frame sent by the same UWB tag, wherein the spatial position relationship comprises a horizontal direction angle and a vertical direction angle;
and determining the UWB tag pointed by the terminal equipment as the target UWB tag according to the spatial position relation between the terminal equipment and each UWB tag.
29. The terminal device of claim 28, wherein the at least one instruction is further configured to be executed by the processor to:
and determining the UWB label between the terminal equipment, of which the horizontal direction angle is in the horizontal angle range and the vertical direction angle is in the vertical angle range, as the target UWB label.
30. An UWB component, the UWB component comprising: a UWB antenna and interface circuitry;
the UWB antenna is electrically connected with the interface circuit;
the UWB component is used for being connected with the terminal equipment through the interface circuit, so that the terminal equipment can establish UWB communication with the UWB tag and is connected with the IoT equipment characterized by the UWB tag.
31. The UWB component of claim 30, wherein the UWB component is a protective case for the terminal device.
32. A computer-readable storage medium, wherein at least one program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the method for controlling the IoT device according to any one of claims 1 to 17 or the method for controlling the IoT device according to any one of claims 18 to 22.
CN202011282240.7A 2020-11-16 2020-11-16 IoT (Internet of things) equipment control method, device, control system and terminal equipment Pending CN114513771A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011282240.7A CN114513771A (en) 2020-11-16 2020-11-16 IoT (Internet of things) equipment control method, device, control system and terminal equipment
PCT/CN2021/121747 WO2022100314A1 (en) 2020-11-16 2021-09-29 Iot device control method, apparatus, control system, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011282240.7A CN114513771A (en) 2020-11-16 2020-11-16 IoT (Internet of things) equipment control method, device, control system and terminal equipment

Publications (1)

Publication Number Publication Date
CN114513771A true CN114513771A (en) 2022-05-17

Family

ID=81546584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011282240.7A Pending CN114513771A (en) 2020-11-16 2020-11-16 IoT (Internet of things) equipment control method, device, control system and terminal equipment

Country Status (2)

Country Link
CN (1) CN114513771A (en)
WO (1) WO2022100314A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023240568A1 (en) * 2022-06-16 2023-12-21 北京小米移动软件有限公司 Ultra-wideband connection method and apparatus and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
RU2673471C2 (en) * 2013-09-04 2018-11-27 Конинклейке Филипс Н.В. System for remotely controlling controllable device
JP2016220174A (en) * 2015-05-26 2016-12-22 株式会社東芝 Home appliance control method and home appliance controller
CN109995623A (en) * 2017-12-30 2019-07-09 成都标制文化创意有限公司 Intelligent home equipment control method and smart home system
CN111107492A (en) * 2019-12-20 2020-05-05 上海有个机器人有限公司 Multi-device interaction method, medium, terminal and system based on UWB
CN111413883A (en) * 2020-03-31 2020-07-14 广东美的制冷设备有限公司 Control method and control device for household electrical appliance and computer storage medium
CN111885707A (en) * 2020-08-05 2020-11-03 济南浪潮高新科技投资发展有限公司 AR (augmented reality) -device-based Internet of things device control method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023240568A1 (en) * 2022-06-16 2023-12-21 北京小米移动软件有限公司 Ultra-wideband connection method and apparatus and storage medium

Also Published As

Publication number Publication date
WO2022100314A1 (en) 2022-05-19

Similar Documents

Publication Publication Date Title
US10306437B2 (en) Smart device grouping system, method and apparatus
EP3131235B1 (en) Method and apparatus for controlling device
US20110136441A1 (en) Portable terminal and a control method of peripheral device using the same
CN110049476B (en) Equipment pushing method, device, mobile terminal and storage medium
KR20160049759A (en) Method for scanning neighboring devices and electronic apparatus thereof
CN108513347B (en) Data transmission method and electronic equipment
CN109946986B (en) Household appliance control method, wearable device and computer readable storage medium
US20220086735A1 (en) Method and Device for Controlling Connection to Network
CN107948919B (en) Shared information processing method and mobile terminal
CN104469673A (en) Terminal positioning method and device
CN114501119B (en) Interactive display method, device, electronic equipment, system and storage medium
KR20150129591A (en) A mobile device, a method for controlling the mobile device, and a control system having the mobile device
CN114513771A (en) IoT (Internet of things) equipment control method, device, control system and terminal equipment
CN111212312B (en) Method, device and remote control system for realizing equipment control based on remote controller
US20240031932A1 (en) Method for operation of uwb tag, uwb tag, and storage medium
CN113407423A (en) Signal intensity display method and signal intensity display device
WO2022247468A1 (en) Data processing method and apparatus, and electronic device and storage medium
WO2022247558A1 (en) Audio sharing method and apparatus, terminal, audio device and storage medium
EP4258701A1 (en) Method, apparatus and system for determining device position
CN113259843B (en) Control method, device and system of controlled equipment, terminal equipment and UWB assembly
WO2022151832A1 (en) Control method and apparatus for iot device, uwb tag, and terminal device
CN113038450A (en) Terminal control method, device, control module and mobile terminal
CN108476238B (en) Terminal equipment and control method thereof
CN218633937U (en) Wireless communication device and electronic equipment
CN115189698B (en) UWB tag, communication method and related product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination