CN114253141B - Load device control method, device and system, electronic device and storage medium - Google Patents

Load device control method, device and system, electronic device and storage medium Download PDF

Info

Publication number
CN114253141B
CN114253141B CN202011014164.1A CN202011014164A CN114253141B CN 114253141 B CN114253141 B CN 114253141B CN 202011014164 A CN202011014164 A CN 202011014164A CN 114253141 B CN114253141 B CN 114253141B
Authority
CN
China
Prior art keywords
load
branch
control
control instruction
controlling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011014164.1A
Other languages
Chinese (zh)
Other versions
CN114253141A (en
Inventor
黄灿武
游延筠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN202011014164.1A priority Critical patent/CN114253141B/en
Publication of CN114253141A publication Critical patent/CN114253141A/en
Application granted granted Critical
Publication of CN114253141B publication Critical patent/CN114253141B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B15/00Systems controlled by a computer
    • G05B15/02Systems controlled by a computer electric
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/20Pc systems
    • G05B2219/26Pc applications
    • G05B2219/2642Domotique, domestic, home control, automation, smart house
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The embodiment of the application provides a load equipment control method, a device and a system, electronic equipment and a computer storage medium, wherein the load equipment control method comprises the following steps: acquiring a control instruction; based on the control instruction, controlling one or more load devices of the load branch to be opened or closed by adopting a matched working mode according to the load type of the corresponding load branch; wherein, the matched working mode comprises: a conventional mode of correspondingly opening or closing the on-off device is controlled according to the control instruction; maintaining the contact of the on-off device to be normally closed, and sending a wireless command for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control command; and controlling the on-off device to send a rebound mode of an instantaneous interruption signal for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.

Description

Load device control method, device and system, electronic device and storage medium
Technical Field
The present application relates to the field of electronic circuits, and in particular, to a method, an apparatus, a system, an electronic device, and a computer readable storage medium for controlling a load device.
Background
The intelligent home is a trend of an information society, the existing intelligent home equipment generally adopts a remote control technology, all intelligent home equipment is connected to the same gateway or router through an intelligent switch to realize a networking function so as to carry out remote control, and the key of the intelligent switch also supports manual operation under a user line to be started or disconnected.
However, with the continuous upgrade of home devices, various brands of smart home devices or non-smart home devices available for users to select are more and more selected, and currently known smart switches for realizing unified smart control on home devices are often used only by adopting unified brands, and especially under the condition of simultaneously including smart home devices and non-smart home devices, unified smart control cannot be realized, so that user selection is greatly limited, and user smart experience is affected.
Disclosure of Invention
In order to solve the existing technical problems, the application provides a load equipment control method, a load equipment control device, a load equipment control system, an electronic equipment and a computer readable storage medium, wherein the load equipment control method, the load equipment control device and the electronic equipment are high in compatibility and flexible in control mode.
In order to achieve the above object, the technical solution of the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a load device control method, which is applied to an electronic device, including:
Acquiring a control instruction;
based on the control instruction, controlling one or more load devices of the load branch to be opened or closed by adopting a matched working mode according to the load type of the corresponding load branch;
wherein, the matched working mode comprises: a conventional mode of correspondingly opening or closing the on-off device is controlled according to the control instruction; maintaining the contact of the on-off device to be normally closed, and sending a wireless command for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control command; and controlling the on-off device to send a rebound mode of an instantaneous interruption signal for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
In a second aspect, an embodiment of the present application further provides a load device control apparatus, including:
the acquisition module is used for acquiring the control instruction;
The control module is used for controlling one or more load devices of the load branch to be opened or closed by adopting a matched working mode according to the load type of the corresponding load branch based on the control instruction;
wherein, the matched working mode comprises: a conventional mode of correspondingly opening or closing the on-off device is controlled according to the control instruction; maintaining the contact of the on-off device to be normally closed, and sending a wireless command for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control command; and controlling the on-off device to send a rebound mode of an instantaneous interruption signal for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
In a third aspect, an embodiment of the present application further provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable by the processor, where the computer program when executed by the processor implements the load device control method according to any one of the embodiments of the present application.
In a fourth aspect, an embodiment of the present application further provides a load device control system, including the electronic device according to any one of the embodiments of the present application and a multiple load branch communicatively connected to the electronic device; wherein the multiple load branches include at least two of: a first load branch with a load type of non-intelligent load, a second load branch with a load type of target intelligent load, and a third load branch with a load type of non-target intelligent load; and the electronic equipment respectively controls one or more load equipment of the multipath load branches to be correspondingly opened or closed according to the control instruction.
In a fifth aspect, an embodiment of the present application further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement a load device control method according to any one of the embodiments of the present application.
According to the load equipment control method, the load equipment control device, the load equipment control system, the electronic equipment and the computer readable storage medium, the electronic equipment can be connected with one or more load branches of different load types, corresponding working modes are respectively set according to the load types of the load equipment in the different load branches, when a control instruction of one or more load branches is received, the working modes matched with the corresponding load branches are determined to control according to the control instruction, the electronic equipment can be compatible with the multiple load equipment of different load types, multiple load equipment of different load types can be independently controlled or simultaneously and uniformly controlled by adopting multiple working modes, the control mode is more flexible, and the intelligent user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a load device control system according to an embodiment of the present application;
fig. 2 is a schematic diagram of an alternative application scenario of a load device control system according to an embodiment of the present application;
FIG. 3 is an alternative schematic diagram of an Internet of things system according to an embodiment of the application;
fig. 4 is a schematic diagram of an internet of things system for wireless mode in an embodiment of the present application;
Fig. 5 is a schematic diagram of an internet of things system for a normal mode or a rebound mode in an embodiment of the present application;
FIG. 6 is a flowchart of a load device control method according to an embodiment of the present application;
FIG. 7 is a flowchart of a load device control method according to another embodiment of the present application;
FIG. 8 is a flow chart of a method of controlling a load device in an alternative embodiment of the application;
FIG. 9 is a schematic diagram illustrating the operation of the multi-operation mode according to an embodiment of the present application;
FIG. 10 is a schematic diagram of a load device control apparatus according to an embodiment of the present application;
FIG. 11 is a schematic diagram of an electronic device according to an embodiment of the application;
fig. 12 is a schematic diagram of an electronic device according to another embodiment of the application.
Detailed Description
The technical scheme of the application is further elaborated below by referring to the drawings in the specification and the specific embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the implementations of the application. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
In the description of the present application, it should be understood that the terms "center," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," and the like indicate orientations or positional relationships based on the orientation or positional relationships shown in the drawings, merely to facilitate describing the present application and simplify the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present application. In the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the description of the present application, it should be noted that, unless explicitly specified and limited otherwise, the terms "mounted," "connected," and "connected" are to be construed broadly, and may be either fixedly connected, detachably connected, or integrally connected, for example; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present application will be understood in specific cases by those of ordinary skill in the art.
Referring to fig. 1, an electronic device 10 according to an embodiment of the application includes an on-off device, a processor 13, a memory (not shown), and a local key.
The electronic device 10 may be configured to control one or more load branches, each load branch including one or more load devices, respectively. The load devices of the different load branches may be non-intelligent load devices, target intelligent load devices of a specified brand, or non-target intelligent load devices of any brand other than the specified brand. The number of the local keys of the electronic equipment can be in one-to-one correspondence with the number of the load branches, or can be larger than the number of the load branches, and the on-off devices can be respectively in correspondence with the local keys. In the embodiment of the present application, the load branches include a first load branch 31, a second load branch 32, and a third load branch 33. The first load branch 31 correspondingly comprises one or more non-intelligent load devices, the second load branch 32 comprises one or more target intelligent load devices, and the third load branch 33 comprises one or more non-target intelligent load devices. The electronic device 10 includes a first local key 111 corresponding to the first load branch 31, a second local key 112 corresponding to the second load branch 32, and a third local key 113 corresponding to the third load branch 33, respectively; the on-off means comprises a first on-off means 121 corresponding to the first local key 111, a second on-off means 122 corresponding to the second local key 112 and a third on-off means 123 corresponding to the third local key.
The memory has stored therein a computer program, and the processor 13 performs the relevant control actions when executing the computer program stored in the memory. When the electronic device performs on-off control on the load device, the load device may be turned on or off by operating a local key, or by remotely operating the terminal device 20, and the processor 13 may obtain a control instruction for the load branch according to the detected operation on the local key, or a received instruction (which may be specifically implemented by a wireless communication module and is not shown in the figure) sent by the terminal device 20, and control on or off of one or more load devices of the load branch by adopting a matched working mode according to a load type of the load branch. The load branches of different load types correspond to different working modes respectively, and the matched working modes comprise: a conventional mode of correspondingly opening or closing the on-off device is controlled according to the control instruction; maintaining the contact of the on-off device to be normally closed, and sending a wireless command for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control command; and controlling the on-off device to send a rebound mode of an instantaneous interruption signal for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
The processor 13 may be a main controller including an analog-to-digital converter (ADC, analog to digital converter), such as a micro-control unit (MCU, microcontroller Unit). The electronic device 10 may be various types of switches and sockets, and the on-off device is a key component for implementing on or off of the electronic device 10, for example, the on-off device may be a relay in a typical embodiment.
Optionally, the electronic device 10 is a smart switch. And a plurality of load branches are respectively connected in series with a plurality of local keys of the intelligent switch in a one-to-one correspondence manner in the control loop. Please refer to fig. 2, which is a schematic diagram of a circuit of the intelligent switch for controlling three load branches. The local keys may be elastic mechanical switches, and the load device may be turned on or turned off by operating the local keys, where the processor 13 detects the elastic mechanical switches, and when the current state of the load device of the corresponding load branch is an on state under the condition that the pressing operation of the elastic mechanical switches is detected, the processor 13 obtains a turn-off control instruction according to the pressing operation, and controls the load device in the load branch to be turned off according to the load type of the corresponding load branch by adopting a matched working mode based on the turn-off control instruction; when the pressing operation of the elastic mechanical switch is detected, and the current state of the load equipment of the corresponding load branch is in the closed state, the processor 13 acquires an opening control instruction according to the pressing operation, and controls the opening of the load equipment in the load branch by adopting a matched working mode according to the load type of the corresponding load branch based on the opening control instruction. Optionally, the elastic mechanical switch may be a knob switch, and the operation of the local key to turn on or off the load device may also be that a knob operation of the elastic mechanical switch is detected. The remote operation of opening or closing the load device by the terminal device 20 may be that an application program client for remotely controlling the load device is installed on the terminal device 20, the terminal device 20 detects a touch operation of an opening key or a closing key in a control interface of the application program, and sends a control instruction to the processor 13 of the intelligent switch according to the touch operation.
In the above embodiment, the electronic device 10 may be connected to one or multiple load branches of different load types, and set corresponding working modes according to the load types of the load devices in the different load branches, and when a control instruction for a certain load branch or multiple load branches is received, the working mode matched with the corresponding load branch is determined to control according to the control instruction, so that the electronic device may be compatible with multiple load devices of different load types, and multiple load devices of different load types are controlled independently or simultaneously in a unified manner by adopting multiple working modes, so that the control mode is more flexible, and the user intelligent experience is improved.
Fig. 3 is an alternative schematic diagram of an internet of things system consisting of electronic devices and gateways 53, electronic devices 54, routers 55, servers 52, terminal devices 51, etc. The terminal device 51 may be any device having communication and storage functions, for example: smart phones, desktop computers, notebook computers, tablet computers, or other intelligent communication devices with network connection functions. Server 52 may be a network access server, database server, cloud server, or the like. Alternatively, the gateway 53 may be set up based on the ZigBee protocol, and the electronic device 54 may be a device that is added to the gateway 53 in advance, for example, the electronic device 54 may be a device in a suite to which the gateway 53 belongs when shipped; or may be a device that is subsequently connected to the gateway 53 by user operation.
Optionally, a client capable of managing the smart home is installed in the terminal device 51, where the client may be an application client (such as a mobile phone APP) or a web client, which is not limited herein. The APP can comprise a configuration interface, at least one gateway is added on the APP, when other sub-equipment (a sensor and an intelligent switch) is added, a button of the sub-equipment adding in the APP configuration interface is clicked, the gateway to which the sub-equipment needs to be connected is selected on the configuration interface, and the gateway can be added into a ZigBee network corresponding to the gateway, and forms a ZigBee local area network together with the other added sub-equipment and the gateway. Alternatively, the electronic device 54 may establish a network connection with the gateway 53 based on the ZigBee protocol, thereby joining the ZigBee network.
The gateway 53 and the terminal device 51 are both connected to the router 55, and are connected to the ethernet through the router 55, and the router 55 can be connected to the server through wired or wireless communication connection. For example, the gateway 53 and the terminal device 51 may store the acquired information in the server 52. Optionally, the terminal device 51 may also establish a network connection with the server 52 through 2G/3G/4G/5G, wiFi and so on, so as to obtain data issued by the server 52.
The internet of things system can automatically control the internet of things load devices within the range of the local area network or correspondingly connected with the internet of things load devices with different load types by adopting a matched working mode according to different load types in the load branch circuit through the electronic device 54. The term automation (or automation linkage) is a linkage application built between gateways or sub-devices connected to the gateways. The automation generally comprises a trigger condition and an execution action, the load equipment of the internet of things in the automation can comprise a trigger equipment and a controlled equipment, the trigger equipment and the controlled equipment can be in communication connection through a gateway, and when the trigger equipment meets the trigger condition, the gateway controls the controlled equipment to execute the corresponding execution action. The triggering device may be various sensors, such as a pressure sensor, a temperature sensor, a humidity sensor, a door and window sensor, or a smoke sensor, etc., and in the embodiment shown in fig. 3, the electronic device detects the pressing operation of the user through the pressure sensor at the local key, and may be regarded as the triggering device. The controlled device may be various switches, sockets, electric lamps, infrared emission devices or camera devices, etc., and in this embodiment, the on-off device in the electronic device realizes the on-off control of the load device, and may be regarded as the controlled device; or the load device completes the opening or closing action according to the control instruction and can be regarded as the controlled device. The trigger device and the controlled device may be the same device. In an alternative exemplary application, the electronic device may be a smart switch and the load device may include, but is not limited to, smart home products such as smart lights, automatic curtains, air conditioning, and the like.
Alternatively, the lan path as shown in fig. 3 indicates that the terminal device 51, the router 55, the gateway 53 and the electronic device 54 are in the same lan, and the wide area network path indicates that the electronic device 54, the gateway 53, the router 55 and the server 52 are in the same wide area network. Wherein, when the terminal device 51, the router 55 and the gateway 53 are in the same lan, the terminal device 51 may interact with the gateway 53 and the electronic device 54 connected to the gateway 53 through the lan path as shown in fig. 3; interaction with the gateway 53 and the electronic device 54 connected to the gateway 53 may also be through a wide area network path as shown in fig. 3. The terminal device 51, the electronic device 54 and the load device are all located in the same gateway, and the communication path for controlling the load device by the terminal device 51 may include: path one: the terminal device 51 communicates with the gateway 53, and the electronic device 54 communicates with the gateway 53; path two: the terminal device 51 communicates with the gateway 53, and the load device communicates with the gateway; and path III: the terminal device 51 communicates directly with the electronic device 54; and path four: the electronic device 54 communicates directly with the load device. When the terminal device 51 is not in the same local area network as the router 55 and the gateway 53, the terminal device 51 may interact with the gateway 53 and the electronic device 54 connected to the gateway 53 through a wide area network path as shown in fig. 3.
In different working modes, because the load types of the load devices are different, when the terminal device 51, the router 55 and the gateway 53 are in the same local area network, the communication paths for controlling the load devices by the terminal device 51 in the internet of things system are different.
Referring to fig. 4, an optional schematic diagram of an internet of things system in a wireless mode is shown, and load type 2 refers to a target intelligent load device of a specified brand. Wherein the communication path of the terminal device 51 controlling the load device may include: path one: the terminal device 51 communicates with the gateway 53, and the electronic device 54 communicates with the gateway 53; path two: the terminal device 51 communicates directly with the electronic device 54; and path III: the electronic device 54 communicates directly with the load device. The electronic device 54 sends a wireless instruction to the load device in the corresponding load branch according to the control instruction, so as to control the load device to be turned on or turned off.
Referring to fig. 5, an alternative schematic diagram of an internet of things system in a normal mode or a rebound mode is shown, the load type 1 refers to a non-intelligent load device, the load type 1 does not have a module for wireless communication with the outside, and the load type 3 refers to other brands of intelligent loads except for a specified brand, that is, a non-target intelligent load device. For the non-target intelligent load device, the non-target intelligent load device can respond correspondingly by detecting the voltage change in the power supply line and identifying the effective change of the voltage, for example, if the voltage is reduced to 0V and then returns to normal within a preset time, the non-target intelligent load device responds to the effective change to perform the operation of turning on or off the lamp. Wherein the communication path of the terminal device 51 controlling the load device may include: path one: the terminal device 51 communicates with the gateway 53, and the electronic device 54 communicates with the gateway 53; path two: the terminal device 51 communicates directly with the electronic device 54. The electronic device 54 controls the contact point action of the on-off device according to the control instruction, so as to control the on-off of the load device in the corresponding load branch.
Referring to fig. 6, an embodiment of the present application provides a load device control method, which is applied to the electronic device shown in fig. 1, and the load device control method includes, but is not limited to, S101 and S105, and is specifically described as follows:
s101, acquiring a control instruction.
The electronic device acquiring the control instruction may be that the electronic device detects an operation of a local key by a user, and acquires a control instruction for controlling the load device to be turned on or turned off according to the detected operation; or the terminal equipment detects the touch operation of an opening key or a closing key in the control interface of the application program, correspondingly sends an opening or closing control instruction to the electronic equipment according to the touch operation, and the electronic equipment acquires the control instruction from the terminal equipment.
The local key may be a mechanical pressing key, a mechanical knob key, a rebound touch key, and the like, and correspondingly, the operation on the body key may be a pressing operation on the mechanical pressing key, a knob operation on the mechanical knob key, a touch operation on the rebound touch key, and the like.
And S105, based on the control instruction, controlling one or more load devices of the load branch to be opened or closed by adopting a matched working mode according to the load type of the corresponding load branch.
Wherein, the matched working mode comprises: a conventional mode of correspondingly opening or closing the on-off device is controlled according to the control instruction; maintaining the contact of the on-off device to be normally closed, and sending a wireless command for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control command; and controlling the on-off device to send a rebound mode of an instantaneous interruption signal for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
The electronic device may be connected to one or more load branches, respectively, each load branch comprising one or more load devices. Wherein the load types of the load devices in the different load branches may be the same or different. Optionally, the electronic device includes a plurality of local keys, the load branches are respectively in one-to-one correspondence with the local keys of the electronic device, and the control instruction may be a control instruction for controlling the load device in the load branch associated with the local key based on the operation of one of the local keys. Taking an example that the electronic device comprises a local key 1, a local key 2 and a local key 3, wherein the load branch comprises a first load branch, a second load branch and a third load branch, the local key 1 corresponds to the first load branch, the local key 2 corresponds to the second load branch, the local key 3 corresponds to the third load branch, the electronic device detects the operation of the local key 1, and correspondingly obtains a control instruction for controlling the load device in the first load branch. Optionally, an electronic device control interface is provided in a client of the terminal device, where the electronic device control interface is provided with corresponding control keys for each path of load branches, and the control instruction may also be that the terminal device obtains, according to an operation on one of the control keys, a control instruction for controlling a load device in a load branch associated with the control key, and sends the control instruction to the electronic device, where the electronic device receives the control instruction sent by the terminal device. Taking an example that the load branches comprise a first load branch, a second load branch and a third load branch, a control key in a client of the terminal equipment comprises a control key 1, a control key 2 and a control key 3, wherein the control key 1 corresponds to the first load branch, the control key 2 corresponds to the second load branch, the control key 3 corresponds to the third load branch, the terminal equipment detects touch operation of a user on the control key 2, a control instruction for controlling load equipment in the second load branch associated with the control key 2 is obtained and sent to the electronic equipment, and the electronic equipment receives the control instruction for controlling the load equipment in the second load branch, which is sent by the terminal equipment.
The electronic equipment sets different working modes for control according to the load types of the load equipment in different load branches. Taking a load type comprising a non-intelligent load, a target intelligent load and a non-target intelligent load as an example, aiming at load equipment of the non-intelligent load, controlling the load equipment by using an electronic equipment in a normal mode, and controlling the load equipment in a load branch to be opened or closed by using the normal mode under the condition that the electronic equipment acquires a control instruction aiming at the load branch of which the load type is the non-intelligent load; aiming at target intelligent load equipment, the working mode of the electronic equipment for controlling the intelligent load equipment is a wireless mode, and when the electronic equipment acquires a control instruction aiming at a load branch with a load type being a target intelligent load, the electronic equipment adopts the wireless mode to control the load equipment in the load branch to be started or closed; aiming at non-target intelligent load equipment, the working mode of the electronic equipment for controlling the non-target intelligent load equipment is a rebound mode, and when the electronic equipment acquires a control instruction aiming at a load branch of which the load type is the non-target intelligent load, the rebound mode is adopted to control the load equipment in the load branch to be started or closed.
In the embodiment of the application, the electronic equipment can be correspondingly connected with one or more load branches, each load branch can comprise load equipment with different load types, the electronic equipment respectively sets corresponding working modes according to the load types of the load equipment in the different load branches, when a control instruction for one or more load branches is received, the working modes matched with the corresponding load branches are determined to control according to the control instruction, so that the electronic equipment can be compatible with the multiple load equipment with different load types, and the multiple load equipment with different load types can be respectively controlled independently or simultaneously and uniformly by adopting multiple working modes, so that the control mode is more flexible, and the intelligent experience of a user is improved.
In some embodiments, referring to fig. 7, S105, based on the control instruction, controlling one or more load devices of the load branch to be turned on or off according to a load type of the corresponding load branch in a matched operation mode includes:
S1051, based on the control instruction, determining that the matched working mode is a normal mode under the condition that the load type of the corresponding load branch is an intelligent load;
S1052, controlling the contact of the on-off device to be closed according to the control instruction so as to control one or more load devices of the load branch to be opened; or controlling the contact of the on-off device to be opened according to the control instruction so as to control one or more load devices of the load branch to be closed.
A non-intelligent load refers to a conventional load device that is controlled to be turned on or off by a mechanical switch. The electronic equipment comprises load branches, wherein the load equipment in at least one load branch is non-intelligent load equipment. Under the condition that the electronic equipment receives a control instruction aiming at a load branch circuit of which the load equipment is an unintelligent load, based on the control instruction, the electronic equipment determines that a working mode matched with the corresponding load branch circuit is a normal mode, and then controls the contact of an on-off device connected with the load branch circuit to be closed according to the control instruction so as to control the opening of the unintelligent load equipment in the load branch circuit, or controls the contact of the on-off device connected with the load branch circuit to be opened according to the control instruction so as to control the closing of the unintelligent load equipment in the load branch circuit. For example, if the non-intelligent load device is a lamp, in the normal mode, the electronic device controls the contact of the on-off device connected with the load branch to be closed according to the control instruction, and the lamp is lightened; and the electronic equipment controls the contact of the on-off device connected with the load branch to be disconnected according to the control instruction, and the lamp is extinguished.
Optionally, before S105, the method further includes:
s103, judging the load type of the load branch circuit.
In the above embodiment, for a load branch with a load type of non-intelligent load, after the electronic device obtains the control instruction, the electronic device simulates the closing or opening of a traditional mechanical switch by controlling the closing or opening of an on-off device connected with the load branch, so as to realize the automatic control of the load branch with the load type of non-intelligent load.
Optionally, S101, acquiring a control instruction includes:
Receiving a control instruction sent by the terminal equipment based on an electronic equipment control interface; or alternatively, the first and second heat exchangers may be,
Detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
The control instruction of the electronic device for controlling the load branch with the load type being the non-intelligent load can be obtained by sending the control instruction based on the electronic device control interface through the receiving terminal device, or can be obtained by detecting the operation of the local key. The electronic equipment control interface comprises control keys for controlling multiple paths of load branches correspondingly connected with the electronic equipment respectively, the terminal equipment detects touch operation of a user on the control keys, correspondingly obtains control instructions of the load branches corresponding to the control keys, and sends the control instructions to the load branches. Optionally, the electronic device control interface further includes displaying current status information of multiple load branches correspondingly connected to the electronic device, where the current status information may be on or off status information of the indicator light, or may be text information directly indicating that the load branches are currently on or off. Before the user controls the load device through the terminal device, the user can know whether the target control result of the control instruction to be sent to the load branch is on or off according to the current state information of the load branch, if the current state information of the load branch is on, the target control result of the current control instruction to the load branch is switched to off, and if the current state information of the load branch is off, the target control result of the current control instruction to the load branch is switched to on.
The electronic equipment can comprise a plurality of local keys for controlling the multipath load branches correspondingly connected with the electronic equipment respectively, the electronic equipment detects the touch operation of a user on the local keys, correspondingly obtains the control instruction of the load branch corresponding to the local keys, and sends the control instruction to the load branch. Optionally, the local key of the electronic device further includes an indicator light for indicating a current state of a load branch that is connected correspondingly, and before the user controls the load device by operating the local key, the user can know whether the target control result of the load branch is on or off according to the control instruction to be sent out by the indicator light.
In the above embodiment, the electronic device sets the normal mode for controlling the on/off of the non-intelligent load device, and forms different load branches capable of being controlled independently according to different load types of the load device, so that the electronic device can realize the automatic control of the non-intelligent load device, and the electronic device can be compatible with the purpose of intelligent control of the load devices of different load types.
In some embodiments, S105, based on the control instruction, controls, according to a load type of a corresponding load branch, turning on or off one or more load devices of the load branch in a matched operation mode, including:
S1053, based on the control instruction, determining that the matched working mode is a wireless mode under the condition that the load type of the corresponding load branch is a target intelligent load;
S1054, sending a wireless instruction for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction; in this process, the contacts of the switching device are always closed.
The target intelligent load refers to intelligent equipment which can be directly connected with the electronic equipment and the terminal equipment in a communication way, such as intelligent load equipment with the same brand as the electronic equipment. And the load branch circuit comprises load equipment in at least one load branch circuit, wherein the load equipment in the load branch circuit is target intelligent load equipment. And under the condition that the electronic equipment receives a control instruction aiming at a load branch circuit of which the load equipment is a target intelligent load, based on the control instruction, determining that a working mode matched with the corresponding load branch circuit is a wireless mode, and sending the wireless instruction for controlling one or more load equipment of the load branch circuit to be opened or closed to the load branch circuit by the electronic equipment according to the control instruction so as to control the opening or closing of the target intelligent equipment in the load branch circuit.
Optionally, a control instruction for controlling the target intelligent load device and a control of the contact of the on-off device may be independent of each other, and the contact of the on-off device may be in a normally closed state, so as to keep the load device in a continuously controlled state. The process refers to a process that the electronic device obtains a control instruction and then controls the target load device according to the control instruction until a control result of the target load device is obtained. The determining in this process mainly includes two aspects, and the first aspect takes as an example that the target load device is controlled to be opened or closed according to the control instruction, where in this process means that after the electronic device obtains the control instruction, the electronic device sends a wireless instruction for controlling the one or more target load devices to be opened or closed correspondingly to the target load device, and the target load device completes the opening or closing process correspondingly according to the wireless instruction. In a second aspect, taking an example of failure to control the target load device to be opened or closed according to the control instruction, the method includes three situations: in case 1, the process refers to that after the electronic device acquires the control instruction, the electronic device sends a wireless instruction for controlling the one or more target load devices to be opened or closed correspondingly to the target load devices, and the target load devices do not successfully complete the corresponding opening or closing process according to the wireless instruction; in case 2, if the target load device does not successfully complete the control result of the corresponding opening or closing action according to the wireless instruction, the method further includes repeatedly sending the wireless instruction to the target load device for a plurality of times according to a preset requirement, and sending the wireless instruction for a plurality of times so that the target load device successfully completes the corresponding opening or closing action, wherein in the process, after receiving the control instruction, the electronic device sends the wireless instruction for controlling the one or more target load devices to correspondingly open or close for a plurality of times to the target load device until the target load device correspondingly completes the opening or closing action according to the plurality of wireless instructions; or in case 3, if the target load device does not successfully complete the control result of the corresponding opening or closing action according to the wireless instruction, the method further includes repeatedly sending the wireless instruction to the target load device for a plurality of times according to a preset requirement, and the repeatedly sending the wireless instruction does not enable the target load device to successfully complete the corresponding opening or closing action, in this process, after receiving the control instruction, the electronic device repeatedly sends the wireless instruction for controlling the corresponding opening or closing action of the one or more target load devices to the target load device, and the target load device fails to successfully complete the corresponding opening or closing action according to the repeatedly wireless instruction. For case 3 of the second aspect, after the process, the electronic apparatus controls the contacts of the on-off device to be opened according to the control instruction.
In the above embodiment, after the electronic device obtains the control instruction, the electronic device may directly send a wireless instruction for controlling the opening or closing of the target intelligent load device to the load branch, so as to implement automatic control over the load branch with the load type being the target intelligent load.
In some embodiments, the sending, to the load branch, a wireless instruction for controlling one or more load devices of the load branch to be turned on or off according to the control instruction includes:
detecting the current state of the contact of the on-off device, controlling the contact of the on-off device to be switched to be closed under the condition that the contact of the on-off device is opened, and then sending a wireless instruction for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
After receiving a control instruction, the electronic equipment detects whether the contact of the on-off device is closed, and if the contact of the current on-off device is closed, the load equipment is in a power supply state and is in a controlled state; and if the contact of the on-off device is determined to be opened, controlling the contact of the on-off device to be closed so as to ensure that the target load equipment is in a power supply and controlled state.
In this embodiment, in the process of controlling the load branch by the electronic device according to the control instruction, by detecting the state of the contact of the on-off device, under the condition that the contact of the on-off device is opened, the contact of the on-off device is controlled to be closed first, so as to avoid that the on-off device of the electronic device is opened, and the power supply of the target load device is cut off and is in an off-line state, so that the remote control of the target load device can still be realized. The electronic equipment ensures that the subsequent control step of the load equipment can be executed by judging whether the contact of the on-off device is closed currently.
Optionally, whether the contact of the on-off device of the electronic equipment is closed or not may be determined by the electronic equipment according to the current state of the contact of the on-off device stored in the electronic equipment, and the on-off device actively sends information capable of representing the current state of the contact to the electronic equipment.
In some embodiments, S101, the acquiring a control instruction includes:
Receiving a control instruction sent by the terminal equipment based on a load control interface; or alternatively, the first and second heat exchangers may be,
Receiving a control instruction sent by the terminal equipment based on an electronic equipment control interface; or alternatively, the first and second heat exchangers may be,
Detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
The control instruction of the electronic device for controlling the load branch with the load type being the target intelligent load can be obtained by sending the control instruction based on the load control interface through the receiving terminal device or the control instruction based on the electronic device control interface through the receiving terminal device, and can also be obtained by detecting the operation of the local key. That is, for the control of the load type as the target intelligent load, there are at least two control interfaces on the terminal device, one of which is a load control interface, for example, a control interface of the intelligent lamp; and the second is an electronic equipment control interface, for example, a control interface of an intelligent switch.
The load control interface comprises an operation key for controlling the target intelligent load equipment, and the terminal equipment can directly control the target intelligent load equipment through the operation key. And the terminal equipment acquires a control instruction of the load branch where the target intelligent equipment is located when detecting the touch operation of the operation key in the load control interface by the user, and sends the control instruction to the electronic equipment.
The electronic equipment control interface can comprise control keys for respectively controlling multiple paths of load branches correspondingly connected with the electronic equipment, and when the terminal equipment detects the touch operation of a user on the control keys, the control instructions of the load branches corresponding to the control keys are obtained and sent to the load branches. Optionally, the electronic device control interface further includes displaying current status information of multiple load branches correspondingly connected to the electronic device, where the current status information may be on or off status information of the indicator light, or may be text information directly indicating that the load branches are currently on or off. Before the user controls the load device through the terminal device, the user can know whether the target control result of the control instruction to be sent to the load branch is on or off according to the current state information of the load branch, if the current state information of the load branch is on, the target control result of the current control instruction to the load branch is switched to off, and if the current state information of the load branch is off, the target control result of the current control instruction to the load branch is switched to on.
The electronic equipment can comprise a plurality of local keys for controlling the multipath load branches correspondingly connected with the electronic equipment respectively, the electronic equipment detects the touch operation of a user on the local keys, correspondingly obtains the control instruction of the load branch corresponding to the local keys, and sends the control instruction to the load branch. Optionally, the local key of the electronic device further includes an indicator light for indicating a current state of a load branch that is connected correspondingly, and before the user controls the load device by operating the local key, the user can know whether the target control result of the load branch is on or off according to the control instruction to be sent out by the indicator light.
In the above embodiment, the electronic device adopts the wireless mode to realize the automatic control of the load branch where the target intelligent load device is located by setting the wireless mode for controlling the opening or closing of the target intelligent load device, and the electronic device can respectively form different load branches which can be respectively and independently controlled according to different load types of the load device, so that the electronic device can be compatible with the purpose of intelligent control of the load devices with different load types.
In some embodiments, the sending, to the load branch, a wireless instruction for controlling one or more load devices of the load branch to be turned on or off according to the control instruction includes:
According to the control instruction, the current working state of one or more load devices of the load branch is obtained;
And generating a wireless instruction opposite to the current working state of one or more load devices of the load branch according to the current working state, and sending the wireless instruction to the one or more load devices of the load branch.
The control instruction may be an instruction for controlling the target intelligent load, which is sent to the electronic device by the terminal device according to the operation of the user on the operation key in the load control interface, or an instruction for controlling the target intelligent load, which is sent to the electronic device by the electronic device according to the operation of the user on the control key in the electronic device control interface, or an instruction obtained by the electronic device according to the operation of the user on the local key. Optionally, the local key may be an elastic mechanical switch, or the operation key and the control key on the terminal device may be single control keys, and the user obtains a control instruction once each time the local key is pressed or once each time the operation key or the control key is touched, and after receiving the control instruction, the electronic device generates a wireless instruction opposite to the current working state of the load device according to the current working state of the target intelligent load device. If the electronic device receives a control instruction for a load branch where the target intelligent load is located, generating a wireless instruction for controlling the load device in the load branch to be closed according to the current working state of the load device in the load branch being open.
In this embodiment, by intelligently determining that the control instruction is an on instruction or an off instruction according to the current working state of the load device in the load branch, the number of keys for controlling the load device can be reduced, and the control operation is simplified.
In some embodiments, after the sending, to the load branch, a wireless instruction for controlling one or more load devices of the load branch to be turned on or off according to the control instruction, the method includes:
judging whether the load equipment of the load branch circuit successfully executes corresponding actions according to the wireless instructions;
And returning to the step of sending the wireless instruction for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction under the condition that the load devices of the load branch fail to execute the corresponding action and the current failure times are within the set range.
The electronic equipment judges whether the load equipment in the load branch circuit successfully executes the corresponding action according to the wireless instruction, if the load equipment fails to execute the corresponding action and the current failure times are within the set range, the electronic equipment returns to the step of sending the wireless instruction for controlling one or more load equipment in the load branch circuit to be opened or closed according to the control instruction to the load branch circuit, and thus the electronic equipment repeatedly circulates. By recording the number of times of failure of executing actions of the load equipment in the load branch and setting the number of times of failure as one of conditions for repeated control under the condition that the execution of actions of the target load equipment is unsuccessful in a set range, the continuous circulation under the condition of excessive circulation times or errors can be avoided, the control accuracy of the load equipment can be ensured, and the control efficiency can be improved.
Taking the setting range as three times as an example, the electronic equipment judges whether the corresponding action of the load equipment in the load branch circuit is successful or not according to the wireless instruction, if not, the current failure times are recorded as one time, and the step of sending the wireless instruction for controlling one or more load equipment of the load branch circuit to be opened or closed according to the control instruction to the load branch circuit is returned, and the wireless instruction for controlling the corresponding opening or closing of the load equipment is sent to the load equipment again; the electronic equipment judges whether the corresponding action of the load equipment in the load branch circuit is successful or not again, if the corresponding action is still unsuccessful, the current failure times are recorded as secondary, the step of sending a wireless instruction for controlling one or more load equipment of the load branch circuit to be opened or closed to the load branch circuit according to the control instruction is returned again, and the wireless instruction for controlling the load equipment to be opened or closed is sent to the load equipment of the load branch circuit again; and repeatedly cycling until the electronic equipment judges that the load equipment in the load branch circuit successfully executes corresponding actions according to the wireless instruction or the current failure times exceed three times.
Optionally, after the wireless instruction for controlling one or more load devices of the load branch to be turned on or off is sent to the load branch according to the control instruction, the method further includes:
and under the condition that the load equipment of the load branch fails to execute the corresponding action and the current failure times exceed the set range, sending a contact opening instruction to the on-off device according to the control instruction, and controlling the contact opening of the on-off device.
The electronic equipment judges whether the load equipment in the load branch circuit successfully executes the corresponding action according to the wireless instruction, if the target load equipment fails to execute the corresponding action and the failure times do not exceed the set range, the electronic equipment returns to the step of sending the wireless instruction for controlling one or more load equipment of the load branch circuit to be opened or closed according to the control instruction to the load branch circuit, and the electronic equipment performs reciprocating circulation. The method comprises the steps of recording the times of failure of executing actions of load equipment, setting one of conditions for repeated control when the failure times are unsuccessful in executing actions of target load equipment within a set range, avoiding continuous circulation when the circulation times are excessive or errors occur, controlling contacts of an on-off device to be disconnected when the times of failure of executing the corresponding actions of the load equipment exceeds the set range, and cutting off power supply of the load equipment in a load branch, wherein at the moment, if a control instruction to the load equipment is a closing control instruction at present, the control target of closing the load equipment in the load branch is achieved by controlling the contacts of the on-off device to be disconnected; if the control instruction to the load equipment is an opening control instruction, the current state of the load equipment in the load branch can be uniformly reset to be in a closing state by opening the contact of the on-off device, which is equivalent to automatic error repair, so that the electronic equipment can accurately and effectively control the load equipment in the load branch according to the next control instruction.
In some embodiments, further comprising: and under the condition that the load equipment of the load branch fails to execute the corresponding action and the current failure times exceed the set range, forming a trigger instruction according to the operation of the local key, and controlling the contact closure of the on-off device corresponding to the load branch.
In the internet of things system, according to different communication paths of the electronic device for controlling the target intelligent load device based on the control instruction, the communication paths can be divided into a wireless mode 1 and a wireless mode 2. In the wireless mode 1, the electronic equipment sends a wireless instruction to the load equipment in the corresponding load branch circuit, wherein the wireless instruction is directly sent to the corresponding load equipment in the load branch circuit from the electronic equipment and is not sent through a gateway; in the wireless mode 2, the electronic device sends a wireless instruction to the load device in the corresponding load branch circuit, wherein the wireless instruction is forwarded from the electronic device to the load device through the gateway, the gateway can locally store the mapping relation between different load branch circuits and the load device in the electronic device, and after the electronic device sends the wireless instruction for controlling the corresponding load branch circuit to the gateway according to the control instruction, the gateway sends the wireless instruction for controlling one or more load devices of the load branch circuit to be opened or closed to the load branch circuit according to the locally stored mapping relation between the load branch circuit and the load device, so as to control the load device in the load branch circuit to be opened or closed. In the wireless mode 1 or the wireless mode 2, when the load equipment is in an offline state, the electronic equipment controls the on-off device connected with the corresponding load branch to be closed according to a trigger instruction formed by the operation of a user on the local key, at the moment, at the load equipment end, if the load equipment is in an electrified state, the load equipment is correspondingly started, and if the load equipment is in a non-electrified state, the load equipment ignores the trigger instruction and maintains the current arbitrary state.
In the implementation, the electronic device records the times of failure of executing the action by the load device, and when the times of failure of executing the corresponding action by the load device exceeds a set range, the electronic device forms a trigger instruction according to the operation of a user on a local key to control the contact closure of an on-off device corresponding to the load branch, so that the load device in the load branch is reset to a controlled state, and the electronic device can accurately and effectively control the load device in the load branch according to the next control instruction.
In some embodiments, S105, based on the control instruction, controls, according to a load type of a corresponding load branch, turning on or off one or more load devices of the load branch in a matched operation mode, including:
S1055, based on the control instruction, determining that the matched working mode is a rebound mode under the condition that the load type of the corresponding load branch is a non-target intelligent load;
s1056, controlling the contact of the on-off device to be opened for a preset time according to the control instruction, closing the contact, forming an instant-off signal based on the contact action of the on-off device, and sending the instant-off signal to one or more load devices of the load branch.
Wherein non-target smart loads refer to other smart loads than target smart loads that are capable of communicating with the gateway, such as other brands of smart loads that are different from the electronic device brands. And the load branch circuit comprises load equipment in at least one load branch circuit, wherein the load equipment in the load branch circuit is non-target intelligent load equipment. And under the condition that the electronic equipment receives a control instruction aiming at a load branch of which the load equipment is a non-target intelligent load, determining that a working mode matched with the corresponding load branch is a rebound mode based on the control instruction, controlling the contact of the on-off device to be opened for a preset time by the electronic equipment according to the control instruction, and then closing the contact of the on-off device, forming a transient-off signal based on the contact action of the on-off device, and sending the transient-off signal to one or more load equipment of the load branch so as to control the non-target intelligent equipment in the load branch to be opened or closed. The contact of the on-off device is opened for a preset time and then closed, so that an instant-off signal is formed based on the contact action of the on-off device, the generation of the instant-off signal can be equivalent to a pulse signal formed after the rebound type mechanical key is pressed, and the instant-off signal is formed to be sent to a non-target intelligent load in a corresponding load branch so as to control the load equipment to switch to an opposite state according to the current state. The preset time can be preset, or can be preset through the terminal device, for example, the initial value of the preset time can be 500ms, and the user can modify the preset time in the electronic device control interface of the terminal device.
In the above embodiment, after the electronic device obtains the control instruction for the load branch of the load type that is the non-target intelligent load, the electronic device firstly opens the preset time and then closes the contact of the on-off device connected with the corresponding load branch, forms the instantaneous interruption signal according to the contact action of the on-off device, and the contact of the on-off device is in the normally closed state, and the electronic device detects the low-level pulse signal by detecting the power supply signal during the period that the electronic device controls the contact of the on-off device to open according to the control instruction, and obtains the instruction for switching the current state by taking the pulse signal as the instantaneous interruption signal, so as to realize the automatic control of the load branch of the load type that is the target intelligent load.
In some embodiments, after the contacts of the on-off device are opened for a preset time according to the control instruction and then closed, the method further includes:
and keeping the contact of the on-off device to be always closed in other time except the preset time.
The contacts of the on-off device of the electronic equipment are kept in a closed state in other time except the preset time, on one hand, the load equipment in the load branch corresponding to the on-off device can be kept in an electrified controlled state all the time, and on the other hand, the control accuracy is improved by facilitating the acquisition of pulse signals as instructions for switching the current state by the load equipment in the load branch according to low level formed by the off action.
In some embodiments, in the rebound mode, S101, acquiring the control instruction includes:
Receiving a control instruction sent by the terminal equipment based on an electronic equipment control interface; or alternatively, the first and second heat exchangers may be,
Detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
The control instruction of the electronic device for controlling the load branch of which the load type is a non-target intelligent load can be obtained by sending the control instruction based on the electronic device control interface through the receiving terminal device, and can also be obtained by detecting the operation of a local key. For the control of a load type being a non-target intelligent load, the terminal device is provided with an electronic device control interface, for example, a control interface with an intelligent switch. The electronic equipment control interface comprises control keys for controlling multiple paths of load branches correspondingly connected with the electronic equipment respectively, and when the terminal equipment detects the touch operation of a user on the control keys, the control instructions of the load branches corresponding to the control keys are correspondingly obtained and sent to the load branches. Optionally, the electronic device control interface further includes displaying current status information of multiple load branches correspondingly connected to the electronic device, where the current status information may be on or off status information of the indicator light, or may be text information directly indicating that the load branches are currently on or off. Before the user controls the load device through the terminal device, the user can know whether the target control result of the control instruction to be sent to the load branch is on or off according to the current state information of the load branch, if the current state information of the load branch is on, the target control result of the current control instruction to the load branch is switched to off, and if the current state information of the load branch is off, the target control result of the current control instruction to the load branch is switched to on.
The electronic equipment can comprise a plurality of local keys for controlling the multipath load branches correspondingly connected with the electronic equipment respectively, the electronic equipment detects the touch operation of a user on the local keys, correspondingly obtains the control instruction of the load branch corresponding to the local keys, and sends the control instruction to the load branch. Optionally, the local key of the electronic device further includes an indicator light for indicating a current state of a load branch that is connected correspondingly, and before the user controls the load device by operating the local key, the user can know whether the target control result of the load branch is on or off according to the control instruction to be sent out by the indicator light.
In the above embodiment, the electronic device sets the rebound mode for controlling the non-target intelligent load device to be turned on or off, and forms different load branches capable of being controlled independently according to different load types of the load device, so that the electronic device can realize automatic control of the non-target intelligent load device, and can be compatible with the purpose of intelligent control of the load devices of different load types.
In some embodiments, the controlling, based on the control instruction, on or off of one or more load devices of the load branch according to the load type of the corresponding load branch in a matched working mode includes:
Based on the control instruction, respectively determining that the working mode matched with a first load branch of which the load type is a non-intelligent load is a normal mode, the working mode matched with a second load branch of which the load type is a target intelligent load is a wireless mode and the working mode matched with a third load branch of which the load type is a non-target intelligent load is a rebound mode in the plurality of load branches according to the load types corresponding to the plurality of load branches;
controlling one or more load devices in the first load branch to be opened or closed in a conventional mode according to the control instruction;
Controlling one or more load devices in the second load branch to be opened or closed in a wireless mode according to the control instruction;
And controlling one or more load devices in the third load branch to be opened or closed in a rebound mode according to the control instruction.
The electronic device comprises multiple paths of control, one or more load devices can be contained in each path of load branch, and the load types of the load devices contained in different load branches can be the same or different. The electronic device may control the corresponding load device for one of the load branches. For example, the electronic device includes three local keys, and the load devices in the first load branch corresponding to the first local key are non-intelligent load device 1 and non-intelligent load device 2; the load equipment in the second load branch corresponding to the second local key is the target intelligent load equipment 3; the load devices in the third load branch corresponding to the third local key are non-target intelligent load device 4, non-target intelligent load device 5 and non-target intelligent load device 6. The electronic device may obtain an opening or closing control instruction opposite to the current state of the load device in the third load branch according to the pressing operation of the third local key, and control the contact of the on-off device corresponding to the third load branch according to the control instruction to be opened first for a preset time and then closed to form an instantaneous signal, where the load device in the third load branch detects the instantaneous signal to switch the current state, that is, the non-target intelligent load device 4, the non-target intelligent load device 5 and the non-target intelligent load device 6 switch from the current opening state to the closing state or from the current closing state to the opening state according to the control instruction.
Optionally, the electronic device may receive the control instruction and uniformly control the corresponding load device for the multiple load branches. And after receiving the control instruction, the electronic equipment uniformly transmits the control instruction to the multiple load branches according to the control instruction. For example, the electronic device includes a local key, and the load branches associated with the local key include three load branches connected in parallel, where the load devices in the first load branch are non-intelligent load devices 1 and 2; the load device in the second load branch is the target intelligent load device 3; the load devices in the third load branch are a non-target smart load device 4, a non-target smart load device 5 and a non-target smart load device 6. The electronic equipment can acquire a control instruction for controlling the opening or closing of the load equipment in the load branch according to the touch operation of the local key, wherein the electronic equipment controls the first load branch by adopting a conventional mode according to the control instruction, and controls the contact of an on-off device corresponding to the first load branch to be closed or opened so as to control the opening or closing of the non-intelligent load equipment 1 and the non-intelligent load equipment 2 in the first load branch; the electronic equipment adopts a wireless mode to control the second load branch according to the control instruction, firstly controls the contact of the on-off device to be closed under the condition that the contact of the on-off device is opened, and sends a wireless instruction for opening or closing to the load equipment in the second load branch under the condition that the contact of the on-off device is closed so as to control the opening or closing of the target intelligent load equipment 3 in the second load branch; the electronic equipment controls the third load branch by adopting a rebound mode according to the control instruction, controls the contact of the on-off device corresponding to the first load branch to be firstly opened for a preset time and then closed to form an instantaneous interruption signal, and switches the current state after the non-target intelligent load equipment 4, the non-target intelligent load equipment 5 and the non-target intelligent load equipment 6 in the third load branch detect the instantaneous interruption signal.
In the above embodiment, the electronic device may be connected to multiple load branches, and load devices of different load types are controlled by the multiple load branches respectively, and different working modes are set for each load device of different load types, where the multiple load branches may be controlled independently, or may be controlled in a unified manner, and multiple working modes coexist, so that the control mode is more flexible.
Optionally, different preset operations applied to the local key of the electronic device may be preset to correspond to different control instructions. For example, taking the local key as a pressing mechanical key as an example, it may be preset that a single touch operation is applied to the local key and a control instruction for controlling a load branch corresponding to the local key corresponds to the single touch operation. Under the condition that the electronic equipment detects that a single touch operation is applied to one of the local keys, a control instruction for controlling the on or off of the load equipment in the corresponding load branch is correspondingly acquired; the method comprises the steps that a control instruction for controlling the switching-off of the load equipment in all load branches is correspondingly obtained when the electronic equipment detects that the local key is subjected to double touch operation, and the contact of the switching-on and switching-off device is controlled to be switched off according to the double touch operation, so that the power supply of the load equipment in all load branches is cut off.
The terminal equipment can also provide different control keys through the control interface of the application program, and a user can touch or click the different control keys to send corresponding control instructions, for example, the terminal equipment provides independent control keys for respectively controlling the opening or closing of the load equipment in the load branch through the electronic equipment control interface of the application program, and when the terminal equipment detects the touch operation of the user on the control key corresponding to a certain load branch, the terminal equipment sends the control instructions for controlling the corresponding load branch to the electronic equipment; if the terminal equipment can also provide control keys for uniformly controlling a plurality of load branches through an electronic equipment control interface of an application program, when the terminal equipment detects the touch operation of a user on the control keys, a control instruction for simultaneously controlling the load branches is sent to the electronic equipment.
In some embodiments, S103, based on the control instruction, after controlling, according to the load type of the corresponding load branch, opening or closing of one or more load devices of the load branch in a matched working mode, further includes:
And acquiring the current state of the load equipment in the load branch after the load equipment performs the action, and reporting the current state to the cloud.
The method for acquiring the current state of the load equipment in the load branch circuit after executing the action in different working modes is different, namely, the determination modes of the current state of the load equipment in the load branch circuit of different load types are different. The electronic equipment acquires the current state of the load equipment in the load branch after executing the action, and reports the current state to the cloud end, so that the current state of the load equipment in each load branch can be accurately displayed in an electronic equipment control interface of the terminal equipment, and a user can know the current state of the load equipment in time before controlling the load equipment, thereby knowing the target control state of the next control.
Optionally, for a first load branch with a load type of non-intelligent load, in a normal mode, the electronic device determines a current state of the load device in the first load branch according to a current state of a contact of an on-off device corresponding to the first load branch; for a second load branch with a load type being a target intelligent load, in a wireless mode, the electronic device can determine the current state of the load device in the second load branch according to a previous state before the load device in the second load branch executes an action and a response instruction returned after the load device executes the action, or the electronic device can determine the current state of the load device in the second load branch according to a state actively reported by the load device in the second load branch in the execution action; for a third load branch with a load type being a non-target intelligent load, in a rebound mode, the electronic device can determine the current state of the load device in the third load branch according to the previous state and the current control instruction before the load device in the second load branch executes the action.
In order to provide a more overall understanding of the method for controlling a load device provided by the present application, please refer to fig. 8, in which an electronic device is an intelligent switch, and an on-off device included in the intelligent switch is a relay, where the intelligent switch includes three local keys, each local key corresponds to one load branch, and the method for controlling a load device is exemplified as follows:
S11, the terminal equipment acquires configuration information of load branches, wherein the configuration information of each load branch comprises corresponding associated load equipment and associated local keys;
The load types of the load devices contained in the same load branch are the same, the load types of the load devices contained in different load branches are different, and the load types of the load devices comprise:
Type one: non-intelligent loads, i.e. traditional mechanical load types;
Type two: a target smart load, i.e. a smart load type that is capable of communicating with the smart switch and that is directly controlled based on the application of the terminal device, such as a load of the same brand as the smart switch;
Type three: non-target smart loads, i.e. other smart loads than target smart loads, such as other smart loads of different brands than the smart switch.
S12, the intelligent switch acquires load branch information configured by the terminal equipment, and forms a corresponding relation between the load branches and the load equipment, and forms a corresponding relation between the load branches and the working mode according to the load type of each load branch and the load equipment;
The working modes comprise a normal mode, a wireless mode and a rebound mode;
Referring to fig. 9, in a normal mode, the intelligent switch controls the relay of the corresponding load branch to be opened or closed according to a control instruction; as shown in ①, through the configuration of S11, the local key 1 of the intelligent switch corresponds to a first load branch including a non-intelligent load, where the working mode corresponding to the first load branch is a normal mode, and a user can manually control the local key 1 of the intelligent switch, so as to control the opening or closing of the contact of the relay of the intelligent switch; the user can also send a control instruction through a control interface for controlling the intelligent switch in the application program of the terminal equipment, and the intelligent switch can control the opening or closing of the contact of the relay of the intelligent switch according to the control instruction. For the non-intelligent load, the MCU of the intelligent switch can only control the opening or closing of the relay of the MCU according to the control instruction to control the opening or closing of the load equipment in the first load branch.
In a wireless mode, the intelligent switch sends a wireless instruction for controlling the intelligent switch to open or close to load equipment of a corresponding load branch according to the control instruction; as shown in ②, through the configuration of S11, the local key 2 of the intelligent switch corresponds to a second load branch including a target intelligent load, where the working mode corresponding to the second load branch is a wireless mode, and a user can manually control the local key 2 of the intelligent switch, so as to control the intelligent switch to send a wireless instruction for controlling the intelligent switch to turn on or off to a load device in the second load branch; the user can also send a control instruction through a control interface for controlling the intelligent switch in the terminal equipment application program, and the intelligent switch sends a wireless instruction for controlling the intelligent switch to be opened or closed to the load equipment in the second load branch according to the control instruction. The relay corresponding to the intelligent switch and the second load branch circuit can be kept in a normally closed state, so that the corresponding associated load equipment is kept in an electrified and controlled state; the intelligent switch and the corresponding associated load equipment are under the same ZigBee gateway, and the two parties can communicate wirelessly; the intelligent switch directly controls the load devices in the second load branch according to the control instruction, rather than controlling the relay of the intelligent switch. In the wireless mode, the state of the indicator lamp of the intelligent switch corresponds to that of the load equipment, and when the intelligent switch is wrong in controlling the load equipment, the relay can be controlled to be disconnected if the load cannot be normally closed, so that forced closing of the load equipment is realized. For the target intelligent load, as the target intelligent load can communicate with the MCU of the electronic equipment through the MCU and the communication module of the target intelligent load, the MCU of the intelligent switch can directly send a wireless instruction to the MCU of the target intelligent load equipment in the second load branch according to the control instruction, and the MCU of the target intelligent load equipment controls the on or off of the relay of the target intelligent load equipment to control the on or off of the target intelligent load equipment.
In a rebound mode, the intelligent switch controls the relay of the corresponding load branch to be firstly disconnected for a preset time and then closed according to a control instruction so as to form an instantaneous disconnection signal, and the load branch is opened or closed according to the instantaneous disconnection signal; as shown in ③, through the configuration of S11, the local key 3 of the intelligent switch corresponds to a third load branch including a non-target intelligent load, where the working mode corresponding to the third load branch is a rebound mode, and a user can manually control the local key 3 of the intelligent switch, so as to control the intelligent switch to control the relay of the third load branch to be turned off for a preset time and then turned on, and the third load branch obtains an instruction for controlling the load device to be turned on or turned off according to the action of the relay; the user can also send a control instruction through a control interface for controlling the intelligent switch in the terminal equipment application program, the intelligent switch controls the relay of the third load branch to be opened for a preset time and then closed according to the control instruction, and the third load branch obtains an instruction for controlling the opening or closing of the load equipment according to the action of the relay. The load equipment in the third load branch circuit is used for switching the switch state when detecting that the power supply signal generates a low-level pulse signal; the electronic equipment forms a switch control instruction which is equal to a switch control instruction formed by rebound after the mechanical switch is pressed through controlling the contact action of the relay, so as to realize the control of non-target intelligent load equipment; the relay of the third load branch of the intelligent switch is in a closed state except for the pulse signal generation period; the pulse signal width of the pulse signal may be configurable by the terminal device. For the non-target intelligent load, as the MCU of the non-target intelligent load and the MCU of the intelligent switch do not have a direct communication function through the wireless communication module, the MCU of the intelligent switch controls the relay of the intelligent switch to be firstly opened for a preset time and then closed according to the control instruction to form an instantaneous-off signal, and the instantaneous-off signal is similar to a primary switch pressing signal of the rebound mechanical switch, so that the MCU of the non-target intelligent device in the third load branch circuit controls the relay of the intelligent switch to be closed or opened after detecting the instantaneous-off signal, thereby controlling the load device to be opened or closed.
S13, the intelligent switch acquires a control instruction for controlling any load branch, and controls one or more load devices of the load branch to be turned on or turned off according to the load type of the corresponding load branch by adopting a matched working mode based on the control instruction.
The types of the load devices in different load branches are different, and the electronic devices control the load devices of different types in different working modes. The internet of things system can adopt different communication paths for different working modes to control load equipment in corresponding load branches. For the conventional mode, the communication path adopted mainly comprises communication between the intelligent switch and the gateway, and in the conventional mode, the communication path is not affected in the on-line state of the load equipment in the corresponding load branch after network access or in the off-line state without network access. For the wireless mode, the wireless mode 1 and the wireless mode 2 can be divided according to different communication paths, the communication path adopted by the wireless mode 1 mainly comprises the communication between the intelligent switch and the gateway, the communication between the load device and the gateway and the communication between the intelligent switch and the load device, and the communication path adopted by the wireless mode 2 mainly comprises the communication between the intelligent switch and the gateway and the communication between the load device and the gateway. In the wireless mode 1, when the load equipment in the corresponding load branch is in an offline state without network access, after the intelligent switch acquires a control instruction, a communication path between the intelligent switch and the load equipment can be used for controlling a relay of the corresponding load branch to be closed; in the wireless mode 2, when the load equipment in the corresponding load branch is in an offline state without network access, after the intelligent switch acquires a control instruction, the intelligent switch communicates with the gateway and the gateway communicates with the load equipment, and the gateway controls the relay of the corresponding load branch to be closed according to the mapping relation between the load branch and the load equipment which are locally stored. Aiming at the rebound mode, the intelligent switch controls the relay to act according to the control instruction to form an instantaneous breaking signal, and the load branch circuit controls the load equipment to be opened or closed according to the instantaneous breaking signal, so that the control of the load equipment is not influenced in an on-line state after the load equipment is connected with the network or in an off-line state without the load equipment is connected with the network in the corresponding load branch circuit.
According to the load equipment control method provided by the embodiment of the application, the intelligent switch can be compatible with multiple load branches of different types of load equipment, and different working modes are adopted to respectively control the load equipment in the corresponding load branch, the intelligent switch coexists through the multiple working modes, and the intelligent switch can control the traditional load equipment and also control various intelligent load equipment by switching the working modes according to different load types in the load branch, so that the control mode is more flexible.
Another aspect of the present application provides a load device control apparatus, referring to fig. 10, which may be implemented using a processor in an exemplary embodiment. The load equipment control device comprises an acquisition module 211 for acquiring a control instruction; the control module 212 is configured to control, based on the control instruction, on or off of one or more load devices of the load branch according to a load type of the corresponding load branch by adopting a matched working mode; wherein, the matched working mode comprises: a conventional mode of correspondingly opening or closing the on-off device is controlled according to the control instruction; maintaining the contact of the on-off device to be normally closed, and sending a wireless command for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control command; and controlling the on-off device to send a rebound mode of an instantaneous interruption signal for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
Optionally, the control module 212 is configured to determine, based on the control instruction, that the matched working mode is a normal mode when the load type of the corresponding load branch is a non-intelligent load; controlling the contact of the on-off device to be closed according to the control instruction so as to control one or more load devices of the load branch to be opened; or controlling the contact of the on-off device to be opened according to the control instruction so as to control one or more load devices of the load branch to be closed.
Optionally, the acquiring module 211 is configured to receive a control instruction sent by the terminal device based on the control interface of the electronic device; or detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
Optionally, the control module 212 determines, based on the control instruction, that the matched working mode is a wireless mode when the load type of the corresponding load branch is the target intelligent load; according to the control instruction, a wireless instruction for controlling one or more load devices of the load branch to be opened or closed is sent to the load branch; in this process, the contacts of the switching device are always closed.
Optionally, the control module 212 is further configured to detect a current state of a contact of the on-off device, control the contact of the on-off device to switch to close under a condition that the contact of the on-off device is opened, and send a wireless instruction for controlling one or more load devices of the load branch to open or close according to the control instruction to the load branch.
Optionally, the acquiring module 211 is configured to receive a control instruction sent by the terminal device based on the load control interface; or receiving a control instruction sent by the terminal equipment based on the control interface of the electronic equipment; or detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
Optionally, the control module 212 is further configured to obtain a current working state of one or more load devices of the load branch according to the control instruction; and generating a wireless instruction opposite to the current working state of one or more load devices of the load branch according to the current working state, and sending the wireless instruction to the one or more load devices of the load branch.
Optionally, the control module 212 is further configured to determine whether the load device of the load branch is successful in executing the corresponding action according to the wireless instruction; and returning to the step of sending the wireless instruction for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction under the condition that the load devices of the load branch fail to execute the corresponding action and the current failure times are within the set range.
Optionally, the control module 212 is further configured to, when the load device of the load branch fails to perform the corresponding action and the current failure frequency exceeds the set range, send a contact opening instruction to the on-off device according to the control instruction, and control the contact opening of the on-off device.
Optionally, the control module 212 is further configured to control, when the load device of the load branch fails to perform the corresponding action and the current failure frequency exceeds the set range, the contact closure of the on-off device corresponding to the load branch according to a trigger instruction formed by the operation of the local key.
Optionally, the control module 212 is configured to determine, based on the control instruction, that the matched working mode is a rebound mode when the load type of the corresponding load branch is a non-target intelligent load; and controlling the contact of the on-off device to be opened for a preset time according to the control instruction, and then closing the contact, forming an instant-off signal based on the contact action of the on-off device, and sending the instant-off signal to one or more load devices of the load branch.
Optionally, the control module 212 is further configured to keep the contact of the on-off device closed all the time except for the preset time.
Optionally, the acquiring module 211 is configured to receive a control instruction sent by the terminal device based on the control interface of the electronic device; or detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
Optionally, the control module 212 is configured to determine, based on the control instruction, that, in the plurality of load branches, a working mode of matching a first load branch of which a load type is a non-intelligent load is a normal mode, a working mode of matching a second load branch of which a load type is a target intelligent load is a wireless mode, and a working mode of matching a third load branch of which a load type is a non-target intelligent load is a rebound mode according to load types corresponding to the plurality of load branches; controlling one or more load devices in the first load branch to be opened or closed in a conventional mode according to the control instruction; controlling one or more load devices in the second load branch to be opened or closed in a wireless mode according to the control instruction; and controlling one or more load devices in the third load branch to be opened or closed in a rebound mode according to the control instruction.
It should be noted that: in the load device control apparatus provided in the foregoing embodiment, in the process of setting multiple working modes to control multiple load branches with different load types, only the division of the program modules is used for illustration, in practical application, the processing allocation may be completed by different program modules according to needs, and the internal structure of the apparatus may be divided into different program modules to complete all or part of the processing described above. In addition, the load device control apparatus and the load device control method embodiment provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment, and are not repeated herein.
In another aspect, referring to fig. 11, an optional hardware structure of the electronic device 10 according to the embodiment of the present application is shown, where the electronic device 10 includes a processor 22 and a memory 21, and the memory 21 is used for storing various types of data to support the operation of the load device control apparatus, and storing a computer program for implementing the load device control method according to any embodiment of the present application, where the computer program implements the steps of the load device control method according to any embodiment of the present application when being executed by the processor, and can achieve the same technical effects, and is not repeated herein. The electronic equipment can be an intelligent switch, an intelligent socket and other electronic products for realizing the on-off control of a loop where the electronic equipment is located.
Fig. 12 is a block diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 12, the electronic device is a smart switch 64. The intelligent switch 64 may be configured or configured differently to provide a relatively large variance, and may include one or more processors 64a (ProcessingUnits, CPU) (the processor 64a may include, but is not limited to, a microprocessor MCU, a programmable logic device FPGA, etc.), a memory 64b for storing data 1400, one or more storage mediums 1600 (e.g., one or more mass storage devices) for storing applications 1500 or data 1400, a relay J, and a mechanical switch K. Wherein the processor 64a is connected with the relay J, the mechanical switch K, the memory 64b and the storage medium 1600 respectively; memory 64b and storage medium 1600 may be transitory or persistent. The program stored on the storage medium 1600 may include one or more modules, each of which may include a series of instruction operations on a server. Still further, the processor 64a may be configured to communicate with the storage medium 1600 and to execute a series of instruction operations on the switch 64 in the storage medium 1600.
When the mechanical switch K is pressed, the processor 64a receives a pressed signal instruction, the relay J is a controlled switch and is connected with the control end of the processor 64a, the processor 64a can control the opening and closing of the relay J by outputting a control signal through the control end, the relay J is connected in a main circuit, the main circuit is connected with a power supply and controlled equipment, and the power supply can be 220V.
The intelligent switch 64 may also include one or more built-in power supplies 1000, one or more wired or wireless network interfaces 1100, one or more input/output interfaces 1200, and/or one or more operating systems 1300, such as WindowsserverTM, macOSXTM, unixTM, linuxTM, freeBSDTM, etc.
The input-output interface 1200 may be used to receive or transmit data 1400 via a network. Specific examples of the network described above may include a wireless network provided by a communications provider of the switch 64. In one example, the input/output interface 1200 includes a network adapter (NetworInterfaceController, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the input-output interface 1200 may be a radio frequency (RadioFrequency, RF) module that is used to communicate wirelessly with the internet. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 12 is merely illustrative and is not intended to limit the configuration of the intelligent switch 64 described above. For example, the smart switch 64 may also include more or fewer components than shown in fig. 12, or have a different configuration than shown in fig. 12.
In another aspect of the embodiment of the present application, a load device control system is provided, including any one of the electronic devices implementing the present application and a multi-path load branch communicatively connected to the electronic device; wherein the multiple load branches include at least two of: a first load branch with a load type of non-intelligent load, a second load branch with a load type of target intelligent load, and a third load branch with a load type of non-target intelligent load; and the electronic equipment respectively controls one or more load equipment of the multipath load branches to be correspondingly opened or closed according to the control instruction.
The load equipment control system further comprises a gateway, and the electronic equipment and the load equipment in the load branch are in communication connection through the gateway.
The load equipment control system further comprises terminal equipment, wherein the terminal equipment is used for sending control instructions to the electronic equipment and/or the load equipment according to operation of a user.
In the above load device control system, the electronic device is configured to implement the load device control method provided by any embodiment of the present application, and achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The embodiment of the application also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor, implements the above working mode configuration method and each process of the switch control method embodiment, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here. Wherein, the computer readable storage medium is Read-only memory (ROM), random Access Memory (RAM), magnetic disk or optical disk, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (18)

1.A load device control method applied to an electronic device, comprising:
Acquiring a control instruction;
Based on the control instruction, controlling one or more load devices of the load branch to be opened or closed according to the load type of the corresponding load branch by adopting a matched working mode, wherein the load type comprises at least one of the following: non-intelligent load, target intelligent load, non-target intelligent load; different load types correspond to different operating modes, wherein a target smart load indicates a target smart load device of a specified brand and a non-target smart load indicates other brands of smart loads other than the specified brand;
wherein, the matched working mode comprises: a conventional mode of correspondingly opening or closing the on-off device is controlled according to the control instruction; maintaining the contact of the on-off device to be normally closed, and sending a wireless command for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control command; and controlling the on-off device to send a rebound mode of an instantaneous interruption signal for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
2. The load device control method according to claim 1, wherein the controlling, based on the control instruction, the one or more load devices of the corresponding load branch to be turned on or off in the matched operation mode according to the load type of the corresponding load branch includes:
Based on the control instruction, determining that the matched working mode is a conventional mode under the condition that the load type of the corresponding load branch is a non-intelligent load;
Controlling the contact of the on-off device to be closed according to the control instruction so as to control one or more load devices of the load branch to be opened; or controlling the contact of the on-off device to be opened according to the control instruction so as to control one or more load devices of the load branch to be closed.
3. The load device control method of claim 2, wherein the acquiring the control instruction includes:
Receiving a control instruction sent by the terminal equipment based on an electronic equipment control interface; or alternatively, the first and second heat exchangers may be,
Detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
4. The load device control method according to claim 1, wherein the controlling, based on the control instruction, the one or more load devices of the corresponding load branch to be turned on or off in the matched operation mode according to the load type of the corresponding load branch includes:
based on the control instruction, determining that the matched working mode is a wireless mode under the condition that the load type of the corresponding load branch is a target intelligent load;
According to the control instruction, a wireless instruction for controlling one or more load devices of the load branch to be opened or closed is sent to the load branch; in this process, the contacts of the switching device are always closed.
5. The load device control method of claim 4, wherein the sending the wireless instructions to the load branch to control one or more load devices of the load branch to turn on or off according to the control instructions comprises:
detecting the current state of the contact of the on-off device, controlling the contact of the on-off device to be switched to be closed under the condition that the contact of the on-off device is opened, and then sending a wireless instruction for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
6. The load device control method of claim 5, wherein the acquiring the control instruction comprises:
Receiving a control instruction sent by the terminal equipment based on a load control interface; or alternatively, the first and second heat exchangers may be,
Receiving a control instruction sent by the terminal equipment based on an electronic equipment control interface; or alternatively, the first and second heat exchangers may be,
Detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
7. The load device control method of claim 5, wherein the sending the wireless instructions to the load branch to control one or more load devices of the load branch to turn on or off according to the control instructions comprises:
According to the control instruction, the current working state of one or more load devices of the load branch is obtained;
And generating a wireless instruction opposite to the current working state of one or more load devices of the load branch according to the current working state, and sending the wireless instruction to the one or more load devices of the load branch.
8. The load device control method of claim 5, wherein after sending a wireless instruction to the load branch to control one or more load devices of the load branch to be turned on or off according to the control instruction, comprising:
judging whether the load equipment of the load branch circuit successfully executes corresponding actions according to the wireless instructions;
And returning to the step of sending the wireless instruction for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction under the condition that the load devices of the load branch fail to execute the corresponding action and the current failure times are within the set range.
9. The load device control method of claim 8, further comprising:
and under the condition that the load equipment of the load branch fails to execute the corresponding action and the current failure times exceed the set range, sending a contact opening instruction to the on-off device according to the control instruction, and controlling the contact opening of the on-off device.
10. The load device control method of claim 8, further comprising:
And under the condition that the load equipment of the load branch fails to execute the corresponding action and the current failure times exceed the set range, controlling the contact closure of the on-off device corresponding to the load branch according to a trigger instruction formed by the operation of the local key.
11. The load device control method according to claim 1, wherein the controlling, based on the control instruction, the one or more load devices of the load branch to be turned on or off in the matched operation mode according to the load type of the corresponding load branch includes:
Based on the control instruction, determining that the matched working mode is a rebound mode under the condition that the load type of the corresponding load branch is a non-target intelligent load;
and controlling the contact of the on-off device to be opened for a preset time according to the control instruction, and then closing the contact, forming an instant-off signal based on the contact action of the on-off device, and sending the instant-off signal to one or more load devices of the load branch.
12. The load device control method according to claim 11, wherein after the contact of the on-off device is controlled to be opened for a preset time according to the control instruction, further comprising:
and keeping the contact of the on-off device to be always closed in other time except the preset time.
13. The load device control method of claim 11, wherein the acquiring the control instruction comprises:
Receiving a control instruction sent by the terminal equipment based on an electronic equipment control interface; or alternatively, the first and second heat exchangers may be,
Detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
14. The load device control method according to any one of claims 1 to 13, wherein the controlling, based on the control instruction, on or off of one or more load devices of the load branch in the matched operation mode according to the load type of the corresponding load branch includes:
Based on the control instruction, respectively determining that the working mode matched with a first load branch of which the load type is a non-intelligent load is a normal mode, the working mode matched with a second load branch of which the load type is a target intelligent load is a wireless mode and the working mode matched with a third load branch of which the load type is a non-target intelligent load is a rebound mode in the plurality of load branches according to the load types corresponding to the plurality of load branches;
controlling one or more load devices in the first load branch to be opened or closed in a conventional mode according to the control instruction;
Controlling one or more load devices in the second load branch to be opened or closed in a wireless mode according to the control instruction;
And controlling one or more load devices in the third load branch to be opened or closed in a rebound mode according to the control instruction.
15. A load device control apparatus characterized by comprising:
the acquisition module is used for acquiring the control instruction;
The control module is used for controlling one or more load devices of the load branch to be opened or closed according to the load type of the corresponding load branch by adopting a matched working mode based on the control instruction, wherein the load type comprises at least one of the following: non-intelligent load, target intelligent load, non-target intelligent load; different load types correspond to different operating modes, wherein a target smart load indicates a target smart load device of a specified brand and a non-target smart load indicates smart loads of other brands than the specified brand;
wherein, the matched working mode comprises: a conventional mode of correspondingly opening or closing the on-off device is controlled according to the control instruction; maintaining the contact of the on-off device to be normally closed, and sending a wireless command for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control command; and controlling the on-off device to send a rebound mode of an instantaneous interruption signal for controlling one or more load devices of the load branch to be opened or closed to the load branch according to the control instruction.
16. An electronic device comprising a processor, a memory and a computer program stored on the memory and executable by the processor, the computer program when executed by the processor implementing the load device control method of any one of claims 1 to 14.
17. A load device control system comprising the electronic device of claim 16 and a plurality of load branches communicatively coupled to the electronic device; wherein the multiple load branches include at least two of: a first load branch with a load type of non-intelligent load, a second load branch with a load type of target intelligent load, and a third load branch with a load type of non-target intelligent load;
And the electronic equipment respectively controls one or more load equipment of the multipath load branches to be correspondingly opened or closed according to the control instruction.
18. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the load device control method according to any one of claims 1 to 14.
CN202011014164.1A 2020-09-24 2020-09-24 Load device control method, device and system, electronic device and storage medium Active CN114253141B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011014164.1A CN114253141B (en) 2020-09-24 2020-09-24 Load device control method, device and system, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011014164.1A CN114253141B (en) 2020-09-24 2020-09-24 Load device control method, device and system, electronic device and storage medium

Publications (2)

Publication Number Publication Date
CN114253141A CN114253141A (en) 2022-03-29
CN114253141B true CN114253141B (en) 2024-05-03

Family

ID=80789928

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011014164.1A Active CN114253141B (en) 2020-09-24 2020-09-24 Load device control method, device and system, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN114253141B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009288859A (en) * 2008-05-27 2009-12-10 Mitsubishi Electric Corp Home appliance recognition system
CN101697245A (en) * 2009-09-30 2010-04-21 宇龙计算机通信科技(深圳)有限公司 Home appliance control method, home appliance control device and mobile terminal
CN103336504A (en) * 2013-06-25 2013-10-02 孙利 Household control system
CN105487389A (en) * 2015-11-17 2016-04-13 小米科技有限责任公司 Method and device for controlling intelligent equipment
CN105634134A (en) * 2016-02-16 2016-06-01 尹登庆 Fast AC switch-based integrated intelligence system for transmission control
CN106292323A (en) * 2016-09-20 2017-01-04 深圳广田智能科技有限公司 Switch panel is configured to the system and method for Multifunctional control panel
CN106843883A (en) * 2017-01-22 2017-06-13 广东美的制冷设备有限公司 Display device, system and method based on widget
CN110888902A (en) * 2019-11-18 2020-03-17 北京蓦然认知科技有限公司 Intelligent control configuration method and system
CN111610724A (en) * 2020-07-10 2020-09-01 广州博冠智能科技有限公司 Intelligent household intelligent equipment control method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130028276A (en) * 2011-09-09 2013-03-19 주식회사 팬택 Mobile terminal having mode transition function and driving method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009288859A (en) * 2008-05-27 2009-12-10 Mitsubishi Electric Corp Home appliance recognition system
CN101697245A (en) * 2009-09-30 2010-04-21 宇龙计算机通信科技(深圳)有限公司 Home appliance control method, home appliance control device and mobile terminal
CN103336504A (en) * 2013-06-25 2013-10-02 孙利 Household control system
CN105487389A (en) * 2015-11-17 2016-04-13 小米科技有限责任公司 Method and device for controlling intelligent equipment
CN105634134A (en) * 2016-02-16 2016-06-01 尹登庆 Fast AC switch-based integrated intelligence system for transmission control
CN106292323A (en) * 2016-09-20 2017-01-04 深圳广田智能科技有限公司 Switch panel is configured to the system and method for Multifunctional control panel
CN106843883A (en) * 2017-01-22 2017-06-13 广东美的制冷设备有限公司 Display device, system and method based on widget
CN110888902A (en) * 2019-11-18 2020-03-17 北京蓦然认知科技有限公司 Intelligent control configuration method and system
CN111610724A (en) * 2020-07-10 2020-09-01 广州博冠智能科技有限公司 Intelligent household intelligent equipment control method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN114253141A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN105652676B (en) A kind of intelligent home appliance remote control system and control method
CN204719514U (en) Can the intelligent domestic system of realization condition control mode
CN109753034B (en) Control method, control device, electronic equipment and storage medium
WO2010058376A2 (en) Controller system
CN105431891A (en) Lighting controller
CN109901478A (en) Networking control method, module, controlling terminal, terminal and the medium of household appliance
CN204719436U (en) The intelligent domestic system of Background control service can be realized
CN112511392B (en) Intelligent home network Combo equipment gateway selection method and control system
CN109100950A (en) A kind of control method and smart home system of smart home device
CN111830841A (en) Linkage control method, device, equipment and storage medium for intelligent equipment
CN108833219B (en) Intelligent home system, intelligent gateway and control method thereof
EP2056530A1 (en) Saving electricity information home electric network and saving electricity controlling method
CN114253141B (en) Load device control method, device and system, electronic device and storage medium
CN108415346A (en) Control method, switch, electrical equipment and control system
CN105527848A (en) Communication device and method for controlling communication device
CN105093941A (en) Condition-controlled intelligent household system, and condition configuration and control method based on intelligent household system
CN104852227A (en) Intelligent socket and control system
CN205353622U (en) Intelligent household remote control system
CN107643692B (en) Energy efficiency management system and method
CN204989954U (en) Smart home systems main control unit of multi -protocols communication
CN114253143A (en) Load device control method, device and system, electronic device and storage medium
CN115242824A (en) Device control method and apparatus, router, wireless mesh network system, and medium
CN211557600U (en) Double-control switch and double-control system
CN208384393U (en) A kind of switch, electrical equipment and control system
CN114035440A (en) Control method and device of intelligent equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant