Curtain control method
By managing the binding relationship between the remote control and multiple smart curtains through a gateway and transmitting commands via a ZigBee network, the problem of cumbersome operation of multiple remote controls is solved, and the effect of a single remote control controlling multiple curtains is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGDONG RUIZHU INTELLIGENT TECH CO LTD
- Filing Date
- 2026-02-09
- Publication Date
- 2026-06-26
AI Technical Summary
Existing motorized curtain remote controls are usually tied to specific brands and models, resulting in the need to configure multiple remote controls for multiple different types of curtain devices, which is cumbersome and costly.
The gateway manages the binding relationship between the remote control and multiple smart curtains. It uses the ZigBee network to transmit button operation commands, and the gateway parses and generates execution commands to send to the curtain drive motor, so that a single remote control can control multiple curtains.
It simplifies the user operation process, reduces usage costs, and enables unified control and flexible adaptation of multiple curtains.
Smart Images

Figure CN122290318A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of smart home technology, and in particular to a curtain control method. Background Technology
[0002] Motorized curtains have gradually become mainstream home and office appliances due to their ease of operation. Most motorized curtain products rely on remote controls for operation. However, these remote controls are typically uniquely paired with specific brands and models of curtain actuators. This means that different manufacturers require their own dedicated remote controls for various curtain systems. In real-world home or office settings, when multiple different types of motorized curtains are installed, each curtain system needs its own remote control, resulting in high operating costs. Furthermore, in practice, users need to manually send control commands to each remote control to manage each curtain, making the process cumbersome and negatively impacting the user experience. Summary of the Invention
[0003] The main purpose of this application is to provide a curtain control method that enables unified control of multiple smart curtains using a single remote control, thereby simplifying the user's operation process and reducing the user's operating costs.
[0004] To achieve the above objectives, this application proposes a curtain control method for use with a remote control, comprising:
[0005] In response to a user's button operation command, the button operation command is sent to a gateway. The gateway then determines at least one smart curtain to be controlled based on the button operation command and a pre-stored binding relationship between the remote control and the smart curtain. Based on the button operation command, the gateway generates an execution command and sends the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled. The curtain drive motor then performs a control operation on the smart curtain to be controlled according to the execution command.
[0006] To achieve the above objectives, this application also proposes a curtain control method applied to a gateway, comprising: In response to a button operation command sent by the remote control, at least one smart curtain to be controlled is determined according to the pre-stored binding relationship between the remote control and the smart curtain; Based on the button operation command, an execution command is generated and sent to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor can perform control operation on the smart curtain to be controlled according to the execution command.
[0007] To achieve the above objectives, this application also proposes a curtain control method, applied to a client side, comprising: In response to a user's binding configuration command, the binding configuration command is sent to a gateway via a cloud server, so that the gateway can parse and store the binding relationship between the remote control and at least one smart curtain; when a button operation command is received from the remote control, at least one smart curtain to be controlled is determined according to the binding relationship; based on the button operation command, an execution command is generated and sent to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor can perform control operations on the smart curtain to be controlled according to the execution command.
[0008] To achieve the above objectives, this application proposes a curtain control method, applied to a curtain control system, comprising: The remote control responds to the user's button operation commands and sends the button operation commands to the gateway; The gateway determines at least one smart curtain to be controlled according to the button operation instructions and the pre-stored binding relationship between the remote control and the smart curtain. Based on the button operation instructions, it generates an execution instruction and sends the execution instruction to the curtain drive motor corresponding to the at least one smart curtain to be controlled. The curtain drive motor performs control operations on the smart curtain to be controlled according to the execution command.
[0009] In addition, to achieve the above objectives, this application also proposes a curtain control device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the curtain control method described above.
[0010] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the curtain control method described above.
[0011] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the curtain control method described above.
[0012] This application provides a curtain control method, which includes: responding to a user's button operation command, sending the button operation command to a gateway, so that the gateway determines at least one smart curtain to be controlled according to the button operation command and a pre-stored binding relationship between a remote control and a smart curtain, and generates an execution command according to the button operation command, and sends the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor performs a control operation on the smart curtain to be controlled according to the execution command. By sending button operation commands from the remote control to the gateway, the gateway can centrally control each smart curtain corresponding to a preset binding relationship according to the button operation commands sent by the remote control, without the need to configure a dedicated remote control for each smart curtain. Users can control multiple smart curtains with a single remote control, which not only simplifies the user's operation process, but also effectively reduces the user's usage cost. Attached Figure Description
[0013] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0014] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0015] Figure 1 A system architecture diagram provided for one embodiment of this application; Figure 2 This is a flowchart illustrating an embodiment of the curtain control method of this application. Figure 3 This is a flowchart illustrating Embodiment 2 of the curtain control method of this application; Figure 4 This is a flowchart illustrating Embodiment 3 of the curtain control method of this application; Figure 5 This is a flowchart illustrating Embodiment 4 of the curtain control method of this application; Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the curtain control method in this application embodiment.
[0016] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0017] It should be understood that the specific embodiments described herein are merely illustrative of the technical solutions of this application and are not intended to limit this application.
[0018] To better understand the technical solution of this application, a detailed description will be provided below in conjunction with the accompanying drawings and specific implementation methods.
[0019] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device, big data service platform, or curtain control system capable of realizing the above functions. The following description uses a curtain control system as an example to illustrate this embodiment and the subsequent embodiments.
[0020] Reference Figure 1 , Figure 1 This is a system architecture diagram provided in one embodiment of the present application, wherein the curtain control system includes a client, a cloud server, a remote controller, a gateway, and at least one smart curtain. The client communicates with the cloud server, the cloud server communicates with the gateway, the remote controller communicates with the gateway via a preset communication method, and the gateway communicates with the curtain drive motor built into the smart curtain via a preset communication method. In this embodiment, the gateway is a ZigBee gateway, which can build a local ZigBee wireless communication network and, based on this network, complete wireless data interaction and command transmission with the remote controller and curtain drive motor within the network. The preset communication method can be a common wireless communication method such as ZigBee network, Bluetooth, or WiFi. Preferably, this embodiment uses a ZigBee network as the communication method between devices. The ZigBee network is a low-power, short-range, and highly reliable wireless local area network in the Internet of Things (IoT) field, suitable for the communication needs of smart home devices.
[0021] Based on this, this application provides a curtain control method applied to a remote control, as detailed in the following embodiments. Figure 2 , Figure 2 This is a flowchart illustrating an embodiment of the curtain control method of this application.
[0022] Step S11: In response to the user's button operation command, the button operation command is sent to the gateway, so that the gateway can determine at least one smart curtain to be controlled according to the button operation command and the pre-stored binding relationship between the remote control and the smart curtain, and generate an execution command according to the button operation command, so as to send the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled, and the curtain drive motor performs control operation on the smart curtain to be controlled according to the execution command.
[0023] It should be noted that the button operation command refers to the wireless control command signal generated after the user presses a button on the remote control; the button operation command includes the user's control needs, such as control information for opening and closing the curtains, pausing the curtains, adjusting the opening degree of the curtains, and switching the curtain stops.
[0024] It should be noted that the remote control and the gateway wirelessly transmit the button operation command via a ZigBee network. The remote control integrates a ZigBee communication module, so it does not rely on the external network. The command can be sent through the local ZigBee wireless communication network established by the gateway. Even if the network is disconnected, the command transmission can still be achieved, ensuring the stability of control.
[0025] It should be noted that the gateway pre-stores the binding relationships between remote controls and smart curtains configured by the user through the client. Optionally, a remote control can establish a binding relationship with one or more smart curtains of different types and brands. Based on this binding relationship, the user can control multiple bound smart curtains uniformly with one remote control, without needing to configure a dedicated remote control for each smart curtain. In other embodiments, when the remote control is equipped with corresponding configuration buttons and a display interface, the user can also configure the binding relationship between the remote control and the smart curtains in the remote control itself.
[0026] It should be noted that the curtain drive motor is a built-in power actuator of the smart curtain and is the core drive device of the smart curtain. It is used to receive execution commands sent by the gateway and drive the smart curtain to complete control actions such as opening and closing, and adjusting the degree of opening and closing. Each smart curtain is equipped with a corresponding curtain drive motor, and the execution commands sent by the gateway can be accurately sent to the curtain drive motor corresponding to the smart curtain.
[0027] In this embodiment, the user performs physical button operations on the remote control, such as pressing the curtain open button, curtain close button, or pause button. After detecting the pressing operation, the remote control generates a corresponding button operation command. Furthermore, the remote control sends the button operation command to the gateway.
[0028] After receiving a button operation command from the remote control, the gateway matches all smart curtains corresponding to the remote control that sent the command, based on the pre-stored binding relationship between the remote control and the smart curtain. This determines the smart curtain to be controlled. Further, the gateway parses the user's control intent contained in the button operation command, such as opening / closing, pausing, or adjusting the opening degree, and generates corresponding execution commands based on the control intent. These execution commands are drive control signals that the curtain drive motors can directly recognize and execute, including specific execution parameters such as the motor's rotation direction, rotation duration, and start / stop commands. Even further, the gateway precisely sends the generated execution commands to the respective curtain drive motors of the smart curtains to be controlled.
[0029] After receiving the execution command sent by the gateway, the curtain drive motor parses the execution command to obtain the motion control information contained in the execution command. The motion control information includes the motor's rotation direction, rotation speed, operation duration, start and stop commands, etc. Based on the parsed motion control information, the curtain drive motor executes corresponding mechanical actions such as forward rotation, reverse rotation, constant speed operation, start and stop, or speed adjustment. Through these mechanical actions, the curtain body of the smart curtain to be controlled completes control operations such as opening and closing, adjusting the degree of opening and closing, and pausing, thereby achieving precise control of the smart curtain.
[0030] In this embodiment, button operation commands are sent to the gateway via a remote control. The gateway can centrally control each smart curtain corresponding to the preset binding relationship based on the button operation commands sent by the remote control. There is no need to configure a dedicated remote control for each smart curtain. Users can control multiple smart curtains with a single remote control, which not only simplifies the user's operation process but also effectively reduces the user's usage cost.
[0031] In one feasible embodiment, the button operation instructions include channel mode selection instructions and function button operation instructions; in response to the user's button operation instructions, the button operation instructions are sent to the gateway, so that the gateway determines at least one smart curtain to be controlled according to the button operation instructions and a pre-stored binding relationship between the remote control and the smart curtain, and generates an execution instruction according to the button operation instructions, so as to send the execution instruction to the curtain drive motor corresponding to the at least one smart curtain to be controlled, including: Step S21: In response to the user's channel mode selection command and function key operation command, the channel mode selection command and function key operation command are sent to the gateway so that the gateway can determine the target control channel according to the channel mode selection command; determine the at least one smart curtain to be controlled according to the binding relationship between the target control channel under the remote control and the smart curtain; generate the execution command according to the function key operation command, and send the execution command to the curtain drive motor corresponding to the smart curtain to be controlled.
[0032] It should be noted that the channel mode selection command refers to the control command generated by the user after operating the channel selection button on the remote control (including single-channel button and multi-channel button), carrying the target control channel identifier, and is used to transmit the user-selected control channel information to the gateway. The function button operation command refers to the control command generated by the remote control in response to the user's physical operation of its curtain control function buttons (e.g., opening curtain, closing curtain, pause, opening degree adjustment), and is used to transmit the specific action that the user wants the curtain to perform to the gateway.
[0033] It should be noted that in traditional curtain control methods, the control channels are configured in a fixed way. Users cannot flexibly select single-channel or multi-channel control modes according to actual needs. Single-channel control allows for independent control of a single smart curtain, while multi-channel control allows for coordinated control of multiple smart curtains. The fixed-channel configuration of traditional solutions cannot meet the control needs of complex environments (such as coordinated control of multiple curtains in the living room or fine-tuning of a single curtain in the bedroom). Therefore, in this embodiment, the user first presses the channel selection button on the remote control to select an independent single channel, or presses the multi-channel button to select a multi-channel control mode, and then presses the function control button on the remote control. After the remote control responds to the above operations, it integrates the channel mode selection command and the function button operation command and sends them to the gateway. Further, the gateway determines the target control channel based on the received channel mode selection command, specifically by parsing and extracting the channel identifier from the channel mode selection command, and then determining the target control channel corresponding to the channel identifier.
[0034] Furthermore, the gateway matches all smart curtains bound to the target control channel according to the binding relationship between the remote control and the smart curtains, that is, the smart curtains to be controlled in this embodiment; then the gateway generates corresponding execution instructions according to the function button operation instructions, wherein the execution instructions are drive control signals that the curtain drive motor can directly recognize and execute; further, the gateway accurately sends the generated execution instructions to the curtain drive motor corresponding to the smart curtain to be controlled, so that the corresponding smart curtain executes the corresponding control action after receiving the instruction.
[0035] In addition, users can initiate requests to modify the channel mode or adjust the binding relationship through the client APP. After the corresponding configuration information is synchronized to the gateway via the cloud server, the gateway will automatically update the channel configuration and the corresponding binding relationship stored locally. Subsequently, when the gateway receives commands sent by the remote control, it will parse the channel identifier and the curtain to be controlled based on the updated binding relationship, thereby realizing flexible channel switching without reconfiguration and improving the adaptability and flexibility of curtain control.
[0036] In other embodiments, if the remote control is pre-set with relevant configuration modification buttons, the user can also perform related operations such as modifying, adding or deleting binding relationships on the remote control.
[0037] In this embodiment, the channel mode selection command and function key operation command are sent to the gateway via the remote control. The gateway can centrally control each smart curtain under the binding relationship according to the command sent by the remote control. There is no need to configure a dedicated remote control for each smart curtain. Users can control multiple smart curtains in a unified manner with one remote control, which not only simplifies the user's operation process, but also effectively reduces the user's usage cost.
[0038] In one feasible embodiment, the button operation instruction includes a scene selection instruction; in response to the user's button operation instruction, the button operation instruction is sent to the gateway, so that the gateway determines at least one smart curtain to be controlled according to the button operation instruction and a pre-stored binding relationship between the remote control and the smart curtain, and generates an execution instruction according to the button operation instruction, so as to send the execution instruction to the curtain drive motor corresponding to the at least one smart curtain to be controlled, and the curtain drive motor performs a control operation on the smart curtain to be controlled according to the execution instruction, including: Step S31: In response to the user's scene selection instruction, the scene selection instruction is sent to the gateway, so that the gateway can determine at least one smart curtain to be controlled and the scene execution parameters associated with each smart curtain to be controlled according to the binding relationship based on the scene selection instruction; for each smart curtain to be controlled, a corresponding execution instruction is generated according to the scene execution parameters of the smart curtain to be controlled, so as to send the execution instruction to the curtain drive motor corresponding to the smart curtain to be controlled.
[0039] It should be noted that users can configure custom scenes on the relevant interface of the client. For example, users can set scene names (such as home scene, sleep scene, away scene, etc.) and select all smart curtains that need to be included in the scene from the network-connected device information. Furthermore, users can configure corresponding scene execution parameters for each selected smart curtain individually. For example, parameters such as opening the living room curtain to 80%, opening the bedroom blinds to 50%, closing the study day and night blinds, and delaying execution by 10 seconds are provided. The scene execution parameters of all curtains are integrated to form the complete execution parameters for that scene.
[0040] In addition, the client displays all the scene buttons that can be bound to the current remote control (dedicated buttons that are not occupied by other scenes) in the scene configuration interface. The user selects a button as the target scene button and binds the target scene button to the custom scene.
[0041] Furthermore, after recognizing all configuration operations completed by the user, the client associates and uploads the scene execution parameters of each smart curtain configured in the current scenario with the button identifier of the target scene button selected by the user to the cloud server. Upon receiving the scene execution parameters and the button identifier of the target scene button for each smart curtain, the cloud server stores these parameters, along with the scene name, in the cloud database. Additionally, the cloud server sends the scene execution parameters and the button identifier of the target scene button to the gateway. The gateway associates the button identifier of the target scene button with the execution parameters of each smart curtain and stores it locally. Subsequently, the user can press the target scene button to trigger the corresponding curtain scene action.
[0042] In this embodiment, the gateway receives button operation commands sent by the remote control. By parsing the button operation commands, if it is confirmed that the command is a scene selection command corresponding to the target scene button, the scene control process is triggered, specifically as follows: Based on the identifier of the target scene button in the command, the gateway accurately locates the binding relationship corresponding to that scene button. Further, according to the binding relationship, it determines at least one smart curtain to be controlled and the scene execution parameters associated with each smart curtain to be controlled. For each smart curtain to be controlled, the gateway converts the scene execution parameters corresponding to the smart curtain into an execution command recognizable by the curtain drive motor. For example, the scene execution parameters are: bedroom blinds open 50%, delayed for 10 seconds; the execution command is: after a 10-second delay, the blind motor runs until the slats are open to 50% and then stops. The gateway accurately sends the execution command to the corresponding smart curtain drive motor through the local ZigBee network, achieving a one-click trigger effect for the customized scene. Furthermore, if the scene execution parameters include a delayed execution requirement, the gateway can first trigger a delay timer, and then send the corresponding execution command after the delay time has elapsed.
[0043] This embodiment enables precise, scenario-based control of smart curtains by customizing execution parameters for different scenarios. Users can then simply press the target scenario button on the remote control to trigger control of each smart curtain in the preset scenario with a single press; eliminating the need to adjust individual curtains one by one, significantly simplifying the operation process. It also adapts to diverse usage scenarios such as coming home and sleeping, effectively improving the intelligence of the curtain control system and the user's operating experience.
[0044] This application also provides a curtain control method applied to a gateway, see reference. Figure 3 , Figure 3 This is a flowchart illustrating Embodiment 2 of the curtain control method of this application.
[0045] Step S41: In response to the button operation command sent by the remote control, at least one smart curtain to be controlled is determined according to the pre-stored binding relationship between the remote control and the smart curtain. It should be noted that the remote control and the gateway wirelessly transmit the button operation command via a ZigBee network. After receiving the button operation command sent by the remote control, the gateway retrieves the binding relationship between the remote control and the smart curtain that is stored locally. Based on the binding relationship, it matches all the smart curtains corresponding to the remote control that sent the button operation command, that is, the smart curtains to be controlled in this embodiment.
[0046] Step S42: Generate an execution instruction based on the button operation instruction, and send the execution instruction to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor can perform control operation on the smart curtain to be controlled according to the execution instruction.
[0047] In one embodiment, a gateway parses the user's control intent contained in the button operation command, such as opening / closing, pausing, or adjusting the opening degree, and generates corresponding execution commands based on the control intent. These execution commands are drive control signals that the curtain drive motors can directly recognize and execute. The drive control signals include specific execution parameters such as the motor's rotation direction, operation duration, and start / stop commands. Further, the gateway precisely sends the execution commands to the respective curtain drive motors of the smart curtains to be controlled. After receiving the execution commands from the gateway, the curtain drive motors parse the commands and identify the motion control information contained within them. This motion control information includes the motor's rotation direction, rotation speed, operation duration, and start / stop commands. Based on the motion control information, the curtain drive motors execute corresponding mechanical actions such as forward rotation, reverse rotation, constant speed operation, start / stop, or speed adjustment. These mechanical actions drive the curtain body of the corresponding smart curtain to complete operations such as opening / closing, adjusting the opening degree, and pausing, thereby achieving precise control of the smart curtains.
[0048] This embodiment uses a gateway to centrally manage the binding relationship between the remote control and the smart curtains. Based on the button operation commands sent by the remote control, it centrally controls each smart curtain under the binding relationship. There is no need to configure a separate remote control for each smart curtain. Users can control multiple smart curtains with a single remote control, which not only simplifies the user's operation process but also effectively reduces the user's usage cost.
[0049] In one feasible implementation, the key operation instructions include channel mode selection instructions and function key operation instructions; the above step S41 includes: Step A411: Determine the target control channel according to the channel mode selection instruction; Step A412: Determine at least one smart curtain to be controlled according to the binding relationship between the target control channel of the remote control and the smart curtain; Step S42 above includes: Step A421: Generate the execution instruction based on the function key operation instruction, and send the execution instruction to the curtain drive motor corresponding to the smart curtain to be controlled.
[0050] It should be noted that the channel mode selection command refers to the control command generated by the user after operating the channel selection button on the remote control (including single-channel button and multi-channel button), carrying the target control channel identifier, and is used to transmit the user-selected control channel information to the gateway. The function button operation command refers to the control command generated by the remote control in response to the user's physical operation of its curtain control function buttons (e.g., opening curtain, closing curtain, pause, opening degree adjustment), and is used to transmit the specific action that the user wants the curtain to perform to the gateway.
[0051] In this embodiment, the user first presses the channel selection button on the remote control to select a single channel, or presses the multi-channel button to select a multi-channel control mode, and then presses the function control button on the remote control. After the remote control responds to the above operations, it integrates the channel mode selection command and the function button operation command and sends them to the gateway. Further, the gateway determines the target control channel based on the received channel mode selection command, specifically by parsing and extracting the channel identifier from the channel mode selection command, and then determining the target control channel corresponding to the channel identifier.
[0052] Furthermore, the gateway matches all smart curtains bound to the target control channel according to the binding relationship between the remote control and the smart curtains, that is, the smart curtains to be controlled in this embodiment; then the gateway generates corresponding execution instructions according to the function button operation instructions, wherein the execution instructions are drive control signals that the curtain drive motor can directly recognize and execute; further, the generated execution instructions are accurately sent to the curtain drive motor corresponding to the smart curtain to be controlled, so that the corresponding smart curtain executes the corresponding control action after receiving the instruction.
[0053] In addition, users can initiate requests to modify the channel mode or adjust the binding relationship through the client APP. After the corresponding configuration information is synchronized to the gateway via the cloud server, the gateway will automatically update the channel configuration and the corresponding binding relationship stored locally. Subsequently, when the gateway receives commands sent by the remote control, it will parse the channel identifier and the curtain to be controlled based on the updated binding relationship, thereby realizing flexible channel switching without reconfiguration and improving the adaptability and flexibility of curtain control.
[0054] In this embodiment, the gateway determines the target control channel according to the channel mode selection instruction; determines at least one smart curtain to be controlled according to the binding relationship between the target control channel under the remote control and the smart curtain; and generates the execution instruction according to the function key operation instruction to send the execution instruction to the curtain drive motor corresponding to each smart curtain to be controlled, thereby realizing flexible control of the smart curtain in single-channel and multi-channel modes.
[0055] In one feasible implementation, the button operation instruction includes a scene selection instruction; the above step S41 includes: Step B411: Based on the scene selection instruction, determine at least one smart curtain to be controlled according to the binding relationship; Step S42 above includes: Step B421: Based on the scene selection instruction, query the scene execution parameters associated with each smart curtain to be controlled; Step B422: For each smart curtain to be controlled, generate a corresponding execution instruction based on the scene execution parameters of the smart curtain to be controlled, and send the execution instruction to the curtain drive motor corresponding to the smart curtain to be controlled.
[0056] It should be noted that users can configure custom scenes on the relevant interface of the client. For example, users can set scene names (such as home scene, sleep scene, away scene, etc.) and select all smart curtains that need to be included in the scene from the network-connected device information. Furthermore, users can configure corresponding scene execution parameters for each selected smart curtain individually. For example, parameters such as opening the living room curtain to 80%, opening the bedroom blinds to 50%, closing the study day and night blinds, and delaying execution by 10 seconds are provided. The scene execution parameters of all curtains are integrated to form the complete execution parameters for that scene.
[0057] In addition, the client displays all the scene buttons that can be bound to the current remote control (dedicated buttons that are not occupied by other scenes) in the scene configuration interface. The user selects a button as the target scene button and binds the target scene button to the custom scene.
[0058] Furthermore, after recognizing all configuration operations completed by the user, the client associates and uploads the scene execution parameters of each smart curtain configured in the current scenario with the button identifier of the target scene button selected by the user to the cloud server. Upon receiving the scene execution parameters and the button identifier of the target scene button for each smart curtain, the cloud server stores these parameters, along with the scene name, in the cloud database. Additionally, the cloud server sends the scene execution parameters and the button identifier of the target scene button to the gateway. The gateway associates the button identifier of the target scene button with the execution parameters of each smart curtain and stores it locally. Subsequently, the user can press the target scene button to trigger the corresponding curtain scene action.
[0059] In this embodiment, the gateway receives button operation commands sent by the remote control. By parsing the button operation commands, if it is confirmed that the command is an operation command for the target scene button (i.e., a scene selection command in this embodiment), the scene control process is triggered, specifically as follows: Based on the identifier of the target scene button in the command, the gateway accurately locates the binding relationship corresponding to that scene button. Further, according to the binding relationship, it determines at least one smart curtain to be controlled and determines the scene execution parameters associated with each smart curtain to be controlled. For each smart curtain to be controlled, the gateway converts the scene execution parameters corresponding to the smart curtain into an execution command recognizable by the curtain drive motor. For example, the scene execution parameters are: bedroom blinds open 50%, delayed for 10 seconds; the execution command is: after a 10-second delay, the blind motor runs until the slats are open to 50% and then stops. The gateway accurately sends the execution command to the corresponding smart curtain drive motor through the local ZigBee network, achieving a one-click trigger effect for the customized scene. Furthermore, if the scene execution parameters include a delayed execution requirement, the gateway can first trigger a delay timer, and then send the corresponding execution command after the delay time has elapsed.
[0060] This embodiment enables precise, scenario-based control of smart curtains by customizing execution parameters for different scenarios. Users can then simply press the target scenario button on the remote control to trigger control of each smart curtain in the preset scenario with a single press; eliminating the need to adjust individual curtains one by one, significantly simplifying the operation process. It also adapts to diverse usage scenarios such as coming home and sleeping, effectively improving the intelligence of the curtain control system and the user's operating experience.
[0061] In one feasible implementation, before determining at least one smart curtain to be controlled according to a pre-stored binding relationship between the remote control and the smart curtain in response to a button operation command sent by the remote control, the method further includes: Step S51: In response to the network configuration command sent by the cloud server, identify the devices to be configured within a preset range, wherein the devices to be configured include remote controls and / or smart curtains. Step S51: Add the device information corresponding to the device to be configured to the local network of the gateway, so that the gateway can communicate with the remote control and / or the smart curtain; Step S52: Based on the device information corresponding to the device to be configured on the network, generate a device add request and send it to the cloud server, so that after the cloud server successfully verifies the device add request, it will synchronize the device information corresponding to the device to be configured on the network to the client.
[0062] It should be noted that the existing device addition process requires manual pairing one by one, and the device information is not synchronized with the cloud server, making it impossible to achieve unified management of devices through the client APP. When users change terminal devices or mobile phones, all devices need to be reconfigured, which is cumbersome and results in a poor user experience.
[0063] In this embodiment, the user can select the curtain device and / or remote control device in the relevant interface of the client's APP, and initiate a network configuration command by clicking the "Start Network Configuration" button. After the client recognizes the user's network configuration command, it sends the command to the cloud server. The cloud server receives the command, verifies that the gateway is online, and then forwards the command to the Zigbee gateway corresponding to the target gateway identifier. The network configuration command includes information such as the user account identifier, the type of device to be added (curtain and / or remote control), and the target gateway identifier (the ZigBee gateway pre-bound by the user).
[0064] After receiving the network configuration command, the gateway activates its local ZigBee network scanning function to scan and identify devices to be configured within a preset range of the gateway's ZigBee signal. These devices include remote controls and / or smart curtains. After identifying the devices, the gateway obtains device information, including the device's MAC address, ZigBee short address, and device type. The gateway then records and adds this device information to its local ZigBee network, completing the local networking between the devices and the gateway. This enables communication between the gateway and the remote controls and / or smart curtains via the ZigBee network.
[0065] After scanning and identifying the devices to be configured in the local ZigBee network and collecting their information, the gateway will generate a device addition request based on the device information of each identified device. The device addition request includes the gateway ID that initiated the request, the device information of the device to be configured, and the user account identifier of the user initiating the configuration. The gateway will then send the generated device addition request to the cloud server.
[0066] Furthermore, the cloud server verifies whether the identifier of the device to be configured (e.g., the device's MAC address) has been bound to another user. Upon successful verification, the cloud server stores the device information of the device to be configured uniformly, and simultaneously completes the binding association between the device to be configured and the user account identifier and corresponding gateway of the current network. Further, the cloud server synchronizes the device information of the device to be configured to the client that initiated the network configuration operation. The client receives and displays the device information of the device to be configured sent by the cloud server. Subsequently, the user can configure the binding relationship between the remote control and each smart curtain based on the device displayed on the client. This embodiment achieves visualized network configuration and device configuration through a client APP. Device information is synchronized to the cloud server for filing and storage. When the user changes their mobile phone or adds a new device, there is no need to reconfigure the already configured devices; they only need to log in to the client to synchronously obtain all device information and complete management, greatly simplifying the operation process and improving the user experience.
[0067] In this embodiment, after receiving the network configuration command, the gateway identifies the devices to be configured within a preset range and adds the device information corresponding to the devices to be configured to the gateway's local network. This enables the gateway to communicate with the remote control and / or the smart curtains. After the network configuration is completed, the remote control can send button operation commands through the gateway's local ZigBee network. The gateway controls the smart curtains based on the pre-stored binding relationship, enabling the remote control to uniformly control multiple smart curtains.
[0068] In one feasible implementation, based on the device information corresponding to the device to be configured on the network, a device addition request is generated and sent to the cloud server. After the cloud server successfully verifies the device addition request and synchronizes the device information corresponding to the device to be configured on the network to the client, the method further includes: Step S61: In response to the binding relationship configuration instruction sent by the cloud server, the binding relationship configuration instruction is parsed to determine the binding relationship between the remote control and at least one of the smart curtains based on the parsing result, and the binding relationship is stored.
[0069] In this embodiment, users can view all ZigBee remote controls and smart curtains that have been configured and displayed in the device management interface of the client. Users can then initiate binding relationship configuration commands based on their own control needs. Specifically, users select a remote control in the client and check at least one smart curtain device that needs to be associated with that remote control. After confirming the configuration, the binding relationship selection operation is completed.
[0070] After the client recognizes the user's binding configuration operation, it generates a binding relationship configuration instruction, which includes information such as the user account identifier, the device information of the remote control (e.g., the MAC address and device ID of the remote control), and the device information of the selected N smart curtains to be bound (e.g., the MAC address and device ID of the smart curtains), where N is an integer greater than or equal to 1; then the client sends the binding relationship configuration instruction to the cloud server.
[0071] After receiving the binding relationship configuration instruction from the client, the cloud server first verifies the legality of the user account, gateway, and device ownership (ensuring that the device is under the user's name). After the verification is successful, the binding relationship configuration instruction is directly forwarded to the corresponding gateway. At the same time, the cloud server will synchronously store the binding relationship between the remote control and at least one selected smart curtain device in the cloud server's database.
[0072] After receiving the binding relationship configuration instruction forwarded by the cloud server, the gateway performs protocol parsing on the binding relationship configuration instruction to accurately extract the identifier of the remote control and the identifiers of all smart curtains bound to the remote control. Based on the parsing result, the gateway constructs the binding relationship between the remote control and at least one of the smart curtains. The gateway stores the binding relationship locally.
[0073] Furthermore, in one embodiment, after step S61, the following steps are also included: Step S62: In response to the configuration update command sent by the cloud server, update the binding relationship between the stored remote control and at least one smart curtain.
[0074] It should be noted that the binding relationship supports subsequent modification, unbinding, and rebinding requests initiated by the user on the client. In this embodiment, the user can also add, modify, or delete related binding relationships in the client. Optionally, the client responds to the user's configuration update command and forwards the configuration update command to the gateway through the cloud server. The gateway parses the configuration update command and updates the stored binding relationships according to the command parsing result.
[0075] This embodiment, through the above-described solution, relies on the collaborative cooperation of the remote control, gateway, cloud server, and client to support users in customizing the binding relationship between the remote control and each smart curtain on the client. This enables unified and centralized control of multiple bound smart curtains through a single remote control, effectively simplifying the user's operation process. It eliminates the need to configure dedicated remote controls for different smart curtains, improving ease of operation while reducing user costs and device management costs.
[0076] This application also provides a curtain control method, applied to a client-side application, as described below. Figure 4 , Figure 4 This is a flowchart illustrating Embodiment 3 of the curtain control method of this application.
[0077] Step S71: In response to the user's binding relationship configuration instruction, the binding relationship configuration instruction is sent to the gateway via the cloud server, so that the gateway can parse and store the binding relationship between the remote control and at least one smart curtain; when a button operation instruction is received from the remote control, at least one smart curtain to be controlled is determined according to the binding relationship; according to the button operation instruction, an execution instruction is generated, and the execution instruction is sent to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor can perform control operation on the smart curtain to be controlled according to the execution instruction.
[0078] In this embodiment, users can view all ZigBee remote controls and smart curtains that have been configured and displayed in the device management interface of the client. Users can then initiate binding relationship configuration commands based on their own control needs. Specifically, users select a remote control in the client and check at least one smart curtain device that needs to be associated with that remote control. After confirming the configuration, the binding relationship selection operation is completed.
[0079] After the client recognizes the user's binding configuration operation, it generates a binding relationship configuration instruction, which includes information such as the user account identifier, the device information of the remote control (e.g., the MAC address and device ID of the remote control), and the device information of the selected N smart curtains to be bound (e.g., the MAC address and device ID of the smart curtains), where N is an integer greater than or equal to 1; then the client sends the binding relationship configuration instruction to the cloud server.
[0080] After receiving the binding relationship configuration instruction from the client, the cloud server first verifies the legality of the user account, gateway, and device ownership (ensuring that the device is under the user's name). After the verification is successful, the binding relationship configuration instruction is directly forwarded to the corresponding gateway. At the same time, the cloud server will synchronously store the binding relationship between the remote control and at least one selected smart curtain device in the cloud server's database.
[0081] After receiving the binding relationship configuration instruction forwarded by the cloud server, the gateway performs protocol parsing on the binding relationship configuration instruction to accurately extract the identifier of the remote control and the identifiers of all smart curtains bound to the remote control. Based on the parsing result, the gateway constructs the binding relationship between the remote control and at least one of the smart curtains. The gateway stores the binding relationship locally.
[0082] Furthermore, the remote control and the gateway wirelessly transmit the button operation command via a ZigBee network. After receiving the button operation command from the remote control, the gateway retrieves the pre-stored binding relationship between the remote control and the smart curtains. Based on the binding relationship, it matches all smart curtains corresponding to the remote control that sent the button operation command, i.e., the smart curtains to be controlled in this embodiment. The gateway parses the user's control intention contained in the button operation command, such as opening / closing, pausing, or adjusting the opening degree, and generates corresponding execution commands based on the control intention. The execution commands are drive control signals that the curtain drive motors can directly recognize and execute. The drive control signals include specific execution parameters such as the motor's rotation direction, rotation duration, and start / stop commands. Furthermore, the gateway accurately sends the execution commands to the respective curtain drive motors of the smart curtains to be controlled. After receiving the execution command sent by the gateway, the curtain drive motor parses the execution command and identifies the motion control information contained in the execution command. The motion control information includes the motor's rotation direction, rotation speed, operation duration, start and stop commands, etc. Based on the motion control information, the curtain drive motor executes corresponding mechanical actions such as forward rotation, reverse rotation, constant speed operation, start and stop, or speed adjustment. Through these mechanical actions, the curtain body of the smart curtain to be controlled completes operations such as opening and closing, adjusting the degree of opening and closing, and pausing, thereby achieving precise control of the smart curtain.
[0083] Furthermore, in a feasible embodiment, after responding to the user's binding relationship configuration command and sending the binding relationship configuration command to the gateway via the cloud server so that the gateway can parse and store the binding relationship between the remote control and at least one smart curtain, the method further includes: In response to a user's configuration update command, the cloud server sends the configuration update command to the gateway, so that the gateway can update the stored binding relationship between the remote control and at least one smart curtain according to the configuration update command.
[0084] In this embodiment, the user can also add, modify or delete related binding relationships in the client. Optionally, the client responds to the user's configuration update command and then forwards the configuration update command to the gateway through the cloud server. The gateway parses the configuration update command and updates the stored binding relationships according to the command parsing result of the configuration update command.
[0085] This embodiment configures the binding relationship between the remote control and the smart curtains in the client and sends the binding relationship to the gateway for storage. The gateway centrally controls each smart curtain under the binding relationship based on the button operation commands sent by the remote control. There is no need to configure a dedicated remote control for each smart curtain. Users can control multiple smart curtains with one remote control, which not only simplifies the user's operation process, but also effectively reduces the user's usage cost.
[0086] In one feasible embodiment, before sending the binding relationship configuration instruction to the gateway via the cloud server in response to the user's binding relationship configuration instruction, the method further includes: In response to a user's network configuration command, the network configuration command is sent to the cloud server, which then forwards it to the gateway. Upon receiving the command, the gateway identifies devices within a preset range to be configured, including remote controls and / or smart curtains. The gateway adds the device information corresponding to the devices to be configured to the gateway's local network, enabling communication between the gateway and the remote controls and / or the smart curtains. Based on the device information, a device addition request is generated and sent to the cloud server. The gateway receives and displays the device information sent by the cloud server after successful verification of the device addition request.
[0087] In this embodiment, the user can select the curtain device and / or remote control device in the relevant interface of the client's APP, and initiate a network configuration command by clicking the "Start Network Configuration" button. After the client recognizes the user's network configuration command, it sends the command to the cloud server. The cloud server receives the command, verifies that the gateway is online, and then forwards the command to the Zigbee gateway corresponding to the target gateway identifier. The network configuration command includes information such as the user account identifier, the type of device to be added (curtain and / or remote control), and the target gateway identifier (the ZigBee gateway pre-bound by the user).
[0088] After receiving the network configuration command, the gateway activates its local ZigBee network scanning function to scan and identify devices to be configured within a preset range of the gateway's ZigBee signal. These devices include remote controls and / or smart curtains. After identifying the devices, the gateway obtains device information, including the device's MAC address, ZigBee short address, and device type. The gateway then records and adds this device information to its local ZigBee network, completing the local networking between the devices and the gateway. This enables communication between the gateway and the remote controls and / or smart curtains via the ZigBee network.
[0089] After scanning and identifying the devices to be configured in the local ZigBee network and collecting their information, the gateway will generate a device addition request based on the device information of each identified device. The device addition request includes the gateway ID that initiated the request, the device information of the device to be configured, and the user account identifier of the user initiating the configuration. The gateway will then send the generated device addition request to the cloud server.
[0090] Furthermore, the cloud server verifies whether the identifier of the device to be configured (e.g., the device's MAC address) has been bound to another user. After successful verification, the cloud server stores the device information of the device to be configured in a unified manner, and at the same time completes the binding association between the device to be configured and the user account identifier and corresponding gateway of the current network. Furthermore, the cloud server synchronizes the device information of the device to be configured to the client that initiated the network configuration operation. The client receives and displays the device information of the device to be configured sent by the cloud server. Subsequently, the user can configure the binding relationship between the remote control and each smart curtain according to the device displayed on the client.
[0091] This embodiment enables visualized network configuration and device setup through a client app. Device information is synchronized to the cloud server for filing and storage. When users change their phones or add new devices, they do not need to reconfigure the already configured devices. They only need to log in to the client to obtain all device information and complete management, which greatly simplifies the operation process and improves the user experience.
[0092] Reference Figure 5 , Figure 5 This is a flowchart illustrating Embodiment 4 of the curtain control method of this application. This application also provides a curtain control method applied to a curtain control system, the curtain control system including a remote controller, a gateway, and at least one smart curtain, the method comprising: Step S81: The remote control responds to the user's button operation command and sends the button operation command to the gateway; Step S82: The gateway determines at least one smart curtain to be controlled according to the button operation instruction and the pre-stored binding relationship between the remote control and the smart curtain. The gateway also generates an execution instruction according to the button operation instruction and sends the execution instruction to the curtain drive motor corresponding to the at least one smart curtain to be controlled. Step S83: The curtain drive motor performs control operations on the smart curtain to be controlled according to the execution command.
[0093] In this embodiment, the remote control and the gateway wirelessly transmit the button operation command via a ZigBee network. After receiving the button operation command sent by the remote control, the gateway retrieves the binding relationship between the remote control and the smart curtain that is stored locally in advance. Based on the binding relationship, it matches all the smart curtains corresponding to the remote control that sent the button operation command, that is, the smart curtains to be controlled in this embodiment.
[0094] Furthermore, the gateway parses the user's control intent contained in the button operation command, such as opening / closing, pausing, and adjusting the opening degree, and generates corresponding execution commands based on the control intent. These execution commands are drive control signals that the curtain drive motors can directly recognize and execute, including specific execution parameters such as the motor's rotation direction, operation duration, and start / stop commands. The gateway then precisely sends the execution commands to the respective curtain drive motors of the smart curtains to be controlled. Upon receiving the execution commands from the gateway, the curtain drive motors parse them, identifying the motion control information contained within. This motion control information includes the motor's rotation direction, speed, operation duration, and start / stop commands. Based on this motion control information, the curtain drive motors execute corresponding mechanical actions such as forward rotation, reverse rotation, constant speed operation, start / stop, or speed adjustment. These mechanical actions drive the curtain body of the corresponding smart curtain to complete operations such as opening / closing, adjusting the opening degree, and pausing, thereby achieving precise control of the smart curtains.
[0095] This embodiment uses a gateway to centrally manage the binding relationship between the remote control and the smart curtains. Based on the button operation commands sent by the remote control, it centrally controls each smart curtain under the binding relationship. There is no need to configure a separate remote control for each smart curtain. Users can control multiple smart curtains with a single remote control, which not only simplifies the user's operation process but also effectively reduces the user's usage cost.
[0096] This embodiment uses a gateway to centrally manage the binding relationship between the remote control and the smart curtains. The gateway centrally controls each smart curtain under the binding relationship based on the button operation commands sent by the remote control. There is no need to configure a dedicated remote control for each smart curtain. Users can control multiple smart curtains with a single remote control, which not only simplifies the user's operation process but also effectively reduces the user's usage cost.
[0097] It should be noted that the examples in the figure are only for understanding this application and do not constitute a limitation on the curtain control method of this application. Any simple modifications based on this technical concept are within the protection scope of this application.
[0098] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0099] This application also provides a curtain control device, which is applied to a remote control and includes: The button operation command sending module is used to respond to the user's button operation command and send the button operation command to the gateway. The gateway then determines at least one smart curtain to be controlled based on the button operation command and a pre-stored binding relationship between the remote control and the smart curtain. Based on the button operation command, the gateway generates an execution command and sends the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled. The curtain drive motor then performs control operations on the smart curtain to be controlled according to the execution command.
[0100] This application also provides a curtain control device, which is applied to a gateway and includes: The determination module is used to determine at least one smart curtain to be controlled in response to the button operation command sent by the remote control, according to the pre-stored binding relationship between the remote control and the smart curtain. The control module is used to generate an execution instruction based on the button operation instruction, and send the execution instruction to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor can perform control operation on the smart curtain to be controlled according to the execution instruction.
[0101] This application also provides a curtain control device, which is applied to a client and includes: The binding relationship configuration module is used to respond to the user's binding relationship configuration command by sending the binding relationship configuration command to the gateway through the cloud server, so that the gateway can parse and store the binding relationship between the remote control and at least one smart curtain; when receiving a button operation command sent by the remote control, it determines at least one smart curtain to be controlled according to the binding relationship; according to the button operation command, it generates an execution command and sends the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor can perform control operation on the smart curtain to be controlled according to the execution command.
[0102] The curtain control device provided in this application, employing the curtain control method in the above embodiments, can solve the technical problems mentioned in the background art. Compared with the prior art, the beneficial effects of the curtain control device provided in this application are the same as those of the curtain control method provided in the above embodiments, and other technical features in the curtain control device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0103] This application provides a curtain control device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the curtain control method in Embodiment 1 above.
[0104] The following is for reference. Figure 6 , Figure 6 This is a schematic diagram of the device structure of the hardware operating environment involved in the curtain control method in this application embodiment. The curtain control device in this application embodiment may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), vehicle terminals (such as vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The curtain control device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of this application.
[0105] like Figure 6As shown, the curtain control device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory 1002 or a program loaded from a storage device 1003 into a random access memory 1004. The random access memory 1004 also stores various programs and data required for the operation of the curtain control device. The processing unit 1001, the read-only memory 1002, and the random access memory 1004 are interconnected via a bus 1005. An input / output interface 1006 is also connected to the bus. Typically, the following systems can be connected to the input / output interface 1006: input devices 1007 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage devices 1003 including, for example, magnetic tape, hard disk, etc.; and communication devices 1009. Communication device 1009 allows the curtain control device to communicate wirelessly or wiredly with other devices to exchange data. Although curtain control devices with various systems are shown in the figures, it should be understood that implementation or possession of all the systems shown is not required. More or fewer systems may be implemented alternatively.
[0106] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from read-only memory 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0107] The curtain control device provided in this application, employing the curtain control method in the above embodiments, can solve the technical problems mentioned in the background art. Compared with the prior art, the beneficial effects of the curtain control device provided in this application are the same as those of the curtain control method provided in the above embodiments, and other technical features of the curtain control device are the same as those disclosed in the previous embodiment method, and will not be repeated here.
[0108] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0109] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0110] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the curtain control method in the above embodiments.
[0111] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems or devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0112] The aforementioned computer-readable storage medium may be included in the curtain control device; or it may exist independently and not be assembled into the curtain control device.
[0113] The aforementioned computer-readable storage medium carries one or more programs. When these programs are executed by the curtain control device, the curtain control device: responds to a user's key operation command, sends the key operation command to a gateway, so that the gateway, based on the key operation command and a pre-stored binding relationship between the remote control and the smart curtain, determines at least one smart curtain to be controlled, and generates an execution command based on the key operation command, sending the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled. The curtain drive motor then performs a control operation on the smart curtain to be controlled according to the execution command. By sending key operation commands from the remote control to the gateway, the gateway can centrally control each smart curtain corresponding to the binding relationship based on the key operation commands sent by the remote control. This eliminates the need for a separate remote control for each smart curtain, allowing users to control multiple smart curtains with a single remote control, simplifying the user's operation process and effectively reducing user costs.
[0114] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0116] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0117] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described curtain control method, and is capable of solving the technical problems described in the background art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as the beneficial effects of the curtain control method provided in the above embodiments, and will not be repeated here.
[0118] This application provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the curtain control method described above.
[0119] The computer program product provided in this application can solve the technical problems described in the background section. Compared with the prior art, the beneficial effects of the computer program product provided in the embodiments of this application are the same as the beneficial effects of the curtain control method provided in the above embodiments, and will not be repeated here.
[0120] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A curtain control method, characterized in that, Applied to remote controls, including: In response to a user's button operation command, the button operation command is sent to a gateway. The gateway then determines at least one smart curtain to be controlled based on the button operation command and a pre-stored binding relationship between the remote control and the smart curtain. Based on the button operation command, the gateway generates an execution command and sends the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled. The curtain drive motor then performs a control operation on the smart curtain to be controlled according to the execution command.
2. The curtain control method as described in claim 1, characterized in that, The key operation instructions include channel mode selection instructions and function key operation instructions; The step of responding to a user's key operation command by sending the key operation command to a gateway, allowing the gateway to determine at least one smart curtain to be controlled based on the key operation command and a pre-stored binding relationship between the remote control and the smart curtain, and to generate an execution command based on the key operation command, and send the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled, including: In response to the user's channel mode selection command and function key operation command, the channel mode selection command and function key operation command are sent to the gateway, so that the gateway can determine the target control channel according to the channel mode selection command; determine the at least one smart curtain to be controlled according to the binding relationship between the target control channel under the remote control and the smart curtain; generate the execution command according to the function key operation command, and send the execution command to the curtain drive motor corresponding to the smart curtain to be controlled.
3. The curtain control method as described in claim 1, characterized in that, The button operation commands include scene selection commands; In response to a user's key press operation command, the key press operation command is sent to a gateway. The gateway, based on the key press operation command and a pre-stored binding relationship between the remote control and the smart curtain, determines at least one smart curtain to be controlled. Based on the key press operation command, the gateway generates an execution command and sends the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled. The curtain drive motor then performs a control operation on the smart curtain to be controlled according to the execution command, including: In response to a user's scene selection command, the scene selection command is sent to the gateway, so that the gateway can determine at least one smart curtain to be controlled and the scene execution parameters associated with each smart curtain to be controlled according to the binding relationship based on the scene selection command; for each smart curtain to be controlled, a corresponding execution command is generated according to the scene execution parameters of the smart curtain to be controlled, and the execution command is sent to the curtain drive motor corresponding to the smart curtain to be controlled.
4. A curtain control method, characterized in that, Applied to gateways, including: In response to a button operation command sent by the remote control, at least one smart curtain to be controlled is determined according to the pre-stored binding relationship between the remote control and the smart curtain; Based on the button operation command, an execution command is generated and sent to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor can perform control operation on the smart curtain to be controlled according to the execution command.
5. The curtain control method as described in claim 4, characterized in that, The key operation instructions include channel mode selection instructions and function key operation instructions; The process of responding to a button operation command sent by the remote control and determining at least one smart curtain to be controlled according to a pre-stored binding relationship between the remote control and the smart curtain includes: The target control channel is determined according to the channel mode selection instruction; Based on the binding relationship between the target control channel of the remote control and the smart curtain, determine the at least one smart curtain to be controlled; The step of generating an execution command based on the button operation instruction, and sending the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled, includes: Based on the function key operation instructions, the execution instruction is generated and sent to the curtain drive motor corresponding to the smart curtain to be controlled.
6. The curtain control method as described in claim 4, characterized in that, The button operation commands include scene selection commands; The process of responding to a button operation command sent by the remote control and determining at least one smart curtain to be controlled according to a pre-stored binding relationship between the remote control and the smart curtain includes: Based on the scenario selection instruction, at least one smart curtain to be controlled is determined according to the binding relationship; The step of generating an execution command based on the button operation instruction, and sending the execution command to the curtain drive motor corresponding to the at least one smart curtain to be controlled, includes: Based on the scene selection instruction, query the scene execution parameters associated with each smart curtain to be controlled; For each smart curtain to be controlled, a corresponding execution instruction is generated based on the scene execution parameters of the smart curtain to be controlled, and the execution instruction is sent to the curtain drive motor corresponding to the smart curtain to be controlled.
7. The curtain control method as described in claim 4, characterized in that, Before determining at least one smart curtain to be controlled according to the pre-stored binding relationship between the remote control and the smart curtain in response to a button operation command sent by the remote control, the method further includes: In response to a network configuration command sent by a cloud server, the device to be configured within a preset range is identified, wherein the device to be configured includes a remote control and / or a smart curtain. Add the device information corresponding to the device to be configured to the local network of the gateway, so that the gateway can communicate with the remote control and / or the smart curtain; Based on the device information corresponding to the device to be configured on the network, a device addition request is generated and sent to the cloud server, so that after the cloud server successfully verifies the device addition request, it will synchronize the device information corresponding to the device to be configured on the network to the client.
8. The curtain control method as described in claim 7, characterized in that, The step of generating a device add request based on the device information corresponding to the device to be configured on the network and sending it to the cloud server, so that after the cloud server successfully verifies the device add request, it synchronizes the device information corresponding to the device to be configured on the network to the client, further includes: In response to the binding relationship configuration instruction sent by the cloud server, the binding relationship configuration instruction is parsed to determine the binding relationship between the remote control and at least one of the smart curtains based on the parsing result, and the binding relationship is stored.
9. A curtain control method, characterized in that, Applied to the client side, including: In response to a user's binding configuration command, the binding configuration command is sent to a gateway via a cloud server, so that the gateway can parse and store the binding relationship between the remote control and at least one smart curtain; when a button operation command is received from the remote control, at least one smart curtain to be controlled is determined according to the binding relationship; based on the button operation command, an execution command is generated and sent to the curtain drive motor corresponding to the at least one smart curtain to be controlled, so that the curtain drive motor can perform control operations on the smart curtain to be controlled according to the execution command.
10. The curtain control method as described in claim 9, characterized in that, Before sending the binding relationship configuration command to the gateway via the cloud server in response to the user's command, the process further includes: In response to a user's network configuration command, the network configuration command is sent to the cloud server, which then forwards the command to the gateway. Upon receiving the command, the gateway identifies devices within a preset range to be configured. The device information corresponding to the devices to be configured is added to the gateway's local network, enabling the gateway to communicate with the remote control and / or the smart curtain. Based on the device information corresponding to the devices to be configured, a device addition request is generated and sent to the cloud server. The devices to be configured include the remote control and / or the smart curtain. Receive and display the device information sent by the cloud server after the device addition request verification is successful.