CN107395228A - A kind of method and system for controlling power switch to carry out data interaction - Google Patents

A kind of method and system for controlling power switch to carry out data interaction Download PDF

Info

Publication number
CN107395228A
CN107395228A CN201710453284.3A CN201710453284A CN107395228A CN 107395228 A CN107395228 A CN 107395228A CN 201710453284 A CN201710453284 A CN 201710453284A CN 107395228 A CN107395228 A CN 107395228A
Authority
CN
China
Prior art keywords
control
controlled
switch
voltage
module
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.)
Pending
Application number
CN201710453284.3A
Other languages
Chinese (zh)
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.)
SHENZHEN SHENDIE SEMICONDUCTOR CO Ltd
Original Assignee
SHENZHEN SHENDIE SEMICONDUCTOR 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 SHENZHEN SHENDIE SEMICONDUCTOR CO Ltd filed Critical SHENZHEN SHENDIE SEMICONDUCTOR CO Ltd
Priority to CN201710453284.3A priority Critical patent/CN107395228A/en
Publication of CN107395228A publication Critical patent/CN107395228A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/06Receivers
    • H04B1/16Circuits
    • H04B1/1607Supply circuits
    • H04B1/1615Switching on; Switching off, e.g. remotely
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHTING NOT OTHERWISE PROVIDED FOR
    • H05B45/00Circuit arrangements for operating light emitting diodes [LED]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHTING NOT OTHERWISE PROVIDED FOR
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of the light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • 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
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/30Semiconductor lamps, e.g. solid state lamps [SSL] light emitting diodes [LED] or organic LED [OLED]

Abstract

The invention discloses the method and system that a kind of control power switch carries out data interaction, wherein, the method that the control power switch carries out data interaction passes through the control signal by signal receiving module reception peripheral control unit transmission;Corresponding switch controlling signal is exported according to the control signal by data processing module afterwards;Switch control module controls being switched on or off for controlled device input power according to the switch controlling signal afterwards;The waveform change of detection module detection controlled device input power is switched afterwards, and exports corresponding waveforms detection result;The waveforms detection result is reduced into control signal and exported to controlled device by data decoding module afterwards, the controlled device is controlled to perform command adapted thereto, by controlling being switched on or off come transmission of control signals of controlled device input power, realize reliable and stable data transfer, and separate control module with controlled device, efficiently solve the problems, such as the controlled in wireless that control module and electrical equipment can not be integrated.

Description

