CN110888681A - Lighting lamp control method, lighting lamp control device, electronic equipment and medium - Google Patents

Lighting lamp control method, lighting lamp control device, electronic equipment and medium Download PDF

Info

Publication number
CN110888681A
CN110888681A CN201911204936.5A CN201911204936A CN110888681A CN 110888681 A CN110888681 A CN 110888681A CN 201911204936 A CN201911204936 A CN 201911204936A CN 110888681 A CN110888681 A CN 110888681A
Authority
CN
China
Prior art keywords
lamp
illumination
illuminating lamp
turned
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911204936.5A
Other languages
Chinese (zh)
Inventor
陈维祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911204936.5A priority Critical patent/CN110888681A/en
Publication of CN110888681A publication Critical patent/CN110888681A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Abstract

The embodiment of the invention discloses a method and a device for controlling an illuminating lamp, electronic equipment and a medium, wherein the method for controlling the illuminating lamp is applied to the electronic equipment, and comprises the following steps: determining a first illuminating lamp according to a first position of the electronic equipment under the condition that the environmental brightness value of the electronic equipment is smaller than an environmental brightness threshold value and the movement information of the electronic equipment is changed; controlling the first illuminating lamp to be turned on, or increasing the brightness value of the turned-on first illuminating lamp. By utilizing the embodiment of the invention, the automatic starting or automatic brightness increasing of the illuminating lamp can be realized, and a user does not need to find the first illuminating lamp and manually operate the first illuminating lamp for illumination, thereby improving the convenience of the user.

Description

Lighting lamp control method, lighting lamp control device, electronic equipment and medium
Technical Field
The embodiment of the invention relates to the field of intelligent control, in particular to a method and a device for controlling an illuminating lamp, electronic equipment and a medium.
Background
If the user has a lighting requirement, the user generally controls the lighting lamp by manually operating a button arranged on the lighting lamp, so that lighting is realized. For example, the illuminating lamp is provided with a switch button, and a user operates the switch button to turn on the illuminating lamp. Alternatively, the user operates the illumination lamp to illuminate through a remote controller.
However, both of the above two schemes for controlling the illumination lamp require manual operation by a user to realize illumination. It can be seen that existing lighting schemes are not convenient for the user.
Disclosure of Invention
The embodiment of the invention provides an illuminating lamp control method, an illuminating lamp control device, electronic equipment and a medium, and aims to solve the problem that a user is inconvenient to operate an illuminating lamp for illumination.
In order to solve the technical problem, the invention is realized as follows:
an illumination lamp control method is applied to electronic equipment, and the method comprises the following steps:
determining a first illuminating lamp according to a first position of the electronic equipment under the condition that the environmental brightness value of the electronic equipment is smaller than an environmental brightness threshold value and the movement information of the electronic equipment is changed;
controlling the first illuminating lamp to be turned on, or increasing the brightness value of the turned-on first illuminating lamp.
In a first aspect, an embodiment of the present invention provides a lighting lamp control device, which is applied to an electronic device, and includes:
the first illuminating lamp determining module is used for determining a first illuminating lamp according to a first position of the electronic equipment under the condition that the environmental brightness value of the electronic equipment is smaller than an environmental brightness threshold value and the movement information of the electronic equipment is changed;
the first illumination control module is used for controlling the first illumination lamp to be turned on or increasing the brightness value of the turned-on first illumination lamp.
In a second aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the illumination lamp control method.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the lighting lamp control method are implemented.
In the embodiment of the invention, if the movement information of the electronic equipment changes, the user is explained to move the electronic equipment. If the ambient brightness value of the electronic device is less than the ambient brightness threshold, it indicates that the user has a need for illumination. Therefore, when the ambient brightness value of the electronic device is smaller than the ambient brightness threshold and the movement information of the electronic device changes, the first illuminating lamp is determined, turned on is controlled, or the brightness value of the turned-on first illuminating lamp is increased according to the first position of the electronic device. Thereby realized under the condition that the user has the illumination demand, the automatic of first light is opened or automatic increase luminance value, does not need the user to find first light and manual operation throws light on to user's convenience has been promoted.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
Fig. 1 shows a flow chart of a lighting lamp control method according to an embodiment of the present invention;
FIG. 2 illustrates a schematic diagram of a determination lamp according to an embodiment of the present invention;
FIG. 3 illustrates a schematic diagram of a determination lamp according to another embodiment of the present invention;
FIG. 4 illustrates a schematic diagram of a determination lamp according to yet another embodiment of the present invention;
FIG. 5 shows a schematic structural diagram of a lighting lamp control device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart illustrating a method for controlling an illumination lamp according to an embodiment of the present invention. The illumination lamp control method is applied to an electronic device, and as shown in fig. 1, the illumination lamp control method includes:
s102, when the environmental brightness value of the electronic device is smaller than the environmental brightness threshold value and the movement information of the electronic device changes, determining a first illuminating lamp according to a first position of the electronic device.
Wherein the movement information comprises one or more of position, placement angle, gravitational acceleration, and velocity. Detecting an ambient brightness value of the electronic device by a light sensor of the electronic device; and judging whether the environmental brightness value of the electronic equipment is smaller than an environmental brightness threshold value. If the environmental brightness value of the electronic device is greater than or equal to the environmental brightness threshold value, it is indicated that the electronic device is not in a dark environment. If the environmental brightness value of the electronic equipment is smaller than the environmental brightness threshold value, the electronic equipment is indicated to be in a dark environment. Generally, the environment in which the electronic device is located represents the environment in which the user is located, that is, the user is in a dark environment, which may be a dark environment at night or a dark environment without light.
In addition, the illuminating lamp at the preset position is used as a first illuminating lamp. The first illumination lamp may be an illumination lamp of a predetermined position, for example, a predetermined bedside lamp or a lamp of a living room, usually in a dark environment where a user is in a bedroom or a living room.
And S104, controlling the first illuminating lamp to be turned on, or increasing the brightness value of the turned-on first illuminating lamp.
In the embodiment of the invention, if the movement information of the electronic equipment changes, the user is explained to move the electronic equipment. If the ambient brightness value of the electronic device is less than the ambient brightness threshold, it indicates that the user has a need for illumination. Therefore, when the ambient brightness value of the electronic device is smaller than the ambient brightness threshold value and the mobile information of the electronic device changes, the first illuminating lamp is determined through the first position of the electronic device, the first illuminating lamp is controlled to be turned on, or the brightness value of the turned-on first illuminating lamp is increased, so that the brightness value of the first illuminating lamp is automatically turned on or automatically increased, a user does not need to find the first illuminating lamp and manually operate the first illuminating lamp to illuminate, and the convenience of the user is improved. In particular, the user is not required to grope in a dark environment (such as a dark environment) to turn on the first illumination lamp.
The first illuminating lamp is determined according to the first position of the electronic equipment, and at least two implementation modes are as follows:
in a first mode
And taking the illuminating lamp corresponding to the first position as a first illuminating lamp.
For example, a plurality of positions are preset, and each position corresponds to an illuminating lamp; regard as first light with the light that first position corresponds, include: and acquiring a target position closest to the first position from a plurality of preset positions, and taking the illuminating lamp corresponding to the target position as a first illuminating lamp.
For another example, a house is divided into a plurality of predetermined areas, the predetermined areas are a first bedroom area, a second bedroom area, a living room area and a bathroom area, and if the first position of the electronic device belongs to the first bedroom area, the illuminating lamp corresponding to the first bedroom area is used as the first illuminating lamp.
Mode two
And according to the distance between the position of each illuminating lamp in the plurality of preset illuminating lamps and the first position, taking the illuminating lamp closest to the first position in the plurality of preset illuminating lamps as the first illuminating lamp.
For example, a number and a position are added to each of a plurality of predetermined illumination lamps, i.e., a mapping between illumination lamps and illumination lamp numbers and a mapping between illumination lamp numbers and illumination lamp positions are established. Calculating the distance between the first position of the electronic equipment and each illuminating lamp position, selecting the illuminating lamp position with the minimum distance, and determining the illuminating lamp number corresponding to the illuminating lamp position with the minimum distance, wherein the illuminating lamp corresponding to the illuminating lamp number is the first illuminating lamp.
Generally, the position of the electronic device represents the position of the user, and therefore, in the embodiment of the invention, the first illuminating lamp to be turned on is determined according to the first position of the electronic device, so that the turning on of the first illuminating lamp can be closer to the lighting requirement of the user.
In one embodiment of the present invention, step 104 comprises:
controlling the brightness value of the first illuminating lamp to be a first brightness percentage; wherein the first brightness percentage is determined according to a display screen brightness value of the electronic device.
For example, the brightness value of the first illumination lamp is the same as the brightness value of the display screen of the electronic device. The first brightness percentage is 50%, and not only is the display screen brightness value of the electronic device set to 50% of the maximum brightness of the display screen, but also the brightness value of the first illumination lamp is set to 50% of the maximum brightness of the illumination lamp.
In the embodiment of the invention, the brightness value of the first illuminating lamp is set according to the ambient brightness of the electronic equipment, so that the first illuminating lamp is prevented from being over-bright to stimulate the eyes of a user, and the eye-friendly effect is better.
In an embodiment of the present invention, after S106, the illumination lamp control method further includes:
and under the condition that the electronic equipment moves from the second position to a third position, determining a second illuminating lamp according to the third position, wherein the distance between the third position and the second position is greater than a preset distance threshold value. The second location may be the same location or a different location than the first location.
And controlling the second illuminating lamp to be turned on, or increasing the brightness value of the turned-on second illuminating lamp.
If the moving distance of the electronic equipment is greater than the preset distance threshold, the fact that the moving distance of the electronic equipment is relatively long indicates that the moving distance of the electronic equipment is relatively long, and the previously started illuminating lamp cannot meet the requirement for illuminating a user, the second illuminating lamp is started to illuminate according to the third position of the electronic equipment, and the illuminating lamp is started along with the moving of the electronic equipment.
In one embodiment of the present invention, after controlling the second illumination lamp to be turned on, or increasing the brightness value of the turned-on second illumination lamp, the illumination lamp control method further includes:
and under the condition that the illumination time length of the second illumination lamp is greater than the first time length threshold value, controlling the illumination lamp which is turned on last time to be turned off, or restoring the illumination lamp which is increased in brightness value last time to the state before the brightness value is increased.
In the embodiment of the invention, after the second illuminating lamp is turned on, the last turned-on illuminating lamp is turned off in a delayed manner, so that sufficient illumination is provided for a user, and the condition that the illuminating lamp is turned off too early under the condition that the user has illumination requirements is avoided.
In one embodiment of the present invention, after controlling the first illumination lamp to be turned on, or increasing the brightness value of the second illumination lamp that has been turned on, the illumination lamp control method further includes:
according to the first moving direction and the first coordinate position of the electronic equipment in the first preset coordinate system, the area without the illumination requirement in the first preset coordinate system is determined. Wherein the area without lighting requirements is determined in the following way: determining a first straight line which passes through the first coordinate position and is perpendicular to the first moving direction in a first preset coordinate system according to the first moving direction and the first coordinate position; determining a first coordinate area where a first ray is located in two coordinate areas formed by dividing a first straight line in a first preset coordinate system, wherein the end point of the first ray is a first coordinate position, and the direction of the first ray is opposite to the first moving direction; the first coordinate area is taken as an area without lighting requirements.
Acquiring an illuminating lamp which is turned on before the second illuminating lamp is turned on and a preset coordinate position of the turned-on illuminating lamp in a first preset coordinate system;
in the case where there is a third illumination lamp located in an area where there is no illumination demand among the illumination lamps that have been turned on, the third illumination lamp is controlled to be turned off, or the brightness value of the third illumination lamp is reduced.
The above embodiments are illustrated below by two examples:
first example
As shown in fig. 2, a first predetermined coordinate system has an X axis and a Y axis, and coordinate positions of illumination lamps a to E in the first predetermined coordinate system are set in advance. In a first predetermined coordinate system, a first straight line (i.e. the dashed line in fig. 2) is determined which passes a first coordinate position of the electronic device and which is perpendicular to the first direction of movement. The first preset coordinate system is divided into two coordinate areas by a first straight line, and the area where the first ray in the two coordinate areas is located is used as the area without illumination requirements.
The illumination lamps, i.e., the illumination lamps A, B and C, which have been turned on before the second illumination lamp (i.e., the illumination lamp D) was turned on are acquired. Wherein the predetermined coordinate positions of the illumination lamps a and B are in the area without illumination requirement, i.e. the illumination lamps a and B are the third illumination lamps in the above, the illumination lamps a and B can be regarded as illumination lamps which are turned on behind the electronic device, and then the illumination lamps a and B are turned off.
In addition, if there is an illumination lamp whose predetermined coordinate position is on the first straight line, indicating that the illumination lamp is on the left or right side of the electronic device, the illumination lamp may be considered to be in an area without illumination requirements, and the illumination lamp may be turned off.
Second example
As shown in fig. 3, the first moving direction of the electronic device is a positive direction of the X axis, and the area on the left side of the first straight line is an area without lighting requirements. In fig. 3, the turned-on illumination lamps are the illumination lamps A, B and C, and the illumination lamps a and B are both in the area without illumination requirement, so the illumination lamps a and B are illumination lamps at the back or both sides of the electronic device, and further, the illumination lamps a and B are illumination lamps to be turned off, i.e., the third illumination lamp mentioned above.
Wherein, can judge whether the light is in this area of not having the illumination demand through following mode: and judging whether the X-axis coordinate value of the illuminating lamp is less than or equal to the X-axis coordinate value of the first coordinate position of the electronic equipment, and if the X-axis coordinate value of the illuminating lamp is less than or equal to the X-axis coordinate value of the first coordinate position, indicating that the illuminating lamp is behind or at two sides of the electronic equipment.
In one embodiment of the present invention, the illumination lamp control method further includes: and timing the illumination time length of the second illumination lamp so as to control the third illumination lamp to be turned off or reduce the brightness value of the third illumination lamp under the condition that the illumination time length of the second illumination lamp is greater than the first time length threshold value. According to the embodiment of the invention, the third illuminating lamp is turned off in a delayed manner, so that the situation that the third illuminating lamp is turned off too early is avoided. Or the brightness value of the third illuminating lamp is reduced in a delayed mode, so that the situation that the brightness value of the third illuminating lamp is reduced too early is avoided.
In one embodiment of the present invention, determining the second illumination lamp according to the third position includes:
detecting a gravitational acceleration of the electronic device, and detecting an orientation of the electronic device. For example, the electronic device is oriented parallel to the longest edge of the display screen of the electronic device.
And in the case that the gravity acceleration of the electronic equipment is not zero and the orientation of the electronic equipment changes periodically, the illumination lamp closest to the third position is taken as the second illumination lamp.
In the embodiment of the present invention, in a scenario where the electronic device is placed in a trousers pocket (such as a pocket in front of trousers) of a user, the gravity acceleration of the electronic device is not zero during walking of the user, and the orientation of the electronic device is a first direction when the user lifts his foot and a second direction when the user lowers his foot, so that the orientation of the electronic device is such that the first direction and the second direction alternately exhibit a periodic change. In such a scenario, the illumination lamp closest to the third position is taken as the second illumination lamp, and the illumination lamp closest to the user is turned on in advance.
In addition, after determining the second illumination lamp to be illuminated according to the third position, the illumination lamp control method further includes: and setting the brightness value of the second illuminating lamp as a second brightness percentage, wherein the second brightness percentage is determined according to the brightness percentage of the display screen of the electronic equipment. By setting the brightness value of the second illumination lamp to the second brightness percentage, the problem that the brightness of the second illumination lamp is too large to stimulate the eyes of the user is avoided.
After setting the brightness value of the second illumination lamp to the second brightness percentage, the illumination lamp control method further includes: and in the case that the brightness value of the second illuminating lamp is smaller than the preset illumination brightness value and the gravity acceleration change rate of the electronic device is larger than the preset change rate threshold value, increasing the brightness value of the second illuminating lamp to the preset illumination brightness value.
If the gravity acceleration change rate of the electronic equipment is larger than the preset change rate threshold value, the gravity acceleration of the electronic equipment is changed quickly, and then the user walks quickly, the brightness value of the second illuminating lamp is set to be a preset illumination brightness value (namely a normal brightness value) so as to prevent the brightness of the second illuminating lamp from being too small to achieve the purpose of illumination.
In one embodiment of the invention, the third position is a third coordinate position of the electronic device in a second predetermined coordinate system; after controlling the second illumination lamp to be turned on, or increasing the brightness value of the turned-on second illumination lamp, the method further includes:
and determining the area with the lighting requirement in the second preset coordinate system according to the second moving direction of the electronic equipment in the second preset coordinate system and the third coordinate position. Wherein determining the area with lighting requirements in the second predetermined coordinate system comprises: determining a second straight line which passes through the third coordinate position and is perpendicular to the second moving direction in a second preset coordinate system according to the second moving direction and the third coordinate position; determining a second coordinate area where a second ray is located in two coordinate areas formed by dividing a second straight line in a second preset coordinate system, wherein the end point of the second ray is a third coordinate position, and the direction of the second ray is a second moving direction; and taking the second coordinate area as an area with lighting requirements.
And acquiring the unopened illuminating lamp and the preset coordinate position of the unopened illuminating lamp in a second preset coordinate system. Wherein, it includes to obtain the light that does not turn on: determining the turned-on illuminating lamp according to the transmitted control signal for turning on the illuminating lamp; and acquiring a total illuminating lamp in the room, and determining the illuminating lamp which is not turned on according to the total illuminating lamp and the turned-on illuminating lamp.
And under the condition that a fourth illuminating lamp located in an area with a lighting requirement exists in the un-turned-on illuminating lamps, controlling the fourth illuminating lamp to be turned on or increasing the brightness value of the fourth illuminating lamp.
The above-described embodiment is explained below by way of an example.
As shown in fig. 4, in the second predetermined coordinate system, a second straight line (i.e., a dotted line in fig. 4) passing through the second coordinate position of the electronic device and perpendicular to the second moving direction of the electronic device is determined. The second predetermined coordinate system is divided into two coordinate areas by the second straight line, and the area where the second ray is located in the two coordinate areas is used as the area with the lighting requirement.
The non-turned-on illumination lamps A, B and D are obtained. Among them, the predetermined coordinate positions of the illumination lamps A, B and D are in the area where there is a need for illumination, i.e., the illumination lamps A, B and D are the fourth illumination lamps in the above, and the illumination lamps A, B and D may be regarded as illumination lamps which are not turned on in the front of the electronic device. Among them, the illumination lamp A, B and D closest to the second coordinate position of the electronic device may be selected to be turned on.
In the embodiment of the invention, the electronic equipment moves along with the movement of the user, and the illuminating lamp in the movement direction of the electronic equipment is turned on in advance according to the movement direction of the electronic equipment, so that the illumination is prepared for the user in advance, and the illumination requirement of the user is met. The first predetermined coordinate system and the second predetermined coordinate system may be the same coordinate system or different coordinate systems.
In one embodiment of the present invention, a lighting lamp control method includes:
determining the change amplitude of the gravity acceleration of the electronic equipment and the orientation change of the electronic equipment. For example, the electronic device is oriented parallel to the longest edge of the display screen of the electronic device.
Wherein, confirm the second light according to the third position, include:
and under the condition that the change amplitude of the gravity acceleration of the electronic equipment is smaller than a preset amplitude change threshold value and the duration of the direction of the electronic equipment kept in the same direction is larger than a second duration threshold value, indicating that the user watches the mobile phone while walking, and determining a second illuminating lamp according to a third position.
In an embodiment of the present invention, after step 102, the illumination lamp control method further includes:
receiving a first input into a first lighting scene, the first lighting scene being a scene illuminating a first room area; in response to a first input into the first lighting scene, turning on a fifth lighting lamp in the first room area or increasing a brightness value of the turned-on fifth lighting lamp. In addition to turning on the fifth illumination lamp, a predetermined illumination lamp on the way from the location of the electronic device to a predetermined location of the first room area may be turned on.
For example, the first lighting scene is a scene illuminating a toilet, the first room area is a toilet area, and if the electronic device receives a first input into the toilet lighting scene, the light illuminating the toilet and the lights along the way to the toilet from the location of the electronic device are turned on.
In one embodiment of the present invention, the illumination lamp control method further includes:
and setting the brightness value of the fifth lighting lamp as a control signal of a third brightness percentage, wherein the third brightness percentage is determined according to the brightness percentage of the display screen of the electronic equipment.
The brightness value of the fifth illuminating lamp is set according to the ambient brightness of the electronic equipment, so that the situation that the eyes of a user are stimulated due to over-brightness of the fifth illuminating lamp is avoided. The first brightness percentage to the third brightness percentage may be the same, or the first brightness percentage to the third brightness percentage may be different.
In one embodiment of the present invention, the illumination lamp control method further includes:
under the condition that the electronic equipment is located in the first house area, acquiring the average historical duration of the stay of the electronic equipment in the first house area and a first time point of a fifth illuminating lamp in the first house area, wherein the first time point is the latest starting time point of the fifth illuminating lamp or the latest brightness value increasing time point;
determining a second time point of a fifth lighting lamp according to the average historical duration and the first time point;
and at a second time point, controlling the fifth illuminating lamp to be turned off or restoring the brightness of the fifth illuminating lamp to a state before the brightness value is increased for the last time.
In the embodiment of the invention, the electronic equipment can intelligently turn off the fifth illuminating lamp or restore the fifth illuminating lamp to the state before the brightness value is increased, and a user does not need to manually operate the fifth illuminating lamp.
In an embodiment of the present invention, after S104, the illumination lamp control method further includes:
when the duration of the position of the electronic equipment in the second house area is greater than the third duration threshold value, the gravity acceleration of the electronic equipment is not zero, and under the condition of playing music, the lighting lamps except the sixth lighting lamp are controlled to be turned off, and the sixth lighting lamp is a lighting lamp for lighting the second house area.
In the embodiment of the present invention, the acceleration of gravity of the electronic device is not zero, and music is played to indicate that the user will stay in the second room area for a period of time, and then the lighting lamps except the sixth lighting lamp are controlled to be turned off. The automatic turn-off of the illuminating lamp which is not needed is realized, and the power resource is saved.
Wherein it may be detected whether a song in the music application is played, and if the song in the music application is played, it is determined that the music is played. Alternatively, sound may be collected and the collected sound may be recognized to determine whether music is played.
In an embodiment of the present invention, in a case that it is detected that a duration of the position of the electronic device in the second room area is greater than a third duration threshold, a gravitational acceleration of the electronic device is not zero, and music is played, the lighting lamp control method further includes:
under the condition that the gravity acceleration of the electronic equipment or the volume of music is increased, the brightness value of the sixth illuminating lamp is increased;
in the case where the gravitational acceleration of the electronic device or the volume of music is decreased, the luminance value of the sixth illumination lamp is decreased.
The illumination brightness of the sixth illuminating lamp is controlled to change along with the change rule of the gravity acceleration of the electronic equipment or the sound volume of music, so that the brightness of the illuminating lamp is intelligently adjusted, and the use experience of a user is improved.
In an embodiment of the present invention, after S104, the illumination lamp control method further includes:
detecting whether the electronic equipment is in a static state; when the duration that the electronic equipment is in the static state is longer than the fourth duration threshold, which indicates that the user may have a rest, the lighting lamps which are not turned off are turned off, or the lighting lamps with the brightness value being increased are returned to the state before the brightness value is increased.
As one example, detecting whether the electronic device is in a stationary state includes:
determining whether the position of the electronic device has changed and determining whether the electronic device has rotated at the current position. Specifically, in the case where it is determined that the position of the electronic device has not changed and the electronic device has not rotated at the current position, it is determined that the electronic device is in a stationary state. And determining that the terminal equipment is not in a static state when the position of the electronic equipment is determined to be changed or the electronic equipment is rotated at the current position.
In a specific application, whether the position of the electronic device is changed or whether the electronic device is rotated at the current position is detected by a motion sensor (MotionSensor). The motion sensor may be a gravity sensor, a gyroscope, an electronic compass, or a combination thereof, which is not limited in the present invention. For example, whether the position of the electronic device has changed may be determined by determining whether the translational acceleration of the electronic device along the x-axis, the y-axis, and the z-axis has all changed using a gravity sensor. That is, the electronic device is in a static state only when the values on the respective axes are not changed, otherwise the position of the electronic device is changed when the value on at least one of the axes is changed. For example, acceleration coordinates on the x-axis, y-axis, and z-axis corresponding to the electronic device in the initial state are (0, 0, -10), and when the acceleration coordinate of the electronic device becomes (0, 0, 0), the position of the electronic device changes.
According to the embodiment of the invention, when the electronic equipment is in the static state for a long time, the user has a rest, the illuminating lamp is turned off, so that the illuminating lamp is turned off intelligently under the condition that the user does not need to illuminate for the rest, and the user is prevented from turning off the illuminating lamp manually.
The following examples further illustrate the invention by means of four specific examples.
Example one
The electronic equipment is a mobile phone, and the mobile phone and the illuminating lamp are integrated with a Wireless Fidelity (WiFi) protocol of the Internet of things. The mobile phone detects the environment brightness value through the light sensor, for example, no light is turned on at night, or in daytime, the light in the room is dark due to the fact that a curtain is pulled up, so that the environment brightness value is smaller than the environment brightness threshold value, and the gravity sensor of the mobile phone is turned on. When the gravity sensor of the mobile phone detects that the gravity changes, the user takes the mobile phone at night, and the mobile phone automatically connects WiFi and automatically starts the positioning function.
In the case of a bright screen of the mobile phone, the brightness value a (i.e., the first brightness percentage) that is eye-friendly is determined according to the ambient brightness value detected by the light sensor. And determining the current position of the mobile phone according to the positioning function of the mobile phone. According to the current position of the mobile phone, one lighting lamp (such as a bedside lamp) closest to the mobile phone is selected. The mobile phone sends a control signal for turning on the illuminating lamp through WiFi and sends a control signal for setting the brightness value of the illuminating lamp to be a brightness value A. The mobile phone can control the lighting lamp to be turned on and set the brightness value of the lighting lamp.
The embodiment can be applied to scenes that the user cannot fall asleep when the user rolls over at night and plays the mobile phone at night.
Example two
The present embodiment is an improvement on the basis of the first embodiment, and the difference between the present embodiment and the first embodiment is that after the mobile phone controls the illumination lamp to be turned on, the mobile phone displays whether to enter a night bathroom scene.
If the mobile phone receives a first input of a scene of entering a bathroom at night, the mobile phone controls an illuminating lamp (an illuminating lamp of the bathroom, namely, the fifth illuminating lamp) of the bathroom to be turned on, controls an illuminating lamp on a road from the current position of the mobile phone to the bathroom to be turned on, and sets the brightness values of the illuminating lamp of the bathroom and the illuminating lamp on the road to be a brightness value A.
The mobile phone determines the average historical time of the user staying in the toilet according to the time point when the user enters the toilet and the time point when the user leaves the toilet, so that the time of the user staying in the toilet at this time is predicted, and the time of turning off an illuminating lamp of the toilet and the time of turning off the illuminating lamp on the way are further set. Or the mobile phone sets the lighting lamp of the toilet and the lighting lamp along the way to be turned off after a preset time.
EXAMPLE III
The present embodiment is an improvement on the first embodiment, and the difference between the present embodiment and the first embodiment is that after the illumination lamp (such as a bedside lamp) is turned on, the mobile phone displays whether to enter a night scene.
Under the condition that the mobile phone receives a first operation of entering a night scene, the position change of the mobile phone is detected through the positioning function of the mobile phone, whether the gravity acceleration exists or not is detected through the gravity sensor of the mobile phone, and the orientation of the mobile phone is detected through the direction sensor of the mobile phone. When the moving distance of the mobile phone is greater than the distance threshold value M, the gravity acceleration of the mobile phone is not zero, and the orientation of the mobile phone periodically changes, it indicates that the user holds the mobile phone or places the mobile phone in a trouser pocket, turns on the lighting lamp along the way and turns off the lighting lamp before the turning on in a delayed manner in the process of going to a place (such as a kitchen) where food is placed. When the user finishes eating and returns to the bedroom to prepare for sleeping, the mobile phone is in a static state and is turned off for more than S seconds, and all illuminating lamps are automatically turned off.
Example four
The present embodiment is an improvement on the first embodiment, and the present embodiment is different from the first embodiment in that after the illumination lamps (such as bedside lamps) are turned on, if the time length of the position of the mobile phone in a room area is greater than the third time length threshold value, the position of the mobile phone is changed little or hardly, the mobile phone has a gravitational acceleration, the orientation of the mobile phone is changed randomly, music is played, that is, the user gets up to hi at night, only the illumination lamps near the mobile phone are kept turned on, that is, only the illumination lamp illuminating the current position of the user (i.e., the seventh illumination lamp in the above description) is kept turned on, and other illumination lamps are turned off.
The mobile phone controls the brightness of the currently turned-on illuminating lamp to change along with the change of the sound volume of the music or the change of the gravity acceleration, so that the brightness of the illuminating lamp changes along with the melody of the music or the dancing of the user. And if the mobile phone is in a static state and is turned off more than S seconds after the mobile phone is turned off, all the lamps are automatically turned off.
In the above embodiments, the electronic device is a mobile phone, but of course, the electronic device may be other devices, such as a tablet computer, a notebook computer, a palm computer, a wearable device, and a pedometer.
Fig. 5 shows a schematic structural diagram of a lighting lamp control device according to an embodiment of the present invention. As shown in fig. 5, the illumination lamp control device 200 includes:
the first illuminating lamp determining module 202 is configured to determine a first illuminating lamp according to a first position of the electronic device when an environment brightness value of the electronic device is smaller than an environment brightness threshold and movement information of the electronic device changes;
the first illumination control module 204 is configured to control the first illumination lamp to turn on, or increase a brightness value of the turned-on first illumination lamp.
In the embodiment of the invention, if the movement information of the electronic equipment changes, the user is explained to move the electronic equipment. If the ambient brightness value of the electronic device is less than the ambient brightness threshold, it indicates that the user has a need for illumination. Therefore, when the ambient brightness value of the electronic device is smaller than the ambient brightness threshold and the movement information of the electronic device changes, the first illuminating lamp is determined, turned on is controlled, or the brightness value of the turned-on first illuminating lamp is increased according to the first position of the electronic device. Thereby realized under the condition that the user has the illumination demand, the automatic of first light is opened or automatic increase luminance value, does not need the user to find first light and manual operation throws light on to user's convenience has been promoted.
Optionally, the first illumination lamp determination module comprises:
the first illuminating lamp determining submodule is used for taking an illuminating lamp corresponding to the first position as a first illuminating lamp;
alternatively, the first and second electrodes may be,
and the second illuminating lamp determining sub-module is used for taking the illuminating lamp closest to the first position in the plurality of preset illuminating lamps as the first illuminating lamp according to the distance between the position of each illuminating lamp in the plurality of preset illuminating lamps and the first position.
Optionally, the first lighting control module comprises:
the first brightness value control module is used for controlling the brightness value of the first illuminating lamp to be a first brightness percentage; wherein the first brightness percentage is determined according to a display screen brightness value of the electronic device.
Optionally, the lighting lamp control device 200 further comprises:
the second illuminating lamp determining module is used for determining a second illuminating lamp according to a third position under the condition that the electronic equipment moves from the second position to the third position, wherein the distance between the third position and the second position is greater than a preset distance threshold;
and the second illumination control module is used for controlling the second illuminating lamp to be turned on or increasing the brightness value of the turned-on second illuminating lamp.
Optionally, the lighting lamp control device 200 further comprises:
and the third illumination control module is used for controlling the illumination lamp which is turned on last time to be turned off or restoring the illumination lamp with the brightness value increased last time to the state before the brightness value is increased under the condition that the illumination time length of the second illumination lamp is greater than the first time length threshold value.
Optionally, the lighting lamp control device 200 further comprises:
the non-illumination-requirement-area determining module is used for determining an area without illumination requirement in a first preset coordinate system according to a first moving direction and a first coordinate position of the electronic equipment in the first preset coordinate system;
the first acquisition module is used for acquiring an illuminating lamp which is turned on before the second illuminating lamp is turned on and a preset coordinate position of the turned-on illuminating lamp in a first preset coordinate system;
and the fourth illumination control module is used for controlling the third illumination lamp to be turned off or reducing the brightness value of the third illumination lamp under the condition that the third illumination lamp located in the area without illumination requirements exists in the turned-on illumination lamps.
Optionally, the second illumination lamp determination module comprises:
the first detection module is used for detecting the gravity acceleration of the electronic equipment and detecting the orientation of the electronic equipment;
and the distance-nearest lighting lamp determining module is used for taking the lighting lamp nearest to the third position as the second lighting lamp under the condition that the gravity acceleration of the electronic equipment is not zero and the orientation of the electronic equipment changes periodically.
Optionally, the lighting lamp control device 200 further comprises:
and the fifth illumination control module is used for increasing the brightness value of the second illumination lamp to the preset illumination brightness value under the condition that the brightness value of the second illumination lamp is smaller than the preset illumination brightness value and the gravity acceleration change rate of the electronic equipment is larger than the preset change rate threshold value.
Optionally, the third position is a third coordinate position of the electronic device in a second predetermined coordinate system; the lighting lamp control device 200 further includes:
the lighting requirement area determining module is used for determining an area with a lighting requirement in a second preset coordinate system according to a second moving direction of the electronic equipment in the second preset coordinate system and a third coordinate position;
the second acquisition module is used for acquiring the unopened illuminating lamp and the preset coordinate position of the unopened illuminating lamp in a second preset coordinate system;
and the sixth illumination control module is used for controlling the fourth illumination lamp to be turned on or increasing the brightness value of the fourth illumination lamp under the condition that the fourth illumination lamp located in the area with the illumination requirement exists in the unopened illumination lamps.
Optionally, the lighting lamp control device 200 further comprises:
the electronic equipment determining module is used for determining the change amplitude of the gravity acceleration of the electronic equipment and the orientation change of the electronic equipment;
and the second illuminating lamp determining module is used for determining a second illuminating lamp according to the third position under the condition that the change amplitude of the gravity acceleration of the electronic equipment is smaller than a preset amplitude change threshold value and the duration of the direction of the electronic equipment kept in the same direction is larger than a second duration threshold value.
Optionally, the lighting lamp control device 200 further comprises:
the third acquisition module is used for acquiring the average historical duration of the stay of the electronic equipment in the first house area and a first time point of a fifth lighting lamp in the first house area under the condition that the electronic equipment is located in the first house area, wherein the first time point is the latest starting time point of the fifth lighting lamp or the latest brightness value increasing time point;
the time point determining module is used for determining a second time point of the fifth illuminating lamp according to the average historical time and the first time point;
and the seventh illumination control module is used for controlling the fifth illumination lamp to be turned off or restoring the brightness of the fifth illumination lamp to a state before the brightness value is increased for the last time at the second time point.
Optionally, the lighting lamp control device 200 further comprises:
and the eighth lighting control module is used for controlling the lighting lamps except the sixth lighting lamp to be turned off under the conditions that the duration of the position of the electronic equipment in the second house area is greater than the third duration threshold value, the gravity acceleration of the electronic equipment is not zero and music is played, and the sixth lighting lamp is a lighting lamp for lighting in the second house area.
Optionally, the lighting lamp control device 200 further comprises:
the ninth illumination control module is used for increasing the brightness value of the sixth illumination lamp under the condition that the gravity acceleration of the electronic equipment or the volume of music is increased;
and the tenth lighting control module is used for reducing the brightness value of the sixth lighting lamp under the condition that the gravity acceleration of the electronic equipment or the volume of the music is reduced.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present invention.
The electronic device 300 includes, but is not limited to: radio frequency unit 301, network module 302, audio output unit 303, input unit 304, sensor 305, display unit 306, user input unit 307, interface unit 308, memory 309, processor 310, and power supply 311. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a wearable device, a pedometer, and the like.
The processor 310 is configured to determine a first illumination lamp according to a first position of the electronic device when an ambient brightness value of the electronic device is smaller than an ambient brightness threshold and movement information of the electronic device changes; controlling the first illuminating lamp to be turned on, or increasing the brightness value of the turned-on first illuminating lamp.
In the embodiment of the invention, if the movement information of the electronic equipment changes, the user is explained to move the electronic equipment. If the ambient brightness value of the electronic device is less than the ambient brightness threshold, it indicates that the user has a need for illumination. Therefore, when the ambient brightness value of the electronic device is smaller than the ambient brightness threshold and the movement information of the electronic device changes, the first illuminating lamp is determined, turned on is controlled, or the brightness value of the turned-on first illuminating lamp is increased according to the first position of the electronic device. Thereby realized under the condition that the user has the illumination demand, the automatic of first light is opened or automatic increase luminance value, does not need the user to find first light and manual operation throws light on to user's convenience has been promoted.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 301 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the electronic apparatus 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The electronic device 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or the backlight when the electronic device 300 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown as two separate components in fig. 6 to implement the input and output functions of the electronic device, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 308 is an interface for connecting an external device to the electronic apparatus 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 300 or may be used to transmit data between the electronic apparatus 300 and the external device.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 310 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The electronic device 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 300 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above-mentioned embodiment of the illumination lamp control method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the illumination lamp control method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (15)

