CN111163214B - Control method and electronic device - Google Patents

Control method and electronic device Download PDF

Info

Publication number
CN111163214B
CN111163214B CN201911264706.8A CN201911264706A CN111163214B CN 111163214 B CN111163214 B CN 111163214B CN 201911264706 A CN201911264706 A CN 201911264706A CN 111163214 B CN111163214 B CN 111163214B
Authority
CN
China
Prior art keywords
screen
state
light intensity
electronic equipment
determining
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.)
Active
Application number
CN201911264706.8A
Other languages
Chinese (zh)
Other versions
CN111163214A (en
Inventor
王建永
罗春晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911264706.8A priority Critical patent/CN111163214B/en
Publication of CN111163214A publication Critical patent/CN111163214A/en
Application granted granted Critical
Publication of CN111163214B publication Critical patent/CN111163214B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Abstract

The embodiment of the invention provides a control method and electronic equipment, wherein the method is applied to the electronic equipment, an optical sensor is arranged below a screen of the electronic equipment, and the method comprises the following steps: determining the screen state of the electronic equipment according to the first light intensity parameter and the second light intensity parameter; determining an operation mode of the electronic equipment according to the screen state; the first light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is on, and the second light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is off. Through this embodiment, the problem that the user can not execute the touch screen operation when the electronic equipment screen is damaged, and inconvenience is brought to the user can be solved.

Description

Control method and electronic device
Technical Field
The present invention relates to the field of computer devices, and in particular, to a control method and an electronic device.
Background
At present, electronic equipment such as mobile phones are widely popularized. The screen of the electronic device is mainly a touch screen, and a user can perform various touch screen operations on the electronic device, such as making and receiving calls, chatting, shopping and the like. With the development of screen technology, full-screen is used on more and more electronic devices. The screen is designed completely without a frame, the proportion of the screen area to the front area of the electronic equipment is close to 100%, the visual effect of a user is obviously improved, and the screen is popular with a large number of users. However, when the screen of the electronic device is damaged, the user cannot perform the touch screen operation, which causes inconvenience to the user.
Disclosure of Invention
The embodiment of the invention aims to provide a control method and electronic equipment, and aims to solve the problem that a user cannot perform touch screen operation when a screen of the electronic equipment is damaged, so that inconvenience is brought to the user.
To solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a control method applied to an electronic device, where an optical sensor is disposed below a screen of the electronic device, and the control method includes:
determining the screen state of the electronic equipment according to the first light intensity parameter and the second light intensity parameter;
determining an operation mode of the electronic equipment according to the screen state;
the first light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is on, and the second light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is off.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the first determining module is used for determining the screen state of the electronic equipment according to the first light intensity parameter and the second light intensity parameter;
the second determining module is used for determining the operation mode of the electronic equipment according to the screen state;
the first light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is on, and the second light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is off.
In a third aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the control method according to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of the control method according to the first aspect.
In this embodiment, an optical sensor is disposed below a screen of an electronic device, according to this embodiment, a first light intensity parameter and a second light intensity parameter can be obtained, the first light intensity parameter is a light intensity parameter collected by the optical sensor when the screen is bright, the second light intensity parameter is a light intensity parameter collected by the optical sensor when the screen is off, and according to the first light intensity parameter and the second light intensity parameter, a screen state of the electronic device is determined, and according to a screen state of the electronic device, an operation mode of the electronic device is determined, so that according to different states of the screen of the electronic device, different operation modes are provided for a user, a problem that the user cannot perform a touch screen operation when the screen of the electronic device is damaged is solved, inconvenience is brought to the user, and experience of the user in operating the electronic device is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a control method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a first state and a second state of a screen according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of a control method according to another embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a module composition of an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a control method and electronic equipment, and aims to solve the problem that a user cannot perform touch screen operation when a screen of the electronic equipment is damaged, so that inconvenience is brought to the user. The control method can be applied to an electronic device side and executed by the electronic device, and the electronic device mentioned in the embodiment of the invention includes, but is not limited to, a mobile phone, a tablet computer, a wearable device and the like.
Fig. 1 is a schematic flowchart of a control method according to an embodiment of the present invention, where the method can be applied to an electronic device side and executed by the electronic device, and an optical sensor is disposed below a screen of the electronic device, as shown in fig. 1, the process includes the following steps:
102, determining the screen state of the electronic equipment according to the first light intensity parameter and the second light intensity parameter;
it should be noted that, here, the screen state may refer to a damaged state of the screen, and for example, the damaged state of the screen may include a normal state of the screen, a partially damaged state of the screen, and a completely damaged state of the screen, or the damaged state of the screen may include only a normal state of the screen and a damaged state of the screen.
104, determining an operation mode of the electronic equipment according to the screen state of the electronic equipment;
the first light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is on, and the second light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is off.
In this embodiment, an optical sensor is disposed below a screen of an electronic device, according to this embodiment, a first light intensity parameter and a second light intensity parameter can be obtained, the first light intensity parameter is a light intensity parameter collected by the optical sensor when the screen is bright, the second light intensity parameter is a light intensity parameter collected by the optical sensor when the screen is off, and according to the first light intensity parameter and the second light intensity parameter, a screen state of the electronic device is determined, and according to a screen state of the electronic device, an operation mode of the electronic device is determined, so that according to different states of the screen of the electronic device, different operation modes are provided for a user, a problem that the user cannot perform a touch screen operation when the screen of the electronic device is damaged is solved, inconvenience is brought to the user, and experience of the user in operating the electronic device is improved.
In this embodiment, the optical sensor disposed below the screen of the electronic device includes, but is not limited to, any one of a photosensor, an optical fingerprint module, a light intensity detector, and an off-screen camera. The device can collect light intensity to obtain corresponding light intensity parameters. The screen of the electronic device is an OLED (Organic Light-Emitting Diode) screen.
In this embodiment, the optical sensor is disposed inside the electronic device and below a screen of the electronic device. The optical sensor is usually arranged on a mainboard of the electronic equipment, the light inlet hole is formed below a screen of the electronic equipment, and light reaches the optical sensor through the light inlet hole, so that the optical sensor senses a light signal and outputs a light intensity parameter, and the optical sensor transmits the output light intensity parameter to a processor in the mainboard of the electronic equipment for processing. In other ways, the thickness of the screen area where the optical sensor is located may be set thinner so that light reaches the optical sensor.
In this embodiment, the screen state of the electronic device includes a first state and a second state, where the first state may be a state in which a screen of the electronic device normally operates, for example, a state in which the screen operates according to a predetermined display mode of the electronic device, and the second state may be a state in which the screen of the electronic device is damaged, for example, a state in which the screen is completely or partially black and cannot operate according to the predetermined display mode of the electronic device. The second state can be divided into a first sub-state and a second sub-state, the first sub-state is a state that the screen is partially damaged, and the second sub-state is a state that the screen is completely damaged.
When the first light intensity parameter is collected, the first light intensity parameter can be collected after the screen lighting operation of a user is received, at the moment, if the screen is normal (for example, in a first state), the optical sensor is located below the screen of the electronic device, so that the optical sensor can collect the light intensity parameter of screen lighting and the light intensity parameter of ambient light, and therefore the first light intensity parameter is obtained, at the moment, if the screen is completely damaged (for example, in a second sub-state in a second state), the optical sensor can only collect the light intensity parameter of the ambient light, and therefore the first light intensity parameter is obtained, at the moment, if the screen is partially damaged (for example, in the first sub-state in the second state), the optical sensor can only collect the light intensity parameter of the ambient light and the light intensity parameter of the screen which is partially not damaged, and therefore the first light intensity parameter is obtained.
When the second light intensity parameter is collected, the second light intensity parameter can be collected after the screen of a user is extinguished, and at the moment, no matter the screen is normal or damaged, the light intensity parameter of ambient light can be collected only, so that the second light intensity parameter is obtained.
Taking an electronic device as an example of a mobile phone, after receiving a screen lighting operation of a user, the mobile phone collects a first light intensity parameter through an optical sensor below a screen. And after receiving the screen extinguishing operation of the user, the mobile phone acquires a second light intensity parameter through an optical sensor below the screen. The screen lighting operation and the screen extinguishing operation can be operations of clicking a power supply key, and the mobile phone can identify the operations of clicking the power supply key as the screen lighting operation or the screen extinguishing operation according to whether the current screen is a bright screen or a screen off, so that the screen is lighted or extinguished.
Fig. 2 is a schematic diagram of a first state and a second state of a screen according to an embodiment of the present invention. Fig. 2 illustrates the second state as a second sub-state, that is, a state in which the screen is completely damaged. As shown in fig. 2, when the screen is normal (i.e. the first state), the light sensed by the optical sensor is ambient light plus screen light after the screen is lit, and the screen has display content, and when the screen is completely damaged (i.e. the second sub-state), the screen is not lit, the light sensed by the optical sensor is ambient light, and no display content is displayed on the screen.
Therefore, if the difference between the first light intensity parameter and the second light intensity parameter is large, the first light intensity parameter is indicated to comprise the light intensity parameter of screen light emission and the light intensity parameter of ambient light, and the screen can be determined to be in the first state, namely the normal working state according to the first light intensity parameter and the second light intensity parameter. If the difference between the first light intensity parameter and the second light intensity parameter is small, it is indicated that the first light intensity parameter may only include the light intensity parameter of the ambient light, or include the light intensity parameter of the ambient light and the light intensity parameter of a portion of the screen light, and the screen may be determined to be in the second state, i.e., the damaged state, according to the first light intensity parameter and the second light intensity parameter.
In one example, the screen is determined to be in the first state if an absolute value of a difference between the first light intensity parameter and the second light intensity parameter is greater than a first preset threshold, the screen is determined to be in the first sub-state in the second state if the absolute value of the difference between the first light intensity parameter and the second light intensity parameter is less than or equal to the first preset threshold but greater than a second preset threshold, and the screen is determined to be in the second sub-state in the second state if the absolute value of the difference between the first light intensity parameter and the second light intensity parameter is less than or equal to the second preset threshold.
Accordingly, the step 102 may be: obtaining a first difference value according to the first light intensity parameter and the second light intensity parameter; determining that the screen state of the electronic equipment is a first state (namely a normal working state) under the condition that the absolute value of the first difference is greater than or equal to a first preset threshold; and determining the screen state of the electronic equipment as a second state (namely a damaged state) under the condition that the absolute value of the first difference is smaller than a first preset threshold value. The first difference may be a difference obtained by subtracting the second light intensity parameter from the first light intensity parameter, or may be a difference obtained by subtracting the first light intensity parameter from the second light intensity parameter.
In one case, when the number of the first light intensity parameters is plural, the number of the second light intensity parameters is plural, and the number of the second light intensity parameters corresponds to the first light intensity parameters one by one, the above-mentioned method calculates an absolute value of a difference between the first light intensity parameters and the second light intensity parameters, and determines whether a screen of the electronic device (i.e. the mobile phone) is damaged according to the absolute value, specifically:
(a1) respectively calculating the absolute value of the difference between each first light intensity parameter and the corresponding second light intensity parameter, and determining a target absolute value of which the value is smaller than a first preset threshold value from the calculated absolute values;
(a2) and if the number of the target absolute values is not greater than the preset number, determining that the screen of the electronic equipment is not damaged.
Specifically, the number of the first light intensity parameters and the number of the second light intensity parameters are the same and correspond to each other. And respectively calculating the absolute value of the difference between each first light intensity parameter and the corresponding second light intensity parameter to obtain N absolute values, wherein N is the number of the first light intensity parameters and the second light intensity parameters, and N is a positive integer greater than 1. Then, among the N absolute values obtained by calculation, a target absolute value whose value is smaller than a first preset threshold is determined. Then, counting the number of the target absolute values, if the number of the target absolute values is larger than a preset number, determining that the screen of the electronic equipment is damaged, and the screen is in the second state, and if the number of the target absolute values is not larger than the preset number, determining that the screen of the electronic equipment is not damaged, and the screen is in the first state. The predetermined number may be, for example, N × 0.7, i.e., 70% of N.
In this embodiment, the first preset threshold and the second preset threshold may be obtained by data touch, specifically, obtained by a certain algorithm according to calibration data of electronic devices of different models during production, where the calibration data may be bright screen light intensity and bright screen light intensity of the electronic device when the screen is normal. The predetermined number mentioned above may be determined by a specific algorithm.
In another example, the screen of the electronic device may be controlled to emit light according to a preset light emitting parameter, the optical sensor acquires a first light intensity parameter, then when the screen of the electronic device is turned off, the optical sensor acquires a second light intensity parameter, an absolute value of a difference between the first light intensity parameter and the second light intensity parameter is calculated, if the absolute value is greater than a third preset threshold, the screen is determined to be in the first state, if the absolute value is less than or equal to the third preset threshold and is greater than a fourth preset threshold, the screen is determined to be in a first sub-state in the second state, and if the absolute value is less than or equal to the fourth preset threshold, the screen is determined to be in a second sub-state in the second state.
The first light intensity parameter is a light intensity parameter collected after the screen of the electronic equipment emits light according to the preset light emitting parameter, and the second light intensity parameter is a light intensity parameter collected after the screen of the electronic equipment is extinguished, so that the absolute value of the difference value between the first light intensity parameter and the second light intensity parameter can represent the light intensity parameter of the screen of the electronic equipment which actually emits light. The first preset threshold and the third preset threshold may be the same value or different values, and the second preset threshold and the fourth preset threshold may be the same value or different values.
In step 104, determining an operation mode of the electronic device according to the screen state of the electronic device, specifically: determining that the operation mode of the electronic equipment is a first mode under the condition that the screen state of the electronic equipment is a first state; the first mode may be a conventional touch operation mode; when the screen state of the electronic device is the second state, it is determined that the operation mode of the electronic device is the second mode, and the second mode may be a mode of adding an entity key to a touch screen, or a mode of adding a voice control to the touch screen, or a mode of pure voice control, or of course, a mode of adding a voice control to an entity key.
Specifically, because the screen of the electronic device is damaged, the user cannot perform the touch screen operation, which will affect the behavior of the user for making and receiving calls, and so on, in step 104, when the screen of the electronic device is damaged, the electronic device enters the second mode, and in the second mode, the user may control the electronic device in at least one of the three manners of physical key pressing, touch screen control, and voice control.
For example, in one embodiment, after entering the second mode, if a call request is received, the information of a call requester corresponding to the call request is broadcasted in a voice manner, and a call request response function is implemented through a preset first entity key, and after entering the second mode, if an event reminding information is received, a reminding information response function is implemented through a preset second entity key.
The information of the call requester corresponding to the call request is broadcasted by voice, for example, a phone number and a name of the call requester are broadcasted by voice. The first physical key may be a plurality of keys or a single key, and the first physical key includes, but is not limited to, a power key, a volume key, and the like. The call request response function is realized by a preset first entity key, for example, a call answering function and a call rejecting function are realized by the first entity key.
The user can realize the function of answering the phone through one volume key and the function of rejecting the phone through the other volume key, or the user can realize the function of answering the phone by pressing the power key once and realize the function of rejecting the phone by pressing the power key for many times. The call request mentioned in this embodiment may be a call request based on an operator base station, or a call request based on chat software such as WeChat QQ.
The event reminding information may be, for example, alarm clock reminding information. The second physical key may be a plurality of keys or a single key, and the second physical key includes, but is not limited to, a power key, a volume key, and the like. The reminding information responding function is realized through a preset second entity key, for example, the function of turning off the alarm clock is realized through the second entity key, for example, the function of turning off the alarm clock can be realized by pressing a power key once by a user.
In a specific embodiment, when the screen state of the electronic device is determined to be the second state, determining the operation mode of the electronic device specifically includes: the method comprises the steps of detecting an effective working area of a screen of the electronic equipment, determining a target display area and a target touch area of the screen according to the effective working area of the screen, and determining an operation mode of the electronic equipment based on the target display area, the target touch area and keys of the electronic equipment.
Specifically, if the screen of the electronic device is in the second state (i.e., damaged), an effective working area of the screen of the electronic device is detected, where the effective working area refers to an area with normal touch and/or display functions, and the area with normal touch functions is determined to be the effective working area according to a current state of a touch layer of the screen by detecting the current state of the touch layer of the screen, and/or the area with normal display functions is determined to be the effective working area according to the current state of the display layer of the screen.
After the effective working area is determined, an area with a normal display function in the effective working area may be used as a target display area, and an area with a normal touch function in the effective working area may be used as a target touch area. When the display function and the touch function of the same area are both normal, the area may be used as a target display area and a target touch area, and the target display area and the target touch area are the same area at this time.
Furthermore, when the operation mode of the electronic device is determined, in an embodiment, the operation mode of the electronic device may be determined as a mode of adding touch and physical keys, when a user uses the electronic device, the electronic device may rearrange a displayed page, integrate all display contents of the page into a target display area for display, integrate all touch controls in the page into the target touch area for touch, and implement a part of page operation functions through the physical keys, for example, implement a confirmation function through volume keys, so that the user can operate the electronic device when the screen is damaged.
In another embodiment, when the operation mode of the electronic device is determined, the operation mode of the electronic device may be determined as a mode of touch control plus voice control, when a user uses the electronic device, the electronic device may rearrange a displayed page, integrate all display contents of the page into a target display area for display, integrate all touch controls in the page into the target touch area for touch control, and implement a part of page operation functions through voice control, for example, implement a cancel function through voice control, so that the user can operate the electronic device when the screen is damaged.
Therefore, through the embodiment, when the screen is damaged, the operation mode of the electronic equipment can be determined based on the effective working area in the screen, the implementation mode is simple and convenient, and therefore the user can use the electronic equipment conveniently.
In another specific embodiment, when the screen state of the electronic device is the second state, determining the operation mode of the electronic device specifically includes: under the condition that the screen state of the electronic equipment is in a second state, if the type of an application program operated by the electronic equipment is a first preset type, determining that the operation mode of the electronic equipment is a voice operation mode; and if the type of the application program operated by the electronic equipment is a second preset type, determining that the operation mode of the electronic equipment is an entity key operation mode.
First, a first preset type and a second preset type may be predetermined, and the first preset type and the second preset type may be determined according to human experience, for example, the type of the application program that facilitates voice control is determined as the first preset type, and the type of the application program that facilitates entity key control is determined as the second preset type. In one example, the APP of the first preset type includes an event reminder APP, and the APP of the second preset type includes a call APP.
Then, the type of the application program operated by the electronic equipment is judged, if the type of the application program is a first preset type, the operation mode of the electronic equipment is determined to be a voice operation mode, and if the type of the application program is a second preset type, the operation mode of the electronic equipment is determined to be an entity key operation mode.
Therefore, according to the embodiment, when the screen is damaged, the operation mode of the electronic equipment can be determined according to the type of the application program, the implementation mode is simple and convenient, and therefore the user can use the electronic equipment conveniently.
Fig. 3 is a schematic flowchart of a control method according to another embodiment of the present invention, where the flowchart may be executed by an electronic device, such as a mobile phone, as shown in fig. 3, and the flowchart includes the following steps:
step 302, determining whether a screen detection trigger operation of a user is received.
The screen detection trigger operation may be an operation in which the user presses the power key multiple times in a short time. If so, go to step 304, otherwise return to continue detecting.
Step 304, acquiring a first light intensity parameter and a second light intensity parameter acquired by the optical sensor.
The first light intensity parameter is light intensity data collected by the optical sensor when the mobile phone identifies the pressing operation as screen lighting operation after the user presses the power key. The second light intensity parameter is light intensity data collected by the optical sensor when the mobile phone recognizes the pressing operation as screen-off operation after the user presses the power key. The first light intensity parameters and the second light intensity parameters are the same in number and are multiple in number, and the first light intensity parameters correspond to the second light intensity parameters in a one-to-one mode.
And step 306, judging whether the screen of the electronic equipment is damaged or not according to the first light intensity parameter and the second light intensity parameter.
The step specifically refers to the description of the step 102, and is not described herein again.
If yes, go to step 308, and if not, go back to step 302.
And 308, entering a screen abnormal mode, wherein in the screen abnormal mode, the control function of the electronic equipment is realized in a mode of entity key and/or voice control on the electronic equipment.
The step specifically refers to the description of the step 104, and is not described herein again.
In this embodiment, whether the screen of the electronic device is damaged can be judged according to the first light intensity parameter and the second light intensity parameter, and when it is determined that the screen of the electronic device is damaged, the screen abnormal mode is entered, so that the control function of the electronic device is realized in a manner of entity key and/or voice control on the electronic device, thereby solving the problem that a user cannot execute touch screen operation when the screen of the electronic device is damaged, bringing inconvenience to the user, and improving the experience of the user in operating the electronic device.
Fig. 4 is a schematic diagram of a module composition of an electronic device according to an embodiment of the present invention, as shown in fig. 4, the electronic device includes:
the first determining module 41 is configured to determine a screen state of the electronic device according to the first light intensity parameter and the second light intensity parameter;
a second determining module 42, configured to determine an operation mode of the electronic device according to the screen state;
the first light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is on, and the second light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is off.
Optionally, the first determining module 41 is specifically configured to:
obtaining a first difference value according to the first light intensity parameter and the second light intensity parameter;
determining that the screen state of the electronic equipment is a first state under the condition that the absolute value of the first difference is greater than or equal to a first preset threshold;
and determining that the screen state of the electronic equipment is a second state under the condition that the absolute value of the first difference is smaller than the first preset threshold.
Optionally, the second determining module 42 is specifically configured to:
determining that the operation mode of the electronic equipment is a first mode under the condition that the screen state of the electronic equipment is the first state;
and determining that the operation mode of the electronic equipment is the second mode under the condition that the screen state of the electronic equipment is the second state.
Optionally, when the screen state of the electronic device is a second state, the second determining module 42 is specifically configured to:
detecting an effective working area of the screen;
determining a target display area and a target touch area of the screen according to the effective working area of the screen;
and determining an operation mode of the electronic equipment based on the target display area, the target touch area and the keys of the electronic equipment.
Optionally, when the screen state of the electronic device is a second state, the second determining module 42 is specifically configured to:
under the condition that the screen state of the electronic equipment is in a second state, if the type of an application program operated by the electronic equipment is a first preset type, determining that the operation mode of the electronic equipment is a voice operation mode;
and if the type of the application program operated by the electronic equipment is a second preset type, determining that the operation mode of the electronic equipment is an entity key operation mode.
In this embodiment, an optical sensor is disposed below a screen of an electronic device, according to this embodiment, a first light intensity parameter and a second light intensity parameter can be obtained, the first light intensity parameter is a light intensity parameter collected by the optical sensor when the screen is bright, the second light intensity parameter is a light intensity parameter collected by the optical sensor when the screen is off, and according to the first light intensity parameter and the second light intensity parameter, a screen state of the electronic device is determined, and according to a screen state of the electronic device, an operation mode of the electronic device is determined, so that according to different states of the screen of the electronic device, different operation modes are provided for a user, a problem that the user cannot perform a touch screen operation when the screen of the electronic device is damaged is solved, inconvenience is brought to the user, and experience of the user in operating the electronic device is improved.
It should be noted that the electronic device in this embodiment can implement each process of the control method in the foregoing embodiment, and achieve the same function and effect, which is not described herein again.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The memory 809 stores a computer program, and when the computer program is executed by the processor 810, the following processes can be implemented:
determining the screen state of the electronic equipment according to the first light intensity parameter and the second light intensity parameter;
determining an operation mode of the electronic equipment according to the screen state;
the first light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is on, and the second light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is off.
Optionally, the computer program, when executed by the processor 810, for determining the screen state of the electronic device according to the first light intensity parameter and the second light intensity parameter, includes:
obtaining a first difference value according to the first light intensity parameter and the second light intensity parameter;
determining that the screen state of the electronic equipment is a first state under the condition that the absolute value of the first difference is greater than or equal to a first preset threshold;
and determining that the screen state of the electronic equipment is a second state under the condition that the absolute value of the first difference is smaller than the first preset threshold.
Optionally, when the computer program is executed by the processor 810, the determining the operation mode of the electronic device according to the screen state includes:
determining that the operation mode of the electronic equipment is a first mode under the condition that the screen state of the electronic equipment is the first state;
and determining that the operation mode of the electronic equipment is the second mode under the condition that the screen state of the electronic equipment is the second state.
Optionally, when the computer program is executed by the processor 810, determining an operation mode of the electronic device when the screen state of the electronic device is the second state specifically includes:
detecting an effective working area of the screen;
determining a target display area and a target touch area of the screen according to the effective working area of the screen;
and determining an operation mode of the electronic equipment based on the target display area, the target touch area and the keys of the electronic equipment.
Optionally, when the computer program is executed by the processor 810, determining an operation mode of the electronic device when the screen state of the electronic device is the second state specifically includes:
under the condition that the screen state of the electronic equipment is in a second state, if the type of an application program operated by the electronic equipment is a first preset type, determining that the operation mode of the electronic equipment is a voice operation mode;
and if the type of the application program operated by the electronic equipment is a second preset type, determining that the operation mode of the electronic equipment is an entity key operation mode.
In this embodiment, an optical sensor is disposed below a screen of an electronic device, according to this embodiment, a first light intensity parameter and a second light intensity parameter can be obtained, the first light intensity parameter is a light intensity parameter collected by the optical sensor when the screen is bright, the second light intensity parameter is a light intensity parameter collected by the optical sensor when the screen is off, and according to the first light intensity parameter and the second light intensity parameter, a screen state of the electronic device is determined, and according to a screen state of the electronic device, an operation mode of the electronic device is determined, so that according to different states of the screen of the electronic device, different operation modes are provided for a user, a problem that the user cannot perform a touch screen operation when the screen of the electronic device is damaged is solved, inconvenience is brought to the user, and experience of the user in operating the electronic device is improved.
It should be noted that the electronic device in this embodiment can implement each process of the control method in the foregoing embodiment, and achieve the same function and effect, which is not described herein again.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 802, such as to assist the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic apparatus 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The electronic device 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the electronic device 800 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. The Display unit 806 may include a Display panel 8061, and the Display panel 8061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 810, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 808 is an interface for connecting an external device to the electronic apparatus 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 800 or may be used to transmit data between the electronic device 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby monitoring the whole electronic device. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The electronic device 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to manage charging, discharging, and power consumption management functions via the power management system.
In addition, the electronic device 800 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the above control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Further, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the control method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the above-mentioned embodiment of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A control method is applied to an electronic device, an optical sensor is arranged below a screen of the electronic device, and the control method is characterized by comprising the following steps:
determining the screen state of the electronic equipment according to the first light intensity parameter and the second light intensity parameter; the screen state comprises a first state and a second state, the first state is that the screen works normally, and the second state is that the screen is damaged;
determining an operation mode of the electronic equipment according to the screen state;
the first light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is on, and the second light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is off;
the determining the operation mode of the electronic device according to the screen state comprises:
in the case that the screen state is a screen damage, the operation mode of the electronic device includes at least one of: the mode of adding an entity key to the touch screen, the mode of adding a pure entity key to the touch screen, the mode of adding voice control to the touch screen, the mode of pure voice control and the mode of adding voice control to the entity key.
2. The method of claim 1, wherein determining the screen state of the electronic device according to the first light intensity parameter and the second light intensity parameter comprises:
obtaining a first difference value according to the first light intensity parameter and the second light intensity parameter;
determining that the screen state of the electronic equipment is the first state under the condition that the absolute value of the first difference is greater than or equal to a first preset threshold;
and determining that the screen state of the electronic equipment is the second state under the condition that the absolute value of the first difference is smaller than the first preset threshold.
3. The method of claim 2, wherein determining the operating mode of the electronic device according to the screen state comprises:
determining that the operation mode of the electronic equipment is a first mode under the condition that the screen state of the electronic equipment is the first state;
and determining that the operation mode of the electronic equipment is the second mode under the condition that the screen state of the electronic equipment is the second state.
4. The method according to claim 2, wherein determining the operation mode of the electronic device when the screen state of the electronic device is the second state specifically comprises:
detecting an effective working area of the screen;
determining a target display area and a target touch area of the screen according to the effective working area of the screen;
and determining an operation mode of the electronic equipment based on the target display area, the target touch area and the keys of the electronic equipment.
5. The method according to claim 2, wherein determining the operation mode of the electronic device when the screen state of the electronic device is the second state specifically comprises:
under the condition that the screen state of the electronic equipment is in a second state, if the type of an application program operated by the electronic equipment is a first preset type, determining that the operation mode of the electronic equipment is a voice operation mode;
and if the type of the application program operated by the electronic equipment is a second preset type, determining that the operation mode of the electronic equipment is an entity key operation mode.
6. An electronic device, wherein an optical sensor is disposed below a screen of the electronic device, the electronic device comprising:
the first determining module is used for determining the screen state of the electronic equipment according to the first light intensity parameter and the second light intensity parameter; the screen state comprises a first state and a second state, the first state is that the screen works normally, and the second state is that the screen is damaged;
the second determining module is used for determining the operation mode of the electronic equipment according to the screen state;
the first light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is on, and the second light intensity parameter is a light intensity parameter acquired by the optical sensor when the screen is off;
the determining the operation mode of the electronic device according to the screen state comprises:
in the case that the screen state is a screen damage, the operation mode of the electronic device includes at least one of: the mode of adding an entity key to the touch screen, the mode of adding a pure entity key to the touch screen, the mode of adding voice control to the touch screen, the mode of pure voice control and the mode of adding voice control to the entity key.
7. The device of claim 6, wherein the first determining module is specifically configured to:
obtaining a first difference value according to the first light intensity parameter and the second light intensity parameter;
determining that the screen state of the electronic equipment is the first state under the condition that the absolute value of the first difference is greater than or equal to a first preset threshold;
and determining that the screen state of the electronic equipment is the second state under the condition that the absolute value of the first difference is smaller than the first preset threshold.
8. The device of claim 7, wherein the second determining module is specifically configured to:
determining that the operation mode of the electronic equipment is a first mode under the condition that the screen state of the electronic equipment is the first state;
and determining that the operation mode of the electronic equipment is the second mode under the condition that the screen state of the electronic equipment is the second state.
9. The device according to claim 7, wherein, in a case that the screen status of the electronic device is the second status, the second determining module is specifically configured to:
detecting an effective working area of the screen;
determining a target display area and a target touch area of the screen according to the effective working area of the screen;
and determining an operation mode of the electronic equipment based on the target display area, the target touch area and the keys of the electronic equipment.
10. The device according to claim 7, wherein, in a case that the screen status of the electronic device is the second status, the second determining module is specifically configured to:
under the condition that the screen state of the electronic equipment is in a second state, if the type of an application program operated by the electronic equipment is a first preset type, determining that the operation mode of the electronic equipment is a voice operation mode;
and if the type of the application program operated by the electronic equipment is a second preset type, determining that the operation mode of the electronic equipment is an entity key operation mode.
CN201911264706.8A 2019-12-11 2019-12-11 Control method and electronic device Active CN111163214B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911264706.8A CN111163214B (en) 2019-12-11 2019-12-11 Control method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911264706.8A CN111163214B (en) 2019-12-11 2019-12-11 Control method and electronic device

Publications (2)

Publication Number Publication Date
CN111163214A CN111163214A (en) 2020-05-15
CN111163214B true CN111163214B (en) 2022-03-11

Family

ID=70556724

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911264706.8A Active CN111163214B (en) 2019-12-11 2019-12-11 Control method and electronic device

Country Status (1)

Country Link
CN (1) CN111163214B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446838A (en) * 2015-11-17 2016-03-30 深圳市金立通信设备有限公司 Terminal control method and terminal
CN105912297A (en) * 2016-04-15 2016-08-31 北京小米移动软件有限公司 Input mode switching method and device
CN106022020A (en) * 2016-05-17 2016-10-12 Tcl移动通信科技(宁波)有限公司 Optical detection touch screen unlocking device and method of mobile terminal
JP2017199101A (en) * 2016-04-26 2017-11-02 株式会社ノーリツ Manipulator for heat source apparatus
CN109828688A (en) * 2019-01-23 2019-05-31 努比亚技术有限公司 Screen damage processing method, mobile terminal and computer readable storage medium
CN110045889A (en) * 2019-03-08 2019-07-23 维沃移动通信有限公司 A kind of display methods and mobile terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160114510A (en) * 2015-03-24 2016-10-05 가부시키가이샤 한도오따이 에네루기 켄큐쇼 Touch panel
CN104900178B (en) * 2015-06-18 2017-10-13 西安诺瓦电子科技有限公司 Brightness abnormal image detection method and LED display uniformity correcting method
CN108494963B (en) * 2018-03-25 2020-11-13 东莞市华睿电子科技有限公司 Brightness control method for mobile phone display screen
CN110209335B (en) * 2019-05-08 2021-12-14 珠海格力电器股份有限公司 Control method and device of intelligent terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105446838A (en) * 2015-11-17 2016-03-30 深圳市金立通信设备有限公司 Terminal control method and terminal
CN105912297A (en) * 2016-04-15 2016-08-31 北京小米移动软件有限公司 Input mode switching method and device
JP2017199101A (en) * 2016-04-26 2017-11-02 株式会社ノーリツ Manipulator for heat source apparatus
CN106022020A (en) * 2016-05-17 2016-10-12 Tcl移动通信科技(宁波)有限公司 Optical detection touch screen unlocking device and method of mobile terminal
CN109828688A (en) * 2019-01-23 2019-05-31 努比亚技术有限公司 Screen damage processing method, mobile terminal and computer readable storage medium
CN110045889A (en) * 2019-03-08 2019-07-23 维沃移动通信有限公司 A kind of display methods and mobile terminal

Also Published As

Publication number Publication date
CN111163214A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
CN109343759B (en) Screen-turning display control method and terminal
CN108459797B (en) Control method of folding screen and mobile terminal
CN108491123B (en) Method for adjusting application program icon and mobile terminal
CN107977132B (en) Information display method and mobile terminal
CN109379484B (en) Information processing method and terminal
CN108881617B (en) Display switching method and mobile terminal
CN108391008B (en) Message reminding method and mobile terminal
CN110233933B (en) Call method, terminal equipment and computer readable storage medium
CN110012143B (en) Telephone receiver control method and terminal
CN109343788B (en) Operation control method of mobile terminal and mobile terminal
CN108958593B (en) Method for determining communication object and mobile terminal
CN107977113B (en) Control method and mobile terminal
CN108681413B (en) Control method of display module and mobile terminal
CN111061446A (en) Display method and electronic equipment
CN110784394A (en) Prompting method and electronic equipment
CN108307075B (en) Incoming call processing method and mobile terminal
CN108540642B (en) Mobile terminal and operation method thereof
CN108388459B (en) Message display processing method and mobile terminal
CN108021315B (en) Control method and mobile terminal
CN108388400B (en) Operation processing method and mobile terminal
CN110471808B (en) Pressure key detection method and device and mobile terminal
CN110740214B (en) Prompting method, terminal and computer readable storage medium
CN110673761B (en) Touch key detection method and terminal equipment thereof
CN109614827B (en) Control method of mobile terminal and mobile terminal
CN109660657B (en) Application program control method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant