Device control method, device, storage medium, and electronic device

By enabling wireless network connectivity and pairing between devices, the problem of lack of interoperability and pairing between devices is solved, thus improving the user experience.

CN116935609BActive Publication Date: 2026-07-24QINGDAO HAIER TECH +1
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
QINGDAO HAIER TECH
Filing Date
2022-03-29
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

The lack of interoperability and pairing between devices in existing technologies leads to a poor user experience.

Method used

By responding to the operation of the target object in the first target device, determining its own working status, and generating instructions to send to the second target device, a wireless network connection and pairing relationship are established to realize the linkage control between devices.

Benefits of technology

It enables interconnected operation between devices, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116935609B_ABST
    Figure CN116935609B_ABST
Patent Text Reader

Abstract

The application discloses a device control method and device, a storage medium and an electronic device, and relates to the technical field of smart home. The device control method comprises the following steps: a first target device responds to a first operation behavior of a target object; the first target device determines that the first target device is in a first working state according to the first operation behavior; and the first target device generates and sends a first target instruction to a second target device according to the first working state, wherein the first target instruction is used for determining a second working state of the second target device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart homes, and more specifically, to a device control method, apparatus, storage medium, and electronic device. Background Technology

[0002] In the Internet of Things (IoT) model for home appliances, most network structures involve multiple devices connecting to a router and then to the cloud. Mobile apps then send control commands to the devices via the cloud or local area network. In this model, devices are operated by humans, and inter-device pairing and linkage are almost never implemented.

[0003] There is currently no effective solution to the above problems. Summary of the Invention

[0004] This invention provides a device control method, apparatus, storage medium, and electronic device to at least solve the technical problem of poor user experience caused by the lack of device-to-device linkage and pairing in the prior art.

[0005] According to one aspect of the present invention, a device control method is provided, comprising: a first target device responding to a first operation behavior of a target object; the first target device determining a first working state based on the first operation behavior; and the first target device generating and sending a first target instruction to a second target device based on the first working state, wherein the first target instruction is used to determine a second working state of the second target device.

[0006] Optionally, the first target device and the second target device are connected via a wireless network. Before the first target device generates and sends a first target instruction to the second target device according to a first operating state, the device control method further includes: the first target device searching for the second target device via the wireless network; after searching for the second target device via the wireless network, the first target device exchanging device information with the second target device; and the first target device establishing a pairing relationship with the second target device based on the device information, wherein the first target device and the second target device in the pairing relationship send and receive data via the wireless network.

[0007] Optionally, the process of establishing a pairing relationship between the first target device and the second target device based on device information includes: the first target device verifying whether it is paired with the second target device based on the device information of the second target device; if the verification result is that it is paired with the second target device, exchanging the verification result with the second target device; and if the verification result of the second target device is that it is paired with the first target device, establishing a pairing relationship between the first target device and the second target device.

[0008] Optionally, the first target device searching for the second target device via the wireless network includes: the first target device responding to a second operation of the target object; the first target device determining, based on the second operation, that it has entered a pairing mode, wherein the first target device establishes a pairing relationship with the second target device in the pairing mode; and, while the first target device is in the pairing mode, searching for the second target device, which is also in the pairing mode, via the wireless network.

[0009] Optionally, both the first target device and the second target device are connected to the device gateway corresponding to the wireless network. The first target device generating and sending a first target instruction to the second target device according to a first working state includes: the first target device obtaining the address information of the second target device in the wireless network through the device gateway; the first target device generating a first target instruction according to the working state; and the first target device sending the first target instruction to the second target device through the wireless network according to the address information.

[0010] Optionally, after the first target device generates and sends a first target instruction to the second target device based on its working state, the device control method further includes: the first target device receiving a second target instruction sent by the second target device, wherein the second target instruction is an instruction generated by the second target device based on the first target instruction; and the first target device adjusting its own working state based on the second target instruction.

[0011] Optionally, there may be multiple second target devices. The process of the first target device generating and sending a first target instruction to the second target device according to the first working state includes: the first target device determining the second target device corresponding to the first working state from among the multiple second target devices according to the first working state; the first target device generating the first target instruction according to the first working state and sending the first target instruction to the second target device corresponding to the first working state.

[0012] According to another aspect of the present invention, a device control method is provided, comprising: a second target device receiving a first target instruction sent by a first target device, wherein the first target instruction is an instruction generated by the first target device based on its own first working state; the second target device determining a second working state based on the first target instruction; and the second target device generating and sending a second target instruction to the first target device based on the second working state, wherein the second target instruction is used to instruct the first target device to adjust its own working state based on the second working state.

[0013] According to another aspect of the present invention, a device control apparatus is provided, comprising: a first processing module, configured to respond to a first operation behavior of a target object; a second processing module, configured to determine a first target device as a first working state based on the first operation behavior; and a communication module, configured to generate and send a first target instruction to a second target device based on the first working state, wherein the first target instruction is used to determine a second working state of the second target device.

[0014] According to another aspect of the present invention, a device is provided, including an interaction module, a communication module, and a base plate. The interaction module, connected to the base plate, is configured to respond to an operation command from a target object and send indication information corresponding to the operation command to the base plate. The base plate is configured to determine the working state of the device based on the indication information and generate a first target command for determining the working state of other devices based on the working state. The communication module, connected to the base plate, is configured to receive the target command, send the first target command to other devices, and receive and send a second target command returned by other devices to the base plate.

[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes a device control method when it runs.

[0016] According to another aspect of the present invention, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to execute a device control method via the computer program.

[0017] In this embodiment of the invention, a first target device responds to a first operation behavior of a target object; the first target device determines a first working state based on the first operation behavior; the first target device generates and sends a first target instruction to a second target device based on the first working state, wherein the first target instruction is used to determine a second working state of the second target device. By having the first target device send an instruction to the second target device based on its own working state to determine the working state of the second target device, the purpose of linkage operation between different devices is achieved, thereby realizing the technical effect of improving the user experience and solving the technical problem of poor user experience caused by the lack of linkage pairing between devices in the prior art. Attached Figure Description

[0018] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0019] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 This is a schematic flowchart of a device control method according to an embodiment of this application;

[0021] Figure 2 This is a schematic flowchart of a device pairing process according to an embodiment of this application;

[0022] Figure 3 This is a schematic flowchart of a device control process according to an embodiment of this application;

[0023] Figure 4 This is a flowchart illustrating another device control method according to an embodiment of this application;

[0024] Figure 5 This is a structural block diagram of a device according to an embodiment of this application;

[0025] Figure 6 This is a structural block diagram of a device control apparatus according to an embodiment of this application;

[0026] Figure 7 This is a block diagram of an electronic device according to an embodiment of this application. Detailed Implementation

[0027] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0028] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0029] According to an embodiment of the present invention, a method embodiment of a device control method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0030] Figure 1 This is a device control method according to an embodiment of the present invention, such as... Figure 1 As shown, the method includes the following steps:

[0031] Step S102: The first target device responds to the first operation of the target object;

[0032] In some embodiments of this application, the first operational behavior of the target object includes operational behaviors performed on the interaction module of the first target device, such as operations performed on buttons or touch screens on the surface of the first target device to set the working state of the first target device; it also includes operations performed on remote control devices, such as remote controllers or smartphones, to set the working state of the first target device. Specifically, when the first operational behavior of the target object is performed on a remote control device, the remote control device generates corresponding control commands based on the user's operational behavior and transmits the control commands to the first target device, wherein the control commands are used to set the working state of the first target device.

[0033] In some embodiments of this application, the aforementioned first target device and second target device may be smart air conditioners, smart range hoods, smart refrigerators, smart ovens, smart stoves, smart washing machines, smart water heaters, smart washing equipment, smart dishwashers, smart projectors, smart TVs, smart clothes racks, smart curtains, smart audio-visual equipment, smart sockets, smart speakers, smart speakers, smart fresh air systems, smart kitchen and bathroom equipment, smart bathroom equipment, smart robot vacuum cleaners, smart window cleaning robots, smart mopping robots, smart air purifiers, smart steam ovens, smart microwave ovens, smart water heaters, smart air purifiers, smart water dispensers, smart door locks, and other smart home devices.

[0034] Step S104: The first target device determines the first target device to be in the first working state based on the first operation behavior;

[0035] In step S106, the first target device generates and sends a first target instruction to the second target device based on the first working state, wherein the first target instruction is used to determine the second working state of the second target device.

