Household appliance control method and storage medium
By combining wireless and infrared signals in remote control and home appliances, the problem that traditional wireless air conditioning remote controls are difficult to accurately control air conditioning in specific rooms is solved, accurate room control is achieved and cost and management complexity is reduced.
Patent Information
- Application Number
- CN202510157075.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-12
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2045-02-12
AI Technical Summary
In a home environment, traditional wireless air conditioning remotes are difficult to accurately distinguish and control air conditioners in specific rooms, and adding independent remotes to solve coverage issues can increase cost and management complexity.
By adopting a control method combining wireless and infrared signals in remote control and home appliances, the remote control generates wireless control data and infrared control data, and determines the binding relationship based on the wireless response data of home appliances to achieve accurate control of home appliances.
Accurate control of wireless air conditioning remote control is achieved, which avoids control errors caused by multi-room coverage, and reduces the need to increase hardware, reduces cost and management complexity.
Smart Images

Figure CN119992810A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of home appliance control technology, and in particular to a home appliance control method and a storage medium. Background Art
[0002] Implementing a wireless air conditioner remote control in a home environment that can accurately and quickly pair and control the air conditioner in a specified room is a challenging technical task. Wireless signals are usually non-directional, meaning they will be received by any device within the signal coverage range, which leads to a problem: wireless signals may cover multiple rooms in the home at the same time, making it impossible for the remote control to accurately distinguish and control the air conditioner in a specific room. Although traditional infrared remote controls can achieve single device control, their effective distance is limited and they need to ensure that they are directly aimed at the target device, which is not always feasible in complex home layouts.
[0003] On the other hand, although the coverage problem can be solved by equipping each room with a separate remote control, this will greatly increase costs and bring additional management and maintenance issues. Therefore, how to achieve precise room control through wireless remote controls without increasing additional hardware investment has become a key problem in current designs. Summary of the invention
[0004] The main purpose of the present invention is to provide a household appliance control method and storage medium, aiming to improve the control accuracy of a wireless air conditioner remote controller. The technical solution is as follows:
[0005] In a first aspect, an embodiment of the present specification provides a method for controlling a home appliance, which is applied to a remote controller, comprising:
[0006] In response to a control instruction for any function of the home appliance, generate wireless control data and infrared control data corresponding to the control instruction, and send the wireless control data and the infrared control data;
[0007] In response to the wireless response data sent by the home appliance, the binding relationship of the remote control is determined based on the wireless response data; the wireless response data is generated by the home appliance based on the communication address indicated by the wireless control data after receiving the infrared control data and the wireless control data.
[0008] In a second aspect, an embodiment of the present specification provides a home appliance control method, which is applied to the home appliance, including:
[0009] If infrared control data and wireless control data sent by the remote controller are received, wireless response data for the remote controller is generated based on the communication address indicated by the wireless control data; the wireless control data and the infrared control data are generated by the remote controller in response to a control instruction for any function of the home appliance;
[0010] The function of the home appliance is controlled based on the infrared control data.
[0011] In a third aspect, an embodiment of the present specification provides a home appliance control method, which is applied to a home appliance control system, wherein the home appliance control system includes a remote controller and a home appliance, including:
[0012] The remote controller generates wireless control data and infrared control data corresponding to the control command in response to a control command for any function of the home appliance, and sends the wireless control data and the infrared control data;
[0013] If the home appliance receives the infrared control data and the wireless control data, it generates wireless response data for the remote controller based on the communication address indicated by the wireless control data;
[0014] The home appliance controls the function of the home appliance based on the infrared control data;
[0015] The remote controller responds to the wireless response data sent by the home appliance and determines the binding relationship of the remote controller based on the wireless response data.
[0016] In a fourth aspect, an embodiment of the present specification provides a remote controller, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the above method.
[0017] In a fifth aspect, an embodiment of the present specification provides a home appliance, comprising: a processor and a memory; wherein the memory stores a computer program, and the computer program is suitable for being loaded by the processor and executing the steps of the above method.
[0018] In a sixth aspect, an embodiment of the present specification provides a computer program product, comprising: a computer program, which, when executed by a processor of an electronic device, causes the processor to execute the steps of the above method.
[0019] In a seventh aspect, an embodiment of the present specification provides a storage medium having a computer program stored thereon, and the computer program implements the steps of the above method when executed by a processor.
[0020] In the embodiments of this specification, the remote controller generates wireless control data and infrared control data corresponding to the control command in response to a control command for any function of the home appliance to control the function of the home appliance. Based on the limited communication and directional characteristics of the infrared control data, combined with the non-directional characteristics of the wireless control data, and indicating the communication address in the wireless control data, the home appliance can identify the infrared control data and the wireless control data when receiving them, so as to determine whether it needs to perform the corresponding control operation. In addition, the home appliance generates wireless response data so that the remote controller determines the binding relationship between the remote controller and the home appliance based on the wireless response data. When the remote controller changes rooms to control the home appliance, it can realize the rapid switching of the binding relationship and the rapid matching of the remote controller and the home appliance. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0022] Figure 1a It is a scene schematic diagram of a home appliance control method provided in an embodiment of this specification;
[0023] Figure 1b It is a scene schematic diagram of a home appliance control method provided in an embodiment of this specification;
[0024] Figure 2 It is a flowchart of a household appliance control method provided in an embodiment of this specification;
[0025] Figure 3 It is a flowchart of a household appliance control method provided in an embodiment of this specification;
[0026] Figure 4 It is a flowchart of a household appliance control method provided in an embodiment of this specification;
[0027] Figure 5 It is a flowchart of a household appliance control method provided in an embodiment of this specification;
[0028] Figure 6 It is a flowchart of a household appliance control method provided in an embodiment of this specification;
[0029] Figure 7 It is a flowchart of a household appliance control method provided in an embodiment of this specification;
[0030] Figure 8It is a structural schematic diagram of a remote controller provided in an embodiment of this specification;
[0031] Fig. 9 It is a structural schematic diagram of a household appliance provided in an embodiment of this specification. DETAILED DESCRIPTION
[0032] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.
[0033] In the description of this specification, it should be understood that the terms "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of this specification, it should be noted that, unless otherwise clearly specified and limited, "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. For those of ordinary skill in the art, the specific meanings of the above terms in this specification can be understood in specific circumstances. In addition, in the description of this specification, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are an "or" relationship.
[0034] See also Figure 1a , which is a scenario diagram of a home appliance control method provided in an embodiment of this specification. Indoors, a home appliance 2 can be controlled by a remote controller 1. Usually, one remote controller 1 can only control one home appliance.
[0035] Please see again Figure 1b, a scene diagram of a home appliance control method is provided for the embodiment of this specification. When the user uses a wireless remote control in the living room, assuming that the bedroom and the living room are close and the wireless signal has a strong ability to penetrate walls, since the wireless control signal can be received within the signal coverage range, the living room air conditioner 21 and the bedroom air conditioner 22 will be controlled; and the use of an infrared remote control cannot transmit big data (such as voice control data, etc.), and the infrared signal has a clear transmission and receiving direction. After exceeding a specific angle, the signal strength will drop significantly, or even cannot be received. The infrared control signal needs to be sent to the air conditioner in order to be aimed at the air conditioner, which has the problems of low transmission efficiency and slow response. Therefore, the existing wireless remote control control schemes cannot meet the user's cross-room use requirements of using a bedroom remote control to control the bedroom air conditioner 22 in the bedroom or living room, and to control the living room air conditioner 21 in the living room.
[0036] Based on the above problems, the embodiment of this specification provides a method for controlling a home appliance, which is applied to a home appliance control system. The home appliance control system may include a remote controller and a home appliance. The remote controller and the home appliance can communicate through predefined infrared and wireless communication methods. When the user uses the remote controller, the remote controller responds to the control command for any function of the home appliance and generates wireless control data and infrared control data corresponding to the control command. After the remote controller sends the wireless control data and infrared control data, the home appliance can control the function of the home appliance according to the received wireless control data and infrared control data. When the home appliance receives the infrared control data, it indicates that the remote controller is aimed at the home appliance, that is, the control target is the home appliance that receives the infrared control data. If at the same time, the home appliance also receives the wireless response data, then the home appliance determines whether it needs to bind with the remote controller according to the communication address indicated in the wireless control data. If the home appliance determines that the communication address is its own address, it means that the remote controller has been bound to the home appliance and there is no need to change the binding relationship; if the home appliance determines that the communication address is not its own address, it means that the remote controller is not bound to the home appliance and needs to be bound to the remote controller. According to these two situations, the home appliance generates corresponding wireless response data and sends it to the remote control. The remote control establishes a binding relationship with the home appliance according to the wireless response data, or can also unbind from the bound home appliance. When the user points the remote control at the target home appliance, the target home appliance can be quickly bound and the bound home appliance can be unbound.
[0037] When the home appliance does not receive infrared control data, if it receives wireless control data, if the communication address in the wireless control data is its own, it means that the home appliance has been bound to the remote control, and the control operation indicated by the wireless control data can be performed. If the communication address in the wireless control data is not its own, it means that the current wireless control data has nothing to do with it and can be ignored. In this way, in the case of bound home appliances, the user does not need to ensure that the infrared control signal can be accurately received by the bound home appliances, and can achieve accurate control of the bound home appliances.
[0038] The execution subject of the hardware operating environment involved in the embodiments of this specification may also be a home appliance, which has functions such as data processing, data communication, and program running. The execution subject may also be a controller inside the home appliance, or of course, a module in the home appliance for implementing the home appliance control method, which is not limited by this implementation condition. For example, the home appliance may be an air conditioner, an electric fan, a smart lamp, etc., which is not specifically limited.
[0039] The execution subject of the hardware operating environment involved in the embodiments of this specification can also be a remote controller, which has functions such as data processing, data communication and program running. The remote controller may include components such as an infrared transmitter / radio frequency transmitter, a battery, a microcontroller (MCU), a key input and display system, a wireless communication module, and a sensor. This implementation condition does not limit this.
[0040] The home appliance control method provided in this specification is described in detail below in conjunction with specific embodiments.
[0041] See also Figure 2 , which is a flowchart of a method for controlling a home appliance according to an embodiment of this specification. Figure 2 As shown, the home appliance control method provided by the embodiment of this specification is explained by taking the home appliance control system side as an example, and the method may include the following steps S101 to S104.
[0042] S101, in response to a control instruction for any function of a home appliance, the remote controller generates wireless control data and infrared control data corresponding to the control instruction, and sends the wireless control data and the infrared control data;
[0043] In one embodiment, the remote controller may be provided with control buttons for home appliance functions, or control commands for any function of the home appliance may be input to the remote controller through body sensing, voice, etc., and the control commands need to be converted into signals capable of driving the home appliance inside the remote controller. This process includes two parts: generation of wireless control data and generation of infrared control data.
[0044] In a feasible implementation, the microcontroller of the remote control parses the control instruction and obtains the operation that the home appliance needs to perform (such as turning on and off, adjusting the temperature, adjusting the volume, etc.). The remote control encapsulates the control instruction into a format suitable for wireless communication. Take Wi-Fi as an example: the control command is transmitted through HTTP request or MQTT message. For example, by sending a POST request to the IP address of the smart TV, the command may contain control content, such as "turn_on" or "volume_up". Take Bluetooth as an example: data is transmitted through the Bluetooth Low Energy (BLE) protocol. The remote control converts the command into a Bluetooth data packet and sends it to the target device. Once the wireless control data is ready, the remote control sends the control command to the target home appliance through modules such as Bluetooth and Wi-Fi. The target device performs the corresponding operation after receiving the signal. It can be understood that when the remote control sends wireless control data, if it has been bound to a home appliance, the address of the home appliance can be used as the communication address to ensure that the data is sent in a directional manner. If the remote control is not bound to a home appliance, the wireless control data can be sent in a broadcast manner so that each home appliance that may be controlled receives the wireless control data.
[0045] In another feasible implementation, the infrared transmitting module (usually an infrared LED) in the remote control converts the user's key information into an infrared light signal. Each key represents a specific command, and the remote control encodes these commands into a specific infrared light waveform (frequency, pulse width, interval, etc.), which is then transmitted through the infrared LED.
[0046] S102, if the home appliance receives the infrared control data and the wireless control data, generating wireless response data for the remote controller based on the communication address indicated by the wireless control data;
[0047] S103, the home appliance controls the function of the home appliance based on the infrared control data;
[0048] In one embodiment, after receiving the infrared control data and the wireless control data, the home appliance can perform control operations on corresponding functions of the home appliance according to the infrared control data, and generate wireless response data for the remote control based on the communication address indicated by the wireless control data.
[0049] It is understandable that after the remote control sends infrared control data and wireless control data, if there are multiple home appliances in the current space, the types of signals received by the home appliances may be different depending on the placement of the home appliances. For example, some home appliances can receive infrared and wireless control data, and some home appliances can only receive wireless control data. Due to the limitations of infrared communication distance and emission angle, when there is a home appliance that can receive infrared control data, it means that the home appliance is closest to the remote control and is aimed at by the remote control. The home appliance is preferentially used as the control target, and the home appliance controls the corresponding function by parsing the received infrared control data. Specifically, home appliances (such as televisions, air conditioners, audio, etc.) usually have an infrared receiver (IR receiver) built in, and the infrared receiver usually contains a photodiode that can sense infrared light signals and convert them into electrical signals. The received electrical signal will be transmitted to the microcontroller (MCU) or a dedicated decoding circuit after preprocessing. The decoding circuit will parse the data content contained in the signal. The command data obtained after parsing will be sent to the processing unit of the microcontroller (such as MCU or DSP). The processing unit performs corresponding operations on the device according to the content of the command (such as "turn on", "turn off", "adjust volume", etc.). For example, if the command parsed is "turn on the air conditioner", the control system will drive the corresponding circuit to start the power of the air conditioner; if the command is "turn up the temperature", the microcontroller (MCU) inside the air conditioner will adjust the set temperature of the air conditioner according to the received command, and the temperature control system of the air conditioner (including sensors, control circuits, etc.) will work according to the new set temperature.
[0050] The home appliance can also parse the received wireless control data to obtain the communication address in the wireless control data. When the remote control is bound to the home appliance, the communication address will be specified in the wireless control data. If the specified communication address identified is the home appliance that received the infrared control data, it means that the home appliance that is being controlled is already bound, and the remote control can return its own address. If the specified communication address identified is not the address of the home appliance that received the infrared control data or there is no specified communication address, the home appliance that is being controlled is not yet bound. The home appliance sends wireless response data carrying the binding request to the remote control to achieve the binding of the home appliance that needs to be controlled currently, so that it can be used later without using infrared to aim at the appliance.
[0051] S104: The remote controller responds to the wireless response data sent by the home appliance and determines a binding relationship of the remote controller based on the wireless response data.
[0052] In one embodiment, the remote controller responds to the wireless response data sent by the home appliance and determines the binding relationship of the remote controller according to the wireless response data. If the wireless response data includes a binding request, the remote controller stores the binding address in the binding request as the sending object of the wireless control data. If the wireless response data includes the address of the receiving home appliance, the address can be compared with the address of the bound home appliance, and if they are consistent, the binding relationship is retained. In this way, the binding relationship can be flexibly changed according to the actual control needs of the user.
[0053] In the embodiments of the present specification, the remote control responds to a control instruction for any function of the home appliance to generate wireless control data and infrared control data corresponding to the control instruction to control the function of the home appliance. If the home appliance receives the infrared control data and the wireless control data, wireless response data for the remote control is generated based on the communication address indicated by the wireless control data. The home appliance controls the function of the home appliance based on the infrared control data. The remote control responds to the wireless response data sent by the home appliance and determines the binding relationship of the remote control based on the wireless response data, thereby realizing flexible switching of the binding relationship and accurate room control of the wireless remote control.
[0054] See also Figure 3 , is a flow chart of a household appliance control method provided in an embodiment of this specification. Figure 3 As shown, the home appliance control method provided by the embodiment of this specification is explained by taking the home appliance control system side as an example. The method in the embodiment of this specification may include the following steps S201 to S203.
[0055] S201, the remote controller generates wireless control data and infrared control data corresponding to a control instruction for any function of the home appliance in response to the control instruction, and sends the wireless control data and the infrared control data;
[0056] For details, please refer to the description of step S101 in the above embodiment of the specification, which will not be elaborated here.
[0057] S202, if the home appliance receives only the wireless control data and the communication address indicated by the wireless control data is the home appliance address of the home appliance, control the function of the home appliance based on the wireless control data;
[0058] In one embodiment, if the home appliance does not receive infrared control data but only receives wireless control data, the home appliance needs to determine that the communication address in the wireless control data is its own (that is, the home appliance address) before responding to the wireless control data.
[0059] In one possible scenario, if one appliance receives infrared control data and wireless control data, and another appliance receives wireless control data, the appliance that receives the infrared control data needs to generate wireless response data to the remote control based on the communication address indicated by the wireless response data. If the indicated communication address is not that of the appliance, it requests binding. The appliance that only receives the wireless control data also needs to determine whether it needs to execute control of the function based on the communication address indicated by the wireless response data. If the indicated communication address is not its own, it can be ignored. If the indicated communication address is its own, it means that it has been bound to the remote control. It is necessary to wait for a preset time to determine whether an unbinding instruction sent by the remote control after binding with the other appliance is received within the preset time. If an unbinding instruction is received, the control will not be executed.
[0060] S203: If the home appliance only receives the wireless control data and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, ignore the wireless control data.
[0061] In one embodiment, if the home appliance does not receive infrared control data, but only receives wireless control data, and the communication address is not the home appliance address of the home appliance, the received wireless control data can be ignored (discarded), indicating that the remote control does not currently need to control the home appliance. Optionally, when receiving the wireless control data, the home appliance can also determine the signal strength of the wireless control data. If the signal strength is weak, it indicates that the home appliance is far away from the remote control, and the wireless control data can also be ignored.
[0062] In the embodiments of this specification, the remote controller generates wireless control data and infrared control data corresponding to the control command in response to a control command for any function of the home appliance to control the function of the home appliance. If the home appliance only receives the wireless control data and the communication address indicated by the wireless control data is the home appliance address of the home appliance, the control operation corresponding to the wireless control data is executed. If the home appliance only receives the wireless control data and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, the wireless control data is ignored. The remote controller can control both short-range and long-range home appliances by sending signals in combination with infrared and wireless. For home appliances that receive only wireless control data, it can determine whether to execute the corresponding control operation according to the communication address specified therein, solving the problem of being unable to determine the target home appliance due to the non-directional nature of wireless signal transmission.
[0063] See also Figure 4 , is a flow chart of a household appliance control method provided in an embodiment of this specification. Figure 4 As shown, the home appliance control method provided by the embodiment of this specification is explained by taking the home appliance control system side as an example. The method in the embodiment of this specification may include the following steps S301 to S315.
[0064] S301, the remote controller responds to a control instruction for any function of the home appliance and determines a wireless communication address of the remote controller based on a binding state of the remote controller;
[0065] In one embodiment, when the remote controller receives a control instruction for any function of the home appliance, different communication addresses can be determined according to the binding status of the remote controller, thereby realizing the sending of wireless control data.
[0066] S302, the remote controller generates wireless control data corresponding to the control instruction based on the wireless communication address;
[0067] In one embodiment, the control system of the remote controller converts the parsed control instruction (such as "increase the temperature") into a data packet, writes it into the wireless communication address, and generates wireless control data.
[0068] S303, the remote controller obtains corresponding infrared control data based on the control instruction code.
[0069] In one embodiment, the remote control generates corresponding control instructions by receiving input signals (such as key presses) from the user. First, the microcontroller converts the key presses into binary data, and then encodes these data according to a specific coding protocol (such as NEC, RC-5, etc.), usually including address codes and command codes. Then, the encoded data is combined with a high-frequency carrier signal through modulation and transmitted in the form of infrared light.
[0070] S304, if the home appliance receives the infrared control data and the wireless control data sent by the remote controller, and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, then a binding request instruction is generated based on the home appliance address of the home appliance;
[0071] In one embodiment, if a home appliance receives infrared control data and wireless control data sent by a remote control, and the designated communication address identified by the home appliance is not the home appliance that received the infrared control data or there is no designated communication address, then the home appliance being controlled at this time is a home appliance that has not yet been bound. The home appliance sends wireless response data carrying a binding request to the remote control to implement binding of the home appliance that currently needs to be controlled, so that there is no need to use infrared to aim at the appliance in the future.
[0072] S305, the home appliance sends wireless response data including the binding request instruction;
[0073] In one embodiment, wireless response data is generated based on the binding request instruction and sent back to the remote controller.
[0074] S306, if the home appliance receives the infrared control data and the wireless control data sent by the remote controller, and the communication address indicated by the wireless control data is the home appliance address of the home appliance, then generating execution response data based on the home appliance address of the home appliance;
[0075] In one embodiment, if the communication address recognized by the home appliance is the home appliance address of the home appliance, it means that the remote control is controlling a bound home appliance at this time, and there is no need to change the binding relationship.
[0076] S307, the home appliance sends wireless response data including the execution response data;
[0077] In one embodiment, wireless response data for the remote controller is generated based on the execution response data. In the wireless response data, the wireless communication address of the remote controller is specified.
[0078] S308, the home appliance controls the function of the home appliance based on the infrared control data;
[0079] In one embodiment, after receiving the infrared control data, the home appliance controls the corresponding function by parsing the received infrared control data.
[0080] S309, the remote control establishes a binding relationship with the home appliance in response to the binding request instruction in the wireless response data sent by the home appliance;
[0081] In one embodiment, the remote controller may establish a binding relationship with the home appliance in response to a binding request instruction in the wireless response data sent by the home appliance. The binding request instruction is generated by the home appliance after receiving the infrared control data and the wireless control data based on the communication address indicated by the wireless control data; the communication address is not the home appliance address of the home appliance.
[0082] S310, the remote control responds to the binding request instruction in the wireless response data sent by the home appliance, and when it is determined that the binding address in the binding request instruction is different from the bound home appliance address, sends an unbinding instruction to the bound home appliance address;
[0083] In one embodiment, after receiving the binding request instruction, the remote control can verify the binding address therein with the address of the home appliance bound to the remote control. If they are different, an unbinding instruction can also be sent to the bound home appliance address to complete the unbinding from the bound home appliance.
[0084] S311, the remote controller responds to the execution response data in the wireless response data sent by the home appliance, and when it is determined that the home appliance address in the execution response data is the same as the address of the bound home appliance, maintains the binding relationship of the remote controller;
[0085] In one embodiment, the remote control can receive the execution response data in the wireless response data sent back by the home appliance, wherein the execution response data is generated by the home appliance based on the communication address indicated by the wireless control data after receiving the infrared control data and the wireless control data; the communication address is the home appliance address of the home appliance. It is understandable that after the home appliance receives the infrared control data and the wireless control data at the same time and determines that the communication address indicated by the wireless control data is its own address (home appliance address), it can return the result of executing the control instruction to the remote control and add its own home appliance address therein. After the remote control receives the wireless response data and determines that the home appliance address is the same as the bound home appliance address, there is no need to change the binding relationship of the remote control.
[0086] S312, if the home appliance receives the wireless control data sent by the remote control, then obtain the signal strength of the wireless control data;
[0087] In one embodiment, when the home appliance receives wireless control data, the signal strength of the wireless data is determined. The circuit built into the wireless receiving module in the home appliance measures the received signal strength indicator (RSSI) of the received signal. The RSSI value indicates the strength of the signal, usually in decibels (dBm). The higher the RSSI value, the greater the signal strength; the lower the RSSI value, the weaker the signal.
[0088] S313, if the signal strength of the wireless control data is greater than the strength threshold, determining whether the communication address indicated by the wireless control data is the home appliance address of the home appliance;
[0089] In one embodiment, when the signal strength is greater than a strength threshold, it indicates that the wireless control data is valid, and it is determined whether the communication address specified therein is the home appliance address of the home appliance.
[0090] S314, if yes, the home appliance controls the function of the home appliance based on the wireless control data;
[0091] In one embodiment, when it is determined that it is the address of a home appliance, the function of the home appliance is controlled according to the wireless control data.
[0092] S315: If the signal strength of the wireless control data is less than or equal to the strength threshold, ignore the wireless control data.
[0093] In one embodiment, if the home appliance only receives wireless control data with a signal strength less than or equal to the signal strength, it may be that the remote control is triggered by mistake, or the home appliance is too far away from the remote control, and the home appliance will not respond to the wireless control data.
[0094] In the embodiments of this specification, the remote control can send wireless control data and infrared control data according to the binding status. When the home appliance can receive infrared and wireless control data at the same time, it determines whether the communication address in the wireless control data is its own address. When the home appliance determines that the communication address in the wireless control data is its own, it does not need to generate a binding instruction, and returns its own execution response data to the remote control. The remote control can determine that the target device has received the control instruction based on the returned execution response data, and there is no need to modify the binding relationship. When the home appliance determines that the address is not specified in the wireless control data or is not its own address, it sends a binding request instruction to the remote control, so that the remote control establishes a binding relationship with the home appliance; when the home appliance only receives wireless control data, the signal validity is determined according to the signal strength threshold to prevent the wireless signal from entering the room.
[0095] See also Figure 5 , is a flow chart of a household appliance control method provided in an embodiment of this specification. Figure 5 As shown, the home appliance control method provided by the embodiment of this specification is explained using the remote control side. The method in the embodiment of this specification may include the following steps S401-S405.
[0096] S401, in response to a control instruction for any function of the home appliance, determining a wireless communication address of the remote controller based on a binding state of the remote controller;
[0097] In one embodiment, in wireless communication (such as Bluetooth and Wi-Fi), the communication address is mainly used to identify the device and realize communication. When the remote control receives a control instruction for any function of the home appliance, different communication addresses can be determined according to the binding status of the remote control, thereby realizing the transmission of wireless control data.
[0098] Further, in one embodiment, the binding state includes bound and unbound, and the method includes the following steps S4011-S4012:
[0099] S4011, when the binding state of the remote controller is bound, determining the bound home appliance address of the home appliance bound to the remote controller as the wireless communication address of the remote controller;
[0100] In one embodiment, when the binding status of the remote control is bound, it means that the remote control may have a need to control the bound home appliance, obtain the bound home appliance address of the bound home appliance, and determine the bound home appliance address as the wireless communication address of the remote control. Specifically, the bound home appliance address is a unique identifier of the wireless communication address of the bound home appliance. For example, in Bluetooth communication, each Bluetooth device has a unique physical address, usually a 48-bit (6-byte) MAC address. This address is used to uniquely identify between devices, so that when devices are paired, connected or data is transmitted, the communication protocol can accurately know which device is the target of communication.
[0101] S4012: When the binding state of the remote controller is unbound, determine that the wireless communication address of the remote controller is a broadcast address.
[0102] In one embodiment, when the binding state of the remote controller is unbound, the broadcast address can be directly determined as the wireless communication address without specifying an object. The broadcast address can be determined according to the type of the wireless signal.
[0103] Exemplary, Bluetooth broadcast address: Bluetooth devices can broadcast (such as in Bluetooth low energy devices), they send data to a broadcast address instead of a specific target device. The broadcast address is usually all zeros (for example: FF:FF:FF:FF:FF:FF), indicating that the device does not need to know the address of the receiving device when broadcasting. The device that receives the broadcast data can respond or ignore the data.
[0104] Another example, Wi-Fi broadcast address: In Wi-Fi, broadcast addresses (e.g., broadcast frames) are usually used to send information to all devices in the network, such as network detection, routing information, etc. For example, in a Wi-Fi network, when a device searches for an available Wi-Fi network, it sends a broadcast data packet, targeting all access points in the network, rather than a specific device.
[0105] S402, generating wireless control data corresponding to the control instruction based on the wireless communication address;
[0106] In one embodiment, the control system of the remote control converts the parsed control instructions (such as "turn up the temperature") into data packets, which contain information such as the type and parameters of the instructions. According to the communication protocol of the signal (such as the GATT protocol of Bluetooth, the TCP / IP protocol of Wi-Fi, etc.), the data packets are converted into a format suitable for transmission in the wireless network to obtain wireless control data. For example, in a Wi-Fi network, the control instructions are encapsulated through an application layer protocol (such as HTTP or MQTT) and sent out through the Wi-Fi module. The remote control sends the signal wirelessly through a Bluetooth module, a Wi-Fi module or other wireless communication hardware.
[0107] Optionally, a recording component may be provided in the remote controller, and the home appliance control method may include the following steps S4021 to S4023:
[0108] S4021, collecting audio data based on the recording component of the remote controller;
[0109] In one embodiment, a recording component can be added to the remote controller to enrich the input mode of the control command. For example, the recording component can be a MEMS microphone (micro-electromechanical system microphone), which is small in size and low in power consumption and is suitable for being embedded in the remote controller.
[0110] S4022, parsing the audio data to generate a voice command for the home appliance;
[0111] In one embodiment, the remote controller can generate corresponding voice commands by parsing and identifying audio data. It is understandable that in order to enable the processing unit (microcontroller) in the remote controller to have a voice recognition function, a chip with an integrated voice recognition function, such as an AI-based voice recognition chip, can be selected.
[0112] S4023, generating wireless control data and infrared control data corresponding to the voice command.
[0113] In one embodiment, the voice command is converted into wireless and infrared control signals, that is, corresponding wireless control data and infrared control data are generated. After that, the control signal is sent out through the infrared module or the wireless module to control the home appliance.
[0114] Optionally, if the remote control does not have a local recording and parsing function, the remote control controls the audio collection and then sends the audio data to the home appliance via wireless transmission. Specifically, the audio data is collected based on the recording component of the remote control, and the wireless control data is generated based on the audio data and the binding relationship. If the remote control has been bound to the home appliance, the wireless control data is sent to the bound home appliance. If the remote control is not bound to the home appliance, it is sent to the nearest home appliance within the wireless communication range or the historically bound home appliance. It can be set according to actual needs. In order to ensure the accuracy of voice data transmission, it is preferred to send voice data when the home appliance has been bound. After receiving the voice data, if the home appliance has the computing power to perform audio recognition, the home appliance recognizes the audio data to determine the voice command. If the home appliance does not have offline recognition capabilities, the home appliance can upload the audio data to the cloud, and the cloud will recognize the audio command and send it to the home appliance.
[0115] S403, obtaining corresponding infrared control data based on the control instruction code;
[0116] In one embodiment, the infrared remote controller usually emits infrared light signals of a certain frequency through an infrared LED, and these signals represent different control commands. The signal of each remote controller can be regarded as a specific coding mode, and modulation technology (such as frequency modulation) is usually used to distinguish different commands. The infrared modulator encodes the control instructions to obtain signals corresponding to different control instructions, and then obtains infrared control data. Infrared signals are generally encoded through specific protocols, such as NEC protocol, RC-5 protocol, Sony SIRC protocol, etc.
[0117] S404, establishing a binding relationship with the home appliance in response to a binding request instruction in the wireless response data sent by the home appliance;
[0118] In one embodiment, the remote control can establish a binding relationship with the home appliance in response to the binding request instruction in the wireless response data sent by the home appliance. The binding request instruction is generated by the home appliance based on the communication address indicated by the wireless control data after receiving the infrared control data and the wireless control data; the communication address is not the home appliance address of the home appliance. It can be understood that when the home appliance receives the wireless control data and the infrared control data at the same time, if the communication address in the wireless control data is not itself (it may be a broadcast address or other specified address), it is necessary to request the binding of the remote control. The home appliance can determine the home appliance address as the binding address and send a binding request instruction carrying the binding address to the remote control.
[0119] Furthermore, in one embodiment, the household appliance control method includes the following steps S4041:
[0120] S4041, in response to the binding request instruction in the wireless response data sent by the home appliance, when it is determined that the binding address in the binding request instruction is different from the bound home appliance address, sending an unbinding instruction to the bound home appliance address.
[0121] Specifically, after the remote control receives the binding request instruction, it can verify the binding address therein with the address of the home appliance bound to the remote control. If they are different, an unbinding instruction can also be sent to the address of the bound home appliance to complete the unbinding with the bound home appliance. If the bound home appliance is within the wireless signal coverage range of the remote control, the bound home appliance will receive the wireless control data, but after the home appliance sends the binding request instruction to the remote control, the bound home appliance will receive the unbinding instruction within the preset waiting time, so that the bound home appliance does not perform the control operation corresponding to the wireless control data, and only controls one home appliance. It can be understood that after completing the unbinding with the bound home appliance, the remote control will not send the wireless control data to the previously bound home appliance by default to avoid erroneous control.
[0122] S405, in response to the execution response data in the wireless response data sent by the home appliance, when it is determined that the home appliance address in the execution response data is the same as the address of the bound home appliance, maintaining the binding relationship of the remote controller;
[0123] In one embodiment, the remote control can receive the execution response data in the wireless response data sent back by the home appliance, wherein the execution response data is generated by the home appliance based on the communication address indicated by the wireless control data after receiving the infrared control data and the wireless control data; the communication address is the home appliance address of the home appliance. It is understandable that after the home appliance receives the infrared control data and the wireless control data at the same time and determines that the communication address indicated by the wireless control data is its own address (home appliance address), it can return the result of executing the control instruction to the remote control and add its own home appliance address therein. After the remote control receives the wireless response data and determines that the home appliance address is the same as the bound home appliance address, there is no need to change the binding relationship of the remote control.
[0124] In the embodiments of the present specification, the remote controller responds to a control instruction for any function of the home appliance, determines the wireless communication address of the remote controller based on the binding state of the remote controller, generates wireless control data corresponding to the control instruction based on the wireless communication address, obtains corresponding infrared control data based on the control instruction encoding, and then responds to the binding request instruction in the wireless response data sent by the home appliance to establish a binding relationship with the home appliance, and responds to the execution response data in the wireless response data sent by the home appliance. When it is determined that the home appliance address in the execution response data is the same as the bound home appliance address, the binding relationship of the remote controller is maintained. By comparing the home appliance address in the execution response data with the bound home appliance address, it is verified whether the binding relationship is still valid, ensuring that the remote controller only controls the correct home appliance. For a multi-device environment, this not only avoids the transmission of erroneous instructions, but also avoids the physical connection or frequent manual configuration between the traditional remote controller and the home appliance.
[0125] See also Figure 6 , is a flow chart of a household appliance control method provided in an embodiment of this specification. Figure 6 As shown, the home appliance control method provided by the embodiment of this specification is explained by taking the home appliance side as an example. The method in the embodiment of this specification may include the following steps S501-S502.
[0126] S501, if infrared control data and wireless control data sent by the remote controller are received, generating wireless response data for the remote controller based on the communication address indicated by the wireless control data;
[0127] In one embodiment, if the home appliance receives infrared control data and wireless control data sent by the remote control, it generates wireless response data for the remote control based on the communication address indicated by the wireless control data. The wireless control data and infrared control data are generated by the remote control in response to a control instruction for any function of the home appliance. The home appliance can parse the received wireless control data, obtain the communication address in the wireless control data, and generate wireless response data based on the comparison result between the communication address and its own address.
[0128] Furthermore, in one embodiment, the household appliance control method includes the following steps S5011-S5012:
[0129] S5011, if infrared control data and wireless control data sent by the remote controller are received, and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, generating a binding request instruction based on the home appliance address of the home appliance;
[0130] Specifically, if the identified designated communication address is not the home appliance that receives the infrared control data or there is no designated communication address, then the home appliance being controlled at this time is a home appliance that has not yet been bound. The home appliance sends wireless response data carrying a binding request to the remote control to achieve binding of the home appliance that currently needs to be controlled, so that there is no need to use infrared to aim at the appliance in the future.
[0131] S5012: Send wireless response data including the binding request instruction.
[0132] Specifically, wireless response data is generated based on the binding request instruction and sent back to the remote controller.
[0133] Furthermore, in one embodiment, the household appliance control method includes the following steps S5013-S5014:
[0134] S5013, if the infrared control data and the wireless control data sent by the remote controller are received, and the communication address indicated by the wireless control data is the home appliance address of the home appliance, generating execution response data based on the home appliance address of the home appliance;
[0135] Specifically, if the identified communication address is the home appliance address of the home appliance, it indicates that the remote control is controlling the bound home appliance at this time, and there is no need to change the binding relationship. Execution response data is generated according to the home appliance address of the home appliance, indicating that the bound home appliance has received and executed the control, or only the home appliance address can be transmitted to the remote control for verification by the remote control.
[0136] S5014: Send wireless response data including the execution response data.
[0137] Specifically, wireless response data for the remote controller is generated based on the execution response data. In the wireless response data, the wireless communication address of the remote controller is specified.
[0138] S502: Control the function of the home appliance based on the infrared control data.
[0139] Specifically, the home appliance controls the corresponding function by parsing the received infrared control data. The decoding process includes parsing the instruction type (such as adjusting temperature, turning on and off, etc.) and parameters. Execute the command: The decoded instruction will control the hardware part of the device (such as adjusting the temperature sensor, controlling the circuit, etc.) to complete the corresponding operation.
[0140] In the embodiment of the present specification, if the home appliance receives infrared control data and wireless control data sent by the remote control, it generates wireless response data for the remote control based on the communication address indicated by the wireless control data, and controls the functions of the home appliance based on the infrared control data.
[0141] See also Figure 7, is a flow chart of a household appliance control method provided in an embodiment of this specification. Figure 7 As shown, the home appliance control method provided by the embodiment of this specification is explained by taking the home appliance side as an example. The method in the embodiment of this specification may include the following steps S601-S602.
[0142] S601, if wireless control data sent by a remote controller is received and the communication address indicated by the wireless control data is the home appliance address of the home appliance, control the function of the home appliance based on the wireless control data;
[0143] In one embodiment, if the home appliance receives only the wireless control data sent by the remote controller, and the communication address indicated by the wireless control data is the home appliance address of the home appliance, the function of the home appliance is controlled according to the wireless control data. The wireless control data is generated by the remote controller in response to a control instruction for any function of the home appliance.
[0144] Furthermore, in one embodiment, the household appliance control method includes the following steps S5011-S5012:
[0145] S6011, if wireless control data sent by the remote controller is received, obtaining the signal strength of the wireless control data;
[0146] S6012, if the signal strength of the wireless control data is greater than the strength threshold, determining whether the communication address indicated by the wireless control data is the home appliance address of the home appliance;
[0147] Specifically, when the home appliance receives wireless control data, the signal strength of the wireless control data is determined. The strength of the wireless signal will gradually attenuate as the distance increases during the transmission process, especially in the physical environment, where obstacles such as walls, doors and windows will further hinder the propagation of the signal. Therefore, when the remote control is far away from the target device, or passes through multiple walls, the signal strength may be lower than a preset threshold (such as -60dBm). If the wireless signal strength is too weak, the signal received by the home appliance may come from an adjacent room or a place far away. For example, if a remote control controls a device in a room and the wireless signal is too strong, it may cause it to mistakenly control the device in the next room. To avoid this situation, a minimum signal strength threshold can be set. When the signal strength received by the home appliance is lower than the threshold, it will determine that the remote control is far away from the home appliance and will not respond.
[0148] When the signal strength is greater than the strength threshold, it indicates that the wireless control data is valid, and it is determined whether the communication address specified therein is the home appliance address of the home appliance.
[0149] S6013: If yes, control the function of the home appliance based on the wireless control data.
[0150] Specifically, when it is determined that it is the address of the home appliance, the function of the home appliance is controlled according to the wireless control data.
[0151] Further, in one embodiment, the method includes the following steps S60121-S60122:
[0152] S60121: If yes, and no unbinding instruction is received within the preset waiting time, the function of the home appliance is controlled based on the wireless control data.
[0153] Specifically, when it is determined that it is a home appliance address, you can also wait for a preset waiting time. The preset waiting time reserves data processing and sending time. When multiple home appliances receive wireless control data, if the home appliance actually controlled is not a bound home appliance, a binding request instruction will be sent to the remote control. After receiving the binding request instruction, the remote control will bind to the home appliance that can be controlled by the current infrared, and at the same time send an unbinding instruction to the bound home appliance. When the bound home appliance receives wireless control data with sufficient signal strength and determines that the communication address is its own, it may perform control operations, which will cause repeated operations and errors. By setting a preset waiting time, the remote control can send an unbinding instruction to the bound home appliance in time to prevent the bound home appliance from responding to the received wireless control data.
[0154] S602: If wireless control data sent by the remote controller is received and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, the wireless control data is ignored.
[0155] In one embodiment, if the home appliance only receives the wireless control data and the communication address indicated in the wireless control data is not the home appliance address of the home appliance, the home appliance does not respond to the wireless control data.
[0156] In the embodiment of this specification, if the home appliance receives wireless control data sent by the remote control and the communication address indicated by the wireless control data is the home appliance address of the home appliance, the home appliance controls the function of the home appliance based on the wireless control data; if the home appliance receives wireless control data sent by the remote control and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, the wireless control data is ignored. In this way, the home appliance can accurately determine whether it needs to respond based on the received wireless control data, avoiding repeated responses and erroneous responses.
[0157] The present specification also provides a storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned Figure 2-Figure 7 The method of the embodiment shown in the figure can be specifically executed by referring to Figure 2-Figure 7The specific description of the illustrated embodiment will not be repeated here.
[0158] This specification also provides a remote controller. Figure 8 , is a schematic diagram of the structure of a remote controller provided in an embodiment of the present application. Figure 8 As shown, the remote control 1000 may include: at least one microcontroller 1001, such as an MCU, at least one network interface 1004, an input / output interface 1003, an infrared transmitter 1005, a memory 1006, and at least one communication bus 1002. The communication bus 1002 is used to realize the connection and communication between these components. The network interface 1004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. Figure 7 As shown, the memory 1004 as a computer storage medium may include an operating system, an input / output interface module, and a home appliance control application program.
[0159] exist Figure 8 In the remote controller 1000 shown, the input-output interface 1003 is mainly used to provide an input interface for the user and obtain data input by the user.
[0160] In one embodiment, the processor 1001 may be used to call the function control application stored in the memory 1004, and specifically perform the following operations:
[0161] In response to a control instruction for any function of the home appliance, generate wireless control data and infrared control data corresponding to the control instruction, and send the wireless control data and the infrared control data;
[0162] In response to the wireless response data sent by the home appliance, the binding relationship of the remote control is determined based on the wireless response data; the wireless response data is generated by the home appliance based on the communication address indicated by the wireless control data after receiving the infrared control data and the wireless control data.
[0163] In one embodiment, when the processor 110 executes a control instruction in response to any function of a home appliance, generates wireless control data and infrared control data corresponding to the control instruction, and sends the wireless control data and the infrared control data, the processor 110 specifically performs the following operations:
[0164] In response to a control instruction for any function of the home appliance, determining a wireless communication address of the remote controller based on a binding state of the remote controller;
[0165] generating wireless control data corresponding to the control instruction based on the wireless communication address;
[0166] Corresponding infrared control data is obtained based on the control instruction code.
[0167] In one embodiment, the binding state includes bound and unbound. When determining the wireless communication address of the remote controller based on the binding state of the remote controller, the processor 110 specifically performs the following operations:
[0168] When the binding state of the remote controller is bound, the bound home appliance address of the bound home appliance of the remote controller is used as the wireless communication address of the remote controller;
[0169] When the binding state of the remote controller is unbound, the wireless communication address of the remote controller is determined to be a broadcast address.
[0170] In one embodiment, when the processor 110 determines the binding relationship of the remote controller based on the wireless response data in response to the wireless response data sent by the home appliance, the processor 110 specifically performs the following operations:
[0171] In response to the binding request instruction in the wireless response data sent by the home appliance, a binding relationship is established with the home appliance; the binding request instruction is generated by the home appliance based on the communication address indicated by the wireless control data after receiving the infrared control data and the wireless control data; the communication address is not the home appliance address of the home appliance.
[0172] In one embodiment, the processor 110 is further configured to perform the following operations:
[0173] In response to the binding request instruction in the wireless response data sent by the home appliance, when it is determined that the binding address in the binding request instruction is different from the bound home appliance address, an unbinding instruction is sent to the bound home appliance address.
[0174] In one embodiment, when the processor 110 determines the binding relationship of the remote controller based on the wireless response data in response to the wireless response data sent by the home appliance, the processor 110 specifically performs the following operations:
[0175] In response to execution response data in the wireless response data sent by the home appliance, when it is determined that the home appliance address in the execution response data is the same as the address of a bound home appliance, the binding relationship of the remote control is maintained; the execution response data is generated by the home appliance after receiving the infrared control data and the wireless control data based on the communication address indicated by the wireless control data; the communication address is the home appliance address of the home appliance.
[0176] In one embodiment, when the processor 110 executes a control instruction for any function of a home appliance and generates wireless control data and infrared control data corresponding to the control instruction, the processor 110 specifically performs the following operations:
[0177] Collecting audio data based on the recording component of the remote controller;
[0178] parsing the audio data to generate voice commands for home appliances;
[0179] Generate wireless control data and infrared control data corresponding to the voice command.
[0180] The present specification also provides a home appliance, see Fig. 9 , which is a schematic diagram of the structure of a household appliance provided in the embodiment of the present application. Fig. 9 As shown, the home appliance 2000 may include: at least one processor 2001, such as a CPU, at least one network interface 2004, an input / output interface 2003, an infrared receiver 2005, a memory 2006, and at least one communication bus 2002. The communication bus 2002 is used to realize the connection and communication between these components. The network interface 2004 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface). The memory 2005 may be a high-speed RAM memory or a non-volatile memory, such as at least one disk memory. Fig. 9 As shown, the memory 2004 as a computer storage medium may include an operating system, an input / output interface module, and a home appliance control application program.
[0181] exist Fig. 9 In the illustrated home appliance 2000 , the input / output interface 2003 is mainly used to provide an input interface for the user and obtain data input by the user.
[0182] In one embodiment, the processor 2001 may be used to call the home appliance control application stored in the memory 2004, and specifically perform the following operations:
[0183] If infrared control data and wireless control data sent by the remote controller are received, wireless response data for the remote controller is generated based on the communication address indicated by the wireless control data; the wireless control data and the infrared control data are generated by the remote controller in response to a control instruction for any function of the home appliance;
[0184] The functions of the home appliance are controlled based on the infrared control data.
[0185] In one embodiment, when the processor 110 generates wireless response data for the remote controller based on the wireless control data if receiving infrared control data and wireless control data sent by the remote controller, the processor 110 specifically performs the following operations:
[0186] If the infrared control data and the wireless control data sent by the remote controller are received, and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, generating a binding request instruction based on the home appliance address of the home appliance;
[0187] Sending wireless response data including the binding request instruction.
[0188] In one embodiment, when the processor 110 generates wireless response data for the remote controller based on the wireless control data if receiving infrared control data and wireless control data sent by the remote controller, the processor 110 specifically performs the following operations:
[0189] If the infrared control data and the wireless control data sent by the remote controller are received, and the communication address indicated by the wireless control data is the home appliance address of the home appliance, then generating execution response data based on the home appliance address of the home appliance;
[0190] The wireless response data including the execution response data is transmitted.
[0191] In one embodiment, the processor 2001 may be used to call the home appliance control application stored in the memory 2004, and specifically perform the following operations:
[0192] If wireless control data sent by the remote control is received and the communication address indicated by the wireless control data is the home appliance address of the home appliance, the function of the home appliance is controlled based on the wireless control data; the wireless control data is generated by the remote control in response to a control instruction for any function of the home appliance.
[0193] In one embodiment, when the processor 110 receives wireless control data sent by a remote controller and the communication address indicated by the wireless control data is the home appliance address of the home appliance, the processor 110 controls the function of the home appliance based on the wireless control data, specifically performing the following operations:
[0194] If wireless control data sent by the remote controller is received, then obtaining the signal strength of the wireless control data;
[0195] If the signal strength of the wireless control data is greater than the strength threshold, determining whether the communication address indicated by the wireless control data is the home appliance address of the home appliance;
[0196] If so, the function of the home appliance is controlled based on the wireless control data.
[0197] In one embodiment, when the processor 110 executes the control of the function of the home appliance based on the wireless control data, the processor 110 specifically performs the following operations:
[0198] If so, and no unbinding instruction is received within a preset waiting time, the function of the home appliance is controlled based on the wireless control data.
[0199] In one embodiment, the processor 2001 may be used to call the home appliance control application stored in the memory 2004, and specifically perform the following operations:
[0200] If wireless control data sent by the remote controller is received and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, the wireless control data is ignored.
[0201] In addition, those skilled in the art will appreciate that the structure of the electronic device shown in the above figures does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figures, or a combination of certain components, or a different arrangement of components.
[0202] In addition, an embodiment of the present specification provides a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor of an electronic device, the processor can at least implement the above-mentioned Figure 2-Figure 7 The methods provided in the illustrated embodiments.
[0203] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0204] The above disclosure is only the preferred embodiment of this specification, which certainly cannot be used to limit the scope of rights of this specification. Therefore, equivalent changes made according to the claims of this specification are still within the scope covered by this specification.
Claims
1. A household appliance control method, characterized in that: Applied to a remote controller, the method comprises: In response to a control instruction for any function of the home appliance, generate wireless control data and infrared control data corresponding to the control instruction, and send the wireless control data and the infrared control data; In response to the wireless response data sent by the home appliance, the binding relationship of the remote control is determined based on the wireless response data; the wireless response data is generated by the home appliance based on the communication address indicated by the wireless control data after receiving the infrared control data and the wireless control data.
2. The method according to claim 1, characterized in that The step of generating wireless control data and infrared control data corresponding to a control instruction for any function of the home appliance in response to the control instruction comprises: In response to a control instruction for any function of the home appliance, determining a wireless communication address of the remote controller based on a binding state of the remote controller; generating wireless control data corresponding to the control instruction based on the wireless communication address; Corresponding infrared control data is obtained based on the control instruction code.
3. The method according to claim 2, characterized in that The binding state includes bound and unbound; The determining the wireless communication address of the remote controller based on the binding state of the remote controller includes: When the binding state of the remote controller is bound, the bound home appliance address of the bound home appliance of the remote controller is used as the wireless communication address of the remote controller; When the binding state of the remote controller is unbound, the wireless communication address of the remote controller is determined to be a broadcast address.
4. The method according to claim 1, characterized in that The step of responding to the wireless response data sent by the home appliance and determining the binding relationship of the remote controller based on the wireless response data includes: In response to the binding request instruction in the wireless response data sent by the home appliance, a binding relationship is established with the home appliance; the binding request instruction is generated by the home appliance based on the communication address indicated by the wireless control data after receiving the infrared control data and the wireless control data; the communication address is not the home appliance address of the home appliance.
5. The method according to claim 4, characterized in that The method further comprises: In response to the binding request instruction in the wireless response data sent by the home appliance, when it is determined that the binding address in the binding request instruction is different from the bound home appliance address, an unbinding instruction is sent to the bound home appliance address.
6. The method according to claim 1, characterized in that The step of responding to the wireless response data sent by the home appliance and determining the binding relationship of the remote controller based on the wireless response data includes: In response to execution response data in the wireless response data sent by the home appliance, when it is determined that the home appliance address in the execution response data is the same as the address of a bound home appliance, the binding relationship of the remote control is maintained; the execution response data is generated by the home appliance after receiving the infrared control data and the wireless control data based on the communication address indicated by the wireless control data; the communication address is the home appliance address of the home appliance.
7. The method according to claim 1, characterized in that The step of generating wireless control data and infrared control data corresponding to a control instruction for any function of the home appliance in response to the control instruction comprises: Collecting audio data based on the recording component of the remote controller; parsing the audio data to generate voice commands for home appliances; Generate wireless control data and infrared control data corresponding to the voice command.
8. A wireless control method, characterized in that: Applied to household appliances, the method comprises: If infrared control data and wireless control data sent by the remote controller are received, wireless response data for the remote controller is generated based on the communication address indicated by the wireless control data; the wireless control data and the infrared control data are generated by the remote controller in response to a control instruction for any function of the home appliance; The functions of the home appliance are controlled based on the infrared control data.
9. The method according to claim 8, characterized in that If infrared control data and wireless control data sent by the remote controller are received, generating wireless response data for the remote controller based on the wireless control data includes: If the infrared control data and the wireless control data sent by the remote controller are received, and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, generating a binding request instruction based on the home appliance address of the home appliance; Sending wireless response data including the binding request instruction.
10. The method according to claim 8, characterized in that If infrared control data and wireless control data sent by the remote controller are received, generating wireless response data for the remote controller based on the wireless control data includes: If the infrared control data and the wireless control data sent by the remote controller are received, and the communication address indicated by the wireless control data is the home appliance address of the home appliance, then generating execution response data based on the home appliance address of the home appliance; The wireless response data including the execution response data is transmitted.
11. A method for controlling a household appliance, characterized in that: Applied to a home appliance control system, the home appliance control system includes a remote controller and a home appliance, the method includes: The remote controller generates wireless control data and infrared control data corresponding to the control command in response to a control command for any function of the home appliance, and sends the wireless control data and the infrared control data; If the home appliance receives the infrared control data and the wireless control data, it generates wireless response data for the remote controller based on the communication address indicated by the wireless control data; The home appliance controls the function of the home appliance based on the infrared control data; The remote controller responds to the wireless response data sent by the home appliance and determines the binding relationship of the remote controller based on the wireless response data.
12. The method according to claim 11, characterized in that The method further comprises: If the home appliance receives only the wireless control data and the communication address indicated by the wireless control data is the home appliance address of the home appliance, then the function of the home appliance is controlled based on the wireless control data; If the home appliance only receives the wireless control data and the communication address indicated by the wireless control data is not the home appliance address of the home appliance, the wireless control data is ignored.
13. The method according to claim 12, characterized in that If the home appliance receives only the wireless control data and the communication address indicated by the wireless control data is the home appliance address of the home appliance, controlling the function of the home appliance based on the wireless control data includes: If the home appliance receives only the wireless control data sent by the remote controller, obtaining the signal strength of the wireless control data; If the signal strength of the wireless control data is greater than the strength threshold, determining whether the communication address indicated by the wireless control data is the home appliance address of the home appliance; If so, the function of the home appliance is controlled based on the wireless control data.
14. The method according to claim 13, characterized in that If so, controlling the function of the home appliance based on the wireless control data includes: If so, and no unbinding instruction is received within a preset waiting time, the function of the home appliance is controlled based on the wireless control data.
15. A remote controller, comprising: Processor and memory; The memory stores a computer program, wherein the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 1 to 7.
16. A household appliance comprising: Processor and memory; The memory stores a computer program, wherein the computer program is suitable for being loaded by the processor and executing the steps of the method according to any one of claims 8 to 10.
17. A computer program product comprising: A computer program, when executed by a processor of an electronic device, causes the processor to perform the steps of the method according to any one of claims 1 to 14.
18. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 14 are implemented.
Citation Information
Patent Citations
Switching method and system for working mode of remote controller, and related equipment
CN105844897A
Bluetooth pairing method and Bluetooth device
CN106303641A
Pairing method and system for remote controller and television
CN106550259A
Method for realizing universality of Bluetooth remote controller
CN116347149A
Remote controller, remote controlled receiving device and remote controlled system
CN201556295U