[go: up one dir, main page]

CN117580225B - Control method, device and system of LED electronic candle and storage medium - Google Patents

Control method, device and system of LED electronic candle and storage medium Download PDF

Info

Publication number
CN117580225B
CN117580225B CN202311816617.6A CN202311816617A CN117580225B CN 117580225 B CN117580225 B CN 117580225B CN 202311816617 A CN202311816617 A CN 202311816617A CN 117580225 B CN117580225 B CN 117580225B
Authority
CN
China
Prior art keywords
light
control queue
mode
electronic candle
generating
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.)
Active
Application number
CN202311816617.6A
Other languages
Chinese (zh)
Other versions
CN117580225A (en
Inventor
林志力
许强
谢杭甫
陈东伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Power Technology Electronics Co ltd
Original Assignee
Shenzhen Power Technology Electronics Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Power Technology Electronics Co ltd filed Critical Shenzhen Power Technology Electronics Co ltd
Priority to CN202311816617.6A priority Critical patent/CN117580225B/en
Publication of CN117580225A publication Critical patent/CN117580225A/en
Application granted granted Critical
Publication of CN117580225B publication Critical patent/CN117580225B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • 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/155Coordinated control of two or more light sources
    • 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
    • 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]
    • 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

  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The invention discloses a control method, a device, a system and a storage medium of LED electronic candles, wherein the method comprises the steps of obtaining address information of each electronic candle; responding to a light mode input operation triggered by a user, and acquiring at least two light modes input by the user, wherein the at least two light modes comprise a first light mode and a second light mode; generating a first light control queue according to the first light mode and the address information, and generating a second light control queue according to the second light mode and the address information; generating a buffer control queue according to the first light control queue and/or the second light control queue; and controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue. According to the invention, the buffer control queue is arranged between the two modes, all the lamp beads are not required to be closed when the modes are switched, the switching delay is reduced, and the control efficiency is improved.

Description

