Equipment control method and device, storage medium and program product
By storing the correspondence between control modes and header codes in the remote controller and the device, and matching the header codes of the remote control signals, the problem of control disorder caused by multiple devices within the remote controller signal range is solved, achieving accurate matching between the device and the remote controller, and improving control accuracy and user experience.
Patent Information
- Application Number
- CN202410447173.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-12
- Publication Date
- 2025-10-21
AI Technical Summary
When multiple devices are within the signal range of a remote control of the same brand, it may lead to control disorder and inaccuracy, affecting user experience and testing efficiency.
By storing the correspondence between control modes and header codes in the remote control and the device, the header codes of the remote control signals are matched to achieve one-to-one control. This includes function keys for querying and adjusting control modes to ensure that the control modes of the remote control and the device are consistent.
It achieves precise matching between the remote control and the device, improving control accuracy, user experience, and testing efficiency.
Smart Images

Figure CN120823702A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of control technology, and in particular to a device control method, apparatus, storage medium, and program product. Background Art
[0002] In some scenarios, devices can be controlled using a remote control. For example, with air conditioners, a remote control of the same brand can control various air conditioners of the same brand. In some cases, multiple air conditioners may be within the signal range of the remote control, resulting in chaotic and inaccurate control. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a device control method, apparatus, storage medium and program product.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided a device control method, including:
[0005] Receive remote control signals;
[0006] Determine a header code in the remote control signal to obtain a first header code;
[0007] Determining a current control mode of the device and a second header code of a control signal corresponding to the control mode;
[0008] When the first header code is consistent with the second header code, the device is controlled in response to the remote control signal.
[0009] Optionally, the method comprises:
[0010] If the first header code is consistent with the set query header code, verifying whether the remote control signal is a first signal, where the first signal is used to query the current control mode of the device;
[0011] In a case where the remote control signal is the first signal, information on the current control mode of the device is displayed in response to the remote control signal.
[0012] Optionally, the information about the current control mode of the device is displayed in one or more of the following ways:
[0013] Displaying information on the current control mode of the device on the display screen of the device;
[0014] Displaying information about the current control mode of the device through audio;
[0015] The information of the current control mode of the device is displayed through the indicator light.
[0016] Optionally, the method comprises:
[0017] If the first header code is consistent with the set adjustment header code, verifying whether the remote control signal is a second signal, the second signal being used to adjust the device from a current control mode to a target control mode;
[0018] When the remote control signal is the second signal, obtaining a target header code of a control signal corresponding to the target control mode in the remote control signal;
[0019] The device is adjusted from a current control mode to the target control mode, and the target header code is saved.
[0020] According to a second aspect of an embodiment of the present disclosure, there is provided a device control method, including:
[0021] Determine the current control mode of the remote control and the header code corresponding to the control mode to obtain a first header code;
[0022] generating a remote control signal according to the first header code;
[0023] The remote control signal is sent to the target device to be controlled, wherein when the first header code is consistent with the second header code, the target device responds to the remote control signal to control the target device, and the second header code is the header code of the control signal responsive to the control mode currently in which the target device is located.
[0024] Optionally, the method comprises:
[0025] Determine the query header code;
[0026] Generate a first signal according to the query header code and the query instruction, where the first signal is used to query the current control mode of one or more devices;
[0027] The first signal is sent to the one or more devices, wherein the one or more devices verify the first signal when determining that the header code of the first signal is consistent with the set query header code, and respond to the first signal if the verification passes, and display information about the control mode currently in which the device is located.
[0028] Optionally, generating a remote control signal according to the first header code includes:
[0029] When the current control mode of the remote controller is consistent with the current control mode of the target device, a remote control signal is generated according to the first header code.
[0030] Optionally, the method comprises:
[0031] Determine a device to be controlled from multiple devices to obtain the target device;
[0032] When the current control mode of the remote controller is inconsistent with the current control mode of the target device, the current control mode of the remote controller is adjusted to be consistent with the current control mode of the target device.
[0033] Optionally, adjusting the current control mode of the remote controller to be consistent with the current control mode of the target device includes:
[0034] Determining a target control mode and a header code corresponding to the target control mode from multiple control modes of the remote controller to obtain a target header code;
[0035] Confirm and adjust the header code;
[0036] generating a second signal according to the adjustment header code, the target control mode, and the target header code, wherein the second signal is used to adjust the target device from a current control mode to a target control mode;
[0037] The second signal is sent to the target device, wherein the target device verifies the second signal when determining that the header code of the second signal is consistent with the set adjustment header code, and if the verification passes, adjusts the target device from the current control mode to the target control mode and saves the target header code.
[0038] Optionally, determining a target control mode and a header code corresponding to the target control mode from multiple control modes of the remote controller to obtain the target header code includes:
[0039] Based on a first operation of the user on the remote controller, controlling the remote controller to enter a control mode changing state;
[0040] In the control mode changing state, based on a second operation of the user on the remote controller, determining the target control mode from a plurality of control modes of the remote controller;
[0041] A header code corresponding to the target control mode is determined to obtain the target header code.
[0042] Optionally, adjusting the current control mode of the remote controller to be consistent with the current control mode of the target device includes:
[0043] Determine the current control mode of the target device to obtain a first mode;
[0044] The current control mode of the remote controller is adjusted to the first mode.
[0045] According to a third aspect of an embodiment of the present disclosure, there is provided a device control apparatus, including:
[0046] A first module is configured to receive a remote control signal;
[0047] The second module is configured to determine a header code in the remote control signal to obtain a first header code;
[0048] A third module is configured to determine a current control mode of the device and a second header code of a control signal corresponding to the control mode;
[0049] The fourth module is configured to respond to the remote control signal and control the device when the first header code is consistent with the second header code.
[0050] Optionally, the device comprises:
[0051] an eighth module configured to verify whether the remote control signal is a first signal when the first header code is consistent with a set query header code, the first signal being used to query a current control mode of the device;
[0052] The ninth module is configured to respond to the remote control signal and display information about the current control mode of the device when the remote control signal is the first signal.
[0053] Optionally, the ninth module displays information about the current control mode of the device in one or more of the following ways:
[0054] Displaying information on the current control mode of the device on the display screen of the device;
[0055] Displaying information about the current control mode of the device through audio;
[0056] The information of the current control mode of the device is displayed through the indicator light.
[0057] Optionally, the device comprises:
[0058] a tenth module configured to, when the first header code is consistent with a set adjustment header code, verify whether the remote control signal is a second signal, the second signal being used to adjust the device from a current control mode to a target control mode;
[0059] an eleventh module, configured to, when the remote control signal is the second signal, obtain a target header code of a control signal to which the target control mode in the remote control signal corresponds;
[0060] The twelfth module is configured to adjust the device from the current control mode to the target control mode and save the target header code.
[0061] According to a fourth aspect of an embodiment of the present disclosure, there is provided a device control apparatus, including:
[0062] a fifth module configured to determine a current control mode of the remote controller and a header code corresponding to the control mode, and obtain a first header code;
[0063] a sixth module, configured to generate a remote control signal according to the first header code;
[0064] The seventh module is configured to send the remote control signal to the target device to be controlled, wherein when the first header code is consistent with the second header code, the target device responds to the remote control signal and controls the target device, and the second header code is the header code of the control signal responded to the control mode currently in which the target device is located.
[0065] Optionally, the device comprises:
[0066] A first execution module is configured to determine a query header code;
[0067] A second execution module is configured to generate a first signal according to the query header code and the query instruction, wherein the first signal is used to query the current control mode of one or more devices;
[0068] The third execution module is configured to send the first signal to the one or more devices, wherein the one or more devices verify the first signal when determining that the header code of the first signal is consistent with the set query header code, and respond to the first signal if the verification passes, and display information about the current control mode of the device.
[0069] Optionally, the sixth module is configured to:
[0070] When the current control mode of the remote controller is consistent with the current control mode of the target device, a remote control signal is generated according to the first header code.
[0071] Optionally, the device comprises:
[0072] A fourth execution module is configured to determine a device to be controlled from a plurality of devices and obtain the target device;
[0073] The fifth execution module is configured to adjust the current control mode of the remote controller to be consistent with the current control mode of the target device when the current control mode of the remote controller is inconsistent with the current control mode of the target device.
[0074] Optionally, the fifth execution module includes:
[0075] The first submodule is configured to determine a target control mode and a header code corresponding to the target control mode from multiple control modes of the remote controller, and obtain a target header code;
[0076] A second submodule is configured to determine an adjustment header code;
[0077] A third submodule is configured to generate a second signal according to the adjustment header code, the target control mode and the target header code, wherein the second signal is used to adjust the target device from a current control mode to a target control mode;
[0078] The fourth submodule is configured to send the second signal to the target device, wherein the target device verifies the second signal when determining that the header code of the second signal is consistent with the set adjustment header code, and if the verification passes, adjusts the target device from the current control mode to the target control mode and saves the target header code.
[0079] Optionally, the first submodule is configured to:
[0080] Based on a first operation of the user on the remote controller, controlling the remote controller to enter a control mode changing state;
[0081] In the control mode changing state, based on a second operation of the user on the remote controller, determining the target control mode from a plurality of control modes of the remote controller;
[0082] A header code corresponding to the target control mode is determined to obtain the target header code.
[0083] Optionally, the fifth execution module includes:
[0084] A fifth submodule is configured to determine a current control mode of the target device to obtain a first mode;
[0085] The sixth submodule is configured to adjust the current control mode of the remote controller to the first mode.
[0086] According to a fifth aspect of an embodiment of the present disclosure, there is provided a device control apparatus, including:
[0087] processor;
[0088] a memory for storing processor-executable instructions;
[0089] The processor is configured to execute the method described in any one of the first and second aspects.
[0090] According to a sixth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method according to any one of the first and second aspects is implemented.
[0091] According to a seventh aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which implements the method of any one of the first and second aspects when executed by a processor.
[0092] In the above solution, a remote control signal can be received and the header code in the remote control signal can be determined to obtain a first header code. Furthermore, the current control mode of the device and the second header code of the control signal to which the control mode corresponds can be determined. Thus, if the first header code and the second header code match, the remote control signal is responded to and the device is controlled.
[0093] With the above solution, the response to the remote control signal can be determined by matching the control mode header code. This allows for a one-to-one match between the device and the remote control, which helps improve the control accuracy of the device.
[0094] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0096] Figure 1 The figure is a flow chart showing a method for controlling a device according to an exemplary embodiment.
[0097] Figure 2 The figure is a control flow chart of an air conditioner according to an exemplary embodiment.
[0098] Figure 3 The figure is a flow chart showing a method for controlling a device according to an exemplary embodiment.
[0099] Figure 4 The figure is a flow chart showing a method for controlling a device according to an exemplary embodiment.
[0100] Figure 5 The figure is a flowchart showing a device control mode adjustment according to an exemplary embodiment.
[0101] Figure 6 The figure is a control flow chart of a remote controller according to an exemplary embodiment.
[0102] Figure 7 The figure is a block diagram of a device control apparatus according to an exemplary embodiment.
[0103] Figure 8 The figure is a block diagram of a device control apparatus according to an exemplary embodiment.
[0104] Figure 9 The figure is a block diagram showing an apparatus for controlling a device according to an exemplary embodiment. DETAILED DESCRIPTION
[0105] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible embodiments consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0106] The embodiments described in the following examples of the present disclosure do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0107] Before introducing the device control method, apparatus, storage medium and program product of the present disclosure, the relevant scenarios of the embodiments of the present disclosure are first introduced. In some scenarios, the device can be controlled by a remote control. Taking air conditioners as an example, remote controls of the same brand may control various air conditioner products of the same brand. In some cases, there may be multiple air conditioners within the signal range of the remote control. At this time, the remote control signal may be received by multiple air conditioners, causing the air conditioner status to be changed to an undesirable operating state, ultimately affecting the user experience. In addition, during the development of air conditioners, when multiple people are testing, the remote control signal may be received and responded to by other air conditioners, thereby affecting the test efficiency.
[0108] To this end, in some scenarios, a jumper can be added to the remote control hardware board. When the jumper is connected properly, the remote control transmits codes according to the default state. If the jumper is cut, the remote control transmits codes according to a new method (such as checksum + N), and sends a matching signal to the remote control by pressing the remote control button. After that, the air conditioner that is matched with the remote control can only process the remote control signal after the jumper is cut and the special coding is transmitted.
[0109] It's worth noting that the remote control can generate two different code transmission modes depending on the jumper connection. Therefore, when using three or more devices, control may still be disrupted. Furthermore, cutting the jumper requires specialized expertise, and restoring it after a cut is cumbersome, resulting in a poor user experience. Furthermore, this method makes it difficult to determine which remote control signal the air conditioner is currently receiving, resulting in a poor user experience.
[0110] To this end, an embodiment of the present disclosure provides a device control method, which can be executed by a device, such as an air conditioner, a television, or the like. Figure 1 is a flow chart of a device control method shown in an exemplary embodiment of the present disclosure, with reference to Figure 1 , the method comprising:
[0111] In step S11, a remote control signal is received.
[0112] In step S12, the header code in the remote control signal is determined to obtain a first header code.
[0113] For example, in one possible implementation, the remote controller can determine the function command requested by the user in response to a user's pressing operation. In addition, the remote controller can also determine the current control mode of the remote controller and the header code corresponding to the control mode to obtain the first header code.
[0114] For example, a memory (such as an EE memory) can be added to the remote control, and one or more control modes and the header codes corresponding to the control modes can be stored in the memory. For example, multiple control modes can be described as control modes 1-3, and control modes 1-3 correspond to header codes 1-3 respectively. In some scenarios, the control mode can also represent the remote control number, such as control mode 1 can also be described as remote control 1.
[0115] When in use, the remote controller can be in any one of control modes 1 to 3. In some scenarios, the remote controller can be in control mode 1 by default, and the header code at this time can be described as header code 1.
[0116] In this way, the remote controller can determine the current control mode of the remote controller and the first header code corresponding to the control mode, and generate a remote control signal according to the first header code. As an example, the remote control signal may include: the first header code + function instruction + check code.
[0117] In this way, after receiving the remote control signal, the device can obtain the header code from the remote control signal to obtain the first header code.
[0118] In step S13, the current control mode of the device and the second header code of the control signal corresponding to the control mode are determined.
[0119] For example, the identification of the control mode and the header code of the control signal to which the control mode can respond can be stored in the memory of the device (such as the EE memory). In some scenarios, the initially stored control mode can be control mode 1, and the header code of control mode 1 can be described as header code 1.
[0120] Thus, in step S13, the device can read the memory to determine the current control mode and the second header code of the control signal to which the control mode responds.
[0121] In step S14, when the first header code and the second header code are consistent, the device is controlled in response to the remote control signal.
[0122] If the first header code matches the second header code, it can be determined that the remote control and the device are in the same control mode, and the header code in the remote control signal also matches the header code of the remote control signal that the device can respond to. Therefore, the device can respond to the remote control signal and control the device.
[0123] With the above solution, the response to the remote control signal can be determined by matching the control mode header code. This allows for a one-to-one match between the device and the remote control, which helps improve the control accuracy of the device.
[0124] In one possible implementation, the first header code may be inconsistent with the second header code. In this case, the method may include:
[0125] If the first header code is consistent with the set query header code, verifying whether the remote control signal is a first signal, where the first signal is used to query the current control mode of the device;
[0126] In a case where the remote control signal is the first signal, information on the current control mode of the device is displayed in response to the remote control signal.
[0127] For example, in one embodiment, the remote control may determine a query header code, which may be identified as M. Exemplarily, the remote control may include a "query" button, which may be a dedicated button provided in the remote control, or a combination of existing buttons in the remote control (for example, for an air conditioner, the query may be a mode+fan button).
[0128] When the user triggers the "Query" button, the remote control can determine the query header code and query command. Based on the query header code and query command, the remote control can generate a first signal. The first signal is used to query the current control mode of one or more devices. As an example, the format of the first signal can be: header code M + query request + checksum.
[0129] In this way, the remote control can send the first signal to the device. After receiving the first signal, the device can obtain the header code of the first signal. If the header code of the first signal is consistent with the set query header code, the device verifies whether the received remote control signal is the first signal. If the verification passes, that is, if the remote control signal is determined to be the first signal, the device can respond to the remote control signal and display information about the current control mode of the device.
[0130] For example, in one embodiment, the display screen of the device may display information about the control mode the device is currently in. The control mode information may be, for example, an identifier or number of the control mode.
[0131] In one embodiment, the information about the control mode that the device is currently in can be displayed through audio. For example, the information about the control mode that the device is currently in can be broadcasted through audio.
[0132] In one embodiment, the information of the control mode that the device is currently in can be displayed through an indicator light. For example, the device can indicate the information of the control mode that the device is currently in through indicator lights of different colors.
[0133] In a possible implementation manner, the information of the current control mode of the device may also be displayed through one or more of a display screen, audio, and indicator light.
[0134] By adopting the above solution, the current control mode of the device can be queried, thereby facilitating the control of the device.
[0135] In one possible implementation, the first header code may be inconsistent with the second header code. In this case, the method may include:
[0136] If the first header code is consistent with the set adjustment header code, verifying whether the remote control signal is a second signal, the second signal being used to adjust the device from a current control mode to a target control mode;
[0137] When the remote control signal is the second signal, obtaining a target header code of a control signal corresponding to the target control mode in the remote control signal;
[0138] The device is adjusted from a current control mode to the target control mode, and the target header code is saved.
[0139] For example, in one embodiment, the remote control may determine an adjustment header code, which may be identified as N. Exemplarily, the remote control may include an "adjustment" button, which may be a dedicated button provided in the remote control, or a combination of existing buttons in the remote control (for example, a sleep+light button for an air conditioner).
[0140] When the user triggers the "Adjust" button, the remote control can determine the adjustment header code and the adjustment instruction. For example, when the user triggers the "Adjust" button, the remote control can be controlled to enter a control mode change state. In the control mode change state, the remote control can determine the target control mode from the remote control's multiple control modes in response to the user's operation of the remote control. In this way, the adjustment instruction can be used to instruct the device's control mode to be adjusted to the target control mode.
[0141] In this way, the remote control can generate a second signal based on the adjustment header code and the adjustment instruction, and the second signal is used to adjust the control mode currently in which the device is located. As an example, the format of the second signal can be: header code N + modified control mode + header code of the control mode + checksum.
[0142] In this way, the remote control can send the second signal to the device. After receiving the second signal, the device can obtain the header code of the second signal. When the header code of the second signal is consistent with the set adjustment header code, the device can verify whether the received remote control signal is the second signal. If the verification passes, that is, when it is determined that the remote control signal is the second signal, the device can respond to the remote control signal and obtain the target control mode and the target header code in the second signal. In addition, the device can adjust the current control mode to the target control mode and save the target header code.
[0143] Using this solution, you can control the device's current control mode, thereby aligning the remote control mode with the device's. This allows you to determine whether to respond to remote control signals based on the control mode header matching. This allows for precise matching between the device and remote control, helping to improve device control accuracy.
[0144] It should also be noted that in the above embodiment, the processes of "determining whether the first header code is consistent with the second header code," "determining whether the first header code is consistent with the query header code," and "determining whether the first header code is consistent with the adjustment header code" can be performed simultaneously or sequentially. The present embodiment does not impose any specific limitation on the order in which the above processes are performed.
[0145] Figure 2 This is a control flow chart of an air conditioner shown in an exemplary embodiment of the present disclosure, referring to Figure 2 , the control process includes:
[0146] When the air conditioner is powered on, it enters the S1 node and waits for the input of the remote control signal.
[0147] When a remote control signal is received, the process proceeds to node S2 to determine whether the header code of the remote control signal is header code M (i.e., querying the header code).
[0148] If the header code is M, the process proceeds to S8 to determine whether the checksum is correct. If the checksum is correct, the process proceeds to S9, where the air conditioner's indoor master controller displays the remote control codes that the controller can currently respond to. If the checksum is incorrect, the controller does not respond to the remote control signal and enters the air conditioner power-on state.
[0149] If the remote control signal header code is not M, the process proceeds to node S3 to determine whether the remote control signal header code is N (adjusting the header code). If the header code is N, the process proceeds to node S11 to determine whether the checksum is correct. If the checksum is correct, the process proceeds to node S12, where the indoor master control saves the remote control code and corresponding remote control header code in the remote control signal to memory. If the checksum is incorrect, the master control does not respond to the remote control signal and enters the air conditioner power-on state.
[0150] If the remote control signal header code is neither M nor N, the system proceeds to node S4 to determine whether the current remote control signal header code matches the header code corresponding to the remote control code that the air conditioner can respond to. If so, the system proceeds to node S5 to determine whether the current remote control signal checksum is correct. If so, the system proceeds to node S6 to respond to the remote control signal and perform the relevant operations. If the checksum is incorrect, the system proceeds to node S7 and returns to the air conditioner power-on state.
[0151] With this solution, the air conditioner can determine whether to respond to the remote control signal by matching the control mode header. This allows for precise matching between the air conditioner and the remote control, helping to improve the control accuracy of the air conditioner.
[0152] Based on the same inventive concept, the present disclosure also provides a device control method, which can be executed by a remote controller, for example. Figure 3 is a flow chart of a device control method shown in an exemplary embodiment of the present disclosure, with reference to Figure 3 , the process includes:
[0153] In step S31, the current control mode of the remote controller and the header code corresponding to the control mode are determined to obtain a first header code.
[0154] In step S32, a remote control signal is generated according to the first header code.
[0155] In step S33, a remote control signal is sent to the target device to be controlled.
[0156] When the first header code is consistent with the second header code, the target device responds to the remote control signal to control the target device, and the second header code is the header code of the control signal in response to the current control mode of the target device.
[0157] For example, in one possible implementation, the remote controller can determine the function command requested by the user in response to a user's pressing operation. In addition, the remote controller can also determine the current control mode of the remote controller and the header code corresponding to the control mode to obtain the first header code.
[0158] For example, a memory (such as an EE memory) can be added to the remote control, and one or more control modes and the header codes corresponding to the control modes can be stored in the memory. For example, multiple control modes can be described as control modes 1-3, and control modes 1-3 correspond to header codes 1-3 respectively. In some scenarios, the control mode can also represent the remote control number, such as control mode 1 can also be described as remote control 1.
[0159] When in use, the remote controller can be in any one of control modes 1 to 3. In some scenarios, the remote controller can be in control mode 1 by default, and the header code at this time can be described as header code 1.
[0160] In this way, the remote controller can determine the current control mode of the remote controller and the first header code corresponding to the control mode, and generate a remote control signal according to the first header code and the function instruction.
[0161] After receiving the remote control signal, the device can obtain a header code from the remote control signal to obtain the first header code. If the first header code and the second header code are consistent, the target device responds to the remote control signal to control the target device. The second header code is the header code of the control signal responsive to the current control mode of the target device.
[0162] With this solution, the response to the remote control signal can be determined by matching the control mode header. This allows for precise matching between the device and the remote control, helping to improve device control accuracy.
[0163] Figure 4 is a flow chart of a device control method shown in an exemplary embodiment of the present disclosure, with reference to Figure 4 , the method is Figure 3 The basis includes:
[0164] In step S34, the query header code is determined.
[0165] In step S35, a first signal is generated according to the query header code and the query instruction. The first signal is used to query the current control mode of one or more devices.
[0166] In step S36 , a first signal is sent to one or more devices.
[0167] Among them, when the one or more devices determine that the header code of the first signal is consistent with the set query header code, they verify the first signal, and when the verification passes, respond to the first signal and display information about the current control mode of the device.
[0168] For example, in one embodiment, the remote control may determine a query header code, which may be identified as M. Exemplarily, the remote control may include a "query" button, which may be a dedicated button provided in the remote control, or a combination of existing buttons in the remote control (for example, for an air conditioner, the query may be a mode+fan button).
[0169] When the user triggers the "Query" button, the remote control can determine the query header code and query command. Based on the query header code and query command, the remote control can generate a first signal. The first signal is used to query the current control mode of one or more devices. As an example, the format of the first signal can be: header code M + query request + checksum.
[0170] In this way, the remote control can send the first signal to one or more devices. After receiving the first signal, the device can obtain the header code of the first signal. If the header code of the first signal is consistent with the set query header code, the device verifies whether the received remote control signal is the first signal. If the verification passes, that is, if the remote control signal is determined to be the first signal, the device can respond to the remote control signal and display information about the control mode currently in which the device is located.
[0171] For example, if there are three air conditioners within the remote control signal range, the first signal can be received by the three air conditioners. The three air conditioners can respond to the first signal and each display information about the control mode it is in.
[0172] It should be noted that the step of querying the control mode of the device may be performed before step S31. In this case, generating a remote control signal according to the first header code includes:
[0173] When the current control mode of the remote controller is consistent with the current control mode of the target device, a remote control signal is generated according to the first header code.
[0174] It should also be noted that, in some scenarios, the control mode currently in which the target device is located may be inconsistent with the control mode currently in which the target device is located. In this case, the method includes:
[0175] Determine a device to be controlled from multiple devices to obtain the target device;
[0176] When the current control mode of the remote controller is inconsistent with the current control mode of the target device, the current control mode of the remote controller is adjusted to be consistent with the current control mode of the target device.
[0177] For example, if there are three air conditioners in an environment, the user can select the air conditioner to be controlled from the three air conditioners to obtain the target device. In this way, if the current control mode of the remote controller is inconsistent with the current control mode of the target device, the current control mode of the remote controller can be adjusted to be consistent with the current control mode of the target device.
[0178] As an example, adjusting the current control mode of the remote controller to be consistent with the current control mode of the target device includes:
[0179] Determine the current control mode of the target device to obtain a first mode;
[0180] The current control mode of the remote controller is adjusted to the first mode.
[0181] For example, if the target device is currently in the first control mode and the remote control is in the second control mode, the remote control's control mode can be switched from the second mode to the first mode. This allows the remote control and the target device to be in the same control mode, allowing the target device to be controlled independently. In some embodiments, after the remote control's control mode is switched from the second mode to the first mode, the remote control can be controlled to send pairing information to the target device to pair the remote control and the target device.
[0182] Figure 5 This is a flow chart of an exemplary embodiment of the present disclosure showing a device control mode adjustment, referring to Figure 5 , adjusting the current control mode of the remote controller to be consistent with the current control mode of the target device, including:
[0183] In step S51, a target control mode and a header code corresponding to the target control mode are determined from multiple control modes of the remote controller to obtain a target header code.
[0184] For example, in one possible implementation, the remote controller can be controlled to enter a control mode change state based on a first user operation on the remote controller. While in the control mode change state, if the user performs a second operation (e.g., an operation to select a control mode), the target control mode can be determined from multiple control modes of the remote controller based on the second user operation on the remote controller. In this way, the header code corresponding to the target control mode can be determined to obtain the target header code.
[0185] In a possible implementation, the default control mode of the remote controller may be used as the target control mode.
[0186] Reference Figure 5 , in step S52, the adjustment header code is determined.
[0187] In step S53, a second signal is generated based on the adjustment header code, the target control mode, and the target header code. The second signal is used to adjust the target device from the current control mode to the target control mode. As an example, the format of the second signal can be: header code N + modified control mode + header code of the control mode + checksum.
[0188] In step S54, a second signal is sent to the target device.
[0189] When the target device determines that the header code of the second signal is consistent with the set adjustment header code, it verifies the second signal, and if the verification passes, adjusts the target device from the current control mode to the target control mode and saves the target header code.
[0190] Using this solution, you can control the device's current control mode, thereby aligning the remote control mode with the device's. This allows you to determine whether to respond to remote control signals based on the control mode header matching. This allows for precise matching between the device and remote control, helping to improve device control accuracy.
[0191] Figure 6 This is a control flow chart of a remote controller shown in an exemplary embodiment of the present disclosure, referring to Figure 6 , the control process includes:
[0192] Taking the air conditioner remote control as an example, at the S20 node, the remote control is in standby state.
[0193] At node S21, when the universal function button of the remote control is pressed, node S29 is entered, and the remote control sends an infrared signal according to the remote control signal data format 3 (remote control header code (such as header code 1, header code 2, header code 3) + function information + checksum).
[0194] If the conditions at S21 are not met, the system proceeds to S22 to determine whether the "Remote Control Code Query" button or combination button has been pressed. If so, the system proceeds to S30, where the remote control LCD displays the current remote control code and transmits an infrared signal in remote control signal data format 1 (remote control header code M + code query request information + checksum).
[0195] If the condition at S22 is not met, the process proceeds to S23. The process determines whether the "enter remote control code change state" dedicated key or key combination is pressed. If so, the process proceeds to S24. At this point, the remote control LCD screen flashes to display the current remote control code.
[0196] At S25, it is determined whether the "remote control code change" dedicated key or key combination is pressed. If so, the process proceeds to S26, where the LCD displays the changed remote control code.
[0197] At node S27, determine whether the "Remote Control Code Change Confirm" button is pressed. If so, enter S28, and the remote control sends an infrared signal according to remote control signal data format 2 (remote control header code N + changed remote control code (such as 1, 2, 3) + changed remote control header code (such as header code 1, header code 2, header code 3) + checksum). This process can modify the remote control code, remote control header code, and the remote control code and remote control header code of the corresponding device. After the modification is completed, operate the universal function button of the remote control, and the remote control will send infrared codes according to remote control signal data format 3 (remote control header code + function information + checksum).
[0198] For example, if the modified remote control code is code 3, the remote control signal format may be "header code 3+function information+checksum".
[0199] In addition, if the conditions of node S27 are not met, the system enters node S31 and does not perform the remote control code change operation. The remote control flashes and displays the changed remote control code for 10 seconds, then exits the remote control code change state and returns to node S20. If the conditions of node S23 are not met, the system returns to node S20, which means the remote control is in the standby state.
[0200] Reference Figure 6 If the conditions at node S25 are not met, it indicates that the remote control code adjustment operation has not been performed after entering the remote control code change state. At this time, the system enters node S27 to determine whether the "Remote Control Code Change Confirm" button has been pressed. If so, the remote control performs infrared code transmission according to remote control signal data format 2 (header code N + remote control code + remote control header code + checksum). During this process, the remote control code remains unchanged and can be used to modify the remote control code and corresponding remote control header code that the indoor unit can respond to. If the conditions at node S27 are not met, the system enters node S31 and does not perform the remote control code change operation. The remote control flashes and displays the changed remote control code for 10 seconds before exiting the remote control code change state.
[0201] With this solution, the response to the remote control signal can be determined by matching the control mode header. This allows for precise matching between the device and the remote control, helping to improve device control accuracy.
[0202] Based on the same inventive concept, an embodiment of the present disclosure provides a device control apparatus. Figure 7 is a block diagram of a device control apparatus shown in an exemplary embodiment of the present disclosure, with reference to Figure 7 , the device comprises:
[0203] The first module 701 is configured to receive a remote control signal;
[0204] The second module 702 is configured to determine a header code in the remote control signal to obtain a first header code;
[0205] The third module 703 is configured to determine the current control mode of the device and the second header code of the control signal corresponding to the control mode;
[0206] The fourth module 704 is configured to respond to the remote control signal and control the device when the first header code is consistent with the second header code.
[0207] With this solution, the response to the remote control signal can be determined by matching the control mode header. This allows for precise matching between the device and the remote control, helping to improve device control accuracy.
[0208] Optionally, the device comprises:
[0209] an eighth module configured to verify whether the remote control signal is a first signal when the first header code is consistent with a set query header code, the first signal being used to query a current control mode of the device;
[0210] The ninth module is configured to respond to the remote control signal and display information about the current control mode of the device when the remote control signal is the first signal.
[0211] Optionally, the ninth module displays information about the current control mode of the device in one or more of the following ways:
[0212] Displaying information on the current control mode of the device on the display screen of the device;
[0213] Displaying information about the current control mode of the device through audio;
[0214] The information of the current control mode of the device is displayed through the indicator light.
[0215] Optionally, the device comprises:
[0216] a tenth module configured to, when the first header code is consistent with a set adjustment header code, verify whether the remote control signal is a second signal, the second signal being used to adjust the device from a current control mode to a target control mode;
[0217] an eleventh module, configured to, when the remote control signal is the second signal, obtain a target header code of a control signal to which the target control mode in the remote control signal corresponds;
[0218] The twelfth module is configured to adjust the device from the current control mode to the target control mode and save the target header code.
[0219] Based on the same inventive concept, an embodiment of the present disclosure provides a device control apparatus. Figure 8 is a block diagram of a device control apparatus shown in an exemplary embodiment of the present disclosure, with reference to Figure 8 , the device comprises:
[0220] The fifth module 801 is configured to determine the current control mode of the remote controller and the header code corresponding to the control mode, and obtain a first header code;
[0221] The sixth module 802 is configured to generate a remote control signal according to the first header code;
[0222] The seventh module 803 is configured to send the remote control signal to the target device to be controlled, wherein, when the first header code is consistent with the second header code, the target device responds to the remote control signal and controls the target device, and the second header code is the header code of the control signal responded to the control mode currently in which the target device is located.
[0223] With this solution, the response to the remote control signal can be determined by matching the control mode header. This allows for precise matching between the device and the remote control, helping to improve device control accuracy.
[0224] Optionally, the device comprises:
[0225] A first execution module is configured to determine a query header code;
[0226] A second execution module is configured to generate a first signal according to the query header code and the query instruction, wherein the first signal is used to query the current control mode of one or more devices;
[0227] The third execution module is configured to send the first signal to the one or more devices, wherein the one or more devices verify the first signal when determining that the header code of the first signal is consistent with the set query header code, and respond to the first signal if the verification passes, and display information about the current control mode of the device.
[0228] Optionally, the sixth module 802 is configured to:
[0229] When the current control mode of the remote controller is consistent with the current control mode of the target device, a remote control signal is generated according to the first header code.
[0230] Optionally, the device comprises:
[0231] A fourth execution module is configured to determine a device to be controlled from a plurality of devices and obtain the target device;
[0232] The fifth execution module is configured to adjust the current control mode of the remote controller to be consistent with the current control mode of the target device when the current control mode of the remote controller is inconsistent with the current control mode of the target device.
[0233] Optionally, the fifth execution module includes:
[0234] The first submodule is configured to determine a target control mode and a header code corresponding to the target control mode from multiple control modes of the remote controller, and obtain a target header code;
[0235] A second submodule is configured to determine an adjustment header code;
[0236] A third submodule is configured to generate a second signal according to the adjustment header code, the target control mode and the target header code, wherein the second signal is used to adjust the target device from a current control mode to a target control mode;
[0237] The fourth submodule is configured to send the second signal to the target device, wherein the target device verifies the second signal when determining that the header code of the second signal is consistent with the set adjustment header code, and if the verification passes, adjusts the target device from the current control mode to the target control mode and saves the target header code.
[0238] Optionally, the first submodule is configured to:
[0239] Based on a first operation of the user on the remote controller, controlling the remote controller to enter a control mode changing state;
[0240] In the control mode changing state, based on a second operation of the user on the remote controller, determining the target control mode from a plurality of control modes of the remote controller;
[0241] A header code corresponding to the target control mode is determined to obtain the target header code.
[0242] Optionally, the fifth execution module includes:
[0243] A fifth submodule is configured to determine a current control mode of the target device to obtain a first mode;
[0244] The sixth submodule is configured to adjust the current control mode of the remote controller to the first mode.
[0245] An embodiment of the present disclosure provides a device control apparatus, comprising:
[0246] processor;
[0247] a memory for storing processor-executable instructions;
[0248] The processor is configured to execute the device control method described in any embodiment of the present disclosure.
[0249] An embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the device control method described in any embodiment of the present disclosure is implemented.
[0250] An embodiment of the present disclosure provides a computer program product, including a computer program. When the computer program is executed by a processor, the device control method described in any embodiment of the present disclosure is implemented.
[0251] Regarding the apparatus in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0252] Figure 9 FIG. 9 is a block diagram of an apparatus 900 for device control according to an exemplary embodiment. For example, the apparatus 900 may be a mobile phone, a tablet device, a remote controller, etc.
[0253] Reference Figure 9 The apparatus 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 909 , an audio component 910 , an input / output interface 912 , a sensor component 914 , and a communication component 916 .
[0254] The processing component 902 generally controls the overall operation of the device 900, such as operations associated with display and data communication. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the device control method described above. In addition, the processing component 902 may include one or more modules to facilitate interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate interaction between the multimedia component 909 and the processing component 902.
[0255] The memory 904 is configured to store various types of data to support the operations of the device 900. Examples of such data include instructions, data, etc. for any application or method operating on the device 900. The memory 904 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0256] The power supply component 906 provides power to the various components of the device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 900.
[0257] The multimedia component 909 includes a screen that provides an output interface between the device 900 and a user. In some embodiments, the screen may include a liquid crystal display (LCD).
[0258] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the device 900 is in the operating mode, the microphone is configured to receive external audio signals. The received audio signal can be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0259] The input / output interface 912 provides an interface between the processing component 902 and a peripheral interface module, such as a keyboard, a click wheel, a button, etc.
[0260] Sensor assembly 914 includes one or more sensors for providing various status assessments of device 900. For example, sensor assembly 914 can detect the open / closed state of device 900, the relative positioning of components, such as a display and a keypad of device 900, and can also detect changes in the position of device 900 or a component of device 900, and the presence or absence of user contact with device 900.
[0261] The communication component 916 is configured to facilitate wired or wireless communication between the device 900 and other devices. The device 900 can access a wireless network based on a communication standard, such as WiFi, 4G and 5G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology and other technologies.
[0262] In an exemplary embodiment, the device 900 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-mentioned device control method.
[0263] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions. The instructions can be executed by the processor 920 of the apparatus 900 to implement the above-mentioned device control method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0264] It should be understood that, unless otherwise specifically noted, the features of the various embodiments of the present disclosure described herein may be combined with each other. As used herein, the term "and / or" includes any one of the relevant listed items and any combination of any two or more thereof; similarly, "at least one of" includes any one of the relevant listed items and any combination of any two or more thereof.
[0265] Although terms such as "first", "second" and "third" may be used herein to describe various modules, these modules are not limited to these terms. On the contrary, these terms are only used to distinguish one module from another. Therefore, without departing from the teachings of the various examples, the first module mentioned in the examples described herein may also be referred to as the second module. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description herein, the meaning of "multiple" is at least two, for example two, three, etc., unless otherwise clearly and specifically defined.
[0266] Furthermore, the word "exemplary" is used herein to mean serving as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as advantageous over other aspects or designs. Rather, the use of the word exemplary is intended to present concepts in a concrete manner. As used herein, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or." That is, unless otherwise specified or clear from the context, "X applies to A or B" is intended to mean any of the natural inclusive permutations. That is, if X applies to A; X applies to B; or X applies to both A and B, then "X applies to A or B" satisfies any of the aforementioned instances. Furthermore, the articles "a" and "an," as used in this application and the appended claims, are generally understood to mean "one or more," unless otherwise specified or clear from the context to refer to the singular form.
[0267] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art after reading and understanding this specification and the drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. In addition, although particular features of the present disclosure may have been disclosed with respect to only one of several implementations, such features may be combined with one or more other features of other implementations as may be desired and advantageous for any given or particular application. Furthermore, to the extent that the terms "comprises," "possess," "have," "have," or variations thereof are used in a specific embodiment or in the claims, such terms are intended to be inclusive in a manner similar to the term "comprising."
[0268] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present disclosure being indicated by the appended claims.
[0269] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes can be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A device control method, characterized in that: include: Receive remote control signals; Determine a header code in the remote control signal to obtain a first header code; Determining a current control mode of the device and a second header code of a control signal corresponding to the control mode; When the first header code is consistent with the second header code, the device is controlled in response to the remote control signal.
2. The method according to claim 1, characterized in that The method comprises: If the first header code is consistent with the set query header code, verifying whether the remote control signal is a first signal, where the first signal is used to query the current control mode of the device; In a case where the remote control signal is the first signal, information on the current control mode of the device is displayed in response to the remote control signal.
3. The method according to claim 2, characterized in that Displays information about the current control mode of the device in one or more of the following ways: Displaying information on the current control mode of the device on the display screen of the device; Displaying information about the current control mode of the device through audio; The information of the current control mode of the device is displayed through the indicator light.
4. The method according to any one of claims 1 to 3, characterized in that The method comprises: If the first header code is consistent with the set adjustment header code, verifying whether the remote control signal is a second signal, the second signal being used to adjust the device from a current control mode to a target control mode; When the remote control signal is the second signal, obtaining a target header code of a control signal corresponding to the target control mode in the remote control signal; The device is adjusted from a current control mode to the target control mode, and the target header code is saved.
5. A device control method, characterized in that: include: Determine the current control mode of the remote control and the header code corresponding to the control mode to obtain a first header code; generating a remote control signal according to the first header code; The remote control signal is sent to the target device to be controlled, wherein when the first header code is consistent with the second header code, the target device responds to the remote control signal to control the target device, and the second header code is the header code of the control signal responsive to the control mode currently in which the target device is located.
6. The method according to claim 5, characterized in that The method comprises: Determine the query header code; Generate a first signal according to the query header code and the query instruction, where the first signal is used to query the current control mode of one or more devices; The first signal is sent to the one or more devices, wherein the one or more devices verify the first signal when determining that the header code of the first signal is consistent with the set query header code, and respond to the first signal if the verification passes, and display information about the control mode currently in which the device is located.
7. The method according to claim 6, characterized in that Generating a remote control signal according to the first header code includes: When the current control mode of the remote controller is consistent with the current control mode of the target device, a remote control signal is generated according to the first header code.
8. The method according to any one of claims 5 to 7, characterized in that The method comprises: Determine a device to be controlled from multiple devices to obtain the target device; When the current control mode of the remote controller is inconsistent with the current control mode of the target device, the current control mode of the remote controller is adjusted to be consistent with the current control mode of the target device.
9. The method according to claim 8, characterized in that The adjusting the current control mode of the remote controller to be consistent with the current control mode of the target device includes: Determining a target control mode and a header code corresponding to the target control mode from multiple control modes of the remote controller to obtain a target header code; Confirm and adjust the header code; generating a second signal according to the adjustment header code, the target control mode, and the target header code, wherein the second signal is used to adjust the target device from a current control mode to a target control mode; The second signal is sent to the target device, wherein the target device verifies the second signal when determining that the header code of the second signal is consistent with the set adjustment header code, and if the verification passes, adjusts the target device from the current control mode to the target control mode and saves the target header code.
10. The method according to claim 9, characterized in that The step of determining a target control mode and a header code corresponding to the target control mode from the multiple control modes of the remote controller to obtain the target header code includes: Based on a first operation of the user on the remote controller, controlling the remote controller to enter a control mode changing state; In the control mode changing state, based on a second operation of the user on the remote controller, determining the target control mode from a plurality of control modes of the remote controller; A header code corresponding to the target control mode is determined to obtain the target header code.
11. The method according to claim 8, characterized in that The adjusting the current control mode of the remote controller to be consistent with the current control mode of the target device includes: Determine the current control mode of the target device to obtain a first mode; The current control mode of the remote controller is adjusted to the first mode.
12. A device control device, characterized in that: include: A first module is configured to receive a remote control signal; The second module is configured to determine a header code in the remote control signal to obtain a first header code; A third module is configured to determine a current control mode of the device and a second header code of a control signal corresponding to the control mode; The fourth module is configured to respond to the remote control signal and control the device when the first header code is consistent with the second header code.
13. A device control device, characterized in that: include: a fifth module configured to determine a current control mode of the remote controller and a header code corresponding to the control mode, and obtain a first header code; a sixth module, configured to generate a remote control signal according to the first header code; The seventh module is configured to send the remote control signal to the target device to be controlled, wherein when the first header code is consistent with the second header code, the target device responds to the remote control signal and controls the target device, and the second header code is the header code of the control signal responded to the control mode currently in which the target device is located.
14. A device control device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the method according to any one of claims 1 to 11.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
16. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 11 when being executed by a processor.
Citation Information
Patent Citations
Remote controller capable of inquiring running parameters of air conditioner and inquiring method
CN102809201A
Custom control method and system for remote control equipment
CN103680122A
Intelligent television control method, device and system
CN107835447A
Remote controller, air conditioner, air conditioner system and remote control method for air conditioner
CN112032933A
