Realize intelligent switch control system and the method for signal wire and power lead hybrid modulation
Technical field
The invention belongs to technical field of circuit control, be specifically related to a kind of intelligent switch control system and the method that realize signal wire and power lead hybrid modulation.
Background technology
Intelligent switch, refer to the combination and programming that utilize control panel and electronic devices and components, with the unit of realizing circuit intelligent switching control, intelligent switch is of a great variety, such as, sound control delay switch, touching delay-action switch and human induction switch etc.Compare with traditional mechanical type switch on wall, intelligent switch has that function characteristics is many, use safety, the advantage such as attractive in fashion, break the single effect of the Push And Release of conventional wall switch, be now widely used in multiple fields such as home intelligence transformation, office's intellectualized reconstruction, industrial intelligent transformation, farming, forestry, fishing and husbandary intellectualized reconstruction.
Mechanical type switch on wall is being transform as in the process of intelligent switch, mainly there is following problem:
For mechanical type switch on wall, between wall switch panel to load, only there is power lead; And for intelligent switch, owing to both having needed delivery of electrical energy between intelligent switch panel to load, also need Signal transmissions, therefore, now in the art, need layout two kinds of cables between intelligent switch panel to load, be respectively power lead and signal wire.
As can be seen here, now in the art, mechanical type switch on wall is being transform as in the process of intelligent switch, is needing additionally to arrange signal wire, there is the problem that construction is complicated, improvement cost is high.
Summary of the invention
For the defect that prior art exists, the invention provides a kind of intelligent switch control system and the method that realize signal wire and power lead hybrid modulation, can effectively solve the problem.
The technical solution used in the present invention is as follows:
The invention provides a kind of intelligent switch control system realizing signal wire and power lead hybrid modulation, comprising: ACTIVE CONTROL end and driven control end; Described ACTIVE CONTROL end comprises ACTIVE CONTROL circuit, the 1st on-off element K1 and n a 3rd on-off element K3; Described driven control end comprises slave control circuit, the 2nd on-off element K2 and energy-storage travelling wave tube; Wherein, n is natural number;
Power supply is installed in parallel n load by the 1st supply line, each described load described 3rd on-off element K3 all in parallel, and the control end of the 3rd on-off element K3 described in each is all connected to the 1st port of described ACTIVE CONTROL circuit;
Described power supply is connected to the 2nd port of described ACTIVE CONTROL circuit by the 2nd supply line;
Described 1st on-off element K1 and described 2nd on-off element K2 all has the 1st stationary contact, the 2nd stationary contact and moving contact;
Wherein, the 1st stationary contact of described 1st on-off element K1 is connected to the anode of described power supply by the 3rd supply line, and the 2nd stationary contact of described 1st on-off element K1 is connected to the 3rd port of described ACTIVE CONTROL circuit by the 1st transmission line; The moving contact of described 1st on-off element K1 is connected to the moving contact of described 2nd on-off element K2 by the 2nd transmission line; 1st stationary contact of described 2nd on-off element K2 is connected to the 1st port of described slave control circuit by the 4th supply line, described 1st port is energization input mouth; 2nd stationary contact of described 2nd on-off element K2 is connected to the 2nd port of described slave control circuit by the 3rd transmission line; 3rd port of described slave control circuit is connected with performance element; Wherein, described energy-storage travelling wave tube in parallel in described 4th supply line.
Preferably, described 3rd on-off element K3 is relay.
Preferably, described energy-storage travelling wave tube is electric capacity.
Preferably, described performance element is guidance panel, and described guidance panel is configured with for the control knob to load sending controling instruction described in each.
The present invention also provides a kind of intelligent switch control method realizing signal wire and power lead hybrid modulation, comprises the following steps:
S1, before ACTIVE CONTROL circuit start, the moving contact of the 1st on-off element K1 and the 1st stationary contact conducting; Before slave control circuit starts, the moving contact of the 2nd on-off element K2 and the 1st stationary contact conducting;
Power supply is powered to ACTIVE CONTROL circuit by the 2nd supply line, and described ACTIVE CONTROL circuit is power-up state always; Power supply is powered to the energy-storage travelling wave tube of slave control circuit by the 1st on-off element K1 and the 2nd on-off element K2, and make energy-storage travelling wave tube store certain electric energy, meanwhile, energy-storage travelling wave tube is powered to slave control circuit again, and slave control circuit is powered on;
S2, described ACTIVE CONTROL circuit arranges electrical source exchange time interval T1 and signal switching time interval T 2;
S3, at current time t1, described ACTIVE CONTROL circuit controls the 1st on-off element K1, make its 1st stationary contact and moving contact conducting, because the 1st stationary contact of the 1st on-off element K1 is connected with power supply, the moving contact of the 1st on-off element K1 is connected with the moving contact of the 2nd on-off element K2 by the 2nd transmission line, causes the moving contact of power supply and the 2nd on-off element K2 to form supply access thus, makes the moving contact of the 2nd on-off element K2 be high level;
Described slave control circuit is after power supply electrifying with energy-storage travelling wave tube, monitor the moving contact level state of the 2nd on-off element K2, when the moving contact that described slave control circuit listens to the 2nd on-off element K2 is high level, described slave control circuit controls the 2nd on-off element K2, make its moving contact and the 1st stationary contact conducting, due to described energy-storage travelling wave tube of connecting between the 1st stationary contact and the 1st port of described slave control circuit of the 2nd on-off element K2, cause thus forming supply access between power supply and described energy-storage travelling wave tube, described power supply charges to described energy-storage travelling wave tube,
S4, when after elapsed time interval T 1, described ACTIVE CONTROL circuit controls the 1st on-off element K1, make its 2nd stationary contact and moving contact conducting, because the 2nd stationary contact of the 1st on-off element K1 is connected with the 3rd port of described ACTIVE CONTROL circuit, the moving contact of the 1st on-off element K1 is connected with the moving contact of the 2nd on-off element K2 by the 2nd transmission line, cause the 3rd port of ACTIVE CONTROL circuit and the moving contact of the 2nd on-off element K2 to form transmission channel thus, make the moving contact of the 2nd on-off element K2 be low level;
Described slave control circuit take energy-storage travelling wave tube as power supply, monitor the moving contact level state of the 2nd on-off element K2, when the moving contact that described slave control circuit listens to the 2nd on-off element K2 is low level, described slave control circuit controls the 2nd on-off element K2, make its moving contact and the 2nd stationary contact conducting, because the 2nd stationary contact of the 2nd on-off element K2 is connected with the 2nd port of described slave control circuit, the 3rd port of described ACTIVE CONTROL circuit and the 2nd port of described slave control circuit is caused to form signal transmission pathway thus, described ACTIVE CONTROL circuit and described slave control circuit can carry out Signal transmissions,
S5, when after elapsed time interval T 2, returns and re-executes S3 and S4; Circulation performs S3-S4 thus, by controlling the switching of the 1st on-off element K1 and the 2nd on-off element K2, for the 2nd transmission line be connected between the moving contact of the 1st on-off element K1 and the moving contact of the 2nd on-off element K2, constantly switch between function of supplying power and these two kinds of functions of signal transfer functions, realize the charging of described slave control circuit thus, the switching of carrying out Signal transmissions between described ACTIVE CONTROL circuit and described slave control circuit controls.
Preferably, also comprise:
S6, when described slave control circuit receives the steering order coming from executive component, steering order described in described slave control circuit buffer memory; When the 3rd port of described ACTIVE CONTROL circuit and the 2nd port of described slave control circuit form signal transmission pathway, when described ACTIVE CONTROL circuit and described slave control circuit can carry out Signal transmissions, described steering order, by described signal transmission pathway, is sent to described ACTIVE CONTROL circuit by described slave control circuit;
S7, described ACTIVE CONTROL circuit, after receiving described steering order, performs described steering order.
Preferably, S6 is specially:
S6.1, described slave control circuit comes from many steering orders of executive component by time of reception sequencing buffer memory;
S6.3, described slave control circuit, based on set signal switching time interval T 2, arranges the single Signal transmissions maximum M corresponding with described signal switching time interval T 2;
When described ACTIVE CONTROL circuit and described slave control circuit can carry out Signal transmissions, that described slave control circuit judges all steering orders of current cache and whether exceed single Signal transmissions maximum M, if do not exceeded, all steering orders of current cache are once all transferred to described ACTIVE CONTROL circuit by described slave control circuit; If exceeded, then perform S6.4;
S6.4, described slave control circuit selects the x bar steering order received at first from described all steering orders, and this x bar steering order and close to or equal described single Signal transmissions maximum M; Then, described x bar steering order is transferred to described ACTIVE CONTROL circuit by described slave control circuit;
When the time slot that can to carry out Signal transmissions arrives next time, described slave control circuit repeats this step again.
Preferably, in S7, described ACTIVE CONTROL circuit, after receiving described steering order, performs described steering order, specifically refers to:
Described ACTIVE CONTROL circuit, by the state of control the 3rd on-off element, carries out the state of control load.
Preferably, described ACTIVE CONTROL circuit, by the state of control the 3rd on-off element, carries out the state of control load, specifically refers to:
The mapping table of described ACTIVE CONTROL circuit pre-stored executive button ID and controlled load ID;
When described ACTIVE CONTROL circuit receives the specified control instruction from described slave control circuit, described ACTIVE CONTROL circuit, by resolving described specified control instruction, obtains the appointment executive button ID sending described specified control instruction; Then, described ACTIVE CONTROL circuit, by searching described mapping table, obtains the appointment controlled load ID corresponding with described appointment executive button ID, then, described specified control instruction is sent to the controlled load ID of described appointment.
Beneficial effect of the present invention is as follows:
The invention provides a kind of intelligent switch control system and the method that realize signal wire and power lead hybrid modulation, same transmission cable, at different time-gap, can distinguish electric energy transmitting and signal, that is: respectively as power lead and data line; Therefore, mechanical type switch on wall is being transform as in the process of intelligent switch, do not needing additionally to arrange signal wire, simplify construction complexity, reduce improvement cost.
Accompanying drawing explanation
Fig. 1 is the structural representation realizing the intelligent switch control system of signal wire and power lead hybrid modulation provided by the invention.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in detail:
Composition graphs 1, the invention provides a kind of intelligent switch control system realizing signal wire and power lead hybrid modulation, comprising: ACTIVE CONTROL end and driven control end; Described ACTIVE CONTROL end comprises ACTIVE CONTROL circuit, the 1st on-off element K1 and n a 3rd on-off element K3; Described driven control end comprises slave control circuit, the 2nd on-off element K2 and energy-storage travelling wave tube; Wherein, n is natural number;
in FIG, illustrate that 3 the 3rd are opened altogether close element, represent with K3-1, K3-2 and K3-3 respectively.
Power supply is installed in parallel n load by the 1st supply line, each described load described 3rd on-off element K3 all in parallel, and the control end of the 3rd on-off element K3 described in each is all connected to the 1st port of described ACTIVE CONTROL circuit;
Described power supply is connected to the 2nd port of described ACTIVE CONTROL circuit by the 2nd supply line;
Described 1st on-off element K1 and described 2nd on-off element K2 all has the 1st stationary contact, the 2nd stationary contact and moving contact;
Wherein, the 1st stationary contact of described 1st on-off element K1 is connected to the anode of described power supply by the 3rd supply line, and the 2nd stationary contact of described 1st on-off element K1 is connected to the 3rd port of described ACTIVE CONTROL circuit by the 1st transmission line; The moving contact of described 1st on-off element K1 is connected to the moving contact of described 2nd on-off element K2 by the 2nd transmission line; 1st stationary contact of described 2nd on-off element K2 is connected to the 1st port of described slave control circuit by the 4th supply line, described 1st port is energization input mouth; 2nd stationary contact of described 2nd on-off element K2 is connected to the 2nd port of described slave control circuit by the 3rd transmission line; 3rd port of described slave control circuit is connected with performance element; Wherein, described energy-storage travelling wave tube in parallel in described 4th supply line.
In practical application, the 3rd on-off element K3 selects relay, and energy-storage travelling wave tube selects electric capacity, and performance element is guidance panel, and guidance panel is configured with for the control knob to load sending controling instruction described in each.Such as, for Fig. 1, have 3 loads, be respectively D1, D2 and D3; Therefore, guidance panel configures three groups of control knobs, and wherein, first group of control knob is used for sending all kinds of steering order to D1, and second group of control knob is used for sending all kinds of steering order to D2, and the 3rd group of control knob is used for sending all kinds of steering order to D3.For each group control knob, be the combination of multiclass difference in functionality button, such as, when load is lamp, function button can be: the button etc. controlling the button of lamp switch, control the button of lamp brightness, control the change of lamp color; Specifically arrange according to actual needs.
The present invention also provides a kind of intelligent switch control method realizing signal wire and power lead hybrid modulation, comprises the following steps:
S1, before ACTIVE CONTROL circuit start, the moving contact of the 1st on-off element K1 and the 1st stationary contact conducting; Before slave control circuit starts, the moving contact of the 2nd on-off element K2 and the 1st stationary contact conducting;
Power supply is powered to ACTIVE CONTROL circuit by the 2nd supply line, and described ACTIVE CONTROL circuit is power-up state always; Power supply is powered to the energy-storage travelling wave tube of slave control circuit by the 1st on-off element K1 and the 2nd on-off element K2, and make energy-storage travelling wave tube store certain electric energy, meanwhile, energy-storage travelling wave tube is powered to slave control circuit again, and slave control circuit is powered on;
S2, described ACTIVE CONTROL circuit arranges electrical source exchange time interval T1 and signal switching time interval T 2;
S3, at current time t1, described ACTIVE CONTROL circuit controls the 1st on-off element K1, make its 1st stationary contact and moving contact conducting, because the 1st stationary contact of the 1st on-off element K1 is connected with power supply, the moving contact of the 1st on-off element K1 is connected with the moving contact of the 2nd on-off element K2 by the 2nd transmission line, causes the moving contact of power supply and the 2nd on-off element K2 to form supply access thus, makes the moving contact of the 2nd on-off element K2 be high level;
Described slave control circuit is after power supply electrifying with energy-storage travelling wave tube, monitor the moving contact level state of the 2nd on-off element K2, when the moving contact that described slave control circuit listens to the 2nd on-off element K2 is high level, described slave control circuit controls the 2nd on-off element K2, make its moving contact and the 1st stationary contact conducting, due to described energy-storage travelling wave tube of connecting between the 1st stationary contact and the 1st port of described slave control circuit of the 2nd on-off element K2, cause thus forming supply access between power supply and described energy-storage travelling wave tube, described power supply charges to described energy-storage travelling wave tube,
S4, when after elapsed time interval T 1, described ACTIVE CONTROL circuit controls the 1st on-off element K1, make its 2nd stationary contact and moving contact conducting, because the 2nd stationary contact of the 1st on-off element K1 is connected with the 3rd port of described ACTIVE CONTROL circuit, the moving contact of the 1st on-off element K1 is connected with the moving contact of the 2nd on-off element K2 by the 2nd transmission line, cause the 3rd port of ACTIVE CONTROL circuit and the moving contact of the 2nd on-off element K2 to form transmission channel thus, make the moving contact of the 2nd on-off element K2 be low level;
Described slave control circuit take energy-storage travelling wave tube as power supply, monitor the moving contact level state of the 2nd on-off element K2, when the moving contact that described slave control circuit listens to the 2nd on-off element K2 is low level, described slave control circuit controls the 2nd on-off element K2, make its moving contact and the 2nd stationary contact conducting, because the 2nd stationary contact of the 2nd on-off element K2 is connected with the 2nd port of described slave control circuit, the 3rd port of described ACTIVE CONTROL circuit and the 2nd port of described slave control circuit is caused to form signal transmission pathway thus, described ACTIVE CONTROL circuit and described slave control circuit can carry out Signal transmissions,
S5, when after elapsed time interval T 2, returns and re-executes S3 and S4; Circulation performs S3-S4 thus, by controlling the switching of the 1st on-off element K1 and the 2nd on-off element K2, for the 2nd transmission line be connected between the moving contact of the 1st on-off element K1 and the moving contact of the 2nd on-off element K2, constantly switch between function of supplying power and these two kinds of functions of signal transfer functions, realize the charging of described slave control circuit thus, the switching of carrying out Signal transmissions between described ACTIVE CONTROL circuit and described slave control circuit controls.
That is, when being switched to delivery of electrical energy time slot between ACTIVE CONTROL circuit and slave control circuit, powered to energy-storage travelling wave tube by the 2nd transmission line, the time of this time slot is T1, by this time slot, ensure that energy-storage travelling wave tube stores sufficient electric energy, thus the function that slave control circuit carries out necessity could be maintained; Then, ACTIVE CONTROL circuit and slave control circuit are switched to Signal transmissions time slot, by the 2nd transmission line, the two-way signaling realized between ACTIVE CONTROL circuit and slave control circuit transmits, ensure that the steering order to load that slave control circuit receives can be transferred to ACTIVE CONTROL circuit, by ACTIVE CONTROL circuit, perform corresponding steering order, the time of this time slot is T2.
In addition, for slave control circuit, due to the steering order from executive component can be received at any time, therefore, for ensure slave control circuit reliable and stable all steering orders received all are transferred to ACTIVE CONTROL circuit, slave control circuit adopts the mechanism of cache control instruction, that is: when described slave control circuit receives the steering order coming from executive component, now, not distinguishing current is delivery of electrical energy time slot or Signal transmissions time slot, steering order described in the equal buffer memory of described slave control circuit; Then, when the 3rd port of described ACTIVE CONTROL circuit and the 2nd port of described slave control circuit form signal transmission pathway, when described ACTIVE CONTROL circuit and described slave control circuit can carry out Signal transmissions, described steering order, by described signal transmission pathway, is sent to described ACTIVE CONTROL circuit by described slave control circuit;
In this step, owing to there is situation about controlling multiple load, be limited to the maximum transmission reactive restriction of signal transmission pathway, therefore, when slave control circuit receives and a large amount of steering order of buffer memory, and when all steering orders cannot be transmitted by signal transmission pathway single, slave control circuit can arrange steering order priority level, then, by designed priority level, transmit each steering order.Such as, can adopt with time is the priority level of benchmark, that is: the steering order received at first, its priority level is higher.
Concrete steps are:
S6.1, described slave control circuit comes from many steering orders of executive component by time of reception sequencing buffer memory;
S6.3, described slave control circuit, based on set signal switching time interval T 2, arranges the single Signal transmissions maximum M corresponding with described signal switching time interval T 2;
When described ACTIVE CONTROL circuit and described slave control circuit can carry out Signal transmissions, that described slave control circuit judges all steering orders of current cache and whether exceed single Signal transmissions maximum M, if do not exceeded, all steering orders of current cache are once all transferred to described ACTIVE CONTROL circuit by described slave control circuit; If exceeded, then perform S6.4;
S6.4, described slave control circuit selects the x bar steering order received at first from described all steering orders, and this x bar steering order and close to or equal described single Signal transmissions maximum M; Then, described x bar steering order is transferred to described ACTIVE CONTROL circuit by described slave control circuit;
When the time slot that can to carry out Signal transmissions arrives next time, described slave control circuit repeats this step again.
Certainly, other priority Provisioning Policies can also be adopted, such as, for controlled load, priority level can be set by the significance level of each load, when there is the steering order corresponding with other load of high priority in buffer memory, just transmit this steering order at first.The present invention does not limit set priority policy, and those skilled in the art can be arranged according to actual needs flexibly.
S7, described ACTIVE CONTROL circuit, after receiving described steering order, performs described steering order.
Concrete, for ACTIVE CONTROL circuit, due to the steering order for each load can be received, therefore, for steering order being accurately sent to fast corresponding load, the mapping table of ACTIVE CONTROL circuit pre-stored executive button ID and controlled load ID;
When described ACTIVE CONTROL circuit receives the specified control instruction from described slave control circuit, described ACTIVE CONTROL circuit, by resolving described specified control instruction, obtains the appointment executive button ID sending described specified control instruction; Then, described ACTIVE CONTROL circuit, by searching described mapping table, obtains the appointment controlled load ID corresponding with described appointment executive button ID, then, described specified control instruction is sent to the controlled load ID of described appointment.
In sum, intelligent switch control system and the method realizing signal wire and power lead hybrid modulation provided by the invention, same transmission cable, at different time-gap, can distinguish electric energy transmitting and signal, that is: respectively as power lead and data line; Therefore, mechanical type switch on wall is being transform as in the process of intelligent switch, do not needing additionally to arrange signal wire, simplify construction complexity, reduce improvement cost.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention; can also make some improvements and modifications, these improvements and modifications also should look protection scope of the present invention.