Device control method, air conditioner, remote control device and computer readable storage medium
By receiving control instructions sent by the control end and judging the effectiveness of the lock relationship based on the pre-stored lock time, one-to-one matching between the remote control and the target device is achieved, solving the problem of error control and lock relationship adjustment, and improving the user experience .
Patent Information
- Application Number
- CN202210194229.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-01
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2042-03-01
Smart Images

Figure CN114995195B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electrical equipment, and specifically provides an equipment control method, an air conditioner, a remote control device and a computer-readable storage medium. Background Art
[0002] In existing living or working places, multiple electronic devices, such as air conditioners, are usually installed. Usually, for multiple electronic devices produced by the same manufacturer, the remote controllers used to control each electronic device have a certain degree of commonality. Therefore, when using the remote controller for control, it is easy for non-target electronic devices to be mistakenly controlled. How to achieve one-to-one control between the remote controller and the target device among multiple electronic devices when the remote controller can be matched with multiple electronic devices, and how to flexibly adjust the control relationship between the remote controller and the target device are problems that need to be solved urgently. Summary of the invention
[0003] The present invention aims to solve the above technical problem, that is, to solve the problem of how to achieve one-to-one control between the control terminal and the target device in multiple electronic devices when the control terminal can be matched with multiple electronic devices, and to flexibly adjust the control relationship between the remote control and the target device.
[0004] In a first aspect, the present invention provides a device control method, comprising:
[0005] Receiving a control instruction sent by a control terminal, wherein the control instruction at least includes control information and identity information of the control terminal to be verified and / or identity information of a target device to be verified;
[0006] In response to the control instruction, based on the pre-stored locking time, determining whether the locking relationship corresponding to the control end is valid; and matching the control instruction with the pre-stored locking relationship; wherein the locking relationship is established based on the target device identity information and the control end identity information;
[0007] Whether to execute the control instruction is determined according to whether the locking relationship is valid and a matching result.
[0008] In some embodiments, before receiving the control instruction sent by the control end, the method further includes: receiving and storing the locking relationship and the locking time corresponding to the locking relationship.
[0009] In some embodiments, determining whether to execute the control instruction according to whether the locking relationship is valid and a matching result includes:
[0010] When the locking relationship is valid and the matching is successful or the locking relationship is invalid, executing the control instruction;
[0011] When the locking relationship is valid and the matching fails, the control instruction is discarded.
[0012] In some embodiments, the receiving control instruction sent by the control terminal, the control instruction at least including control information and the identity information of the control terminal to be verified and / or the identity information of the target device to be verified includes:
[0013] A unlocking relationship instruction sent by the control terminal is received, wherein the unlocking relationship instruction at least includes unlocking time information and the identity identification information of the control terminal to be verified and / or the identity identification information of the target device to be verified.
[0014] In a second aspect, the present invention provides a device control method, comprising:
[0015] Obtain target device identity information of the target device to be locked;
[0016] In response to the lock mode establishment instruction, establish a lock relationship based on the target device identity information and the control terminal identity information, and receive and store a lock time corresponding to the lock relationship;
[0017] Sending the locking relationship and the locking time corresponding to the locking relationship to the target device to be locked;
[0018] The target device is controlled based on the locking relationship and the locking time.
[0019] In some embodiments, controlling the target device based on the locking relationship and the locking time includes:
[0020] Sending a control instruction to the target device, wherein the control instruction at least includes control information and identity information of the control terminal to be verified and / or identity information of the target device to be verified;
[0021] When it is determined based on the locking time that the locking relationship corresponding to the control end is valid and the control instruction successfully matches the locking relationship, or when it is determined based on the locking time that the locking relationship corresponding to the control end is invalid, controlling the target device to execute the control instruction;
[0022] When it is determined based on the locking time that the locking relationship corresponding to the control end is valid and the control instruction fails to match the pre-stored locking relationship, the control instruction becomes invalid.
[0023] In some embodiments, before the step of establishing a locking relationship based on the target device identity information and the control terminal identity information in response to the locking mode establishment instruction and receiving and storing the locking time corresponding to the locking relationship, the method further includes:
[0024] Determining whether the control terminal and the target device to be locked have established the locking relationship and determining whether the locking relationship is valid according to the locking time;
[0025] When the control end and the target device to be locked have not established the locking relationship or when the control end and the target device to be locked have established the locking relationship and the locking relationship is invalid, in response to the locking mode establishment instruction, the locking relationship is established based on the target device identity information and the control end identity information, and the locking time corresponding to the locking relationship is received and stored.
[0026] In a third aspect, the present invention provides an air conditioner, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, any one of the above-mentioned device control methods applied to a target device is implemented.
[0027] In a fourth aspect, the present invention provides a remote control device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, any one of the above-mentioned device control methods applied to the control end is implemented.
[0028] In a fifth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it implements any one of the above-mentioned device control methods applied to a target device or implements any one of the above-mentioned device control methods applied to a control end.
[0029] In the case of adopting the above technical solution, the present invention can receive the control instruction sent by the control terminal, the control instruction at least includes control information and the control terminal identity information to be verified and / or the target device identity information to be verified; in response to the control instruction, based on the pre-stored locking time, determine whether the locking relationship corresponding to the control terminal is valid; and match the control instruction with the pre-stored locking relationship; wherein the locking relationship is established based on the target device identity information and the control terminal identity information; determine whether to execute the control instruction based on whether the locking relationship is valid and the matching result. This method can achieve one-to-one matching with the control terminal, avoiding the situation of being controlled by mistake. In addition, by setting the locking time, the user's flexible adjustment of the validity of the locking relationship can be met, avoiding the corresponding control terminal being lost and the target device being unable to adapt to other control terminals, which is conducive to improving the user's experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings, in which:
[0031] Figure 1 is a schematic flow chart of a device control method applied to a target device provided by an embodiment of the present invention;
[0032] Figure 2 is a schematic flow chart of a device control method applied to a target device provided by another embodiment of the present invention;
[0033] Figure 3 It is a schematic flow chart of a device control method applied to a control terminal provided by an embodiment of the present invention;
[0034] Figure 4 It is a flow chart of a device control method applied to a control terminal provided by another embodiment of the present invention. DETAILED DESCRIPTION
[0035] Some embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood by those skilled in the art that these embodiments are only used to explain the technical principles of the present invention and are not intended to limit the scope of protection of the present invention.
[0036] In existing living or working places, multiple electronic devices, such as air conditioners, are usually installed. Usually, for multiple electronic devices produced by the same manufacturer, the remote controllers used to control each electronic device have a certain degree of commonality. Therefore, when using the remote controller for control, it is easy for non-target electronic devices to be mistakenly controlled. How to achieve one-to-one control between the remote controller and the target device among multiple electronic devices when the remote controller can be matched with multiple electronic devices, and how to flexibly adjust the control relationship between the remote controller and the target device are problems that need to be solved urgently.
[0037] In view of this, the present invention provides a device control method, by receiving a control instruction sent by a control terminal, the control instruction at least includes control information and control terminal identity information to be verified and / or target device identity information to be verified; in response to the control instruction, based on a pre-stored lock time, judging whether the locking relationship corresponding to the control terminal is valid; and matching the control instruction with the pre-stored locking relationship; wherein the locking relationship is established based on the target device identity information and the control terminal identity information; determining whether to execute the control instruction based on whether the locking relationship is valid and the matching result. This method can achieve one-to-one matching with the control terminal, avoiding the situation of being controlled by mistake. In addition, by setting the locking time, the user's flexible adjustment of the validity of the locking relationship can be met, avoiding the corresponding control terminal being lost and the target device being unable to adapt to other remote controls, which is conducive to improving the user's experience.
[0038] See also Figure 1 As shown, Figure 1 : is a schematic flow chart of a device control method applied to a target device provided by an embodiment of the present invention, which may include:
[0039] Step S11: receiving a control instruction sent by the control terminal, the control instruction at least including control information and identity information of the control terminal to be verified and / or identity information of the target device to be verified;
[0040] Step S12: In response to the control instruction, based on the pre-stored locking time, determining whether the locking relationship corresponding to the control end is valid; and matching the control instruction with the pre-stored locking relationship; wherein the locking relationship is established based on the target device identity information and the control end identity information;
[0041] Step S13: Determine whether to execute the control instruction according to whether the locking relationship is valid and the matching result.
[0042] In some embodiments, the control instruction may include an on control instruction, a off control instruction, a function switching control instruction, etc., and the control information may be information corresponding to the control function that can be realized by the corresponding control instruction. The control terminal identity information may be information that can uniquely identify the identity of the control terminal, and the target device identity information may be information that can uniquely identify the identity of the target device.
[0043] In other embodiments, the control instruction may also be a contact lock relationship instruction; step S11 may also be specifically: receiving an unlock relationship instruction sent by the control end, the unlock relationship instruction at least including unlock time information and the control end identity information to be verified and / or the target device identity information to be verified.
[0044] In some embodiments, step S12 may specifically include: in response to a control instruction, based on a pre-stored locking time, determining whether a pre-stored locking relationship corresponding to the control end is within a locking time range; and matching the control end identity information to be verified in the control instruction with the control end identity information in the pre-stored locking relationship, and / or matching the target device identity information to be verified in the control instruction with the target device identification information in the pre-stored locking relationship.
[0045] When the pre-stored locking relationship corresponding to the control end is within the locking time range, it is determined that the locking relationship is valid; when the pre-stored locking relationship corresponding to the control end exceeds the locking time range, it is determined that the locking relationship is invalid.
[0046] In some embodiments, in order to improve the response speed to the control instruction, in step S12, it is possible to first determine whether the locking relationship corresponding to the control end is valid based on the locking time. After the locking relationship fails, the control instruction is directly executed; when the locking relationship is valid, it is determined whether the control instruction matches the locking relationship.
[0047] In some embodiments, step S13 may specifically include: when the locking relationship is valid and the matching is successful or the locking relationship is invalid, executing the control instruction; when the locking relationship is valid and the matching fails, discarding the control instruction.
[0048] When the locking relationship is valid and the match is successful, one-to-one control can be achieved between the control terminal and the target device, which can effectively prevent the target device from being mistakenly controlled by other control terminals. By setting the locking time, the problem of control terminal loss can be avoided, and it is also convenient for users to flexibly release and replace the locked target device. After the target device is unlocked from the control terminal, it can be controlled by other control terminals.
[0049] The above is a device control method provided by an embodiment of the present invention, which receives a control instruction sent by a control terminal, wherein the control instruction includes at least control information and the control terminal identity information to be verified and / or the target device identity information to be verified; in response to the control instruction, based on the pre-stored locking time, determines whether the locking relationship corresponding to the control terminal is valid; and matches the control instruction with the pre-stored locking relationship; wherein the locking relationship is established based on the target device identity information and the control terminal identity information; and determines whether to execute the control instruction based on whether the locking relationship is valid and the matching result. This method can achieve one-to-one matching with the control terminal, avoiding the situation of being controlled by mistake. In addition, by setting the locking time, the user's flexible adjustment of the validity of the locking relationship can be met, avoiding the corresponding control terminal being lost and the target device being unable to adapt to other control terminals, which is conducive to improving the user's experience.
[0050] See also Figure 2 As shown, Figure 2 A schematic flow chart of a device control method applied to a target device provided by another embodiment of the present invention is shown, which may include:
[0051] Step S21: receiving and storing a locking relationship and a locking time corresponding to the locking relationship;
[0052] Step S22: receiving a control instruction sent by the control terminal, the control instruction at least including control information and identity information of the control terminal to be verified and / or identity information of the target device to be verified;
[0053] Step S23: In response to the control instruction, based on the pre-stored locking time, determining whether the locking relationship corresponding to the control end is valid; and matching the control instruction with the pre-stored locking relationship; wherein the locking relationship is established based on the target device identity information and the control end identity information;
[0054] Step S24: Determine whether to execute the control instruction according to whether the locking relationship is valid and the matching result.
[0055] Among them, steps S22 to S24 can be implemented in the same manner as steps S11 to S13 in the above embodiment, and will not be described again for the sake of brevity. Please refer to the above description for details.
[0056] In some embodiments, step S21 may specifically include receiving a locking relationship and a locking time corresponding to the locking relationship sent by the control terminal based on the communication connection relationship established between the control terminal and the target device, and storing the locking relationship and the locking time accordingly. The communication connection relationship between the control terminal and the target device may be established via Bluetooth or WIFI.
[0057] In some other embodiments, step S21 may specifically include receiving the locking relationship and the locking time corresponding to the locking relationship forwarded by the server, and storing the locking relationship and the locking time in correspondence.
[0058] In some embodiments, the locking mode of the target device may be configured according to the locking relationship and the corresponding locking time, such as long-term locking, temporary locking, or periodic locking.
[0059] The above is a device control method provided by another embodiment of the present invention, which can achieve the same Figure 1 The corresponding embodiments have the same beneficial effects. In addition, the target device for which the locking relationship is not established or the locking relationship is invalid can be configured with a locking mode.
[0060] See also Figure 3 As shown, Figure 3 A schematic flow chart of a device control method applied to a control terminal provided by an embodiment of the present invention is shown, which may include:
[0061] Step S31: Acquire target device identity information of the target device to be locked;
[0062] Step S32: in response to the lock mode establishment instruction, establish a lock relationship based on the target device identity information and the control terminal identity information, and receive and store a lock time corresponding to the lock relationship;
[0063] Step S33: sending the locking relationship and the locking time corresponding to the locking relationship to the target device to be locked;
[0064] Step S34: Control the target device based on the locking relationship and the locking time.
[0065] In some embodiments, step S31 may specifically include:
[0066] Establishing a communication connection relationship with the target device to be locked;
[0067] Based on the established communication connection relationship, sending an identity information acquisition request to the target device to be locked;
[0068] Receive target device identity information sent by the target device to be locked.
[0069] As an example, a communication connection relationship between the control terminal and the target device can be established based on Bluetooth or WIFI.
[0070] In some other embodiments, step S31 may also be specifically as follows: acquiring the target device identity information by scanning an identity QR code set on the target device.
[0071] It should be noted that, after step S31 and before step S32, a prompt message for establishing the lock mode may be sent by voice or display.
[0072] In some embodiments, step S32 can be specifically based on a lock mode establishment instruction input by the user at the control end, and in response to the instruction, a lock relationship is established based on the target device identity information and the control end identity information, and the user's setting instruction for the lock time is received, and the lock time corresponding to the lock relationship is stored, thereby establishing a lock mode between the control end and the target device.
[0073] It should be noted that, in some embodiments, the lock time in the established lock mode may also be modified.
[0074] In some embodiments, step S34 may specifically include:
[0075] Sending a control instruction to the target device, the control instruction at least including control information and identity information of the control terminal to be verified and / or identity information of the target device to be verified;
[0076] When the locking relationship corresponding to the control end is determined to be valid based on the locking time and the control instruction matches the locking relationship successfully, or when the locking relationship corresponding to the control end is determined to be invalid based on the locking time, the target device is controlled to execute the control instruction;
[0077] When it is determined based on the locking time that the locking relationship corresponding to the control end is valid and the control instruction fails to match the pre-stored locking relationship, the control instruction becomes invalid.
[0078] In some embodiments, the control instruction may be an on instruction, a off instruction, a function switching instruction, or an unlocking relationship instruction, and the control information may be information corresponding to a function that can be implemented by the corresponding control instruction.
[0079] In some embodiments, when the target device determines that the locking relationship corresponding to the current control end is within the locking time based on the locking time; and the control end identity information to be verified in the control instruction matches the control end identity information in the locking relationship successfully, and / or the target device identity information to be verified in the control instruction matches the target device identity information in the locking relationship successfully, one-to-one control of the target device can be achieved based on the locking mode, and the target device can be controlled to execute the control instruction.
[0080] In some embodiments, when the target device determines based on the locking time that the locking relationship corresponding to the current control terminal exceeds the locking time, the locking relationship becomes invalid, and the target device can execute the control instruction, but the one-to-one control mode between the target device and the control terminal is exposed.
[0081] In some embodiments, when the target device determines based on the locking time that the locking relationship corresponding to the current control end is within the locking time, that is, the locking relationship is valid; and the control instruction fails to match the pre-stored locking relationship, the target device cannot be controlled to execute the corresponding control instruction, thereby avoiding the problem of miscontrol.
[0082] The above is a device control method provided by an embodiment of the present invention, which can be applied to the control end, including obtaining the target device identity information of the target device to be locked; in response to the lock mode establishment instruction, establishing a lock relationship based on the target device identity information and the control end identity information, and receiving and storing the lock time corresponding to the lock relationship; sending the lock relationship and the lock time corresponding to the lock relationship to the target device to be locked; and controlling the target device based on the lock relationship and the lock time. This method can achieve one-to-one matching with the target device and avoid the situation of miscontrol. In addition, by setting the lock time, the user's flexible adjustment of the validity of the lock relationship can be met, which is conducive to improving the user's experience.
[0083] See also Figure 4 As shown, Figure 4 FIG. 1 is a flow chart of a device control method applied to a control terminal provided by another embodiment of the present invention, which may include:
[0084] Step S41: Acquire target device identity information of the target device to be locked;
[0085] Step S42: determining whether a locking relationship has been established between the control terminal and the target device to be locked, and determining whether the locking relationship is valid according to the locking time;
[0086] When the control end has not established a locking relationship with the target device to be locked or when the control end has established a locking relationship with the target device to be locked and the locking relationship is invalid, execute step S43; when the control end has established a locking relationship with the target device to be locked and the locking relationship is valid, execute step S45.
[0087] Step S43: in response to the lock mode establishment instruction, establish a lock relationship based on the target device identity information and the control terminal identity information, and receive and store a lock time corresponding to the lock relationship;
[0088] Step S44: sending the locking relationship and the locking time corresponding to the locking relationship to the target device to be locked;
[0089] Step S45: Control the target device based on the locking relationship and the locking time.
[0090] Among them, steps S41, S43 to S45 can be implemented in the same manner as steps S31 to S34, and will not be repeated here for the sake of brevity.
[0091] In some embodiments, step S42 can be specifically to determine whether a locking relationship has been established between the control end and the target device to be locked, and to determine whether the locking relationship is valid by determining whether the locking relationship is within the locking time range; when the locking relationship is within the locking time range, the locking relationship is determined to be valid, and when the locking relationship exceeds the locking time range, the locking relationship is determined to be invalid.
[0092] The above is a device control method provided by another embodiment of the present invention, which can be applied to the control end to achieve the same Figure 3 The corresponding embodiments have the same beneficial effects.
[0093] Another aspect of the present invention provides an air conditioner, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the above-mentioned Figure 1 or Figure 2 The device control method of the corresponding embodiment.
[0094] Another aspect of the present invention provides a remote control device, which includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the above-mentioned Figure 3 or Figure 4 The device control method of the corresponding embodiment.
[0095] In another aspect of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the device control method applied to the target device in any of the above embodiments or the device control method applied to the control end in any of the above embodiments can be implemented. The computer-readable storage medium can be a storage device formed by various electronic devices. Optionally, the computer-readable storage medium in the embodiment of the present invention is a non-transitory computer-readable storage medium.
[0096] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. A device control method, characterized in that: include: Receiving a control instruction sent by a control terminal, wherein the control instruction at least includes control information and identity information of the control terminal to be verified and / or identity information of a target device to be verified; In response to the control instruction, based on a pre-stored locking time, determining whether a locking relationship corresponding to the control end is valid; and matching the control instruction with the pre-stored locking relationship; wherein the locking relationship is established based on the target device identity information and the control terminal identity information according to the locking mode establishment instruction input by the user at the control terminal; Whether to execute the control instruction is determined according to whether the locking relationship is valid and the matching result; wherein, when the locking relationship is valid and the matching is successful or the locking relationship is invalid, the control instruction is executed.
2. The method according to claim 1, characterized in that Before receiving the control instruction sent by the control terminal, the method further includes: receiving and storing the locking relationship and the locking time corresponding to the locking relationship.
3. The method according to claim 1 or 2, characterized in that: The determining whether to execute the control instruction according to whether the locking relationship is valid and the matching result also includes: When the locking relationship is valid and the matching fails, the control instruction is discarded.
4. The method according to claim 1, characterized in that: The receiving control instruction sent by the control terminal, wherein the control instruction at least includes control information and the identity information of the control terminal to be verified and / or the identity information of the target device to be verified includes: A unlocking relationship instruction sent by the control terminal is received, wherein the unlocking relationship instruction at least includes unlocking time information and the identity identification information of the control terminal to be verified and / or the identity identification information of the target device to be verified.
5. A device control method, characterized in that: include: Obtain target device identity information of the target device to be locked; In response to a lock mode establishment instruction input by a user at a control terminal, a lock relationship is established based on the target device identity information and the control terminal identity information, and a lock time corresponding to the lock relationship is received and stored; Sending the locking relationship and the locking time corresponding to the locking relationship to the target device to be locked; controlling the target device based on the locking relationship and the locking time; The controlling the target device based on the locking relationship and the locking time includes: Sending a control instruction to the target device, wherein the control instruction at least includes control information and identity information of the control terminal to be verified and / or identity information of the target device to be verified; When it is determined based on the locking time that the locking relationship corresponding to the control end is valid and the control instruction successfully matches the locking relationship, or when it is determined based on the locking time that the locking relationship corresponding to the control end is invalid, the target device is controlled to execute the control instruction.
6. The method according to claim 5, characterized in that Controlling the target device based on the locking relationship and the locking time also includes: When it is determined based on the locking time that the locking relationship corresponding to the control end is valid and the control instruction fails to match the pre-stored locking relationship, the control instruction becomes invalid.
7. The method according to claim 5 or 6, characterized in that: Before the step of establishing a locking relationship based on the target device identity information and the control terminal identity information in response to a locking mode establishment instruction input by a user at the control terminal, and receiving and storing a locking time corresponding to the locking relationship, the method further includes: Determining whether the control terminal and the target device to be locked have established the locking relationship and determining whether the locking relationship is valid according to the locking time; When the control end and the target device to be locked have not established the locking relationship or when the control end and the target device to be locked have established the locking relationship and the locking relationship is invalid, in response to the locking mode establishment instruction, the locking relationship is established based on the target device identity information and the control end identity information, and the locking time corresponding to the locking relationship is received and stored.
8. An air conditioner, characterized in that: The device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the device control method according to any one of claims 1 to 4 is implemented.
9. A remote control device, characterized in that: The device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the device control method according to any one of claims 5 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the device control method described in any one of claims 1 to 4 or the device control method described in any one of claims 5 to 7 is implemented.
Citation Information
Patent Citations
Custom control method and system for remote control equipment
CN103680122A
Equipment control method, control equipment, control system and storage medium
CN111833584A