Control method, device and system of LED electronic candle and storage medium
Technical Field
The invention relates to the technical field of electronic candles, in particular to a control method, a device and a system of an LED electronic candle and a storage medium.
Background
Currently, electronic candle lamps (Electonic CANDLE LIGHT), also known as electronic LED candle lamps. Along with the development of technology, the electronic candle makes an LED lamp wick from the shape of a simple simulated candle at the beginning to a blowing sound control candle lamp, has stronger functions and more colors, can project, can sense sound and sense blowing, and can be used as a lighting appliance, an ornament or an atmosphere lamp.
In the prior art, some kinds of electronic candles have various light modes, and different display effects can be formed by the plurality of electronic candles. For example, different patterns are formed by matching the placement of candles through a single-color light emitting mode, a double-color light emitting mode and a three-color light emitting mode. When the electronic candles switch different light modes, all the lamp beads corresponding to the previous mode are usually turned off, and then the lamp beads corresponding to the current mode are controlled to be lighted, so that the mode switching is completed. However, in the above switching process, there is a delay in the light connection of different modes, and the efficiency of mode switching is low, so that the light transition of the electronic candle is somewhat abrupt.
Disclosure of Invention
The invention provides a control method, a device, a system and a storage medium of an LED electronic candle, which are used for reducing delay and improving switching efficiency when the mode of the electronic candle is switched, and meanwhile, the lamplight of the candle is switched more naturally.
In order to solve the technical problems, the invention provides a control method of an LED electronic candle, comprising:
Acquiring address information of each electronic candle;
Responding to a light mode input operation triggered by a user, and acquiring at least two light modes input by the user, wherein the at least two light modes comprise a first light mode and a second light mode;
generating a first light control queue according to the first light mode and the address information, and generating a second light control queue according to the second light mode and the address information;
generating a buffer control queue according to the first light control queue and/or the second light control queue;
and controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue.
As a preferred embodiment, the generating a buffer control queue according to the first light control queue and/or the second light control queue includes:
The address information of the electronic candles positioned at the tail end in the first light control queue is obtained, and the address information of the electronic candles positioned at the head end in the second light control queue is obtained;
generating a cache control queue according to the first light mode and the address information of the electronic candle positioned at the tail end; or alternatively
Generating a cache control queue according to the second light mode and the address information of the electronic candle positioned at the head end; or alternatively
Generating a cache control queue according to the first light mode and the address information of the electronic candles positioned at the tail end and according to the second light mode and the address information of the electronic candles positioned at the head end.
As a preferred embodiment, the method further comprises:
Acquiring at least two pieces of audio information input by a user, wherein the at least two pieces of audio information comprise first audio information and second audio information, and the at least two pieces of audio information are respectively in one-to-one correspondence with the at least two light modes;
Extracting audio features according to each piece of audio information, and obtaining a first light mode corresponding to the first audio information and a second light mode corresponding to the second audio information based on the mapping relation between the audio features and the light modes; the electronic candle is provided with a swinging lampwick, and the lamplight mode comprises the lampwick swinging frequency or the flickering frequency.
As a preferred embodiment, the generating a buffer control queue according to the first light control queue and/or the second light control queue includes:
Traversing each audio feature to obtain a first time period when the sound intensity in the first audio information is reduced from zero and a second time period when the sound intensity in the second audio information is increased from zero;
And dividing the first light control queue and/or the second light control queue according to the first time period and/or the second time period to generate a cache control queue.
As a preferred embodiment, the method further comprises:
When the light-emitting state of each electronic candle is controlled based on the buffer control queue, the swinging frequency of the lamp wick is set to be the minimum swinging frequency, or the flicker frequency of the lamp wick is set to be the minimum flicker frequency.
As a preferred embodiment, the method further comprises:
After generating the cache control queue, storing the cache control queue in a corresponding electronic candle.
As a preferred embodiment, after the generating the cache control queue, the method further includes:
Responding to a pre-lighting operation triggered by a user, sequentially and continuously calling the first light control queue, the buffer control queue and the second light control queue, and controlling the lighting state of each electronic candle so as to ensure that the user confirms whether the lighting state is consistent with a preset state;
And when receiving the information that the luminous state is inconsistent with the preset state, inserting a blank queue into the cache control queue, updating the cache control queue and repeating the pre-lighting operation.
In a second aspect, the present invention provides a control device for an LED electronic candle, including:
the address acquisition module is used for acquiring address information of each electronic candle;
The system comprises a mode determining module, a light control module and a control module, wherein the mode determining module is used for responding to a light mode input operation triggered by a user and acquiring at least two light modes input by the user, and the at least two light modes comprise a first light mode and a second light mode;
The queue generating module is used for generating a first light control queue according to the first light mode and the address information and generating a second light control queue according to the second light mode and the address information;
The buffer memory module is used for generating a buffer memory control queue according to the first light control queue and/or the second light control queue;
And the light-emitting control module is used for controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue.
As a preferred embodiment, the buffer module includes:
the address information acquisition unit is used for acquiring the address information of the electronic candles positioned at the tail end in the first light control queue and acquiring the address information of the electronic candles positioned at the head end in the second light control queue;
The first buffer unit is used for generating a buffer control queue according to the first light mode and the address information of the electronic candles positioned at the tail end; or alternatively
The second buffer unit is used for generating a buffer control queue according to the second light mode and the address information of the electronic candle positioned at the head end; or alternatively
And the third buffer unit is used for generating a buffer control queue according to the first light mode and the address information of the electronic candles positioned at the tail end and according to the second light mode and the address information of the electronic candles positioned at the head end.
In a third aspect, the invention further provides a control system of the LED electronic candles, which is characterized by comprising a controller and a plurality of electronic candles, wherein the electronic candles are in communication connection with the controller, and the controller is used for executing the control method of the LED electronic candles according to any one of the above.
In a fourth aspect, the present invention further provides a computer readable storage medium, where the computer readable storage medium includes a stored computer program, where when the computer program runs, the computer readable storage medium is controlled to execute the method for controlling the LED electronic candle according to any one of the above steps.
Compared with the prior art, the invention has the following beneficial effects:
The invention provides a control method of LED electronic candles, which comprises the steps of obtaining address information of each electronic candle; responding to a light mode input operation triggered by a user, and acquiring at least two light modes input by the user, wherein the at least two light modes comprise a first light mode and a second light mode; generating a first light control queue according to the first light mode and the address information, and generating a second light control queue according to the second light mode and the address information; generating a buffer control queue according to the first light control queue and/or the second light control queue; and controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue. In the invention, a buffer control queue is arranged between the two modes, all the lamp beads are not required to be closed when the modes are switched, the switching delay is reduced, and the control efficiency is improved. Meanwhile, the candle light is switched more naturally.
Drawings
FIG. 1 is a schematic flow chart of a control method of an LED electronic candle according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a control device of an LED electronic candle according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a control system of an LED electronic candle according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a first embodiment of the present invention provides a control method of an LED electronic candle, including the steps of:
S11, obtaining address information of each electronic candle;
S12, responding to a light mode input operation triggered by a user, and acquiring at least two light modes input by the user, wherein the at least two light modes comprise a first light mode and a second light mode;
s13, generating a first light control queue according to the first light mode and the address information, and generating a second light control queue according to the second light mode and the address information;
s14, generating a cache control queue according to the first light control queue and/or the second light control queue;
s15, controlling the luminous state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue.
In the embodiment of the invention, the address information of each electronic candle is obtained; responding to a light mode input operation triggered by a user, and acquiring at least two light modes input by the user, wherein the at least two light modes comprise a first light mode and a second light mode; generating a first light control queue according to the first light mode and the address information, and generating a second light control queue according to the second light mode and the address information; generating a buffer control queue according to the first light control queue and/or the second light control queue; and controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue. In the invention, a buffer control queue is arranged between the two modes, all the lamp beads are not required to be closed when the modes are switched, the switching delay is reduced, and the control efficiency is improved. Meanwhile, the candle light is switched more naturally.
In step S11, address information of each electronic candle is acquired. The address information comprises driving interface information of the electronic candle, position information of the electronic candle in the circuit, number information of the electronic candle in the circuit and the like. The LED electronic candle is used as an LED lamp, and can be connected with control equipment, and the on state is maintained through a clock circuit. When the clock circuit is generated, the clock circuit can be generated according to the address information of each electronic candle, and the LED lamp is controlled to be in a conducting state according to the clock circuit.
In step S12, at least two light modes input by the user are acquired in response to the light mode input operation triggered by the user, where the at least two light modes include a first light mode and a second light mode. Each light pattern includes one or more of the number of LED candles lit, the speed of the candles flashing, the color of the candles flashing, and the time of the candles flashing. It should be noted that, the light mode may be set according to the requirement of the user. For example, a "gentle mode", an "excited mode", a "sunk mode", or the like is set in the controller in advance, and is selected by the user. Of course, the user may also customize the settings, which is not limited by the present invention.
In step S13, a first light control queue is generated according to the first light mode and the address information, and a second light control queue is generated according to the second light mode and the address information. After the light modes set by the user are obtained, selecting the candles with the corresponding numbers from all candles according to the number of the lighted LED candles and the address information of the candles, and generating light control queues according to the corresponding address information, wherein each light mode corresponds to one light control queue.
In some preferred embodiments, the image and the LED candles may be mapped according to an image selected by a user or an image preset by the controller, and candles corresponding to the image positions are selected from all LED candles to be lightened, so that the lightened candles form the shape or outline of the image.
In step S14, a buffer control queue is generated according to the first light control queue and/or the second light control queue. In this embodiment, the generated buffer control queue is located between the first light control queue and the second light control queue in time, and after the first light control queue is executed, the buffer control queue is then called, and then the second light control queue is called. And through the buffer control queue, the light transition effect similar to gradual change is realized.
In step S15, the lighting state of each electronic candle is controlled based on the first lighting control queue, the buffer control queue and the second lighting control queue. It should be noted that, in the present invention, the light control queue is generated based on a light mode, and in a certain light mode, all candles may be required to be turned on, or some candles may be turned on, or all candles may not be turned on in a certain period of time, or flash according to a frequency. The light-emitting state herein includes a lighting state, a extinguishing state (non-lighting), and a blinking state.
In order to facilitate an understanding of the invention, some preferred embodiments of the invention will be described further below.
In one implementation, the generating a buffer control queue according to the first light control queue and/or the second light control queue includes:
The address information of the electronic candles positioned at the tail end in the first light control queue is obtained, and the address information of the electronic candles positioned at the head end in the second light control queue is obtained; and generating a cache control queue according to the first light mode and the address information of the electronic candle positioned at the tail end. The electronic candles positioned at the tail end are the last n lighted electronic candles in the first light control queue or the last lighted electronic candles in the t1 time period; the electronic candles positioned at the head end are the first n lighted electronic candles in the second light control queue or the electronic candles lighted in the previous t2 time period. Wherein n is an integer, for example 5. t1 and t2 may take a value of 3s.
In this embodiment, the buffer control queue is generated only according to the address information of the first light mode and the electronic candle at the tail end, the buffer control queue is equivalent to a continuation of the first light mode, and the buffer control queue can start to call the second light control queue while running, so that the efficiency of mode switching is improved. Meanwhile, the buffer control queue continuously maintains the first light mode, so that the light transition is more natural compared with the mode that all the light beads are turned off and then all the light beads are turned on.
In another implementation manner, the address information of the electronic candles positioned at the head end in the second light control queue can be obtained by obtaining the address information of the electronic candles positioned at the tail end in the first light control queue; and generating a cache control queue according to the second light mode and the address information of the electronic candle positioned at the head end. In this embodiment, the buffer control queue is generated only according to the second light mode and the address information of the electronic candle at the head end, and the buffer control queue is equivalent to displaying the second light mode in advance, so that the second light control queue can be invoked while the buffer control queue operates, and the efficiency of mode switching is improved. Meanwhile, the buffer control queue maintains the second light mode, so that the light transition is more natural compared with the mode that all the light beads are turned off and then all the light beads are turned on.
In another implementation manner, the address information of the electronic candles positioned at the head end in the second light control queue can be obtained by obtaining the address information of the electronic candles positioned at the tail end in the first light control queue; generating a cache control queue according to the first light mode and the address information of the electronic candles positioned at the tail end and according to the second light mode and the address information of the electronic candles positioned at the head end. In this embodiment, the buffer control queue is generated according to the address information of the first light mode and the electronic candle at the tail end, the second light mode and the address information of the electronic candle at the head end, and the buffer control queue is equivalent to the continuation of the first light mode and the advanced display of the second light mode, so that the second light control queue can be invoked while the buffer control queue operates, and the efficiency of mode switching is improved. Meanwhile, the buffer control queue realizes continuous display of the first light mode and the second light mode, and compared with a mode that all the light beads are turned off and then all the light is turned on, the buffer control queue can make light transition more natural.
In another implementation, the method further comprises:
Acquiring at least two pieces of audio information input by a user, wherein the at least two pieces of audio information comprise first audio information and second audio information, and the at least two pieces of audio information are respectively in one-to-one correspondence with the at least two light modes;
Extracting audio features according to each piece of audio information, and obtaining a first light mode corresponding to the first audio information and a second light mode corresponding to the second audio information based on the mapping relation between the audio features and the light modes; the electronic candle is provided with a swinging lampwick, and the lamplight mode comprises the lampwick swinging frequency or the flickering frequency.
In this embodiment, the mapping relationship between the audio feature and the light mode is configured in the controller or the cloud in advance, for example, the gentle frequency band in the audio feature corresponds to the swaying frequency or the flashing frequency of the lampwick moderately, the high frequency band in the audio feature corresponds to the swaying frequency or the flashing frequency of the lampwick faster, the sinking frequency band in the audio feature corresponds to the swaying frequency or the flashing frequency of the lampwick slower, and the lampwick can sway or flash along with the rhythm of the music. The method for extracting the audio features can adopt a time-frequency domain analysis method in the prior art, obtain a time domain waveform from the audio signal, and then convert the time domain waveform into a frequency spectrum. Of course, the sound spectrum can be extracted from the audio, and the frequency band can be judged according to the level of the sound tone, which is not limited by the invention.
In one implementation, the generating a buffer control queue according to the first light control queue and/or the second light control queue includes:
Traversing each audio feature to obtain a first time period when the sound intensity in the first audio information is reduced from zero and a second time period when the sound intensity in the second audio information is increased from zero;
And dividing the first light control queue and/or the second light control queue according to the first time period and/or the second time period to generate a cache control queue.
It should be noted that, this embodiment is suitable for the electronic candle mode that adapts to music, and the wick can rock or flash along with the rhythm of music. In this embodiment, each audio feature is traversed to obtain a first period of time when the sound intensity in the first audio information is reduced from zero to zero, and a second period of time when the sound intensity in the second audio information is increased from zero to high, that is, a fade-out effect period of the first audio and a fade-in effect period of the second audio. And then dividing the first light control queue and/or the second light control queue according to the first time period and/or the second time period to generate a cache control queue. The fade-out effect period corresponds to the last t1 period of the first light mode in the above embodiment, and the fade-in effect actual period corresponds to the first t2 period of the second light mode. The buffer control queue may be generated only from the first light mode and the fade-out effect period, or only from the second light mode and the fade-in effect period, or both.
In a specific application, the buffer control queue may also be a separate lighting mode, for example, when the lighting state of each electronic candle is controlled based on the buffer control queue, the swinging frequency of the wick is set to a minimum swinging frequency, or the flicker frequency of the wick is set to a minimum flicker frequency. At this time, the mode can be switched through the buffer control queue, and the buffer control queue is in a transition mode, so that compared with a mode that all the lamp beads are turned off and then all the lamp beads are turned on, the lamp light transition is more natural.
In one implementation, the method further comprises: after generating the cache control queue, storing the cache control queue in a corresponding electronic candle. The electronic candle can be driven by the driver or the chip, and is stored in the storage area corresponding to the driver after the buffer control queue is generated, so that the buffer mode can be directly loaded when different light modes are switched, the delay of calling or switching is further reduced, the speed is increased, the candle light is switched more naturally, and a better visual effect is achieved.
Further, after the generating the cache control queue, the method further includes:
Responding to a pre-lighting operation triggered by a user, sequentially and continuously calling the first light control queue, the buffer control queue and the second light control queue, and controlling the lighting state of each electronic candle so as to ensure that the user confirms whether the lighting state is consistent with a preset state;
And when receiving the information that the luminous state is inconsistent with the preset state, inserting a blank queue into the cache control queue, updating the cache control queue and repeating the pre-lighting operation.
Illustratively, a user edits the light control queues via a controller, such as an input device, e.g., a cell phone, and sends the light control queues to the candle driver via wireless communication. And then, the user selects a pre-lighting option, so that the first light control queue, the buffer control queue and the second light control queue are continuously invoked by the electronic candles according to the sequence, and the lighting state of each electronic candle is controlled. At this time, the user views the light emitting state and judges whether it is consistent with the preset. After all the light control queues are called, the controller can pop the window 'whether consistent' option for the user to determine. When the two modes are consistent, the pre-lighting operation is completed, and all the modes are set correctly. And when the user selects inconsistency, inserting a blank queue into the cache control queue, updating the cache control queue and repeating the pre-lighting operation. For example, a blank queue is inserted into the beginning or end of the buffer control queue, and the blank queue may be 1s in time, which means that the light-emitting state of the electronic candle is kept from being switched within 1s in time. The blank queue can avoid the disorder of the execution of the luminous state caused by more overlapping of the buffer control queue and the previous or the next light control queue.
In summary, according to the control method of the LED electronic candles, address information of each electronic candle is obtained; responding to a light mode input operation triggered by a user, and acquiring at least two light modes input by the user, wherein the at least two light modes comprise a first light mode and a second light mode; generating a first light control queue according to the first light mode and the address information, and generating a second light control queue according to the second light mode and the address information; generating a buffer control queue according to the first light control queue and/or the second light control queue; and controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue. In the invention, a buffer control queue is arranged between the two modes, all the lamp beads are not required to be closed when the modes are switched, the switching delay is reduced, and the control efficiency is improved. Meanwhile, the candle light is switched more naturally.
Referring to fig. 2, a second embodiment of the present invention provides a control device for an LED electronic candle, including:
the address acquisition module is used for acquiring address information of each electronic candle;
The system comprises a mode determining module, a light control module and a control module, wherein the mode determining module is used for responding to a light mode input operation triggered by a user and acquiring at least two light modes input by the user, and the at least two light modes comprise a first light mode and a second light mode;
The queue generating module is used for generating a first light control queue according to the first light mode and the address information and generating a second light control queue according to the second light mode and the address information;
The buffer memory module is used for generating a buffer memory control queue according to the first light control queue and/or the second light control queue;
And the light-emitting control module is used for controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue.
Preferably, the buffer module includes:
the address information acquisition unit is used for acquiring the address information of the electronic candles positioned at the tail end in the first light control queue and acquiring the address information of the electronic candles positioned at the head end in the second light control queue;
The first buffer unit is used for generating a buffer control queue according to the first light mode and the address information of the electronic candles positioned at the tail end; or alternatively
The second buffer unit is used for generating a buffer control queue according to the second light mode and the address information of the electronic candle positioned at the head end; or alternatively
And the third buffer unit is used for generating a buffer control queue according to the first light mode and the address information of the electronic candles positioned at the tail end and according to the second light mode and the address information of the electronic candles positioned at the head end.
It should be noted that, the control device of the LED electronic candle provided by the embodiment of the present invention is used for executing all the flow steps of the control method of the LED electronic candle in the foregoing embodiment, and the working principles and beneficial effects of the two correspond one to one, so that the description is omitted.
Referring to fig. 3, an embodiment of the present invention further provides a control system of an LED electronic candle, which is characterized by comprising a controller and a plurality of electronic candles, wherein the electronic candles are communicatively connected with the controller, and the controller is configured to execute the control method of the LED electronic candles according to any one of the above.
It is noted that the control system of the present embodiment may be used to control a single candle or multiple candles. When controlling a plurality of electronic candles, the lighting of the candles can be controlled by means of a queue.
In the control system of the embodiment of the invention, the address information of each electronic candle is obtained; responding to a light mode input operation triggered by a user, and acquiring at least two light modes input by the user, wherein the at least two light modes comprise a first light mode and a second light mode; generating a first light control queue according to the first light mode and the address information, and generating a second light control queue according to the second light mode and the address information; generating a buffer control queue according to the first light control queue and/or the second light control queue; and controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue. In the invention, a buffer control queue is arranged between the two modes, all the lamp beads are not required to be closed when the modes are switched, the switching delay is reduced, and the control efficiency is improved. Meanwhile, the candle light is switched more naturally.
The embodiment of the invention also provides terminal equipment. The terminal device includes: a processor, a memory, and a computer program stored in the memory and executable on the processor, such as a control program for an LED electronic candle. The processor executes the computer program to implement the steps in the control method embodiment of each LED electronic candle described above, for example, step S11 shown in fig. 1. Or the processor, when executing the computer program, performs the functions of the modules/units in the above-described apparatus embodiments, for example, a queue generating module.
The computer program may be divided into one or more modules/units, which are stored in the memory and executed by the processor to accomplish the present invention, for example. The one or more modules/units may be a series of computer program instruction segments capable of performing the specified functions, which instruction segments are used for describing the execution of the computer program in the terminal device.
The terminal equipment can be a desktop computer, a notebook computer, a palm computer, an intelligent tablet and other computing equipment. The terminal device may include, but is not limited to, a processor, a memory. It will be appreciated by those skilled in the art that the above components are merely examples of terminal devices and do not constitute a limitation of terminal devices, and may include more or fewer components than described above, or may combine certain components, or different components, e.g., the terminal devices may also include input and output devices, network access devices, buses, etc.
The Processor may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the terminal device, and which connects various parts of the entire terminal device using various interfaces and lines.
The memory may be used to store the computer program and/or module, and the processor may implement various functions of the terminal device by running or executing the computer program and/or module 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 device, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data (such as audio data, phonebook, etc.) created according to the use of the handset, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart memory card (SMART MEDIA CARD, SMC), secure Digital (SD) card, flash memory card (FLASH CARD), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
Wherein the terminal device integrated modules/units may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as stand alone products. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program 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 each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth. It should be noted that the computer readable medium contains content that can be appropriately scaled according to the requirements of jurisdictions in which such content is subject to legislation and patent practice, such as in certain jurisdictions in which such content is subject to legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunication signals.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing embodiments have been provided for the purpose of illustrating the general principles of the present invention, and are not to be construed as limiting the scope of the invention. It should be noted that any modifications, equivalent substitutions, improvements, etc. made by those skilled in the art without departing from the spirit and principles of the present invention are intended to be included in the scope of the present invention.

