WO2015143688A1 - Method for adjusting button light of mobile terminal, and mobile terminal - Google Patents

Method for adjusting button light of mobile terminal, and mobile terminal Download PDF

Info

Publication number
WO2015143688A1
WO2015143688A1 PCT/CN2014/074241 CN2014074241W WO2015143688A1 WO 2015143688 A1 WO2015143688 A1 WO 2015143688A1 CN 2014074241 W CN2014074241 W CN 2014074241W WO 2015143688 A1 WO2015143688 A1 WO 2015143688A1
Authority
WO
WIPO (PCT)
Prior art keywords
ambient light
light intensity
mobile terminal
brightness
detected
Prior art date
Application number
PCT/CN2014/074241
Other languages
French (fr)
Chinese (zh)
Inventor
吴福民
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2014/074241 priority Critical patent/WO2015143688A1/en
Publication of WO2015143688A1 publication Critical patent/WO2015143688A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/22Illumination; Arrangements for improving the visibility of characters on dials

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a method for adjusting a button light of a mobile terminal and a mobile terminal.
  • BACKGROUND OF THE INVENTION At present, the change of the brightness of the button light of the mobile terminal and the change of the brightness of the screen backlight are consistent. When the ambient light intensity becomes stronger, the screen backlight becomes brighter and the button light also becomes brighter. When the ambient light intensity is weak, the screen backlight becomes weak, and the brightness of the button light is also weak.
  • Embodiments of the present invention provide a method for adjusting a button light of a mobile terminal and a mobile terminal, which are used to solve the problem that the button lamp of the mobile terminal cannot be adaptively adjusted in the prior art, and the mobile terminal consumes a large amount of power and moves. The problem of short life of the terminal.
  • a method for adjusting a button light of a mobile terminal comprising:
  • the brightness of the button light of the mobile terminal is inversely adjusted with respect to the detected ambient light intensity.
  • the brightness of the button light of the mobile terminal is reversely adjusted according to the detected ambient light intensity, and the method includes:
  • the detecting the ambient light intensity of the mobile terminal specifically including :
  • the ambient light intensity of the mobile terminal is detected.
  • the detecting according to the detected ambient light intensity The brightness of the button light of the mobile terminal is reversely adjusted with respect to the detected ambient light intensity, and specifically includes:
  • the brightness of the button light of the mobile terminal is reversed according to the detected ambient light intensity with respect to the detected ambient light intensity. Adjustment.
  • the method further includes: when detecting the ambient light intensity If the threshold is greater than the predetermined ambient light intensity, the button light is turned off.
  • a mobile terminal includes: an ambient light intensity sensor, a processor, and a button light;
  • the ambient light intensity sensor is configured to detect an ambient light intensity of the mobile terminal
  • the processor is configured to inversely adjust the brightness of the button light relative to the detected ambient light intensity according to the ambient light intensity detected by the ambient light intensity sensor;
  • the button lamp is configured to display, according to the brightness of the processor, the brightness of the processor that is inversely adjusted with respect to the detected ambient light intensity.
  • the processor is configured to:
  • Y indicates the brightness of the button light
  • Levelbase is the ambient light intensity threshold
  • Level is the detected ambient light intensity
  • M is the compensation coefficient
  • N is the intensity coefficient of the ambient light intensity converted to the ambient light level
  • S is the ambient light level converted to the actual Displays the coefficient of brightness.
  • the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1) ; The value of S is an integer in the range of (0, 255).
  • any one of the first possible implementation manner and the second possible implementation manner of the second aspect in a third possible implementation manner, when performing a button light on the mobile terminal
  • the ambient light intensity sensor detects the ambient light intensity of the mobile terminal.
  • any of the first possible implementation of the second aspect to the third possible implementation in a fourth possible implementation manner, when the ambient light intensity detected by the ambient light intensity sensor is less than a predetermined ambient light intensity threshold, and the button light is turned on, the processor is configured according to the detected The ambient light intensity inversely adjusts the brightness of the button light of the mobile terminal relative to the detected ambient light intensity.
  • the processor when the ambient light intensity detected by the ambient light sensor is greater than a predetermined ambient light intensity threshold, the processor turns off the button light.
  • FIG. 1 is a flowchart of a method for automatically adjusting a button light of a mobile terminal according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a mobile terminal of a mobile terminal according to an embodiment of the present invention.
  • FIG. 3 is a diagram showing a correspondence between a button lamp adjustment mode of a mobile terminal and an LCD backlight adjustment mode of the mobile terminal and an ambient light sensor state according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart of still another method for automatically adjusting a button light of a mobile terminal according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for manually adjusting a button light of a mobile terminal according to an embodiment of the present invention.
  • the embodiments of the present invention provide a method for adjusting a button light of a mobile terminal and a mobile terminal, which are used to solve the problem that the button lamp of the mobile terminal cannot be adaptively adjusted in the prior art, and the power consumption of the mobile terminal is large. The problem of short life of mobile terminals.
  • An embodiment of the present invention provides a method for adjusting a button light of a mobile terminal. As shown in FIG. 1 , the method includes: Step 101: Detecting an ambient light intensity of the mobile terminal.
  • the ambient light intensity can be detected by an ambient light intensity sensor of the mobile terminal.
  • Step 102 Perform reverse adjustment of the brightness of the button lamp of the mobile terminal with respect to the detected ambient light intensity according to the detected ambient light intensity.
  • the brightness of the button light can be reversely adjusted by the processor of the mobile terminal.
  • the so-called reverse adjustment is: When the ambient light intensity is increased, the brightness of the button lamp is relatively lowered, and when the ambient light intensity is lowered, the brightness of the button lamp is relatively increased.
  • the button lamp is adaptively adjusted, and in the case where the ambient light intensity changes, the brightness of the button lamp is reversely adjusted according to the detected ambient light intensity, and the detected ambient light intensity is reversely adjusted.
  • the power consumption of the mobile terminal is lowered, and the service life of the mobile terminal is prolonged.
  • the brightness of the button light of the mobile terminal is reversely adjusted according to the detected ambient light intensity with respect to the detected ambient light intensity, including:
  • the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1); the value of S is an integer in the range of (0, 255). Take the value according to actual needs.
  • the value of M may be a real number in the range of 0 or more and less than or equal to 1
  • the value of N is a real number in the range of (0, 1).
  • the value may be a real number greater than 0 and less than or equal to 1
  • the value of S is similar to that of the S, and will not be described again.
  • the detecting the ambient light intensity of the mobile terminal includes: detecting an ambient light intensity of the mobile terminal when the brightness of the button light of the mobile terminal is automatically adjusted.
  • the method further includes:
  • the ambient light intensity at which the mobile terminal is located is stopped.
  • the adjustment manner of the button lamp may be determined according to a control instruction of receiving the adjustment mode of the button lamp of the mobile terminal, and the adjustment mode of the display screen of the mobile terminal is determined according to the received control instruction of the adjustment mode of the display screen of the mobile terminal.
  • the ambient light intensity sensor When the ambient light intensity is detected as described above, the ambient light intensity sensor is turned on. When the ambient light intensity is stopped, the ambient light sensor is off.
  • the brightness of the button light of the mobile terminal is reversely adjusted according to the detected ambient light intensity, and the method includes:
  • the brightness of the button light of the mobile terminal is reversed according to the detected ambient light intensity with respect to the detected ambient light intensity. Adjustment.
  • the button light is turned off.
  • the button light is turned on for a predetermined time.
  • the button light is turned on for a predetermined time and the control command is not received within the time of opening, the button light is turned off. If the time difference between the time when the control command is received and the last time the control command is received does not reach the predetermined time threshold, the time when the button light is turned on is re-timed from the time when the control command is received.
  • the control command may be a control command generated by a touch screen display, or may be an instruction generated by a trigger button (TP, Touch Panel).
  • the trigger button can be a trigger up and down volume button, a switch button, a main menu button (home), and the like.
  • the present invention further provides a mobile terminal.
  • the mobile terminal includes an ambient light intensity sensor 201, a processor 202, and a button light 203:
  • the ambient light intensity sensor 201 is configured to detect an ambient light intensity of the mobile terminal.
  • the processor 202 is configured to inversely adjust the brightness of the button lamp 203 of the mobile terminal with respect to the detected ambient light intensity according to the detected ambient light intensity.
  • the button light 203 is configured to display the brightness of the processor that is inversely adjusted with respect to the detected ambient light intensity according to the processor.
  • the button lamp is adaptively adjusted, and in the case where the ambient light intensity changes, the brightness of the button lamp is reversely adjusted according to the detected ambient light intensity, and the movement is reduced. Terminal power consumption, extending the life of mobile terminals.
  • the processor 202 is configured to:
  • the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1); the value of S is an integer in the range of (0, 255).
  • the ambient light intensity sensor 201 detects the ambient light intensity of the mobile terminal.
  • the mobile terminal further includes a display screen.
  • the ambient light intensity sensor 201 stops detecting the environment where the mobile terminal is located. brightness.
  • the processor 202 is configured to detect the ambient light.
  • the intensity inversely adjusts the brightness of the button lamp 203 of the mobile terminal with respect to the detected ambient light intensity.
  • the processor 202 turns off the button light 203.
  • the processor 202 preferably, if the processor 202 receives the control command within a predetermined time Keep the button light on.
  • the button light 203 When the button light 203 is turned on for a predetermined time, and the processor 202 does not receive the control command during the time of the turn-on, the button light is turned off.
  • the time when the button light is turned on is re-timed from the time when the control command is received.
  • the control command may be a control command generated by a touch screen display, or may be an instruction generated by a trigger button (TP, Touch Panel).
  • the trigger button can be a trigger up and down volume button, a switch button, a main menu button (home), and the like.
  • the mobile phone Take the FFOS (Firefox Operating System) mobile phone as an example, and the mobile phone includes an ambient light intensity sensor, a processor, a button light, and an LCD (Liquid Crystal Display) screen.
  • FFOS Firefox Operating System
  • the mobile phone includes an ambient light intensity sensor, a processor, a button light, and an LCD (Liquid Crystal Display) screen.
  • the ambient light intensity sensor is turned off, and in other cases, the ambient light intensity sensor is turned on, as shown in FIG. 3 (Fig. 3 It is shown as the corresponding relationship between the button light adjustment mode and the LCD backlight adjustment mode and the ambient light intensity sensor state).
  • the processor determines that the button light is manually adjusted, when the control command is received, the brightness of the display button light is a manually preset brightness value, and the control command is not received after the display reaches a predetermined time. When the button light is turned off.
  • the ambient light intensity sensor is turned on to detect the ambient light intensity of the mobile phone.
  • the ambient light intensity sensor can periodically send the detected ambient light intensity to the processor, or send the detected ambient light intensity to the processor when the button light is turned on, and can also send the ambient light intensity sent by the processor.
  • the ambient light intensity is detected.
  • an ambient light intensity sensor periodically sends ambient light intensity to the processor as an example, and an implementation step of automatically adjusting the brightness of the button light is illustrated, as shown in FIG. 4 .
  • Step 401 Determine whether the received ambient light intensity is greater than a preset ambient light intensity threshold. If yes, go to step 406. If no, go to step 402.
  • Step 402 Determine whether a control command is received. If yes, go to step 403. If no, go to step 404.
  • Step 403 Perform step 405 according to the received ambient light intensity to reversely adjust the brightness of the button light relative to the ambient light intensity when the time when the control command is received does not reach the predetermined time.
  • the foregoing step 403 specifically includes:
  • the button light If the button light is on, the time difference between the time when the control command is received and the last time the control command is received does not reach the predetermined time, and the time is counted from the time when the control command is received, when the predetermined time is not reached. According to the received ambient light intensity, the brightness of the button light is reversely adjusted relative to the ambient light intensity. If the button light is off, the time difference between the time when the control command is received and the last time the control command is received has reached the predetermined time threshold, and the time is counted from the time when the control command is received, and the predetermined time is not reached. At the time, the brightness of the button light is inversely adjusted with respect to the ambient light intensity according to the received ambient light intensity.
  • Step 404 Perform step 405 according to the received ambient light intensity to reversely adjust the brightness of the button light relative to the ambient light intensity when the last time the control command is received does not reach the predetermined time.
  • the above step 404 specifically includes:
  • the button light is turned on, the time when the control command was last received has reached a predetermined time, and the brightness of the button lamp is inversely adjusted according to the received ambient light intensity with respect to the received ambient light intensity;
  • buttons light are off, the last time the control command was received has reached the predetermined time, and the button light is turned off.
  • Step 405 When the button light is turned on for a predetermined time and the control command is not received, the button light is turned off.
  • the time when the button light is turned on is re-timed from the time when the control command is received.
  • Step 406 When the button light is turned on, the button light is turned off, and when the button light is turned off, the button light is turned off.
  • the brightness of the button light is reversely adjusted with respect to the received ambient light intensity, and the following manner can be utilized:
  • the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1); the value of S is an integer in the range of (0, 255).
  • the specific value is based on the actual value.
  • the value of S is 255, the value of M is 0.3, and the value of N is 0.1.
  • Step 501 Determine whether a control command is received. If yes, go to step 502. If no, go to step 503.
  • Step 502 The brightness of the button light is displayed as a predetermined brightness value when the time when the control command is received is not reached within a predetermined time. Go to step 504.
  • the foregoing step 502 specifically includes:
  • the button light If the button light is on, the time difference between the time when the control command is received and the last time the control command is received does not reach the predetermined time, and the time from the time when the control command is received is started, and it is determined that the predetermined time has not been reached.
  • the brightness of the button light is displayed, it is a predetermined brightness value. If the button light is off, the time difference between the time when the control command is received and the last time the control command is received has reached the predetermined time threshold, and the time is counted from the time when the control command is received, and the predetermined time is not reached. At the time of time, the button light is turned on, and the brightness of the button lamp is displayed as a predetermined brightness value.
  • Step 503 The brightness of the button light is displayed as a predetermined brightness value when the last time the control command is received does not reach the predetermined time. Go to step 504.
  • the button light is on, the time when the control command was last received does not reach the predetermined time, and the brightness of the display button light is a predetermined brightness value
  • buttons light are off, the last time the control command was received has reached the predetermined time, and the button light is turned off.
  • Step 504 When the button light is turned on for a predetermined time and the control command is not received, the button light is turned off.
  • the time when the button light is turned on is re-timed from the time when the control command is received.
  • the manual adjustment of the button light can be achieved by the method provided above.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the present invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage interfaces (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
  • computer-usable storage interfaces including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions are provided for implementing one or more processes and/or block diagrams in the flowchart The steps of the function specified in the box or in multiple boxes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Circuit Arrangement For Electric Light Sources In General (AREA)

Abstract

Disclosed are a method for adjusting a button light of a mobile terminal and the mobile terminal, which are used to solve the problem existing in the prior art that a button light of a mobile terminal cannot be adaptively adjusted, so that the power consumption of the mobile terminal is high and the service life of the mobile terminal is short. The method comprises: detecting the ambient light intensity of a mobile terminal; and according to the detected ambient light intensity, adjusting the brightness of a button light of the mobile terminal inversely relative to the detected ambient light intensity.

Description

一种移动终端的按键灯的调节方法及移动终端 技术领域 本发明涉及电子技术领域, 尤其涉及一种移动终端的按键灯的调节方法及移动终端。 背景技术 目前移动终端的按键灯亮度的改变和屏幕背光亮度改变保持一致。 当环境光强度变 强, 屏幕背光变亮, 按键灯也变亮。 当环境光强度变弱, 屏幕背光变弱, 按键灯亮度也变 弱。  The present invention relates to the field of electronic technologies, and in particular, to a method for adjusting a button light of a mobile terminal and a mobile terminal. BACKGROUND OF THE INVENTION At present, the change of the brightness of the button light of the mobile terminal and the change of the brightness of the screen backlight are consistent. When the ambient light intensity becomes stronger, the screen backlight becomes brighter and the button light also becomes brighter. When the ambient light intensity is weak, the screen backlight becomes weak, and the brightness of the button light is also weak.
利用以上方式调节按键灯时, 有以下缺点:  When adjusting the button light in the above manner, there are the following disadvantages:
( 1 )对于不同的环境光亮度, 对按键灯亮度与屏幕背光亮度的需求不同。 由于按键 灯亮度与屏幕背光亮度保持一致, 因此不能根据环境光强度的变化, 针对按键灯进行自适 应调节。  (1) For different ambient light levels, there is a difference in the brightness of the button light and the brightness of the screen backlight. Since the brightness of the button light is consistent with the brightness of the screen backlight, it is not possible to adjust the button lamp according to the change of the ambient light intensity.
( 2 )在环境光强度增加的情况下, 按键灯的亮度增加。 由于在使用时, 按键灯亮度 最亮与按键灯不亮功耗相差大概有 11毫安, 因此在环境光强度增加, 按键灯亮度增加的情 况下, 使得移动终端功耗增大, 降低了移动终端的使用寿命。 发明内容 本发明实施例提供了一种移动终端的按键灯的调节方法及移动终端, 用以解决现有技 术中存在的无法对移动终端的按键灯进行自适应调节, 移动终端功耗大, 移动终端的使用 寿命短的问题。  (2) When the ambient light intensity increases, the brightness of the button light increases. Since the brightness of the button light is the brightest and the power consumption of the button light is about 11 mA during use, the power consumption of the mobile terminal is increased and the movement is reduced when the ambient light intensity is increased and the brightness of the button light is increased. The service life of the terminal. SUMMARY OF THE INVENTION Embodiments of the present invention provide a method for adjusting a button light of a mobile terminal and a mobile terminal, which are used to solve the problem that the button lamp of the mobile terminal cannot be adaptively adjusted in the prior art, and the mobile terminal consumes a large amount of power and moves. The problem of short life of the terminal.
本发明实施例提供的具体技术方案如下:  The specific technical solutions provided by the embodiments of the present invention are as follows:
第一方面, 一种移动终端的按键灯的调节方法, 该方法包括:  In a first aspect, a method for adjusting a button light of a mobile terminal, the method comprising:
检测所述移动终端所在的环境光强度;  Detecting an ambient light intensity of the mobile terminal;
根据检测到的所述环境光强度, 对移动终端的按键灯的亮度相对于检测到的环境光强 度进行反向调节。  Based on the detected ambient light intensity, the brightness of the button light of the mobile terminal is inversely adjusted with respect to the detected ambient light intensity.
结合第一方面, 在第一种可能的实现方式中, 所述根据检测到的环境光强度对所述移 动终端的按键灯的亮度相对于检测到的环境光强度进行反向调节, 具体包括:  With reference to the first aspect, in a first possible implementation, the brightness of the button light of the mobile terminal is reversely adjusted according to the detected ambient light intensity, and the method includes:
根据公式 Y=S*((Levelbase-Level)*N+M)对移动终端的按键灯的亮度进行反向调节, 其中, Y表示按键灯的亮度, Levelbase 为环境光强度阈值, Level为检测到的环境光强度, M为补偿系数, N为环境光强度转化为环境光等级的强度系数, S为环境光等级转化为实 际显示亮度的系数。 The brightness of the button light of the mobile terminal is reversely adjusted according to the formula Y=S*((Levelbase-Level)*N+M), where Y represents the brightness of the button light, Levelbase is the ambient light intensity threshold, and Level is detected. Ambient light intensity, M is the compensation coefficient, N is the intensity coefficient of the ambient light intensity converted to the ambient light level, and S is the ambient light level converted to real The coefficient of brightness is displayed.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中, M的取值为 [0, 1]范围的实数; N的取值为 (0, 1]范围的实数; S的取值为 (0, 255]范围的整数。  In conjunction with the first possible implementation of the first aspect, in a second possible implementation, the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1) ; S is an integer in the range of (0, 255).
结合第一方面, 第一方面的第一种可能的实现方式和第二种可能的实现方式, 在第三 种可能的实现方式中, 所述检测所述移动终端所在的环境光强度, 具体包括:  With reference to the first aspect, the first possible implementation manner of the first aspect, and the second possible implementation manner, in the third possible implementation manner, the detecting the ambient light intensity of the mobile terminal, specifically including :
当所述对移动终端的按键灯的调节方式为自动调节时, 则检测所述移动终端所在的环 境光强度。  When the adjustment mode of the button light of the mobile terminal is automatic adjustment, the ambient light intensity of the mobile terminal is detected.
结合第一方面, 第一方面的第一种可能的实现方式至第三种可能的实现方式中的任意 一种, 在第四种可能的实现方式中, 所述根据检测到的环境光强度对移动终端的按键灯的 亮度相对于检测到的环境光强度进行反向调节, 具体包括:  With reference to the first aspect, the first possible implementation of the first aspect to any one of the third possible implementation manners, in the fourth possible implementation manner, the detecting according to the detected ambient light intensity The brightness of the button light of the mobile terminal is reversely adjusted with respect to the detected ambient light intensity, and specifically includes:
当检测到的环境光强度小于预定的环境光强度阈值, 且按键灯为开启状态时, 则根据 检测到的环境光强度对移动终端的按键灯的亮度相对于检测到的环境光强度进行反向调 节。  When the detected ambient light intensity is less than a predetermined ambient light intensity threshold, and the button light is turned on, the brightness of the button light of the mobile terminal is reversed according to the detected ambient light intensity with respect to the detected ambient light intensity. Adjustment.
结合第一方面第四种可能的实现方式, 在第五种可能的实现方式中, 在所述检测所述 移动终端所在的环境光强度之后, 所述方法还包括: 当检测到的环境光强度大于预定的环 境光强度阈值, 则关闭按键灯。  With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, after the detecting the ambient light intensity of the mobile terminal, the method further includes: when detecting the ambient light intensity If the threshold is greater than the predetermined ambient light intensity, the button light is turned off.
第二方面, 一种移动终端, 包括: 环境光强度传感器, 处理器和按键灯;  In a second aspect, a mobile terminal includes: an ambient light intensity sensor, a processor, and a button light;
所述环境光强度传感器, 用于检测所述移动终端所在的环境光强度;  The ambient light intensity sensor is configured to detect an ambient light intensity of the mobile terminal;
所述处理器, 用于根据所述环境光强度传感器检测到的环境光强度, 对所述按键灯的 亮度相对于检测到的环境光强度进行反向调节;  The processor is configured to inversely adjust the brightness of the button light relative to the detected ambient light intensity according to the ambient light intensity detected by the ambient light intensity sensor;
所述按键灯, 用于根据所述处理器对其亮度相对于检测到的环境光强度进行反向调节 后的亮度进行显示。  The button lamp is configured to display, according to the brightness of the processor, the brightness of the processor that is inversely adjusted with respect to the detected ambient light intensity.
结合第二方面, 在第一种可能的实现方式中, 所述处理器用于:  In conjunction with the second aspect, in a first possible implementation, the processor is configured to:
根据公式 Y=S*((Levelbase-Level)*N+M)对所述按键灯的亮度进行反向调节, 其中, Performing a reverse adjustment of the brightness of the button lamp according to the formula Y=S*((Levelbase-Level)*N+M), wherein
Y表示按键灯的亮度, Levelbase 为环境光强度阈值, Level为检测到的环境光强度, M为 补偿系数, N为环境光强度转化为环境光等级的强度系数, S为环境光等级转化为实际显 示亮度的系数。 Y indicates the brightness of the button light, Levelbase is the ambient light intensity threshold, Level is the detected ambient light intensity, M is the compensation coefficient, N is the intensity coefficient of the ambient light intensity converted to the ambient light level, and S is the ambient light level converted to the actual Displays the coefficient of brightness.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中, M的取值为 [0, 1]范围的实数; N的取值为 (0, 1]范围的实数; S的取值的为 (0, 255]范围的整数。  In conjunction with the first possible implementation of the second aspect, in the second possible implementation, the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1) ; The value of S is an integer in the range of (0, 255).
结合第二方面, 第二方面的第一种可能的实现方式和第二种可能的实现方式中的任意 一项, 在第三种可能的实现方式中, 当对所述移动终端的按键灯进行调节的方式为自动调 节时, 所述环境光强度传感器检测所述移动终端所在的环境光强度。  With reference to the second aspect, any one of the first possible implementation manner and the second possible implementation manner of the second aspect, in a third possible implementation manner, when performing a button light on the mobile terminal When the mode of adjustment is automatic adjustment, the ambient light intensity sensor detects the ambient light intensity of the mobile terminal.
结合第二方面, 第二方面的第一种可能的实现方式至第三种可能的实现方式中的任意 一项, 在第四种可能的实现方式中, 当所述环境光强度传感器检测到的环境光强度小于预 定的环境光强度阈值, 且按键灯为开启状态时, 所述处理器根据检测到的环境光强度对所 述移动终端的按键灯的亮度相对于检测到的环境光强度进行反向调节。 With reference to the second aspect, any of the first possible implementation of the second aspect to the third possible implementation In a fourth possible implementation manner, when the ambient light intensity detected by the ambient light intensity sensor is less than a predetermined ambient light intensity threshold, and the button light is turned on, the processor is configured according to the detected The ambient light intensity inversely adjusts the brightness of the button light of the mobile terminal relative to the detected ambient light intensity.
结合第二方面的第四种可能的实现方式, 在第五种可能的实现方式中, 当所述环境光 传感器检测到的环境光强度大于预定的环境光强度阈值时, 所述处理器关闭按键灯。  With reference to the fourth possible implementation of the second aspect, in a fifth possible implementation, when the ambient light intensity detected by the ambient light sensor is greater than a predetermined ambient light intensity threshold, the processor turns off the button light.
综上所述, 利用本发明实施例提供的方案实现了对按键灯进行自适应调节, 并且在环 境光强度变化的情况下, 根据接收到环境光强度对按键灯的亮度相对于环境光强度进行反 向调节, 降低了移动终端功耗, 延长了移动终端的使用寿命。 附图说明 图 1为本发明实施例提供的移动终端的按键灯的自动调节方法流程图;  In summary, the solution provided by the embodiment of the present invention realizes adaptive adjustment of the button lamp, and in the case where the ambient light intensity changes, the brightness of the button lamp is compared with the ambient light intensity according to the received ambient light intensity. The reverse adjustment reduces the power consumption of the mobile terminal and prolongs the service life of the mobile terminal. BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a flowchart of a method for automatically adjusting a button light of a mobile terminal according to an embodiment of the present invention;
图 2为本发明实施例提供的移动终端移动终端示意图;  2 is a schematic diagram of a mobile terminal of a mobile terminal according to an embodiment of the present invention;
图 3为本发明实施例提供的移动终端的按键灯调节方式和移动终端的 LCD背光调节方 式与环境光传感器状态的对应关系;  FIG. 3 is a diagram showing a correspondence between a button lamp adjustment mode of a mobile terminal and an LCD backlight adjustment mode of the mobile terminal and an ambient light sensor state according to an embodiment of the present disclosure;
图 4为本发明实施例提供的又一种移动终端的按键灯的自动调节方法流程图; 图 5为本发明实施例提供的一种移动终端的按键灯的手动调节方法流程图。 具体实施方式 本发明实施例提供了一种移动终端的按键灯的调节方法及移动终端, 用以解决现有技 术中存在的无法对移动终端的按键灯进行自适应调节, 移动终端功耗大, 移动终端的使用 寿命短的问题。  FIG. 4 is a flowchart of still another method for automatically adjusting a button light of a mobile terminal according to an embodiment of the present invention; FIG. 5 is a flowchart of a method for manually adjusting a button light of a mobile terminal according to an embodiment of the present invention. The embodiments of the present invention provide a method for adjusting a button light of a mobile terminal and a mobile terminal, which are used to solve the problem that the button lamp of the mobile terminal cannot be adaptively adjusted in the prior art, and the power consumption of the mobile terminal is large. The problem of short life of mobile terminals.
下面结合附图对本发明实施例作进一步说明。  The embodiments of the present invention are further described below in conjunction with the accompanying drawings.
本发明实施例提供了一种移动终端的按键灯的调节方法, 如图 1所示, 该方法包括: 步骤 101 : 检测移动终端所在的环境光强度。  An embodiment of the present invention provides a method for adjusting a button light of a mobile terminal. As shown in FIG. 1 , the method includes: Step 101: Detecting an ambient light intensity of the mobile terminal.
具体可以由移动终端的环境光强度传感器来检测环境光强度。  Specifically, the ambient light intensity can be detected by an ambient light intensity sensor of the mobile terminal.
步骤 102: 根据检测到的环境光强度对移动终端的按键灯的亮度相对于检测到的环境 光强度进行反向调节。  Step 102: Perform reverse adjustment of the brightness of the button lamp of the mobile terminal with respect to the detected ambient light intensity according to the detected ambient light intensity.
具体可以由移动终端的处理器来对按键灯的亮度进行反向调节。 所谓反向调节是: 在 环境光强度增强时, 按键灯的亮度相对降低, 在环境光强度降低时, 按键灯的亮度相对增 强。  Specifically, the brightness of the button light can be reversely adjusted by the processor of the mobile terminal. The so-called reverse adjustment is: When the ambient light intensity is increased, the brightness of the button lamp is relatively lowered, and when the ambient light intensity is lowered, the brightness of the button lamp is relatively increased.
利用上述方法, 实现了对按键灯进行自适应调节, 并且在环境光强度发生变化的情况 下, 根据检测到环境光强度对按键灯的亮度相对于检测到的环境光强度进行反向调节, 降 低了移动终端功耗, 延长了移动终端的使用寿命。 By using the above method, the button lamp is adaptively adjusted, and in the case where the ambient light intensity changes, the brightness of the button lamp is reversely adjusted according to the detected ambient light intensity, and the detected ambient light intensity is reversely adjusted. The power consumption of the mobile terminal is lowered, and the service life of the mobile terminal is prolonged.
较佳的, 根据检测到的环境光强度对移动终端的按键灯的亮度相对于检测到的环境光 强度进行反向调节, 包括:  Preferably, the brightness of the button light of the mobile terminal is reversely adjusted according to the detected ambient light intensity with respect to the detected ambient light intensity, including:
根据公式 Y=S*((Levelbase-Level)*N+M)对移动终端的按键灯的亮度进行反向调节, 其中, Y表示按键灯的亮度, Levelbase 为环境光强度阈值, Level为检测到的环境光强度, M为补偿系数, N为环境光强度转化为环境光等级的强度系数, S为环境光等级转化为实 际显示亮度的系数。  The brightness of the button light of the mobile terminal is reversely adjusted according to the formula Y=S*((Levelbase-Level)*N+M), where Y represents the brightness of the button light, Levelbase is the ambient light intensity threshold, and Level is detected. Ambient light intensity, M is the compensation coefficient, N is the intensity coefficient of the ambient light intensity converted to the ambient light level, and S is the coefficient of the ambient light level converted to the actual display brightness.
其中, M的取值为 [0, 1]范围内的实数; N的取值为(0, 1]范围内的实数; S的取值为 (0, 255]的范围内的整数。 具体可以根据实际需要进行取值。  Wherein, the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1); the value of S is an integer in the range of (0, 255). Take the value according to actual needs.
其中, M的取值为 [0, 1]范围的实数表示 M的取值可以为大于等于 0且小于等于 1范 围内的实数, N的取值为 (0, 1]范围的实数表示 M的取值可以为大于 0且小于等于 1范围 内的实数, S的取值与其类似, 不再赘述。  Where the real value of the range of M is [0, 1], the value of M may be a real number in the range of 0 or more and less than or equal to 1, and the value of N is a real number in the range of (0, 1). The value may be a real number greater than 0 and less than or equal to 1, and the value of S is similar to that of the S, and will not be described again.
基于上述任意方法实施例,较佳的, 上述检测移动终端所在的环境光强度, 具体包括: 当对移动终端的按键灯的亮度的调节方式为自动调节时, 检测移动终端所在的环境光 强度。  Based on any of the foregoing method embodiments, preferably, the detecting the ambient light intensity of the mobile terminal includes: detecting an ambient light intensity of the mobile terminal when the brightness of the button light of the mobile terminal is automatically adjusted.
基于上述任意方法实施例, 较佳的, 该方法还包括:  Based on any of the foregoing method embodiments, preferably, the method further includes:
当对移动终端的按键灯和移动终端的显示屏的调节方式均为手动调节时, 停止检测移 动终端所在的环境光强度。  When the adjustment mode of the button lamp of the mobile terminal and the display screen of the mobile terminal is manually adjusted, the ambient light intensity at which the mobile terminal is located is stopped.
具体的, 可以根据接收到移动终端的按键灯的调节方式的控制指令确定上述按键灯的 调节方式, 根据接收到的移动终端显示屏的调节方式的控制指令确定移动终端的显示屏的 调节方式。  Specifically, the adjustment manner of the button lamp may be determined according to a control instruction of receiving the adjustment mode of the button lamp of the mobile terminal, and the adjustment mode of the display screen of the mobile terminal is determined according to the received control instruction of the adjustment mode of the display screen of the mobile terminal.
上述检测环境光强度时, 环境光强度传感器为开启状态。 停止检测环境光强度时, 环 境光传感器为关闭状态。  When the ambient light intensity is detected as described above, the ambient light intensity sensor is turned on. When the ambient light intensity is stopped, the ambient light sensor is off.
基于上述任意方法实施例, 较佳的, 上述根据检测到的环境光强度对移动终端的按键 灯的亮度相对于环境光强度进行反向调节, 具体包括:  Based on any of the foregoing method embodiments, preferably, the brightness of the button light of the mobile terminal is reversely adjusted according to the detected ambient light intensity, and the method includes:
当检测到的环境光强度小于预定的环境光强度阈值, 且按键灯为开启状态时, 则根据 检测到的环境光强度对移动终端的按键灯的亮度相对于检测到的环境光强度进行反向调 节。  When the detected ambient light intensity is less than a predetermined ambient light intensity threshold, and the button light is turned on, the brightness of the button light of the mobile terminal is reversed according to the detected ambient light intensity with respect to the detected ambient light intensity. Adjustment.
较佳的, 当检测到的环境光强度大于预定的环境光强度, 则关闭按键灯。  Preferably, when the detected ambient light intensity is greater than a predetermined ambient light intensity, the button light is turned off.
基于上述任意方法实施例, 较佳的, 若接收到控制指令, 在预定的时间内保持按键灯 开启。  Based on any of the above method embodiments, preferably, if a control command is received, the button light is turned on for a predetermined time.
若所述按键灯开启的时间达到预定的时间,且在开启的时间内,未接收到控制指令时, 关闭按键灯。 其中, 若本次接收到控制指令的时间与上一次接收到控制指令的时间差未达到预定的 时间阈值, 从本次接收到控制指令的时间重新对按键灯开启的时间进行计时。 If the button light is turned on for a predetermined time and the control command is not received within the time of opening, the button light is turned off. If the time difference between the time when the control command is received and the last time the control command is received does not reach the predetermined time threshold, the time when the button light is turned on is re-timed from the time when the control command is received.
其中, 控制指令可以是触摸显示屏产生的控制指令, 也可以是触发按键(TP, Touch Panel )产生的指令。 触发按键可以是触发上下音量按键, 开关按键, 主菜单键(home )等 等。  The control command may be a control command generated by a touch screen display, or may be an instruction generated by a trigger button (TP, Touch Panel). The trigger button can be a trigger up and down volume button, a switch button, a main menu button (home), and the like.
基于与上述方法实施例同样的发明构思,本发明还提供了一种移动终端,如图 2所示, 该移动终端包括环境光强度传感器 201、 处理器 202和按键灯 203:  Based on the same inventive concept as the above method embodiment, the present invention further provides a mobile terminal. As shown in FIG. 2, the mobile terminal includes an ambient light intensity sensor 201, a processor 202, and a button light 203:
环境光强度传感器 201 , 用于检测移动终端所在的环境光强度。  The ambient light intensity sensor 201 is configured to detect an ambient light intensity of the mobile terminal.
处理器 202, 用于根据检测到的环境光强度对移动终端的按键灯 203的亮度相对于检 测到的环境光强度进行反向调节。  The processor 202 is configured to inversely adjust the brightness of the button lamp 203 of the mobile terminal with respect to the detected ambient light intensity according to the detected ambient light intensity.
按键灯 203 , 用于根据所述处理器对其亮度相对于检测到的环境光强度进行反向调节 后的亮度进行显示。  The button light 203 is configured to display the brightness of the processor that is inversely adjusted with respect to the detected ambient light intensity according to the processor.
利用上述移动终端, 实现了对按键灯进行自适应调节, 并且在环境光强度发生变化的 情况下, 根据检测到环境光强度对按键灯的亮度相对于环境光强度进行反向调节, 降低了 移动终端功耗, 延长了移动终端的使用寿命。  With the above mobile terminal, the button lamp is adaptively adjusted, and in the case where the ambient light intensity changes, the brightness of the button lamp is reversely adjusted according to the detected ambient light intensity, and the movement is reduced. Terminal power consumption, extending the life of mobile terminals.
较佳的, 处理器 202用于:  Preferably, the processor 202 is configured to:
根据公式 Y=S*((Levelbase-Level)*N+M)对移动终端的按键灯 203的亮度进行反向调 节, 其中, Y表示按键灯 203的亮度, Levelbase 为环境光强度阈值, Level为检测到的环 境光强度, M为补偿系数, N为环境光强度转化为环境光等级的强度系数, S为环境光等 级转化为实际显示亮度的系数。  The brightness of the button lamp 203 of the mobile terminal is reversely adjusted according to the formula Y=S*((Levelbase-Level)*N+M), where Y represents the brightness of the button lamp 203, and Levelbase is the ambient light intensity threshold, and Level is The detected ambient light intensity, M is the compensation coefficient, N is the intensity coefficient of the ambient light intensity converted into the ambient light level, and S is the coefficient of the ambient light level converted into the actual display brightness.
其中, M的取值为 [0, 1]范围内的实数; N的取值为(0, 1]范围内的实数; S的取值为 (0, 255]范围内的整数。  Wherein, the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1); the value of S is an integer in the range of (0, 255).
基于上述任意移动终端实施例, 较佳的, 当对移动终端的按键灯 203的亮度的调节方 式为自动调节时, 上述环境光强度传感器 201检测移动终端所在的环境光强度。  Based on any of the above mobile terminal embodiments, preferably, when the brightness of the button light 203 of the mobile terminal is automatically adjusted, the ambient light intensity sensor 201 detects the ambient light intensity of the mobile terminal.
较佳的, 上述移动终端还包括显示屏, 当对移动终端的按键灯 203和对移动终端的显 示屏进行调节的方式均为手动调节时, 上述环境光强度传感器 201停止检测移动终端所在 的环境光强度。  Preferably, the mobile terminal further includes a display screen. When the manner of adjusting the button light 203 of the mobile terminal and the display screen of the mobile terminal are manually adjusted, the ambient light intensity sensor 201 stops detecting the environment where the mobile terminal is located. brightness.
基于上述任意移动终端实施例, 较佳的, 当环境光强度传感器 201检测到的环境光强 度小于预定的环境光强度阈值, 且按键灯 203为开启状态时, 处理器 202根据检测到的环 境光强度对移动终端的按键灯 203的亮度相对于检测到的环境光强度进行反向调节。  Based on any of the foregoing mobile terminal embodiments, preferably, when the ambient light intensity detected by the ambient light intensity sensor 201 is less than a predetermined ambient light intensity threshold, and the button light 203 is in an on state, the processor 202 is configured to detect the ambient light. The intensity inversely adjusts the brightness of the button lamp 203 of the mobile terminal with respect to the detected ambient light intensity.
基于上述任意移动终端实施例, 较佳的, 当环境光强度传感器 201检测到的环境光强 度大于预定的环境光强度阈值, 则处理器 202关闭按键灯 203。  Based on any of the above mobile terminal embodiments, preferably, when the ambient light intensity detected by the ambient light intensity sensor 201 is greater than a predetermined ambient light intensity threshold, the processor 202 turns off the button light 203.
基于上述任意方法实施例, 较佳的, 若处理器 202接收到控制指令, 在预定的时间内 保持按键灯开启。 Based on any of the above method embodiments, preferably, if the processor 202 receives the control command within a predetermined time Keep the button light on.
当所述按键灯 203开启的时间达到预定的时间, 且在开启的时间内, 处理器 202未接 收到控制指令时, 关闭按键灯。  When the button light 203 is turned on for a predetermined time, and the processor 202 does not receive the control command during the time of the turn-on, the button light is turned off.
其中, 若本次接收到控制指令的时间与上一次接收到控制指令的时间差未达到预定的 时间阈值, 从本次接收到控制指令的时间重新对按键灯开启的时间进行计时。  If the time difference between the time when the control command is received and the time when the control command was received does not reach the predetermined time threshold, the time when the button light is turned on is re-timed from the time when the control command is received.
其中, 控制指令可以是触摸显示屏产生的控制指令, 也可以是触发按键(TP, Touch Panel )产生的指令。 触发按键可以是触发上下音量按键, 开关按键, 主菜单键(home )等 等。  The control command may be a control command generated by a touch screen display, or may be an instruction generated by a trigger button (TP, Touch Panel). The trigger button can be a trigger up and down volume button, a switch button, a main menu button (home), and the like.
下面结合应用场景对本发明实施例作具体说明。  The embodiments of the present invention are specifically described below in conjunction with application scenarios.
以 FFOS ( Firefox Operating System, 火狐操作系统 )移动手机为例, 且该移动手机包 括环境光强度传感器、 处理器、 按键灯和 LCD ( Liquid Crystal Display, 液晶显示)屏。  Take the FFOS (Firefox Operating System) mobile phone as an example, and the mobile phone includes an ambient light intensity sensor, a processor, a button light, and an LCD (Liquid Crystal Display) screen.
要实现对 LCD屏的背光亮度和按键灯的亮度分开调节。 当 LCD屏的背光亮度调节方 式与按键灯的亮度调节方式均为手动调节的时候, 环境光强度传感器关闭, 在其它的情况 下, 环境光强度传感器均开启, 如图 3所示 (图 3所示为按键灯调节方式和 LCD背光调 节方式与环境光强度传感器状态的对应关系)。  It is necessary to adjust the brightness of the backlight of the LCD screen and the brightness of the button light separately. When the backlight brightness adjustment mode of the LCD screen and the brightness adjustment mode of the button light are manually adjusted, the ambient light intensity sensor is turned off, and in other cases, the ambient light intensity sensor is turned on, as shown in FIG. 3 (Fig. 3 It is shown as the corresponding relationship between the button light adjustment mode and the LCD backlight adjustment mode and the ambient light intensity sensor state).
处理器若确定选择的是对按键灯进行手动调节的方式, 在接收到控制指令时, 显示按 键灯的亮度是手动预设的亮度值, 并在显示达到预定的时间内, 未接收到控制指令时, 关 闭按键灯。  If the processor determines that the button light is manually adjusted, when the control command is received, the brightness of the display button light is a manually preset brightness value, and the control command is not received after the display reaches a predetermined time. When the button light is turned off.
若选择的是对按键灯进行自动调节的方式, 此时开启环境光强度传感器, 用于检测该 移动手机所在的环境光强度。 环境光强度传感器可以周期性的向处理器发送检测到的环境 光强度, 也可以在按键灯开启时, 向处理器发送检测到环境光强度, 还可以在接收到处理 器发送的环境光强度发送指令时, 发送检测到环境光强度。  If the method of automatically adjusting the button light is selected, the ambient light intensity sensor is turned on to detect the ambient light intensity of the mobile phone. The ambient light intensity sensor can periodically send the detected ambient light intensity to the processor, or send the detected ambient light intensity to the processor when the button light is turned on, and can also send the ambient light intensity sent by the processor. When the command is issued, the ambient light intensity is detected.
本发明实施例以环境光强度传感器周期性的向处理器发送环境光强度为例, 对按键灯 的亮度进行自动调节的实现步骤进行说明, 如图 4所示。  In the embodiment of the present invention, an ambient light intensity sensor periodically sends ambient light intensity to the processor as an example, and an implementation step of automatically adjusting the brightness of the button light is illustrated, as shown in FIG. 4 .
步骤 401 : 判断接收到的环境光强度是否大于预设的环境光强度阈值, 若是, 执行步 骤 406, 若否, 执行步骤 402。  Step 401: Determine whether the received ambient light intensity is greater than a preset ambient light intensity threshold. If yes, go to step 406. If no, go to step 402.
步骤 402: 判断是否接收到控制指令, 若是, 执行步骤 403 , 若否, 执行步骤 404。 步骤 403: 在本次接收到控制指令的时间未达到预定的时间内, 根据接收到的环境光 强度对按键灯的亮度相对于环境光强度进行反向调节, 执行步骤 405。  Step 402: Determine whether a control command is received. If yes, go to step 403. If no, go to step 404. Step 403: Perform step 405 according to the received ambient light intensity to reversely adjust the brightness of the button light relative to the ambient light intensity when the time when the control command is received does not reach the predetermined time.
上述步骤 403 , 具体包括:  The foregoing step 403 specifically includes:
若按键灯为开启状态, 则本次接收到控制指令的时间与上一次接收到控制指令的时间 差未达到预定的时间, 从本次接收到控制指令的时间开始计时, 在未达到预定的时间时, 根据接收到的环境光强度对按键灯的亮度相对于环境光强度进行反向调节。 若按键灯为关闭状态, 则本次接收到控制指令的时间与上一次接收到控制指令的时间 差已达到预定的时间阈值, 则从本次接收到控制指令的时间开始计时, 在未达到预定的时 间时, 根据接收到的环境光强度对按键灯的亮度相对于环境光强度进行反向调节。 If the button light is on, the time difference between the time when the control command is received and the last time the control command is received does not reach the predetermined time, and the time is counted from the time when the control command is received, when the predetermined time is not reached. According to the received ambient light intensity, the brightness of the button light is reversely adjusted relative to the ambient light intensity. If the button light is off, the time difference between the time when the control command is received and the last time the control command is received has reached the predetermined time threshold, and the time is counted from the time when the control command is received, and the predetermined time is not reached. At the time, the brightness of the button light is inversely adjusted with respect to the ambient light intensity according to the received ambient light intensity.
步骤 404: 在上一次接收到控制指令的时间未达到预定的时间内, 根据接收到的环境 光强度对按键灯的亮度相对于环境光强度进行反向调节, 执行步骤 405。  Step 404: Perform step 405 according to the received ambient light intensity to reversely adjust the brightness of the button light relative to the ambient light intensity when the last time the control command is received does not reach the predetermined time.
上述步骤 404, 具体包括:  The above step 404 specifically includes:
若按键灯为开启状态, 则上一次接收到控制指令的时间已达到预定的时间, 根据接收 到的环境光强度对按键灯的亮度相对于接收到的环境光强度进行反向调节;  If the button light is turned on, the time when the control command was last received has reached a predetermined time, and the brightness of the button lamp is inversely adjusted according to the received ambient light intensity with respect to the received ambient light intensity;
若按键灯为关闭状态, 则上一次接收到控制指令的时间已达到预定的时间, 保持按键 灯关闭。  If the button light is off, the last time the control command was received has reached the predetermined time, and the button light is turned off.
步骤 405: 当按键灯开启的时间达到预定的时间, 且未接收到控制指令时, 关闭按键 灯。  Step 405: When the button light is turned on for a predetermined time and the control command is not received, the button light is turned off.
其中, 若本次接收到控制指令的时间与上一次接收到控制指令的时间差未达到预定的 时间, 从本次接收到控制指令的时间重新对按键灯开启的时间进行计时。  If the time difference between the time when the control command is received and the time when the control command was received does not reach the predetermined time, the time when the button light is turned on is re-timed from the time when the control command is received.
步骤 406: 确定按键灯为开启时, 关闭按键灯, 确定按键灯为关闭时, 保持按键灯关 闭。  Step 406: When the button light is turned on, the button light is turned off, and when the button light is turned off, the button light is turned off.
根据接收到的环境光强度对按键灯的亮度相对于接收到的环境光强度进行反向调节, 具体可以利用以下方式:  According to the received ambient light intensity, the brightness of the button light is reversely adjusted with respect to the received ambient light intensity, and the following manner can be utilized:
根据公式 Y=S*((Levelbase-Level)*N+M)对移动终端的按键灯的亮度进行反向调节, 其中, Y表示按键灯的亮度, Levelbase 为环境光强度阈值, Level为接收到的环境光强度, M为补偿系数, N为环境光强度转化为环境光等级的强度系数, S为环境光等级转化为实 际显示亮度的系数。  The brightness of the button light of the mobile terminal is reversely adjusted according to the formula Y=S*((Levelbase-Level)*N+M), where Y represents the brightness of the button light, Levelbase is the ambient light intensity threshold, and Level is received. Ambient light intensity, M is the compensation coefficient, N is the intensity coefficient of the ambient light intensity converted to the ambient light level, and S is the coefficient of the ambient light level converted to the actual display brightness.
其中, M的取值为 [0, 1]范围的实数; N的取值为(0, 1]范围的实数; S的取值的为(0, 255]范围的整数。 具体取值根据实际需要。 本发明实施例中, S取值为 255 , M的取值为 0.3 , N的取值为 0.1。  Wherein, the value of M is a real number in the range [0, 1]; the value of N is a real number in the range of (0, 1); the value of S is an integer in the range of (0, 255). The specific value is based on the actual value. In the embodiment of the present invention, the value of S is 255, the value of M is 0.3, and the value of N is 0.1.
下面结合附图对按键灯的亮度进行手动调节的实现步骤进行说明, 如图 5所示。  The implementation steps of manually adjusting the brightness of the button lamp will be described below with reference to the accompanying drawings, as shown in FIG.
步骤 501 : 判断是否接收到控制指令, 若是, 执行步骤 502, 若否, 执行步骤 503。 步骤 502: 在本次接收到控制指令的时间未达到预定的时间内, 显示按键灯的亮度为 预定的亮度值。 执行步骤 504。  Step 501: Determine whether a control command is received. If yes, go to step 502. If no, go to step 503. Step 502: The brightness of the button light is displayed as a predetermined brightness value when the time when the control command is received is not reached within a predetermined time. Go to step 504.
上述步骤 502, 具体包括:  The foregoing step 502 specifically includes:
若按键灯为开启状态, 则为本次接收到控制指令的时间与上一次接收到控制指令的时 间差未达到预定的时间, 从本次接收到控制指令的时间开始计时, 确定未达到预定的时间 时, 显示按键灯的亮度为预定的亮度值。 若按键灯为关闭状态, 则本次接收到控制指令的时间与上一次接收到控制指令的时间 差已达到预定的时间阈值, 则从本次接收到控制指令的时间开始计时, 在未达到预定的时 间时, 开启按键灯, 并显示按键灯的亮度为预定的亮度值。 If the button light is on, the time difference between the time when the control command is received and the last time the control command is received does not reach the predetermined time, and the time from the time when the control command is received is started, and it is determined that the predetermined time has not been reached. When the brightness of the button light is displayed, it is a predetermined brightness value. If the button light is off, the time difference between the time when the control command is received and the last time the control command is received has reached the predetermined time threshold, and the time is counted from the time when the control command is received, and the predetermined time is not reached. At the time of time, the button light is turned on, and the brightness of the button lamp is displayed as a predetermined brightness value.
步骤 503 : 在上一次接收到控制指令的时间未达到预定的时间内, 显示按键灯的亮度 为预定的亮度值。 执行步骤 504。  Step 503: The brightness of the button light is displayed as a predetermined brightness value when the last time the control command is received does not reach the predetermined time. Go to step 504.
若按键灯为开启状态, 则上一次接收到控制指令的时间未达到预定的时间, 显示按键 灯的亮度为预定的亮度值;  If the button light is on, the time when the control command was last received does not reach the predetermined time, and the brightness of the display button light is a predetermined brightness value;
若按键灯为关闭状态, 则上一次接收到控制指令的时间已达到预定的时间, 保持按键 灯关闭。  If the button light is off, the last time the control command was received has reached the predetermined time, and the button light is turned off.
步骤 504: 当按键灯开启的时间达到预定的时间, 且未接收到控制指令时, 关闭按键 灯。  Step 504: When the button light is turned on for a predetermined time and the control command is not received, the button light is turned off.
其中, 若本次接收到控制指令的时间与上一次接收到控制指令的时间差未达到预定的 时间, 从本次接收到控制指令的时间重新对按键灯开启的时间进行计时。  If the time difference between the time when the control command is received and the time when the control command was received does not reach the predetermined time, the time when the button light is turned on is re-timed from the time when the control command is received.
通过上述提供的方法可以实现单独对按键灯进行手动调节。  The manual adjustment of the button light can be achieved by the method provided above.
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产 品。 因此, 本发明可釆用完全硬件实施例、 完全软件实施例、 或结合软件和硬件方面的实 施例的形式。 而且, 本发明可釆用在一个或多个其中包含有计算机可用程序代码的计算机 可用存储介盾 (包括但不限于磁盘存储器、 CD-ROM、 光学存储器等)上实施的计算机程 序产品的形式。  Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the present invention can be embodied in the form of a computer program product embodied on one or more computer-usable storage interfaces (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序产品的流程图 和 /或方框图来描述的。 应理解可由计算机程序指令实现流程图和 /或方框图中的每一流 程和 /或方框、 以及流程图和 /或方框图中的流程和 /或方框的结合。 可提供这些计算机 程序指令到通用计算机、 专用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器 以产生一个机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用 于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的功能的 装置。  The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each process and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方 式工作的计算机可读存储器中, 使得存储在该计算机可读存储器中的指令产生包括指令装 置的制造品, 该指令装置实现在流程图一个流程或多个流程和 /或方框图一个方框或多个 方框中指定的功能。  The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上, 使得在计算机 或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理, 从而在计算机或其他 可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和 /或方框图一个 方框或多个方框中指定的功能的步骤。 These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions are provided for implementing one or more processes and/or block diagrams in the flowchart The steps of the function specified in the box or in multiple boxes.
尽管已描述了本发明的优选实施例, 但本领域内的技术人员一旦得知了基本创造性概 念, 则可对这些实施例作出另外的变更和修改。 所以, 所附权利要求意欲解释为包括优选 实施例以及落入本发明范围的所有变更和修改。  Although the preferred embodiment of the invention has been described, it will be apparent to those of ordinary skill in the art that <RTIgt; Therefore, the appended claims are intended to be construed as including the preferred embodiments and the modifications
显然, 本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实 施例的精神和范围。 这样, 倘若本发明实施例的这些修改和变型属于本发明权利要求及其 等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。  It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the present invention without departing from the spirit and scope of the embodiments of the present invention. Thus, it is intended that the present invention cover the modifications and modifications of the inventions

Claims

权 利 要 求 Rights request
1、 一种移动终端的按键灯的调节方法, 其特征在于, 包括: 1. A method for adjusting the button light of a mobile terminal, which is characterized by including:
检测所述移动终端所在的环境光强度; Detect the ambient light intensity where the mobile terminal is located;
根据检测到的所述环境光强度, 对移动终端的按键灯的亮度相对于检测到的环境光强 度进行反向调节。 According to the detected ambient light intensity, the brightness of the key light of the mobile terminal is adjusted inversely relative to the detected ambient light intensity.
2、 如权利要求 1 所述的方法, 其特征在于, 所述根据检测到的环境光强度对所述移 动终端的按键灯的亮度相对于检测到的环境光强度进行反向调节, 具体包括: 2. The method of claim 1, wherein the step of reversely adjusting the brightness of the key light of the mobile terminal relative to the detected ambient light intensity according to the detected ambient light intensity specifically includes:
根据公式 Y=S*((Levelbase-Level)*N+M)对移动终端的按键灯的亮度进行反向调节, 其中, Y表示按键灯的亮度, Levelbase 为环境光强度阈值, Level为检测到的环境光强度, M为补偿系数, N为环境光强度转化为环境光等级的强度系数, S为环境光等级转化为实 际显示亮度的系数。 According to the formula Y=S*((Levelbase-Level)*N+M), the brightness of the key light of the mobile terminal is reversely adjusted, where Y represents the brightness of the key light, Levelbase is the ambient light intensity threshold, and Level is the detected The ambient light intensity of , M is the compensation coefficient, N is the intensity coefficient that converts ambient light intensity into ambient light level, and S is the coefficient that converts ambient light level into actual display brightness.
3、 如权利要求 2所述的方法, 其特征在于, M的取值为 [0, 1]范围内的实数; N的取 值为 (0, 1]范围内的实数; S的取值为 (0, 255]范围内的整数。 3. The method of claim 2, wherein the value of M is a real number in the range of [0, 1]; the value of N is a real number in the range of (0, 1]; the value of S is An integer in the range (0, 255].
4、 如权利要求 1~3 任一项所述的方法, 其特征在于, 所述检测所述移动终端所在的 环境光强度, 具体包括: 4. The method according to any one of claims 1 to 3, wherein detecting the ambient light intensity where the mobile terminal is located specifically includes:
当所述对移动终端的按键灯的调节方式为自动调节时, 则检测所述移动终端所在的环 境光强度。 When the adjustment mode of the key light of the mobile terminal is automatic adjustment, the ambient light intensity where the mobile terminal is located is detected.
5、 如权利要求 1~3 任一项所述的方法, 其特征在于, 所述根据检测到的环境光强度 对移动终端的按键灯的亮度相对于检测到的环境光强度进行反向调节, 具体包括: 5. The method according to any one of claims 1 to 3, characterized in that, according to the detected ambient light intensity, the brightness of the key light of the mobile terminal is reversely adjusted relative to the detected ambient light intensity, Specifically include:
当检测到的环境光强度小于预定的环境光强度阈值, 且按键灯为开启状态时, 则根据 检测到的环境光强度对移动终端的按键灯的亮度相对于检测到的环境光强度进行反向调 节。 When the detected ambient light intensity is less than the predetermined ambient light intensity threshold and the key light is on, the brightness of the key light of the mobile terminal is reversed relative to the detected ambient light intensity according to the detected ambient light intensity. adjust.
6、 如权利要求 4 所述的方法, 其特征在于, 在所述检测所述移动终端所在的环境光 强度之后, 所述方法还包括: 当检测到的环境光强度大于预定的环境光强度阈值, 则关闭 按键灯。 6. The method of claim 4, wherein after detecting the ambient light intensity where the mobile terminal is located, the method further includes: when the detected ambient light intensity is greater than a predetermined ambient light intensity threshold , then turn off the key light.
7、 一种移动终端, 其特征在于, 包括: 环境光强度传感器, 处理器和按键灯; 所述环境光强度传感器, 用于检测所述移动终端所在的环境光强度; 7. A mobile terminal, characterized in that it includes: an ambient light intensity sensor, a processor and a button light; the ambient light intensity sensor is used to detect the ambient light intensity where the mobile terminal is located;
所述处理器, 用于根据所述环境光强度传感器检测到的环境光强度, 对所述按键灯的 亮度相对于检测到的环境光强度进行反向调节; The processor is configured to reversely adjust the brightness of the key light relative to the detected ambient light intensity according to the ambient light intensity detected by the ambient light intensity sensor;
所述按键灯, 用于根据所述处理器对其亮度相对于检测到的环境光强度进行反向调节 后的亮度进行显示。 The button light is used to display the brightness after the processor reversely adjusts the brightness relative to the detected ambient light intensity.
8、 如权利要求 7所述的移动终端, 其特征在于, 所述处理器用于: 根据公式 Y=S*((Levelbase-Level)*N+M)对所述按键灯的亮度进行反向调节, 其中, Y表示按键灯的亮度, Levelbase 为环境光强度阈值, Level为检测到的环境光强度, M为 补偿系数, N为环境光强度转化为环境光等级的强度系数, S为环境光等级转化为实际显 示亮度的系数。 8. The mobile terminal according to claim 7, wherein the processor is configured to: The brightness of the key light is reversely adjusted according to the formula Y=S*((Levelbase-Level)*N+M), where Y represents the brightness of the key light, Levelbase is the ambient light intensity threshold, and Level is the detected Ambient light intensity, M is the compensation coefficient, N is the intensity coefficient that converts ambient light intensity into ambient light level, and S is the coefficient that converts ambient light level into actual display brightness.
9、 如权利要求 8所述的移动终端, 其特征在于, M的取值为 [0, 1]范围内的实数; N 的取值为 CO, 1]范围内的实数; S的取值的为 CO, 255]范围内的整数。 9. The mobile terminal of claim 8, wherein the value of M is a real number in the range [0, 1]; the value of N is a real number in the range CO, 1]; the value of S is is an integer in the range CO, 255].
10、 如权利要求 7~9任一项所述的移动终端, 其特征在于, 当对所述移动终端的按键 灯进行调节的方式为自动调节时, 所述环境光强度传感器检测所述移动终端所在的环境光 强度。 10. The mobile terminal according to any one of claims 7 to 9, wherein when the key light of the mobile terminal is adjusted automatically, the ambient light intensity sensor detects that the mobile terminal The ambient light intensity.
11、 如权利要求 7~9任一项所述的移动终端, 其特征在于, 当所述环境光强度传感器 检测到的环境光强度小于预定的环境光强度阈值, 且按键灯为开启状态时, 所述处理器根 据检测到的环境光强度对所述移动终端的按键灯的亮度相对于检测到的环境光强度进行 反向调节。 11. The mobile terminal according to any one of claims 7 to 9, wherein when the ambient light intensity detected by the ambient light intensity sensor is less than a predetermined ambient light intensity threshold and the button light is on, The processor reversely adjusts the brightness of the key light of the mobile terminal relative to the detected ambient light intensity according to the detected ambient light intensity.
12、如权利要求 11所述的移动终端, 其特征在于, 当所述环境光传感器检测到的环境 光强度大于预定的环境光强度阈值时, 所述处理器关闭按键灯。 12. The mobile terminal of claim 11, wherein when the ambient light intensity detected by the ambient light sensor is greater than a predetermined ambient light intensity threshold, the processor turns off the key light.
PCT/CN2014/074241 2014-03-28 2014-03-28 Method for adjusting button light of mobile terminal, and mobile terminal WO2015143688A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/074241 WO2015143688A1 (en) 2014-03-28 2014-03-28 Method for adjusting button light of mobile terminal, and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/074241 WO2015143688A1 (en) 2014-03-28 2014-03-28 Method for adjusting button light of mobile terminal, and mobile terminal

