CN112714534A - Control method of intelligent lamp, computer device and computer readable storage medium - Google Patents

Control method of intelligent lamp, computer device and computer readable storage medium Download PDF

Info

Publication number
CN112714534A
CN112714534A CN202011634344.XA CN202011634344A CN112714534A CN 112714534 A CN112714534 A CN 112714534A CN 202011634344 A CN202011634344 A CN 202011634344A CN 112714534 A CN112714534 A CN 112714534A
Authority
CN
China
Prior art keywords
communication data
chip
bluetooth
pulse modulation
modulation signal
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
CN202011634344.XA
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.)
Zhuhai Ltech Technology Co ltd
Original Assignee
Zhuhai Ltech Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Ltech Technology Co ltd filed Critical Zhuhai Ltech Technology Co ltd
Priority to CN202011634344.XA priority Critical patent/CN112714534A/en
Publication of CN112714534A publication Critical patent/CN112714534A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/32Pulse-control circuits
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/30Driver circuits
    • H05B45/345Current stabilisation; Maintaining constant current
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of 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/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention provides a control method of an intelligent lamp, a computer device and a computer readable storage medium, wherein the method comprises the steps of obtaining address information in communication data after a Bluetooth chip receives the communication data, judging whether the address information in the communication data is matched with the address information of the Bluetooth chip, if so, sending the communication data to a controller, and if not, broadcasting the communication data; the controller acquires a control instruction in the communication data and adjusts the output pulse modulation signal according to the control instruction. The invention also provides a computer device and a computer readable storage medium for realizing the method. According to the invention, the transmission of communication data can be realized through the Bluetooth power supply of the intelligent lamp, the multi-point connection of the intelligent lamp is realized by using the Bluetooth mesh technology, and the long-distance transmission of the communication data is realized.

Description

