[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

WO2023279887A1 - Device control method and apparatus, control system, device, and storage medium - Google Patents

Device control method and apparatus, control system, device, and storage medium Download PDF

Info

Publication number
WO2023279887A1
WO2023279887A1 PCT/CN2022/095266 CN2022095266W WO2023279887A1 WO 2023279887 A1 WO2023279887 A1 WO 2023279887A1 CN 2022095266 W CN2022095266 W CN 2022095266W WO 2023279887 A1 WO2023279887 A1 WO 2023279887A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
remote control
control
terminal device
uwb tag
Prior art date
Application number
PCT/CN2022/095266
Other languages
French (fr)
Chinese (zh)
Inventor
张烨
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023279887A1 publication Critical patent/WO2023279887A1/en

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2816Controlling appliance services of a home automation network by calling their functionalities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L5/00Arrangements affording multiple use of the transmission path
    • H04L5/02Channels characterised by the type of signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes

Definitions

  • the embodiments of the present application relate to the field of UWB technologies, and in particular to a device control method, device, control system, device, and storage medium.
  • IoT Internet of Things
  • a user when a user needs to use a terminal device to control an IoT device at home, he can select the IoT device to be controlled in the device selection interface displayed on the terminal device, trigger the terminal device to establish a connection with the IoT device, and further connect the terminal device to the IoT device. Operate on the displayed control interface to realize the control of IoT devices.
  • Embodiments of the present application provide a device control method, device, control system, device, and storage medium. Described technical scheme is as follows:
  • an embodiment of the present application provides a device control method, which is applied to a remote control device, and the method includes:
  • UWB Ultra Wide Band
  • a control instruction is sent to the terminal device, so that the terminal device controls the target IoT device based on the control instruction.
  • an embodiment of the present application provides a device control method, which is applied to a terminal device, and the method includes:
  • the connection instruction is sent when the remote control device determines a target UWB tag from the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device;
  • connection instruction Based on the connection instruction, establish a data communication connection with the target IoT device represented by the target UWB tag;
  • the target IoT device is controlled based on the control instruction.
  • an embodiment of the present application provides an apparatus for controlling equipment, and the apparatus includes:
  • a receiving module configured to receive data frames sent by each UWB tag, where the UWB tag is used to represent an IoT device;
  • a determining module configured to determine a target UWB tag from each of the UWB tags based on the data frame, where the target UWB tag is the UWB tag pointed to by the remote control device;
  • a sending module configured to send a connection instruction to a terminal device based on the target UWB tag, so that the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag;
  • the sending module is further configured to send a control instruction to the terminal device in response to a control operation on the remote control device, so that the terminal device controls the target IoT device based on the control instruction.
  • an embodiment of the present application provides an apparatus for controlling equipment, and the apparatus includes:
  • the first receiving module is configured to receive a connection instruction sent by the remote control device, the connection instruction is sent when the remote control device determines a target UWB tag from the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device ;
  • a connection module configured to establish a data communication connection with the target IoT device represented by the target UWB tag based on the connection instruction
  • a second receiving module configured to receive a control instruction sent by the remote control device
  • a control module configured to control the target IoT device based on the control instruction.
  • an embodiment of the present application provides a control system for an IoT device, the system includes a remote control device, a terminal device, a UWB tag, and an IoT device;
  • the UWB tag is used to characterize the IoT device
  • the remote control device receives data frames sent by each of the UWB tags; based on the data frames, a target UWB tag is determined from each of the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device; based on The target UWB tag sends a connection instruction to the terminal device;
  • the terminal device receives the connection instruction sent by the remote control device; based on the connection instruction, establishes a data communication connection with the target IoT device represented by the target UWB tag;
  • the remote control device sends a control instruction to the terminal device in response to a control operation on the remote control device;
  • the terminal device receives the control instruction sent by the remote control device; and controls the target IoT device based on the control instruction.
  • an embodiment of the present application provides a remote control device, the remote control device includes: a processor, a memory, and a UWB component; the memory stores at least one program, and the at least one program is used to be used by the processor Execute to realize the device control method described in the above aspects.
  • an embodiment of the present application provides a terminal device, the terminal device includes: a processor and a memory; the memory stores at least one program, and the at least one program is used to be executed by the processor to implement The device control method as described in the above aspects.
  • an embodiment of the present application provides a computer-readable storage medium, at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the above-mentioned A device control method on the remote control device side, or a device control method on the terminal device side.
  • an embodiment of the present application provides a computer program product
  • the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer-readable storage medium from the computer-readable storage medium.
  • Computer instructions, the processor executes the computer instructions, so that the computer device executes the device control method on the remote control device side, or the device control method on the terminal device side described in the above aspect.
  • FIG. 1 shows a schematic diagram of an implementation environment of an exemplary embodiment of the present application
  • FIG. 2 shows a flowchart of a device control method provided in an exemplary embodiment of the present application
  • Fig. 3 is the implementation diagram of the data frame receiving process shown in an exemplary embodiment of the present application.
  • Fig. 4 is an interactive schematic diagram of a device control process shown in an exemplary embodiment of the present application.
  • FIG. 5 shows a flow chart of a device control method provided in another exemplary embodiment of the present application.
  • FIG. 6 shows a flowchart of a device control method provided in another exemplary embodiment of the present application.
  • FIG. 7 shows a flow chart of a device control method provided in another exemplary embodiment of the present application.
  • Fig. 8 is a schematic diagram of a remote control device shown in an exemplary embodiment of the present application.
  • FIG. 9 shows a flow chart of a device control method provided in another exemplary embodiment of the present application.
  • Fig. 10 is a schematic diagram of the implementation of the intelligent curtain remote control process shown in an exemplary embodiment of the present application.
  • Fig. 11 is a flow chart of a control instruction sending process shown in an exemplary embodiment of the present application.
  • Fig. 12 shows a structural block diagram of an equipment control device provided by an embodiment of the present application.
  • Fig. 13 shows a structural block diagram of an equipment control device provided by an embodiment of the present application.
  • Fig. 14 shows a structural block diagram of a remote control device provided by an exemplary embodiment of the present application
  • Fig. 15 shows a structural block diagram of a terminal device provided by an exemplary embodiment of the present application.
  • Fig. 16 shows a structural block diagram of a device control system provided by an exemplary embodiment of the present application.
  • FIG. 1 shows a schematic diagram of an implementation environment of an exemplary embodiment of the present application.
  • the implementation environment includes a terminal device 110 , at least one IoT device 120 , a UWB tag 130 and a remote control device 140 .
  • the terminal device 110 is an electronic device with an IoT device control function, and the terminal device 110 may be a portable electronic device such as a smart phone, a tablet computer, a smart remote controller, or a smart watch.
  • the IoT device control function is implemented through an application program (or applet) installed in the terminal device 110 .
  • the IoT device 120 is an electronic device that can establish a data communication connection with the terminal device 110, and it may be a smart TV 122, a smart speaker 121, a smart door lock 123, a smart refrigerator, a smart air conditioner, a smart lamp, and a smart curtain.
  • the IoT device 120 and the terminal device 110 can perform information interaction through a data communication connection, realize the control of the IoT device 120 by the terminal device 110, and/or present device data of the IoT device 120 on the terminal device 110 side.
  • the data communication connection may be a WiFi connection, a Bluetooth connection, an infrared connection, etc., which is not limited in this embodiment of the present application.
  • the UWB tag 130 is an electronic tag for characterizing the IoT device 120 .
  • UWB tag 130 is independent of IoT device 120 .
  • Independence means that the UWB tag 130 is a device independent of the IoT device 120 and can be sold as a product alone, rather than being integrated in the IoT device 120 as a part of the IoT device 120 , nor is it a necessary component of the IoT device 120 .
  • UWB tag 130 and IoT device 120 do not have a data communication connection relationship, but only have a binding relationship.
  • the binding relationship refers to the IoT device 120 whose representation can be determined through the UWB tag 130 . As shown in FIG.
  • the UWB tag 131 is used to represent the IoT device 121
  • the UWB tag 132 is used to represent the IoT device 122
  • the UWB tag 132 is used to represent the IoT device 123 .
  • the UWB tag 130 can also be integrated in the IoT device 120 as a part of the IoT device 120 , that is, the IoT device 120 has the UWB function when it leaves the factory.
  • data communication can be performed between the UWB tag 130 and the IoT device 120.
  • the UWB tag 130 is provided with an independent power supply, and the independent power supply may be a replaceable power supply, a non-replaceable power supply or a rechargeable power supply.
  • the UWB tag 130 is powered by the IoT device 120, and the power supply mode of the IoT device 120 may include wired power supply (such as through a charging cable) or wireless power supply (such as through a wireless charging coil).
  • the remote control device 140 is an electronic device capable of spatial position awareness. In a possible design, the remote control device 140 is independent from the terminal device 110 , but can perform data communication with the terminal device 110 . Wherein, the data communication mode between the remote control device 140 and the terminal device 110 may include WiFi connection, Bluetooth connection, infrared connection, etc., which is not limited in this embodiment of the present application.
  • the spatial location awareness capability means that the remote control device 140 can perceive the spatial location relationship between it and other devices.
  • the spatial location awareness capability of the remote control device 140 is realized by means of UWB components and the UWB tag 130 representing the IoT device 120 .
  • the remote control device 140 can perform UWB communication with the UWB tag 130 through the UWB component, that is, the remote control device 140 can receive the data frame sent by the UWB tag 130 on the target channel through the UWB component, and according to the data frame sent by the UWB tag 130, determine The spatial position relationship between itself and the UWB tag 130 .
  • the remote control device 140 is provided with a remote control, which can be a physical button, a touch panel, etc. in one form or a combination of multiple forms, and the user can realize the corresponding control by triggering the remote control Features.
  • a remote control which can be a physical button, a touch panel, etc. in one form or a combination of multiple forms, and the user can realize the corresponding control by triggering the remote control Features.
  • the volume of the smart speaker 121 can be controlled by clicking a physical button, and the smart TV 122 can be controlled to switch channels by performing a sliding operation on the touch panel.
  • the remote control device 140 is provided with a sensor, so as to recognize the user's gesture operation based on the sensor data collected by the sensor, and then realize the corresponding control function based on the gesture operation.
  • the UWB tag 131 is bound to the smart speaker 121
  • the UWB tag 132 is bound to the smart TV 122
  • the UWB tag 133 is bound to the smart door lock 123 .
  • the remote control device 140 can determine the currently pointed UWB tag 132 according to the data frame sent by each IoT device corresponding to the UWB tag 130, and indicate the smart TV represented by the terminal 110 and the UWB tag 132.
  • Television 122 establishes a data communication connection.
  • the remote control device 140 sends a control command to the terminal 110 according to the received control operation, and the terminal 110 controls the smart TV 122 based on the control command, such as controlling the smart TV 122 to switch channels, adjust the volume, and so on.
  • FIG. 2 shows a flow chart of a device control method provided by an exemplary embodiment of the present application.
  • the embodiment of the present application takes the application of the method in the implementation environment shown in FIG. 1 as an example.
  • the method includes:
  • step 201 the remote control device receives data frames sent by each UWB tag, and the UWB tag is used to represent the IoT device.
  • the UWB tag is in a working state.
  • the bound UWB tag can be pasted on the represented IoT device, or, the UWB tag can be placed near the represented IoT device, or, the UWB tag can be placed far away from the represented IoT device, or, the UWB tag
  • the tag is placed inside the represented IoT device.
  • the embodiment of the present application does not limit the installation position of the UWB tag.
  • the UWB tag In the working state, the UWB tag sends data frames on the target channel; correspondingly, the remote control device in the working state receives the data frames sent by each UWB tag on the target channel.
  • the UWB tag before the UWB tag sends data frames on the target channel, it first needs to listen to the target channel to determine the channel state of the target channel .
  • the UWB tag When the channel state of the target channel is idle (that is, not occupied), the UWB tag will send the data frame; when the channel state of the target channel is occupied (that is, occupied), the UWB tag will send the data frame again after a random delay. Listen to the target channel.
  • the remote control device determines a target UWB tag from each UWB tag based on the data frame, and the target UWB tag is the UWB tag pointed to by the remote control device.
  • the remote control device After receiving the data frame, the remote control device determines the spatial position relationship between each UWB tag and the remote control device, and determines the UWB tag currently pointed to by itself as the target UWB tag.
  • the remote control device determines the spatial position relationship with the UWB tag according to the phase difference when the data frame arrives at the antenna. Moreover, in order to determine the positional relationship with the UWB tag in the horizontal direction and the vertical direction, the remote control device is provided with two sets of antenna groups corresponding to different antenna directions, namely the first antenna group and the second antenna group, and each An antenna group consists of two antennas (there may or may not be a shared antenna). Wherein, the first antenna group and the second antenna group have preset included angles (such as 60 degrees, 90 degrees), which are respectively used to measure the angle in the horizontal direction and the angle in the vertical direction.
  • the remote control device can use the angle of arrival (Angle of Arrival, AOA) or phase difference of arrival (Phase Difference of Arrival, PDoA) technology to perform spatial positioning based on the data frame.
  • AOA Angle of Arrival
  • PDoA Phase Difference of Arrival
  • the remote control device first receives data frames on the target channel through the first antenna group, and then switches to the second antenna group to receive data frames on the target channel when the data frame receiving duration of the first antenna group reaches a preset duration.
  • the remote control device first receives the data frames sent by UWB tags 1-4 on the target channel through the first antenna group, and then switches through the second antenna group to receive the data frames sent by UWB tags 1-4 on the target channel. Data frames sent on the channel.
  • the remote control device determines the UWB tag whose horizontal angle is in the horizontal angle range and whose vertical angle is in the vertical angle range as Target UWB tag.
  • the horizontal angle range may be -10 degrees to 10 degrees
  • the vertical angle range may be 0 degrees to 30 degrees, which are not limited in this embodiment of the present application.
  • the remote control device determines the spatial position relationship with each UWB tag as follows: UWB tag A (horizontal angle -30 degrees, vertical angle 10 degrees); UWB tag B (horizontal angle -2 degrees, vertical angle angle 10 degrees); UWB tag C (horizontal angle 35 degrees, vertical angle 5 degrees); UWB tag D (horizontal angle 60 degrees, vertical angle 20 degrees). If the horizontal angle ranges from -10 degrees to 10 degrees, and the vertical angle ranges from 0 degrees to 30 degrees, since the spatial position relationship between UWB tag B and the remote control device is within this angle range, the remote control device determines UWB tag B as the target UWB tags.
  • Step 203 the remote control device sends a connection instruction to the terminal device based on the target UWB tag.
  • the remote control device Since the remote control device is independent of the terminal device and does not have the ability to directly control the IoT device, after determining the target UWB tag, the remote control device needs to send a connection command to the terminal device through a communication connection with the terminal device, instructing the terminal device Establish a data communication connection with the target IoT device represented by the target UWB tag.
  • a Bluetooth connection is established between the remote control device and the terminal device, and the remote control device sends a connection instruction to the terminal device through the Bluetooth connection.
  • connection instruction includes information indicating the target UWB tag, or includes information indicating the target IoT device represented by the target UWB tag.
  • the remote control device sends a connection instruction to the terminal device based on the target UWB tag when it determines that it is currently pointing to the target UWB tag and the pointing time reaches a duration threshold (such as 2s).
  • a duration threshold such as 2s
  • Step 204 the terminal device receives the connection instruction sent by the remote control device.
  • the terminal device receives the connection instruction sent by the remote control device through the Bluetooth connection.
  • Step 205 based on the connection instruction, the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag.
  • the terminal device determines the target IoT device to be controlled based on the information contained in the connection instruction, and establishes a data communication connection with the target IoT device through the connection mode corresponding to the target IoT device, so as to communicate with the target IoT device through the data communication connection.
  • IoT devices exchange data.
  • the data communication connection between the terminal device and the target IoT device may be a Bluetooth connection, a WiFi connection, or an infrared connection, etc., which is not limited in this embodiment.
  • Step 206 in response to the control operation on the remote control device, the remote control device sends a control instruction to the terminal device.
  • the IoT device needs to be controlled through the control interface displayed by the terminal device.
  • the user only needs to control and operate the remote control device to achieve indirect control of the target IoT device by means of the terminal device.
  • the control operation on the remote control device may be a trigger operation on the remote control on the remote control device, or a gesture operation on the remote control device.
  • the remote control device After receiving the control operation, the remote control device sends a corresponding control instruction to the terminal device based on the received operation type of the control operation. Optionally, the remote control device sends control instructions to the terminal device through the Bluetooth connection.
  • Step 207 the terminal device receives the control instruction sent by the remote control device.
  • the terminal device receives the control instruction sent by the remote control device through the Bluetooth connection.
  • Step 208 the terminal device controls the target IoT device based on the control instruction.
  • the terminal device needs to analyze the received control command to determine the device function controlled by the control command, and then control the target IoT device through the data communication connection with the target IoT device based on the analysis result.
  • the device performs the corresponding device function.
  • the remote control device 43 performs UWB angle measurement on the received data frame to determine that the UWB tag 41 is facing, so as to send a connection instruction through the Bluetooth connection with the terminal device 44, and the terminal The device 44 establishes a WiFi connection with the IoT device 42 based on the connection instruction. Further, the remote control device 43 sends a control command to the terminal device 44 through the Bluetooth connection according to the received control operation, and the terminal device 44 and the control command control the IoT device 42 through the WiFi connection.
  • the remote control device determines the target UWB tag pointed to by itself based on the data frames sent by each UWB tag, and sends a connection instruction to the terminal device, indicating that the terminal device and the target UWB tag indicate
  • the IoT device After the IoT device establishes a connection, it further sends a control command to the terminal device based on the received control operation, and the terminal device controls the target IoT device based on the control command; using the solution provided in the embodiment of this application, the user points the remote control device to the IoT device that needs to be controlled.
  • the remote control device can pass
  • the solution provided by the embodiment of the present application controls it, which enriches the usage scenarios of the remote control device.
  • a connection instruction to the terminal device, including:
  • the target UWB tag Based on the data frame sent by the target UWB tag, send a connection instruction including the target tag ID to the terminal device, so that the terminal device can determine the target IoT device from the mapping relationship between the UWB tag and the IoT device based on the target tag ID.
  • a connection instruction including the target tag identification to the terminal device, including:
  • the target tag ID is obtained from the data frame sent by the target UWB tag, and a connection instruction including the target tag ID is sent to the terminal device.
  • a connection instruction to the terminal device, including:
  • a connection instruction including the target device ID is sent to the terminal device, so that the terminal device determines the target IoT device based on the target device ID.
  • a connection instruction containing the target device identification to the terminal device, including:
  • the target device identification is obtained from the mapping relationship between the UWB tag and the IoT device;
  • a connection instruction including the target device identifier is sent to the terminal device.
  • the target device identifier is obtained from the mapping relationship between the UWB tag and the IoT device;
  • Methods also include:
  • the configuration data includes the mapping relationship between UWB tags and IoT devices.
  • a connection instruction containing the target device identification to the terminal device, including:
  • a control command to the terminal device including:
  • a control instruction including the target control identifier is sent to the terminal device, so that the terminal device determines the target device function controlled by the target remote control control based on the target control identifier.
  • a control command to the terminal device including:
  • a control instruction including target gesture operation information is sent to the terminal device, so that the terminal device determines the target device function controlled by the target gesture operation based on the target gesture operation information.
  • the method in response to the control operation on the remote control device, before sending the control instruction to the terminal device, the method includes:
  • connection feedback information sent by the terminal device, where the connection feedback information is used to indicate the establishment of a data communication connection between the terminal device and the target IoT device;
  • connection feedback information indicates that the data communication connection is established successfully
  • the method further includes:
  • connection failure prompt includes at least one of a vibration prompt, a voice prompt, or an indicator light prompt
  • receive data frames sent by each UWB tag including:
  • the UWB component In the dormant state, in response to a trigger operation on the control on the remote control device, the UWB component is turned on, and the data frames sent by each UWB tag are received through the UWB component.
  • receive data frames sent by each UWB tag including:
  • the UWB component In the dormant state, when the sensor data collected by the sensor indicates that the remote control device is in motion, the UWB component is turned on, and the data frames sent by each UWB tag are received through the UWB component.
  • a Bluetooth connection is established between the remote control device and the terminal device.
  • connection instruction establish a data communication connection with the target IoT device represented by the target UWB tag, including:
  • the target IoT device is determined from the mapping relationship between the UWB tag and the IoT device;
  • connection instruction establish a data communication connection with the target IoT device represented by the target UWB tag, including:
  • the target connection mode includes at least one of Bluetooth and WiFi.
  • the target device identifier contained in the connection instruction is obtained by the remote control device from the mapping relationship between the UWB tag and the IoT device;
  • Methods also include:
  • the remote control device send configuration data to the remote control device, so that the remote control device stores the configuration data, and the configuration data includes the mapping relationship between UWB tags and IoT devices.
  • control the target IoT device based on the control command including:
  • the target control ID is the ID of the target remote control triggered on the remote control device
  • Methods also include:
  • the control setting information is obtained, and the control setting information includes the corresponding relationship between the device identifier, the device function and the control identifier.
  • control the target IoT device based on the control command including:
  • target gesture operation information included in the control command where the target gesture operation information is used to represent the target gesture operation received by the remote control device;
  • Methods also include:
  • Gesture setting information is acquired, and the gesture setting information includes a correspondence between device identifiers, device functions, and gesture operation information.
  • the method further includes:
  • connection feedback information is used to indicate the establishment of the data communication connection between the terminal device and the target IoT device.
  • the method further includes:
  • the device control interface corresponding to the IoT device is displayed, and the device control interface includes the functional controls corresponding to the IoT device;
  • the IoT device In response to the trigger operation on the function control in the device control interface, the IoT device is controlled to execute the corresponding device function.
  • a Bluetooth connection is established between the remote control device and the terminal device.
  • the connection instruction sent by the remote control device to the terminal device includes the target tag identifier of the target UWB tag, and the terminal device determines the target IoT device represented by the target UWB tag based on the target tag identifier.
  • step 203 can be replaced with step 203A
  • step 205 can be replaced with 205A.
  • Step 203A based on the data frame sent by the target UWB tag, the remote control device sends a connection instruction including the target tag identifier to the terminal device.
  • the data frame sent by each UWB tag contains its own tag identifier.
  • the remote control device determines the target UWB tag, it obtains the target tag identifier from the data frame sent by the target UWB tag, and sends a message containing the target tag to the terminal device. Identifies the connection directive.
  • Step 205A the terminal device obtains the target tag ID included in the connection instruction; based on the target tag ID, determine the target IoT device from the binding relationship between the UWB tag and the IoT device; based on the target connection method corresponding to the target IoT device, connect with the target IoT device Establish a data communication connection.
  • the terminal device stores the binding relationship between each UWB tag and the IoT device. After receiving the connection instruction, the terminal device can search for the target UWB tag from the binding relationship according to the target tag identification contained in the connection instruction. The target device ID of the target IoT device represented by the tag.
  • UWB tags IoT devices UWB A smart refrigerator UWB B smart tv UWBC smart curtain
  • the terminal device communicates with different IoT devices in different ways, for example, the terminal device communicates with some IoT devices through a Bluetooth connection, and communicates with some IoT devices through a WiFi connection. Therefore, after the target IoT device is determined, the terminal device further Based on the target connection mode corresponding to the target IoT device, establish a data communication connection with the target IoT device.
  • the terminal device when the target connection mode corresponding to the target IoT device is Bluetooth connection, the terminal device establishes a Bluetooth connection with the target IoT device based on the Bluetooth identification of the target IoT device; when the target IoT device corresponds to the target connection mode When it is a WiFi connection, the terminal device establishes a WiFi connection with the target IoT device through the routing device based on the MAC address of the target IoT device (the target IoT device and the terminal device access the same routing device).
  • the remote control device sends a connection command containing the target tag identifier to the terminal device, and the terminal device determines the target IoT device represented by the target UWB tag based on the preset binding relationship, which simplifies the instruction sending process on the remote control device side , which helps reduce the power consumption of the remote control device.
  • the connection instruction sent by the remote control device to the terminal device includes a target device identifier of the target IoT device, and the terminal can directly determine the target IoT device based on the target device identifier.
  • step 203 can be replaced with step 203B
  • step 205 can be replaced with 205B.
  • step 203B the remote control device sends a connection instruction including the target device identifier to the terminal device based on the data frame sent by the target UWB tag.
  • the remote control device can Obtain the target device ID from the data frame sent by the target UWB tag, and send a connection instruction containing the target device ID to the terminal device.
  • the data frame sent by the UWB tag only contains the tag identifier.
  • the remote control device needs to use the pre-stored binding relationship between the UWB tag and the IoT device to determine the target IoT device represented by the target UWB tag. .
  • the remote control device obtains the target tag identifier from the data frame sent by the target UWB tag; based on the target tag identifier, obtains the target device identifier from the binding relationship between the UWB tag and the IoT device, so as to send a message containing the target device identifier to the terminal device. connection instructions.
  • the terminal device sends configuration data to the remote control device, and the remote control device receives and stores the configuration data sent by the terminal device.
  • the data contains the binding relationship between UWB tags and IoT devices.
  • the configuration data including the binding relationship is sent to the remote control device through the Bluetooth connection.
  • the configuration data may also include other information, such as target channel information, data frame format, receiving cycle, etc., which is not limited in this embodiment.
  • the remote control device determines that the target UWB tag is not bound to the IoT device (which the terminal device can control), and will not send the target UWB tag to the terminal device. Send a connection command.
  • the terminal device acquires the target device identifier contained in the connection instruction; determines the target IoT device based on the target device identifier; and establishes a data communication connection with the target IoT device based on the target connection mode corresponding to the target IoT device.
  • the terminal device can directly determine the target IoT device based on the target device identifier, and establish a data communication connection with the target IoT device.
  • the remote control device first queries the target IoT device from the local binding relationship based on the target tag identifier in the data frame. If the target IoT device is found, it sends a connection command containing the target device identifier to the terminal device; The target IoT device sends a connection command containing the target tag identification to the terminal device, and the terminal device further determines whether there is an IoT device bound to the target UWB tag according to the local binding relationship (the binding relationship on the remote control device side may not be timely renew).
  • the remote control device may receive a control operation through the remote control, so as to send a corresponding control command to the terminal device based on the triggered remote control.
  • step 206 can be replaced with step 206A
  • step 208 can be replaced with 208A.
  • Step 206A in response to a trigger operation on the target remote control on the remote control device, the remote control device sends a control instruction including the target control identifier to the terminal device.
  • a remote control is provided on the remote control device, and the remote control may be a physical button, a touch panel, etc.
  • the embodiment of the present application does not limit the specific type of the remote control.
  • the following embodiments take the target remote control as a physical button as an example for illustration.
  • different remote controls are used to control different functions.
  • the first remote control 81 and the second remote control 82 are used to adjust the function parameters of the first function (such as channel switching function);
  • the third remote control 83 and the fourth remote control 84 are used for Adjust the function parameters of the second function (such as the volume adjustment function);
  • the fifth remote control 85 is used to control the enabling state (pause or start playing) of the third function (video playback).
  • different trigger operations on the same remote control are used to control different functions.
  • the single-click operation on the fifth remote control 85 is used to control the enabled state of the third function
  • the long-press operation on the fifth remote control 85 is used to control the opening and closing of the device.
  • the corresponding remote control on the remote control device can be triggered.
  • the remote control device acquires the target control identifier of the target remote control, and sends a control instruction including the target control identifier.
  • control instruction may also contain the type of trigger operation received by the target remote control, such as single-click operation, double-click operation, long-press operation, and so on.
  • Step 208A the terminal device acquires the target control identifier contained in the control instruction, and the target control identifier is the identifier of the target remote control triggered on the remote control device; based on the target control identifier, determine the function of the target device controlled by the target remote control; control the target IoT The device performs the target device function.
  • the terminal device In order to determine the device function to be controlled, the terminal device obtains the target control ID from the control instruction, so as to determine the target device function controlled by the target remote control based on the target control ID, and then control the target IoT device to execute the target device function.
  • the terminal device first needs to determine the device function of the target IoT device, and then determine the target device function controlled by the target remote control from the device function based on the target control identifier.
  • the terminal device obtains control setting information, and the control setting information includes the corresponding relationship between the device identifier, device function, and control identifier.
  • the terminal device bases the target control identifier and the target IoT The device identifier of the device, and the function of the target device is determined from the above correspondence.
  • the control setting information may be a default setting of the terminal device based on the device function and the remote control control of the remote control device, or may be customized by the user.
  • Table 2 Schematically, in combination with the remote control shown in FIG. 8 , the corresponding relationship among device identifiers, device functions, and control identifiers is shown in Table 2.
  • the terminal device when the terminal device establishes a Bluetooth connection with the smart speaker, and receives the control instruction sent by the remote control device that includes the control identifier of the second control 82, the terminal device controls the smart speaker to play the next song through the Bluetooth connection;
  • the terminal device When the terminal device establishes a WiFi connection with the smart curtain, and receives the control command sent by the remote control device and contains the control identifier of the third control 83, the terminal device controls the smart curtain to increase light transmittance through the WiFi connection; when the terminal device establishes a WiFi connection with the smart air conditioner connection, and when the control instruction sent by the remote control device includes the control identifier of the fifth control 85, the terminal device controls the smart air conditioner to turn off through the WiFi connection.
  • the terminal device controls the target
  • the IoT device executes corresponding device functions, which will not be repeated in this embodiment.
  • the remote control device when the remote control device receives a trigger operation on the remote control, it sends a control instruction including the control ID to the terminal device, and the terminal device determines the required control device function based on the control ID, thereby controlling the target IoT device through a data communication connection. Executing the device function realizes device control without directly operating the terminal device, improves the device control efficiency, and ensures the accuracy of the control process.
  • the user may hold the remote control device and perform a specific gesture operation to trigger the remote control device to send a corresponding control instruction to the terminal device.
  • step 206 can be replaced with step 206B
  • step 208 can be replaced with 208B.
  • Step 206B in response to the target gesture operation on the remote control device, the remote control device sends a control instruction including target gesture operation information to the terminal device.
  • the remote control device has built-in sensors (such as inertial sensors, accelerometers, etc.), and after determining the target UWB tag, the remote control device recognizes the target gesture to the remote control device based on the sensor data collected by the sensor. operation, and then send the control command including the gesture recognition result (that is, the target gesture operation information) to the terminal device.
  • sensors such as inertial sensors, accelerometers, etc.
  • the target gesture operation may include a gesture of swiping left, a gesture of swiping right, a gesture of swiping up, a gesture of swiping down, a gesture of shaking, etc., which is not limited in this embodiment.
  • different gesture operations are used to control different functions.
  • the left/right swipe gesture is used to control song switching
  • the up/down swipe gesture is used to control volume adjustment.
  • the same gesture operation is used to control different functions.
  • the target IoT device is a smart speaker
  • the shaking gesture is used to control audio playback/pause
  • the target IoT device is a smart door lock
  • the shaking gesture is used to control the opening/closing of the door lock.
  • Step 208B the terminal device obtains the target gesture operation information contained in the control instruction, the target gesture operation information is used to represent the target gesture operation received by the remote control device; based on the target gesture operation information, determine the target device function controlled by the target gesture operation; control The target IoT device performs the target device function.
  • the terminal device In order to determine the device function to be controlled, the terminal device obtains the target gesture operation information from the control instruction, thereby determining the target device function to be controlled based on the target gesture operation information, and then controls the target IoT device to execute the target device function.
  • the terminal device first needs to determine the device function of the target IoT device, and then determine the target device function controlled by the target gesture operation from the device function based on the target gesture operation information.
  • the terminal device acquires gesture setting information, which includes the correspondence between the device identifier, device function, and gesture operation information.
  • the terminal device bases the target gesture operation information and The device identifier of the target IoT device, and the function of the target device is determined from the above correspondence.
  • the gesture setting information may be a default setting of the terminal device based on device functions, or may be customized by the user. Schematically, the corresponding relationship among device identifiers, device functions, and gesture operation information is shown in Table 3.
  • the terminal device when the terminal device establishes a Bluetooth connection with the smart speaker, and receives the control instruction sent by the remote control device that includes gesture operation information indicating "swipe right", the terminal device controls the smart speaker to play the following video through the Bluetooth connection.
  • One song when the terminal device establishes a WiFi connection with the smart curtain, and receives the control command sent by the remote control device that contains gesture operation information indicating "swipe up”, the terminal device controls the smart curtain to increase light transmittance through the WiFi connection; when the terminal device When a WiFi connection is established with the smart air conditioner, and the control command sent by the remote control device contains gesture operation information indicating "shaking", the terminal device controls the smart air conditioner to turn off through the WiFi connection.
  • the remote control device 1002 instructs the terminal device to establish a data communication connection with the smart curtain 1001 .
  • the remote control device 1002 sends a control instruction including the gesture operation information of "swipe to the left" to the terminal device.
  • the terminal device determines that the device function corresponding to "swipe left" is to open the curtain, thereby controlling the smart curtain 1001 to open.
  • the remote control device sends a control command containing gesture operation information to the terminal device based on the received gesture operation, and the terminal device controls the device function corresponding to the target IoT device based on the gesture operation information, so that the user can easily Gesture operations can realize the control of IoT devices, which further simplifies the device control process.
  • the terminal device after receiving the connection instruction, the terminal device cannot establish a data communication connection with the target IoT device represented by the target UWB tag. For example, when the terminal device has not established a connection with the target IoT device, or the communication component of the target IoT device is abnormal, the terminal device cannot establish a data communication connection with the target IoT device.
  • the remote control device continues to send control instructions to the terminal device and cannot realize device control, which will instead cause waste of power consumption of the remote control device. Therefore, in a possible implementation manner, after the terminal device attempts to establish a connection with the target IoT device based on the connection instruction, it feeds back the connection result to the remote control device, so that the remote control device determines whether to send a further control instruction based on the connection result. As shown in Figure 11, the process may include the following steps:
  • Step 1101 receiving connection feedback information sent by the terminal device, where the connection feedback information is used to indicate the establishment of the data communication connection between the terminal device and the target IoT device.
  • the terminal device After the terminal device attempts to establish a connection with the target IoT device based on the connection instruction, it sends connection feedback information to the remote control device based on the connection establishment situation.
  • the remote control device receives the connection feedback information, and determines whether the data communication connection between the terminal device and the target IoT device is successfully established. If the establishment is successful, perform step 1102, and if the establishment fails, perform steps 1103 to 1104.
  • Step 1102 if the connection feedback information indicates that the data communication connection is established successfully, send a control instruction to the terminal device in response to the control operation on the remote control device.
  • the remote control device When the data communication connection is successfully established, the remote control device responds to the control operation and sends a control command.
  • the control operation For the process of sending the control instruction based on the received control operation, reference may be made to the above embodiment, and details will not be repeated in this embodiment.
  • Step 1103 if the connection feedback information indicates that the establishment of the data communication connection fails, a connection failure prompt is given, wherein the connection failure prompt includes at least one of a vibration prompt, a voice prompt, or an indicator light prompt.
  • the remote control device When the establishment of the data communication connection fails, in order to inform the user in time and prevent the user from continuing to perform the control operation, the remote control device prompts the connection failure. Correspondingly, the remote control device will not send control instructions to the terminal device.
  • the remote control device when the connection fails to be established, vibrates, or plays a prompt voice through a speaker, or turns on an indicator light. It should be noted that, when the connection is successfully established, the remote control device may also prompt the connection success, prompting the user to perform further control operations. Wherein, the manner of prompting for successful connection is different from prompting for connection failure, which is not limited in this embodiment.
  • Step 1104 resend the connection instruction to the terminal device.
  • the connection feedback information when the connection feedback information indicates that the connection establishment fails, the connection feedback information may also include a failure cause identifier, and if the failure cause indicator indicates that the corresponding target IoT device has not been found, the remote control device does not The connection command is resent. If the failure cause indicator indicates that the corresponding target IoT device has been found, but the connection fails, the remote control device will resend the connection command.
  • the terminal device sends connection feedback information to the remote control device based on the connection establishment status, so that the remote control device determines whether to continue sending control instructions to the terminal device based on the connection feedback information, and avoids failures caused by sending control instructions when the connection fails. Wasted power.
  • the remote control device indirectly controls the IoT device through the terminal device as an example.
  • the terminal device may display the device control interface corresponding to the target IoT device.
  • the device control interface includes functional controls corresponding to the target IoT device.
  • the terminal device displays the TV remote control interface; when the target IoT device is a smart air conditioner, the terminal device displays the air conditioner remote control interface; when the target IoT device is a smart curtain, the terminal device displays the curtain control interface.
  • Panel interface when the target IoT device is a smart TV, the terminal device displays the TV remote control interface; when the target IoT device is a smart air conditioner, the terminal device displays the air conditioner remote control interface; when the target IoT device is a smart curtain, the terminal device displays the curtain control interface. Panel interface.
  • the terminal device controls the target IoT device to execute the corresponding device function.
  • the target IoT device that needs to be controlled can be selected by the remote control device, thereby triggering the display of the corresponding control interface, preventing the user from manually selecting among the applications corresponding to different IoT devices, and improving the user experience.
  • Equipment control efficiency is the reason for controlling the display of the corresponding control interface.
  • the remote control device Since the remote control device is usually in a non-stationary state when the user uses the remote control device to control the IoT device, in order to further reduce the power consumption of the remote control device, the remote control device receives data frames when it detects that it is in a motion state. When it is detected that it is in a prohibited state, it will remain in a dormant state, wherein, in the dormant state, the UWB component in the remote control device does not send and receive data frames.
  • the remote control device in the dormant state, when the sensor data collected by the sensor indicates that the remote control device is in a motion state, the remote control device turns on the UWB component, and receives data frames sent by each UWB tag through the UWB component.
  • the senor may be an inertial sensor, an acceleration sensor, etc., which is not limited in this embodiment.
  • the remote control device when the remote control device is provided with an opening control, in the dormant state, in response to the trigger operation of the opening control on the remote control device, the remote control device starts the UWB component, and the UWB component receives the data sent by each UWB tag frame.
  • the remote control device is provided with a start button, and when the click operation of the start button is received, the remote control device turns on the UWB component; when the click operation of the start button is received again, the remote control device turns off the UWB component and enters a dormant state .
  • the steps with the terminal device as the execution subject can be independently implemented as a device control method on the terminal device side, and the steps with the remote control device as the execution subject can be independently implemented as a device control method on the remote control device side.
  • the embodiment of the present application will not be described in detail here.
  • FIG. 12 shows a structural block diagram of a device control apparatus provided by an embodiment of the present application.
  • the device is capable of implementing the functions performed by the remote control device in the above method embodiments, and the functions may be implemented by hardware, or may be implemented by hardware executing corresponding software.
  • the device may include:
  • the first receiving module 1201 is configured to receive data frames sent by each UWB tag, and the UWB tag is used to represent an IoT device;
  • a determining module 1202 configured to determine a target UWB tag from each of the UWB tags based on the data frame, where the target UWB tag is the UWB tag pointed to by the remote control device;
  • the first sending module 1203 is configured to send a connection instruction to the terminal device based on the target UWB tag, so that the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag;
  • the second sending module 1204 is configured to send a control instruction to the terminal device in response to a control operation on the remote control device, so that the terminal device controls the target IoT device based on the control instruction.
  • the first sending module 1203 includes:
  • the first sending unit is configured to send the connection instruction including the target tag identification to the terminal device based on the data frame sent by the target UWB tag, so that the terminal device can transfer from the UWB to the terminal device based on the target tag ID.
  • the target IoT device is determined in the binding relationship between the tag and the IoT device;
  • the second sending unit is configured to send the connection instruction including the target device identifier to the terminal device based on the data frame sent by the target UWB tag, so that the terminal device determines the Target IoT device.
  • the first sending unit is configured to obtain the target tag identifier from the data frame sent by the target UWB tag, and send the connection including the target tag identifier to the terminal device instruction.
  • the second sending unit is configured to:
  • the target device identifier is obtained from the binding relationship between the UWB tag and the IoT device;
  • the device also includes:
  • the storage module is configured to receive and store the configuration data sent by the terminal device, the configuration data includes the binding relationship between the UWB tag and the IoT device.
  • the second sending module 1204 includes:
  • a third sending unit configured to send the control instruction including the target control identifier to the terminal device in response to a trigger operation on the target remote control on the remote control device, so that the terminal device can control the target control based on the target control identify and determine the target device function controlled by the target remote control;
  • a fourth sending unit configured to send the control instruction including target gesture operation information to the terminal device in response to a target gesture operation on the remote control device, so that the terminal device determines the target gesture operation information based on the target gesture operation information.
  • the target device function controlled by the target gesture action described above.
  • the device includes:
  • a second receiving module configured to receive connection feedback information sent by the terminal device, where the connection feedback information is used to indicate the establishment of a data communication connection between the terminal device and the target IoT device;
  • the second sending module 1204 is configured to: when the connection feedback information indicates that the data communication connection is established successfully, perform the step of sending a control command to the terminal device in response to a control operation on the remote control device step.
  • the device also includes:
  • a prompt module configured to prompt a connection failure when the connection feedback information indicates that the data communication connection has failed to be established, wherein the connection failure prompt includes at least one of a vibration prompt, a voice prompt, or an indicator light prompt;
  • the first sending module 1203 is further configured to resend the connection instruction to the terminal device.
  • the first receiving module 1201 includes:
  • the first receiving unit is configured to, in a dormant state, respond to a trigger operation for opening a control on the remote control device, open the UWB component, and receive the data frame sent by each of the UWB tags through the UWB component;
  • the second receiving unit is configured to turn on the UWB component in a dormant state when the sensor data collected by the sensor indicates that the remote control device is in a motion state, and receive all the UWB tags sent by each of the UWB tags through the UWB component.
  • a Bluetooth connection is established between the remote control device and the terminal device.
  • FIG. 13 shows a structural block diagram of a device control apparatus provided by an embodiment of the present application.
  • the apparatus is capable of realizing the functions executed by the terminal device side in the foregoing method embodiments, and the functions may be implemented by hardware, or may be implemented by hardware executing corresponding software.
  • the device may include:
  • the third receiving module 1301 is configured to receive the connection instruction sent by the remote control device, the connection instruction is sent when the remote control device determines the target UWB tag from the UWB tags, and the target UWB tag is the UWB pointed to by the remote control device Label;
  • a connection module 1302, configured to establish a data communication connection with the target IoT device represented by the target UWB tag based on the connection instruction;
  • a fourth receiving module 1303, configured to receive the control instruction sent by the remote control device
  • connection module 1302 includes:
  • the first connection unit is configured to obtain the target tag identifier contained in the connection instruction; based on the target tag identifier, determine the target IoT device from the binding relationship between the UWB tag and the IoT device; based on the target IoT device A corresponding target connection mode, establishing a data communication connection with the target IoT device;
  • the second connection unit is configured to acquire the target device identifier included in the connection instruction; determine the target IoT device based on the target device identifier; and connect to the target IoT device based on the target connection mode corresponding to the target IoT device establish a data communication connection;
  • the target connection mode includes at least one of Bluetooth and WiFi.
  • the target device identifier contained in the connection instruction is obtained by the remote control device from the binding relationship between the UWB tag and the IoT device;
  • the device also includes:
  • the third sending module is configured to send configuration data to the remote control device, so that the remote control device can store the configuration data, and the configuration data includes the binding relationship between the UWB tag and the IoT device.
  • control module 1304 includes:
  • the first control unit is configured to acquire a target control identifier included in the control instruction, where the target control identifier is an identifier of a triggered target remote control on the remote control device; based on the target control identifier, determine the target The target device function controlled by the remote control; controlling the target IoT device to execute the target device function;
  • the second control unit is configured to acquire target gesture operation information included in the control instruction, where the target gesture operation information is used to characterize the target gesture operation received by the remote control device; determine the target gesture operation information based on the target gesture operation information
  • the target device function is controlled by the target gesture operation; and the target IoT device is controlled to execute the target device function.
  • the device also includes:
  • the first obtaining module is used to obtain control setting information, and the control setting information includes a corresponding relationship between device identifiers, device functions, and control identifiers;
  • the second acquiring module is configured to acquire gesture setting information, where the gesture setting information includes correspondence between device identifiers, device functions, and gesture operation information.
  • the device also includes:
  • a fourth sending module configured to send connection feedback information to the remote control device, where the connection feedback information is used to indicate the establishment of a data communication connection between the terminal device and the target IoT device.
  • the device also includes:
  • a display module configured to display a device control interface corresponding to the target IoT device when the data communication connection is successfully established, and the device control interface includes functional controls corresponding to the target IoT device;
  • the control module 1304 is further configured to control the target IoT device to execute a corresponding device function in response to a trigger operation on a function control in the device control interface.
  • a Bluetooth connection is established between the remote control device and the terminal device.
  • FIG. 14 shows a structural block diagram of a remote control device 1400 provided by an exemplary embodiment of the present application.
  • the remote control device 1400 in this application may include one or more of the following components: a processor 1410, a memory 1420, and a UWB component 1430, wherein the processor 1510 is electrically connected to the memory 1420 and the UWB component 1430, respectively.
  • Processor 1410 may include one or more processing cores.
  • the processor 1410 uses various interfaces and lines to connect various parts of the entire remote control device 1400, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1420, and calls data stored in the memory 1420 to execute Various functions of the remote control device 1400 and processing data.
  • the processor 1510 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the memory 1420 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM).
  • the memory 1420 includes a non-transitory computer-readable storage medium.
  • the memory 1420 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 1420 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 playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like.
  • at least one instruction is stored in the memory 1420, and the at least one instruction is used to be executed by the processor 1410 to execute the device control method as shown in the foregoing embodiments.
  • the UWB component 1430 is used to receive the data frame broadcast by the external UWB component, so that the remote control device 1400 can process the data frame through the processor 1410 to achieve the purpose of determining the spatial position of the IoT device according to the data frame.
  • the remote control device 1400 is also provided with a communication component, so as to perform data interaction with the terminal device through the communication component, and the communication component may be a Bluetooth component.
  • the structure of the remote control device 1400 shown in the above drawings does not constitute a limitation on the remote control device 1400, and the remote control device may include more or less components than those shown in the illustration, or Combining certain parts, or different arrangements of parts.
  • the remote control device 1400 also includes components such as a vibration motor, a sensor (such as an accelerometer, an inertial sensor), an audio circuit, a power supply, and a physical button, which will not be repeated here.
  • FIG. 15 shows a structural block diagram of a terminal device 1500 provided by an exemplary embodiment of the present application.
  • the terminal device 1500 in this application may include one or more of the following components: a processor 1510 , a memory 1520 and a UWB component 1530 , where the processor 1510 is connected to the memory 1520 .
  • Processor 1510 may include one or more processing cores.
  • the processor 1510 uses various interfaces and lines to connect various parts of the entire terminal device 1500, and by running or executing instructions, programs, code sets or instruction sets stored in the memory 1520, and calling data stored in the memory 1520, executes Various functions and processing data of the terminal device 1500.
  • the processor 1510 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • the processor 1510 may integrate one or a combination of a CPU, a Graphics Processing Unit (GPU), a modem, and the like.
  • GPU Graphics Processing Unit
  • the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is used to render and draw the content that needs to be displayed on the touch screen; the modem is used to process wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1510, but may be realized by a communication chip alone.
  • the memory 1520 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM).
  • the memory 1520 includes a non-transitory computer-readable storage medium.
  • the memory 1520 may be used to store instructions, programs, codes, sets of codes or sets of instructions.
  • the memory 1520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , the instruction etc.
  • this operating system can be Andrews (Android) system (comprising the system based on the depth development of Android system), the IOS system developed by Apple Inc. (comprising the system based on the depth development of IOS system) or other systems.
  • the storage data area can also store data created by the terminal device 1300 during use (such as phonebook, audio and video data, chat record data) and the like.
  • at least one instruction is stored in the memory 1520, and the at least one instruction is used to be executed by the processor 1510 to execute the device control method as shown in the foregoing embodiments.
  • the terminal device 1500 is also provided with a communication component 1530, through which the terminal device 1500 can perform data interaction with external devices (such as remote control devices and IoT devices), and the communication component 1530 can include Bluetooth components and WiFi components .
  • external devices such as remote control devices and IoT devices
  • the communication component 1530 can include Bluetooth components and WiFi components .
  • the terminal device 1500 may also include a touch display screen, which may be a capacitive touch display screen, and the capacitive touch screen screen is used to receive a user's touch on or near it using any suitable object such as a finger or a touch pen. operation, and display the user interface of each application.
  • the touch screen is usually set on the front panel of the terminal device 1500 .
  • Touch screens can be designed as full screens, curved screens or special-shaped screens.
  • the touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment of the present application.
  • the structure of the terminal device 1500 shown in the above drawings does not constitute a limitation on the terminal device 1500, and the terminal device may include more or less components than those shown in the figure, or Combining certain parts, or different arrangements of parts.
  • the terminal device 1500 also includes components such as a radio frequency circuit, a camera component, a sensor, an audio circuit, and a power supply, which will not be repeated here.
  • FIG. 16 shows a structural block diagram of a device control system 1600 provided by an exemplary embodiment of the present application.
  • the device control system includes a remote control device 1601 , a terminal device 1602 , a UWB tag 1603 and an IoT device 1604 .
  • the remote control device 1601 is independent of the terminal device 1602 and establishes a communication connection with the terminal device 1602.
  • the remote control device 1601 establishes UWB communication with the UWB tag 1603.
  • the UWB tag 1603 is used to represent the IoT device 1604.
  • the terminal device 1602 communicates with the The IoT device 1604 has established a data communication connection.
  • the remote control device 1601 receives the data frame sent by each UWB tag 1603; based on the data frame, determines the target UWB tag from each UWB tag 1603, and the target UWB tag is the UWB tag pointed to by the remote control device 1601; Send connection command;
  • the terminal device 1602 receives the connection instruction sent by the remote control device 1601; based on the connection instruction, establishes a data communication connection with the target IoT device 1604 represented by the target UWB tag;
  • the remote control device 1601 sends a control instruction to the terminal device 1602 in response to the control operation on the remote control device;
  • the terminal device 1602 receives the control instruction sent by the remote control device 1601; and controls the target IoT device 1604 based on the control instruction.
  • the embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores at least one program code, and the program code is loaded and executed by a processor to implement the device control method described in each of the above embodiments .
  • a computer program product or computer program comprising computer instructions stored in a computer readable storage medium.
  • the processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the device control method provided in various optional implementation manners of the above aspect.
  • the "plurality” mentioned herein refers to two or more than two.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently.
  • the character "/” generally indicates that the contextual objects are an "or” relationship.
  • the numbering of the steps described herein only exemplarily shows a possible sequence of execution among the steps. In some other embodiments, the above-mentioned steps may not be executed according to the order of the numbers, such as two different numbers The steps are executed at the same time, or two steps with different numbers are executed in the reverse order as shown in the illustration, which is not limited in this embodiment of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)

