CN105204841A - Measuring range adjusting method and measuring range adjusting device - Google Patents

Measuring range adjusting method and measuring range adjusting device Download PDF

Info

Publication number
CN105204841A
CN105204841A CN201510505764.0A CN201510505764A CN105204841A CN 105204841 A CN105204841 A CN 105204841A CN 201510505764 A CN201510505764 A CN 201510505764A CN 105204841 A CN105204841 A CN 105204841A
Authority
CN
China
Prior art keywords
distance
range
application program
distance sensor
sensor
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.)
Granted
Application number
CN201510505764.0A
Other languages
Chinese (zh)
Other versions
CN105204841B (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 invention discloses a measuring range adjusting method and a measuring range adjusting device and belongs to the technical field of computers. The measuring range adjusting method comprises the following steps: acquiring an application program which is run at a foreground of intelligent equipment; according to a corresponding relation between the pre-set application program and a distance measuring range, inquiring the distance measuring range corresponding to the application program; and setting the distance measuring range of a distance sensor as an inquired distance measuring range. By judging that the pre-set application program is started, the measuring range of the distance sensor is set for the pre-set application program; aiming at the different application programs, the different measuring ranges are set for the distance sensor, so that the utilization of the distance sensor meets the requirements of the application program, and the problems in a related technology that P-sensors have determined measuring ranges so that utilization scenes of the P-sensors are limited are solved; the effect of enlarging the utilization scene of the distance sensor is achieved.

Description

Range adjusting method and device
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a range adjusting method and device.
Background
At present, the range of the P-sensor has a plurality of steps, and the larger the range is, the lower the precision of the corresponding P-sensor is. The P-sensor measuring range is too large in daily use, so that the accuracy is low, and the application in some scenes cannot be met; if the measuring range is too small, the limitation on the use scene is more.
At present, P-sensors on mobile phones are all fixed ranges, and generally a small range with higher precision is selected, so that the use scene of the P-sensors is limited.
Disclosure of Invention
In order to solve the problem that the use scenes of P-sensors are limited due to the fact that the P-sensors are all fixed ranges in the related art, the disclosure provides a range adjusting method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a range adjustment method applied to an intelligent device provided with a distance sensor, the method including:
acquiring an application program running in the foreground of the intelligent equipment;
inquiring the distance range corresponding to the application program according to the corresponding relation between the prestored application program and the distance range;
setting a range of the range sensor to the queried range,
and the application program or the intelligent equipment determines whether to perform preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
The technical effect that above-mentioned technical scheme can reach does: after the preset application program is judged to be started, the range of the distance sensor is set for the preset application program, and different ranges can be set for the distance sensor aiming at different application programs, so that the use of the distance sensor can better meet the requirements of the application program, and the problem that the use scenes of the P-sensors are limited because the P-sensors are all fixed ranges in the related technology is solved; the effect that the use scene of the distance sensor can be enlarged is achieved.
Optionally, when the started application program is an instant messaging program, the queried distance range is smaller than the default distance range of the distance sensor;
and when the started application program is a non-instant messaging program, the inquired distance range is larger than the default distance range of the distance sensor.
The technical effect that above-mentioned technical scheme can reach does: because the instant messaging program usually has a video call function and has strong sensitivity to distance, a range with high sensitivity is adopted, namely the set range is smaller than the default distance range, so that the friendliness of a user when using the instant messaging program can be improved, and the actual use requirements of the user can be met.
Optionally, the method further includes:
displaying a setting interface for setting the distance range of the distance sensor, wherein the setting interface is provided with an input frame for inputting the distance range;
and when the setting control on the setting interface is triggered, adjusting the distance range of the distance sensor to the distance range filled in the input box.
The technical effect that above-mentioned technical scheme can reach does: through providing the setting interface that can set up the distance range for the user to make when setting up distance sensor's distance range, can let user oneself set up according to the habit, reached and made the distance range more laminate user's use habit, thereby improve the effect that the user used and experienced.
Optionally, the method further includes:
and when the voice playing mode of the intelligent equipment is a playing mode, the distance range of the distance sensor is enlarged, and the playing mode is played through a loudspeaker of the intelligent equipment.
The technical effect that above-mentioned technical scheme can reach does: when the voice playing mode of the intelligent equipment is judged to be the playing mode, the distance range of the distance sensor is increased; because when the voice playing equipment of the intelligent equipment is in the external playing mode, the user usually selects to place the voice playing equipment at a position far away from the user, so that the situation that the mobile equipment directly turns off the screen due to an excessively small distance range can be avoided, and the screen turning-off operation conforms to the current use state of the user.
Optionally, the increasing the distance measuring range of the distance sensor includes:
according to the grade of the distance measuring range, the distance measuring range of the distance sensor is reduced by one grade, and the grade of the distance measuring range is in inverse proportion to the corresponding distance; or,
and acquiring the volume of the loudspeaker, determining an increase coefficient according to the volume, increasing the distance range of the distance sensor according to the increase coefficient, wherein the volume and the increase coefficient are in a direct proportional relation.
The technical effect that above-mentioned technical scheme can reach does: when the distance measuring range of the distance sensor is enlarged, the distance measuring range can be automatically reduced by one grade, so that the adjusting process is relatively stable, the phenomenon that the distance measuring range is enlarged to a very large range directly from a large range is avoided, and unexpected sudden response caused by judgment according to the latest measuring range when an application program is used is avoided. Or, when the volume of the loudspeaker is adjusted, because the volume is large, when the user probably places the mobile device at the ear, the distance between the mobile device and the ear is usually large, so that the range can be adjusted according to the volume, the mobile device is more suitable for the actual use condition of the user, and the accuracy of response is ensured.
According to a second aspect of the embodiments of the present disclosure, there is provided a range adjustment apparatus applied to an intelligent device provided with a distance sensor, the apparatus including:
an acquisition module configured to acquire an application program running in a foreground of the smart device;
the query module is configured to query the distance range corresponding to the application program acquired by the acquisition module according to the corresponding relation between the prestored application program and the distance range;
a setting module configured to set a distance range of the distance sensor to the distance range queried by the query module,
and the application program or the intelligent equipment determines whether to perform preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
The technical effect that above-mentioned technical scheme can reach does: after the preset application program is judged to be started, the range of the distance sensor is set for the preset application program, and different ranges can be set for the distance sensor aiming at different application programs, so that the use of the distance sensor can better meet the requirements of the application program, and the problem that the use scenes of the P-sensors are limited because the P-sensors are all fixed ranges in the related technology is solved; the effect that the use scene of the distance sensor can be enlarged is achieved.
Optionally, when the started application program is an instant messaging program, the queried distance range is smaller than the default distance range of the distance sensor;
and when the started application program is a non-instant messaging program, the inquired distance range is larger than the default distance range of the distance sensor.
The technical effect that above-mentioned technical scheme can reach does: because the instant messaging program usually has a video call function and has strong sensitivity to distance, a range with high sensitivity is adopted, namely the set range is smaller than the default distance range, so that the friendliness of a user when using the instant messaging program can be improved, and the actual use requirements of the user can be met.
Optionally, the apparatus further comprises:
a display module configured to display a setting interface for setting a distance range of the distance sensor, the setting interface being provided with an input box for inputting the distance range;
and the adjusting module is configured to adjust the distance measuring range of the distance sensor to the distance measuring range filled in the input box after the setting control on the setting interface is triggered.
The technical effect that above-mentioned technical scheme can reach does: through providing the setting interface that can set up the distance range for the user to make when setting up distance sensor's distance range, can let user oneself set up according to the habit, reached and made the distance range more laminate user's use habit, thereby improve the effect that the user used and experienced.
Optionally, the apparatus further comprises:
the amplification module is configured to amplify the distance range of the distance sensor when the voice playing mode of the intelligent device is a play-out mode, and the play-out mode is a play mode through a loudspeaker of the intelligent device.
The technical effect that above-mentioned technical scheme can reach does: when the voice playing mode of the intelligent equipment is judged to be the playing mode, the distance range of the distance sensor is increased; because when the voice playing equipment of the intelligent equipment is in the external playing mode, the user usually selects to place the voice playing equipment at a position far away from the user, so that the situation that the mobile equipment directly turns off the screen due to an excessively small distance range can be avoided, and the screen turning-off operation conforms to the current use state of the user.
Optionally, the enlarging module includes:
a first enlargement unit configured to lower the distance measurement range of the distance sensor by one level according to a level of the distance measurement range, the level of the distance measurement range being in an inverse proportional relationship with the corresponding distance; or,
the second amplification unit is configured to acquire the volume of the loudspeaker, determine an amplification coefficient according to the volume, and amplify the distance range of the distance sensor according to the amplification coefficient, wherein the volume is in a direct proportion relation with the amplification coefficient.
The technical effect that above-mentioned technical scheme can reach does: when the distance measuring range of the distance sensor is enlarged, the distance measuring range can be automatically reduced by one grade, so that the adjusting process is relatively stable, the phenomenon that the distance measuring range is enlarged to a very large range directly from a large range is avoided, and unexpected sudden response caused by judgment according to the latest measuring range when an application program is used is avoided. Or, when the volume of the loudspeaker is adjusted, because the volume is large, when the user probably places the mobile device at the ear, the distance between the mobile device and the ear is usually large, so that the range can be adjusted according to the volume, the mobile device is more suitable for the actual use condition of the user, and the accuracy of response is ensured.
According to a third aspect of the embodiments of the present disclosure, there is provided a range adjustment apparatus applied to an intelligent device provided with a distance sensor, the apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
acquiring an application program running in the foreground of the intelligent equipment;
inquiring the distance range corresponding to the application program according to the corresponding relation between the prestored application program and the distance range;
setting a range of the range sensor to the queried range,
and the application program or the intelligent equipment determines whether to perform preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
The technical effect that above-mentioned technical scheme can reach does: after the preset application program is judged to be started, the range of the distance sensor is set for the preset application program, and different ranges can be set for the distance sensor aiming at different application programs, so that the use of the distance sensor can better meet the requirements of the application program, and the problem that the use scenes of the P-sensors are limited because the P-sensors are all fixed ranges in the related technology is solved; the effect that the use scene of the distance sensor can be enlarged is achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow chart illustrating a range adjustment method according to an exemplary embodiment;
FIG. 2A is a flow chart illustrating a range adjustment method according to another exemplary embodiment;
FIG. 2B is a schematic diagram illustrating a method of upscaling the range span of a range sensor in accordance with an exemplary embodiment;
FIG. 3A is a flow chart illustrating a range adjustment method according to yet another exemplary embodiment;
FIG. 3B is a schematic diagram illustrating a setup interface according to an exemplary embodiment;
FIG. 4 is a block diagram illustrating a range adjustment apparatus according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating a range adjustment apparatus according to another exemplary embodiment;
fig. 6 is a block diagram illustrating a range adjustment apparatus according to still another exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a range adjustment method according to an exemplary embodiment, where the range adjustment method is applied to a smart device provided with a distance sensor, where the smart device may be a smart phone, a tablet computer, a multimedia player, a smart band, and the like. As shown in fig. 1, the span adjustment method includes the following steps.
In step 101, an application running in the foreground of the smart device is obtained.
In step 102, according to the pre-stored correspondence between the application program and the distance range, the distance range corresponding to the application program is queried.
In step 103, the distance range of the distance sensor is set to the queried distance range.
And the application program or the intelligent device determines whether to perform the preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
For example, when an application is in a video call, the application may turn off the video display function in the video call when the distance measured by the distance sensor is less than the distance measurement range and lasts for a predetermined time.
For example, when the smart device is receiving an incoming call, the smart device may select to turn off the screen when the distance measured by the distance sensor is less than the distance range and lasts for a predetermined time.
In summary, in the range adjustment method provided in the embodiment of the present disclosure, after the predetermined application program is determined to be started, the range of the distance sensor is set for the predetermined application program, and different ranges can be set for the distance sensor for different application programs, so that the use of the distance sensor better meets the requirements of the application program, and the problem that the use scenes of the P-sensors are limited because the P-sensors are all fixed ranges in the related art is solved; the effect that the use scene of the distance sensor can be enlarged is achieved.
Fig. 2A is a flowchart illustrating a range adjustment method according to another exemplary embodiment, where the range adjustment method is applied to a smart device provided with a distance sensor, where the smart device may be a smart phone, a tablet computer, a multimedia player, a smart band, and the like. As shown in fig. 2A, the span adjustment method includes the following steps.
In step 201, an application running in the foreground of the smart device is acquired.
More applications need to determine to perform corresponding operations according to the distance measured by the distance sensor, such as whether to turn off the screen, whether to display image information, whether to convert to speaker for playing, and the like, because the range of the distance sensor can be set for different applications.
In the smart device, especially in a device such as a smart phone or a tablet computer, which is installed with an android system or an ios system, only one application program is usually operated in the foreground at one time, and the application program which is usually operated in the foreground is the application program which is most concerned by a user at present, so that the operation executed by the smart device is more important than other application programs in the background, and at this time, the range of the distance sensor can be preferably set for the application program which is operated in the foreground of the smart device.
In step 202, according to the pre-stored correspondence between the application program and the distance range, the distance range corresponding to the application program is queried.
In an alternative implementation manner, a corresponding distance range may be set for each application program, and a correspondence between the application program and the distance range may be stored in advance.
Optionally, when the started application program is an instant messaging program, the queried distance range is smaller than the default distance range of the distance sensor; when the started application program is a non-instant communication program, the inquired distance range is larger than the default distance range of the distance sensor.
That is, the range pre-stored for the instant messaging program is relatively small, and the range pre-stored for the non-instant messaging program is relatively large.
The instant messaging program is usually an application program with a voice communication function or a video communication function, and a user can make a real-time call according to the voice communication function or the video communication function.
In step 203, the distance range of the distance sensor is set to the queried distance range.
And the application program or the intelligent device determines whether to perform the preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
For example, when an application is in a video call, the application may turn off the video display function in the video call when the distance measured by the distance sensor is less than the distance measurement range and lasts for a predetermined time.
For example, when the smart device is receiving an incoming call, the smart device may select to turn off the screen when the distance measured by the distance sensor is less than the distance range and lasts for a predetermined time.
Therefore, the application program running in the foreground can determine whether to execute corresponding operation according to the measuring range of the distance sensor and the distance measured by the distance sensor, so that the measuring range of the distance sensor is more fit for the application program running in the foreground, and the user friendliness is improved.
In practical application, the voice playing function is a function that is common for mobile devices, and in general, the mobile device utilizes a common speaker to play, so that the default distance range of the distance sensor is generally adapted to the voice playing mode, and when the voice playing mode of the smart device is a play-out mode, the default distance range of the distance sensor does not fit the habit of the user too much, so that the distance range of the distance sensor can be adjusted in step 204. See in particular the description of step 204 below.
In step 204, when the voice playing mode of the smart device is a play-out mode, the distance range of the distance sensor is increased, and the play-out mode is a play through a speaker of the smart device.
In practical application, when the smart device plays by default by using a common speaker, the user usually needs to attach the smart device to the ear of the user to know the received voice signal. Therefore, according to this usage habit, the default range of settings of the smart sensor is typically small, such as typically 10 mm. And if the user chooses the speaker to play the voice signal, because the volume of the sound that the speaker was broadcast is usually greater than the volume that ordinary loudspeaker was broadcast, consequently the user can not generally answer smart machine laminating ear.
However, in a usage scenario, when the external environment is too noisy, it is still necessary for the user to attach the smart device that is playing voice with the speaker to the ear, but at this time, since the smart device plays voice with the speaker, when the user holds the smart device and attaches to the ear, the user does not attach the smart device to the ear tightly, but keeps a distance, and if the distance lasts for a predetermined time (for example, 10s), the user can turn off the screen, because in this case, the user does not generally continue to watch the screen any more, and in order to save power, the user can select to turn off the screen. Therefore, the conditions for performing the screen-off at this time may be: the distance of the smart device from the ear is less than a predetermined distance and for a predetermined length of time. It is obvious that the predetermined distance is the distance range of the distance sensor, and the distance range can obviously be larger than the default range.
That is, when the voice playing mode of the smart device is the play-out mode, the distance range of the distance sensor may be selectively increased in order to better fit the usage habit of the user.
In one possible implementation, please refer to fig. 2B, which is a schematic diagram illustrating a method for increasing a distance range of a distance sensor according to an exemplary embodiment, in fig. 2B, a smart device may include two cases of the following steps when increasing the distance range of the distance sensor:
in the first case, in step 204a, the distance measuring range of the distance sensor is adjusted lower by one step according to the step of the distance measuring range, which is inversely proportional to the corresponding distance.
The inverse relationship between the grade of the distance measurement range and the corresponding distance can be understood as: the higher the grade of the distance range is, the smaller the corresponding distance is; conversely, the lower the grade of the distance range is, the larger the corresponding distance is.
In order to avoid that the difference between the adjusted distance range and the distance range before adjustment is too large, which may cause a user to have a large contrast or a sudden event (for example, the smart device is also turned off when the smart device is far away from the user), the distance range of the distance sensor may be selected to be decreased by one level, that is, when the distance range of the distance sensor is increased, the difference between the increased distance range and the distance range before adjustment is ensured to be smaller than the predetermined difference threshold.
The predetermined difference threshold may be set according to an actual situation, for example, may be 5mm, 10mm, and the like, and the specific value of the predetermined difference threshold is not limited in this embodiment.
In a second case, step 204b, the volume of the loudspeaker is acquired, an increase factor is determined based on the volume, the distance range of the distance sensor is increased based on the increase factor, and the volume is in direct proportion to the increase factor.
The volume is proportional to the turn-up factor, which can be understood as: the larger the volume is, the larger the corresponding turning-up coefficient is; conversely, the smaller the volume is, the smaller the corresponding turning-up coefficient is.
It can be seen from the corresponding relationship between the volume and the amplification system that the larger the volume of the speaker is, the larger the distance range of the distance sensor is amplified. This is because, in a practical application scenario, when the volume of the speaker is larger, the user moves the mobile device to the ear with a larger distance, and therefore, in order to make the difference between the adjusted distance range and the distance range before the adjustment too large, the user may have a larger contrast or an abrupt event when using the smart device (for example, the smart device is also turned off when the smart device is far away from the user), and the turn-up factor of the distance range adjustment of the distance sensor may be determined according to the volume.
In summary, in the range adjustment method provided in the embodiment of the present disclosure, after the predetermined application program is determined to be started, the range of the distance sensor is set for the predetermined application program, and different ranges can be set for the distance sensor for different application programs, so that the use of the distance sensor better meets the requirements of the application program, and the problem that the use scenes of the P-sensors are limited because the P-sensors are all fixed ranges in the related art is solved; the effect that the use scene of the distance sensor can be enlarged is achieved.
In addition, because the instant messaging program usually has a video call function and has strong sensitivity to distance, a measuring range with high sensitivity is adopted, namely the measuring range set for the instant messaging program is smaller than a default distance measuring range, so that the friendliness of a user when using the instant messaging program can be improved, and the actual use requirements of the user can be met.
When the voice playing mode of the intelligent equipment is judged to be the playing mode, the distance range of the distance sensor is increased; because when the voice playing equipment of the intelligent equipment is in the external playing mode, the user usually selects to place the voice playing equipment at a position far away from the user, so that the situation that the mobile equipment directly turns off the screen due to an excessively small distance range can be avoided, and the screen turning-off operation conforms to the current use state of the user.
When the distance measuring range of the distance sensor is enlarged, the distance measuring range can be automatically reduced by one grade, so that the adjusting process is relatively stable, the phenomenon that the distance measuring range is enlarged to a very large range directly from a large range is avoided, and unexpected sudden response caused by judgment according to the latest measuring range when an application program is used is avoided. Or, when the volume of the loudspeaker is adjusted, because the volume is large, when the user probably places the mobile device at the ear, the distance between the mobile device and the ear is usually large, so that the range can be adjusted according to the volume, the mobile device is more suitable for the actual use condition of the user, and the accuracy of response is ensured.
In one possible implementation, in addition to adjusting the distance measuring range of the distance sensor according to the application program running in the foreground of the smart device, the user may set the distance measuring range of the distance sensor by himself, for example, step 205 and step 206 in fig. 3A may be included after step 201.
In step 205, a setting interface for setting the distance range of the distance sensor is displayed, and an input box for inputting the distance range is provided on the setting interface.
In order to enable the user to input the distance measuring range of the distance sensor, an input box is usually provided on the setting interface, so that the user can set the distance measuring range according to the input box.
In step 206, when the setting control on the setting interface is triggered, the distance range of the distance sensor is adjusted to the distance range filled in the input box.
Referring to fig. 3B, which is a schematic diagram of a setting interface according to an exemplary embodiment, in fig. 3B, an input box 34 for inputting a distance range is disposed in the setting interface 32, and a user may input a distance range to be set in the input box 34. When set by the user, the setting control 36 within the setting interface 32 may be triggered, at which point the mobile device may adjust the distance range of the distance sensor to the distance range filled in the input box 34.
In practical applications, the content of the setting interface and the display content and display form of the control are not limited to those shown in fig. 3B, and may be in other manners,
through providing the setting interface that can set up the distance range for the user to make when setting up distance sensor's distance range, can let user oneself set up according to the habit, reached and made the distance range more laminate user's use habit, thereby improve the effect that the user used and experienced.
The steps 205 and 206 may be performed after the step 201, after the step 203 or the step 204, or before the step 201, and the like, and the present embodiment does not limit the order between the steps 205 and 206 and other steps in fig. 2A.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 4 is a block diagram illustrating a range adjustment apparatus according to an exemplary embodiment, which is applied to a smart device provided with a distance sensor, where the smart device may be a smart phone, a tablet computer, a multimedia player, a smart band, and the like. As shown in fig. 4, the range adjustment device includes: an acquisition module 410, a query module 420, and a setup module 430.
An obtaining module 410 configured to obtain an application program running in the foreground of the smart device;
a query module 420 configured to query a distance range corresponding to the application program acquired by the acquisition module 410 according to a pre-stored correspondence between the application program and the distance range;
a setting module 430 configured to set the distance range of the distance sensor to the distance range queried by the query module 420,
and the application program or the intelligent equipment determines whether to perform preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
In a possible implementation manner, when the started application program is an instant messaging program, the queried distance range is smaller than the default distance range of the distance sensor;
when the started application program is a non-instant communication program, the inquired distance range is larger than the default distance range of the distance sensor.
In a possible implementation manner, please refer to fig. 5, which is a block diagram of a range adjustment apparatus according to another exemplary embodiment, in fig. 5, the range adjustment apparatus may further include: a display module 440 and an adjustment module 450.
A display module 440 configured to display a setting interface for setting a distance range of the distance sensor, the setting interface being provided with an input box for inputting the distance range;
an adjusting module 450 configured to adjust the distance measuring range of the distance sensor to the distance measuring range filled in the input box after the setting control on the setting interface is triggered.
In one possible implementation, still referring to fig. 5, the range adjustment device may further include: and an upscaling module 460.
And an enlarging module 460 configured to enlarge the distance range of the distance sensor when the voice playing mode of the smart device is a play-out mode, wherein the play-out mode is a play-out mode through a speaker of the smart device.
In one possible implementation, still referring to fig. 5, the scaling module 460 includes: a first enlarging unit 461 and a second enlarging unit 462.
A first enlarging unit 461 configured to reduce the distance-measuring range of the distance sensor by one level according to a level of the distance-measuring range, the level of the distance-measuring range being inversely proportional to the corresponding distance; or,
a second up-scaling unit 462 configured to acquire a volume of the speaker, determine an up-scaling factor according to the volume, up-scale the distance range of the distance sensor according to the up-scaling factor, the volume being in a direct proportional relationship with the up-scaling factor.
In summary, the range adjusting device provided in the embodiment of the present disclosure sets the range of the distance sensor for the predetermined application program after determining that the predetermined application program is started, and can set different ranges for the distance sensor for different application programs, so that the use of the distance sensor better meets the requirements of the application program, and the problem that the use scenes of the P-sensors are limited because the P-sensors are all fixed ranges in the related art is solved; the effect that the use scene of the distance sensor can be enlarged is achieved.
In addition, because the instant messaging program usually has a video call function and has strong sensitivity to distance, a measuring range with high sensitivity is adopted, namely the measuring range set for the instant messaging program is smaller than a default distance measuring range, so that the friendliness of a user when using the instant messaging program can be improved, and the actual use requirements of the user can be met.
Through providing the setting interface that can set up the distance range for the user to make when setting up distance sensor's distance range, can let user oneself set up according to the habit, reached and made the distance range more laminate user's use habit, thereby improve the effect that the user used and experienced.
When the voice playing mode of the intelligent equipment is judged to be the playing mode, the distance range of the distance sensor is increased; because when the voice playing equipment of the intelligent equipment is in the external playing mode, the user usually selects to place the voice playing equipment at a position far away from the user, so that the situation that the mobile equipment directly turns off the screen due to an excessively small distance range can be avoided, and the screen turning-off operation conforms to the current use state of the user.
When the distance measuring range of the distance sensor is enlarged, the distance measuring range can be automatically reduced by one grade, so that the adjusting process is relatively stable, the phenomenon that the distance measuring range is enlarged to a very large range directly from a large range is avoided, and unexpected sudden response caused by judgment according to the latest measuring range when an application program is used is avoided. Or, when the volume of the loudspeaker is adjusted, because the volume is large, when the user probably places the mobile device at the ear, the distance between the mobile device and the ear is usually large, so that the range can be adjusted according to the volume, the mobile device is more suitable for the actual use condition of the user, and the accuracy of response is ensured.
The apparatus in the above embodiment is not limited to the above module division, and the apparatus in the above embodiment may be divided according to other module division methods, so that the above module division method for the apparatus is not limited to the protection scope of the present invention, and other module division methods should also be within the protection scope of the present invention. The specific manner in which each module performs the operation has been described in detail in the embodiment of the method described in fig. 1, fig. 2A, fig. 2B, and fig. 3A, and the features disclosed in fig. 1, fig. 2A, fig. 2B, and fig. 3A should be applicable to the embodiment of the apparatus in fig. 4 and fig. 5, and therefore, in order to avoid redundancy, detailed descriptions will not be provided here.
An exemplary embodiment of the present disclosure provides a range adjustment device, which can implement the range adjustment method provided by the present disclosure, and is applied to an intelligent device provided with a distance sensor. The range adjusting device includes: a processor, a memory for storing processor-executable instructions;
wherein the processor is configured to:
acquiring an application program running in the foreground of the intelligent equipment;
inquiring the distance range corresponding to the application program according to the corresponding relation between the prestored application program and the distance range;
setting the range of the range sensor to the queried range,
and the application program or the intelligent equipment determines whether to perform preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
Fig. 6 is a block diagram illustrating a range adjustment apparatus according to still another exemplary embodiment. For example, the apparatus 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, apparatus 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 602 may include one or more processors 618 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the apparatus 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 600.
The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, audio component 610 includes a Microphone (MIC) configured to receive external audio signals when apparatus 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the apparatus 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of the components, such as a display and keypad of the device 600, the sensor component 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the apparatus 600 and other devices in a wired or wireless manner. The apparatus 600 may access a wireless network based on a communication standard, such as Wi-Fi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described range adjustment methods.
In an exemplary embodiment, a non-transitory computer readable storage medium including instructions, such as memory 604 including instructions, executable by processor 618 of device 600 to perform the above described span adjustment method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A range adjustment method is applied to intelligent equipment provided with a distance sensor, and comprises the following steps:
acquiring an application program running in the foreground of the intelligent equipment;
inquiring the distance range corresponding to the application program according to the corresponding relation between the prestored application program and the distance range;
setting a range of the range sensor to the queried range,
and the application program or the intelligent equipment determines whether to perform preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
2. The method of claim 1,
when the started application program is an instant messaging program, the inquired distance range is smaller than the default distance range of the distance sensor;
and when the started application program is a non-instant messaging program, the inquired distance range is larger than the default distance range of the distance sensor.
3. The method of claim 1, further comprising:
displaying a setting interface for setting the distance range of the distance sensor, wherein the setting interface is provided with an input frame for inputting the distance range;
and when the setting control on the setting interface is triggered, adjusting the distance range of the distance sensor to the distance range filled in the input box.
4. The method according to any one of claims 1 to 3, further comprising:
and when the voice playing mode of the intelligent equipment is a playing mode, the distance range of the distance sensor is enlarged, and the playing mode is played through a loudspeaker of the intelligent equipment.
5. The method of claim 4, wherein said upscaling the range of the range sensor comprises:
according to the grade of the distance measuring range, the distance measuring range of the distance sensor is reduced by one grade, and the grade of the distance measuring range is in inverse proportion to the corresponding distance; or,
and acquiring the volume of the loudspeaker, determining an increase coefficient according to the volume, increasing the distance range of the distance sensor according to the increase coefficient, wherein the volume and the increase coefficient are in a direct proportional relation.
6. The utility model provides a range adjustment device which characterized in that is applied to in the smart machine that is provided with distance sensor, the device includes:
an acquisition module configured to acquire an application program running in a foreground of the smart device;
the query module is configured to query the distance range corresponding to the application program acquired by the acquisition module according to the corresponding relation between the prestored application program and the distance range;
a setting module configured to set a distance range of the distance sensor to the distance range queried by the query module,
and the application program or the intelligent equipment determines whether to perform preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
7. The apparatus of claim 6,
when the started application program is an instant messaging program, the inquired distance range is smaller than the default distance range of the distance sensor;
and when the started application program is a non-instant messaging program, the inquired distance range is larger than the default distance range of the distance sensor.
8. The apparatus of claim 6, further comprising:
a display module configured to display a setting interface for setting a distance range of the distance sensor, the setting interface being provided with an input box for inputting the distance range;
and the adjusting module is configured to adjust the distance measuring range of the distance sensor to the distance measuring range filled in the input box after the setting control on the setting interface is triggered.
9. The apparatus of any of claims 6 to 8, further comprising:
the amplification module is configured to amplify the distance range of the distance sensor when the voice playing mode of the intelligent device is a play-out mode, and the play-out mode is a play mode through a loudspeaker of the intelligent device.
10. The apparatus of claim 9, wherein the upscaling module comprises:
a first enlargement unit configured to lower the distance measurement range of the distance sensor by one level according to a level of the distance measurement range, the level of the distance measurement range being in an inverse proportional relationship with the corresponding distance; or,
the second amplification unit is configured to acquire the volume of the loudspeaker, determine an amplification coefficient according to the volume, and amplify the distance range of the distance sensor according to the amplification coefficient, wherein the volume is in a direct proportion relation with the amplification coefficient.
11. The utility model provides a range adjustment device which characterized in that is applied to in the smart machine that is provided with distance sensor, the device includes:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
acquiring an application program running in the foreground of the intelligent equipment;
inquiring the distance range corresponding to the application program according to the corresponding relation between the prestored application program and the distance range;
setting a range of the range sensor to the queried range,
and the application program or the intelligent equipment determines whether to perform preset operation according to the relation between the distance measured by the distance sensor in real time and the distance measuring range of the distance sensor.
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 true CN105204841A (en) 2015-12-30
CN105204841B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681553A (en) * 2016-01-06 2016-06-15 惠州Tcl移动通信有限公司 Handheld terminal and method for preventing misoperation
CN107317918A (en) * 2017-05-26 2017-11-03 广东欧珀移动通信有限公司 Parameter setting method and related product
CN110800277A (en) * 2017-09-30 2020-02-14 深圳市欢太科技有限公司 Call processing method and related product

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110201381A1 (en) * 2007-01-07 2011-08-18 Herz Scott M Using ambient light sensor to augment proximity sensor output
CN102801869A (en) * 2012-08-29 2012-11-28 北京小米科技有限责任公司 Method and device for switching answer modes of mobile terminal
CN102932527A (en) * 2012-09-24 2013-02-13 惠州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
CN103377673A (en) * 2012-04-20 2013-10-30 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
CN103533491A (en) * 2013-10-12 2014-01-22 深圳市中兴移动通信有限公司 Mobile terminal
CN104361273A (en) * 2014-10-23 2015-02-18 上海天奕达电子科技有限公司 Intelligent page turning method and terminal
CN104380698A (en) * 2014-04-10 2015-02-25 华为终端有限公司 Verbal system, and switching method and device which are applied to verbal system
CN104683598A (en) * 2015-03-25 2015-06-03 深圳市欧珀通信软件有限公司 Proximity sensor threshold adjusting method and device and intelligent device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110201381A1 (en) * 2007-01-07 2011-08-18 Herz Scott M Using ambient light sensor to augment proximity sensor output
CN103377673A (en) * 2012-04-20 2013-10-30 联想(北京)有限公司 Method for controlling electronic equipment and electronic equipment
CN102801869A (en) * 2012-08-29 2012-11-28 北京小米科技有限责任公司 Method and device for switching answer modes of mobile terminal
CN102932527A (en) * 2012-09-24 2013-02-13 惠州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
CN104683598A (en) * 2015-03-25 2015-06-03 深圳市欧珀通信软件有限公司 Proximity sensor threshold adjusting method and device and intelligent device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681553A (en) * 2016-01-06 2016-06-15 惠州Tcl移动通信有限公司 Handheld terminal and method for preventing misoperation
CN105681553B (en) * 2016-01-06 2020-07-10 惠州Tcl移动通信有限公司 Handheld terminal and misoperation preventing method thereof
CN107317918A (en) * 2017-05-26 2017-11-03 广东欧珀移动通信有限公司 Parameter setting method and related product
CN110800277A (en) * 2017-09-30 2020-02-14 深圳市欢太科技有限公司 Call processing method and related product
CN110800277B (en) * 2017-09-30 2021-05-18 深圳市欢太科技有限公司 Call processing method and related product

Also Published As

Publication number Publication date
CN105204841B (en) 2019-02-15

Similar Documents

Publication Publication Date Title
US20170126192A1 (en) Method, device, and computer-readable medium for adjusting volume
EP3032821B1 (en) Method and device for shooting a picture
CN107493500B (en) Multimedia resource playing method and device
CN107608561B (en) Touch screen control method and device
CN107360326B (en) Terminal volume adjustment processing method and volume adjustment terminal
CN107888984B (en) Short video playing method and device
CN106557201B (en) Pressure detection method and device
EP3024211B1 (en) Method and device for announcing voice call
CN107204883B (en) Network fault processing method and device
CN111128092B (en) Screen brightness adjusting method, screen brightness adjusting device and computer storage medium
CN105898573B (en) Multimedia file playing method and device
CN108200279B (en) Backlight adjusting method, device and equipment
CN107193716B (en) Resource occupation display method and device
US11011124B2 (en) Method and device for adjusting current of backlight, and storage medium
CN105446616A (en) Screen display control method, apparatus and device
CN107197441A (en) The operating mode control method and device of intelligent home device
CN105139874A (en) Navigation prompt method and apparatus
CN108462784A (en) In Call method of adjustment and device
CN105933751A (en) Method and device for adjusting play progress of media file
CN105204841B (en) Range method of adjustment and device
CN108600503B (en) Voice call control method and device
CN108629814B (en) Camera adjusting method and device
EP3125514A1 (en) Method and device for state notification
CN109769191B (en) Audio output detection method and device and electronic equipment
CN105959928A (en) Traffic control 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