CN108958084A - For controlling the method and apparatus and machine readable storage medium of equipment folding - Google Patents

For controlling the method and apparatus and machine readable storage medium of equipment folding Download PDF

Info

Publication number
CN108958084A
CN108958084A CN201710351549.9A CN201710351549A CN108958084A CN 108958084 A CN108958084 A CN 108958084A CN 201710351549 A CN201710351549 A CN 201710351549A CN 108958084 A CN108958084 A CN 108958084A
Authority
CN
China
Prior art keywords
switch
association
state
panel
received
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
CN201710351549.9A
Other languages
Chinese (zh)
Other versions
CN108958084B (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.)
MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.
Original Assignee
Midea Group Co Ltd
Midea Smart Home 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 Midea Group Co Ltd, Midea Smart Home Technology Co Ltd filed Critical Midea Group Co Ltd
Priority to CN201710351549.9A priority Critical patent/CN108958084B/en
Publication of CN108958084A publication Critical patent/CN108958084A/en
Application granted granted Critical
Publication of CN108958084B publication Critical patent/CN108958084B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • 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/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • 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/21Pc I-O input output
    • G05B2219/21014Interface, module with relays
    • 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/25Pc structure of the system
    • G05B2219/25257Microcontroller
    • 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

Landscapes

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

Abstract

The embodiment of the present invention provides the method and apparatus and machine readable storage medium for controlling equipment folding, belongs to smart home field.Method for the first switch panel including first switch includes: that the first switch is associated with second switch;When the state change of the first switch, the status change notification of state after indicating the first switch variation is sent to the second switch panel for including the second switch, so that the state of the second switch is consistent with the state of the first switch;Wherein, at least one of the first switch and the second switch are connect with the control loop of the equipment controlled.The present invention can will be associated between different switches, and single control switch may be implemented flexibly to upgrade;And dual control function can be realized without practical wiring support, increases the flexibility of switch and control relationships among devices.

Description

