Remote electronic device control method, apparatus and system, device and medium

CN115601951BActive Publication Date: 2026-10-27SHENZHEN LUMIUNITED TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110777768.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-09
Publication Date
2026-10-27
Estimated Expiration
2041-07-09

AI Technical Summary

Technical Problem

[0003]相关技术中,在对智能家居设备进行远程控制的智能家居设备应用程序(智能家居设备APP)中,对于通过红外码等本地遥控器控制的遥控电子设备通常无法准确地获知设备的当前状态,导致后续通过应用程序对这些遥控电子设备进行状态控制时出现无效指令,不利于用户体验

Benefits of technology

[0009]本申请上述实施例提供的遥控电子设备控制方法及装置、终端设备,对智能家居系统进行配置包括将遥控电子设备与通断装置进行绑定,终端设备根据绑定操作建立遥控电子设备和通断装置之间的关联关系,将关联关系发送给网关设备,由网关设备根据关联关系获取目标通断装置的指定状态参数以用于确定目标遥控电子设备当前的实时状态,在目标遥控电子设备的控制界面显示将目标遥控电子设备从所述实时状态切换至反向状态的控制事件输入按键,从而方便用户在知晓目标遥控电子设备的实时状态的情况下,对目标遥控电子设备进行控制,以准确控制目标遥控电子设备切换到指定状态,避免无效的控制指令,提升对遥控电子设备进行智能控制的使用体验。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115601951B_ABST
    Figure CN115601951B_ABST
Patent Text Reader

Abstract

The application provides a remote control electronic device control method, device and system, a terminal device, a gateway device and a storage medium. The remote control electronic device control method comprises the following steps: based on a binding operation of binding a target remote control electronic device and a target on-off device, establishing an association relationship between the target on-off device and the target remote control electronic device; sending the association relationship to a gateway device; based on a specified state parameter of the target on-off device acquired by the gateway device based on the association relationship, displaying a control event input key for switching the target remote control electronic device from a real-time state to an opposite state on a control interface of the target remote control electronic device based on a real-time state of the target remote control electronic device determined based on the specified state parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart home technology, and in particular to a remote control electronic device control method, apparatus and system, terminal device, gateway device and computer storage medium. Background Technology

[0002] With the continuous development of the smart home industry, the concept of whole-house intelligence has become deeply rooted in people's hearts, and the types and number of smart home devices in users' homes are constantly increasing.

[0003] In related technologies, in smart home device applications (smart home device APPs) that remotely control smart home devices, the current status of remote-controlled electronic devices controlled by local remote controllers such as infrared codes is often not accurately known. This leads to invalid commands when the application tries to control the status of these remote-controlled electronic devices, which is detrimental to the user experience. Summary of the Invention

[0004] To address the existing technical problems, this application provides a remote control electronic device control method, apparatus, system, terminal device, gateway device, and computer storage medium capable of accurately acquiring the current real-time status of a remote control electronic device and accurately controlling the remote control electronic device to switch to a specified status.

[0005] To achieve the above objectives, the technical solution of this application embodiment is implemented as follows:

[0006] In a first aspect, embodiments of this application provide a method for controlling a remote-controlled electronic device, comprising: establishing an association between the target remote-controlled electronic device and the target remote-controlled electronic device based on a binding operation that binds the target remote-controlled electronic device and the target on / off device; sending the association to a gateway device; obtaining specified state parameters of the target on / off device based on the association by the gateway device; and displaying a control event input button on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the real-time state to a reverse state based on the real-time state determined by the specified state parameters.

[0007] Secondly, embodiments of this application provide a control device for a remote-controlled electronic device, comprising: an association module, configured to establish an association between the target on / off device and the target remote-controlled electronic device based on a binding operation that binds the target remote-controlled electronic device to the target on / off device; a sending module, configured to send the association to a gateway device; and a control module, configured to obtain specified status parameters of the target on / off device based on the association obtained by the gateway device, and display control event input buttons on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the real-time state to a reverse state based on the real-time state determined by the specified status parameters.

[0008] Thirdly, embodiments of this application provide a terminal device, including a processor and a memory. The memory stores a computer program that can be executed by the processor. When the computer program is executed by the processor, it implements the remote control electronic device control method applied to the terminal device side in any embodiment of this application.

[0009] The remote control electronic device control method, apparatus, and terminal device provided in the above embodiments of this application configure a smart home system by binding a remote control electronic device to an on / off device. The terminal device establishes an association between the remote control electronic device and the on / off device based on the binding operation, sends the association to a gateway device, and the gateway device obtains the specified status parameters of the target on / off device based on the association to determine the current real-time status of the target remote control electronic device. The control interface of the target remote control electronic device displays a control event input button to switch the target remote control electronic device from the real-time status to the reverse status. This allows users to control the target remote control electronic device knowing its real-time status, accurately control the target remote control electronic device to switch to the specified status, avoid invalid control commands, and improve the user experience of intelligent control of the remote control electronic device.

[0010] Fourthly, embodiments of this application provide a method for controlling a remote-controlled electronic device, comprising: acquiring an association relationship between a target remote-controlled electronic device and a target on / off device sent by a terminal device; acquiring a specified state parameter value of the target on / off device according to the association relationship; determining resource attribute information of the target remote-controlled electronic device according to the state parameter value; the resource attribute information including at least one of the following: current state, power, and power consumption; determining the real-time state of the target remote-controlled electronic device according to the resource attribute information and sending it to the terminal device.

[0011] Fifthly, embodiments of this application provide a remote control electronic device control apparatus, comprising: an acquisition module, configured to acquire the association relationship between a target remote control electronic device and a target on / off device sent by a terminal device; a status module, configured to acquire a specified status parameter value of the target on / off device according to the association relationship, and determine resource attribute information of the target remote control electronic device according to the status parameter value; the resource attribute information includes at least one of the following: current status, power, and power consumption; and a determination module, configured to determine the real-time status of the target remote control electronic device according to the resource attribute information and send it to the terminal device.

[0012] Sixthly, embodiments of this application provide a gateway device, including a processor and a memory. The memory stores a computer program that can be executed by the processor. When the computer program is executed by the processor, it implements the remote control electronic device control method applied to the gateway device side in any embodiment of this application.

[0013] The remote control electronic device control method and apparatus, and gateway device provided in the above embodiments of this application, wherein the gateway device acquires the association relationship between the remote control electronic device and the switching device sent by the terminal device, establishes and maintains resource attribute information containing parameters that can characterize the working state of the target remote control electronic device and the changes in the working state parameters based on the association relationship and the collected specified state parameters of the switching device, and reports the real-time status of the target remote control electronic device to the cloud so that the user can obtain the real-time working status of the target remote control electronic device from the cloud, so that the user can know the accurate working status of the remote control electronic device and accurately control the target remote control electronic device to switch from the real-time state to other specified states, thereby improving the accuracy of intelligent control of the target remote control electronic device.

[0014] In a seventh aspect, embodiments of this application provide a remote control electronic device control system, including a terminal device as described in any embodiment of this application, a gateway device as described in any embodiment of this application, a remote control electronic device, a switching device, and a cloud, wherein the remote control electronic device is an infrared remote control electronic device, and the switching device is a switch or a socket.

[0015] Eighthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a controller, implements the remote control electronic device control method described in any embodiment of this application.

[0016] The remote control electronic device control system and storage medium provided in the above embodiments of this application are used to implement the remote control electronic device control method provided in the embodiments of this application, and have the same technical effects as the corresponding remote control electronic device control method embodiments. To avoid repetition, they will not be described again here. Attached Figure Description

[0017] Figure 1 This is a schematic diagram illustrating an optional application scenario of the remote control electronic device control method in one embodiment;

[0018] Figure 2 This is a flowchart of a remote control electronic device control method in one embodiment;

[0019] Figure 3 This is a flowchart of a remote control electronic device control method in another embodiment;

[0020] Figure 4 This is a flowchart of a remote control electronic device control method in yet another embodiment;

[0021] Figure 5 A flowchart of a remote control electronic device control method in an optional specific example;

[0022] Figure 6 for Figure 5 A schematic diagram of the interface for adding infrared home appliances in the embodiment;

[0023] Figure 7 for Figure 5 A schematic diagram of the interface for the steps of binding the associated on / off device in the embodiment;

[0024] Figure 8 for Figure 5 A schematic diagram of the control page of the infrared home appliance in the embodiment;

[0025] Figure 9 for Figure 5 The flowchart in this embodiment illustrates the interaction between the gateway device and the terminal device, controlling the target remote-controlled electronic device to switch to the on state.

[0026] Figure 10 This is a schematic diagram of a remote control electronic device control device in one embodiment;

[0027] Figure 11 This is a schematic diagram of a remote control electronic device control apparatus in another embodiment;

[0028] Figure 12 This is a schematic diagram of a terminal device in one embodiment;

[0029] Figure 13 This is a schematic diagram of a terminal device in another embodiment;

[0030] Figure 14 This is a schematic diagram of a gateway device in one embodiment. Detailed Implementation

[0031] The technical solution of this application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0032] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0033] In the following description, the phrase "some embodiments" refers to a subset of all possible embodiments. It should be noted that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.

[0034] In the following description, the terms "first, second, and third" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first, second, and third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0036] Please see Figure 1This is a framework diagram of an Internet of Things (IoT) system for an optional application scenario of the remote control electronic device control method provided in this application embodiment. The IoT system consists of home devices 10, a gateway device 53, a cloud platform 52, and terminal devices 51. Terminal device 51 can be any device with communication and storage functions, such as a smartphone, desktop computer, laptop, tablet, or other smart communication device with network connectivity. Cloud platform 52 can be a network access server, database server, cloud server, etc. Optionally, the gateway device 53 can be built based on the ZigBee protocol, with smart home devices controlled by terminal devices 51. It can be pre-installed with the gateway device 53; for example, home device 10 can be a device in the kit to which the gateway device 53 belongs at the factory; or it can be a device that is subsequently connected to the gateway device 53 through user operation. The home appliances 10 include various smart home appliances 13 that can communicate with and be controlled by the terminal device 51 after being connected to the network, such as smart lights and automatic curtains; on / off devices 11 that can be turned on or off according to the control commands of the terminal device 51, such as smart panel switches and sockets; and remote control electronic devices 12 controlled by remote control codes, such as infrared home products such as air conditioners and televisions controlled by infrared remote controls, or home products such as smart door locks and security equipment controlled by radio frequency remote controls.

[0037] Optionally, the terminal device 51 is equipped with a client that can manage the home devices 10. The client can be an application client (such as a mobile APP) or a web client, and there is no limitation on it here.

[0038] Optionally, home device 10 can establish a network connection with gateway device 53 based on the ZigBee protocol, thereby joining the ZigBee network. Home device 10, on / off device 20, and terminal device 51 can all access the Ethernet network through gateway device 53, which can connect to the server via wired or wireless communication. For example, gateway device 53 and terminal device 51 can store the acquired information in cloud 52. Optionally, terminal device 51 can also establish a network connection with cloud 52 via 2G / 3G / 4G / 5G, WiFi, etc., thereby obtaining data sent from cloud 52.

