CN111355836A - Flashlight control method and device, storage medium and mobile terminal - Google Patents
Flashlight control method and device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN111355836A CN111355836A CN202010162167.3A CN202010162167A CN111355836A CN 111355836 A CN111355836 A CN 111355836A CN 202010162167 A CN202010162167 A CN 202010162167A CN 111355836 A CN111355836 A CN 111355836A
- Authority
- CN
- China
- Prior art keywords
- time value
- flashlight
- timing time
- timing
- mobile terminal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012544 monitoring process Methods 0.000 claims abstract description 24
- 230000008859 change Effects 0.000 claims description 5
- 238000004891 communication Methods 0.000 abstract description 7
- 230000008569 process Effects 0.000 abstract description 7
- 230000020169 heat generation Effects 0.000 abstract description 3
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000005286 illumination Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 238000010438 heat treatment Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000002035 prolonged effect Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000005484 gravity Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000005236 sound signal Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/22—Illumination; Arrangements for improving the visibility of characters on dials
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72451—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M2250/00—Details of telephonic subscriber devices
- H04M2250/12—Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Environmental & Geological Engineering (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to the technical field of communication, and discloses a flashlight control method, a flashlight control device, a storage medium and a mobile terminal. The flashlight control method is applied to a mobile terminal and comprises the following steps: setting a first timing time value and a second timing time value, wherein the first timing time value is greater than or equal to the second timing time value; recording the starting time when the flashlight is started, and monitoring the temperature of the mobile terminal; controlling the flashlight to be turned on or off according to the first timing time value and the second timing time value; and adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the opening time. The flashlight control method solves the problem that a flashlight in a mobile terminal is damaged due to overhigh heat generation in the using process.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a flashlight control method, a flashlight control device, a storage medium and a mobile terminal.
Background
As the user's reliance on mobile terminals continues to increase, the frequency of use of some additional functions for the mobile terminal also continues to increase. For example, the mobile terminal is carried around, and the situation that no light is used for illumination sometimes occurs in daily life, and at the moment, the flashlight carried by the mobile terminal is used for illumination, so that convenience is provided for the life of a user. However, the flashlight is easy to be damaged after long-term use due to high luminous intensity and serious heat generation in the use process of the flashlight.
Disclosure of Invention
The invention provides a flashlight control method, a flashlight control device, a storage medium and a mobile terminal, and solves the problem that a flashlight in the mobile terminal is damaged due to overhigh heat in the using process.
The invention provides a flashlight control method, which comprises the following steps:
setting a first timing time value and a second timing time value, wherein the first timing time value is greater than or equal to the second timing time value;
recording the starting time when the flashlight is started, and monitoring the temperature of the mobile terminal;
controlling the flashlight to be turned on or off according to the first timing time value and the second timing time value;
and adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the opening time.
Preferably, the first timing time value and the second timing time value are arbitrary time values greater than zero.
Preferably, the step of recording the turn-on time when the flashlight is turned on and monitoring the temperature of the mobile terminal includes:
detecting whether a switch of the flashlight is turned on, wherein the current time recorded when the switch is turned on is the turning-on time;
and setting a third timing time value, and acquiring the temperature of the mobile terminal every other third timing time value.
Preferably, the third timing time value includes a plurality of values to increase or decrease the temperature acquisition frequency according to a temperature change of the mobile terminal.
Preferably, the step of controlling the flashlight to be turned on and off according to the first timing value and the second timing value includes:
and turning on the flashlight when the first timing value is up, and turning off the flashlight when the second timing value is up.
Preferably, the step of adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the opening time includes:
presetting the corresponding first timing time value and the second timing time value according to different combinations of the temperature and the flashlight starting time length;
adjusting the first and second timing time values according to a closest combination based on the currently acquired temperature and the difference between the current time and the on time.
The invention also provides a flashlight control device, which is applied to a mobile terminal and comprises:
the timing setting module is used for setting a first timing time value and a second timing time value, wherein the first timing time value is greater than or equal to the second timing time value;
the monitoring module is used for recording the starting time when the flashlight is started and monitoring the temperature of the mobile terminal;
the control module is used for controlling the flashlight to be turned on or turned off according to the first timing time value and the second timing time value;
and the adjusting module is used for adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the starting time.
Preferably, the adjusting module includes:
the presetting module is used for presetting the corresponding first timing time value and the second timing time value according to different combinations of the temperature and the flashlight starting time length;
a fitting module for adjusting the first timing time value and the second timing time value according to a closest combination based on the currently obtained temperature and a difference between the current time and the on-time.
The present invention also provides a computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform a flashlight control method as described in any one of the above.
The invention further provides a mobile terminal which comprises a processor and a memory, wherein the processor is electrically connected with the memory, the memory is used for storing instructions and data, and the processor is used for executing the steps in the flashlight control method.
According to the flashlight control method, the flashlight control device, the storage medium and the mobile terminal, the first timing time value and the second timing time value are set, and the first timing time value is larger than or equal to the second timing time value; recording the starting time when the flashlight is started, and monitoring the temperature of the mobile terminal; controlling the flashlight to be turned on or off according to the first timing time value and the second timing time value; and adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the opening time. And the flashlight is turned on when the first timing time value is up, and is turned off when the second timing time value is up. When the first timing time value and the second timing time value are sufficiently small, the actual turn-on time of the flashlight can be adjusted by adjusting the first timing time value and the second timing time value under the condition that the flashlight is used by a user, so that the energy consumption is reduced, the damage caused by too high heating of the flashlight is avoided, and the user experience is improved.
Drawings
The technical solution and other advantages of the present invention will become apparent from the following detailed description of specific embodiments of the present invention, which is to be read in connection with the accompanying drawings.
Fig. 1 is a schematic structural diagram of a mobile terminal according to a first embodiment of the present invention;
fig. 2 is another schematic structural diagram of a mobile terminal according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a flashlight control method according to a second embodiment of the present invention;
fig. 4 is a block diagram of a flashlight control device according to a third embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. In the drawings, elements having similar structures are denoted by the same reference numerals. 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.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
The embodiment of the invention aims at solving the problem that the flashlight in the existing mobile terminal is damaged easily due to overhigh heat generation in the using process.
A first embodiment of the present invention provides a mobile terminal, which may be a smart phone or a tablet computer. As shown in fig. 1, the mobile terminal 100 includes a processor 101, a memory 102. The processor 101 is electrically connected to the memory 102.
The processor 101 is a control center of the mobile terminal 100, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by running or loading an application program stored in the memory 102 and calling data stored in the memory 102, thereby performing overall monitoring of the mobile terminal.
In this embodiment, the processor 101 in the mobile terminal 100 loads instructions corresponding to one or more processes of an application program into the memory 102, and the processor 101 executes the application program stored in the memory 102, so as to implement various functions, such as a flashlight control method, as follows:
setting a first timing time value and a second timing time value, wherein the first timing time value is greater than or equal to the second timing time value;
recording the starting time when the flashlight is started, and monitoring the temperature of the mobile terminal;
controlling the flashlight to be turned on or off according to the first timing time value and the second timing time value;
and adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the opening time.
The mobile terminal 100 may implement any of the steps in the flashlight control method.
Fig. 2 is a block diagram illustrating a specific structure of the mobile terminal 100 according to an embodiment of the present invention. As shown in fig. 2, the mobile terminal 100 may include Radio Frequency (RF) circuitry 110, memory 120 including one or more computer-readable storage media, an input unit 130, a display unit 140, a sensor 150, audio circuitry 160, a transmission module 170 (e.g., Wireless Fidelity (WiFi), a Wireless Fidelity (wi-fi)), a processor 180 including one or more processing cores, and a power supply 190. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The RF circuit 110 is used for receiving and transmitting electromagnetic waves, and performs interconversion between the electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuitry 110 may include various existing circuit components for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, Subscriber Identity Module (SIM) cards, memory, and so forth. The RF circuitry 110 may communicate with various networks such as the internet, an intranet, a wireless network, or with other devices over a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. The Wireless network may use various Communication standards, protocols and technologies, including but not limited to Global System for Mobile Communication (GSM), Enhanced Mobile Communication (EDGE), Wideband Code Division Multiple Access (WCDMA), Code Division Multiple Access (CDMA), Time Division Multiple Access (TDMA), Wireless Fidelity (Wi-Fi) (e.g., IEEE802.11a, IEEE802.11 b, IEEE802.11g and/or IEEE802.11 n), Voice over Internet Protocol (VoIP), world wide Microwave Access (Microwave for Wireless), Max-1, and other short message protocols, as well as any other suitable communication protocols, and may even include those that have not yet been developed.
The memory 120 may be used to store software programs and modules, such as the corresponding program instructions in the flashlight control method, and the processor 180 executes various functional applications and data processing by running the software programs and modules stored in the memory 120, so as to obtain the frequency of the information transmission signal transmitted by the mobile terminal 100. Generating interference signals, and the like. Memory 120 may include high speed random access memory and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 120 may further include memory located remotely from the processor 180, which may be connected to the mobile terminal 100 through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input unit 130 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, the input unit 130 may include a touch-sensitive surface 131 as well as other input devices 132. The touch-sensitive surface 131, also referred to as a touch display screen or a touch pad, may collect touch operations by a user on or near the touch-sensitive surface 131 (e.g., operations by a user on or near the touch-sensitive surface 131 using a finger, a stylus, or any other suitable object or attachment), and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface 131 may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 180, and can receive and execute commands sent by the processor 180. Additionally, the touch-sensitive surface 131 may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch-sensitive surface 131, the input unit 130 may also include other input devices 132. In particular, other input devices 132 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 140 may be used to display information input by or provided to a user and various graphic user interfaces of the mobile terminal 100, which may be configured by graphics, text, icons, video, and any combination thereof. The Display unit 140 may include a Display panel 141, and optionally, the Display panel 141 may be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), or the like. Further, the touch-sensitive surface 631 may overlay the display panel 141, and when a touch operation is detected on or near the touch-sensitive surface 131, the touch operation is transmitted to the processor 180 to determine the type of the touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although in the figures touch-sensitive surface 131 and display panel 141 are shown as two separate components to implement input and output functions, in some embodiments touch-sensitive surface 131 may be integrated with display panel 141 to implement input and output functions.
The mobile terminal 100 may also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that may generate an interrupt when the folder is closed or closed. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be further configured in the mobile terminal 100, detailed descriptions thereof are omitted.
The mobile terminal 100, which can assist the user in receiving requests, transmitting information, etc., through the transmission module 170 (e.g., Wi-Fi module), provides the user with wireless broadband internet access. Although the transmission module 170 is shown in the drawings, it is understood that it does not belong to the essential constitution of the mobile terminal 100 and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 180 is a control center of the mobile terminal 100, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by operating or executing software programs and/or modules stored in the memory 120 and calling data stored in the memory 120, thereby integrally monitoring the mobile terminal. Optionally, processor 180 may include one or more processing cores; in some embodiments, the processor 180 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 180.
The mobile terminal 100 may also include a power supply 190 (e.g., a battery) for powering the various components, which may be logically coupled to the processor 180 via a power management system that may be used to manage charging, discharging, and power consumption management functions in some embodiments. The power supply 190 may also include any component including one or more of a dc or ac power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
Although not shown, the mobile terminal 100 further includes a camera (e.g., a front camera, a rear camera), a bluetooth module, a flashlight, and the like, which will not be described herein. Specifically, in this embodiment, the display unit of the mobile terminal 100 is a touch screen display, and the mobile terminal further includes a memory, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for:
setting a first timing time value and a second timing time value, wherein the first timing time value is greater than or equal to the second timing time value;
recording the starting time when the flashlight is started, and monitoring the temperature of the mobile terminal;
controlling the flashlight to be turned on or off according to the first timing time value and the second timing time value;
and adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the opening time.
In order to better use the mobile terminal 100 provided by the above embodiment, when no light is used for illumination in daily life, the flashlight in the mobile terminal 100 is used for illumination, so that damage caused by too high heat of the flashlight is avoided. Therefore, a second embodiment of the present invention provides a flashlight control method, which is applied to the mobile terminal 100, and the flowchart of the flashlight control method is shown in fig. 3, and the specific steps are as follows:
step S101, setting a first timing time value and a second timing time value, wherein the first timing time value is larger than or equal to the second timing time value.
Further, in a default state, the first timing time value is equal to the second timing time value, and may be any time value greater than zero. For example, the first timing time value may be 10 milliseconds, 200 milliseconds, 10 minutes, or the like.
And S102, recording the starting time when the flashlight is started, and monitoring the temperature of the mobile terminal.
Preferably, the step S102 may include:
detecting whether a switch of the flashlight is turned on, wherein the current time recorded when the switch is turned on is the turning-on time;
and setting a third timing time value, and acquiring the temperature of the mobile terminal every other third timing time value.
The switch for turning on the flashlight can be turned on by a user through pressing a physical key, touch screen operation or voice control and the like. When the mobile terminal 100 detects that the flashlight is turned on, the recorded current time is the turn-on time of the flashlight.
The monitoring of the temperature of the mobile terminal 100 may be monitoring the surface temperature of the mobile terminal 100, or monitoring the temperature of hardware in a close distance to the flashlight, such as monitoring the temperature of a camera. Among them, the optimal temperature of the monitoring mobile terminal 100 is the temperature of the monitoring flashlight.
The temperature of the mobile terminal changes less in a short time when the flashlight is turned on, so the default timing duration of the third timing value may be 5 seconds.
Further, the third timing time value may include a plurality of values to increase or decrease the temperature acquisition frequency according to a temperature change of the mobile terminal. The plurality of values correspond to a plurality of steps of the temperature acquisition frequency. When the temperature variation is large, the temperature acquisition frequency is a fast gear; when the temperature change amount is small, the temperature acquisition frequency is a slow gear. The temperature variation is an absolute value of a difference between a currently acquired temperature and a previously acquired temperature.
In this embodiment, the third timing time value may include three values corresponding to three different gears of the temperature acquisition frequency. When the temperature variation is large, such as greater than 5 ℃, setting the third timing time value to be a small value, namely, setting the temperature acquisition frequency to be a gear with a fast speed; when the temperature variation is small, such as less than 1 ℃, setting the third timing time value to be a larger value, namely, the temperature acquisition frequency is a slower gear; the gear of the temperature acquisition frequency corresponding to the rest temperature change conditions is between the slower gear and the faster gear.
In other embodiments of the present invention, the third timing time value includes three values, and may be four, five, or six values. The user can customize the third timing time value according to different mobile terminals 100 and actual use conditions.
And S103, controlling the flashlight to be turned on and off according to the first timing time value and the second timing time value.
Specifically, the step S103 may include: and turning on the flashlight when the first timing value is up, and turning off the flashlight when the second timing value is up.
When the first timing time value is equal to the second timing time value, the flashlight is turned on when the first timing time value is up, the flashlight is turned off when the second timing time value is up, and the flashlight is turned on immediately after being turned off, so that the flashlight is in a normally-on state, namely the duration of the first timing time value and the duration of the second timing time value do not influence the use of the flashlight. Therefore, the first timing time value and the second timing time value may be set to a larger value, for example, the first timing time value and the second timing time value may be set to 10 minutes. This is suitable for the stage when the temperature of the mobile terminal 100 is low immediately after the flashlight is turned on.
And when the first timing time value is not equal to the second timing time value, namely the first timing time value is greater than the second timing time value, the flashlight is turned on when the first timing time value is up, and the flashlight is turned off when the second timing time value is up. When the first timing time value is set for a sufficiently small period of time, for example, the first timing time value is 10 milliseconds or 200 milliseconds. When the second timing time value is up, the flashlight is turned off, due to the hysteresis effect of human eyes, although the flashlight is in the off state in a short time, the flashlight sensed by the human eyes is still in the normally bright state, the working time of the flashlight is actually shortened, the current consumption is reduced, the heating amount is reduced, the damage of the flashlight due to overhigh heating is avoided, the total service time of the flashlight is prolonged, and the user experience is improved.
And step S104, adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the opening time.
Specifically, the step S104 may include: presetting the corresponding first timing time value and the second timing time value according to different combinations of the temperature and the flashlight starting time length;
adjusting the first and second timing time values according to a closest combination based on the currently acquired temperature and the difference between the current time and the on time.
In this embodiment, according to a plurality of combinations of the temperatures and the flashlight turn-on time periods, a plurality of corresponding sets of the first timing time values and the second timing time values are preset. For example, the temperature is 50 ℃, the flashlight turn-on time is 1h, and the corresponding first timing time value and the second timing time value are 10 milliseconds and 5 milliseconds respectively; the temperature is 40 ℃, the flashlight starting time is 0.5h, and the corresponding first timing time value and the second timing time value are 10 milliseconds and 8 milliseconds respectively.
And performing data fitting according to the plurality of groups of temperatures and the flashlight starting time. The data fitting mode may be linear fitting or nonlinear fitting. And adjusting the first timing time value and the second timing time value according to the closest combination based on the currently acquired temperature and the difference between the current time and the opening time, so as to adjust the actual opening time of the flashlight under the condition of keeping the brightness of the flashlight. Namely, after the second timing time value is up, the flashlight is in the off state in the time period before the first timing time value is up. Due to the hysteresis effect of human eyes, although the flashlight is in the off state in the time period, the flashlight seen by the human eyes is still in the normally on state, so that the use of a user is not influenced, the on time of the flashlight is actually reduced, namely, the current consumption is reduced, the heat productivity is reduced, the damage of the flashlight due to overhigh heat is avoided, and meanwhile, the total use time of the flashlight is prolonged.
In order to better implement the flashlight control method described in the second embodiment, the third embodiment of the present invention will be further described from the perspective of a flashlight control device, which may be specifically implemented as a stand-alone entity or integrated into the mobile terminal 100 provided in the first embodiment of the present invention, where the mobile terminal 100 may include a mobile phone, a tablet computer, and the like.
As shown in fig. 4, fig. 4 is a block diagram of a flashlight control device according to a third embodiment of the present invention, which is applied to a mobile terminal 100, and the flashlight control device may include:
a timing setting module 201, configured to set a first timing time value and a second timing time value, where the first timing time value is greater than or equal to the second timing time value;
the monitoring module 202 is used for recording the starting time when the flashlight is started and monitoring the temperature of the mobile terminal;
the control module 203 is configured to control the flashlight to be turned on or off according to the first timing time value and the second timing time value;
the adjusting module 204 is configured to adjust the first timing time value and the second timing time value according to the temperature and a difference between the current time and the opening time.
Further, the adjusting module 204 may include:
the presetting module 2041 is used for presetting the corresponding first timing time value and the second timing time value according to different combinations of the temperature and the flashlight starting time;
a fitting module 2042, configured to adjust the first timing time value and the second timing time value according to a closest combination based on the currently obtained temperature and a difference between the current time and the on time.
Specifically, the timing setting module 201 may include a first timer and a second timer, which are used to set the first timing time value and the second timing time value in a timing manner. In a default state, the first timing time value is equal to the second timing time value, and may be any time value greater than zero. For example, the first timing time value may be 10 milliseconds, 200 milliseconds, 10 minutes, or the like.
The monitoring module 202 may further include a third timer, configured to set a third timing time value in a timed manner, and acquire the temperature of the mobile terminal 100 every other third timing time value. The temperature of the mobile terminal 100 may be a surface temperature of the mobile terminal 100, or a temperature of hardware in a close distance to the flashlight, such as a temperature of a camera. Among them, the optimal temperature of the mobile terminal 100 is the temperature of the flashlight, which can be obtained by disposing a temperature sensor near the flashlight.
The control module 203 is configured to turn on the flashlight when the first timing value is expired and turn off the flashlight when the second timing value is expired.
The preset module 2041 is configured to preset multiple corresponding sets of the first timing value and the second timing value according to a combination of the multiple temperatures and the flashlight turn-on time. And the fitting module 2042 performs data fitting according to the multiple groups of temperatures and flashlight turn-on durations. The data fitting mode may be linear fitting or nonlinear fitting. And adjusting the first timing time value and the second timing time value according to the closest combination based on the currently acquired temperature and the difference between the current time and the opening time, so as to adjust the actual opening time of the flashlight under the condition of keeping the brightness of the flashlight. Namely, after the second timing time value is up, the flashlight is in the off state in the time period before the first timing time value is up. Due to the hysteresis effect of human eyes, although the flashlight is in the off state in the time period, the flashlight seen by the human eyes is still in the normally on state, so that the use of a user is not influenced, the on time of the flashlight is actually reduced, namely, the current consumption is reduced, the heat productivity is reduced, the damage of the flashlight due to overhigh heat is avoided, and meanwhile, the total use time of the flashlight is prolonged.
Further, when the flashlight switch is turned off by a user, namely the flashlight is used up, the first timer, the second timer and the third timer stop timing.
In specific implementation, the above modules may be implemented as independent entities, or may be combined arbitrarily, and implemented as the same or a plurality of entities, where the specific implementation of the above modules may refer to the foregoing method embodiment, and specific beneficial effects that can be achieved may also refer to the beneficial effects in the foregoing method embodiment, which are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the flashlight control method provided by the second embodiment of the present invention may be implemented by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, a fourth embodiment of the present invention provides a storage medium having stored therein a plurality of instructions, which can be loaded by a processor to perform any of the steps of the flashlight control method provided in the second embodiment.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute any step in the flashlight control method provided in the second embodiment, the advantageous effects that can be achieved by the flashlight control method provided in the second embodiment of the present invention can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The flashlight control method, the flashlight control device, the storage medium and the mobile terminal provided by the embodiment of the invention are described in detail, a specific embodiment is applied in the text to explain the principle and the implementation of the invention, and the description of the embodiment is only used for helping to understand the technical scheme and the core idea of the invention; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A flashlight control method is applied to a mobile terminal and is characterized by comprising the following steps:
setting a first timing time value and a second timing time value, wherein the first timing time value is greater than or equal to the second timing time value;
recording the starting time when the flashlight is started, and monitoring the temperature of the mobile terminal;
controlling the flashlight to be turned on or off according to the first timing time value and the second timing time value;
and adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the opening time.
2. The method of controlling a flashlight of claim 1, wherein the first and second timing time values are any time values greater than zero.
3. The method of claim 1, wherein the step of recording the turn-on time and monitoring the temperature of the mobile terminal while the flashlight is turned on comprises:
detecting whether a switch of the flashlight is turned on, wherein the current time recorded when the switch is turned on is the turning-on time;
and setting a third timing time value, and acquiring the temperature of the mobile terminal every other third timing time value.
4. The flashlight control method of claim 3, wherein the third timing time value comprises a plurality of values to increase or decrease a temperature acquisition frequency according to a temperature change of the mobile terminal.
5. The method of claim 1, wherein the step of controlling the flashlight to turn on and off according to the first and second timing values comprises:
and turning on the flashlight when the first timing value is up, and turning off the flashlight when the second timing value is up.
6. The method of claim 1, wherein the step of adjusting the first and second timed time values based on the temperature and the difference between the current time and the on time comprises:
presetting the corresponding first timing time value and the second timing time value according to different combinations of the temperature and the flashlight starting time length;
adjusting the first and second timing time values according to a closest combination based on the currently acquired temperature and the difference between the current time and the on time.
7. A flashlight control device applied to a mobile terminal is characterized by comprising:
the timing setting module is used for setting a first timing time value and a second timing time value, wherein the first timing time value is greater than or equal to the second timing time value;
the monitoring module is used for recording the starting time when the flashlight is started and monitoring the temperature of the mobile terminal;
the control module is used for controlling the flashlight to be turned on or turned off according to the first timing time value and the second timing time value;
and the adjusting module is used for adjusting the first timing time value and the second timing time value according to the temperature and the difference between the current time and the starting time.
8. The flashlight control device of claim 7, wherein the adjustment module comprises:
the presetting module is used for presetting the corresponding first timing time value and the second timing time value according to different combinations of the temperature and the flashlight starting time length;
a fitting module for adjusting the first timing time value and the second timing time value according to a closest combination based on the currently obtained temperature and a difference between the current time and the on-time.
9. A computer readable storage medium having stored therein a plurality of instructions adapted to be loaded by a processor to perform the flashlight control method of any one of claims 1-6.
10. A mobile terminal comprising a processor and a memory, the processor being electrically connected to the memory, the memory being configured to store instructions and data, the processor being configured to perform the steps of the flashlight control method of any one of claims 1-6.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010162167.3A CN111355836A (en) | 2020-03-10 | 2020-03-10 | Flashlight control method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010162167.3A CN111355836A (en) | 2020-03-10 | 2020-03-10 | Flashlight control method and device, storage medium and mobile terminal |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN111355836A true CN111355836A (en) | 2020-06-30 |
Family
ID=71197954
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010162167.3A Pending CN111355836A (en) | 2020-03-10 | 2020-03-10 | Flashlight control method and device, storage medium and mobile terminal |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111355836A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115379615A (en) * | 2022-10-20 | 2022-11-22 | 荣耀终端有限公司 | Electronic equipment and method for controlling brightness of light-emitting device |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201795409U (en) * | 2010-08-12 | 2011-04-13 | 葛文生 | Timing desk lamp |
| CN103077678A (en) * | 2013-01-05 | 2013-05-01 | 王知康 | Method for controlling LED (light emitting diode) display brightness by high-frequency distributed pulses |
| CN103874310A (en) * | 2014-04-10 | 2014-06-18 | 浙江省能源与核技术应用研究院 | Method for improving LED visual illuminating effect and lowering heating of LED lamp |
| CN203814012U (en) * | 2014-04-10 | 2014-09-03 | 江苏普明光电科技有限公司 | Driving circuit capable of improving LED visual lighting effect |
| CN203859910U (en) * | 2014-05-08 | 2014-10-01 | Tcl-罗格朗国际电工(惠州)有限公司 | Three-wire system dimming circuit and dimmer thereof |
| CN206626520U (en) * | 2017-03-28 | 2017-11-10 | 佛山市星特莱照明有限公司 | A kind of LED electricity-saving lamps of good heat dissipation effect |
| US20180183967A1 (en) * | 2016-12-22 | 2018-06-28 | Samsung Electronics Co., Ltd. | Display apparatus and control method thereof |
| CN109041383A (en) * | 2018-08-31 | 2018-12-18 | 华勤通讯技术有限公司 | The control method and system of flash lamp in mobile terminal |
-
2020
- 2020-03-10 CN CN202010162167.3A patent/CN111355836A/en active Pending
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN201795409U (en) * | 2010-08-12 | 2011-04-13 | 葛文生 | Timing desk lamp |
| CN103077678A (en) * | 2013-01-05 | 2013-05-01 | 王知康 | Method for controlling LED (light emitting diode) display brightness by high-frequency distributed pulses |
| CN103874310A (en) * | 2014-04-10 | 2014-06-18 | 浙江省能源与核技术应用研究院 | Method for improving LED visual illuminating effect and lowering heating of LED lamp |
| CN203814012U (en) * | 2014-04-10 | 2014-09-03 | 江苏普明光电科技有限公司 | Driving circuit capable of improving LED visual lighting effect |
| CN203859910U (en) * | 2014-05-08 | 2014-10-01 | Tcl-罗格朗国际电工(惠州)有限公司 | Three-wire system dimming circuit and dimmer thereof |
| US20180183967A1 (en) * | 2016-12-22 | 2018-06-28 | Samsung Electronics Co., Ltd. | Display apparatus and control method thereof |
| CN206626520U (en) * | 2017-03-28 | 2017-11-10 | 佛山市星特莱照明有限公司 | A kind of LED electricity-saving lamps of good heat dissipation effect |
| CN109041383A (en) * | 2018-08-31 | 2018-12-18 | 华勤通讯技术有限公司 | The control method and system of flash lamp in mobile terminal |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115379615A (en) * | 2022-10-20 | 2022-11-22 | 荣耀终端有限公司 | Electronic equipment and method for controlling brightness of light-emitting device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10674452B2 (en) | Terminal management method and apparatus | |
| CN105469775A (en) | Method for adjusting brightness of display screen and terminal equipment | |
| EP4053676B1 (en) | Power consumption control method for electronic device, and electronic device and storage medium | |
| CN108762814A (en) | Screen lightening method and related equipment | |
| CN111277991A (en) | Operator name display method and device, mobile terminal and storage medium | |
| CN110691168B (en) | Screen control method and device of mobile terminal and storage medium | |
| CN109687922B (en) | Signal monitoring method and device of wireless network, storage medium and mobile terminal | |
| CN111443803A (en) | Mode switching method, device, storage medium and mobile terminal | |
| CN107085718A (en) | Face detection method and device, computer equipment, and computer-readable storage medium | |
| CN111008090A (en) | Battery electric quantity control method and device, storage medium and terminal equipment | |
| CN112542867B (en) | Mobile terminal power supply control method, device, terminal equipment and storage medium | |
| CN111355836A (en) | Flashlight control method and device, storage medium and mobile terminal | |
| CN105635379B (en) | Noise suppression method and device | |
| CN109743120B (en) | Timing control circuit, timing control method and terminal | |
| CN109327866B (en) | Flow control method, flow control device, mobile terminal and storage medium | |
| CN108365649B (en) | Charging control method and device and mobile terminal | |
| CN110995324B (en) | Bluetooth communication method, device, storage medium and terminal equipment | |
| CN112198955A (en) | Power saving processing method, device, storage medium and mobile terminal | |
| CN111308303A (en) | Method and device for detecting radio frequency power amplifier of mobile terminal | |
| CN111048056A (en) | Terminal equipment brightness adjusting method and system, storage medium and terminal equipment | |
| CN111273774A (en) | Terminal device display screen control method and system, storage medium and terminal device | |
| CN112261536B (en) | Earphone control method, earphone control device, terminal equipment and storage medium | |
| CN112558749B (en) | Power supply control method and device, storage medium and mobile terminal | |
| CN111614839B (en) | Antenna self-adaptive control method and device | |
| CN109995441B (en) | Communication information processing method, device and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200630 |