Signal baseline processing method and device, electronic equipment and computer storage medium

By using the capacitance data of the reference channel to calculate the baseline value when the detection channel of the capacitance sensor is in a saturated state, the problem of degradation of the detection accuracy of the capacitance sensor under environmental interference is solved, and the detection accuracy of the detected object is improved.

CN119001878APending Publication Date: 2024-11-22SHANGHAI AWINIC TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411091124.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-08
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

In traditional solutions, when capacitive sensors are affected by environmental interference (such as temperature changes), the detection accuracy decreases, resulting in inaccurate detection of the proximity of the detected object.

Method used

By obtaining the capacitance data of the detection channel and reference channel of the capacitance sensor, if the detection channel is in a saturated state, use the baseline value of the previous moment and the capacitance data of the reference channel to calculate the baseline value of the current moment to avoid the baseline following abnormal data in the saturated state .

Benefits of technology

The accuracy of detecting the proximity of the detected object is improved, and the problem that the baseline value cannot drop normally after the detected object is far away.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119001878A_ABST
    Figure CN119001878A_ABST
Patent Text Reader

Abstract

The invention discloses a signal baseline processing method and device, electronic equipment and a computer storage medium, and the method comprises the steps: obtaining the first capacitance data of a detection channel at the current moment, and the second capacitance data of a reference channel at the current moment, determining the state of the detection channel at the current moment according to the first capacitance data, if the detection channel is in a saturated state at the current moment, determining a baseline value of the capacitive sensor at the current moment according to a baseline value of the capacitive sensor at the previous moment, the second capacitance data and third capacitance data of the reference channel at the previous moment, the baseline value of the capacitive sensor is determined by using the capacitance data of the reference channel when the detection channel of the capacitive sensor is in the saturated state, so that the problem that the baseline value cannot be normally reduced after the detected object is far away due to the fact that the baseline follows abnormal data in the saturated state can be avoided; therefore, the detection accuracy of the proximity condition of the detected object is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of signal processing technology, and in particular to a signal baseline processing method, device, electronic device and computer storage medium. Background Art

[0002] With the development of electronic device communication technology, more and more electronic devices are equipped with proximity sensors. Proximity sensors detect objects near the detected object, such as the ear area of ​​a person's head, etc., and proximity sensors are usually capacitive sensors. When the target object approaches the proximity sensor, the capacitance of the proximity sensor changes. The capacitance change of the proximity sensor can be used to stimulate the response of the electronic device. For example, for a mobile phone, the screen of the mobile phone can be turned off when the user is away, thereby saving the battery power of the mobile phone.

[0003] However, in the detection of approaching targets, the capacitance of the proximity sensor is not only affected by the detected object, but also by environmental interference, such as temperature interference. When the ambient temperature gradually rises, the capacitance change of the proximity sensor cannot accurately reflect the proximity of the target. Summary of the invention

[0004] In view of this, the present application provides a signal baseline processing method, an electronic device and a computer storage medium to solve the technical problem in the traditional solution that the detection accuracy of the proximity sensor decreases after being disturbed by the environment.

[0005] A first aspect of the present application provides a signal baseline processing method, comprising: obtaining first capacitance data of a detection channel of a capacitance sensor at a current moment, and second capacitance data of a reference channel at the current moment; determining a state of the detection channel of the capacitance sensor at the current moment according to the first capacitance data; if the detection channel of the capacitance sensor is in a saturated state at the current moment, determining the baseline value of the capacitance sensor at the current moment according to the baseline value of the capacitance sensor at a previous moment, the second capacitance data, and the third capacitance data of the reference channel at a previous moment.

[0006] Optionally, the process of determining the baseline value of the capacitive sensor at the current moment according to the baseline value at the previous moment, the second capacitance data, and the third capacitance data of the reference channel at the previous moment may further include: calculating the baseline value of the capacitive sensor at the current moment according to the following formula:

[0007] z(n)=z(n-1)+B*[x(n)-x(n-1)]

[0008] z(n) is used to characterize the baseline value of the capacitance sensor at the current moment, z(n-1) is used to characterize the baseline value of the capacitance sensor at the previous moment, x(n) is used to characterize the second capacitance data, x(n-1) is used to characterize the third capacitance data, and B is used to characterize the first compensation coefficient, which is a set constant and a positive number.

[0009] Optionally, the process of determining the state of the detection channel at the current moment based on the first capacitance data may also include: when the first capacitance data is less than a capacitance threshold, determining that the state of the detection channel at the current moment is in a non-saturated state; when the first capacitance data is greater than or equal to the capacitance threshold, determining that the state of the detection channel at the current moment is in a saturated state.

[0010] Optionally, the signal baseline processing process may also include: if the detection channel is in a non-saturated state at the current moment, determining the baseline value of the capacitance sensor at the current moment according to the baseline value of the capacitance sensor at the previous moment, the first capacitance data, the second capacitance data, the third capacitance data and the fourth capacitance data of the detection channel at the previous moment.

[0011] Optionally, the process of determining the baseline value of the capacitive sensor at the current moment according to the baseline value of the capacitive sensor at the previous moment, the first capacitance data, the second capacitance data, the third capacitance data, and the fourth capacitance data of the detection channel at the previous moment may further include: calculating the baseline value of the capacitive sensor at the current moment according to the following formula:

[0012] z(n)=z(n-1)+C*(y(n)-A*x(n)-(y(n-1)-A*x(n-1)))

[0013] z(n) is used to characterize the baseline value of the capacitance sensor at the current moment, z(n-1) is used to characterize the baseline value of the capacitance sensor at the previous moment, y(n) is used to characterize the first capacitance data, x(n) is used to characterize the second capacitance data, x(n-1) is used to characterize the third capacitance data, y(n-1) is used to characterize the fourth capacitance data, A is used to characterize the second compensation coefficient, C is used to characterize the third compensation coefficient, the second compensation coefficient and the third compensation coefficient are set constants, and the second compensation coefficient and the third compensation coefficient are positive numbers.

[0014] A second aspect of the present application provides a signal baseline processing device, including: an acquisition module, used to acquire first capacitance data of a detection channel of a capacitance sensor at a current moment, and second capacitance data of a reference channel at a current moment; a determination module, used to determine the state of the detection channel of the capacitance sensor at a current moment according to the first capacitance data; a baseline processing module, used to determine the baseline value of the capacitance sensor at a current moment according to the baseline value of the capacitance sensor at a previous moment, the second capacitance data and the third capacitance data of the reference channel at a previous moment if the detection channel of the capacitance sensor is in a saturated state at a current moment.

[0015] The third aspect of the present application provides an electronic device, comprising: a detection channel, a reference channel and a signal baseline processing device of a capacitive sensor; the capacitance data of the detection channel of the capacitive sensor is related to environmental factors and an object to be detected; the capacitance data of the reference channel is related to the environmental factors; the signal baseline processing device is used to execute the method as described in any one of the first aspects of the embodiment.

[0016] Optionally, the capacitive sensor connected to the detection channel of the capacitive sensor includes an antenna.

[0017] A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, which, when executed by a processor, implements any method described in the first aspect of the embodiment.

[0018] A fifth aspect of the present application provides a computer program product, including computer instructions, which instruct a computing device to perform operations corresponding to the method described in any one of the first aspects of the embodiment.

[0019] The present application determines the baseline value of the capacitive sensor by using the capacitance data of the reference channel when the detection channel of the capacitive sensor is in a saturated state, thereby avoiding the problem that the baseline follows abnormal data of the detection channel of the capacitive sensor in a saturated state, resulting in the baseline value failing to drop normally after the detected object moves away, thereby improving the detection accuracy of the proximity of the detected object. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0021] Figure 1 is a flow chart of a signal baseline processing method according to an embodiment of the present application;

[0022] Figure 2 It is a schematic diagram of a baseline of a traditional scheme and the proximity of the detected object and the changes of environmental factors;

[0023] Figure 3 It is a schematic diagram of another baseline of the traditional scheme and the proximity of the detected object and the changes of environmental factors;

[0024] Figure 4 It is a schematic diagram of the baseline of an embodiment of the present application, the proximity of the detected object and the changes of environmental factors;

[0025] Figure 5 is a schematic diagram of changes in the baseline, proximity to the detected object, and environmental factors of another embodiment of the present application;

[0026] Figure 6 is a structural schematic diagram of a signal baseline processing device according to an embodiment of the present application;

[0027] Figure 7 It is a schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0029] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0030] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0031] With the development and growth of global science and technology and economic scale, the sensor market has risen and grown rapidly. Among them, capacitive sensor is a sensor whose capacitance value is related to the detected object or environmental factors. It can be used to detect the detected object. It is one of the basic sensors and is widely used in smart electronic devices.

[0032] In the application of smart electronic devices, in order to protect the safety and health of users, a Specific Absorbtion Rate (SAR) sensor can be set. The SAR sensor can understand the user's proximity by detecting the capacitance data of the capacitive sensor, and then control the transmission power of the smart electronic device, reduce the radiation of the smart electronic device, and protect the user. However, in actual applications, the capacitive sensor is not only affected by the user, but also by environmental factors, especially temperature factors, which causes the capacitance data detected by the SAR sensor to deviate. Therefore, it is necessary to process the baseline of the capacitive sensor to ensure the accuracy of the SAR sensor detection result.

[0033] Therefore, this solution proposes a signal baseline processing method, device, electronic device and computer storage medium to solve the above problems.

[0034] The technical solutions in the embodiments of the present application are clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application. In the absence of conflict, the following embodiments and their technical features can be combined with each other.

[0035] Figure 1 is a flow chart of a signal baseline processing method according to an embodiment of the present application. Figure 1 As shown, the signal baseline processing method includes the following steps:

[0036] Step 101: Acquire first capacitance data of a detection channel of a capacitance sensor at a current moment and second capacitance data of a reference channel at a current moment.

[0037] Step 102: Determine the state of the detection channel of the capacitive sensor at the current moment according to the first capacitance data.

[0038] Step 103: If the detection channel of the capacitive sensor is in a saturated state at the current moment, determine the baseline value of the capacitive sensor at the current moment according to the baseline value of the capacitive sensor at the previous moment, the second capacitance data and the third capacitance data of the reference channel at the previous moment.

[0039] In order to update the baseline of the capacitive sensor, a reference channel can be added to the SAR sensor. The capacitance data of the reference channel is only related to environmental factors, and the capacitance data of the detection channel of the capacitive sensor is related to environmental factors and the detected object. Therefore, the data of the reference channel can be used to compensate the data of the detection channel of the capacitive sensor. According to the compensated data, the baseline can be updated in real time. However, since temperature has a greater impact on the capacitance change of the capacitive sensor, when the ambient temperature gradually rises, for example, when the user holds the intelligent electronic device for a long time, the detection channel will reach a saturated state, and the accuracy of updating the baseline will be reduced at this time. Therefore, the first capacitance data of the detection channel of the capacitive sensor at the current moment and the second capacitance data of the reference channel at the current moment are obtained respectively, and the state of the detection channel of the capacitive sensor at the current moment is determined according to the first capacitance data. If the detection channel of the capacitive sensor is in a saturated state at the current moment, the update of the baseline is performed using the data in the reference channel, that is, the baseline value of the capacitive sensor at the current moment is determined according to the baseline value of the capacitive sensor at the previous moment, the second capacitance data and the third capacitance data of the reference channel at the previous moment.

[0040] It should be noted that the reference channel and the detection channel of the capacitive sensor can be external parallel routing, and the reference channel is not connected to the capacitive sensor, or the detection channel of the capacitive sensor uses external routing and the reference channel uses internal routing.

[0041] In the embodiment of the present application, by using the capacitance data of the reference channel to determine the baseline value of the capacitance sensor when the detection channel of the capacitance sensor is in a saturated state, it is possible to avoid the problem that the baseline follows abnormal data of the detection channel of the capacitance sensor in a saturated state, resulting in the baseline value failing to drop normally after the detected object moves away, thereby improving the detection accuracy of the proximity of the detected object.

