Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
As shown in Figure 1, the embodiment of the invention one provides a kind of bell tone joint method that is used for portable terminal, comprises the steps:
Step 11, when portable terminal has incoming call, described portable terminal obtains the whole parameter of bell tone of described portable terminal, the whole parameter of described bell tone comprises described portable terminal and user's distance at least.
In the present embodiment, described portable terminal can be provided with distance sensing device, and obtains described portable terminal and described user's distance by described distance sensing device.
Step 12, portable terminal be according to the whole parameter of described bell tone, adjust described portable terminal current come the electric bell sound.
In the present embodiment, described portable terminal can be according to itself and described user's distance, correspondingly adjusts it and current comes the electric bell sound.If described distance is less than predefined distance threshold, described portable terminal can be turned the volume of its current call bell sound down, perhaps come the type of electric bell sound to be adjusted into vibration or quiet, perhaps the volume of described portable terminal current call bell sound is turned down and come the type of electric bell sound to be adjusted into vibration described with described; If described distance is greater than predefined distance threshold, described portable terminal can be transferred the volume of its current call bell sound big.
Concrete, be the process that example explanation is obtained described portable terminal and described user distance with this distance sensing device of infrared inductor.Described infrared inductor can place the both sides of described portable terminal, is convenient to respond to described mobile phone users.Before enabling described infrared inductor, described mobile phone users can set in advance an induction threshold value according to its needs.When the distance of described user and described portable terminal during less than described induction threshold value, the infrared ray that described infrared inductor transmitting tube sends since described user itself block and can reflex to its receiving tube, and generate a signal, at this moment, this signal can be accepted and handle to the microprocessor of described infrared inductor, then this signal is sent to the master controller of described portable terminal.Like this, described portable terminal just can obtain the distance between itself and the described user.
By above description as can be seen, when portable terminal has incoming call, can obtain itself and user's distance automatically, and electric bell sound alerting pattern accordingly is set according to described distance, for example transfer described volume of coming the electric bell sound big or turn down, or will be described come the type of electric bell sound to be adjusted into to vibrate or quiet, therefore, utilize the technical scheme of the embodiment of the invention, enriched the experience of user portable terminal.
As shown in Figure 2, the embodiment of the invention two provides a kind of bell tone joint method that is used for portable terminal, comprises the steps:
Step 21, when portable terminal has incoming call, judge whether default object of reference is mobile phone users.
Wherein, described default object of reference can be mobile phone users, also can be other objects.At first, obtain the temperature of described default object of reference by the temperature sensing device that is arranged at described portable terminal, if described temperature is in the design temperature scope, then described portable terminal judges that described default object of reference is described mobile phone users, and carry out the operation ofstep 23, if described temperature is not in the design temperature scope, then described portable terminal judges that described object of reference is not described mobile phone users, carries out the operation ofstep 22.
Step 22, portable terminal are not adjusted its current call bell sound.
Step 23, portable terminal obtain the whole parameter of bell tone of described portable terminal, and the whole parameter of described bell tone comprises described portable terminal and user's distance at least.Step 11 among the reference method embodiment one.
Step 24, portable terminal obtain the current contextual model of described portable terminal.
In the present embodiment, in order to improve the experience of mobile phone users, can regulate the electric bell sound intelligently in conjunction with the residing specific situation pattern of described portable terminal.Wherein, described portable terminal can be by himself obtaining the current contextual model of described portable terminal.Described contextual model comprises first pattern and second pattern, and described first pattern comprises: the environmental pattern that indoor mode, conference model or other noises are smaller etc.; Described second pattern comprises: general mode or outdoor pattern etc.
Step 25, portable terminal be according to whole parameter of described bell tone and current contextual model, adjust described portable terminal current come the electric bell sound.
In the present embodiment, if described portable terminal and user's distance is first pattern less than predefined distance threshold, described contextual model, at this moment, described portable terminal can the volume of coming the electric bell sound that it is current be turned down, perhaps come the type of electric bell sound to be adjusted into vibration or quiet, perhaps the volume of its current call bell sound is turned down and come the type of electric bell sound to be adjusted into vibration described with described; If described distance is second pattern less than predefined distance threshold, described contextual model, at this moment, described portable terminal can the volume of coming the electric bell sound that it is current be transferred big; If described distance is described first pattern greater than predefined distance threshold, described contextual model, at this moment, described portable terminal can the volume of coming the electric bell sound that it is current be turned down or transfer greatly, perhaps come the type of electric bell sound to be adjusted into vibration or quiet, perhaps the volume of its current call bell sound is turned down and come the type of electric bell sound to be adjusted into vibration described with described; If described distance is described second pattern greater than predefined distance threshold, described contextual model, at this moment, described portable terminal can the volume of coming the electric bell sound that it is current be transferred big.
By above description as can be seen, when portable terminal has incoming call, judge at first whether default object of reference is mobile phone users, after definite described default object of reference is mobile phone users, automatically obtain itself and user's distance, and electric bell sound alerting pattern accordingly is set according to described distance and current contextual model, for example transfer described volume of coming the electric bell sound big or turn down, or come the type of electric bell sound to be adjusted into vibration or quiet with described, therefore, utilize the technical scheme of the embodiment of the invention, adjust the electric bell sound exactly, enriched the experience of user portable terminal according to the demand of mobile phone users.
As shown in Figure 3, the embodiment of the invention three provides a kind of portable terminal, comprising:parameter acquiring unit 31 is used for when portable terminal has incoming call, obtain the whole parameter of bell tone of described portable terminal, the whole parameter of described bell tone comprises described portable terminal and user's distance at least;Adjustment unit 32 is used for according to the whole parameter of described bell tone, adjust described portable terminal current come the setting of electric bell sound.
In the present embodiment, when the whole parameter of described bell tone only comprise described portable terminal and user apart from the time, describedparameter acquiring unit 31 comprises distance sensing device, described distance sensing device specifically is used to obtain described portable terminal and described user's distance; Describedadjustment unit 32 specifically is used for working as described distance less than predefined distance threshold, the volume of described portable terminal current call bell sound is turned down, perhaps come the type of electric bell sound to be adjusted into vibration or quiet, perhaps the volume of described portable terminal current call bell sound is turned down and come the type of electric bell sound to be adjusted into vibration described with described; When described distance greater than the setpoint distance threshold value, the volume of described portable terminal current call bell sound is transferred big.
As shown in Figure 4, on the basis of Fig. 3, that adjusts portable terminal for the demand that satisfies the user, exactly comes the electric bell sound, and described portable terminal also comprises:judging unit 41 is used to judge whether default object of reference is mobile phone users;Pattern acquiring unit 42 is used to obtain the current contextual model of described portable terminal; At this moment, describedadjustment unit 32 specifically be used for when described distance less than the setpoint distance threshold value, when described contextual model is first pattern, the volume of coming the electric bell sound that described portable terminal is current is turned down, and/or comes the type of electric bell sound to be adjusted into vibration or quiet with described; When described distance less than the setpoint distance threshold value, when described contextual model is second pattern, the volume of coming the electric bell sound that described portable terminal is current is transferred big; When described distance greater than setpoint distance threshold value, described contextual model was described first pattern, the volume of coming the electric bell sound that described portable terminal is current was turned down or is transferred greatly, and/or came the type of electric bell sound to be adjusted into vibration or quiet with described; When described distance greater than setpoint distance threshold value, described contextual model was described second pattern, the volume of coming the electric bell sound that described portable terminal is current was transferred big; Wherein, described first pattern comprises: the environmental pattern that indoor mode, conference model or other noises are smaller etc.; Described second pattern comprises: general mode or outdoor pattern etc.
Concrete, as shown in Figure 5, describedjudging unit 41 comprises:temperature sensing device 411 is used to obtain the temperature of described default object of reference;Judge module 412 is used for if described temperature in the design temperature scope, judges that then described default object of reference is described user; If described temperature not in the design temperature scope, judges that then described default object of reference is not described user.
Wherein, the operation principle of described portable terminal can be with reference to the description among the inventive method embodiment.
By above description as can be seen, when portable terminal has incoming call, judge at first whether default object of reference is mobile phone users, after definite described default object of reference is mobile phone users, automatically obtain itself and user's distance, and electric bell sound alerting pattern accordingly is set according to described distance and current contextual model, for example transfer described volume of coming the electric bell sound big or turn down, or come the type of electric bell sound to be adjusted into vibration or quiet with described, therefore, utilize the technical scheme of the embodiment of the invention, enriched the experience of user portable terminal.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-0n1y Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.