[0036] In some embodiments of this application, the first target device and the second target device are connected via a wireless network. Before the first target device generates and sends a first target instruction to the second target device based on its operating state, a pairing relationship needs to be established between the first and second target devices. Specifically, the process of establishing a pairing relationship between the first and second target devices is as follows: the first target device retrieves the second target device through the wireless network; after retrieving the second target device through the wireless network, the first target device exchanges device information with the second target device; the first target device establishes a pairing relationship with the second target device based on the device information, wherein the first target device and the second target device in the paired relationship send and receive data through the wireless network.

[0037] In some embodiments of this application, the specific process for establishing a pairing relationship between the first target device and the second target device based on the device information is as follows: the first target device verifies whether it is paired with the second target device based on the device information of the second target device; if the verification result is that it is paired with the second target device, the first target device exchanges the verification result with the second target device; if the verification result of the second target device is that it is paired with the first target device, the pairing relationship is established between the first target device and the second target device.

[0038] In some embodiments of this application, the first target device may retrieve the second target device through the wireless network in the following manner: the first target device responds to a second operation behavior of the target object; the first target device determines that it has entered a pairing mode based on the second operation behavior, wherein the first target device establishes the pairing relationship with the second target device in the pairing mode; and when the first target device is in the pairing mode, the second target device, which is also in the pairing mode, is retrieved through the wireless network.

[0039] Specifically, the aforementioned second operational action can be the operation of the target object controlling the first target device to enter pairing mode through the interaction module or remote control device of the first target device. At this time, the second target device also enters pairing mode under the control of the target object, and the method and process of the second target device entering pairing mode are the same as those of the first target device, which will not be described again here.

[0040] In some embodiments of this application, the main process for pairing between the first target device and the second target device includes: first, entering pairing mode for both devices by pressing a button on the device; discovering each other via WiFi; exchanging device information (including module MAC, SSID, password, baseboard information, etc.); verifying whether pairing is allowed; exchanging pairing verification results; and completing pairing and establishing a pairing relationship.

[0041] Specifically, the complete process of the above pairing procedure is as follows: Figure 2 As shown, it includes the following steps:

[0042] In step S202, the base plates of the first target device and the second target device receive a control command to start pairing.

[0043] In some embodiments of this application, when the first target device and the second target device communicate using the UDP protocol, the above step S202 includes the first target device and the second target device generating a baseboard 30 frame and a response 05 confirmation frame.

[0044] Specifically, in some embodiments of this application, the aforementioned baseboard 30 frames are generated by the pairing modules of the first target device and the second target device and sent to the baseboard of their respective devices, wherein the baseboard 30 frames are used to allow the target devices to enter the pairing process.

[0045] In step S204, the first target device and the second target device each determine their own working status. If the first target device or the second target device determines that its own working status is an abnormal working status, then proceed to step S206. If the first target device and the second target device determine that their own working status is a normal working status, then proceed to step S208.

[0046] Step S206: Determine that pairing has failed, send the pairing failure information to the baseboard, and close the pairing interface.

[0047] In step S208, the first target device and the second target device determine their respective network connection status. Specifically, if either the first target device or the second target device is currently connected to the router, the connection is stopped. If either the first target device or the second target device is in a no-network mode, the wireless network is set to STA mode.

[0048] Step S210: The first target device and the second target device initiate a pairing process. Initiating the pairing process includes setting a pairing timeout timer and starting the pairing interface. If the pairing time exceeds the time set in the timeout timer, the process jumps to step S206.

[0049] In step S212, a secure connection is established between the first target device and the second target device, and device information is exchanged via the wireless network. This device information includes their respective typeid, device role, SSID, password, etc.

[0050] Step S214: Determine whether the roles of the first target device and the second target device conflict. If they conflict, the pairing is deemed to have failed, and the process proceeds to step S222.

[0051] Step S216: Determine whether the total number of the first target device and the second target device exceeds the maximum number of pairs, and whether there is a device whose pairing module MAC is missing. If the total number exceeds the maximum or a device's pairing module MAC is missing, pairing is considered to have failed, and the process proceeds to step S222.

[0052] Step S218: Determine whether the network distribution information of the first target device and the second target device is consistent. If they are inconsistent, the pairing is deemed to have failed, and the process jumps to step S222.

[0053] Step S220: The first target device and the second target device jointly request and respond to authentication.

[0054] Specifically, in some embodiments of this application, the authentication request is used to obtain device information of the target device to determine whether the device is a device that needs to be paired, and the authentication response is the device receiving the authentication request replying with device information to the device that sent the authentication request.

[0055] Step S222: Send the pairing result to the control device and receive the authentication result from the peer module of the control device;

[0056] In step S224, the control device determines whether linkage between the first target device and the second target device is allowed, and if linkage is not allowed, it jumps to step S206.

[0057] Step S226: Register the successfully paired device information in the control device and send the pairing result to the first target device and the second target device.

[0058] In some embodiments of this application, both the first target device and the second target device are connected to a device gateway corresponding to the wireless network. The method by which the first target device generates and sends a first target instruction to the second target device based on the working state is as follows: the first target device obtains the address information of the second target device in the wireless network through the device gateway; the first target device generates the first target instruction based on the working state; and the first target device sends the first target instruction to the second target device through the wireless network based on the address information.

[0059] In some embodiments of this application, after the first target device generates and sends a first target instruction to the second target device based on the operating state, it can also receive a control instruction returned by the second target device and adjust its own operating state according to the control instruction. Specifically, the first target device receives a second target instruction sent by the second target device, wherein the second target instruction is an instruction generated by the second target device based on the first target instruction; the first target device adjusts its own operating state according to the second target instruction.

[0060] In some embodiments of this application, the complete process of the collaborative operation between the first target device and the second target device is as follows: Figure 3 As shown, it includes the following steps:

[0061] In step S302, the baseboard of the first target device sends a control command to the communication module of the first target device based on the operating status of the first target device. The communication module of the first target device is used to achieve data communication with the communication module of the second target device via a wireless network, and the control command is used to control the operating status of the second target device.

[0062] In step S304, the communication module parses the corresponding second target device according to the control command.

[0063] Step S306: Determine the IP address of the second target device in the wireless network based on the device gateway.

[0064] Step S308: Send control commands to the communication module of the second target device via a wireless network. The first and second target devices can communicate using the UDP protocol.

[0065] In step S310, after receiving the control command, the pairing module of the second target device transmits the control command to the base plate of the second target device.

[0066] In step S312, the base plate of the second target device responds to the control command and generates a response command.

[0067] In step S314, the communication module of the second target device receives the response command and sends the response command to the communication module of the first target device via the wireless network.

[0068] In step S316, the communication module of the first target device sends a response command to the baseboard of the first target device.

[0069] In some embodiments of this application, the number of second target devices can be multiple. The first target device generating and sending a first target instruction to the second target device according to the first working state includes: the first target device determining the second target device corresponding to the first working state from multiple second target devices according to the first working state; the first target device generating the first target instruction according to the first working state, and sending the first target instruction to the second target device corresponding to the first working state.

[0070] Specifically, the first target device may be equipped with a memory, which is used to store the second target devices that the first target device needs to work together under different working states and environmental conditions.

[0071] By employing a first target device responding to a first operation of a target object; the first target device determining itself to be in a first working state based on the first operation; and the first target device generating and sending a first target instruction to a second target device based on the first working state, wherein the first target instruction is used to determine the second working state of the second target device, the purpose of coordinated operation between different devices is achieved by having the first target device send an instruction to the second target device based on its own working state to determine the working state of the second target device. This achieves the technical effect of improving the user experience and solves the technical problem of poor user experience caused by the lack of device-to-device linkage and pairing in the prior art.

[0072] According to an embodiment of the present invention, another method embodiment of a device control method is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0073] Figure 4 This is a device control method according to an embodiment of the present invention, such as... Figure 4 As shown, the method includes the following steps:

[0074] Step S402: The second target device receives the first target instruction sent by the first target device, wherein the first target instruction is an instruction generated by the first target device based on its own first working state;

[0075] Step S404: The second target device determines the second target device to be in the second working state according to the first target instruction;

[0076] In step S406, the second target device generates and sends a second target instruction to the first target device based on the second working state. The second target instruction is used to instruct the first target device to adjust its own working state based on the second working state.

[0077] According to an embodiment of the present invention, an embodiment of a device is provided. Figure 5 The device provided according to the embodiments of this application, such as Figure 5 As shown, the device includes: an interaction module 50, a communication module 52, and a base plate 54. The interaction module, connected to the base plate, is used to respond to operation commands from a target object and send instruction information corresponding to the operation command to the base plate. The base plate is used to determine the working status of the device based on the instruction information and to generate a first target command for determining the working status of other devices based on the working status. The communication module, connected to the base plate, is used to receive the target command, send the first target command to other devices, and receive and send a second target command returned by other devices to the base plate.

[0078] According to an embodiment of the present invention, an embodiment of a device control apparatus is provided. Figure 6 It is a device control device according to an embodiment of the present invention, such as Figure 6 As shown, the device includes: a first processing module 60, used to respond to a first operation behavior of a target object; a second processing module 62, used to determine a first target device as a first working state based on the first operation behavior; and a communication module 64, used to generate and send a first target instruction to a second target device based on the first working state, wherein the first target instruction is used to determine a second working state of the second target device.

[0079] In some embodiments of this application, the second processing module 62 is further configured to establish a pairing relationship between the first target device and the second target device. Specifically, the first target device and the second target device are connected via a wireless network, wherein a pairing relationship needs to be established between the first target device and the second target device before the first target device generates and sends a first target instruction to the second target device according to the operating state.

[0080] In some embodiments of this application, the process of establishing a pairing relationship between the first target device and the second target device through the second processing module 62 is as follows: the second processing module 62 in the first target device retrieves the second target device through the wireless network based on the communication module 64; after the first target device retrieves the second target device through the wireless network, it exchanges device information with the second target device; the first target device establishes a pairing relationship with the second target device based on the device information, wherein the first target device and the second target device in the pairing relationship send and receive data through the wireless network.

[0081] In some embodiments of this application, the specific process by which the second processing module 62 in the first target device establishes a pairing relationship with the second target device based on the device information is as follows: the first target device verifies whether it is paired with the second target device based on the device information of the second target device; if the verification result is that it is paired with the second target device, the verification result is exchanged with the second target device; if the verification result of the second target device is that it is paired with the first target device, the pairing relationship is established between the first target device and the second target device.

[0082] In some embodiments of this application, the second processing module 62 in the first target device can retrieve the second target device through the wireless network in the following manner: the first target device responds to the second operation behavior of the target object; the first target device determines that it has entered a pairing mode based on the second operation behavior, wherein the first target device establishes the pairing relationship with the second target device in the pairing mode; when the first target device is in the pairing mode, the second target device, which is also in the pairing mode, is retrieved through the wireless network.

[0083] In some embodiments of this application, the first target device and the second target device are connected via a wireless network based on the communication module 64. Before the first target device generates and sends a first target instruction to the second target device according to its operating state, a pairing relationship needs to be established between the first and second target devices. Specifically, the process of establishing a pairing relationship between the first and second target devices is as follows: the communication module 64 of the first target device retrieves the second target device through the wireless network; after retrieving the second target device through the wireless network, the first target device exchanges device information with the second target device; the first target device establishes a pairing relationship with the second target device based on the device information, wherein the first target device and the second target device in the paired relationship send and receive data through the wireless network.

[0084] In some embodiments of this application, the specific process by which the first target device establishes a pairing relationship with the second target device based on the device information through the communication module 64 is as follows: the first target device verifies whether it is paired with the second target device based on the device information of the second target device; if the verification result is that it is paired with the second target device, it exchanges the verification result with the second target device; if the verification result of the second target device is that it is paired with the first target device, the pairing relationship is established between the first target device and the second target device.

[0085] In some embodiments of this application, the communication module 64 in the first target device can retrieve the second target device through the wireless network in the following manner: the first target device responds to the second operation behavior of the target object; the first target device determines that it has entered a pairing mode based on the second operation behavior, wherein the first target device establishes the pairing relationship with the second target device in the pairing mode; when the first target device is in the pairing mode, the second target device, which is also in the pairing mode, is retrieved through the wireless network.