Control method of intelligent lamp, computer device and computer readable storage medium
Technical Field
The invention relates to the technical field of control of intelligent lamps, in particular to a control method of an intelligent lamp, a computer device for realizing the method and a computer readable storage medium.
Background
Along with the development of intelligent home technology, the current household appliances are more and more intelligent, and the intelligent lamp is a common intelligent appliance. In order to realize intelligent control of the lamp, most of the existing intelligent lamps are integrated with a wireless communication module, for example, a WIFI module or a bluetooth chip, an infrared chip and the like are arranged, and a user controls the intelligent lamp in a wireless communication mode through terminal equipment such as a smart phone and the like.
Along with the application and popularization of the Bluetooth technology, the intelligent lamp integrated with the Bluetooth chip is more and more common. The LED chip is generally arranged in the current intelligent lamp to serve as a light source, a constant current power supply is arranged to supply power to the LED chip, in addition, a Bluetooth chip is further arranged in the intelligent lamp, the Bluetooth chip receives data transmitted from the outside, the received data are sent to a controller, and the controller adjusts the light emitting brightness, the color temperature and the like of the LED chip according to received instructions.
At present, a Bluetooth chip of an intelligent lamp is usually arranged separately from a power supply, and the Bluetooth chip is arranged in the intelligent lamp as an independent module. Therefore, the LED chip can be driven to work only by using the Bluetooth chip and the driving power supply in the intelligent lamp.
The Bluetooth communication technology is rapidly developed, the Bluetooth communication technology standard is also rapidly updated, the Bluetooth 5.0 technology standard is the latest Bluetooth technology standard proposed by the Bluetooth technical alliance in 2016, compared with the Bluetooth 4.2 technology standard, the data transmission capacity of the Bluetooth 5.0 technology standard is improved by 800%, the transmission distance is improved by 4 times, the number of bytes which can be broadcast is greatly increased, the indoor and outdoor positioning capability is enhanced, and a large amount of information can be transmitted to other compatible devices under the condition that real connection is not established. The bluetooth Mesh technology can support up to ten thousand nodes in a single network, and the bluetooth Mesh technology forwards information in a controllable flooding mode, and forwards the information from a certain node in the network to a destination node.
However, these communication technologies are not combined with bluetooth power, i.e., they are completely implemented by a bluetooth chip. If long-distance data transmission is required to be achieved through the Bluetooth mesh technology, a large number of intelligent lamps are often required to be arranged in an area, a Bluetooth power supply cannot be used as relay equipment for Bluetooth communication, the use of the Bluetooth power supply is limited, and the cost of long-distance data transmission is increased.
Disclosure of Invention
The first purpose of the invention is to provide a control method of an intelligent lamp, which can effectively avoid the confusion of unicast address allocation.
The second objective of the present invention is to provide a computer device for implementing the control method of the intelligent lamp.
A third objective of the present invention is to provide a computer-readable storage medium for implementing the control method of the intelligent lamp.
In order to achieve the first object of the invention, the control method of the intelligent lamp provided by the invention comprises the steps that the intelligent lamp is provided with a Bluetooth power supply and an LED chip, the Bluetooth power supply supplies power to the LED chip, the Bluetooth power supply comprises a Bluetooth chip, a controller and a constant current power supply, the Bluetooth chip outputs signals to the controller, and the controller outputs pulse modulation signals to the constant current power supply; the method comprises the following steps: after receiving the communication data, the Bluetooth chip acquires address information in the communication data, judges whether the address information in the communication data is matched with the address information of the Bluetooth chip, if so, sends the communication data to the controller, and if not, broadcasts the communication data; the controller acquires a control instruction in the communication data and adjusts the output pulse modulation signal according to the control instruction.
According to the scheme, the Bluetooth chip, the controller and the constant current power supply are integrated in the Bluetooth power supply, so that the Bluetooth power supply can be a relay device for data transmission, and the Bluetooth power supply can also realize relay transmission of data even if the LED chip is not arranged on the intelligent lamp, so that networking of a plurality of intelligent lamps is conveniently realized. And moreover, when the Bluetooth chip judges that the address information of the communication data is not matched with the address information of the Bluetooth chip, the communication data is continuously broadcasted, relay transmission of the communication data is realized, and long-distance transmission of the communication data is effectively realized. Moreover, based on the communication characteristics of the Bluetooth mesh, even if one intelligent lamp serving as a relay node is damaged and the transmission of communication data is not influenced, the communication data can be used as relay equipment through Bluetooth chips in other intelligent lamps and continuously broadcast the communication data, so that multipoint connection in a network is realized, the communication data can be transmitted to a target intelligent lamp, and the transmission reliability of the communication data is improved.
In a preferred embodiment, the data length of the communication data is 255 bytes. Because the bytes of the communication data are more, a large amount of data can be transmitted, so that the communication data can carry a large amount of control instructions, and the control efficiency is improved.
Further, the step of adjusting the output pulse modulation signal by the controller according to the control instruction comprises: and acquiring brightness information in the control command, and determining the duty ratio of the output pulse modulation signal according to the brightness information.
Therefore, after the controller receives the communication data output by the Bluetooth chip, the brightness of the LED chip is adjusted by changing the duty ratio of the pulse modulation signal, and the intelligent lamp is controlled.
Further, the determining the duty ratio of the output pulse modulation signal according to the brightness information includes: and determining the current value output by the constant current power supply according to the brightness information, and determining the duty ratio of the output pulse modulation signal according to the current value.
Therefore, the duty ratio of the pulse modulation signal is related to the current output by the constant current power supply, so that the duty ratio of the pulse modulation signal is determined by determining the current value output by the constant current power supply, and the luminous brightness of the LED chip can meet the preset requirement.
Further, the determining the duty ratio of the output pulse modulation signal according to the current value includes: a corresponding table of the current value and the duty ratio of the pulse modulation signal is preset, and the duty ratio of the output pulse modulation signal is obtained by inquiring the corresponding table.
Therefore, the duty ratio of the pulse modulation signal is determined by means of table lookup, and the duty ratio of the pulse modulation signal output by the controller can be ensured to be correct.
Further, the step of adjusting the output pulse modulation signal by the controller according to the control instruction comprises: the controller gradually changes the duty ratio of the pulse modulation signal.
Therefore, the duty ratio of the pulse modulation signal is not changed suddenly by the controller, but the duty ratio is changed gradually, so that the current output by the constant current power supply is changed gradually, the luminous brightness of the LED chip is also changed gradually, and the sudden change of the luminous brightness of the intelligent lamp can be avoided.
In a further scheme, a constant current chip is arranged in the constant current power supply, and the pulse modulation signal is output to the constant current chip.
Therefore, the constant current chip is arranged to output current to the LED chip, so that the phenomenon that the intelligent lamp flickers due to fluctuation of the current of the LED chip can be avoided, and the working stability of the intelligent lamp is improved.
In order to achieve the second object, the present invention provides a computer device including a processor and a memory, wherein the memory stores a computer program, and the computer program implements the steps of the control method of the intelligent lighting fixture when executed by the processor.
To achieve the third objective, the present invention provides a computer-readable storage medium having a computer program stored thereon, where the computer program is executed by a processor to implement the steps of the control method for an intelligent luminaire.
Drawings
FIG. 1 is an electrical schematic block diagram of an intelligent light fixture embodiment of the present invention.
Fig. 2 is an electrical schematic diagram of the bluetooth chip and the controller in the embodiment of the driving circuit of the intelligent lamp of the present invention.
Fig. 3 is an electrical schematic diagram of a constant current power supply in an embodiment of the driving circuit of the intelligent lamp of the present invention.
Fig. 4 is a flowchart of an embodiment of a control method for an intelligent luminaire according to the present invention.
The invention is further explained with reference to the drawings and the embodiments.
Detailed Description
The control method of the intelligent lamp is applied to the intelligent lamp, the intelligent lamp is provided with a driving power supply, and preferably, a Bluetooth chip, a controller and a constant current power supply are arranged in the driving power supply. Preferably, a processor and a memory are arranged in the controller, the memory stores a computer program, and the processor implements the control method of the intelligent lamp by executing the computer program.
Intelligent lamp embodiment:
the intelligent lamp of this embodiment is an intelligent lamp with bluetooth communication capability, and the intelligent lamp has an LED chip and a bluetooth power supply, see fig. 1, and the bluetooth power supply is provided with a bluetooth chip 11, a controller 12 and a constant current power supply 13. The bluetooth chip 11 is used for receiving communication data sent by an external device, and the external device may be a terminal device such as a smart phone, or an intelligent lamp, as long as the external device has a bluetooth chip and can send a bluetooth signal. In addition, the bluetooth chip 11 may also transmit the received communication data in a broadcast manner, that is, broadcast the received communication data again, so that the bluetooth chip 11 may be a relay device for transmitting the communication data.
The bluetooth chip 11 has its own unique address, and if the address information in the communication data matches the address information of the bluetooth chip 11 itself, it indicates that the currently received communication data is communication data for controlling the current smart device, and the bluetooth chip 11 sends the received communication data to the controller 12. The controller 12 may be a single chip microcomputer with data storage and data processing capabilities. After receiving the communication data sent by the bluetooth chip 11, the controller 12 obtains a control instruction in the communication data, for example, an instruction for adjusting the light emitting brightness of the LED chip, adjusts the duty ratio of the output pulse modulation signal according to the control instruction, and outputs the pulse modulation signal to the constant current power supply 13.
The constant current power supply 13 outputs stable current to the LED chip, and since the light emitting luminance of the LED chip is related to the current flowing through the LED chip, the larger the current flowing through the LED chip is, the larger the light emitting luminance of the LED chip is, and the smaller the current flowing through the LED chip is, the smaller the light emitting luminance of the LED chip is. Therefore, the light emission luminance of the LED chip can be adjusted by adjusting the duty ratio of the pulse modulation signal output by the controller 12.
Referring to fig. 2, a single chip microcomputer U5 and a bluetooth chip U6 are arranged in the bluetooth power supply as controllers, an IO port of the bluetooth chip U6 is connected with a pin of the single chip microcomputer U5 and outputs a digital signal, and another IO port of the bluetooth chip U6 is connected with another pin of the single chip microcomputer U5 and is used for receiving the digital signal output by the single chip microcomputer U5. After receiving the digital signal output by the bluetooth chip U6, the single chip microcomputer U5 obtains a control instruction in the digital signal, for example, a control instruction for adjusting the light emitting brightness of the LED chip, and outputs a corresponding pulse modulation signal, for example, a pulse modulation signal with a proper time length and duty ratio, to the constant current power supply 13.
Referring to fig. 3, the constant current source 13 has a connection terminal J1, and a connection terminal J1 for receiving an alternating current power source, for example, 220V alternating current power. The constant current power supply 13 is also provided with a rectifier circuit, for example, a full-bridge rectifier circuit DB1 composed of four diodes, which converts ac power into dc power and outputs the dc power. A filter circuit is further provided at the output of the rectifier circuit DB1, the filter circuit of the present embodiment includes an inductor L1, a resistor R3, and capacitors C3 and C4, the inductor L1 is connected in parallel to the resistor R3, and the capacitors C3 and C4 are connected to both ends of the inductor L1, respectively.
A constant voltage chip U7 is arranged in the constant current power supply 13, the rectified and filtered current is output to a constant voltage chip U7, and the voltage output by a filter circuit of the constant voltage chip U7 is stabilized to avoid voltage fluctuation.
The constant current power supply 13 is also internally provided with a constant current chip U1, and a pulse modulation signal output by the singlechip U5 is output to the constant current chip U1. In addition, a transformer T1 is formed between the constant voltage chip U7 and the constant current chip U5, the constant voltage chip U7 is provided on the primary side of the transformer T1, and the constant current chip U1 is provided on the secondary side of the transformer T1, so that the voltage output from the constant voltage chip U7 is output to the constant current chip U1 after passing through the inverter T1. Through the isolation effect of the transformer T1, the voltage of the low-voltage side of the transformer T1 is lower, and the situation that a human body touches the higher voltage to cause electric shock is avoided.
After the constant current chip U1 receives the pulse modulation signal output by the singlechip U5, the output current value is adjusted according to the duty ratio of the pulse modulation signal. Because the constant current chip U1 is an analog circuit, the output current has a fixed matching relationship with the duty cycle of the pulse modulation signal, and when the duty cycle of the pulse modulation signal increases, the output current of the constant current chip U1 also increases. The constant current chip U1 can ensure that the output current value is stably matched with the duty ratio of the input pulse modulation signal, and avoid the condition that the LED chip flickers due to the fluctuation of the output current. The current output by the constant current chip U1 passes through the inductors L4 and L6, is output to the connection terminal J3, and is output to the LED chip.
In addition, the constant current power supply 13 is further provided with a voltage reduction chip U4, and an input end of the voltage reduction chip U4 is connected to a voltage stabilizing circuit, in the embodiment, the voltage stabilizing circuit is connected to the secondary side of the transformer T1, the voltage stabilizing circuit comprises a zener diode Z1, and the voltage on the secondary side of the transformer T1 passes through a zener diode Z1 and is output to a voltage reduction chip U4, so that the voltage reduction chip U4 is ensured to obtain a stable input voltage.
The voltage reduction chip U4 outputs 3.3V low-voltage direct current after reducing the received voltage and provides the middle Bluetooth chip U6 and the controller U5, thereby ensuring that the Bluetooth chip U6 and the controller U5 obtain stable low-voltage direct current. In addition, the output end of the voltage stabilizing circuit also outputs signals to the constant current chip U7 through the photoelectric coupler U2, specifically, the input end of the photoelectric coupler U2 is connected to the output end of the voltage stabilizing circuit, that is, the light emitting diode of the photoelectric coupler U2 receives the voltage output by the voltage stabilizing circuit, and the photoelectric triode of the photoelectric coupler U7 is connected to one pin of the constant current chip U7 and outputs signals to the constant current chip U7. Thus, when the voltage stabilizing circuit outputs a high level signal, a signal is output to the constant current chip U7 through the photocoupler U2. Since the input terminal of the buck chip U4 is also connected to the output terminal of the voltage regulator circuit, the input terminal of the optocoupler U2 is also connected to the input terminal of the buck chip U4.
The embodiment of the intelligent lamp control method comprises the following steps:
the control method of the intelligent lamp is described below with reference to fig. 4. First, step S1 is executed, in which the bluetooth chip determines whether communication data is received, for example, determines whether communication data sent by the bluetooth chip on another intelligent terminal device or another intelligent lamp is received, and if no communication data is received, the bluetooth chip continues to wait for receiving communication data. If the communication data is received, step S2 is executed to acquire address information in the communication data. Since the communication data has a prescribed format, the bluetooth chip acquires address information from a preset position of the communication data according to the prescribed format.
In this embodiment, the data length of the communication data is 255 bytes at most, so that the communication data can carry a large amount of information, for example, a plurality of control instructions for the smart lamp, such as an adjustment instruction of the light emitting brightness and the color temperature.
Next, step S3 is executed to determine whether the address information acquired from the communication data matches the address information of the bluetooth chip itself. Since each bluetooth chip has its own unique address information, in step S3, the bluetooth chip compares the address information obtained from the communication data with its own address information, determines whether the two are the same, and if the two are different, it indicates that the current communication data is not the control information for the current intelligent lighting fixture, and therefore, step S9 is executed to broadcast the received communication data, that is, to the surrounding bluetooth devices. In this way, the surrounding intelligent luminaires will receive the communication data and continue transmitting to the surrounding intelligent luminaires. Therefore, each intelligent lamp can be used as relay equipment for communication data transmission of other intelligent lamps, and long-distance transmission of communication data can be achieved.
If the address information in the communication data matches the address information of the bluetooth chip of the intelligent luminaire itself, indicating that the currently received communication data is the control information for the current intelligent luminaire, step S4 is executed. The intelligent lamp sends the received communication data to the processor, preferably, the signal that bluetooth chip received is analog signal, and the bluetooth chip exports to the controller after with analog signal conversion digital signal. After receiving the communication data, the controller obtains a control instruction in the communication data, where the control instruction is, for example, an instruction for adjusting the light emitting brightness of the LED chip, an instruction for controlling a change of an on-off state of the intelligent lamp, or a control instruction for changing a color temperature of the intelligent lamp.
And if the control instruction is a control instruction for adjusting the light emitting brightness of the intelligent lamp, executing step S5, and determining the brightness of the LED chip according to the control instruction, that is, the adjusted light emitting brightness of the LED chip. Since the luminance of the LED chip is related to the current flowing through the LED chip, the current flowing through the LED chip needs to be adjusted to adjust the luminance of the LED chip. Because the constant current chip U1 receives the pulse modulation signal output by the singlechip U5, and the current output by the constant current chip U1 is related to the duty ratio of the pulse modulation signal, the output current of the constant current chip U1 can be adjusted by changing the duty ratio of the pulse modulation signal output by the singlechip U5, so that the brightness of the LED chip can be adjusted.
Preferably, after determining the light emitting brightness of the LED chip, the controller performs step S6 to determine the current flowing through the LED chip according to the light emitting brightness of the LED chip, for example, by looking up a table, and performs step S7 to determine the duty ratio of the pulse modulation signal output by the single-chip U5 according to the current output to the LED chip. Preferably, a corresponding table is arranged in the single chip microcomputer U5, and the corresponding table is a corresponding relation table between the duty ratio of the pulse modulation signal and the current value output by the constant current chip. After the controller determines the current value output to the LED chip, the duty ratio of the pulse modulation signal can be determined by inquiring the corresponding table. Finally, the controller performs step S8 to output a pulse modulation signal to the constant current chip, the pulse modulation signal being a pulse modulation signal of the duty ratio determined in step S7. Therefore, the constant current signal outputs matched current according to the duty ratio of the pulse modulation signal, and therefore brightness adjustment of the LED chip is achieved.
Preferably, in order to avoid abrupt change of the light emitting brightness of the LED chip, after determining the duty ratio of the transmitted pulse modulation signal, the controller needs to compare the adjusted duty ratio with the duty ratio of the current pulse modulation signal, and if the difference between the adjusted duty ratio and the duty ratio of the current pulse modulation signal is large, the controller gradually changes the duty ratio of the output pulse modulation signal instead of directly changing the duty ratio of the output pulse modulation signal. Therefore, the light emitting brightness of the intelligent lamp is gradually changed instead of suddenly changing, and the user is prevented from feeling uncomfortable.
Therefore, in the embodiment, the bluetooth chip is integrated in the smart lamp, and the bluetooth mesh technology is used for data transmission, so that long-distance transmission of communication data can be realized, and even if the distance between the controlled smart lamp and the smart phone is long, the smart lamp can be used as a relay device, and the communication data can be transmitted. In addition, due to the fact that the Bluetooth chips of the intelligent lamps are connected in a multi-point mode, even if the Bluetooth chip of one intelligent lamp breaks down, transmission of communication data is not affected, specifically, the communication data can still be transmitted through the Bluetooth chips of other intelligent lamps as relay equipment, and the reliability of communication data transmission is improved.
And moreover, the intelligent lamp is only used as relay equipment, so that the transmission of communication data can be realized only by using a Bluetooth power supply without arranging an LED chip.
The embodiment of the computer device comprises:
the computer device of this embodiment may be a controller in an intelligent lighting fixture, and the computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the steps of the control method of the intelligent lighting fixture are implemented.
For example, a computer program may be partitioned into one or more modules that are stored in a memory and executed by a processor to implement the modules of the present invention. One or more of the modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the terminal device.
The Processor may be a Central Processing Unit (CPU), or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the terminal device and connecting the various parts of the entire terminal device using various interfaces and lines.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the terminal device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Computer-readable storage medium embodiments:
the computer program stored in the computer device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the method according to the above embodiments may also be implemented by a computer program, which may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the method for controlling an intelligent lighting fixture.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Finally, it should be emphasized that the present invention is not limited to the above-described embodiments, such as the change of the specific circuit structure of the constant current power supply, or the change of the type of the controller used, and such changes should be included in the protection scope of the claims of the present invention.

Claims (9)

1. A control method of an intelligent lamp is provided, the intelligent lamp is provided with a Bluetooth power supply and an LED chip, the Bluetooth power supply supplies power to the LED chip, and the control method is characterized in that:
the Bluetooth power supply comprises a Bluetooth chip, a controller and a constant current power supply, wherein the Bluetooth chip outputs signals to the controller, and the controller outputs pulse modulation signals to the constant current power supply;
the method comprises the following steps:
after receiving communication data, the Bluetooth chip acquires address information in the communication data, judges whether the address information in the communication data is matched with the address information of the Bluetooth chip, if so, sends the communication data to the controller, and if not, broadcasts the communication data;
and the controller acquires a control instruction in the communication data and adjusts the output pulse modulation signal according to the control instruction.
2. The control method of the intelligent lamp according to claim 1, wherein:
the data length of the communication data is 255 bytes.
3. The control method of the intelligent lamp according to claim 1, wherein:
the controller adjusting the output pulse modulation signal according to the control instruction comprises: and acquiring brightness information in the control command, and determining the duty ratio of the output pulse modulation signal according to the brightness information.
4. The control method of the intelligent lamp according to claim 3, wherein:
determining the duty cycle of the output pulse modulated signal according to the brightness information comprises: and determining the current value output by the constant current power supply according to the brightness information, and determining the duty ratio of the output pulse modulation signal according to the current value.
5. The control method of the intelligent lamp according to claim 4, wherein:
determining the duty cycle of the output pulse modulated signal from the current value comprises: presetting a corresponding table of the current value and the duty ratio of the pulse modulation signal, and acquiring the duty ratio of the output pulse modulation signal by inquiring the corresponding table.
6. The control method of the intelligent lamp according to any one of claims 1 to 5, wherein:
the controller adjusting the output pulse modulation signal according to the control instruction comprises: the controller gradually changes the duty ratio of the pulse modulation signal.
7. The control method of the intelligent lamp according to claim 5, wherein:
and a constant current chip is arranged in the constant current power supply, and the pulse modulation signal is output to the constant current chip.
8. Computer arrangement, characterized in that it comprises a processor and a memory, said memory storing a computer program that, when executed by the processor, carries out the steps of the method of controlling an intelligent luminaire according to any one of claims 1 to 7.
9. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program, when being executed by a processor, realizes the steps of the method of controlling an intelligent luminaire according to any one of claims 1 to 7.
CN202011634344.XA 2020-12-31 2020-12-31 Control method of intelligent lamp, computer device and computer readable storage medium Pending CN112714534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011634344.XA CN112714534A (en) 2020-12-31 2020-12-31 Control method of intelligent lamp, computer device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011634344.XA CN112714534A (en) 2020-12-31 2020-12-31 Control method of intelligent lamp, computer device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112714534A true CN112714534A (en) 2021-04-27