Abstract

A device control method and apparatus, a control system, a device, and a storage medium, relating to the technical field of UWB. The method comprises: receiving data frames sent by UWB tags (201); determining a target UWB tag from the UWB tags on the basis of the data frames, the target UWB tag being a UWB tag pointed to by a remote control device (202); sending a connection instruction to a terminal device on the basis of the target UWB tag, such that the terminal device establishes a data communication connection with a target IoT device represented by the target UWB tag (203); and in response to a control operation for the remote control device, sending a control instruction to the terminal device, such that the terminal device controls the target IoT device on the basis of the control instruction (206). In embodiments of the present application, a user points the remote control device to an IoT device to be controlled, and the IoT device can be controlled by means of a control operation without directly operating a terminal device, such that the device control efficiency is improved.

Description

设备控制方法、装置、控制系统、设备及存储介质Equipment control method, device, control system, equipment and storage medium
本申请要求于2021年7月8日提交的申请号为202110772638.7、发明名称为“设备控制方法、装置、控制系统、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110772638.7 and the title of the invention "equipment control method, device, control system, equipment and storage medium" filed on July 8, 2021, the entire contents of which are incorporated by reference in In this application.
技术领域technical field
本申请实施例涉及UWB技术领域,特别涉及一种设备控制方法、装置、控制系统、设备及存储介质。The embodiments of the present application relate to the field of UWB technologies, and in particular to a device control method, device, control system, device, and storage medium.
背景技术Background technique
随着物联网(Internet of Things,IoT)技术的不断发展,越来越多的IoT设备能够与终端设备进行联动。With the continuous development of Internet of Things (IoT) technology, more and more IoT devices can be linked with terminal devices.
相关技术中,当用户需要使用终端设备对家中的IoT设备进行控制时,可以在终端设备显示的设备选择界面中选中待控制的IoT设备,触发终端设备与IoT设备建立连接,并进一步在终端设备显示的控制界面上进行操作,实现对IoT设备的控制。In related technologies, when a user needs to use a terminal device to control an IoT device at home, he can select the IoT device to be controlled in the device selection interface displayed on the terminal device, trigger the terminal device to establish a connection with the IoT device, and further connect the terminal device to the IoT device. Operate on the displayed control interface to realize the control of IoT devices.
发明内容Contents of the invention
本申请实施例提供了一种设备控制方法、装置、控制系统、设备及存储介质。所述技术方案如下:Embodiments of the present application provide a device control method, device, control system, device, and storage medium. Described technical scheme is as follows:
一方面,本申请实施例提供了一种设备控制方法,应用于遥控设备,所述方法包括:On the one hand, an embodiment of the present application provides a device control method, which is applied to a remote control device, and the method includes:
接收各个超宽带(Ultra Wide Band,UWB)标签发送的数据帧,所述UWB标签用于表征IoT设备;Receive data frames sent by each ultra wide band (Ultra Wide Band, UWB) tag, the UWB tag is used to characterize the IoT device;
基于所述数据帧,从各个所述UWB标签中确定出目标UWB标签,所述目标UWB标签为所述遥控设备指向的UWB标签;Based on the data frame, determine a target UWB tag from each of the UWB tags, where the target UWB tag is the UWB tag pointed to by the remote control device;
基于所述目标UWB标签,向终端设备发送连接指令,使所述终端设备与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;Based on the target UWB tag, send a connection instruction to the terminal device, so that the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag;
响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令,使所述终端设备基于所述控制指令控制所述目标IoT设备。In response to a control operation on the remote control device, a control instruction is sent to the terminal device, so that the terminal device controls the target IoT device based on the control instruction.
另一方面,本申请实施例提供了一种设备控制方法,应用于终端设备,所述方法包括:On the other hand, an embodiment of the present application provides a device control method, which is applied to a terminal device, and the method includes:
接收遥控设备发送的连接指令,所述连接指令由所述遥控设备从UWB标签中确定出目标UWB标签时发送,所述目标UWB标签为所述遥控设备指向的UWB标签;receiving a connection instruction sent by the remote control device, the connection instruction is sent when the remote control device determines a target UWB tag from the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device;
基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;Based on the connection instruction, establish a data communication connection with the target IoT device represented by the target UWB tag;
接收所述遥控设备发送的控制指令;receiving a control instruction sent by the remote control device;
基于所述控制指令控制所述目标IoT设备。The target IoT device is controlled based on the control instruction.
另一方面,本申请实施例提供了一种设备控制装置,所述装置包括:On the other hand, an embodiment of the present application provides an apparatus for controlling equipment, and the apparatus includes:
接收模块,用于接收各个UWB标签发送的数据帧,所述UWB标签用于表征IoT设备;A receiving module, configured to receive data frames sent by each UWB tag, where the UWB tag is used to represent an IoT device;
确定模块,用于基于所述数据帧,从各个所述UWB标签中确定出目标UWB标签,所述目标UWB标签为遥控设备指向的UWB标签;A determining module, configured to determine a target UWB tag from each of the UWB tags based on the data frame, where the target UWB tag is the UWB tag pointed to by the remote control device;
发送模块,用于基于所述目标UWB标签,向终端设备发送连接指令,使所述终端设备与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;A sending module, configured to send a connection instruction to a terminal device based on the target UWB tag, so that the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag;
所述发送模块,还用于响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令,使所述终端设备基于所述控制指令控制所述目标IoT设备。The sending module is further configured to send a control instruction to the terminal device in response to a control operation on the remote control device, so that the terminal device controls the target IoT device based on the control instruction.
另一方面,本申请实施例提供了一种设备控制装置,所述装置包括:On the other hand, an embodiment of the present application provides an apparatus for controlling equipment, and the apparatus includes:
第一接收模块,用于接收遥控设备发送的连接指令,所述连接指令由所述遥控设备从UWB标签中确定出目标UWB标签时发送,所述目标UWB标签为所述遥控设备指向的UWB标签;The first receiving module is configured to receive a connection instruction sent by the remote control device, the connection instruction is sent when the remote control device determines a target UWB tag from the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device ;
连接模块,用于基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;A connection module, configured to establish a data communication connection with the target IoT device represented by the target UWB tag based on the connection instruction;
第二接收模块,用于接收所述遥控设备发送的控制指令;a second receiving module, configured to receive a control instruction sent by the remote control device;
控制模块,用于基于所述控制指令控制所述目标IoT设备。A control module, configured to control the target IoT device based on the control instruction.
另一方面,本申请实施例提供了一种IoT设备的控制系统,所述系统包括遥控设备、终端设备、UWB标签和IoT设备;On the other hand, an embodiment of the present application provides a control system for an IoT device, the system includes a remote control device, a terminal device, a UWB tag, and an IoT device;
所述UWB标签用于表征所述IoT设备;The UWB tag is used to characterize the IoT device;
所述遥控设备接收各个所述UWB标签发送的数据帧;基于所述数据帧,从各个所述UWB标签中确定出目标UWB标签,所述目标UWB标签为所述遥控设备指向的UWB标签;基于所述目标UWB标签,向终端设备发送连接指令;The remote control device receives data frames sent by each of the UWB tags; based on the data frames, a target UWB tag is determined from each of the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device; based on The target UWB tag sends a connection instruction to the terminal device;
所述终端设备接收所述遥控设备发送的连接指令;基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;The terminal device receives the connection instruction sent by the remote control device; based on the connection instruction, establishes a data communication connection with the target IoT device represented by the target UWB tag;
所述遥控设备响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令;The remote control device sends a control instruction to the terminal device in response to a control operation on the remote control device;
所述终端设备接收所述遥控设备发送的控制指令;基于所述控制指令控制所述目标IoT设备。The terminal device receives the control instruction sent by the remote control device; and controls the target IoT device based on the control instruction.
另一方面,本申请实施例提供了一种遥控设备,所述遥控设备包括:处理器、存储器和UWB组件;所述存储器存储有至少一段程序,所述至少一段程序用于被所述处理器执行以实现如上述方面所述的设备控制方法。On the other hand, an embodiment of the present application provides a remote control device, the remote control device includes: a processor, a memory, and a UWB component; the memory stores at least one program, and the at least one program is used to be used by the processor Execute to realize the device control method described in the above aspects.
另一方面,本申请实施例提供了一种终端设备,所述终端设备包括:处理器和存储器;所述存储器存储有至少一段程序,所述至少一段程序用于被所述处理器执行以实现如上述方面所述的设备控制方法。On the other hand, an embodiment of the present application provides a terminal device, the terminal device includes: a processor and a memory; the memory stores at least one program, and the at least one program is used to be executed by the processor to implement The device control method as described in the above aspects.
另一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现上述方面所述的遥控设备侧的设备控制方法,或,终端设备侧的设备控制方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium, at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the above-mentioned A device control method on the remote control device side, or a device control method on the terminal device side.
另一方面,本申请实施例提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中;计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面所述的遥控设备侧的设备控制方法,或,终端设备侧的设备控制方法。On the other hand, an embodiment of the present application provides a computer program product, the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor of a computer device reads the computer-readable storage medium from the computer-readable storage medium. Computer instructions, the processor executes the computer instructions, so that the computer device executes the device control method on the remote control device side, or the device control method on the terminal device side described in the above aspect.
附图说明Description of drawings
图1示出了本申请一个示例性实施例的实施环境的示意图;FIG. 1 shows a schematic diagram of an implementation environment of an exemplary embodiment of the present application;
图2示出了本申请一个示例性实施例提供的设备控制方法的流程图;FIG. 2 shows a flowchart of a device control method provided in an exemplary embodiment of the present application;
图3是本申请一个示例性实施例示出的数据帧接收过程的实施示意图;Fig. 3 is the implementation diagram of the data frame receiving process shown in an exemplary embodiment of the present application;
图4是本申请一个示例性实施例示出的设备控制过程的交互示意图;Fig. 4 is an interactive schematic diagram of a device control process shown in an exemplary embodiment of the present application;
图5示出了本申请另一个示例性实施例提供的设备控制方法的流程图;FIG. 5 shows a flow chart of a device control method provided in another exemplary embodiment of the present application;
图6示出了本申请另一个示例性实施例提供的设备控制方法的流程图;FIG. 6 shows a flowchart of a device control method provided in another exemplary embodiment of the present application;
图7示出了本申请另一个示例性实施例提供的设备控制方法的流程图;FIG. 7 shows a flow chart of a device control method provided in another exemplary embodiment of the present application;
图8是本申请一个示例性实施例示出的遥控设备的示意图;Fig. 8 is a schematic diagram of a remote control device shown in an exemplary embodiment of the present application;
图9示出了本申请另一个示例性实施例提供的设备控制方法的流程图;FIG. 9 shows a flow chart of a device control method provided in another exemplary embodiment of the present application;
图10是本申请一个示例性实施例示出的智能窗帘遥控过程的实施示意图;Fig. 10 is a schematic diagram of the implementation of the intelligent curtain remote control process shown in an exemplary embodiment of the present application;
图11是本申请一个示例性实施例示出的控制指令发送过程的流程图;Fig. 11 is a flow chart of a control instruction sending process shown in an exemplary embodiment of the present application;
图12示出了本申请一个实施例提供的设备控制装置的结构框图;Fig. 12 shows a structural block diagram of an equipment control device provided by an embodiment of the present application;
图13示出了本申请一个实施例提供的设备控制装置的结构框图;Fig. 13 shows a structural block diagram of an equipment control device provided by an embodiment of the present application;
图14示出了本申请一个示例性实施例提供的遥控设备的结构方框图;Fig. 14 shows a structural block diagram of a remote control device provided by an exemplary embodiment of the present application;
图15示出了本申请一个示例性实施例提供的终端设备的结构方框图;Fig. 15 shows a structural block diagram of a terminal device provided by an exemplary embodiment of the present application;
图16示出了本申请一个示例性实施例提供的设备控制系统的结构方框图。Fig. 16 shows a structural block diagram of a device control system provided by an exemplary embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
请参考图1,其示出了本申请一个示例性实施例的实施环境的示意图,该实施环境中包括终端设备110、至少一个IoT设备120、UWB标签130和遥控设备140。Please refer to FIG. 1 , which shows a schematic diagram of an implementation environment of an exemplary embodiment of the present application. The implementation environment includes a terminal device 110 , at least one IoT device 120 , a UWB tag 130 and a remote control device 140 .
终端设备110是具备IoT设备控制功能的电子设备,终端设备110可以是智能手机、平板电脑、智能遥控器、智能手表等便携式电子设备。可选的,该IoT设备控制功能通过终端设备110中安装的应用程序(或小程序)实现。The terminal device 110 is an electronic device with an IoT device control function, and the terminal device 110 may be a portable electronic device such as a smart phone, a tablet computer, a smart remote controller, or a smart watch. Optionally, the IoT device control function is implemented through an application program (or applet) installed in the terminal device 110 .
IoT设备120是可以与终端设备110建立数据通信连接的电子设备,其可以是智能电视122、智能音箱121、智能门锁123、智能冰箱、智能空调、智能灯具、智能窗帘等设备。IoT设备120和终端设备110可以通过数据通信连接进行信息交互,实现终端设备110对IoT设备120的控制,和/或,在终端设备110侧呈现IoT设备120的设备数据。该数据通信连接可以是WiFi连接、蓝牙连接、红外线连接等,本申请实施例对此不构成限定。The IoT device 120 is an electronic device that can establish a data communication connection with the terminal device 110, and it may be a smart TV 122, a smart speaker 121, a smart door lock 123, a smart refrigerator, a smart air conditioner, a smart lamp, and a smart curtain. The IoT device 120 and the terminal device 110 can perform information interaction through a data communication connection, realize the control of the IoT device 120 by the terminal device 110, and/or present device data of the IoT device 120 on the terminal device 110 side. The data communication connection may be a WiFi connection, a Bluetooth connection, an infrared connection, etc., which is not limited in this embodiment of the present application.
UWB标签130是用于表征IoT设备120的电子标签。在一种可能的设计中,UWB标签130独立于IoT设备120。独立于意味着,UWB标签130是独立于IoT设备120的装置,能够单独作为产品进行售卖,而并非作为IoT设备120的一部分集成于IoT设备120内,也不是IoT设备120的必要组成模块。并且当UWB标签130与IoT设备120绑定完成后,UWB标签130与IoT设备120不具备数据通信连接关系,仅具备绑定关系,绑定关系指可以通过UWB标签130确定其表征的IoT设备120。如图1所示,UWB标签131用于表征IoT设备121,UWB标签132用于表征IoT设备122,UWB标签132用于表征IoT设备123。The UWB tag 130 is an electronic tag for characterizing the IoT device 120 . In one possible design, UWB tag 130 is independent of IoT device 120 . Independence means that the UWB tag 130 is a device independent of the IoT device 120 and can be sold as a product alone, rather than being integrated in the IoT device 120 as a part of the IoT device 120 , nor is it a necessary component of the IoT device 120 . And when the binding between UWB tag 130 and IoT device 120 is completed, UWB tag 130 and IoT device 120 do not have a data communication connection relationship, but only have a binding relationship. The binding relationship refers to the IoT device 120 whose representation can be determined through the UWB tag 130 . As shown in FIG. 1 , the UWB tag 131 is used to represent the IoT device 121 , the UWB tag 132 is used to represent the IoT device 122 , and the UWB tag 132 is used to represent the IoT device 123 .
当然,在其他可能的设计中,UWB标签130也可以作为IoT设备120的一部分集成在IoT设备120内,即IoT设备120在出厂时即具备UWB功能。可选的,UWB标签130与IoT设备120之间可以进行数 据通信。Of course, in other possible designs, the UWB tag 130 can also be integrated in the IoT device 120 as a part of the IoT device 120 , that is, the IoT device 120 has the UWB function when it leaves the factory. Optionally, data communication can be performed between the UWB tag 130 and the IoT device 120.
关于UWB标签130的供电方式,在一种可能的设计中,UWB标签130设置有独立电源,该独立电源可以为可替换电源、不可替换电源或者可充电电源。在另一种可能的设计中,UWB标签130由IoT设备120供电,IoT设备120的供电方式可以包括有线供电(比如通过充电线)或无线供电(比如通过无线充电线圈)。Regarding the power supply mode of the UWB tag 130, in a possible design, the UWB tag 130 is provided with an independent power supply, and the independent power supply may be a replaceable power supply, a non-replaceable power supply or a rechargeable power supply. In another possible design, the UWB tag 130 is powered by the IoT device 120, and the power supply mode of the IoT device 120 may include wired power supply (such as through a charging cable) or wireless power supply (such as through a wireless charging coil).
遥控设备140是具备空间位置感知能力的电子设备。在一种可能的设计中,遥控设备140独立于终端设备110,但能够与终端设备110进行数据通信。其中,遥控设备140与终端设备110的数据通信方式可以包括WiFi连接、蓝牙连接、红外连接等等,本申请实施例对此不作限定。The remote control device 140 is an electronic device capable of spatial position awareness. In a possible design, the remote control device 140 is independent from the terminal device 110 , but can perform data communication with the terminal device 110 . Wherein, the data communication mode between the remote control device 140 and the terminal device 110 may include WiFi connection, Bluetooth connection, infrared connection, etc., which is not limited in this embodiment of the present application.
空间位置感知能力指:遥控设备140可以感知其与其他设备之间的空间位置关系。本申请实施例中,遥控设备140的空间位置感知能力借助UWB组件,以及表征IoT设备120的UWB标签130实现。遥控设备140可以通过UWB组件与UWB标签130进行UWB通信,也就是说,遥控设备140可以通过UWB组件接收UWB标签130在目标信道上发送的数据帧,并根据UWB标签130发送的数据帧,确定自身和UWB标签130之间的空间位置关系。The spatial location awareness capability means that the remote control device 140 can perceive the spatial location relationship between it and other devices. In the embodiment of the present application, the spatial location awareness capability of the remote control device 140 is realized by means of UWB components and the UWB tag 130 representing the IoT device 120 . The remote control device 140 can perform UWB communication with the UWB tag 130 through the UWB component, that is, the remote control device 140 can receive the data frame sent by the UWB tag 130 on the target channel through the UWB component, and according to the data frame sent by the UWB tag 130, determine The spatial position relationship between itself and the UWB tag 130 .
在一种可能的设计中,遥控设备140中设置有遥控控件,该遥控控件可以为物理按钮、触控面板等某一种形式或多种形式的组合,用户可以通过触发遥控控件实现相应的控制功能。比如,可以通过点击物理按钮控制智能音箱121的音量,可以通过在触控面板上执行滑动操作控制智能电视122切换频道。In a possible design, the remote control device 140 is provided with a remote control, which can be a physical button, a touch panel, etc. in one form or a combination of multiple forms, and the user can realize the corresponding control by triggering the remote control Features. For example, the volume of the smart speaker 121 can be controlled by clicking a physical button, and the smart TV 122 can be controlled to switch channels by performing a sliding operation on the touch panel.
在其他可能的设计中,遥控设备140中设置有传感器,从而基于传感器采集到的传感器数据识别用户的手势操作,进而基于手势操作实现相应的控制功能。In other possible designs, the remote control device 140 is provided with a sensor, so as to recognize the user's gesture operation based on the sensor data collected by the sensor, and then realize the corresponding control function based on the gesture operation.
在一种可能的应用场景下,如图1所示,UWB标签131与智能音箱121绑定,UWB标签132与智能电视122绑定,UWB标签133与智能门锁123绑定。当用户使用遥控设备140指向智能电视122时,遥控设备140即可根据各个IoT设备对应UWB标签130发送的数据帧,确定当前指向的UWB标签132,并指示终端110与UWB标签132所表征的智能电视122建立数据通信连接。进一步的,遥控设备140根据接收到的控制操作,向终端110发送控制指令,由终端110基于控制指令对智能电视122进行控制,比如控制智能电视122进行频道切换,进行音量调节等等。In a possible application scenario, as shown in FIG. 1 , the UWB tag 131 is bound to the smart speaker 121 , the UWB tag 132 is bound to the smart TV 122 , and the UWB tag 133 is bound to the smart door lock 123 . When the user uses the remote control device 140 to point to the smart TV 122, the remote control device 140 can determine the currently pointed UWB tag 132 according to the data frame sent by each IoT device corresponding to the UWB tag 130, and indicate the smart TV represented by the terminal 110 and the UWB tag 132. Television 122 establishes a data communication connection. Further, the remote control device 140 sends a control command to the terminal 110 according to the received control operation, and the terminal 110 controls the smart TV 122 based on the control command, such as controlling the smart TV 122 to switch channels, adjust the volume, and so on.
请参考图2,其示出了本申请一个示例性实施例提供的设备控制方法的流程图,本申请实施例以该方法应用于图1所示实施环境为例进行说明,该方法包括:Please refer to FIG. 2, which shows a flow chart of a device control method provided by an exemplary embodiment of the present application. The embodiment of the present application takes the application of the method in the implementation environment shown in FIG. 1 as an example. The method includes:
步骤201,遥控设备接收各个UWB标签发送的数据帧,UWB标签用于表征IoT设备。In step 201, the remote control device receives data frames sent by each UWB tag, and the UWB tag is used to represent the IoT device.
在一种可能的实施方式中,UWB标签与所表征的IoT设备绑定后,UWB标签即处于工作状态。其中,绑定的UWB标签可以粘贴在所表征的IoT设备上,或者,UWB标签可以放置在所表征的IoT设备附近,或者,UWB标签可以放置在远离所表征IoT设备的位置处,或者,UWB标签设置在所表征IoT设备的内部。本申请实施例对UWB标签的设置位置并不进行限定。In a possible implementation manner, after the UWB tag is bound to the characterized IoT device, the UWB tag is in a working state. Wherein, the bound UWB tag can be pasted on the represented IoT device, or, the UWB tag can be placed near the represented IoT device, or, the UWB tag can be placed far away from the represented IoT device, or, the UWB tag The tag is placed inside the represented IoT device. The embodiment of the present application does not limit the installation position of the UWB tag.
工作状态下,UWB标签在目标信道上发送数据帧;相应的,处于工作状态的遥控设备在目标信道上接收各个UWB标签发送的数据帧。In the working state, the UWB tag sends data frames on the target channel; correspondingly, the remote control device in the working state receives the data frames sent by each UWB tag on the target channel.
为了避免不同UWB标签同时发送数据帧造成相互干扰,在一种可能的实施方式中,UWB标签在目标信道上发送数据帧之前,首先需要对目标信道进行侦听,以此确定目标信道的信道状态。当目标信道的信道状态为空闲状态时(即未被占用),UWB标签则发送数据帧;当目标信道的信道状态为占用状态时(即被占用),UWB标签则在随机延时时长后再次侦听目标信道。In order to avoid mutual interference caused by different UWB tags sending data frames at the same time, in a possible implementation, before the UWB tag sends data frames on the target channel, it first needs to listen to the target channel to determine the channel state of the target channel . When the channel state of the target channel is idle (that is, not occupied), the UWB tag will send the data frame; when the channel state of the target channel is occupied (that is, occupied), the UWB tag will send the data frame again after a random delay. Listen to the target channel.
步骤202,遥控设备基于数据帧,从各个UWB标签中确定出目标UWB标签,目标UWB标签为遥控设备指向的UWB标签。In step 202, the remote control device determines a target UWB tag from each UWB tag based on the data frame, and the target UWB tag is the UWB tag pointed to by the remote control device.
遥控设备接收到数据帧后,确定各个UWB标签与遥控设备之间的空间位置关系,并将自身当前指向的UWB标签确定为目标UWB标签。After receiving the data frame, the remote control device determines the spatial position relationship between each UWB tag and the remote control device, and determines the UWB tag currently pointed to by itself as the target UWB tag.
在一种可能的实施方式中,遥控设备根据数据帧到达天线的相位差确定与UWB标签之间的空间位置关系。并且,为了确定出与UWB标签在水平方向以及竖直方向上的位置关系,遥控设备中设置有两组对应不同天线方向的天线组,分别为第一天线组和第二天线组,且每个天线组由两根天线构成(可以存在共用天线或不存在共用天线)。其中,第一天线组与第二天线组之间具有预设夹角(比如60度、90度),分别用于测量水平方向角度与竖直方向角度。In a possible implementation manner, the remote control device determines the spatial position relationship with the UWB tag according to the phase difference when the data frame arrives at the antenna. Moreover, in order to determine the positional relationship with the UWB tag in the horizontal direction and the vertical direction, the remote control device is provided with two sets of antenna groups corresponding to different antenna directions, namely the first antenna group and the second antenna group, and each An antenna group consists of two antennas (there may or may not be a shared antenna). Wherein, the first antenna group and the second antenna group have preset included angles (such as 60 degrees, 90 degrees), which are respectively used to measure the angle in the horizontal direction and the angle in the vertical direction.
其中,遥控设备可以采用信号到达角度(Angle of Arrival,AOA)或信号到达相位差(Phase Difference of Arrival,PDoA)技术,基于数据帧进行空间定位。Among them, the remote control device can use the angle of arrival (Angle of Arrival, AOA) or phase difference of arrival (Phase Difference of Arrival, PDoA) technology to perform spatial positioning based on the data frame.
可选的,遥控设备首先通过第一天线组在目标信道上接收数据帧,当第一天线组的数据帧接收时长达到预设时长,则切换第二天线组在目标信道上接收数据帧。Optionally, the remote control device first receives data frames on the target channel through the first antenna group, and then switches to the second antenna group to receive data frames on the target channel when the data frame receiving duration of the first antenna group reaches a preset duration.
示意性的,如图3所示,遥控设备首先通过第一天线组,接收UWB标签1-4在目标信道上发送的数据帧,然后切换通过第二天线组,接收UWB标签1-4在目标信道上发送的数据帧。Schematically, as shown in Figure 3, the remote control device first receives the data frames sent by UWB tags 1-4 on the target channel through the first antenna group, and then switches through the second antenna group to receive the data frames sent by UWB tags 1-4 on the target channel. Data frames sent on the channel.
在一些实施例中,确定与各个UWB标签之间的水平方向角度和竖直方向角度后,遥控设备将水平方向角度位于水平角度范围,且竖直方向角度位于竖直角度范围的UWB标签确定为目标UWB标签。比如,该水平角度范围可以是-10度~10度,竖直角度范围可以是0度~30度,本申请实施例在此不做限制。In some embodiments, after determining the horizontal angle and the vertical angle between each UWB tag, the remote control device determines the UWB tag whose horizontal angle is in the horizontal angle range and whose vertical angle is in the vertical angle range as Target UWB tag. For example, the horizontal angle range may be -10 degrees to 10 degrees, and the vertical angle range may be 0 degrees to 30 degrees, which are not limited in this embodiment of the present application.
示意性的,遥控设备确定与各个UWB标签的空间位置关系如下:UWB标签A(水平方向角度-30度、竖直方向角度10度);UWB标签B(水平方向角度-2度、竖直方向角度10度);UWB标签C(水平方向角度35度、竖直方向角度5度);UWB标签D(水平方向角度60度、竖直方向角度20度)。若水平角度范围为-10度~10度,竖直角度范围为0度~30度,由于UWB标签B与遥控设备的空间位置关系位于该角度范围内,因此遥控设备将UWB标签B确定为目标UWB标签。Schematically, the remote control device determines the spatial position relationship with each UWB tag as follows: UWB tag A (horizontal angle -30 degrees, vertical angle 10 degrees); UWB tag B (horizontal angle -2 degrees, vertical angle angle 10 degrees); UWB tag C (horizontal angle 35 degrees, vertical angle 5 degrees); UWB tag D (horizontal angle 60 degrees, vertical angle 20 degrees). If the horizontal angle ranges from -10 degrees to 10 degrees, and the vertical angle ranges from 0 degrees to 30 degrees, since the spatial position relationship between UWB tag B and the remote control device is within this angle range, the remote control device determines UWB tag B as the target UWB tags.
步骤203,遥控设备基于目标UWB标签,向终端设备发送连接指令。Step 203, the remote control device sends a connection instruction to the terminal device based on the target UWB tag.
由于遥控设备独立于终端设备,且并不具备直接控制IoT设备的能力,因此确定出目标UWB标签后,遥控设备需要通过与终端设备之间的通信连接,向终端设备发送连接指令,指示终端设备与目标UWB标签所表征的目标IoT设备建立数据通信连接。Since the remote control device is independent of the terminal device and does not have the ability to directly control the IoT device, after determining the target UWB tag, the remote control device needs to send a connection command to the terminal device through a communication connection with the terminal device, instructing the terminal device Establish a data communication connection with the target IoT device represented by the target UWB tag.
可选的,遥控设备与终端设备之间建立有蓝牙连接,遥控设备即通过蓝牙连接向终端设备发送连接指令。Optionally, a Bluetooth connection is established between the remote control device and the terminal device, and the remote control device sends a connection instruction to the terminal device through the Bluetooth connection.
在一些实施例中,该连接指令中包含指示目标UWB标签的信息,或者,包含指示目标UWB标签所表征目标IoT设备的信息。In some embodiments, the connection instruction includes information indicating the target UWB tag, or includes information indicating the target IoT device represented by the target UWB tag.
可选的,为了降低误操作概率,遥控设备确定当前指向目标UWB标签,且指向时长达到时长阈值(比如2s)时,基于目标UWB标签向终端设备发送连接指令。Optionally, in order to reduce the probability of misoperation, the remote control device sends a connection instruction to the terminal device based on the target UWB tag when it determines that it is currently pointing to the target UWB tag and the pointing time reaches a duration threshold (such as 2s).
步骤204,终端设备接收遥控设备发送的连接指令。Step 204, the terminal device receives the connection instruction sent by the remote control device.
可选的,终端设备通过蓝牙连接接收遥控设备发送的连接指令。Optionally, the terminal device receives the connection instruction sent by the remote control device through the Bluetooth connection.
步骤205,终端设备基于连接指令,与目标UWB标签所表征的目标IoT设备建立数据通信连接。Step 205, based on the connection instruction, the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag.
可选的,终端设备基于连接指令中包含的信息,确定出待控制的目标IoT设备,从而通过目标IoT设备对应的连接方式,与目标IoT设备建立数据通信连接,以便通过该数据通信连接与目标IoT设备进行数据交互。其中,终端设备与目标IoT设备之间的数据通信连接可以为蓝牙连接、WiFi连接或红外连接等等,本实施例对此不作限定。Optionally, the terminal device determines the target IoT device to be controlled based on the information contained in the connection instruction, and establishes a data communication connection with the target IoT device through the connection mode corresponding to the target IoT device, so as to communicate with the target IoT device through the data communication connection. IoT devices exchange data. Wherein, the data communication connection between the terminal device and the target IoT device may be a Bluetooth connection, a WiFi connection, or an infrared connection, etc., which is not limited in this embodiment.
步骤206,响应于对遥控设备的控制操作,遥控设备向终端设备发送控制指令。Step 206, in response to the control operation on the remote control device, the remote control device sends a control instruction to the terminal device.
不同于相关技术中,需要通过终端设备显示的控制界面对IoT设备进行控制,本实施例中,用户只需要对遥控设备进行控制操作,即可借助终端设备实现对目标IoT设备的间接控制。其中,对遥控设备的控制操作可以是对遥控设备上遥控控件的触发操作,或者,对遥控设备的手势操作。Different from related technologies, the IoT device needs to be controlled through the control interface displayed by the terminal device. In this embodiment, the user only needs to control and operate the remote control device to achieve indirect control of the target IoT device by means of the terminal device. Wherein, the control operation on the remote control device may be a trigger operation on the remote control on the remote control device, or a gesture operation on the remote control device.
遥控设备接收到控制操作后,基于接收到的控制操作的操作类型,向终端设备发送相应的控制指令。可选的,遥控设备通过蓝牙连接向终端设备发送控制指令。After receiving the control operation, the remote control device sends a corresponding control instruction to the terminal device based on the received operation type of the control operation. Optionally, the remote control device sends control instructions to the terminal device through the Bluetooth connection.
步骤207,终端设备接收遥控设备发送的控制指令。Step 207, the terminal device receives the control instruction sent by the remote control device.
可选的,终端设备通过蓝牙连接接收遥控设备发送的控制指令。Optionally, the terminal device receives the control instruction sent by the remote control device through the Bluetooth connection.
步骤208,终端设备基于控制指令控制目标IoT设备。Step 208, the terminal device controls the target IoT device based on the control instruction.
由于不同IoT设备具有不同功能,因此终端设备需要对接收到的控制指令进行解析,确定该控制指令所控制的设备功能,从而基于解析结果,通过与目标IoT设备之间的数据通信连接控制目标IoT设备执行相应的设备功能。Since different IoT devices have different functions, the terminal device needs to analyze the received control command to determine the device function controlled by the control command, and then control the target IoT device through the data communication connection with the target IoT device based on the analysis result. The device performs the corresponding device function.
在一个示意性的例子中,如图4所示,UWB标签41与IoT设备42绑定后,在目标信道上进行数据帧广播。当使用遥控设备43对准UWB标签41时,遥控设备43对接收到的数据帧进行UWB测角,确定UWB标签41正对,从而通过与终端设备44之间的蓝牙连接发送连接指令,由终端设备44基于连接指令,与IoT设备42建立WiFi连接。进一步的,遥控设备43根据接收到的控制操作,通过蓝牙连接向终端设备44发送控制指令,由终端设备44与控制指令,通过WiFi连接对IoT设备42进行控制。In a schematic example, as shown in FIG. 4 , after the UWB tag 41 is bound to the IoT device 42 , data frames are broadcast on the target channel. When using the remote control device 43 to align the UWB tag 41, the remote control device 43 performs UWB angle measurement on the received data frame to determine that the UWB tag 41 is facing, so as to send a connection instruction through the Bluetooth connection with the terminal device 44, and the terminal The device 44 establishes a WiFi connection with the IoT device 42 based on the connection instruction. Further, the remote control device 43 sends a control command to the terminal device 44 through the Bluetooth connection according to the received control operation, and the terminal device 44 and the control command control the IoT device 42 through the WiFi connection.
综上所述,本申请实施例中,遥控设备基于各个UWB标签发送的数据帧,确定出自身指向的目标UWB标签,并向终端设备发送连接指令,指示终端设备与目标UWB标签所指示的目标IoT设备建立连接后,进一步基于接收到的控制操作,向终端设备发送控制指令,由终端设备基于控制指令控制目标IoT设备;采用本申请实施例提供的方案,用户将遥控设备指向需要控制的IoT设备,并通过控制操作即可实现对IoT设备的控制,无需直接对终端设备进行操作,提高了设备控制的效率;并且,对于能够与终端设备建立数据通信连接的IoT设备,遥控设备均能够通过本申请实施例提供的方案对其进行控制,丰富了遥控设备的使用场景。To sum up, in the embodiment of this application, the remote control device determines the target UWB tag pointed to by itself based on the data frames sent by each UWB tag, and sends a connection instruction to the terminal device, indicating that the terminal device and the target UWB tag indicate After the IoT device establishes a connection, it further sends a control command to the terminal device based on the received control operation, and the terminal device controls the target IoT device based on the control command; using the solution provided in the embodiment of this application, the user points the remote control device to the IoT device that needs to be controlled. device, and control the IoT device through control operations, without directly operating the terminal device, which improves the efficiency of device control; and, for IoT devices that can establish a data communication connection with the terminal device, the remote control device can pass The solution provided by the embodiment of the present application controls it, which enriches the usage scenarios of the remote control device.
可选的,基于目标UWB标签,向终端设备发送连接指令,包括:Optionally, based on the target UWB tag, send a connection instruction to the terminal device, including:
基于目标UWB标签发送的数据帧,向终端设备发送包含目标标签标识的连接指令,使终端设备基于目标标签标识,从UWB标签与IoT设备的映射关系中确定目标IoT设备。Based on the data frame sent by the target UWB tag, send a connection instruction including the target tag ID to the terminal device, so that the terminal device can determine the target IoT device from the mapping relationship between the UWB tag and the IoT device based on the target tag ID.
可选的,基于目标UWB标签发送的数据帧,向终端设备发送包含目标标签标识的连接指令,包括:Optionally, based on the data frame sent by the target UWB tag, send a connection instruction including the target tag identification to the terminal device, including:
从目标UWB标签发送的数据帧中获取目标标签标识,并向终端设备发送包含目标标签标识的连接指令。The target tag ID is obtained from the data frame sent by the target UWB tag, and a connection instruction including the target tag ID is sent to the terminal device.
可选的,基于目标UWB标签,向终端设备发送连接指令,包括:Optionally, based on the target UWB tag, send a connection instruction to the terminal device, including:
基于目标UWB标签发送的数据帧,向终端设备发送包含目标设备标识的连接指令,使终端设备基于目标设备标识确定目标IoT设备。Based on the data frame sent by the target UWB tag, a connection instruction including the target device ID is sent to the terminal device, so that the terminal device determines the target IoT device based on the target device ID.
可选的,基于目标UWB标签发送的数据帧,向终端设备发送包含目标设备标识的连接指令,包括:Optionally, based on the data frame sent by the target UWB tag, send a connection instruction containing the target device identification to the terminal device, including:
从目标UWB标签发送的数据帧中获取目标标签标识;Obtain the target tag identification from the data frame sent by the target UWB tag;
基于目标标签标识,从UWB标签与IoT设备的映射关系中获取目标设备标识;Based on the target tag identification, the target device identification is obtained from the mapping relationship between the UWB tag and the IoT device;
向终端设备发送包含目标设备标识的连接指令。A connection instruction including the target device identifier is sent to the terminal device.
可选的,目标设备标识从UWB标签与IoT设备的映射关系中获取得到;Optionally, the target device identifier is obtained from the mapping relationship between the UWB tag and the IoT device;
方法还包括:Methods also include:
接收并存储终端设备发送的配置数据,配置数据中包含UWB标签与IoT设备的映射关系。Receive and store the configuration data sent by the terminal device, and the configuration data includes the mapping relationship between UWB tags and IoT devices.
可选的,基于目标UWB标签发送的数据帧,向终端设备发送包含目标设备标识的连接指令,包括:Optionally, based on the data frame sent by the target UWB tag, send a connection instruction containing the target device identification to the terminal device, including:
从目标UWB标签发送的数据帧中获取目标设备标识,并向终端设备发送包含目标设备标识的连接指令。Obtain the target device ID from the data frame sent by the target UWB tag, and send a connection instruction containing the target device ID to the terminal device.
可选的,响应于对遥控设备的控制操作,向终端设备发送控制指令,包括:Optionally, in response to the control operation on the remote control device, sending a control command to the terminal device, including:
响应于对遥控设备上目标遥控控件的触发操作,向终端设备发送包含目标控件标识的控制指令,使终端设备基于目标控件标识确定目标遥控控件所控制的目标设备功能。In response to a trigger operation on the target remote control on the remote control device, a control instruction including the target control identifier is sent to the terminal device, so that the terminal device determines the target device function controlled by the target remote control control based on the target control identifier.
可选的,响应于对遥控设备的控制操作,向终端设备发送控制指令,包括:Optionally, in response to the control operation on the remote control device, sending a control command to the terminal device, including:
响应于对遥控设备的目标手势操作,向终端设备发送包含目标手势操作信息的控制指令,使终端设备基于目标手势操作信息确定目标手势操作所控制的目标设备功能。In response to the target gesture operation on the remote control device, a control instruction including target gesture operation information is sent to the terminal device, so that the terminal device determines the target device function controlled by the target gesture operation based on the target gesture operation information.
可选的,响应于对遥控设备的控制操作,向终端设备发送控制指令之前,方法包括:Optionally, in response to the control operation on the remote control device, before sending the control instruction to the terminal device, the method includes:
接收终端设备发送的连接反馈信息,连接反馈信息用于指示终端设备与目标IoT设备之间数据通信连接的建立情况;Receive connection feedback information sent by the terminal device, where the connection feedback information is used to indicate the establishment of a data communication connection between the terminal device and the target IoT device;
响应于对遥控设备的控制操作,向终端设备发送控制指令,包括:In response to the control operation on the remote control device, send control instructions to the terminal device, including:
在连接反馈信息指示数据通信连接建立成功的情况下,执行响应于对遥控设备的控制操作,向终端设备发送控制指令的步骤。In the case that the connection feedback information indicates that the data communication connection is established successfully, execute the step of sending a control command to the terminal device in response to a control operation on the remote control device.
可选的,接收终端设备发送的连接反馈信息之后,方法还包括:Optionally, after receiving the connection feedback information sent by the terminal device, the method further includes:
在连接反馈信息指示数据通信连接建立失败的情况下,进行连接失败提示,其中,连接失败提示的方式包括震动提示、语音提示或指示灯提示中的至少一种;When the connection feedback information indicates that the establishment of the data communication connection fails, a connection failure prompt is given, wherein the connection failure prompt includes at least one of a vibration prompt, a voice prompt, or an indicator light prompt;
重新向终端设备发送连接指令。Send the connection command to the terminal device again.
可选的,接收各个UWB标签发送的数据帧,包括:Optionally, receive data frames sent by each UWB tag, including:
休眠状态下,响应于对遥控设备上开启控件的触发操作,开启UWB组件,并通过UWB组件接收各个UWB标签发送的数据帧。In the dormant state, in response to a trigger operation on the control on the remote control device, the UWB component is turned on, and the data frames sent by each UWB tag are received through the UWB component.
可选的,接收各个UWB标签发送的数据帧,包括:Optionally, receive data frames sent by each UWB tag, including:
休眠状态下,在传感器采集到的传感器数据指示遥控设备处于运动状态的情况下,开启UWB组件,并通过UWB组件接收各个UWB标签发送的数据帧。In the dormant state, when the sensor data collected by the sensor indicates that the remote control device is in motion, the UWB component is turned on, and the data frames sent by each UWB tag are received through the UWB component.
可选的,遥控设备与终端设备之间建立有蓝牙连接。Optionally, a Bluetooth connection is established between the remote control device and the terminal device.
可选的,基于连接指令,与目标UWB标签所表征的目标IoT设备建立数据通信连接,包括:Optionally, based on the connection instruction, establish a data communication connection with the target IoT device represented by the target UWB tag, including:
获取连接指令中包含的目标标签标识;Obtain the target tag ID contained in the link instruction;
基于目标标签标识,从UWB标签与IoT设备的映射关系中确定目标IoT设备;Based on the target tag identification, the target IoT device is determined from the mapping relationship between the UWB tag and the IoT device;
基于目标IoT设备对应的目标连接方式,与目标IoT设备建立数据通信连接。Based on the target connection mode corresponding to the target IoT device, establish a data communication connection with the target IoT device.
可选的,基于连接指令,与目标UWB标签所表征的目标IoT设备建立数据通信连接,包括:Optionally, based on the connection instruction, establish a data communication connection with the target IoT device represented by the target UWB tag, including:
获取连接指令中包含的目标设备标识;Obtain the target device identification contained in the connection instruction;
基于目标设备标识确定目标IoT设备;Determining the target IoT device based on the target device identifier;
基于目标IoT设备对应的目标连接方式,与目标IoT设备建立数据通信连接;Based on the target connection mode corresponding to the target IoT device, establish a data communication connection with the target IoT device;
其中,目标连接方式包括蓝牙和WiFi中的至少一种。Wherein, the target connection mode includes at least one of Bluetooth and WiFi.
可选的,连接指令中包含的目标设备标识由遥控设备从UWB标签与IoT设备的映射关系中获取得到;Optionally, the target device identifier contained in the connection instruction is obtained by the remote control device from the mapping relationship between the UWB tag and the IoT device;
方法还包括:Methods also include:
向遥控设备发送配置数据,使遥控设备对配置数据进行存储,配置数据中包含UWB标签与IoT设备的映射关系。Send configuration data to the remote control device, so that the remote control device stores the configuration data, and the configuration data includes the mapping relationship between UWB tags and IoT devices.
可选的,基于控制指令控制目标IoT设备,包括:Optionally, control the target IoT device based on the control command, including:
获取控制指令中包含的目标控件标识,目标控件标识为遥控设备上被触发的目标遥控控件的标识;Obtain the target control ID contained in the control instruction, where the target control ID is the ID of the target remote control triggered on the remote control device;
基于目标控件标识,确定目标遥控控件所控制的目标设备功能;Determine the target device function controlled by the target remote control based on the target control identifier;
控制目标IoT设备执行目标设备功能;Control the target IoT device to execute the target device function;
方法还包括:Methods also include:
获取控件设置信息,控件设置信息中包含设备标识、设备功能以及控件标识之间的对应关系。The control setting information is obtained, and the control setting information includes the corresponding relationship between the device identifier, the device function and the control identifier.
可选的,基于控制指令控制目标IoT设备,包括:Optionally, control the target IoT device based on the control command, including:
获取控制指令中包含的目标手势操作信息,目标手势操作信息用于表征遥控设备接收到的目标手势操作;Obtain target gesture operation information included in the control command, where the target gesture operation information is used to represent the target gesture operation received by the remote control device;
基于目标手势操作信息,确定目标手势操作所控制的目标设备功能;Based on the target gesture operation information, determine the target device function controlled by the target gesture operation;
控制目标IoT设备执行目标设备功能;Control the target IoT device to execute the target device function;
方法还包括:Methods also include:
获取手势设置信息,手势设置信息中包含设备标识、设备功能以及手势操作信息之间的对应关系。Gesture setting information is acquired, and the gesture setting information includes a correspondence between device identifiers, device functions, and gesture operation information.
可选的,基于连接指令,与目标UWB标签所表征的目标IoT设备建立数据通信连接之后,方法还包括:Optionally, based on the connection instruction, after establishing a data communication connection with the target IoT device represented by the target UWB tag, the method further includes:
向遥控设备发送连接反馈信息,连接反馈信息用于指示终端设备与目标IoT设备之间数据通信连接的建立情况。Send connection feedback information to the remote control device, where the connection feedback information is used to indicate the establishment of the data communication connection between the terminal device and the target IoT device.
可选的,基于连接指令,与目标UWB标签所表征的目标IoT设备建立数据通信连接之后,方法还包括:Optionally, based on the connection instruction, after establishing a data communication connection with the target IoT device represented by the target UWB tag, the method further includes:
在数据通信连接建立成功的情况下,显示IoT设备对应的设备控制界面,设备控制界面中包括IoT设备对应的功能控件;When the data communication connection is successfully established, the device control interface corresponding to the IoT device is displayed, and the device control interface includes the functional controls corresponding to the IoT device;
响应于对设备控制界面中功能控件的触发操作,控制IoT设备执行对应的设备功能。In response to the trigger operation on the function control in the device control interface, the IoT device is controlled to execute the corresponding device function.
可选的,遥控设备与终端设备之间建立有蓝牙连接。Optionally, a Bluetooth connection is established between the remote control device and the terminal device.
在一种可能的实施方式中,遥控设备向终端设备发送的连接指令中包含目标UWB标签的目标标签标识,终端设备则基于该目标标签标识,确定目标UWB标签所表征的目标IoT设备。在图2的基础上,如图5所示,步骤203可以被替换为步骤203A,步骤205可以被替换为205A。In a possible implementation manner, the connection instruction sent by the remote control device to the terminal device includes the target tag identifier of the target UWB tag, and the terminal device determines the target IoT device represented by the target UWB tag based on the target tag identifier. On the basis of FIG. 2 , as shown in FIG. 5 , step 203 can be replaced with step 203A, and step 205 can be replaced with 205A.
步骤203A,基于目标UWB标签发送的数据帧,遥控设备向终端设备发送包含目标标签标识的连接指令。Step 203A, based on the data frame sent by the target UWB tag, the remote control device sends a connection instruction including the target tag identifier to the terminal device.
可选的,各个UWB标签发送的数据帧中包含自身的标签标识,遥控设备确定出目标UWB标签后,即从目标UWB标签发送的数据帧中获取目标标签标识,并向终端设备发送包含目标标签标识的连接指令。Optionally, the data frame sent by each UWB tag contains its own tag identifier. After the remote control device determines the target UWB tag, it obtains the target tag identifier from the data frame sent by the target UWB tag, and sends a message containing the target tag to the terminal device. Identifies the connection directive.
步骤205A,终端设备获取连接指令中包含的目标标签标识;基于目标标签标识,从UWB标签与IoT设备的绑定关系中确定目标IoT设备;基于目标IoT设备对应的目标连接方式,与目标IoT设备建立数据通信连接。Step 205A, the terminal device obtains the target tag ID included in the connection instruction; based on the target tag ID, determine the target IoT device from the binding relationship between the UWB tag and the IoT device; based on the target connection method corresponding to the target IoT device, connect with the target IoT device Establish a data communication connection.
可选的,终端设备中存储有各个UWB标签与IoT设备之间的绑定关系,接收到连接指令后,终端设备即可根据连接指令中包含的目标标签标识,从绑定关系中查找目标UWB标签所表征目标IoT设备的目标设备标识。Optionally, the terminal device stores the binding relationship between each UWB tag and the IoT device. After receiving the connection instruction, the terminal device can search for the target UWB tag from the binding relationship according to the target tag identification contained in the connection instruction. The target device ID of the target IoT device represented by the tag.
示意性的,UWB标签与IoT设备的绑定关系如表一所示。Schematically, the binding relationship between the UWB tag and the IoT device is shown in Table 1.
表一Table I
UWB标签UWB tags IoT设备IoT devices
UWB AUWB A 智能冰箱smart refrigerator
UWB BUWB B 智能电视smart tv
UWB CUWBC 智能窗帘smart curtain
由于终端设备与不同IoT设备进行数据通信的方式不同,比如,终端设备与部分IoT设备通过蓝牙连接进行通信,与部分IoT设备通过WiFi连接进行通信,因此,确定出目标IoT设备后,终端设备进一步基于目标IoT设备对应的目标连接方式,与目标IoT设备建立数据通信连接。Since the terminal device communicates with different IoT devices in different ways, for example, the terminal device communicates with some IoT devices through a Bluetooth connection, and communicates with some IoT devices through a WiFi connection. Therefore, after the target IoT device is determined, the terminal device further Based on the target connection mode corresponding to the target IoT device, establish a data communication connection with the target IoT device.
在一种可能的实施方式中,当目标IoT设备对应的目标连接方式为蓝牙连接时,终端设备基于目标IoT设备的蓝牙标识,与目标IoT设备建立蓝牙连接;当目标IoT设备对应的目标连接方式为WiFi连接时,终端设备基于目标IoT设备的MAC地址,通过路由设备与目标IoT设备建立WiFi连接(目标IoT设备与终端设备接入同一路由设备)。In a possible implementation manner, when the target connection mode corresponding to the target IoT device is Bluetooth connection, the terminal device establishes a Bluetooth connection with the target IoT device based on the Bluetooth identification of the target IoT device; when the target IoT device corresponds to the target connection mode When it is a WiFi connection, the terminal device establishes a WiFi connection with the target IoT device through the routing device based on the MAC address of the target IoT device (the target IoT device and the terminal device access the same routing device).
本实施例中,遥控设备通过向终端设备发送包含目标标签标识的连接指令,由终端设备基于预先设置的绑定关系确定目标UWB标签所表征的目标IoT设备,简化了遥控设备侧的指令发送流程,有助于降低遥控设备的功耗。In this embodiment, the remote control device sends a connection command containing the target tag identifier to the terminal device, and the terminal device determines the target IoT device represented by the target UWB tag based on the preset binding relationship, which simplifies the instruction sending process on the remote control device side , which helps reduce the power consumption of the remote control device.
在另一种可能的实施方式中,遥控设备向终端设备发送的连接指令中包含目标IoT设备的目标设备标识,终端基于该目标设备标识可以直接确定出目标IoT设备。在图2的基础上,如图6所示,步骤203可以被替换为步骤203B,步骤205可以被替换为205B。In another possible implementation manner, the connection instruction sent by the remote control device to the terminal device includes a target device identifier of the target IoT device, and the terminal can directly determine the target IoT device based on the target device identifier. On the basis of FIG. 2 , as shown in FIG. 6 , step 203 can be replaced with step 203B, and step 205 can be replaced with 205B.
步骤203B,遥控设备基于目标UWB标签发送的数据帧,向终端设备发送包含目标设备标识的连接指令。In step 203B, the remote control device sends a connection instruction including the target device identifier to the terminal device based on the data frame sent by the target UWB tag.
在一种可能的实施方式中,当UWB标签发送的数据帧中包含所表征IoT设备的设备标识(比如IoT设备中内置UWB标签发送的数据帧)时,确定出目标UWB标签后,遥控设备可以从目标UWB标签发送的数据帧中获取目标设备标识,并向终端设备发送包含目标设备标识的连接指令。In a possible implementation, when the data frame sent by the UWB tag contains the device identifier of the IoT device represented (such as the data frame sent by the built-in UWB tag in the IoT device), after the target UWB tag is determined, the remote control device can Obtain the target device ID from the data frame sent by the target UWB tag, and send a connection instruction containing the target device ID to the terminal device.
在另一种可能的实施方式中,UWB标签发送的数据帧中仅包含标签标识,此时遥控设备需要借助预存的UWB标签与IoT设备的绑定关系,确定目标UWB标签所表征的目标IoT设备。In another possible implementation, the data frame sent by the UWB tag only contains the tag identifier. At this time, the remote control device needs to use the pre-stored binding relationship between the UWB tag and the IoT device to determine the target IoT device represented by the target UWB tag. .
可选的,遥控设备从目标UWB标签发送的数据帧中获取目标标签标识;基于目标标签标识,从UWB标签与IoT设备的绑定关系中获取目标设备标识,从而向终端设备发送包含目标设备标识的连接指令。Optionally, the remote control device obtains the target tag identifier from the data frame sent by the target UWB tag; based on the target tag identifier, obtains the target device identifier from the binding relationship between the UWB tag and the IoT device, so as to send a message containing the target device identifier to the terminal device. connection instructions.
关于遥控设备中UWB标签与IoT设备间绑定关系的设置方式,在一种可能的实施方式中,终端设备向遥控设备发送配置数据,由遥控设备接收并存储终端设备发送的配置数据,该配置数据中包含UWB标签与IoT设备的绑定关系。Regarding the setting method of the binding relationship between the UWB tag and the IoT device in the remote control device, in a possible implementation, the terminal device sends configuration data to the remote control device, and the remote control device receives and stores the configuration data sent by the terminal device. The data contains the binding relationship between UWB tags and IoT devices.
示意性的,终端设备处完成UWB标签与IoT设备绑定后,通过蓝牙连接向遥控设备发送包含该绑定关系的配置数据。Schematically, after the binding of the UWB tag and the IoT device is completed at the terminal device, the configuration data including the binding relationship is sent to the remote control device through the Bluetooth connection.
需要说明的是,该配置数据中除了包含上述绑定关系外,还可以包含其他信息,比如目标信道的信息、数据帧格式、接收周期等等,本实施例对此不作限定。It should be noted that, in addition to the above-mentioned binding relationship, the configuration data may also include other information, such as target channel information, data frame format, receiving cycle, etc., which is not limited in this embodiment.
在一些实施例中,若绑定关系中不包含目标标签标识对应的目标设备标识,遥控设备确定该目标UWB标签未与(终端设备所能控制的)IoT设备绑定,且不会向终端设备发送连接指令。In some embodiments, if the binding relationship does not include the target device identifier corresponding to the target tag identifier, the remote control device determines that the target UWB tag is not bound to the IoT device (which the terminal device can control), and will not send the target UWB tag to the terminal device. Send a connection command.
步骤205B,终端设备获取连接指令中包含的目标设备标识;基于目标设备标识确定目标IoT设备;基于目标IoT设备对应的目标连接方式,与目标IoT设备建立数据通信连接。In step 205B, the terminal device acquires the target device identifier contained in the connection instruction; determines the target IoT device based on the target device identifier; and establishes a data communication connection with the target IoT device based on the target connection mode corresponding to the target IoT device.
由于连接指令中包含目标设备标识,因此终端设备可以直接基于目标设备标识确定目标IoT设备,并与目标IoT设备建立数据通信连接。Since the target device identifier is included in the connection instruction, the terminal device can directly determine the target IoT device based on the target device identifier, and establish a data communication connection with the target IoT device.
需要说明的是,上述两种发送连接指令以及建立数据通信连接的方式可以单独执行,也可以组合执行。比如,遥控设备首先基于数据帧中的目标标签标识,从本地的绑定关系中查询目标IoT设备,若查询到目标IoT设备,则向终端设备发送包含目标设备标识的连接指令;若未查询到目标IoT设备,则向终端设备发送包含目标标签标识的连接指令,由终端设备进一步根据本地的绑定关系确定是否存在与目标UWB标签绑定的IoT设备(可能遥控设备侧的绑定关系未及时更新)。It should be noted that, the above two manners of sending a connection instruction and establishing a data communication connection may be executed independently or in combination. For example, the remote control device first queries the target IoT device from the local binding relationship based on the target tag identifier in the data frame. If the target IoT device is found, it sends a connection command containing the target device identifier to the terminal device; The target IoT device sends a connection command containing the target tag identification to the terminal device, and the terminal device further determines whether there is an IoT device bound to the target UWB tag according to the local binding relationship (the binding relationship on the remote control device side may not be timely renew).
关于触发遥控设备向终端设备发送控制指令的方式,在一种可能的实施方式中,遥控设备可以通过遥控控件接收控制操作,从而基于触发的遥控控件,向终端设备发送相应的控制指令。在图2的基础上,如图7所示,步骤206可以被替换为步骤206A,步骤208可以被替换为208A。Regarding the manner of triggering the remote control device to send a control command to the terminal device, in a possible implementation manner, the remote control device may receive a control operation through the remote control, so as to send a corresponding control command to the terminal device based on the triggered remote control. On the basis of FIG. 2 , as shown in FIG. 7 , step 206 can be replaced with step 206A, and step 208 can be replaced with 208A.
步骤206A,响应于对遥控设备上目标遥控控件的触发操作,遥控设备向终端设备发送包含目标控件标识的控制指令。Step 206A, in response to a trigger operation on the target remote control on the remote control device, the remote control device sends a control instruction including the target control identifier to the terminal device.
可选的,遥控设备上设置有遥控控件,该遥控控件可以为物理按钮、触控面板等等,本申请实施例并不对遥控控件的具体类型进行限定。为了方便表述,下述实施例以目标遥控控件为物理按钮为例进行说明。Optionally, a remote control is provided on the remote control device, and the remote control may be a physical button, a touch panel, etc. The embodiment of the present application does not limit the specific type of the remote control. For the convenience of description, the following embodiments take the target remote control as a physical button as an example for illustration.
在一种可能的实施方式中,不同遥控控件用于控制不同功能。示意性的,如图8所示,第一遥控控件81和第二遥控控件82用于调节第一功能(比如频道切换功能)的功能参数;第三遥控控件83和第四遥控控件84用于调节第二功能的(比如音量调节功能)功能参数;第五遥控控件85则用于控制第三功能(视频播放)的使能状态(暂停或开始播放)。In a possible implementation, different remote controls are used to control different functions. Schematically, as shown in FIG. 8, the first remote control 81 and the second remote control 82 are used to adjust the function parameters of the first function (such as channel switching function); the third remote control 83 and the fourth remote control 84 are used for Adjust the function parameters of the second function (such as the volume adjustment function); the fifth remote control 85 is used to control the enabling state (pause or start playing) of the third function (video playback).
在其他可能的实施方式中,作用于同一遥控控件的不同触发操作用于控制不同功能。比如,对第五遥控控件85的单击操作用于控制第三功能的使能状态,对第五遥控控件85的长按操作则用于控制设备的开启和关闭。In other possible implementations, different trigger operations on the same remote control are used to control different functions. For example, the single-click operation on the fifth remote control 85 is used to control the enabled state of the third function, and the long-press operation on the fifth remote control 85 is used to control the opening and closing of the device.
当用户需要对目标IoT设备的特定功能进行控制时,即可触发遥控设备上对应的遥控控件。相应的,当接收到对目标遥控控件的触发操作时,遥控设备获取目标遥控件的目标控件标识,并发送包含该目标控件标识的控制指令。When the user needs to control a specific function of the target IoT device, the corresponding remote control on the remote control device can be triggered. Correspondingly, when receiving a trigger operation on the target remote control, the remote control device acquires the target control identifier of the target remote control, and sends a control instruction including the target control identifier.
可选的,该控制指令中除了包含目标控件标识外,还可以包含目标遥控控件所接收到的触发操作的操作类型,比如单击操作、双击操作、长按操作等等。Optionally, in addition to the target control identifier, the control instruction may also contain the type of trigger operation received by the target remote control, such as single-click operation, double-click operation, long-press operation, and so on.
步骤208A,终端设备获取控制指令中包含的目标控件标识,目标控件标识为遥控设备上被触发的目标遥控控件的标识;基于目标控件标识,确定目标遥控控件所控制的目标设备功能;控制目标IoT设备执行目标设备功能。Step 208A, the terminal device acquires the target control identifier contained in the control instruction, and the target control identifier is the identifier of the target remote control triggered on the remote control device; based on the target control identifier, determine the function of the target device controlled by the target remote control; control the target IoT The device performs the target device function.
为了确定出所需控制的设备功能,终端设备从控制指令中获取目标控件标识,从而基于目标控件标识确定目标遥控控件所控制的目标设备功能,进而控制目标IoT设备执行该目标设备功能。In order to determine the device function to be controlled, the terminal device obtains the target control ID from the control instruction, so as to determine the target device function controlled by the target remote control based on the target control ID, and then control the target IoT device to execute the target device function.
由于不同IoT设备具有不同控制需求,比如,智能音箱具有音量控制需求、歌曲切换需求以及暂停需求,智能窗帘具有窗帘拉伸需求以及透光度调节需求,智能门锁具有开启关闭需求,因此为了提高设备控制的准确性,终端设备首先需要确定目标IoT设备的设备功能,然后基于目标控件标识,从该设备功能中确定出目标遥控控件控制的目标设备功能。Because different IoT devices have different control requirements, for example, smart speakers have volume control requirements, song switching requirements and pause requirements, smart curtains have curtain stretching requirements and light transmittance adjustment requirements, and smart door locks have opening and closing requirements, so in order to improve For the accuracy of device control, the terminal device first needs to determine the device function of the target IoT device, and then determine the target device function controlled by the target remote control from the device function based on the target control identifier.
在一种可能的实施方式中,终端设备获取控件设置信息,该控件设置信息中包含设备标识、设备功能以及控件标识之间的对应关系,进行设备控制时,终端设备基于目标控件标识以及目标IoT设备的设备标识,从上述对应关系中确定出目标设备功能。其中,该控件设置信息可以为终端设备基于设备功能以及遥控设备的遥控控件默认设置,也可以由用户自定义。示意性的,结合图8所示的遥控控件,设备标识、设备功能以及控件标识之间的对应关系如表二所示。In a possible implementation manner, the terminal device obtains control setting information, and the control setting information includes the corresponding relationship between the device identifier, device function, and control identifier. When performing device control, the terminal device bases the target control identifier and the target IoT The device identifier of the device, and the function of the target device is determined from the above correspondence. Wherein, the control setting information may be a default setting of the terminal device based on the device function and the remote control control of the remote control device, or may be customized by the user. Schematically, in combination with the remote control shown in FIG. 8 , the corresponding relationship among device identifiers, device functions, and control identifiers is shown in Table 2.
表二Table II
Figure PCTCN2022095266-appb-000001
Figure PCTCN2022095266-appb-000001
在一个示意性的例子中,当终端设备与智能音箱建立蓝牙连接,且接收遥控设备发送的控制指令中包含第二控件82的控件标识时,终端设备通过蓝牙连接控制智能音箱播放下一曲;当终端设备与智能窗帘建立WiFi连接,且接收遥控设备发送的控制指令中包含第三控件83的控件标识时,终端设备通过WiFi连接控制智能窗帘增加透光度;当终端设备与智能空调建立WiFi连接,且接收遥控设备发送的控制指令中包含第五控件85的控件标识时,终端设备通过WiFi连接控制智能空调关闭。In an illustrative example, when the terminal device establishes a Bluetooth connection with the smart speaker, and receives the control instruction sent by the remote control device that includes the control identifier of the second control 82, the terminal device controls the smart speaker to play the next song through the Bluetooth connection; When the terminal device establishes a WiFi connection with the smart curtain, and receives the control command sent by the remote control device and contains the control identifier of the third control 83, the terminal device controls the smart curtain to increase light transmittance through the WiFi connection; when the terminal device establishes a WiFi connection with the smart air conditioner connection, and when the control instruction sent by the remote control device includes the control identifier of the fifth control 85, the terminal device controls the smart air conditioner to turn off through the WiFi connection.
在其他可能的实施方式中,当控制指令中还包含目标遥控控件所接收到的触发操作的操作类型时,终端设备基于设备标识、设备功能、控件标识以及操作类型之间的对应关系,控制目标IoT设备执行相应设备功能,本实施例在此不再赘述。In other possible implementation manners, when the control instruction also includes the operation type of the trigger operation received by the target remote control, the terminal device controls the target The IoT device executes corresponding device functions, which will not be repeated in this embodiment.
本实施例中,遥控设备接收到对遥控控件的触发操作时,向终端设备发送包含控件标识的控制指令,由终端设备基于控件标识确定所需控制设备功能,从而通过数据通信连接控制目标IoT设备执行该设备功能,在无需直接对终端设备进行操作的情况下实现设备控制,提高了设备控制效率,并保证了控制过程的准确性。In this embodiment, when the remote control device receives a trigger operation on the remote control, it sends a control instruction including the control ID to the terminal device, and the terminal device determines the required control device function based on the control ID, thereby controlling the target IoT device through a data communication connection. Executing the device function realizes device control without directly operating the terminal device, improves the device control efficiency, and ensures the accuracy of the control process.
在另一种可能的实施方式中,用户可以握持遥控设备,并通过执行特定手势操作,触发遥控设备向终端设备发送相应的控制指令。在图2的基础上,如图9所示,步骤206可以被替换为步骤206B,步骤208 可以被替换为208B。In another possible implementation manner, the user may hold the remote control device and perform a specific gesture operation to trigger the remote control device to send a corresponding control instruction to the terminal device. On the basis of FIG. 2 , as shown in FIG. 9 , step 206 can be replaced with step 206B, and step 208 can be replaced with 208B.
步骤206B,响应于对遥控设备的目标手势操作,遥控设备向终端设备发送包含目标手势操作信息的控制指令。Step 206B, in response to the target gesture operation on the remote control device, the remote control device sends a control instruction including target gesture operation information to the terminal device.
在一种可能的实施方式中,遥控设备中内置有传感器(比如惯性传感器、加速度计等等),确定出目标UWB标签后,遥控设备基于传感器采集到的传感器数据,识别对遥控设备的目标手势操作,进而将包含手势识别结果(即目标手势操作信息)的控制指令发送至终端设备。In a possible implementation, the remote control device has built-in sensors (such as inertial sensors, accelerometers, etc.), and after determining the target UWB tag, the remote control device recognizes the target gesture to the remote control device based on the sensor data collected by the sensor. operation, and then send the control command including the gesture recognition result (that is, the target gesture operation information) to the terminal device.
可选的,目标手势操作可以包括向左挥动手势、向右挥动手势、向上挥动手势、向下挥动手势、摇晃手势等等,本实施例对此不作限定。Optionally, the target gesture operation may include a gesture of swiping left, a gesture of swiping right, a gesture of swiping up, a gesture of swiping down, a gesture of shaking, etc., which is not limited in this embodiment.
在一种可能的实施方式中,不同手势操作用于控制不同功能。比如,对于智能音箱而言,向左/右挥动手势用于控制歌曲切换,向上/下挥动手势用于控制音量调整。In a possible implementation manner, different gesture operations are used to control different functions. For example, for a smart speaker, the left/right swipe gesture is used to control song switching, and the up/down swipe gesture is used to control volume adjustment.
在其他可能的实施方式中,针对不同IoT设备,同一手势操作用于控制不同功能。比如,当目标IoT设备为智能音箱时,摇晃手势用于控制音频播放/暂停,当目标IoT设备为智能门锁时,摇晃手势用于控制门锁开启/关闭。In other possible implementation manners, for different IoT devices, the same gesture operation is used to control different functions. For example, when the target IoT device is a smart speaker, the shaking gesture is used to control audio playback/pause; when the target IoT device is a smart door lock, the shaking gesture is used to control the opening/closing of the door lock.
步骤208B,终端设备获取控制指令中包含的目标手势操作信息,目标手势操作信息用于表征遥控设备接收到的目标手势操作;基于目标手势操作信息,确定目标手势操作所控制的目标设备功能;控制目标IoT设备执行目标设备功能。Step 208B, the terminal device obtains the target gesture operation information contained in the control instruction, the target gesture operation information is used to represent the target gesture operation received by the remote control device; based on the target gesture operation information, determine the target device function controlled by the target gesture operation; control The target IoT device performs the target device function.
为了确定出所需控制的设备功能,终端设备从控制指令中获取目标手势操作信息,从而基于目标手势操作信息确定所需控制的目标设备功能,进而控制目标IoT设备执行该目标设备功能。In order to determine the device function to be controlled, the terminal device obtains the target gesture operation information from the control instruction, thereby determining the target device function to be controlled based on the target gesture operation information, and then controls the target IoT device to execute the target device function.
由于不同IoT设备具有不同控制需求,比如,智能音箱具有音量控制需求、歌曲切换需求以及暂停需求,智能窗帘具有窗帘拉伸需求以及透光度调节需求,智能门锁具有开启关闭需求,因此为了提高设备控制的准确性,终端设备首先需要确定目标IoT设备的设备功能,然后基于目标手势操作信息,从该设备功能中确定出目标手势操作控制的目标设备功能。Because different IoT devices have different control requirements, for example, smart speakers have volume control requirements, song switching requirements and pause requirements, smart curtains have curtain stretching requirements and light transmittance adjustment requirements, and smart door locks have opening and closing requirements, so in order to improve For the accuracy of device control, the terminal device first needs to determine the device function of the target IoT device, and then determine the target device function controlled by the target gesture operation from the device function based on the target gesture operation information.
在一种可能的实施方式中,终端设备获取手势设置信息,该手势设置信息中包含设备标识、设备功能以及手势操作信息之间的对应关系,进行设备控制时,终端设备基于目标手势操作信息以及目标IoT设备的设备标识,从上述对应关系中确定出目标设备功能。其中,该手势设置信息可以为终端设备基于设备功能默认设置,也可以由用户自定义。示意性的,设备标识、设备功能以及手势操作信息之间的对应关系如表三所示。In a possible implementation manner, the terminal device acquires gesture setting information, which includes the correspondence between the device identifier, device function, and gesture operation information. When performing device control, the terminal device bases the target gesture operation information and The device identifier of the target IoT device, and the function of the target device is determined from the above correspondence. Wherein, the gesture setting information may be a default setting of the terminal device based on device functions, or may be customized by the user. Schematically, the corresponding relationship among device identifiers, device functions, and gesture operation information is shown in Table 3.
表三Table three
Figure PCTCN2022095266-appb-000002
Figure PCTCN2022095266-appb-000002
Figure PCTCN2022095266-appb-000003
Figure PCTCN2022095266-appb-000003
在一个示意性的例子中,当终端设备与智能音箱建立蓝牙连接,且接收遥控设备发送的控制指令中包含指示“向右挥动”的手势操作信息时,终端设备通过蓝牙连接控制智能音箱播放下一曲;当终端设备与智能窗帘建立WiFi连接,且接收遥控设备发送的控制指令中包含指示“向上挥动”的手势操作信息时,终端设备通过WiFi连接控制智能窗帘增加透光度;当终端设备与智能空调建立WiFi连接,且接收遥控设备发送的控制指令中包含指示“摇晃”的手势操作信息时,终端设备通过WiFi连接控制智能空调关闭。In a schematic example, when the terminal device establishes a Bluetooth connection with the smart speaker, and receives the control instruction sent by the remote control device that includes gesture operation information indicating "swipe right", the terminal device controls the smart speaker to play the following video through the Bluetooth connection. One song; when the terminal device establishes a WiFi connection with the smart curtain, and receives the control command sent by the remote control device that contains gesture operation information indicating "swipe up", the terminal device controls the smart curtain to increase light transmittance through the WiFi connection; when the terminal device When a WiFi connection is established with the smart air conditioner, and the control command sent by the remote control device contains gesture operation information indicating "shaking", the terminal device controls the smart air conditioner to turn off through the WiFi connection.
示意性的,如图10所示,当用户握持遥控设备1002,并将遥控设备1002对准智能窗帘1001时,遥控设备1002指示终端设备与智能窗帘1001建立数据通信连接。当用户进一步握持遥控设备1002并向左挥动时,遥控设备1002向终端设备发送包含“向左挥动”这一手势操作信息的控制指令。终端设备基于该控制指令,确定“向左挥动”对应的设备功能为拉开窗帘,从而控制智能窗帘1001拉开。Schematically, as shown in FIG. 10 , when the user holds the remote control device 1002 and points the remote control device 1002 at the smart curtain 1001 , the remote control device 1002 instructs the terminal device to establish a data communication connection with the smart curtain 1001 . When the user further holds the remote control device 1002 and swipes it to the left, the remote control device 1002 sends a control instruction including the gesture operation information of "swipe to the left" to the terminal device. Based on the control instruction, the terminal device determines that the device function corresponding to "swipe left" is to open the curtain, thereby controlling the smart curtain 1001 to open.
本实施例中,遥控设备基于接收到的手势操作,向终端设备发送包含手势操作信息的控制指令,由终端设备基于该手势操作信息,对目标IoT设备对应的设备功能进行控制,使用户通过简单手势操作即可实现对IoT设备的控制,进一步简化了设备控制流程。In this embodiment, the remote control device sends a control command containing gesture operation information to the terminal device based on the received gesture operation, and the terminal device controls the device function corresponding to the target IoT device based on the gesture operation information, so that the user can easily Gesture operations can realize the control of IoT devices, which further simplifies the device control process.
在一些可能的情况下,终端设备接收到连接指令后,无法与目标UWB标签所表征的目标IoT设备建立数据通信连接。比如,当终端设备侧未与目标IoT设备建立过连接,或者,目标IoT设备的通信组件存在异常时,终端设备无法与目标IoT设备建立数据通信连接。In some possible cases, after receiving the connection instruction, the terminal device cannot establish a data communication connection with the target IoT device represented by the target UWB tag. For example, when the terminal device has not established a connection with the target IoT device, or the communication component of the target IoT device is abnormal, the terminal device cannot establish a data communication connection with the target IoT device.
这种情况下,遥控设备继续向终端设备发送控制指令并无法实现设备控制,反而会造成遥控设备的功耗浪费。因此,在一种可能的实施方式中,终端设备基于连接指令尝试与目标IoT设备建立连接后,向遥控设备反馈连接结果,以便遥控设备基于连接结果确定是否进一步发送控制指令。如图11所示,该过程可以包括如下步骤:In this case, the remote control device continues to send control instructions to the terminal device and cannot realize device control, which will instead cause waste of power consumption of the remote control device. Therefore, in a possible implementation manner, after the terminal device attempts to establish a connection with the target IoT device based on the connection instruction, it feeds back the connection result to the remote control device, so that the remote control device determines whether to send a further control instruction based on the connection result. As shown in Figure 11, the process may include the following steps:
步骤1101,接收终端设备发送的连接反馈信息,连接反馈信息用于指示终端设备与目标IoT设备之间数据通信连接的建立情况。 Step 1101, receiving connection feedback information sent by the terminal device, where the connection feedback information is used to indicate the establishment of the data communication connection between the terminal device and the target IoT device.
可选的,终端设备基于连接指令尝试与目标IoT设备建立连接后,基于连接建立情况,向遥控设备发送连接反馈信息。相应的,遥控设备接收该连接反馈信息,并确定终端设备与目标IoT设备之间的数据通信连接是否建立成功,若建立成功,则执行步骤1102,若建立失败,则执行步骤1103至1104。Optionally, after the terminal device attempts to establish a connection with the target IoT device based on the connection instruction, it sends connection feedback information to the remote control device based on the connection establishment situation. Correspondingly, the remote control device receives the connection feedback information, and determines whether the data communication connection between the terminal device and the target IoT device is successfully established. If the establishment is successful, perform step 1102, and if the establishment fails, perform steps 1103 to 1104.
步骤1102,若连接反馈信息指示数据通信连接建立成功,响应于对遥控设备的控制操作,向终端设备发送控制指令。 Step 1102, if the connection feedback information indicates that the data communication connection is established successfully, send a control instruction to the terminal device in response to the control operation on the remote control device.
当数据通信连接建立成功时,遥控设备则响应控制操作,并发送控制指令。其中,基于接收到的控制操作发送控制指令的过程可以参考上述实施例,本实施例在此不再赘述。When the data communication connection is successfully established, the remote control device responds to the control operation and sends a control command. For the process of sending the control instruction based on the received control operation, reference may be made to the above embodiment, and details will not be repeated in this embodiment.
步骤1103,若连接反馈信息指示数据通信连接建立失败,进行连接失败提示,其中,连接失败提示的方式包括震动提示、语音提示或指示灯提示中的至少一种。 Step 1103, if the connection feedback information indicates that the establishment of the data communication connection fails, a connection failure prompt is given, wherein the connection failure prompt includes at least one of a vibration prompt, a voice prompt, or an indicator light prompt.
当数据通信连接建立失败时,为了能够及时告知用户,避免用户继续执行控制操作,遥控设备进行连接失败提示。相应的,遥控设备将不会向终端设备发送控制指令。When the establishment of the data communication connection fails, in order to inform the user in time and prevent the user from continuing to perform the control operation, the remote control device prompts the connection failure. Correspondingly, the remote control device will not send control instructions to the terminal device.
在一些实施例中,当连接建立失败时,遥控设备进行震动,或者,通过扬声器播放提示语音,或者,点亮指示灯。需要说明的是,当连接建立成功时,遥控设备也可以进行连接成功提示,提示用户可以进一步执行控制操作。其中,连接成功提示的方式区别与连接失败提示,本实施例对此不作限定。In some embodiments, when the connection fails to be established, the remote control device vibrates, or plays a prompt voice through a speaker, or turns on an indicator light. It should be noted that, when the connection is successfully established, the remote control device may also prompt the connection success, prompting the user to perform further control operations. Wherein, the manner of prompting for successful connection is different from prompting for connection failure, which is not limited in this embodiment.
步骤1104,重新向终端设备发送连接指令。 Step 1104, resend the connection instruction to the terminal device.
在一种可能的实施方式中,当连接反馈信息指示连接建立失败时,该连接反馈信息中还可以包含失败原因标识,若失败原因标识指示未查找到对应的目标IoT设备,遥控设备则不进行连接指令重发,若失败原因标识指示查找到对应的目标IoT设备,但是连接失败,遥控设备则进行连接指令重发。In a possible implementation manner, when the connection feedback information indicates that the connection establishment fails, the connection feedback information may also include a failure cause identifier, and if the failure cause indicator indicates that the corresponding target IoT device has not been found, the remote control device does not The connection command is resent. If the failure cause indicator indicates that the corresponding target IoT device has been found, but the connection fails, the remote control device will resend the connection command.
本实施例中,终端设备基于连接建立情况,向遥控设备发送连接反馈信息,以便遥控设备基于该连接反馈信息确定是否继续向终端设备发送控制指令,避免在连接失败的情况下发送控制指令造成的功耗浪费。In this embodiment, the terminal device sends connection feedback information to the remote control device based on the connection establishment status, so that the remote control device determines whether to continue sending control instructions to the terminal device based on the connection feedback information, and avoids failures caused by sending control instructions when the connection fails. Wasted power.
上述各个实施例中,以遥控设备通过终端设备间接控制IoT设备为例进行说明,在其他可能的实施方式中,当数据通信连接建立成功时,终端设备可以显示目标IoT设备对应的设备控制界面,设备控制界面中包括目标IoT设备对应的功能控件。In the above-mentioned embodiments, the remote control device indirectly controls the IoT device through the terminal device as an example. In other possible implementation manners, when the data communication connection is successfully established, the terminal device may display the device control interface corresponding to the target IoT device. The device control interface includes functional controls corresponding to the target IoT device.
比如,当目标IoT设备为智能电视时,终端设备显示电视遥控器界面,当目标IoT设备为智能空调时, 终端设备显示空调遥控器界面,当目标IoT设备为智能窗帘时,终端设备显示窗帘控制面板界面。For example, when the target IoT device is a smart TV, the terminal device displays the TV remote control interface; when the target IoT device is a smart air conditioner, the terminal device displays the air conditioner remote control interface; when the target IoT device is a smart curtain, the terminal device displays the curtain control interface. Panel interface.
进一步,响应于对设备控制界面中功能控件的触发操作,终端设备控制目标IoT设备执行对应的设备功能。Further, in response to a trigger operation on the function control in the device control interface, the terminal device controls the target IoT device to execute the corresponding device function.
该方式下,即便终端设备不具备UWB功能,也可以借助遥控设备选中需要控制的目标IoT设备,从而触发显示相应的控制界面,避免用户手动在不同IoT设备对应的应用程序中进行选择,提高了设备控制效率。In this way, even if the terminal device does not have the UWB function, the target IoT device that needs to be controlled can be selected by the remote control device, thereby triggering the display of the corresponding control interface, preventing the user from manually selecting among the applications corresponding to different IoT devices, and improving the user experience. Equipment control efficiency.
由于用户在使用遥控设备控制IoT设备过程中,遥控设备通常处于非静止状态,因此,为了进一步降低遥控设备的功耗,遥控设备在检测到自身处于运动状态时,进行数据帧接收。在检测到自身处于禁止状态时,则保持休眠状态,其中,休眠状态下,遥控设备中的UWB组件不进行数据帧发送和接收。Since the remote control device is usually in a non-stationary state when the user uses the remote control device to control the IoT device, in order to further reduce the power consumption of the remote control device, the remote control device receives data frames when it detects that it is in a motion state. When it is detected that it is in a prohibited state, it will remain in a dormant state, wherein, in the dormant state, the UWB component in the remote control device does not send and receive data frames.
在一种可能的实施方式中,休眠状态下,在传感器采集到的传感器数据指示遥控设备处于运动状态的情况下,遥控设备开启UWB组件,并通过UWB组件接收各个UWB标签发送的数据帧。In a possible implementation manner, in the dormant state, when the sensor data collected by the sensor indicates that the remote control device is in a motion state, the remote control device turns on the UWB component, and receives data frames sent by each UWB tag through the UWB component.
其中,该传感器可以为惯性传感器、加速度传感器等等,本实施例对此不作限定。Wherein, the sensor may be an inertial sensor, an acceleration sensor, etc., which is not limited in this embodiment.
在其他可能的实施方式中,当遥控设备上设置有开启控件时,休眠状态下,响应于对遥控设备上开启控件的触发操作,遥控设备开启UWB组件,并UWB组件接收各个UWB标签发送的数据帧。In other possible implementations, when the remote control device is provided with an opening control, in the dormant state, in response to the trigger operation of the opening control on the remote control device, the remote control device starts the UWB component, and the UWB component receives the data sent by each UWB tag frame.
比如,遥控设备上设置有开启按键,当接收到对开启按键的点击操作时,遥控设备开启UWB组件;当再次接收到对开启按键的点击操作时,遥控设备则关闭UWB组件,并进入休眠状态。For example, the remote control device is provided with a start button, and when the click operation of the start button is received, the remote control device turns on the UWB component; when the click operation of the start button is received again, the remote control device turns off the UWB component and enters a dormant state .
需要说明的是,上述实施例中,以终端设备为执行主体的步骤可以单独实现成为终端设备侧的设备控制方法,以遥控设备为执行主体的步骤可以单独实现成为遥控设备侧的设备控制方法,本申请实施例在此不做赘述。It should be noted that, in the above embodiments, the steps with the terminal device as the execution subject can be independently implemented as a device control method on the terminal device side, and the steps with the remote control device as the execution subject can be independently implemented as a device control method on the remote control device side. The embodiment of the present application will not be described in detail here.
下述为本申请装置实施例,可以用于执行本申请方法实施例。对于本申请装置实施例中未披露的细节,请参照本申请方法实施例。The following are device embodiments of the present application, which can be used to implement the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
请参考图12,其示出了本申请一个实施例提供的设备控制装置的结构框图。该装置具有实现上述方法实施例中由遥控设备侧执行的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。如图12所示,该装置可以包括:Please refer to FIG. 12 , which shows a structural block diagram of a device control apparatus provided by an embodiment of the present application. The device is capable of implementing the functions performed by the remote control device in the above method embodiments, and the functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. As shown in Figure 12, the device may include:
第一接收模块1201,用于接收各个UWB标签发送的数据帧,所述UWB标签用于表征IoT设备;The first receiving module 1201 is configured to receive data frames sent by each UWB tag, and the UWB tag is used to represent an IoT device;
确定模块1202,用于基于所述数据帧,从各个所述UWB标签中确定出目标UWB标签,所述目标UWB标签为遥控设备指向的UWB标签;A determining module 1202, configured to determine a target UWB tag from each of the UWB tags based on the data frame, where the target UWB tag is the UWB tag pointed to by the remote control device;
第一发送模块1203,用于基于所述目标UWB标签,向终端设备发送连接指令,以便所述终端设备与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;The first sending module 1203 is configured to send a connection instruction to the terminal device based on the target UWB tag, so that the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag;
第二发送模块1204,用于响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令,以便所述终端设备基于所述控制指令控制所述目标IoT设备。The second sending module 1204 is configured to send a control instruction to the terminal device in response to a control operation on the remote control device, so that the terminal device controls the target IoT device based on the control instruction.
可选的,所述第一发送模块1203,包括:Optionally, the first sending module 1203 includes:
第一发送单元,用于基于所述目标UWB标签发送的所述数据帧,向所述终端设备发送包含目标标签标识的所述连接指令,以便所述终端设备基于所述目标标签标识,从UWB标签与IoT设备的绑定关系中确定所述目标IoT设备;The first sending unit is configured to send the connection instruction including the target tag identification to the terminal device based on the data frame sent by the target UWB tag, so that the terminal device can transfer from the UWB to the terminal device based on the target tag ID. The target IoT device is determined in the binding relationship between the tag and the IoT device;
或,or,
第二发送单元,用于基于所述目标UWB标签发送的所述数据帧,向所述终端设备发送包含目标设备标识的所述连接指令,以便所述终端设备基于所述目标设备标识确定所述目标IoT设备。The second sending unit is configured to send the connection instruction including the target device identifier to the terminal device based on the data frame sent by the target UWB tag, so that the terminal device determines the Target IoT device.
可选的,所述第一发送单元,用于从所述目标UWB标签发送的所述数据帧中获取所述目标标签标识,并向所述终端设备发送包含所述目标标签标识的所述连接指令。Optionally, the first sending unit is configured to obtain the target tag identifier from the data frame sent by the target UWB tag, and send the connection including the target tag identifier to the terminal device instruction.
可选的,所述第二发送单元,用于:Optionally, the second sending unit is configured to:
从所述目标UWB标签发送的所述数据帧中获取所述目标标签标识;基于所述目标标签标识,从UWB标签与IoT设备的绑定关系中获取所述目标设备标识;向所述终端设备发送包含所述目标设备标识的所述连接指令;Obtain the target tag identifier from the data frame sent by the target UWB tag; based on the target tag identifier, obtain the target device identifier from the binding relationship between the UWB tag and the IoT device; send the terminal device sending the connection instruction including the target device identifier;
或,or,
从所述目标UWB标签发送的所述数据帧中获取所述目标设备标识,并向所述终端设备发送包含所述目标设备标识的所述连接指令。Obtain the target device identifier from the data frame sent by the target UWB tag, and send the connection instruction including the target device identifier to the terminal device.
可选的,所述目标设备标识从UWB标签与IoT设备的绑定关系中获取得到;Optionally, the target device identifier is obtained from the binding relationship between the UWB tag and the IoT device;
所述装置还包括:The device also includes:
存储模块,用于接收并存储所述终端设备发送的配置数据,所述配置数据中包含UWB标签与IoT设备的绑定关系。The storage module is configured to receive and store the configuration data sent by the terminal device, the configuration data includes the binding relationship between the UWB tag and the IoT device.
可选的,所述第二发送模块1204,包括:Optionally, the second sending module 1204 includes:
第三发送单元,用于响应于对所述遥控设备上目标遥控控件的触发操作,向所述终端设备发送包含所述目标控件标识的所述控制指令,以便所述终端设备基于所述目标控件标识确定所述目标遥控控件所控制的目标设备功能;A third sending unit, configured to send the control instruction including the target control identifier to the terminal device in response to a trigger operation on the target remote control on the remote control device, so that the terminal device can control the target control based on the target control identify and determine the target device function controlled by the target remote control;
或,or,
第四发送单元,用于响应于对所述遥控设备的目标手势操作,向所述终端设备发送包含目标手势操作信息的所述控制指令,以便所述终端设备基于所述目标手势操作信息确定所述目标手势操作所控制的目标设备功能。A fourth sending unit, configured to send the control instruction including target gesture operation information to the terminal device in response to a target gesture operation on the remote control device, so that the terminal device determines the target gesture operation information based on the target gesture operation information. The target device function controlled by the target gesture action described above.
可选的,所述装置包括:Optionally, the device includes:
第二接收模块,用于接收所述终端设备发送的连接反馈信息,所述连接反馈信息用于指示所述终端设备与所述目标IoT设备之间数据通信连接的建立情况;A second receiving module, configured to receive connection feedback information sent by the terminal device, where the connection feedback information is used to indicate the establishment of a data communication connection between the terminal device and the target IoT device;
所述第二发送模块1204,用于:在所述连接反馈信息指示数据通信连接建立成功的情况下,执行所述响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令的步骤。The second sending module 1204 is configured to: when the connection feedback information indicates that the data communication connection is established successfully, perform the step of sending a control command to the terminal device in response to a control operation on the remote control device step.
可选的,所述装置还包括:Optionally, the device also includes:
提示模块,用于在所述连接反馈信息指示数据通信连接建立失败的情况下,进行连接失败提示,其中,连接失败提示的方式包括震动提示、语音提示或指示灯提示中的至少一种;A prompt module, configured to prompt a connection failure when the connection feedback information indicates that the data communication connection has failed to be established, wherein the connection failure prompt includes at least one of a vibration prompt, a voice prompt, or an indicator light prompt;
所述第一发送模块1203,还用于重新向所述终端设备发送所述连接指令。The first sending module 1203 is further configured to resend the connection instruction to the terminal device.
可选的,所述第一接收模块1201,包括:Optionally, the first receiving module 1201 includes:
第一接收单元,用于在休眠状态下,响应于对所述遥控设备上开启控件的触发操作,开启所述UWB组件,并通过UWB组件接收各个所述UWB标签发送的所述数据帧;The first receiving unit is configured to, in a dormant state, respond to a trigger operation for opening a control on the remote control device, open the UWB component, and receive the data frame sent by each of the UWB tags through the UWB component;
或,or,
第二接收单元,用于在休眠状态下,在传感器采集到的传感器数据指示所述遥控设备处于运动状态的情况下,开启所述UWB组件,并通过UWB组件接收各个所述UWB标签发送的所述数据帧。The second receiving unit is configured to turn on the UWB component in a dormant state when the sensor data collected by the sensor indicates that the remote control device is in a motion state, and receive all the UWB tags sent by each of the UWB tags through the UWB component. The data frame described above.
可选的,所述遥控设备与所述终端设备之间建立有蓝牙连接。Optionally, a Bluetooth connection is established between the remote control device and the terminal device.
请参考图13,其示出了本申请一个实施例提供的设备控制装置的结构框图。该装置具有实现上述方法实施例中由终端设备侧执行的功能,所述功能可以由硬件实现,也可以由硬件执行相应的软件实现。如图13所示,该装置可以包括:Please refer to FIG. 13 , which shows a structural block diagram of a device control apparatus provided by an embodiment of the present application. The apparatus is capable of realizing the functions executed by the terminal device side in the foregoing method embodiments, and the functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. As shown in Figure 13, the device may include:
第三接收模块1301,用于接收遥控设备发送的连接指令,所述连接指令由所述遥控设备从UWB标签中确定出目标UWB标签时发送,所述目标UWB标签为所述遥控设备指向的UWB标签;The third receiving module 1301 is configured to receive the connection instruction sent by the remote control device, the connection instruction is sent when the remote control device determines the target UWB tag from the UWB tags, and the target UWB tag is the UWB pointed to by the remote control device Label;
连接模块1302,用于基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;A connection module 1302, configured to establish a data communication connection with the target IoT device represented by the target UWB tag based on the connection instruction;
第四接收模块1303,用于接收所述遥控设备发送的控制指令;A fourth receiving module 1303, configured to receive the control instruction sent by the remote control device;
控制模块1304,用于基于所述控制指令控制所述目标IoT设备。A control module 1304, configured to control the target IoT device based on the control instruction.
可选的,所述连接模块1302,包括:Optionally, the connection module 1302 includes:
第一连接单元,用于获取所述连接指令中包含的目标标签标识;基于所述目标标签标识,从UWB标签与IoT设备的绑定关系中确定所述目标IoT设备;基于所述目标IoT设备对应的目标连接方式,与所述目标IoT设备建立数据通信连接;The first connection unit is configured to obtain the target tag identifier contained in the connection instruction; based on the target tag identifier, determine the target IoT device from the binding relationship between the UWB tag and the IoT device; based on the target IoT device A corresponding target connection mode, establishing a data communication connection with the target IoT device;
或,or,
第二连接单元,用于获取所述连接指令中包含的目标设备标识;基于所述目标设备标识确定所述目标IoT设备;基于所述目标IoT设备对应的目标连接方式,与所述目标IoT设备建立数据通信连接;The second connection unit is configured to acquire the target device identifier included in the connection instruction; determine the target IoT device based on the target device identifier; and connect to the target IoT device based on the target connection mode corresponding to the target IoT device establish a data communication connection;
其中,所述目标连接方式包括蓝牙和WiFi中的至少一种。Wherein, the target connection mode includes at least one of Bluetooth and WiFi.
可选的,所述连接指令中包含的所述目标设备标识由所述遥控设备从UWB标签与IoT设备的绑定关系中获取得到;Optionally, the target device identifier contained in the connection instruction is obtained by the remote control device from the binding relationship between the UWB tag and the IoT device;
所述装置还包括:The device also includes:
第三发送模块,用于向所述遥控设备发送配置数据,以便所述遥控设备对所述配置数据进行存储,所述配置数据中包含UWB标签与IoT设备的绑定关系。The third sending module is configured to send configuration data to the remote control device, so that the remote control device can store the configuration data, and the configuration data includes the binding relationship between the UWB tag and the IoT device.
可选的,所述控制模块1304,包括:Optionally, the control module 1304 includes:
第一控制单元,用于获取所述控制指令中包含的目标控件标识,所述目标控件标识为所述遥控设备上被触发的目标遥控控件的标识;基于所述目标控件标识,确定所述目标遥控控件所控制的目标设备功能;控制所述目标IoT设备执行所述目标设备功能;The first control unit is configured to acquire a target control identifier included in the control instruction, where the target control identifier is an identifier of a triggered target remote control on the remote control device; based on the target control identifier, determine the target The target device function controlled by the remote control; controlling the target IoT device to execute the target device function;
或,or,
第二控制单元,用于获取所述控制指令中包含的目标手势操作信息,所述目标手势操作信息用于表征所述遥控设备接收到的目标手势操作;基于所述目标手势操作信息,确定所述目标手势操作所控制的目标 设备功能;控制所述目标IoT设备执行所述目标设备功能。The second control unit is configured to acquire target gesture operation information included in the control instruction, where the target gesture operation information is used to characterize the target gesture operation received by the remote control device; determine the target gesture operation information based on the target gesture operation information The target device function is controlled by the target gesture operation; and the target IoT device is controlled to execute the target device function.
可选的,所述装置还包括:Optionally, the device also includes:
第一获取模块,用于获取控件设置信息,所述控件设置信息中包含设备标识、设备功能以及控件标识之间的对应关系;The first obtaining module is used to obtain control setting information, and the control setting information includes a corresponding relationship between device identifiers, device functions, and control identifiers;
或,or,
第二获取模块,用于获取手势设置信息,所述手势设置信息中包含设备标识、设备功能以及手势操作信息之间的对应关系。The second acquiring module is configured to acquire gesture setting information, where the gesture setting information includes correspondence between device identifiers, device functions, and gesture operation information.
可选的,所述装置还包括:Optionally, the device also includes:
第四发送模块,用于向所述遥控设备发送连接反馈信息,所述连接反馈信息用于指示所述终端设备与所述目标IoT设备之间数据通信连接的建立情况。A fourth sending module, configured to send connection feedback information to the remote control device, where the connection feedback information is used to indicate the establishment of a data communication connection between the terminal device and the target IoT device.
可选的,所述装置还包括:Optionally, the device also includes:
显示模块,用于在数据通信连接建立成功的情况下,显示所述目标IoT设备对应的设备控制界面,所述设备控制界面中包括所述目标IoT设备对应的功能控件;A display module, configured to display a device control interface corresponding to the target IoT device when the data communication connection is successfully established, and the device control interface includes functional controls corresponding to the target IoT device;
所述控制模块1304,还用于响应于对所述设备控制界面中功能控件的触发操作,控制所述目标IoT设备执行对应的设备功能。The control module 1304 is further configured to control the target IoT device to execute a corresponding device function in response to a trigger operation on a function control in the device control interface.
可选的,所述遥控设备与所述终端设备之间建立有蓝牙连接。Optionally, a Bluetooth connection is established between the remote control device and the terminal device.
需要说明的是:上述实施例提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the device provided by the above-mentioned embodiment realizes its function, the division of the above-mentioned functional modules is used as an example for illustration. The internal structure of the system is divided into different functional modules to complete all or part of the functions described above. In addition, the device and the method embodiment provided by the above embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
请参考图14,其示出了本申请一个示例性实施例提供的遥控设备1400的结构方框图。本申请中的遥控设备1400可以包括一个或多个如下部件:处理器1410、存储器1420和UWB组件1430,其中,处理器1510分别与存储器1420和UWB组件1430电性相连。Please refer to FIG. 14 , which shows a structural block diagram of a remote control device 1400 provided by an exemplary embodiment of the present application. The remote control device 1400 in this application may include one or more of the following components: a processor 1410, a memory 1420, and a UWB component 1430, wherein the processor 1510 is electrically connected to the memory 1420 and the UWB component 1430, respectively.
处理器1410可以包括一个或者多个处理核心。处理器1410利用各种接口和线路连接整个遥控设备1400内的各个部分,通过运行或执行存储在存储器1420内的指令、程序、代码集或指令集,以及调用存储在存储器1420内的数据,执行遥控设备1400的各种功能和处理数据。可选地,处理器1510可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。 Processor 1410 may include one or more processing cores. The processor 1410 uses various interfaces and lines to connect various parts of the entire remote control device 1400, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 1420, and calls data stored in the memory 1420 to execute Various functions of the remote control device 1400 and processing data. Optionally, the processor 1510 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
存储器1420可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1420包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1420可用于存储指令、程序、代码、代码集或指令集。存储器1420可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等。本申请实施例中,存储器1420中存储有至少一条指令,该至少一条指令用于被处理器1410执行以执行如上述实施例中所示的设备控制方法。The memory 1420 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM). Optionally, the memory 1420 includes a non-transitory computer-readable storage medium. The memory 1420 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 1420 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 playback function, an image playback function, etc.) , instructions for implementing the foregoing method embodiments, and the like. In this embodiment of the present application, at least one instruction is stored in the memory 1420, and the at least one instruction is used to be executed by the processor 1410 to execute the device control method as shown in the foregoing embodiments.
UWB组件1430用于接收外部UWB组件广播的数据帧,使得遥控设备1400可以通过处理器1410对数据帧进行处理,实现根据该数据帧确定IoT设备空间位置的目的。The UWB component 1430 is used to receive the data frame broadcast by the external UWB component, so that the remote control device 1400 can process the data frame through the processor 1410 to achieve the purpose of determining the spatial position of the IoT device according to the data frame.
可选的,遥控设备1400中还设置有通信组件,从而通过该通信组件与终端设备进行数据交互,该通信组件可以为蓝牙组件。Optionally, the remote control device 1400 is also provided with a communication component, so as to perform data interaction with the terminal device through the communication component, and the communication component may be a Bluetooth component.
除此之外,本领域技术人员可以理解,上述附图所示出的遥控设备1400的结构并不构成对遥控设备1400的限定,遥控设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,遥控设备1400中还包括振动马达、传感器(比如加速度计,惯性传感器)、音频电路、电源、物理按键等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the remote control device 1400 shown in the above drawings does not constitute a limitation on the remote control device 1400, and the remote control device may include more or less components than those shown in the illustration, or Combining certain parts, or different arrangements of parts. For example, the remote control device 1400 also includes components such as a vibration motor, a sensor (such as an accelerometer, an inertial sensor), an audio circuit, a power supply, and a physical button, which will not be repeated here.
请参考图15,其示出了本申请一个示例性实施例提供的终端设备1500的结构方框图。本申请中的终端设备1500可以包括一个或多个如下部件:处理器1510、存储器1520和UWB组件1530,其中,处理器1510与存储器1520相连。Please refer to FIG. 15 , which shows a structural block diagram of a terminal device 1500 provided by an exemplary embodiment of the present application. The terminal device 1500 in this application may include one or more of the following components: a processor 1510 , a memory 1520 and a UWB component 1530 , where the processor 1510 is connected to the memory 1520 .
处理器1510可以包括一个或者多个处理核心。处理器1510利用各种接口和线路连接整个终端设备1500内的各个部分,通过运行或执行存储在存储器1520内的指令、程序、代码集或指令集,以及调用存储在存储器1520内的数据,执行终端设备1500的各种功能和处理数据。可选地,处理器1510可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1510可集成CPU、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU 主要处理操作系统、用户界面和应用程序等;GPU用于负责触摸显示屏所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1510中,单独通过一块通信芯片进行实现。 Processor 1510 may include one or more processing cores. The processor 1510 uses various interfaces and lines to connect various parts of the entire terminal device 1500, and by running or executing instructions, programs, code sets or instruction sets stored in the memory 1520, and calling data stored in the memory 1520, executes Various functions and processing data of the terminal device 1500. Optionally, the processor 1510 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware. The processor 1510 may integrate one or a combination of a CPU, a Graphics Processing Unit (GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is used to render and draw the content that needs to be displayed on the touch screen; the modem is used to process wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1510, but may be realized by a communication chip alone.
存储器1520可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1520包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1520可用于存储指令、程序、代码、代码集或指令集。存储器1520可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等,该操作系统可以是安卓(Android)系统(包括基于Android系统深度开发的系统)、苹果公司开发的IOS系统(包括基于IOS系统深度开发的系统)或其它系统。存储数据区还可以存储终端设备1300在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。本申请实施例中,存储器1520中存储有至少一条指令,该至少一条指令用于被处理器1510执行以执行如上述实施例中所示的设备控制方法。The memory 1520 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory, ROM). Optionally, the memory 1520 includes a non-transitory computer-readable storage medium. The memory 1520 may be used to store instructions, programs, codes, sets of codes or sets of instructions. The memory 1520 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , the instruction etc. that are used to realize above-mentioned each method embodiment, this operating system can be Andrews (Android) system (comprising the system based on the depth development of Android system), the IOS system developed by Apple Inc. (comprising the system based on the depth development of IOS system) or other systems. The storage data area can also store data created by the terminal device 1300 during use (such as phonebook, audio and video data, chat record data) and the like. In this embodiment of the present application, at least one instruction is stored in the memory 1520, and the at least one instruction is used to be executed by the processor 1510 to execute the device control method as shown in the foregoing embodiments.
可选的,终端设备1500还设置有通信组件1530,通过该通信组件1530,终端设备1500可以与外部设备(比如遥控设备和IoT设备)进行数据交互,该通信组件1530可以包括蓝牙组件和WiFi组件。Optionally, the terminal device 1500 is also provided with a communication component 1530, through which the terminal device 1500 can perform data interaction with external devices (such as remote control devices and IoT devices), and the communication component 1530 can include Bluetooth components and WiFi components .
可选的,终端设备1500还可以包括触摸显示屏,其可以为电容式触摸显示屏,该电容式触摸显示屏用于接收用户使用手指、触摸笔等任何适合的物体在其上或附近的触摸操作,以及显示各个应用程序的用户界面。触摸显示屏通常设置在终端设备1500的前面板。触摸显示屏可被设计成为全面屏、曲面屏或异型屏。触摸显示屏还可被设计成为全面屏与曲面屏的结合,异型屏与曲面屏的结合,本申请实施例对此不加以限定。Optionally, the terminal device 1500 may also include a touch display screen, which may be a capacitive touch display screen, and the capacitive touch screen screen is used to receive a user's touch on or near it using any suitable object such as a finger or a touch pen. operation, and display the user interface of each application. The touch screen is usually set on the front panel of the terminal device 1500 . Touch screens can be designed as full screens, curved screens or special-shaped screens. The touch display screen can also be designed as a combination of a full screen and a curved screen, or a combination of a special-shaped screen and a curved screen, which is not limited in this embodiment of the present application.
除此之外,本领域技术人员可以理解,上述附图所示出的终端设备1500的结构并不构成对终端设备1500的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端设备1500中还包括射频电路、拍摄组件、传感器、音频电路、电源等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal device 1500 shown in the above drawings does not constitute a limitation on the terminal device 1500, and the terminal device may include more or less components than those shown in the figure, or Combining certain parts, or different arrangements of parts. For example, the terminal device 1500 also includes components such as a radio frequency circuit, a camera component, a sensor, an audio circuit, and a power supply, which will not be repeated here.
请参考图16,其示出了本申请一个示例性实施例提供的设备控制系统1600的结构方框图。该设备控制系统包括中遥控设备1601、终端设备1602、UWB标签1603和IoT设备1604。Please refer to FIG. 16 , which shows a structural block diagram of a device control system 1600 provided by an exemplary embodiment of the present application. The device control system includes a remote control device 1601 , a terminal device 1602 , a UWB tag 1603 and an IoT device 1604 .
本申请实施例中,遥控设备1601独立于终端设备1602,且与终端设备1602建立有通信连接,遥控设备1601与UWB标签1603建立UWB通信,UWB标签1603用于表征IoT设备1604,终端设备1602与IoT设备1604建立有数据通信连接。In the embodiment of the present application, the remote control device 1601 is independent of the terminal device 1602 and establishes a communication connection with the terminal device 1602. The remote control device 1601 establishes UWB communication with the UWB tag 1603. The UWB tag 1603 is used to represent the IoT device 1604. The terminal device 1602 communicates with the The IoT device 1604 has established a data communication connection.
遥控设备1601接收各个UWB标签1603发送的数据帧;基于数据帧,从各个UWB标签1603中确定出目标UWB标签,目标UWB标签为遥控设备1601指向的UWB标签;基于目标UWB标签,向终端设备1602发送连接指令;The remote control device 1601 receives the data frame sent by each UWB tag 1603; based on the data frame, determines the target UWB tag from each UWB tag 1603, and the target UWB tag is the UWB tag pointed to by the remote control device 1601; Send connection command;
终端设备1602接收遥控设备1601发送的连接指令;基于连接指令,与目标UWB标签所表征的目标IoT设备1604建立数据通信连接;The terminal device 1602 receives the connection instruction sent by the remote control device 1601; based on the connection instruction, establishes a data communication connection with the target IoT device 1604 represented by the target UWB tag;
遥控设备1601响应于对遥控设备的控制操作,向终端设备1602发送控制指令;The remote control device 1601 sends a control instruction to the terminal device 1602 in response to the control operation on the remote control device;
终端设备1602接收遥控设备1601发送的控制指令;基于控制指令控制目标IoT设备1604。The terminal device 1602 receives the control instruction sent by the remote control device 1601; and controls the target IoT device 1604 based on the control instruction.
本申请实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如上各个实施例所述的设备控制方法。The embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores at least one program code, and the program code is loaded and executed by a processor to implement the device control method described in each of the above embodiments .
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面的各种可选实现方式中提供的设备控制方法。According to an aspect of the present application there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the device control method provided in various optional implementation manners of the above aspect.
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。It should be understood that the "plurality" mentioned herein refers to two or more than two. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B may indicate: A exists alone, A and B exist simultaneously, and B exists independently. The character "/" generally indicates that the contextual objects are an "or" relationship. In addition, the numbering of the steps described herein only exemplarily shows a possible sequence of execution among the steps. In some other embodiments, the above-mentioned steps may not be executed according to the order of the numbers, such as two different numbers The steps are executed at the same time, or two steps with different numbers are executed in the reverse order as shown in the illustration, which is not limited in this embodiment of the present application.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above are only optional embodiments of the application, and are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection of the application. within range.

