CN106888325A - The control method and device of a kind of terminal - Google Patents

The control method and device of a kind of terminal Download PDF

Info

Publication number
CN106888325A
CN106888325A CN201710110475.XA CN201710110475A CN106888325A CN 106888325 A CN106888325 A CN 106888325A CN 201710110475 A CN201710110475 A CN 201710110475A CN 106888325 A CN106888325 A CN 106888325A
Authority
CN
China
Prior art keywords
terminal
environment
requirement
detecting
meets
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
CN201710110475.XA
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.)
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Shenzhen Tinno Wireless Technology 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 Shenzhen Tinno Wireless Technology Co Ltd filed Critical Shenzhen Tinno Wireless Technology Co Ltd
Priority to CN201710110475.XA priority Critical patent/CN106888325A/en
Publication of CN106888325A publication Critical patent/CN106888325A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

The embodiment of the invention provides the control method and device of a kind of terminal.On the one hand, the embodiment of the present invention is by the vibration signal that is produced when detecting that terminal is vibrated, when the vibration signal is when specifying signal, whether detection terminal local environment meets specified requirement, so as to when terminal local environment meets specified requirement, the flash lamp of control terminal is turned on or off.Therefore, complex steps and unlatching less efficient problem when technical scheme provided in an embodiment of the present invention can solve the problem that and open that in the prior art flash lamp is illuminated.

Description

Terminal control method and device
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a terminal.
[ background of the invention ]
With the increasing popularity of terminals, a flash lamp on the terminal can be used as an illumination tool. In the prior art, a terminal screen needs to be lighted at first, the terminal is unlocked in a preset unlocking mode, then a flashlight function needs to be found in multiple applications of the terminal, and finally, the flashlight function needs to be started manually by a user, so that a flashlight can be turned on to illuminate.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the prior art:
in the prior art, the step of turning on the flash lamp for illumination is complicated, and the turning-on efficiency is low.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a method and an apparatus for controlling a terminal, so as to solve the problems of complicated steps and low turn-on efficiency when a flash is turned on to illuminate in the prior art.
In one aspect, an embodiment of the present invention provides a method for controlling a terminal, including:
detecting a vibration signal generated when the terminal vibrates;
when the vibration signal is a designated signal, detecting whether the environment of the terminal meets designated requirements;
and when the environment of the terminal meets the specified requirement, controlling the flash lamp of the terminal to be turned on or off.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, when the vibration signal is a specific signal, detecting whether an environment in which the terminal is located meets a specific requirement, including:
when the space environment of the terminal meets a first requirement, detecting that the environment of the terminal meets a specified requirement; and/or the presence of a gas in the gas,
and when the light environment of the terminal meets a second requirement, detecting that the environment of the terminal meets a specified requirement.
The above aspects, and any possible implementations, further provide an implementation,
detecting whether a covering exists in a specified space range of the terminal by using a distance sensor of the terminal;
when the terminal is not covered in the designated space range, detecting that the space environment in which the terminal is located meets the first requirement.
The above aspects, and any possible implementations, further provide an implementation,
detecting the illumination intensity of the environment where the terminal is located by using a photosensitive sensor of the terminal;
and when the illumination intensity is smaller than a preset intensity threshold value, detecting that the light environment where the terminal is located meets the second requirement.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, before controlling a flash of the terminal to be turned on or off, the method further includes:
and detecting the on-off state of the flashlight.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, before controlling a flash of the terminal to be turned on or off, including:
when the flash lamp is detected to be in an on state, controlling the flash lamp to be turned off; or,
and when the flash lamp is detected to be in a closed state, controlling the flash lamp to be started.
In another aspect, an embodiment of the present invention provides a control apparatus for a terminal, including:
the first detection unit is used for detecting a vibration signal generated when the terminal vibrates;
the second detection unit is used for detecting whether the environment where the terminal is located meets the specified requirement or not when the vibration signal is the specified signal;
and the control unit is used for controlling the flash lamp of the terminal to be turned on or off when the environment of the terminal meets the specified requirement.
The above-described aspect and any possible implementation manner further provide an implementation manner, where the second detection unit includes:
the first detection subunit is used for detecting that the environment of the terminal meets a specified requirement when the space environment of the terminal meets a first requirement; and/or the presence of a gas in the gas,
and the second detection subunit is used for detecting that the environment of the terminal meets the specified requirement when the light environment of the terminal meets the second requirement.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the first detecting subunit is specifically configured to:
detecting whether a covering exists in a specified space range of the terminal by using a distance sensor of the terminal;
when the terminal is not covered in the designated space range, detecting that the space environment in which the terminal is located meets the first requirement.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the second detecting subunit is specifically configured to:
detecting the illumination intensity of the environment where the terminal is located by using a photosensitive sensor of the terminal;
and when the illumination intensity is smaller than a preset intensity threshold value, detecting that the light environment where the terminal is located meets the second requirement.
The above-described aspects and any possible implementations further provide an implementation, where the apparatus further includes:
and the third detection unit is used for detecting the on-off state of the flash lamp before controlling the flash lamp of the terminal to be turned on or off.
The above-mentioned aspect and any possible implementation manner further provide an implementation manner, where the control unit is specifically configured to:
when the flash lamp is detected to be in an on state, controlling the flash lamp to be turned off; or,
and when the flash lamp is detected to be in a closed state, controlling the flash lamp to be started.
One of the above technical solutions has the following beneficial effects:
in the embodiment of the invention, the vibration signal generated when the terminal vibrates is detected, and when the vibration signal is the designated signal, whether the environment of the terminal meets the designated requirement is detected, so that when the environment of the terminal meets the designated requirement, a flash lamp of the terminal is controlled to be turned on or turned off. In the embodiment of the invention, the vibration signal generated when the terminal vibrates can be detected through the vibration sensor in the terminal, and if the vibration signal is a preset specified signal and the current environment of the terminal meets specified requirements, the flash lamp can be quickly turned on or turned off to be controlled. In the process, the terminal screen does not need to be lightened, the flash lamp can be conveniently turned on for illumination without unlocking the terminal, the operation steps of turning on the flash lamp for illumination are effectively simplified, the implementation mode is simple, convenient and quick, and the illumination turning efficiency is improved. Therefore, the technical scheme provided by the embodiment of the invention can solve the problems of complicated steps and low starting efficiency when the flash lamp is started for illumination in the prior art.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of 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 to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a first embodiment of a method for controlling a terminal according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a second embodiment of a method for controlling a terminal according to an embodiment of the present invention;
fig. 3 is a functional block diagram of a control device of a terminal according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all 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.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used in describing requirements in embodiments of the present invention, these requirements should not be limited to these terms. These terms are only used to distinguish one requirement from another. For example, a first requirement may also be referred to as a second requirement, and similarly, a second requirement may also be referred to as a first requirement, without departing from the scope of embodiments of the present invention.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
Example one
The embodiment of the invention provides a control method of a terminal.
Specifically, referring to fig. 1, it is a schematic flowchart of a first embodiment of a method for controlling a terminal according to an embodiment of the present invention, as shown in fig. 1, the method includes the following steps:
s101, detecting a vibration signal generated when the terminal vibrates.
In the embodiment of the invention, the vibration signal generated when the terminal vibrates can be detected through the vibration sensor and the acceleration sensor in the terminal.
Specifically, when the terminal vibrates, the user may shake the terminal intentionally, the terminal may vibrate due to external impact, or the terminal may automatically vibrate after receiving some preset instructions, and therefore, it is further necessary to determine whether the detected vibration signal is a specific signal for the purpose of controlling the flash lamp through the vibration signal of the terminal.
In one particular implementation, the designated signal may be a shake signal. At this time, the shake-shake function of the terminal may be turned on in advance. Therefore, after the terminal detects the vibration signal, whether the vibration signal is a shaking signal can be judged through a preset shaking signal.
For example, if the preset shake signal in the terminal is a designated signal for controlling the flash to turn on or off, and the shake signal is 4-6 shake operations in a continuous manner, the vibration signal when the terminal is detected to vibrate is: and 4-6 times of continuous shaking operation, determining the vibration signal as a specified signal.
S102, when the vibration signal is a designated signal, detecting whether the environment of the terminal meets designated requirements.
Specifically, after the detected vibration signal is determined to be the designated signal, it is further required to determine whether the current environment of the terminal meets the requirement, and in order to specifically explain the scheme, the embodiment of the present invention provides the following two detection contents:
A. and in the aspect of the space environment, whether the space environment where the terminal is located meets the first requirement is detected.
Specifically, when the terminal is in some special space environment, the terminal may be caused to vibrate, and the detected vibration signal may be recognized as the specific signal. Based on this, it is necessary to detect the spatial environment in which the terminal is located.
For example, when the terminal is located in a pocket of a user, the terminal may vibrate due to the user's motion or accidental impacts, and these vibration signals may be recognized as specified signals for controlling the flash to be turned on or off.
Alternatively, for example, when the terminal is in a call state, when some notification or message is received, vibration may be performed, and these vibration signals may be recognized as a specific signal for controlling the flash to be turned on or off.
Based on this, in a specific implementation process, the first requirement may be preset as: the terminal is free of a cover in a designated spatial range. Therefore, the detection mode of the process may include the following steps:
detecting whether a covering exists in a specified space range by using a distance sensor of a terminal; when the terminal is not covered in the designated space range, the terminal is detected to be in a space environment meeting the first requirement. Or when detecting that the terminal has the covering object in the specified space range, detecting that the space environment where the terminal is located does not meet the first requirement.
Specifically, the designated spatial range may be preset according to actual needs. For example, a specified distance may be preset to be 15cm, and a distance sensor is used to detect whether a covering exists in a space range within 15cm from the terminal, and if a covering such as clothes, a finger of a user, a face of a user, and the like exists in the space range, that is, it is detected that the covering exists in the specified space range in the terminal, at this time, the space environment where the terminal is located does not meet the first requirement; or, if no covering is detected within a space range within 15cm from the terminal by the distance sensor, the space environment where the terminal is located meets the first requirement.
B. And in the aspect of the light environment, whether the light environment of the terminal meets the second requirement is detected.
When the terminal is in some bright light environments, the flash lamp of the terminal may not need to be turned on to achieve the illumination effect, and therefore, in a specific implementation process, the current light environment of the terminal can be detected to avoid unnecessary resource waste.
A second requirement may be preset as: the illumination intensity of the environment where the terminal is located is smaller than a preset intensity threshold value. Therefore, the detection mode of the process may include the following steps:
and detecting the illumination intensity of the environment where the terminal is positioned by using a photosensitive sensor of the terminal, and when the illumination intensity is smaller than a preset intensity threshold value, detecting that the light environment where the terminal is positioned meets a second requirement. Or when the illumination intensity is greater than or equal to a preset intensity threshold value, detecting that the light environment where the terminal is located meets a second requirement.
In the actual implementation process, the intensity threshold value can be preset according to actual needs. For example, the illumination intensity of daylight in summer is 100000Lux, the illumination intensity outside a cloudy day room is 10000Lux, the illumination intensity of an indoor fluorescent lamp is 100Lux, the illumination intensity of a desktop 60cm away from a 60W desk lamp is 300Lux, the illumination intensity of a television station studio is 1000Lux, the illumination intensity in a dusk room is 10Lux, the illumination intensity of a night street lamp is 0.1Lux, the illumination intensity at a position 20cm away from a candle is 10-15 Lux, the illumination intensity required in a living room is 150-300 Lux, and the illumination intensity of a general study room is 100Lux, so that 100Lux can be preset as an intensity threshold. Therefore, when the light intensity of the environment where the terminal is located is detected to be less than 100Lux by the photosensitive sensor, the light environment where the terminal is located is detected to meet the second requirement.
It should be noted that, in the embodiment of the present invention, the implementation manner of detecting the environment in which the terminal is located may include, but is not limited to, the above two manners, which is not particularly limited in the embodiment of the present invention.
Based on the two detection modes, whether the environment of the terminal meets the specified requirement or not can be detected, and whether one aspect of the environment of the terminal meets the specified requirement or not can be detected according to the single implementation mode, or the two aspects can be detected to determine whether the environment of the terminal meets the specified requirement or not.
In a specific implementation process, when the space environment where the terminal is located meets a first requirement and the light environment where the terminal is located meets a second requirement, it is detected that the environment where the terminal is located meets a specified requirement.
It should be noted that, when the detection in the above two aspects is performed for determination, the determination may be performed sequentially in a sequential manner, but the sequential execution order in the spatial environment and the light environment is not particularly limited in the embodiment of the present invention; alternatively, the detection of the spatial environment and the light environment may be performed simultaneously.
And S103, controlling the flash lamp of the terminal to be turned on or off when the environment of the terminal meets the specified requirement.
In the embodiment of the invention, when the detected vibration signal of the terminal is the designated signal and the environment of the terminal meets the designated requirement, the flash lamp of the terminal can be controlled to be turned on or turned off. At this time, it is also necessary to detect the on-off state of the strobe.
Specifically, the following two cases are included:
first, when the flash lamp is detected to be in an on state, the flash lamp is controlled to be turned off.
And secondly, controlling the flash lamp to be turned on when the flash lamp is detected to be in an off state.
In the embodiment of the present invention, the state of the terminal when the control method is started is not particularly limited. For example, when the terminal signal is detected, the terminal may be in a state where the screen is lit, or may be in a state where the screen is turned off.
In order to avoid overlapping of the currently set designation signal and the signals set by other functions, in some specific implementation processes, it may be preset that the terminal performs the control method provided by the embodiment of the present invention in a state where the screen is closed.
It should be noted that the terminal according to the embodiments of the present invention may include, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, and the like, and the terminal has a flash.
It should be noted that the execution subjects of S101 to S103 may be a control device of the terminal, and the device may be an application located in the local terminal, or may also be a functional unit such as a plug-in or Software Development Kit (SDK) located in the application of the local terminal, which is not particularly limited in this embodiment of the present invention.
It should be understood that the application may be an application program (native app) installed on the terminal, or may also be a web page program (webApp) of a browser on the terminal, which is not limited in this embodiment of the present invention.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the vibration signal generated when the terminal vibrates is detected, and when the vibration signal is the designated signal, whether the environment of the terminal meets the designated requirement is detected, so that when the environment of the terminal meets the designated requirement, a flash lamp of the terminal is controlled to be turned on or turned off. In the embodiment of the invention, the vibration signal generated when the terminal vibrates can be detected through the vibration sensor in the terminal, and if the vibration signal is a preset specified signal and the current environment of the terminal meets specified requirements, the flash lamp can be quickly turned on or turned off to be controlled. In the process, the terminal screen does not need to be lightened, the flash lamp can be conveniently turned on for illumination without unlocking the terminal, the operation steps of turning on the flash lamp for illumination are effectively simplified, the implementation mode is simple, convenient and quick, and the illumination turning efficiency is improved. Therefore, the technical scheme provided by the embodiment of the invention can solve the problems of complicated steps and low starting efficiency when the flash lamp is started for illumination in the prior art.
Example two
Based on the control method of the terminal provided in the first embodiment, a specific implementation manner for implementing the method is provided in the embodiment of the present invention.
Specifically, please refer to fig. 2, which is a flowchart illustrating a second embodiment of a method for controlling a terminal according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
s201, closing the screen of the terminal.
S202, detecting whether the terminal vibrates; if yes, go to S203; if not, go to S202.
S203, detecting whether the vibration signal is a shaking signal; if yes, executing S204; if not, go to S202.
And S204, detecting the illumination intensity of the environment where the terminal is located.
S205, judging whether the illumination intensity is smaller than a preset intensity threshold value; if yes, go to S206; if not, go to S202.
S206, detecting whether the terminal has a covering in a specified space range; if yes, go to S202; if not, go to step S207.
S207, detecting whether the flash lamp is turned off; if yes, go to S208; if not, go to S209.
And S208, controlling the flash lamp to be started.
And S209, controlling the flash lamp to be turned off.
It can be understood that the terminal control method provided in the embodiment of the present invention is a specific implementation manner of the method provided in the embodiment, and is only used to specifically describe the present solution, and is not used to limit the present application.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the vibration signal generated when the terminal vibrates is detected, and when the vibration signal is the designated signal, whether the environment of the terminal meets the designated requirement is detected, so that when the environment of the terminal meets the designated requirement, a flash lamp of the terminal is controlled to be turned on or turned off. In the embodiment of the invention, the vibration signal generated when the terminal vibrates can be detected through the vibration sensor in the terminal, and if the vibration signal is a preset specified signal and the current environment of the terminal meets specified requirements, the flash lamp can be quickly turned on or turned off to be controlled. In the process, the terminal screen does not need to be lightened, the flash lamp can be conveniently turned on for illumination without unlocking the terminal, the operation steps of turning on the flash lamp for illumination are effectively simplified, the implementation mode is simple, convenient and quick, and the illumination turning efficiency is improved. Therefore, the technical scheme provided by the embodiment of the invention can solve the problems of complicated steps and low starting efficiency when the flash lamp is started for illumination in the prior art.
EXAMPLE III
Based on the control method of the terminal provided in the first embodiment, the embodiment of the present invention further provides an embodiment of an apparatus for implementing each step and method in the foregoing method embodiment.
Please refer to fig. 3, which is a functional block diagram of a control device of a terminal according to an embodiment of the present invention. As shown in fig. 3, the apparatus includes:
a first detecting unit 31 for detecting a vibration signal generated when the terminal vibrates;
the second detection unit 32 is used for detecting whether the environment where the terminal is located meets the specified requirement when the vibration signal is the specified signal;
and the control unit 33 is used for controlling the flash lamp of the terminal to be turned on or off when the environment of the terminal meets the specified requirements.
In this embodiment of the present invention, the second detecting unit 32 includes:
a first detecting subunit 321, configured to detect that the environment of the terminal meets a specified requirement when the space environment of the terminal meets a first requirement; and/or the presence of a gas in the gas,
the second detecting subunit 322 is configured to detect that the environment of the terminal meets a specified requirement when the light environment of the terminal meets a second requirement.
In a specific implementation process, the first detecting subunit 321 is specifically configured to:
detecting whether a covering exists in a specified space range by using a distance sensor of the terminal;
when the terminal is not covered in the designated space range, the space environment where the terminal is located is detected to meet the first requirement.
In another specific implementation process, the second detecting subunit 322 is specifically configured to:
detecting the illumination intensity of the environment where the terminal is located by using a photosensitive sensor of the terminal;
and when the illumination intensity is smaller than a preset intensity threshold value, detecting that the light environment where the terminal is located meets a second requirement.
Specifically, in the embodiment of the present invention, the apparatus further includes:
and a third detection unit 34 for detecting the on-off state of the flash before controlling the flash of the terminal to be turned on or off.
Specifically, the control unit 33 is specifically configured to:
when the flash lamp is detected to be in an open state, controlling the flash lamp to be closed; or,
and when the flash lamp is detected to be in the off state, controlling the flash lamp to be turned on.
Since each unit in the present embodiment can execute the method shown in fig. 1, reference may be made to the related description of fig. 1 for a part of the present embodiment that is not described in detail.
The technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the vibration signal generated when the terminal vibrates is detected, and when the vibration signal is the designated signal, whether the environment of the terminal meets the designated requirement is detected, so that when the environment of the terminal meets the designated requirement, a flash lamp of the terminal is controlled to be turned on or turned off. In the embodiment of the invention, the vibration signal generated when the terminal vibrates can be detected through the vibration sensor in the terminal, and if the vibration signal is a preset specified signal and the current environment of the terminal meets specified requirements, the flash lamp can be quickly turned on or turned off to be controlled. In the process, the terminal screen does not need to be lightened, the flash lamp can be conveniently turned on for illumination without unlocking the terminal, the operation steps of turning on the flash lamp for illumination are effectively simplified, the implementation mode is simple, convenient and quick, and the illumination turning efficiency is improved. Therefore, the technical scheme provided by the embodiment of the invention can solve the problems of complicated steps and low starting efficiency when the flash lamp is started for illumination in the prior art.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: u disk, removable hard disk, read only memory, random access memory, magnetic or optical disk, etc. for storing program codes.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A method for controlling a terminal, the method comprising:
detecting a vibration signal generated when the terminal vibrates;
when the vibration signal is a designated signal, detecting whether the environment of the terminal meets designated requirements;
and when the environment of the terminal meets the specified requirement, controlling the flash lamp of the terminal to be turned on or off.
2. The method according to claim 1, wherein when the vibration signal is a designated signal, detecting whether the environment of the terminal meets a designated requirement comprises:
when the space environment of the terminal meets a first requirement, detecting that the environment of the terminal meets a specified requirement; and/or the presence of a gas in the gas,
and when the light environment of the terminal meets a second requirement, detecting that the environment of the terminal meets a specified requirement.
3. The method of claim 2,
detecting whether a covering exists in a specified space range of the terminal by using a distance sensor of the terminal;
when the terminal is not covered in the designated space range, detecting that the space environment in which the terminal is located meets the first requirement.
4. The method of claim 2,
detecting the illumination intensity of the environment where the terminal is located by using a photosensitive sensor of the terminal;
and when the illumination intensity is smaller than a preset intensity threshold value, detecting that the light environment where the terminal is located meets the second requirement.
5. The method of claim 1, wherein before controlling a flash of the terminal to be turned on or off, the method further comprises:
and detecting the on-off state of the flashlight.
6. The method of claim 5, wherein before controlling the flash of the terminal to be turned on or off, the method comprises:
when the flash lamp is detected to be in an on state, controlling the flash lamp to be turned off; or,
and when the flash lamp is detected to be in a closed state, controlling the flash lamp to be started.
7. A control apparatus of a terminal, characterized in that the apparatus comprises:
the first detection unit is used for detecting a vibration signal generated when the terminal vibrates;
the second detection unit is used for detecting whether the environment where the terminal is located meets the specified requirement or not when the vibration signal is the specified signal;
and the control unit is used for controlling the flash lamp of the terminal to be turned on or off when the environment of the terminal meets the specified requirement.
8. The apparatus of claim 7, wherein the second detection unit comprises:
the first detection subunit is used for detecting that the environment of the terminal meets a specified requirement when the space environment of the terminal meets a first requirement; and/or the presence of a gas in the gas,
and the second detection subunit is used for detecting that the environment of the terminal meets the specified requirement when the light environment of the terminal meets the second requirement.
9. The apparatus according to claim 8, wherein the first detection subunit is specifically configured to:
detecting whether a covering exists in a specified space range of the terminal by using a distance sensor of the terminal;
when the terminal is not covered in the designated space range, detecting that the space environment in which the terminal is located meets the first requirement.
10. The apparatus according to claim 8, wherein the second detection subunit is specifically configured to:
detecting the illumination intensity of the environment where the terminal is located by using a photosensitive sensor of the terminal;
and when the illumination intensity is smaller than a preset intensity threshold value, detecting that the light environment where the terminal is located meets the second requirement.
11. The apparatus of claim 7, further comprising:
and the third detection unit is used for detecting the on-off state of the flash lamp before controlling the flash lamp of the terminal to be turned on or off.
12. The apparatus according to claim 11, wherein the control unit is specifically configured to:
when the flash lamp is detected to be in an on state, controlling the flash lamp to be turned off; or,
and when the flash lamp is detected to be in a closed state, controlling the flash lamp to be started.
CN201710110475.XA 2017-02-28 2017-02-28 The control method and device of a kind of terminal Pending CN106888325A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710110475.XA CN106888325A (en) 2017-02-28 2017-02-28 The control method and device of a kind of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710110475.XA CN106888325A (en) 2017-02-28 2017-02-28 The control method and device of a kind of terminal

Publications (1)

Publication Number Publication Date
CN106888325A true CN106888325A (en) 2017-06-23

Family

ID=59180134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710110475.XA Pending CN106888325A (en) 2017-02-28 2017-02-28 The control method and device of a kind of terminal

Country Status (1)

Country Link
CN (1) CN106888325A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110019991A1 (en) * 2009-07-24 2011-01-27 Samsung Electro-Mechanics Co., Ltd. Mobile terminal having camera flash and method for controlling camera flash
US20110081142A1 (en) * 2009-10-06 2011-04-07 Apple Inc. Pulsed control of camera flash
CN105100452A (en) * 2015-06-30 2015-11-25 广东欧珀移动通信有限公司 Method and device for controlling flashlight of intelligent device
CN105162991A (en) * 2015-10-13 2015-12-16 上海斐讯数据通信技术有限公司 A method and system for terminal automatically turning on and turning off electric torch
CN105188189A (en) * 2015-08-08 2015-12-23 广东欧珀移动通信有限公司 Gravity-sensor-based flash lamp illumination method and apparatus, and mobile terminal
CN105373208A (en) * 2015-09-30 2016-03-02 维沃移动通信有限公司 Mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110019991A1 (en) * 2009-07-24 2011-01-27 Samsung Electro-Mechanics Co., Ltd. Mobile terminal having camera flash and method for controlling camera flash
US20110081142A1 (en) * 2009-10-06 2011-04-07 Apple Inc. Pulsed control of camera flash
CN105100452A (en) * 2015-06-30 2015-11-25 广东欧珀移动通信有限公司 Method and device for controlling flashlight of intelligent device
CN105188189A (en) * 2015-08-08 2015-12-23 广东欧珀移动通信有限公司 Gravity-sensor-based flash lamp illumination method and apparatus, and mobile terminal
CN105373208A (en) * 2015-09-30 2016-03-02 维沃移动通信有限公司 Mobile terminal
CN105162991A (en) * 2015-10-13 2015-12-16 上海斐讯数据通信技术有限公司 A method and system for terminal automatically turning on and turning off electric torch

Similar Documents

Publication Publication Date Title
RU2641671C2 (en) Method, device and electronic message reminder
CN105259981B (en) Electronic device and control method thereof
US8918543B2 (en) Changing device functionality using environment conditions
CN105940770B (en) Interior illuminator, interior lighting system and its operating method
ES2859555T3 (en) Method, mobile terminal and non-transient computer-readable storage medium for adjusting the scan rate of a touch screen
US20160266643A1 (en) System and method for setting display brightness of display of electronic device
CN114327666B (en) Application starting method and device and electronic equipment
CN106874021B (en) Automatic switching method and device for visual interface of terminal
CN103685694A (en) Prompt method and electronic equipment
KR20110076852A (en) Terminal device
KR102269387B1 (en) Information sharing method depends on a situation and electronic device supporting the same
CN113138560B (en) Terminal control method, device, equipment and readable storage medium
CN109120864B (en) Light supplement processing method and device, storage medium and mobile terminal
CN107402625B (en) Touch screen scanning method and device, terminal and computer readable storage medium
CN111262986B (en) Calibration method and calibration device for proximity sensor and mobile terminal
CN103823626A (en) Method and device for regulating display contents and electronic equipment
US9942382B2 (en) Electronic device, control method, and non-transitory storage medium
CN104836717B (en) A kind of data processing method, device and terminal device
JP6145276B2 (en) Portable information terminal
CN100574373C (en) Display system and display packing thereof
WO2018193877A1 (en) Electronic device, program, and control method
KR20180060685A (en) An electronic device and a controlling method thereof
JP2014064222A (en) Mobile terminal, brightness control program, and brightness control method
CN106888325A (en) The control method and device of a kind of terminal
JP6546632B2 (en) Electronic device, program and control method

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: 20170623

RJ01 Rejection of invention patent application after publication