CN113873735B - 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 PDF

Info

Publication number
CN113873735B
CN113873735B CN202111307362.1A CN202111307362A CN113873735B CN 113873735 B CN113873735 B CN 113873735B CN 202111307362 A CN202111307362 A CN 202111307362A CN 113873735 B CN113873735 B CN 113873735B
Authority
CN
China
Prior art keywords
data
light control
light
music
acquired
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
CN202111307362.1A
Other languages
Chinese (zh)
Other versions
CN113873735A (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.)
Hangzhou Gujia Custom Home Co ltd
Original Assignee
Hangzhou Gujia Custom Home 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 Hangzhou Gujia Custom Home Co ltd filed Critical Hangzhou Gujia Custom Home Co ltd
Priority to CN202111307362.1A priority Critical patent/CN113873735B/en
Publication of CN113873735A publication Critical patent/CN113873735A/en
Application granted granted Critical
Publication of CN113873735B publication Critical patent/CN113873735B/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/105Controlling the light source in response to determined parameters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/683Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • 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/50Circuit arrangements for operating light-emitting diodes [LED] responsive to malfunctions or undesirable behaviour of LEDs; responsive to LED life; Protective circuits
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Landscapes

  • Engineering & Computer Science (AREA)
  • 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 lamplight control method, a lamplight control device, an intelligent terminal and a storage medium, and relates to the field of lamplight control; based on the sound data and/or the music data and preset environment judgment conditions, converting into a corresponding environment mode; the environmental modes include a business environmental mode and a home environmental 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 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 environment mode and light control data, need not manual regulation or setting, improved light control's intelligent.

Description

Lamplight control method and device for lamplight door, intelligent terminal and storage medium
Technical Field
The present invention relates to the field of light control, and in particular, to a light control method and apparatus for a light gate, 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 a higher quality of service and life experience are more required. To meet this demand, some furniture manufacturers have installed LED lights on cabinets, tables and chairs that enable the furniture to provide a different use experience when in use than conventional furniture. Especially for furniture of specific scenes, such as bars, pubs or meeting rooms, color lamps are arranged on wine cabinets or doors to bake the atmosphere, so that the activity experience is improved.
In the related art, a control mode of lamplight on a lamplight door is usually manually adjusted by a worker, namely, a lamplight control switch on the lamplight door is arranged in a corresponding room, and the lamplight on the lamplight door is controlled to be turned on, turned off, switched in a mode and the like through a touch switch.
Aiming at the related technology, the inventor considers that each time the lamp light pattern needs to be changed, a manual touch switch is needed, the manual operation is performed, and the lamp light control mode is not intelligent enough.
Disclosure of Invention
In order to facilitate improvement of 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 present application provides a light control method for a light door, which adopts the following technical scheme:
a light control method of a light door, comprising:
acquiring sound data and music data;
based on the sound data and/or the music data and preset environment judgment conditions, converting into a corresponding environment mode; the environmental modes include a business environmental mode and a home environmental 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 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 lamp light door can automatic choice environment mode, then according to different environment modes, uses different control rules, retrieves prestored light control data, controls the light on the lamp light door. On the one hand, the lamplight door is provided with two environment modes, so that two control rules are corresponding, the lamplight door can automatically select more proper lamplight control data according to the environment, the use experience of the lamplight door is improved, the environment modes are not required to be manually selected, and the intelligence of lamplight control on the lamplight door is improved; on the other hand, the light control data are automatically selected by the processing terminal based on the control rules and the music data and/or the voice data, so that the intelligence of light control is improved.
Optionally, 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 includes:
judging whether the acquired time length of the music data in a preset total time length threshold exceeds a preset music time length threshold, and if the acquired time length exceeds the music time length threshold, converting into a business environment mode;
and if the acquired time length does not exceed the music time length threshold value, converting into a household environment mode.
By adopting the technical scheme, the duration of continuously acquiring the music data in the business environment is longer than that in the office or home environment, and the environment mode is converted according to the duration of the music data in the total duration threshold, so that the accuracy of the converted environment mode is improved.
Optionally, after the acquired time period exceeds the music time period threshold, the method further includes:
judging whether the sound data exceeding a preset sound duration threshold exists in the morning period, if so, converting into a home environment mode, otherwise, converting into a business environment mode;
after the acquired time period does not exceed the music time period threshold value, the method further comprises:
and judging whether the sound data exceeding the sound duration threshold value exists in the afternoon period, if so, converting into a home environment mode, and otherwise, converting into a business environment mode.
By adopting the technical scheme, if a family party or an office is active, the acquisition time of the processing terminal installed on a lamp light door in the family or the office exceeds the music time threshold, and the judgment accuracy of the environment mode is reduced by converting the processing terminal into the business 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 a sound duration threshold value or not; since the midday period on the commercial scene is usually not open, if the sound duration threshold is not exceeded, it is verified that the commercial environment mode should be.
Similarly, if a certain day of a commercial scene such as a pub or a KTV is closed and has a rest, and the business is not yet performed, the acquisition time of a processing terminal installed on a light door of the commercial scene does not exceed a music time threshold, and the judgment accuracy of the environmental mode is reduced when the processing terminal is converted into a household environmental 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 a sound duration threshold value; because the business scene is not operated, the voice data can not be obtained for a long time in the afternoon period, and the business environment mode is converted when the voice data is not exceeded, 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 the corresponding type of light control data from the light control database;
when the voice data are acquired, after the voice data are identified, corresponding light control data are called from the light control database based on voice instructions generated after the voice data are identified;
when the voice data are acquired after the music 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 light control data of the corresponding type from the light control database;
judging the type of the music data according to the rhythm of the music data when the music data is acquired after the voice data is acquired, and calling the light control data of the corresponding type from the light control database;
when the called control rule is a home 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 the corresponding type of light control data from the light control database;
when the voice data are acquired, after the voice data are identified, corresponding light control data are called from the light control database based on voice instructions generated after the voice data are identified;
when the music data are acquired and the voice data are acquired, the voice data are identified, and corresponding light control data are called from the light control database based on voice instructions generated after the identification;
and when the music data is acquired after the voice data is acquired, the music data is ignored.
By adopting the technical scheme, when the control rule is a business control rule, the environment mode is proved to be a 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 higher 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 a house control rule, the installation environment of the light gate is proved to be a house or an office, and the control priority of the voice data is higher than that of the music data, so that the light control data of the light gate is easier to be controlled by a user. The use convenience of the lamp light door and the intelligence of the lamp 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, corresponding light control data for reducing the working time of the LED lamp is called from the light control database;
and controlling the light based on the newly-called light control data.
Through adopting above-mentioned technical scheme, monitor each LED lamp on the lamp light door, if the light control data that uses at present makes certain or some LED lamps bright often, make the operating time of bright LED lamp more than operating time threshold value, retrieve the light control data that corresponds with music data and/or voice data this moment again, make the operating time of bright LED lamp be shorter than other LED lamps, help only to protect the LED lamp, prolong the life of LED lamp.
Optionally, the light control method further includes:
acquiring door opening data transmitted by a preset door opening sensor;
when the door opening data is larger than a preset door opening threshold value, a preset lighting lamp is controlled to be started;
and when the door opening data is smaller 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 the door data and give processing terminal, processing terminal opens or close for the user through the lamp light door lights the way based on the light that opens the door data control and presets, helps improving the use comfort and the light control's of lamp light door intelligent.
Optionally, after the converting to the corresponding environment mode, the method further includes:
storing the on time and the off time of the lamp per day when the environment mode is a commercial environment mode;
judging whether the lamp is started or not when the current time reaches the latest starting time;
if not, starting the lamp;
judging whether the lamp is turned off or not when the current time reaches the latest turn-off time;
and if not, closing the lamp.
By adopting the technical scheme, the lamp is intelligently turned on or off based on the stored on time and off time, so that the intelligence of light control is improved.
In a second aspect, the present application provides a light control system for a light door, which adopts the following technical scheme:
a lamplight control system of a lamplight 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 preset environment judgment conditions into corresponding environment modes;
and the processing module is used for retrieving the control rule corresponding to the environment mode, retrieving corresponding light control data from preset light control data when music data and/or voice data are acquired based on the control rule, and controlling light based on the light control data.
By adopting the technical scheme, the installation environment of the light door is judged by utilizing a certain time, so that the light door is converted into a corresponding environment mode, and then under the corresponding environment mode, the corresponding light control data is called in combination with the music data and/or the voice data in the installation environment to control the light pattern on the light door. On the one hand, after the lamplight door is put into use, the installation environment is intelligently judged without manually selecting an environment mode, so that the intelligence of lamplight control is improved; on the other hand, after the environment mode is determined, corresponding light control data can be called based on music data and/or voice data of the installation environment, light is controlled, manual participation is not needed, and the intelligent light control is improved.
In a third aspect, the present application provides an intelligent terminal that 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 lamplight control method can be adopted when the lamplight control program of the lamplight door is executed, and the intelligent of lamplight control is improved.
In a fourth aspect, a storage medium provided in the present application adopts the following technical scheme:
a storage medium storing a computer program capable of being loaded by a processor and executing the above method.
By adopting the technical scheme, the lamplight program of the lamplight door is stored, so that the intelligent of lamplight control is improved.
In summary, first, after the processing terminal on the lamplight door is started, the environment is judged according to the acquired sound data and/or music data, and then the environment is converted into the corresponding environment mode, so that the lamplight door does not need to manually adjust the environment mode when in use, and the intelligence of lamplight control is improved.
And secondly, the processing terminal invokes corresponding light control data based on the acquired music data and/or voice data, so that the light is controlled, manual participation is not needed, and the intelligence of light control is improved.
Drawings
Fig. 1 is an overall flowchart of a light control method of a light gate according to an embodiment of the present application.
Fig. 2 is a flowchart of step S200 in a light control method of a light gate according to an embodiment of the present application.
Fig. 3 is a flowchart of step S300 in a light control method of a light gate according to an embodiment of the present application.
Fig. 4 is another flowchart of step S300 in a light control method of a light gate according to an embodiment of the present application.
Fig. 5 is a block diagram of a lamplight control system of a lamplight door according to an embodiment of the application.
Reference numerals illustrate:
1. an acquisition module; 2. a switching module; 3. and a processing module.
Detailed Description
The embodiment of the application discloses a lamplight control method of a lamplight door. The lamp 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 lamp light door and used for controlling the lamplight of the lamp, the lamplight of the lamp emits light of different types, and a door plate of the lamp light door can be an aluminum frame door. Referring to fig. 1, the light control method of the light door includes:
s100, acquiring sound data and music data.
The sound sensor is preinstalled on the lamplight door and used for acquiring sound data near the lamplight door; the range near the light gate is determined specifically based on the detection range of the sound sensor, and if the sound sensor can detect sound within 1 meter of the square circle, the space within 1 meter of the square circle of the sound sensor is near the light gate. The processing terminal is provided with a music induction program and is electrically connected with the sound sensor or the pre-installed microphone; when the processing terminal is electrically connected with the sound sensor, acquiring sound data in the sound sensor, and analyzing whether the sound data contains music data or not by utilizing a music induction program; if so, extracting music data. When the processing terminal is electrically connected with the microphone, the microphone transmits the detected sound data to the processing terminal, and the music induction program analyzes the sound data to obtain music data.
It should be noted that, the technology of identifying the listening song in the prior art is quite mature, so the process of extracting the music data from the sound data or the sound data is not repeated.
S200, converting into a corresponding environment mode based on the sound data, the music data and the preset environment judgment conditions.
Specifically, the environmental modes include a business environmental mode and a home environmental mode. Referring to fig. 2, step S200 includes:
s210, judging whether the acquired time length of the music data in the preset total time length threshold exceeds the preset music time length threshold.
The total duration threshold may be 24 hours or 48 hours, or may be 12 hours or 6 hours; specifically, the larger the value of the total duration threshold is, the higher the accuracy of the judgment of the processing terminal is, and the setting can be performed according to specific situations. The music duration threshold is set according to the specific situation and is smaller than the total duration 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 example scenario, the processing terminal clocks the music data when it obtains the music data. If the music data is obtained discontinuously, the music data can be obtained at the whole of 10 am for 10 minutes, and again obtained at the last 10 minutes for 30 minutes, and the duration of 10 minutes, the timing time of the music data is the added value of two sections and is 20 minutes. The time counting time is the acquisition duration of the music data.
S211, judging whether sound data exceeding a preset sound duration threshold exist in the morning period or not if the acquired duration exceeds the music duration threshold; if yes, go to step S211.1; otherwise, step S211.2 is performed.
The morning time period refers to 6-12 points in a 24-hour time calculation mode. Whether the sound data exceeds the sound duration threshold specifically refers to the acquisition duration of the sound data, and is the same as that of 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 60 minutes, and the processing terminal counts the duration of the acquired sound data when the current time is in the morning period. And when the morning period is over, comparing the duration of the sound data with a sound duration threshold value, and judging the size to obtain whether the sound data exceeds the sound duration threshold value.
S211.1, converting into a home environment mode.
S211.2, converting to a business environment mode.
S212, if the acquired time length does not exceed the music time length threshold value, judging whether sound data exceeding the sound time length threshold value exist in the afternoon time period; if yes, go to step S212.1; otherwise, step S212.2 is performed.
The afternoon time period refers to 12-18 points in a 24-hour time calculation mode.
It should be noted that, the environmental modes in this embodiment include two types, which respectively correspond to a business scenario and a home scenario. Commercial scenes refer to the scenes such as a pub, a KTV and a restaurant, namely, a light door is arranged in the pub, the KTV or the restaurant; the home scene refers to a scene such as a residential building, a villa, an office and the like, namely, a lamplight door is arranged in a home or an office.
Since the time for playing music daily in the commercial scene is generally longer than the time for playing music daily in the home scene, the processing terminal can also determine the environment in which the light gate is located only through step S210. Specifically, in one embodiment, after step S210, if the acquired duration of the music data exceeds the music duration threshold, the method transitions to the business environment mode; otherwise, converting to a home environment mode.
But steps S211 and S212 are added considering that the business scenario has a holiday or a stop business day, and the home scenario has a meeting day or an activity day. If the house scene is located on a gathering day or an activity day, the music data acquisition time length obtained by a processing terminal of a lamplight door arranged in the house scene on the same day easily exceeds a music time length threshold, judging whether sound data exceeds the sound time length threshold in the morning or not, if so, proving the house scene to be the house scene, and converting the house scene into a house environment mode; otherwise, converting to a business environment mode. Because commercial scenes typically have late business hours, it is difficult for sound data obtained during the morning hours to exceed the sound duration threshold.
Similarly, if the business scene is on a rest day or stops business day, the music data acquisition time length obtained by the processing terminal of the lamplight gate arranged in the business scene on the same day is easily smaller than the music time length threshold value, at the moment, whether the sound data exceeds the sound time length threshold value in the afternoon period is judged, if so, the business scene is proved to be a home scene, and the business scene is converted into a home environment mode; otherwise, converting to a business environment mode. Because the business scene is a holiday or a stop business day, sound data is not easy to generate in the afternoon period; while the home environment is more likely to produce sound data during the afternoon for work or work hours.
Referring to fig. 1, S300, a control rule corresponding to an environmental mode is invoked, and when music data and/or voice data are acquired based on the control rule, corresponding light control data are invoked from a preset light control database, and light is controlled based on the light control data.
Wherein the control rules include business control rules corresponding to business environmental patterns and home control rules corresponding to home environmental patterns.
When the called control rule is a business control rule, referring to fig. 3, based on the control rule, when music data and/or voice data are obtained, the step of calling corresponding light control data from a preset light control database 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 sound data or 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 voltage or current changing process is processed by the music induction program into a continuous analog signal, and the rhythm of the music data can be judged through the analog signal. The types of music comprise cheerful, peace and slowness, the classification of specific music is manually determined, and the aim is to make the flickering rhythm of the light consistent with the rhythm of the music data by controlling the light based on the light control data after the light control data corresponding to the types of the music data are called.
S312, when voice data are acquired, the voice data are identified, and then corresponding light control data are called from a light control database based on voice instructions generated after the identification.
The voice recognition technology is the prior art, and is not described herein. In order to be able to generate voice instructions, a voice instruction database is preset. The voice command database is pre-stored with a plurality of voice model data and voice commands corresponding to the voice model data one by one. The voice data is converted from voice data, specifically, after the voice data is obtained, the voice data is compared with pre-stored voice model data, if the voice data is the same as a certain voice model data or the voice data contains a certain voice model data, the voice data is regarded as voice data, and a corresponding voice command is called. The voice model data is, for example, turning on the illumination lamp, turning on the flash, turning off the flash, switching the flash pattern, etc.
And calling corresponding light control data from the light control database based on the voice command, for example: the generated voice command means to switch into a cheerful light pattern, and any light control data with the cheerful type is called from the light control database.
S313, when the voice data are acquired after the music data are acquired, 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.
It should be noted that, since many customers are in the business scenario, if the music data is acquired first, the corresponding light control data will be called according to the music data. The voice data is then retrieved, and is ignored in order to prevent the voice data from being inadvertently or intentionally communicated by the customer. The method is helpful for ensuring that the lamplight always changes along with the music data, and the lamplight can be controlled according to the acquired voice data after the music data disappear.
S314, judging the type of the music data according to the rhythm of the music data when the music data is acquired after the voice data is acquired, and calling the corresponding type of the light control data from the light control database.
I.e. the light is no longer controlled based on speech data, but instead based on music data.
Referring to fig. 4, when the retrieved control rule is a home control rule, based on the control rule, when music data and/or voice data are obtained, the step of retrieving corresponding light control data from a preset light control database includes:
s321, judging the type of the music data according to the rhythm of the music data when the music data are acquired, and calling the corresponding type of the light control data from the light control database.
S322, when voice data are acquired, the voice data are identified, and then corresponding light control data are called from a light control database based on voice instructions generated after the identification.
S323, when music data are acquired and voice data are acquired, the voice data are identified, and corresponding light control data are called from a light control database based on voice instructions generated after the identification.
It is to be understood that, since the light door is installed in a home scene, it belongs to a private space or an office, and voice data should be the main priority of music data at this time, which is lower than the priority of voice data.
S324, when music data is acquired after voice data is acquired, the music data is ignored.
It will be appreciated that the music data cannot be ignored forever, and after a voice command for adjusting the light according to the music data is received, the light control data corresponding to the music data is called from the light control database based on the music data.
Referring to fig. 1, after controlling the light based on the light control data, further comprising:
s400, monitoring the working time of each LED lamp.
The working time is counted from the last power on of the LED lamp, the counting time is increased when the LED lamp is turned on once, and the increased counting time is equal to the continuous lighting time; stopping timing when the timer is turned off once, wherein the time for stopping timing is equal to the turning-off time; continuously superposing timing time before the whole lamp is not powered off; and stopping timing after the whole lamp is powered off, and returning 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 a light control database; and S600, controlling the light based on the newly-called light control data.
For easy understanding, for example, the lamps comprise 10 LED lamps, the numbers of the 10 LED lamps are sequentially 1-10, and the processing terminal starts to time the working time of each LED lamp after the lamps are electrified. If the LED lamp No. 1 is firstly lighted, the LED lamp No. 1 is continuously lighted for 10 seconds, the LED lamp No. 2-10 is continuously extinguished for 10 seconds, then the LED lamp No. 1 is extinguished for 5 seconds, and the LED lamp No. 2-10 is lighted for 5 seconds, so that one period is completed. And after the LED lamp No. 1 is lighted for 2 times, the working time of the LED lamp No. 1 is 20 seconds, and the working time of the LED lamps No. 2-10 is 5 seconds.
The working time threshold may be 30 minutes, 40 minutes or 60 minutes, aiming at protecting the LED lamp. Because when the working time of a certain LED lamp exceeds the working time threshold, the LED lamp is proved to work for at least the time with the working time threshold after the lamp is electrified, and the LED lamp is easy to generate heat at the moment, so that the filament is blown. Therefore, the corresponding light control data is called in the light control database again, and the working time of the LED lamp is reduced.
In the above example, the recalled light control data should reduce the operating time of LED lamp No. 1 relative to other LED lamps. For example, the recalled light control data may cause the LED lamp No. 1 to go off for 10 seconds and the LED lamp No. 2-10 to go on for 10 seconds in one cycle; and then the LED lamp No. 1 is turned on for 5 seconds, and the LED lamps No. 2-10 are turned off for 5 seconds. The LED lamp has the advantages that 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 conversion to the corresponding environment mode, further comprising:
when the environmental mode is a commercial environmental mode, the on-time and off-time of the light fixtures per day are stored.
Judging whether the lamp is started or not when the current time reaches the latest starting time;
if not, the lamp is started;
judging whether the lamp is turned off or not when the current time reaches the latest turn-off time;
and if not, closing the lamp.
Wherein, turning on the lamp means controlling the on-off of the power switch of the lamp; closing the lamp means controlling the on-switch of the lamp to be turned off.
The light control method further comprises the following steps:
s10, door opening data transmitted by a preset door opening sensor are obtained.
The door opening sensor can be an infrared sensor, a distance sensor, a radar sensor and the like, and is aimed at detecting whether the lamplight door is displaced. The door opening data can prove whether the lamplight door is displaced or not.
And S20, when the door opening data is larger than a preset door opening threshold value, controlling a preset lighting lamp to be turned on.
The light is installed on the light door in advance, if the data of opening the door is greater than the threshold value of opening the door, it is proved that the displacement of light door reaches a certain value, and at this moment, it is proved that the light door is opened. For example, a radar sensor is used as a door opening sensor, the radar sensor detects the distance between the lamplight door and the wall, and when the lamplight door is in a closed state, door opening data detected by the radar sensor is zero; when the lamplight door is opened and a certain angle is reached, the door opening data detected by the radar sensor is larger than the door opening threshold value, and the processing terminal is started to illuminate a road for a person entering or exiting the door.
And S30, controlling the lighting lamp to be turned off when the door opening data is smaller than or equal to a preset door opening threshold value.
It should be noted that steps S20 and S30 belong to parallel steps, and are not sequentially executed. If the condition in step S20 is satisfied, step S20 is executed; otherwise, step S30 is performed.
The implementation principle of the lamplight control method of the lamplight door of the embodiment of the application is as follows: after the processing terminal on the lamp light door starts working, the environment is automatically judged, and then the processing terminal is switched into a corresponding environment mode. And the control rules corresponding to the environment modes are called, and the corresponding light control data is called automatically according to the acquired music data and/or voice data to control the light, so that manual intervention is not needed, and the intelligence of light control is improved.
The embodiment of the application also discloses a lamplight control system of the lamplight door. Referring to fig. 5, an acquisition module 1 for acquiring sound data and music data is included; a switching module 2, configured to convert to a corresponding environmental mode based on the sound data and the music data and a preset environmental judgment condition; and the processing module 3 is used for retrieving the control rule corresponding to the environment mode, retrieving corresponding light control data from preset light control data when music data and/or voice data are acquired based on the control rule, and controlling the light based on the light control data.
The embodiment of the application also discloses an intelligent terminal, which comprises a memory and a processor, wherein the memory stores a 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 foregoing are all preferred embodiments of the present application, and are not intended to limit the scope of the present application in any way, therefore: all equivalent changes in structure, shape and principle of this application should be covered in the protection scope of this application.