Claims (8)

1. A control method of an LED electronic candle, comprising:
Acquiring address information of each electronic candle;
Responding to a light mode input operation triggered by a user, and acquiring at least two light modes input by the user, wherein the at least two light modes comprise a first light mode and a second light mode;
generating a first light control queue according to the first light mode and the address information, and generating a second light control queue according to the second light mode and the address information;
generating a buffer control queue according to the first light control queue and/or the second light control queue;
Controlling the lighting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue;
Wherein the method further comprises: acquiring at least two pieces of audio information input by a user, wherein the at least two pieces of audio information comprise first audio information and second audio information, and the at least two pieces of audio information are respectively in one-to-one correspondence with the at least two light modes; extracting audio features according to each piece of audio information, and obtaining a first light mode corresponding to the first audio information and a second light mode corresponding to the second audio information based on the mapping relation between the audio features and the light modes; the electronic candle is provided with a swinging lampwick, and the lamplight mode comprises the frequency of lampwick swinging or the frequency of flickering;
The generating a buffer control queue according to the first light control queue and/or the second light control queue includes: traversing each audio feature to obtain a first time period when the sound intensity in the first audio information is reduced from zero and a second time period when the sound intensity in the second audio information is increased from zero; and dividing the first light control queue and/or the second light control queue according to the first time period and/or the second time period to generate a cache control queue.
2. The method for controlling an LED electronic candle according to claim 1, wherein the generating a buffer control queue according to the first light control queue and/or the second light control queue comprises:
The address information of the electronic candles positioned at the tail end in the first light control queue is obtained, and the address information of the electronic candles positioned at the head end in the second light control queue is obtained;
generating a cache control queue according to the first light mode and the address information of the electronic candle positioned at the tail end; or alternatively
Generating a cache control queue according to the second light mode and the address information of the electronic candle positioned at the head end; or alternatively
Generating a cache control queue according to the first light mode and the address information of the electronic candles positioned at the tail end and according to the second light mode and the address information of the electronic candles positioned at the head end.
3. The method of controlling an LED electronic candle of claim 1, further comprising:
When the light-emitting state of each electronic candle is controlled based on the buffer control queue, the swinging frequency of the lamp wick is set to be the minimum swinging frequency, or the flicker frequency of the lamp wick is set to be the minimum flicker frequency.
4. The method of controlling an LED electronic candle of claim 1, further comprising:
After generating the cache control queue, storing the cache control queue in a corresponding electronic candle.
5. The method of controlling an LED electronic candle according to claim 1, wherein after the generating a buffer control queue, the method further comprises:
Responding to a pre-lighting operation triggered by a user, sequentially and continuously calling the first light control queue, the buffer control queue and the second light control queue, and controlling the lighting state of each electronic candle so as to ensure that the user confirms whether the lighting state is consistent with a preset state;
And when receiving the information that the luminous state is inconsistent with the preset state, inserting a blank queue into the cache control queue, updating the cache control queue and repeating the pre-lighting operation.
6. A control device for an LED electronic candle, comprising:
the address acquisition module is used for acquiring address information of each electronic candle;
The system comprises a mode determining module, a light control module and a control module, wherein the mode determining module is used for responding to a light mode input operation triggered by a user and acquiring at least two light modes input by the user, and the at least two light modes comprise a first light mode and a second light mode;
The queue generating module is used for generating a first light control queue according to the first light mode and the address information and generating a second light control queue according to the second light mode and the address information;
The buffer memory module is used for generating a buffer memory control queue according to the first light control queue and/or the second light control queue;
The light-emitting control module is used for controlling the light-emitting state of each electronic candle based on the first light control queue, the buffer control queue and the second light control queue;
Wherein the control device is further configured to: acquiring at least two pieces of audio information input by a user, wherein the at least two pieces of audio information comprise first audio information and second audio information, and the at least two pieces of audio information are respectively in one-to-one correspondence with the at least two light modes; extracting audio features according to each piece of audio information, and obtaining a first light mode corresponding to the first audio information and a second light mode corresponding to the second audio information based on the mapping relation between the audio features and the light modes; the electronic candle is provided with a swinging lampwick, and the lamplight mode comprises the frequency of lampwick swinging or the frequency of flickering;
Wherein, the cache module is further used for: traversing each audio feature to obtain a first time period when the sound intensity in the first audio information is reduced from zero and a second time period when the sound intensity in the second audio information is increased from zero; and dividing the first light control queue and/or the second light control queue according to the first time period and/or the second time period to generate a cache control queue.
7. A control system for an LED electronic candle, comprising a controller and a plurality of electronic candles, the electronic candles being communicatively coupled to the controller, the controller being configured to perform the method of controlling an LED electronic candle according to any one of claims 1-5.
8. A computer readable storage medium, characterized in that the computer readable storage medium comprises a stored computer program, wherein the computer program, when run, controls a device in which the computer readable storage medium is located to perform the method of controlling an LED electronic candle according to any one of claims 1 to 5.
CN202311816617.6A 2023-12-26 2023-12-26 Control method, device and system of LED electronic candle and storage medium Active CN117580225B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311816617.6A CN117580225B (en) 2023-12-26 2023-12-26 Control method, device and system of LED electronic candle and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311816617.6A CN117580225B (en) 2023-12-26 2023-12-26 Control method, device and system of LED electronic candle and storage medium

