A method, device, switch and computer-readable storage medium for controlling intelligent equipment
By receiving working mode control instructions in smart home devices, cutting off or restoring the linkage relationship between devices and forwarding control signals, the problem of smart devices going offline due to power outages is solved, and remote control and rich scene linkage are realized.
Patent Information
- Application Number
- CN202211000119.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-19
- Publication Date
- 2025-01-21
- Estimated Expiration
- 2042-08-19
AI Technical Summary
Smart home devices are offline after power outage, and remote intelligent control cannot be achieved, resulting in the problem that power consumption devices are offline due to the influence of target devices.
By receiving the working mode control instructions of the smart device, cutting off or restoring the linkage relationship between the smart device and its corresponding target device, forwarding the control signal of the target device, and enabling the internal circuit breaker of the smart device itself to respond to the target device after the linkage relationship is restored. control signal.
It solves the problem of smart devices going offline due to power outages, realizes remote control of smart devices, enriches scene linkage, and avoids power-consuming devices going offline due to the influence of target devices.
Smart Images

Figure CN115524991B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of smart home control technology, and in particular to a smart device control method, device, switch and computer-readable storage medium. Background Art
[0002] With the popularization of the smart home market, more and more regions have begun to install smart home products. Among them, smart devices such as single / dual-channel control modules are indispensable smart products for realizing the transformation of traditional home appliances.
[0003] Since home appliances need to be powered on at all times to stay online, home appliances converted with smart devices such as single / dual-channel control modules may go offline due to power outages, making remote smart control impossible. Summary of the invention
[0004] In view of this, the present application provides a smart device control method, device, switch and computer readable storage medium. The present application proposes a smart device control method, comprising the following steps:
[0005] Receiving an operating mode control instruction of a smart device, wherein the operating mode control instruction is used to control the smart device to switch operating modes, and the operating modes include a first operating mode and a second operating mode;
[0006] When the working mode control instruction is a first working mode instruction, the linkage relationship between the smart device and its corresponding target device is cut off, and the control signal of the target device is forwarded;
[0007] When the working mode control instruction is a second working mode instruction, the linkage relationship between the smart device and its corresponding target device is restored so that the internal circuit breaker of the smart device itself can respond to the control signal of the target device.
[0008] Optionally, when the working mode control instruction is the first working mode instruction, the step of cutting off the linkage relationship between the smart device and its corresponding target device and forwarding the control signal of the target device includes:
[0009] When the working mode control instruction is the first working mode instruction, the linkage relationship between the internal relay of the smart device and the corresponding target device is cut off;
[0010] Acquire self-identification information, and determine a candidate smart device that should respond to the control signal of the target device based on the self-identification information and a device selection table, wherein the device selection table includes identification information of all smart devices within the same preset scene range and the controlled order of each of the smart devices;
[0011] The control signal of the target device is forwarded.
[0012] Optionally, the step of forwarding the control signal of the target device includes:
[0013] The control signal and the identification information of the target device are uploaded to the smart device management terminal, so that the smart device management terminal generates a control transfer instruction, and forwards the control transfer instruction to the alternative smart device that responds to the control signal, wherein the control transfer instruction is used to control the corresponding relay inside the alternative smart device to respond to the control signal, and the smart device management terminal is provided with a control rule for determining the alternative smart device based on the identification information of the smart device that receives the working mode control instruction of the smart device.
[0014] On the other hand, an embodiment of the present application provides a method for controlling a smart device, the method comprising:
[0015] Receiving user request information, wherein the user request information includes identification information and working mode request information of the smart device that the user requests to control;
[0016] Generate a working mode control instruction of the smart device based on the user request information, wherein the working mode control instruction is used to control the smart device to switch working modes, and the working modes include a first working mode and a second working mode;
[0017] Send the operating mode control instruction to the smart device.
[0018] On the other hand, an embodiment of the present application provides a smart device control device, including:
[0019] An instruction receiving module, used for receiving an operating mode control instruction of an intelligent device, wherein the operating mode control instruction is used for controlling the intelligent device to switch operating modes, and the operating modes include a first operating mode and a second operating mode;
[0020] A first working module, configured to cut off the linkage relationship between the smart device and its corresponding target device and forward the control signal of the target device when the working mode control instruction is a first working mode instruction;
[0021] The second working module is used to restore the linkage relationship between the smart device and its corresponding target device when the working mode control instruction is a second working mode instruction, so that the internal circuit breaker of the smart device itself can respond to the control signal of the target device.
[0022] On the other hand, an embodiment of the present application provides a smart device control device, including:
[0023] A request receiving module, used to receive user request information, wherein the user request information includes identification information and working mode request information of the smart device that the user requests to control;
[0024] An instruction generation module, used to generate an operating mode control instruction of the smart device based on the user request information, wherein the operating mode control instruction is used to control the smart device to switch operating modes, and the operating modes include a first operating mode and a second operating mode;
[0025] The instruction sending module is used to send the working mode control instruction to the smart device.
[0026] On the other hand, an embodiment of the present application provides an intelligent device, including a controller, a wireless communicator and a relay connected to the controller;
[0027] The wireless communicator is used to receive an operating mode control instruction of a smart device, wherein the operating mode control instruction is used to control the smart device to switch operating modes, and the operating modes include a first operating mode and a second operating mode;
[0028] The controller is used to cut off / restore the linkage relationship between the smart device and its corresponding target device according to the working mode control instruction received by the wireless communicator, and forward the control signal of the target device after cutting off the linkage relationship, and enable the internal circuit breaker of the smart device itself to respond to the control signal of the target device after restoring the linkage relationship.
[0029] Optionally, the smart device further includes a memory for storing a device selection table, wherein the device selection table includes identification information of all smart devices within the same preset scene range and a controlled order of each of the smart devices.
[0030] On the other hand, an embodiment of the present application provides a smart device control system, including:
[0031] A user device, used to obtain user request information and generate a working mode control instruction of the smart device based on the user request information, wherein the user request information includes identification information of the smart device that the user requests to control and working mode request information of the smart device;
[0032] A server is connected to the user device for communication, and is used to forward the working mode control instruction of the smart device to the smart device; the server is also used to control the alternative smart device when the working mode control instruction is an external switch invalid mode instruction;
[0033] An intelligent device is communicatively connected to the server, comprising a controller, a wireless communicator and a relay connected to the controller; wherein the wireless communicator is used to receive an operating mode control instruction of the intelligent device, wherein the operating mode control instruction is used to control the intelligent device to switch operating modes, wherein the operating modes include a first operating mode and a second operating mode; the controller is used to cut off / restore the linkage relationship between the intelligent device and its corresponding target device according to the operating mode control instruction received by the wireless communicator, and forward the control signal of the target device after cutting off the linkage relationship, and enable the internal circuit breaker of the intelligent device itself to respond to the control signal of the target device after restoring the linkage relationship.
[0034] On the other hand, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the smart device control method as described above are implemented.
[0035] Implementing the embodiments of the present application will have the following beneficial effects:
[0036] The smart device and its corresponding target device are no longer bound, that is, when the smart device generates a touch instruction, when the control instruction received by the smart device is in the first working mode, the target device corresponding to the smart device no longer responds to the touch instruction generated by the smart device, and the linkage relationship between the smart device and its corresponding target device is cut off, thereby solving the problem of the power device being offline due to the smart device being affected by the target device corresponding to the smart device. After the target device corresponding to the smart device no longer responds to the touch instruction generated by the smart device, the alternative smart device is controlled to respond to the touch instruction generated by the smart device, and the smart device is converted into a wireless switch, thereby controlling other power devices within a preset range, thereby enriching the scene linkage. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] in:
[0039] Figure 1 A schematic diagram of the structure of an intelligent device control system proposed in an embodiment of the present application is shown;
[0040] Figure 2 A schematic diagram of the structure of a smart device proposed in an embodiment of the present application is shown;
[0041] Figure 3 A flow chart of a smart device control method proposed in an embodiment of the present application is shown;
[0042] Figure 4 A flowchart of another intelligent device control method proposed in an embodiment of the present application is shown;
[0043] Figure 5 A flowchart of another intelligent device control method proposed in an embodiment of the present application is shown;
[0044] Figure 6 A flowchart of another intelligent device control method proposed in an embodiment of the present application is shown;
[0045] Figure 7 A flowchart of another intelligent device control method proposed in an embodiment of the present application is shown;
[0046] Figure 8 A flowchart of another intelligent device control method proposed in an embodiment of the present application is shown;
[0047] Fig. 9 A flowchart of another intelligent device control method proposed in an embodiment of the present application is shown;
[0048] Fig.10 A flowchart of another intelligent device control method proposed in an embodiment of the present application is shown;
[0049] Fig.11 A flowchart of another intelligent device control method proposed in an embodiment of the present application is shown;
[0050] Fig.12 A schematic diagram of the structure of a smart device control device proposed in an embodiment of the present application is shown;
[0051] Fig.13 A schematic diagram showing the structure of another intelligent device control device proposed in an embodiment of the present application is shown;
[0052] Fig.14 is a hardware structure block diagram of a switch provided in an embodiment of the present application;
[0053] Fig.15 A schematic diagram of the hardware structure of a storage medium for implementing various embodiments of the present application. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0055] like Figure 1-Figure 2 As shown, this embodiment provides a smart device control system, including:
[0056] User device 101 , server 102 , gateway 104 , smart device 103 , router 105 , candidate smart device 106 and target device 107 .
[0057] The user device 101 may be any device with communication and storage functions, such as a smart phone, a desktop computer, a laptop computer, a tablet computer or other intelligent communication devices with network connection functions. The server 102 may be a network access server, a database server, a cloud server, etc.
[0058] The gateway 104 may be built based on the ZigBee protocol, and the smart device 103 may be a device pre-added to the gateway 104. For example, the smart device 103 may be a device in the kit to which the gateway 104 belongs when it leaves the factory; or it may be a device subsequently connected to the gateway 104 through user operation.
[0059] Exemplarily, a client capable of managing a smart home is installed in the user device 101 . The client may be an application client (such as a mobile phone APP) or a web client, which is not limited here.
[0060] Exemplarily, the smart device 103 may establish a network connection with the gateway 104 based on the ZigBee protocol, thereby joining the ZigBee network.
[0061] The gateway 104 and the user device 101 can be connected to the router 105 and connected to the Ethernet through the router 105. The router 105 can access the server 102 through a wired or wireless communication connection. For example, the gateway 104 and the user device 101 can store the acquired information in the server 102. Optionally, the user device 101 can also establish a network connection with the server 102 through 2G / 3G / 4G / 5G, WiFi, etc., so as to obtain data sent by the server 102.
[0062] The user device 101 is used to obtain user request information and generate a working mode control instruction of the smart device based on the user request information, wherein the user request information includes identification information of the smart device that the user requests to control and working mode request information of the smart device;
[0063] The server 102 is connected to the user device 101 for communicating with the user device 101, and is used to forward the working mode control instruction of the smart device to the smart device; the server is also used to receive the control signal caused by the action of the target device 107 forwarded by the smart device 103 when the working mode control instruction is an external switch invalid mode instruction, and control the alternative smart device 106 to respond to the control signal caused by the action of the target device 107;
[0064] The smart device 103 is communicatively connected to the server 102, and includes a controller 1031, a wireless communicator 1032 and a relay 1033 connected to the controller 1031; wherein the wireless communicator 1032 is used to receive an operating mode control instruction of the smart device, wherein the operating mode control instruction is used to control the smart device to switch the operating mode, and the operating mode includes a first operating mode and a second operating mode; the controller 1031 is used to cut off / restore the linkage relationship between the target device 107 and its own internal relay 1033 according to the operating mode control instruction received by the wireless communicator 1032, and forward the control signal caused by the action of the target device 107 after cutting off the linkage relationship, so that the server 102 controls the corresponding relay in the alternative smart device 106 to respond to the control signal caused by the action of the target device 107; and after restoring the linkage relationship, the controller 1031 controls its own internal relay 1033 to respond to the control signal generated by the action of the target device 107.
[0065] Exemplarily, a user inputs request information on user device 101, user device 101 forwards the request information to server 102, server 102 generates an operating mode control instruction based on the request information, and sends the operating mode control instruction to smart device 103, smart device 103 responds to the operating mode control instruction, cuts off / restores the linkage relationship between target device 107 and smart device 103, and forwards the control signal caused by the action of target device 107 after cutting off the linkage relationship, and enables its internal circuit breaker to respond to the control signal caused by the action of target device 107 after restoring the linkage relationship.
[0066] For example, Figure 1 The LAN path shown in FIG. 1 indicates that the user device 101 is in the same LAN as the router 105 and the gateway 104, and the WAN path indicates that the user device 101 is in the same LAN as the router 105 and the gateway 104. When the user device 101 is in the same LAN as the router 105 and the gateway 104, the user device 101 can Figure 1 The local area network path shown interacts with the gateway 104 and the smart device 103 connected to the gateway 104; Figure 1 The wide area network path shown interacts with the gateway 104 and the smart device 103 connected to the gateway 104. When the user device 101 is not in the same local area network as the router 105 and the gateway 104, the user device 101 can communicate with the smart device 103 through Figure 1 The wide area network path shown interacts with the gateway 104 and the smart device 103 and / or the alternative smart device 106 connected to the gateway 104 .
[0067] Exemplarily, the gateway 104 may be a ZigBee gateway. Zigbee is a low-power, self-organizing mesh network standard. It can provide a complete and interoperable IoT solution for home and building automation. When a ZigBee coordinator is needed to form a ZigBee network, at least one existing PANID of the ZigBee cell where the ZigBee coordinator is located is detected; based on at least one existing PAN ID, a first PAN ID is determined for the ZigBee network, wherein the first PAN ID does not belong to at least one existing PAN ID; a network access request of the ZigBee device is obtained; based on the network access request, the ZigBee device is added to the ZigBee network; a network access confirmation message sent by the ZigBee device is obtained; when the network access confirmation message meets the preset conditions, a network access response message is generated and sent to the ZigBee device, which is used to indicate that the ZigBee device has successfully joined the ZigBee network. In this way, when the ZigBee coordinator determines the PAN of the current ZigBee network, After the ID, the network access confirmation message sent by the ZigBee device will be used to determine whether the current ZigBee device has joined the correct network, thereby ensuring that there is no network conflict in the current ZigBee network due to the addition of the wrong ZigBee device. Therefore, the technical problem of large network conflicts in smart devices in the prior art when facing multiple control networks is effectively solved, and the probability of network conflicts of smart devices in multiple control networks is reduced.
[0068] The present application provides a smart device control method, which takes a single / dual-channel control module as a smart device, an external switch as a target device, the second working mode is an external switch effective mode, and the first working mode is an external switch invalid mode. For example, it can be used Figure 1 in the system.
[0069] The user chooses to turn on or off the working mode of any single / dual-channel control module on the user device, and the user device obtains the user's request information, which includes the identification information and action request information of the single / dual-channel control module; the user device sends the request information to the cloud server.
[0070] like Figure 3 As shown, the user device obtains the user's request information and sends the request information to the cloud server, specifically including:
[0071] S101, the user equipment obtains the user's request information;
[0072] S102: The user device sends the request information to the cloud server.
[0073] Exemplarily, a user chooses on a user device to turn on the single / dual-way control module of the Nth electrical device within a preset range to an external switch invalid mode, so that the single / dual-way control module corresponding to the Nth electrical device does not respond to the target device on the circuit where the Nth electrical device is located, and specifies an alternative smart device that responds to the target device, wherein the Nth electrical device is the target electrical device, and setting the single / dual-way control module of the Nth electrical device to an external switch invalid mode is action request information. The user device then obtains the target identification information and action request information of the single / dual-way control module of the target electrical device, as well as the identification information of the alternative smart device that responds to the target device when the single / dual-way control module does not respond to the target device, and sends the action request information, the target identification information, and the identification information of the alternative smart device to the server.
[0074] Exemplarily, the user device may also implement a process for generating a working mode control instruction. When the user device generates a working mode control instruction, the process for processing the request information is consistent with the process for processing the request information when the server generates the working mode control instruction. When the user device generates a working mode control instruction based on the user's request information, the server receives the working mode control instruction and forwards the working mode control instruction to the single / dual-channel control module.
[0075] The server receives the request information sent by the user device, and based on the request information, generates a signal for cutting off or restoring the linkage relationship between the target device and its corresponding single / dual-way control module, and controls the alternative smart device to respond to the control signal generated by the target device. The server sends the control instruction to the single / dual-way control module.
[0076] like Figure 4 As shown, the server generates a working mode control instruction based on the request information, and sends the working mode control instruction to the single / dual-channel control module, specifically including:
[0077] S201, the server receives user request information;
[0078] S202, the server generates a working mode control instruction of the single / dual control module based on the user request information;
[0079] S203: The server sends a working mode control instruction to the single / dual-channel control module.
[0080] The target single / dual-channel control module receives the working mode control instruction sent by the server, and responds to the working mode control instruction to cut off or restore the linkage relationship between the target device and its corresponding single / dual-channel control module. When the working mode control instruction is an invalid mode instruction of the external switch, the single / dual-channel control module sends a transfer control instruction to the server.
[0081] like Figure 5 As shown, the steps of the single / dual-channel control module receiving the working mode control instruction sent by the server and responding to the working mode control instruction specifically include:
[0082] S301, the single / dual-channel control module receives a working mode control instruction of the single / dual-channel control module, wherein the working mode control instruction is used to control the single / dual-channel control module to be controlled to switch working modes, and the working modes include a first working mode and a second working mode;
[0083] S302, when the working mode control instruction is an external switch invalid mode instruction, the single / dual-channel control module cuts off the linkage relationship between its internal relay and its corresponding target device, and forwards the control signal of the target device;
[0084] Exemplarily, when the working mode control instruction is an external switch invalid mode instruction, the single / dual-way control module responds to the external switch invalid mode instruction, so that the linkage relationship between the single / dual-way control module and its corresponding target external switch is disconnected, and the single / dual-way control module and its corresponding target device are no longer bound, and the control signal of the target device is forwarded.
[0085] S303: When the working mode control instruction is an external switch effective mode instruction, the linkage relationship between the relay inside the single / dual-way control module and its corresponding target external switch is restored so that the internal circuit breaker can respond to the control signal from the target device.
[0086] Exemplarily, a smart wall switch, i.e., a single / dual-way control module, receives an operating mode control instruction sent by a server, and switches or maintains the operating mode based on the operating mode control instruction. For example, the current smart wall switch is in an external switch invalid mode. After receiving the operating mode control instruction sent by the server, the external switch invalid mode is maintained or switched to the external switch valid mode based on the operating mode control instruction.
[0087] Exemplarily, when the single / dual-channel control module forwards the control signal from the target device, it can convert the control signal from the target device into a non-transfer control instruction and forward it, without the need for the server to generate a transfer control instruction; it can also directly forward the control signal from the target device without processing the control signal from the target device, and perform the transfer control instruction generation process in the server; that is, both the server and the single / dual-channel control module can implement the transfer control instruction generation process, and when the server generates the transfer control instruction, the single / dual-channel control module that receives the working mode control instruction feeds back the transfer control signal to the server, such as Figure 6 As shown, the server receives the control signal, generates a control instruction for controlling the candidate smart device based on the control signal and the identification information of the candidate smart device, and sends the control instruction to the candidate smart device, specifically including:
[0088] S401, the server obtains identification information of the candidate smart device and a transfer control signal sent by the single / dual-channel control module that has received the working mode control instruction, where the transfer control signal is a feedback signal used to indicate that the single / dual-channel control module is currently in an external switch invalid mode, and the transfer control signal includes a control signal of the target device;
[0089] S402, the server generates a control transfer instruction based on the control transfer signal and the identification information of the candidate smart device;
[0090] S403: The server sends the control transfer instruction to the candidate smart device.
[0091] Exemplarily, when the server generates a control transfer instruction, the server determines the alternative smart device based on the identification information of the single / dual-way control module that forwards the control signal and the control transfer rules set inside the server, wherein the control transfer rules are used to determine the alternative smart device based on the identification information of the single / dual-way control module that receives the working mode control instructions of the single / dual-way control module, and the control transfer rules can be a device selection table obtained from the single / dual-way control module, or can be the controlled order of the single / dual-way control modules set by the user.
[0092] When the server generates a control transfer instruction, the calculation amount of the single / dual-channel control module is reduced, thereby reducing the software and hardware requirements of the single / dual-channel control module, making the application scope of the present application solution wider.
[0093] Exemplarily, when the single / dual-channel control module generates a transfer control instruction, the single / dual-channel control module generates the transfer control instruction based on the control signal of the target device and the identification information of the candidate smart device, and sends the transfer control instruction to the server so that the server controls the relay inside the candidate smart device to respond to the control signal of the target device, such as Figure 7 As shown, including:
[0094] S501, the single / dual-channel control module obtains the control signal of the target device and the identification information of the candidate smart device;
[0095] S502, the single / dual-channel control module generates a control transfer instruction based on the control signal of the target device and the identification information of the candidate intelligent device;
[0096] S503: The single / dual-channel control module sends the control transfer instruction to the server, so that the server controls the candidate intelligent device to respond to the control signal of the target device.
[0097] When the single / dual-channel control module generates a transfer control instruction, the server only performs data transmission and does not need to participate in calculations, thereby reducing the resources occupied by the server and alleviating the pressure on the server.
[0098] When the single / dual-way control module generates a transfer control instruction, the server receives the transfer control instruction and forwards the transfer control instruction to the candidate intelligent device to control the candidate intelligent device to respond to the control signal of the target device. Exemplarily, when the candidate intelligent device is an alternative single / dual-way control module, the server receives the transfer control instruction and forwards the transfer control instruction to the alternative single / dual-way control module to control the corresponding relay inside the alternative single / dual-way control module to respond to the control signal of the target device.
[0099] By no longer binding the target device and the corresponding single / dual-channel control module, the single / dual-channel control module corresponding to the electrical device no longer responds to the control signal generated by the corresponding target device. By not changing the closed state of the relay in the single / dual-channel control module, the problem of the electrical device being offline due to the target electrical device being affected by an external switch is solved. At the same time, the ordinary external switch is converted into a wireless switch, thereby controlling other electrical devices within a preset range and enriching the scene linkage.
[0100] An application scenario of the above method is introduced as an example. The determination of the candidate smart device does not only rely on the user to specify a specific smart device as the candidate smart device, but also can establish a device selection table to determine the candidate smart device according to the user's habits or the frequency of use of the smart device to be controlled. In the case of using the device selection table to determine the candidate smart device, when the working mode control instruction is an external switch invalid mode instruction, the linkage relationship between the target device and the corresponding smart device is cut off, and the steps of controlling the candidate smart device in response to the control signal generated by the target device are as follows, Figure 8 As shown, including:
[0101] S601, when the working mode control instruction is an external switch invalid mode instruction, the single / dual-channel control module cuts off the linkage relationship between its internal relay and its corresponding target device;
[0102] S602, the single / dual-channel control module obtains its own identification information;
[0103] S603: The single / dual-channel control module determines candidate intelligent devices based on its own identification information and a device selection table, wherein the device selection logic table includes identification information of all single / dual-channel control modules and a controlled order of each single / dual-channel control module.
[0104] Exemplarily, when a user selects an electrical device for setting up, the single / dual-way control module corresponding to the target electrical device selected by the user is used as the target single / dual-way control module, the server obtains the identification information of the target single / dual-way control module, the server obtains the device selection table stored in the target single / dual-way control module, the server matches the identification information of the target single / dual-way control module with all the identification information in the device selection logic table, the server determines the alternative smart device based on the matching result and the controlled order of each single / dual-way control module, only needs to establish the device selection table, and the user does not need to specify the alternative smart device each time, the operation is simple, and the process of determining the target device to be controlled is faster.
[0105] Exemplarily, when determining the candidate smart device based on the identification information of the target single / dual-channel control module and the device selection table, the identification information of the target single / dual-channel control module is matched with the device selection logic table to obtain a matching result, the matching result is displayed, a user's request to modify the matching result is obtained, the matching result is corrected based on the user's request to modify the matching result, and a corrected matching result is obtained, and the candidate smart device is determined according to the corrected matching result, thereby avoiding the inconvenience caused by selecting the candidate smart devices one by one according to the controlled order of the devices to be controlled in the device selection logic table. For example, when a user needs to control a clothes hanger, but The clothes hanger is the last electrical device in the controlled order in the device selection logic table. Therefore, the user needs to press it multiple times or perform a large number of comparisons and calculations in the control end of the single / dual-way control module before controlling the clothes hanger, which brings inconvenience and waste of resources. By obtaining the user's request to modify the matching result and selecting the target electrical device according to the user's request to modify the matching result, the matching result can be modified in time after a match is performed in the control end of the single / dual-way control module, and the matching of other electrical devices can be skipped. The smart clothes hanger is directly selected as the target electrical device, which is more in line with the concept of intelligent control and easier to meet user needs.
[0106] For example, Fig. 9 As shown, a method for generating a device selection logic table includes:
[0107] S701. The server obtains attribute information of all electrical devices within the control range of a preset single-channel / dual-channel control module, the attribute information including identity information, and obtains identification information of the single-channel / dual-channel control module;
[0108] S702, the server sorts all electrical devices according to usage frequency to obtain the controlled order of the single / dual control modules;
[0109] S703: The server sets the single / dual-channel control module to adopt different response modes to different control signals generated by the corresponding external switches according to the usage modes of different electrical devices.
[0110] Exemplarily, the attribute information of all electrical appliances within the control range of a preset single / dual-way control module, for example, in a living room, a bedroom, etc., is obtained, that is, the attribute information of a TV and a lamp in the living room is obtained, and the attribute information is used to identify the TV and the lamp, and the controlled order of the TV and the lamp is arranged according to the frequency of use, that is, if the frequency of use of the lamp is higher than that of the TV, then the controlled order is set to the lamp, then the TV; according to the usage of different electrical appliances, the single / dual-way control module is set to adopt different response methods for different control signals generated by its corresponding external switch. For example, when the external switch is pressed for the first time, it is detected that the circuit of the lamp is open, then the relay in the single / dual-way control module of the lamp is closed, and the lamp is turned on. When the external switch is pressed for the second time, it is detected that the relay in the single / dual-way control module of the lamp is in a closed state, then the relay in the single / dual-way control module of the TV is regulated to realize the automatic control process. There is no need to generate a control instruction for the invalid mode of the external switch according to the user's request when the relay in the single / dual-way control module of the lamp is closed, thereby automatically converting the external switch into an intelligent wireless switch to enrich the scene linkage.
[0111] Exemplarily, the touch command generated by pressing the external switch of the electrical device is obtained, wherein the touch command can be generated by a single-key press trigger, a double-key press trigger, a single-finger press trigger, a multi-finger press trigger, a preset track press trigger, etc. In addition, the touch command can also be generated after a single trigger, after multiple triggers, after a fixed time interval trigger, after a variable time interval trigger, after a fixed press time trigger, or after a variable press time trigger. Different triggering methods correspond to different touch commands, thereby enriching the types of touch commands and making the control of the controlled device more flexible.
[0112] Specifically, the switch has built-in normal mode, rebound mode and wireless mode. In the normal working mode, the external switch is pressed, and a touch command is generated, and the working state of the electrical equipment is controlled by controlling the opening and closing of the relay. In the rebound mode, the relay is in the closed state, and the external switch is pressed, and a touch command is generated, and the relay is controlled to open first and then close to generate a momentary break signal, thereby realizing the control of the working state of the electrical equipment. In the wireless mode, the relay is in the closed state, and the control command is generated by pressing the external switch to control the working state of the electrical equipment, enriching the control method of the switch.
[0113] Specifically, in the rebound mode, the relay is controlled to open and then close to generate a momentary break signal, and the momentary break signal is used as a control instruction to control the working state of the controlled device with the momentary break detection module, thereby realizing state control of a specific type of controlled device.
[0114] In some embodiments, if the alternative smart device is an alternative single / dual-way control module, when the relay of the single / dual-way control module is in a closed state and the external switch is pressed, the relay of the single / dual-way control module is controlled to remain closed, and the relay state of the alternative smart device is obtained according to the controlled order of the devices to be controlled in the device selection logic table. If the relay state of the alternative smart device is also in a closed state, the relay state of another single / dual-way control module continues to be obtained according to the controlled order of the devices to be controlled in the device selection logic table until a single / dual-way control module with an internal relay in a disconnected state is found, and the single / dual-way control module with an internal relay in a disconnected state is controlled to power the corresponding electrical equipment to ensure that all electrical equipment remain online.
[0115] For example, Fig.10 As shown, the step of generating a control transfer instruction based on the control transfer signal and the identification information of the candidate smart device includes:
[0116] S801, the server adds the control transfer instruction generated by the control transfer signal and the identification information of the candidate smart device to the request of the ZigBee network where the candidate smart device is located;
[0117] S802. The server searches the local identification list for identification information of the candidate smart device, wherein the local identification list is used to store the single / dual-way control module identification information corresponding to the single / dual-way control module to be controlled within the control space of the preset single / dual-way control module;
[0118] S703: If the identification information of the candidate smart device exists in the local identification list, the server generates a ZigBee instruction for controlling the candidate smart device;
[0119] S804: If the identification information of the candidate smart device does not exist in the local identification list, the server generates a prompt message, where the indication information is used to show that the candidate smart device is not in the current ZigBee network.
[0120] Exemplarily, in order to ensure that when the alternative smart device is controlled to respond to the control signal of the target device, the alternative smart device can receive the control instruction, that is, the ZigBee instruction, the alternative smart device needs to be checked to ensure that the identification information of the alternative smart device exists in the local identification list. The existence of the identification information of the alternative smart device in the local identification list indicates that the alternative smart device is in the current ZigBee network and the alternative smart device can receive the control instruction.
[0121] In a possible implementation, Fig.11 As shown, the step of searching whether there is identification information of a candidate smart device in the local identification list includes:
[0122] S901, the server obtains the distance between the gateway and the candidate smart device;
[0123] S902: When the distance is less than the preset distance value, the server searches the local identification list for single / dual control module identification information;
[0124] S903: When the distance is greater than or equal to the preset distance value, the server modifies the identification information of the candidate smart device, and the modified identification information does not exist in the local identification list.
[0125] Exemplarily, obtaining the distance between the control end of the single / dual-way control module and the single / dual-way control module can be achieved by setting a distance sensor, or by recording the signal transmission duration to calculate the distance between the control end of the single / dual-way control module and the single / dual-way control module. By setting a preset value, the single / dual-way control module connected to the ZigBee network corresponding to the control end of the single / dual-way control module is limited. The accuracy of the single / dual-way control module joining the ZigBee network is improved, and the mismatching of the single / dual-way control module is avoided to a certain extent.
[0126] Exemplary, when the preset control range of the single / dual-way control module cannot meet the user's needs, for example, when the preset control range of the single / dual-way control module is preset to the whole house, when the user is in the living room, there is no need to control the electrical equipment in the bedroom. If all electrical equipment in the whole house continues to be controlled, the single / dual-way control module in the living room will respond slowly to the control signal generated by the user pressing the external switch, requiring the user to press multiple times or requiring a large number of comparisons and calculations in the control end of the single / dual-way control module, resulting in unnecessary waste of resources. Therefore, a preset distance value can be set according to the length, width and height of the living room. When the distance between the control end of the single / dual-way control module and the single / dual-way control module is greater than or equal to the preset distance value, the single / dual-way control module will be eliminated, and the single / dual-way control module will no longer respond to the control signal generated by the user pressing the external switch, thereby achieving a more precise control process and meeting different requirements in different scenarios.
[0127] In a possible implementation, Fig.12 As shown, the present application provides a smart device control device, comprising:
[0128] The instruction receiving module 201 is used to receive the working mode control instruction of the smart device, wherein the working mode control instruction is used to control the smart device to switch the working mode, and the working mode includes a first working mode and a second working mode;
[0129] The first working module 202 is used to cut off the linkage relationship between the smart device and its corresponding target device and forward the control signal of the target device when the working mode control instruction is the first working mode instruction;
[0130] The second working module 203 is used to restore the linkage relationship between the smart device and its corresponding target device when the working mode control instruction is the second working mode instruction, so that the internal circuit breaker of the smart device itself can respond to the control signal of the target device.
[0131] In a possible implementation, Fig.13 As shown, the present application provides a smart device control device, comprising:
[0132] The request receiving module 301 is used to receive user request information, wherein the user request information includes identification information and working mode request information of the smart device that the user requests to control;
[0133] The instruction generation module 302 is used to generate an operating mode control instruction of the smart device based on the user request information, wherein the operating mode control instruction is used to control the smart device to switch the operating mode, and the operating mode includes a first operating mode and a second operating mode;
[0134] The instruction sending module 303 is used to send an operating mode control instruction to the smart device.
[0135] In a possible implementation, Fig.14 As shown, the present application provides an intelligent device, including a controller 501, a wireless communicator 502 and a relay 503 connected to the controller;
[0136] The wireless communicator 502 is used to receive the working mode control instruction of the smart device, wherein the working mode control instruction is used to control the smart device to switch working modes, and the working modes include a first working mode and a second working mode;
[0137] The controller 501 is used to cut off / restore the linkage relationship between its own internal relay 503 and its corresponding target device according to the working mode control instruction received by the wireless communicator 502, and forward the control signal of the target device after cutting off the linkage relationship, and enable its own internal circuit breaker 503 to respond to the control signal of the target device after restoring the linkage relationship.
[0138] Based on the working mode control instruction of the smart device, the linkage relationship between its own internal relay 503 and its corresponding target device is cut off / restored, that is, the binding relationship between its own internal relay 503 and its corresponding target device is released / restored, so that the smart device corresponding to the target device no longer responds to the control signal generated by the target device. By not changing the closed state of its own internal relay 503, the problem of the electrical device being offline due to the relay in the smart device of the electrical device being affected by the external switch is solved. At the same time, the target device is converted into a wireless switch, thereby controlling other electrical devices within a preset range, enriching the scene linkage.
[0139] In a possible implementation, Fig.14 As shown, the smart device also includes a memory 504 for storing a device selection table, which is used to configure the forwarding order of the control signal. The device selection table includes identification information of all smart devices within the same preset scene range and the controlled order of each smart device.
[0140] In a possible implementation, Fig.15 As shown, an embodiment of the present application provides a computer-readable storage medium 600, on which a computer program 611 is stored, and when the computer program 611 is executed by a processor, it implements the following steps: receiving an operating mode control instruction of an intelligent device, wherein the operating mode control instruction is used to control the intelligent device to switch operating modes, and the operating modes include a first operating mode and a second operating mode; when the operating mode control instruction is an external switch invalid mode instruction, the linkage relationship between its own internal relay and its corresponding target device is cut off, and the control signal from the target device is forwarded; when the operating mode control instruction is an external switch valid mode instruction, the linkage relationship between its own internal relay and its corresponding target device is restored, so that its own internal circuit breaker can respond to the control signal of the target device.
[0141] The computer storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, but not limited to: electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any combination of the above. More specific examples (non-exhaustive lists) of computer-readable storage media include: electrical connections with one or more wires, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this document, computer-readable storage media can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0142] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0143] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0144] Computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0145] It should be understood by those skilled in the art that the above modules or steps of the present application can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.
[0146] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments described above, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.
[0147] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.
Claims
1. A method for controlling an intelligent device, characterized in that: The following steps are involved: Receiving an operating mode control instruction of a smart device, wherein the operating mode control instruction is used to control the smart device to switch operating modes, and the operating modes include a first operating mode and a second operating mode; When the working mode control instruction is a first working mode instruction, the linkage relationship between the smart device and its corresponding target device is cut off, and the control signal of the target device is forwarded; When the working mode control instruction is a second working mode instruction, the linkage relationship between the smart device and its corresponding target device is restored so that the internal circuit breaker of the smart device itself can respond to the control signal of the target device.
2. A smart device control method as claimed in claim 1, characterized in that: When the working mode control instruction is the first working mode instruction, the step of cutting off the linkage relationship between the smart device and its corresponding target device and forwarding the control signal of the target device includes: When the working mode control instruction is the first working mode instruction, the linkage relationship between the internal relay of the smart device and the corresponding target device is cut off; Acquire self-identification information, and determine a candidate smart device that should respond to the control signal of the target device based on the self-identification information and a device selection table, wherein the device selection table includes identification information of all smart devices within the same preset scene range and the controlled order of each of the smart devices; The control signal of the target device is forwarded.
3. A smart device control method as claimed in claim 1 or 2, characterized in that: The step of forwarding the control signal of the target device comprises: The control signal and the identification information of the target device are uploaded to the smart device management terminal, so that the smart device management terminal generates a control transfer instruction, and forwards the control transfer instruction to the alternative smart device that responds to the control signal, wherein the control transfer instruction is used to control the corresponding relay inside the alternative smart device to respond to the control signal, and the smart device management terminal is provided with a control rule for determining the alternative smart device based on the identification information of the smart device that receives the working mode control instruction of the smart device.
4. A method for controlling an intelligent device, characterized in that: The method comprises: Receiving user request information, wherein the user request information includes identification information and working mode request information of the smart device that the user requests to control; Generate an operating mode control instruction of the smart device based on the user request information, wherein the operating mode control instruction is used to control the smart device to switch operating modes, the operating modes include a first operating mode and a second operating mode, wherein when the smart device is in the first operating mode, the smart device receives and forwards a control signal of a target device; when the smart device is in the second operating mode, an internal circuit breaker of the smart device can receive and respond to a control signal of a target device; Send the working mode control instruction.
5. A smart device control device, characterized in that: include: An instruction receiving module, used for receiving an operating mode control instruction of an intelligent device, wherein the operating mode control instruction is used for controlling the intelligent device to switch operating modes, and the operating modes include a first operating mode and a second operating mode; A first working module, configured to cut off the linkage relationship between the smart device and its corresponding target device and forward the control signal of the target device when the working mode control instruction is a first working mode instruction; The second working module is used to restore the linkage relationship between the smart device and its corresponding target device when the working mode control instruction is a second working mode instruction, so that the internal circuit breaker of the smart device itself can respond to the control signal of the target device.
6. A smart device control device, characterized in that: include: A request receiving module, used to receive user request information, wherein the user request information includes identification information and working mode request information of the smart device that the user requests to control; an instruction generation module, configured to generate an operation mode control instruction of the smart device based on the user request information, wherein the operation mode control instruction is used to control the smart device to switch the operation mode, wherein the operation mode includes a first operation mode and a second operation mode, wherein when the smart device is in the first operation mode, the smart device receives and forwards a control signal of a target device; when the smart device is in the second operation mode, an internal circuit breaker of the smart device can receive and respond to a control signal of the target device; The instruction sending module is used to send the working mode control instruction to the smart device.
7. A smart device, characterized in that: It includes a controller, a wireless communicator and a relay connected to the controller; The wireless communicator is used to receive an operating mode control instruction of the smart device, wherein the operating mode control instruction is used to control the smart device to switch operating modes, wherein the operating modes include a first operating mode and a second operating mode, wherein when the smart device is in the first operating mode, the smart device receives and forwards a control signal of a target device; when the smart device is in the second operating mode, an internal circuit breaker of the smart device can receive and respond to a control signal of a target device; The controller is used to cut off / restore the linkage relationship between the smart device and its corresponding target device according to the working mode control instruction received by the wireless communicator, and forward the control signal of the target device after cutting off the linkage relationship, and enable the internal circuit breaker of the smart device itself to respond to the control signal of the target device after restoring the linkage relationship.
8. The smart device according to claim 7, characterized in that: The smart device also includes a memory for storing a device selection table, wherein the device selection table includes identification information of all smart devices within the same preset scene range and a controlled order of each of the smart devices.
9. An intelligent device control system, characterized in that: include: A user device, used to obtain user request information and generate a working mode control instruction of the smart device based on the user request information, wherein the user request information includes identification information of the smart device that the user requests to control and working mode request information of the smart device; A server is connected to the user device for communication, and is used to forward the working mode control instruction of the smart device to the smart device; the server is also used to control the alternative smart device when the working mode control instruction is an external switch invalid mode instruction; An intelligent device is communicatively connected to the server, comprising a controller, a wireless communicator and a relay connected to the controller; wherein the wireless communicator is used to receive an operating mode control instruction of the intelligent device, wherein the operating mode control instruction is used to control the intelligent device to switch operating modes, wherein the operating modes include a first operating mode and a second operating mode; the controller is used to cut off / restore the linkage relationship between the intelligent device and its corresponding target device according to the operating mode control instruction received by the wireless communicator, and forward the control signal of the target device after cutting off the linkage relationship, and enable the internal circuit breaker of the intelligent device itself to respond to the control signal of the target device after restoring the linkage relationship.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the intelligent device control method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
DCS switching value output card
CN112130514A
Load equipment control method, device and system, electronic equipment and storage medium
CN114253143A