For controlling the method and apparatus and machine readable storage medium of equipment folding
Technical field
The present invention relates to smart home fields, more particularly to the method and apparatus for controlling equipment folding, Yi Jiji Device readable storage medium storing program for executing.
Background technique
In the related technology, in a home environment, conventional mechanical switch is mostly used to realize the folding control of equipment.Principle is logical It crosses the mechanical action triggering firewire circuit conducting of switch and disconnects, to control the folding of equipment.
In the application of smart home, demand realizes the switch of dual control, three controls or more control.Dual control or three control functions are Refer to two or three switches while controlling an equipment.For example, the switch 1-1 of No. 1 switch panel and the switch of No. 2 switch panels 2-1 constitutes double control switch, while controlling lighting and extinguishing for lamp.After trigger switch 1-1 closure, load lamp light is risen;At this time Trigger switch 2-1 (or trigger switch 1-1 again) loads lights.Then, trigger switch 1-1 (or is touched again again Send out switch 2-1), load lamp light rises.Wherein, switch 1-1 and switch 2-1 are interrelated, and negative by same logic control Carry the switch of light.The switch of three-control switch or more control, principle are similar to double control switch.Intelligence is realized using mechanical switch When dual control in household, three controls or more function of control, need to link two, three or more mechanical switch are on hardware It supports multiloop, needs for be together in parallel in multiple circuits in practice of construction wiring.
Present inventor has found in the implementation of the present invention, for already existing single control mechanical switch, Because not supporting to be associated with other single control switches on hardware, single control switch can not be upgraded to double control switch, three controls are opened The switch of pass or more control.In addition, using mechanical switch realize dual control, three control or more control switch when, need into Row reality wiring, after the completion of wiring, is just difficult to change.Therefore, it is impossible to realize the flexible change of switch and control relationships among devices Change.
Summary of the invention
The purpose of the embodiment of the present invention is that providing the method and apparatus and machine readable storage for controlling equipment folding Medium to solve the above technical problems or at least is partially solved above-mentioned technical problem.
To achieve the goals above, the embodiment of the present invention provides a kind of method for controlling equipment folding, for including The first switch panel of first switch, which comprises the first switch is associated with second switch;When described first When the state change of switch, the status change notification of state after indicating first switch variation is sent to including described second opening The second switch panel of pass, so that the state of the second switch is consistent with the state of the first switch;Wherein, described At least one of one switch and the second switch are connect with the control loop of the equipment controlled.
Optionally, it is described by the first switch it is associated with second switch include: transmission association request, the association is asked Seek the mark ID including the first switch;Receive the association confirmation from the second switch panel, the association confirmation packet Include the ID of the second switch;According to it is received association confirmation in include second switch ID, by the first switch with The second switch is associated.
Optionally, it is described by the first switch it is associated with second switch include: to receive from the second switch face The association request of plate, the association request include the ID of the second switch;According to include in received association request The ID of two switches, the first switch is associated with the second switch;Association confirmation is sent to the second switch panel, The association confirmation includes the ID of the first switch.
Optionally, the method also includes: receive the status change notification from the second switch panel, the state Change notification indicates state after the second switch variation;According to the instruction of received status change notification the second switch The state of first switch described in Status Change after variation, so that the state phase of the state of the first switch and the second switch Unanimously.
Optionally, the method also includes: send and cancel association notice to the second switch panel, cancellations is associated with Notice includes the ID of the first switch;And/or it receives the cancellation from the second switch panel and is associated with notice, the cancellation Associate notification includes the ID of the second switch, and cancels institute according to the ID for cancelling the second switch for including in association notice State being associated with for first switch and the second switch.
According to another aspect of the present invention, a kind of device opened and closed for controlling equipment is provided, for opening including first The first switch panel of pass, described device include: relating module, for the first switch is associated with second switch;Become Change module, the state for when the state change of the first switch, sending state after the instruction first switch changes becomes Change notice to the second switch panel for including the second switch, so that the state of the second switch and the first switch State is consistent;Wherein, the control loop of at least one of the first switch and the second switch and the equipment controlled Connection.
Optionally, for the relating module for sending association request, the association request includes the mark of the first switch Know ID;The association confirmation from the second switch panel is received, the association confirmation includes the ID of the second switch;According to It is received association confirmation in include second switch ID, the first switch is associated with the second switch.
Optionally, the relating module for receiving the association request from the second switch panel, ask by the association Seek the ID including the second switch;According to include in received association request second switch ID, described first is opened It closes associated with the second switch;Association confirmation is sent to the second switch panel, and association confirmation includes described the The ID of one switch.
Optionally, the variation module is also used to receive the status change notification from the second switch panel, described Status change notification indicates state after the second switch variation;According to the instruction of received status change notification described second The state of first switch described in Status Change after switch change, so that the shape of the state of the first switch and the second switch State is consistent.
Optionally, described device further include: cancel module, cancel association notice to the second switch face for sending Plate, the ID for cancelling associate notification and including the first switch;And/or it receives the cancellation from the second switch panel and closes Connection knows, the ID for cancelling associate notification and including the second switch, and cancels include in association notice the according to described The ID of two switches cancel being associated with for the first switch and the second switch.
According to another aspect of the invention, a kind of machine readable storage medium is provided, on the machine readable storage medium It is stored with instruction, which is used for so that machine execution is aforementioned described in any item for controlling equipment opening/closing method.
Through the above technical solutions, the first switch is associated with second switch, when the state change of first switch When, the status change notification of state after instruction first switch variation is sent to the second switch panel for including second switch, so that The state of second switch and the state of first switch are consistent, and at least one of first switch and the second switch is set with what is controlled Standby control loop connection;It so, it is possible to be associated between different switches, single control switch may be implemented flexibly to rise Grade;And dual control function can be realized without practical wiring support, increases the flexibility of switch and control relationships among devices.
The other feature and advantage of the embodiment of the present invention will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is to further understand for providing to the embodiment of the present invention, and constitute part of specification, under The specific embodiment in face is used to explain the present invention embodiment together, but does not constitute the limitation to the embodiment of the present invention.Attached In figure:
Fig. 1 is according to an embodiment of the present invention for controlling the flow chart of the method for equipment folding;
Fig. 2 is the structure chart of switch panel according to an embodiment of the present invention;
Fig. 3 is the schematic diagram of the scene according to an embodiment of the present invention for realizing dual control;
Fig. 4 is the flow chart according to an embodiment of the present invention for carrying out switching associated process;
Fig. 5 is the flow chart according to an embodiment of the present invention for carrying out switching associated process;
Fig. 6 is the flow chart of the process according to an embodiment of the present invention for carrying out switch state variation;
Fig. 7 is the schematic diagram of the scene according to an embodiment of the present invention for realizing three controls;
Fig. 8 is according to an embodiment of the present invention for controlling the structure chart of the device of equipment folding;
Fig. 9 is according to an embodiment of the present invention for controlling the structure chart of the device of equipment folding.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the embodiment of the present invention.It should be understood that this Locate described specific embodiment and be merely to illustrate and explain the present invention embodiment, is not intended to restrict the invention embodiment.
Fig. 1 is according to an embodiment of the present invention for controlling the flow chart of the method for equipment folding;This method can be used for out It closes in panel.Switch panel can be intelligent switch, and switch panel may include microcontroller, relay, communication component.According to relay The number of device can respectively constitute all the way, two tunnels, three-way switch panel.As shown in Fig. 2, microcontroller controls relay by I/O port Normally opened contact open and close, to realize the open and close of load circuit, while microcontroller is able to detect load circuit Current state.Wireless communication technique can be used in communication component, and (ZigBee (ZigBee protocol) 433MHz) is communicated.It opens The control of pass and state can be transferred to intelligent gateway by communication component, and switch panel can be taken by communication component and cloud Business device and the place APP (application) terminal are communicated.It can also carry out passing through interaction by communication component between switch panel.Such as Fig. 1 Shown, this method is used for the first switch panel including first switch, and this method may include following steps.
In step s 110, first switch is associated with second switch.
Wherein, at least one of first switch and the second switch is connect with the control loop of the equipment controlled.
First switch and first switch can be relay shown in Fig. 2.For example, in the scenario shown in fig. 3, Switch panel 1 includes switch 1-1 and switch 1-2, and switch panel 2 includes switch 2-1 and switch 2-2.Use opening for switch panel 1 The switch 2-1 of pass 1-1 and switch panel 2 realizes the dual control to lamp L1.The control loop of lamp L1 is connect with switch 2-1, is opened in this way The opening and closing for closing 2-1 can control lighting and extinguishing for lamp L1.In order to realize control of the switch 1-1 to lamp L1, need by Switch 1-1 is associated with switch 2-1.For example, switch 1-1 and switch 2-1 is triggered 5~10 seconds simultaneously, switch panel 1 and switching surface Plate 2 knows that switch 1-1 and switch 2-1 enter association mode respectively, at this point, switch 1-1 and switch 2-1 passes through communication component each other Bi-directional exchanges of information is carried out, switch panel 1 corresponds to the ID that switch 1-1 stores associated switch 2-1 after the completion of information exchange (mark), switch panel 2 correspond to switch 2-1 and store its ID for being associated with switch 1-1.In this way, realizing switch 1-1 and switch 2- Association between 1.
In one embodiment, as shown in figure 4, by first switch it is associated with second switch may include following steps.
In step S402, association request is sent.
Wherein, association request includes the ID of first switch.
In step s 404, the association confirmation from second switch panel is received.
Wherein, association confirmation includes the ID of second switch.
In step S406, according to include in received association confirmation second switch ID, by first switch and the Two switches are associated.
In one embodiment, as shown in figure 5, by first switch it is associated with second switch may include following steps.
In step S502, the association request from second switch panel is received.
Wherein, association request includes the ID of second switch.
In step S504, according to include in received association request second switch ID, by first switch and the Two switches are associated.
In step S506, association confirmation is sent to second switch panel.
Wherein, association confirmation includes the ID of first switch.
For example, switch panel 1 broadcasts association request for the switch 1-1 under association mode, includes in association request The ID of switch 1-1.Switch panel 2 is directed to the switch 2-1 under association mode and receives association request, determines switch 2-1 and switch 1-1 It is associated, to the ID of inductive switch 2-1 storage lower switch 1-1, and association confirmation is replied, includes the ID of switch 2-1 in association confirmation. Switch panel 1 receives the confirmation of the association from switch panel 2 for switch 1-1, will according to the ID of switch 2-1 in association confirmation Switch 1-1 is associated with switch 2-1, to the ID of inductive switch 1-1 storage lower switch 2-1.Switch panel 2 is directed to opening under association mode It closes 2-1 and broadcasts association request, include the ID of switch 2-1 in association request.Switch panel 1 is directed to the switch 1-1 under association mode Association request is received, discovery switch 1-1 is associated with switch 2-1, then abandons the association request received, do not retransmit pass Connection confirmation.Being associated with for switch 1-1 and switch 2-1 so may be implemented.Association is issued first by switch 1-1 in the example above to ask It asks, realization switch 1-1 is associated with switch 2-1's;Association request can also be issued first by switch 2-1 to realize switch 1-1 and open Close the association of 2-1.The sequencing of switch 1-1 and switch 2-1 transmission association request can be random, such as be accessed by the two The randomness of channel determines.
In the step s 120, when the state change of first switch, the state of state after instruction first switch variation is sent Change notification is to the second switch panel for including second switch, so that the state phase one of the state of second switch and first switch It causes.
For example, when trigger switch 1-1 is closed, switch panel 1 sends instruction switch 1-1 by communication component and is closed Status change notification to switch panel 2 communication component.Switch 2-1 is closed by switch panel 2 according to status change notification, in It is that lamp L1 is lit.When trigger switch 1-1 is disconnected, switch panel 1 sends the shape that instruction switch 1-1 is disconnected by communication component State change notification is to the communication component of switch panel 2, and according to status change notification by switch 2-1 disconnection, lamp L1 is put out switch panel 2 It goes out.
When switch panel 1-1 is received from external control command, such as passing through APP remote control switch 1-1 In the case where closing or opening, switch 1-1 closing or opening and is sent shape to switch panel 1 by control command based on the received State change notification indicates switch 1-1 closing or opening to switch panel 2.After switch panel 2 receives status change notification, root According to status change notification instruction by the Status Change of switch 2-1 be closing or opening.
In one embodiment, as shown in fig. 6, method may also include the steps of.
In step S602, the status change notification from second switch panel is received.
Wherein, state after the variation of status change notification instruction second switch.
In step s 604, according to the instruction of received status change notification second switch variation after Status Change first The state of switch, so that the state of first switch is consistent with the state of second switch.
For example, when trigger switch 2-1 is closed, lamp L1 is lighted, and Simultaneous Switching panel 2 is referred to by communication component transmission Show the status change notification of switch 2-1 closure to switch panel 1.Switch panel 1 receives state change by communication component and leads to Know, be closed switch 1-1 according to the instruction of status change notification so that switch 1-1 and switch 2-1 state are consistent, all for Closure.When trigger switch 2-1 is disconnected, lamp L1 extinguishes, and switch panel 2 sends what instruction switch 2-1 was disconnected by communication component Status change notification is to switch panel 1.Switch panel 1 receives status change notification by communication component, according to state change The instruction of notice disconnects switch 1-1, so that switch 1-1 and switch 2-1 state are consistent, it is all disconnection.
In one embodiment, the method also includes: send and cancel association notice to second switch panel.Wherein, cancel Associate notification includes the ID of first switch.
Alternatively, the method may also include that the cancellation association notice received from second switch panel, cancel association notice ID including second switch, and first switch and described second is cancelled according to the ID for cancelling the second switch for including in association notice The association of switch.
For example, switch 1-1 continuous trigger is multiple, such as 3 times, switch 1-1 starts to carry out cancellation association.Switching surface Plate 1 is broadcasted by communication component cancels association notice, cancels the ID that associate notification includes switch 1-1.Switch panel 2, which receives, to be taken After the association notice that disappears, cancellation will be associated between switch 2-1 and switch 1-1 according to association notice is cancelled.
Using method in invention, three control functions can also be realized.As shown in fig. 7, increasing switch panel on the basis of Fig. 3 3, switch panel 3 includes switch 3-1 and switch 3-2.Switch 1-1, switch 2-1 and switch 3-2 in Fig. 7 can be associated.Example Such as, while by switch 1-1, switch 2-1 and switch 3-2 it triggers 5~10 seconds, switch panel 1, switch panel 2 and switch panel 3 divide Do not know that switch 1-1, switch 2-1 and switch 3-2 enter association mode, at this point, switch 1-1, switch 2-1 and switch 3-2 pass through Communication component carries out bi-directional exchanges of information each other, and it is associated to correspond to switch 1-1 storage for switch panel 1 after the completion of information exchange The ID (mark) of switch 2-1 and switch 3-2, switch panel 2 correspond to switch 2-1 and store its association switch 1-1's and switch 3-2 ID, switch panel 3 correspond to switch 3-2 and store its ID for being associated with switch 1-1 and switch 2-1.In this way, realizing switch 1-1, opening Close the association between 2-1 and switch 3-2.When any one state change in switch 1-1, switch 2-1 and switch 3-2, institute Status change notification is sent in switch panel to indicate the state after variation, other associated switches are corresponding to carry out state change, So keep the consistent of the state of association switch room.It is closed when one any in switch 1-1, switch 2-1 and switch 3-2 issues to cancel When connection is known, other associated switches are cancelled and being associated between the switch.
Middle method through the invention, for switch panel, no replacement is required hardware can realize multiple open by operation processing Association between pass, and then dual control, three controls or more controls are carried out to equipment;This method flexible operation increases without carrying out practical wiring The efficiency of operation, and saved wiring cost.
Fig. 8 is according to an embodiment of the present invention for controlling the structure chart of the device of equipment folding;The device can be used for wrapping The first switch panel of first switch is included, as shown in figure 8, the device may include following module.
Relating module 810, for first switch is associated with second switch.
Change module 820, for when the state change of first switch, sending the shape of state after instruction first switch changes State change notification is to the second switch panel for including second switch, so that the state phase one of the state of second switch and first switch It causes.
Wherein, at least one of first switch and the second switch is connect with the control loop of the equipment controlled.
In one embodiment, for relating module 810 for sending association request, association request includes the mark of first switch ID;The association confirmation from second switch panel is received, association confirmation includes the ID of second switch;It is true according to the received association of institute The ID for the second switch for including in recognizing, first switch is associated with second switch.
In one embodiment, relating module 810 is for receiving the association request from second switch panel, association request packet Include the ID of second switch;According to include in received association request second switch ID, by first switch and second switch It is associated;Association confirmation is sent to second switch panel, association confirmation includes the ID of first switch.
In one embodiment, variation module 820 is also used to receive the status change notification from second switch panel, state Change notification indicates state after second switch variation;According to the instruction of received status change notification second switch variation after shape State changes the state of first switch, so that the state of first switch is consistent with the state of second switch.
In one embodiment, as shown in figure 9, device, which may also include that, cancels module 910, cancel association notice for sending To second switch panel, cancel the ID that associate notification includes first switch;And/or it receives the cancellation from second switch panel and closes Connection is known, cancels the ID that associate notification includes second switch, and take according to the ID for cancelling the second switch for including in association notice The first switch that disappears is associated with the second switch.
Above-mentioned apparatus is corresponding with preceding method, specific embodiment, reference can be made to being described in detail in preceding method, herein not It repeats again.
The invention also discloses a kind of machine readable storage medium, it is stored with instruction on the machine readable storage medium, it should Instruction is used for so that machine execution is aforementioned described in any item for controlling equipment opening/closing method.
The optional embodiment of example of the present invention is described in detail in conjunction with attached drawing above, still, the embodiment of the present invention is simultaneously unlimited Detail in above embodiment can be to the embodiment of the present invention in the range of the technology design of the embodiment of the present invention Technical solution carry out a variety of simple variants, these simple variants belong to the protection scope of the embodiment of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case where shield, it can be combined in any appropriate way.In order to avoid unnecessary repetition, the embodiment of the present invention pair No further explanation will be given for various combinations of possible ways.
It will be appreciated by those skilled in the art that implementing the method for the above embodiments is that can pass through Program is completed to instruct relevant hardware, which is stored in a storage medium, including some instructions are used so that one The whole of a (can be single-chip microcontroller, chip etc.) or processor (processor) execution each embodiment the method for the application Or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
In addition, any combination can also be carried out between a variety of different embodiments of the embodiment of the present invention, as long as it is not The thought of the embodiment of the present invention is violated, equally should be considered as disclosure of that of the embodiment of the present invention.