1. An illumination lamp control method is applied to electronic equipment, and is characterized by comprising the following steps:
determining a first illuminating lamp according to a first position of the electronic equipment under the condition that the environmental brightness value of the electronic equipment is smaller than an environmental brightness threshold value and the movement information of the electronic equipment is changed;
controlling the first illuminating lamp to be turned on, or increasing the brightness value of the turned-on first illuminating lamp.
2. The method of claim 1, wherein determining a first illumination lamp based on the first location of the electronic device comprises:
taking the illuminating lamp corresponding to the first position as the first illuminating lamp;
alternatively, the first and second electrodes may be,
and according to the distance between the position of each illuminating lamp in a plurality of preset illuminating lamps and the first position, taking the illuminating lamp closest to the first position in the plurality of preset illuminating lamps as the first illuminating lamp.
3. The method according to claim 1, wherein the controlling the first illumination lamp to turn on or increasing the brightness value of the first illumination lamp that has been turned on comprises
Controlling the brightness value of the first illuminating lamp to be a first brightness percentage;
wherein the first brightness percentage is determined according to a display screen brightness value of the electronic device.
4. The method according to claim 1, wherein after the controlling the first illumination lamp to start illumination or increasing the brightness value of the first illumination lamp that has been turned on, the method further comprises:
under the condition that the electronic equipment moves from a second position to a third position, determining a second illuminating lamp according to the third position, wherein the distance between the third position and the second position is greater than a preset distance threshold;
controlling the second illuminating lamp to be turned on, or increasing the brightness value of the turned-on second illuminating lamp.
5. The method according to claim 4, wherein after the controlling the second illumination lamp to turn on or increasing the brightness value of the second illumination lamp, the method further comprises:
and under the condition that the illumination time length of the second illumination lamp is greater than a first time length threshold value, controlling the illumination lamp which is turned on last time to be turned off, or restoring the illumination lamp which is increased in brightness value last time to the state before the brightness value is increased.
6. The method according to claim 4, wherein after the controlling the second illumination lamp to turn on or increasing the brightness value of the second illumination lamp that has been turned on, the method further comprises:
determining an area without illumination requirement in a first preset coordinate system according to a first moving direction and a first coordinate position of the electronic equipment in the first preset coordinate system;
acquiring an illumination lamp which is turned on before the second illumination lamp is turned on and a predetermined coordinate position of the turned-on illumination lamp in the first predetermined coordinate system;
in the case that a third illumination lamp located in the area without the illumination requirement exists in the turned-on illumination lamps, controlling the third illumination lamp to be turned off or reducing the brightness value of the third illumination lamp.
7. The method of claim 4, wherein determining a second illumination lamp based on the third location comprises:
detecting a gravitational acceleration of the electronic device, and detecting an orientation of the electronic device;
and in the case that the gravity acceleration of the electronic equipment is not zero and the orientation of the electronic equipment changes periodically, taking the illuminating lamp closest to the third position as the second illuminating lamp.
8. The method according to claim 4, wherein after the controlling the second illumination lamp to turn on or increasing the brightness value of the second illumination lamp, the method further comprises:
and increasing the brightness value of the second illuminating lamp to a preset illumination brightness value under the condition that the brightness value of the second illuminating lamp is smaller than the preset illumination brightness value and the gravity acceleration change rate of the electronic equipment is larger than a preset change rate threshold value.
9. The method of claim 4, wherein the third location is a third coordinate location of the electronic device in a second predetermined coordinate system;
after the controlling of the second illumination lamp to turn on or increasing the brightness value of the second illumination lamp that has been turned on, the method further includes:
determining an area with a lighting requirement in a second preset coordinate system according to a second moving direction of the electronic equipment in the second preset coordinate system and the third coordinate position;
acquiring an unopened illuminating lamp and a preset coordinate position of the unopened illuminating lamp in the second preset coordinate system;
and under the condition that a fourth illuminating lamp located in the area with the illumination requirement exists in the unopened illuminating lamps, controlling the fourth illuminating lamp to be turned on or increasing the brightness value of the fourth illuminating lamp.
10. The method of claim 4, further comprising:
determining the change amplitude of the gravity acceleration of the electronic equipment and the orientation change of the electronic equipment;
wherein the determining a second illumination lamp according to the third position comprises:
and under the condition that the change amplitude of the gravity acceleration of the electronic equipment is smaller than a preset amplitude change threshold value and the duration of the direction of the electronic equipment kept in the same direction is larger than a second duration threshold value, determining the second illuminating lamp according to the third position.
11. The method of claim 1, further comprising:
under the condition that the electronic equipment is located in a first house area, acquiring the average historical duration of the electronic equipment staying in the first house area and a first time point of a fifth lighting lamp in the first house area, wherein the first time point is the time point of the fifth lighting lamp which is turned on last time or the time point of the fifth lighting lamp which is increased in brightness value last time;
determining a second time point of the fifth illuminating lamp according to the average historical duration and the first time point;
and at the second time point, controlling the fifth illuminating lamp to be turned off or restoring the brightness of the fifth illuminating lamp to a state before the brightness value is increased last time.
12. The method according to claim 1, wherein after the controlling the first illumination lamp to turn on or increasing a brightness value of the first illumination lamp that has been turned on, the method further comprises:
the duration of the position of the electronic equipment in the second room area is greater than a third duration threshold value, the gravity acceleration of the electronic equipment is not zero, and under the condition of playing music, the lighting lamps except the sixth lighting lamp are controlled to be turned off, and the sixth lighting lamp is the lighting lamp for the second room area lighting.
13. The method of claim 12, further comprising:
increasing the brightness value of the sixth illuminating lamp under the condition that the gravity acceleration of the electronic equipment or the volume of the music is increased;
and when the gravity acceleration of the electronic equipment or the volume of the music is reduced, reducing the brightness value of the sixth illuminating lamp.
14. A lighting lamp control device applied to an electronic device, the device comprising:
the first illuminating lamp determining module is used for determining a first illuminating lamp according to a first position of the electronic equipment under the condition that the environmental brightness value of the electronic equipment is smaller than an environmental brightness threshold value and the movement information of the electronic equipment is changed;
the first illumination control module is used for controlling the first illumination lamp to be turned on or increasing the brightness value of the turned-on first illumination lamp.
15. An electronic device, characterized by comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the lighting lamp control method according to any one of claims 1 to 13.
CN201911204936.5A 2019-11-29 2019-11-29 Lighting lamp control method, lighting lamp control device, electronic equipment and medium Pending CN110888681A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911204936.5A CN110888681A (en) 2019-11-29 2019-11-29 Lighting lamp control method, lighting lamp control device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911204936.5A CN110888681A (en) 2019-11-29 2019-11-29 Lighting lamp control method, lighting lamp control device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN110888681A true CN110888681A (en) 2020-03-17

Family

ID=69749624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911204936.5A Pending CN110888681A (en) 2019-11-29 2019-11-29 Lighting lamp control method, lighting lamp control device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110888681A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568320A (en) * 2021-07-19 2021-10-29 珠海格力电器股份有限公司 Device control method and device, electronic device and computer-readable storage medium
CN116113115A (en) * 2023-02-20 2023-05-12 广州易而达科技股份有限公司 Control method, device and equipment of lighting lamp and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104039040A (en) * 2014-05-26 2014-09-10 小米科技有限责任公司 Control method and device for intelligent lamp
CN104427715A (en) * 2013-09-10 2015-03-18 松下电器产业株式会社 Method for controlling communications terminal, illumination control system and illumination apparatus
CN106842968A (en) * 2017-02-08 2017-06-13 浙江吉利控股集团有限公司 A kind of control method, apparatus and system
CN108156729A (en) * 2017-12-06 2018-06-12 北京小米移动软件有限公司 The control method and device of lighting apparatus, lighting apparatus
CN108601176A (en) * 2018-04-28 2018-09-28 深圳春沐源控股有限公司 Control method, system, computer equipment and the storage medium of brightness regulating apparatus
CN108901104A (en) * 2018-05-25 2018-11-27 北京小米移动软件有限公司 Method, controller, control device, system and the storage medium of controlled by sound and light

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104427715A (en) * 2013-09-10 2015-03-18 松下电器产业株式会社 Method for controlling communications terminal, illumination control system and illumination apparatus
CN104039040A (en) * 2014-05-26 2014-09-10 小米科技有限责任公司 Control method and device for intelligent lamp
CN106842968A (en) * 2017-02-08 2017-06-13 浙江吉利控股集团有限公司 A kind of control method, apparatus and system
CN108156729A (en) * 2017-12-06 2018-06-12 北京小米移动软件有限公司 The control method and device of lighting apparatus, lighting apparatus
CN108601176A (en) * 2018-04-28 2018-09-28 深圳春沐源控股有限公司 Control method, system, computer equipment and the storage medium of brightness regulating apparatus
CN108901104A (en) * 2018-05-25 2018-11-27 北京小米移动软件有限公司 Method, controller, control device, system and the storage medium of controlled by sound and light

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113568320A (en) * 2021-07-19 2021-10-29 珠海格力电器股份有限公司 Device control method and device, electronic device and computer-readable storage medium
CN116113115A (en) * 2023-02-20 2023-05-12 广州易而达科技股份有限公司 Control method, device and equipment of lighting lamp and storage medium
CN116113115B (en) * 2023-02-20 2023-08-18 广州易而达科技股份有限公司 Control method, device and equipment of lighting lamp and storage medium

Similar Documents

Publication Publication Date Title
CN109343759B (en) Screen-turning display control method and terminal
CN108174044B (en) Alarm clock setting method and mobile terminal
CN108762877B (en) Control method of mobile terminal interface and mobile terminal
CN108174037B (en) Notification message prompting method and mobile terminal
CN109901695B (en) Screen power-saving display method, mobile terminal and computer-readable storage medium
CN109710150B (en) Key control method and terminal
CN108600557B (en) Screen on-off control method and mobile terminal
CN111324235A (en) Screen refreshing frequency adjusting method and electronic equipment
CN109785815B (en) Screen brightness adjusting method and mobile terminal
CN108494945B (en) Sun-proof reminding method and mobile terminal
CN109656636B (en) Application starting method and device
CN108984145B (en) Brightness adjusting method and electronic equipment
CN109104689B (en) Safety warning method and terminal
CN108512615B (en) Signal intensity display method and mobile terminal
CN110888681A (en) Lighting lamp control method, lighting lamp control device, electronic equipment and medium
CN111415722A (en) Screen control method and electronic equipment
CN109933196B (en) Screen control method and device and terminal equipment
CN109889756B (en) Video call method and terminal equipment
CN111221602A (en) Interface display method and electronic equipment
CN112416278B (en) Screen sharing method and device, electronic equipment and storage medium
CN111261128B (en) Screen brightness adjusting method and electronic equipment
CN107729100B (en) Interface display control method and mobile terminal
CN111417929A (en) Interface display method and control terminal
CN110851107B (en) Control method of electronic equipment and electronic equipment
CN111061407B (en) Video program operation control method, electronic device, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200317