Publications (2)

Publication Number Publication Date
CN117580225A CN117580225A (en) 2024-02-20
CN117580225B true CN117580225B (en) 2024-06-28

Family

ID=89886357

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311816617.6A Active CN117580225B (en) 2023-12-26 2023-12-26 Control method, device and system of LED electronic candle and storage medium

Country Status (1)

Country Link
CN (1) CN117580225B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113623607A (en) * 2020-04-21 2021-11-09 照明城有限责任公司 Electronic candle
CN115576344A (en) * 2022-09-29 2023-01-06 上海千机创新文旅科技集团有限公司 A Method, System and Application of Multiple Sets of Lighting Effect Caching of Formation Aircraft Lighting Matrix

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2001270018A1 (en) * 2000-06-21 2002-01-02 Color Kinetics Incorporated Method and apparatus for controlling a lighting system in response to an audio input
CN115617070A (en) * 2022-09-29 2023-01-17 上海千机创新文旅科技集团有限公司 Method, system and application for circularly playing multiple sets of light effects of formation airplane light matrix

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113623607A (en) * 2020-04-21 2021-11-09 照明城有限责任公司 Electronic candle
CN115576344A (en) * 2022-09-29 2023-01-06 上海千机创新文旅科技集团有限公司 A Method, System and Application of Multiple Sets of Lighting Effect Caching of Formation Aircraft Lighting Matrix