Claims (11)

1. a kind of method for controlling equipment folding, which is characterized in that for the first switch panel including first switch, institute The method of stating includes:
The first switch is associated with second switch;
When the state change of the first switch, the status change notification of state after indicating the first switch variation is sent extremely Second switch panel including the second switch, so that the state phase one of the state of the second switch and the first switch It causes;
Wherein, at least one of the first switch and the second switch are connect with the control loop of the equipment controlled.
2. the method according to claim 1, wherein described by first switch packet associated with second switch It includes:
Association request is sent, the association request includes the mark ID of the first switch;
The association confirmation from the second switch panel is received, the association confirmation includes the ID of the second switch;
According to it is received association confirmation in include second switch ID, the first switch is related to the second switch Connection.
3. the method according to claim 1, wherein described by first switch packet associated with second switch It includes:
The association request from the second switch panel is received, the association request includes the ID of the second switch;
According to include in received association request second switch ID, the first switch is related to the second switch Connection;
Association confirmation is sent to the second switch panel, the association confirmation includes the ID of the first switch.
4. the method according to claim 1, wherein the method also includes:
The status change notification from the second switch panel is received, the status change notification indicates that the second switch becomes State after change;
According to first switch described in Status Change after the second switch variation that indicates of received status change notification shape State, so that the state of the first switch is consistent with the state of the second switch.
5. the method according to claim 1, wherein the method also includes:
It sends and cancels association notice to the second switch panel, the ID for cancelling associate notification and including the first switch; And/or
It receives the cancellation from the second switch panel and is associated with notice, the cancellation associate notification includes the second switch ID, and the first switch and the second switch are cancelled according to the ID for cancelling the second switch for including in association notice Association.
6. a kind of for controlling the device of equipment folding, which is characterized in that for the first switch panel including first switch, institute Stating device includes:
Relating module, for the first switch is associated with second switch;
Change module, for when the state change of the first switch, sending state after the instruction first switch changes Status change notification is to the second switch panel for including the second switch, so that the state of the second switch and described first The state of switch is consistent;
Wherein, at least one of the first switch and the second switch are connect with the control loop of the equipment controlled.
7. device according to claim 6, which is characterized in that the relating module is for sending association request, the pass Connection request includes the mark ID of the first switch;The association confirmation from the second switch panel is received, the association is true Recognize the ID including the second switch;According to it is received association confirmation in include second switch ID, described first is opened It closes associated with the second switch.
8. device according to claim 6, which is characterized in that the relating module comes from the second switch for receiving The association request of panel, the association request include the ID of the second switch;According to include in received association request The ID of second switch, the first switch is associated with the second switch;It is true that association is sent to the second switch panel Recognize, the association confirmation includes the ID of the first switch.
9. device according to claim 6, which is characterized in that the variation module is also used to receive and open from described second The status change notification of panel is closed, the status change notification indicates state after the second switch variation;It is received according to institute The state of first switch described in Status Change after the second switch variation of status change notification instruction, so that described first opens The state of pass is consistent with the state of the second switch.
10. device according to claim 9, which is characterized in that described device further include:
Cancel module, cancels association notice to the second switch panel for sending, the cancellation associate notification includes described The ID of first switch;And/or receive the cancellation from the second switch panel and be associated with notice, the cancellation associate notification includes The ID of the second switch, and according to the ID for cancelling the second switch for including in association notice cancel the first switch with The association of the second switch.
11. a kind of machine readable storage medium, which is characterized in that be stored with instruction on the machine readable storage medium, the instruction For making machine perform claim requirement 1 to 5 described in any item for controlling equipment opening/closing method.
CN201710351549.9A 2017-05-18 2017-05-18 Method and device for controlling opening and closing of equipment and machine-readable storage medium Active CN108958084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710351549.9A CN108958084B (en) 2017-05-18 2017-05-18 Method and device for controlling opening and closing of equipment and machine-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710351549.9A CN108958084B (en) 2017-05-18 2017-05-18 Method and device for controlling opening and closing of equipment and machine-readable storage medium

