CN108965594B - Terminal equipment adjusting method, system and storage medium - Google Patents

Terminal equipment adjusting method, system and storage medium Download PDF

Info

Publication number
CN108965594B
CN108965594B CN201810743557.2A CN201810743557A CN108965594B CN 108965594 B CN108965594 B CN 108965594B CN 201810743557 A CN201810743557 A CN 201810743557A CN 108965594 B CN108965594 B CN 108965594B
Authority
CN
China
Prior art keywords
distance sensor
noise data
background noise
current
shielding
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
CN201810743557.2A
Other languages
Chinese (zh)
Other versions
CN108965594A (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.)
Meizu Technology Co Ltd
Original Assignee
Meizu Technology Co Ltd
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 Meizu Technology Co Ltd filed Critical Meizu Technology Co Ltd
Priority to CN201810743557.2A priority Critical patent/CN108965594B/en
Publication of CN108965594A publication Critical patent/CN108965594A/en
Application granted granted Critical
Publication of CN108965594B publication Critical patent/CN108965594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Abstract

The invention provides a method and a system for adjusting terminal equipment and a storage medium, wherein the terminal equipment comprises a distance sensor, and the method for adjusting the terminal equipment comprises the following steps: detecting current background noise data through a distance sensor in real time; judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and the judgment reference value; and when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value. The adjusting method of the terminal equipment improves the accuracy when entering the false touch prevention mode, further ensures that the terminal equipment has good self-adaptive capacity, enables the distance sensor to judge the applied functional scene more intelligently, and greatly improves the stability of the distance sensor in a complex scene.

Description

Terminal equipment adjusting method, system and storage medium
Technical Field
The present invention relates to the field of mobile devices, and more particularly, to a method for adjusting a terminal device, a system for adjusting a terminal device, and a computer-readable storage medium.
Background
At present, all need use infrared distance sensor on the cell-phone for whether there is the sheltering from in detection cell-phone the place ahead, and then realize the function of preventing the mistake and touching, simultaneously because infrared distance sensor need openly hide at the cell-phone, consequently need set up the below at the glass apron, the end noise data change that so just probably leads to infrared distance sensor to detect is great, and increase the possibility that the wrong report appears.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art or the related art.
One aspect of the present invention provides a method for adjusting a terminal device.
One aspect of the present invention provides a regulation system of a terminal device.
One aspect of the present invention provides a computer-readable storage medium.
In view of the foregoing, the present invention provides an adjusting method for a terminal device, where the terminal device includes a distance sensor, and the adjusting method for the terminal device includes: detecting current background noise data through a distance sensor in real time; judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and the judgment reference value; and when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value.
The adjusting method of the terminal equipment provided by the invention comprises the steps of firstly detecting current background noise data through a distance sensor in real time to obtain the current background noise data fed back in real time, and obtaining the shielding condition of the distance sensor through the current background noise data and a preset judgment reference value, when the distance sensor is shielded, namely the distance sensor is shielded through the judgment result of the preset judgment reference value, at the moment, the conclusion that the distance sensor is shielded is not directly made, but whether the shielding is effective or not is judged, the effective shielding condition is that a continuously stable shielding object is really arranged in the preset distance in front of the distance sensor, so that the background noise data can be always kept in a larger range, and the invalid shielding condition is that a shielding object is arranged outside a certain distance of the distance sensor, so that the background noise data is kept relatively larger, however, this situation may be that the user places the terminal device in a stable environment in which the display of the background noise data is blocked, but the terminal device is stably in this state, so that it may be estimated that this state may be a state in which the user needs to normally use the terminal device, and then after determining that the current blocking of the distance sensor is invalid blocking, the judgment reference value needs to be updated, and the current background noise data detected in real time is checked using the updated judgment reference value, so that the judgment result at this time is more accurate, and when the result of the re-determination is blocking, the terminal device is controlled to enter the anti-false touch mode, that is, because the terminal device is too close to the blocking object, any touch operation received on the display screen of the terminal device is considered as a false operation (for example, after the user places the terminal device in a pocket, in order to avoid the unconscious touch control of the body on the display screen and further enter the false touch prevention mode), the accuracy when entering the false touch prevention mode is improved, and further the terminal equipment is ensured to have good self-adaptive capacity, so that the distance sensor can judge the applied functional scene more intelligently, and the stability of the distance sensor under the complex scene is greatly improved.
Specifically, the specific step of using the distance sensor is that invisible light such as infrared rays is emitted outwards through the distance sensor, reflected background noise data is detected after the infrared rays are reflected, and when the numerical value of the background noise data is large, it is indicated that more infrared rays are reflected, it is known that the distance between the shielding object and the distance sensor is short, and a false touch prevention mode needs to be entered; when the value of the received background noise data is detected to be small, the reflected infrared rays are few, and the fact that the distance between the shielding object and the distance sensor is long can be known, and the mistaken touch prevention mode does not need to be entered.
In addition, the adjusting method for the terminal device provided by the above technical solution of the present invention further has the following additional technical features:
in any of the above technical solutions, preferably, the step of determining whether the current occlusion of the distance sensor is an invalid occlusion when the distance sensor is occluded according to the current background noise data and the determination reference value includes: judging whether the distance sensor is shielded or not according to the current bottom noise data and the judgment reference value; and when the distance sensor is judged to be shielded, judging whether the current background noise data is larger than a first threshold value, if so, judging that the shielding is effective, and otherwise, judging that the shielding is invalid.
In the technical scheme, a scheme for judging whether the distance sensor is invalid shielding is provided, firstly, judging the current background noise data by using a judgment reference value according to the current background noise data and the judgment reference value, judging whether the current background noise data is greater than a first threshold value again when the distance sensor is judged to be shielding, judging that the current background noise data is valid shielding when the current background noise data is greater than the first threshold value, and judging that the current background noise data is invalid shielding when the current background noise data is not greater than the first threshold value; it is understood that when the current noise floor data is not greater than the first threshold, it indicates that there may be an obstruction in front of the distance sensor, but the obstruction is not close enough to the distance sensor and therefore should not be directly determined as an obstruction, and the obstruction at this time belongs to an invalid obstruction.
In any of the above technical solutions, preferably, the judgment reference value includes a calibration value, a first threshold and a second threshold, where the first threshold is greater than the second threshold; the step of judging whether the distance sensor is shielded or not according to the current background noise data and the judgment reference value comprises the following steps: judging whether the sum of the calibration value and the first threshold is smaller than the current background noise data, if so, judging that the distance sensor is shielded; wherein the first threshold is greater than the sum of the calibration value and the first threshold.
In this technical solution, a scheme for determining whether a distance sensor is shielded is provided, where a determination reference value includes a calibration value, a first threshold and a second threshold, where the first threshold is greater than the second threshold, that is, the first threshold is a high threshold, and the second threshold is a low threshold, first of all, it is determined whether a sum of the calibration value and the first threshold is smaller than current ground noise data, and when the sum of the calibration value and the first threshold is smaller than the current ground noise data, it is determined that the distance sensor is shielded, and thus, when it is subsequently determined whether the distance sensor is invalid shielded, it is determined that the first threshold is greater than the sum of the calibration value and the first threshold, so that when the current ground noise data is greater than the sum of the calibration value and the first threshold, and is smaller than the first threshold, it is.
In any one of the above technical solutions, preferably, when the current occlusion of the distance sensor is an invalid occlusion, the step of updating the judgment reference value includes: and when the current shielding of the distance sensor is invalid shielding, updating the calibration value according to the current background noise data for multiple times.
In the technical scheme, a specific scheme for updating the judgment reference value is provided, when the current shielding of the distance sensor is judged to be invalid shielding, current background noise data for a plurality of times is acquired, and the calibration value is updated according to the current background noise data for a plurality of times, so that the updated calibration value is more consistent with the current working environment.
In any of the above technical solutions, preferably, when the current occlusion of the distance sensor is an invalid occlusion, the step of updating the calibration value according to the current background noise data for a plurality of times includes: and averaging the current background noise data for multiple times, and updating the calibration value according to the average value.
In the technical scheme, a further specific scheme for updating the judgment reference value is provided, wherein multiple times of current background noise data are obtained, an average value is obtained according to the multiple times of current background noise data, and the calibration value is updated according to the average value, so that the updated calibration value is more consistent with the current working environment.
In any of the above technical solutions, preferably, the method for adjusting the terminal device further includes: and detecting whether the terminal equipment is in a non-call mode.
In the technical scheme, a precondition for starting the distance sensor to start detection is set, whether the terminal equipment is in a non-call mode is detected firstly, and when the terminal equipment is in the non-call mode, subsequent operation is carried out, and when the terminal equipment is in the call mode, because a use scene is determined and the requirement for preventing false touch during call is obvious, the judgment reference value does not need to be updated, and the condition that normal call is not influenced by face false touch during call of a user is ensured.
The invention provides a regulating system of terminal equipment, the terminal equipment comprises a distance sensor, the regulating system of the terminal equipment comprises: a memory for storing a computer program; a processor for executing a computer program to: detecting current background noise data through a distance sensor in real time; judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and the judgment reference value; and when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value.
The invention provides a regulating system of terminal equipment, which comprises: the processor is used for executing the computer program, firstly, the current background noise data is detected through the distance sensor in real time to obtain the current background noise data fed back in real time, and the shielding condition of the distance sensor is obtained through the current background noise data and a preset judgment reference value, when the distance sensor is shielded, the judgment result of the preset judgment reference value is that the distance sensor is shielded, at the moment, the conclusion that the distance sensor is shielded cannot be directly made, but whether the shielding is effective or not is judged, the effective shielding condition is that a continuous and stable shielding object is really arranged in a preset distance in front of the distance sensor, so that the background noise data can be always kept in a larger range, and the invalid shielding condition is that the shielding object is arranged outside a certain distance of the distance sensor, the background noise data is kept relatively large, but this may be the case that the user places the terminal device in a stable environment, in which although the background noise data is displayed and blocked, the terminal device may be stably in this state, and therefore it may be estimated that this state may be a state in which the user needs to normally use the terminal device, at this time, after the current blocking of the distance sensor is determined to be invalid blocking, the judgment reference value needs to be updated, and the current background noise data detected in real time is checked using the updated judgment reference value, so that the result of the judgment at this time is more accurate, and when the result of the re-determination is blocking, the terminal device is controlled to enter the false touch prevention mode, that is, because the terminal device is too close to the blocking object, any touch operation received on the display screen of the terminal device is considered as a false operation (for example, after the user places the terminal device in a pocket, in order to avoid the unconscious touch control of the body on the display screen and further enter the false touch prevention mode), the accuracy when entering the false touch prevention mode is improved, and further the terminal equipment is ensured to have good self-adaptive capacity, so that the distance sensor can judge the applied functional scene more intelligently, and the stability of the distance sensor under the complex scene is greatly improved.
Specifically, the specific step of using the distance sensor is that invisible light such as infrared rays is emitted outwards through the distance sensor, reflected background noise data is detected after the infrared rays are reflected, and when the numerical value of the background noise data is large, it is indicated that more infrared rays are reflected, it is known that the distance between the shielding object and the distance sensor is short, and a false touch prevention mode needs to be entered; when the value of the received background noise data is detected to be small, the reflected infrared rays are few, and the fact that the distance between the shielding object and the distance sensor is long can be known, and the mistaken touch prevention mode does not need to be entered.
In any of the above technical solutions, preferably, the processor is specifically configured to execute a computer program to: a processor, in particular for executing a computer program to: according to the current background noise data and the judgment reference value, when the distance sensor is shielded, judging whether the current shielding of the distance sensor is invalid shielding or not, wherein the step comprises the following steps of: judging whether the distance sensor is shielded or not according to the current bottom noise data and the judgment reference value; and when the distance sensor is judged to be shielded, judging whether the current background noise data is larger than a first threshold value, if so, judging that the shielding is effective, and otherwise, judging that the shielding is invalid.
In the technical scheme, a scheme for judging whether the distance sensor is invalid shielding is provided, firstly, judging the current background noise data by using a judgment reference value according to the current background noise data and the judgment reference value, judging whether the current background noise data is greater than a first threshold value again when the distance sensor is judged to be shielding, judging that the current background noise data is valid shielding when the current background noise data is greater than the first threshold value, and judging that the current background noise data is invalid shielding when the current background noise data is not greater than the first threshold value; it is understood that when the current noise floor data is not greater than the first threshold, it indicates that there may be an obstruction in front of the distance sensor, but the obstruction is not close enough to the distance sensor and therefore should not be directly determined as an obstruction, and the obstruction at this time belongs to an invalid obstruction.
In any of the above technical solutions, preferably, the judgment reference value includes a calibration value, a first threshold and a second threshold, where the first threshold is greater than the second threshold; a processor, in particular for executing a computer program to: the step of judging whether the distance sensor is shielded or not according to the current background noise data and the judgment reference value comprises the following steps: judging whether the sum of the calibration value and the first threshold is smaller than the current background noise data, if so, judging that the distance sensor is shielded; wherein the first threshold is greater than the sum of the calibration value and the first threshold.
In this technical solution, a scheme for determining whether a distance sensor is shielded is provided, where a determination reference value includes a calibration value, a first threshold and a second threshold, where the first threshold is greater than the second threshold, that is, the first threshold is a high threshold, and the second threshold is a low threshold, first of all, it is determined whether a sum of the calibration value and the first threshold is smaller than current ground noise data, and when the sum of the calibration value and the first threshold is smaller than the current ground noise data, it is determined that the distance sensor is shielded, and thus, when it is subsequently determined whether the distance sensor is invalid shielded, it is determined that the first threshold is greater than the sum of the calibration value and the first threshold, so that when the current ground noise data is greater than the sum of the calibration value and the first threshold, and is smaller than the first threshold, it is.
In any of the above technical solutions, preferably, the processor is specifically configured to execute a computer program to: when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, wherein the step comprises the following steps: and when the current shielding of the distance sensor is invalid shielding, updating the calibration value according to the current background noise data for multiple times.
In the technical scheme, a specific scheme for updating the judgment reference value is provided, when the current shielding of the distance sensor is judged to be invalid shielding, current background noise data for a plurality of times is acquired, and the calibration value is updated according to the current background noise data for a plurality of times, so that the updated calibration value is more consistent with the current working environment.
In any of the above technical solutions, preferably, the processor is specifically configured to execute a computer program to: when the current shielding of the distance sensor is invalid shielding, updating the calibration value according to the current background noise data for a plurality of times, wherein the step comprises the following steps: and averaging the current background noise data for multiple times, and updating the calibration value according to the average value.
In the technical scheme, a further specific scheme for updating the judgment reference value is provided, wherein multiple times of current background noise data are obtained, an average value is obtained according to the multiple times of current background noise data, and the calibration value is updated according to the average value, so that the updated calibration value is more consistent with the current working environment.
In any of the above technical solutions, preferably, the processor is specifically configured to execute a computer program to: and detecting whether the terminal equipment is in a non-call mode.
In the technical scheme, a precondition for starting the distance sensor to start detection is set, whether the terminal equipment is in a non-call mode is detected firstly, and when the terminal equipment is in the non-call mode, subsequent operation is carried out, and when the terminal equipment is in the call mode, because a use scene is determined and the requirement for preventing false touch during call is obvious, the judgment reference value does not need to be updated, and the condition that normal call is not influenced by face false touch during call of a user is ensured.
According to a third aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the adjusting method of the terminal device according to any one of the above-mentioned technical solutions, and therefore, has all the advantages of the adjusting method of the terminal device according to any one of the above-mentioned technical solutions.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 shows a flow chart of an adjustment method of a terminal device according to an embodiment of the invention;
fig. 2 shows a further flowchart of an adaptation method of a terminal device according to an embodiment of the invention;
fig. 3 shows a further flowchart of an adaptation method of a terminal device according to an embodiment of the invention;
fig. 4 shows a further flowchart of an adaptation method of a terminal device according to an embodiment of the invention;
fig. 5 shows a block schematic of a regulating system of a terminal device according to an embodiment of the invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a more particular description of the invention will be rendered by reference to the appended drawings. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention, however, the present invention may be practiced otherwise than as specifically described herein, and thus the scope of the present invention is not limited by the specific embodiments disclosed below.
A method and a system for adjusting a terminal device according to an embodiment of the present invention are described below with reference to fig. 1 to 5.
Fig. 1 shows a flow diagram of an adjusting method of a terminal device according to an embodiment of the invention.
As shown in fig. 1, an adjusting method of a terminal device according to an embodiment of the present invention includes:
s102, detecting current background noise data through a distance sensor in real time;
s104, judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and the judgment reference value;
and S106, when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value.
The adjusting method of the terminal equipment provided by the invention comprises the steps of firstly detecting current background noise data through a distance sensor in real time to obtain the current background noise data fed back in real time, and obtaining the shielding condition of the distance sensor through the current background noise data and a preset judgment reference value, when the distance sensor is shielded, namely the distance sensor is shielded through the judgment result of the preset judgment reference value, at the moment, the conclusion that the distance sensor is shielded is not directly made, but whether the shielding is effective or not is judged, the effective shielding condition is that a continuously stable shielding object is really arranged in the preset distance in front of the distance sensor, so that the background noise data can be always kept in a larger range, and the invalid shielding condition is that a shielding object is arranged outside a certain distance of the distance sensor, so that the background noise data is kept relatively larger, however, this situation may be that the user places the terminal device in a stable environment in which the display of the background noise data is blocked, but the terminal device is stably in this state, so that it may be estimated that this state may be a state in which the user needs to normally use the terminal device, and then after determining that the current blocking of the distance sensor is invalid blocking, the judgment reference value needs to be updated, and the current background noise data detected in real time is checked using the updated judgment reference value, so that the judgment result at this time is more accurate, and when the result of the re-determination is blocking, the terminal device is controlled to enter the anti-false touch mode, that is, because the terminal device is too close to the blocking object, any touch operation received on the display screen of the terminal device is considered as a false operation (for example, after the user places the terminal device in a pocket, in order to avoid the unconscious touch control of the body on the display screen and then enter the anti-false touch mode), the accuracy when entering the anti-false touch mode is improved, and then the terminal equipment is ensured to have good self-adaptive capacity, so that the distance sensor can judge the applied functional scene more intelligently, the stability of the distance sensor under the complex scene is greatly improved, and the stability of the infrared function of the distance sensor is ensured while the hiding effect of the distance sensor is not influenced.
Specifically, the specific step of using the distance sensor is that invisible light such as infrared rays is emitted outwards through the distance sensor, reflected background noise data is detected after the infrared rays are reflected, and when the numerical value of the background noise data is large, it is indicated that more infrared rays are reflected, it is known that the distance between the shielding object and the distance sensor is short, and a false touch prevention mode needs to be entered; when the value of the received background noise data is detected to be small, the reflected infrared rays are few, and the fact that the distance between the shielding object and the distance sensor is long can be known, and the mistaken touch prevention mode does not need to be entered.
Fig. 2 shows a flow diagram of an adjusting method of a terminal device according to an embodiment of the invention.
As shown in fig. 2, the adjusting method of the terminal device according to an embodiment of the present invention includes:
s202, detecting current background noise data through a distance sensor in real time;
s204, judging whether the distance sensor is shielded or not according to the current bottom noise data and the judgment reference value;
s206, when the distance sensor is judged to be shielded, judging whether the current background noise data is larger than a first threshold value, if so, judging that the shielding is effective, otherwise, judging that the shielding is invalid;
and S208, when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value.
In this embodiment, a scheme for determining whether a distance sensor is currently in an invalid occlusion state is provided, where first, according to current ground noise data and a determination reference value, the determination reference value is used to determine the current ground noise data, and when the distance sensor is determined to be in an occlusion state, it is determined whether the current ground noise data is greater than a first threshold value again, and when the current ground noise data is greater than the first threshold value, it is determined that the current ground noise data is in an valid occlusion state, and when the current ground noise data is not greater than the first threshold value, it is determined that the current ground noise data is in an invalid occlusion state; it is understood that when the current noise floor data is not greater than the first threshold, it indicates that there may be an obstruction in front of the distance sensor, but the obstruction is not close enough to the distance sensor and therefore should not be directly determined as an obstruction, and the obstruction at this time belongs to an invalid obstruction.
Fig. 3 shows a flow diagram of an adjusting method of a terminal device according to an embodiment of the invention.
As shown in fig. 3, the adjusting method of the terminal device according to an embodiment of the present invention includes:
s302, detecting current background noise data through a distance sensor in real time;
s304, judging whether the sum of the calibration value and the first threshold is smaller than the current background noise data, if so, judging that the distance sensor is shielded;
s306, when the distance sensor is judged to be shielded, judging whether the current background noise data is larger than a first threshold value, if so, judging that shielding is effective, otherwise, judging that shielding is invalid;
and S308, when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value.
In this embodiment, a scheme for determining whether the distance sensor is shielded is provided, where the determination reference value includes a calibration value, a first threshold and a second threshold, where the first threshold is greater than the second threshold, that is, the first threshold is a high threshold, and the second threshold is a low threshold, first, it is determined whether a sum of the calibration value and the first threshold is smaller than current ground noise data, and when the sum of the calibration value and the first threshold is smaller than the current ground noise data, it is determined that the distance sensor is shielded, and thus when it is subsequently determined whether the distance sensor is invalid shielding, it is determined that the first threshold is greater than the sum of the calibration value and the first threshold, so that the current ground noise data is greater than the sum of the calibration value and the first threshold, and when the current ground noise data is smaller than the first threshold.
Fig. 4 shows a flow diagram of an adjusting method of a terminal device according to an embodiment of the invention.
As shown in fig. 4, an adjusting method of a terminal device according to an embodiment of the present invention includes:
s402, detecting current background noise data through a distance sensor in real time;
s404, judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and the judgment reference value;
s406, when the current shielding of the distance sensor is invalid shielding, updating a calibration value according to multiple times of current background noise data;
and S408, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value.
In this embodiment, a specific scheme for updating the judgment reference value is provided, where when it is determined that the current occlusion of the distance sensor is an invalid occlusion, current background noise data is obtained for a plurality of times, and the calibration value is updated according to the current background noise data for the plurality of times, so that the updated calibration value better conforms to the current working environment.
In an embodiment provided by the present invention, preferably, when the current occlusion of the distance sensor is an invalid occlusion, the step of updating the calibration value according to the current noise floor data for a plurality of times includes: and averaging the current background noise data for multiple times, and updating the calibration value according to the average value.
In this embodiment, a further specific scheme for updating the judgment reference value is provided, where current background noise data is obtained multiple times, an average value is obtained according to the current background noise data multiple times, and the calibration value is updated according to the average value, so that the updated calibration value is more suitable for the current working environment.
In one embodiment provided in the present invention, preferably, the adjusting method of the terminal device further includes: and detecting whether the terminal equipment is in a non-call mode.
In this embodiment, a precondition for starting the distance sensor to start detection is set, and first, whether the terminal device is in a non-call mode is detected, and when the terminal device is in the non-call mode, subsequent operations are performed, and when the terminal device is in the call mode, since the usage scenario is already determined and the requirement for preventing false touch during call is obvious, the judgment reference value does not need to be updated, and it is ensured that the normal call is not affected by the false touch of the face during the call of the user.
As shown in fig. 5, the present invention provides an adjusting system 500 of a terminal device, the terminal device includes a distance sensor, and the adjusting system 500 of the terminal device includes: a memory 502 for storing a computer program; a processor 504 for executing a computer program to: detecting current background noise data through a distance sensor in real time; judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and the judgment reference value; and when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value.
The present invention provides a system 500 for adjusting a terminal device, including: a memory 502 and a processor 504, the memory 502 is used for storing a computer program, the processor 504 is used for executing the computer program, firstly, the current background noise data is detected by the distance sensor in real time to obtain the current background noise data fed back in real time, and the shielding condition of the distance sensor is obtained by the current background noise data and a preset judgment reference value, when the distance sensor is shielded, namely, the distance sensor is shielded according to the judgment result of the preset judgment reference value, at the moment, the conclusion that the distance sensor is shielded is not directly made, but whether the shielding is effective is judged, the effective shielding condition is that a continuous and stable shielding object is really arranged in the preset distance in front of the distance sensor, so that the background noise data can be always kept in a larger range, and the invalid shielding condition is that the shielding object is arranged outside a certain distance of the distance sensor, the background noise data is kept relatively large, but this may be the case that the user places the terminal device in a stable environment, in which although the background noise data is displayed and blocked, the terminal device may be stably in this state, and therefore it may be estimated that this state may be a state in which the user needs to normally use the terminal device, at this time, after the current blocking of the distance sensor is determined to be invalid blocking, the judgment reference value needs to be updated, and the current background noise data detected in real time is checked using the updated judgment reference value, so that the result of the judgment at this time is more accurate, and when the result of the re-determination is blocking, the terminal device is controlled to enter the false touch prevention mode, that is, because the terminal device is too close to the blocking object, any touch operation received on the display screen of the terminal device is considered as a false operation (for example, after the user places the terminal device in a pocket, in order to avoid the unconscious touch control of the body on the display screen and then enter the anti-false touch mode), the accuracy when entering the anti-false touch mode is improved, and then the terminal equipment is ensured to have good self-adaptive capacity, so that the distance sensor can judge the applied functional scene more intelligently, the stability of the distance sensor under the complex scene is greatly improved, and the stability of the infrared function of the distance sensor is ensured while the hiding effect of the distance sensor is not influenced.
Specifically, the specific step of using the distance sensor is that invisible light such as infrared rays is emitted outwards through the distance sensor, reflected background noise data is detected after the infrared rays are reflected, and when the numerical value of the background noise data is large, it is indicated that more infrared rays are reflected, it is known that the distance between the shielding object and the distance sensor is short, and a false touch prevention mode needs to be entered; when the value of the received background noise data is detected to be small, the reflected infrared rays are few, and the fact that the distance between the shielding object and the distance sensor is long can be known, and the mistaken touch prevention mode does not need to be entered.
In one embodiment provided by the present invention, the processor 504 is preferably specifically configured to execute the computer program to: the processor 504 is specifically configured to execute a computer program to: according to the current background noise data and the judgment reference value, when the distance sensor is shielded, judging whether the current shielding of the distance sensor is invalid shielding or not, wherein the step comprises the following steps of: judging whether the distance sensor is shielded or not according to the current bottom noise data and the judgment reference value; and when the distance sensor is judged to be shielded, judging whether the current background noise data is larger than a first threshold value, if so, judging that the shielding is effective, and otherwise, judging that the shielding is invalid.
In this embodiment, a scheme for determining whether a distance sensor is currently in an invalid occlusion state is provided, where first, according to current ground noise data and a determination reference value, the determination reference value is used to determine the current ground noise data, and when the distance sensor is determined to be in an occlusion state, it is determined whether the current ground noise data is greater than a first threshold value again, and when the current ground noise data is greater than the first threshold value, it is determined that the current ground noise data is in an valid occlusion state, and when the current ground noise data is not greater than the first threshold value, it is determined that the current ground noise data is in an invalid occlusion state; it is understood that when the current noise floor data is not greater than the first threshold, it indicates that there may be an obstruction in front of the distance sensor, but the obstruction is not close enough to the distance sensor and therefore should not be directly determined as an obstruction, and the obstruction at this time belongs to an invalid obstruction.
In one embodiment provided by the present invention, preferably, the judgment reference value includes a calibration value, a first threshold and a second threshold, where the first threshold is greater than the second threshold; the processor 504 is specifically configured to execute a computer program to: the step of judging whether the distance sensor is shielded or not according to the current background noise data and the judgment reference value comprises the following steps: judging whether the sum of the calibration value and the first threshold is smaller than the current background noise data, if so, judging that the distance sensor is shielded; wherein the first threshold is greater than the sum of the calibration value and the first threshold.
In this embodiment, a scheme for determining whether the distance sensor is shielded is provided, where the determination reference value includes a calibration value, a first threshold and a second threshold, where the first threshold is greater than the second threshold, that is, the first threshold is a high threshold, and the second threshold is a low threshold, first, it is determined whether a sum of the calibration value and the first threshold is smaller than current ground noise data, and when the sum of the calibration value and the first threshold is smaller than the current ground noise data, it is determined that the distance sensor is shielded, and thus when it is subsequently determined whether the distance sensor is invalid shielding, it is determined that the first threshold is greater than the sum of the calibration value and the first threshold, so that the current ground noise data is greater than the sum of the calibration value and the first threshold, and when the current ground noise data is smaller than the first threshold.
In one embodiment provided by the present invention, the processor 504 is preferably specifically configured to execute the computer program to: when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, wherein the step comprises the following steps: and when the current shielding of the distance sensor is invalid shielding, updating the calibration value according to the current background noise data for multiple times.
In this embodiment, a specific scheme for updating the judgment reference value is provided, where when it is determined that the current occlusion of the distance sensor is an invalid occlusion, current background noise data is obtained for a plurality of times, and the calibration value is updated according to the current background noise data for the plurality of times, so that the updated calibration value better conforms to the current working environment.
In one embodiment provided by the present invention, the processor 504 is preferably specifically configured to execute the computer program to: when the current shielding of the distance sensor is invalid shielding, updating the calibration value according to the current background noise data for a plurality of times, wherein the step comprises the following steps: and averaging the current background noise data for multiple times, and updating the calibration value according to the average value.
In this embodiment, a further specific scheme for updating the judgment reference value is provided, where current background noise data is obtained multiple times, an average value is obtained according to the current background noise data multiple times, and the calibration value is updated according to the average value, so that the updated calibration value is more suitable for the current working environment.
In one embodiment provided by the present invention, the processor 504 is preferably specifically configured to execute the computer program to: and detecting whether the terminal equipment is in a non-call mode.
In this embodiment, a precondition for starting the distance sensor to start detection is set, and first, whether the terminal device is in a non-call mode is detected, and when the terminal device is in the non-call mode, subsequent operations are performed, and when the terminal device is in the call mode, since the usage scenario is already determined and the requirement for preventing false touch during call is obvious, the judgment reference value does not need to be updated, and it is ensured that the normal call is not affected by the false touch of the face during the call of the user.
According to a third aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the adjusting method of the terminal device according to any one of the above-mentioned technical solutions, and therefore, has all the advantages of the adjusting method of the terminal device according to any one of the above-mentioned technical solutions.
In the description of the present specification, the terms "upper", "lower", and the like indicate orientations or positional relationships based on those shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention; the terms "connected," "mounted," "secured," and the like are to be construed broadly and include, for example, fixed connections, removable connections, or integral connections; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description herein, the description of the terms "one embodiment," "some embodiments," "specific embodiments," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. An adjusting method of a terminal device, wherein the terminal device comprises a distance sensor, and the adjusting method of the terminal device comprises the following steps:
detecting current background noise data through the distance sensor in real time;
judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and a judgment reference value;
when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value;
the step of judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and the judgment reference value comprises the following steps:
judging whether the distance sensor is shielded or not according to the current bottom noise data and a judgment reference value;
and when the distance sensor is judged to be shielded, judging whether the current background noise data is larger than a first threshold value, if so, judging that the shielding is effective, otherwise, judging that the shielding is invalid.
2. The method for adjusting a terminal device according to claim 1,
the judgment reference value comprises a calibration value, a first threshold and a second threshold, wherein the first threshold is larger than the second threshold;
the step of judging whether the distance sensor is shielded or not according to the current background noise data and the judgment reference value comprises the following steps:
judging whether the sum of the calibration value and the first threshold is smaller than the current background noise data, if so, judging that the distance sensor is shielded;
wherein the first threshold is greater than a sum of the calibration value and the first threshold.
3. The adjusting method of the terminal device according to claim 2, wherein the step of updating the judgment reference value when the current occlusion of the distance sensor is an invalid occlusion comprises:
and when the current shielding of the distance sensor is invalid shielding, updating the calibration value according to the current background noise data for multiple times.
4. The method for adjusting a terminal device according to claim 3,
when the current occlusion of the distance sensor is an invalid occlusion, the step of updating the calibration value according to the current background noise data for a plurality of times includes:
and averaging the current background noise data for multiple times, and updating the calibration value according to the average value.
5. The method for adjusting the terminal device according to any one of claims 1 to 4, wherein the method for adjusting the terminal device further comprises:
and detecting whether the terminal equipment is in a non-call mode.
6. An adjustment system of a terminal device, characterized in that the terminal device comprises a distance sensor, the adjustment system of the terminal device comprising:
a memory for storing a computer program;
a processor for executing the computer program to:
detecting current background noise data through the distance sensor in real time;
judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and a judgment reference value;
when the current shielding of the distance sensor is invalid shielding, updating the judgment reference value, continuously detecting the current background noise data in real time, and judging the current background noise data according to the updated judgment reference value;
the processor is specifically configured to execute the computer program to:
the step of judging whether the current shielding of the distance sensor is invalid shielding or not when the distance sensor is shielded according to the current background noise data and the judgment reference value comprises the following steps: judging whether the distance sensor is shielded or not according to the current bottom noise data and a judgment reference value; and when the distance sensor is judged to be shielded, judging whether the current background noise data is larger than a first threshold value, if so, judging that the shielding is effective, otherwise, judging that the shielding is invalid.
7. The regulating system of a terminal device according to claim 6,
the judgment reference value comprises a calibration value, a first threshold and a second threshold, wherein the first threshold is larger than the second threshold;
the processor is specifically configured to execute the computer program to:
the step of judging whether the distance sensor is shielded or not according to the current background noise data and the judgment reference value comprises the following steps:
judging whether the sum of the calibration value and the first threshold is smaller than the current background noise data, if so, judging that the distance sensor is shielded;
wherein the first threshold is greater than a sum of the calibration value and the first threshold.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the adjusting method of the terminal device according to any one of claims 1 to 5.
CN201810743557.2A 2018-07-09 2018-07-09 Terminal equipment adjusting method, system and storage medium Active CN108965594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810743557.2A CN108965594B (en) 2018-07-09 2018-07-09 Terminal equipment adjusting method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810743557.2A CN108965594B (en) 2018-07-09 2018-07-09 Terminal equipment adjusting method, system and storage medium

Publications (2)

Publication Number Publication Date
CN108965594A CN108965594A (en) 2018-12-07
CN108965594B true CN108965594B (en) 2020-12-15

Family

ID=64483387

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810743557.2A Active CN108965594B (en) 2018-07-09 2018-07-09 Terminal equipment adjusting method, system and storage medium

Country Status (1)

Country Link
CN (1) CN108965594B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300265B (en) * 2019-06-28 2021-02-09 Oppo广东移动通信有限公司 Electronic equipment and control method of camera
CN110609999B (en) * 2019-08-07 2023-08-11 创新先进技术有限公司 Cold start method and device of public opinion monitoring system
CN111835912B (en) * 2020-06-15 2021-09-21 北京小米移动软件有限公司 Terminal, distance judgment method and distance judgment device
CN112181209A (en) * 2020-11-03 2021-01-05 珠海格力电器股份有限公司 Method and device for recovering anti-false touch function, storage medium and electronic device
CN116095228B (en) * 2022-08-16 2023-10-20 荣耀终端有限公司 Near-light emission power processing method, terminal device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106443639A (en) * 2016-09-26 2017-02-22 深圳市金立通信设备有限公司 Distance calibration method and terminal
CN106550126A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 The control device and method of mobile terminal and its screen intensity
CN106791209A (en) * 2017-03-10 2017-05-31 上海传英信息技术有限公司 The self-checking device and method of distance of mobile terminal sensor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8030914B2 (en) * 2008-12-29 2011-10-04 Motorola Mobility, Inc. Portable electronic device having self-calibrating proximity sensors

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106443639A (en) * 2016-09-26 2017-02-22 深圳市金立通信设备有限公司 Distance calibration method and terminal
CN106550126A (en) * 2016-10-31 2017-03-29 努比亚技术有限公司 The control device and method of mobile terminal and its screen intensity
CN106791209A (en) * 2017-03-10 2017-05-31 上海传英信息技术有限公司 The self-checking device and method of distance of mobile terminal sensor

Also Published As

Publication number Publication date
CN108965594A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
CN108965594B (en) Terminal equipment adjusting method, system and storage medium
CN107942306B (en) Method and device for calibrating proximity sensor, storage medium and electronic equipment
KR101952798B1 (en) Detection distance calibration method, apparatus, and device
CN107702278B (en) Air conditioning system, human body heat source detection method and computer readable storage medium
CN106094055B (en) The calibration method and terminal of a kind of proximity sensor
US9689810B2 (en) Electronic apparatus with proximity sensor and automatic calibration method thereof
US8780828B2 (en) Cognitive radio device and method for determining channel occupancy
CN108937808B (en) Dishwasher door control method, dishwasher and computer readable storage medium
US10761655B2 (en) Display device, management device, management system, and control program
CN106101402B (en) Method and system for adjusting sensing threshold of proximity sensor
CN107040657B (en) Method and device for preventing touch screen from being triggered mistakenly
CN108388335B (en) Method for controlling mobile terminal and mobile terminal
CN111698632A (en) Headset state detection method and device, TWS headset and computer storage medium
US20200371662A1 (en) Report Point Output Control Method and Apparatus
CN103837910B (en) Method and terminal that a kind of proximity transducer threshold value is determined
CN105812577B (en) A kind of screen luminance adjustment method and device
CN109059991A (en) Intelligently from mobile device and its method of sensor calibration, computer storage medium
CN111381289A (en) Infrared lamp self-adaptive environment obstacle detection method and mobile device
CN103294583A (en) Terminal screen control method and mobile terminal
CN109738004A (en) The calibration method and device, electronic equipment and storage medium of proximity sensor
CN110401773B (en) Screen state control method and related device
CN109240541B (en) Screen false touch prevention method and device of electronic equipment and electronic equipment
US11476684B2 (en) Charging protection method, terminal, and charger
CN106445260A (en) Method and apparatus for eliminating false triggering of capacitance induction of protective cover, and electronic device
US20160364066A1 (en) Information Processing Method and Electronic Device

Legal Events

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