[0086] It should be noted that, Figure 6 The device control unit shown can be used to perform Figure 1 The device control method shown herein, therefore, for Figure 1 The explanations and descriptions of the device control methods shown also apply to Figure 6 The equipment control device shown is not described in detail here.

[0087] According to an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein, when the program is executed, the following device control method is performed: a first target device responds to a first operation behavior of a target object; the first target device determines a first working state based on the first operation behavior; the first target device generates and sends a first target instruction to a second target device based on the first working state, wherein the first target instruction is used to determine a second working state of the second target device.

[0088] In some embodiments of this application, the program stored in the computer-readable storage medium may also execute the following device control method during runtime: a second target device receives a first target instruction sent by a first target device, wherein the first target instruction is an instruction generated by the first target device based on its own first working state; the second target device determines that it is in a second working state based on the first target instruction; the second target device generates and sends a second target instruction to the first target device based on the second working state, wherein the second target instruction is used to instruct the first target device to adjust its own working state based on the second working state.

[0089] According to an embodiment of the present invention, an embodiment of an electronic box is also provided. Figure 7 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention.

[0090] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 704 including instructions, which can be executed by a processor 702 of an electronic device to perform the following device control method: a first target device responds to a first operation behavior of a target object; the first target device determines a first operating state based on the first operation behavior; the first target device generates and sends a first target instruction to a second target device based on the first operating state, wherein the first target instruction is used to determine a second operating state of the second target device. Optionally, the storage medium may be a non-transitory computer-readable storage medium, such as a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device.

[0091] In some embodiments of this application, the processor 702 is further configured to execute the following device control method via a computer program: a second target device receives a first target instruction sent by a first target device, wherein the first target instruction is an instruction generated by the first target device based on its own first working state; the second target device determines that it is in a second working state based on the first target instruction; the second target device generates and sends a second target instruction to the first target device based on the second working state, wherein the second target instruction is used to instruct the first target device to adjust its own working state based on the second working state.

[0092] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0093] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0094] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0095] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0096] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0097] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.

Claims

1. A device control method, characterized in that, include: The first target device responds to the first operational action of the target object; Based on the first operation behavior, the first target device determines that the first target device is in a first working state; The first target device responds to the second operational behavior of the target object; The first target device is confirmed to have entered pairing mode; When the first target device is in the pairing mode, a second target device that is also in the pairing mode is retrieved via the wireless network; After the first target device detects the second target device through the wireless network, it establishes a secure connection with the second target device and exchanges device information. The device information includes at least: device role, module MAC address, and network configuration information; The first target device verifies whether its role conflicts with that of the second target device based on the device role of the second target device. If the verification result shows that there is no conflict with the device role of the second target device, determine whether the total number of the first target device and the second target device exceeds the pairing limit, whether the module MAC of the first target device and the second target device does not exist, and whether the network configuration information of the first target device and the second target device is consistent; if the total number does not exceed the limit, the module MAC exists, and the network configuration information is consistent, a pairing relationship is established between the first target device and the second target device. The first target device, based on the first operating state, determines the second target device corresponding to the first operating state from among a plurality of second target devices, generates and sends a first target instruction to the second target device corresponding to the first operating state, wherein the first target instruction is used to determine the second operating state of the second target device; the first operating state includes: the operating state of the first target device and the environmental conditions; after the first target device generates and sends the first target instruction to the second target device based on the first operating state, the device control method further includes: The first target device receives a second target instruction sent by the second target device, wherein the second target instruction is an instruction generated by the second target device based on the first target instruction; The first target device adjusts its own working state according to the second target instruction.

2. The method according to claim 1, characterized in that, The first target device and the second target device, which are in the pairing relationship, send and receive data through the wireless network.

3. The method according to claim 1, characterized in that, Both the first target device and the second target device are connected to the device gateway corresponding to the wireless network. The first target device, based on its operating state, generates and sends a first target instruction to the second target device, including: The first target device obtains the address information of the second target device in the wireless network through the device gateway; The first target device generates the first target instruction based on the operating state; The first target device sends the first target instruction to the second target device through the wireless network based on the address information.

