CN114253141A - 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
CN114253141A
CN114253141A CN202011014164.1A CN202011014164A CN114253141A CN 114253141 A CN114253141 A CN 114253141A CN 202011014164 A CN202011014164 A CN 202011014164A CN 114253141 A CN114253141 A CN 114253141A
Authority
CN
China
Prior art keywords
load
branch
control
control instruction
load branch
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.)
Granted
Application number
CN202011014164.1A
Other languages
Chinese (zh)
Other versions
CN114253141B (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

Images

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 device control method, a device and a system, an electronic device and a computer storage medium, wherein the load device control method comprises the following steps: acquiring a control instruction; on the basis of the control instruction, one or more load devices of the load branch are controlled to be turned on or turned off in a matched working mode according to the load type of the corresponding load branch; wherein the matched working modes comprise: controlling a corresponding on-off mode of the on-off device according to the control instruction; keeping a contact of the on-off device 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 a transient 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 disclosure relates to the field of electronic circuit technologies, and in particular, to a method, an apparatus, and a system for controlling a load device, an electronic device, and a computer-readable storage medium.
Background
The intelligent home is a trend of an information-oriented society, the existing intelligent home devices generally adopt a remote control technology, all the intelligent home devices are 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 keys of the intelligent switch also support manual operation starting or disconnection under a subscriber line.
However, with the continuous upgrade of home devices, users can select more and more various brands of smart home devices or non-smart home devices, and currently known smart switches for implementing unified smart control on home devices can be 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 implemented, 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 device control method, a device and a system thereof, an electronic device and a computer readable storage medium, which have strong compatibility and more flexible control mode.
In order to achieve the above purpose, the technical solution of the embodiment of the present application is implemented 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, and includes:
acquiring a control instruction;
on the basis of the control instruction, one or more load devices of the load branch are controlled to be turned on or turned off in a matched working mode according to the load type of the corresponding load branch;
wherein the matched working modes comprise: controlling a corresponding on-off mode of the on-off device according to the control instruction; keeping a contact of the on-off device 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 a transient 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 a control instruction;
the control module is used for controlling one or more load devices of the load branch to be turned on or turned off 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 modes comprise: controlling a corresponding on-off mode of the on-off device according to the control instruction; keeping a contact of the on-off device 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 a transient 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, which includes a processor, a memory, and a computer program stored on 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 embodiment 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 embodiment of the present application and a multi-path load branch communicatively connected to the electronic device; wherein the multi-path load branch comprises at least two of: the intelligent load control system comprises a first load branch circuit, a second load branch circuit and a third load branch circuit, wherein the load type of the first load branch circuit is a non-intelligent load, the load type of the second load branch circuit is a target intelligent load, and the load type of the third load branch circuit is a non-target intelligent load; and the electronic equipment respectively controls one or more load equipment of the multi-path load branch to be correspondingly turned on or turned off 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 on the computer-readable storage medium, and when the computer program is executed by a processor, the load device control method according to any embodiment of the present application is implemented.
In the load device control method, the load device control apparatus, the load device control system, the electronic device, and the computer-readable storage medium provided in the above embodiments, the electronic device may connect one or more load branches of different load types, and set the corresponding operating 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, determine the operating mode matched with the corresponding load branch according to the control instruction to perform control, and the electronic device may be compatible with multiple load devices of different load types, and adopt multiple operating modes to independently control or simultaneously and collectively control multiple load devices of different load types, so that the control mode is more flexible, and the user intelligent experience is improved.
Drawings
FIG. 1 is a schematic diagram of a load device control system in an embodiment of the present application;
fig. 2 is a schematic diagram of an alternative application scenario of the load device control system in the embodiment of the present application;
FIG. 3 is an alternative schematic diagram of an Internet of things system in an embodiment of the application;
FIG. 4 is a schematic diagram of an Internet of things system for a wireless mode in an embodiment of the application;
FIG. 5 is a schematic diagram of an IOT system for a normal mode or a rebound mode in an embodiment of the present application;
FIG. 6 is a flow chart of a load device control method according to an embodiment of the present application;
FIG. 7 is a flow chart of a load device control method in another embodiment of the present application;
FIG. 8 is a flow chart of a load device control method in an alternative embodiment of the present application;
FIG. 9 is a schematic diagram illustrating the operation of multiple operation modes 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 diagram of an electronic device according to an embodiment of the present application;
fig. 12 is a schematic diagram of an electronic device according to another embodiment of the present application.
Detailed Description
The technical solution of the present application is further described in detail with reference to the drawings and specific embodiments of the specification.
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 present application is for the purpose of describing particular embodiments only and is not intended to be limiting of implementations of the present application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In the description of the present application, it is to 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 those shown in the drawings, and are only for convenience in describing the present application and simplifying the description, but do not indicate or imply that the referred device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be construed as limiting the present application. In the description of the present application, "a plurality" means two or more unless otherwise specified.
In the description of the present application, it is to be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Referring to fig. 1, an electronic device 10 according to an embodiment of the present disclosure includes an on/off device, a processor 13, a memory (not shown), and a local button.
The electronic device 10 may be configured to control one or more load branches, each load branch including one or more load devices. The load devices of 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 other brand except the specified brand. The number of the local keys of the electronic device may be one-to-one corresponding to the number of the load branches, or may be greater than the number of the load branches, and the on-off devices may respectively correspond to the local keys. As in the present embodiment, 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 includes one or more non-intelligent load devices, the second load branch 32 includes one or more target intelligent load devices, and the third load branch 33 includes 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; the on-off devices include a first on-off device 121 corresponding to the first local key 111, a second on-off device 122 corresponding to the second local key 112, and a third on-off device 123 corresponding to the third local key.
The memory stores a computer program, and the processor 13 executes a relevant control operation 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, the processor 13 obtains a control instruction for the load branch according to a detected operation on the local key or a received instruction (specifically, the control may be implemented by a wireless communication module, not shown in the figure) sent by the terminal device 20, and controls one or more load devices of the load branch to be turned on or off by using a matched working mode according to a load type of the load branch. Wherein, the load branch road of different load types corresponds with different mode respectively, the mode of operation that matches includes: controlling a corresponding on-off mode of the on-off device according to the control instruction; keeping a contact of the on-off device 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 a transient 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, such as a Micro Controller Unit (MCU), including an Analog to digital converter (ADC). The electronic device 10 may be various 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 an intelligent switch. And the load branches are respectively connected in series in the control loop in one-to-one correspondence with the local keys of the intelligent switch. Please refer to fig. 2, which is a schematic circuit diagram of the intelligent switch correspondingly controlling three load branches. The local keys may be elastic mechanical switches respectively, and the load devices may be turned on or turned off by operating the local keys, the processor 13 detects the elastic mechanical switches, and when a pressing operation on the elastic mechanical switches is detected, and when a current state of the load device of a corresponding load branch is an on state, the processor 13 acquires a turn-off control instruction according to the pressing operation, and based on the turn-off control instruction, controls the load devices in the load branch to be turned off in a matched working mode according to a load type of the corresponding load branch; under the condition that the pressing operation on the elastic mechanical switch is detected, when the current state of the load device of the corresponding load branch is the off state, the processor 13 acquires an opening control instruction according to the pressing operation, and controls the load device in the load branch to be opened 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 also be a knob switch, and the operation of the local key to turn on or off the load device may also be detection of a knob operation on the elastic mechanical switch. The load device may be turned on or off through remote operation of the terminal device 20, an application client for remotely controlling the load device is installed on the terminal device 20, and the terminal device 20 detects touch operation on an open key or a close key in a control interface of the application and correspondingly 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 more load branches of different load types, and set corresponding operating 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 of one or more load branches is received, determine the operating mode matched with the corresponding load branch according to the control instruction to perform control, so that the electronic device may be compatible with multiple load devices of different load types, and adopt multiple operating modes to independently control or simultaneously control multiple load devices of different load types, and the control mode is more flexible, thereby improving the user intelligent experience.
Fig. 3 is an alternative schematic diagram of an internet of things system composed of electronic devices and a gateway 53, an electronic device 54, a router 55, a server 52, a terminal device 51 and the like. The terminal device 51 may be any device having communication and storage functions, such as: the smart phone, the desktop computer, the notebook computer, the tablet computer or other smart communication devices with network connection functions. The server 52 may be a network access server, a database server, a cloud server, or the like. Optionally, the gateway 53 may be built based on a ZigBee protocol, and the electronic device 54 may be a device added in the gateway 53 in advance, for example, the electronic device 54 may be a device in a suite to which the gateway belongs when the gateway 53 leaves a factory; or a device subsequently connected to the gateway 53 by a 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 page client, and is not limited herein. The APP can comprise a configuration interface, at least one gateway is added to the APP, when other sub-devices (sensors and intelligent switches) are added, a sub-device adding button in the APP configuration interface is clicked, the gateway which needs to be accessed by the sub-device is selected on the configuration interface, the gateway can be added into a ZigBee network corresponding to the gateway, and the ZigBee network, the other sub-devices which need to be added and the gateway form a ZigBee local area network. 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 connected to a router 55, and are connected to the ethernet through the router 55, and the router 55 may be connected to the server through a 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, so as to obtain data sent by the server 52.
The internet of things system can realize automatic control of the internet of things load devices which belong to the local area network range or are correspondingly connected with the local area network system through the electronic device 54 and by adopting a matched working mode according to different load types in the load branch. So-called automation (or automation linkage) is a linkage application built between gateways or sub-devices connected to gateways. The automation generally comprises a triggering condition and an execution action, the load device of the internet of things in the automation can comprise a triggering device and a controlled device, the triggering device and the controlled device can be in communication connection through a gateway, and when the triggering device meets the triggering condition, the gateway controls the controlled device to execute the corresponding execution action. The trigger device may be various sensors such as a pressure sensor, a temperature sensor, a humidity sensor, a door and window sensor, a smoke sensor, etc. 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 trigger device. The controlled device can be various switches, sockets, lamps, infrared emitting devices or camera devices, and the like, for example, in the embodiment, the on-off device in the electronic device realizes the on-off control of the load device, and can be regarded as the controlled device; or the load equipment completes the opening or closing action according to the control instruction and can be regarded as controlled equipment. The triggering 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 light fixtures, automatic curtains, air conditioners, and the like.
Alternatively, the local area network path 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 local area network, 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. When the terminal device 51 is 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 local area network path as shown in fig. 3; the gateway 53 and the electronic device 54 connected to the gateway 53 may also interact 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 under the same gateway, and the communication path for the terminal device 51 to control 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; and a second route: the terminal device 51 communicates with the gateway 53, and the load device communicates with the gateway; path three: the terminal device 51 communicates directly with the electronic device 54; and a fourth path: 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 operation modes, due to different load types of the load devices, when the terminal device 51 is in the same local area network as the router 55 and the gateway 53, the communication paths of the terminal device 51 for controlling the load devices in the internet of things system are different.
Referring to fig. 4, which is an alternative schematic diagram of the internet of things system in the wireless mode, the load type 2 refers to a target intelligent load device of a specific brand. The communication path for the terminal device 51 to control 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; and a second route: the terminal device 51 communicates directly with the electronic device 54; path three: the electronic device 54 communicates directly with the load device. The electronic device 54 sends a wireless command to the load devices in the corresponding load branch according to the control command, thereby controlling the load devices to turn on or off.
Please refer to fig. 5, which is an alternative schematic diagram of the internet of things system in the normal mode or the rebound mode, where 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 a brand of intelligent load other than the specified brand, that is, a non-target intelligent load device. For the non-target intelligent load device, the non-target intelligent load device can make a corresponding response 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 turn on or turn off the lamp. The communication path for the terminal device 51 to control 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; and a second route: the terminal device 51 communicates directly with the electronic device 54. The electronic device 54 controls the contact action of the on-off device according to the control instruction, and further controls the load device in the corresponding load branch to be turned on or turned off.
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 may obtain the control instruction, where the electronic device detects an operation of a user on a local key, and obtains a control instruction for controlling the load device to be turned on or turned off according to the detected operation; or the terminal device detects touch operation of an open key or a close key in a control interface of an application program, correspondingly sends an open or close control instruction to the electronic device according to the touch operation, and the electronic device acquires the control instruction from the terminal device.
The local keys can be different types such as mechanical pressing keys, mechanical knob keys and resilience touch keys, and correspondingly, the operation on the body keys can be correspondingly pressing operation on the mechanical pressing keys, knob operation on the mechanical knob keys, touch operation on the resilience touch keys and the like.
And S105, based on the control instruction, controlling one or more load devices of the load branch to be turned on or turned off by adopting a matched working mode according to the load type of the corresponding load branch.
Wherein the matched working modes comprise: controlling a corresponding on-off mode of the on-off device according to the control instruction; keeping a contact of the on-off device 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 a transient 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 devices 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 different load branches may be the same or different. Optionally, the electronic device includes a plurality of local keys, the load branches correspond to the local keys of the electronic device one to one, and the control instruction may be a control instruction for controlling the load devices in the load branches associated with one of the local keys, where the control instruction is detected based on an operation on the local key. Taking the example that the electronic device includes a local key 1, a local key 2 and a local key 3, and the load branch includes a first load branch, a second load branch and a third load branch, where the local key 1 corresponds to the first load branch, the local key 2 corresponds to the second load branch, and the local key 3 corresponds to the third load branch, and the electronic device detects an operation on 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 arranged in a client of the terminal device, the electronic device control interface is provided with a corresponding control key for each load branch, and the control instruction may also be that the terminal device obtains a control instruction for controlling the load device in the load branch associated with one of the control keys according to an operation on the control key and sends the control instruction to the electronic device, and the electronic device receives the control instruction sent by the terminal device. Taking the example that the load branch comprises a first load branch, a second load branch and a third load branch, and a control key in a client of the terminal device comprises a control key 1, a control key 2 and a control key 3, where the control key 1 corresponds to the first load branch, the control key 2 corresponds to the second load branch, and the control key 3 corresponds to the third load branch, the terminal device detects a touch operation of a user on the control key 2, acquires a control instruction for controlling the load device in the second load branch associated with the control key 2, and sends the control instruction to the electronic device, and the electronic device receives the control instruction sent by the terminal device for controlling the load device in the second load branch.
The electronic equipment sets different working modes for control according to the load types of the load equipment in different load branches. Taking the load types including the non-intelligent load, the target intelligent load and the non-target intelligent load as an example, for the load equipment of the non-intelligent load, the working mode of the electronic equipment for controlling the load equipment is a conventional mode, and under the condition that the electronic equipment obtains a control instruction for a load branch circuit of which the load type is the non-intelligent load, the conventional mode is adopted to control the load equipment in the load branch circuit to be turned on or turned off; for a target intelligent load device, the working mode of the electronic device for controlling the target intelligent load device is a wireless mode, and under the condition that the electronic device obtains a control instruction for a load branch circuit of which the load type is the target intelligent load, the electronic device controls the load device in the load branch circuit to be turned on or turned off in the wireless mode; and controlling the load equipment in the load branch to be opened or closed by adopting the rebound mode under the condition that the electronic equipment acquires a control instruction for the load branch of which the load type is the non-target intelligent load.
In the above embodiment of the present application, the electronic device may be connected to one or multiple load branches correspondingly, each load branch may include load devices of different load types, the electronic device sets corresponding operating modes according to the load types of the load devices in the different load branches, and when receiving a control instruction for a certain load branch of one or multiple load branches, according to the control instruction determines the operating mode matched with the corresponding load branch to control, so that the electronic device may be compatible with multiple load devices of different load types, and multiple operating modes are adopted to control multiple load devices of different load types independently or simultaneously in a unified manner, which makes the control mode more flexible, and improves the user intelligent experience.
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 in a matched operating mode according to a load type of the corresponding load branch includes:
s1051, based on the control instruction, determining the matched working mode to be a conventional 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.
The non-intelligent load refers to a traditional load device which 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 for a load branch of which the load equipment is a non-intelligent load, determining that a working mode matched with the corresponding load branch is a conventional mode based on the control instruction, and controlling the contact of the on-off device connected with the load branch to be closed by the electronic equipment according to the control instruction so as to control the non-intelligent load equipment in the load branch to be opened, or controlling the contact of the on-off device connected with the load branch to be opened by the electronic equipment according to the control instruction so as to control the non-intelligent load equipment in the load branch to be closed. For example, if the non-intelligent load device is a lamp, in a conventional 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 lighted; 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 turned off.
Optionally, before S105, the method further includes:
and S103, judging the load type of the load branch.
In the above embodiment, after the electronic device obtains the control instruction for the load branch whose load type is the non-intelligent load, the electronic device simulates the on-off of the conventional mechanical switch by controlling the on-off of the on-off device connected to the load branch, so as to realize the automatic control of the load branch whose load type is the non-intelligent load.
Optionally, in S101, acquiring a control instruction includes:
receiving a control instruction sent by the terminal equipment based on the electronic equipment control interface; or the like, or, alternatively,
and detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
The control instruction for controlling the load branch with the load type of the non-intelligent load by the electronic device may be obtained by sending the control instruction based on the electronic device control interface by the receiving terminal device, or may be obtained by detecting an operation on a local key. The terminal equipment detects touch operation of a user on the control key, correspondingly acquires a control instruction of the load branch corresponding to the control key and sends the control instruction to the load branch. Optionally, the electronic device control interface further includes displaying current status information of the multiple load branches correspondingly connected to the electronic device, where the current status information may be lighting or extinguishing status information of an indicator light, or may be text information directly indicating that the load branches are currently turned on or off. Before a user controls a load device through a terminal device, the user can know whether a target control result of a control instruction to be sent to the load branch is on or off according to current state information of the load branch, if the current state information of the load branch is in an on state, the target control result of the current control instruction to the load branch is switched to be off, and if the current state information of the load branch is in an off state, the target control result of the current control instruction to the load branch is switched to be on.
The electronic equipment can comprise a plurality of local keys which respectively control a plurality of load branches correspondingly connected with the electronic equipment, and the electronic equipment detects the touch operation of a user on the local keys, correspondingly acquires a 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 the corresponding connected load branch, and before the user controls the load device by operating the local key, the user may know whether a target control result of the load branch is on or off according to a control instruction to be sent.
In the above embodiment, the electronic device sets the normal mode for controlling the non-intelligent load device to be turned on or turned off, and forms different load branches that can be independently controlled respectively according to different load types of the load device, so that the automatic control of the non-intelligent load device can be realized, and the electronic device can be compatible with the intelligent control of the load devices of different load types.
In some embodiments, S105, based on the control instruction, controlling one or more load devices of the load branch to be turned on or off in a matched operating mode according to the load type of the corresponding load branch, includes:
s1053, based on the control instruction, determining the matched working mode to be a wireless mode under the condition that the load type of the corresponding load branch is the target intelligent load;
s1054, sending a wireless instruction for controlling one or more load devices of the load branch to be turned on or turned off 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 an intelligent device which can be directly in communication connection with the electronic device and the terminal device, such as an intelligent load device of the same brand as the electronic device. The electronic equipment comprises load branches, wherein the load equipment in at least one load branch is target intelligent load equipment. Under the condition that the electronic equipment receives a control instruction of a load branch aiming at a target intelligent load, the electronic equipment determines that the working mode matched with the corresponding load branch is a wireless mode based on the control instruction, and then the electronic equipment sends a wireless instruction for controlling one or more load equipment of the load branch to be turned on or turned off to the load branch according to the control instruction so as to control the target intelligent equipment in the load branch to be turned on or turned off.
Optionally, the control instruction for controlling the target smart load device may be independent of the control of the contact of the on-off device, and the contact of the on-off device may be in a normally closed state to maintain the load device in a continuously controlled state. The process refers to a process in which after the electronic device acquires the control instruction, the target load device is controlled 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 in the first aspect, for example, the corresponding on or off success of the target load device is controlled according to the control instruction, in this process, after the electronic device acquires the control instruction, a wireless instruction for controlling the corresponding on or off of the one or more target load devices is sent to the target load device, and the target load device correspondingly completes an on or off action according to the wireless instruction. In a second aspect, taking the case that the control of the target load device according to the control instruction fails to be correspondingly turned on or turned off as an example, the method includes three cases: in case 1, the above-mentioned process refers to a process in which, after the electronic device obtains a control instruction, a wireless instruction for controlling the corresponding on or off of the one or more target load devices is sent to the target load devices, and the target load devices unsuccessfully complete corresponding on or off actions according to the wireless instruction; 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 repeating multiple times of sending the wireless instruction to the target load device according to a preset requirement, and multiple times of sending the wireless instruction to enable the target load device to successfully complete the corresponding opening or closing action, in this process, after the electronic device receives the control instruction, multiple times of sending the wireless instruction for controlling the corresponding opening or closing of the one or more target load devices to the target load device until the target load device correspondingly completes the opening or closing action according to the multiple times of wireless instruction; or in case 3, before 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 repeating multiple times of sending the wireless instruction to the target load device according to a preset requirement, and the multiple times of sending the wireless instruction still does not enable the target load device to successfully complete the corresponding opening or closing action, where in the process, the step is that after receiving the control instruction, the electronic device sends multiple times of wireless instructions to the target load device, where the wireless instructions are used to control the one or more target load devices to be correspondingly opened or closed, and the target load device fails to successfully complete the corresponding opening or closing action according to the multiple times of wireless instructions. For the case 3 of the second aspect, after the process, the electronic device controls the contacts of the on-off device to open according to the control command.
In the above embodiment, after the electronic device obtains the control instruction for the load branch whose load type is the target intelligent load, the electronic device may directly send a wireless instruction for controlling the target intelligent load device to turn on or off to the load branch, so as to implement automatic control for the load branch whose load type is the target intelligent load.
In some embodiments, the sending, to the load branch according to the control instruction, a wireless instruction to control one or more load devices of the load branch to turn on or off includes:
detecting the current state of a 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 disconnected, 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 the electronic equipment receives the control instruction, whether the contact of the on-off device is closed or not is detected, and if the contact of the on-off device is closed at present, the load equipment is in a power supply state and is in a controlled state; and under the condition that the contact of the on-off device is determined to be opened, the contact of the on-off device is controlled 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 that the electronic device controls the load branch according to the control instruction, by detecting the state of the contact of the on-off device, when the contact of the on-off device is disconnected, the contact of the on-off device is firstly controlled to be closed, so as to avoid that the power supply of the target load device is cut off and the target load device is in an offline state due to the disconnection of the on-off device of the electronic device, and thus, the remote control of the target load device can still be realized. The electronic equipment judges whether the contact of the on-off device is closed currently or not so as to ensure that the subsequent control steps of the load equipment can be executed.
Optionally, whether the contact of the on-off device of the electronic device is closed may also be determined by the electronic device according to the current state of the contact of the on-off device stored inside, or by the on-off device actively sending information capable of representing the current state of the contact to the electronic device.
In some embodiments, S101, the obtaining the control instruction includes:
receiving a control instruction sent by the terminal equipment based on the load control interface; or the like, or, alternatively,
receiving a control instruction sent by the terminal equipment based on the electronic equipment control interface; or the like, or, alternatively,
and detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
The control instruction for controlling the load branch with the load type as the target intelligent load by the electronic device may be obtained by sending the control instruction through the receiving terminal device based on a load control interface, or obtained by sending the control instruction through the receiving terminal device based on the electronic device control interface, or obtained by detecting an operation on a local key. That is, for the control of the intelligent load with the load type as the target, the terminal device has at least two control interfaces, one of which is a load control interface, for example, a control interface of an intelligent lamp; the second is an electronic device 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 when the terminal equipment detects the touch operation of the user on the operation key in the load control interface, acquiring a control instruction for the load branch where the target intelligent equipment is located, and sending the control instruction to the electronic equipment.
The electronic device control interface may include control keys for controlling the multiple load branches correspondingly connected to the electronic device, and when the terminal device detects a touch operation of a user on the control keys, the terminal device obtains a control instruction of the load branch corresponding to the control key, and sends the control instruction to the load branch. Optionally, the electronic device control interface further includes displaying current status information of the multiple load branches correspondingly connected to the electronic device, where the current status information may be lighting or extinguishing status information of an indicator light, or may be text information directly indicating that the load branches are currently turned on or off. Before a user controls a load device through a terminal device, the user can know whether a target control result of a control instruction to be sent to the load branch is on or off according to current state information of the load branch, if the current state information of the load branch is in an on state, the target control result of the current control instruction to the load branch is switched to be off, and if the current state information of the load branch is in an off state, the target control result of the current control instruction to the load branch is switched to be on.
The electronic equipment can comprise a plurality of local keys which respectively control a plurality of load branches correspondingly connected with the electronic equipment, and the electronic equipment detects the touch operation of a user on the local keys, correspondingly acquires a 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 the corresponding connected load branch, and before the user controls the load device by operating the local key, the user may know whether a target control result of the load branch is on or off according to a control instruction to be sent.
In the above embodiment, the electronic device sets the wireless mode for controlling the target intelligent load device to be turned on or turned off, and the wireless mode is adopted to realize the automatic control of the load branch where the target intelligent load device is located, and the electronic device may form different load branches that can be independently controlled respectively according to different load types of the load device, so that the electronic device may be compatible with the intelligent control of the load devices of different load types.
In some embodiments, the sending, to the load branch according to the control instruction, a wireless instruction to control one or more load devices of the load branch to turn on or off includes:
acquiring the 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 the 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 sent by the terminal device to the electronic device according to an operation of a user on an operation key in the load control interface for controlling the target intelligent load, or an instruction sent by the electronic device to the electronic device according to an operation of a user on a control key in the control interface of the electronic device for controlling the target intelligent load, or an instruction obtained by the electronic device according to an operation of a user on a local key. Optionally, the local key may be an elastic mechanical switch, or both the operation key and the control key on the terminal device may be a single control key, the user obtains a control instruction every time the user presses the local key, or touches the operation key or the control key every time, 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 equipment receives a control instruction for a load branch where the target intelligent load is located, and the current working state of the load equipment in the load branch is on, a wireless instruction for controlling the load equipment in the load branch to be off is generated.
In this embodiment, the control instruction is intelligently determined to be an opening instruction or a closing instruction according to the current working state of the load device in the load branch, so that the number of keys for controlling the load device can be reduced, and the control operation is simplified.
In some embodiments, after sending the wireless instruction to the load branch to control one or more load devices of the load branch to turn on or off according to the control instruction, the method includes:
judging whether the load equipment of the load branch successfully executes the corresponding action according to the wireless instruction;
and returning to the step of sending a wireless instruction for controlling the on or off of one or more load devices of the load branch to the load branch according to the control instruction under the condition that the load devices of the load branch fail to execute corresponding actions and the current failure times are within a set range.
The electronic equipment judges whether the load equipment in the load branch successfully executes the corresponding action according to the wireless instruction, if the load equipment fails to execute the corresponding action and the current failure frequency is within the set range, the step of sending the wireless instruction for controlling the on or off of one or more load equipment of the load branch to the load branch according to the control instruction is returned, and the control accuracy of the load equipment in the load branch can be improved by monitoring the action execution condition of the load equipment in the load branch and repeatedly controlling the load equipment under the condition that the execution is unsuccessful and the unsuccessful frequency is not beyond the set range. By recording the times of action failure of the load equipment in the load branch and setting the failure times within the set range as one of the conditions for carrying out repeated control on the condition that the action of the target load equipment is unsuccessful, the situation that the cycle times are excessive or errors occur can be avoided from being circulated all the time, and the control accuracy of the load equipment can be ensured and the control efficiency can be improved.
Taking the set range as three times as an example, the electronic device judges whether the load device in the load branch successfully executes the corresponding action according to the wireless instruction, if the action is unsuccessful, the current failure times are recorded as one time, and the step of sending the wireless instruction for controlling the on or off of one or more load devices of the load branch to the load branch according to the control instruction is returned, and the wireless instruction for controlling the corresponding on or off of the load devices is sent to the load device again; the electronic equipment judges whether the load equipment in the load branch successfully executes the corresponding action according to the wireless instruction again, if the action is still unsuccessful, the current failure frequency is recorded as two times, the step of sending the wireless instruction for controlling the on or off of one or more load equipment of the load branch to the load branch according to the control instruction is returned again, and the wireless instruction for controlling the on or off of the load equipment is sent again to the load equipment in the load branch; and repeating the steps until the electronic equipment judges that the load equipment in the load branch successfully executes the corresponding action according to the wireless instruction or the current failure frequency exceeds three times.
Optionally, after the sending, according to the control instruction, a wireless instruction for controlling one or more load devices of the load branch to turn on or off to the load branch, the method further includes:
and under the condition that the load equipment of the load branch fails to execute corresponding actions and the current failure frequency exceeds a set range, sending a contact opening instruction to the on-off device according to the control instruction to control the contact of the on-off device to be opened.
And the electronic equipment judges whether the load equipment in the load branch executes the corresponding action according to the wireless instruction successfully, if the target load equipment fails to execute the corresponding action and the failure frequency does not exceed the set range, the step of sending the wireless instruction for controlling the on or off of one or more load equipment of the load branch to the load branch according to the control instruction is returned, and the accuracy of controlling the load equipment can be improved by monitoring the action execution condition of the load equipment and repeatedly controlling the load equipment under the condition of unsuccessful execution in the reciprocating circulation. The method comprises the steps that the frequency of action failure executed by the load equipment is recorded, one of conditions for repeated control under the condition that the action failure executed by the target load equipment is set within a set range is set, the condition that the cycle frequency is excessive or an error occurs can be avoided, when the frequency of action failure executed by the load equipment exceeds the set range, the contact of the on-off device is controlled to be disconnected, the power supply of the load equipment in the load branch is cut off, and at the moment, if the current control instruction to the load equipment is a closing control instruction, the contact of the on-off device is controlled to be disconnected, so that the control target of closing the load equipment in the load branch is achieved; if the control instruction to the load equipment is a starting control instruction, the current state of the load equipment in the load branch can be uniformly reset to be a closed state by disconnecting the contact of the on-off device, which is equivalent to automatic error repair, and the electronic equipment is ensured to be accurate and effective when controlling 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 circuit fails to execute corresponding actions and the current failure times exceed a set range, forming a trigger instruction according to the operation of a local key to control the contact of the on-off device corresponding to the load branch circuit to be closed.
In the internet of things system, communication paths for controlling the target intelligent load device based on the control instruction by the electronic device are different, and the system can be divided into a wireless mode 1 and a wireless mode 2. In the wireless mode 1, the electronic device sends the wireless instruction to the load device in the corresponding load branch circuit, and the wireless instruction is directly sent to the corresponding load device in the load branch circuit from the electronic device without being sent through the gateway; in the wireless mode 2, the step of sending the wireless instruction to the load devices in the corresponding load branches by the electronic device is to forward the wireless instruction from the electronic device to the load devices through the gateway, wherein the gateway can locally store mapping relationships between different load branches in the electronic device and the load devices, and after the electronic device sends the wireless instruction for controlling the corresponding load branches to the gateway according to the control instruction, the gateway sends the wireless instruction for controlling the on or off of one or more load devices of the load branches to the load branches according to the locally stored mapping relationships between the load branches and the load devices, so as to control the on or off of the load devices in the load branches. 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 a local key, at the moment, if the load equipment is in an electrified state, the load equipment is correspondingly opened at the load equipment end, and if the load equipment is in a non-electrified state, the load equipment ignores the trigger instruction and maintains the current any state.
In the implementation, the electronic device records the times of action failures executed by the load device, and when the times of action failures executed by the load device exceed a set range, a trigger instruction is formed according to the operation of a user on a local key to control the contact closing of the 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 is ensured to be accurate and effective when controlling the load device in the load branch according to a next control instruction.
In some embodiments, S105, based on the control instruction, controlling one or more load devices of the load branch to be turned on or off in a matched operating mode according to the load type of the corresponding load branch, includes:
s1055, based on the control instruction, determining the matched working mode as a rebound mode under the condition that the load type of the corresponding load branch is a non-target intelligent load;
and S1056, controlling the contact of the on-off device to be closed after being disconnected for a preset time according to the control instruction, and forming a transient interruption signal based on the contact action of the on-off device to send the transient interruption signal to one or more load devices of the load branch.
The non-target intelligent load refers to other intelligent loads except the target intelligent load, such as other brands of intelligent loads different from the brand of the electronic equipment, which can communicate with the gateway. The electronic equipment comprises load branches, wherein the load equipment in at least one load branch is non-target intelligent load equipment. Under the condition that the electronic equipment receives a control instruction of a load branch circuit aiming at a non-target intelligent load of the load equipment, the working mode matched with the corresponding load branch circuit is determined to be a rebound mode based on the control instruction, then the electronic equipment controls the contact of the on-off device to be closed after being disconnected for a preset time according to the control instruction, and a transient interruption signal is formed based on the contact action of the on-off device and is sent to one or more load equipment of the load branch circuit so as to control the non-target intelligent equipment in the load branch circuit to be opened or closed. The contact of the on-off device is closed after being disconnected for a preset time, so that a transient interruption signal is formed based on the contact action of the on-off device, the generation of the transient interruption signal can be equal to a pulse signal formed after the rebound mechanical key is pressed, and the transient interruption signal is formed and is sent to the non-target intelligent load in the corresponding load branch circuit, so that the load equipment is controlled to be switched to the opposite state according to the current state. The preset time may be preset, or may be configured in advance through the terminal device, for example, an initial value of the preset time may be 500ms, and the user may modify the preset time in the electronic device control interface of the terminal device.
In the above embodiment, for a load branch with a non-target intelligent load as a load type, after the electronic device obtains the control instruction, the electronic device controls the contact of the on-off device connected to the corresponding load branch to be opened for a preset time and then closed, a transient interruption signal is formed according to the action of the contact of the on-off device, the contact of the on-off device is in a normally closed state, and during the period when the electronic device controls the contact of the on-off device to be opened according to the control instruction, the load device in the corresponding load branch detects a low-level pulse signal by detecting a power signal, and the pulse signal is used as the transient interruption signal to obtain the instruction for switching the current state, so as to realize the automatic control of the load branch with the load type being the target intelligent load.
In some embodiments, after the contact of the on-off device is controlled to be opened for a preset time and then closed according to the control command, the method further includes:
keeping the contact of the on-off device closed all the 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 always kept in an electrified controlled state, on the other hand, the load equipment in the load branch can obtain a pulse signal as an instruction for switching the current state according to a low level formed by the opening action, and the control accuracy is improved.
In some embodiments, in the rebound mode, S101, acquiring a control command includes:
receiving a control instruction sent by the terminal equipment based on the electronic equipment control interface; or the like, or, alternatively,
and detecting the operation of the local key, and forming a control instruction according to the detected operation of the local key.
The control instruction for controlling the load branch with the load type of the non-target intelligent load by the electronic device may be obtained by sending the control instruction based on the electronic device control interface by the receiving terminal device, or may be obtained by detecting an operation on a local key. For the control of the non-target intelligent load of which the load type is non-target, the terminal equipment is provided with an electronic equipment control interface, for example, a control interface with an intelligent switch. The method comprises the steps that a control key for controlling a plurality of paths of load branches correspondingly connected with the electronic equipment respectively is included in a control interface of the electronic equipment, and when the terminal equipment detects touch operation of a user on the control key, a control instruction of the load branch corresponding to the control key is correspondingly obtained and sent to the load branch. Optionally, the electronic device control interface further includes displaying current status information of the multiple load branches correspondingly connected to the electronic device, where the current status information may be lighting or extinguishing status information of an indicator light, or may be text information directly indicating that the load branches are currently turned on or off. Before a user controls a load device through a terminal device, the user can know whether a target control result of a control instruction to be sent to the load branch is on or off according to current state information of the load branch, if the current state information of the load branch is in an on state, the target control result of the current control instruction to the load branch is switched to be off, and if the current state information of the load branch is in an off state, the target control result of the current control instruction to the load branch is switched to be on.
The electronic equipment can comprise a plurality of local keys which respectively control a plurality of load branches correspondingly connected with the electronic equipment, and the electronic equipment detects the touch operation of a user on the local keys, correspondingly acquires a 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 the corresponding connected load branch, and before the user controls the load device by operating the local key, the user may know whether a target control result of the load branch is on or off according to a control instruction to be sent.
In the above embodiment, the electronic device sets the rebound mode for controlling the non-target intelligent load device to be turned on or turned off, and different load branches which can be respectively and independently controlled are respectively formed according to different load types of the load device, so that the automatic control of the non-target intelligent load device can be realized, and the electronic device can be compatible with the intelligent control of the load devices of different load types.
In some embodiments, the controlling, based on the control instruction, one or more load devices of the load branch to be turned on or off in a matched operating mode according to a load type of the corresponding load branch includes:
respectively determining a working mode matched with a first load branch circuit with a load type of a non-intelligent load as a conventional mode, a working mode matched with a second load branch circuit with a load type of a target intelligent load as a wireless mode, and a working mode of a third load branch circuit with a load type of a non-target intelligent load as a rebound mode in the plurality of load branch circuits according to load types corresponding to the plurality of associated load branch circuits based on the control instruction;
controlling one or more load devices in the first load branch to be switched on or switched off in a conventional mode according to the control instruction;
controlling one or more load devices in the second load branch to be turned on or off 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 a multi-path control, the load devices contained in each load branch can be one or more, and the load types of the load devices contained in different load branches can be the same or different. The electronic device receiving the control instruction may be directed to one of the load branches to control the corresponding load device. If the electronic device comprises three local keys, the load devices in the first load branch corresponding to the first local key are the non-intelligent load device 1 and the non-intelligent load device 2; the load equipment in the second load branch corresponding to the second local key is target intelligent load equipment 3; the load devices in the third load branch corresponding to the third local key are the non-target intelligent load device 4, the non-target intelligent load device 5 and the non-target intelligent load device 6. The electronic device may obtain, according to the pressing operation of the third local key, an opening or closing control instruction opposite to the current state of the load device in the third load branch, and control, according to the control instruction, the contact of the on-off device corresponding to the third load branch to be opened and then closed to form a transient interruption signal, and the load device in the third load branch switches the current state by detecting the transient interruption signal, 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 receiving the control instruction may also be directed to uniformly control the corresponding load devices by multiple load branches. And after receiving the control instruction, the electronic equipment uniformly sends the control instruction to the multi-path load branch according to the control instruction. For example, the electronic device includes a local key, the load branch associated with the local key includes three load branches connected in parallel, and the load devices in the first load branch are the non-intelligent load device 1 and the non-intelligent load device 2; the load equipment in the second load branch is target intelligent load equipment 3; the load devices in the third load branch are non-target smart load devices 4, non-target smart load devices 5, and non-target smart load devices 6. The electronic equipment can acquire a control instruction for controlling the on or off of the load equipment in the load branch according to the touch operation on the local key, wherein the electronic equipment controls the first load branch in a conventional mode according to the control instruction, and controls the contact of the on-off device corresponding to the first load branch to be closed or opened so as to control the on or off of the non-intelligent load equipment 1 and the non-intelligent load equipment 2 in the first load branch; the electronic equipment controls the second load branch in a wireless mode according to the control instruction, firstly controls the contact of the on-off device to be closed when 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 to control the target intelligent load equipment 3 in the second load branch to be opened or closed when the contact of the on-off device is closed; and the electronic equipment controls the third load branch in a rebound mode according to the control instruction, controls the contact of the on-off device corresponding to the first load branch to be opened for a preset time and then closed to form a transient interruption signal, and switches the current states of 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 after detecting the transient interruption signal.
In the above embodiment, the electronic device may be connected to multiple load branches, the load devices of different load types are controlled by the multiple load branches, different working modes are set for each load device of different load types, the multiple load branches may be controlled independently or 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 the push type mechanical key as an example, it may be preset that the application of the single touch operation to the local key corresponds to a control instruction for controlling the load branch corresponding to the local key. The method comprises the steps that when the electronic equipment detects that a single touch operation is applied to one local key, a control instruction for controlling the load equipment in a corresponding load branch to be turned on or turned off is correspondingly obtained; the method comprises the steps that a double-touch operation applied to local keys corresponds to a control instruction for uniformly controlling the closing of multiple load branches, when the electronic equipment detects that the double-touch operation is applied to any one of the local keys, the control instruction for controlling the closing of the load devices in all the load branches is correspondingly obtained, and the contacts of the on-off device are controlled to be opened according to the double-touch operation so as to cut off the power supply of the load devices in all the load branches.
The terminal device may also provide different control keys through a control interface of the application program, and a user may touch or click different control keys to send a corresponding control instruction, for example, the terminal device provides independent control keys for respectively controlling the load devices in the load branches to be turned on or turned off through an electronic device control interface of the application program, and when the terminal device detects a touch operation of the user on the control key corresponding to a certain load branch, the terminal device sends a control instruction for controlling the corresponding load branch to the electronic device; if the terminal device can also provide a control key for uniformly controlling a plurality of load branches through an electronic device control interface of an application program, when the terminal device detects the touch operation of a user on the control key, a control instruction for simultaneously controlling the load branches is sent to the electronic device.
In some embodiments, S103, after controlling, according to the load type of the corresponding load branch, one or more load devices of the load branch to be turned on or turned off in a matched operating mode based on the control instruction, further includes:
and acquiring the current state of the load equipment in the load branch after executing the action, and reporting the current state to a cloud.
The method for acquiring the current state of the load device in the load branch in different working modes after executing the action is different, that is, the determination method of the current state of the load device in the load branch with different load types is 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, 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 circuit of which the load type is a non-intelligent load, in a conventional mode, the electronic device determines a current state of the load device in the first load branch circuit according to a current state of a contact of the on-off device corresponding to the first load branch circuit; for a second load branch circuit with a load type as a target intelligent load, in a wireless mode, an electronic device may determine a current state of a load device in the second load branch circuit according to a previous state of the load device in the second load branch circuit before performing an action and a response instruction returned after performing the action, or the electronic device may determine the current state of the load device in the second load branch circuit according to a state actively reported by the load device in the second load branch circuit in the action; for a third load branch with a non-target smart load as a load type, in the resilient mode, the electronic device may determine a current state of the load device in the third load branch according to a previous state and a current control instruction before the load device in the second load branch performs an action.
In order to understand the load device control method provided by the present application more generally, please refer to fig. 8, an electronic device is used as an intelligent switch, and an on-off device included in the intelligent switch is a relay, where the intelligent switch includes three local buttons, and each local button corresponds to one load branch as an example, and the load device control method is exemplarily described as follows:
s11, the terminal device obtains the configuration information of the load branch, the configuration information of each load branch comprises the corresponding associated load device and the associated local key;
the load types of the load devices included in the same load branch are the same, the load types of the load devices included in different load branches are different, and the load types of the load devices include:
the type one is as follows: non-smart loads, i.e., traditional mechanical load types;
type two: a target intelligent load, that is, an intelligent load type which can communicate with the intelligent switch and is directly controlled based on an application program of the terminal device, such as a load of the same brand as the intelligent switch;
type three: non-target smart loads, i.e. other smart loads than the target smart load, such as other smart loads of a different brand than the smart switch.
S12, the intelligent switch obtains the load branch information after the terminal device is configured, forms the corresponding relation between the load branches and the load devices, and forms the corresponding relation between the load branches and the working mode according to the load type of each load branch and the load devices;
the working modes comprise a conventional mode, a wireless mode and a rebound mode;
referring to fig. 9, in the normal mode, the intelligent switch controls the relay of the corresponding load branch to be opened or closed according to the control instruction; as shown in the step S11, through the configuration of S11, the local key 1 of the intelligent switch corresponds to the first load branch including the non-intelligent load, the operating 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 an application program of the terminal equipment, and the intelligent switch can control the contact of the relay of the intelligent switch to be opened or closed according to the control instruction. And aiming at the non-intelligent load, the on or off of the load equipment in the first load branch circuit is controlled by controlling the on or off of the relay of the load equipment according to the control instruction only through the MCU of the intelligent switch.
In the wireless mode, the intelligent switch sends a wireless instruction for controlling the on or off of the load equipment corresponding to the load branch circuit to the load equipment corresponding to the load branch circuit according to the control instruction; if so, through the configuration of S11, the local key 2 of the intelligent switch corresponds to a second load branch including the target intelligent load, the working mode corresponding to the second load branch is a wireless mode, and the 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 the 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 switched on or switched off to the load equipment in the second load branch according to the control instruction. The relays corresponding to the intelligent switches and the second load branches can be kept in a normally-closed state, so that the corresponding associated load equipment is kept in an electrified controlled state; the intelligent switch and the corresponding associated load equipment are arranged under the same ZigBee gateway, and the intelligent switch and the corresponding associated load equipment can wirelessly communicate; the intelligent switch directly controls the load equipment in the second load branch according to the control instruction instead of controlling the relay of the intelligent switch. Under the wireless mode, the state of the indicator light of the intelligent switch is kept corresponding to the load equipment, and when the intelligent switch generates errors in controlling the load equipment, if the load cannot be normally closed, the relay can be controlled to be disconnected, so that the load equipment is forcibly turned off. Aiming at the target intelligent load, the target intelligent load can be communicated with the MCU of the electronic equipment through the MCU of the target intelligent load and the communication module, 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 circuit 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, an intelligent switch controls a relay of a corresponding load branch circuit to be disconnected for a preset time and then to be closed according to a control instruction so as to form a transient interruption signal, and the load branch circuit is opened or closed according to the transient interruption signal; as shown in the third step, 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, 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 that the intelligent switch is controlled to open a relay of the third load branch for a preset time and then close the relay, and the third load branch obtains an instruction for controlling the load device to open or close 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 device application program, the intelligent switch controls the relay of the third load branch to be switched off for a preset time and then switched on according to the control instruction, and the third load branch obtains an instruction for controlling the load device to be switched on or switched off according to the action of the relay. The load equipment in the third load branch circuit switches the switch state by 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 rebounding after the mechanical switch is pressed by controlling the contact action of the relay, so that the control of the non-target intelligent load equipment is realized; except the pulse signal generation period, the relay of the third load branch of the intelligent switch is in a closed state at the rest of the time; the pulse signal width of the pulse signal can be configured by the terminal device. To non-target intelligent load, because do not possess between the MCU of non-target intelligent load and the MCU of intelligent switch through wireless communication module direct communication function, the MCU of intelligent switch closes again after its self relay breaks off the preset time earlier according to control command control and forms the transient interruption signal, the transient interruption signal is similar to the switch press signal with resilience formula mechanical switch's one time, supply the MCU of non-target intelligent equipment in the third load branch road to detect this transient interruption signal after the relay of control self closed or break off, thereby control load equipment opens or closes.
And 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 by adopting a matched working mode according to the load type of the corresponding load branch based on the control instruction.
The types of load devices in different load branches are different, and the electronic device controls different types of load devices in different modes and adopts different working modes. The internet of things system can adopt different communication paths to realize control of the load equipment in the corresponding load branch aiming at different working modes. Aiming at a conventional mode, the adopted communication path mainly comprises communication between the intelligent switch and the gateway, and in the conventional mode, the communication path of the load equipment in the corresponding load branch is not influenced in an online state after the load equipment is connected to the network or an offline state without the load equipment being connected to the network. Aiming at a wireless mode, the wireless mode can be divided into a wireless mode 1 and a wireless mode 2 according to different communication paths, the communication path adopted by the wireless mode 1 mainly comprises communication between an intelligent switch and a gateway, communication between load equipment and the gateway and communication between the intelligent switch and the load equipment, and the communication path adopted by the wireless mode 2 mainly comprises communication between the intelligent switch and the gateway and communication between the load equipment and the gateway. In the wireless mode 1, when the load equipment in the corresponding load branch is in an offline state without being connected to the network, after the intelligent switch obtains the control instruction, the relay of the corresponding load branch can be controlled to be closed by adopting a communication path between the intelligent switch and the load equipment; in the wireless mode 2, when the load equipment in the corresponding load branch is in an offline state without being connected to the network, after the intelligent switch acquires the control instruction, the intelligent switch is communicated with the gateway and the gateway is communicated 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 locally stored load branch and the load equipment. And aiming at the rebound mode, the intelligent switch controls the relay to act according to the control instruction to form a transient interruption signal, and the load branch controls the load equipment to be opened or closed according to the transient interruption signal, so that the control of the load equipment in the corresponding load branch in an online state after the load equipment is connected to the network or an offline state without being connected to the network is not influenced.
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, different working modes are adopted to correspondingly control the load equipment in the corresponding load branches respectively, the intelligent switch coexists through multiple working modes, and multiple working mode switching is performed according to different load types in the load branches, so that the intelligent switch can control traditional load equipment and various intelligent load equipment, and the control mode is more flexible.
Referring to fig. 10, in an exemplary embodiment, the load device control apparatus may be implemented by a processor. The load device control apparatus includes an obtaining module 211, configured to obtain a control instruction; the control module 212 is configured to control, based on the control instruction, one or more load devices of the load branch to be turned on or turned off in a matched working mode according to the load type of the corresponding load branch; wherein the matched working modes comprise: controlling a corresponding on-off mode of the on-off device according to the control instruction; keeping a contact of the on-off device 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 a transient 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 an 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 obtaining module 211 is configured to receive a control instruction sent by the terminal device based on the electronic device control interface; 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 operating mode is the wireless mode when the load type of the corresponding load branch is the target intelligent load; sending a wireless instruction for controlling one or more load devices of the load branch to be turned on or turned off to the load branch according to the control instruction; 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 be switched to be closed when the contact of the on-off device is disconnected, and send a wireless instruction for controlling one or more load devices of the load branch to be turned on or turned off to the load branch according to the control instruction.
Optionally, the obtaining 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 device based on the electronic device control interface; 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 the 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 successfully executes the corresponding action according to the wireless instruction; and returning to the step of sending a wireless instruction for controlling the on or off of one or more load devices of the load branch to the load branch according to the control instruction under the condition that the load devices of the load branch fail to execute corresponding actions and the current failure times are within a set range.
Optionally, the control module 212 is further configured to send a contact opening instruction to the on-off device according to the control instruction to control the opening of the contact of the on-off device when the load device of the load branch fails to perform the corresponding action and the current failure frequency exceeds a set range.
Optionally, the control module 212 is further configured to control the contact of the on-off device corresponding to the load branch to be closed according to a trigger instruction formed by operating a local key when the load device of the load branch fails to perform the corresponding action and the current failure frequency exceeds a set range.
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 smart load; and controlling the contact of the on-off device to be closed after the contact is disconnected for preset time according to the control instruction, and forming a transient interruption signal based on the contact action of the on-off device to send the transient interruption signal to one or more load devices of the load branch.
Optionally, the control module 212 is further configured to keep the contacts of the on-off device closed all the time except the preset time.
Optionally, the obtaining module 211 is configured to receive a control instruction sent by the terminal device based on the electronic device control interface; 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, based on the control instruction, respectively determine, according to load types corresponding to the multiple associated load branches, that a working mode matched with a first load branch of which the load type is a non-intelligent load is a normal mode, a working mode matched with a second load branch of which the load type is a target intelligent load is a wireless mode, and a working mode of a third load branch of which the load type is a non-target intelligent load is a rebound mode, in the multiple load branches; controlling one or more load devices in the first load branch to be switched on or switched off in a conventional mode according to the control instruction; controlling one or more load devices in the second load branch to be turned on or off 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 operating modes to respectively control multiple load branches with different load types, only the division of the program modules is described as an example, and in practical applications, the processing may be distributed to different program modules according to needs, that is, 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 provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Referring to fig. 11, an optional hardware structure diagram of the electronic device 10 provided in this embodiment is shown, where the electronic device 10 includes a processor 22 and a memory 21, the memory 21 is used for storing various types of data to support operations of a load device control apparatus, and stores a computer program for implementing the load device control method provided in any embodiment of the present application, and when the computer program is executed by the processor, the steps of the load device control method provided in any embodiment of the present application are implemented, and the same technical effects can be achieved, and are not repeated here to avoid repetition. The electronic equipment can be an intelligent switch, an intelligent socket and other electronic products for realizing the on-off control of the loop in which the electronic equipment is located.
Please refer to fig. 12, which 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 an intelligent switch 64. The intelligent switch 64 may have a relatively large difference due to different configurations or performances, and may include one or more processors 64a (CPUs) (the processor 64a may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 64b for storing the data 1400, one or more storage media 1600 (such as one or more mass storage devices) for storing the application 1500 or the data 1400, a relay J, and a mechanical switch K. The processor 64a is respectively connected with the relay J, the mechanical switch K, the memory 64b and the storage medium 1600; memory 64b and storage medium 1600 may be transient or persistent storage. The program stored in the storage medium 1600 may include one or more modules, each of which may include a series of instruction operations for a server. Further, the processor 64a may be configured to communicate with the storage medium 1600 to execute a series of instruction operations in the storage medium 1600 on the switch 64.
When the mechanical switch K is pressed, the processor 64a receives a pressed signal command, the relay J is a controlled switch and is connected to the control end of the processor 64a, the processor 64a can output a control signal through the control end to control the opening and closing of the relay J, the relay J is connected to the main circuit, the main circuit is connected to a power supply and a controlled device, and the power supply can be 220V mains supply.
The smart switch 64 may also include one or more internal 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 Windows server, 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 such networks may include wireless networks provided by the communications provider of the switch 64. In one example, the i/o interface 1200 includes a network adapter (NIC) that can be connected 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 (RF) module, which is used for communicating with the internet in a wireless manner. It will be understood by those skilled 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 intelligent switch 64 may also include more or fewer components than shown in FIG. 12, or have a different configuration than shown in FIG. 12.
On the other hand, the embodiment of the present application further provides a load device control system, including any one of the electronic devices described in the embodiments of the present application and a multi-path load branch communicatively connected to the electronic device; wherein the multi-path load branch comprises at least two of: the intelligent load control system comprises a first load branch circuit, a second load branch circuit and a third load branch circuit, wherein the load type of the first load branch circuit is a non-intelligent load, the load type of the second load branch circuit is a target intelligent load, and the load type of the third load branch circuit is a non-target intelligent load; and the electronic equipment respectively controls one or more load equipment of the multi-path load branch to be correspondingly turned on or turned off 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, and the terminal equipment is used for sending a control instruction to the electronic equipment and/or the load equipment according to the operation of a user.
In the above load device control system, the electronic device is used to implement the load device control method provided in any embodiment of the present application, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the foregoing working mode configuration method and the foregoing switch control method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by 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 is applied to electronic equipment and is characterized by comprising the following steps:
acquiring a control instruction;
on the basis of the control instruction, one or more load devices of the load branch are controlled to be turned on or turned off in a matched working mode according to the load type of the corresponding load branch;
wherein the matched working modes comprise: controlling a corresponding on-off mode of the on-off device according to the control instruction; keeping a contact of the on-off device 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 a transient 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, one or more load devices of a corresponding load branch to be turned on or off in a matched operating mode according to a load type of the corresponding load branch comprises:
determining that the matched working mode is a conventional mode under the condition that the load type of the corresponding load branch is an intelligent load based on the control instruction;
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 according to claim 2, wherein the acquiring the control instruction includes:
receiving a control instruction sent by the terminal equipment based on the electronic equipment control interface; or the like, or, alternatively,
and 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, one or more load devices of a corresponding load branch to be turned on or off in a matched operating mode according to a load type of the corresponding load branch comprises:
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 the target intelligent load;
sending a wireless instruction for controlling one or more load devices of the load branch to be turned on or turned off to the load branch according to the control instruction; in this process, the contacts of the switching device are always closed.
5. The load device control method according to claim 4, wherein the sending a wireless command to the load branch to control one or more load devices of the load branch to turn on or off according to the control command comprises:
detecting the current state of a 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 disconnected, 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 according to claim 5, wherein the obtaining the control instruction includes:
receiving a control instruction sent by the terminal equipment based on the load control interface; or the like, or, alternatively,
receiving a control instruction sent by the terminal equipment based on the electronic equipment control interface; or the like, or, alternatively,
and 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 according to claim 5, wherein the sending a wireless command to the load branch to control one or more load devices of the load branch to turn on or off according to the control command comprises:
acquiring the 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 the 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 according to claim 5, wherein after sending the wireless command to the load branch to control one or more load devices of the load branch to turn on or off according to the control command, the method comprises:
judging whether the load equipment of the load branch successfully executes the corresponding action according to the wireless instruction;
and returning to the step of sending a wireless instruction for controlling the on or off of one or more load devices of the load branch to the load branch according to the control instruction under the condition that the load devices of the load branch fail to execute corresponding actions and the current failure times are within a set range.
9. The load device control method according to claim 8, further comprising:
and under the condition that the load equipment of the load branch fails to execute corresponding actions and the current failure frequency exceeds a set range, sending a contact opening instruction to the on-off device according to the control instruction to control the contact of the on-off device to be opened.
10. The load device control method according to claim 8, further comprising:
and under the condition that the load equipment of the load branch circuit fails to execute corresponding actions and the current failure times exceed a set range, controlling the contact of the on-off device corresponding to the load branch circuit to be closed according to a trigger instruction formed by operating a local key.
11. The load device control method according to claim 1, wherein the controlling, based on the control instruction, one or more load devices of the load branch to be turned on or off in a matched operating mode according to the load type of the corresponding load branch comprises:
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 closed after the contact is disconnected for preset time according to the control instruction, and forming a transient interruption signal based on the contact action of the on-off device to send the transient interruption signal to one or more load devices of the load branch.
12. The load apparatus control method according to claim 11, wherein after the contact of the on-off device is controlled to be opened for a preset time and then closed according to the control command, the method further comprises:
keeping the contact of the on-off device closed all the time except the preset time.
13. The load device control method according to claim 11, wherein the acquiring the control instruction includes:
receiving a control instruction sent by the terminal equipment based on the electronic equipment control interface; or the like, or, alternatively,
and 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, one or more load devices of the load branch to be turned on or off in a matched operation mode according to the load type of the corresponding load branch comprises:
respectively determining a working mode matched with a first load branch circuit with a load type of a non-intelligent load as a conventional mode, a working mode matched with a second load branch circuit with a load type of a target intelligent load as a wireless mode, and a working mode of a third load branch circuit with a load type of a non-target intelligent load as a rebound mode in the plurality of load branch circuits according to load types corresponding to the plurality of associated load branch circuits based on the control instruction;
controlling one or more load devices in the first load branch to be switched on or switched off in a conventional mode according to the control instruction;
controlling one or more load devices in the second load branch to be turned on or off 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, comprising:
the acquisition module is used for acquiring a control instruction;
the control module is used for controlling one or more load devices of the load branch to be turned on or turned off 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 modes comprise: controlling a corresponding on-off mode of the on-off device according to the control instruction; keeping a contact of the on-off device 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 a transient 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 a load device control method as claimed in 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 multi-path load branch comprises at least two of: the intelligent load control system comprises a first load branch circuit, a second load branch circuit and a third load branch circuit, wherein the load type of the first load branch circuit is a non-intelligent load, the load type of the second load branch circuit is a target intelligent load, and the load type of the third load branch circuit is a non-target intelligent load;
and the electronic equipment respectively controls one or more load equipment of the multi-path load branch to be correspondingly turned on or turned off 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 true CN114253141A (en) 2022-03-29
CN114253141B 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 (10)

* 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
US20130065643A1 (en) * 2011-09-09 2013-03-14 Pantech Co., Ltd. Mobile terminal having mode transition function and driving method thereof
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

Patent Citations (10)

* 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
US20130065643A1 (en) * 2011-09-09 2013-03-14 Pantech Co., Ltd. Mobile terminal having mode transition function and driving method thereof
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
CN114253141B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN109343359B (en) Intelligent switch, intelligent control system, method and device and electronic equipment
CN108398886B (en) Household appliance control method, household appliance and Internet of things gateway
CN105766067A (en) Automated system for lighting control
CN109753034B (en) Control method, control device, electronic equipment and storage medium
WO2020186758A1 (en) Control method and control device of home appliance controller, and storage medium
CN104571055A (en) Intelligent home monitoring system based on internet of things
CN110113232A (en) Apparatus control method, device, system, electronic equipment and storage medium
CN111600586A (en) Single-fire switch double-control system and method
CN107643692B (en) Energy efficiency management system and method
CN105527848A (en) Communication device and method for controlling communication device
CN114253141A (en) Load device control method, device and system, electronic device and storage medium
CN105867154A (en) Device and system for controlling home device network
CN111464170A (en) Electronic double-circuit switch and system thereof
CN107493394B (en) System and method for controlling Bluetooth equipment by mobile phone through Wi-Fi
CN115494737A (en) Control method of intelligent household appliance, storage medium and electronic device
CN115242824A (en) Device control method and apparatus, router, wireless mesh network system, and medium
CN114253143A (en) Load device control method, device and system, electronic device and storage medium
CN114035440A (en) Control method and device of intelligent equipment and computer readable storage medium
CN205003502U (en) Wireless Intelligence flush mounting plate of switch with timing holding function
CN114518706A (en) Equipment control method, device and system, intelligent equipment and storage medium
CN113965460B (en) Method and device for preventing error reset, intelligent device and storage medium
CN114253142B (en) Mode configuration method, mode control method, mode configuration device, mode control system, mode configuration equipment and medium
CN208384393U (en) A kind of switch, electrical equipment and control system
CN113840437B (en) Working method of sensor feedback system and lighting system
CN114900846A (en) Device display state updating method and device, electronic device and 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