Claims (8)

1. A method of controlling light of a light door, comprising:
acquiring sound data and music data;
based on the sound data and/or the music data and preset environment judgment conditions, converting into a corresponding environment mode; the environmental modes include a business environmental mode and a home environmental mode;
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 acquired based on the control rule, and controlling light based on the light control data;
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 includes:
judging whether the acquired time length of the music data in a preset total time length threshold exceeds a preset music time length threshold, and if the acquired time length exceeds the music time length threshold, converting into a business environment mode;
if the acquired time length does not exceed the music time length threshold value, converting into a household environment mode;
after the acquired time length exceeds the music time length threshold value, the method further comprises:
judging whether the sound data exceeding a preset sound duration threshold exists in the morning period, if so, converting into a home environment mode, otherwise, converting into a business environment mode;
after the acquired time period does not exceed the music time period threshold value, the method further comprises:
and judging whether the sound data exceeding the sound duration threshold value exists in the afternoon period, if so, converting into a home environment mode, and otherwise, converting into a business environment mode.
2. A light control method of a light gate according to claim 1, wherein 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 the corresponding type of light control data from the light control database;
when the voice data are acquired, after the voice data are identified, corresponding light control data are called from the light control database based on voice instructions generated after the voice data are identified;
when the voice data are acquired after the music 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 light control data of the corresponding type from the light control database;
judging the type of the music data according to the rhythm of the music data when the music data is acquired after the voice data is acquired, and calling the light control data of the corresponding type from the light control database;
when the called control rule is a home 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 the corresponding type of light control data from the light control database;
when the voice data are acquired, after the voice data are identified, corresponding light control data are called from the light control database based on voice instructions generated after the voice data are identified;
when the music data are acquired and the voice data are acquired, the voice data are identified, and corresponding light control data are called from the light control database based on voice instructions generated after the identification;
and when the music data is acquired after the voice data is acquired, the music data is ignored.
3. A light control method of a light gate according to claim 1, characterized by 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, corresponding light control data for reducing the working time of the LED lamp is called from the light control database;
and controlling the light based on the newly-called light control data.
4. A light control method of a light door as defined in claim 1, wherein: 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 is larger than a preset door opening threshold value, a preset lighting lamp is controlled to be started;
and when the door opening data is smaller than or equal to a preset door opening threshold value, controlling the lighting lamp to be turned off.
5. A light control method of a light gate according to claim 1, further comprising, after said converting to a corresponding ambient mode:
storing the on time and the off time of the lamp per day when the environment mode is a commercial environment mode;
judging whether the lamp is started or not when the current time reaches the latest starting time;
if not, starting the lamp;
judging whether the lamp is turned off or not when the current time reaches the latest turn-off time;
and if not, closing the lamp.
6. A light control system for a light door, applied to a light control method for a light door as claimed in any one of claims 1 to 5, characterized in that: comprises an acquisition module (1) for acquiring sound data and music data;
a switching module (2) for switching to a corresponding environment mode based on the sound data and the music data and a preset environment judgment condition;
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 acquired based on the control rule, and controlling light based on the light control data.
7. An intelligent terminal, its characterized in that: the system comprises a memory and a processor, wherein the memory stores a light control program of a light door; the processor is configured to employ the method of any one of claims 1-5 when executing a light control program for a light gate.
8. A storage medium, characterized by: a computer program stored which can be loaded by a processor and which performs the method according to any of claims 1-5.
CN202111307362.1A 2021-11-05 2021-11-05 Lamplight control method and device for lamplight door, intelligent terminal and storage medium Active CN113873735B (en)

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 CN113873735A (en) 2021-12-31
CN113873735B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (6)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN113873735A (en) 2021-12-31