4. A device control method, characterized in that, include: The second target device establishes a secure connection with the first target device and exchanges device information while in pairing mode; The device information includes at least: device role, module MAC address, and network configuration information; The second target device verifies whether its device role conflicts with that of the first target device based on the device role of the first target device. If the verification result indicates that there is no conflict with the device role of the first target device, it determines whether the total number of the first target device and the second target device exceeds the maximum number of pairs, whether the module MAC addresses of the first target device and the second target device do not exist, and whether the network configuration information of the first target device and the second target device is consistent. If the total number does not exceed the maximum number, the module MAC addresses exist, and the network configuration information is consistent, a pairing relationship is established between the second target device and the first target device. The first target device determines the second target device corresponding to the first working state from a plurality of second target devices based on the first working state, generates and sends a first target instruction to the second target device corresponding to the first working state, wherein the first target instruction is used to determine the second working state of the second target device; the first working state includes: the working state of the first target device and the environmental conditions in which it is located; The second target device receives a first target instruction sent by the first target device, wherein the first target instruction is an instruction generated by the first target device based on its own first working state; Based on the first target instruction, the second target device determines that it is in a second working state; The second target device generates and sends a second target instruction to the first target device based on the second working state, wherein the second target instruction is used to instruct the first target device to adjust its own working state based on the second working state.

5. A device control system, characterized in that, include: The first processing module is used to respond to the first operation behavior of the target object; The second processing module is used to determine the first target device as a first working state based on the first operation behavior; The communication module is configured to: determine that the first target device has entered a pairing mode when the first target device responds to the second operation of the target object; while the first target device is in the pairing mode, search for a second target device that is also in the pairing mode via a wireless network; and after the first target device finds the second target device via the wireless network, establish a secure connection with the second target device and exchange device information. The device information includes at least: device role, module MAC address, and network configuration information; the first target device verifies whether its device role conflicts with that of the second target device based on the device role of the second target device; if the verification result shows no conflict with the device role of the second target device, it determines whether the total number of the first target device and the second target device exceeds the maximum number of pairs, whether the module MAC addresses of the first target device and the second target device do not exist, and whether the network configuration information of the first target device and the second target device is consistent; if the total number does not exceed the maximum number, the module MAC address exists, and the network configuration information is consistent, a pairing relationship is established between the first target device and the second target device; it is used to determine the second target device corresponding to the first working state from multiple second target devices based on the first working state, generate and send a first target instruction to the second target device corresponding to the first working state, wherein the first target instruction is used to determine the second working state of the second target device; the first working state includes: the working state of the first target device and the environmental conditions it is in.

6. A smart home device, comprising an interaction module, a communication module, and a base plate, wherein, The interaction module is connected to the base plate and is used to respond to the operation instructions of the target object and send the corresponding instruction information to the base plate according to the operation instructions. The base plate is used to determine the first working state of the first target device according to the indication information, and to determine the second target device corresponding to the first working state from a plurality of second target devices according to the first working state, and to generate and send a first target instruction to the second target device corresponding to the first working state; wherein, the first target instruction is used to determine the second working state of the second target device; the first working state includes: the working state of the first target device and the environmental conditions in which it is located; The communication module, connected to the base plate, is used to receive the first target instruction and send the first target instruction to the second target device, and to receive and send a second target instruction returned by the second target device to the base plate; wherein, the second target instruction is an instruction generated by the second target device based on the first target instruction; the second target instruction is used to instruct the first target device to adjust its own working state; and is also used to determine that the first target device has entered a pairing mode when the first target device responds to the second operation behavior of the target object; when the first target device is in the pairing mode, it searches for a second target device that is also in the pairing mode via a wireless network; when the first target device searches for the second target device via the wireless network... After preparation, a secure connection is established with the second target device, and device information is exchanged. The device information includes at least: device role, module MAC address, and network configuration information. The first target device verifies whether its role conflicts with the second target device based on the device role of the second target device. If the verification result shows that there is no conflict with the device role of the second target device, it determines whether the total number of the first target device and the second target device exceeds the pairing limit, whether the module MAC address of the first target device and the second target device does not exist, and whether the network configuration information of the first target device and the second target device is consistent. If the total number does not exceed the limit, the module MAC address exists, and the network configuration information is consistent, a pairing relationship is established between the first target device and the second target device.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program, when executed, performs the method of any one of claims 1 to 3 or claim 4.

8. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to execute the method of any one of claims 1 to 3 or claim 4 through the computer program.