[0039] Optionally, the terminal device 51, gateway device 53, and home device 10 can be in the same local area network (LAN) or in the same wide area network (WAN) as the cloud 52. When the terminal device 51 and gateway device 53 are in the same LAN, the terminal device 51 can interact with the gateway device 53 and the home device 10 connected to the gateway device 53 via the LAN path; it can also interact with the gateway device 53 and the smart home devices connected to the gateway device 53 via the WAN path. When the terminal device 51 and gateway device 53 are not in the same LAN, the terminal device 51 can interact with the gateway device 53 and the home device 10 connected to the gateway device 53 via the WAN path. The IoT system can further control the opening and closing of IoT load devices within its LAN or connected to it through the home device 10.

[0040] Please see Figure 2 This application provides a method for controlling a remote-controlled electronic device, which can be applied to... Figure 1 The terminal device is shown. The control method for the remote-controlled electronic device includes, but is not limited to, S101, S103, and S105, as detailed below:

[0041] S101, based on the binding operation of binding the target remote control electronic device to the target on / off device, establish an association relationship between the target on / off device and the target remote control electronic device.

[0042] Remote-controlled electronic devices refer to smart home devices controlled via remote control codes. Different remote control codes correspond to different control commands. By issuing corresponding remote control codes, smart home devices can be controlled to perform specific actions. Remote control codes can be infrared codes, and remote-controlled electronic devices can be infrared home products such as smart lights, automatic curtains, air conditioners, and televisions controlled by infrared remote controls. Alternatively, remote control codes can be radio frequency (RF) codes, and remote-controlled electronic devices can be smart home products such as smart door locks and smart security devices controlled by RF remote controls. On / off devices refer to switches, sockets, etc., used to control the opening and closing of smart home devices, adjust operating parameters, or switch between different operating modes.

[0043] A target remote-controlled electronic device refers to a remote-controlled electronic device selected from those connected to the Internet of Things (IoT) system, which is intended to be bound to a specific on / off device. A target on / off device refers to an on / off device selected from those connected to the IoT system, which is intended to be bound to a specific remote-controlled electronic device.

[0044] The terminal device establishes an association between the target remote-controlled electronic device and the target on / off device based on a binding operation. This association can refer to a mapping relationship between the first identity information of the target remote-controlled electronic device and the second identity information of the target on / off device. The first identity information of the target remote-controlled electronic device refers to relevant information that uniquely identifies the target remote-controlled electronic device, and can be a combination of one or more of the following: name, identifier, model, code, location, etc. The second identity information of the target on / off device refers to relevant information that uniquely identifies the target on / off device, and can be a combination of one or more of the following: name, identifier, model, code, location, etc. The terminal device can provide a binding operation page for binding the target remote-controlled electronic device and the target on / off device. Based on the user's selection of the remote-controlled electronic device and the on / off device on the binding operation page, the binding operation is completed. The terminal device obtains the first identity information of the remote-controlled electronic device and the second identity information of the on / off device according to the user's binding operation, thereby establishing an association between the on / off device and the remote-controlled electronic device.

[0045] The terminal device establishes an association between the target remote-controlled electronic device and the target on / off device based on a binding operation. This association can also refer to a mapping relationship between the target remote-controlled electronic device's first identity information, the target on / off device's second identity information, and associated status parameters. The associated status parameters are pre-set parameters used to determine the operating status of the remote-controlled electronic device. The terminal device can provide a binding operation page for binding the target remote-controlled electronic device and the target on / off device. Based on the user's selection of the remote-controlled electronic device and the on / off device to be bound, and the input of the associated status parameters on the binding operation page, the terminal device completes the binding operation, establishing an association between the on / off device and the remote-controlled electronic device according to the user's binding operation.

[0046] S103, the association relationship is sent to the gateway device.

[0047] The terminal device sends the association relationship to the gateway device, which can either store the association relationship locally or report it to the cloud.

[0048] S105, the gateway device obtains the specified status parameters of the target on / off device based on the association relationship, and displays a control event input button on the control interface of the target remote control electronic device to switch the target remote control electronic device from the real-time state to the reverse state based on the specified status parameters.

[0049] The specified status parameter refers to a pre-set parameter that can be detected by the on / off device and used to determine the working state of the remote-controlled electronic device. The gateway device obtains the specified status parameter from the target on / off device based on the association sent by the terminal device, and determines the real-time status of the target remote-controlled electronic device based on the specified status parameter, reporting it to the cloud. The control event input button is a button used to receive input operations, triggering corresponding control events based on the input operations. A control event refers to a target object executing a corresponding control action according to preset control conditions. For example, the target object is the target remote-controlled electronic device, the preset control conditions are the trigger instructions obtained based on clicking the control event input button, and the control action is switching from the real-time state to the reverse state. The terminal device can obtain the real-time status of the target remote-controlled electronic device reported by the gateway device from the cloud, and display the control event input button on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the real-time state to the reverse state. The control event input buttons displayed on the control interface of the target remote-controlled electronic device vary depending on the real-time status of the target remote-controlled electronic device. For example, if the real-time status of the target remote-controlled electronic device is "power on", a power off event input button to switch it from the power on state to the standby state will be displayed on the control interface of the target remote-controlled electronic device; if the real-time status of the target remote-controlled electronic device is "standby" or "power off", a power on event input button to switch it from the standby or power off state to the power on state will be displayed on the control interface of the target remote-controlled electronic device.

[0050] In the above embodiments, configuring the smart home system includes binding a remote-controlled electronic device to an on / off device. By binding the remote-controlled electronic device to an on / off device that can detect specified status parameters, the terminal device establishes an association between the remote-controlled electronic device and the on / off device according to the binding operation, and sends the association to the gateway device. The gateway device obtains the specified status parameters of the target on / off device according to the association to determine the current real-time status of the target remote-controlled electronic device. The control interface of the target remote-controlled electronic device displays a control event input button to switch the target remote-controlled electronic device from the real-time state to the reverse state. This allows users to control the target remote-controlled electronic device knowing its real-time status, accurately control the target remote-controlled electronic device to switch to the specified state, avoid invalid control commands, and improve the user experience of intelligent control of the remote-controlled electronic device.

[0051] Optionally, the step of displaying control event input buttons on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the real-time state to the reverse state includes:

[0052] When the real-time status is "power on", a power off button is displayed on the control interface of the target remote-controlled electronic device to switch the target remote-controlled electronic device from the power on state to the power off state.

[0053] When the real-time state is in standby or power-off state, a power button for switching the target remote-controlled electronic device from the standby or power-off state to the power-on state is displayed on the control interface of the target remote-controlled electronic device.

[0054] The gateway device obtains specified status parameters from the target on / off device based on the association relationship between the target remote-controlled electronic device and the target on / off device sent by the terminal device, and determines the real-time status of the target remote-controlled electronic device and reports it to the cloud based on the specified status parameters. Specifically, the gateway device determines the real-time status of the remote-controlled electronic device as powered on, standby, or powered off based on the specified status parameters detected by the target on / off device. Depending on the different real-time statuses of the target remote-controlled electronic device, the gateway device displays corresponding control event input buttons on the control interface of the target remote-controlled electronic device to switch it to the opposite state. For example, if the real-time status is powered on, the control event input button is a power-off button to switch the target remote-controlled electronic device from powered on to powered off; if the real-time status is standby or powered off, the control event input button is a power-on button to switch the target remote-controlled electronic device from standby or powered off to powered on.

[0055] In the above embodiments, the terminal device obtains the specified status parameters of the target on / off device by the gateway device according to the association relationship to determine the current real-time status of the target remote-controlled electronic device. When the real-time status of the target remote-controlled electronic device is accurately known, a button is provided to switch the target remote-controlled electronic device to a specified reverse state. In this way, the user can understand the actual operation of the target remote-controlled electronic device and provide accurate instructions to control it to the specified state. This reduces the probability of the user making erroneous operations due to not knowing the actual status of the target remote-controlled electronic device, avoids invalid control instructions, and improves the user experience of intelligent control of the remote-controlled electronic device.

[0056] Optionally, the control event input button is a slide button; wherein,

[0057] The provision that the power off button for switching the target remote control electronic device from the power-on state to the power-off state is displayed on the control interface of the target remote control electronic device includes: displaying a left sliding button for switching the target remote control electronic device from the power-on state to the power-off state on the control interface of the target remote control electronic device;

[0058] The provision that the control interface of the target remote-controlled electronic device displays a power button for switching the target remote-controlled electronic device from the standby state or power-off state to the power-on state includes: displaying a right-slide button on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the standby state or power-off state to the power-on state.

[0059] The control event input button for switching the target remote-controlled electronic device from different real-time states to the reverse state can be multiple independent virtual control buttons, or a single virtual control button providing multiple independent control states. In this embodiment, the control event input button is a sliding button. The power-off button for switching the target remote-controlled electronic device from the power-on state to the power-off state, and the power-on button for switching the target remote-controlled electronic device from the standby state or power-off state to the power-on state, respectively refer to the left and right sliding buttons located at opposite ends of the sliding button to provide different control states.

[0060] In the above embodiments, the control event input button is a sliding button. The sliding button is configured as a left sliding button or a right sliding button depending on the different real-time states of the target remote-controlled electronic device. The user can control the target remote-controlled electronic device to switch to the opposite state to the current real-time state by clicking the sliding button of the sliding button to slide left or right.

[0061] Optionally, the remote control electronic device control method further includes:

[0062] The system acquires the control command obtained from the touch operation of the control event input button, and issues a remote control code to control the target remote control electronic device to switch to the reverse state according to the control command.

[0063] Users can directly click the control event input button on the control interface of the target remote control electronic device. The terminal device detects the touch operation on the control event input button and obtains the control command to switch the target remote control electronic device from the current state to the reverse state. The terminal device then sends the remote control code matching the control command to the target remote control electronic device, and the target remote control electronic device executes the corresponding action after receiving the remote control code. The remote control codes correspond to different control events that control the remote-controlled electronic device to perform different actions. In one optional specific example, if the real-time state is "on", the control event input button is the "off" button that controls the target remote-controlled electronic device to switch from the "on" state to the "off" state. The terminal device sends a "off" remote control code to the target remote-controlled electronic device to switch to the "off" state based on the control command obtained from the touch operation of the "off" button. If the real-time state is "standby", the control event input button is the "on" button that controls the target remote-controlled electronic device to switch from the "standby" state to the "on" state. The terminal device sends a "on" remote control code to the target remote-controlled electronic device to switch it from the "standby" state to the "on" state based on the control command obtained from the touch operation of the "on" button. If the real-time state is "power off", the control event input button is the "on" button that controls the target remote-controlled electronic device to switch from the "power off" state to the "on" state. The terminal device controls the target on / off device to close and sends a "on" remote control code to the target remote-controlled electronic device to switch it to the "on" state based on the control command obtained from the touch operation of the "on" button.

