CN107592418B - Method for turning on flashlight of mobile terminal and mobile terminal - Google Patents
Method for turning on flashlight of mobile terminal and mobile terminal Download PDFInfo
- Publication number
- CN107592418B CN107592418B CN201710791985.8A CN201710791985A CN107592418B CN 107592418 B CN107592418 B CN 107592418B CN 201710791985 A CN201710791985 A CN 201710791985A CN 107592418 B CN107592418 B CN 107592418B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- flashlight
- intensity value
- preset
- blowing
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 95
- 238000007664 blowing Methods 0.000 claims abstract description 191
- 238000001514 detection method Methods 0.000 claims abstract description 38
- 230000006870 function Effects 0.000 claims description 98
- 230000001960 triggered effect Effects 0.000 claims description 27
- 238000004590 computer program Methods 0.000 claims description 5
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000008569 process Effects 0.000 description 34
- 238000010586 diagram Methods 0.000 description 12
- 230000004044 response Effects 0.000 description 9
- 230000002035 prolonged effect Effects 0.000 description 2
- 239000013589 supplement Substances 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000004913 activation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000000284 extract Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02B—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
- Y02B20/00—Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
- Y02B20/40—Control techniques providing energy savings, e.g. smart controller or presence detection
Landscapes
- Telephone Function (AREA)
Abstract
A method for turning on a flashlight of a mobile terminal and the mobile terminal comprise the following steps: the mobile terminal detects whether a blowing signal is received or not, if the blowing signal is detected to be received, whether a user is in a preset distance range or not is detected, if the user is detected to be in the preset distance range, whether the strength value of the blowing signal is in a preset strength value range or not is detected, and if the strength value of the blowing signal is detected to be in the preset strength value range, the flashlight is turned on. By implementing the embodiment of the invention, the flashlight can be turned on in a blowing mode by detecting whether the blowing signal is received or not, detecting whether the user is in the preset distance range or not and detecting whether the strength value of the blowing signal is in the preset strength value range or not, the flashlight does not need to be turned on by touching, the turning-on convenience of the flashlight of the mobile terminal is improved, the flashlight is judged to be turned on by multiple times of detection, and the turning-on accuracy is improved.
Description
Technical Field
The invention relates to the technical field of electronic equipment, in particular to a method for turning on a flashlight of a mobile terminal and the mobile terminal.
Background
At present, with the popularization of mobile terminals, the functions applied to the mobile terminals are increasing, and the emergency functions on the mobile terminals are more and more popular with users, wherein one of the most common emergency functions is a flashlight. In practical applications, when the flashlight is started, the mobile terminal is often required to be unlocked, a required flashlight emergency function is found in a variety of functions, and the operation process is usually completed by touching the screen, but the operation process is not conveniently completed by the action of touching the screen in many cases, for example, when a user has water on the hand or wears gloves, the flashlight is difficult to be started by touching the screen. Therefore, the problem of poor opening convenience exists in the current opening method of the flashlight of the mobile terminal.
Disclosure of Invention
The embodiment of the invention discloses a method for turning on a mobile terminal flashlight and a mobile terminal, which can improve the turning-on convenience of the mobile terminal flashlight.
The embodiment of the invention discloses and provides a method for turning on a flashlight of a mobile terminal in a first aspect, which comprises the following steps:
the mobile terminal detects whether a first blowing signal is received;
when the first blowing signal is detected to be received, the mobile terminal detects whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered, and if the user is detected to be located within the preset distance range from the mobile terminal when the first blowing signal is triggered, the mobile terminal detects whether the intensity value of the first blowing signal is located within a preset intensity value range;
and when the intensity value is detected to be within the preset intensity value range, the mobile terminal turns on the flashlight.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after detecting that the first blowing signal is received, and before the mobile terminal detects whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered, the method further includes:
the mobile terminal detects whether a screen of the mobile terminal is in a screen locking state or a screen blank state, and if so, the step of detecting whether a user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered;
after detecting that the intensity value is within the preset intensity value range and before the mobile terminal turns on a flashlight, the method further comprises:
and the mobile terminal detects whether the duration time of the first blowing signal is within a preset time range, and if the duration time of the first blowing signal is within the preset time range, the step of turning on the flashlight is triggered and executed.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, before the mobile terminal detects whether the first blowing signal is received, the method further includes:
the mobile terminal establishes wireless connection with the photographing equipment;
the mobile terminal turns on the flashlight, including:
the mobile terminal acquires the light brightness value of the position where the photographic equipment is located through the wireless connection;
and the mobile terminal judges whether the photographic equipment needs to be polished according to the light brightness value, if so, the emission angle of a light source emitter in the flashlight is adjusted according to the position of the photographic equipment, so that a light source emitted by the light source emitter at the adjusted emission angle faces the photographic equipment, and the light source emitter is controlled to emit the light source according to the adjusted emission angle.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after detecting that the intensity value is within the preset intensity value range and before the mobile terminal turns on the flashlight, the method further includes:
the mobile terminal determines a first target blowing frequency contained in the first blowing signal, and inquires a first target function key corresponding to the first target blowing frequency from a pre-stored corresponding relation between the blowing frequency and a function key;
the mobile terminal judges whether the first target function key is a function key for turning on the flashlight or not, and if so, the step of turning on the flashlight is triggered and executed;
after the mobile terminal turns on a flashlight, the method further comprises:
when a second blowing signal is detected to be received, the mobile terminal determines a second target blowing frequency contained in the second blowing signal and inquires a second target function key corresponding to the second target blowing frequency from the corresponding relation;
and the mobile terminal judges whether the second target function key is a function key for turning off the flashlight or not, and turns off the flashlight if the second target function key is the function key for turning off the flashlight.
As an optional implementation manner, in the first aspect of the embodiment of the present invention, after the flashlight is turned on by the mobile terminal, the method further includes:
the mobile terminal detects the intensity value of the light source emitted by the flashlight and judges whether the intensity value is higher than a preset light source intensity value or not, and if the intensity value is higher than the preset light source intensity value, the intensity value of the light source emitted by the flashlight is adjusted, so that the adjusted intensity value is smaller than or equal to the preset light source intensity value.
A second aspect of an embodiment of the present invention discloses a mobile terminal, including:
the first detection unit is used for detecting whether a first blowing signal is received or not;
the second detection unit is used for detecting whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered when the first detection unit detects that the first blowing signal is received;
the third detection unit is used for detecting whether the intensity value of the first blowing signal is within a preset intensity value range or not when the second detection unit detects that the user is within the preset distance range from the mobile terminal when the first blowing signal is triggered;
and the starting unit is used for starting the flashlight when the third detection unit detects that the intensity value is within the preset intensity value range.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the mobile terminal further includes:
a fourth detection unit, configured to detect whether a screen of the mobile terminal is in a screen lock state or a screen blank state after the first detection unit detects that the first blowing signal is received, and if so, start the second detection unit to perform the step of detecting whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered;
a fifth detecting unit, configured to detect whether a duration of the first blowing signal is within a preset time range after the third detecting unit detects that the intensity value is within the preset intensity value range;
the turning-on unit is specifically configured to turn on the flashlight when the third detection unit detects that the intensity value is within the preset intensity value range and when the fifth detection unit detects that the duration of the first blowing signal is within the preset time range.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the mobile terminal further includes:
the establishing unit is used for establishing wireless connection with the photographing equipment before the first detecting unit detects whether the first blowing signal is received or not;
the opening unit includes:
an obtaining subunit, configured to obtain, when the third detecting unit detects that the intensity value is within the preset intensity value range and when the fifth detecting unit detects that the duration of the first air-blowing signal is within the preset time range, a light brightness value at a position where the photographing apparatus is located through the wireless connection established by the establishing unit;
the judging subunit is used for judging whether the photographing equipment needs to be polished according to the light brightness value acquired by the acquiring subunit;
the adjusting subunit is configured to adjust an emission angle of a light source emitter in the flashlight according to the position of the photographing device when the determining subunit determines that the light needs to be turned on, so that a light source emitted by the light source emitter at the adjusted emission angle faces the photographing device;
and the emission subunit is used for controlling the light source emitter to emit light sources according to the emission angle adjusted by the adjustment subunit.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the mobile terminal further includes:
a first determining unit, configured to determine a first target blowing frequency included in the first blowing signal after the third detecting unit detects that the intensity value is within the preset intensity value range;
the first query unit is used for querying a first target function key corresponding to the first target blowing times determined by the first determination unit from a pre-stored corresponding relationship between the blowing times and the function keys;
a first judging unit, configured to judge whether the first target function key queried by the first querying unit is a function key for turning on a flashlight;
the starting unit is specifically configured to start the flashlight when the third detection unit detects that the intensity value is within the preset intensity value range and when the first determination unit determines that the first target function key is a function key for starting the flashlight;
the sixth detection unit is used for detecting whether a second blowing signal is received or not after the flashlight is turned on by the turning-on unit;
the second determining unit is used for determining a second target blowing frequency contained in the second blowing signal when the sixth detecting unit detects that the second blowing signal is received;
the second query unit is used for querying a second target function key corresponding to the second target blowing times determined by the second determination unit from the corresponding relation;
a second judging unit, configured to judge whether the second target function key queried by the second querying unit is a function key for turning off the flashlight;
a closing unit, configured to close the flashlight when the second determining unit determines that the second target function key queried by the second querying unit is a function key for closing the flashlight.
As an optional implementation manner, in a second aspect of the embodiment of the present invention, the mobile terminal further includes:
the seventh detection unit is used for detecting the intensity value of the light source emitted by the flashlight after the flashlight is turned on by the turning-on unit;
a third judging unit, configured to judge whether the intensity value detected by the seventh detecting unit is higher than a preset light source intensity value;
and the adjusting unit is used for adjusting the intensity value of the light source emitted by the flashlight when the third judging unit judges that the intensity value detected by the seventh detecting unit is higher than the preset light source intensity value, so that the adjusted intensity value is smaller than or equal to the preset light source intensity value.
A third aspect of the embodiments of the present invention discloses a mobile terminal, including:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the method for turning on the flashlight of the mobile terminal disclosed by the first aspect of the embodiment of the invention.
The fourth aspect of the embodiments of the present invention discloses a computer-readable storage medium, which stores a computer program, wherein the computer program enables a computer to execute the method for turning on a flashlight of a mobile terminal disclosed in the first aspect of the embodiments of the present invention.
Compared with the prior art, the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the mobile terminal detects whether the blowing signal is received, if the blowing signal is detected to be received, the mobile terminal detects whether the user is in a preset distance range, if the user is detected to be in the preset distance range, the mobile terminal detects whether the strength value of the blowing signal is in a preset threshold range, and if the strength value of the blowing signal is detected to be in the preset threshold range, the flashlight is turned on. The flashlight can be turned on in a blowing mode by detecting the distance between the user and the mobile terminal and the strength value of the blowing signal, the required flashlight emergency function does not need to be found in various functions, the flashlight does not need to be turned on by touching, the turning-on convenience of the flashlight of the mobile terminal is improved, and when the distance between the user and the mobile terminal is within the preset distance value and the strength value of the blowing signal is within the preset strength value range, the flashlight is turned on, so that the turning-on accuracy is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart illustrating a method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating another method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating another method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating another method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention;
FIG. 5 is a flow chart illustrating another method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal disclosed in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention;
fig. 8 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention;
fig. 9 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention;
fig. 10 is a schematic structural diagram of another mobile terminal disclosed in the embodiment of the present invention;
fig. 11 is a schematic structural diagram of another mobile terminal disclosed in the 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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
It is to be noted that the terms "comprises" and "comprising" and any variations thereof in the embodiments and drawings of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
The embodiment of the invention discloses a method for turning on a mobile terminal flashlight and a mobile terminal, which can improve the turning-on convenience of the mobile terminal flashlight. The following are detailed below.
Example one
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention. The method for turning on the flashlight of the mobile terminal described in fig. 1 is suitable for various mobile terminals such as smart phones and tablet computers, and the embodiment of the invention is not limited. As shown in fig. 1, the method for turning on the mobile terminal flashlight may include the following steps:
101. the mobile terminal detects whether a first blowing signal is received, if so, the step 102 is executed, and if not, the process is ended.
In the embodiment of the present invention, the mobile terminal includes a mobile phone, a notebook, a tablet computer, a POS machine, and the like, which is not limited in the embodiment of the present invention. The mobile terminal detects whether a first blowing signal is received, wherein the first blowing signal includes characteristic values such as a blowing intensity value and a blowing duration. When the mobile terminal detects that the first blowing signal is received, determining a distance value between the user and the mobile terminal when the first blowing signal is triggered, executing step 102, and when the mobile terminal detects that the first blowing signal is not received, ending the process.
102. The mobile terminal detects whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered, if so, step 103 is executed, and if not, the process is ended.
In the embodiment of the invention, the mobile terminal compares the determined distance value between the user and the mobile terminal when the user triggers the first air blowing signal with a preset distance value, wherein the preset distance value is a value preset in the mobile terminal by default, the preset distance value can be changed by the user, when the mobile terminal detects that the distance value between the user and the mobile terminal when the user triggers the first air blowing signal is smaller than or equal to the preset distance value, step 103 is executed, and when the mobile terminal detects that the distance value between the user and the mobile terminal when the user triggers the first air blowing signal is larger than the preset distance value, the process is ended.
103. The mobile terminal detects whether the intensity value of the first blowing signal is within a preset intensity value range, if so, step 104 is executed, and if not, the process is ended.
In the embodiment of the present invention, the mobile terminal determines the intensity value of the received first air-blowing signal, and determines whether the intensity value is within a preset intensity value range, where the preset intensity value range may be changed by a user, when the mobile terminal detects that the intensity value of the first air-blowing signal is within the preset intensity value range, step 104 is executed, and when the mobile terminal detects that the intensity value of the first air-blowing signal is not within the preset intensity value range, the process is ended.
104. The mobile terminal turns on the flashlight.
In the embodiment of the present invention, when the mobile terminal detects that the first blowing signal is received and that the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered and detects that the intensity value of the first blowing signal is located within a preset intensity value range, the mobile terminal turns on the flashlight, wherein the turning on mode may be turning on the flashlight of the mobile terminal, which is not limited in the embodiment of the present invention.
Therefore, by implementing the method described in fig. 1, the user can turn on the flashlight by blowing, the required flashlight emergency function does not need to be searched in various functions, the flashlight does not need to be started by touching, the turning-on convenience of the flashlight of the mobile terminal is improved, and when the distance between the user and the mobile terminal is within the preset distance value range and the strength value of the first blowing signal is within the preset strength value range, the flashlight is turned on, so that the turning-on accuracy is improved.
Example two
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating another method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention. As shown in fig. 2, the method for turning on the mobile terminal flashlight may include the following steps:
201. the mobile terminal detects whether the first blowing signal is received, if so, step 202 is executed, and if not, the process is ended.
202. The mobile terminal detects whether the screen of the mobile terminal is in a screen locking state or a screen blank state, if so, step 203 is executed, and if not, the process is ended.
In the embodiment of the present invention, the mobile terminal detects whether a screen of the mobile terminal is in a screen locking state or a screen blank state, where the screen blank state may include a standby state or a sleep state, and the embodiment of the present invention is not limited. When the mobile terminal detects that the screen of the mobile terminal is in the screen locking state or the screen blank state, step 203 is executed, and when the mobile terminal detects that the screen of the mobile terminal is not in the screen locking state or the screen blank state, the user can turn on the flashlight by touching the flashlight icon, and the process is ended.
203. The mobile terminal detects whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered, if so, step 204 is executed, and if not, the process is ended.
204. The mobile terminal detects whether the intensity value of the first blowing signal is within a preset intensity value range, if so, step 205 is executed, and if not, the process is ended.
205. The mobile terminal detects whether the duration time of the first blowing signal is within a preset time range, if so, the step 206 is executed, and if not, the process is ended.
206. The mobile terminal turns on the flashlight.
In the embodiment of the present invention, the flashlight is turned on by the mobile terminal, wherein the turning on mode may be turning on a flash lamp of the mobile terminal.
As an alternative embodiment, after step 206 is executed, the following steps may also be executed:
the mobile terminal detects an intensity value of a light source emitted by the flashlight and judges whether the intensity value is higher than a preset light source intensity value, wherein the preset light source intensity value is the maximum value which can be reached by the intensity value of the light source emitted by the flashlight under the condition that a light source emitter of the flashlight is not damaged, and when the intensity value of the light source emitted by the light source emitter of the flashlight is larger than the preset light source intensity value, the light source emitter of the flashlight is damaged. If the intensity value is higher than the preset light source intensity value, the intensity value of the light source emitted by the flashlight is adjusted, so that the adjusted intensity value is smaller than or equal to the preset light source intensity value.
The optional implementation mode can monitor the light source intensity value in real time after the flashlight is turned on, the light source intensity value is controlled to be smaller than or equal to the preset light source intensity value, power consumption is reduced, and the service life of the light source emitter of the flashlight of the mobile terminal is prolonged.
As another alternative, when the detection result in step 205 is yes and before the step 206 is triggered to be executed, the following operations may also be executed:
and the mobile terminal calculates the starting time length corresponding to the duration of the first air blowing signal according to a predetermined time length calculation formula, for example, the calculated starting time length is equal to 3 times of the duration of the first air blowing signal.
In this alternative embodiment, after step 206 is performed, the following operations may also be performed:
and the mobile terminal starts a timer to time the real-time starting time length of the flashlight, and when the timed real-time starting time length reaches the starting time length corresponding to the duration time of the first blowing signal, the flashlight is turned off.
This another optional implementation can directly confirm the duration of opening of flashlight according to the duration of the first signal of blowing that the user triggered, and when the real-time duration of opening of flashlight reaches the opening duration of confirming, self-closing flashlight has simplified user's manual operation, and this makes the control of flashlight more intelligent, has further improved user's use and has experienced.
It can be seen that, by implementing the method described in fig. 2, the user can turn on the flashlight by blowing, and does not need to search for a required flashlight emergency function among a plurality of functions, and does not need to turn on the flashlight by touching, so that the turning-on convenience of the flashlight of the mobile terminal is improved.
EXAMPLE III
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating another method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention. As shown in fig. 3, the method for turning on the mobile terminal flashlight may include the following steps:
301. the mobile terminal establishes wireless connection with the photographing apparatus.
In this embodiment of the present invention, the wireless connection may include, but is not limited to, a bluetooth connection, a WIFI hotspot connection, or an NFC connection, and the like, which is not limited in this embodiment of the present invention.
Optionally, the establishing of the wireless connection between the mobile terminal and the photographing device may include:
the mobile terminal sends a connection request including the equipment identifier of the mobile terminal to the photographic equipment to trigger the photographic equipment to perform identity authentication on the mobile terminal according to the equipment identifier included in the connection request and return a connection response to the mobile terminal when the identity authentication passes, wherein the connection response includes the equipment identifier of the photographic equipment;
and the mobile terminal receives the connection response, judges whether the photographing equipment is the terminal equipment in the pairing relation with the mobile terminal according to the equipment identification included in the connection response, and establishes wireless connection with the photographing equipment when judging that the photographing equipment is the terminal equipment in the pairing relation with the mobile terminal.
302. The mobile terminal detects whether the first blowing signal is received, if so, step 303 is executed, and if not, the process is ended.
303. The mobile terminal detects whether the screen of the mobile terminal is in a screen locking state or a screen blank state, if so, step 304 is executed, and if not, the process is ended.
304. The mobile terminal detects whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered, if so, step 305 is executed, and if not, the process is ended.
305. The mobile terminal detects whether the intensity value of the first blowing signal is within a preset intensity value range, if so, step 306 is executed, and if not, the process is ended.
306. The mobile terminal detects whether the duration time of the first blowing signal is within a preset time range, if so, the steps 307 to 308 are executed, and if not, the process is ended.
307. And the mobile terminal acquires the light brightness value of the position where the photographic equipment is located through the wireless connection.
In the embodiment of the invention, the photographing device can acquire the light at the position where the photographing device is located, determine the light brightness value corresponding to the light, transmit the light brightness value to the mobile terminal through the wireless connection, and the mobile terminal acquires the light brightness value.
308. The mobile terminal judges whether the photographing equipment needs to be polished according to the light brightness value, if so, the steps 309-310 are executed, and if not, the process is ended.
In the embodiment of the present invention, the mobile terminal matches the light brightness value with a preset light brightness value to obtain a light brightness level at which the light brightness value is located, if the light brightness level is within a preset light brightness level range that needs to be polished, it is determined that the photographing device needs to be polished, and step 309 to step 310 are performed, if the light brightness level is not within the preset light brightness level range that needs to be polished, it is determined that the light brightness level can meet a normal photographing requirement, and the process is ended.
309. The mobile terminal adjusts the emission angle of the light source emitter in the flashlight according to the position of the photographic equipment, so that the light source emitted by the light source emitter at the adjusted emission angle faces the photographic equipment.
In an embodiment of the present invention, the photographing apparatus can locate the position information of the photographing apparatus and send the position information to the mobile terminal through the wireless connection, where the locating of the photographing apparatus by the photographing apparatus may include:
the method comprises the steps that the photographic equipment obtains at least two different positioning interfaces configured on the photographic equipment;
the photographic equipment sends the positioning request to the at least two different positioning interfaces so as to trigger each positioning interface to respectively send the received positioning request to the corresponding positioning server;
the method comprises the steps that the photographing equipment obtains position information sent by a positioning server corresponding to at least one positioning interface;
the method comprises the steps that response time from a first time to a second time is obtained by the photographic equipment, wherein the first time is the time when each positioning interface sends a positioning request, and the second time is the time when each positioning interface receives position information;
the camera device compares the response time corresponding to each positioning interface with a response threshold;
and the photographing equipment extracts the position information with the highest positioning precision from the position information received by the positioning interface of which the response time does not exceed the response threshold value as the position information of the current geographic position of the photographing equipment. This can improve the accuracy of the position information of the determined current geographical position of the photographing apparatus.
310. And the mobile terminal controls the light source emitter to emit light according to the adjusted emission angle.
In the embodiment of the invention, the mobile terminal emits the light source according to the adjusted emission angle, so that the photographic equipment can obtain the light source at the position needing light supplement under the condition of needing light supplement, and normal shooting is finished.
It can be seen that, by implementing the method described in fig. 3, the user can turn on the flashlight by blowing, and does not need to search for a required flashlight emergency function among a plurality of functions, and does not need to turn on the flashlight by touching, so that the turning-on convenience of the flashlight of the mobile terminal is improved. In addition, in the process, the connection with the photographic equipment can be established, and when the photographic equipment is judged to need to be polished, the light source emitter in the flashlight is controlled to adjust the angle so as to polish the place where the photographic equipment needs to be polished, so that the shooting reliability is improved.
Example four
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating another method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention. As shown in fig. 4, the method for turning on the mobile terminal flashlight may include the following steps:
401. the mobile terminal detects whether a first blowing signal is received, if so, step 402 is executed, and if not, the process is ended.
402. The mobile terminal detects whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered, if so, step 403 is executed, and if not, the process is ended.
403. The mobile terminal detects whether the intensity value of the first blowing signal is within a preset intensity value range, if so, the steps 404 to 406 are executed, and if not, the process is ended.
404. The mobile terminal determines a first target blowing number contained in the first blowing signal.
In the embodiment of the invention, the mobile terminal determines a first target blowing frequency contained in a first blowing signal, wherein the first target blowing frequency is a numerical value greater than or equal to 1, and the first target blowing frequency is used for inquiring the operation corresponding to the first target blowing frequency.
405. And the mobile terminal inquires a first target function key corresponding to the first target blowing frequency from the corresponding relation between the pre-stored blowing frequency and the function key.
In the embodiment of the invention, the corresponding relation between the blowing times and the function keys is pre-stored in the database of the mobile terminal, for example, the function key with the blowing times being one is used for turning on the flashlight, the function key with the blowing times being two is used for turning off the flashlight, and the mobile terminal inquires the first target function key corresponding to the first target blowing times in the pre-stored corresponding relation between the blowing times and the function keys.
406. The mobile terminal judges whether the first target function key is a function key for turning on the flashlight or not, if so, the steps 407 to 408 are executed, and if not, the process is ended.
In the embodiment of the present invention, the mobile terminal determines, according to the target function corresponding to the first target function key, whether the first target function key is a function key for turning on the flashlight, if so, execute step 407 to step 408, and if not, end the process.
407. The mobile terminal turns on the flashlight.
408. And the mobile terminal detects whether a second air blowing signal is received, if so, the step 409-the step 411 is executed, and if not, the process is ended.
In the embodiment of the invention, after the flashlight is turned on by the mobile terminal, whether the second blowing signal is received or not is continuously detected, if the second blowing signal is detected to be received, the step 409-the step 411 are executed, and if the second blowing signal is not detected to be received, the process is ended.
409. And the mobile terminal determines a second target blowing frequency contained in the second blowing signal.
In the embodiment of the invention, the mobile terminal determines a second target blowing frequency contained in a second blowing signal, wherein the second target blowing frequency is a numerical value greater than or equal to 1, and the second target blowing frequency is used for inquiring the operation corresponding to the second target blowing frequency.
410. And the mobile terminal inquires a second target function key corresponding to the second target blowing frequency from the corresponding relation.
In the embodiment of the invention, the mobile terminal inquires the second target function key corresponding to the second target blowing frequency in the pre-stored corresponding relation between the blowing frequency and the function key.
411. The mobile terminal judges whether the second target function key is a function key for turning off the flashlight or not, if so, step 412 is executed, and if not, the process is ended.
In the embodiment of the present invention, the mobile terminal determines, according to the target function corresponding to the second target function key, whether the second target function key is a function key for turning off the flashlight, if so, step 412 is executed, and if not, the process is ended.
412. The mobile terminal turns off the flashlight.
In the embodiment of the present invention, when the mobile terminal determines that the second target function key is the function key for turning off the flashlight, the mobile terminal triggers and executes the step of turning off the flashlight, wherein the turning off mode may be turning off a flashlight of the mobile terminal, and the embodiment of the present invention is not limited.
As an alternative embodiment, after the step 412 is executed, the following steps may be further executed:
the mobile terminal detects the intensity value of the light source emitted by the flashlight and judges whether the intensity value is higher than a preset light source intensity value or not, and if the intensity value is higher than the preset light source intensity value, the intensity value of the light source emitted by the flashlight is adjusted, so that the adjusted intensity value is smaller than or equal to the preset light source intensity value.
Therefore, the method described in fig. 4 can be implemented to enable a user to turn on the flashlight in a blowing manner, the required flashlight emergency function does not need to be found in various functions, the flashlight does not need to be turned on by touching, the turning-on convenience of the flashlight of the mobile terminal is improved, when the distance between the user and the mobile terminal is within a preset distance value range and the strength value of the first blowing signal is within a preset strength value range, the flashlight is turned on, the turning-on accuracy is improved, the flashlight turning-off operation or the flashlight turning-on operation is judged and executed according to the blowing times, the control function diversity of the flashlight is increased, and the user experience is improved.
EXAMPLE five
Referring to fig. 5, fig. 5 is a flowchart illustrating another method for turning on a flashlight of a mobile terminal according to an embodiment of the present invention. As shown in fig. 5, the method for turning on the mobile terminal flashlight may include the following steps:
it should be noted that, for the descriptions of step 501 to step 504 in the embodiment of the present invention, please refer to the descriptions of step 101 to step 104 in the first embodiment, which is not repeated herein.
505. The mobile terminal detects an intensity value of a light source emitted by the flashlight.
In the embodiment of the invention, after the flashlight is turned on by the mobile terminal, the mobile terminal utilizes the built-in monitoring module to monitor the intensity value of the light source emitted by the flashlight in real time.
506. The mobile terminal determines whether the intensity value is higher than a preset light source intensity value, if so, step 507 is executed, and if not, the process is ended.
In the embodiment of the invention, the mobile terminal presets the preset light source intensity value, wherein the preset light source intensity value is the maximum value which can be reached by the intensity value of the light source emitted by the flashlight, and when the intensity value of the light source emitted by the flashlight is greater than the preset light source intensity value, the laser light source emitter in the flashlight is damaged.
507. The mobile terminal adjusts the intensity value of the light source emitted by the flashlight, so that the adjusted intensity value is smaller than or equal to the preset intensity value of the light source.
In the embodiment of the invention, when the intensity value of the light source emitted by the flashlight is judged to be higher than the preset intensity value of the light source, the mobile terminal can adjust the intensity value of the light source emitted by the flashlight so as to enable the adjusted intensity value to be smaller than or equal to the preset intensity value of the light source.
Therefore, the method described in fig. 5 can enable a user to turn on the flashlight by blowing, the required flashlight emergency function does not need to be searched in various functions, the flashlight does not need to be started by touching, the turning-on convenience of the flashlight of the mobile terminal is improved, when the distance between the user and the mobile terminal is within the preset distance value range and the intensity value of the first blowing signal is within the preset intensity value range, the flashlight is turned on, the turning-on accuracy is improved, the light source intensity value is monitored in real time after the flashlight is turned on, the light source intensity value is controlled to be smaller than or equal to the preset light source intensity maximum value, the power consumption is reduced, and the service life of the light source emitter of the flashlight of the mobile terminal is.
EXAMPLE six
Referring to fig. 6, fig. 6 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in fig. 6, the mobile terminal 600 may include a first detecting unit 601, a second detecting unit 602, a third detecting unit 603, and a starting unit 604, wherein:
the first detecting unit 601 is configured to detect whether the first blowing signal is received.
A second detecting unit 602, configured to detect whether the user is located within a preset distance range from the mobile terminal 600 when the first detecting unit 601 detects that the first blowing signal is received and the user triggers the first blowing signal.
A third detecting unit 603, configured to detect whether the intensity value of the first blowing signal is within a preset intensity value range when the second detecting unit 602 detects that the user is within the preset distance range from the mobile terminal 600 when the first blowing signal is triggered.
The turning-on unit 604 is configured to turn on the flashlight when the third detecting unit 603 detects that the intensity value is within the preset intensity value range.
It can be seen that, with the mobile terminal 600 described in fig. 6, a user can turn on the flashlight by blowing, and does not need to search for a required flashlight emergency function among a variety of functions, and does not need to turn on the flashlight by touching, so that the turning-on convenience of the flashlight of the mobile terminal is improved.
EXAMPLE seven
Referring to fig. 7, fig. 7 is a schematic structural diagram of another mobile terminal according to an embodiment of the disclosure. Wherein, the mobile terminal 600 shown in fig. 7 is optimized by the mobile terminal 600 shown in fig. 6, and compared with the mobile terminal 600 shown in fig. 6, the mobile terminal 600 shown in fig. 7 may further include:
a fourth detecting unit 605, configured to detect whether the screen of the mobile terminal 600 is in the screen lock state or the screen blank state after the first detecting unit 601 detects that the first blowing signal is received.
Specifically, after the first detection unit 601 detects that the first blowing signal is received, the first detection unit 601 may send a start instruction to the fourth detection unit 605 to start the fourth detection unit 605.
The second detecting unit 602 is further configured to detect whether the user is located within a preset distance range from the mobile terminal 600 when the fourth detecting unit 605 detects that the screen of the mobile terminal 600 is in the screen locking state or the screen blank state.
A fifth detecting unit 606, configured to detect whether the duration of the first blowing signal is within the preset time range after the third detecting unit 603 detects that the intensity value is within the preset intensity value range.
Specifically, after the third detecting unit 603 detects that the intensity value is within the preset intensity value range, the third detecting unit 603 may send a start instruction to the fifth detecting unit 606 to start the fifth detecting unit 606.
The turning-on unit 604 is specifically configured to turn on the flashlight when the third detecting unit 603 detects that the intensity value is within the preset intensity value range and when the fifth detecting unit 606 detects that the duration of the first blowing signal is within the preset time range.
It can be seen that, with the implementation of another mobile terminal 600 described in fig. 7, the flashlight can be turned on by using a blowing manner, a required flashlight emergency function does not need to be found in a variety of functions, and the flashlight does not need to be turned on by touching, so that the turning-on convenience of the flashlight of the mobile terminal is improved.
Example eight
Referring to fig. 8, fig. 8 is a schematic structural diagram of another mobile terminal according to an embodiment of the present invention. Wherein, the mobile terminal 600 shown in fig. 8 is optimized by the mobile terminal 600 shown in fig. 7, and compared with the mobile terminal 600 shown in fig. 7, the mobile terminal 600 shown in fig. 8 may further include:
the establishing unit 607 is configured to establish a wireless connection with the photographing apparatus before the first detecting unit 601 detects whether the first blowing signal is received.
Specifically, after the establishing unit 607 establishes a wireless connection with the photographing apparatus, the establishing unit 607 may transmit a start instruction to the first detecting unit 601 to start the first detecting unit 601.
The opening unit 604 may include:
an obtaining sub-unit 6041 configured to obtain a light brightness value at a position where the photographing apparatus is located through the wireless connection established by the establishing unit 607 when the third detecting unit 603 detects that the intensity value is within the preset intensity value range and when the fifth detecting unit 606 detects that the duration of the first blowing signal is within the preset time range.
In the embodiment of the present invention, when the obtaining sub-unit 6041 obtains the light brightness value at the position where the photographing apparatus is located, the position information of the photographing apparatus is obtained at the same time.
A determining sub-unit 6042 configured to determine whether lighting is required for the photographing apparatus according to the light brightness value acquired by the acquiring sub-unit 6041.
And an adjusting sub-unit 6043, configured to adjust an emission angle of the light source emitter in the flashlight according to a position of the photographing apparatus when the determining sub-unit 6042 determines that lighting is required, so that the light source emitted by the light source emitter at the adjusted emission angle faces the photographing apparatus.
In this embodiment of the present invention, specifically, when the determining subunit 6042 determines that lighting is required, the adjusting subunit 6043 adjusts an emission angle of the light source emitter in the flashlight according to the position information of the photographing apparatus acquired by the acquiring subunit 6041, so that the light source emitted by the light source emitter at the adjusted emission angle faces the photographing apparatus.
And an emission subunit 6044, configured to control the light source emitter to emit a light source according to the emission angle adjusted by the adjustment subunit 6043.
It can be seen that, another mobile terminal 600 described in fig. 8 can be connected to a camera device, and when it is determined that the camera device needs to be lighted, the light source emitter in the flashlight is controlled to adjust the angle to light the place where the camera device needs to be lighted, so that the reliability of shooting is improved.
Example nine
Referring to fig. 9, fig. 9 is a schematic structural diagram of another mobile terminal according to an embodiment of the disclosure. Wherein, the mobile terminal 600 shown in fig. 9 is optimized by the mobile terminal 600 shown in fig. 6, and compared with the mobile terminal 600 shown in fig. 6, the mobile terminal 600 shown in fig. 9 may further include:
the first determining unit 608 is configured to determine a first target blowing frequency included in the first blowing signal after the third detecting unit 603 detects that the intensity value is within the preset intensity value range.
Specifically, after the third detecting unit 603 detects that the intensity value is within the preset intensity value range, the third detecting unit 603 may send a start instruction to the first determining unit 608 to start the first determining unit 608.
The first query unit 609 is configured to query the first target function key corresponding to the first target blowing frequency determined by the first determination unit 608 from the pre-stored correspondence relationship between the blowing frequency and the function key.
The first determining unit 610 is configured to determine whether the first target function key queried by the first querying unit 609 is a function key for turning on the flashlight.
The turning-on unit 604 is specifically configured to turn on the flashlight when the third detecting unit 603 detects that the intensity value is within the preset intensity value range and when the first determining unit 610 determines that the first target function key is the function key for turning on the flashlight.
A sixth detecting unit 611, configured to detect whether the second blowing signal is received after the flashlight is turned on by the turning-on unit 604.
Specifically, after the turning-on unit 604 turns on the flashlight, the turning-on unit 604 may send a start instruction to the sixth detection unit 611 to start the sixth detection unit 611.
The second determining unit 612 is configured to determine a second target air blowing frequency included in the second air blowing signal when the sixth detecting unit 611 detects that the second air blowing signal is received.
A second query unit 613, configured to query, from the correspondence relationship, a second target function key corresponding to the second target blowing frequency determined by the second determination unit 612.
A second determining unit 614, configured to determine whether the second target function key queried by the second querying unit 613 is a function key for turning off the flashlight.
A turning-off unit 615, configured to turn off the flashlight when the second determining unit 614 determines that the second target function key queried by the second querying unit 613 is the function key for turning off the flashlight.
It can be seen that, by implementing another mobile terminal 600 described in fig. 9, the operation of turning off the flashlight or turning on the flashlight can be determined according to the blowing times included in the blowing signal, so that the control function diversity of the flashlight is increased, and the user experience is improved.
Example ten
Referring to fig. 10, fig. 10 is a schematic structural diagram of another mobile terminal according to an embodiment of the disclosure. Wherein, the mobile terminal 600 shown in fig. 10 is optimized by the mobile terminal 600 shown in fig. 6, and compared with the mobile terminal 600 shown in fig. 6, the mobile terminal 600 shown in fig. 10 may further include:
a seventh detecting unit 616, configured to detect an intensity value of the light source emitted by the flashlight after the flashlight is turned on by the turning-on unit 604.
Specifically, after the flashlight is turned on by the turning-on unit 604, the turning-on unit 604 may send an activation instruction to the seventh detection unit 616 to activate the seventh detection unit 616.
A third determining unit 617, configured to determine whether the intensity value detected by the seventh detecting unit 616 is higher than the preset light source intensity value.
An adjusting unit 618, configured to adjust the intensity value of the light source emitted by the flashlight when the third determining unit 617 determines that the intensity value detected by the seventh detecting unit 616 is higher than the preset light source intensity value, so that the adjusted intensity value is smaller than or equal to the preset light source intensity value.
It can be seen that, when the distance between the user and the mobile terminal 600 is within the preset distance value range and the intensity value of the first blowing signal is within the preset intensity value range, the another mobile terminal 600 described in fig. 10 can turn on the flashlight, so that the turning-on accuracy is improved, the intensity value of the light source is monitored in real time after the flashlight is turned on, the intensity value of the light source is controlled to be smaller than the preset maximum intensity value of the light source, the power consumption is reduced, and the service life of the light source transmitter of the mobile phone is prolonged.
EXAMPLE eleven
Referring to fig. 11, fig. 11 is a schematic structural diagram of another mobile terminal according to an embodiment of the disclosure. As shown in fig. 11, the mobile terminal may include:
a memory 1101 storing executable program code;
a processor 1102 coupled with a memory 1101;
the processor 1102 calls the executable program code stored in the memory 1101 to execute the method for turning on the flashlight of the mobile terminal in any one of fig. 1 to 5.
The embodiment of the invention discloses a computer-readable storage medium which stores a computer program, wherein the computer program enables a computer to execute a method for turning on a flashlight of a mobile terminal in any one of figures 1-5.
It will be understood by those skilled in the art that all or part of the steps in the methods of the embodiments described above may be implemented by instructions associated with a program, which may be stored in a computer-readable storage medium, where the storage medium includes Read-Only Memory (ROM), Random Access Memory (RAM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), One-time Programmable Read-Only Memory (OTPROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), compact disc-Read-Only Memory (CD-ROM), or other Memory, magnetic disk, magnetic tape, or magnetic tape, Or any other medium which can be used to carry or store data and which can be read by a computer.
The method for turning on the flashlight of the mobile terminal and the mobile terminal disclosed by the embodiment of the invention are described in detail, a specific example is applied in the description to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (12)
1. A method for turning on a flashlight of a mobile terminal is characterized by comprising the following steps:
the mobile terminal detects whether a first blowing signal is received;
when the first blowing signal is detected to be received, the mobile terminal detects whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered, and if the user is detected to be located within the preset distance range from the mobile terminal when the first blowing signal is triggered, the mobile terminal detects whether the intensity value of the first blowing signal is located within a preset intensity value range;
when the intensity value is detected to be within the preset intensity value range, the mobile terminal starts a flashlight;
the method further comprises the following steps:
the mobile terminal calculates the starting time corresponding to the duration of the first blowing signal according to a predetermined time calculation formula;
and the mobile terminal starts a timer to time the real-time opening duration of the flashlight, and when the timed real-time opening duration reaches the starting duration corresponding to the duration of the first blowing signal, the flashlight is turned off.
2. The method of claim 1, wherein after detecting that the first blowing signal is received and before the mobile terminal detects whether a user is within a preset distance range from the mobile terminal when the first blowing signal is triggered, the method further comprises:
the mobile terminal detects whether a screen of the mobile terminal is in a screen locking state or a screen blank state, and if so, the step of detecting whether a user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered;
after detecting that the intensity value is within the preset intensity value range and before the mobile terminal turns on a flashlight, the method further comprises:
and the mobile terminal detects whether the duration time of the first blowing signal is within a preset time range, and if the duration time of the first blowing signal is within the preset time range, the step of turning on the flashlight is triggered and executed.
3. The method of claim 2, wherein before the mobile terminal detects whether the first insufflation signal is received, the method further comprises:
the mobile terminal establishes wireless connection with the photographing equipment;
the mobile terminal turns on the flashlight, including:
the mobile terminal acquires the light brightness value of the position where the photographic equipment is located through the wireless connection;
and the mobile terminal judges whether the photographic equipment needs to be polished according to the light brightness value, if so, the emission angle of a light source emitter in the flashlight is adjusted according to the position of the photographic equipment, so that a light source emitted by the light source emitter at the adjusted emission angle faces the photographic equipment, and the light source emitter is controlled to emit the light source according to the adjusted emission angle.
4. The method of claim 1, wherein after detecting that the intensity value is within the preset intensity value range and before the mobile terminal turns on a flashlight, the method further comprises:
the mobile terminal determines a first target blowing frequency contained in the first blowing signal, and inquires a first target function key corresponding to the first target blowing frequency from a pre-stored corresponding relation between the blowing frequency and a function key;
the mobile terminal judges whether the first target function key is a function key for turning on the flashlight or not, and if so, the step of turning on the flashlight is triggered and executed;
after the mobile terminal turns on a flashlight, the method further comprises:
when a second blowing signal is detected to be received, the mobile terminal determines a second target blowing frequency contained in the second blowing signal and inquires a second target function key corresponding to the second target blowing frequency from the corresponding relation;
and the mobile terminal judges whether the second target function key is a function key for turning off the flashlight or not, and turns off the flashlight if the second target function key is the function key for turning off the flashlight.
5. The method of claim 1 or 2, wherein after the mobile terminal turns on a flashlight, the method further comprises:
the mobile terminal detects the intensity value of the light source emitted by the flashlight and judges whether the intensity value is higher than a preset light source intensity value or not, and if the intensity value is higher than the preset light source intensity value, the intensity value of the light source emitted by the flashlight is adjusted, so that the adjusted intensity value is smaller than or equal to the preset light source intensity value.
6. A mobile terminal, comprising:
the first detection unit is used for detecting whether a first blowing signal is received or not;
the second detection unit is used for detecting whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered when the first detection unit detects that the first blowing signal is received;
the third detection unit is used for detecting whether the intensity value of the first blowing signal is within a preset intensity value range or not when the second detection unit detects that the user is within the preset distance range from the mobile terminal when the first blowing signal is triggered;
the starting unit is used for starting the flashlight when the third detection unit detects that the intensity value is within the preset intensity value range;
the mobile terminal further includes:
the calculating unit is used for calculating the starting time length corresponding to the duration time of the first blowing signal according to a predetermined time length calculation formula;
and the control unit is used for starting a timer to time the real-time starting time length of the flashlight, and when the timed real-time starting time length reaches the starting time length corresponding to the duration time of the first blowing signal, the flashlight is turned off.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
a fourth detection unit, configured to detect whether a screen of the mobile terminal is in a screen lock state or a screen blank state after the first detection unit detects that the first blowing signal is received, and if so, start the second detection unit to perform the step of detecting whether the user is located within a preset distance range from the mobile terminal when the first blowing signal is triggered;
a fifth detecting unit, configured to detect whether a duration of the first blowing signal is within a preset time range after the third detecting unit detects that the intensity value is within the preset intensity value range;
the turning-on unit is specifically configured to turn on the flashlight when the third detection unit detects that the intensity value is within the preset intensity value range and when the fifth detection unit detects that the duration of the first blowing signal is within the preset time range.
8. The mobile terminal of claim 7, wherein the mobile terminal further comprises:
the establishing unit is used for establishing wireless connection with the photographing equipment before the first detecting unit detects whether the first blowing signal is received or not;
the opening unit includes:
an obtaining subunit, configured to obtain, when the third detecting unit detects that the intensity value is within the preset intensity value range and when the fifth detecting unit detects that the duration of the first air-blowing signal is within the preset time range, a light brightness value at a position where the photographing apparatus is located through the wireless connection established by the establishing unit;
the judging subunit is used for judging whether the photographing equipment needs to be polished according to the light brightness value acquired by the acquiring subunit;
the adjusting subunit is configured to adjust an emission angle of a light source emitter in the flashlight according to the position of the photographing device when the determining subunit determines that the light needs to be turned on, so that a light source emitted by the light source emitter at the adjusted emission angle faces the photographing device;
and the emission subunit is used for controlling the light source emitter to emit light sources according to the emission angle adjusted by the adjustment subunit.
9. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
a first determining unit, configured to determine a first target blowing frequency included in the first blowing signal after the third detecting unit detects that the intensity value is within the preset intensity value range;
the first query unit is used for querying a first target function key corresponding to the first target blowing times determined by the first determination unit from a pre-stored corresponding relationship between the blowing times and the function keys;
a first judging unit, configured to judge whether the first target function key queried by the first querying unit is a function key for turning on a flashlight;
the starting unit is specifically configured to start the flashlight when the third detection unit detects that the intensity value is within the preset intensity value range and when the first determination unit determines that the first target function key is a function key for starting the flashlight;
the sixth detection unit is used for detecting whether a second blowing signal is received or not after the flashlight is turned on by the turning-on unit;
the second determining unit is used for determining a second target blowing frequency contained in the second blowing signal when the sixth detecting unit detects that the second blowing signal is received;
the second query unit is used for querying a second target function key corresponding to the second target blowing times determined by the second determination unit from the corresponding relation;
a second judging unit, configured to judge whether the second target function key queried by the second querying unit is a function key for turning off the flashlight;
a closing unit, configured to close the flashlight when the second determining unit determines that the second target function key queried by the second querying unit is a function key for closing the flashlight.
10. The mobile terminal according to claim 6 or 7, characterized in that the mobile terminal further comprises:
the seventh detection unit is used for detecting the intensity value of the light source emitted by the flashlight after the flashlight is turned on by the turning-on unit;
a third judging unit, configured to judge whether the intensity value detected by the seventh detecting unit is higher than a preset light source intensity value;
and the adjusting unit is used for adjusting the intensity value of the light source emitted by the flashlight when the third judging unit judges that the intensity value detected by the seventh detecting unit is higher than the preset light source intensity value, so that the adjusted intensity value is smaller than or equal to the preset light source intensity value.
11. A mobile terminal, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program codes stored in the memory to execute the method for turning on the mobile terminal flashlight according to any one of claims 1-5.
12. A computer-readable storage medium storing a computer program for causing a computer to execute the method for turning on a flashlight of a mobile terminal according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710791985.8A CN107592418B (en) | 2017-09-05 | 2017-09-05 | Method for turning on flashlight of mobile terminal and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710791985.8A CN107592418B (en) | 2017-09-05 | 2017-09-05 | Method for turning on flashlight of mobile terminal and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107592418A CN107592418A (en) | 2018-01-16 |
CN107592418B true CN107592418B (en) | 2020-04-07 |
Family
ID=61051062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710791985.8A Expired - Fee Related CN107592418B (en) | 2017-09-05 | 2017-09-05 | Method for turning on flashlight of mobile terminal and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107592418B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109120785A (en) * | 2018-08-17 | 2019-01-01 | 珠海格力电器股份有限公司 | Control device and method for awakening mobile equipment based on pressure change |
CN110300226B (en) * | 2019-06-28 | 2021-06-29 | Oppo广东移动通信有限公司 | Electronic equipment and control method of flashlight thereof |
CN112732141A (en) * | 2021-01-13 | 2021-04-30 | 展讯通信(天津)有限公司 | Flashlight control method and device, electronic equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103200330A (en) * | 2013-04-16 | 2013-07-10 | 上海斐讯数据通信技术有限公司 | Method and mobile terminal for achieving triggering of flashlight |
CN203167075U (en) * | 2013-03-20 | 2013-08-28 | 上海鼎为软件技术有限公司 | Mobile terminal |
CN103516897A (en) * | 2012-06-27 | 2014-01-15 | Lg电子株式会社 | Mobile terminal and controlling method thereof |
CN105049576A (en) * | 2015-08-26 | 2015-11-11 | 上海斐讯数据通信技术有限公司 | Cellphone with blowing dialing function and control method thereof |
CN105100496A (en) * | 2015-08-24 | 2015-11-25 | 努比亚技术有限公司 | Information processing method and mobile terminal |
CN106506749A (en) * | 2016-12-31 | 2017-03-15 | 广州市朝通科技有限公司 | Flash lamp component, mobile terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100036739A (en) * | 2008-09-30 | 2010-04-08 | 삼성전자주식회사 | Apparatus and method for interactive user interface changing according to strength of the stream of breath |
-
2017
- 2017-09-05 CN CN201710791985.8A patent/CN107592418B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103516897A (en) * | 2012-06-27 | 2014-01-15 | Lg电子株式会社 | Mobile terminal and controlling method thereof |
CN203167075U (en) * | 2013-03-20 | 2013-08-28 | 上海鼎为软件技术有限公司 | Mobile terminal |
CN103200330A (en) * | 2013-04-16 | 2013-07-10 | 上海斐讯数据通信技术有限公司 | Method and mobile terminal for achieving triggering of flashlight |
CN105100496A (en) * | 2015-08-24 | 2015-11-25 | 努比亚技术有限公司 | Information processing method and mobile terminal |
CN105049576A (en) * | 2015-08-26 | 2015-11-11 | 上海斐讯数据通信技术有限公司 | Cellphone with blowing dialing function and control method thereof |
CN106506749A (en) * | 2016-12-31 | 2017-03-15 | 广州市朝通科技有限公司 | Flash lamp component, mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN107592418A (en) | 2018-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113055873B (en) | Method and device for identifying devices, electronic device and storage medium | |
CN107592418B (en) | Method for turning on flashlight of mobile terminal and mobile terminal | |
US10218834B2 (en) | Mobile terminal capable of performing remote control of plurality of devices | |
RU2658194C2 (en) | Apparatus control method and device | |
RU2658501C2 (en) | Method and apparatus for identifying category of electronic device on intelligent socket | |
RU2667795C2 (en) | Server access method and apparatus | |
CN111508483A (en) | Equipment control method and device | |
US8421597B2 (en) | Remote control apparatus and portable communication terminal | |
CN108650671B (en) | Method, device, mobile terminal, storage medium and system for establishing Bluetooth connection | |
CN106484159B (en) | Method for dynamically controlling electronic equipment and electronic equipment | |
KR102545375B1 (en) | Electronic device for performing authorization using accessory and method for the same | |
US20190124191A1 (en) | Mobile terminal, method and device for adding and sharing contact | |
CN112229037A (en) | Control method of air conditioner, terminal, air conditioner and storage medium | |
JP2020028129A (en) | Electronic device, server and method of controlling the same | |
US20170332190A1 (en) | Adaptive threshold for proximity based wireless communications features | |
CN108419278B (en) | Channel control method and device | |
CN104700751B (en) | The acquisition methods and device of a kind of sight spot information | |
CN111143419B (en) | Shutdown positioning method for electronic equipment, service equipment and system | |
WO2015172496A1 (en) | Method and device for controlling subscriber identity module card of mobile terminal | |
CN113179487A (en) | Working mode control method and device, electronic equipment and storage medium | |
EP3619892B1 (en) | Conditionally providing location-based functions | |
CN107546870B (en) | Charging method based on smart antenna and electronic equipment | |
JP4387346B2 (en) | Remote control device | |
US11604246B2 (en) | Information processing apparatus, information processing system, and non-transitory computer readable medium | |
CN110945882A (en) | Information pushing method and terminal equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200407 |
|
CF01 | Termination of patent right due to non-payment of annual fee |