Electronic device and call screen locking method

文档序号:1398637 发布日期:2020-03-03 浏览:4次 中文

阅读说明:本技术 电子装置及通话锁屏方法 (Electronic device and call screen locking method ) 是由 张俊伟 范森 于 2018-08-23 设计创作,主要内容包括:本发明提供一种电子装置及通话锁屏方法,所述电子装置包括侦测模块,在预设时间周期内每当确定用户执行听筒接听电话的动作时,侦测电子装置的多种动作参数;对比模块,将每种动作参数的多个数据与第一预设范围进行对比;确定模块,将多个数据均在第一预设范围内的动作参数确定为锁屏参数;所述侦测模块还侦测用户在接听电话过程中电子装置的锁屏参数;判断模块,判断所述锁屏参数是否在第二预设范围内;所述确定模块还当判定所述锁屏参数在第二预设范围内时,确定用户执行听筒接听电话的动作;及关闭模块,当确定用户执行听筒接听电话的动作时,关闭所述电子装置的显示屏。本发明根据用户动作习惯判断是否需要通话锁屏,有效提升了用户体验。(The invention provides an electronic device and a call screen locking method, wherein the electronic device comprises a detection module, a screen locking module and a screen locking module, wherein the detection module is used for detecting various action parameters of the electronic device when determining that a user executes the action of answering a call by a receiver in a preset time period; the comparison module is used for comparing the plurality of data of each action parameter with a first preset range; the determining module is used for determining action parameters of a plurality of data in a first preset range as screen locking parameters; the detection module is also used for detecting screen locking parameters of the electronic device in the process of answering a call by a user; the judging module is used for judging whether the screen locking parameter is within a second preset range; the determining module is also used for determining that the user executes the action of answering the phone by the receiver when the screen locking parameter is judged to be within a second preset range; and the closing module is used for closing the display screen of the electronic device when the user executes the action of answering the call by the receiver. According to the invention, whether the screen locking is needed or not is judged according to the action habits of the user, so that the user experience is effectively improved.)

1. An electronic device, including treater, detecting element and display screen, its characterized in that, electronic device has a conversation lock screen system of operation, the conversation lock screen system includes:

the detection module is used for controlling the detection unit to detect various action parameters of the electronic device when a user is determined to execute the action of answering a call by a receiver in a preset time period;

the comparison module is used for comparing a plurality of data of each action parameter of the electronic device, which are detected by the detection unit when the detection unit determines that a user executes the action of answering the call by the receiver, with the corresponding first preset range and judging whether the plurality of data of each action parameter are in the corresponding first preset range or not;

the determining module is used for determining action parameters of the plurality of data in the corresponding first preset range as screen locking parameters;

the detection module is also used for controlling the detection unit to detect the screen locking parameter of the electronic device in the telephone answering process of the user when the telephone answering mode of the user is the receiver mode;

the judging module is used for judging whether the screen locking parameter detected by the detecting unit is within a corresponding second preset range or not;

the determining module is further configured to determine that a user executes an action of answering a call by a receiver when the determining module determines that the screen locking parameter detected by the detecting unit is within a corresponding second preset range; and

and the closing module is used for closing the display screen of the electronic device when the determining module determines that the user executes the action of answering the call by the earphone.

2. The electronic device of claim 1, wherein: the judging module is further used for judging whether the mode of the user for connecting the telephone is an earphone mode or a hand-free mode, judging whether the call mode is switched from the hand-free mode to the earphone mode when judging that the mode of the user for connecting the incoming call is the hand-free mode, and controlling the detecting unit to detect the screen locking parameter of the electronic device during the process of connecting the telephone by the user when the judging module judges that the call mode is switched from the hand-free mode to the earphone mode.

3. The electronic device of claim 1, wherein: the second preset range is determined according to a plurality of data of each screen locking parameter of the electronic device in the first preset range, and is a range between the maximum value and the minimum value of the plurality of data.

