A kind of control method of communication terminal and system
Technical field
The present invention relates to a kind of control method and system of communication terminal.
Background technology
In the time calling, current all communication terminals all need to click answering button and just can receive calls on screen, and operation intelligence not, convenient not like this.For having, the user of vision disorder is particularly inconvenient.
Summary of the invention
Technical problem to be solved by this invention is, a kind of control method and system of communication terminal is provided, and realizes according to the orientation of mobile phone and changes and realize automatic telephone and answer control.
Technical problem of the present invention is solved by following technological means:
A kind of control method of communication terminal, described communication terminal comprises a direction sensor and a range sensor, this direction sensor is for the angle value (y of real-time sensing movement communicating terminal on three dimensions under the state opening, z), wherein, y be communication terminal top to the angle between bottom straight line and the horizontal line of user's forward, z is the angle of communication terminal left and right upset; Described range sensor is arranged on the front of communication terminal, for the distance L of real-time sensing movement communicating terminal and human body under the state opening; Described control method comprises the following steps:
S1: monitor the incoming call situation of communication terminal, opening direction transducer and range sensor in the time having incoming call;
S2: the distance value that the angle value that monitoring direction sensor records and range sensor record;
S3: when described distance value is greater than the first predetermined value, and-70 < y <-30 o'clock, record angle value is this moment (y1, z1);
S4: the distance value that the angle value that continuation monitoring direction sensor records and range sensor record, the angle value (y2, z2) after record changes;
S5: whether the absolute value that judges y2-y1 is greater than the second predetermined value, whether the absolute value of z2-z1 is greater than the 3rd predetermined value, and whether L is less than the first predetermined value, if three's judged result is certainly, controls communication terminal connecting incoming call; Otherwise return to step S4.
Preferably:
Described step S3 also comprises, controls communication terminal and shows auto-pickup information.
In described step S5, after control communication terminal incoming call answering, carry out vibration prompting and/or voice message.
Described the first predetermined value is within the scope of 0.3cm-5cm, and described the second predetermined value is within the scope of 50-70, and described the 3rd predetermined value is within the scope of 50-70.
A kind of control system of communication terminal, described communication terminal comprises a direction sensor and a range sensor, this direction sensor is for the angle value (y of real-time sensing movement communicating terminal on three dimensions under the state opening, z), wherein, y be communication terminal top to the angle between bottom straight line and the horizontal line of user's forward, z is the angle of communication terminal left and right upset; Described range sensor is arranged on the front of communication terminal, for the distance L of real-time sensing movement communicating terminal and human body under the state opening; Described control system comprises:
Open unit: for monitoring the incoming call situation of communication terminal, and there being when incoming call opening direction transducer and range sensor;
Monitoring unit: the distance value recording for monitoring angle value that direction sensor records and range sensor;
Record cell: for being greater than the first predetermined value when described distance value, and-70 < y <-30 o'clock, record angle value is this moment (y1, z1); And continue to record the angle value (y2, z2) after follow-up variation;
Control unit: whether be greater than the second predetermined value for the absolute value that judges y2-y1, whether the absolute value of z2-z1 is greater than the 3rd predetermined value, whether L is less than the first predetermined value, if three's judged result is certainly, control communication terminal connecting incoming call, otherwise, control record cell and continue to record the angle value (y2, z2) after follow-up variation.
Preferably:
Described control unit is also for being greater than the first predetermined value when described distance value, and-70 < y <-30 o'clock, controls communication terminal and shows auto-pickup information.
Described control unit also carries out vibration prompting and/or voice message for controlling communication terminal after incoming call answering.
Described the first predetermined value is within the scope of 0.3cm-5cm, and described the second predetermined value is within the scope of 50-70, and described the 3rd predetermined value is within the scope of 50-70.
Compared with prior art, the present invention adopt range sensor and direction sensor survey, calculate obtain user by communication terminal the moment near ear, and automatic call answering, save user and manually click the inconvenience of answering, and method of the present invention can reach and be even better than the effect of manually answering, user can not miss the sound of receiver.
Brief description of the drawings
Fig. 1 is the control method flow chart of the specific embodiment of the invention.
Embodiment
Preferred embodiment the invention will be further described to contrast accompanying drawing combination below.
The control method of the communication terminal of the present embodiment is for realizing the incoming call auto-pickup function of communication terminal, this communication terminal is when comprising a direction sensor and a range sensor, this direction sensor is for the angle value (x of real-time sensing movement communicating terminal on three dimensions under the state opening, y, z), wherein, x is that 360 of communication terminal is spent towards angle, be that all directions are towards angle, y is that communication terminal top is to the angle between bottom straight line and the horizontal line of user's forward, z is the angle of communication terminal left and right upset, described range sensor is arranged on the front of communication terminal, for the distance L of real-time sensing movement communicating terminal and human body under the state opening.
The control method of the communication terminal of the present embodiment comprises the following steps:
S1: monitor the incoming call situation of communication terminal, opening direction transducer and range sensor in the time having incoming call.
S2: the distance value that the angle value that monitoring direction sensor records and range sensor record.
S3: when described distance value is greater than the first predetermined value, and-70 < y <-30 o'clock, now check the state of screen for user's handheld terminal, record angle value is this moment (y1, z1), control communication terminal simultaneously and show auto-pickup information, for example, on screen, show " near ear auto-pickup ".
S4: the distance value that the angle value range sensor that continuation monitoring direction sensor records records, the angle value (y2, z2) after record changes.
S5: whether the absolute value that judges y2-y1 is greater than the second predetermined value, whether the absolute value of z2-z1 is greater than the 3rd predetermined value, whether L is less than the first predetermined value, if three's judged result is certainly, control communication terminal connecting incoming call, control communication terminal simultaneously and after incoming call answering, carry out vibration prompting and/or voice message; Otherwise return to step S4.The principle of this step is from checking that terminal screen is to terminal being placed in to the process of answering in one's ear based on user, can there is the even more left and right upset of wide-angle of 50-70 degree in terminal, terminal can become and more tend to plumbness from heeling condition simultaneously, angle changes also often between the even more variation of wide-angle of 50-70 degree, therefore, the scope of the second predetermined value and the 3rd predetermined value preferably within the scope of 50-70, both equal values 60 of the present embodiment; And the value of the first predetermined value should be within the scope of 0.3-5cm, more preferably 1-3cm is interior to avoid mistake to answer.
The present embodiment also provides a kind of control system of communication terminal, and for above-mentioned communication terminal, this control system comprises:
Open unit: for monitoring the incoming call situation of communication terminal, and there being when incoming call opening direction transducer and range sensor;
Monitoring unit: the distance value recording for monitoring angle value that direction sensor records and range sensor;
Record cell: for being greater than the first predetermined value when described distance value, and-70 < y <-30 o'clock, record angle value is this moment (y1, z1); And continue to record the angle value (y2, z2) after follow-up variation;
Control unit: whether be greater than the second predetermined value for the absolute value that judges y2-y1, whether the absolute value of z2-z1 is greater than the 3rd predetermined value, whether L is less than the first predetermined value, if three's judged result is certainly, control communication terminal connecting incoming call, otherwise, control record cell and continue to record the angle value (y2, z2) after follow-up variation.
Further: described control unit is also for being greater than the first predetermined value when described distance value, and-70 < y <-30 o'clock, control communication terminal and show auto-pickup information and after incoming call answering, carry out vibration prompting and/or voice message for controlling communication terminal.
Described the first predetermined value is within the scope of 0.3cm-5cm, and described the second predetermined value is within the scope of 50-70, and described the 3rd predetermined value is within the scope of 50-70.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For those skilled in the art, without departing from the inventive concept of the premise, can also make some being equal to substitute or obvious modification, and performance or purposes identical, all should be considered as belonging to protection scope of the present invention.