This application claims priority to Chinese Patent Application No. 201810968681.9 filed on Aug. 23, 2018, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to electronic device control technology, and particularly to an electronic device and a method for turning off a display.
At least one infrared sensor is usually arranged on a smart phone, and is configured to detect whether a user is making a call by a handset of the smart phone, the smart phone can turn off the display screen when the infrared sensor detects that the user is making the call by the handset. However, when in use, the infrared sensor may be easily blocked by the user not intending to make a phone call, and the display screen may be turned off in error.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures, and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts have been exaggerated to better illustrate details and features of the present disclosure.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. Several definitions that apply throughout this disclosure will now be presented. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Furthermore, the term “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives. The term “comprising” means “including, but not necessarily limited to”; it specifically indicates open-ended inclusion or membership in a so-described combination, group, series, and the like.
The electronic device 1 includes, but is not limited to, a processor 10, a storage device 20, a detecting device 30, a display device 40, and a handset 50.
The processor 10 can be a central processing unit (CPU), a microprocessor, or other data processor chip that performs functions of the electronic device 1.
In at least one embodiment, the storage device 20 can include various types of non-transitory computer-readable storage mediums. For example, the storage device 20 can be an internal storage system, such as a flash memory, a random access memory (RAM) for temporary storage of information, and/or a read-only memory (ROM) for permanent storage of information. The storage device 20 can also be an external storage system, such as a hard disk, a storage card, or a data storage medium.
In at least one embodiment, the detecting device 30 at least includes an acceleration sensor 301, a gyroscope 302, a light sensor 303, and a pressure sensor 304. The acceleration sensor 301 can detect an acceleration of the electronic device 1 when the user takes the electronic device 1 to one of his/her ears. The gyroscope 302 can detect an orientation or an inclination of the electronic device 1 when the user is making the call by the handset 50, the inclination can be an intersection angle between the electronic device 1 and a horizontal plane.
The light sensor 303 can detect a change of light intensity around the electronic device 1 when the user is making the call by the handset 50. The pressure sensor 304 can detect pressure applied on the display device 40 from the ear of the user, and determine an area of the display device 40 on which the ear is pressing by detecting the pressure from the ear of the user. In other embodiments, the pressure sensor 304 can detect pressure applied on the electronic device 1 from fingers of the user, and determine at least one area of the electronic device 1 on which the fingers are touching by detecting the pressure from the fingers of the user.
In at least one embodiment, the pressure sensor 304 is arranged under the display device 40. Referring to
As illustrated in
The electronic device 1 can make determinations based on the action habits of the user when the handset 50 is used by machine memory and machine learning, and determine various action parameters which are used for determining whether the handset 50 is used to make the call. That is, when the user has performed an action of making the call using the handset 50, the detecting device 30 can detect the various action parameters of the electronic device 1, thus providing references for subsequently determining whether the handset 50 is used to make the call.
The detecting module 101 is used to control the detecting device 30 to detect action parameters of the electronic device 1 in a predetermined time period, when the handset 50 is used to make the call.
In at least one embodiment, making the call can include dialing the call and answering the call. The predetermined time period can be a month, the predetermined time period can be a period for machine learning of the electronic device 1. In the predetermined time period, every time that the electronic device 1 is on the call, the detecting module 101 can determine that the handset 50 is used to make the call, and control the detecting device 30 to detect the action parameters of the electronic device 1.
In at least one embodiment, the action parameters at least include an acceleration detected by the acceleration sensor 301, an inclination between the electronic device 1 and the horizontal plane detected by the gyroscope 302, a change value of the light intensity detected by the light sensor 303, a pressure applied on the display device 40 detected by the pressure sensor 304, and at least one area of the display device 40 on which the user's ear is touching.
The comparing module 102 is used to compare each value of each of the action parameters of the electronic device 1 with a first predefined range, and determine whether each value of each of the action parameters is within the first predefined range.
In at least one embodiment, every time that the handset 50 is used to make the call by the user, the detecting device 30 can detect a value of each action parameter of the electronic device 1, thus a number of values of each action parameter are acquired within the predetermined time period.
In at least one embodiment, multiple first predefined ranges are stored in the storage device 20, each action parameter corresponds to a first predefined range. For example, the first predefined range corresponding to the acceleration can be 3-5 m/s2, the first predefined range corresponding to the inclination can be 60-120 degrees, the first predefined range corresponding to the change value of the light intensity can be 5000-6000 lux, the first predefined range corresponding to the pressure can be 0.5-1 N, and the first predefined range corresponding to the at least one touching area of the display device 40 can be the area B and the area C (shown in
In at least one embodiment, when the values within the first predefined range are equal to or more than a predefined percent of the number of values of an action parameter, the comparing module 102 can determine that the number of values of the action parameter are within the first predefined range. In at least one embodiment, the predefined percent can be ninety-five percent.
The first determining module 103 is used to determine at least one action parameter having the number of values within the first predefined range to be a reference parameter.
In at least one embodiment, when one or two action parameters have the number of values within the first predefined range, the first determining module 103 determines the one or two action parameters to be the reference parameters. For example, a number of acceleration values detected by the acceleration sensor 301 include 4 m/s2, 4.2 m/s2, and 3.5 m/s2. Apparently, the three acceleration values both are within the first predefined range 3-5 m/s2, and the first determining module 103 can determine the acceleration parameter to be the reference parameter.
In at least one embodiment, when more than two action parameters have the number of values within the first predefined range, the first determining module 103 determines that two of the action parameters are the reference parameters, the number of values of the two action parameters have a smaller change range. In other embodiments, the first determining module 103 can also determine that any two of the action parameters can be the reference parameters. Types and quantity of the reference parameter are not limited to what is recited above.
When the first determining module 103 determines the reference parameters, the detecting module 101 controls the detecting device 30 to stop detecting the action parameters other than the reference parameters. For example, when the reference parameters include the acceleration parameter and the pressure parameter, the detecting module 101 controls the gyroscope 302 to stop detecting the inclination, and controls the light sensor 303 to stop detecting the change value of the light intensity.
The second determining module 104 is used to determine whether the electronic device 1 is used to receive a call in a handset mode or a hands-free mode, when the electronic device 1 receives the call.
In at least one embodiment, when the electronic device 1 receives the call, the display device 40 displays a call interface (not shown), and the call interface defines a hands-free option. When the hands-free option is activated by the user, the second determining module 104 determines that the electronic device 1 is used to receive the call in the hands-free mode. When the hands-free option is not activated, the second determining module 104 determines that the electronic device 1 is used to receive the call in the handset mode.
When the second determining module 104 determines that the electronic device 1 is used to receive the call in the handset mode, the detecting module 101 controls the detecting device 30 to detect the reference parameters of the electronic device 1.
In at least one embodiment, the reference parameters include the acceleration of the electronic device 1 and the pressure applied on the display device 40 from the user's ear. The detecting module 101 controls the acceleration sensor 301 to detect the acceleration of the electronic device 1, and controls the pressure sensor 304 to detect pressure applied on the display device 40 from the user's ear.
When determining that the electronic device 1 is used to receive the call in the hands-free mode, the second determining module 104 further determines whether a call mode of the electronic device 1 is switched from the hands-free mode to the handset mode. In at least one embodiment, if the hands-free option on the call interface is activated by the user when the electronic device 1 is used to make the call, the second determining module 104 determines that the call mode is switched form the hands-free mode to the handset mode.
When the second determining module 104 determines that the call mode is switched form the hands-free mode to the handset mode, the detecting module 101 controls the detecting device 30 to detect the reference parameters.
The second determining module 104 further determines whether each value of each of the reference parameters detected by the detecting device 30 is within in a second predefined range.
In at least one embodiment, the second predefined range is determined by the number of values of each reference parameter which is within the first predefined range. For example, the second predefined range can be a range which is smaller than a maximum value and greater than a minimum value of the number of values.
For example, a maximum value of the number of acceleration values is 4.2 m/s2, and a minimum value of the number of acceleration values is 3.5 m/s2. Thus the second predefined range corresponding to the acceleration parameter can be 3.5-4.2 m/s2. A maximum value of the number of pressure values is 0.9 N, and a minimum value of the number of pressure values is 0.55 N. Thus the second predefined range corresponding to the pressure parameter can be 0.55-0.9 N.
When the second determining module 104 determines that each value of each of the reference parameters detected by the detecting device 30 is within in the second predefined range, the first determining module 103 further determines that the handset 50 is used to make the call.
When the first determining module 103 determines that the handset 50 is used to make the call, the turn-off module 105 is used to turn the display device 40 off.
The second determining module 104 further determines whether the call is ended by the electronic device 1.
In at least one embodiment, the electronic device 1 includes a button (not shown) for ending the call. When the button is pressed by the user, the second determining module 104 determines that the electronic device 1 is ending the call.
When the second determining module 104 determines that the electronic device 1 has ended the call, the turn-on module 106 is used to turn on the display device 40.
At block 401, the detecting module 101 controls the detecting device 30 to detect action parameters of the electronic device 1 in a predetermined time period, when the handset 50 is used to make the call.
At block 402, the comparing module 102 determines whether each value of each of the action parameters is within the first predefined range.
At block 403, the first determining module 103 determines at least one action parameter having the number of values within the first predefined range to be a reference parameter.
At block 404, the second determining module 104 determines whether the electronic device 1 is used to receive a call in a handset mode or a hands-free mode, when the electronic device 1 receives the call. When the electronic device 1 is used to receive the call in the handset mode, the process goes to block 405. When the electronic device 1 is used to receive the call in the hands-free mode, the process goes to block 411.
At block 405, the detecting module 101 controls the detecting device 30 to detect the reference parameters of the electronic device 1.
At block 406, the second determining module 104 further determines whether each value of each of the reference parameters detected by the detecting device 30 is within in a second predefined range. When each value of each reference parameter detected by the detecting device 30 is within in the second predefined range, the process goes to block 407. When at least one value of the reference parameters detected by the detecting device 30 is not within in the second predefined range, the process ends.
At block 407, the first determining module 103 further determines that the handset 50 is used to make the call.
At block 408, the turn-off module 105 turns the display device 40 off.
At block 409, the second determining module 104 further determines whether the call is ended by the electronic device 1.
At block 410, the turn-on module 106 turns on the display device 40.
At block 411, the second determining module 104 further determines whether a call mode is switched from the hands-free mode to the handset mode. When the call mode is switched from the hands-free mode to the handset mode, the process goes to block 405. When the call mode is not switched from the hands-free mode to the handset mode, the process continues in block 411.
In at least one embodiment, the method further includes controlling the detecting device 30 to stop detecting the action parameters other than the reference parameter when the reference parameters are determined.
It is believed that the present embodiments and their advantages will be understood from the foregoing description, and it will be apparent that various changes may be made thereto without departing from the spirit and scope of the disclosure or sacrificing all of its material advantages, the examples hereinbefore described merely being embodiments of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201810968681.9 | Aug 2018 | CN | national |