A kind of method and system for controlling power switch to carry out data interaction
Technical field
It is more particularly to a kind of to control the method for power switch progress data interaction and be the present invention relates to smart home field System.
Background technology
Existing domestic electric appliance, there is part to realize controlled in wireless, have part because of electrical equipment small volume Or use environment is severe, can not be implanted into wireless control module causes the kind equipment to be unable to controlled in wireless.Such as in intelligent wireless In LED application, because of the LED small volume of E14, E27 equal-specification, can not by wireless control module and being made of one of lamp, Wireless control module can only be positioned at lamp socket or switch;And bulb operating temperature is too high, wireless control module is implanted into The work that wireless control module can not be reliable and stable afterwards.
Thus prior art could be improved and improve.
The content of the invention
In view of in place of above-mentioned the deficiencies in the prior art, it is an object of the invention to provide one kind control power switch to enter line number According to interactive method and system, it is switched on or off believing to transmit the control received by controlling controlled device input power Number, reliable and stable data transfer is realized, and control module is separated with controlled device, efficiently solve control module and electricity consumption Equipment can not integration controlled in wireless problem.
In order to achieve the above object, this invention takes following technical scheme:
A kind of method for controlling power switch to carry out data interaction, it comprises the following steps:
A, the control signal of peripheral control unit transmission is received by signal receiving module;
B, corresponding switch controlling signal is exported according to the control signal by data processing module;
C, switch control module controls being switched on or off for controlled device input power according to the switch controlling signal;
D, the waveform change of detection module detection controlled device input power is switched, and exports corresponding waveforms detection result;
E, the waveforms detection result is reduced into control signal and exported to controlled device by data decoding module, controls the quilt Control device and perform command adapted thereto.
Described control power switch is carried out in the method for data interaction, and the step B includes step:
Output line voltage size after B1, voltage detection unit detection are rectified, and output voltage testing result is to data processing Unit;
B2, data processing unit are according to the corresponding switch control letter of control signal and voltage detecting the result output received Number.
Described control power switch is carried out in the method for data interaction, and the step B1 is specifically included:Voltage detecting list Member samples to the output line voltage after rectified, compares the size of sampled voltage and threshold voltage, when sampled voltage is more than The first level is exported during threshold voltage, otherwise exports second electrical level.
Described control power switch is carried out in the method for data interaction, and the step B2 is specifically included:
When voltage detection unit exports the first level, the value of control data in control signal is changed according to default transformation rule The turn-off time is opened to be corresponding, corresponding switch controlling signal is exported according to the unlatching turn-off time after conversion.
Described control power switch is carried out in the method for data interaction, after the default transformation rule is once short shut-off Opening the very first time corresponds to the first numerical value, and once opening for the second time after short shut-off corresponds to second value, wherein when turning off Between less than the 3rd timing definition be short shut-off.
Described control power switch is carried out in the method for data interaction, and the step D is specifically included:
Switch detection module samples to controlled device input supply voltage, compares the size of sampled voltage and threshold voltage, The first level is exported when sampled voltage is more than threshold voltage, otherwise exports second electrical level.
Described control power switch is carried out in the method for data interaction, in the step A, before the control signal includes Leading code, regulating command and check bit.
Described control power switch is carried out in the method for data interaction, and the step E includes step:
The waveforms detection result is reduced into control signal by E1, reduction unit;
E2, judging unit judge whether the lead code in the control signal is preset value, if then continuing according to check bit sum The value of regulating command carries out even-odd check, exports regulating command to controlled device if verification is correct, controls the controlled dress Put execution command adapted thereto.
A kind of system for controlling power switch to carry out data interaction, including control terminal and controlled terminal, the controlled terminal include Controlled device, wherein, the control terminal includes:
Signal receiving module, for receiving the control signal of peripheral control unit transmission;
Data processing module, for exporting corresponding switch controlling signal according to the control signal;
Switch control module, for controlling being switched on or off for controlled device input power according to the switch controlling signal;
The controlled terminal also includes:
Detection module is switched, the waveform for detecting controlled device input power changes, and exports corresponding waveforms detection result;
Data decoding module, for the waveforms detection result to be reduced into control signal and exported to controlled device, control institute State controlled device and perform command adapted thereto.
Described control power switch is carried out in the system of data interaction, and the data processing module includes:
Voltage detection unit, for detect it is rectified after output line voltage size, and at output voltage testing result to data Manage unit;
Data processing unit, for according to the corresponding switch control letter of control signal and voltage detecting the result output received Number.
Compared to prior art, control power switch provided by the invention is carried out in the method and system of data interaction, institute The method for stating control power switch progress data interaction passes through the control letter for being received peripheral control unit by signal receiving module and being sent Number;Corresponding switch controlling signal is exported according to the control signal by data processing module afterwards;Switch control module afterwards Being switched on or off for controlled device input power is controlled according to the switch controlling signal;It is controlled that detection module detection is switched afterwards The waveform change of device input power, and export corresponding waveforms detection result;Data decoding module examines the waveform afterwards Survey result to be reduced into control signal and export to controlled device, control the controlled device to perform command adapted thereto, by controlling quilt Being switched on or off of control device input power to transmit the control signal received, realizes reliable and stable data transfer, and Control module is separated with controlled device, efficiently solve control module and electrical equipment can not integrated controlled in wireless ask Topic.
Brief description of the drawings
Fig. 1 is the flow chart for the method that control power switch provided by the invention carries out data interaction.
Fig. 2 is the structured flowchart for the system that control power switch provided by the invention carries out data interaction.
Fig. 3 is the structured flowchart for the System Preferred embodiments that control power switch provided by the invention carries out data interaction.
Fig. 4 is voltage detecting list in the System Preferred embodiments provided by the invention for controlling power switch to carry out data interaction The circuit diagram of member and switch detection module.
Fig. 5 is the structured flowchart of Application Example provided by the invention.
Fig. 6 is each module output voltage waveform in preferred application embodiment provided by the invention.
Embodiment
In view of part mini electrical equipment can not be implanted into wireless control module and cause to be unable to controlled in wireless etc. in the prior art Shortcoming, it is an object of the invention to provide a kind of method and system for controlling power switch to carry out data interaction, by controlling quilt Being switched on or off of control device input power to transmit the control signal received, realizes reliable and stable data transfer, and Control module is separated with controlled device, efficiently solve control module and electrical equipment can not integrated controlled in wireless ask Topic.
To make the purpose of the present invention, technical scheme and effect clearer, clear and definite, develop simultaneously embodiment pair referring to the drawings The present invention is further described.It should be appreciated that specific embodiment described herein is not used to only to explain the present invention Limit the present invention.
Referring to Fig. 1, the method that control power switch provided by the invention carries out data interaction comprises the following steps:
S100, the control signal that peripheral control unit is sent is received by signal receiving module;
S200, by data processing module corresponding switch controlling signal is exported according to the control signal;
S300, switch control module control being switched on or off for controlled device input power according to the switch controlling signal;
S400, switch detection module detection controlled device input power waveform change, and export corresponding waveforms detection result;
The waveforms detection result is reduced into control signal and exported to controlled device by S500, data decoding module, controls institute State controlled device and perform command adapted thereto.
Control power switch provided by the invention carries out the method for data interaction mainly by controlling controlled device input electricity Being switched on and off of source to realize the reliable and stable high-speed transfer of control signal on the power line, first, mould is received by signal Block receives the control signal that peripheral control unit is sent, such as the control signal that mobile phone, flat board, remote control etc. controller are sent, The control signal is a string of coded datas, and it carries corresponding control to adjust and instructed, and signal receiving module receives the control Data processing module is transmitted it to after signal, corresponding switch control is exported according to the control signal by data processing module Signal, switch control module and then controls being switched on and off for controlled device input power according to the switch controlling signal, Certainly, herein be switched on and off be very rapidly, such as when controlled device is LED, now be switched on and off the time It is shorter than human eye vision and persists the time, human eye can not discovers the flicker for LED when carrying out switching manipulation, ensure that user's is normal Use;After controlling the input power to be switched on and off, the waveform that input power is detected by switch detection module changes, and defeated Go out corresponding waveforms detection result, i.e., closed by switching detection module to detect the unlatching off state of input power and open The disconnected time, waveforms detection result is reduced into by control signal by data decoding module afterwards, and by the control signal export to Controlled device, to control the controlled device to perform corresponding control instruction, complete the function point analysis in control signal.Therefore The present invention is realized reliable steady by controlling being switched on or off to transmit the control signal received of controlled device input power Fixed data transfer, and control module is separated with controlled device, efficiently solving control module can not be integral with electrical equipment The controlled in wireless problem of change.
Specifically, the step S200 includes step:
Output line voltage size after S201, voltage detection unit detection are rectified, and at output voltage testing result to data Manage unit;
S202, data processing unit are according to the corresponding switch control letter of control signal and voltage detecting the result output received Number.
Upon the reception of control signals, first pass through voltage detection unit detection it is rectified after output line voltage size, i.e., Input civil power first passes through rectification module(Such as rectifier bridge etc.)Output line voltage after progress rectification, should by voltage detection unit detection The size of line voltage, and feedback voltage testing result integrates the control signal to processing unit is exported by data processing unit And voltage detecting result exports corresponding switch controlling signal.
Specifically, the output rule of voltage detecting result is that i.e. step S201 is specifically included by voltage detection unit pair Output line voltage after rectified is sampled, and compares the size of sampled voltage and threshold voltage, when sampled voltage is more than threshold value The first level is exported during voltage, otherwise exports second electrical level, in the present embodiment, first level is high level, described second Level is low level, can also use other level output rule in other embodiments certainly, and this is not limited by the present invention, Such as rectification module output line voltage VAC, line voltage VAC is sampled by voltage detection unit to obtain Vs voltages, by Vs electricity Pressure is compared with threshold voltage vt h, and when Vs voltages are more than threshold voltage vt h, the output level of voltage detection unit is height Level, when Vs voltages are less than or equal to threshold voltage vt h, the output level of voltage detection unit is low level, for follow-up output Switch controlling signal provides basis, when it is implemented, the big I of threshold voltage is set according to the actual requirements, with the electricity of control first The output time ratio of gentle second electrical level.
Further, after line voltage sampled result is obtained, by data processing unit according to the control signal received with And the sampled result exports corresponding switch controlling signal, specifically, the step S202 is specifically included in voltage detection unit When exporting the first level, when the value of control data in control signal is converted into corresponding unlatching shut-off according to default transformation rule Between, corresponding switch controlling signal is exported according to the unlatching turn-off time after conversion.That is the value of control data not only determines power supply The action being switched on and off, while the time of electric power starting and shut-off is also determined, come without the fixed frequency according to alternating current Data are transmitted, can as needed improve or slow down message transmission rate.
Specifically, the default transformation rule corresponds to the first numerical value to open the very first time after once short shut-off(This It is 1 in embodiment), once opening for the second time after short shut-off corresponds to second value(It is 0 in the present embodiment), wherein when turning off Between less than the 3rd timing definition be short shut-off, such as the very first time is arranged to 1ms, and the second time was arranged to 0.5ms, the 3rd time 0.5ms is likewise provided as, then the value in control data, opening 1ms corresponds to 1 after being about scheduled on shut-off 0.5ms, is turning off 0.5ms is opened after 0.5ms and corresponds to 0, it is assumed that four are 0101 before control data, then corresponding switch controlling signal is shut-off 0.5ms- opens 0.5ms- shut-off 0.5ms- unlatching 1ms- shut-off 0.5ms- unlatching 0.5ms- shut-offs 0.5ms- and opens 1ms.
The very first time, the second time and the 3rd time in above-mentioned default transformation rule, and voltage detection unit The time for exporting the first level then can determine that the transmission rate of data, specifically, the bit number that each Vac periodic transfers are fixed, And bit number is added the whole of the business of the 3rd time by the higher value in the time of the first level divided by the very first time and the second time Number partly determines.Time as Vac sampled voltages are more than Vth is 7ms, and very first time 1ms, the second time was 0.5ms, the Three times were 0.5ms, then the higher value in the very first time and the second time is 1ms, along with the 3rd time 0.5ms is added up to 1.5ms, then the integer part of 7/1.5 quotient is 4, you can to define each 4 bits of Vac periodic transfers.It follows that work as , it is necessary to which 6ms is transmitted during 4 high level of transmission, the remaining 1ms turn-off times, when transmitting 4 low levels, it is only necessary to 4ms, The remaining 3ms turn-off times, when transmission 2 high level, 2 low levels(Such as 0101 in above-described embodiment)When, it is necessary to 5ms pass It is totally lost into, the remaining 2ms turn-off times, ensures the complete transmission of each bit, will not enough be passed because of last bit-time Defeated incomplete situation.
Further, the step S400 is specifically included:Detection module is switched to carry out controlled device input supply voltage Sampling, compares the size of sampled voltage and threshold voltage, the first level is exported when sampled voltage is more than threshold voltage, otherwise defeated Go out second electrical level.
I.e. when controlled device input power is accordingly switched on or off under the control of switch controlling signal, detected by switch The waveform change of module detection controlled device input voltage, i.e. input supply voltage size, and testing result is exported to data Decoding module, the output of its voltage detecting result is regular identical with the output rule of above-mentioned voltage detection unit, is to compare to adopt The size of sample voltage and threshold voltage, corresponding level signal is exported to data decoding module according to comparative result, translated by data Code module carries out reduction treatment to the level signal and obtains control signal, to control controlled device to perform command adapted thereto.
When it is implemented, the control signal that the present invention is transmitted includes lead code, regulating command and check bit, such as such as following table Shown, it is the example of control data coding transmission form:
Wherein bit [15:8] lead code for being 8bit, the beginning of an instruction is represented, its value is 55 in this example(16 enter System);bit[7:1] the regulating command C [6 for being 7bit:0], 128 sections are adjustable;Bit [0] is parity check bit ODD [0], when receiving Bit [7:0] controlled device is controlled to perform C [6 when the number summation of 1 is odd number:0] command adapted thereto of setting, is otherwise abandoned The value.
Therefore the specific step S500 includes step:
The waveforms detection result is reduced into control signal by S501, reduction unit;
S502, judging unit judge whether the lead code in the control signal is preset value, if then continuing according to check bit Even-odd check is carried out with the value of regulating command, exports regulating command to controlled device if verification is correct, is controlled described controlled Device performs command adapted thereto.
I.e. switch detection module detect the waveform of input voltage after, reduction unit first by the waveforms detection result also Original is a continuous bit stream into control signal, the control signal, obtains the control data of its carrying, and specifically, reduction is single Member starts timing in each rising edge, stop during trailing edge timing and with the very first time defined in above-mentioned default transformation rule Compared with the second time, one high level of the bit transfer is represented if timing is suitable with the very first time, if timing and the Two times quite then represented one low level of the bit transfer, reset timer after the completion of comparing and waited next rising edge Timing is started again at temporarily, so as to complete the reduction of control signal.
Judging unit judges whether lead code in control signal is preset value afterwards, and preset value is in the present embodiment 0x55, that is, judge whether lead code 0x55 is correct, continue to judge bit [7 if correct:0] whether 1 sum is odd number in, if It is, then by bit [7:1] regulating command is exported to controlled device, is controlled the controlled device to perform command adapted thereto, is otherwise abandoned The control sequence, so as to by controlling power switch realize the data transfer of efficient stable, while solve control module with Electrical equipment can not integration controlled in wireless problem.
The method that data interaction is carried out based on above-mentioned control power switch, the present invention are correspondingly provided a kind of control power supply and opened The system for putting row data interaction into, as shown in Fig. 2 the control terminal 10 includes signal receiving module 11, data processing module 12 With switch control module 13;The controlled terminal 20 includes controlled device 21, switch detection module 22 and data decoding module 23, institute State signal receiving module 11 and city is passed through by the connecting valve control module 13 of data processing module 12, the switch control module 13 Electric power line connection controlled device 21 and switch detection module 22, the switch detection module 22 also pass through data decoding module 23 Connect controlled device 21.
Wherein, the signal receiving module 11 is used for the control signal for receiving peripheral control unit transmission;The data processing Module 12 is used to export corresponding switch controlling signal according to the control signal;The switch control module 13 is used for according to institute State being switched on or off for the switch controlling signal control input power of controlled device 21;The switch detection module 22 is used to detect quilt The waveform change of the input power of device 21 is controlled, and exports corresponding waveforms detection result;The data decoding module 23 is used for will The waveforms detection result is reduced into control signal and exported to controlled device 21, controls the controlled device 21 to perform corresponding finger Order.Referring specifically to embodiment corresponding to the above method.
Preferably, as shown in figure 3, in the preferred embodiment of the present invention, the data processing module 12 includes voltage detecting list Member 121 and data processing unit 122, the data processing unit 122 connect signal receiving module 11, the and of switch control module 13 Voltage detection unit 121, the voltage detection unit 121 are connected to carry out input civil power the rectification module of rectification, wherein, The voltage detection unit 121 be used to detecting it is rectified after output line voltage size, and output voltage testing result is to data Processing unit 122;The data processing unit 122 is used for according to control signal and voltage detecting result the output phase received The switch controlling signal answered.Referring specifically to embodiment corresponding to the above method.
In preferred embodiment, the voltage detection unit 121 and switch detection module 22 use circuit as shown in Figure 4 Voltage detecting is realized, it includes first resistor R1, second resistance R2, comparator A1 and voltage source U1, the first resistor R1's One end connecting line voltage output end, the other end connection comparator A1 of first resistor R1 in-phase input end, also by the Two resistance R2 are grounded;The positive pole connection comparator A1 of voltage source U1 inverting input, the negative pole of the voltage source U1 connect Ground;Output end of the output end of the comparator A1 as voltage detection unit 121 or switch detection module 22, it is corresponding to connect number According to processing unit 122 or data decoding module 23.Vs voltages specifically are obtained to line voltage VAC partial pressures, by Vs voltages and threshold value electricity Pressure Vth is compared, and when Vs voltages are more than threshold voltage vt h, output level Vdet is the first level(It is high in the present embodiment Level), when Vs voltages are less than or equal to threshold voltage vt h, output level Vdet is the first level(It is low electricity in the present embodiment It is flat).Referring specifically to embodiment corresponding to the above method.
To more fully understand that the present invention provides the implementation process that control power switch carries out the method for data interaction, tie below Fig. 5 and Fig. 6 is closed, the control process of the method for data interaction is carried out for control power switch of the concrete application embodiment to the present invention It is described in detail:
Bit [15 wherein as described in upper table:8] lead code is 55(Hexadecimal), bit [7:1] the LED brightness for being 7bit Value C [6:0], 128 section brightness are adjustable, and bit [0] is parity check bit ODD [0], as the bit [7 received:0] the number summation of 1 C [6 is arrived to control LED to change during odd number:0] brightness of setting, otherwise abandons the value.
As shown in figure 5, cell phone application sends the control coded data of LED by bluetooth, bluetooth transceiver receives the coding Data processing circuit processing is given after data, data processing circuit control voltage detection circuit starts to detect VAC magnitudes of voltage, output Testing result returns to data processing circuit, the control number that data processing circuit receives bluetooth when testing result is high level According to being switched on and off for relay switch control signal control relay is converted to, controlled terminal receives the power supply of Control After switching information, export to LED control LED and be switched on and off all the way, another way is connected to switch detection circuit, switch inspection Slowdown monitoring circuit detects the Vth magnitudes of voltage of VAC magnitudes of voltage and setting and testing result is issued into data interpretation circuitry, data interpretation circuitry Testing result is handled, reduces the data entrained by it, and it is whether correct according to the rule judgment lead code 0x55 of agreement, Continue to judge bit [7 if correct:Whether the sum of 1 0] is odd number, if odd number then by bit [7:1] PWM light modulations are converted into The PWM dim signals are simultaneously sent to LED by signal;If lead code and even-odd check are incorrect, the control sequence is abandoned, from And realize the brightness regulation of LED.
Specifically, the control data that data processing circuit receives bluetooth when testing result is high level be converted to after The switch controlling signal of electrical equipment, as shown in fig. 6, in preferred application embodiment provided by the invention, judged Vs voltages and After the threshold voltage vt h relations of setting, the Bluetooth control data received are handled by default opening time and turn-off time It is good, corresponding switch controlling signal is exported, carrying out control relay with this is turned on and off, and specifically once opens first after short shut-off Time a corresponds to the first numerical value(It is 1 in the present embodiment), the second time b is once opened after short shut-off and corresponds to second value(This It is 0 in embodiment), the wherein turn-off time is defined as short shut-off less than the 3rd time c, such as when arranging once to open after short shut-off Between 1ms represent 1, once opening time 0.5ms represents 0 after short shut-off, the short of short duration shut-off of turn-off time 0.5ms representation switch, example When such as current four Bluetooth control data are 0101, switch controlling signal now is as shown in figure 6, i.e., of short duration to turn off-open The of short duration shut-offs of 0.5ms--of short duration shut-offs of the unlatching 1ms--of short duration shut-offs of unlatching 0.5ms--unlatching 1ms is opened, letter is turned off in the present embodiment Number it is low level, open signal is high level, and the time and state of electric power starting and shut-off control by control data, therefore Data transmission efficiency can be effectively improved.
In summary, control power switch provided by the invention is carried out in the method and system of data interaction, the control The method that power switch carries out data interaction passes through the control signal by signal receiving module reception peripheral control unit transmission;Afterwards Corresponding switch controlling signal is exported according to the control signal by data processing module;Switch control module is according to afterwards Switch controlling signal control controlled device input power is switched on or off;Detection module detection controlled device input is switched afterwards The waveform change of power supply, and export corresponding waveforms detection result;Afterwards data decoding module by the waveforms detection result also Original is into control signal and exports to controlled device, controls the controlled device to perform command adapted thereto, by controlling controlled device Being switched on or off of input power to transmit the control signal received, realizes reliable and stable data transfer, and will control mould Block separates with controlled device, efficiently solves the problems, such as the controlled in wireless that control module and electrical equipment can not be integrated.
It is understood that for those of ordinary skills, can be with technique according to the invention scheme and its hair Bright design is subject to equivalent substitution or change, and all these changes or replacement should all belong to the guarantor of appended claims of the invention Protect scope.

Claims (10)

  1. A kind of 1. method for controlling power switch to carry out data interaction, it is characterised in that comprise the following steps:
    A, the control signal of peripheral control unit transmission is received by signal receiving module;
    B, corresponding switch controlling signal is exported according to the control signal by data processing module;
    C, switch control module controls being switched on or off for controlled device input power according to the switch controlling signal;
    D, the waveform change of detection module detection controlled device input power is switched, and exports corresponding waveforms detection result;
    E, the waveforms detection result is reduced into control signal and exported to controlled device by data decoding module, controls the quilt Control device and perform command adapted thereto.
  2. 2. the method that control power switch according to claim 1 carries out data interaction, it is characterised in that the step B Including step:
    Output line voltage size after B1, voltage detection unit detection are rectified, and output voltage testing result is to data processing Unit;
    B2, data processing unit are according to the corresponding switch control letter of control signal and voltage detecting the result output received Number.
  3. 3. the method that control power switch according to claim 2 carries out data interaction, it is characterised in that the step B1 Specifically include:Voltage detection unit samples to the output line voltage after rectified, compares sampled voltage and threshold voltage Size, the first level is exported when sampled voltage is more than threshold voltage, otherwise exports second electrical level.
  4. 4. the method that control power switch according to claim 3 carries out data interaction, it is characterised in that the step B2 Specifically include:
    When voltage detection unit exports the first level, the value of control data in control signal is changed according to default transformation rule The turn-off time is opened to be corresponding, corresponding switch controlling signal is exported according to the unlatching turn-off time after conversion.
  5. 5. the method that control power switch according to claim 4 carries out data interaction, it is characterised in that described default turn Change rule and correspond to the first numerical value to open the very first time after once short shut-off, once opening for the second time after short shut-off corresponds to Second value, wherein turn-off time are short shut-off less than the 3rd timing definition.
  6. 6. the method that control power switch according to claim 1 carries out data interaction, it is characterised in that the step D Specifically include:
    Switch detection module samples to controlled device input supply voltage, compares the size of sampled voltage and threshold voltage, The first level is exported when sampled voltage is more than threshold voltage, otherwise exports second electrical level.
  7. 7. the method that control power switch according to claim 1 carries out data interaction, it is characterised in that the step A In, the control signal includes lead code, regulating command and check bit.
  8. 8. the method that control power switch according to claim 7 carries out data interaction, it is characterised in that the step E Including step:
    The waveforms detection result is reduced into control signal by E1, reduction unit;
    E2, judging unit judge whether the lead code in the control signal is preset value, if then continuing according to check bit sum The value of regulating command carries out even-odd check, exports regulating command to controlled device if verification is correct, controls the controlled dress Put execution command adapted thereto.
  9. 9. a kind of system for controlling power switch to carry out data interaction, including control terminal and controlled terminal, the controlled terminal include quilt Control device, it is characterised in that the control terminal includes:
    Signal receiving module, for receiving the control signal of peripheral control unit transmission;
    Data processing module, for exporting corresponding switch controlling signal according to the control signal;
    Switch control module, for controlling being switched on or off for controlled device input power according to the switch controlling signal;
    The controlled terminal also includes:
    Detection module is switched, the waveform for detecting controlled device input power changes, and exports corresponding waveforms detection result;
    Data decoding module, for the waveforms detection result to be reduced into control signal and exported to controlled device, control institute State controlled device and perform command adapted thereto.
  10. 10. the system that control power switch according to claim 9 carries out data interaction, it is characterised in that the data Processing module includes:
    Voltage detection unit, for detect it is rectified after output line voltage size, and at output voltage testing result to data Manage unit;
    Data processing unit, for according to the corresponding switch control letter of control signal and voltage detecting the result output received Number.
