CN105204841B - Range method of adjustment and device - Google Patents

Range method of adjustment and device Download PDF

Info

Publication number
CN105204841B
CN105204841B CN201510505764.0A CN201510505764A CN105204841B CN 105204841 B CN105204841 B CN 105204841B CN 201510505764 A CN201510505764 A CN 201510505764A CN 105204841 B CN105204841 B CN 105204841B
Authority
CN
China
Prior art keywords
range
apart
sensor
application program
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510505764.0A
Other languages
Chinese (zh)
Other versions
CN105204841A (en
Inventor
潘双全
杜慧
顾凌华
冯静敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiaomi Inc
Original Assignee
Xiaomi Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510505764.0A priority Critical patent/CN105204841B/en
Publication of CN105204841A publication Critical patent/CN105204841A/en
Application granted granted Critical
Publication of CN105204841B publication Critical patent/CN105204841B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure discloses a kind of range method of adjustment and device, belongs to field of computer technology.The range method of adjustment includes: to obtain the application program of the front stage operation of the smart machine;According to the application program prestored and the corresponding relationship between range, inquire corresponding with the application program apart from range;By the range sensor be set as inquiring apart from range it is described apart from range.After determining that scheduled application program is opened, the range of range sensor is set for the scheduled application program, since different application programs can be directed to, different ranges is set for range sensor, therefore the use of range sensor can be made more to meet the requirement of application program, solving P-sensor in the related technology is fixed range, the problem for causing the usage scenario of P-sensor limited;The usage scenario that can expand range sensor is achieved the effect that.

Description

Range method of adjustment and device
Technical field
This disclosure relates to field of computer technology, in particular to a kind of range method of adjustment and device.
Background technique
The range ability of P-sensor has several shelves at present, and range is bigger, and the precision of corresponding P-sensor is lower.In day It is excessive to be often used middle P-sensor range, will lead to that accuracy is lower, is unable to satisfy the application of some scenes;Range is too small Words are relatively more to the limitation of usage scenario.
The P-sensor on mobile phone is fixed range at present, generally the meeting higher small-range of choice accuracy, leads to P- The usage scenario of sensor is limited.
Summary of the invention
It is fixed range to solve P-sensor in the related technology, causes the usage scenario of P-sensor is limited to ask Topic, the disclosure provide a kind of range method of adjustment and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of range method of adjustment is provided, applied to being provided with Distance-sensing In the smart machine of device, which comprises
Obtain the application program of the front stage operation of the smart machine;
According to the application program prestored and the corresponding relationship between range, inquire it is corresponding with the application program away from From range;
Set inquiring described apart from range apart from range for the range sensor,
Wherein, the distance and institute of the application program or the smart machine according to the range sensor real-time measurement State the relationship between range of range sensor, it is determined whether carry out predetermined operation.
The technical effect that above-mentioned technical proposal can achieve are as follows: pre- for this after determining that scheduled application program is opened The range of fixed application program setting range sensor is arranged due to that can be directed to different application programs for range sensor Different ranges, therefore the use of range sensor can be made more to meet the requirement of application program, it solves in the related technology P-sensor is fixed range, the problem for causing the usage scenario of P-sensor limited;Distance-sensing can be expanded by having reached The effect of the usage scenario of device.
Optionally, when the application program of the unlatching is instant messaging program, what is inquired described is less than apart from range The default distance range of the range sensor;
When the application program of the unlatching is non-instant communication program, inquire it is described apart from range be greater than it is described away from Default distance range from sensor.
The technical effect that above-mentioned technical proposal can achieve are as follows: since instant messaging program usually has video calling function Can, it is stronger for the sensibility of distance, therefore using high sensitivity range, also be its setting range be less than default away from From range, therefore friendly of user when using instant messaging program can be improved, is more bonded the actual use demand of user.
Optionally, the method also includes:
It shows the set interface apart from range for the range sensor to be arranged, is arranged in the set interface useful In the input frame of transmission range range;
After the setting control in the set interface is triggered, then the range sensor is adjusted to apart from range Filled in the input frame apart from range.
The technical effect that above-mentioned technical proposal can achieve are as follows: by providing the setting that can be set apart from range for user Interface, so that user oneself can be allowed to be configured according to habit, reached when setting range sensor is apart from range To the use habit for being more bonded user apart from range is made, thus the effect improved the user experience.
Optionally, the method also includes:
When the voice play mode of the smart machine is outer mode playback, the distance measurements of the range sensor are tuned up Journey, the outer mode playback are to be played out by the loudspeaker of the smart machine.
The technical effect that above-mentioned technical proposal can achieve are as follows: by determining that the voice play mode of smart machine is outer When mode playback, tune up range sensor apart from range;Due to smart machine voice playing equipment be outer mode playback when, user It would generally select to place voice playing equipment from oneself remote position, therefore can be led at this time to avoid too small apart from range It causes mobile device directly to go out the case where shielding, shares the current use state in family so that going out and shielding operator.
Optionally, it is described tune up the range sensor apart from range, comprising:
According to the grade apart from range, the range sensor is turned down into a grade apart from range, apart from range Grade is with corresponding apart from inversely proportional relationship;Alternatively,
The volume for obtaining the loudspeaker tunes up coefficient according to volume determination, according to tune up coefficient tune up it is described away from The range with a distance from sensor, the volume tune up coefficient direct proportionality with described.
The technical effect that above-mentioned technical proposal can achieve are as follows: tune up range sensor apart from range when, can from It is dynamic that a grade will be turned down apart from range, so that adjustment process is more steady, it is unlikely to directly to tune up from biggish range To very big range, avoid leading to the burst for occurring unexpected according to the judgement of newest range when using application program Response.Alternatively, when larger due to volume, user may place by mobile device when the volume according to loudspeaker is adjusted When in one's ear, mobile device with the distance between in one's ear would generally be larger, therefore range can be adjusted according to volume, thus The actual use situation for more fitting in user guarantees the accuracy of response.
According to the second aspect of an embodiment of the present disclosure, a kind of range adjustment device is provided, applied to being provided with Distance-sensing In the smart machine of device, described device includes:
Module is obtained, is configured as obtaining the application program of the front stage operation of the smart machine;
Enquiry module is configured as according to the application program and the corresponding relationship between range prestored, inquiry and institute It is corresponding apart from range to state the application program that acquisition module obtains;
Setup module is configured as setting what the enquiry module inquired apart from range for the range sensor It is described apart from range,
Wherein, the distance and institute of the application program or the smart machine according to the range sensor real-time measurement State the relationship between range of range sensor, it is determined whether carry out predetermined operation.
The technical effect that above-mentioned technical proposal can achieve are as follows: pre- for this after determining that scheduled application program is opened The range of fixed application program setting range sensor is arranged due to that can be directed to different application programs for range sensor Different ranges, therefore the use of range sensor can be made more to meet the requirement of application program, it solves in the related technology P-sensor is fixed range, the problem for causing the usage scenario of P-sensor limited;Distance-sensing can be expanded by having reached The effect of the usage scenario of device.
Optionally, when the application program of the unlatching is instant messaging program, what is inquired described is less than apart from range The default distance range of the range sensor;
When the application program of the unlatching is non-instant communication program, inquire it is described apart from range be greater than it is described away from Default distance range from sensor.
The technical effect that above-mentioned technical proposal can achieve are as follows: since instant messaging program usually has video calling function Can, it is stronger for the sensibility of distance, therefore using high sensitivity range, also be its setting range be less than default away from From range, therefore friendly of user when using instant messaging program can be improved, is more bonded the actual use demand of user.
Optionally, described device further include:
Display module is configured as showing the set interface apart from range for the range sensor to be arranged, described The input frame for transmission range range is provided in set interface;
Module is adjusted, is configured as after the setting control in the set interface is triggered, then by the Distance-sensing Device apart from range be adjusted to fill in the input frame apart from range.
The technical effect that above-mentioned technical proposal can achieve are as follows: by providing the setting that can be set apart from range for user Interface, so that user oneself can be allowed to be configured according to habit, reached when setting range sensor is apart from range To the use habit for being more bonded user apart from range is made, thus the effect improved the user experience.
Optionally, described device further include:
Tune up module, be configured as when the voice play mode of the smart machine is outer mode playback, tune up it is described away from The range with a distance from sensor, the outer mode playback are to be played out by the loudspeaker of the smart machine.
The technical effect that above-mentioned technical proposal can achieve are as follows: by determining that the voice play mode of smart machine is outer When mode playback, tune up range sensor apart from range;Due to smart machine voice playing equipment be outer mode playback when, user It would generally select to place voice playing equipment from oneself remote position, therefore can be led at this time to avoid too small apart from range It causes mobile device directly to go out the case where shielding, shares the current use state in family so that going out and shielding operator.
It is optionally, described to tune up module, comprising:
First tunes up unit, is configured as according to the grade apart from range, by the range sensor apart from range tune A low grade, the grade apart from range is with corresponding apart from inversely proportional relationship;Alternatively,
Second tunes up unit, is configured as obtaining the volume of the loudspeaker, tunes up coefficient, root according to volume determination According to tune up coefficient tune up the range sensor apart from range, the volume and described tune up coefficient direct proportionality.
The technical effect that above-mentioned technical proposal can achieve are as follows: tune up range sensor apart from range when, can from It is dynamic that a grade will be turned down apart from range, so that adjustment process is more steady, it is unlikely to directly to tune up from biggish range To very big range, avoid leading to the burst for occurring unexpected according to the judgement of newest range when using application program Response.Alternatively, when larger due to volume, user may place by mobile device when the volume according to loudspeaker is adjusted When in one's ear, mobile device with the distance between in one's ear would generally be larger, therefore range can be adjusted according to volume, thus The actual use situation for more fitting in user guarantees the accuracy of response.
According to the third aspect of an embodiment of the present disclosure, a kind of range adjustment device is provided, applied to being provided with Distance-sensing In the smart machine of device, described device includes:
Processor;
For storing the memory of the processor-executable instruction;
Wherein, the processor is configured to:
Obtain the application program of the front stage operation of the smart machine;
According to the application program prestored and the corresponding relationship between range, inquire it is corresponding with the application program away from From range;
Set inquiring described apart from range apart from range for the range sensor,
Wherein, the distance and institute of the application program or the smart machine according to the range sensor real-time measurement State the relationship between range of range sensor, it is determined whether carry out predetermined operation.
The technical effect that above-mentioned technical proposal can achieve are as follows: pre- for this after determining that scheduled application program is opened The range of fixed application program setting range sensor is arranged due to that can be directed to different application programs for range sensor Different ranges, therefore the use of range sensor can be made more to meet the requirement of application program, it solves in the related technology P-sensor is fixed range, the problem for causing the usage scenario of P-sensor limited;Distance-sensing can be expanded by having reached The effect of the usage scenario of device.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and consistent with the instructions for explaining the principles of this disclosure.
Fig. 1 is a kind of flow chart of range method of adjustment shown according to an exemplary embodiment;
Fig. 2A is a kind of flow chart of the range method of adjustment shown according to another exemplary embodiment;
Fig. 2 B is a kind of schematic diagram apart from range for tuning up range sensor shown according to an exemplary embodiment;
Fig. 3 A is a kind of flow chart of range method of adjustment shown according to another exemplary embodiment;
Fig. 3 B is the schematic diagram of set interface shown according to an exemplary embodiment;
Fig. 4 is a kind of block diagram of range adjustment device shown according to an exemplary embodiment;
Fig. 5 is a kind of block diagram of the range adjustment device shown according to another exemplary embodiment;
Fig. 6 is a kind of block diagram of range adjustment device shown according to another exemplary embodiment.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of flow chart of range method of adjustment shown according to an exemplary embodiment, the range method of adjustment Applied in the smart machine for being provided with range sensor, smart machine said here can for smart phone, tablet computer, Multimedia player, Intelligent bracelet etc..As shown in Figure 1, the range method of adjustment includes the following steps.
In a step 101, it obtains just in the application program of the front stage operation of the smart machine.
In a step 102, according to the application program prestored and the corresponding relationship between range, inquiry applies journey with this Sequence is corresponding apart from range.
In step 103, this for which being set as inquiring apart from range is apart from range.
Application program or smart machine according to this distance the distance of sensor real-time measurement and the range sensor away from From the relationship between range, it is determined whether carry out predetermined operation.
For example, carrying out video calling when an application program, when the distance that range sensor measurement obtains be less than away from From range and it continue for scheduled duration, then the application program can close the video display function in video calling.
Also for example, when smart machine is just in incoming call answering, when the distance obtained when range sensor measurement is less than distance measurements Journey and it continue for scheduled duration, which then can choose the screen that goes out.
In conclusion the range method of adjustment provided in the embodiment of the present disclosure, by determining that scheduled application program is opened Afterwards, the range of range sensor is set for the scheduled application program, since different application programs can be directed to, is passed for distance Different ranges is arranged in sensor, therefore the use of range sensor can be made more to meet the requirement of application program, solves phase P-sensor is fixed range in the technology of pass, the problem for causing the usage scenario of P-sensor limited;Having reached can expand The effect of the usage scenario of range sensor.
Fig. 2A is a kind of flow chart of the range method of adjustment shown according to another exemplary embodiment, the range adjustment side Method is applied to be provided in the smart machine of range sensor, and smart machine said here can be smart phone, plate electricity Brain, multimedia player, Intelligent bracelet etc..As shown in Figure 2 A, which includes the following steps.
In step 201, it obtains just in the application program of the front stage operation of the smart machine.
The distance that more application program needs measure according to range sensor determines execution corresponding operation, than such as whether Carry out the screen that goes out, if show image information, whether be converted into loudspeaker broadcasting etc., because can be set for different application programs Set the range of range sensor.
And smart machine, especially smart phone or tablet computer etc. are equipped in the equipment of Android system or ios system, Usually only have an application program a moment and operates in foreground, and the application program for being normally operated in foreground is that user is current The application program paid close attention to the most, therefore its operation executed is even more important relative to the other applications on backstage, then may be used at this time For the application program of the front stage operation in the smart machine, the range of range sensor preferably is arranged.
In step 202, according to the application program prestored and the corresponding relationship between range, inquiry applies journey with this Sequence is corresponding apart from range.
In an optional implementation manner, can be corresponding apart from range for the setting of each application program, and deposit in advance Store up application program and the corresponding relationship between range.
Optionally, when the application program of the unlatching is instant messaging program, inquire this be less than apart from range should be away from Default distance range from sensor;When the application program of the unlatching is non-instant communication program, the distance measurements that inquire Journey is greater than the default distance range of the range sensor.
That is, being that its is pre-stored smaller apart from range, for non-instant communication journey for instant messaging program Sequence is that its is pre-stored bigger apart from range.
Instant messaging program said here is usually to have the application of the call functions such as speech communication or video communication Program, user can carry out real time phone call according to speech communication function or video communication function.
In step 203, this for which being set as inquiring apart from range is apart from range.
Application program or smart machine according to this distance the distance of sensor real-time measurement and the range sensor away from From the relationship between range, it is determined whether carry out predetermined operation.
For example, carrying out video calling when an application program, when the distance that range sensor measurement obtains be less than away from From range and it continue for scheduled duration, then the application program can close the video display function in video calling.
Also for example, when smart machine is just in incoming call answering, when the distance obtained when range sensor measurement is less than distance measurements Journey and it continue for scheduled duration, which then can choose the screen that goes out.
In this way, just can then be surveyed according to the range and range sensor of range sensor in the application program of front stage operation The distance measured, it is determined whether corresponding operating is executed, so that the range of range sensor is more bonded just in front stage operation Application program use, increase the friendly of user.
In practical applications, voice play function is the more typical function of mobile device, under normal circumstances, mobile device benefit It is played out with conventional horn, therefore the comparison that is usually arranged of the default distance range of range sensor is adapted to this voice and broadcasts Mode playback, and when the voice play mode of smart machine is outer mode playback, the default distance range of range sensor is not too much It is bonded the use habit of user, therefore can adjust the distance being adjusted apart from range of sensor in step 204.Can specifically it join See the description as follows to step 204.
In step 204, when the voice play mode of the smart machine is outer mode playback, the range sensor is tuned up Apart from range, which is to be played out by the loudspeaker of the smart machine.
In practical applications, in default when being played out using conventional horn, user usually requires intelligence smart machine Energy equipment is bonded user ear, to know the voice signal received.Therefore, according to this use habit, intelligence sensor The default range of setting is usually smaller, such as generally 10mm.And if user selects loudspeaker to broadcast voice signal When putting, since the volume of the sound of loudspeaker broadcasting is typically larger than the volume of conventional horn broadcasting, user will not usually be incited somebody to action Smart machine fitting ear is answered.
But in a kind of usage scenario, when external environment is excessively noisy, still it is necessary to will utilize loudspeaker by user The smart machine for carrying out voice broadcasting conforms to ear, but at this time since smart machine is loudspeaker broadcasting, user is being held When thering is smart machine to conform to ear, smart machine can't usually be fitted closely to ear, but there are a distances, and If this distance continue for scheduled duration (such as 10s), can go out screen, because in this case, user usually will not be again Continue viewing screen and then can choose the screen that goes out for power saving.Therefore, the condition at this moment executing the screen that goes out then can be with are as follows: smart machine It is less than preset distance and lasting scheduled duration with a distance from ear.Obviously, preset distance here be range sensor away from From range, range is defaulted in can obviously be greater than apart from range at this time.
That is, when the voice play mode of smart machine is outer mode playback, in order to more be bonded the use of user Habit, can choose tune up the range sensor apart from range.
In one possible implementation, it refers to shown in Fig. 2 B, is shown according to an exemplary embodiment one Kind tunes up the schematic diagram apart from range of range sensor, and in fig. 2b, smart machine is in the distance for tuning up the range sensor When range, two kinds of situations may include steps of:
In step 204a in the first scenario, according to the grade apart from range, by the distance measurements of the range sensor Journey turns down a grade, and the grade apart from range is with corresponding apart from inversely proportional relationship.
Grade apart from range with it is corresponding apart from inversely proportional relationship it is to be understood that the higher grade apart from range, Its corresponding distance is then smaller;Conversely, the lower grade apart from range, corresponding distance is then bigger.
In order to avoid the difference adjusted apart from range range at a distance from before adjustment is excessive, user is caused to use intelligence Can equipment when, have biggish contrast or lofty event (such as when smart machine apart from user farther out when also gone out screen), can To select the range sensor turning down grade apart from range, namely tune up range sensor apart from range when, Guarantee that the difference at a distance from range is before tuning up between range after tuning up is less than predetermined difference value threshold value.
Here predetermined difference value threshold value can be configured according to the actual situation, for example can be 5mm, 10mm etc., this reality Example is applied not to be defined the specific value of predetermined difference value threshold value.
In step 204b in the latter case, the volume of the loudspeaker is obtained, coefficient is tuned up according to volume determination, According to tune up coefficient tune up the range sensor apart from range, which tunes up coefficient direct proportionality with this.
Volume with tune up coefficient direct proportionality it is to be understood that volume is bigger, it is corresponding that tune up coefficient then bigger; Conversely, volume is smaller, corresponding to tune up coefficient then smaller.
By volume and tune up the corresponding relationship between system it is found that the volume of loudspeaker is bigger, it can be by range sensor Apart from the bigger of range adjustment.This is because, when the volume of loudspeaker is bigger, user will move in practical application scene The mobile ear of equipment and bigger with the distance between ear, therefore, for the distance measurements adjusted before range and adjustment The difference of journey is excessive, causes user when using smart machine, has biggish contrast or lofty event and (for example sets when intelligently It is standby apart from user farther out when also gone out screen), adjusting apart from range for sensor of adjusting the distance can be determined according to volume here Tune up coefficient.
In conclusion the range method of adjustment provided in the embodiment of the present disclosure, by determining that scheduled application program is opened Afterwards, the range of range sensor is set for the scheduled application program, since different application programs can be directed to, is passed for distance Different ranges is arranged in sensor, therefore the use of range sensor can be made more to meet the requirement of application program, solves phase P-sensor is fixed range in the technology of pass, the problem for causing the usage scenario of P-sensor limited;Having reached can expand The effect of the usage scenario of range sensor.
In addition, since instant messaging program usually has video call function, it is stronger for the sensibility of distance, therefore It is also that its range being arranged is less than default distance range, therefore user can be improved and using using the range of high sensitivity Friendly when instant messaging program is more bonded the actual use demand of user.
By tuning up the distance measurements of range sensor when the voice play mode for determining smart machine is outer mode playback Journey;When due to the voice playing equipment of smart machine being outer mode playback, user would generally select to place voice playing equipment from Oneself remote position, therefore mobile device can be caused directly to go out the case where shielding apart from range to avoid too small at this time, so that It goes out and shields operator and share the current use state in family.
Tune up range sensor apart from range when, will can turn down a grade apart from range automatically so that Adjustment process is more steady, is unlikely to directly to tune up from biggish range to very big range, avoids using application program When lead to occur unexpected burst according to the judgement of newest range and respond.Alternatively, the volume according to loudspeaker is adjusted When section, when larger due to volume, user may when mobile device is placed in one's ear, mobile device with it is logical the distance between in one's ear Often can be larger, therefore range can be adjusted according to volume, to more fit in the actual use situation of user, guarantee to ring The accuracy answered.
In one possible implementation, in addition to can be according to just in the application program tune of the front stage operation of smart machine Whole range sensor apart from range, can also allow user oneself be arranged range sensor apart from range, such as can be in step Include the steps that in Fig. 3 A 205 and step 206 after rapid 201.
In step 205, the set interface apart from range for the range sensor to be arranged is shown, in the set interface It is provided with the input frame for transmission range range.
In order to allow user oneself transmission range sensor apart from range, usually in set interface setting one it is defeated Enter frame, the size so as to user according to input frame setting apart from range.
In step 206, after the setting control in the set interface is triggered, then by the distance measurements of the range sensor Journey be adjusted to fill in the input frame apart from range.
Fig. 3 B is referred to, is the schematic diagram of set interface shown according to an exemplary embodiment, in figure 3b, setting Be provided with the input frame 34 for transmission range range in interface 32, user can be inputted in input frame 34 want to set up away from From range.After user setting, the setting control 36 in set interface 32 can be triggered, at this point, mobile device can should Range sensor apart from range be adjusted to fill in the input frame 34 apart from range.
In practical applications, the content of set interface and the display content and display format of control are not limited to Fig. 3 B Shown in, it can also be other modes,
By providing the set interface that can be set apart from range for user so that setting range sensor away from When from range, user oneself can be allowed according to habit to be configured, having reached practises the use for being more bonded user apart from range It is used, thus the effect improved the user experience.
Above-mentioned steps 205 and step 206, can also be in step 203 or steps in addition to that can carry out after step 201 Carry out, or can also be carried out before step 201 after 204 etc., the present embodiment is in step 205 and step 206 and Fig. 2A Other steps between sequence without limit.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4 is a kind of block diagram of range adjustment device shown according to an exemplary embodiment, which answers For being provided in the smart machine of range sensor, smart machine said here can be smart phone, tablet computer, more Media player, Intelligent bracelet etc..As shown in figure 4, the range adjustment device includes: to obtain module 410,420 and of enquiry module Setup module 430.
Module 410 is obtained, is configured as obtaining just in the application program of the front stage operation of the smart machine;
Enquiry module 420 is configured as according to the application program that prestores and the corresponding relationship between range, inquiry with The application program that the acquisition module 410 obtains is corresponding apart from range;
Setup module 430 is configured as setting the range sensor to the enquiry module 420 apart from range and inquiring This apart from range,
Wherein, the distance of sensor real-time measurement and the distance pass according to this distance for the application program or the smart machine The relationship between range of sensor, it is determined whether carry out predetermined operation.
In one possible implementation, when the application program of the unlatching is instant messaging program, what is inquired should It is less than the default distance range of the range sensor apart from range;
When the application program of the unlatching is non-instant communication program, this inquired is greater than the Distance-sensing apart from range The default distance range of device.
In one possible implementation, shown in Figure 5, it is one shown according to another exemplary embodiment The block diagram of kind range adjustment device, in Fig. 5, which can also include: display module 440 and adjustment module 450。
Display module 440 is configured as showing the set interface apart from range for the range sensor to be arranged, this sets Set the input frame being provided on interface for transmission range range;
Module 450 is adjusted, is configured as after the setting control in the set interface is triggered, then by the range sensor Apart from range be adjusted to fill in the input frame apart from range.
In one possible implementation, still referring to shown in Fig. 5, which can also include: to tune up Module 460.
Module 460 is tuned up, is configured as tuning up the distance when the voice play mode of the smart machine is outer mode playback Sensor apart from range, which is to be played out by the loudspeaker of the smart machine.
In one possible implementation, still referring to shown in Fig. 5, tuning up module 460, comprising: first tunes up unit 461 and second tune up unit 462.
First tunes up unit 461, is configured as according to the grade apart from range, by the range sensor apart from range tune A low grade, the grade apart from range is with corresponding apart from inversely proportional relationship;Alternatively,
Second tunes up unit 462, is configured as obtaining the volume of the loudspeaker, tunes up coefficient, root according to volume determination According to tune up coefficient tune up the range sensor apart from range, which tunes up coefficient direct proportionality with this.
In conclusion the range adjustment device provided in the embodiment of the present disclosure, by determining that scheduled application program is opened Afterwards, the range of range sensor is set for the scheduled application program, since different application programs can be directed to, is passed for distance Different ranges is arranged in sensor, therefore the use of range sensor can be made more to meet the requirement of application program, solves phase P-sensor is fixed range in the technology of pass, the problem for causing the usage scenario of P-sensor limited;Having reached can expand The effect of the usage scenario of range sensor.
In addition, since instant messaging program usually has video call function, it is stronger for the sensibility of distance, therefore It is also that its range being arranged is less than default distance range, therefore user can be improved and using using the range of high sensitivity Friendly when instant messaging program is more bonded the actual use demand of user.
By providing the set interface that can be set apart from range for user so that setting range sensor away from When from range, user oneself can be allowed according to habit to be configured, having reached practises the use for being more bonded user apart from range It is used, thus the effect improved the user experience.
By tuning up the distance measurements of range sensor when the voice play mode for determining smart machine is outer mode playback Journey;When due to the voice playing equipment of smart machine being outer mode playback, user would generally select to place voice playing equipment from Oneself remote position, therefore mobile device can be caused directly to go out the case where shielding apart from range to avoid too small at this time, so that It goes out and shields operator and share the current use state in family.
Tune up range sensor apart from range when, will can turn down a grade apart from range automatically so that Adjustment process is more steady, is unlikely to directly to tune up from biggish range to very big range, avoids using application program When lead to occur unexpected burst according to the judgement of newest range and respond.Alternatively, the volume according to loudspeaker is adjusted When section, when larger due to volume, user may when mobile device is placed in one's ear, mobile device with it is logical the distance between in one's ear Often can be larger, therefore range can be adjusted according to volume, to more fit in the actual use situation of user, guarantee to ring The accuracy answered.
About the device in above-described embodiment, it is not limited to which above-mentioned module divides, can also be according to other modules Division mode divides the device in above-described embodiment, therefore to device carries out the mode that above-mentioned module divides and can not be used for It limits the scope of protection of the present invention, other module division modes should also be as within the scope of the present invention.Wherein each mould The concrete mode that block executes operation has carried out in the embodiment of the method described in Fig. 1, Fig. 2A, Fig. 2 B, Fig. 3 A in detail Thin description, the feature disclosed in Fig. 1, Fig. 2A, Fig. 2 B, Fig. 3 A should all can be applied to the Installation practice of Fig. 4 and Fig. 5 In, in order to avoid repeating, no detailed explanation will be given here.
An exemplary embodiment of the present disclosure provides a kind of range adjustment devices, can be realized the range tune of disclosure offer Adjusting method, the range adjustment device are applied to be provided in the smart machine of range sensor.The range adjustment device includes: place Manage device, for the memory of storage processor executable instruction;
Wherein, processor is configured as:
It obtains just in the application program of the front stage operation of the smart machine;
According to the application program prestored and the corresponding relationship between range, distance corresponding with the application program is inquired Range;
This that the range sensor is set as inquiring apart from range apart from range,
Wherein, the distance of sensor real-time measurement and the distance pass according to this distance for the application program or the smart machine The relationship between range of sensor, it is determined whether carry out predetermined operation.
Fig. 6 is a kind of block diagram of range adjustment device shown according to another exemplary embodiment.For example, device 600 can To be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, Medical Devices are good for Body equipment, personal digital assistant etc..
Referring to Fig. 6, device 600 may include following one or more components: processing component 602, memory 604, power supply Component 606, multimedia component 608, audio component 610, input/output (I/O) interface 612, sensor module 614, Yi Jitong Believe component 616.
The integrated operation of the usual control device 600 of processing component 602, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 602 may include that one or more processors 618 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 602 may include one or more modules, just Interaction between processing component 602 and other assemblies.For example, processing component 602 may include multi-media module, it is more to facilitate Interaction between media component 608 and processing component 602.
Memory 604 is configured as storing various types of data to support the operation in device 600.These data are shown Example includes the instruction of any application or method for operating on device 600, contact data, and telephone book data disappears Breath, picture, video etc..Memory 604 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 606 provides electric power for the various assemblies of device 600.Power supply module 606 may include power management system System, one or more power supplys and other with for device 600 generate, manage, and distribute the associated component of electric power.
Multimedia component 608 includes the screen of one output interface of offer between device 600 and user.In some realities It applies in example, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen can To be implemented as touch screen, to receive input signal from the user.Touch panel include one or more touch sensors with Sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense the boundary of a touch or slide action, and And also detect duration and pressure relevant to touch or slide.In some embodiments, multimedia component 608 includes One front camera and/or rear camera.It is such as in a shooting mode or a video mode, preceding when device 600 is in operation mode It sets camera and/or rear camera can receive external multi-medium data.Each front camera and rear camera can Be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 610 is configured as output and/or input audio signal.For example, audio component 610 includes a Mike Wind (MIC), when device 600 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 604 or via communication set Part 616 is sent.In some embodiments, audio component 610 further includes a loudspeaker, is used for output audio signal.
I/O interface 612 provides interface between processing component 602 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 614 includes one or more sensors, and the state for providing various aspects for device 600 is commented Estimate.For example, sensor module 614 can detecte the state that opens/closes of device 600, the relative positioning of component, such as component For the display and keypad of device 600, sensor module 614 can be with the position of 600 1 components of detection device 600 or device Set change, the existence or non-existence that user contacts with device 600, the temperature in 600 orientation of device or acceleration/deceleration and device 600 Variation.Sensor module 614 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 614 can also include optical sensor, such as CMOS or ccd image sensor, for answering in imaging With middle use.In some embodiments, which can also include acceleration transducer, gyro sensor, magnetic Sensor, pressure sensor or temperature sensor.
Communication component 616 is configured to facilitate the communication of wired or wireless way between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, such as Wi-Fi, 2G or 3G or their combination.In an exemplary reality It applies in example, communication component 616 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel Breath.In one exemplary embodiment, communication component 616 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 600 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing above-mentioned range method of adjustment.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 604 of instruction, above-metioned instruction can be executed by the processor 618 of device 600 to complete above-mentioned range adjustment side Method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, Floppy disk and optical data storage devices etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (8)

1. a kind of range method of adjustment, which is characterized in that applied in the smart machine for being provided with range sensor, the method Include:
Obtain the application program of the front stage operation of the smart machine;
According to the application program prestored and the corresponding relationship between range, distance measurements corresponding with the application program are inquired Journey;
Set inquiring described apart from range apart from range for the range sensor,
Wherein, the application program or the smart machine according to the distance of the range sensor real-time measurement and it is described away from Relationship between range with a distance from sensor, it is determined whether predetermined operation is carried out,
The method also includes:
When the voice play mode of the smart machine be outer mode playback when, tune up the range sensor apart from range, institute Stating outer mode playback is to be played out by the loudspeaker of the smart machine,
It is described tune up the range sensor apart from range, comprising:
The volume for obtaining the loudspeaker tunes up coefficient according to volume determination, tunes up the distance biography according to coefficient is tuned up Sensor apart from range, the volume and described tune up coefficient direct proportionality.
2. the method according to claim 1, wherein
When the application program of unlatching is instant messaging program, what is inquired described is less than the range sensor apart from range Default distance range;
When the application program of unlatching be non-instant communication program when, inquire it is described apart from range be greater than the range sensor Default distance range.
3. the method according to claim 1, wherein the method also includes:
It shows the set interface apart from range for the range sensor to be arranged, is provided in the set interface for defeated Enter the input frame apart from range;
After the setting control in the set interface is triggered, then the range sensor is adjusted to described apart from range Filled in input frame apart from range.
4. the method according to claim 1, wherein it is described tune up the range sensor apart from range, also Include:
According to the grade apart from range, the range sensor is turned down into a grade apart from range, the grade apart from range With corresponding apart from inversely proportional relationship.
5. a kind of range adjustment device, which is characterized in that applied in the smart machine for being provided with range sensor, described device Include:
Module is obtained, is configured as obtaining the application program of the front stage operation of the smart machine;
Enquiry module is configured as according to the application program and the corresponding relationship between range prestored, and inquiry is obtained with described The application program that modulus block obtains is corresponding apart from range;
Setup module is configured as setting the range sensor to described in the enquiry module inquires apart from range Apart from range,
Wherein, the application program or the smart machine according to the distance of the range sensor real-time measurement and it is described away from Relationship between range with a distance from sensor, it is determined whether predetermined operation is carried out,
Module is tuned up, is configured as when the voice play mode of the smart machine is outer mode playback, the distance is tuned up and passes Sensor apart from range, the outer mode playback is to be played out by the loudspeaker of the smart machine,
It is described to tune up module, comprising:
Second tunes up unit, is configured as obtaining the volume of the loudspeaker, coefficient is tuned up according to volume determination, according to tune Big coefficient tune up the range sensor apart from range, the volume and described tune up coefficient direct proportionality.
6. device according to claim 5, which is characterized in that
When the application program of unlatching is instant messaging program, what is inquired described is less than the range sensor apart from range Default distance range;
When the application program of unlatching be non-instant communication program when, inquire it is described apart from range be greater than the range sensor Default distance range.
7. device according to claim 5, which is characterized in that described device further include:
Display module is configured as showing the set interface apart from range for the range sensor to be arranged, the setting The input frame for transmission range range is provided on interface;
Module is adjusted, is configured as after the setting control in the set interface is triggered, then by the range sensor Apart from range be adjusted to fill in the input frame apart from range.
8. device according to claim 5, which is characterized in that described to tune up module, further includes:
First tunes up unit, is configured as according to the grade apart from range, and the range sensor is turned down one apart from range A grade, the grade apart from range is with corresponding apart from inversely proportional relationship.
CN201510505764.0A 2015-08-17 2015-08-17 Range method of adjustment and device Active CN105204841B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510505764.0A CN105204841B (en) 2015-08-17 2015-08-17 Range method of adjustment and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510505764.0A CN105204841B (en) 2015-08-17 2015-08-17 Range method of adjustment and device

Publications (2)

Publication Number Publication Date
CN105204841A CN105204841A (en) 2015-12-30
CN105204841B true CN105204841B (en) 2019-02-15

Family

ID=54952547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510505764.0A Active CN105204841B (en) 2015-08-17 2015-08-17 Range method of adjustment and device

Country Status (1)

Country Link
CN (1) CN105204841B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681553B (en) * 2016-01-06 2020-07-10 惠州Tcl移动通信有限公司 Handheld terminal and misoperation preventing method thereof
CN107317918B (en) * 2017-05-26 2020-05-08 Oppo广东移动通信有限公司 Parameter setting method and related product
WO2019061536A1 (en) * 2017-09-30 2019-04-04 深圳市云中飞网络科技有限公司 Call processing method and related product

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7957762B2 (en) * 2007-01-07 2011-06-07 Apple Inc. Using ambient light sensor to augment proximity sensor output
CN103377673B (en) * 2012-04-20 2016-12-28 联想(北京)有限公司 A kind of method controlling electronic equipment and electronic equipment
CN102801869B (en) * 2012-08-29 2015-04-29 小米科技有限责任公司 Method and device for switching answer modes of mobile terminal
CN102932527B (en) * 2012-09-24 2015-03-04 惠州Tcl移动通信有限公司 Mobile terminal and calibration method of distance sensor thereof
CN103024163A (en) * 2012-12-03 2013-04-03 广东欧珀移动通信有限公司 Method and system for protecting eyesight and mobile terminal
CN103533491A (en) * 2013-10-12 2014-01-22 深圳市中兴移动通信有限公司 Mobile terminal
CN104380698A (en) * 2014-04-10 2015-02-25 华为终端有限公司 Verbal system, and switching method and device which are applied to verbal system
CN104361273A (en) * 2014-10-23 2015-02-18 上海天奕达电子科技有限公司 Intelligent page turning method and terminal
CN104683598B (en) * 2015-03-25 2017-06-09 广东欧珀移动通信有限公司 Proximity transducer threshold value adjusting method, device and smart machine

Also Published As

Publication number Publication date
CN105204841A (en) 2015-12-30

Similar Documents

Publication Publication Date Title
EP3163748B1 (en) Method, device and terminal for adjusting volume
KR101767203B1 (en) Method, apparatus, control device, smart device, program and computer-readable recording medium for controlling voice of smart device
CN110233934B (en) Electronic equipment control method and device and computer readable storage medium
CN105138319B (en) Event-prompting method and device
CN106371802A (en) Terminal volume control method and device
CN105338389A (en) Method and apparatus for controlling intelligent television
CN104902059A (en) Call reminding method and device
CN106371799A (en) Volume control method and device for multimedia playback equipment
CN110022487A (en) Volume adjusting method and device
CN104112459B (en) Method and apparatus for playing audio data
CN104991754A (en) Recording method and apparatus
CN105187594A (en) Echo canceling method and device
CN107147957B (en) Video broadcasting method and device
CN105511307B (en) The control method and device of a kind of electronic equipment
CN105451093B (en) The method and apparatus for adjusting screen viewing area domain
CN105657186A (en) Volume control method and device
CN106406175B (en) Door opening reminding method and device
CN105468236A (en) Message prompting method and apparatus and terminal
CN104243829A (en) Self-shooting method and self-shooting device
CN105204841B (en) Range method of adjustment and device
CN104682908A (en) Method and device for controlling volume
CN108093132B (en) Terminal device and ringtone volume control method
CN105635916A (en) Audio processing method and apparatus
CN105607319B (en) The automatic method and device for improving light leakage of the screen
CN109194808B (en) Volume adjusting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant