CN108801321B - Sensor calibration method, electronic device and computer-readable storage medium - Google Patents

Sensor calibration method, electronic device and computer-readable storage medium Download PDF

Info

Publication number
CN108801321B
CN108801321B CN201810586318.0A CN201810586318A CN108801321B CN 108801321 B CN108801321 B CN 108801321B CN 201810586318 A CN201810586318 A CN 201810586318A CN 108801321 B CN108801321 B CN 108801321B
Authority
CN
China
Prior art keywords
proximity sensor
capacitive proximity
registered
application
screen state
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
CN201810586318.0A
Other languages
Chinese (zh)
Other versions
CN108801321A (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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810586318.0A priority Critical patent/CN108801321B/en
Publication of CN108801321A publication Critical patent/CN108801321A/en
Application granted granted Critical
Publication of CN108801321B publication Critical patent/CN108801321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
    • 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 embodiment of the invention discloses a sensor calibration method, which is applied to the technical field of communication and comprises the following steps: when the capacitive proximity sensor is registered by an application, detecting the screen state of the mobile terminal, and if the screen state is a bright screen state, taking the capacitance value currently measured by the capacitive proximity sensor as the reference capacitance value of the capacitive proximity sensor. The embodiment of the invention also discloses an electronic device and a computer readable storage medium, which can improve the accuracy of the capacitive proximity sensor for judging that the face approaches the screen of the mobile terminal.

Description

Sensor calibration method, electronic device and computer-readable storage medium
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a sensor calibration method, an electronic device and a computer-readable storage medium.
Background
With the popularization of the full-face screen, the front face of the mobile phone has almost no space for placing the proximity infrared sensor, so that a capacitive proximity sensor such as an sar (specific Absorption rate) sensor is adopted to replace the proximity infrared sensor. The capacitive proximity sensor can be placed near the antenna area of the mobile phone, and detects whether a human face approaches by sensing capacitance.
However, the capacitive proximity sensor may have a detection error, and when a liquid on a screen of the mobile phone generates a capacitance, the capacitive proximity sensor may incorrectly identify a human face approaching state due to the detected capacitance value, which causes an identification abnormality and affects a normal function of the mobile phone.
Disclosure of Invention
The invention provides a sensor calibration method, an electronic device and a computer readable storage medium, which can solve the problem that a capacitive proximity sensor can influence the normal use of a mobile phone due to the fact that the capacitive proximity sensor detects an irrelevant capacitance value to cause abnormal recognition.
An embodiment of the present invention provides a sensor calibration method, including:
detecting a screen state of the mobile terminal when the capacitive proximity sensor is registered by the application;
and if the screen state is a bright screen state, taking the capacitance value currently measured by the capacitive proximity sensor as the reference capacitance value of the capacitive proximity sensor.
Another aspect of an embodiment of the present invention provides an electronic device, including:
the mobile terminal comprises a detection module, a display module and a control module, wherein the detection module is used for detecting the screen state of the mobile terminal when the capacitive proximity sensor is registered by an application;
and the calibration module is used for taking the capacitance value currently measured by the capacitive proximity sensor as the reference capacitance value of the capacitive proximity sensor if the screen state is a bright screen state.
Another aspect of an embodiment of the present invention provides an electronic device, including: the sensor calibration method comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the sensor calibration method provided by the embodiment of the invention.
Another aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the sensor calibration method provided by the embodiments of the present invention.
According to the sensor calibration method, the electronic device and the computer-readable storage medium provided by the embodiment of the invention, when the capacitive proximity sensor is applied and registered, the screen state of the mobile terminal is detected, if the screen state is in a bright screen state, the reference capacitance value of the capacitive proximity sensor is calibrated, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, so that the induction error of the capacitive proximity sensor caused by the capacitance values generated by other unrelated objects when a user uses the mobile terminal is eliminated, and the accuracy of judging whether the face is close to the screen of the mobile terminal is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention.
Fig. 1 is a schematic flow chart illustrating an implementation of a sensor calibration method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a flow chart for implementing a sensor calibration method according to another embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating an implementation of a sensor calibration method according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the invention;
FIG. 5 is a schematic structural diagram of an electronic device according to another embodiment of the invention;
fig. 6 shows a hardware configuration diagram of an electronic apparatus.
Detailed Description
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an implementation flow of a sensor calibration method according to an embodiment of the present invention, where the method can be applied to the following electronic devices: the mobile terminal is provided with a built-in capacitive proximity sensor such as an SAR sensor and the like, such as a mobile phone, a tablet computer, a notebook computer and the like. As shown in fig. 1, the method mainly comprises the following steps:
s101, detecting the screen state of the mobile terminal when the capacitive proximity sensor is registered by an application;
the capacitive proximity sensor is arranged in the mobile terminal and can be used for judging whether a human face approaches the screen according to the size of the detected capacitance value.
When the mobile terminal runs various applications, some capacitive proximity sensors need to be started when the applications run, and the on-off of a screen of the mobile terminal is controlled through detection results of the capacitive proximity sensors.
When the capacitive proximity sensor is registered by the application, it indicates that the application needs to acquire detection data of the capacitive proximity sensor, and at the moment, the screen state of the mobile terminal is detected, wherein the screen state is divided into a screen-on state and a screen-off state.
And S102, if the screen state is a bright screen state, taking the capacitance value currently measured by the capacitive proximity sensor as the reference capacitance value of the capacitive proximity sensor.
If the screen state is a bright screen state, it indicates that the capacitance value currently measured by the capacitive proximity sensor may affect screen extinction, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, that is, the initial reference capacitance value of the capacitive proximity sensor is modified into the current measured capacitance value. Therefore, even if objects such as water drops and sweat exist on the screen, the capacitance value generated by the objects is calibrated in the modified reference capacitance value, and therefore the detection result of the capacitive proximity sensor cannot be influenced. Then, at the moment, the user uses the mobile terminal, for example, makes a call, and then makes a face close to the screen, and the capacitance type proximity sensor can effectively identify capacitance change caused by the approach of the face, so that correct response is made, the screen can be normally turned off during conversation, and the screen cannot be turned off by mistake.
The reference capacitance value is used for detecting whether a human face approaches the screen of the mobile terminal or not by the capacitive proximity sensor based on the value.
In the embodiment of the invention, when the capacitive proximity sensor is applied and registered, the screen state of the mobile terminal is detected, if the screen state is in a bright screen state, the reference capacitance value of the capacitive proximity sensor is calibrated, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, so that the induction error of the capacitive proximity sensor caused by the capacitance values generated by other unrelated objects when a user uses the mobile terminal is eliminated, and the accuracy of judging whether the face is close to the screen of the mobile terminal is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating an implementation of a sensor calibration method according to another embodiment of the present invention, where the method can be applied to the following electronic devices: the mobile terminal is provided with a built-in capacitive proximity sensor such as an SAR sensor and the like, such as a mobile phone, a tablet computer, a notebook computer and the like. As shown in fig. 2, the method mainly includes the following steps:
s201, when the capacitive proximity sensor is registered by a new application, detecting the screen state of the mobile terminal;
when the mobile terminal runs various applications, some applications are started when running, for example, when automatic backlight is started, the capacitive proximity sensor is registered by the application and is triggered to be started. At this time, if there is an incoming call, the capacitive proximity sensor is registered again but is not turned on again. Therefore, the detection data is the result of the previous detection, and may be applied to a new application to generate errors.
The new application refers to an application registered later than the previously registered application. If the application is registered before and then the application is registered again, the application registered later is a new application. For example: the a application registers the capacitive proximity sensor before the B application, which is a new application with respect to the a application.
And S202, if the screen state is a bright screen state, taking the capacitance value currently measured by the capacitive proximity sensor as the reference capacitance value of the capacitive proximity sensor.
If the screen state is a bright screen state, it indicates that the capacitance value currently measured by the capacitive proximity sensor may affect screen extinction, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, that is, the initial reference capacitance value of the capacitive proximity sensor is modified into the current measured capacitance value. Even if there are objects such as water drops and sweat on the screen, the capacitance values generated by the objects are calibrated within the reference capacitance value, and therefore the detection result of the capacitive proximity sensor is not affected. Then, at the moment, the user uses the mobile terminal, for example, makes a call, and then makes a face close to the screen, and the capacitance type proximity sensor can effectively identify capacitance change caused by the approach of the face, so that correct response is made, the screen can be normally turned off during conversation, and the screen cannot be turned off by mistake.
If the screen is in the screen-off state, the control of the current screen state is accurate, the current reference capacitance value of the capacitive proximity sensor is kept unchanged, the reference capacitance value of the capacitive proximity sensor is not calibrated, and the screen-off state of the screen is kept.
The reference capacitance value is used for judging whether a human face approaches the screen of the mobile terminal or not by the capacitive proximity sensor based on the reference capacitance value.
In the embodiment of the invention, when the capacitive proximity sensor is registered by a new application, the screen state of the mobile terminal is detected, if the screen state is a bright screen state, the reference capacitance value of the capacitive proximity sensor is calibrated, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, so that the induction error of the capacitive proximity sensor caused by the capacitance values generated by other unrelated objects when a user uses the mobile terminal is eliminated, and the accuracy of judging whether the face is close to the screen of the mobile terminal is improved.
Referring to fig. 3, fig. 3 is a schematic flow chart illustrating an implementation of a sensor calibration method according to another embodiment of the invention, where the method can be applied to the following electronic devices: the mobile terminal is provided with a built-in capacitive proximity sensor such as an SAR sensor and the like, such as a mobile phone, a tablet computer, a notebook computer and the like. As shown in fig. 3, the method mainly includes the following steps:
s301, when the capacitive proximity sensor is registered by a new application, comparing the registered application level with the new application level;
an application level table is set in a system of a mobile terminal, wherein an application list of registered capacitive proximity sensors and corresponding levels are recorded.
For example, the level of the talk application is higher than that of the screen anti-false touch application, which is higher than that of the auto backlight application.
And comparing the registered application grade with the new application grade, detecting the screen state of the mobile terminal if the new application grade of the registered capacitive proximity sensor is higher than the registered prior application grade, and not detecting the screen state of the mobile terminal if the new application grade of the registered capacitive proximity sensor is lower than the registered prior application grade, and not calibrating the reference capacitance value of the capacitive proximity sensor.
For example, when the automatic backlight is turned on, the capacitive proximity sensor is registered and triggered to turn on. At this time, if there is an incoming call, the capacitive proximity sensor is registered again, the level of the conversation application is higher than that of the automatic backlight application compared with the level of the automatic backlight application, and the capacitive proximity sensor is not turned on again when the conversation application is started. Therefore, the detection data is the result of the previous detection, and may cause errors when applied to the call application.
S302, if the new application level is higher than the registered application level, detecting the screen state of the mobile terminal;
when the mobile terminal runs various applications, some applications are started, for example, when automatic backlight is started, the capacitive proximity sensor is registered and triggered to be started. At this time, if there is an incoming call, the proximity sensor is registered again but is not turned on again. Therefore, the detection data is the result of the previous detection, and may be applied to a new application to generate errors.
And if the new application level is lower than the registered application level, not detecting the screen state of the mobile terminal.
S303, if the screen state is a bright screen state, taking the capacitance value currently measured by the capacitive proximity sensor as the reference capacitance value of the capacitive proximity sensor;
if the screen state is a bright screen state, it indicates that the capacitance value currently measured by the capacitive proximity sensor may affect screen extinction, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, so that even if there are water drops, sweat and other objects on the screen, the capacitance values generated by the water drops, sweat and other objects are calibrated in the reference capacitance value, and therefore the detection result of the capacitive proximity sensor cannot be affected. Then, at the moment, the user uses the mobile terminal, for example, makes a call, and then makes a face close to the screen, and the capacitance type proximity sensor can effectively identify capacitance change caused by the approach of the face, so that correct response is made, the screen can be normally turned off during conversation, and the screen cannot be turned off by mistake.
And S304, if the screen state is the screen-off state, keeping the current reference capacitance value of the capacitive proximity sensor unchanged.
If the screen is in the screen-off state, the control of the current screen state is accurate, the current reference capacitance value of the capacitive proximity sensor is kept unchanged, the reference capacitance value of the capacitive proximity sensor is not calibrated, and the screen-off state of the screen is kept.
The reference capacitance value is used for judging whether a human face approaches the screen of the mobile terminal or not by the capacitive proximity sensor based on the reference capacitance value.
In the embodiment of the invention, when the capacitive proximity sensor is registered by a higher-level application, the screen state of the mobile terminal is detected, if the screen state is in a bright screen state, the reference capacitance value of the capacitive proximity sensor is calibrated, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, so that the induction error of the capacitive proximity sensor caused by the capacitance values generated by other unrelated objects when a user uses the mobile terminal is eliminated, and the accuracy of judging whether the face is close to the screen of the mobile terminal is improved.
Referring to fig. 4, fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the invention, and only a portion related to the embodiment of the invention is shown for convenience of description. The electronic device illustrated in fig. 4 may be a mobile terminal that performs the sensor calibration method provided in the embodiments illustrated in fig. 1, fig. 2, and fig. 3. The electronic device illustrated in fig. 4 mainly includes:
a detection module 401, configured to detect a screen state of the mobile terminal when the capacitive proximity sensor is registered by an application;
the capacitance type proximity sensor is arranged in the mobile terminal, and whether a human face approaches the screen is judged according to the detected capacitance value.
When the mobile terminal runs various applications, some capacitive proximity sensors need to be started when the applications run, and the on-off of a screen of the mobile terminal is controlled through detection results of the capacitive proximity sensors.
When the capacitive proximity sensor is registered by the application, it indicates that the application needs to acquire detection data of the capacitive proximity sensor, and at the moment, the screen state of the mobile terminal is detected, wherein the screen state is divided into a screen-on state and a screen-off state.
The calibration module 402 is configured to, if the screen state is a bright screen state, use a capacitance value currently measured by the capacitive proximity sensor as a reference capacitance value of the capacitive proximity sensor.
If the screen state is a bright screen state, it indicates that the capacitance value currently measured by the capacitive proximity sensor may affect screen extinction, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, that is, the initial reference capacitance value of the capacitive proximity sensor is modified into the current measured capacitance value. Therefore, even if objects such as water drops and sweat exist on the screen, the capacitance value generated by the objects is calibrated in the modified reference capacitance value, and therefore the detection result of the capacitive proximity sensor cannot be influenced. Then, at the moment, the user uses the mobile terminal, for example, makes a call, and then makes a face close to the screen, and the capacitance type proximity sensor can effectively identify capacitance change caused by the approach of the face, so that correct response is made, the screen can be normally turned off during conversation, and the screen cannot be turned off by mistake.
The reference capacitance value is used for judging whether a human face approaches the screen of the mobile terminal or not based on the value of the capacitance type proximity sensor.
For details that are not described in the present embodiment, please refer to the description of the embodiment shown in fig. 1 to fig. 3, which will not be described herein again.
It should be noted that, in the embodiment of the electronic device illustrated in fig. 4, the division of the functional modules is only an example, and in practical applications, the above functions may be distributed by different functional modules according to needs, for example, configuration requirements of corresponding hardware or convenience of implementation of software, that is, the internal structure of the electronic device is divided into different functional modules to complete all or part of the functions described above. In addition, in practical applications, the corresponding functional modules in this embodiment may be implemented by corresponding hardware, or may be implemented by corresponding hardware executing corresponding software. The above description principles can be applied to various embodiments provided in the present specification, and are not described in detail below.
In the embodiment of the invention, when the capacitive proximity sensor is registered by a new application, the screen state of the mobile terminal is detected, if the screen state is a bright screen state, the reference capacitance value of the capacitive proximity sensor is calibrated, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, so that the induction error of the capacitive proximity sensor caused by the capacitance values generated by other unrelated objects when a user uses the mobile terminal is eliminated, and the accuracy of judging whether the face is close to the screen of the mobile terminal is improved.
Referring to fig. 5, a schematic structural diagram of an electronic device according to another embodiment of the invention is shown, which only shows portions related to the embodiment of the invention for convenience of description. The electronic device illustrated in fig. 5 may be an execution subject of the sensor calibration method provided in the foregoing embodiments illustrated in fig. 1 to 3. The electronic device illustrated in fig. 5 is different from the electronic device in the embodiment illustrated in fig. 4 mainly in that:
further, the detecting module 401 is further configured to detect a screen state of the mobile terminal when the capacitive proximity sensor is registered by a new application;
the new application refers to an application registered later than the previously registered application.
The detection module 401 further includes:
a comparison sub-module 4011 configured to, when the capacitive proximity sensor is registered by a new application, compare the registered application level with the new application level;
an application level table is set in a system of a mobile terminal, wherein an application list of registered capacitive proximity sensors and corresponding levels are recorded.
For example, the level of the talk application is higher than that of the screen anti-false touch application, which is higher than that of the auto backlight application.
The detection sub-module 4012 is configured to detect a screen status of the mobile terminal if the new application level is higher than the registered application level.
The calibration module 402 is further configured to keep the current reference capacitance value of the capacitive proximity sensor unchanged if the screen state is the screen-off state.
For details that are not described in the present embodiment, please refer to the description of the embodiment shown in fig. 1 to fig. 4, which will not be described herein again.
In the embodiment of the invention, when the capacitive proximity sensor is applied and registered, the screen state of the mobile terminal is detected, if the screen state is in a bright screen state, the reference capacitance value of the capacitive proximity sensor is calibrated, and the capacitance value currently measured by the capacitive proximity sensor is used as the reference capacitance value of the capacitive proximity sensor, so that the induction error of the capacitive proximity sensor caused by the capacitance values generated by other unrelated objects when a user uses the mobile terminal is eliminated, and the accuracy of judging whether the face is close to the screen of the mobile terminal is improved.
Referring to fig. 6, fig. 6 is a hardware structure diagram of an electronic device according to an embodiment of the present invention.
The electronic apparatus described in this embodiment includes:
a memory 51, a processor 52 and a computer program stored on the memory 51 and executable on the processor, which when executed by the processor, implement the sensor calibration method described in the foregoing embodiments shown in fig. 1 to 3.
Further, the electronic device further includes:
at least one input device 53; at least one output device 54.
The memory 51, the processor 52, the input device 53 and the output device 54 are connected by a bus 55.
The input device 53 may be a camera, a touch panel, a physical button, or a mouse. The output device 54 may specifically be a display screen.
The Memory 51 may be a high-speed Random Access Memory (RAM) Memory or a non-volatile Memory (non-volatile Memory), such as a disk Memory. The memory 51 is used for storing a set of executable program codes, and the processor 52 is coupled to the memory 51.
Further, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium may be provided in the electronic device in the foregoing embodiments, and the computer-readable storage medium may be the memory in the foregoing embodiment shown in fig. 6. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the sensor calibration method described in the foregoing embodiments of fig. 1 to 3. Further, the computer-readable storage medium may be various media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In the embodiments provided in the present application, it should be understood that the disclosed mobile terminal and method may be implemented in other ways. For example, the above-described embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and an actual implementation may have another division, for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication link may be through some interfaces, and the indirect coupling or communication link of the modules may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present invention is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no acts or modules are necessarily required of the invention.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In view of the above description of the sensor calibration method, the electronic device and the computer readable storage medium provided by the present invention, those skilled in the art will appreciate that the various embodiments and applications of the invention can be modified, and therefore the present disclosure should not be construed as limiting the scope of the invention.

Claims (8)

1. A method of sensor calibration, the method comprising:
when a capacitive proximity sensor is registered by a first application, detecting whether the capacitive proximity sensor has been registered by a second application before being registered by the first application;
if the capacitive proximity sensor is registered by the second application before being registered by the first application, detecting the screen state of the mobile terminal;
and if the screen state is a bright screen state, taking the capacitance value currently measured by the capacitive proximity sensor as the reference capacitance value of the capacitive proximity sensor.
2. The method of claim 1, wherein detecting the screen state of the mobile terminal if the capacitive proximity sensor has been registered by the second application before being registered by the first application comprises:
comparing the registered application level with a new application level when the capacitive proximity sensor is registered by a new application, the new application being an application registered later than a previously registered application;
and if the new application level is higher than the registered application level, detecting the screen state of the mobile terminal.
3. The method of claim 1, wherein detecting the screen state of the mobile terminal comprises, if the capacitive proximity sensor is registered by the second application before being registered by the first application, detecting a screen state of the mobile terminal comprising:
and if the screen state is the screen-off state, keeping the current reference capacitance value of the capacitive proximity sensor unchanged.
4. An electronic device, comprising:
a first detection module to detect, when a capacitive proximity sensor is registered by a first application, whether the capacitive proximity sensor has been registered by a second application before being registered by the first application;
the second detection module is used for detecting the screen state of the mobile terminal if the capacitive proximity sensor is registered by the second application before being registered by the first application;
and the calibration module is used for taking the capacitance value currently measured by the capacitive proximity sensor as the reference capacitance value of the capacitive proximity sensor if the screen state is a bright screen state.
5. The electronic device of claim 4, wherein the detection module comprises:
a comparison sub-module for comparing, when the capacitive proximity sensor is registered by a new application, the registered application level with a new application level, the new application being an application registered later than a previously registered application;
and the detection submodule is used for detecting the screen state of the mobile terminal if the new application level is higher than the registered application level.
6. The electronic device of claim 4, wherein the calibration module is further configured to keep a current reference capacitance value of the capacitive proximity sensor unchanged if the screen state is an off-screen state.
7. An electronic device, comprising: memory, processor and computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the computer program, carries out the steps of the sensor calibration method according to any one of claims 1 to 3.
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 sensor calibration method according to any one of claims 1 to 3.
CN201810586318.0A 2018-06-08 2018-06-08 Sensor calibration method, electronic device and computer-readable storage medium Active CN108801321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810586318.0A CN108801321B (en) 2018-06-08 2018-06-08 Sensor calibration method, electronic device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810586318.0A CN108801321B (en) 2018-06-08 2018-06-08 Sensor calibration method, electronic device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN108801321A CN108801321A (en) 2018-11-13
CN108801321B true CN108801321B (en) 2021-08-17

Family

ID=64087887

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810586318.0A Active CN108801321B (en) 2018-06-08 2018-06-08 Sensor calibration method, electronic device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN108801321B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109724640B (en) * 2019-01-12 2021-04-06 Oppo广东移动通信有限公司 Proximity sensor calibration method, electronic device, and computer-readable storage medium
CN110044693B (en) * 2019-05-05 2021-04-20 大连理工大学 Sensor state real-time monitoring method for structure loading electrical measurement test
CN112987127A (en) * 2021-02-04 2021-06-18 维沃移动通信有限公司 Detection processing method and device of specific absorption rate sensor and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855032A (en) * 2011-06-27 2013-01-02 比亚迪股份有限公司 Baseline updating method and touch device
JP2013190850A (en) * 2012-03-12 2013-09-26 Denso Corp Display device
CN103677452A (en) * 2012-08-30 2014-03-26 华为终端有限公司 Capacitive touch screen calibration method and capacitive touch device

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7337085B2 (en) * 2005-06-10 2008-02-26 Qsi Corporation Sensor baseline compensation in a force-based touch device
KR20130007789A (en) * 2011-07-11 2013-01-21 인하대학교 산학협력단 Approch sensing touch system
US20130106710A1 (en) * 2011-10-31 2013-05-02 Nokia Corporation Methods, apparatuses, and computer program products for adjusting touchscreen sensitivity
KR20130078235A (en) * 2011-12-30 2013-07-10 엘지전자 주식회사 Mobile terminal and controlling method thereof
US9727159B2 (en) * 2012-01-03 2017-08-08 Vadim Konradi Controller and method for controlling a capacitive touch screen or the like
CN102541382A (en) * 2012-01-18 2012-07-04 华为终端有限公司 Method and terminal for calibrating capacitive touch screen
WO2013159483A1 (en) * 2012-04-23 2013-10-31 Mediatek Inc. Apparatus and method for performing proximity detection according to capacitive sensing output and status output
CN102880346B (en) * 2012-09-20 2016-12-21 广东欧珀移动通信有限公司 A kind of mobile terminal arranges the method and system of touch screen reference value
CN103941994A (en) * 2013-01-23 2014-07-23 中兴通讯股份有限公司 Sensing screen locking method and device of touch screen
CN104123006B (en) * 2014-07-24 2017-03-08 Tcl通讯(宁波)有限公司 The control device of the screen light on and off based on proximity transducer and mobile terminal
JP6765807B2 (en) * 2015-01-05 2020-10-07 シナプティクス インコーポレイテッド Modulation of reference voltage for capacitive sensing
DE102015002128A1 (en) * 2015-02-19 2016-08-25 Brose Fahrzeugteile Gmbh & Co. Kommanditgesellschaft, Hallstadt Capacitive proximity sensor for a motor vehicle, collision protection device for a motor vehicle and motor vehicle with a capacitive proximity sensor
KR20170010494A (en) * 2015-07-20 2017-02-01 엘지전자 주식회사 Mobile terminal and method for controlling the same
CN106657602A (en) * 2016-10-26 2017-05-10 努比亚技术有限公司 Conversation screen-off system based on proximity sensor and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102855032A (en) * 2011-06-27 2013-01-02 比亚迪股份有限公司 Baseline updating method and touch device
JP2013190850A (en) * 2012-03-12 2013-09-26 Denso Corp Display device
CN103677452A (en) * 2012-08-30 2014-03-26 华为终端有限公司 Capacitive touch screen calibration method and capacitive touch device

Also Published As

Publication number Publication date
CN108801321A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
US11133563B2 (en) Method of detecting swelling of battery using pressure sensor and electronic device using the method
US10438559B2 (en) Electronic device supporting USB interface and control method for USB interface
KR102229006B1 (en) Method and apparatus for processing input using touch screen
CN108759892B (en) Sensor calibration method, electronic device and computer-readable storage medium
US10466813B2 (en) Electronic device including electronic pen and method for recognizing the electronic pen therein
CN108801321B (en) Sensor calibration method, electronic device and computer-readable storage medium
TWI581139B (en) Touch display device and control system thereof
CN105025159A (en) A proximity sensor adjusting method and apparatus
US10409249B2 (en) Method for controlling power supply and electronic device implementing the same
US20160132178A1 (en) Method for Enabling Function Module of Terminal, and Terminal Device
US11132528B2 (en) Information processing method and electronic device
US11126442B2 (en) False-touch-wakeup prevention apparatus and method, intelligent terminal and computer storage medium
US11941910B2 (en) User interface display method of terminal, and terminal
WO2021143878A1 (en) Method for calibrating proximity sensor, calibration apparatus, and mobile terminal
CN106101402B (en) Method and system for adjusting sensing threshold of proximity sensor
US20170285798A1 (en) Method and system for realizing functional key on side surface
US11353978B2 (en) Method and apparatus for determining a touch point
CN111596802B (en) Touch screen calibration method and device and computer readable storage medium
US20160328078A1 (en) Electronic device having touch screen
CN109510896B (en) Proximity sensor selection method and device, storage medium and electronic device
CN103885697A (en) Page operating system and method
CN112102794B (en) Method and device for eliminating touch trace of touch screen and computer readable storage medium
US10666789B2 (en) Control method and device for sensors of mobile terminal, storage medium and mobile terminal
CN107943396B (en) Parameter adjusting method and device, computer device and readable storage medium
CN112703463A (en) Terminal device and touch response control method thereof

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