Family

ID=75547855

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011634344.XA Pending CN112714534A (en) 2020-12-31 2020-12-31 Control method of intelligent lamp, computer device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112714534A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531656A (en) * 2021-12-31 2022-05-24 珠海雷特科技股份有限公司 Synchronous communication method of Bluetooth equipment, computer device and computer readable storage medium
CN115413080A (en) * 2022-07-25 2022-11-29 珠海雷特科技股份有限公司 Intelligent lamp dimming control method, intelligent lamp and dimming control circuit thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208518A (en) * 2015-09-29 2015-12-30 爱国者电子科技有限公司 Wireless router device, wireless router system and communication method
CN105471478A (en) * 2015-09-28 2016-04-06 小米科技有限责任公司 Message sending method, message receiving method and devices
CN110062508A (en) * 2018-01-18 2019-07-26 中科院微电子研究所昆山分所 A kind of lighting control system
CN111399389A (en) * 2020-03-27 2020-07-10 四川虹美智能科技有限公司 Intelligent household appliance control system and control method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105471478A (en) * 2015-09-28 2016-04-06 小米科技有限责任公司 Message sending method, message receiving method and devices
CN105208518A (en) * 2015-09-29 2015-12-30 爱国者电子科技有限公司 Wireless router device, wireless router system and communication method
CN110062508A (en) * 2018-01-18 2019-07-26 中科院微电子研究所昆山分所 A kind of lighting control system
CN111399389A (en) * 2020-03-27 2020-07-10 四川虹美智能科技有限公司 Intelligent household appliance control system and control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114531656A (en) * 2021-12-31 2022-05-24 珠海雷特科技股份有限公司 Synchronous communication method of Bluetooth equipment, computer device and computer readable storage medium
CN115413080A (en) * 2022-07-25 2022-11-29 珠海雷特科技股份有限公司 Intelligent lamp dimming control method, intelligent lamp and dimming control circuit thereof