Claims (20)

  1. 一种设备控制方法,应用于遥控设备,所述方法包括:A device control method applied to a remote control device, the method comprising:
    接收各个UWB标签发送的数据帧,所述UWB标签用于表征IoT设备;Receive data frames sent by each UWB tag, the UWB tag is used to represent the IoT device;
    基于所述数据帧,从各个所述UWB标签中确定出目标UWB标签,所述目标UWB标签为所述遥控设备指向的UWB标签;Based on the data frame, determine a target UWB tag from each of the UWB tags, where the target UWB tag is the UWB tag pointed to by the remote control device;
    基于所述目标UWB标签,向终端设备发送连接指令,使所述终端设备与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;Based on the target UWB tag, send a connection instruction to the terminal device, so that the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag;
    响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令,使所述终端设备基于所述控制指令控制所述目标IoT设备。In response to a control operation on the remote control device, a control instruction is sent to the terminal device, so that the terminal device controls the target IoT device based on the control instruction.
  2. 根据权利要求1所述的方法,其中,所述基于所述目标UWB标签,向终端设备发送连接指令,包括:The method according to claim 1, wherein said sending a connection instruction to a terminal device based on said target UWB tag comprises:
    基于所述目标UWB标签发送的所述数据帧,向所述终端设备发送包含目标标签标识的所述连接指令,使所述终端设备基于所述目标标签标识,从UWB标签与IoT设备的映射关系中确定所述目标IoT设备。Based on the data frame sent by the target UWB tag, send the connection instruction including the target tag identifier to the terminal device, so that the terminal device can learn from the mapping relationship between the UWB tag and the IoT device based on the target tag identifier Determine the target IoT device in .
  3. 根据权利要求2所述的方法,其中,所述基于所述目标UWB标签发送的所述数据帧,向所述终端设备发送包含目标标签标识的所述连接指令,包括:The method according to claim 2, wherein, sending the connection instruction including the target tag identification to the terminal device based on the data frame sent by the target UWB tag includes:
    从所述目标UWB标签发送的所述数据帧中获取所述目标标签标识,并向所述终端设备发送包含所述目标标签标识的所述连接指令。Obtain the target tag identifier from the data frame sent by the target UWB tag, and send the connection instruction including the target tag identifier to the terminal device.
  4. 根据权利要求1所述的方法,其中,所述基于所述目标UWB标签,向终端设备发送连接指令,包括:The method according to claim 1, wherein said sending a connection instruction to a terminal device based on said target UWB tag comprises:
    基于所述目标UWB标签发送的所述数据帧,向所述终端设备发送包含目标设备标识的所述连接指令,使所述终端设备基于所述目标设备标识确定所述目标IoT设备。Sending the connection instruction including the target device identifier to the terminal device based on the data frame sent by the target UWB tag, so that the terminal device determines the target IoT device based on the target device identifier.
  5. 根据权利要求4所述的方法,其中,所述基于所述目标UWB标签发送的所述数据帧,向所述终端设备发送包含目标设备标识的所述连接指令,包括:The method according to claim 4, wherein the sending of the connection instruction including the target device identification to the terminal device based on the data frame sent by the target UWB tag includes:
    从所述目标UWB标签发送的所述数据帧中获取所述目标标签标识;Obtain the target tag identifier from the data frame sent by the target UWB tag;
    基于所述目标标签标识,从UWB标签与IoT设备的映射关系中获取所述目标设备标识;Based on the target tag identifier, the target device identifier is obtained from the mapping relationship between the UWB tag and the IoT device;
    向所述终端设备发送包含所述目标设备标识的所述连接指令。sending the connection instruction including the target device identifier to the terminal device.
  6. 根据权利要求4所述的方法,其中,所述基于所述目标UWB标签发送的所述数据帧,向所述终端设备发送包含目标设备标识的所述连接指令,包括:The method according to claim 4, wherein the sending of the connection instruction including the target device identification to the terminal device based on the data frame sent by the target UWB tag includes:
    从所述目标UWB标签发送的所述数据帧中获取所述目标设备标识,并向所述终端设备发送包含所述目标设备标识的所述连接指令。Obtain the target device identifier from the data frame sent by the target UWB tag, and send the connection instruction including the target device identifier to the terminal device.
  7. 根据权利要求1至6任一所述的方法,其中,所述响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令,包括:The method according to any one of claims 1 to 6, wherein the sending a control command to the terminal device in response to the control operation on the remote control device includes:
    响应于对所述遥控设备上目标遥控控件的触发操作,向所述终端设备发送包含所述目标控件标识的所述控制指令,使所述终端设备基于所述目标控件标识确定所述目标遥控控件所控制的目标设备功能。In response to a trigger operation on the target remote control on the remote control device, sending the control instruction including the target control identifier to the terminal device, so that the terminal device determines the target remote control control based on the target control identifier The target device functionality being controlled.
  8. 根据权利要求1至6任一所述的方法,其中,所述响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令,包括:The method according to any one of claims 1 to 6, wherein the sending a control command to the terminal device in response to the control operation on the remote control device includes:
    响应于对所述遥控设备的目标手势操作,向所述终端设备发送包含目标手势操作信息的所述控制指令,使所述终端设备基于所述目标手势操作信息确定所述目标手势操作所控制的目标设备功能。In response to the target gesture operation on the remote control device, sending the control instruction including target gesture operation information to the terminal device, so that the terminal device determines the target gesture operation controlled by the target gesture operation information based on the target gesture operation information. Target device capabilities.
  9. 根据权利要求1至6任一所述的方法,其中,所述响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令之前,所述方法包括:The method according to any one of claims 1 to 6, wherein, before sending a control command to the terminal device in response to the control operation on the remote control device, the method includes:
    接收所述终端设备发送的连接反馈信息,所述连接反馈信息用于指示所述终端设备与所述目标IoT设备之间数据通信连接的建立情况;receiving connection feedback information sent by the terminal device, where the connection feedback information is used to indicate the establishment of a data communication connection between the terminal device and the target IoT device;
    所述响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令,包括:The sending a control instruction to the terminal device in response to the control operation on the remote control device includes:
    在所述连接反馈信息指示数据通信连接建立成功的情况下,执行所述响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令的步骤。In a case where the connection feedback information indicates that the data communication connection is established successfully, the step of sending a control instruction to the terminal device in response to a control operation on the remote control device is performed.
  10. 一种设备控制方法,应用于终端设备,所述方法包括:A device control method applied to a terminal device, the method comprising:
    接收遥控设备发送的连接指令,所述连接指令由所述遥控设备从UWB标签中确定出目标UWB标签时发送,所述目标UWB标签为所述遥控设备指向的UWB标签;receiving a connection instruction sent by the remote control device, the connection instruction is sent when the remote control device determines a target UWB tag from the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device;
    基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;Based on the connection instruction, establish a data communication connection with the target IoT device represented by the target UWB tag;
    接收所述遥控设备发送的控制指令;receiving a control instruction sent by the remote control device;
    基于所述控制指令控制所述目标IoT设备。The target IoT device is controlled based on the control instruction.
  11. 根据权利要求10所述的方法,其中,所述基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接,包括:The method according to claim 10, wherein said establishing a data communication connection with the target IoT device represented by the target UWB tag based on the connection instruction comprises:
    获取所述连接指令中包含的目标标签标识;Obtain the target tag identifier contained in the connection instruction;
    基于所述目标标签标识,从UWB标签与IoT设备的映射关系中确定所述目标IoT设备;Based on the target tag identification, determine the target IoT device from the mapping relationship between the UWB tag and the IoT device;
    基于所述目标IoT设备对应的目标连接方式,与所述目标IoT设备建立数据通信连接。Establish a data communication connection with the target IoT device based on the target connection mode corresponding to the target IoT device.
  12. 根据权利要求10所述的方法,其中,所述基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接,包括:The method according to claim 10, wherein said establishing a data communication connection with the target IoT device represented by the target UWB tag based on the connection instruction comprises:
    获取所述连接指令中包含的目标设备标识;Obtain the target device identifier included in the connection instruction;
    基于所述目标设备标识确定所述目标IoT设备;determining the target IoT device based on the target device identifier;
    基于所述目标IoT设备对应的目标连接方式,与所述目标IoT设备建立数据通信连接;Establishing a data communication connection with the target IoT device based on the target connection mode corresponding to the target IoT device;
    其中,所述目标连接方式包括蓝牙和WiFi中的至少一种。Wherein, the target connection mode includes at least one of Bluetooth and WiFi.
  13. 根据权利要求10至12任一所述的方法,其中,所述基于所述控制指令控制所述目标IoT设备,包括:The method according to any one of claims 10 to 12, wherein the controlling the target IoT device based on the control instruction comprises:
    获取所述控制指令中包含的目标控件标识,所述目标控件标识为所述遥控设备上被触发的目标遥控控件的标识;Acquiring a target control ID included in the control instruction, where the target control ID is an ID of a triggered target remote control on the remote control device;
    基于所述目标控件标识,确定所述目标遥控控件所控制的目标设备功能;determining a target device function controlled by the target remote control based on the target control identifier;
    控制所述目标IoT设备执行所述目标设备功能;controlling the target IoT device to execute the target device function;
    所述方法还包括:The method also includes:
    获取控件设置信息,所述控件设置信息中包含设备标识、设备功能以及控件标识之间的对应关系。The control setting information is acquired, and the control setting information includes the corresponding relationship between the device identifier, the device function and the control identifier.
  14. 根据权利要求10至12任一所述的方法,其中,所述基于所述控制指令控制所述目标IoT设备,包括:The method according to any one of claims 10 to 12, wherein the controlling the target IoT device based on the control instruction comprises:
    获取所述控制指令中包含的目标手势操作信息,所述目标手势操作信息用于表征所述遥控设备接收到的目标手势操作;Acquiring target gesture operation information contained in the control instruction, where the target gesture operation information is used to characterize the target gesture operation received by the remote control device;
    基于所述目标手势操作信息,确定所述目标手势操作所控制的目标设备功能;Based on the target gesture operation information, determine a target device function controlled by the target gesture operation;
    控制所述目标IoT设备执行所述目标设备功能;controlling the target IoT device to execute the target device function;
    所述方法还包括:The method also includes:
    获取手势设置信息,所述手势设置信息中包含设备标识、设备功能以及手势操作信息之间的对应关系。Gesture setting information is acquired, and the gesture setting information includes a correspondence between device identifiers, device functions, and gesture operation information.
  15. 一种设备控制装置,所述装置包括:An equipment control device, the device comprising:
    接收模块,用于接收各个UWB标签发送的数据帧,所述UWB标签用于表征IoT设备;A receiving module, configured to receive data frames sent by each UWB tag, where the UWB tag is used to represent an IoT device;
    确定模块,用于基于所述数据帧,从各个所述UWB标签中确定出目标UWB标签,所述目标UWB标签为遥控设备指向的UWB标签;A determining module, configured to determine a target UWB tag from each of the UWB tags based on the data frame, where the target UWB tag is the UWB tag pointed to by the remote control device;
    发送模块,用于基于所述目标UWB标签,向终端设备发送连接指令,使所述终端设备与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;A sending module, configured to send a connection instruction to a terminal device based on the target UWB tag, so that the terminal device establishes a data communication connection with the target IoT device represented by the target UWB tag;
    所述发送模块,还用于响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令,使所述终端设备基于所述控制指令控制所述目标IoT设备。The sending module is further configured to send a control instruction to the terminal device in response to a control operation on the remote control device, so that the terminal device controls the target IoT device based on the control instruction.
  16. 一种设备控制装置,所述装置包括:An equipment control device, the device comprising:
    第一接收模块,用于接收遥控设备发送的连接指令,所述连接指令由所述遥控设备从UWB标签中确定出目标UWB标签时发送,所述目标UWB标签为所述遥控设备指向的UWB标签;The first receiving module is configured to receive a connection instruction sent by the remote control device, the connection instruction is sent when the remote control device determines a target UWB tag from the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device ;
    连接模块,用于基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;A connection module, configured to establish a data communication connection with the target IoT device represented by the target UWB tag based on the connection instruction;
    第二接收模块,用于接收所述遥控设备发送的控制指令;a second receiving module, configured to receive a control instruction sent by the remote control device;
    控制模块,用于基于所述控制指令控制所述目标IoT设备。A control module, configured to control the target IoT device based on the control instruction.
  17. 一种IoT设备的控制系统,所述系统包括遥控设备、终端设备、UWB标签和IoT设备;A control system for an IoT device, the system includes a remote control device, a terminal device, a UWB tag and an IoT device;
    所述UWB标签用于表征所述IoT设备;The UWB tag is used to characterize the IoT device;
    所述遥控设备接收各个所述UWB标签发送的数据帧;基于所述数据帧,从各个所述UWB标签中确定出目标UWB标签,所述目标UWB标签为所述遥控设备指向的UWB标签;基于所述目标UWB标签,向终端设备发送连接指令;The remote control device receives data frames sent by each of the UWB tags; based on the data frames, a target UWB tag is determined from each of the UWB tags, and the target UWB tag is the UWB tag pointed to by the remote control device; based on The target UWB tag sends a connection instruction to the terminal device;
    所述终端设备接收所述遥控设备发送的连接指令;基于所述连接指令,与所述目标UWB标签所表征的目标IoT设备建立数据通信连接;The terminal device receives the connection instruction sent by the remote control device; based on the connection instruction, establishes a data communication connection with the target IoT device represented by the target UWB tag;
    所述遥控设备响应于对所述遥控设备的控制操作,向所述终端设备发送控制指令;The remote control device sends a control instruction to the terminal device in response to a control operation on the remote control device;
    所述终端设备接收所述遥控设备发送的控制指令,基于所述控制指令控制所述目标IoT设备。The terminal device receives the control instruction sent by the remote control device, and controls the target IoT device based on the control instruction.
  18. 一种遥控设备,所述遥控设备包括:处理器、存储器和UWB组件;所述存储器存储有至少一段 程序,所述至少一段程序用于被所述处理器执行以实现如权利要求1至9任一所述的设备控制方法。A remote control device, the remote control device includes: a processor, a memory and a UWB component; the memory stores at least one program, and the at least one program is used to be executed by the processor to implement any of claims 1 to 9. A device control method described above.
  19. 一种终端设备,所述终端设备包括:处理器和存储器;所述存储器存储有至少一段程序,所述至少一段程序用于被所述处理器执行以实现如权利要求10至14任一所述的设备控制方法。A terminal device, the terminal device comprising: a processor and a memory; the memory stores at least one program, and the at least one program is used to be executed by the processor to implement any one of claims 10 to 14 device control method.
  20. 一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一段程序,所述至少一段程序由处理器加载并执行以实现如权利要求1至9任一所述的设备控制方法,或,实现如权利要求10至14任一所述的设备控制方法。A computer-readable storage medium, at least one program is stored in the computer-readable storage medium, and the at least one program is loaded and executed by a processor to implement the device control method according to any one of claims 1 to 9, Or, implement the device control method according to any one of claims 10 to 14.
PCT/CN2022/095266 2021-07-08 2022-05-26 Device control method and apparatus, control system, device, and storage medium WO2023279887A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110772638.7 2021-07-08
CN202110772638.7A CN115604672A (en) 2021-07-08 2021-07-08 Equipment control method, device, control system, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2023279887A1 true WO2023279887A1 (en) 2023-01-12

Family

ID=84800333

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/095266 WO2023279887A1 (en) 2021-07-08 2022-05-26 Device control method and apparatus, control system, device, and storage medium

Country Status (2)

Country Link
CN (1) CN115604672A (en)
WO (1) WO2023279887A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104200632A (en) * 2014-09-16 2014-12-10 广东欧珀移动通信有限公司 Method and system for achieving remote control function through wearable equipment with combination of intelligent mobile terminal
CN105493635A (en) * 2013-09-04 2016-04-13 皇家飞利浦有限公司 System for remotely controlling a controllable device
CN105549408A (en) * 2015-12-31 2016-05-04 歌尔声学股份有限公司 Wearable device and control method thereof, intelligent household server and control method thereof, and system
US20170214540A1 (en) * 2015-07-14 2017-07-27 Huizhou Tcl Mobile Communication Co., Ltd Mobile terminal-based methods of controlling smart home appliances, and associated mobile terminals and accessories
CN111885707A (en) * 2020-08-05 2020-11-03 济南浪潮高新科技投资发展有限公司 AR (augmented reality) -device-based Internet of things device control method and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105493635A (en) * 2013-09-04 2016-04-13 皇家飞利浦有限公司 System for remotely controlling a controllable device
CN104200632A (en) * 2014-09-16 2014-12-10 广东欧珀移动通信有限公司 Method and system for achieving remote control function through wearable equipment with combination of intelligent mobile terminal
US20170214540A1 (en) * 2015-07-14 2017-07-27 Huizhou Tcl Mobile Communication Co., Ltd Mobile terminal-based methods of controlling smart home appliances, and associated mobile terminals and accessories
CN105549408A (en) * 2015-12-31 2016-05-04 歌尔声学股份有限公司 Wearable device and control method thereof, intelligent household server and control method thereof, and system
CN111885707A (en) * 2020-08-05 2020-11-03 济南浪潮高新科技投资发展有限公司 AR (augmented reality) -device-based Internet of things device control method and system