Similar Documents

Publication Publication Date Title
US11696382B2 (en) Measuring lighting levels using a visible light sensor
US6888323B1 (en) Light management system device and method
US7405524B2 (en) Light management system device and method
CN106163041A (en) Voice light fixture ON-OFF control circuit
JP6290373B2 (en) Daylight daylighting system to prevent unauthorized changes
CN113873735B (en) Lamplight control method and device for lamplight door, intelligent terminal and storage medium
CN111766795A (en) Intelligent home master control system and method based on Internet of things
CN104869696A (en) Intelligent energy-saving household illuminating lamp
CN109661634A (en) Control system
CN108696969A (en) Intellectualized LED lamp system based on voice control and control method
KR20180026187A (en) Lighting apparatus having wake-up and sleep inducing function
CN106922058B (en) Control method, the device and system of lamps and lanterns
CN107087326A (en) A kind of Intelligent indoor lamp lighting system
CN111897236A (en) Intelligent home system controlled through perception
CN115052399A (en) Workshop illumination control system, method, equipment and storage medium
CN110543103A (en) Automatic control method for smart home
CN111654956B (en) Control method and device of sleep lamp, sleep lamp and storage medium
CN113329549A (en) Night lamp control method
CN110113233B (en) Smart home lighting system control method, system and storage medium
CN208273311U (en) A kind of office building headlamp energy-saving management system
CN112333901B (en) Lamps and lanterns that can follow automatically and provide fixed point illumination based on thing networking characteristic
CN114222392A (en) System and method for adaptively adjusting brightness of mining lamp
CN103968504B (en) Loading equipment control method and system
CN208705689U (en) A kind of device and system of the control of intelligent terminal based on multisensor
JP6956508B2 (en) Lighting control device and lighting control system

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