[0042] In order to verify the effect of baseline processing, three verification objects are first determined, namely the baseline value Baseline of the capacitive sensor, the valid data Valid determined according to the capacitance data of the detection channel of the capacitive sensor and the capacitance data of the reference channel, and the difference Diff between the valid data and the baseline value. The valid data can be calculated by Valid = Data_raw-A*Data_ref, where Data_raw is the capacitance data of the detection channel of the capacitive sensor, Data_ref is the capacitance data of the reference channel, and A is the compensation coefficient. Before the test, the capacitance value of the smart electronic device is first calibrated in the air to stabilize the Diff value near 0, and the proximity threshold is set to 500. After the Diff value stabilizes, collect 5s of Diff stable data, and then hold the position near the capacitive sensor in the smart electronic device, during which the detection channel data reaches saturation. After 30s, release the smart electronic device and let the smart electronic device remain suspended in the air for 30s. The schematic diagram of the baseline and the proximity of the detected object and the changes in environmental factors in the traditional scheme can be shown as follows Figure 2 and Figure 3 For ease of observation, Figure 2 and Figure 3 Different vertical axis ranges are used. Figure 2 and Figure 3 The horizontal axis of is time (s). It can be seen that after holding the smart electronic device, the Valid data goes down, and the Baseline follows Valid down, so the Diff data remains basically unchanged during the holding period. After releasing the smart electronic device, Valid drops rapidly and then slowly returns to the vicinity of the initial value, while the Baseline continues to follow Valid down. Diff finally stabilizes at around 13000, which is much larger than the proximity threshold of 500, causing the SAR sensor to still determine that the detected object is still in the proximity state. Therefore, the traditional solution has detection accuracy problems after being affected by temperature.

[0043] The schematic diagram of the baseline of an embodiment of the present application, the proximity of the detected object and the change of environmental factors can be as follows: Figure 4 and Figure 5 For ease of observation, Figure 4 and Figure 5 Different vertical axis ranges are used. Figure 4 and Figure 5 The horizontal axis is time (s), Figure 4 and Figure 2 The vertical axis range is the same as Figure 5 and Figure 3The vertical axis range is the same as that of . After holding the smart electronic device, the Valid data goes down, and the Baseline follows the capacitance data of the reference channel to rise, so the Diff data goes down during the holding period. After releasing the smart electronic device, Valid drops rapidly and then slowly returns to the vicinity of the initial value, the Baseline follows the Valid drop, and the Diff value first drops rapidly to -1000 and then slowly returns to the vicinity of 0. After letting go, Diff is less than the proximity threshold of 500 throughout the entire process, so the SAR sensor can accurately determine the proximity of the detected object.

[0044] In a possible implementation, the process of determining the baseline value of the capacitance sensor at the current moment according to the baseline value at the previous moment, the second capacitance data, and the third capacitance data of the reference channel at the previous moment may also include:

[0045] The baseline value of the capacitive sensor at the current moment is calculated according to the following formula:

[0046] z(n)=z(n-1)+B*[x(n)-x(n-1)]

[0047] z(n) is used to characterize the baseline value of the capacitance sensor at the current moment, z(n-1) is used to characterize the baseline value of the capacitance sensor at the previous moment, x(n) is used to characterize the second capacitance data, x(n-1) is used to characterize the third capacitance data, and B is used to characterize the first compensation coefficient, which is a set constant and a positive number.

[0048] When the detection channel of the capacitance sensor is in a saturated state, the change in the reference channel data can be determined based on the second capacitance data and the third capacitance data of the reference channel at the previous moment, and the baseline value at the previous moment is accumulated with the change and the first compensation coefficient to obtain the baseline value at the current moment.

[0049] In the embodiment of the present application, the baseline value of the capacitive sensor at the current moment is calculated using the above formula, which can make the calculation result more accurate.

[0050] In a possible implementation manner, the process of determining the state of the detection channel of the capacitive sensor at the current moment according to the first capacitance data may also include:

[0051] When the first capacitance data is less than the capacitance threshold, it is determined that the state of the detection channel of the capacitance sensor at the current moment is in a non-saturated state.

[0052] When the first capacitance data is greater than or equal to the capacitance threshold, it is determined that the state of the detection channel of the capacitance sensor at the current moment is in a saturation state.

[0053] A specific method for determining the state of the detection channel of the capacitive sensor at the current moment may be to determine whether the first capacitance data is greater than a preset saturation threshold. For example, the first capacitance data is input into a register, and the saturation threshold is stored in the register. When the first capacitance data is greater than the saturation threshold, the register outputs a signal 1 to determine that the detection channel of the capacitive sensor is in a saturated state. When the first capacitance data is less than or equal to the saturation threshold, the register outputs a signal 0 to determine that the detection channel of the capacitive sensor is in an unsaturated state.

[0054] In the embodiment of the present application, the state of the detection channel of the capacitive sensor at the current moment is judged by the first capacitance data, and different baseline update schemes can be adopted when the detection channel of the capacitive sensor is in different states, thereby improving the accuracy of the baseline update.

[0055] In a possible implementation, the process of signal baseline processing may also include:

[0056] If the detection channel of the capacitive sensor is in a non-saturated state at the current moment, the baseline value of the capacitive sensor at the current moment is determined according to the baseline value of the capacitive sensor at the previous moment, the first capacitance data, the second capacitance data, the third capacitance data and the fourth capacitance data of the detection channel of the capacitive sensor at the previous moment.

[0057] When it is determined that the detection channel of the capacitive sensor is in a non-saturated state at the current moment, the capacitance data in the detection channel of the capacitive sensor can be used normally, so the baseline can be updated by combining the capacitance data in the detection channel of the capacitive sensor and the capacitance data in the reference channel.

[0058] The specific calculation method may be to calculate the baseline value of the capacitive sensor at the current moment according to the following formula;

[0059] z(n)=z(n-1)+C*(y(n)-A*x(n)-(y(n-1)-A*x(n-1)))

[0060] z(n) is used to characterize the baseline value of the capacitance sensor at the current moment, z(n-1) is used to characterize the baseline value of the capacitance sensor at the previous moment, y(n) is used to characterize the first capacitance data, x(n) is used to characterize the second capacitance data, x(n-1) is used to characterize the third capacitance data, y(n-1) is used to characterize the fourth capacitance data, A is used to characterize the second compensation coefficient, C is used to characterize the third compensation coefficient, the second compensation coefficient and the third compensation coefficient are set constants, and the second compensation coefficient and the third compensation coefficient are positive numbers.

[0061] In an embodiment of the present application, when the detection channel of the capacitive sensor is in a non-saturated state at the current moment, it is determined that the capacitance data in the detection channel of the capacitive sensor is valid. Therefore, the baseline is updated according to the capacitance data in the detection channel of the capacitive sensor and the capacitance data in the reference channel, and the baseline value can be correctly reflected.

[0062] Figure 6 is a schematic diagram of the structure of a signal baseline processing device according to an embodiment of the present application. Figure 6 As shown, the signal baseline processing device 200 includes:

[0063] An acquisition module 201 is used to acquire first capacitance data of a detection channel of a capacitance sensor at a current moment, and second capacitance data of a reference channel at a current moment, wherein the capacitance data of the detection channel of the capacitance sensor is related to environmental factors and a detected object, and the capacitance data of the reference channel is related to environmental factors;

[0064] A determination module 202, configured to determine a state of a detection channel of the capacitive sensor at a current moment according to the first capacitance data;

[0065] The baseline processing module 203 is used to determine the baseline value of the capacitive sensor at the current moment according to the baseline value of the capacitive sensor at the previous moment, the second capacitance data and the third capacitance data of the reference channel at the previous moment if the detection channel of the capacitive sensor is in a saturated state at the current moment.

[0066] In order to update the baseline of the capacitive sensor, a reference channel can be added to the SAR sensor. The capacitance data of the reference channel is only related to environmental factors, and the capacitance data of the detection channel of the capacitive sensor is related to environmental factors and the detected object. Therefore, the data of the reference channel can be used to compensate the data of the detection channel of the capacitive sensor. According to the compensated data, the baseline can be updated in real time. However, since temperature has a greater impact on the capacitance change of the capacitive sensor, when the ambient temperature gradually rises, for example, when the user holds the intelligent electronic device for a long time, the detection channel will reach a saturated state, and the accuracy of updating the baseline will be reduced at this time. Therefore, the acquisition module 201 respectively obtains the first capacitance data of the detection channel of the capacitive sensor at the current moment, and the second capacitance data of the reference channel at the current moment, and the determination module 202 determines whether the state of the detection channel of the capacitive sensor at the current moment is in a saturated state according to the first capacitance data. If the detection channel of the capacitive sensor is in a saturated state at the current moment, the update of the baseline is performed using the data in the reference channel. The baseline processing module 203 determines the baseline value of the capacitive sensor at the current moment according to the baseline value of the capacitive sensor at the previous moment, the second capacitance data and the third capacitance data of the reference channel at the previous moment.

[0067] In the embodiment of the present application, by using the capacitance data of the reference channel to determine the baseline value of the capacitance sensor when the detection channel of the capacitance sensor is in a saturated state, it is possible to avoid the problem that the baseline follows abnormal data of the detection channel of the capacitance sensor in a saturated state, resulting in the baseline value failing to drop normally after the detected object moves away, thereby improving the detection accuracy of the proximity of the detected object.

[0068] It should be noted that the information interaction, execution process, etc. between the acquisition module 201, the determination module 202 and the baseline processing module 203 in the above-mentioned signal baseline processing device 200 are based on the same concept as the above-mentioned signal baseline processing method embodiment. The specific contents can be found in the description in the above-mentioned signal baseline processing method embodiment and will not be repeated here.

[0069] In this embodiment, an electronic device 300 is provided, such as Figure 7 As shown, it may include: a detection channel 301 of a capacitive sensor, a reference channel 302 and a signal baseline processing device 200. Wherein:

[0070] The capacitance data of the detection channel 301 of the capacitance sensor is related to environmental factors and the detected object.

[0071] The capacitance data of the reference channel 302 is related to environmental factors.

[0072] The signal baseline processing device 200 is used to execute the relevant steps in the above-mentioned signal baseline processing method embodiment.

[0073] The specific implementation of each step in the signal baseline processing device 200 can refer to the corresponding description of the corresponding steps and units in the aforementioned signal baseline processing method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the aforementioned method embodiment, which will not be repeated here.

[0074] The electronic device 300 of the embodiment of the present application can avoid the problem that the baseline follows abnormal data of the detection channel of the capacitive sensor in the saturated state, resulting in the baseline value failing to drop normally after the detected object moves away, by using the capacitance data of the reference channel to determine the baseline value of the capacitive sensor when the detection channel of the capacitive sensor is in a saturated state, thereby improving the detection accuracy of the proximity of the detected object.

[0075] In one possible implementation, the capacitive sensor connected to the detection channel 301 of the capacitive sensor includes an antenna.

[0076] The electronic device 300 may be a mobile phone. When the detected object approaches or moves away from the antenna, the capacitance data in the detection channel 301 of the capacitance sensor can reflect the change in the capacitance value of the antenna. When the detected object is very close to the antenna, the capacitance data in the detection channel 301 of the capacitance sensor will be very large. At this time, the SAR sensor in the electronic device 300 will instruct the antenna to reduce power to reduce radiation.

[0077] In the embodiment of the present application, since the capacitive sensor includes an antenna, when the detected object is close to the electronic device 300, the power of the antenna can be reduced, thereby protecting the detected object.

[0078] In this embodiment, a computer-readable storage medium is provided, which stores instructions for causing a machine to execute the signal baseline processing method as described herein. Specifically, a system or device equipped with a storage medium can be provided, on which a software program code for implementing the functions of any of the above embodiments is stored, and a computer (or CPU or MPU) of the system or device reads and executes the program code stored in the storage medium.

[0079] In this case, the program code read from the storage medium itself can implement the function of any one of the above embodiments, so the program code and the storage medium storing the program code constitute part of the present application.

[0080] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer by a communication network.

[0081] In this embodiment, a computer program product is provided, including computer instructions, which instruct a computing device to perform any corresponding operation in the above-mentioned multiple method embodiments.

[0082] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present application.

[0083] The above-mentioned method according to the embodiment of the present application can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (for example, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the method shown here. Although the present application has been shown and described with respect to one or more implementations, those skilled in the art will think of equivalent deformations and modifications based on the reading and understanding of this specification and the accompanying drawings. The present application includes all such modifications and variations, and is limited only by the scope of the appended claims. In particular, with respect to the various functions performed by the above-described components, the terms used to describe such components are intended to correspond to any component that performs the specified function of the component (e.g., which is functionally equivalent) (unless otherwise indicated), even if not structurally equivalent to the disclosed structure that performs the function in the exemplary implementation of the present specification shown herein.

[0084] It should be understood that the specific examples in the embodiments of the present application are only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. Those skilled in the art can make various improvements and modifications based on the above embodiments, and these improvements or modifications all fall within the scope of protection of the present application.

[0085] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A signal baseline processing method, characterized in that: The method comprises: Acquire first capacitance data of a detection channel of the capacitance sensor at a current moment, and second capacitance data of a reference channel at a current moment; Determine the state of the detection channel of the capacitive sensor at the current moment according to the first capacitance data; If the detection channel of the capacitance sensor is in a saturated state at the current moment, the baseline value of the capacitance sensor at the current moment is determined according to the baseline value of the capacitance sensor at the previous moment, the second capacitance data and the third capacitance data of the reference channel at the previous moment.

2. The method according to claim 1, characterized in that Determining the baseline value of the capacitance sensor at the current moment according to the baseline value at the previous moment, the second capacitance data, and the third capacitance data of the reference channel at the previous moment includes: The baseline value of the capacitive sensor at the current moment is calculated according to the following formula: z(n)=z(n-1)+B*[x(n)-x(n-1)] z(n) is used to characterize the baseline value of the capacitance sensor at the current moment, z(n-1) is used to characterize the baseline value of the capacitance sensor at the previous moment, x(n) is used to characterize the second capacitance data, x(n-1) is used to characterize the third capacitance data, and B is used to characterize the first compensation coefficient, which is a set constant and a positive number.

3. The method according to claim 1, characterized in that The determining the state of the detection channel of the capacitive sensor at the current moment according to the first capacitance data includes: When the first capacitance data is less than the capacitance threshold, determining that the state of the detection channel of the capacitance sensor at the current moment is in a non-saturated state; When the first capacitance data is greater than or equal to the capacitance threshold, it is determined that the state of the detection channel of the capacitance sensor at the current moment is in a saturation state.

4. The method according to claim 1, characterized in that: The method further comprises: If the detection channel of the capacitive sensor is in a non-saturated state at the current moment, the baseline value of the capacitive sensor at the current moment is determined according to the baseline value of the capacitive sensor at the previous moment, the first capacitance data, the second capacitance data, the third capacitance data, and the fourth capacitance data of the detection channel of the capacitive sensor at the previous moment.

5. The method according to claim 4, characterized in that Determining the baseline value of the capacitance sensor at the current moment according to the baseline value of the capacitance sensor at the previous moment, the first capacitance data, the second capacitance data, the third capacitance data, and the fourth capacitance data of the detection channel at the previous moment includes: The baseline value of the capacitive sensor at the current moment is calculated according to the following formula: z(n)=z(n-1)+C*(y(n)-A*x(n)-(y(n-1)-A*x(n-1))) z(n) is used to characterize the baseline value of the capacitance sensor at the current moment, z(n-1) is used to characterize the baseline value of the capacitance sensor at the previous moment, y(n) is used to characterize the first capacitance data, x(n) is used to characterize the second capacitance data, x(n-1) is used to characterize the third capacitance data, y(n-1) is used to characterize the fourth capacitance data, A is used to characterize the second compensation coefficient, C is used to characterize the third compensation coefficient, the second compensation coefficient and the third compensation coefficient are set constants, and the second compensation coefficient and the third compensation coefficient are positive numbers.

6. A signal baseline processing device, characterized in that: include: An acquisition module, used to acquire first capacitance data of a detection channel of the capacitance sensor at a current moment, and second capacitance data of a reference channel at a current moment; a determination module, configured to determine a state of a detection channel of the capacitive sensor at a current moment according to the first capacitance data; A baseline processing module is used to determine the baseline value of the capacitive sensor at the current moment according to the baseline value of the capacitive sensor at the previous moment, the second capacitance data and the third capacitance data of the reference channel at the previous moment if the detection channel of the capacitive sensor is in a saturated state at the current moment.

7. An electronic device, characterized in that: include: A detection channel, a reference channel and a signal baseline processing device of a capacitive sensor; The signal baseline processing device is used to execute the method as described in any one of claims 1-5.

8. The electronic device according to claim 7, characterized in that: The capacitive sensor connected to the detection channel of the capacitive sensor includes an antenna.

9. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.

10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions instruct a computing device to execute operations corresponding to the method according to any one of claims 1 to 5.

Citation Information

Cited By

  • Glasses wearing detection method, electronic device, and computer-readable storage medium

    WO2026144264A1