Publications (1)

Publication Number Publication Date
WO2015143688A1 true WO2015143688A1 (en) 2015-10-01

Family

ID=54193923

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/074241 WO2015143688A1 (en) 2014-03-28 2014-03-28 Method for adjusting button light of mobile terminal, and mobile terminal

Country Status (1)

Country Link
WO (1) WO2015143688A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002077356A (en) * 2000-08-30 2002-03-15 Nec Access Technica Ltd Portable telephone terminal
KR20040056646A (en) * 2002-12-24 2004-07-01 주식회사 팬택앤큐리텔 Apparatus for saving power in color lcd handset
CN1946097A (en) * 2006-10-16 2007-04-11 华为技术有限公司 Method and device for regulating back light brightness and movable terminal
CN101197865A (en) * 2006-12-07 2008-06-11 乐金电子(中国)研究开发中心有限公司 Illumination method for mobile communication terminal and mobile communication terminal thereof
CN201450532U (en) * 2009-06-04 2010-05-05 宇龙计算机通信科技(深圳)有限公司 Movable terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002077356A (en) * 2000-08-30 2002-03-15 Nec Access Technica Ltd Portable telephone terminal
KR20040056646A (en) * 2002-12-24 2004-07-01 주식회사 팬택앤큐리텔 Apparatus for saving power in color lcd handset
CN1946097A (en) * 2006-10-16 2007-04-11 华为技术有限公司 Method and device for regulating back light brightness and movable terminal
CN101197865A (en) * 2006-12-07 2008-06-11 乐金电子(中国)研究开发中心有限公司 Illumination method for mobile communication terminal and mobile communication terminal thereof
CN201450532U (en) * 2009-06-04 2010-05-05 宇龙计算机通信科技(深圳)有限公司 Movable terminal

Similar Documents

Publication Publication Date Title
CN107231489B (en) Terminal and screen projection method thereof
US9830883B2 (en) Method and circuit for adjusting screen brightness and display device
US8797372B2 (en) Device and method for controlling screen brightness
RU2712118C1 (en) Method of controlling screen display and device using said method
EP3131315A1 (en) Working method and working device of intelligent electric apparatus
AU2012232031B2 (en) Method and apparatus for controlling brightness in a portable terminal
RU2651207C2 (en) Method and apparatus for processing application program package
KR101771280B1 (en) Mobile telephone hosted meeting controls
EP2787423A1 (en) Standby operation control method and device
CN103050097B (en) Method and device for regulating brightness of backlight lamp
WO2016070621A1 (en) Adaptive adjustment method and device for projector
CN109326244B (en) Screen brightness adjusting method and device and terminal equipment
CN104618671A (en) Information processing method and electronic device
US9691352B2 (en) Control method and device thereof
WO2018080649A1 (en) Power saving techniques for an image capture device
US20160187953A1 (en) Methods and devices for switching on or off socket
CN112291633B (en) Method and device for controlling screen brightness of intelligent household equipment
WO2016201766A1 (en) Backlight brightness adjusting method and device
WO2017219563A1 (en) Terminal energy saving method and apparatus thereof
CN108766367A (en) Backlight brightness control method, television terminal and computer readable storage medium
CN105389024A (en) screen control method of electronic device
US20230198623A1 (en) Electronic apparatus and controlling method thereof
CN104347018A (en) Method and electronic equipment for adjusting backlight
WO2015143688A1 (en) Method for adjusting button light of mobile terminal, and mobile terminal
CN104156052B (en) A kind of management method of desktop real-time clock

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14886791

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase
122 Ep: pct application non-entry in european phase

Ref document number: 14886791

Country of ref document: EP

Kind code of ref document: A1