Summary of the invention
An object of the present invention is to solve at least the problems referred to above, and the advantage will illustrated at least is below provided.
A further object of the invention is to provide a kind of mobile phone operation method, and it can detect finger sliding trend by some light sensors, thus facilitates large-screen mobile phone one hand to answer, hang up the telephone.
A further object of the invention detects light luminance change by some light sensors, reaches the effect directly entering into dial dialing mode from sleep pattern.
In order to realize according to these objects of the present invention and other advantages, provide and a kind ofly answering the method for hanging up the telephone for mobile phone, comprising:
Step one, on one of them side of mobile phone, at least three light sensors are installed;
Step 2, the tendency toward sliding utilizing the detection of described light sensor to point, and by described tendency toward sliding input handset CPU;
Step 3, described CPU, according to described tendency toward sliding, perform telephone receiving, hang up or directly enter into from sleep pattern the operation of dial dialing mode.
Preferably, described answers the method for hanging up the telephone for mobile phone, and the tendency toward sliding that described light sensor detects finger specifically comprises the following steps:
A, a default light threshold values;
B, when described light sensor has detected that finger covers, when it detects light luminance lower than described light threshold value, described mobile phone CPU end obtains input signal " 0 "; When finger leaves, when described light sensor detects light luminance higher than described light threshold value, described CPU end obtains input signal " 1 ";
C, when point slide along described three light sensors time, finger is successively through described three light sensors, and described mobile phone CPU holds the input signal obtained to produce corresponding variation tendency according to finger sliding trend.
Preferably, described answers the method for hanging up the telephone for mobile phone, and described light sensor is by Schmidt trigger shaping, and it is connected with the GPIO interface of described mobile phone CPU, and described Schmidt trigger changes the signal of telecommunication into digital signal and sends to CPU.
Preferably, described answers the method for hanging up the telephone for mobile phone, described light sensor is by Schmidt trigger shaping, when mobile phone light sensor is not blocked, its light sensation conducting, described mobile phone CPU input obtains a high level, described mobile phone CPU end obtains signal " 1 ", when there being finger to cover light sensor, its light sensation ends, and described mobile phone CPU end obtains signal " 0 ".
Preferably, described answers the method for hanging up the telephone for mobile phone, when mobile phone is in call alerting mode, if finger upward sliding, described multiple light sensor detects that finger covers and leaves from the bottom up successively, corresponding CPU holds input signal " 0 " and " 1 " successively, after mobile phone detects this variation tendency, and automatic call answering; If finger slide downward, described multiple light sensor detects that finger covers and leaves from top to bottom successively, and corresponding CPU holds input signal " 0 " and " 1 " successively, after mobile phone detects this variation tendency, and automatic refusing to receive telephone.
Preferably, described answers the method for hanging up the telephone for mobile phone, and in a sleep mode, continuous finger covers the hole twice of 3 light sensors with same period, mobile phone directly enters into the pattern of dial.
Preferably, described answers the method for hanging up the telephone for mobile phone, and described interval time is 500ms-1s.
Preferably, described answers the method for hanging up the telephone for mobile phone, and light sensor is arranged on the position of lower middle, mobile phone side.
Preferably, described answers the method for hanging up the telephone for mobile phone, and mobile phone can be set to number of signals that CPU receives and reach the over half of the quantity of light sensor and get final product executable operations.
The present invention at least comprises following beneficial effect: owing to installing at least three light sensors on a side of mobile phone, and by light sensor detect finger sliding time light luminance change, thus send different signals to mobile phone CPU, reach the effect of answering, hanging up or directly entering into from sleep pattern dial dialing mode of phone.The one-handed performance that the method can greatly facilitate large-screen mobile phone telephone receiving, hang up, and enter rapidly dial dialing mode by gesture in a sleep mode, can also reduce the wearing and tearing of mobile phone key while easy to operate.
Part is embodied by explanation below by other advantages of the present invention, target and feature, part also will by research and practice of the present invention by those skilled in the art is understood.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail, can implement according to this with reference to specification word to make those skilled in the art.
Should be appreciated that used hereinly such as " to have ", other element one or more do not allotted in " comprising " and " comprising " term or the existence of its combination or interpolation.
Fig. 2,3 shows the finger sliding trend that one group of the present invention answers, hangs up the telephone.
Fig. 4 shows light sensor and detects light luminance and the signal of telecommunication is converted into by Schmidt trigger shaping the process that digital signal sends to CPU, L1, L2 and L3 in figure are respectively the light sensation of three light sensors, 54AC11014 is Schmidt trigger, and KEY_INPUT1,2,3 receives three GPIO interfaces of CPU respectively.
As shown in Figure 1, the invention provides and a kind ofly answer the method for hanging up the telephone for mobile phone, comprising:
Step one, on one of them side of mobile phone, installing at least three light sensors, is three light sensors Q1, Q2 and Q3 in the present embodiment; Step 2, the tendency toward sliding utilizing the detection of described light sensor to point, and by described tendency toward sliding input handset CPU; Step 3, described CPU, according to described tendency toward sliding, perform telephone receiving, hang up or directly enter into from sleep pattern the operation of dial dialing mode.The object of the technical program performs the operation of answering, hanging up or directly enter into from sleep pattern dial dialing mode by the different tendencys toward sliding of finger on the light sensor of mobile phone side, and, the number of light sensor can self-definedly be arranged, but not lower than three, otherwise be inconvenient to detect tendency toward sliding.
As shown in Figure 4, the tendency toward sliding of described light sensor detection finger specifically comprises the following steps:
A, default a light threshold values, the wherein parameter correlation of light threshold value and light sensation; Light threshold values is 10 lumens in the present invention.When light sensor detects that light luminance is lower than 10 lumen-hours, offering cpu signal " 1 ", when detecting higher than 10 lumen-hours, offering cpu signal " 0 ".
B, when described light sensor has detected that finger covers, when it detects light luminance lower than described light threshold value, described mobile phone CPU end obtains input signal " 0 "; When finger leaves, when described light sensor detects light luminance higher than described light threshold value, described CPU end obtains input signal " 1 ";
C, when point slide along described three light sensors time, finger is successively through described three light sensors, and described mobile phone CPU holds the input signal obtained to produce corresponding variation tendency according to finger sliding trend.Adopt this scheme the tendency toward sliding of finger on light sensor synchronously can be changed into the variation tendency that CPU end obtains signal.
As shown in Figure 4, described light sensor is by Schmidt trigger shaping, and it is connected with the GPIO interface of described mobile phone CPU, and described Schmidt trigger changes the signal of telecommunication into digital signal and sends to CPU.Signal after Schmidt trigger shaping can well be passed to CPU by this technical scheme.
As shown in Figure 4, described light sensor is by Schmidt trigger shaping, when mobile phone light sensor is not blocked, its light sensation conducting, C point ground connection in figure, level becomes 0V, and described mobile phone CPU input obtains a high level, and Schmidt trigger is after shaping, output signal " 1 ", described mobile phone CPU end obtains signal " 1 ", and when there being finger to cover light sensor, its light sensation ends, in figure, C level is 3V, Schmidt trigger is after shaping, and output signal " 0 ", described mobile phone CPU end obtains signal " 0 ".Adopt this scheme, the change of light luminance can well be detected, and change into different signals and send to CPU, thus perform different operating.
When mobile phone is in call alerting mode, if finger upward sliding, as shown in Figure 2, three light sensors detect that finger covers and leaves from the bottom up successively, corresponding CPU holds input signal " 0 " and " 1 " successively, after mobile phone detects this variation tendency, and automatic call answering; If finger slide downward, as shown in Figure 3, three light sensors detect that finger covers and leaves from top to bottom successively, and corresponding CPU holds input signal " 0 " and " 1 " successively, after mobile phone detects this variation tendency, and automatic refusing to receive telephone.This technical scheme has simple, the easy-operating advantage of finger sliding trend.Further, this mode is one preferably example explanation, is not limited to this.User arranges the tendency toward sliding of custom by mobile phone oneself, such as: finger slide downward receives calls, and finger upward sliding phone refusing.
As shown in Figure 1, in a sleep mode, continuous finger covers the hole twice of 3 light sensors with same period, mobile phone directly enters into the pattern of dial.When mobile phone sleep pattern or screen lock state, if user need put through phone, this technical scheme can facilitate user directly to enter dial pattern, and unlocks without button, and the number of times that finger covers light sensor can also self-definedly be arranged, and meets all types of user needs.
As shown in Figure 1, described interval time is 500ms-1s.In general, interval time is that 500ms-1s is proper, and time too short easy erroneous judgement, brings inconvenience; Overlong time, causes operating slowly, loses time.
As shown in Figure 1, light sensor is arranged on the position of lower middle, mobile phone side.Because large-screen mobile phone is comparatively large, adopt this technical scheme can better facilitate finger to slide on light sensor, operate more humane.
Mobile phone can be set to number of signals that CPU receives and reach the over half of the quantity of light sensor and get final product executable operations.If the hand of user quantity that is too little or light sensor is more, may cause when one-handed performance, point and cover not tight on the light sensor of the top or bottom, thus the number of signals causing CPU to receive is less than the quantity of light sensor, makes operation occur erroneous judgement; Therefore mobile phone can be set to number of signals that CPU receives reach the over half of the quantity of light sensor and get final product executable operations, as long as detect that number of signals reaches over half and trend is correct like this, get final product complete operation.
Here the module number illustrated and treatment scale are used to simplify explanation of the present invention.The present invention detects finger sliding trend by some light sensors, thus reach one hand and answer, hang up the telephone or directly enter into dial dialing mode from sleep pattern, and application of the present invention, modifications and variations be will be readily apparent to persons skilled in the art.
As mentioned above, according to the present invention, because some light sensors detects finger sliding trend, therefore have and facilitate large-screen mobile phone one hand to answer, hang up the telephone or directly enter into the effect of dial dialing mode from sleep pattern.
Although embodiment of the present invention are open as above, but it is not restricted to listed in specification and execution mode utilization, it can be applied to various applicable the field of the invention completely, for those skilled in the art, can easily realize other amendment.Therefore do not deviating under the universal that claim and equivalency range limit, the present invention is not limited to specific details and illustrates here and the legend described.