Ceiling fan lamp control system and method based on single-live-wire power line carrier
Through a control system based on a single-fire power carrier, the power carrier control signal is used to remotely control multiple ceiling fan lamp equipment, which solves the problem of limited control of multiple ceiling fan lamp equipment in the prior art, and realizes multi-state remote control and equipment transformation and upgrading.
Patent Information
- Application Number
- CN202411431864.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2044-10-14
AI Technical Summary
The prior art is difficult to remotely control multiple ceiling fan light equipment in different operating states at the same time, and the number of operating states of ceiling fan lights is limited, which cannot meet the needs of daily home life.
A control system based on a single-fire power carrier is adopted to obtain and adjust the single-fire voltage waveform through the control unit to form a power carrier control signal, which includes address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information, and timing information. The driving unit controls the status of the fan and the lamp according to these information.
Remote control of multiple ceiling fan light equipment in different operating conditions is realized, without the need for control cables or re-laying of power cables, meeting the needs of daily home life, and the ceiling fan light equipment can be renovated and upgraded without changing the original wire layout.
Smart Images

Figure CN119508254A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of electrical appliance control technology, and in particular to a ceiling fan lamp control system and method based on a single live wire power carrier. Background Art
[0002] A ceiling fan light, also known as a fan light, is a combination of a light and a ceiling fan. It controls both the fan and the light. It not only has the decorative effect of a light, but also the practical effect of a fan. In the prior art, the ceiling fan light can generally be controlled by a remote controller or a single live wire power carrier.
[0003] After searching, the applicant found some typical prior arts, such as the Chinese invention patent with application number 201510229206.6, which discloses a method for remotely controlling multiple ceiling fan lights with a single live wire. It can control multiple ceiling fan lights with a single live wire without changing the existing wiring, without the need for a remote control, control wire, or re-laying power wires. Another example is the Chinese invention patent with application number CN201510386835.X, which discloses a method for controlling a ceiling fan light. It does not require a remote control or a separate control wire, but directly uses a single-phase power wire to transmit the ceiling fan light control signal, thereby realizing remote control and adjustment of the ceiling fan light. Another example is the Chinese invention patent with application number CN201911100644.7, which discloses an integrated ceiling fan light and its control method, which can not only realize the speed adjustment of the motor, but also make the user feel as little as possible the display brightness or color temperature changes caused by the change in motor speed, thereby improving the user experience.
[0004] It can be seen that there are still many practical problems that need to be solved in the actual application of ceiling fan lamp control (such as better use of single live wire power carrier to control the working state of ceiling fan lamp, etc.) and there are still many specific solutions that have not been proposed. Summary of the invention
[0005] In a first aspect, the present application provides a ceiling fan lamp control system based on a single live wire power carrier, comprising a control unit and a plurality of drive units, each of the drive units corresponding to a group of fans and lamps, and each of the drive units is provided with a corresponding device address code.
[0006] The control unit is used to obtain a single live line voltage, adjust the waveform of the single live line voltage, and form a power carrier control signal; wherein the power carrier control signal includes a data signal, and the data signal includes address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information, and timing information.
[0007] The driving unit is used to obtain the power carrier control signal and parse the power carrier control signal. If the address information matches the device address code, the fan gear position, forward and reverse rotation of the fan, switch of the lamp, brightness of the lamp, color temperature of the lamp and timing of the fan and lamp are controlled respectively according to the fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information and timing information.
[0008] The ceiling fan light control system based on a single live wire power carrier adjusts the single live wire voltage waveform to form a power carrier control signal, so that the drive unit can control the fan gear, the forward and reverse rotation of the fan, the switch of the light, the brightness of the light, the color temperature of the light, and the timing of the fan and the light according to the fan gear information, fan mode information, light status information, light brightness information, light color temperature information and timing information in the power carrier control signal, and can realize remote control of multiple ceiling fan light devices in different operating states without the need for control lines or re-laying power lines. In addition, since the remote control of multiple ceiling fan light devices in different operating states can be realized through the power carrier control signal, the present application can upgrade the original lighting lamps and / or fans to ceiling fan light devices without changing the original wiring layout.
[0009] In a possible implementation, the power carrier control signal further includes a pilot signal, the data signal follows the pilot signal, and the specific method for the driving unit to parse the power carrier control signal is:
[0010] The guide header signal is identified. If the guide header signal is identified, the data signal is parsed to determine whether the address information matches the device address code.
[0011] In a possible implementation manner, the data signal further includes verification information, and the specific method for the driving unit to parse the power carrier control signal is:
[0012] The pilot header signal is identified. If the pilot header signal is identified, the data signal is parsed and the verification information is verified. If the verification passes, it is determined whether the address information matches the device address code. Otherwise, the power carrier control signal is discarded.
[0013] In one possible implementation, the format of the power carrier control signal is n0n1n2n3n4n5n6n7n8, wherein n0 represents the guide head signal, n1 represents the address information, n2 represents the fan gear information, n3 represents the fan mode information, n4 represents the lamp status information, n5 represents the lamp brightness information, n6 represents the lamp color temperature information, n7 represents the timing information, and n8 represents the verification information.
[0014] In a second aspect, the present application relates to a ceiling fan lamp control method based on a single live wire power carrier, which is applied to the ceiling fan lamp control system based on a single live wire power carrier described above, and comprises the following steps:
[0015] Acquiring a single live line voltage, adjusting a waveform of the single live line voltage, and forming a power carrier control signal;
[0016] The power carrier control signal is parsed, and if the address information matches the device address code, the gear position of the fan, the forward and reverse rotation of the fan, the switch of the lamp, the brightness of the lamp, the color temperature of the lamp, and the timing of the fan and the lamp are controlled respectively according to the fan gear position information, the fan mode information, the lamp state information, the lamp brightness information, the lamp color temperature information, and the timing information;
[0017] The power carrier control signal includes a data signal, and the data signal includes address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information and timing information.
[0018] In a possible implementation, the power carrier control signal further includes a pilot signal, the data signal follows the pilot signal, and a specific method for parsing the power carrier control signal includes:
[0019] The guide header signal is identified. If the guide header signal is identified, the data signal is parsed to determine whether the address information matches the device address code.
[0020] In a possible implementation, the power carrier control signal further includes verification information, and the specific method of identifying the pilot header signal, parsing the data signal if the pilot header signal is identified, and determining whether the address information matches the device address code includes:
[0021] The pilot header signal is identified. If the pilot header signal is identified, the data signal is parsed and the verification information is verified. If the verification passes, it is determined whether the address information matches the device address code. Otherwise, the power carrier control signal is discarded.
[0022] In one possible implementation, the format of the power carrier control signal is n0n1n2n3n4n5n6n7n8, wherein n0 represents the guide head signal, n1 represents the address information, n2 represents the fan gear information, n3 represents the fan mode information, n4 represents the lamp status information, n5 represents the lamp brightness information, n6 represents the lamp color temperature information, n7 represents the timing information, and n8 represents the verification information.
[0023] In a possible implementation manner, the verification information is verified through an XOR check.
[0024] In a third aspect, the present application also relates to a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the ceiling fan light control methods based on a single live wire power carrier described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of the overall structure of the ceiling fan lamp control system based on a single live wire power carrier described in the present invention.
[0026] Figure 2 It is a partial waveform diagram of the power carrier control signal in the present invention.
[0027] Figure 3 It is a schematic diagram of the overall process of the ceiling fan lamp control method based on a single live wire power carrier.
[0028] Figure 4 It is a schematic diagram of the working process of the present invention in the driving unit.
[0029] Figure 5 It is a schematic diagram of a partial circuit structure of the control unit of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be described in detail by means of implementation methods with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0031] It should be noted that: in the accompanying drawings, the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions; in the description of the present application, the terms "center", "longitudinal", "lateral", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, which are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the scope of protection of the present application; in the description of the present application, "first", "second", etc. are only used to distinguish each other, rather than to indicate their importance and order, etc.
[0032] For the existing ceiling fan lamp control system or method based on single live wire power carrier, the single live wire power carrier control signal is generally obtained by adjusting the single live wire voltage, and the operation state of the ceiling fan lamp is controlled according to the single live wire power carrier control signal, such as by controlling the phase shift angle of the single live wire output voltage waveform, using the difference in the positive and negative half-wave phase shift angles within a preset period, converting and obtaining a string of binary values, and controlling the state of the ceiling fan lamp based on the obtained binary values. Specifically, the half-wave with a phase shift angle of α is regarded as a binary value 0, and the half-wave with a phase shift angle of β is regarded as a binary value 1, and multiple half-waves with phase shift angles of α or β are used as single live wire power carrier control signals, and then a string of binary values or binary key code values that can be used to control the operation state of the ceiling fan lamp are detected and obtained. Although the ceiling fan lamp control system or method based on single live wire power carrier in the prior art can control the operation state of the ceiling fan lamp, it can often only control a single ceiling fan lamp device, and the number of operation states of the ceiling fan lamp that can be controlled is also very limited, which cannot meet many daily home life needs.
[0033] In order to solve the problems existing in the above-mentioned prior art, the first embodiment of the present application provides a ceiling fan light control system based on a single live wire power carrier, which can simultaneously control different operating states of multiple ceiling fan light devices.
[0034] like Figure 1 As shown, the ceiling fan lamp control system includes a control unit and a plurality of drive units. The voltage output terminal of the control unit is electrically connected to the voltage input terminal of each of the drive units, and the neutral line input terminal of each of the drive units is electrically connected to the neutral line of the alternating current. Each of the drive units corresponds to a group of fans and lights, and each of the drive units is provided with a corresponding device address code. Preferably, the control unit automatically identifies the neutral and live wires of the alternating current to ensure that it can communicate normally with any connection of a 50HZ or 60HZ AC power supply, thereby solving the problem of failure to communicate normally due to failure to distinguish between the neutral and live wires during the on-site installation process.
[0035] The AC power frequency may be 50 Hz or 60 Hz, and the voltage range may be between AC-110V and AC-220V.
[0036] The control unit is used to obtain a single live line voltage, adjust the waveform of the single live line voltage, and form a power carrier control signal; wherein the power carrier control signal includes a data signal, and the data signal includes address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information, and timing information.
[0037] In normal state, the single live wire voltage is not adjusted, that is, the half-wave does not cut the M millisecond phase angle, and its output voltage is regarded as all 0 state.
[0038] Here, if Figure 2 As shown, by cutting the half-wave phase angle for M milliseconds, the half-wave phase angle cut for M milliseconds is regarded as control signal 1, and the half-wave without phase angle cutting is regarded as control signal 0. For example, the half-wave with the half-wave phase angle cut for 3 milliseconds is regarded as control signal 1, and the normal half-wave without phase angle cutting is regarded as control signal 0. Therefore, the power carrier control signal can be regarded as a string of binary values.
[0039] The address information, fan gear information, fan mode information, light status information, light brightness information, light color temperature information and timing information can all be represented by binary values. That is to say, different binary values represent different control signals. According to the number of ceiling fan light devices, the address information of several bits of binary values is appropriately allocated. For example, if the number of ceiling fan light devices is 4, two-bit binary values can be used, where 00, 01, 10, and 11 represent 4 ceiling fan light devices respectively. Similarly, for the device code address, the address information of several bits of binary values can also be appropriately allocated according to the number of ceiling fan light devices. If the number of ceiling fan light devices is in the range of 5-8, a three-bit binary value can be used for representation. Since encoding and representing ceiling fan light devices using binary values of different digits belongs to conventional technical means in the field, it will not be repeated here.
[0040] The fan gear information, fan mode information, light status information, light brightness information, light color temperature information and timing information may also be represented by binary values of different digits.
[0041] The driving unit is used to obtain the power carrier control signal, parse the power carrier control signal, and if the address information matches the device address code, the fan gear, the fan forward and reverse rotation, the light switch, the light brightness, the light color temperature, and the timing of the fan and the light are controlled according to the fan gear information, fan mode information, light status information, light brightness information, light color temperature information, and timing information. The specific circuit structure in the driving unit that realizes the fan gear, fan forward and reverse rotation, light switch, light brightness, light color temperature, and the timing of the fan and the light is not described here because it belongs to the conventional technical means in the field.
[0042] Each of the driving units is set with a unique device address code. The driving unit determines whether the address information matches the device address code by verifying whether the address information is consistent with the device address code. If they are consistent, the address information matches the device address code.
[0043] The ceiling fan light control system based on a single live wire power carrier adjusts the single live wire voltage waveform to form a power carrier control signal, so that the drive unit can control the fan gear, the forward and reverse rotation of the fan, the switch of the light, the brightness of the light, the color temperature of the light, and the timing of the fan and the light according to the fan gear information, fan mode information, light status information, light brightness information, light color temperature information and timing information in the power carrier control signal, and can realize remote control of multiple ceiling fan light devices in different operating states without the need for control lines or re-laying power lines. In addition, since the remote control of multiple ceiling fan light devices in different operating states can be realized through the power carrier control signal, the present application can upgrade the original lighting lamps and / or fans to ceiling fan light devices without changing the original wiring layout.
[0044] That is to say, the ceiling fan light control system described in the present application can control the different operating states of multiple ceiling fan light devices at the same time, meeting the needs of daily home life.
[0045] As a preferred technical solution, the power carrier control signal also includes a guide header signal, and the data signal follows the guide header signal immediately. The specific method for the driving unit to parse the power carrier control signal is: identifying the guide header signal, and if the guide header signal is identified, starting to parse the data signal to determine whether the address information matches the device address code.
[0046] The role of the guide head signal is to facilitate the guide verification of the drive unit. After the drive unit recognizes the guide head signal, it starts to continuously parse the data signal and determines whether the address information matches the device address code. In this way, the drive unit can avoid receiving useless or invalid power carrier control signals for parsing, thereby improving the working efficiency of the drive unit.
[0047] As a preferred technical solution, the data signal also includes verification information. The specific method for the driving unit to parse the power carrier control signal is: identify the guide head signal, if the guide head signal is identified, start parsing the data signal, verify the verification information, if the verification passes, determine whether the address information matches the device address code, otherwise discard the power carrier control signal.
[0048] Here, the verification information can be verified by an XOR verification method. Specifically, the guide head signal, address information, fan gear information, fan mode information, light status information, light brightness information, light color temperature information and timing information can be XORed first, and after the XOR result is obtained, the XOR result is XORed with a preset value, and finally the XOR sum result is obtained, and the XOR sum result is used as the verification information.
[0049] After receiving the power carrier control signal, the driving unit performs an XOR operation based on the guide head signal, address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information, timing information and preset values, and compares the obtained XOR result with the verification information. If the comparison and verification are consistent, it is judged that the verification information has passed the verification.
[0050] By verifying the verification information, it can be determined whether data loss or data distortion occurs during the transmission of the data signal, thereby ensuring the accuracy of the control of the ceiling fan lamp device.
[0051] As a preferred technical solution, the format of the power carrier control signal is n0n1n2n3n4n5n6n7n8, wherein n0 represents the guide head signal, n1 represents the address information, n2 represents the fan gear information, n3 represents the fan mode information, n4 represents the lamp status information, n5 represents the lamp brightness information, n6 represents the lamp color temperature information, n7 represents the timing information, and n8 represents the verification information.
[0052] Here, the guide head signal can be a three-digit or four-digit binary value, the number of bits of the fan gear information can be set according to the specific number of fan gears, the fan mode information includes forward and reverse rotation, the light status information includes on and off status, the light brightness information is the brightness step, the unit can be lx or lm; the unit of the light color temperature information is K, the range is based on the actual setting, the unit of the timing information can be hours or minutes, based on the actual setting.
[0053] Since the specific number of bits of n0, n1, n2, n3, n4, n5, n6, n7, and n8 can be adjusted and set according to actual conditions, they will not be described in detail here.
[0054] In one possible technical solution, the driving unit serves as a receiving end of the power carrier control signal. Figure 4 As shown, after initialization, the drive unit identifies the frequency of the power carrier control signal and determines whether it is 50HZ or 60HZ, and then detects whether there is a phase shift control signal. If there is a phase shift control signal, it starts to identify the guide head signal. If the guide head signal n0 is identified, the fan gear, mode and timing are ready to respond, and the light state, brightness, color temperature and timing are ready to respond. After the decoding is completed, that is, n1n2n3n4n5n6n7n8 is interpreted and n8 is verified, the operating state of the corresponding fan and light combination is controlled.
[0055] Preferably, the timing information n7 includes fan timing information and light timing information. Here, the units of fan timing and light timing can be set according to actual conditions. For example, the fan timing information and light timing information are each represented by a 3-bit binary value, and the unit is hour. Through the timing information n7, the fan and light can be timed for 0-7 hours.
[0056] In this way, by setting the timing of the fan and the light separately, the ceiling fan light control system can be made more intelligent and user-friendly, so that the user can set the timing of the fan and the light separately according to actual needs.
[0057] As a preferred technical solution, Figure 5As shown, the control unit includes a switching circuit and an MCU, and the switching circuit includes a transistor Q5, a resistor R6, a resistor R7, a resistor R9, a resistor R26, a resistor R42, a resistor R43, a resistor R44, a resistor R45, a resistor R46, a capacitor CT3, a capacitor C18, a capacitor C19, an optocoupler U11, a transient suppression diode D14, a Zener diode D13, a Zener diode D15, a fuse F2, a diode D25, a unidirectional thyristor Q8, a rectifier bridge U3, and a bidirectional thyristor SR3. The TRC trigger signal is electrically connected to the base of the transistor Q5 through the resistor R7. The resistor R6 is used as a voltage dividing resistor, one end of which is electrically connected to the base of the transistor Q5, and the other end is electrically connected to the emitter of the transistor Q5 and the output pin of the optocoupler U11, all of which are grounded. The +3V power supply is electrically connected to the control pin of the optocoupler U11 and the collector of the transistor Q5 through the resistor R46. The unidirectional thyristor Q The positive electrode of 8 is electrically connected to the emitter of the optocoupler U11 through the resistor R44, the resistor R43 and the instantaneous suppression diode D14, the collector of the optocoupler U11 is electrically connected to the control pin of the unidirectional thyristor Q8 through the resistor R9, the two ends of the resistor R42 are electrically connected to the control pin of the unidirectional thyristor Q8 and the negative terminal of the rectifier bridge U3, the two ends of the capacitor C18 are electrically connected to the control pin of the unidirectional thyristor Q8 and the negative terminal of the rectifier bridge U3, the two ends of the capacitor CT3 are electrically connected to the emitter of the optocoupler U11 and the negative electrode of the diode D25, the positive electrode of the diode D25 is electrically connected to the negative electrode of the unidirectional thyristor Q8, the two ends of the resistor R45 are electrically connected to the negative terminal of the rectifier bridge U3 and the negative electrode of the unidirectional thyristor Q8, the positive electrode of the unidirectional thyristor Q8 is also electrically connected to the positive terminal of the rectifier bridge U3, and the positive electrode of the instantaneous suppression diode D14 is also electrically connected to the negative terminal of the rectifier bridge U3.
[0058] The first AC terminal (pin 1) of the rectifier bridge U3 is electrically connected to the single live wire input terminal (AC IN) through the fuse F2, the second AC terminal (pin 2) of the rectifier bridge U3 is electrically connected to the control pin of the bidirectional thyristor SR3 through the Zener diode D15 and the Zener diode D13, the two ends of the capacitor C19 are electrically connected to the control pin of the bidirectional thyristor SR3 and the electrode T1 respectively, one end of the resistor R26 is electrically connected to one end of the capacitor C19 and the electrode T1 of the bidirectional thyristor SR3, and the other end is electrically connected to the positive electrode of the Zener diode D15 and the second AC terminal of the rectifier bridge U3, the electrode T2 of the bidirectional thyristor SR3 is electrically connected to the live wire input terminal through the fuse F2, and the electrode T1 of the bidirectional thyristor SR3 is also electrically connected to the live wire output terminal (AC OUT).
[0059] In the switch circuit, resistor R6 is used as a voltage divider resistor, and resistor R9 and resistor R42 form a voltage divider circuit for the control pin of unidirectional thyristor Q8. Diode D25 is used to limit the current direction, and transient suppression diode D14 is used to limit the voltage to ensure the normal operation of the circuit. Zener diode D15 and Zener diode D13 are connected in reverse series, mainly playing the role of clamping voltage.
[0060] When the MCU sends a TRC trigger signal, that is, a high level, the transistor Q5 is turned on, the optocoupler U11 is disconnected, and the voltage of the control pin of the unidirectional thyristor Q8 is pulled down, causing the unidirectional thyristor Q8 to be disconnected. The current of the rectifier bridge U3 will not flow out from the positive terminal, but will flow back to the negative terminal of the rectifier bridge U3 through the unidirectional thyristor Q8 and the resistor R45. The load is reduced, and the voltage between the control pin of the bidirectional thyristor SR3 and the ground is reduced, and the bidirectional thyristor SR3 is disconnected. At this time, the single live wire cannot transmit an AC signal, that is, AC power will not flow from the single live wire input terminal AC IN to the output terminal AC OUT. When the MCU does not send a TRC trigger signal, that is, the TRC trigger signal is at a low level, the transistor Q5 is disconnected, the optocoupler U11 is turned on, and the voltage of the control pin of the unidirectional thyristor Q8 is pulled up, causing the unidirectional thyristor Q8 to be turned on. The current of the rectifier bridge U3 flows out from the positive terminal, and flows back to the negative terminal of the rectifier bridge U3 through the unidirectional thyristor Q8 and the resistor R45. The load increases, and the voltage between the control pin of the bidirectional thyristor SR3 and the ground increases, and the bidirectional thyristor SR3 is turned on. At this time, the single-live alternating current will flow from the single-live input terminal AC IN to the output terminal AC OUT.
[0061] That is to say, when the MCU is not working, the single live wire input terminal and the output terminal are normally connected. When the MCU sends a TRC trigger signal, the single live wire input terminal and the output terminal are disconnected. Therefore, the single live wire voltage zero-crossing signal is detected by the zero-crossing detection circuit, and then the MCU sends a TRC trigger signal when obtaining the zero-crossing signal, so that the single live wire input terminal and the output terminal are disconnected, and the half-wave phase angle of the single live wire voltage can be cut, that is, the control signal 1 is sent. As for the specific number of milliseconds for cutting the half-wave phase angle, it can be achieved by controlling the time interval between obtaining the zero-crossing signal and sending the TRC trigger signal. Since the zero-crossing detection circuit belongs to the conventional technical means in this field, it will not be repeated here.
[0062] In addition, the control unit also includes a power supply circuit, which includes a diode D12, a capacitor C4, an inductor L3, a capacitor C31, a voltage-stabilizing transistor U8, a capacitor C4 and a capacitor C5, the positive electrode of the diode D12 is electrically connected to one end of the resistor R45, and the negative electrode is electrically connected to one end of the filter capacitor C4 to generate a relatively stable DC voltage, and then electrically connected to the LC filter composed of the inductor L3 and the capacitor C31, and outputs a stable voltage to the input terminal Vin of the voltage-stabilizing transistor U8, the adjustable voltage pin ADJ of the voltage-stabilizing transistor is grounded, and the output terminal +Vout is electrically connected to the filter capacitor C4 and the filter capacitor C5, and the stable voltage output at last is used to power the MCU. Wherein the voltage at the resistor R45 generates a pulse voltage after forward rectification by the diode D12.
[0063] The second embodiment of the present application relates to a ceiling fan lamp control method based on a single live wire power carrier, which is applied to the ceiling fan lamp control system based on a single live wire power carrier, such as Figure 3 As shown, it includes the following steps:
[0064] S1, obtaining a single live line voltage, adjusting the waveform of the single live line voltage, and forming a power carrier control signal.
[0065] S2, parse the power carrier control signal, if the address information matches the device address code, then control the fan gear, forward and reverse rotation of the fan, switch of the lamp, brightness of the lamp, color temperature of the lamp and timing of the fan and lamp respectively according to the fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information and timing information.
[0066] The power carrier control signal includes a data signal, and the data signal includes address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information and timing information.
[0067] In this embodiment, if Figure 2 As shown, by cutting the half-wave phase angle for M milliseconds, the half-wave phase angle cut for M milliseconds is regarded as control signal 1, and the half-wave without phase cutting is regarded as control signal 0. For example, the half-wave with the half-wave phase angle cut for 3 milliseconds is regarded as control signal 1, and the normal half-wave without phase cutting is regarded as control signal 0.
[0068] In the existing ceiling fan control method based on single live wire power carrier, the half-wave with phase shift angle α is often regarded as binary value 0, and the half-wave with phase shift angle β is regarded as binary value 1, and then multiple half-waves with phase shift angles α or β are used as single live wire power carrier control signals to detect and obtain a string of binary values or binary key code values that can be used to control the operating state of the ceiling fan. As the transmission distance increases and / or power interference factors exist, the voltage waveform is easily distorted. Therefore, the ceiling fan control method based on single live wire power carrier in the prior art controls data by the phase angle size, which is prone to misidentification or failure to identify.
[0069] The present application regards a half-wave of M milliseconds cut as control signal 1 and a half-wave without phase cutting as control signal 0, that is, obtains the power carrier control signal by the number of phase angle offsets. This can well overcome the problem in the prior art that the voltage waveform is easily distorted as the transmission distance increases and / or the existence of power interference factors, which leads to misidentification or failure to identify control data. The application has the characteristics of long transmission distance and high recognition success rate.
[0070] In addition, the ceiling fan lamp control method adjusts the single live wire voltage waveform to form a power carrier control signal, so that the driving unit can control the fan gear, forward and reverse rotation of the fan, switch of the lamp, brightness of the lamp, color temperature of the lamp and timing of the fan and lamp according to the fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information and timing information in the power carrier control signal. Remote control of different operating states of multiple ceiling fan lamp devices can be achieved without the need for control lines or re-laying of power lines. It can control the different operating states of multiple ceiling fan lamp devices at the same time, meeting the needs of daily home life.
[0071] In addition, since the different operating states of multiple ceiling fan lamp devices can be remotely controlled through the power carrier control signal, the present application can upgrade the original lighting lamps and / or fans into ceiling fan lamp devices without changing the original wiring layout.
[0072] As a preferred technical solution, the power carrier control signal also includes a guide header signal, and the data signal follows the guide header signal immediately. The specific method for parsing the power carrier control signal includes: identifying the guide header signal, and if the guide header signal is identified, starting to parse the data signal to determine whether the address information matches the device address code.
[0073] The role of the guide head signal is to facilitate the guide verification of the drive unit. After the drive unit recognizes the guide head signal, it starts to continuously receive and parse the data signal and determines whether the address information matches the device address code. In this way, the drive unit can avoid receiving useless or invalid power carrier control signals for parsing, thereby improving the working efficiency of the drive unit.
[0074] As a preferred technical solution, the power carrier control signal also includes verification information, the guide header signal is identified, if the guide header signal is identified, the data signal is parsed, and the specific method for determining whether the address information matches the device address code includes: identifying the guide header signal, if the guide header signal is identified, the data signal is parsed, and the verification information is verified, if the verification passes, it is determined whether the address information matches the device address code, otherwise the power carrier control signal is discarded.
[0075] Specifically, the verification information can be verified by an XOR verification method, wherein the address information, fan gear information, fan mode information, light status information, light brightness information, light color temperature information and timing information are first XORed to obtain the XOR result, and then the XOR result is XORed with a preset value to obtain the XOR sum result, and the XOR sum result is used as the verification information.
[0076] The drive unit performs XOR operation based on the address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information, timing information and preset values, and compares the XOR result with the verification information. If the comparison and verification are consistent, it is determined that the verification information has passed the verification. If the verification of the verification information fails, the power carrier control signal is discarded.
[0077] By verifying the verification information, it can be determined whether data loss or data distortion occurs during the transmission of the data signal, thereby ensuring the accuracy of the control of the ceiling fan lamp device.
[0078] As a preferred technical solution, the format of the power carrier control signal is n0n1n2n3n4n5n6n7n8, wherein n0 represents the guide head signal, n1 represents the address information, n2 represents the fan gear information, n3 represents the fan mode information, n4 represents the lamp status information, n5 represents the lamp brightness information, n6 represents the lamp color temperature information, n7 represents the timing information, and n8 represents the verification information.
[0079] Specifically, n0 can be set to 0110, of course, it can be other binary values. n1 represents address information, which corresponds to the device address code of each ceiling fan light device. For example, there are 15 ceiling fan lights in total, and their addresses are marked in sequence from 0 to 15. The device address code of the first ceiling fan light is 0, and the corresponding address information n1 is 0000. The device address code of the fourth ceiling fan light is 3, and the corresponding address information n1 is 0011. n2 represents the fan gear information. For example, if n2 is 0101, it means gear 5. n3 represents fan mode information, and 10 can be used to represent forward rotation and 01 to represent reverse rotation. n4 represents light status information, and 01 can be used to represent light on and 10 to represent light off. n5 represents light brightness information. Assuming that the maximum brightness of the light is N1 brightness units (lx or lm), and n5 is represented by a four-bit binary value, when n5 is 1110, the light brightness information can be represented as [N1*14 / 16], and [] is the rounding operator. n6 represents the color temperature information of the lamp. Assuming that the maximum color temperature of the lamp is N2 color temperature units (i.e., N2 Kelvin), and n6 is represented by a four-bit binary value, when n6 is 0011, the color temperature information of the lamp can be represented as [N2*3 / 16], and [] is a rounding operator. n7 represents the timing information, and the unit can be hours or minutes. When n7 is 1010 and the unit is hours, it means that the timing time of the fan and the lamp is 10 hours. n8 represents the verification information. For example, n0n1n2n3n4n5n6n7 is a total of 28 bits. Then, each 4 bits of the 28 bits of n0n1n2n3n4n5n6n7 can be XORed in order, and the XOR result is obtained, and then XORed with 0Xa, and finally the XOR sum result is obtained, and the XOR sum result is used as the verification information.
[0080] If n0, n1, n2, n3, n4, n5, n6, n7 are 0110, 0011, 0101, 10, 01, 1110, 0011, 1010 respectively, 1110 is obtained by performing XOR operation on n0, n1, n2, n3n4, n5, n6, n7, and then 0100 is obtained by performing XOR operation on 1110, i.e. n8 is 0100. After recognizing the guide head signal, the drive unit starts to continuously receive and interpret the n1n2n3n4n5n6n7n8 data information, and performs XOR operation on each 4 bits of n0n1n2n3n4n5n6n7, obtains the XOR result, and then XORs it with 0Xa, finally obtains the XOR sum result, and compares the XOR sum result with the verification information, i.e. n8, and if the two are consistent, it is determined that the verification information has passed the verification.
[0081] The number of digits of n5 and n6 and their specific calculation methods, as well as the number of digits of n0, n1, n2, n3, n4, n7, and n8 and the method of obtaining verification information can be adjusted and set according to actual conditions and will not be repeated here.
[0082] Preferably, the total number of bits of the power carrier control signal is less than 50 to ensure the response speed of the system.
[0083] The third embodiment of the present application also relates to a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the ceiling fan lamp control method based on a single live wire power carrier described in any one of the second embodiments.
[0084] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A ceiling fan lamp control system based on a single live wire power carrier, comprising a control unit and a plurality of drive units, each of which corresponds to a group of fans and lamps, and each of which is provided with a corresponding device address code, characterized in that: The control unit is used to obtain the single live line voltage, adjust the waveform of the single live line voltage, and form a power carrier control signal; wherein the power carrier control signal includes a data signal, and the data signal includes address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information, and timing information; The driving unit is used to obtain the power carrier control signal and parse the power carrier control signal. If the address information matches the device address code, the fan gear position, forward and reverse rotation of the fan, switch of the lamp, brightness of the lamp, color temperature of the lamp and timing of the fan and lamp are controlled respectively according to the fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information and timing information.
2. A ceiling fan lamp control system based on a single live wire power carrier as claimed in claim 1, characterized in that: The power carrier control signal further includes a pilot signal, and the data signal follows the pilot signal. The specific method for the driving unit to parse the power carrier control signal is as follows: The guide header signal is identified. If the guide header signal is identified, the data signal is parsed to determine whether the address information matches the device address code.
3. A ceiling fan lamp control system based on a single live wire power carrier as claimed in claim 2, characterized in that: The data signal also includes verification information, and the specific method for the driving unit to parse the power carrier control signal is: The pilot header signal is identified. If the pilot header signal is identified, the data signal is parsed and the verification information is verified. If the verification passes, it is determined whether the address information matches the device address code. Otherwise, the power carrier control signal is discarded.
4. A ceiling fan lamp control system based on a single live wire power carrier as claimed in claim 3, characterized in that: The format of the power carrier control signal is n0n1n2n3n4n5n6n7n8, wherein n0 represents the guide head signal, n1 represents the address information, n2 represents the fan gear information, n3 represents the fan mode information, n4 represents the lamp status information, n5 represents the lamp brightness information, n6 represents the lamp color temperature information, n7 represents the timing information, and n8 represents the verification information.
5. A ceiling fan lamp control method based on a single live wire power carrier, applied to a ceiling fan lamp control system based on a single live wire power carrier as described in any one of claims 1 to 4, characterized in that: The steps include: Acquiring a single live line voltage, adjusting a waveform of the single live line voltage, and forming a power carrier control signal; The power carrier control signal is parsed, and if the address information matches the device address code, the gear position of the fan, the forward and reverse rotation of the fan, the switch of the lamp, the brightness of the lamp, the color temperature of the lamp, and the timing of the fan and the lamp are controlled respectively according to the fan gear position information, the fan mode information, the lamp state information, the lamp brightness information, the lamp color temperature information, and the timing information; The power carrier control signal includes a data signal, and the data signal includes address information, fan gear information, fan mode information, lamp status information, lamp brightness information, lamp color temperature information and timing information.
6. A ceiling fan lamp control method based on a single live wire power carrier as claimed in claim 5, characterized in that: The power carrier control signal further includes a pilot signal, and the data signal is immediately following the pilot signal. The specific method for parsing the power carrier control signal includes: The guide header signal is identified. If the guide header signal is identified, the data signal is parsed to determine whether the address information matches the device address code.
7. A ceiling fan lamp control method based on a single live wire power carrier as claimed in claim 6, characterized in that: The power carrier control signal also includes verification information. The specific method of identifying the pilot header signal, parsing the data signal if the pilot header signal is identified, and determining whether the address information matches the device address code includes: The pilot header signal is identified. If the pilot header signal is identified, the data signal is parsed and the verification information is verified. If the verification passes, it is determined whether the address information matches the device address code. Otherwise, the power carrier control signal is discarded.
8. A ceiling fan lamp control method based on a single live wire power carrier as claimed in claim 7, characterized in that: The format of the power carrier control signal is n0n1n2n3n4n5n6n7n8, wherein n0 represents the guide head signal, n1 represents the address information, n2 represents the fan gear information, n3 represents the fan mode information, n4 represents the lamp status information, n5 represents the lamp brightness information, n6 represents the lamp color temperature information, n7 represents the timing information, and n8 represents the verification information.
9. A ceiling fan lamp control method based on a single live wire power carrier as claimed in claim 8, characterized in that: The verification information is verified through an XOR check.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the ceiling fan lamp control method based on a single live wire power carrier as described in any one of claims 5 to 9 is implemented.
Citation Information
Patent Citations
Integrated ceiling fan lamp and control method thereof
CN110784958A
Method for remotely controlling a plurality of ceiling fans and lamps through single live wire
CN104837254A
Ceiling fan lamp control method
CN104968107A
Method of remotely controlling multiple ceiling fan lamps
CN104968110A
Fan lamp control device and method and electronic equipment
CN118102541A