[0064] The terminal device can use the first identity information of the target remote-controlled electronic device as an index to retrieve a remote control file matching the target remote-controlled electronic device from the cloud and store it in accordance with the first identity information of the target remote-controlled electronic device. The remote control file contains remote control codes corresponding to control events used to control the remote-controlled electronic device to perform different actions. When the terminal device obtains a control command to switch the target remote-controlled electronic device to a specified state based on the user's touch operation of the control event input button, it can find the remote control code corresponding to the execution action of switching the target remote-controlled electronic device to the specified state from the matching remote control file, and send the remote control code to realize the control of switching the target remote-controlled electronic device to the specified state.

[0065] In the above embodiments, the terminal device obtains the real-time status of the target remote-controlled electronic device, displays a control event input button in the control interface to switch it from the real-time status to the specified status, and sends a remote control code to the target remote-controlled electronic device according to the user's touch operation on the control event input button, so as to accurately control the remote-controlled electronic device to switch to the specified status.

[0066] In some embodiments, obtaining the control command obtained from the touch operation of the control event input key, and issuing a remote control code to control the target remote-controlled electronic device to switch to the reverse state according to the control command, includes:

[0067] When the real-time state is powered on, a power-off command is obtained based on the touch operation of the control event input button, and a remote control code is sent to control the target remote-controlled electronic device to switch to the power-off state based on the power-off command;

[0068] When the real-time state is in a power-off state or a standby state, a power-on command is obtained based on the touch operation of the control event input button, and a remote control code is issued to control the target remote-controlled electronic device to switch to the power-on state based on the power-on command.

[0069] The remote control codes correspond to control events that control the remote-controlled electronic device to perform different actions. The terminal device can use the first identity information of the target remote-controlled electronic device as an index to retrieve a remote control file matching the target remote-controlled electronic device from the cloud and store it in accordance with the first identity information of the target remote-controlled electronic device. The remote control file contains remote control codes corresponding to control events used to control the remote-controlled electronic device to perform different actions. In an optional specific example, if the real-time state is power-on, the control event input button is the power-off button that controls the target remote-controlled electronic device to switch from power-on to power-off. The terminal device, based on the power-off command obtained from touching the power-off button, sends a remote control code to the target remote-controlled electronic device to switch to the power-off state. If the real-time state is power-off or standby, the control event input button is the power-on button that controls the target remote-controlled electronic device to switch to power-on. The terminal device, based on the power-on command obtained from touching the power-on button, sends a remote control code to the target remote-controlled electronic device to switch it from standby to power-on, or controls the target on / off device to close and sends a remote control code to switch it to power-on.

[0070] In the above embodiments, the terminal device, according to the user's control command to switch the target remote-controlled electronic device to a specified state, uses the remote control code corresponding to the execution action of controlling the target remote-controlled electronic device to switch to the specified state to accurately control the remote-controlled electronic device to switch to the specified state, thereby ensuring the effective execution of the control command and improving the accuracy of intelligent control of the target remote-controlled electronic device.

[0071] In some embodiments, the remote control electronic device control method further includes:

[0072] The real-time status of the target remote-controlled electronic device is displayed on the control interface of the target remote-controlled electronic device; and / or,

[0073] Based on the status parameter values ​​of the target on / off device obtained by the gateway device according to the association relationship, the specified status parameter values ​​of the target remote control electronic device are displayed on the control interface of the target remote control electronic device; and / or,

[0074] Based on the real-time status and specified status parameters of the target remote-controlled electronic device, and when the preset automated control conditions are met, the target remote-controlled electronic device is controlled to perform corresponding actions.

[0075] The terminal device establishes an association between the target remote control electronic device and the target on / off device based on the binding operation performed by the user. This association is then sent to the gateway device. The gateway device obtains the specified status parameter value of the target on / off device based on the association to determine the real-time status of the target remote control electronic device. Thus, the real-time operating status of the remote control electronic device can be determined based on the association between the remote control electronic device and the on / off device and the collected specified status parameter of the on / off device. The terminal device displays the real-time status of the target remote control electronic device on the control interface of the target remote control electronic device, allowing the user to switch the operating status of the target remote control electronic device while knowing its actual status.

[0076] The gateway device obtains the specified status parameter values ​​of the target on / off device based on the association relationship and sends them to the terminal device. The terminal device then displays these specified status parameter values ​​on the control interface of the target remote-controlled electronic device. Thus, based on the association relationship between the remote-controlled electronic device and the on / off device, the specified status parameter values ​​of the remote-controlled electronic device can be determined. The terminal device displays these specified status parameter values ​​on the control interface of the target remote-controlled electronic device so that the user can be aware of changes in these parameters. Specified status parameters may include power consumption, electricity usage, etc. Accordingly, the terminal device may display monthly electricity consumption, weekly electricity consumption, and current power values ​​on the control interface of the target remote-controlled electronic device, allowing the user to be aware of changes in these parameters.

[0077] Users can configure automated state switching events for target remote-controlled electronic devices via terminal devices. These automated state switching events can be configured to control the target remote-controlled electronic device to perform corresponding actions when the real-time state and specified state parameters of the target remote-controlled electronic device meet preset automated control conditions. For example, when the target remote-controlled electronic device is in the power-on state and its power is higher than a preset power threshold, the target remote-controlled electronic device can be controlled to switch to standby mode; when the target remote-controlled electronic device is in standby mode and its power changes abnormally, the target remote-controlled electronic device can be controlled to switch to the power-off state.

[0078] In the above embodiments, the terminal device can establish an association between the target switching device and the target remote control electronic device based on the binding operation performed by the user to bind the remote control electronic device and the switching device. Then, the gateway device can determine the real-time working status of the remote control electronic device and the real-time changes of the specified status parameter values ​​of the remote control electronic device based on the association and the collected status parameters of the switching device. This allows the user to know the accurate working status of the remote control electronic device and the changes in the working status parameters.

[0079] Optionally, the specified status parameters include power parameters and power consumption parameters; displaying the specified status parameter values ​​of the target remote-controlled electronic device on the control interface of the target remote-controlled electronic device includes:

[0080] The control interface of the target remote-controlled electronic device displays the cumulative power consumption in the first setting period, the cumulative power consumption in the second setting period, and the current power.

[0081] The first and second setting periods refer to preset time periods. The first and second setting periods can be set by the user according to the needs of the actual application scenario; for example, the first setting period can be monthly, and the second setting period can be daily. Optionally, the first and second setting periods can also refer to default time periods, such as the first setting period defaulting to quarterly, and the second setting period defaulting to monthly. Specified status parameters include power consumption parameters. The terminal device obtains the power consumption of the target remote-controlled electronic device detected by the on / off device through the gateway device, and performs statistics according to the first and second setting periods. The cumulative power consumption within the first setting period and the cumulative power consumption within the second setting period are displayed on the control interface of the target remote-controlled electronic device, allowing the user to understand the power consumption of the target remote-controlled electronic device in real time. Specified status parameters also include power parameters. The terminal device obtains the power value of the target remote-controlled electronic device detected by the on / off device through the gateway device, and displays the current power on the control interface of the target remote-controlled electronic device. By detecting the power value of the target remote-controlled electronic device, the user can determine the real-time status of the target remote-controlled electronic device, and it is also convenient for the user to set the automatic control conditions of the target remote-controlled electronic device based on the power value or changes in the power value. It should be noted that the specified status parameters may also include other parameters that can be detected by the on / off device, not limited to power parameters and electricity consumption parameters.

[0082] In the above embodiments, the terminal device obtains the power consumption parameters and power parameters of the target remote-controlled electronic device detected by the on / off device through the gateway device, and displays the power consumption and power on the control interface of the target remote-controlled electronic device so that the user can accurately know more about the working status and execution status of the target remote-controlled electronic device, and thus realize a more intelligent control experience for the target remote-controlled electronic device.

[0083] In some embodiments, step S101, based on the binding operation of binding the target remote control electronic device to the target on / off device, establishes an association between the target on / off device and the target remote control electronic device, including:

[0084] S1011, Obtain the first add command for adding a remote-controlled electronic device.

[0085] The terminal device has a client application installed with the application for implementing the remote control electronic device control method of this application. The application's display interface provides a "Device Add" button for adding a remote-controlled electronic device. After opening the application, the user clicks the "Device Add" button, and the terminal device, upon detecting this click, obtains a first add command for adding the remote-controlled electronic device. Optionally, the terminal device may obtain the first add command for adding the remote-controlled electronic device by triggering a gesture interaction mode based on a specified display interface of the application. When a specific gesture command is detected in the gesture interaction mode, the first add command for adding the remote-controlled electronic device is obtained. Optionally, the terminal device may also obtain the first add command for adding the remote-controlled electronic device by triggering a voice mode based on a specified display interface of the application. When a specific voice command is received in the voice mode, the first add command for adding the remote-controlled electronic device is obtained.

[0086] S1012, based on the first add instruction, obtain the first identity information of the target remote control electronic device, and obtain a matching remote control file corresponding to the first identity information of the target remote control electronic device and save it.

[0087] The primary identification information of the target remote-controlled electronic device refers to relevant information that uniquely identifies the target remote-controlled electronic device. This information can be a combination of one or more of the following: name, identifier, model, code, location, etc. Optionally, after receiving the first add instruction to add the remote-controlled electronic device, the terminal device can switch to an input interface for the primary identification information of the remote-controlled electronic device, allowing the user to input this information. Based on the acquired primary identification information, the terminal device searches for a matching remote control file in the cloud and saves the file corresponding to the target remote-controlled electronic device. The remote control file contains remote control codes corresponding to various actions performed by the target remote-controlled electronic device. For example, if the target remote-controlled electronic device is an air conditioner, the remote control file might contain codes for controlling the air conditioner to turn on, turn it off, switch to cooling mode (first mode), switch to heating mode (second mode), gradually increase the temperature, and gradually decrease the temperature.

[0088] S1013, obtain the second add instruction for the associated on / off device of the target remote control electronic device.

[0089] The terminal device obtains the second add command for the associated on / off device of the target remote-controlled electronic device, which can be obtained based on the settings interface for configuring the target remote-controlled electronic device. Optionally, the terminal device has a client application for implementing the remote-controlled electronic device control method of this application installed. The application can provide a settings page for configuring the added remote-controlled electronic device. The settings page of the remote-controlled electronic device can provide a binding device button for setting the corresponding associated on / off device. The user can switch to the settings page of the target remote-controlled electronic device by opening the application and clicking on the target remote-controlled electronic device to be configured. Clicking the binding device button on the settings page will cause the terminal device to detect the click operation and obtain the second add command for adding the associated on / off device. Optionally, the terminal device can also obtain the second add command for adding the associated on / off device by triggering a gesture interaction mode based on a specified display interface of the application. When a specific gesture command is detected in the gesture interaction mode, the second add command for adding the associated on / off device is obtained. Optionally, the terminal device can also obtain the second add command for adding the remote-controlled electronic device by triggering a voice mode based on a specified display interface of the application. When a specific voice command is received in the voice mode, the second add command for adding the associated on / off device is obtained.

[0090] S1014, based on the second add instruction, obtain the second identity information and associated status parameters of the target on / off device, and establish an association between the target on / off device and the target remote control electronic device.

[0091] The second identity information of the target on / off device refers to relevant information that can uniquely identify the target on / off device. It can be a combination of one or more of the following: name, identifier, model, code, location, etc. Optionally, after receiving a second add instruction to add an on / off device associated with the target remote-controlled electronic device, the terminal device can switch to the configuration page for associated on / off devices. On the configuration page, the user can input the second identity information and association status parameters of the target on / off device. Based on the obtained second identity information and association status parameters of the target on / off device, the terminal device establishes an association between the target on / off device and the target remote-controlled electronic device.

[0092] In the above embodiments, before binding the remote control electronic device to the on / off device, a new remote control electronic device can be added through the terminal device. After adding the remote control electronic device, it can be bound to the on / off device that can detect specified status parameters. In this way, the terminal device can associate the configuration operation of adding the remote control electronic device with the configuration operation of binding the on / off device to the remote control electronic device through the client of the application, which can simplify the operation.

[0093] In some embodiments, obtaining the first addition instruction for adding a remote-controlled electronic device includes:

[0094] Based on the touch operation of the "Add Remote Electronic Device" button on the remote electronic device configuration page, the first "Add Remote Electronic Device" command is obtained.

[0095] The terminal device obtains the first add command for the remote-controlled electronic device based on the add button on the remote-controlled electronic device configuration page. The remote-controlled electronic device configuration page can be the homepage of the application on the terminal device used to implement the remote-controlled electronic device control method, or a page accessed via a link provided on the homepage. The user opens the application for the remote-controlled electronic device control method and enters the configuration page, then clicks the add button on the remote-controlled electronic device configuration page. The terminal device detects the touch operation of clicking the add button and obtains the first add command for the remote-controlled electronic device.

[0096] In the above embodiments, the terminal device provides a remote control electronic device configuration page. By forming a remote control electronic device add button on the remote control electronic device configuration page, users can add IoT systems that they want to join the home system or remote control electronic devices whose real-time status needs to be accurately known by clicking the remote control electronic device add button. The operation is simple and quick, and it is convenient for users to quickly and accurately obtain the actual status of the remote control electronic devices they are interested in when controlling them through the terminal device's application client, thereby improving the intelligent control experience of the remote control electronic devices.

[0097] In some embodiments, obtaining the first identity information of the target remote control electronic device based on the first addition instruction, and obtaining and saving a matching remote control file corresponding to the first identity information of the target remote control electronic device according to the first identity information, includes:

[0098] Based on the first add instruction, candidate remote control electronic devices are displayed in the interface, and the first identity information of the target remote control electronic device is obtained according to the selection operation of the candidate remote control electronic device;

[0099] Obtain the matching remote control file based on the first identity information;

[0100] Switch to the remote control code verification page based on the remote control code contained in the remote control file;

[0101] If the remote control code is successfully verified on the remote control code verification page, the remote control file is saved in correspondence with the first identity information of the target remote control electronic device.

[0102] The candidate remote-controlled electronic device can refer to a remote-controlled electronic device that has been added to the Internet of Things (IoT) system but has not yet been configured with an associated on / off device. The terminal device displays the candidate remote-controlled electronic devices on the interface according to the first add command. These devices can be displayed as icons, and users can directly click the icon corresponding to the remote-controlled electronic device they wish to configure to select it. The terminal device directly obtains the first identity information of the target remote-controlled electronic device based on the user's selection. By providing the candidate remote-controlled electronic devices on the interface, users can quickly and accurately input the first identity information of the target remote-controlled electronic device, simplifying user operations.

[0103] In another optional embodiment, the candidate remote control electronic device can refer to a remote control electronic device that is currently joined to the Internet of Things (IoT) system and has been configured with an associated on / off device. When the target remote control electronic device is a remote control electronic device that is currently joined to the IoT system and has been configured with an associated on / off device, the associated on / off device is updated according to the binding operation of the target remote control electronic device.

[0104] The terminal device can retrieve a matching remote control file from a cloud or local preset database using the primary identity information of the remote control electronic device as an index. The remote control code verification page displays the remote control code used to control the target remote control electronic device to perform a specified action. The user can issue a verification command by clicking the remote control code on the verification page. The terminal device sends the verification command to the gateway device, which then controls the target remote control electronic device to perform the corresponding action based on the verification command. If the verification command issued by the terminal device successfully controls the target remote control electronic device to perform the corresponding action, the verification of the current remote control code is successful. The next remote control code verification page is then displayed, allowing the user to click the remote control code again to issue a verification command. If the verification command successfully controls the target remote control electronic device to perform the corresponding action, the verification of the current remote control code is successful, and the next remote control code verification page is displayed again, until all remote control codes contained in the remote control file have been verified. If all remote control codes in the remote control file are successfully verified, the remote control file is a matching remote control file for the target remote control electronic device, and the remote control file is saved accordingly to the target remote control electronic device.

[0105] In the above embodiments, the terminal device displays the candidate remote control electronic device on the interface, which allows users to easily select the remote control electronic device they want to configure directly on the interface to obtain the first identity information of the target remote control electronic device. The terminal device obtains the remote control file based on the first identity information of the target remote control electronic device, and generates a remote control code verification page based on the remote control code in the remote control file to verify it, so as to ensure that the remote control code matching the target remote control electronic device can be accurately obtained, thereby improving the accuracy of subsequent control of the target remote control electronic device based on the remote control code.

[0106] The remote control electronic device control method further includes:

[0107] If the remote control code verification fails on the remote control code verification page, the remote control file is retrieved again based on the first identity information of the target remote control electronic device, and the process returns to the step of switching to the remote control code verification page based on the remote control code contained in the remote control file.

[0108] Users can issue verification commands by clicking on the remote control codes on the remote control code verification page. If the verification command issued by the terminal device fails to control the target remote-controlled electronic device to perform the corresponding action, the terminal device will use the first identity information of the remote-controlled electronic device to search for and retrieve the matching remote control file from the cloud or a local preset database, using the first identity information of the remote-controlled electronic device as an index. The remote control codes in the re-retrieved remote control files will be displayed and verified on the remote control code verification page. The terminal device displays the remote control code verification page corresponding to the remote control code in the remote control file. The user clicks on the remote control code verification page to issue a verification command. If the verification command can successfully control the target remote-controlled electronic device to perform the corresponding action, it means that the verification of the current remote control code is successful, and the next remote control code verification page will be displayed, until all the remote control codes contained in the remote control file have been verified. If all remote control codes in the remote control file are successfully verified, it means that the remote control file is a matching remote control electronic device, and the remote control file is saved in correspondence with the target remote control electronic device. Otherwise, the matching remote control file is searched again from the cloud or local preset database using the first identity information of the remote control electronic device as the index. The remote control codes in the newly obtained remote control file are displayed and verified through the remote control code verification page until a remote control file matching the target remote control electronic device with all remote control codes successfully verified is obtained.

[0109] In the above embodiments, the terminal device obtains a matching remote control file based on the first identity information of the target remote control electronic device, generates a remote control code verification page based on the remote control code in the remote control file, and performs verification. If the remote control code verification fails, the remote control file is obtained again for verification until a remote control file matching the target remote control electronic device with all remote control codes is obtained, so as to ensure that the remote control code matching the target remote control electronic device can be accurately obtained, thereby improving the accuracy of subsequent control of the target remote control electronic device based on the remote control code.

[0110] Optionally, switching to the remote control code verification page based on the remote control code contained in the remote control file includes:

[0111] Switch to the remote control verification page corresponding to the first remote control code in the remote control file;

[0112] Based on the touch operation of the current remote control code on the remote control code verification page, a remote control code command is sent to the target remote control electronic device;

[0113] If no response information is received from the target remote control electronic device after receiving the remote control code instruction, the current remote control code verification fails.

[0114] When the target remote control electronic device receives the response information returned after receiving the remote control code instruction, the current remote control code is successfully verified. The system then switches to the remote control code verification page corresponding to the next remote control code and returns to the step of issuing a remote control code instruction to the target remote control electronic device based on the touch operation of the current remote control code on the remote control code verification page, until all remote control codes are verified.

[0115] After obtaining the remote control file, the terminal device generates a remote control verification page sequentially for each remote control code contained in the file. The user can click on a remote control code on the verification page. Based on the user's touch operation on the remote control code, the terminal device sends a remote control code command to the target remote control electronic device. Upon receiving the command, the target remote control electronic device executes the corresponding action. If the action is successful, a response indicating successful verification is returned. If the terminal device does not receive a response from the target remote control electronic device, the verification fails. The terminal device then retrieves a new remote control file from the cloud or a local pre-set database, using the target remote control electronic device's primary identity information as an index. It then generates a new verification page for each remote control code in the file. If the terminal device receives a response from the target remote control electronic device, the verification is successful, and the device switches to the next remote control code's verification page, repeating the verification process until all remote control codes are verified. If all remote control codes in the file are successfully verified, the file is a compatible remote control for the target remote control electronic device.

[0116] In the above embodiments, the terminal device obtains a matching remote control file based on the first identity information of the target remote control electronic device, and generates a remote control code verification page in sequence for each remote control code contained in the remote control file to verify whether each remote control code can correctly control the target remote control electronic device to perform the corresponding action, so as to ensure that the remote control code matching the target remote control electronic device can be accurately obtained, thereby improving the accuracy of subsequent control of the target remote control electronic device based on the remote control code.

[0117] In some embodiments, S1013, obtaining a second add instruction for the associated on / off device of the target remote-controlled electronic device, includes:

[0118] Based on the touch operation of the device button bound in the settings page of the target remote control electronic device, a second add command to add the on / off device is obtained.

[0119] After adding a remote-controlled electronic device, the terminal device can provide a settings page for configuring the target remote-controlled electronic device. The added remote-controlled electronic devices can be listed as icons. Users can click the icon of the remote-controlled electronic device they want to configure to enter its settings page. A device binding button can be set in the settings page. When the terminal device detects a user's touch operation on the device binding button in the settings page of the target remote-controlled electronic device, it receives a second add command to add an associated on / off device to the target remote-controlled electronic device.

[0120] In the above embodiments, the terminal device provides a configuration page for adding remote-controlled electronic devices through the client of the application. The configuration page of the remote-controlled electronic device can provide a binding device button for setting the corresponding on / off device. After opening the application, the user can click on the target remote-controlled electronic device to be configured to switch to the configuration page of the target remote-controlled electronic device. Clicking the binding device button on the configuration page completes the binding operation of binding the target remote-controlled electronic device with the target on / off device. This simplifies the binding steps of binding the remote-controlled electronic device with the on / off device and reduces the difficulty of the binding operation.

[0121] Optionally, step S1014, which involves obtaining the second identity information and associated status parameters of the target on / off device based on the second add instruction, establishing an association between the target on / off device and the target remote control electronic device, and sending the association to the gateway device, includes:

[0122] Based on the second add command, the user is switched to the binding device settings page, which displays selectable on / off devices;

[0123] Based on the selection operation of the optional switching device, the second identity information of the target switching device is obtained, and the user switches to the parameter setting page of the target switching device.

[0124] Based on the parameter setting page, obtain the associated status parameters of the target on / off device;

[0125] Establish an association between the target on / off device and the target remote control electronic device, and send the association to the gateway device.

