Summary of the invention
In view of this, the first purpose of the embodiment of the present invention is, a kind of light emitting device and its exchange method, electronics are proposed
Equipment, storage medium can solve the problems, such as that the decision logic of light emitting device in the prior art is single to a certain extent.
Based on above-mentioned purpose, the first aspect of the embodiment of the present invention provides a kind of exchange method of light emitting device, packet
It includes:
Obtain the liveness of the liveness factor;Wherein, the liveness factor is selected from least one of following parameter: when
Preceding time, light intensity, weather conditions, current time are apart from the time interval that last time interacts, the use in the default interaction period
Duration;
Active state is determined according to the liveness of the liveness factor;
Receive interactive operation instruction;
In conjunction with interactive operation instruction and the active state, required illumination effect is determined;
According to the illumination effect, exports light emitting control instruction and shone with controlling the light emitting device.
Optionally, in the step of liveness for obtaining the liveness factor, the liveness factor of acquisition, which includes at least, to be worked as
Use duration in the time interval and default interaction period of preceding time gap last time interaction.
Optionally, the liveness factor of acquisition further includes light intensity.
Optionally, the light emitting device further includes sounding device;The exchange method further include:
In conjunction with interactive operation instruction and the active state, required sound effect is determined;
According to the sound effect, sounding control instruction is exported to control the sounding device sounding.
Optionally, the light emitting device further includes infrared sensor module, brightness sensing module and pickup module;
The reception interactive operation instruction, comprising:
Receive the data of the infrared sensor module, brightness sensing module and/or pickup module acquisition;
According to the data that the infrared sensor module, brightness sensing module and/or pickup module acquire, the interaction is determined
Operational order.
Optionally, the method also includes:
If the infrared sensor module, brightness sensing module and pickup module do not collect data, the illumination effect and
Sound effect is determined according to the active state.
Optionally, the method also includes:
If the brightness data of the brightness sensing module acquisition is lower than the first luminance threshold, and the infrared sensor module is adopted
The infrared data of collection is in preset range, it is determined that the interactive operation instruction is voice wake up instruction, and starts voice friendship
Mutually;
Alternatively, if the voice data of pickup module acquisition is detected wake-up word, it is determined that the interactive operation refers to
Enabling is voice wake up instruction, and starts interactive voice.
Optionally, after starting interactive voice, further includes:
In conjunction with the voice wake up instruction and the active state, required illumination effect is determined to wake up light efficiency;
According to the wake-up light efficiency, exports light emitting control instruction and shone with controlling the light emitting device.
Optionally, the method also includes:
Determine whether the current time is in sleep period;
If the current time is in sleep period, the brightness data of the brightness sensing module acquisition is bright lower than second
Threshold value is spent, and receives instruction of turning on light, then the illumination effect is mini light night effect, and according to the mini light night effect, output
Light emitting control instruction is shone with controlling the light emitting device.
The second aspect of the embodiment of the present invention provides a kind of light emitting device, comprising:
Interaction trigger unit, for receiving interactive operation instruction;
Luminescence unit shines for being instructed according to light emitting control;
Processing unit is configured as:
Obtain the liveness of at least two liveness factors;Wherein, the liveness factor is selected from: current time, light
Intensity, weather conditions, current time are apart from the time interval that last time interacts, the use duration in the default interaction period;
Active state is determined according to the liveness of at least two liveness factor;
In conjunction with interactive operation instruction and the active state, required illumination effect is determined;
According to the illumination effect, exports light emitting control instruction and shone with controlling the luminescence unit.
Optionally, the light emitting device further includes phonation unit, for according to sounding control instruction sounding;
The processing unit, is configured as:
In conjunction with interactive operation instruction and the active state, required sound effect is determined;
According to the sound effect, sounding control instruction is exported to control the phonation unit sounding.
Optionally, the interactive trigger unit includes infrared sensor module, brightness sensing module and pickup module;
The processing unit, is configured as:
Receive the data of the infrared sensor module, brightness sensing module and/or pickup module acquisition;
According to the data that the infrared sensor module, brightness sensing module and/or pickup module acquire, the interaction is determined
Operational order.
In terms of the third of the embodiment of the present invention, a kind of electronic equipment is provided, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by one processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out the method as described in preceding any one.
4th aspect of the embodiment of the present invention, provides a kind of computer-readable storage medium for being stored with computer program
Matter, wherein the computer program realizes the step of aforementioned described in any item methods when executed by the processor.
From the above it can be seen that light emitting device provided in an embodiment of the present invention and its exchange method, electronic equipment, depositing
Storage media determines active state according to the liveness of the liveness factor, then active state is instructed with the interactive operation received
It combines, so that it is determined that corresponding illumination effect, so that the decision logic of illumination effect is no longer single, compared with single decision logic
Light emitting device, it is not easy to there is the problem of maloperation.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference
Attached drawing, the present invention is described in more detail.
It should be noted that all statements for using " first " and " second " are for differentiation two in the embodiment of the present invention
The non-equal entity of a same names or non-equal parameter, it is seen that " first " " second " only for the convenience of statement, does not answer
It is interpreted as the restriction to the embodiment of the present invention, subsequent embodiment no longer illustrates this one by one.
The first aspect of the embodiment of the present invention proposes a kind of exchange method of light emitting device, can be to a certain degree
The upper decision logic for solving the problems, such as light emitting device in the prior art is single.As shown in Figure 1, being luminous dress provided by the invention
The flow diagram of the one embodiment for the exchange method set.
The exchange method of the light emitting device, comprising:
Step 101: obtaining the liveness of the liveness factor;Wherein, the liveness factor in following parameter extremely
Few one kind: time interval that current time, light intensity, weather conditions, current time interacts apart from last time default interacts the period
Interior use duration.
Step 102: active state is determined according to the liveness of the liveness factor.
Here, the active state specifically, can refer to following table depending on the liveness of the liveness factor of selection
Lattice.
As an embodiment of the present invention, when liveness selecting predictors current time, the work of different time sections (hr)
Jerk distribution such as the following table 1:
1 current time of table and liveness relationship
Period |
00-02 |
02-04 |
04-06 |
06-08 |
08-10 |
10-12 |
12-14 |
14-16 |
16-18 |
18-20 |
20-22 |
22-24 |
Liveness |
-10 |
-20 |
-10 |
0 |
+5 |
+5 |
+5 |
+10 |
+10 |
+10 |
+20 |
0 |
At this point, the active state in the period can be divided into very inactive according to period corresponding liveness
(- 20), very inactive (- 10), inactive (0), active (+5), very active (+10), very active this six kinds of (+20).For example,
When current time is evening 23, corresponding liveness is 0, then current active state is " inactive ".
As an embodiment of the present invention, when the current light intensity of liveness selecting predictors, different light conditions
(%) liveness influences distribution such as the following table 2:
2 light intensity of table and liveness relationship
Light intensity |
0-10 |
10-30 |
30-50 |
50-70 |
70-90 |
90-100 |
Liveness |
+20 |
+10 |
0 |
5 |
-10 |
-20 |
At this point, the active state within the scope of the light intensity can be divided into non-according to light intensity corresponding liveness
Normal inactive (- 20), very inactive (- 10), inactive (0), active (+5), very active (+10), very active (+20) this six
Kind.For example, corresponding liveness is+20 when current light intensity accounting is 5%, then current active state is " very living
Jump ".
It should be noted that the value of the light intensity in table 2 is percentage, it is current light intensity and benchmark light intensity
Ratio.The benchmark light intensity can be the collected light intensities of 12 points of high noon the previous day institute, can be with when to the same day 12
The light intensity of real-time detection is updated to new benchmark light intensity, so as to so that daily light intensity percentage obtains in real time more
Newly, actual conditions are more in line with.Certainly, optionally, the benchmark light intensity is also possible to a scheduled light intensity value, for example defaults
The value of setting or the customized value of user, etc..
As an embodiment of the present invention, when liveness selecting predictors are current or the weather conditions on the same day, not on the same day
Gas situation liveness influences distribution such as the following table 3:
3 weather conditions of table and liveness relationship
At this point, the active state of corresponding weather conditions can be divided into very not according to the corresponding liveness of weather conditions
Active (- 20), very inactive (- 15), inactive (- 10), normally this five kinds of (0), very active (+10).For example, the current or same day
Weather conditions be heavy rain when, corresponding liveness be -15, then current active state be " very inactive ".
As an embodiment of the present invention, when the time interval that liveness selecting predictors current time was interacted apart from last time
When, different time interval liveness influences distribution such as the following table 4:
4 interaction time interval of table and liveness relationship
Interaction time interval |
Greater than 48h |
48h-24h |
24h-12h |
12h-4h |
4h-30min |
30-15min |
Less than 15min |
Liveness |
+30 |
+20 |
+10 |
0 |
-10 |
-15 |
-20 |
At this point, the active state of corresponding time interval can be divided into non-according to the corresponding liveness in interaction time interval
Normal inactive (- 20), very inactive (- 15), normal (0), active (+10), very active (+20), are lived at inactive (- 10) very much
This seven kinds of jump (+30).For example, the time interval that current time was interacted apart from last time is greater than 48 hours, corresponding liveness is+
30, then current active state is " very active ".
As an embodiment of the present invention, interacted in the period when liveness selecting predictors are default (such as 24 hours or 48
Hour etc.) use duration when, different use duration liveness influences to be distributed such as the following table 5:
Table 5 uses duration and liveness relationship
It is accumulative to use duration |
0 |
0-1min |
1min-5min |
5min-30min |
30min-2hr |
2hr or more |
Liveness |
+20 |
+15 |
+10 |
0 |
-10 |
-20 |
At this point, according to the corresponding liveness of use duration in the default interaction period, it can be by the corresponding work for using duration
Jump state is divided into very inactive (- 20), inactive (- 10), normal (0), active (+10), very active (+15), very active
This six kinds of (+20).For example, corresponding liveness is -10, then currently when a length of 31 minutes when the default use interacted in the period
Active state be " inactive ".
It should be noted that the parameter area in above table can be used in the endpoint overlapping for two ranges occur
Left or just right rule is distinguished, for example, accumulation is overlapped at 1 minute using duration 0-1min and 1min-5min, can be adopted
It is distinguished with the mode of 1 minute this endpoint is not included in 0-1min with 1min-5min, alternatively, using in 1min-5min
Mode not comprising 1 minute this endpoint is distinguished with 0-1min.The parameter area of other tables can also use similar
Rule distinguishes, and details are not described herein.
Preferably, in selection liveness because of the period of the day from 11 p.m. to 1 a.m, it can also be from current time, light intensity, weather conditions, current time
Time interval apart from last time interaction, selected in use duration this five parameters in the default interaction period it is more than two active
The factor is spent to determine active state.
For example, the liveness in aforementioned Tables 1 and 2 can be added, then will be lived when selection current time and light intensity
The sum of jerk is compareed with active state.For example, liveness is+20, and current light intensity is when current time is 21
When 5, liveness is+20, and the sum of the two liveness is+40 at this time, then will can be defined as at this time " very active ".The two liveness
The sum of be other values when, can correspondingly be divided according to the division mode of active state above-mentioned, details are not described herein.
Further, in the step of liveness for obtaining the liveness factor, the liveness factor of acquisition is included at least
Use duration of the current time in the time interval that last time interacts and default interaction period, so as to preferably react living
Jump state.Preferably, the liveness factor obtained further includes light intensity, thus further accurate response active state.
Preferably, as an embodiment of the present invention, the current time, light intensity, weather conditions, current time
Duration is used to carry out enlivening shape as the liveness factor in time interval and default interaction period apart from last time interaction
The determination of state.
Specifically, the calculation formula of total liveness A is as follows:
A=50+T+L+W+I+P
Wherein, original state liveness be 50, T, L, W, I, P respectively represent current time, light intensity, weather conditions,
Liveness using duration of the current time in the time interval that last time interacts and default interaction period, these liveness
The liveness of the factor can refer to the record of table 1 to table 5, and details are not described herein.
In this way, can determine active state according to the following table 6 after calculating total liveness A.
The relationship of table 6 total liveness and active state
Active state |
It is very inactive |
It is very inactive |
It is inactive |
Normally |
It is active |
It is very active |
It is very active |
Total liveness section |
- ∞~10 |
10~20 |
20~40 |
40~60 |
60~80 |
80~90 |
90~+∞ |
Optionally, the active state in the exchange method of the light emitting device can be carried out by the way of periodic refreshing
It updates, such as primary per refreshing every other hour;Flush mechanism can also be triggered when some parameter changes, such as unexpected
The liveness in active state when rainstorm weather is updated when raining in torrents to refresh active state, etc., is implemented
Mode can be adjusted according to actual needs, and details are not described herein.
To sum up, according to each embodiment of active state computation rule above-mentioned, the light emitting device has at any time
One active state.
Step 103: receiving interactive operation instruction.Here, interactive operation instruction can refer to, be used for and the hair
Electro-optical device interacts and the instruction that generates, mainly controls the light that light emitting device issues certain illumination effect by the instruction.
Optionally, the light emitting device further includes infrared sensor module, brightness sensing module and pickup module;Preferably,
The infrared sensor module is pyroelectric infrared sensor;
The reception interactive operation instruction, comprising:
Receive the data of the infrared sensor module, brightness sensing module and/or pickup module acquisition;
According to the data that the infrared sensor module, brightness sensing module and/or pickup module acquire, the interaction is determined
Operational order.
According to any combination of data or these data that disparate modules collect, it can be deduced that different interaction behaviour
It instructs.
For example, if the brightness data of brightness sensing module acquisition is lower than the first luminance threshold, and the infrared sensing
The infrared data of module acquisition is in the first preset range, it is determined that the interactive operation instruction is voice wake up instruction.When
So, only example way, specific combination can be set according to the actual situation here.
Step 104: in conjunction with interactive operation instruction and the active state, determining required illumination effect.
As an embodiment of the present invention, the exchange method of the light emitting device, further includes:
If the infrared sensor module, brightness sensing module and pickup module do not collect data, confirm at this time for not
The standby mode (and one kind of interactive operation instruction) used, the illumination effect is determined according to the active state.
According to different active states, which can use different illumination effect conducts when not using standby
Silent standby mode, as shown in table 7 below.
Illumination effect distribution under 7 standby mode of table
Classification |
It is very inactive |
It is very inactive |
It is inactive |
Normally |
It is active |
It is very active |
It is very active |
Illumination effect 1 |
|
|
|
|
|
|
√ |
Illumination effect 2 |
|
|
|
|
|
√ |
√ |
Illumination effect 3 |
|
|
|
|
√ |
√ |
√ |
Illumination effect 4 |
|
|
|
√ |
√ |
√ |
|
Illumination effect 5 |
|
|
√ |
√ |
√ |
|
|
Illumination effect 6 |
|
√ |
√ |
√ |
|
|
|
Illumination effect 7 |
√ |
√ |
√ |
|
|
|
|
Illumination effect 8 |
√ |
√ |
|
|
|
|
|
Illumination effect 9 |
√ |
|
|
|
|
|
|
As shown in table 7, illumination effect 1-9 is respectively different illumination effects, enlivens shape to show shown light emitting device
Condition, the illumination effect 1-3 such as under very actively can feel zeal cheerful and light-hearted light efficiency, in very sluggish illumination effect 7-
9 can show the light efficiency of quiet melancholy.
As an embodiment of the present invention, the exchange method of the light emitting device, further includes:
If the brightness data of the brightness sensing module acquisition is lower than the first luminance threshold, and the infrared sensor module is adopted
The infrared data of collection is in preset range, it is determined that the interactive operation instruction is voice wake up instruction, and starts voice friendship
Mutually;Here, first luminance threshold can be the value set as needed, and selection criteria can be, in positive reason
It is considered as the brightness value that light reaches more dim degree under condition;The preset range can be, under normal circumstances,
When someone walks about, the range for the infrared data that can be detected, value can be selected according to the actual situation, herein not
It limits.As can be seen that in this case, the brightness data of the brightness sensing module acquisition is lower than the first luminance threshold,
And the infrared data of the infrared sensor module acquisition is in preset range, instead of the effect for waking up word, without in language
Corresponding voice interactive function is waken up by waking up word before sound interaction, to save operating procedure, facilitates user
Use.
Alternatively, if the voice data of pickup module acquisition is detected wake-up word, it is determined that institute
Stating interactive operation instruction is voice wake up instruction, and starts interactive voice;Optionally, the wake-up word can be default,
It can be user oneself setting, its content do not limited specifically herein.
After starting interactive voice, then the light of corresponding illumination effect, Huo Zhetong can be issued by voice control light emitting device
It crosses voice control and carries out other with the light emitting device and interact.
Further, after starting interactive voice, the exchange method of the light emitting device be can comprise the further steps of:
In conjunction with the voice wake up instruction and the active state, required illumination effect is determined to wake up light efficiency;
According to the wake-up light efficiency, exports light emitting control instruction and shone with controlling the light emitting device.
In this way, in conjunction with the active state, light emitting device is made to issue tool by after determination receives voice wake up instruction
There is the light for waking up light efficiency, so that user, which knows that current light emitting device is according to this kind of special light efficiency, to be carried out mutually by voice
On the one hand dynamic state is conducive to that the current voice interface function of user is reminded to activate, can pass through phonetic order and equipment at any time
It interacts, on the other hand, also the current voice interface function of user is reminded to activate, if maloperation, please close the function in time
Can, in order to avoid there are other maloperation problems.
As an embodiment of the present invention, the exchange method of the light emitting device, further includes:
Determine whether the current time is in sleep period (for example, 23 points to early 5 points of evening);
If the current time is in sleep period, the brightness data of the brightness sensing module acquisition is bright lower than second
Threshold value is spent, and receives instruction of turning on light, then the illumination effect is mini light night effect, and according to the mini light night effect, output
Light emitting control instruction is shone with controlling the light emitting device.
Here, second luminance threshold can be the value set as needed, and selection criteria can be, just
It is considered the light intensity when people sleep soundly in normal situation;Second luminance threshold may be and institute in some cases
It is identical to state the first luminance threshold, is also possible to different, specific value is depending on the circumstances.The mini light night effect is whole
The upper effect partially dark for Huang partially, specific colour temperature, brightness etc. can be selected according to actual needs, it is not limited here.
According to different active states, which can show different hairs when different situations are interacted from people
Light effect (including can bright illumination light and variable color light), as shown in table 8 below.
8 interactive operation instruction of table, active state and illumination effect relationship
As can be seen from Table 8, the interactive operation instruction includes at least following several:
If 1) brightness data of the brightness sensing module acquisition is higher than third luminance threshold, and the infrared sensor module
The infrared data of acquisition is in preset range, illustrates that current light intensity is in bright state and infrared signal detects someone
By at this point, determining one of corresponding illumination effect 10-16 in conjunction with corresponding active state.Here, the third is bright
Degree threshold value can be the value set as needed, and selection criteria can be, and under normal circumstances be considered as that light reaches
To the brightness value of more bright degree;In some cases, specific value can be and the first luminance threshold phase
With, this depends on particular situation, is not specifically limited herein.
If 2) brightness data of the brightness sensing module acquisition is lower than the first luminance threshold, and the infrared sensor module
The infrared data of acquisition is in preset range, illustrates that current light intensity is in dim dark state and infrared signal detects someone
By, it is determined that the interactive operation instruction is voice wake up instruction, and starts interactive voice, is determined in combination with active state
It is corresponding to wake up one of light color c1-c7.
If 3) voice data of the pickup module acquisition is detected wake-up word, illustrate that user is waken up by voice
Voice interface function, it is determined that the interactive operation instruction is voice wake up instruction, and starts interactive voice, in combination with active
State determines one of corresponding wake-up light color c1-c7.
If 4) voice data of the pickup module acquisition is detected continuous sound three times in a certain time interval,
Illustrate that user has clapped hands three times, at this point, determining one of corresponding illumination effect 17-23 in conjunction with corresponding active state.
If 5) brightness data of brightness sensing module acquisition is detected data oscillation (such as brightness reduces suddenly or height
It is low repeatedly), illustrate that active user just waves at the top of equipment, at this point, determining the corresponding effect that shines in conjunction with corresponding active state
One of fruit 24-30.
If 6) voice data of the pickup module acquisition is detected data oscillation (such as frequency or amplitude generation change suddenly
Change), illustrate active user against air blowing at the top of equipment, at this point, determining the corresponding effect that shines in conjunction with corresponding active state
One of fruit 31-37.
If 7) current time is in sleep period, the brightness data of the brightness sensing module acquisition is lower than second
Luminance threshold, and instruction of turning on light is received, illustrating to need to open mini light night now, then the illumination effect is mini light night effect,
And according to the mini light night effect, exports light emitting control instruction and shone with controlling the light emitting device.Optionally, the finger of turning on light
It enables, can be realized using operations such as acoustic control, physical switch key or mobile phone controls.
Step 105: according to the illumination effect, exporting light emitting control instruction and shone with controlling the light emitting device;Here,
It is corresponding with illumination effect by interactive operation instruction above-mentioned, active state, can be obtained the instruction of corresponding light emitting control with
The light emitting device is controlled to shine;It include the optical parameters such as intensity, the colour temperature of light in the light emitting control instruction, different shines
The corresponding optical parameter of effect is different.
As an embodiment of the present invention, the light emitting device further includes sounding device, optionally, the sounding device
For microphone, the pickup module is microphone pickup module;The exchange method of the light emitting device, further includes:
In conjunction with interactive operation instruction and the active state, required sound effect is determined;
According to the sound effect, sounding control instruction is exported to control the sounding device sounding.
Specifically, the sound effect can be combined with illumination effect above-mentioned, to provide more polynary interaction effect.
Such as silent standby mode is used as using different sound and light programs when not using standby, as shown in table 9 below.
Sound and light program distribution under 9 standby mode of table
Classification |
It is very inactive |
It is very inactive |
It is inactive |
Normally |
It is active |
It is very active |
It is very active |
Sound and light program 1 |
|
|
|
|
|
|
√ |
Sound and light program 2 |
|
|
|
|
|
√ |
√ |
Sound and light program 3 |
|
|
|
|
√ |
√ |
√ |
Sound and light program 4 |
|
|
|
√ |
√ |
√ |
|
Sound and light program 5 |
|
|
√ |
√ |
√ |
|
|
Sound and light program 6 |
|
√ |
√ |
√ |
|
|
|
Sound and light program 7 |
√ |
√ |
√ |
|
|
|
|
Sound and light program 8 |
√ |
√ |
|
|
|
|
|
Sound and light program 9 |
√ |
|
|
|
|
|
|
As shown in table 9, sound and light program 1-9 is respectively that different audios adds the combination of light to show enlivening for the light emitting device
Situation, the sound and light program 1-3 such as under very actively can feel zeal cheerful and light-hearted audio and light efficiency, in very sluggish sound
Light effect 7-9 can show the audio and light efficiency of quiet melancholy.
For another example, according to different active states, which can show when different situations are interacted with people
Different sound and light programs, as shown in the following table 10.
10 interactive operation instruction of table, active state and sound and light program relationship
As can be seen from Table 10, the interactive operation instruction includes at least following several:
If 1) brightness data of the brightness sensing module acquisition is higher than third luminance threshold, and the infrared sensor module
The infrared data of acquisition is in preset range, illustrates that current light intensity is in bright state and infrared signal detects someone
By at this point, determining one of corresponding sound and light program 10-16 in conjunction with corresponding active state.Here, the third is bright
Degree threshold value can be the value set as needed, and selection criteria can be, and under normal circumstances be considered as that light reaches
To the brightness value of more bright degree;In some cases, specific value can be and the first luminance threshold phase
With, this depends on particular situation, is not specifically limited herein.
If 2) brightness data of the brightness sensing module acquisition is lower than the first luminance threshold, and the infrared sensor module
The infrared data of acquisition is in preset range, illustrates that current light intensity is in dim dark state and infrared signal detects someone
By, it is determined that the interactive operation instruction is voice wake up instruction, and starts interactive voice, is determined in combination with active state
It is corresponding to wake up one of light color c1-c7, while the corresponding light color that wakes up can also be cooperated to provide corresponding sound
Audio fruit.
If 3) voice data of the pickup module acquisition is detected wake-up word, illustrate that user is waken up by voice
Voice interface function, it is determined that the interactive operation instruction is voice wake up instruction, and starts interactive voice, in combination with active
State determines one of corresponding wake-up light color c1-c7, while the corresponding light color that wakes up can also be cooperated to provide
Corresponding sound effect.
If 4) voice data of the pickup module acquisition is detected continuous sound three times in a certain time interval,
Illustrate that user has clapped hands three times, at this point, determining one of corresponding sound and light program 17-23 in conjunction with corresponding active state.
If 5) brightness data of brightness sensing module acquisition is detected data oscillation (such as brightness reduces suddenly or height
It is low repeatedly), illustrate that active user just waves at the top of equipment, at this point, determining corresponding acousto-optic effect in conjunction with corresponding active state
One of fruit 24-30.
If 6) voice data of the pickup module acquisition is detected data oscillation (such as frequency or amplitude generation change suddenly
Change), illustrate active user against air blowing at the top of equipment, at this point, determining corresponding acousto-optic effect in conjunction with corresponding active state
One of fruit 31-37.
If 7) current time is in sleep period, the brightness data of the brightness sensing module acquisition is lower than second
Luminance threshold, and instruction of turning on light is received, illustrating to need to open mini light night now, then the illumination effect is mini light night effect,
And according to the mini light night effect, exports light emitting control instruction and shone with controlling the light emitting device.Optionally, the finger of turning on light
It enables, can be realized using operations such as acoustic control, physical switch key or mobile phone controls;Meanwhile optionally, can also cooperate corresponding
Mini light night provides corresponding sound effect, to enrich interaction effect.
As can be seen that showing different acousto-optics when user interacts from light emitting device according to different active states
Feedback, thus light conditions in different times, different, different weather conditions, interaction interval and it is accumulative using duration not
Feedback performance in the case where for the same operation is also different, accomplishes really to understand user and expressed in abundance is to user
Feel pleasantly surprised not stiff.
From above-described embodiment as can be seen that the exchange method of light emitting device provided in an embodiment of the present invention, according to liveness
The liveness of the factor determines active state, then active state is combined with the interactive operation instruction received, so that it is determined that phase
The illumination effect answered, so that the decision logic of illumination effect is no longer single, compared with the light emitting device of single decision logic, it is not easy to
There is the problem of maloperation.
Further, when liveness selecting predictors current time, light intensity, weather conditions, current time were apart from last time
The time interval of interaction, in the default interaction period using two or more in duration when, can preferably to active state into
Row determines, to preferably interact with user.Active state directly affects the various performance states of the light emitting device, this hair
The active state judgment mechanism that bright embodiment provides so that light emitting device have oneself enliven judgment mode, it is different encountering
Different feedbacks can be showed when interaction triggering, is no longer unalterable interaction manifestation mode, it is stiff to jump out electronic device
Impression, increases the rich and attraction of performance, allows user's impression is super to be expected.
Further, when interactive operation instruction is by infrared sensor module, brightness sensing module and/or pickup
Data that module collects and when analyzing the instruction obtained, then form a kind of light emitting device of multi-modal interaction, Ji Keshi
Others' behavior and the smart machine for being appreciated that people's behavior and interacting therewith.Under different active degrees, user speech wake-up,
Infrared induction detects someone and bright light, infrared induction detect someone and rather dark, user claps hands three times, user couple
Equipment top is waved, user blows against equipment top, user executes operation of turning on light in sleep period and under dim dark state
Deng judgment mechanism whether having respectively different acousto-optics to feed back and be waken up, one-to-one correspondence does logic judgment decision.Whole
The logic judgment frame of multi-modal interaction is capable of handling the logic judgment of complex situations, is no longer one-to-one judgment mode, leads to
Cross to ambient light, current time, user behavior comprehensive descision, provide most appropriate feedback in the current situation so that should
The serious forgiveness of device improves, and false triggering rate is very low, and linkage effect is good.
The exchange method of light emitting device provided in an embodiment of the present invention, by each input information of comprehensive analysis (when current
Between, current light situation, it is current it is infrared whether sense someone, current weather conditions, present apparatus last time and user interaction time,
Closely add up in r to operate using the equipment duration, the voice command situation as forefathers, the behavior as forefathers for 24 hours) do comprehensive descision from
And determine that suitable interaction feedback system shows in such a way that sound adds light efficiency, meets the interaction need under various different scenes
It asks.
The second aspect of the embodiment of the present invention proposes a kind of light emitting device, can solve to a certain extent existing
The single problem of the decision logic of light emitting device in technology.As shown in Fig. 2, being a reality of light emitting device provided by the invention
Apply the structural schematic diagram of example.
The light emitting device, comprising:
Interaction trigger unit 201, for receiving interactive operation instruction;
Luminescence unit 203 shines for being instructed according to light emitting control;
Processing unit 202, is configured as:
Obtain the liveness of at least two liveness factors;Wherein, the liveness factor is selected from: current time, light
Intensity, weather conditions, current time are apart from the time interval that last time interacts, the use duration in the default interaction period;
Active state is determined according to the liveness of at least two liveness factor;
In conjunction with interactive operation instruction and the active state, required illumination effect is determined;
According to the illumination effect, exports light emitting control instruction and shone with controlling the luminescence unit 203.
From above-described embodiment as can be seen that light emitting device provided in an embodiment of the present invention, according to enlivening for the liveness factor
It spends and determines active state, then active state is combined with the interactive operation instruction received, so that it is determined that the corresponding effect that shines
Fruit, so that the decision logic of illumination effect is no longer single, compared with the light emitting device of single decision logic, it is not easy to maloperation occur
The problem of.
As an embodiment of the present invention, the light emitting device further includes phonation unit 304, for being controlled according to sounding
Instruct sounding;
The processing unit 202, is configured as:
In conjunction with interactive operation instruction and the active state, required sound effect is determined;
According to the sound effect, sounding control instruction is exported to control 304 sounding of phonation unit, so that the sound
Audio fruit can combine with illumination effect above-mentioned, to provide more polynary interaction effect.
As an embodiment of the present invention, the interactive trigger unit 201 includes infrared sensor module, brightness sensing mould
Block and pickup module;
The processing unit 202, is configured as:
Receive the data of the infrared sensor module, brightness sensing module and/or pickup module acquisition;
According to the data that the infrared sensor module, brightness sensing module and/or pickup module acquire, the interaction is determined
Operational order.
When interactive operation instruction is acquired by infrared sensor module, brightness sensing module and/or pickup module
To data and when analyzing the instruction obtained, then form a kind of light emitting device of multi-modal interaction, that is, can recognize the behavior of people
And the smart machine for being appreciated that people's behavior and interacting therewith.Under different active degrees, user speech is waken up, infrared induction is examined
Measure someone and bright light, infrared induction detect someone and rather dark, user clap hands three times, user is against equipment top
It waves, user blows against equipment top, user executes operation etc. of turning on light in sleep period and under dim dark state has respectively
Judgment mechanism whether different acousto-optics feeds back and is waken up, one-to-one correspondence do logic judgment decision.Whole multi-modal interaction
Logic judgment frame be capable of handling the logic judgments of complex situations, be no longer one-to-one judgment mode, by environment light
Line, current time, user behavior comprehensive descision, most appropriate feedback is provided in the current situation, so that the device is fault-tolerant
Rate improves, and false triggering rate is very low, and linkage effect is good.
Based on above-mentioned purpose, the third aspect of the embodiment of the present invention proposes a kind of dress for executing the exchange method
The one embodiment set.As shown in figure 3, being the hard of one embodiment of the device provided by the invention for executing the exchange method
Part structural schematic diagram.
As shown in figure 3, described device includes:
One or more processors 301 and memory 302, in Fig. 3 by taking a processor 301 as an example.
The device for executing the exchange method can also include: input unit 303 and output device 304.
Processor 301, memory 302, input unit 303 and output device 304 can pass through bus or other modes
It connects, in Fig. 3 for being connected by bus.
Memory 302 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey
Sequence, non-volatile computer executable program and module, such as the corresponding program of the exchange method in the embodiment of the present application
Instruction/module (for example, attached interactive trigger unit 201, luminescence unit 203 and processing unit 202 shown in Fig. 2).Processor 301
By non-volatile software program, instruction and the module of operation storage in the memory 302, thereby executing the various of server
The exchange method of above method embodiment is realized in functional application and data processing.
Memory 302 may include storing program area and storage data area, wherein storing program area can store operation system
Application program required for system, at least one function;Storage data area, which can be stored, uses created number according to light emitting device
According to etc..In addition, memory 302 may include high-speed random access memory, it can also include nonvolatile memory, such as extremely
A few disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, memory
302 it is optional include the memory remotely located relative to processor 301, these remote memories can pass through network connection to meeting
Member's user behavior monitoring device.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, moves and lead to
Letter net and combinations thereof.
Input unit 303 can receive the number or character information of input, and generate with the user setting of light emitting device with
And the related key signals input of function control.Output device 304 may include that display screen etc. shows equipment.
One or more of modules are stored in the memory 302, when by one or more of processors
When 301 execution, the exchange method in above-mentioned any means embodiment is executed.The implementation of the device for executing the exchange method
Example, technical effect are same or similar with aforementioned any means embodiment.
The embodiment of the present application provides a kind of non-transient computer storage medium, and the computer storage medium is stored with meter
The processing of the operation of the list items in above-mentioned any means embodiment can be performed in calculation machine executable instruction, the computer executable instructions
Method.The embodiment of the non-transient computer storage medium, technical effect it is identical as aforementioned any means embodiment or
It is similar.
Finally, it should be noted that those of ordinary skill in the art will appreciate that realizing the whole in above-described embodiment method
Or part process, it is that related hardware can be instructed to complete by computer program, the program can be stored in a calculating
In machine read/write memory medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, described
Storage medium can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory
(Random Access Memory, RAM) etc..The embodiment of the computer program, technical effect and aforementioned any means
Embodiment is same or similar.
In addition, typically, device described in the disclosure, equipment etc. can be various electric terminal equipments, such as mobile phone, individual
Digital assistants (PDA), tablet computer (PAD), smart television etc. are also possible to large-scale terminal device, such as server, therefore this
Disclosed protection scope should not limit as certain certain types of device, equipment.Client described in the disclosure can be with electricity
The combining form of sub- hardware, computer software or both is applied in any one of the above electric terminal equipment.
In addition, being also implemented as the computer program executed by CPU, the computer program according to disclosed method
It may be stored in a computer readable storage medium.When the computer program is executed by CPU, executes and limited in disclosed method
Fixed above-mentioned function.
In addition, above method step and system unit also can use controller and for storing so that controller is real
The computer readable storage medium of the computer program of existing above-mentioned steps or Elementary Function is realized.
In addition, it should be appreciated that computer readable storage medium (for example, memory) as described herein can be it is volatile
Property memory or nonvolatile memory, or may include both volatile memory and nonvolatile memory.As example
And not restrictive, nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable to son
ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access
Memory (RAM), the RAM can serve as external cache.As an example and not restrictive, RAM can be with more
Kind form obtains, such as synchronous random access memory (DRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate SDRAM
(DDR SDRAM), enhancing SDRAM (ESDRAM), synchronization link DRAM (SLDRAM) and directly RambusRAM (DRRAM).Institute
The storage equipment of disclosed aspect is intended to the memory of including but not limited to these and other suitable type.
Those skilled in the art will also understand is that, various illustrative logical blocks, mould in conjunction with described in disclosure herein
Block, circuit and algorithm steps may be implemented as the combination of electronic hardware, computer software or both.It is hard in order to clearly demonstrate
This interchangeability of part and software, with regard to various exemplary components, square, module, circuit and step function to its into
General description is gone.This function is implemented as software and is also implemented as hardware depending on concrete application and application
To the design constraint of whole system.Those skilled in the art can realize described in various ways for every kind of concrete application
Function, but this realization decision should not be interpreted as causing a departure from the scope of the present disclosure.
Various illustrative logical blocks, module and circuit, which can use, in conjunction with described in disclosure herein is designed to
The following component of function described here is executed to realize or execute: general processor, digital signal processor (DSP), dedicated collection
At circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, divide
Any combination of vertical hardware component or these components.General processor can be microprocessor, but alternatively, processing
Device can be any conventional processors, controller, microcontroller or state machine.Processor also may be implemented as calculating equipment
Combination, for example, the combination of DSP and microprocessor, multi-microprocessor, one or more microprocessors combination DSP core or any
Other this configurations.
The step of method in conjunction with described in disclosure herein or algorithm, can be directly contained in hardware, be held by processor
In capable software module or in combination of the two.Software module may reside within RAM memory, flash memory, ROM storage
Device, eprom memory, eeprom memory, register, hard disk, removable disk, CD-ROM or known in the art it is any its
In the storage medium of its form.Illustrative storage medium is coupled to processor, enables a processor to from the storage medium
Information is written to the storage medium in middle reading information.In an alternative, the storage medium can be with processor collection
At together.Pocessor and storage media may reside in ASIC.ASIC may reside in user terminal.It is replaced at one
In scheme, it is resident in the user terminal that pocessor and storage media can be used as discrete assembly.
In one or more exemplary designs, the function can be real in hardware, software, firmware or any combination thereof
It is existing.If realized in software, can be stored in using the function as one or more instruction or code computer-readable
It is transmitted on medium or by computer-readable medium.Computer-readable medium includes computer storage media and communication media,
The communication media includes any medium for helping for computer program to be transmitted to another position from a position.Storage medium
It can be any usable medium that can be accessed by a general purpose or special purpose computer.As an example and not restrictive, the computer
Readable medium may include RAM, ROM, EEPROM, CD-ROM or other optical disc memory apparatus, disk storage equipment or other magnetic
Property storage equipment, or can be used for carry or storage form be instruct or data structure required program code and can
Any other medium accessed by general or specialized computer or general or specialized processor.In addition, any connection is ok
It is properly termed as computer-readable medium.For example, if using coaxial cable, optical fiber cable, twisted pair, digital subscriber line
(DSL) or such as wireless technology of infrared ray, radio and microwave to send software from website, server or other remote sources,
Then the wireless technology of above-mentioned coaxial cable, optical fiber cable, twisted pair, DSL or such as infrared elder generation, radio and microwave is included in
The definition of medium.As used herein, disk and CD include compact disk (CD), laser disk, CD, digital versatile disc
(DVD), floppy disk, Blu-ray disc, wherein disk usually magnetically reproduce data, and CD using laser optics reproduce data.On
The combination for stating content should also be as being included in the range of computer-readable medium.
Disclosed exemplary embodiment, but disclosed exemplary embodiment should be infused, it should be noted that without departing substantially from
Under the premise of the scope of the present disclosure that claim limits, it may be many modifications and modify.According to disclosure described herein
Function, step and/or the movement of the claim to a method of embodiment are not required to the execution of any particular order.In addition, although this public affairs
The element opened can be described or be required in the form of individual, it is also contemplated that it is multiple, it is unless explicitly limited odd number.
It should be understood that it is used in the present context, unless the context clearly supports exceptions, singular " one
It is a " (" a ", " an ", " the ") be intended to also include plural form.It is to be further understood that "and/or" used herein is
Refer to any and all possible combinations including one or more than one project listed in association.
Above-mentioned embodiment of the present disclosure serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
It should be understood by those ordinary skilled in the art that: the discussion of any of the above embodiment is exemplary only, not
It is intended to imply that the scope of the present disclosure (including claim) is limited to these examples;It is above under the thinking of the embodiment of the present invention
It can also be combined between technical characteristic in embodiment or different embodiments, and exist and implement present invention as described above
Many other variations of the different aspect of example, for simplicity, they are not provided in details.Therefore, all in the embodiment of the present invention
Spirit and principle within, any omission, modification, equivalent replacement, improvement for being made etc. should be included in the embodiment of the present invention
Within protection scope.