CN113873735A - Lamplight control method and device for lamplight door, intelligent terminal and storage medium - Google Patents
Lamplight control method and device for lamplight door, intelligent terminal and storage medium Download PDFInfo
- Publication number
- CN113873735A CN113873735A CN202111307362.1A CN202111307362A CN113873735A CN 113873735 A CN113873735 A CN 113873735A CN 202111307362 A CN202111307362 A CN 202111307362A CN 113873735 A CN113873735 A CN 113873735A
- Authority
- CN
- China
- Prior art keywords
- data
- light control
- light
- music
- music data
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000012545 processing Methods 0.000 claims description 28
- 230000033764 rhythmic process Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 3
- 230000003203 everyday effect Effects 0.000 claims description 3
- 238000012544 monitoring process Methods 0.000 claims description 3
- 238000012546 transfer Methods 0.000 claims description 3
- 230000007613 environmental effect Effects 0.000 abstract description 5
- 238000009434 installation Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000006698 induction Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000002035 prolonged effect Effects 0.000 description 2
- XAGFODPZIPBFFR-UHFFFAOYSA-N aluminium Chemical compound [Al] XAGFODPZIPBFFR-UHFFFAOYSA-N 0.000 description 1
- 229910052782 aluminium Inorganic materials 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000005286 illumination Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B47/00—Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
- H05B47/10—Controlling the light source
- H05B47/105—Controlling the light source in response to determined parameters
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/68—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/683—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
-
- H—ELECTRICITY
- H05—ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
- H05B—ELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
- H05B45/00—Circuit arrangements for operating light-emitting diodes [LED]
- H05B45/50—Circuit arrangements for operating light-emitting diodes [LED] responsive to malfunctions or undesirable behaviour of LEDs; responsive to LED life; Protective circuits
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Engineering & Computer Science (AREA)
- Library & Information Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Circuit Arrangement For Electric Light Sources In General (AREA)
Abstract
The application relates to a light control method and device of a light door, an intelligent terminal and a storage medium, relating to the field of light control, wherein the method comprises the steps of acquiring sound data and music data; converting the sound data and/or the music data into a corresponding environment mode based on the preset environment judgment condition; the environment mode comprises a business environment mode and a home environment mode; and calling a control rule corresponding to the environment mode, calling corresponding light control data from a preset light control database when music data and/or voice data are/is acquired based on the control rule, and controlling light based on the light control data. Through sound data, music data and voice data, automatic switch-over environmental mode and light control data need not artifical regulation or setting, have improved light control's intellectuality.
Description
Technical Field
The invention relates to the field of light control, in particular to a light control method and device of a light door, an intelligent terminal and a storage medium.
Background
With the development of economy and the progress of science and technology, the quality of life of people is higher and higher, and higher service quality and life experience are more required. To meet this demand, some furniture manufacturers have installed LED lamps on cabinets, tables, and chairs, so that the furniture can provide a different use experience from conventional furniture when in use. Especially for some furniture with specific scenes, such as bars, pubs or meeting rooms, colored lamps are installed on wine cabinets or doors and used for setting up atmosphere and improving activity experience.
In the related art, the control mode of the light on the light door is usually manually adjusted by a worker, namely, a light control switch on the light door is installed in a corresponding room, and the light on the light door is controlled to be turned on, turned off, switched in patterns and the like through a touch switch.
For the related technologies, the inventor thinks that the style of the light needs to be changed every time, the switch needs to be manually touched, the operation is manual, and the light control mode is not intelligent enough.
Disclosure of Invention
In order to improve the intelligence of light control, the invention provides a light control method and device of a light door, an intelligent terminal and a storage medium.
In a first aspect, the application provides a light control method for a light door, which adopts the following technical scheme:
a light control method for a light door, comprising:
acquiring sound data and music data;
converting the sound data and/or the music data into a corresponding environment mode based on the preset environment judgment condition; the environment mode comprises a business environment mode and a home environment mode;
and calling a control rule corresponding to the environment mode, calling corresponding light control data from a preset light control database when music data and/or voice data are/is acquired based on the control rule, and controlling light based on the light control data.
Through adopting above-mentioned technical scheme, based on sound data and/or music data, the processing terminal on the light door can the automatic selection environmental mode, then according to the environmental mode of difference, uses different control rules, calls the light control data that prestores, controls light on the light door. On one hand, the lamplight door is provided with two environment modes, so that two control rules are correspondingly provided, the lamplight door can automatically select more suitable lamplight control data according to the environment, the use experience of the lamplight door is favorably improved, the environment mode does not need to be manually selected, and the intelligence of lamplight control on the lamplight door is improved; on the other hand, the light control data is automatically selected by the processing terminal based on the control rule and the music data and/or the voice data, so that the intelligence of light control is improved.
Optionally, the step of converting into a corresponding environment mode based on the sound data and/or the music data and a preset environment judgment condition includes:
judging whether the acquisition time length of the music data in a preset total time length threshold value exceeds a preset music time length threshold value or not, and if the acquisition time length exceeds the music time length threshold value, converting the music data into a business environment mode;
and if the acquisition time does not exceed the music time threshold, converting into a home environment mode.
By adopting the technical scheme, the duration of continuously acquiring the music data in the commercial environment is longer than the duration in the office or home environment, and the conversion of the environmental mode according to the duration of the music data in the total duration threshold is beneficial to improving the accuracy of the converted environmental mode.
Optionally, after the obtaining duration exceeds the music duration threshold, the method further includes:
judging whether the sound data exceeding a preset sound duration threshold exist in the morning, if so, converting the sound data into a home environment mode, and otherwise, converting the sound data into a business environment mode;
after the obtaining duration does not exceed the music duration threshold, the method further includes:
and judging whether the sound data exceeding the sound duration threshold exist in the afternoon time period, if so, converting the sound data into a home environment mode, and otherwise, converting the sound data into a business environment mode.
By adopting the technical scheme, if a family party or an office does work, the time length acquired by the processing terminal arranged on the lamplight door in the family or the office exceeds the music time length threshold value, and the commercial environment mode is converted at the moment, so that the judgment accuracy of the environment mode is reduced. Therefore, the time period condition is increased, and the accuracy is improved by judging whether the sound data acquired in the morning time period exceeds the sound duration threshold value; since business scenarios are typically not open during the morning hours, if the sound duration threshold is not exceeded, it is verified that a business environment model should be.
Similarly, if a restaurant or a KTV business scene is closed for rest and is not open for business in a certain day, the acquisition duration of the processing terminal installed on the lamplight door of the business scene does not exceed the music duration threshold, and the judgment accuracy of the environment mode is reduced by converting the business scene into a home environment mode. Therefore, the time period condition is increased, and the accuracy is improved by judging whether the sound data acquired in the afternoon time period exceeds the sound duration threshold value; because the business scene is not open, the voice data of a long time can not be obtained in the afternoon, and therefore the business environment mode is converted into the business environment mode when the business scene is not over, the accuracy of judging the environment mode is improved, and the intelligence of light control is improved conveniently.
Optionally, the control rules include a business control rule corresponding to the business environment mode and a home control rule corresponding to the home environment mode;
when the called control rule is a business control rule, the step of calling corresponding light control data from a preset light control database when music data and/or voice data are obtained based on the control rule comprises the following steps:
when the music data are acquired, judging the type of the music data according to the rhythm of the music data, and calling corresponding types of light control data from the light control database;
when the voice data is acquired, recognizing the voice data, and calling corresponding light control data from the light control database based on a voice instruction generated after recognition;
after the music data are obtained and when the voice data are obtained, the voice data are ignored, the type of the music data is judged according to the rhythm of the music data, and the corresponding type of light control data are called from the light control database;
after the voice data is acquired and the music data is acquired, judging the type of the music data according to the rhythm of the music data, and calling the corresponding type of light control data from the light control database;
when the control rule of transferring for the control rule at home, based on the control rule, when obtaining music data and/or voice data, transfer the step of corresponding light control data from the light control database of predetermineeing and include:
when the music data are acquired, judging the type of the music data according to the rhythm of the music data, and calling corresponding types of light control data from the light control database;
when the voice data is acquired, recognizing the voice data, and calling corresponding light control data from the light control database based on a voice instruction generated after recognition;
after the music data are acquired and the voice data are acquired, recognizing the voice data, and calling corresponding light control data from the light control database based on a voice instruction generated after recognition;
and after the voice data is acquired, when the music data is acquired, ignoring the music data.
By adopting the technical scheme, when the control rule is the business control rule, the environment mode is proved to be the business environment mode, so that the installation environment of the light door is proved to be a business scene, and the control priority of the music data is greater than that of the voice data, so that the light control data of the light door is not easy to change by customers.
Similarly, when the control rule is the home control rule, the installation environment of the light door is proved to be a home or an office, and the control priority of the voice data is greater than that of the music data, so that the light control data of the light door is controlled by the user more easily. The use convenience of the light door and the intelligence of the light door are improved.
Optionally, after the controlling the light based on the light control data, the method further includes:
monitoring the working time of each LED lamp;
when the working time of the LED lamp exceeds a preset working time threshold, calling the corresponding light control data which reduces the working time of the LED lamp from the light control database;
and controlling the light based on the newly called light control data.
By adopting the technical scheme, each LED lamp on the light door is monitored, if the currently used light control data enables one or more LED lamps to be normally on, the working time of the normally-on LED lamp exceeds the working time threshold, the light control data corresponding to the music data and/or the voice data is re-called at the moment, the working time of the normally-on LED lamp is shorter than that of other LED lamps, the LED lamps can be protected, and the service life of the LED lamps is prolonged.
Optionally, the light control method further includes:
acquiring door opening data transmitted by a preset door opening sensor;
when the door opening data are larger than a preset door opening threshold value, a preset illuminating lamp is controlled to be started;
and when the door opening data is less than or equal to a preset door opening threshold value, controlling the lighting lamp to be turned off.
Through adopting above-mentioned technical scheme, the sensor that opens the door will open a door data transfer and handle the terminal, and the processing terminal opens or closes based on the light that the data control of opening the door predetermines, illuminates the way for the user through the light door, helps improving the use comfort level of light door and the intelligent of light control.
Optionally, after the converting into the corresponding environment mode, the method further includes:
when the environment mode is a commercial environment mode, storing the turn-on time and turn-off time of the lamp every day;
when the current time reaches the latest starting time, judging whether the lamp is started or not;
if not, turning on the lamp;
when the current time reaches the latest closing time, judging whether the lamp is closed;
and if not, turning off the lamp.
By adopting the technical scheme, the lamps are intelligently turned on or off according to the stored turn-on time and turn-off time, and the intelligence of light control is improved.
In a second aspect, the application provides a light control system of a light door, which adopts the following technical scheme:
a light control system of a light door comprises an acquisition module, a control module and a control module, wherein the acquisition module is used for acquiring sound data and music data;
the switching module is used for converting the sound data, the music data and a preset environment judgment condition into a corresponding environment mode;
and the processing module is used for calling a control rule corresponding to the environment mode, calling corresponding light control data from preset light control data when music data and/or voice data are obtained based on the control rule, and controlling light based on the light control data.
By adopting the technical scheme, the installation environment of the lamplight door is judged by utilizing a certain time, so that the corresponding environment mode is converted, and then the corresponding lamplight control data is called by combining music data and/or voice data in the installation environment under the corresponding environment mode to control the lamplight style on the lamplight door. On one hand, after the lamplight door is put into use, the environment mode does not need to be manually selected, the installation environment is intelligently judged, and the intelligence of lamplight control is conveniently improved; on the other hand, after the environment mode is determined, corresponding light control data can be called based on the music data and/or the voice data of the installation environment, light is controlled, manual participation is not needed, and the intelligence of light control is improved.
In a third aspect, the intelligent terminal provided by the application adopts the following technical scheme:
an intelligent terminal comprises a memory and a processor, wherein a light control program of a light door is stored in the memory; the processor is used for adopting the method when executing the light control program of the light door.
By adopting the technical scheme, the light control method can be adopted when the light control program of the light door is executed, and the intelligence of light control is improved.
In a fourth aspect, the present application provides a storage medium, which adopts the following technical solutions:
a storage medium stores a computer program that can be loaded by a processor and that executes the above-described method.
Through adopting above-mentioned technical scheme, the storage has the light procedure of light door, helps improving the intelligent of light control.
In conclusion, firstly, the processing terminal on the light door can judge the environment according to the acquired sound data and/or music data after being started, and then converts the environment into the corresponding environment mode, so that the light door does not need to manually adjust the environment mode when being used, and the intelligence of light control is improved.
And secondly, the processing terminal calls corresponding light control data based on the acquired music data and/or voice data, so that light is controlled without artificial participation, and the intelligence of light control is improved.
Drawings
Fig. 1 is an overall flowchart of a lighting control method for a lighting door according to an embodiment of the present application.
Fig. 2 is a flowchart of step S200 in a light control method of a light door according to an embodiment of the present application.
Fig. 3 is a flowchart of step S300 in a light control method of a light door according to an embodiment of the present application.
Fig. 4 is another flowchart of step S300 in a light control method for a light door according to an embodiment of the present application.
Fig. 5 is a block diagram of a light control system of a light door according to an embodiment of the present disclosure.
Description of reference numerals:
1. an acquisition module; 2. a switching module; 3. and a processing module.
Detailed Description
The embodiment of the application discloses a light control method of a light door. The light door refers to a door provided with a lamp, the lamp comprises a plurality of LED lamps, a processing terminal is preset on the light door and used for controlling light of the lamp, the light of the lamp emits light of different styles, and a door plate of the light door can be an aluminum frame door. Referring to fig. 1, a light control method of a light door includes:
and S100, acquiring sound data and music data.
The light door is pre-provided with a sound sensor and is used for acquiring sound data near the light door; the range near the light door is specifically determined by the detection range of the sound sensor, and if the sound sensor can detect a sound within 1 m of a square circle, the range near the light door means a space within 1 m of a square circle of the sound sensor. A music induction program is arranged in the processing terminal, and the processing terminal is electrically connected with a sound sensor or a pre-installed microphone; when the processing terminal is electrically connected with the sound sensor, sound data in the sound sensor is obtained, and whether the sound data contains music data or not is analyzed by using a music induction program; if so, music data is extracted. When the processing terminal is electrically connected with the microphone, the microphone transmits the detected sound data to the processing terminal, and the sound data are analyzed by the music sensing program to obtain music data.
It should be noted that the song listening recognition technology in the prior art is quite mature, and therefore, the process of extracting music data from sound data or acoustic data is not described again.
And S200, converting the voice data, the music data and the preset environment judgment condition into a corresponding environment mode.
Specifically, the environment mode includes a business environment mode and a home environment mode. Referring to fig. 2, step S200 includes:
s210, judging whether the acquisition time length of the music data in the preset total time length threshold value exceeds a preset music time length threshold value.
The total duration threshold may be 24 hours or 48 hours, or 12 hours or 6 hours; specifically, the larger the value of the total duration threshold value is, the higher the accuracy of the judgment of the processing terminal is, and the setting can be performed according to specific conditions. The music time length threshold is also set according to specific conditions and is smaller than the total time length threshold. For example, when the total duration threshold is 24 hours, the music duration threshold may be 4 hours, 6 hours, or 8 hours.
In the above exemplary scenario, the processing terminal clocks the music data when acquiring the music data. If the music data is obtained discontinuously, that is, the music data may be obtained at 10 am for 10 minutes, and the music data is obtained again at 30 am for 10 minutes, then the timing time of the music data is a superimposed value of two segments, and is 20 minutes. The timing time is the acquisition duration of the music data.
S211, if the acquired duration exceeds the music duration threshold, judging whether sound data exceeding a preset sound duration threshold exist in the morning period; if yes, go to step S211.1; otherwise, step S211.2 is performed.
Wherein, the morning time period refers to 6 to 12 hours in a 24-hour time calculation mode. Whether the sound data exceeds the sound duration threshold or not specifically refers to the acquisition duration of the sound data, and is similar to the music data. The sound duration threshold may be 20 minutes, 30 minutes or 120 minutes, for ease of understanding, for example: the sound duration threshold is set to be 60 minutes, and the processing terminal counts the duration of the acquired sound data when the current time is in the morning time period. And when the morning time period is over, comparing the duration of the sound data with the sound duration threshold, and judging the size of the sound data to obtain whether the sound data exceeds the sound duration threshold.
And S211.1, converting into a home environment mode.
And S211.2, converting into a business environment mode.
S212, if the acquired duration does not exceed the music duration threshold, judging whether sound data exceeding the sound duration threshold exist in the afternoon period; if yes, go to step S212.1; otherwise, step S212.2 is performed.
Wherein, the afternoon time slot refers to 12 to 18 points in a 24-hour time calculation mode.
It should be noted that the environment mode in this embodiment includes two types, which correspond to a business scenario and a home scenario, respectively. The commercial scene refers to scenes such as a pub, a KTV and a restaurant, namely, a lamplight door is arranged in the pub, the KTV or the restaurant; the house scene refers to scenes such as residential buildings, villas, offices and the like, namely, the light door is installed in a house or an office.
Since the time for playing the music per day in the business scene is generally longer than the time for playing the music per day in the home scene, the processing terminal may be caused to determine the environment where the light door is located only by step S210. Specifically, in an embodiment, after the step S210, if the duration of acquiring the music data exceeds the music duration threshold, the music data is converted into the business environment mode; otherwise, the mode is converted into a home environment mode.
However, considering that the business scenario has a rest day or a business stop day, and the home scenario has a party day or an activity day, steps S211 and S212 are added. If the home scene is located on a party day or an activity day, the music data acquisition time length obtained by the processing terminal of the lighting door installed in the home scene on the day easily exceeds the music time length threshold value, at the moment, whether the sound data exceeds the sound time length threshold value or not is judged, if yes, the home scene is proved, and the home environment mode is converted; otherwise, the business environment mode is converted. Because business scenarios are typically open for a relatively late time, it is difficult to obtain sound data that exceeds the sound duration threshold during the morning hours.
Similarly, if the business scene is on a rest day or a business stopping day, the music data acquisition duration acquired by the processing terminal of the lamplight door installed in the business scene on the day is easily smaller than the music duration threshold, at this moment, whether the sound data exceeds the sound duration threshold or not is judged, if so, the scene is proved to be a home scene, and the scene is converted into a home environment mode; otherwise, the business environment mode is converted. Because the business scene is a rest day or a business stopping day, voice data is not easy to generate in the afternoon period; whereas in a home environment it is easier to generate sound data in the afternoon for work or work.
Referring to fig. 1, in S300, a control rule corresponding to the environment mode is called, and when the music data and/or the voice data are/is acquired, corresponding lighting control data are called from a preset lighting control database based on the control rule, and lighting is controlled based on the lighting control data.
Wherein the control rules include business control rules corresponding to the business environment mode and home control rules corresponding to the home environment mode.
Referring to fig. 3, when the retrieved control rule is a business control rule, the step of retrieving the corresponding light control data from the preset light control database when the music data and/or the voice data are acquired based on the control rule includes:
and S311, judging the type of the music data according to the rhythm of the music data when the music data is acquired, and calling the corresponding type of light control data from the light control database.
When the music sensing program analyzes the sound data or the sound data, the music data is extracted, and the music data is generated by vibration feedback, namely after external sound is received by the sound sensor or the microphone, the vibration structure in the sound sensor or the microphone can vibrate, so that the voltage or the current in a circuit connected with the vibration structure is changed. The change process of the voltage or the current can be processed into a continuous analog signal by the music induction program, and the rhythm of the music data can be judged through the analog signal. The music type comprises a cheerful type, a peaceful type and a slow type, the classification of specific music is artificially determined, and the purpose is to control the light based on the light control data after the light control data corresponding to the music data type is called, so that the flickering rhythm of the light can be consistent with the rhythm of the music data.
And S312, when the voice data is acquired, recognizing the voice data, and calling corresponding light control data from the light control database based on the voice command generated after recognition.
The speech recognition technology is the prior art and is not described herein. In order to generate voice commands, a voice command database is preset. The voice instruction database is pre-stored with a plurality of voice model data and voice instructions corresponding to the voice model data one by one. Specifically, after the sound data is acquired, the sound data is compared with pre-stored voice model data, and if the sound data is the same as certain voice model data or the sound data contains certain voice model data, the sound data is regarded as voice data, and a corresponding voice command is called. The voice model data is, for example, to turn on an illumination lamp, turn on a flash, turn off the flash, switch the flash pattern, and the like.
Calling corresponding light control data from a light control database based on the voice command, for example: the generated voice command means that the lamplight mode is switched to the cheerful type lamplight mode, and any lamplight control data with the cheerful type is called from the lamplight control database.
And S313, after the music data are acquired and when the voice data are acquired, ignoring the voice data, judging the type of the music data according to the rhythm of the music data, and calling the corresponding type of light control data from the light control database.
It should be noted that, since there are many customers in a commercial scene, if music data is acquired first, corresponding light control data is called according to the music data. The voice data is then retrieved and ignored to prevent the customer from inadvertently or intentionally communicating the voice data. The music data is helpful for ensuring that the light is always changed along with the music data, and when the music data disappears, the light can be controlled according to the acquired voice data.
And S314, after the voice data is acquired and when the music data is acquired, judging the type of the music data according to the rhythm of the music data, and calling the corresponding type of light control data from the light control database.
Namely, the light is not controlled based on the voice data any more, but is controlled based on the music data instead.
Referring to fig. 4, when the retrieved control rule is the home control rule, based on the control rule, when the music data and/or the voice data are acquired, the step of retrieving the corresponding light control data from the preset light control database includes:
s321, when the music data is acquired, judging the type of the music data according to the rhythm of the music data, and calling the corresponding type of light control data from the light control database.
And S322, when the voice data is acquired, recognizing the voice data, and calling corresponding light control data from the light control database based on the voice command generated after recognition.
And S323, after the music data is acquired and when the voice data is acquired, recognizing the voice data, and calling the corresponding light control data from the light control database based on the voice command generated after recognition.
It is understood that since the light gate is installed in a home scene, belonging to a private space or an office, the voice data should be the main data, and the priority of the music data is lower than that of the voice data.
And S324, after the voice data are acquired, when the music data are acquired, ignoring the music data.
It is understood that the music data cannot be ignored forever, and the light control data corresponding to the music data is called from the light control database based on the music data after the voice command for adjusting the light according to the music data is received.
Referring to fig. 1, after controlling the light based on the light control data, the method further includes:
s400, monitoring the working time of each LED lamp.
The working time length is measured from the last time of electrifying the LED lamp, and the time is increased when the LED lamp is lighted once, wherein the increased time is equal to the time of continuously emitting light; stopping timing when the lamp is extinguished once, wherein the timing stopping time is equal to the extinguishing time; continuously superposing timing time before the whole lamp is not powered off; and after the whole lamp is powered off, stopping timing, and resetting the timing time to zero.
S500, when the working time of the LED lamp exceeds a preset working time threshold, corresponding light control data for reducing the working time of the corresponding LED lamp is called from the light control database.
For convenience of understanding, for example, the lamp comprises 10 LED lamps, the numbers of the 10 LED lamps are 1 to 10 in sequence, and the processing terminal starts to time the working time of each LED lamp after the lamp is powered on. If the No. 1 LED lamp is firstly turned on, the No. 1 LED lamp is continuously turned on for 10 seconds, the No. 2-10 LED lamp is continuously turned off for 10 seconds, then the No. 1 LED lamp is turned off for 5 seconds, and the No. 2-10 LED lamp is turned on for 5 seconds, thus completing a period. After the No. 1 LED lamp is turned on for 2 times, the working time of the No. 1 LED lamp is 20 seconds, and the working time of the No. 2-10 LED lamps is 5 seconds.
The working time threshold may be 30 minutes, 40 minutes or 60 minutes, which is intended to protect the LED lamp. When the working time of a certain LED lamp exceeds the working time threshold, the LED lamp is proved to have worked for at least the time with the working time threshold after the lamp is electrified, and at the moment, the LED lamp is easy to heat, so that the lamp filament is blown. Therefore, the corresponding light control data is called again from the light control database, and the working time of the LED lamp is shortened.
For the above example, the recalled light control data should reduce the operating time of the number 1 LED lamp relative to other LED lamps. For example, the newly-called light control data can be obtained by turning off the LED lamp No. 1 for 10 seconds and turning on the LED lamp No. 2-10 for 10 seconds in one period; then the No. 1 LED lamp is turned on for 5 seconds, and the No. 2-10 LED lamp is turned off for 5 seconds. The service life of the lamp is prolonged, the lamp has the function of automatically adjusting the working time of each LED lamp, and the intelligence of light control is improved.
After converting into the corresponding environment mode, the method further comprises the following steps:
when the environment mode is a commercial environment mode, the turn-on time and turn-off time of the lamp every day are stored.
Judging whether the lamp is started or not when the current time reaches the latest starting time;
if not, turning on the lamp;
when the current time reaches the latest closing time, judging whether the lamp is closed;
and if not, turning off the lamp.
Wherein, turning on the lamp means controlling the on-off of the power switch of the lamp; turning off the lamp means controlling the power-on switch of the lamp to be turned off.
The light control method further comprises the following steps:
and S10, acquiring door opening data transmitted by a preset door opening sensor.
The door opening sensor may be an infrared sensor, a distance sensor, a radar sensor, etc., aiming at being able to detect whether the light door is displaced. The door opening data can prove whether the light door is displaced or not.
And S20, controlling the preset illuminating lamp to be turned on when the door opening data is larger than the preset door opening threshold value.
The light is pre-installed on the light door, if the door opening data is larger than the door opening threshold value, the displacement of the light door is proved to reach a certain value, and the light door is proved to be opened at the moment. For example, a radar sensor is used as a door opening sensor, the radar sensor detects the distance between a lamplight door and a wall body, and door opening data detected by the radar sensor is zero when the lamplight door is in a closed state; when the light door is opened, and open certain angle, the data of opening the door that radar sensor detected is greater than the threshold value of opening the door, and processing terminal opens the light this moment, is convenient for illuminate the road for entering or going out.
And S30, controlling the lighting lamp to be turned off when the door opening data is less than or equal to the preset door opening threshold value.
It should be noted that steps S20 and S30 belong to parallel steps, and have no sequential execution relationship. If the condition in step S20 is satisfied, go to step S20; otherwise, step S30 is executed.
The implementation principle of the light control method of the light door in the embodiment of the application is as follows: after the processing terminal on the lamplight door starts to work, the environment where the processing terminal is located is automatically judged, and then the processing terminal is switched to a corresponding environment mode. And a control rule corresponding to the environment mode is called, corresponding light control data is automatically called according to the obtained music data and/or voice data, light is controlled, manual intervention is not needed, and the intelligence of light control is improved.
The embodiment of the application also discloses a light control system of the light door. Referring to fig. 5, the device includes an acquiring module 1 for acquiring sound data and music data; the switching module 2 is used for converting the sound data, the music data and the preset environment judgment condition into a corresponding environment mode; and the processing module 3 is used for calling a control rule corresponding to the environment mode, calling corresponding light control data from preset light control data when music data and/or voice data are obtained based on the control rule, and controlling light based on the light control data.
The embodiment of the application further discloses an intelligent terminal which comprises a memory and a processor, wherein the memory stores the light control program of the light door, and the processor is used for adopting the method when executing the light control program of the light door.
The embodiment of the application also discloses a storage medium which stores a computer program capable of being loaded by a processor and executing the method.
The above embodiments are preferred embodiments of the present application, and the protection scope of the present application is not limited by the above embodiments, so: all equivalent changes made according to the structure, shape and principle of the present application shall be covered by the protection scope of the present application.
Claims (10)
1. A light control method for a light door, comprising:
acquiring sound data and music data;
converting the sound data and/or the music data into a corresponding environment mode based on the preset environment judgment condition; the environment mode comprises a business environment mode and a home environment mode;
and calling a control rule corresponding to the environment mode, calling corresponding light control data from a preset light control database when music data and/or voice data are/is acquired based on the control rule, and controlling light based on the light control data.
2. A light control method of a light door according to claim 1, wherein the step of converting to a corresponding environment mode based on the sound data and/or the music data and a preset environment judgment condition comprises:
judging whether the acquisition time length of the music data in a preset total time length threshold value exceeds a preset music time length threshold value or not, and if the acquisition time length exceeds the music time length threshold value, converting the music data into a business environment mode;
and if the acquisition time does not exceed the music time threshold, converting into a home environment mode.
3. A light control method for a light door as claimed in claim 2, further comprising, after said obtaining duration exceeds said music duration threshold:
judging whether the sound data exceeding a preset sound duration threshold exist in the morning, if so, converting the sound data into a home environment mode, and otherwise, converting the sound data into a business environment mode;
after the obtaining duration does not exceed the music duration threshold, the method further includes:
and judging whether the sound data exceeding the sound duration threshold exist in the afternoon time period, if so, converting the sound data into a home environment mode, and otherwise, converting the sound data into a business environment mode.
4. A light control method for a light door as claimed in claim 1, wherein said control rules include a business control rule corresponding to said business environment model and a home control rule corresponding to said home environment model;
when the called control rule is a business control rule, the step of calling corresponding light control data from a preset light control database when music data and/or voice data are obtained based on the control rule comprises the following steps:
when the music data are acquired, judging the type of the music data according to the rhythm of the music data, and calling corresponding types of light control data from the light control database;
when the voice data is acquired, recognizing the voice data, and calling corresponding light control data from the light control database based on a voice instruction generated after recognition;
after the music data are obtained and when the voice data are obtained, the voice data are ignored, the type of the music data is judged according to the rhythm of the music data, and the corresponding type of light control data are called from the light control database;
after the voice data is acquired and the music data is acquired, judging the type of the music data according to the rhythm of the music data, and calling the corresponding type of light control data from the light control database;
when the control rule of transferring for the control rule at home, based on the control rule, when obtaining music data and/or voice data, transfer the step of corresponding light control data from the light control database of predetermineeing and include:
when the music data are acquired, judging the type of the music data according to the rhythm of the music data, and calling corresponding types of light control data from the light control database;
when the voice data is acquired, recognizing the voice data, and calling corresponding light control data from the light control database based on a voice instruction generated after recognition;
after the music data are acquired and the voice data are acquired, recognizing the voice data, and calling corresponding light control data from the light control database based on a voice instruction generated after recognition;
and after the voice data is acquired, when the music data is acquired, ignoring the music data.
5. A light control method for a light door as claimed in claim 1, further comprising, after said controlling light based on said light control data:
monitoring the working time of each LED lamp;
when the working time of the LED lamp exceeds a preset working time threshold, calling the corresponding light control data which reduces the working time of the LED lamp from the light control database;
and controlling the light based on the newly called light control data.
6. A light control method for a light door according to claim 1, characterized in that: the light control method further comprises the following steps:
acquiring door opening data transmitted by a preset door opening sensor;
when the door opening data are larger than a preset door opening threshold value, a preset illuminating lamp is controlled to be started;
and when the door opening data is less than or equal to a preset door opening threshold value, controlling the lighting lamp to be turned off.
7. A light control method for a light door as claimed in claim 1, further comprising, after said converting to a corresponding ambient mode:
when the environment mode is a commercial environment mode, storing the turn-on time and turn-off time of the lamp every day;
when the current time reaches the latest starting time, judging whether the lamp is started or not;
if not, turning on the lamp;
when the current time reaches the latest closing time, judging whether the lamp is closed;
and if not, turning off the lamp.
8. A light control system of light door which characterized in that: the device comprises an acquisition module (1) for acquiring sound data and music data;
the switching module (2) is used for converting the sound data, the music data and a preset environment judgment condition into a corresponding environment mode;
and the processing module (3) is used for calling a control rule corresponding to the environment mode, calling corresponding light control data from preset light control data when music data and/or voice data are obtained based on the control rule, and controlling light based on the light control data.
9. The utility model provides an intelligent terminal which characterized in that: the device comprises a memory and a processor, wherein a light control program of a light door is stored in the memory; the processor is adapted to use the method of any of claims 1-7 when executing a light control program for a light door.
10. A storage medium, characterized by: a computer program which can be loaded by a processor and which executes the method according to any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111307362.1A CN113873735B (en) | 2021-11-05 | 2021-11-05 | Lamplight control method and device for lamplight door, intelligent terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111307362.1A CN113873735B (en) | 2021-11-05 | 2021-11-05 | Lamplight control method and device for lamplight door, intelligent terminal and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113873735A true CN113873735A (en) | 2021-12-31 |
CN113873735B CN113873735B (en) | 2024-04-12 |
Family
ID=78987315
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111307362.1A Active CN113873735B (en) | 2021-11-05 | 2021-11-05 | Lamplight control method and device for lamplight door, intelligent terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113873735B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11924944B1 (en) * | 2021-10-12 | 2024-03-05 | Fourstar Group Inc. | System and method for voice-activated lighting control |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101536609A (en) * | 2006-10-31 | 2009-09-16 | 皇家飞利浦电子股份有限公司 | Control of light in response to an audio signal |
CN108476351A (en) * | 2015-11-20 | 2018-08-31 | 原生设计有限公司 | Illumination and audio system |
CN109905945A (en) * | 2017-12-08 | 2019-06-18 | 佛山市三水区鑫彦网络科技有限公司 | A kind of dance hall light intelligent control method |
CN110662110A (en) * | 2019-10-17 | 2020-01-07 | 深圳Tcl新技术有限公司 | Mode switching method of smart television, smart television and storage medium |
CN111387727A (en) * | 2020-03-11 | 2020-07-10 | 舒榻(厦门)智能科技有限公司 | Bedside cabinet with atmosphere lamp, control method and storage medium |
CN111667261A (en) * | 2020-06-11 | 2020-09-15 | 南通金阶玉槛网络科技有限公司 | Household wine cabinet with intelligent voice conversation function |
-
2021
- 2021-11-05 CN CN202111307362.1A patent/CN113873735B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101536609A (en) * | 2006-10-31 | 2009-09-16 | 皇家飞利浦电子股份有限公司 | Control of light in response to an audio signal |
CN108476351A (en) * | 2015-11-20 | 2018-08-31 | 原生设计有限公司 | Illumination and audio system |
CN109905945A (en) * | 2017-12-08 | 2019-06-18 | 佛山市三水区鑫彦网络科技有限公司 | A kind of dance hall light intelligent control method |
CN110662110A (en) * | 2019-10-17 | 2020-01-07 | 深圳Tcl新技术有限公司 | Mode switching method of smart television, smart television and storage medium |
CN111387727A (en) * | 2020-03-11 | 2020-07-10 | 舒榻(厦门)智能科技有限公司 | Bedside cabinet with atmosphere lamp, control method and storage medium |
CN111667261A (en) * | 2020-06-11 | 2020-09-15 | 南通金阶玉槛网络科技有限公司 | Household wine cabinet with intelligent voice conversation function |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11924944B1 (en) * | 2021-10-12 | 2024-03-05 | Fourstar Group Inc. | System and method for voice-activated lighting control |
Also Published As
Publication number | Publication date |
---|---|
CN113873735B (en) | 2024-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110167243B (en) | Intelligent lamp control method, device and system and computer readable storage equipment | |
CN107919121B (en) | Control method and device of intelligent household equipment, storage medium and computer equipment | |
CN106163041A (en) | Voice light fixture ON-OFF control circuit | |
CN110049606B (en) | Lamp control method, device and system and computer readable storage medium | |
CN110891352B (en) | Control method and control system for intelligent lamp | |
CN111766795A (en) | Intelligent home master control system and method based on Internet of things | |
CN106922058B (en) | Control method, the device and system of lamps and lanterns | |
CN113873735A (en) | Lamplight control method and device for lamplight door, intelligent terminal and storage medium | |
CN109041377A (en) | A kind of lighting control system and method, a kind of intelligent terminal | |
CN114120996A (en) | Voice interaction method and device | |
CN107087326A (en) | A kind of Intelligent indoor lamp lighting system | |
CN110500721A (en) | A kind of air-conditioning sound control method, device and air conditioner | |
CN111610724A (en) | Intelligent household intelligent equipment control method, device, equipment and storage medium | |
CN111897236A (en) | Intelligent home system controlled through perception | |
CN114845442A (en) | Intelligent illumination method and device based on desk lamp, desk lamp and storage medium | |
CN110543103A (en) | Automatic control method for smart home | |
CN111818713A (en) | Intelligent room multi-correlation light control method based on user physiological characteristics | |
CN208273311U (en) | A kind of office building headlamp energy-saving management system | |
CN110113233B (en) | Smart home lighting system control method, system and storage medium | |
CN112034727A (en) | Smart scene-based home equipment management method and smart home control device | |
CN105676651A (en) | Smart home control method and smart home control system | |
CN111654956A (en) | Control method and device of sleep lamp, sleep lamp and storage medium | |
CN116634633A (en) | Intelligent sound control indoor lighting system | |
JP7018570B2 (en) | Lighting control system, lighting control method, and program | |
US20230247743A1 (en) | Determining a location for a presence sensor or light switch based on a control history |
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 |