Publications (2)

Publication Number Publication Date
CN108958084A true CN108958084A (en) 2018-12-07
CN108958084B CN108958084B (en) 2021-04-20

Family

ID=64462572

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710351549.9A Active CN108958084B (en) 2017-05-18 2017-05-18 Method and device for controlling opening and closing of equipment and machine-readable storage medium

Country Status (1)

Country Link
CN (1) CN108958084B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201639820U (en) * 2010-01-08 2010-11-17 张万明 Multi-gang control switch
CN103066855A (en) * 2013-01-15 2013-04-24 昂宝电子(上海)有限公司 System and method used for no-voltage switch in power source transformation system
CN105676669A (en) * 2016-04-13 2016-06-15 南通扬宇电子有限公司 Intelligent wall switch based on bluetooth 4.1 interconnection technology
CN205648151U (en) * 2016-04-26 2016-10-12 温州力沃电器有限公司 Touch switch is controlled in two accuses of single live wire more
CN106444463A (en) * 2016-12-12 2017-02-22 深圳市家云智能科技有限公司 Intelligent double control switch and control method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201639820U (en) * 2010-01-08 2010-11-17 张万明 Multi-gang control switch
CN103066855A (en) * 2013-01-15 2013-04-24 昂宝电子(上海)有限公司 System and method used for no-voltage switch in power source transformation system
CN105676669A (en) * 2016-04-13 2016-06-15 南通扬宇电子有限公司 Intelligent wall switch based on bluetooth 4.1 interconnection technology
CN205648151U (en) * 2016-04-26 2016-10-12 温州力沃电器有限公司 Touch switch is controlled in two accuses of single live wire more
CN106444463A (en) * 2016-12-12 2017-02-22 深圳市家云智能科技有限公司 Intelligent double control switch and control method thereof