4. The electronic device of claim 1, wherein: the closing module is further configured to control the detecting unit to stop detecting the action parameters of the electronic device except the screen locking parameter after the screen locking parameter is determined.

5. The electronic device of claim 1, wherein: the detecting unit at least comprises an acceleration sensor, a gyroscope, a light sensor and a pressure sensor, wherein various action parameters of the electronic device at least comprise the acceleration of the electronic device detected by the acceleration sensor, the angle between the electronic device and a horizontal plane detected by the gyroscope, the external light intensity change value sensed by the light sensor, the pressure applied by the display screen, the contact of the user's ear and the user's finger to the display screen, the pressure applied by the back shell of the electronic device and the contact of the user's finger to the back shell are detected by the pressure sensor.

6. A conversation screen locking method is applied to an electronic device, the electronic device comprises a detection unit and a display screen, and the method is characterized by comprising the following steps:

controlling the detection unit to detect various action parameters of the electronic device when a user is determined to execute an action of answering a call by a receiver in a preset time period;

comparing a plurality of data of each action parameter of the electronic device, which are detected by the detection unit when the user executes the action of answering the call by the receiver, with a corresponding first preset range, and judging whether the plurality of data of each action parameter are in the corresponding first preset range;

determining the action parameters of the plurality of data in the corresponding first preset range as screen locking parameters;

when the mode of answering the call by the user is the receiver mode, controlling the detection unit to detect the screen locking parameter of the electronic device in the process of answering the call by the user;

judging whether the screen locking parameter detected by the detection unit is within a corresponding second preset range;

when the screen locking parameter detected by the detection unit is judged to be in a corresponding second preset range, determining that a user executes an action of answering a call by a receiver; and

and when the user is determined to execute the action of answering the call by the earphone, closing the display screen of the electronic device.

7. The call screen locking method according to claim 6, further comprising the steps of:

judging whether the mode of the user for connecting the telephone is a receiver mode or a hand-free mode;

when the mode that the user connects the incoming call is judged to be the hands-free mode, whether the call mode is switched from the hands-free mode to the receiver mode is judged; and

and when the conversation mode is judged to be switched from the hands-free mode to the receiver mode, controlling the detection unit to detect the screen locking parameter of the electronic device in the process of connecting the telephone by the user.

8. The call screen locking method according to claim 6, wherein: the second preset range is determined according to a plurality of data of each screen locking parameter of the electronic device in the first preset range, and is a range between the maximum value and the minimum value of the plurality of data.

9. The call screen locking method according to claim 6, further comprising the steps of:

and after the screen locking parameter is determined, controlling the detection unit to stop detecting the action parameters of the electronic device except the screen locking parameter.

10. The call screen locking method according to claim 6, wherein: the detecting unit at least comprises an acceleration sensor, a gyroscope, a light sensor and a pressure sensor, wherein various action parameters of the electronic device at least comprise the acceleration of the electronic device detected by the acceleration sensor, the angle between the electronic device and a horizontal plane detected by the gyroscope, the external light intensity change value sensed by the light sensor, the pressure applied by the display screen, the contact of the user's ear and the user's finger to the display screen, the pressure applied by the back shell of the electronic device and the contact of the user's finger to the back shell are detected by the pressure sensor.

Technical Field

The invention relates to the field of man-machine interaction, in particular to an electronic device and a call screen locking method applied to the electronic device.

Background

With the development of science and technology, smart phones have been widely used in daily life of users, and are indispensable communication tools among users. The smart phone is generally provided with an infrared sensor for detecting whether a user is using a handset to answer a call, so that the smart phone closes a screen to prevent misoperation when the user uses the handset to answer the call. However, in the actual using process, the user is also easy to shield the infrared sensor under the condition of not answering the call, so that the inconvenience is caused to the user due to the fact that the screen is judged and closed by mistake, and the user is not humanized and intelligent enough.

Disclosure of Invention

In view of the above, it is desirable to provide an electronic device and a method for locking a screen during a call.

An electronic device comprises a processor, a detection unit and a display screen, wherein the electronic device is provided with a call screen locking system in operation, and the call screen locking system comprises:

the detection module is used for controlling the detection unit to detect various action parameters of the electronic device when a user is determined to execute the action of answering a call by a receiver in a preset time period;

the comparison module is used for comparing a plurality of data of each action parameter of the electronic device, which are detected by the detection unit when the detection unit determines that a user executes the action of answering the call by the receiver, with the corresponding first preset range and judging whether the plurality of data of each action parameter are in the corresponding first preset range or not;

the determining module is used for determining action parameters of the plurality of data in the corresponding first preset range as screen locking parameters;

the detection module is also used for controlling the detection unit to detect the screen locking parameter of the electronic device in the telephone answering process of the user when the telephone answering mode of the user is the receiver mode;

the judging module is used for judging whether the screen locking parameter detected by the detecting unit is within a corresponding second preset range or not;

the determining module is further configured to determine that a user executes an action of answering a call by a receiver when the determining module determines that the screen locking parameter detected by the detecting unit is within a corresponding second preset range; and

and the closing module is used for closing the display screen of the electronic device when the determining module determines that the user executes the action of answering the call by the earphone.

A conversation screen locking method is applied to an electronic device, the electronic device comprises a detection unit and a display screen, and the method comprises the following steps:

controlling the detection unit to detect various action parameters of the electronic device when a user is determined to execute an action of answering a call by a receiver in a preset time period;

comparing a plurality of data of each action parameter of the electronic device, which are detected by the detection unit when the user executes the action of answering the call by the receiver, with a corresponding first preset range, and judging whether the plurality of data of each action parameter are in the corresponding first preset range;

determining the action parameters of the plurality of data in the corresponding first preset range as screen locking parameters;

when the mode of answering the call by the user is the receiver mode, controlling the detection unit to detect the screen locking parameter of the electronic device in the process of answering the call by the user;

judging whether the screen locking parameter detected by the detection unit is within a corresponding second preset range;

when the screen locking parameter detected by the detection unit is judged to be in a corresponding second preset range, determining that a user executes an action of answering a call by a receiver; and

and when the user is determined to execute the action of answering the call by the earphone, closing the display screen of the electronic device.

According to the electronic device and the call screen locking method, whether the user uses the receiver to answer the call or not is judged according to the use habit of the user, the judgment accuracy is improved, the user experience is effectively improved, an infrared sensor is not required to be arranged, and the hardware cost is reduced.

Drawings

Fig. 1 is a schematic view of an application structure of an electronic device according to a preferred embodiment of the invention.

Fig. 2 is a schematic diagram illustrating a region division of a display screen of the electronic device according to the preferred embodiment of the invention.

Fig. 3 is a flowchart illustrating a call screen locking method according to a preferred embodiment of the invention.

Description of the main elements

Figure BDA0001775601800000031

Figure BDA0001775601800000041

The following detailed description will further illustrate the invention in conjunction with the above-described figures.

Detailed Description

Fig. 1 is a schematic view of an application structure of an electronic device 1 according to a preferred embodiment of the invention. In this embodiment, the electronic device 1 is a smart phone or other electronic equipment with a communication function. The electronic device 1 does not need to be provided with an infrared inductor, judges whether a user uses a receiver to answer a call or not through the action habit of the user, and closes a screen to prevent misoperation when the user uses the receiver to answer the call.

The electronic device 1 includes, but is not limited to, a processor 10, a memory 20, a detection unit 30, and a display 40. In this embodiment, the processor 10 is a microprocessor, and the memory 20 is a random access memory or a read only memory. The display screen 40 is a touch display screen.

In the present embodiment, the detecting unit 30 at least includes an acceleration sensor 301, a gyroscope 302, a light sensor 303 and a pressure sensor 304. The acceleration sensor 301 is used for sensing the acceleration of the electronic device 1 when the user holds the electronic device 1 to the ear. The gyroscope 302 is used for detecting the orientation or angle of the electronic device 1 when a user uses the handset to answer a call, for example, the angle between the electronic device 1 and the horizontal plane when the user answers the call. The light sensor 303 is used for detecting a light intensity variation value sensed when a user uses a handset to answer a call. The pressure sensor 304 is used for detecting the pressure exerted by the ear of the user on the display screen 40 and determining the area where the ear of the user contacts the display screen 40 according to the pressure exerted by the ear of the user on the display screen 40. The pressure sensor 304 is further configured to detect a pressure applied by a finger of a user on a back case (not shown) of the electronic device 1 when the user uses the handset to answer a call, and determine an area where the finger of the user touches the back case according to the pressure applied by the finger of the user on the back case.

In this embodiment, the pressure sensor 304 is disposed below the display screen 40. Referring to fig. 2, the electronic device 1 divides the display screen 40 into a plurality of preset regions, and when a user uses an earphone to answer a call, the pressure sensor 304 may further determine at least one preset region of the display screen 40, which is subjected to the ear pressure of the user, according to the force distribution, where the at least one preset region is a region where the ear of the user contacts the display screen 40. For example, as shown in FIG. 2, the display 40 is exposed to the ear pressure of the user in region two and region three.

In this embodiment, the pressure sensor 304 is also disposed below the back shell of the electronic device, and the electronic device 1 can determine the area where the finger of the user touches the back shell by using the above method.

As shown in fig. 1, a call screen locking system 100 is operated in the electronic device 1 to implement the call screen locking function of the electronic device 1. The call screen locking system 100 at least comprises a detection module 101, a comparison module 102, a determination module 103, a closing module 104, a judgment module 105 and an opening module 106. In the present embodiment, the modules are programmable software instructions stored in the memory 20 and called by the processor 10 to be executed. It will be appreciated that in other embodiments the modules may also be program instructions or firmware (firmware) that are resident in the processor 10.

When the user uses the electronic device 1, the electronic device 1 needs to be controlled to perform machine memory and learning, so that the action habit of the user for answering the call by using the receiver is summarized, and the action parameter which can be used for judging whether the user executes the receiver to answer the call is determined. That is, in a case that it is determined that the user has performed the action of answering the call with the handset, the detecting unit 30 detects different types of action parameters of the electronic device 1, so as to provide a basis for subsequently determining whether the user performs the action of answering the call with the handset, and further determine whether the display screen 40 needs to be turned off when the user answers the call.

The detecting module 101 is configured to control the detecting unit 30 to detect various motion parameters of the electronic apparatus 1 every time it is determined that a user performs a phone answering motion within a preset time period.

In this embodiment, the preset time period is one month, and the preset time period is a machine learning period of the electronic apparatus 1 preset by a user. In the preset time period, when the electronic device 1 answers the call, the detecting module 101 defaults that the user executes the action of answering the call by the receiver, so as to control the detecting unit 30 to detect various action parameters of the electronic device 1.

In this embodiment, the plurality of operation parameters of the electronic device 1 at least include the acceleration of the electronic device 1 detected by the acceleration sensor 301, the angle between the electronic device 1 and the horizontal plane detected by the gyroscope 302, the external light intensity variation value detected by the light sensor 303, the pressure applied to the display screen 40 by the user's ear detected by the pressure sensor 304, the area where the user's ear contacts the display screen 40, the pressure applied to the back case by the user's finger detected by the pressure sensor 304, and the area where the user's finger contacts the back case.

The comparison module 102 is configured to compare a plurality of data of each motion parameter of the electronic apparatus 1 detected by the detection unit 30 when determining that the user performs an action of answering a call with a corresponding first preset range, and determine whether the plurality of data of each motion parameter is within the corresponding first preset range.

In this embodiment, each time it is determined that the user performs the action of answering the phone with the receiver, the detecting unit 30 detects one data of each action parameter of the electronic device 1, so as to detect a plurality of data of each action parameter within the preset time period, and the comparing module 102 compares the plurality of data of each action parameter with the corresponding first preset range, and determines whether the plurality of data of each action parameter is within the corresponding first preset range.

In the present embodiment, the electronic device 1 is provided with a first preset range corresponding to each operation parameter, and the first preset range is stored in the memory 20 in advance. For example, the first predetermined range corresponding to the acceleration is 3-5 m/s2The first predetermined range corresponding to the angle is 60 to 120 degrees, the first predetermined range corresponding to the light intensity variation is 5000 to 6000 lux, the first predetermined range corresponding to the ear pressure and the finger pressure is 0.5 to 1 newton, and the first predetermined range of the ear stress region is two and three (as shown in fig. 2). When the data of more than the preset percentage in the plurality of data of each motion parameter is within the corresponding first preset range, the determining module 105 may determine that the plurality of data of the motion parameter is within the corresponding first preset range. Wherein the preset percentage is 95%.

The determining module 103 is configured to determine, as a screen locking parameter, an action parameter of the plurality of data in the corresponding first preset range.

In this embodiment, when the data corresponding to one or two motion parameters is within the corresponding first preset range, the determining module 103 determines that the one or two motion parameters are the screen locking parameters. For example, the acceleration sensor 301 detects a plurality of acceleration data of the electronic device 1 of 4m/s respectively2、4.2m/s2、3.5m/s2Obviously, the comparison module 102 may determine, through comparison, that the acceleration data are all within a first preset range corresponding to the acceleration parameter, and the determination module 103 may determine the acceleration parameter as the screen locking parameter.

When the data corresponding to more than two kinds of motion parameters are within the corresponding first preset range, the determining module 103 determines two kinds of motion parameters with smaller variation ranges as the screen locking parameters. In other embodiments, the determining module 103 may also arbitrarily select two motion parameters from the two or more motion parameters as the screen locking parameter. It should be noted that the types and the number of the screen locking parameters are not limited to this, and the user may set the screen locking parameters according to actual requirements.

The closing module 104 is configured to control the detecting unit 30 to stop detecting the motion parameters of the electronic device 1 except the screen locking parameter after the screen locking parameter is determined. For example, when the screen locking parameters include acceleration and ear pressure, the shutdown module 104 controls the gyroscope 302 and the light sensor 303 to shut down the corresponding detection function to stop detecting the motion parameters other than the screen locking parameters, so as to save power.

The following describes a process of determining whether to lock the screen of the electronic device 1 according to the screen locking parameters determined by the machine learning when the mode and the action of the user for answering the call are unknown.

The determining module 105 is configured to determine whether a mode of the user answering the call is an earpiece mode or a hands-free mode when the electronic device 1 answers the call.

In this embodiment, when the electronic device 1 makes or receives a call, a call interface (not shown) is displayed, and the call interface at least includes a hands-free call option. When the user does not select the hands-free call option, the judging module 105 judges that the mode of the user for answering the call is the earphone mode, and when the user selects the hands-free call option, the judging module 105 judges that the mode of the user for answering the call is the hands-free mode.

The detecting module 101 is further configured to control the detecting unit 30 to detect a screen locking parameter of the electronic apparatus 1 during a call answering process of a user when the determining module 105 determines that a call answering mode of the user is a receiver mode. For example, when the lock screen parameters include the acceleration of the electronic device 1 and the pressure of the display screen 40 on the ear of the user.

The judging module 105 is further configured to judge whether the call mode is switched from the hands-free mode to the earpiece mode when it is judged that the mode in which the user answers the call is the hands-free mode. In this embodiment, when the user selects the hands-free call option on the call interface again in the hands-free mode, the determining module 105 determines that the call mode is switched from the hands-free mode to the earpiece mode. The detecting module 101 is further configured to control the detecting unit 30 to detect a screen locking parameter of the electronic device 1 during a process of answering a call of a user when the determining module 105 determines that a call mode is switched from a hands-free mode to an earphone mode.

The determining module 105 is further configured to determine whether the screen locking parameter detected by the detecting unit 30 is within a second preset range.

In this embodiment, the second preset range is determined according to a plurality of data of each screen locking parameter in the first preset range during the machine learning process of the electronic device 1, specifically, between a maximum value and a minimum value of the plurality of data, so that the accuracy of determining that the user performs the action of receiving the phone call by the receiver can be improved. For example, when the acceleration sensor 301 detects a maximum value of a plurality of acceleration data of the electronic device 1 is 4.2m/s2Minimum of 3.5m/s2Then, the second preset range corresponding to the acceleration parameter is 3.5-4.2 m/s2When the maximum value and the minimum value of the pressure data applied to the display screen 40 by the user's ear detected by the pressure sensor 304 are 0.9 n and 0.55 n, the second preset range corresponding to the ear pressure parameter is 0.55-0.9 n.

The determining module 103 is further configured to determine that a user executes an action of answering a call with a receiver when the determining module 105 determines that the screen locking parameter detected by the detecting unit 30 is within a corresponding second preset range.

The closing module 104 is configured to close the display screen 40 of the electronic device 1 when the determining module 103 determines that the user performs an action of answering a call with a handset, so as to avoid misoperation such as mistaken call hanging.

The judging module 105 is further configured to judge whether the current phone is hung up. In this embodiment, the call interface of the electronic device 1 further includes a hang-up option, and when the user selects the hang-up option, the determining module 105 determines that the current call is hung up. In other embodiments, the electronic device 1 includes a button for hanging up the phone, and the determining module 105 determines that the phone is currently hung up when the user presses the button.

The starting module 106 is configured to start the display 40 of the electronic device 1 when the determining module 105 determines that the current phone is hung up, so that the electronic device 1 recovers to a normal operation state.

Please refer to fig. 3, which is a flowchart illustrating a preferred embodiment of the call screen locking method according to the present invention.

Step S101, in a preset time period, when it is determined that the user performs an action of answering a call with the receiver, controlling the detecting unit 30 to detect various action parameters of the electronic device 1.

Step S102, comparing the plurality of data of each motion parameter of the electronic device 1 detected by the detecting unit 30 when determining that the user performs the action of answering the call with the corresponding first preset range, and determining whether the plurality of data of each motion parameter is within the corresponding first preset range.

And step S103, determining the action parameters of the plurality of data in the corresponding first preset range as screen locking parameters.

Step S104, when the electronic device 1 answers the call, judging whether the mode of the user answering the call is a receiver mode. When the judgment result is yes, the flow advances to step S105; when the determination result is no, the flow advances to step S111.

Step S105, controlling the detecting unit 30 to detect the screen locking parameter of the electronic device 1 during the process of answering a call.

Step S106, determining whether the screen locking parameter detected by the detecting unit 30 is within a second predetermined range. When the judgment result is yes, the flow advances to step S107; and when the judgment result is negative, ending the process.

And step S107, determining that the user performs the action of answering the call by the receiver.

Step S108, turning off the display screen 40 of the electronic device 1.

Step S109, judging whether the current telephone is hung up. When the judgment result is yes, the flow advances to step S110; when the judgment result is no, the flow proceeds to step S109.

Step S110, turning on the display screen 40 of the electronic device 1.

Step S111, judging whether the communication mode is switched from the hand-free mode to the receiver mode. If the judgment result is yes, the process goes to step S105; when the judgment result is no, the flow proceeds to step S111.

Further, the method further comprises, after the step S103, the steps of: after the screen locking parameter is determined, the detecting unit 30 is controlled to stop detecting the motion parameters of the electronic device 1 except the screen locking parameter.

Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by a user of ordinary skill in the art that modifications or equivalent substitutions may be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

12页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于移动设备状态栏自动替换方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类