[0126] Optional on / off devices refer to on / off devices that are currently added to the IoT system but have not yet been configured with associated remote-controlled electronic devices. The terminal device displays optional on / off devices on the binding device settings page according to the second add command. Optional on / off devices can be displayed using icons. Users can directly click the icon corresponding to the on / off device they want to bind to the target remote-controlled electronic device. The terminal device detects the user's selection of the on / off device and obtains the second identity information of the target on / off device. Associated status parameters can be pre-set based on the parameters required to determine the real-time status of the target remote-controlled electronic device. The parameter settings page of the target on / off device can have configuration options for associated status parameters. These configuration options can be in the form of drop-down menus, parameter input boxes, etc., allowing users to quickly complete the setting of associated status parameters by selecting or entering the corresponding parameter values ​​through the configuration options on the parameter settings page. Optionally, associated status parameters include maximum standby power and detection time. The maximum standby power is usually determined based on the power of the target remote-controlled electronic device in standby mode, and the detection time refers to the continuous time period of the power value used to determine the real-time status of the target remote-controlled electronic device. The terminal device establishes an association between the target on / off device and the target remote control electronic device based on the second identity information of the target on / off device, the first identity information of the target remote control electronic device, and the associated status parameters obtained from the user binding operation. The association is then sent to the gateway device. The user only needs to connect the power cord of the target remote control electronic device to the target on / off device to obtain the power status of the target remote control electronic device. The gateway device then obtains the power of the target on / off device based on the association and determines the real-time status of the target remote control electronic device based on the power of the target on / off device and the maximum standby power within the detection time.

[0127] In another optional embodiment, the optional on / off device may also refer to the on / off device of a remote-controlled electronic device that has been added to the Internet of Things system and configured to be associated with it. When the target on / off device is the on / off device of a remote-controlled electronic device that has been added to the Internet of Things system and configured to be associated with it, the on / off device associated with it is updated according to the binding operation of the target remote-controlled electronic device.

[0128] In the above embodiments, by displaying optional on / off devices on the interface, the terminal device allows users to easily obtain the second identity information of the target on / off device by directly selecting the on / off device they want to configure on the interface. In addition, the terminal device provides configuration options for associated status parameters through the parameter setting page of the target on / off device, which can guide the setting of associated status parameters and greatly reduce the difficulty of operation for users.

[0129] In some embodiments, obtaining the associated status parameters of the target on / off device based on the parameter setting page includes:

[0130] The parameter settings page displays preset status parameter configuration items;

[0131] Based on the configuration operation of the status parameter configuration item, the associated status parameters of the target on / off device are obtained.

[0132] Taking the associated status parameters, including maximum standby power and detection time, as an example, the parameter setting page has separate configuration items for maximum standby power and detection time. The maximum standby power configuration item can be in the form of a drop-down menu, allowing the user to click the drop-down menu and select a power option that matches the power value of the currently configured target remote-controlled electronic device in standby mode, thus completing the setting of the maximum standby power. The detection time configuration item can be in the form of a parameter input box, allowing the user to enter the desired time parameter value, thus completing the setting of the detection time. The terminal device obtains the associated status parameters of the target on / off device based on the configuration operations performed by the user based on the preset status parameter configuration items in the parameter setting page.

[0133] In the above embodiments, the terminal device provides a parameter setting page through the application client, and displays the associated status parameters to be set in the form of preset status parameter configuration items in the parameter setting page, which can simplify the user's configuration operation of associated status parameters.

[0134] In other embodiments, obtaining the associated status parameters of the target on / off device based on the parameter setting page includes:

[0135] The parameter setting page displays a confirmation instruction to place the target remote-controlled electronic device in a preset state;

[0136] Based on the confirmation operation of the confirmation instruction information, the specified status parameter value of the target remote control electronic device in the preset state within a preset time period is obtained;

[0137] The associated status parameters of the target switching device are obtained based on the specified status parameter value.

[0138] Taking the associated status parameters, including maximum standby power and detection time, as an example, maximum standby power refers to the power value when the target remote-controlled electronic device is in standby mode. Correspondingly, setting the target remote-controlled electronic device to a preset state means setting it to standby mode. The parameter setting page displays a confirmation instruction for setting the target remote-controlled electronic device to a preset state, guiding the user to confirm whether the target remote-controlled electronic device is currently in standby mode, or to switch it to standby mode if it is not in standby mode. If the user confirms that the target remote-controlled electronic device is currently in standby mode, the user can confirm the confirmation instruction. Based on the user's confirmation, the terminal device obtains the specified status parameter value of the target remote-controlled electronic device in the preset state within a preset time period. Based on the specified status parameter value, the associated status parameters of the target on / off device are obtained. The preset time period can be determined based on the detection time in the associated status parameters. Optionally, the preset time period can be greater than or equal to the detection time set in the associated status parameters. The specified status parameter value refers to the power value. By collecting the power value of the target remote-controlled electronic device in standby mode within the preset time period, the maximum standby power of the target remote-controlled electronic device can be determined.

[0139] In the above embodiments, the terminal device provides a parameter setting page through the client of the application. After the target remote-controlled electronic device is placed in standby mode under the guidance of the parameter setting page, the terminal device can autonomously detect the power value of the target remote-controlled electronic device within a preset time period so that the terminal device can intelligently determine the maximum standby power of the target remote-controlled electronic device. This not only improves the accuracy of the associated status parameters, but also simplifies the user's configuration operation of the associated status parameters.

[0140] Please see Figure 4 In another aspect, this application also provides a remote control electronic device control method applied to a gateway device, including:

[0141] S201, Obtain the association between the target remote control electronic device and the target on / off device sent by the terminal device.

[0142] User configuration of the smart home system can include binding remote-controlled electronic devices and on / off devices. The terminal device establishes an association between the target remote-controlled electronic device and the target on / off device based on the user's binding operation, and sends this association to the gateway device. The gateway device receives the association between the target remote-controlled electronic device and the target on / off device sent by the terminal device, stores the association locally, and reports it to the cloud.

[0143] S203, obtain the specified state parameter value of the target on / off device according to the association relationship, and determine the resource attribute information of the target remote control electronic device according to the state parameter value; the resource attribute information includes at least one of the following: current status, power, and power consumption.

[0144] The gateway device obtains the specified status parameter value of the target on / off device according to the association relationship, and generates resource attribute information for the target remote-controlled electronic device based on the specified status parameter value, which represents the working state or changes in the working state parameters of the target remote-controlled electronic device. Optionally, the resource attribute information generated by the gateway device for the target remote-controlled electronic device includes the current state, power, and power consumption of the target remote-controlled electronic device. The current state can refer to the power-on state, standby state, or power-off state of the target remote-controlled electronic device. The gateway device generates and maintains resource attribute information including the current state, power, and power consumption for the target remote-controlled electronic device by obtaining the specified status parameter value of the target on / off device according to the association relationship.

[0145] S205, determine the real-time status of the target remote-controlled electronic device based on the resource attribute information and send it to the terminal device.

[0146] The gateway device generates and maintains resource attribute information for the target remote-controlled electronic device, including its current status, power, and power consumption, based on the specified status parameter values ​​detected by the target on / off device. It then determines the real-time status of the target remote-controlled electronic device based on this resource attribute information and reports it to the cloud. The terminal device retrieves the real-time status of the target remote-controlled electronic device determined by the gateway device from the cloud. The terminal device can then display control buttons on the control page to switch the target remote-controlled electronic device to the reverse state, based on its current real-time status.

[0147] In the above embodiments, the gateway device acquires the association relationship between the remote-controlled electronic device and the switching device sent by the terminal device. Based on the association relationship and the specified status parameters of the switching device collected, it establishes and maintains resource attribute information containing parameters that can characterize the working state of the target remote-controlled electronic device and the changes in the working state parameters. The real-time status of the target remote-controlled electronic device is reported to the cloud so that the user can obtain the real-time working status of the target remote-controlled electronic device from the cloud. This allows the user to know the accurate working status of the remote-controlled electronic device and accurately control the target remote-controlled electronic device to switch from the real-time state to other specified states, thereby improving the accuracy of intelligent control of the target remote-controlled electronic device.

[0148] Optionally, step S203, obtaining a specified state parameter value of the target on / off device according to the association relationship, and determining the resource attribute information of the target remote-controlled electronic device according to the state parameter value, includes:

[0149] Based on the aforementioned correlation, obtain the on / off state parameters and power parameters of the target on / off device;

[0150] When the target switching device is in the off state, the real-time state of the target remote control electronic device is determined to be the power-off state.

[0151] When the target switching device is in the open state and the power of the target switching device is less than the set standby power within a set detection time, the real-time state of the target remote control electronic device is determined to be the standby state.

[0152] If the target switching device is in the open state and the power of the target switching device is greater than the set standby power within a set detection time, the real-time state of the target remote control electronic device is determined to be the power-on state.

[0153] The gateway device obtains the on / off status parameters of the target remote-controlled electronic device based on the association between the target remote-controlled electronic device and the target on / off device. This information can be used to assist in determining the status of the target remote-controlled electronic device. If the on / off device is in the off state, the power value detected by the target remote-controlled electronic device alone cannot accurately distinguish whether the target remote-controlled electronic device is in standby or power-off state. By combining the on / off status parameters of the target remote-controlled electronic device for auxiliary judgment, it is possible to distinguish whether the target remote-controlled electronic device is in standby or power-off state, thus improving the accuracy of controlling the target remote-controlled electronic device to switch from the current real-time state to a specified state. If the gateway device determines that the target remote-controlled electronic device is in the off state based on the on / off status parameters, the real-time state of the target remote-controlled electronic device is determined to be power-off. If the gateway device determines that the target remote-controlled electronic device is in the on state based on the on / off status parameters, and the power of the target remote-controlled electronic device is less than the set standby power within a set detection time, the real-time state of the target remote-controlled electronic device is determined to be standby. If the power of the target remote-controlled electronic device is greater than the set standby power within the set detection time, the real-time state of the target remote-controlled electronic device is determined to be power-on. The power value within the set detection time can refer to the average power of the target on / off device within the set detection time. By making a judgment based on the power within the set detection time and the set standby power, it is possible to avoid misjudgment caused by instantaneous power changes, which is beneficial to improving the accuracy of judging the real-time status of the target remote-controlled electronic device.

[0154] In the above embodiments, the gateway device combines the on / off status parameters and power parameters of the target on / off device to determine the real-time status of the target remote-controlled electronic device. This allows for a more accurate distinction between the standby, power-off, and power-on states of the target remote-controlled electronic device, making it easier for users to know the accurate operating status of the remote-controlled electronic device. This enables the device to be accurately controlled to switch from the real-time state to other specified states, thereby improving the accuracy of intelligent control of the target remote-controlled electronic device.

[0155] Optionally, the remote control electronic device control method further includes:

[0156] Obtain the remote control code sent by the terminal device to switch the target remote-controlled electronic device to the power-on state;

[0157] If it is determined that the target switching device is in the closed state, an opening command is sent to the target switching device to control the target switching device to open;

[0158] If it is determined that the target on / off device is in the open state, determine whether the current state of the target remote control electronic device is the power-on state;

[0159] If the target remote-controlled electronic device is not currently powered on, a remote control code is sent to the target remote-controlled electronic device to control it to switch to the powered-on state, and the target remote-controlled electronic device is controlled to switch to the powered-on state through the remote control code;

[0160] If the target remote control electronic device is currently powered on, the remote control code is ignored when sending it to the target remote control electronic device.

[0161] The remote control codes correspond to different control events that control the remote-controlled electronic device to perform different actions. The terminal device can use the target remote-controlled electronic device's primary identification information as an index to retrieve a matching remote control file from the cloud and store it accordingly. The remote control file contains remote control codes corresponding to the control events used to control the remote-controlled electronic device to perform different actions. When the terminal device receives a control command to switch the target remote-controlled electronic device to a specified state based on the user's touch operation of the control event input button, it can find the remote control code corresponding to the action in the matching remote control file and send the remote control code to control the target remote-controlled electronic device to switch to the specified state. If the gateway device receives a remote control code to switch the target remote-controlled electronic device to the power-on state, it first determines the on / off state of the target on / off device. If the target on / off device is in the off state, it first sends an on command to the target on / off device to control it to open. If the target on / off device is in the on state, it means that the target remote-controlled electronic device is currently connected to power. Then it determines whether the target remote-controlled electronic device is in the power-on state. If the target remote-controlled electronic device is not in the power-on state, it sends the remote control code to switch the target remote-controlled electronic device to the power-on state. Otherwise, it does not send the remote control code to the target remote-controlled electronic device.

[0162] In the above embodiments, the terminal device sends a remote control code to control the target remote control electronic device to switch to the power-on state according to the user's control command to switch the target remote control electronic device to the power-on state. The gateway device first controls the target on / off device to be in the open state according to the on / off state of the target on / off device to ensure that the target remote control electronic device is connected to the power supply, and then sends the corresponding remote control code to the target remote control electronic device to control it to switch to the power-on state, so as to ensure that the target remote control electronic device can accurately switch to the power-on state.

[0163] Optionally, if the target remote-controlled electronic device is not currently powered on, sending a remote control code to the target remote-controlled electronic device to control it to switch to the powered-on state, and controlling the target remote-controlled electronic device to switch to the powered-on state via the remote control code, includes:

[0164] If the target remote control electronic device is not currently powered on, a remote control code is sent to the target remote control electronic device to control it to switch to the powered-on state;

[0165] Obtain the specified status parameter value of the target on / off device, and determine whether the target remote control electronic device has been switched to the power-on state based on the status parameter value;

[0166] If the target remote-controlled electronic device has switched to the power-on state, modify the current state in the resource attribute information of the target remote-controlled electronic device to the power-on state and report it to the cloud, which then sends it to the terminal device.

[0167] If the target remote-controlled electronic device does not switch to the power-on state, a power-on failure message is reported to the cloud, which then sends it to the terminal device.

[0168] The gateway device receives the remote control code to switch the target remote-controlled electronic device to the power-on state. First, it determines the on / off status of the target on / off device. If the target on / off device is off, it sends an on command to open it, ensuring the target remote-controlled electronic device is connected to power. Then, it checks if the target remote-controlled electronic device is already powered on. If it is not powered on, it sends the remote control code to switch it to the power-on state. The gateway device detects the specified status parameter value of the target remote-controlled electronic device through the on / off device. Based on this value, it determines whether the target remote-controlled electronic device has successfully entered the power-on state. If it confirms successful power-on, it updates the current status of the target remote-controlled electronic device's resource attributes to power-on and reports it to the cloud. If it confirms unsuccessful power-on, it reports a power-on failure.

[0169] In the above embodiments, the user sends a control command to the target remote-controlled electronic device to switch it to the power-on state through the control page of the target remote-controlled electronic device provided by the application client. After the gateway device issues a remote control code to switch the target remote-controlled electronic device to the power-on state according to the control command, it further detects the specified status parameter value of the target remote-controlled electronic device through the on / off device to determine whether the target remote-controlled electronic device has successfully executed the power-on state, so as to ensure the accuracy of the real-time status of the target remote-controlled electronic device and avoid the problem of inaccurate real-time status recognition of the target remote-controlled electronic device due to some uncertain external factors.

[0170] To gain a more comprehensive understanding of the remote control electronic device control method provided in this application, please refer to [link / reference needed]. Figures 5 to 9 The following example illustrates the control method of the remote-controlled electronic device, using infrared home appliances, a switching device, and a specified state parameter as the power parameter.

[0171] like Figure 6 As shown, adding infrared home devices to the IoT system of a smart home system includes:

[0172] S111, based on the click operation of the device add button, obtain the device add instruction, and switch to the display interface of the candidate infrared home devices according to the device add instruction; in an optional specific example, the device add button can be set on the add remote control electronic device details page of the application client, the terminal device detects the user's click operation of the device add button, and enters the display interface showing the candidate infrared home devices.

[0173] S112, Obtain the selection command for the type of infrared home device to be selected; The display interface of the infrared home device to be selected can display icons of different types of infrared home devices. The user can select the icon of the type of infrared home device that he / she wants to configure on the display interface. The terminal device obtains the selection command for the infrared home device type according to the user's selection operation and enters the display interface of the corresponding infrared home device type.

[0174] S113: Obtain the selection instruction for the brand of the infrared home appliance to be selected. Based on the user's selection instruction for the type of infrared home appliance and the selection instruction for the brand of the infrared home appliance to be selected, determine the identity information of the target infrared home appliance. The display interface of the corresponding infrared home appliance type can display icons of infrared home appliances of different brands under that type. The user can select the icon of the brand of infrared home appliance to be configured in the display interface of the corresponding infrared home appliance type. The terminal device obtains the selection instruction for the brand of infrared home appliance based on the user's selection operation.

[0175] S114, Obtain the remote control file based on the identity information of the target infrared home device;

[0176] S115, Generate remote control code verification pages according to the remote control codes in the remote control file, send verification commands to the target infrared home device based on the remote control code verification pages, and determine whether the remote control file matches based on whether the verification commands successfully control the target infrared home device to perform the corresponding actions.

[0177] S116, If the matching fails, the remote control file will be retrieved again based on the identity information of the target infrared home device, and the process will return to S115;

[0178] S117. If the matching is successful, save the remote control file corresponding to the target infrared home device.

[0179] In the implementation scheme for adding infrared home appliances, these appliances are added by matching infrared remote control files. To add an infrared home appliance, the user first selects the category and then the brand. After the terminal device requests a matching remote control file from the cloud, it prompts the user to perform remote control code matching. The matching logic can be as follows: iterate through the matching remote control files, the user clicks on the remote control code verification page generated from the remote control codes in the file, and sends infrared commands. When all remote control code commands can correctly control the infrared home appliance, the matching is successful and complete. If any remote control code in the file cannot control the infrared home appliance, it indicates that the remote control file is incompatible with the infrared appliance. Then, the next remote control file is selected, and all remote control codes in that file are re-matched.

[0180] like Figure 7 As shown, the added infrared home devices are bound to the associated on / off devices, including:

[0181] S121, based on the click operation of the binding device button on the configuration page of the infrared home device, obtain the add instruction for adding on / off device, and switch to the display interface of selectable on / off device according to the add instruction for on / off device;

[0182] S122, obtain a selection instruction for the optional switching device, obtain the identity information of the target switching device according to the selection instruction, and switch to the parameter setting page of the target switching device;

[0183] S123, Obtain the associated status parameters based on the configuration options of the preset associated status parameters in the parameter setting page. The associated status parameters include the maximum standby power and the detection time.

[0184] S124, establish an association relationship based on the identity information of the infrared home device, the identity information of the target on / off device, and the associated status parameters, and send the association relationship to the gateway device.

[0185] After adding an infrared home appliance, bind it to a power-detecting device, such as a switch / socket, and input the maximum standby power and detection time (default 5s). The system can distinguish between standby and on states based on the maximum standby power of the infrared appliance. Specifically, the system determines the state as follows: if the switch / socket is off, the infrared appliance is considered to be in a power-off state; if the switch / socket is on and the power remains less than or equal to the maximum standby power for the detection time, the infrared appliance is considered to be in standby mode; otherwise, the infrared appliance is considered to be on state. Users only need to connect the power cord of the infrared appliance to the switch / socket to obtain the power status of the infrared appliance.

[0186] The gateway device obtains specified status parameters of the target on / off device based on association relationships to generate and maintain resource attribute information of the infrared home appliance, including on / off status, power, and power consumption. Please refer to [link to relevant documentation]. Figure 8 The terminal device interacts with the gateway device to obtain resource attribute information of the infrared home appliance, displays its real-time status and other information on the control interface of the infrared home appliance, and provides control event input buttons through the control interface to switch the infrared home appliance from the real-time state to the reverse state, including:

[0187] S13, based on the specified status parameters of the infrared home device obtained by the gateway device based on the association relationship, display the real-time status of the infrared home device, the specified status parameter value, and the control event input button for switching the infrared home device from the real-time status to the reverse status on the control interface of the infrared home device; wherein, if the real-time status of the infrared home device is the on state, the control event input button can be a right sliding button with the sliding button on the left; if the real-time status of the infrared home device is the standby state or the power-off state, the control event input button can be a left sliding button with the sliding button on the right.

[0188] S14: Based on the real-time status and specified status parameters of the infrared home appliance, and after determining that the preset automation control conditions are met, control the infrared home appliance to perform corresponding actions.

[0189] In the above embodiments, after the infrared home device is successfully bound to a switch / socket, the gateway device generates a resource attribute for the infrared home device, including its on / off status, power, and power consumption. The gateway device determines the on / off status of the infrared home device based on the power reported by the switch / socket and reports it to the cloud. Once the infrared home device has these resource attributes, the terminal device can obtain this status from the cloud to display the power-on / off status, power, and power consumption of the infrared home device. The terminal device also provides a control button on the control interface to switch the infrared home device from its current real-time status to the reverse status. For example, if the real-time status is on, the terminal device's control interface displays a power-off control button to turn off the infrared home device. If the real-time status is power off or standby, the terminal device's control interface displays a power-on control button to turn on the infrared home device.

[0190] like Figure 9 As shown, users can issue control commands through the control event input buttons displayed on the control page of the infrared home appliance. The terminal device interacts with the gateway device to control the infrared home appliance to switch from the current state to a specified state. Taking the current state of the infrared home appliance as standby or power-off, and the control event input button as the power-on button, as an example, it includes:

[0191] S151, the terminal device sends a power-on command to the gateway device based on the trigger operation of the control event input button;

[0192] S152, the gateway device determines whether the infrared home appliance is in a power-off state; if yes, proceed to S153; if no, proceed to S155.

[0193] S153, The gateway device sends an open command to the target switching device to control the target switching device to open;

[0194] S154, Obtain the power value reported by the target switching device;

[0195] S155, the gateway device determines whether the infrared home appliance is turned on based on the power value; if yes, end; if no, proceed to S156.

[0196] S156, The gateway device sends an infrared power-on remote control code to the infrared home appliance;

[0197] S157, Obtain the power value reported by the target switching device;

[0198] S158, the gateway device determines whether the infrared home appliance is turned on based on the power value; if yes, proceed to S159; if no, proceed to S160.

[0199] S159, the gateway device modifies the current status of the infrared home appliance to the powered-on state and reports the successful power-on to the cloud, which then pushes the result to the terminal device;

[0200] S160: The gateway device reports a power-on failure to the cloud, and the cloud pushes the result to the terminal device.

[0201] When the terminal device's application client or an automated trigger sends a command to turn off the infrared home appliance, the gateway device determines the status of the infrared home appliance. If the infrared home appliance is in standby or power-off mode, no action is taken. If the infrared home appliance is on, a power-off remote code is sent to the infrared home appliance to switch it to standby mode. When the terminal device's application client or an automated trigger sends a command to turn on the infrared home appliance, the gateway device determines the current status of the infrared home appliance. If the infrared home appliance is in standby mode, a power-on remote code is sent to the infrared home appliance to turn it on. If the infrared home appliance is power-off, a command is first sent to the switch / socket to turn it on, and then the standby or on state of the infrared home appliance is determined based on the power consumption, and a command is sent according to the standby or on state. If the infrared home appliance is on, no action is taken.

[0202] The remote control electronic device control method provided in this application has at least the following characteristics:

[0203] First, it solves the problem that the status of remote-controlled electronic devices cannot be viewed through the application client of the terminal device;

[0204] Second, it solves the problem that traditional remote-controlled electronic devices cannot be accurately controlled to perform actions to a specified state through the client application of the terminal device;

[0205] Third, by accurately knowing the real-time status and specified status parameters of remote-controlled electronic devices, the automation conditions for automatic control of remote-controlled electronic devices can be configured, which can improve the intelligent experience of remote-controlled electronic devices and meet the needs of more application scenarios.

[0206] In another aspect of the embodiments of this application, please refer to Figure 10 Furthermore, a remote control electronic device control device is provided, applied to a terminal device, comprising: an association module 31, used to establish an association relationship between the target remote control electronic device and the target remote control electronic device based on a binding operation that binds the target remote control electronic device and the target on / off device; a sending module 32, used to send the association relationship to a gateway device; and a control module 33, used to obtain specified status parameters of the target on / off device based on the association relationship obtained by the gateway device, and display control event input buttons on the control interface of the target remote control electronic device for switching the target remote control electronic device from the real-time state to the reverse state based on the real-time state determined by the specified status parameters.

[0207] Specifically, the control module 33 is configured to display a power-off button on the control interface of the target remote-controlled electronic device when the real-time state is power-on, for switching the target remote-controlled electronic device from the power-on state to the power-off state; and to display a power-on button on the control interface of the target remote-controlled electronic device when the real-time state is standby or power-off, for switching the target remote-controlled electronic device from the standby or power-off state to the power-on state.

[0208] The control module 33 is further configured to display a left-sliding button on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the power-on state to the power-off state; and to display a right-sliding button on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the standby state or the power-off state to the power-on state.

[0209] The control module 33 is further configured to acquire control commands obtained from touch operations on the control event input buttons, and issue remote control codes to control the target remote-controlled electronic device to switch to the reverse state according to the control commands.

[0210] The control module 33 is further configured to, when the real-time state is the power-on state, obtain a power-off command based on the touch operation of the control event input button, and issue a remote control code to control the target remote-controlled electronic device to switch to the power-off state based on the power-off command; and when the real-time state is the power-off state or the standby state, obtain a power-on command based on the touch operation of the control event input button, and issue a remote control code to control the target remote-controlled electronic device to switch to the power-on state based on the power-on command.

[0211] The remote control electronic device control unit further includes a display module, used to display the real-time status of the target remote control electronic device on the control interface of the target remote control electronic device; and / or, based on the status parameter value of the target on / off device obtained by the gateway device based on the association relationship, to display a specified status parameter value of the target remote control electronic device on the control interface of the target remote control electronic device; and / or, based on the real-time status of the target remote control electronic device and the specified status parameter, to control the target remote control electronic device to perform corresponding actions when a preset automatic control condition is met.

[0212] The display module is also used to display the cumulative power consumption in the first setting period, the cumulative power consumption in the second setting period, and the current power on the control interface of the target remote-controlled electronic device.

[0213] Specifically, the association module 31 is used to: obtain a first add instruction for adding a remote-controlled electronic device; obtain first identity information of the target remote-controlled electronic device based on the first add instruction; obtain a matching remote control file corresponding to the first identity information of the target remote-controlled electronic device and save it accordingly; obtain a second add instruction for the associated on / off device of the target remote-controlled electronic device; obtain second identity information and status parameter information of the target on / off device based on the second add instruction; and establish an association relationship between the target on / off device and the target remote-controlled electronic device.

[0214] It should be noted that the remote control electronic device control device provided in the above embodiments, in the process of acquiring the real-time status of the remote control electronic device and controlling the remote control electronic device, is only illustrated by the division of the above-described program modules. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the remote control electronic device control device provided in the above embodiments and the remote control electronic device control method embodiments applied to the terminal device side belong to the same technical concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0215] In another aspect of the embodiments of this application, please refer to Figure 11 Furthermore, a remote control electronic device control apparatus is provided, applied to a gateway device, comprising: an acquisition module 41, used to acquire the association relationship between a target remote control electronic device and a target on / off device sent by a terminal device; a status module 42, used to acquire a specified status parameter value of the target on / off device according to the association relationship, and determine the resource attribute information of the target remote control electronic device according to the status parameter value; the resource attribute information includes at least one of the following: current status, power, and power consumption; and a determination module 43, used to determine the real-time status of the target remote control electronic device according to the resource attribute information and send it to the terminal device.

[0216] Specifically, the status module 42 is used to obtain the on / off status parameters and power parameters of the target on / off device according to the association relationship; when the target on / off device is in the off state, determine that the real-time status of the target remote control electronic device is in the power-off state; when the target on / off device is in the on state and the power of the target on / off device is less than the set standby power within a set detection time, determine that the real-time status of the target remote control electronic device is in the standby state; when the target on / off device is in the on state and the power of the target on / off device is greater than the set standby power within a set detection time, determine that the real-time status of the target remote control electronic device is in the power-on state.

[0217] The remote control electronic device control unit further includes an instruction module, used to acquire a remote control code sent by a terminal device to control the target remote control electronic device to switch to the power-on state; when it is determined that the target switching device is in the off state, send an activation instruction to the target switching device to control it to open; when it is determined that the target switching device is in the open state, determine whether the current state of the target remote control electronic device is power-on; if the target remote control electronic device is not currently power-on, send a remote control code to the target remote control electronic device to control it to switch to the power-on state, and control the target remote control electronic device to switch to the power-on state through the remote control code; if the target remote control electronic device is currently power-on, ignore sending the remote control code to the target remote control electronic device.

[0218] The instruction module is further configured to: if the target remote-controlled electronic device is not currently in a powered-on state, send a remote control code to the target remote-controlled electronic device to control it to switch to a powered-on state; obtain a specified status parameter value of the target on / off device, and determine whether the target remote-controlled electronic device has switched to the powered-on state based on the status parameter value; if the target remote-controlled electronic device has switched to the powered-on state, modify the current status in the resource attribute information of the target remote-controlled electronic device to the powered-on state and report it to the cloud, which then sends it to the terminal device; if the target remote-controlled electronic device has not switched to the powered-on state, report a power-on failure message to the cloud, which then sends it to the terminal device.

[0219] It should be noted that the remote control electronic device control device provided in the above embodiments, in the process of acquiring the real-time status of the remote control electronic device and controlling the remote control electronic device, is only illustrated by the division of the above-described program modules. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the method steps described above. In addition, the remote control electronic device control device provided in the above embodiments and the remote control electronic device control method embodiments applied to the gateway device side belong to the same technical concept, and the specific implementation process is detailed in the method embodiments, which will not be repeated here.

[0220] In another aspect of the embodiments of this application, please refer to Figure 12 Furthermore, a terminal device is provided, including a processor 211, a memory 212, and a computer program stored in the memory 212 and executable by the processor 211. When the computer program is executed by the processor 211, it implements the remote control electronic device control method provided in any embodiment of this application applied to the terminal device, and achieves the same technical effect. To avoid repetition, it will not be described again here. The terminal device may be a smartphone, a personal computer, etc.

[0221] Please see Figure 13 This is an optional hardware structure block diagram of the terminal device provided in the embodiments of this application. For example... Figure 13As shown, terminal devices can vary significantly due to differences in configuration or performance. They may include one or more Processing Units (CPUs) 1110 (processors 1110 may include, but are not limited to, microprocessors (MCUs) or programmable logic devices (FPGAs), a memory 1130 for storing data, and one or more storage media 1120 (e.g., one or more mass storage devices) for storing application programs 1123 or data 1122. The memory 1130 and storage media 1120 may be temporary or persistent storage. The program stored in the storage media 1120 may include one or more modules, each module including a series of instruction operations on a scene control panel. Furthermore, the processor 1110 may be configured to communicate with the storage media 1120 to execute a series of instruction operations stored in the storage media 1120 on the smart device. The smart device may also include one or more power supplies 1160, one or more wired or wireless network interfaces 1150, one or more input / output interfaces 1140, and / or one or more operating systems 1121, such as Windows Server™, MacOSX™, Unix™, Linux™, FreeBSD™, etc.

[0222] The input / output interface 1140 can be used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the smart device. In one example, the input / output interface 1140 includes a network interface controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the input / output interface 1140 may be a radio frequency (RF) module used for wireless communication with the Internet.

[0223] Those skilled in the art will understand that Figure 13 The structure shown is for illustrative purposes only and does not limit the structure of the terminal device described above. For example, the terminal device may also include components that are more... Figure 13 The more or fewer components shown, or having the same Figure 13 The different configurations shown.

[0224] In another aspect of the embodiments of this application, please refer to Figure 14The application also provides a gateway device, including a processor 111, a memory 112, and a computer program stored in the memory 112 and executable by the processor 111. When the computer program is executed by the processor 111, it implements the remote control electronic device control method provided in any embodiment of the application of this application for the gateway device, and can achieve the same technical effect. To avoid repetition, it will not be described again here.

[0225] In another aspect, this application provides a remote control electronic device control system, including a terminal device, a gateway device, a remote control electronic device, a switching device, and a cloud, as provided in this application embodiment. The remote control electronic device is an infrared remote control electronic device, and the switching device is a switch or a socket. The terminal device obtains the resource attribute information of the target remote control electronic device from the cloud, and displays a control event input button on the control interface of the target remote control electronic device to switch the target remote control electronic device from the real-time state to the reverse state, based on the real-time state determined by the resource attribute information. The user can operate the control event input button provided by the terminal device to issue a control command to switch the target remote control electronic device to a specified state. The terminal device interacts with the gateway device to accurately switch the target remote control electronic device to the specified state.

[0226] This application also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the above-described multi-mode configuration method embodiment for the intelligent control panel, achieving the same technical effects. To avoid repetition, it will not be described again here. The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0227] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for controlling a remote-controlled electronic device, applied to a terminal device, characterized in that, include: Based on the binding operation of binding the target remote control electronic device to the target on / off device, an association relationship is established between the target on / off device and the target remote control electronic device; wherein, the target on / off device refers to the on / off device selected from the on / off devices connected to the Internet of Things system and prepared to be bound to the target remote control electronic device, and the target remote control electronic device refers to a smart home device controlled by a remote control code; Send the association relationship to the gateway device; The real-time status of the target remote-controlled electronic device is obtained, and a control event input button for switching the target remote-controlled electronic device from the real-time status to the reverse status is displayed on the control interface of the target remote-controlled electronic device; wherein, the determination of the real-time status of the target remote-controlled electronic device includes: the gateway device obtaining the specified status parameters of the target on / off device based on the association relationship, generating and maintaining resource attribute information including the current status for the target remote-controlled electronic device based on the specified status parameters, and determining the real-time status of the target remote-controlled electronic device based on the resource attribute information; The system acquires the control command obtained from the touch operation of the control event input button, and issues a remote control code to control the target remote control electronic device to switch to the reverse state according to the control command. The real-time status includes power-on status, power-off status, and standby status. The control event input buttons vary according to the real-time status of the target remote-controlled electronic device. The display of control event input buttons on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the real-time status to the reverse status includes: When the real-time status is "power on", a power off button is displayed on the control interface of the target remote-controlled electronic device to switch the target remote-controlled electronic device from the power on state to the power off state. When the real-time state is in standby or power-off state, a power button for switching the target remote-controlled electronic device from the standby or power-off state to the power-on state is displayed on the control interface of the target remote-controlled electronic device.

