Equipment control method, device and system, electronic equipment and readable storage medium
By sending control commands from the master control device to the controlled device and linking related devices, the problem of users being unable to control multiple devices simultaneously is solved, thus improving the convenience of control.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN LUMIUNITED TECH CO LTD
- Filing Date
- 2025-12-31
- Publication Date
- 2026-04-21
AI Technical Summary
Users find it difficult to control multiple controlled devices simultaneously, resulting in poor control convenience.
The master control device displays the device page of the controlled device, responds to the user's control operation, sends control commands to the controlled device, and automatically sends the same command to the associated device when there is an associated device, so as to realize the linkage control of multiple devices.
It enables simultaneous control of multiple controlled devices, improving the user's control convenience.
Smart Images

Figure CN121900864A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of equipment control technology, and in particular to an equipment control method, apparatus, system, electronic device, computer-readable storage medium, and computer program product. Background Technology
[0002] When users want to control multiple controlled devices, they usually need to operate on the device itself of each controlled device, or control each controlled device through the device page of each controlled device. It is difficult to control multiple controlled devices at the same time, which makes it difficult for users to control the controlled devices. Summary of the Invention
[0003] Therefore, it is necessary to address the aforementioned technical problem of poor control convenience of the controlled equipment by providing a device, apparatus, system, electronic device, computer-readable storage medium, and computer program product that can enhance control convenience.
[0004] In a first aspect, this application provides a device control method, comprising:
[0005] A first device page is displayed for the first controlled device; the first device page includes the control components of the first controlled device;
[0006] In response to a control operation on the control component, a first control command corresponding to the control operation is sent to the first controlled device to cause the first controlled device to perform a first action corresponding to the first control command, and to cause the first controlled device to send the first control command to the second controlled device if an associated second controlled device exists; the second controlled device is used to perform the first action corresponding to the first control command.
[0007] Secondly, this application also provides another device control method, including:
[0008] In response to a first control command sent by the master control device, a first action corresponding to the first control command is executed; the first control command is a control command sent by the master control device to the first controlled device in response to a control operation of a control component for the first controlled device, and the control component is displayed on the first device page of the first controlled device displayed by the master control device;
[0009] If there is a second controlled device associated with the first controlled device, the first control command is sent to the second controlled device so that the second controlled device performs the first action corresponding to the first control command.
[0010] Thirdly, this application also provides a device control apparatus, comprising:
[0011] The display module is used to display the first device page of the first controlled device; the first device page includes the control components of the first controlled device;
[0012] The control module is configured to, in response to a control operation on the control component, send a first control command corresponding to the control operation to the first controlled device, so that the first controlled device performs a first action corresponding to the first control command, and to send the first control command to the second controlled device if an associated second controlled device exists; the second controlled device is configured to perform the first action corresponding to the first control command.
[0013] Fourthly, this application also provides another device control apparatus, including:
[0014] An execution module is used to respond to a first control command sent by a master control device and execute a first action corresponding to the first control command; the first control command is a control command sent by the master control device to the first controlled device in response to a control operation of a control component for the first controlled device, and the control component is displayed on a first device page of the first controlled device displayed by the master control device;
[0015] The sending module is configured to send the first control command to the second controlled device when the first controlled device has an associated second controlled device, so that the second controlled device performs the first action corresponding to the first control command.
[0016] Fifthly, this application also provides an equipment control system, including a master control device, a first controlled device, and a second controlled device associated with the first controlled device;
[0017] The main control device is used to display a first device page of the first controlled device; the first device page includes a control component of the first controlled device; in response to a control operation on the control component, a first control command corresponding to the control operation is sent to the first controlled device;
[0018] The first controlled device is configured to perform a first action corresponding to the first control command, and, in the presence of the second controlled device, to send the first control command to the second controlled device;
[0019] The second controlled device is used to execute the first action corresponding to the first control command.
[0020] Sixthly, this application also provides an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor performs the steps of the above-described method.
[0021] In a seventh aspect, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the above-described method.
[0022] Eighthly, this application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the above-described method.
[0023] The aforementioned device control method, apparatus, system, electronic device, computer-readable storage medium, and computer program product, firstly, a master control device displays a first device page of a first controlled device; the first device page includes control components of the first controlled device; then, in response to a control operation on the control components, the master control device sends a first control command corresponding to the control operation to the first controlled device, causing the first controlled device to perform a first action corresponding to the first control command, and also causing the first controlled device to send a first control command to a second controlled device if a second controlled device is associated with it; the second controlled device is used to perform the first action corresponding to the first control command. Based on this application, by sending a first control command from the master control device to the first controlled device to cause the first controlled device to perform a first action, and by sending a first control command from the first controlled device to its associated second controlled device to cause the second controlled device to perform a first action, simultaneous control of multiple controlled devices can be achieved, thus enhancing the user's convenience in controlling the controlled devices. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only one embodiment of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0025] Figure 1 This is an application environment diagram of the device control method in one embodiment;
[0026] Figure 2 This is a flowchart illustrating a device control method in one embodiment;
[0027] Figure 3 This is a schematic diagram of a first device page in one embodiment;
[0028] Figure 4This is a schematic diagram illustrating the display of the corresponding association result message on the first device page in one embodiment;
[0029] Figure 5 This is a schematic diagram illustrating the display of associated operation prompts on a first device page in one embodiment;
[0030] Figure 6 This is a schematic diagram illustrating the display of associated progress prompt information on a first device page in one embodiment.
[0031] Figure 7 This is a schematic diagram showing the configuration of a second controlled device in one embodiment;
[0032] Figure 8 This is a schematic diagram illustrating the disconnection between the first controlled device and the second controlled device in one embodiment;
[0033] Figure 9 This is a schematic diagram illustrating the forced disconnection of the association between the first controlled device and the second controlled device in one embodiment;
[0034] Figure 10 This is a flowchart illustrating the device control method in another embodiment;
[0035] Figure 11 This is a timing diagram for associating a first controlled device with a device to be associated in one embodiment;
[0036] Figure 12 This is a timing diagram illustrating the process of terminating the association between the first controlled device and the second controlled device in one embodiment.
[0037] Figure 13 This is a timing diagram illustrating the forced disconnection of the first controlled device from the second controlled device in one embodiment.
[0038] Figure 14 This is an application environment diagram of a smart home system in one embodiment;
[0039] Figure 15 This is a structural block diagram of the device control apparatus in one embodiment;
[0040] Figure 16 This is a structural block diagram of the device control apparatus in another embodiment;
[0041] Figure 17 This is a schematic diagram of the device control system in one embodiment;
[0042] Figure 18 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0043] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0044] It is understood that terms such as "first" and "second" in this application are used only to distinguish similar objects and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. The term "connection" in the embodiments of this application refers to various connection methods, such as direct or indirect connections, to achieve communication between devices; this application does not impose any limitations on this.
[0045] It is understandable that "at least one" refers to one or more, while "multiple" refers to two or more.
[0046] When used herein, the singular forms of “a,” “an,” and “the” may also include the plural forms unless the context clearly indicates otherwise. It should also be understood that the terms “comprising / including” or “having,” etc., specify the presence of the stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not preclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. Meanwhile, the term “and / or” as used in this specification includes any and all combinations of the associated listed items.
[0047] It should be noted that the user information (including but not limited to user device information, user personal information, such as master control device information, controlled device information, user information on the master control device, user information on the controlled device, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0048] When users want to control multiple devices, such as multiple door locks, multiple lights, or multiple curtains, they usually need to operate each device individually. Even if the devices are upgraded to smart devices, they still need to control each device through its own interface, making it difficult to control multiple devices simultaneously. This results in poor user convenience in controlling the devices.
[0049] To address the aforementioned issues, this application proposes displaying a first device page of a first controlled device. The first device page includes a control component for the first controlled device. In response to a control operation on the control component, a first control command corresponding to the control operation is sent to the first controlled device to cause the first controlled device to perform a first action corresponding to the first control command. Furthermore, the first controlled device, in the presence of an associated second controlled device, sends a first control command to a second controlled device. The second controlled device is used to perform the first action corresponding to the first control command. Based on this application, by sending a first control command from a master control device to the first controlled device to cause the first controlled device to perform a first action, and by sending a first control command from the first controlled device to an associated second controlled device to cause the second controlled device to perform a first action, simultaneous control of multiple controlled devices can be achieved, thus enhancing the user's convenience in controlling the controlled devices.
[0050] The device control method provided in this application embodiment can be applied to, for example, Figure 1 The application environment shown includes a terminal device 102 and a smart device 104 communicatively connected to the terminal device 102. The number of terminal devices 102 and smart devices 104 can be at least one. In specific applications, such as... Figure 1 The application environments shown can be, but are not limited to, smart home systems or industrial IoT systems.
[0051] The following explanation uses an application in a smart home system as an example.
[0052] Among them, terminal device 102 refers to the terminal used by the user, which may include smart interactive terminals such as smartphones, large screens, TVs, central control screens, personal computers (PCs), tablets, and personal digital assistants (PDAs).
[0053] Among them, smart devices 104 may include various smart home devices installed in indoor spaces, including but not limited to smart door locks, smart windows, smart curtains, smart lights, smart clothes racks, smart TVs, smart speakers, smart air conditioners, smart fans, smart refrigerators, smart sockets, smart switches, smart sensor devices, etc. The smart sensor devices include but are not limited to light sensors, temperature and humidity sensors, sound sensors, infrared sensors, door magnetic sensors, PM2.5 sensors, gas concentration sensors, human body sensors, millimeter-wave radar, etc.
[0054] Optionally, the terminal device 102 can provide an intuitive visual interface, allowing users to view the controllable smart device 104 within the interface. For example, a user can quickly and accurately select a smart device 104 to be controlled in the interface and perform control operations on it. Based on the user's selection and specific control operations, the terminal device 102 controls the smart device 104 through a communication connection with it.
[0055] In this embodiment, the smart home system may further include a gateway 106 that is communicatively connected to the terminal device 102 and the smart device 104. The number of gateways 106 may be at least one.
[0056] In some implementations, gateway 106 can be an intelligent gateway capable of controlling intelligent device 104, enabling functions such as system information collection, information input, information output, centralized control, remote control, and linkage control. Gateway 106 can be responsible for specific security alarms, home appliance control, and electricity consumption information collection. Gateway 106 can also wirelessly interact with products such as intelligent interactive terminals. Gateway 106 also possesses wireless routing capabilities, excellent wireless performance, network security, and coverage.
[0057] In some implementations, the smart device 104 connected to the gateway 106 can interact with the gateway 106 to exchange information and commands. The gateway 106 and the smart device 104 can be connected via communication methods such as Bluetooth, WiFi (Wireless-Fidelity), and ZigBee. Of course, the connection method between the gateway 106 and the smart device 104 is not specifically limited in this embodiment.
[0058] In this embodiment, the smart home system may further include a server 108 that is communicatively connected to the gateway 106. The server 108 may be a local server, a cloud server, or other server. The server 108 may be implemented using a standalone server or a server cluster composed of multiple servers. The specific type of server is not limited in this embodiment.
[0059] In some implementations, the server 108 connected to the gateway 106 can exchange information with the gateway 106 wirelessly. Gateways 106 located in different indoor spaces can all communicate with the same server 108 via a network to exchange information between the server 108 and the gateway 106.
[0060] In some implementations, the terminal device 102 can interact with the server 108 via wireless methods such as 2G / 3G / 4G / 5G / WiFi. Of course, the connection method between the terminal device 102 and the server 108 is not limited in this embodiment.
[0061] In this embodiment of the application, the smart home system may further include a router 110 that is communicatively connected to the gateway 106.
[0062] In some implementations, terminal device 102 can also be used to interact with users, facilitating wireless communication between users and gateway 106 via router 110. Additionally, users can add an account to both gateway 106 and terminal device 102, enabling information synchronization between the two devices.
[0063] In one embodiment, a user can set different trigger scenarios or automated linkages through an application (App) of the smart home system running on the terminal device 102. As one approach, the terminal device 102 can upload scene configuration information or automation schemes to the server 108. When the trigger conditions of the trigger scenario or automation are met, the server 108 can find the device corresponding to the execution action in the stored scene configuration information or automation scheme, and notify the device to perform the action to satisfy the execution result of the trigger scenario or automation. Alternatively, the server 108 can also send the scene configuration information or automation schemes to the gateway 106, which can then find the device corresponding to the execution action in the stored scene configuration information or automation scheme. Simultaneously, the gateway 106 can feed back the device's execution status to the server 108.
[0064] For example, such as Figure 1 The LAN path shown indicates that terminal device 102 is in the same LAN as router 110 and gateway 106, while the WAN path indicates that terminal device 102 is not in the same LAN as router 110 and gateway 106. When terminal device 102 is in the same LAN as router 110 and gateway 106, terminal device 102 can access the WAN path as follows: Figure 1 The local area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106; it can also be accessed through, for example... Figure 1 The wide area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106. When terminal device 102 is not in the same local area network as router 110 and gateway 106, terminal device 102 can interact via, as shown in... Figure 1 The wide area network path shown interacts with gateway 106 and smart device 104 connected to gateway 106.
[0065] In another implementation, the smart device 104 may not be connected to the gateway 106, but can directly establish a connection with the terminal device 102 via wireless communication (such as ZigBee or Bluetooth) to transmit data. It should be noted that in the embodiments of this application, the terminal device 102 can send control commands to the smart device 104, thereby controlling the operation of the smart device 104.
[0066] In another implementation, the smart devices 104 can communicate with each other directly via wireless communication methods (such as ZigBee or Bluetooth) instead of through the gateway 106. It should be noted that in the embodiments of this application, the smart devices 104 can send control commands to each other to control each other's operation.
[0067] In one embodiment, such as Figure 2 As shown, a device control method is provided. This method is applicable to a master control device, which can be, for example, a device control device with the following characteristics. Figure 1 The system shown includes terminal devices, smart devices, gateways, servers, etc.; see reference. Figure 2 In this embodiment, the method includes the following steps:
[0068] Step S202: Display the first device page of the first controlled device; the first device page includes the control components of the first controlled device.
[0069] The main control device runs an application for the smart home system, allowing users to manage and control the smart home system through the application.
[0070] Among them, the first controlled device is as follows Figure 1 The system shown includes intelligent devices; for example, the first controlled device includes, but is not limited to, smart door locks, smart windows, smart curtains, smart lights, smart clothes racks, smart TVs, smart speakers, smart air conditioners, smart fans, smart refrigerators, smart sockets, smart switches, smart sensor devices, etc.
[0071] The device page for a smart device refers to the page corresponding to the smart device in the smart home system application. In practical applications, users can manage and control smart devices through the device page. In some embodiments, the device page includes multiple pages, such as a main page and multiple sub-pages. By triggering operations on various components within the device page, such as click operations, selection operations, and control operations, the device page will navigate between the multiple included pages.
[0072] The first device page is the device page of the first controlled device; for example, taking a smart door lock as the first controlled device, such as... Figure 3 The image shown is a schematic diagram of the first device page.
[0073] The control components on the device page of a smart device are used to control the functions of the smart device, and each smart device has at least one control component. For example, taking a smart door lock as the first controlled device, the control components include a door lock switch control component, such as... Figure 3 In the "long press to unlock" method, users can control the smart door lock to unlock and lock via the door lock switch control component. Taking a smart light fixture as the first controlled device, the control component includes a light fixture switch control component, which allows users to control the smart light fixture to turn on and off. Furthermore, the control component can also include a brightness control component, a color temperature control component, etc., which allow users to control the brightness and color temperature of the smart light fixture. Taking a smart air conditioner as the first controlled device, the control component includes an air conditioner switch control component, which allows users to control the smart air conditioner to turn on and off. Furthermore, the control component can also include a temperature control component, a fan speed control component, a mode control component, etc., which allow users to control the temperature, fan speed, and operating mode of the smart air conditioner.
[0074] In this step, the master control device displays a first device page, which includes the control components of the first controlled device, through the application of the smart home system it is running.
[0075] Step S204: In response to a control operation on a control component, a first control command corresponding to the control operation is sent to a first controlled device to cause the first controlled device to perform a first action corresponding to the first control command; and, if there is an associated second controlled device, the first controlled device sends a first control command to a second controlled device; the second controlled device is used to perform the first action corresponding to the first control command.
[0076] Among them, the second controlled device is as follows Figure 1 The system shown includes smart devices associated with a first controlled device. In some embodiments, if the first controlled device has an associated second controlled device, the number of second controlled devices is at least one; in other embodiments, if the first controlled device has an associated second controlled device, the number of second controlled devices is one, that is, the first controlled device is associated with one second controlled device.
[0077] In this step, the master control device responds to the user's control operation on the control component in the first device page by sending a first control command corresponding to the control operation to the first controlled device. The first controlled device responds to the first control command sent by the master control device by executing the corresponding first action. At the same time, if the first controlled device detects that it has an associated second controlled device, it also sends a first control command to the second controlled device. The second controlled device also responds to the first control command sent by the first controlled device by executing the corresponding first action. Based on this step, the linkage control of the first and second controlled devices is realized.
[0078] In practical applications, the second controlled device needs to perform the same first action as the first controlled device. Therefore, the second controlled device and the first controlled device are the same type of smart device. For example, if the first controlled device is a smart door lock, the second controlled device is also a smart door lock. Or, for example, if the first controlled device is a smart lamp, the second controlled device is also a smart lamp. Furthermore, the second controlled device and the first controlled device are smart devices of the same product model.
[0079] Taking the first and second controlled devices as smart door locks as an example, see [link / reference]. Figure 3 The "Long press to unlock" component is the control component of the first controlled device. If the user long presses the "Long press to unlock" component on the first device's page, the main control device sends an unlock command to the first controlled device. The first controlled device responds to the unlock command sent by the main control device by performing the unlocking action and also sends an unlock command to the second controlled device. The second controlled device responds to the unlock command sent by the first controlled device by performing the unlocking action in the same way.
[0080] In the aforementioned device control method, firstly, the master control device displays a first device page of the first controlled device; the first device page includes control components of the first controlled device; then, in response to a control operation on the control components, the master control device sends a first control command corresponding to the control operation to the first controlled device, causing the first controlled device to perform a first action corresponding to the first control command, and causing the first controlled device to send a first control command to the second controlled device if an associated second controlled device exists; the second controlled device is used to perform the first action corresponding to the first control command. Based on this application, by sending a first control command from the master control device to the first controlled device to cause the first controlled device to perform a first action, and by sending a first control command from the first controlled device to the associated second controlled device to cause the second controlled device to perform a first action, simultaneous control of multiple controlled devices can be achieved, thus enhancing the user's convenience in controlling the controlled devices.
[0081] In one embodiment, before sending the first control command corresponding to the control operation to the first controlled device in response to the control operation for the control component in step S202, the method further includes the following steps: determining the device to be associated; controlling the first controlled device to establish a communication channel with the device to be associated; associating the first controlled device and the device to be associated through the communication channel to obtain a second controlled device associated with the first controlled device.
[0082] Among them, the devices to be associated are, for example, Figure 1 The system shown includes smart devices that are to be associated with a first controlled device. In practical applications, the device to be associated and the first controlled device are the same type of smart device, and further, the device to be associated and the first controlled device are the same product model of smart devices. In some embodiments, the number of devices to be associated is at least one; in other embodiments, the number of devices to be associated is one.
[0083] The first controlled device is used to communicate with the second controlled device through a communication channel after the device to be associated becomes the second controlled device, for example, by sending a first control command.
[0084] The communication channels include, but are not limited to, Bluetooth communication channels, WiFi communication channels, ZigBee communication channels, and Thread communication. That is, the first controlled device and the second controlled device can communicate through Bluetooth communication, WiFi communication, ZigBee communication, Thread communication, etc. In practical applications, the communication channel between the first controlled device and the second controlled device is a BLE (Bluetooth Low Energy) communication channel to achieve low-power, low-latency communication between the first controlled device and the second controlled device.
[0085] In this embodiment, the master control device determines the device to be associated with the first controlled device based on the user's associated device configuration operation; then, the master control device controls the first controlled device to establish a communication channel with the device to be associated, and after the communication channel is established, the master control device associates the first controlled device and the device to be associated through the communication channel to obtain the second controlled device associated with the first controlled device.
[0086] In some embodiments, during the process of associating the first controlled device with the device to be associated, the master control device will also display a corresponding association result message on the first device page based on the association result. For example, if the association fails, the master control device will display an association failure message on the first device page, which informs the first controlled device that the association with the device to be associated has failed. If the association succeeds, the master control device will display an association success message on the first device page, which informs the first controlled device that the association with the device to be associated has succeeded. In practical applications, association failure may occur if the first controlled device or the device to be associated does not meet the preset association conditions, the communication channel establishment times out, the first distance between the first controlled device and the device to be associated is greater than or equal to a preset first distance, or the second distance between the master control device and the device to be associated is greater than or equal to a preset distance. The preset association conditions include power conditions and association status conditions. The power condition refers to the remaining available power of the smart device being greater than or equal to a preset power threshold. The association status condition refers to the association status of the smart device being unassociated. The association status is used to characterize whether the smart device is associated with other smart devices to achieve linkage control. For example, taking a smart door lock as the first controlled device, such as... Figure 4 The image shown is a schematic diagram illustrating the display of the corresponding associated result messages on the first device page.
[0087] In this embodiment, the master control device can determine the device to be associated with the first controlled device, establish a communication channel between the first controlled device and the device to be associated, and associate the first controlled device and the device to be associated through the communication channel, thereby obtaining the second associated device associated with the first controlled device.
[0088] In one embodiment, the above steps, controlling the first controlled device to establish a communication channel with the device to be associated, include the following steps: displaying association operation prompt information for the device to be associated on the first device page; the association operation prompt information is used to prompt the device to be associated to perform a trigger operation to trigger the device to be associated to send an association broadcast signal; controlling the first controlled device to establish a communication channel according to the association broadcast signal.
[0089] The association operation prompt information is used to prompt the device to be associated to perform a trigger operation, thereby triggering the device to issue an association broadcast signal. In practical applications, the device to be associated can be triggered through the device itself, such as physical buttons or knobs, or through corresponding components in the device's interface. Taking a smart door lock as an example, if the device to be associated is a smart door lock... Figure 5 The image shown is a schematic diagram illustrating the display of associated operation prompts on the first device page. (See attached image.) Figure 5The association operation prompt message instructs the user to trigger the associated broadcast signal by pressing the set button on the device to be associated.
[0090] Among them, the associated broadcast signal refers to the broadcast signal issued by the device to be associated, which indicates that it is waiting to be associated.
[0091] In this embodiment, after the master control device determines the device to be associated, it displays association operation prompt information on the first device page to prompt the user to perform a trigger operation on the device to be associated, so that the user can trigger the device to be associated to send an association broadcast signal; then, the master control device controls the first controlled device to establish a communication channel based on the association broadcast signal.
[0092] In this embodiment, the master control device can display association operation prompts to guide the user to perform the next operation, so that the user can smoothly complete the association operation between the first controlled device and the device to be associated.
[0093] In one embodiment, the above steps of controlling the first controlled device to establish a communication channel based on the associated broadcast signal include the following steps: displaying a trigger confirmation component for the device to be associated on the first device page; in response to the confirmation operation of the trigger confirmation component, sending a broadcast signal scanning command carrying the device identifier of the device to be associated to the first controlled device, so that the first controlled device scans the associated broadcast signal based on the device identifier and establishes a communication channel based on the scanned associated broadcast signal.
[0094] Among them, the device identifier of a smart device is the device information that can uniquely identify a smart device.
[0095] The associated broadcast signal emitted by the device to be associated carries the device identifier of the device to be associated.
[0096] The broadcast signal scanning command is used to instruct the first controlled device to perform a broadcast signal scan.
[0097] The trigger confirmation component is used to confirm whether the triggering operation for the associated device has been completed.
[0098] In this embodiment, while displaying the associated operation prompt information, refer to Figure 5The main control device also displays a trigger confirmation component for the device to be associated on the first device page. After the user completes the trigger operation for the device to be associated, they can confirm the confirmation component to confirm that the trigger operation has been completed. In response to the user's confirmation operation on the confirmation component, the main control device sends a broadcast signal scanning command carrying the device identifier of the device to be associated to the first controlled device. This allows the first controlled device to scan for broadcast signals based on the device identifier of the device to be associated, in order to scan for the associated broadcast signal emitted by the device to be associated, and establish a communication channel based on the scanned associated broadcast signal. In practical applications, a timeout in the associated broadcast signal scan can also lead to association failure.
[0099] In some embodiments, in response to a user's confirmation operation on the confirmation component, the master control device may also display association progress information on the first device page to inform the user that the first controlled device and the device to be associated are being associated. The association progress information is used to inform the user that the master control device is associating the first controlled device and the device to be associated. For example, taking a smart door lock as an example, if the device to be associated is... Figure 6 The image shown is a schematic diagram illustrating the display of associated progress information on the first device page.
[0100] In this embodiment, the master control device can determine whether the user has completed the triggering operation of the device to be associated through the confirmation component, thereby ensuring that the first controlled device performs broadcast signal scanning when the device to be associated has sent an associated broadcast signal; at the same time, by using the broadcast signal scanning command carrying the device identifier of the device to be associated, the first controlled device can correctly scan the associated broadcast signal sent by the device to be associated.
[0101] In one embodiment, the above step of determining the device to be associated includes the following steps: in response to a trigger operation on the associated device configuration entry displayed on the first device page, displaying at least one candidate device that can be associated with the first controlled device; in response to a selection operation on any candidate device, determining the selected candidate device as the device to be associated.
[0102] Among them, the candidate devices are as follows: Figure 1 The smart devices in the smart home system shown are those that can be associated with the first controlled device. In practical applications, the candidate device is a smart device of the same type as the first controlled device. For example, both the first controlled device and the device to be associated can be smart door locks. Furthermore, the device to be associated and the first controlled device are smart devices of the same product model.
[0103] The associated device configuration entry is used to manage the second controlled device associated with the first controlled device, such as configuring the second controlled device and removing the association relationship with the second controlled device.
[0104] In this embodiment, when a user needs to configure a second controlled device associated with a first controlled device, the associated device configuration entry on the first device page can be triggered. In response to the user's triggering operation on the associated device configuration entry, the main control device determines at least one candidate device that can be associated with the first controlled device from the smart home system where the first controlled device is located, and then displays each candidate device and its corresponding associated entry on the first device page. The user can select from each candidate device according to the association requirements and trigger the corresponding associated entry. The main control device determines the candidate device whose corresponding associated entry has been triggered as the device to be associated.
[0105] For example, taking a smart door lock as the first controlled device, such as Figure 7 The diagram shown illustrates the configuration of the second controlled device; see reference. Figure 7 (a) If the first controlled device does not have an associated second controlled device, the master control device displays the associated device configuration entry on the first device page to prompt the user to configure the second controlled device for the first controlled device; see also Figure 7 (b) If the first controlled device has an associated second controlled device, the master control device displays the second device information of the second controlled device on the first device page to facilitate user viewing of the second controlled device. Additionally, the master control device displays an associated device configuration entry on the first device page to prompt the user to configure a new second controlled device for the first controlled device; see also Figure 7 (c) When a user triggers the associated device configuration entry, the main control device displays each candidate device and its corresponding associated entry on the first device page.
[0106] In some embodiments, taking a smart door lock as an example, the associated device configuration entry can be displayed independently on the first device page, or it can be displayed together with the function explanation information on the first device page. (See also...) Figure 7 (d) When the user triggers the first device page to display the function definition information, the first device page can simultaneously display the associated device configuration entry. The function definition information is used to describe the function of associating the first controlled device with the second controlled device to achieve linkage control. Then, in response to the re-triggering of the associated device configuration entry, the master control device displays each candidate device and its corresponding associated entry in the first device page.
[0107] In this embodiment, the master control device can display the associated device configuration entry on the first device page and respond to the trigger operation for the associated device configuration entry, thereby facilitating the user to select the device to be associated with the first controlled device by displaying at least one candidate device that can be associated with the first controlled device.
[0108] In one embodiment, after associating the first controlled device and the device to be associated to obtain the second controlled device associated with the first controlled device in the above steps, the method further includes the following steps: displaying the second device information of the second controlled device in the first device page, and / or adding the first device information of the first controlled device to the second device page of the second controlled device.
[0109] The second device page is the device page of the second controlled device.
[0110] The device information of the smart device includes at least the device identifier and device operating status of the smart device; the first device information is the device information of the first controlled device, and the second device information is the device information of the second controlled device.
[0111] In this embodiment, after associating the first controlled device and the device to be associated to obtain the second controlled device associated with the first controlled device, the master control device can also display the second device information of the associated second controlled device on the first device page of the first controlled device, so that the user can view the second device information of the second controlled device associated with the first controlled device on the first device page, and / or, add the first device information of the first controlled device to the second device page of the second controlled device, so that the user can view the first device information of the first controlled device associated with the second controlled device through the second device page when viewing the second device page.
[0112] In this embodiment, after associating the first controlled device with the second controlled device, the master control device adds the second device information of the second controlled device to the first device page and the first device information of the first controlled device to the second device page, which makes it convenient for users to view the associated smart devices on the respective device pages of the first and second controlled devices.
[0113] In one embodiment, after associating the first controlled device and the device to be associated to obtain the second controlled device associated with the first controlled device in the above steps, the method further includes the following steps: in response to a trigger operation on the release component displayed on the first device page, sending a release command to the first controlled device to cause the first controlled device to release the association with the second controlled device and return a release result message; displaying the release result message on the first device page.
[0114] The release component is used to trigger the release of the association between the first controlled device and the second controlled device.
[0115] The release command is used to instruct the first controlled device to release the association relationship with the second controlled device.
[0116] The termination result message is used to inform the first controlled device of the termination result of the association between the second controlled device.
[0117] In this embodiment, if a user needs to sever the association between the first controlled device and the second controlled device, the user can trigger the severance component on the first device page. In response to the user's triggering of the severance component, the master device sends a severance command to the first controlled device. The first controlled device, in response to the severance command, sends a severance request to the second controlled device. The second controlled device, based on the severance request, clears its association information with the first controlled device and returns a severance response message to the first controlled device. The first controlled device then clears its association information with the second controlled device based on the severance response message, thereby achieving a bidirectional severance of its association with the second controlled device and returning a corresponding severance result message to the master device. For example, if the severance is successful, a severance success message is returned; if the severance fails, a severance failure message is returned. The first controlled device displays the severance result message returned by the first controlled device on the first device page.
[0118] For example, taking a smart door lock as the first controlled device, such as Figure 8 The diagram shown illustrates the process of severing the connection between the first controlled device and the second controlled device. Figure 8 (a) A schematic diagram illustrating the release of the component. Figure 8 (b) A diagram illustrating the successful deactivation message. Figure 8 (c) is a diagram showing the failure message.
[0119] In some embodiments, after terminating the association between the first controlled device and the second controlled device, the master control device also needs to delete the second device information of the second controlled device from the first device page, and / or delete the first device information of the first controlled device from the second device page. At the same time, the association status of the first controlled device and the second controlled device themselves needs to be updated to unassociated.
[0120] In this embodiment, the master control device can achieve bidirectional decoupling of the association between the first controlled device and the second controlled device by displaying the decoupling component on the first device page and responding to the user's trigger operation on the decoupling component. The master control device can also promptly inform the user whether the decoupling was successful by displaying the decoupling result message.
[0121] In one embodiment, after associating the first controlled device and the device to be associated to obtain the second controlled device associated with the first controlled device in the above steps, the method further includes the following steps: in response to the triggering operation of the first association forced release component displayed on the first device page, sending a first forced release instruction to the first controlled device to forcefully release the association between the first controlled device and the second controlled device and return a first forced release response message; displaying the first forced release response message on the first device page.
[0122] The first forced release component is used to trigger the forced release of the association between the first controlled device and the second controlled device.
[0123] The first forced release instruction is used to instruct the first controlled device to forcibly release the association relationship with the second controlled device.
[0124] The first forced release response message is used to inform the first controlled device of the forced release result of the association between the second controlled device and the first forced release response message.
[0125] In this embodiment, when the association between the first controlled device and the second controlled device cannot be properly terminated through the termination component, the user can trigger the first forced termination component on the first device page. In response to the user's triggering operation of the first forced termination component, the master control device sends a first forced termination command to the first controlled device. In response to the first forced termination command, the first controlled device unilaterally terminates the association with the second controlled device and returns a corresponding first forced termination response message to the master control device to inform the master control device of the result of the forced termination of the association with the second controlled device.
[0126] In practical applications, in response to the user's triggering operation on the first forced release component, the main control device first displays a forced release prompt message and a forced release confirmation component on the first device page. The forced release prompt message is used to inform the user that after forced release, the second controlled device and the first controlled device cannot be linked for control. The forced release confirmation component is used to confirm whether to perform forced release. If the user confirms that forced release is required, they can confirm the forced release confirmation component. In response to the user's confirmation operation on the forced release confirmation component, the main control device sends a first forced release command to the first controlled device.
[0127] For example, taking a smart door lock as the first controlled device, such as Figure 9 The diagram shown illustrates the forced disconnection of the association between the first controlled device and the second controlled device. Figure 9 (a) A schematic diagram illustrating the first forced release component. Figure 9 (b) A diagram illustrating the forced release prompt message and the forced release confirmation component. Figure 9 (c) is a schematic diagram illustrating the forced cancellation response message.
[0128] In practical applications, when the association between the first controlled device and the second controlled device cannot be properly terminated through the termination component, the master control device prompts the user to perform a forced termination through the first device page. The association between the first controlled device and the second controlled device cannot be properly terminated through the termination component in the following situations: (1) The master control device cannot find the second controlled device in the smart home system where the first controlled device is located, for example, the second controlled device cannot be found due to a fault or because it has been reset; (2) The first distance between the first controlled device and the second controlled device is greater than or equal to the preset third distance; (3) Other abnormal situations, such as the termination response message waiting timeout.
[0129] In some embodiments, after the first controlled device forcibly terminates its association with the second controlled device, the master control device also needs to delete the second device information of the second controlled device from the first device page, and at the same time, update the association status of the first controlled device itself to unassociated.
[0130] In this embodiment, the main control device ensures that the first controlled device and the second controlled device can still be unbound in abnormal situations through the forced release component. The main control device can promptly inform the user that the forced release has been completed by displaying a forced release response message.
[0131] In one embodiment, after sending the first forced release command to the first controlled device in the above steps, the method further includes the following steps: displaying a second device page of the second controlled device; in response to a triggering operation on the second associated forced release component displayed on the second device page, sending a second forced release command to the second controlled device to forcefully release the association between the second controlled device and the first controlled device and return a second forced release response message; and displaying the second forced release response message on the second device page.
[0132] The second forced release component is used to trigger the forced release of the association between the second controlled device and the first controlled device.
[0133] The second forced release instruction is used to instruct the second controlled device to forcibly release the association relationship with the first controlled device.
[0134] The second forced release response message is used to inform the recipient of the forced release result of the association between the second controlled device and the first controlled device.
[0135] In this embodiment, since the forced termination is a one-way termination, after the user controls the first controlled device to unilaterally terminate its association with the second controlled device, the user also needs to control the second controlled device to unilaterally terminate its association with the first controlled device. The user triggers the second forced termination component on the second device's page. In response to the user's triggering operation of the second forced termination component, the main control device sends a second forced termination command to the second controlled device. In response to the second forced termination command, the second controlled device unilaterally terminates its association with the first controlled device and returns a corresponding second forced termination response message to the main control device to inform the main control device that the association with the second controlled device has been forcibly terminated.
[0136] In some embodiments, after the second controlled device forcibly disconnects from the first controlled device, the master control device also needs to delete the first device information of the first controlled device from the second device page, and at the same time, update the association status of the second controlled device itself to unassociated.
[0137] In this embodiment, the main control device ensures that the first controlled device and the second controlled device can still be unbound in abnormal situations through the forced release component. The main control device can promptly inform the user that the forced release has been completed by displaying a forced release response message.
[0138] In some embodiments, if the first controlled device and the master control device are connected via Bluetooth, then associating the first controlled device with the corresponding second controlled device, and controlling the first controlled device to disconnect from the second controlled device, must be done only if the first controlled device and the master control device are detected to be connected via Bluetooth. If the first controlled device and the master control device are not detected to be connected via Bluetooth, the master control device can display a Bluetooth disconnect message on the first device page to prompt the user to connect the first controlled device and the master control device via Bluetooth.
[0139] In one embodiment, before sending the first control command corresponding to the control operation to the first controlled device in response to the control operation of the control component in step S202 above, the following steps are also included: if the component state of the linkage control switch component displayed on the first device page switches from the first switch state to the second switch state, then a linkage control off command is sent to the first controlled device, so that when the first controlled device is triggered to execute the second action, it does not send the second control command corresponding to the second action to the second controlled device associated with the first controlled device.
[0140] In some application scenarios, users may not want the first controlled device and the second controlled device to perform the same action in a linked state. Therefore, a linkage control switch component can be added to the main control device and turned off. In some application scenarios, when the first controlled device is triggered to perform a certain action, even if the first controlled device and the second controlled device are in a linked state, the first controlled device will not send the control command corresponding to the action to the second controlled device, thereby avoiding the second controlled device performing the same action as the first controlled device in some application scenarios.
[0141] The linkage control switch component is used to confirm whether a second controlled device associated with the first controlled device is simultaneously linked and controlled when the first controlled device is triggered to perform an action. The linkage control switch component can switch between a first switch state and a second switch state. The first switch state indicates that when the first controlled device is triggered to perform an action, the first controlled device and the second controlled device are linked and controlled. The second switch state indicates that when the first controlled device is triggered to perform an action, the first controlled device and the second controlled device are not linked and controlled.
[0142] In this context, the first controlled device being triggered to perform an action can be either the control component of the first controlled device displayed by the main control device being triggered and thus performing an action, or the device itself being triggered and thus performing an action, such as a physical button or knob on the first controlled device being triggered and thus performing an action. In practical applications, the first controlled device being triggered to perform an action refers to the device itself being triggered and thus performing an action. In this case, the state switching of the linkage control switch component will not affect the linkage control between the first and second controlled devices when the control component of the first controlled device displayed by the main control device is triggered. That is, even if the linkage control switch component is in the second switch state, if the user triggers the control component of the first controlled device, causing the main control device to respond to the control operation for that control component and send a first control command corresponding to the control operation to the first controlled device, thereby controlling the first controlled device to perform an action corresponding to the first control command, the first controlled device will still send a corresponding first control command to the second controlled device to make the second controlled device perform the same action as the first controlled device.
[0143] For example, taking a smart door lock as the first controlled device, and the triggering of the first controlled device to perform an action referring to the triggering of the first controlled device itself to perform an action, the linkage control switch component displayed on the first device page of the first controlled device is as follows: Figure 7 As shown in (d).
[0144] In this embodiment, in response to the user's switching operation on the linkage control switch component displayed on the first device page, if the component state of the linkage control switch component switches from the first switch state to the second switch state, the master control device sends a linkage control off command to the first controlled device, so that when the first controlled device is triggered to execute the second action, it does not send the second control command corresponding to the second action to the second controlled device; if the component state of the linkage control switch component switches from the second switch state to the first switch state, the master control device sends a linkage control on command to the first controlled device, so that when the first controlled device is triggered to execute the second action, it sends the second control command corresponding to the second action to the second controlled device, so that the second controlled device also executes the second action.
[0145] Taking a scenario where both the first and second controlled devices are smart locks, and the first controlled device is triggered to perform an action (meaning the smart lock itself is triggered to perform unlocking and locking actions), as an example, if the linkage control switch component on the main control device is in the second switch state, then if the user controls the unlocking and locking actions of the first controlled device through physical buttons, knobs, or keys—for example, if the user uses a physical key to control the first controlled device to perform an unlocking action—the first controlled device will not send a corresponding unlocking or locking command to the second controlled device to cause the second controlled device to perform the same unlocking and locking actions as the first controlled device. However, if the user controls the first controlled device through physical buttons, knobs, or keys on the main control device, the first controlled device will not send a corresponding unlocking or locking command to the second controlled device to perform the same unlocking and locking actions as the first controlled device. If the control component of the first controlled device controls the unlocking and locking actions of the first controlled device, the first controlled device will still send corresponding unlocking and locking commands to the second controlled device associated with it, so that the second controlled device will perform the same unlocking and locking actions as the first controlled device. If the linkage control switch component is in the first switch state, when the user controls the unlocking and locking actions of the first controlled device through the physical buttons, physical knobs, physical keys, etc. of the first controlled device, or through the control component of the first controlled device on the main control device, the first controlled device will send corresponding unlocking and locking commands to the second controlled device, so that the second controlled device will perform the same unlocking and locking actions as the first controlled device.
[0146] In this embodiment, by setting a linkage control switch component on the main control device, the main control device allows users to flexibly control the activation or deactivation of the linkage control between the first controlled device and the second controlled device, meeting the needs of users in more application scenarios.
[0147] In one embodiment, based on the same inventive concept, this application also provides a device control method applied to a first controlled device. The solution provided by the device control method applied to the first controlled device is similar to the solution described in the device control method applied to the master control device. Therefore, the specific limitations of one or more device control method embodiments applied to the first controlled device provided below can be found in the limitations of the device control method applied to the master control device above, and will not be repeated here.
[0148] like Figure 10 As shown, a device control method is provided, applicable to a first controlled device, the method comprising the following steps:
[0149] Step S1002: In response to the first control command sent by the master control device, execute the first action corresponding to the first control command.
[0150] The first control command is a control command sent by the master control device to the first controlled device in response to the control operation of the control component for the first controlled device. The control component is displayed on the first device page of the first controlled device displayed by the master control device.
[0151] In this step, the master control device responds to the user's control operation on the control component in the first device page by sending a first control command corresponding to the control operation to the first controlled device; the first controlled device responds to the first control command sent by the master control device by executing the corresponding first action.
[0152] Taking a smart door lock as the first controlled device as an example, see [link / reference]. Figure 3 Taking the "long press to unlock" component as an example, if the user long presses the "long press to unlock" component on the first device page, the main control device sends an unlock command to the first controlled device, and the first controlled device responds to the unlock command by performing the unlocking action.
[0153] Step S1004: If there is a second controlled device associated with the first controlled device, a first control command is sent to the second controlled device to cause the second controlled device to perform a first action corresponding to the first control command.
[0154] In this step, while performing the first action, the first controlled device detects whether there is an associated second controlled device. If there is, it sends a first control command to the second controlled device. The second controlled device responds to the first control command sent by the first controlled device and also performs the corresponding first action. Based on this step, the linkage control of the first and second controlled devices is realized.
[0155] Taking the first and second controlled devices as smart door locks as an example, the first controlled device responds to the unlocking command sent by the master control device to perform the unlocking action, and sends the unlocking command to the second controlled device. The second controlled device also responds to the unlocking command to perform the unlocking action.
[0156] In the aforementioned device control method, firstly, the first controlled device responds to a first control command sent by the master control device and executes a first action corresponding to the first control command; then, if the first controlled device has an associated second controlled device, the first controlled device sends a first control command to the second controlled device, causing the second controlled device to execute the first action corresponding to the first control command. Based on this application, by having the master control device send a first control command to the first controlled device to cause the first controlled device to execute a first action, and by having the first controlled device send a first control command to an associated second controlled device to cause the second controlled device to execute the same first action, simultaneous control of multiple controlled devices can be achieved, thus enhancing the user's convenience in controlling the controlled devices.
[0157] In one embodiment, in addition to responding to the first control command sent by the master control device and executing the first action corresponding to the first control command, the first controlled device body (such as physical buttons or physical knobs on the first controlled device) can also be triggered to execute the second action. Similarly, if there is a second controlled device associated with the first controlled device, the second control command corresponding to the second action will be sent to the second controlled device to make the second controlled device execute the second action.
[0158] Taking a smart door lock as an example, if the user controls the unlocking and locking actions of the first controlled device through physical buttons, physical knobs, physical keys, etc., the first controlled device sends corresponding unlocking and locking commands to the second controlled device associated with the first controlled device, so that the second controlled device performs the same unlocking and locking actions as the first controlled device.
[0159] In one embodiment, before sending a first control command to the second controlled device to cause the second controlled device to perform a first action corresponding to the first control command in step S1004 above, when the first controlled device has an associated second controlled device, the method further includes the following steps: responding to a broadcast signal scanning command, performing a broadcast signal scan; if an associated broadcast signal is scanned, establishing a communication channel with the device to be associated based on the associated broadcast signal; sending an association request to the device to be associated through the communication channel to associate with the device to be associated, thereby obtaining a second controlled device associated with the first controlled device.
[0160] The broadcast signal scanning instruction is used to instruct the first controlled device to scan the associated broadcast signal emitted by the device to be associated; the device to be associated is the device to be associated with the first controlled device; the associated broadcast signal is the broadcast signal emitted by the device to be associated in response to a trigger operation on the device to be associated.
[0161] The broadcast signal scanning command is triggered by either the master control device or the first controlled device. For example, the master control device sends a broadcast signal scanning command to the first controlled device, or the broadcast signal scanning command is a user's triggering operation on the first controlled device itself.
[0162] like Figure 11 The diagram shown illustrates the timing of associating the first controlled device with the device to be associated. (See attached diagram.) Figure 11 In some embodiments, the broadcast signal scanning command is triggered by the master control device. For example, the master control device sends a broadcast signal scanning command to the first controlled device. Exemplarily, the master control device displays multiple candidate devices on the first device page for the user to select the device to be associated. After determining the device to be associated, the master control device displays association operation prompt information on the first device page to prompt the user to trigger the device to be associated, so that the user can trigger the device to be associated to send an association broadcast signal carrying the device identifier of the device to be associated. While displaying the association operation prompt information, the master control device can also display a trigger confirmation component for the device to be associated on the first device page. In response to the user's confirmation operation on the trigger confirmation component, the master control device sends a broadcast signal scanning command carrying the device identifier of the device to be associated to the first controlled device, so that the first controlled device scans the association broadcast signal sent by the device to be associated according to the device identifier of the device to be associated. In other embodiments, the broadcast signal scanning command is triggered by the first controlled device. For example, the broadcast signal scanning command is a user's triggering operation on the body of the first controlled device. Exemplarily, the master control device prompts the user through the first device page to perform triggering operations on the body of the device to be associated (e.g., a physical button or knob on the device to be associated) and the body of the first controlled device (e.g., a physical button or knob on the body of the first controlled device) in turn, so that the device to be associated emits an associated broadcast signal, and so that the first controlled device scans the associated broadcast signal emitted by the device to be associated. Further, the associated broadcast signal may carry the corresponding device information of the device to be associated, so that the first controlled device can identify it as an associated broadcast signal.
[0163] See Figure 11In this embodiment, the first controlled device responds to the broadcast signal scanning command and performs a broadcast signal scan. If the first controlled device scans an association broadcast signal sent by the device to be associated, it establishes a communication channel with the device to be associated based on the association broadcast signal, and then sends an association request to the device to be associated through the communication channel. After receiving the association request, the device to be associated returns an association response message. The first controlled device responds to the association response message and associates with the device to be associated, thus obtaining a second controlled device associated with the first controlled device. Regardless of whether the association fails or succeeds, the first controlled device must return an association result message to the master control device to indicate whether the association was successful.
[0164] In practical applications, association failures can occur due to the first controlled device or the device to be associated not meeting the preset association conditions, communication channel establishment timeout, association broadcast signal scanning timeout, association response message waiting timeout, the first distance between the first controlled device and the device to be associated being greater than or equal to the preset first distance, or the second distance between the master control device and the device to be associated being greater than or equal to the preset distance. The association result message may also include the specific reasons for the above association failures so that users can quickly locate the problem of association failure.
[0165] In practical applications, after the device to be associated becomes the second controlled device, the first controlled device communicates with the second controlled device through a communication channel, for example, the first controlled device sends a first control command to the second controlled device.
[0166] In this embodiment, the first controlled device can establish a communication channel with the device to be associated based on the association broadcast signal sent by the device to be associated, and associate the first controlled device and the device to be associated based on the communication channel to obtain the second associated device associated with the first controlled device, and realize the interaction between the first controlled device and the second associated device through the communication channel.
[0167] In one embodiment, after the first controlled device and the second controlled device are associated, they will both update their association status to "associated".
[0168] In one embodiment, after obtaining the second controlled device associated with the first controlled device in the above steps, the method further includes the following steps: in response to the release command sent by the master control device, a release request is sent to the second controlled device through a communication channel, so that the second controlled device returns a release response message to the first controlled device based on the release request; in response to the release response message, the association with the second controlled device is released, and a release result message is returned to the master control device.
[0169] like Figure 12 The diagram shown is a timing diagram for terminating the association between the first controlled device and the second controlled device; see reference. Figure 12In this embodiment, the master control device, in response to the user's triggering operation on the release component in the first device page, sends a release command to the first controlled device; the first controlled device, in response to the release command, sends a release request to the second controlled device through a communication channel; the second controlled device, in response to the release request, releases the association with the first controlled device and returns a release response message to the first controlled device through a communication channel; the first controlled device, in response to the release response message, releases the association with the second controlled device; regardless of whether the release fails or succeeds, the first controlled device must return a release result message to the master control device to indicate whether the release was successful; furthermore, after releasing the association, both the first and second controlled devices need to clear their stored association information related to each other.
[0170] In some embodiments, both the first controlled device and the second controlled device need to update their association status to unassociated after the association is severed.
[0171] In this embodiment, the release command sent by the master control device to the first controlled device can automatically release the association between the first controlled device and the second controlled device, thus eliminating the need for the user to perform separate deassociation operations on the first controlled device or the second controlled device, greatly improving the flexibility of operation.
[0172] In one embodiment, after obtaining the second controlled device associated with the first controlled device in the above steps, the method further includes the following steps: in response to the first forced release command sent by the master control device, forcibly releasing the association with the second controlled device, and returning a first forced release response message to the master control device.
[0173] In practical applications, the association between the first controlled device and the second controlled device cannot be properly terminated by the termination component in the following situations: (1) The master control device cannot find the second controlled device in the smart home system where the first controlled device is located, for example, the second controlled device cannot be found due to a fault or because the second controlled device cannot be found due to a reset; (2) The first distance between the first controlled device and the second controlled device is greater than or equal to the preset third distance; (3) Other abnormal situations, such as the termination response message waiting timeout, etc., in which case the association between the first controlled device and the second controlled device needs to be forcibly terminated.
[0174] like Figure 13 The diagram shown is a timing diagram illustrating the relationship between the forced deactivation of the first controlled device and the second controlled device; see reference. Figure 13In this embodiment, in response to the user's triggering operation on the first forced release component corresponding to the first controlled device in the first device page, the master control device sends a first forced release command to the first controlled device; in response to the first forced release command, the first controlled device releases the association relationship with the second controlled device and returns a first forced release response message to the master control device to inform it that the association relationship with the second controlled device has been forcibly released; furthermore, after forcibly releasing the association relationship with the second controlled device, the first controlled device also needs to clear the association information related to the second controlled device stored in its own memory.
[0175] In some embodiments, after the first controlled device forcibly terminates the association, it needs to update its association status to unassociated.
[0176] In this embodiment, if the association between the first controlled device and the second controlled device cannot be normally severed by the unsevering component, the association between the first controlled device and the second controlled device can be forcibly severed by a forced unsevering command.
[0177] In one embodiment, before executing the first action corresponding to the first control command in response to the first control command sent by the master control device in step S1002, the method further includes the following step: in response to the linkage control shutdown command sent by the master control device, when the first controlled device is triggered to execute the second action, the method does not send the second control command corresponding to the second action to the second controlled device associated with the first controlled device.
[0178] Among them, the linkage control shutdown command is a command sent by the main control device to the first controlled device when the linkage control switch component displayed on the first device page switches from the first switch state to the second switch state.
[0179] In this embodiment, if the component state of the linkage control switch component on the main control device switches from the first switch state to the second switch state, the main control device will send a linkage control off command to the first controlled device. If the first controlled device is triggered to execute the second action upon receiving the linkage control off command, it will not send the second control command corresponding to the second action to the second controlled device associated with the first controlled device. If the component state of the linkage control switch component switches from the second switch state to the first switch state, the main control device will send a linkage control on command to the first controlled device. If the first controlled device is triggered to execute the second action upon receiving the linkage control on command, it will send the second control command corresponding to the second action to the second controlled device associated with the first controlled device, so that the second controlled device also executes the second action.
[0180] Taking a scenario where both the first and second controlled devices are smart locks, and the first controlled device is triggered to perform an action (meaning the device itself is triggered and thus performs the action), if the linkage control switch component is in the second switch state, then if the user controls the first controlled device's unlocking and locking actions via physical buttons, knobs, or keys, the first controlled device will not send corresponding unlocking and locking commands to the second controlled device to cause the second controlled device to perform the same unlocking and locking actions as the first controlled device. However, if the user controls the first controlled device via the control component on the main control device... When unlocking or locking, the first controlled device will still send corresponding unlocking and locking commands to the second controlled device associated with it, so that the second controlled device will perform the same unlocking and locking actions as the first controlled device. If the linkage control switch component is in the first switch state, when the user controls the unlocking and locking actions of the first controlled device through physical buttons, physical knobs, physical keys, etc. of the first controlled device, or through the control component of the first controlled device on the main control device, the first controlled device will send corresponding unlocking and locking commands to the second controlled device, so that the second controlled device will perform the same unlocking and locking actions as the first controlled device.
[0181] In this embodiment, by changing the state of the linkage control switch component of the master control device, the first controlled device can respond to the corresponding linkage control start command or linkage control stop command sent by the master control device, so as to allow the user to flexibly control the start or stop of the linkage control between the first controlled device and the second controlled device.
[0182] To more clearly illustrate the device control method provided in the embodiments of this application, a specific embodiment is described below. However, it should be understood that the embodiments of this application are not limited thereto. In one embodiment, this application also provides a dual-lock linkage control method, which is applied to, for example... Figure 14 The smart home system shown includes terminal devices and multiple smart door locks, and specifically includes the following steps:
[0183] I. Association Configuration Phase.
[0184] 1. See reference Figure 7 The terminal device displays the first device page of the first door lock; the first device page includes an entry point for configuring associated devices; wherein, the first door lock can be any smart door lock, i.e. Figure 7 Door lock A.
[0185] 2. See reference Figure 7In response to a user's trigger operation on the associated device configuration entry, the terminal device identifies candidate smart locks that can be associated with the first smart lock from among the remaining smart locks and displays them on the first device's page; wherein, the candidate smart locks can be... Figure 7 Door locks B / C / D / E.
[0186] 3. The terminal device responds to the user's selection of candidate locks and determines the lock to be associated with the first lock.
[0187] See Figure 5 and Figure 11 The terminal device displays association operation prompts on the first device page to prompt the user to trigger the door lock to be associated so that it emits an association broadcast signal. At the same time, the terminal device displays a trigger confirmation component on the first device page. In response to the user's confirmation operation on the trigger confirmation component, the terminal device sends a broadcast signal scanning command carrying the device identifier of the door lock to be associated to the first door lock. The first door lock scans the association broadcast signal based on the device identifier of the door lock to be associated.
[0188] Alternatively, the terminal device may prompt the user via the first device page to trigger the door lock body to be associated and the first door lock body in sequence, so that the door lock body to be associated emits an association broadcast signal, and triggers the first door lock to scan the association broadcast signal emitted by the door lock to be associated.
[0189] 4. See reference Figure 11 The first lock establishes a BLE communication channel with the lock to be associated based on the association broadcast signal emitted by the scanned lock. All subsequent communication between the first lock and the lock to be associated is through this BLE communication channel. The first lock sends an association request to the lock to be associated; the lock to be associated responds to the association request by returning an association response message, thus establishing an association between the first lock and the lock to be associated, resulting in the association of the first lock with the second lock. In practical applications, the first lock and the lock to be associated use BLE certificates for device authentication to prevent unauthorized device access and ensure data encryption during subsequent communication to avoid information leakage.
[0190] II. Joint Control Phase.
[0191] 1. See reference Figure 3 The terminal device displays the first device page of the first door lock; the first device page includes the control components of the first door lock.
[0192] 2. In response to the user's control operation on the control component, the terminal device sends the first control command corresponding to the control operation to the first door lock.
[0193] 3. The first door lock performs the first action corresponding to the first control command, and sends the first control command to the associated second door lock; the second door lock performs the first action corresponding to the first control command.
[0194] Alternatively, when the first lock body is triggered to perform the second action, it sends a second control command to the associated second lock; the second lock then performs the second action corresponding to the second control command.
[0195] 4. See reference Figure 7 (d) If the component state of the linkage control switch component displayed on the first device page switches from the first switch state to the second switch state, the terminal device sends a linkage control closing command to the first door lock; if the first door lock body is triggered to perform a second action when it receives the linkage control closing command, such as when the user controls the unlocking and locking actions of the first controlled device through the physical button, physical knob, physical key, etc. of the first door lock, it does not send a corresponding control command to the second door lock.
[0196] III. The stage of dissolving the association.
[0197] 1. Normal resolution.
[0198] (1) See Figure 8 (a) The terminal device displays the first device page of the first door lock; the first device page includes the release component.
[0199] (2) See Figure 8 and Figure 12 In response to the user's triggering operation on the release component, the terminal device sends a release command to the first door lock; in response to the release command, the first door lock sends a release request to the second door lock; in response to the release request, the second door lock returns a release response message, thereby releasing the association between the first door lock and the second door lock; the first door lock returns a release result message to the terminal device; and the terminal device displays the release result message on the first device page.
[0200] 2. Forced termination.
[0201] (1) See Figure 9 (a) The terminal device displays the first device page of the first door lock; the first device page includes a forced release component.
[0202] (2) See Figure 9 and Figure 13 In response to the user's triggering operation on the forced release component, the terminal device sends a forced release command to the first door lock; in response to the forced release command, the first door lock forcibly releases its association with the second door lock; the first door lock returns a forced release response message to the terminal device; the terminal device displays the forced release response message on the first device page.
[0203] In this embodiment, a BLE connection is established between the two door locks, enabling one door lock to send a command to the other door lock to control it to open / close simultaneously while the other door lock is operating to open / close. This achieves linkage control between the two door locks and controls the power consumption and communication speed of the door locks themselves, thereby improving the user experience.
[0204] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0205] Based on the same inventive concept, this application also provides a device control apparatus for implementing the device control method applied to a master control device as described above. The solution provided by this apparatus is similar to the implementation scheme described in the device control method applied to a master control device. Therefore, the specific limitations in one or more device control apparatus embodiments provided below can be found in the limitations of the device control method applied to a master control device described above, and will not be repeated here.
[0206] In one embodiment, such as Figure 15 As shown, a device control apparatus is provided, including: a display module 1502 and a control module 1504, wherein:
[0207] The display module 1502 is used to display the first device page of the first controlled device; the first device page includes the control components of the first controlled device.
[0208] The control module 1504 is configured to, in response to a control operation on a control component, send a first control command corresponding to the control operation to a first controlled device, so that the first controlled device performs a first action corresponding to the first control command, and to send a first control command to a second controlled device in the presence of an associated second controlled device; the second controlled device is configured to perform the first action corresponding to the first control command.
[0209] In one embodiment, the device control device further includes an association module for determining a device to be associated; the device to be associated is a device to be associated with a first controlled device; controlling the first controlled device to establish a communication channel with the device to be associated; associating the first controlled device and the device to be associated through the communication channel to obtain a second controlled device associated with the first controlled device; the first controlled device is used to send a first control command to the second controlled device through the communication channel after the device to be associated becomes the second controlled device.
[0210] In one embodiment, the association module is further configured to display association operation prompts for the device to be associated on the first device page; the association operation prompts are used to prompt the device to be associated to perform a trigger operation to trigger the device to be associated to send an association broadcast signal; and control the first controlled device to establish a communication channel based on the association broadcast signal.
[0211] In one embodiment, the association module is further configured to display a trigger confirmation component for the device to be associated on the first device page; the trigger confirmation component is configured to confirm whether the triggering operation for the device to be associated has been completed; in response to the confirmation operation for the trigger confirmation component, a broadcast signal scanning instruction carrying the device identifier of the device to be associated is sent to the first controlled device, so that the first controlled device scans the associated broadcast signal based on the device identifier and establishes a communication channel based on the scanned associated broadcast signal.
[0212] In one embodiment, the association module is further configured to, in response to a trigger operation on the association device configuration entry displayed on the first device page, display at least one candidate device that can be associated with the first controlled device; and, in response to a selection operation on any candidate device, determine the selected candidate device as the device to be associated.
[0213] In one embodiment, the association module is further configured to display second device information of the second controlled device on the first device page, and / or add first device information of the first controlled device to the second device page of the second controlled device.
[0214] In one embodiment, the device control device further includes a release module, which, in response to a trigger operation on the release component displayed on the first device page, sends a release command to the first controlled device to cause the first controlled device to release the association with the second controlled device and return a release result message; and displays the release result message on the first device page.
[0215] In one embodiment, the device control device further includes a forced release module, configured to send a first forced release command to the first controlled device in response to a trigger operation on the first associated forced release component displayed on the first device page, so that the first controlled device forcibly releases the association with the second controlled device and returns a first forced release response message; and display the first forced release response message on the first device page.
[0216] In one embodiment, the forced release module is further configured to display a second device page of the second controlled device, and in response to a trigger operation on the second associated forced release component displayed on the second device page, send a second forced release command to the second controlled device to forcefully release the association between the second controlled device and the first controlled device and return a second forced release response message; and display the second forced release response message on the second device page.
[0217] In one embodiment, the control module is further configured to send a linkage control off command to the first controlled device if the component state of the linkage control switch component displayed on the first device page switches from the first switch state to the second switch state, so that when the first controlled device is triggered to execute the second action, it does not send the second control command corresponding to the second action to the second controlled device associated with the first controlled device.
[0218] Based on the same inventive concept, this application also provides a device control apparatus for implementing the device control method applied to a first controlled device as described above. The solution provided by this apparatus is similar to the implementation scheme described in the device control method applied to a first controlled device. Therefore, the specific limitations in one or more device control apparatus embodiments provided below can be found in the limitations of the device control method applied to a first controlled device described above, and will not be repeated here.
[0219] In one embodiment, such as Figure 16 As shown, a device control apparatus is provided, including: an execution module 1602 and a transmission module 1604, wherein:
[0220] The execution module 1602 is used to respond to the first control command sent by the master control device and execute a first action corresponding to the first control command; the first control command is a control command sent by the master control device to the first controlled device in response to the control operation of the control component for the first controlled device, and the control component is displayed on the first device page of the first controlled device displayed by the master control device.
[0221] The sending module 1604 is used to send a first control command to the second controlled device when the first controlled device has an associated second controlled device, so that the second controlled device performs a first action corresponding to the first control command.
[0222] In one embodiment, the device control apparatus further includes an association module for performing a broadcast signal scan in response to a broadcast signal scan command; the broadcast signal scan command is triggered by either the master control device or the first controlled device; the broadcast signal scan command instructs the first controlled device to scan for an association broadcast signal emitted by a device to be associated; the device to be associated is the device to be associated with the first controlled device; the association broadcast signal is a broadcast signal emitted by the device to be associated in response to a trigger operation targeting the device to be associated; if an association broadcast signal is scanned, a communication channel is established between the device to be associated and the device to be associated based on the association broadcast signal; an association request is sent to the device to be associated through the communication channel to associate with the device to be associated, thereby obtaining a second controlled device associated with the first controlled device.
[0223] In one embodiment, the device control apparatus further includes a release module, configured to send a release request to a second controlled device via a communication channel in response to a release command sent by the master control device, so that the second controlled device returns a release response message to the first controlled device based on the release request; and in response to the release response message, release the association with the second controlled device and return a release result message to the master control device.
[0224] In one embodiment, the device control device further includes a forced release module, which is used to forcibly release the association with the second controlled device in response to a first forced release command sent by the master control device, and return a first forced release response message to the master control device.
[0225] In one embodiment, the sending module is further configured to respond to the linkage control shutdown command sent by the master control device, and when the first controlled device is triggered to execute the second action, not send the second control command corresponding to the second action to the second controlled device associated with the first controlled device; wherein, the linkage control shutdown command is the command sent by the master control device to the first controlled device when the component state of the linkage control switch component displayed on the first device page switches from the first switch state to the second switch state.
[0226] Each module in the aforementioned device control unit can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the electronic device in hardware form or independent of it, or stored in the memory of the electronic device in software form, so that the processor can call and execute the operations corresponding to each module.
[0227] In one embodiment, such as Figure 17 As shown, a device control system is provided, including a master control device, a first controlled device, and a second controlled device associated with the first controlled device.
[0228] In this embodiment, the master control device is used to display a first device page of the first controlled device; the first device page includes a control component of the first controlled device; in response to a control operation on the control component, a first control command corresponding to the control operation is sent to the first controlled device.
[0229] In this embodiment, the first controlled device is used to perform a first action corresponding to the first control command, and, in the presence of a second controlled device, to send the first control command to the second controlled device.
[0230] In this embodiment, the second controlled device is used to execute a first action corresponding to the first control command.
[0231] In some embodiments, the master control device is used to implement the device control method applied to the master control device as described above; the first controlled device is used to implement the device control method applied to the first controlled device as described above.
[0232] In one embodiment, an electronic device is provided, which may be a master control device or a first controlled device, and its internal structure diagram may be as follows: Figure 18 As shown, this electronic device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through WiFi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a device control method. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the electronic device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the electronic device, or external keyboards, touchpads, or mice, etc.
[0233] Those skilled in the art will understand that Figure 18The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the electronic device to which the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements.
[0234] In one embodiment, an electronic device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0235] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above-described method embodiments.
[0236] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0237] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0238] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0239] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A device control method, characterized in that, Applied to a main control device, the method includes: A first device page is displayed for the first controlled device; the first device page includes the control components of the first controlled device; In response to a control operation on the control component, a first control command corresponding to the control operation is sent to the first controlled device to cause the first controlled device to perform a first action corresponding to the first control command, and to cause the first controlled device to send the first control command to the second controlled device if an associated second controlled device exists; the second controlled device is used to perform the first action corresponding to the first control command.
2. The method according to claim 1, characterized in that, Before sending a first control command corresponding to a control operation to the first controlled device in response to a control operation on the control component, the method further includes: Identify the device to be associated; the device to be associated is the device to be associated with the first controlled device. Control the first controlled device to establish a communication channel with the device to be associated; The first controlled device and the device to be associated are associated through the communication channel to obtain the second controlled device associated with the first controlled device; the first controlled device is used to send the first control command to the second controlled device through the communication channel after the device to be associated becomes the second controlled device.
3. The method according to claim 2, characterized in that, The step of controlling the first controlled device to establish a communication channel with the device to be associated includes: On the first device page, association operation prompts are displayed for the device to be associated; the association operation prompts are used to prompt the device to be associated to perform a trigger operation to trigger the device to be associated to send an association broadcast signal. The first controlled device is controlled to establish the communication channel based on the associated broadcast signal.
4. The method according to claim 3, characterized in that, The step of controlling the first controlled device to establish the communication channel according to the associated broadcast signal includes: The first device page displays a trigger confirmation component for the device to be associated; the trigger confirmation component is used to confirm whether the trigger operation for the device to be associated has been completed. In response to the confirmation operation of the trigger confirmation component, a broadcast signal scanning command carrying the device identifier of the device to be associated is sent to the first controlled device, so that the first controlled device scans the associated broadcast signal based on the device identifier and establishes the communication channel based on the scanned associated broadcast signal.
5. The method according to claim 2, characterized in that, The process of determining the device to be associated includes: In response to a triggered operation on the associated device configuration entry displayed on the first device page, at least one candidate device that can be associated with the first controlled device is displayed; In response to the selection operation of any of the candidate devices, the selected candidate device is determined as the device to be associated.
6. The method according to claim 2, characterized in that, After associating the first controlled device and the device to be associated to obtain the second controlled device associated with the first controlled device, the method further includes: The first device page displays the second device information of the second controlled device, and / or the first device information of the first controlled device is added to the second device page of the second controlled device.
7. The method according to claim 2, characterized in that, After associating the first controlled device and the device to be associated to obtain the second controlled device associated with the first controlled device, the method further includes: In response to a trigger operation on the release component displayed on the first device page, a release command is sent to the first controlled device to cause the first controlled device to release the association with the second controlled device and return a release result message; The deactivation result message is displayed on the first device page.
8. The method according to claim 2, characterized in that, After associating the first controlled device and the device to be associated to obtain the second controlled device associated with the first controlled device, the method further includes: In response to a trigger operation on the first association forced release component displayed on the first device page, a first forced release command is sent to the first controlled device to forcefully release the association between the first controlled device and the second controlled device and return a first forced release response message; The first forced cancellation response message is displayed on the first device page.
9. The method according to claim 8, characterized in that, After sending the first forced release command to the first controlled device, the method further includes: The second device page of the second controlled device is displayed. In response to the trigger operation of the second association forced release component displayed on the second device page, a second forced release command is sent to the second controlled device to force the second controlled device to release the association with the first controlled device and return a second forced release response message. The second forced cancellation response message is displayed on the second device page.
10. The method according to any one of claims 1 to 9, characterized in that, Before sending a first control command corresponding to a control operation to the first controlled device in response to a control operation on the control component, the method further includes: If the component state of the linkage control switch component displayed on the first device page switches from the first switch state to the second switch state, a linkage control shutdown command is sent to the first controlled device so that when the first controlled device is triggered to execute the second action, it does not send the second control command corresponding to the second action to the second controlled device associated with the first controlled device.
11. A device control method, characterized in that, Applied to a first controlled device, the method includes: In response to a first control command sent by the master control device, a first action corresponding to the first control command is executed; the first control command is a control command sent by the master control device to the first controlled device in response to a control operation of a control component for the first controlled device, and the control component is displayed on the first device page of the first controlled device displayed by the master control device; If there is a second controlled device associated with the first controlled device, the first control command is sent to the second controlled device so that the second controlled device performs the first action corresponding to the first control command.
12. The method according to claim 11, characterized in that, Before sending the first control command to the second controlled device when the first controlled device has an associated second controlled device, the method further includes: In response to a broadcast signal scanning command, a broadcast signal scan is performed; the broadcast signal scanning command is triggered by either the master control device or the first controlled device; the broadcast signal scanning command instructs the first controlled device to scan for associated broadcast signals emitted by a device to be associated; the device to be associated is a device to be associated with the first controlled device; the associated broadcast signal is a broadcast signal emitted by the device to be associated in response to a triggering operation targeting the device to be associated. If the associated broadcast signal is detected, a communication channel is established between the associated broadcast signal and the device to be associated. An association request is sent to the device to be associated through the communication channel to associate with the device to obtain the second controlled device associated with the first controlled device.
13. The method according to claim 12, characterized in that, After obtaining the second controlled device associated with the first controlled device, the method further includes: In response to the release command sent by the master control device, a release request is sent to the second controlled device through the communication channel, so that the second controlled device returns a release response message to the first controlled device based on the release request; In response to the release response message, the association with the second controlled device is released, and a release result message is returned to the master control device; or, In response to the first forced release command sent by the master control device, the association with the second controlled device is forcibly released, and a first forced release response message is returned to the master control device.
14. The method according to any one of claims 11 to 13, characterized in that, Before executing the first action corresponding to the first control command in response to the first control command sent by the master control device, the method further includes: In response to the linkage control shutdown command sent by the master control device, when the first controlled device is triggered to execute the second action, the second control command corresponding to the second action is not sent to the second controlled device associated with the first controlled device; The linkage control shutdown command is a command sent by the master control device to the first controlled device when the linkage control switch component displayed on the first device page switches from the first switch state to the second switch state.
15. A device control apparatus, characterized in that, The device includes: The display module is used to display the first device page of the first controlled device; the first device page includes the control components of the first controlled device; The control module is configured to, in response to a control operation on the control component, send a first control command corresponding to the control operation to the first controlled device, so that the first controlled device performs a first action corresponding to the first control command, and to send the first control command to the second controlled device if an associated second controlled device exists; the second controlled device is configured to perform the first action corresponding to the first control command.
16. A device control apparatus, characterized in that, The device includes: An execution module is used to respond to a first control command sent by a master control device and execute a first action corresponding to the first control command; the first control command is a control command sent by the master control device to the first controlled device in response to a control operation of a control component for the first controlled device, and the control component is displayed on a first device page of the first controlled device displayed by the master control device; The sending module is configured to send the first control command to the second controlled device when the first controlled device has an associated second controlled device, so that the second controlled device performs the first action corresponding to the first control command.
17. A device control system, characterized in that, The system includes a master control device, a first controlled device, and a second controlled device associated with the first controlled device; The main control device is used to display a first device page of the first controlled device; the first device page includes a control component of the first controlled device; in response to a control operation on the control component, a first control command corresponding to the control operation is sent to the first controlled device; The first controlled device is configured to perform a first action corresponding to the first control command, and, in the presence of the second controlled device, to send the first control command to the second controlled device; The second controlled device is used to execute the first action corresponding to the first control command.
18. An electronic device comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 14.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.
20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 14.