Similar Documents

Publication Publication Date Title
CN105101543A (en) Led drive circuit
CN205454156U (en) LED power and lamps and lanterns of wireless control's low ripple output of multichannel
EP3580842B1 (en) Power supply apparatus and power supply method
WO2021228259A1 (en) Light-emitting diode lamp illumination system, and dimmer and light-emitting diode lamp thereof
CN103687194A (en) Current Source with Modified Dimming Device
CN112714534A (en) Control method of intelligent lamp, computer device and computer readable storage medium
CN209748853U (en) LED lamp control circuit, lamp and lighting system
KR101954168B1 (en) Apparatus for Controlling Illuminance and Driving Method Thereof
CN203517677U (en) Lamp adaptor
CN107071957B (en) LED dimming device and system based on coding signals
CN108200691A (en) A kind of LED PAR lamps driving circuit and LED PAR lamps
CN105007647A (en) Driving method and circuit of intelligent control lighting appliance
CN212278509U (en) PLC intelligent lighting control system
CN206564712U (en) LED light modulating devices and system based on encoded signal
CN112601325A (en) Intelligent lamp and driving power supply thereof
WO2022068547A1 (en) Light dimming system
CN208462111U (en) A kind of LED ceiling lamp system of controllable smart home
CN207399559U (en) A kind of constant power output system and lighting device
US9942959B1 (en) Phase-cut dimmable power supply with wide input voltage
CN217770429U (en) Zero-line-free dimming system power supply
CN109922585B (en) Light control circuit
CN211702490U (en) Light emitting device control circuit and light source system
CN107567136B (en) LED dimming and color adjustment circuit and LED dimming and color adjustment device
CN210899736U (en) Wireless dimming lighting control circuit
CN107846756A (en) LED light modulating devices

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

Application publication date: 20210427