CN201710453284.3A 2017-06-15 2017-06-15 A kind of method and system for controlling power switch to carry out data interaction Pending CN107395228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710453284.3A CN107395228A (en) 2017-06-15 2017-06-15 A kind of method and system for controlling power switch to carry out data interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710453284.3A CN107395228A (en) 2017-06-15 2017-06-15 A kind of method and system for controlling power switch to carry out data interaction

Publications (1)

Publication Number Publication Date
CN107395228A true CN107395228A (en) 2017-11-24

Family

ID=60333066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710453284.3A Pending CN107395228A (en) 2017-06-15 2017-06-15 A kind of method and system for controlling power switch to carry out data interaction

Country Status (1)

Country Link
CN (1) CN107395228A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196099A (en) * 2017-12-20 2018-06-22 广州广电计量检测股份有限公司 ON-OFF control circuit and test equipment
CN109298224A (en) * 2018-09-13 2019-02-01 广州金升阳科技有限公司 A kind of primary side detection circuit and primary side detection method
CN109961621A (en) * 2017-12-22 2019-07-02 中国电信股份有限公司 Automatic meter reading method, device, system and ammeter
CN112068461A (en) * 2019-06-11 2020-12-11 北京大瞬科技有限公司 Controller, control circuit and method for controlling intelligent equipment by using control circuit

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103533717A (en) * 2013-10-25 2014-01-22 深圳市镭润科技有限公司 Electronic equipment based on direct current supply communication and control method thereof
CN103856269A (en) * 2012-12-07 2014-06-11 国民技术股份有限公司 Information transmitting and reading method and device based on sound waves

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856269A (en) * 2012-12-07 2014-06-11 国民技术股份有限公司 Information transmitting and reading method and device based on sound waves
CN103533717A (en) * 2013-10-25 2014-01-22 深圳市镭润科技有限公司 Electronic equipment based on direct current supply communication and control method thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196099A (en) * 2017-12-20 2018-06-22 广州广电计量检测股份有限公司 ON-OFF control circuit and test equipment
CN108196099B (en) * 2017-12-20 2020-05-19 广州广电计量检测股份有限公司 Switch control circuit and test equipment
CN109961621A (en) * 2017-12-22 2019-07-02 中国电信股份有限公司 Automatic meter reading method, device, system and ammeter
CN109298224A (en) * 2018-09-13 2019-02-01 广州金升阳科技有限公司 A kind of primary side detection circuit and primary side detection method
CN109298224B (en) * 2018-09-13 2020-12-18 广州金升阳科技有限公司 Primary side detection circuit and primary side detection method
CN112068461A (en) * 2019-06-11 2020-12-11 北京大瞬科技有限公司 Controller, control circuit and method for controlling intelligent equipment by using control circuit

Similar Documents

Publication Publication Date Title
EP2756738B1 (en) Two-wire dimmer switch for low-power loads
CN103314639B (en) Prevent the apparatus and method that dimmer resets in advance
CN105140985B (en) Mobile terminal, can directly charge source adapter and charging method
CN104993565B (en) Can directly be charged source adapter
CN102057752B (en) Dimmer circuit, dimmer system and dimmable device
CN101069139B (en) Control system for electrical devices
CN101213885B (en) Dimmer having a microprocessor-controlled power supply
US8587223B2 (en) Power line communication method and apparatus for lighting control
CN102917497B (en) LED (Light-emitting Diode) dual-dimming control system based on WIFI (Wireless Fidelity) network
CN105896679B (en) A kind of charge control method and the electronic equipment using this method
US9319104B2 (en) Methods and systems for controlling devices via power lines
EP2259661B1 (en) Multiple-input electronic ballast with processor
CN103491676B (en) A kind of Bluetooth remote control-type LED color lamp device and control method
CN205305164U (en) Intelligent light -adjusting LED lamp and intelligent lighting system based on thing networking
CN101964714B (en) Method and system for awakening remote equipment
CN102651165A (en) Wireless learning type infrared repeating system and working method thereof
US20090160627A1 (en) Power line communicaton for electrical fixture control
CN104795903B (en) Magnetic coupling dual-mode wireless power transmission device and control method thereof
CN103283311A (en) Wireless adaptation of lighting power supply
CN103179764A (en) LED lamp with self-adaption drive circuit and self-adaption drive circuit
CN103298221B (en) Dimming circuit and method of LED (Light Emitting Diode) lighting lamp
CN101330784A (en) Radiotelecontrol intelligent light control system capable of setting control light hint map
CN104955224B (en) Electric power supply control system and method
CA2651473A1 (en) Smart light
CN103857149A (en) LED lighting apparatus, current regulator for the LED lighting apparatus, and current regulation method of the LED lighting apparatus

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124

RJ01 Rejection of invention patent application after publication