Also Published As

Publication number Publication date
CN115604672A (en) 2023-01-13

Similar Documents

Publication Publication Date Title
US10834237B2 (en) Method, apparatus, and storage medium for controlling cooperation of multiple intelligent devices with social application platform
EP3163885B1 (en) Method and apparatus for controlling electronic device
KR101736318B1 (en) Method, apparatus, program, and recording medium for controlling smart device
CN105933899B (en) The cut-in method and device of wireless access point
EP3136793B1 (en) Method and apparatus for awakening electronic device
EP3866516A1 (en) Method and device for configuring and adjusting search space parameter
CN108845853B (en) Application program starting method and mobile terminal
CN105634881B (en) Application scene recommendation method and device
EP3291539A2 (en) Device control method and apparatus
CN107222613B (en) Display method and terminal
US10091020B2 (en) Electronic device and gateway for network service, and operation method therefor
CN105741532B (en) Terminal and infrared remote control matching method with function of infrared remote control
US10764415B2 (en) Screen lighting method for dual-screen terminal and terminal
JP6522124B2 (en) Gesture control method, device and system
JP6556832B2 (en) Wireless access point control method, apparatus, program, and recording medium
CN106341606A (en) Device control method and mobile terminal
CN107346115B (en) Control method and control terminal of intelligent device and intelligent device
WO2013037265A1 (en) Realization method and device for learnable type remote control
US20170019482A1 (en) Method and apparatus for downloading control program
CN109558046A (en) A kind of information display method and terminal device
CN106453032B (en) Information-pushing method and device, system
CN108108082B (en) Information processing method, terminal and computer storage medium
CN112286122A (en) Intelligent household control method, device, terminal and storage medium
CN113495617A (en) Method and device for controlling equipment, terminal equipment and storage medium
CN114077227A (en) Page switching method and device, scene control panel, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22836642

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22836642

Country of ref document: EP

Kind code of ref document: A1