2. The remote control electronic device control method as described in claim 1, characterized in that, The control event input button is a slide button; wherein... The provision that the power off button for switching the target remote control electronic device from the power-on state to the power-off state is displayed on the control interface of the target remote control electronic device includes: displaying a left sliding button for switching the target remote control electronic device from the power-on state to the power-off state on the control interface of the target remote control electronic device; The provision that the control interface of the target remote-controlled electronic device displays a power button for switching the target remote-controlled electronic device from the standby state or power-off state to the power-on state includes: displaying a right-slide button on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the standby state or power-off state to the power-on state.

3. The remote control electronic device control method as described in claim 1, characterized in that, The step of acquiring the control command obtained from the touch operation of the control event input button, and issuing a remote control code to control the target remote control electronic device to switch to the reverse state according to the control command, includes: When the real-time state is powered on, a power-off command is obtained based on the touch operation of the control event input button, and a remote control code is sent to control the target remote-controlled electronic device to switch to the power-off state based on the power-off command. When the real-time state is in a power-off state or a standby state, a power-on command is obtained based on the touch operation of the control event input button, and a remote control code is issued to control the target remote-controlled electronic device to switch to the power-on state based on the power-on command.

4. The remote control electronic device control method as described in claim 1, characterized in that, Also includes: The real-time status of the target remote-controlled electronic device is displayed on the control interface of the target remote-controlled electronic device; And / or, Based on the specified status parameters of the target on / off device obtained by the gateway device according to the association relationship, the specified status parameters of the target remote control electronic device are displayed on the control interface of the target remote control electronic device; and / or, Based on the real-time status and specified status parameters of the target remote-controlled electronic device, and when the preset automated control conditions are met, the target remote-controlled electronic device is controlled to perform corresponding actions.

5. The remote control electronic device control method as described in claim 4, characterized in that, The specified status parameters include power parameters and power consumption parameters; displaying the specified status parameters of the target remote-controlled electronic device on the control interface of the target remote-controlled electronic device includes: The control interface of the target remote-controlled electronic device displays the cumulative power consumption in the first setting period, the cumulative power consumption in the second setting period, and the current power.

6. The remote control electronic device control method according to any one of claims 1 to 5, characterized in that, The binding operation, which binds the target remote-controlled electronic device to the target on / off device, establishes an association between the target on / off device and the target remote-controlled electronic device, including: Obtain the first add command for the target remote-controlled electronic device; Based on the first add instruction, obtain the first identity information of the target remote control electronic device, and obtain a matching remote control file corresponding to the first identity information of the target remote control electronic device and save it accordingly. Obtain the second add command for the associated on / off device of the target remote-controlled electronic device; Based on the second add instruction, the second identity information and status parameter information of the target on / off device are obtained, and the target on / off device is associated with the target remote control electronic device.

7. A method for controlling a remote-controlled electronic device, applied to a remote-controlled electronic device control system, the remote-controlled electronic device control system comprising a terminal device and a gateway device, characterized in that, The method includes: The terminal device establishes an association between the target remote control electronic device and the target remote control electronic device based on a binding operation that binds the target remote control electronic device to the target remote control electronic device; wherein, the target remote control electronic device refers to the remote control device selected from the remote control devices connected to the Internet of Things system and prepared to be bound to the target remote control electronic device, and the target remote control electronic device refers to a smart home device controlled by a remote control code; The terminal device sends the association relationship to the gateway device; The gateway device acquires the association between the target remote-controlled electronic device and the target on / off device sent by the terminal device; The gateway device obtains the specified status parameters of the target on / off device according to the association relationship, and determines the resource attribute information of the target remote control electronic device according to the specified status parameters; the resource attribute information includes at least one of the following: current status, power, and power consumption; The gateway device determines the real-time status of the target remote-controlled electronic device based on the resource attribute information and sends it to the terminal device; The terminal device acquires the real-time status of the target remote-controlled electronic device and displays a control event input button on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the real-time status to the reverse status. The terminal device acquires the control command obtained by the touch operation of the control event input button, and issues a remote control code to control the target remote control electronic device to switch to the reverse state according to the control command; wherein, the real-time state includes power-on state, power-off state and standby state, and the control event input button is different according to the different real-time states of the target remote control electronic device; The control event input buttons displayed on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the real-time state to the reverse state include: When the terminal device is in the power-on state in the real-time state, the control interface of the target remote-controlled electronic device displays a power-off button for switching the target remote-controlled electronic device from the power-on state to the power-off state. When the real-time state is in standby or power-off state, the terminal device displays a power button on the control interface of the target remote-controlled electronic device to switch the target remote-controlled electronic device from the standby or power-off state to the power-on state.

8. The remote control electronic device control method as described in claim 7, characterized in that, The gateway device obtains the specified status parameters of the target on / off device according to the association relationship, and determines the resource attribute information of the target remote control electronic device according to the specified status parameters, including: Based on the aforementioned correlation, obtain the on / off state parameters and power parameters of the target on / off device; When the target switching device is in the off state, the real-time state of the target remote control electronic device is determined to be the power-off state. If the target switching device is in the open state and the power of the target switching device is less than the set standby power within a set detection time, the real-time state of the target remote control electronic device is determined to be standby state. If the target switching device is in the open state and the power of the target switching device is greater than the set standby power within a set detection time, the real-time state of the target remote control electronic device is determined to be the power-on state.

9. The remote control electronic device control method as described in claim 7, characterized in that, The gateway device is also used for: Obtain the remote control code sent by the terminal device to switch the target remote-controlled electronic device to the power-on state; If it is determined that the target switching device is in the closed state, an opening command is sent to the target switching device to control the target switching device to open; If it is determined that the target on / off device is in the open state, determine whether the current state of the target remote control electronic device is the powered-on state; If the target remote-controlled electronic device is not currently powered on, a remote control code is sent to the target remote-controlled electronic device to control it to switch to the powered-on state, and the target remote-controlled electronic device is controlled to switch to the powered-on state through the remote control code; If the target remote control electronic device is currently powered on, the remote control code is ignored when sending it to the target remote control electronic device.

10. The remote control electronic device control method as described in claim 9, characterized in that, If the target remote-controlled electronic device is not currently powered on, a remote control code is sent to the target remote-controlled electronic device to control it to switch to the powered-on state. The process of controlling the target remote-controlled electronic device to switch to the powered-on state via the remote control code includes: If the target remote control electronic device is not currently powered on, a remote control code is sent to the target remote control electronic device to control it to switch to the powered-on state; Obtain the specified status parameters of the target on / off device, and determine whether the target remote control electronic device has switched to the power-on state based on the specified status parameters; If the target remote-controlled electronic device has switched to the power-on state, modify the current state in the resource attribute information of the target remote-controlled electronic device to the power-on state and report it to the cloud, which then sends it to the terminal device. If the target remote-controlled electronic device does not switch to the power-on state, a power-on failure message is reported to the cloud, which then sends it to the terminal device.

11. A remote control electronic device control apparatus, applied to a terminal device, characterized in that, include: The association module is used to establish an association relationship between the target on / off device and the target remote control electronic device based on the binding operation of binding the target remote control electronic device and the target on / off device; wherein, the target on / off device refers to the on / off device selected from the on / off devices connected to the Internet of Things system and prepared to be bound to the target remote control electronic device, and the target remote control electronic device refers to a smart home device controlled by a remote control code; A sending module is used to send the association relationship to the gateway device; A control module is used to acquire the real-time status of the target remote-controlled electronic device and display a control event input button on the control interface of the target remote-controlled electronic device for switching the target remote-controlled electronic device from the real-time status to the reverse status. The determination of the real-time status of the target remote-controlled electronic device includes: the gateway device acquiring specified status parameters of the target on / off device based on the association relationship; generating and maintaining resource attribute information including the current status for the target remote-controlled electronic device based on the specified status parameters; determining the real-time status of the target remote-controlled electronic device based on the resource attribute information; acquiring control commands obtained from touch operations on the control event input button; and issuing a remote control code to control the target remote-controlled electronic device to switch to the reverse status according to the control command. The real-time status includes power-on status, power-off status, and standby status. The control event input buttons vary depending on the real-time status of the target remote-controlled electronic device. The control module displays control event input buttons on the control interface of the target remote-controlled electronic device to switch the target remote-controlled electronic device from the real-time status to the reverse status. Specifically, when the real-time status is power-on, a power-off button is displayed on the control interface of the target remote-controlled electronic device to switch the target remote-controlled electronic device from the power-on status to the power-off status; when the real-time status is standby status or power-off status, a power-on button is displayed on the control interface of the target remote-controlled electronic device to switch the target remote-controlled electronic device from the standby status or power-off status to the power-on status.

12. A terminal device, characterized in that, It includes a processor and a memory, wherein the memory stores a computer program that can be executed by the processor, and the computer program, when executed by the processor, implements the remote control electronic device control method as described in any one of claims 1 to 6.

13. A remote control electronic device control system, comprising a terminal device, a gateway device, a target remote control electronic device, a target on / off device, and a cloud as described in claim 12, wherein the target remote control electronic device is an infrared remote control electronic device, and the target on / off device is a switch or a socket; The gateway device is used to obtain the association relationship between the target remote-controlled electronic device and the target on / off device sent by the terminal device; obtain specified status parameters of the target on / off device according to the association relationship; determine the resource attribute information of the target remote-controlled electronic device according to the specified status parameters; determine the real-time status of the target remote-controlled electronic device according to the resource attribute information and send it to the terminal device; wherein, The target remote-controlled electronic device refers to a smart home device controlled by a remote control code, and the resource attribute information includes at least one of the following: current status, power, and power consumption.

14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by the controller, implements the remote control electronic device control method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent socket and intelligent control system

    CN102496814A

  • Intelligent home monitoring system

    TWM526148U