Also Published As

Publication number Publication date
CN117580225A (en) 2024-02-20

Similar Documents

Publication Publication Date Title
CN113141690A (en) Single-point controllable light-emitting device and system
CN110996477B (en) Air conditioner lamp control method, computer device and computer readable storage medium
CN113573442A (en) Method, apparatus, and computer-readable storage medium for audio control of scenes
CN111954347A (en) Control method and device of atmosphere lamp, vehicle and storage medium
JP4204618B2 (en) Mobile communication terminal with luminous effect editor
CN112672464B (en) Lamp light control method and device of lamp and computer equipment
CN105472807B (en) The music light efficiency synchronous method and terminal of terminal
CN117580225B (en) Control method, device and system of LED electronic candle and storage medium
CN117881060A (en) Control method for light effect and music linkage, intelligent terminal and controlled equipment
JP2004207411A (en) Led display device and its lighting method and program
CN105931604A (en) Backlight driving control method, device and terminal equipment
CN117227622A (en) Atmosphere lamp control method and device, electronic equipment and vehicle
CN104754798B (en) The brightness control method and device of key-press backlight
EP4481546A1 (en) Mobile terminal and method for customizing a show effect
CN201203089Y (en) Music Light System for Handheld Electronic Devices
CN213892330U (en) Touch device for automobile atmosphere lamp
CN100508680C (en) A device for music-controlled luminescent lamp group
CN204462952U (en) a mobile terminal
CN101684913B (en) Device of luminescent lamp group controlled by music
CN114051299B (en) Control method and device of vehicle-mounted atmosphere lamp, storage medium and vehicle
KR102345027B1 (en) Lighting device and frame with said lighting device attached thereto
CN113312506A (en) Lighting device control method, storage medium, and electronic apparatus
CN108064099A (en) Intelligent lighting system, control method and intelligent illuminating system
KR100763309B1 (en) Control method of a plurality of display elements provided in the portable terminal
KR20230161272A (en) Speaker and controlling method thereof

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
GR01 Patent grant
GR01 Patent grant