Also Published As

Publication number Publication date
CN108958084B (en) 2021-04-20

Similar Documents

Publication Publication Date Title
CN205015712U (en) Zigbee switch of taking scene control function of intelligence house
CN104994530B (en) More Wi-Fi internet of things equipment grouping collective's control system and method based on group MAC Address
CN104869699A (en) Lighting control method, lighting device and lighting system
CN109756864A (en) A kind of vehicle-mounted TBOX equipment communication means and device, TBOX equipment and readable storage medium storing program for executing
CN105088648A (en) Washing machine control system and washing machine
WO2013034361A1 (en) An illumination control system, an illuminating device and a secondary controller
CN104697105A (en) Air conditioner control system and method
CN104820371A (en) Method for realizing scene function of Zigbee smart home terminal device
CN103425096B (en) building automation system
CN104965429A (en) Automation monitoring system and restarting control device
CN110636147B (en) Network distribution method and device with double-control switch, switch and intelligent switch system
CN108319152A (en) A kind of smart machine control method and system based on LBS location-based services
CN105682199B (en) A kind of method and system of wireless synchronization
CN112911426B (en) Network control system, method and device and intelligent optical gateway
CN108958084A (en) For controlling the method and apparatus and machine readable storage medium of equipment folding
CN105517286A (en) Intelligent WIFI lamp control system and method thereof
CN108235449A (en) Public network based on unit/terminal gateway is to the communication means for traditional intercommunication of making peace
CN110505614B (en) Communication method and device of ZigBee binding switch
CN203671833U (en) Air conditioner control system
CN101976065B (en) The wireless switch system controlled for complex network and wireless switching
CN104981081A (en) Wireless light control system and control method of the wireless light control system
CN109462528A (en) A kind of control system and method for variable connector controller pattern of double controlling
CN206135952U (en) Commercial light control network
CN103346940A (en) Non-wiring plug-and-play intelligent household system
CN108600870A (en) A kind of novel building speakerphone and communication means

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200609

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Applicant after: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant before: MIDEA SMART HOME TECHNOLOGY Co.,Ltd.

Applicant before: MIDEA GROUP Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Applicant after: Meizhi Optoelectronic Technology Co., Ltd

Address before: 335400 No. 1 Industrial Park, Yingtan, Jiangxi, Guixi

Applicant before: MEIZHI PHOTOELECTRIC TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant