Sensing data processing method and device, storage medium and electronic equipment

By calculating the sensitivity compensation coefficient of the sensing channel and adjusting the trigger threshold, the problems of misidentification and slow response caused by inconsistent sensitivity of the sensing channel were solved, and the high accuracy and fast response of the sensor were achieved.

CN117629260BActive Publication Date: 2026-07-21SHANGHAI AWINIC TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANGHAI AWINIC TECH CO LTD
Filing Date
2023-11-29
Publication Date
2026-07-21

AI Technical Summary

Technical Problem

The inconsistent sensitivity of the sensing channels leads to problems such as misidentification and slow response in practical applications, resulting in low sensing accuracy.

Method used

By acquiring the parameters of the target channel and the reference channel, a sensitivity compensation coefficient is calculated, and the trigger threshold of the target channel is adjusted according to the coefficient to achieve sensitivity compensation and improve sensing accuracy.

Benefits of technology

Sensitivity compensation adjusts the sensitivity of each channel to the same or similar level, improving the sensor's recognition accuracy and response speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117629260B_ABST
    Figure CN117629260B_ABST
Patent Text Reader

Abstract

The application discloses a kind of sensing data processing method, device, storage medium and electronic equipment, wherein the sensing data processing method includes obtaining the first target parameter and data variation value of target channel, and the second target parameter and first trigger threshold of reference channel, determine the sensitivity compensation coefficient of target channel based on first target parameter and second target parameter, according to sensitivity compensation coefficient and first trigger threshold, calculate the second trigger threshold of target channel, compare second trigger threshold with data variation value, and determine the current state of target channel according to the comparison result, the sensing accuracy of target channel can be improved in the scheme.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of sensing technology, specifically to a sensing data processing method, apparatus, storage medium, and electronic device. Background Technology

[0002] With the continuous development of electronic science and technology, sensing and detection systems have been widely used in the design of various electronic products due to their advantages such as simple technical circuits, convenient operation, and high sensitivity. Sensing and detection systems typically have multiple sensing channels, which are connected to the sensing control device via traces on a circuit board.

[0003] However, due to the influence of factors such as the circuits connected to each channel and the environment in which they are located, the sensitivity of each channel is different, which leads to problems such as misidentification and slow response in practical applications, resulting in low sensing accuracy of each sensing channel. Summary of the Invention

[0004] This application provides a sensor data processing method, apparatus, storage medium, and electronic device that can improve the sensing accuracy of the target channel.

[0005] In a first aspect, this application provides a sensor data processing method, including:

[0006] Obtain the first target parameter and data change value of the target channel, and the second target parameter and first trigger threshold of the reference channel;

[0007] The sensitivity compensation coefficient of the target channel is determined based on the first target parameter and the second target parameter;

[0008] Calculate the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold;

[0009] The second trigger threshold is compared with the data change value, and the current state of the target channel is determined based on the comparison result.

[0010] In the sensing data processing method provided in this application, the sensitivity compensation coefficient is a complete sensitivity compensation coefficient or an approximate sensitivity compensation coefficient.

[0011] In the sensor data processing method provided in this application, when the sensitivity compensation coefficient is a complete sensitivity compensation coefficient, determining the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter includes:

[0012] Obtain the first squared value of the first target parameter and the second squared value of the second target parameter;

[0013] The ratio of the first squared value to the second squared value is used as the sensitivity compensation coefficient of the target channel.

[0014] In the sensing data processing method provided in this application, when the sensitivity compensation coefficient is an approximate sensitivity compensation coefficient, determining the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter includes:

[0015] The ratio of the first target parameter to the second target parameter is used as the sensitivity compensation coefficient of the target channel.

[0016] In the sensor data processing method provided in this application, the step of calculating the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold includes:

[0017] The first trigger threshold is adjusted according to a preset strategy;

[0018] The second trigger threshold of the target channel is calculated based on the sensitivity compensation coefficient and the adjusted first trigger threshold to meet the user's sensitivity requirements for the target channel.

[0019] In the sensing data processing method provided in this application, the first target parameter is the first sampled data and the second target parameter is the second sampled data; or, the first target parameter is the first baseline data and the second target parameter is the second baseline data.

[0020] In the sensing data processing method provided in this application, when the first target parameter is the first sampled data, the step of acquiring the first target parameter and data change value of the target channel includes:

[0021] Obtain the first target parameter of the target channel;

[0022] The first target data is preprocessed to obtain the first baseline data and the first filtered data;

[0023] Subtracting the first baseline data from the first filtered data yields the data change value of the target channel.

[0024] In the sensor data processing method provided in this application, when the first target parameter is the first baseline data, the step of acquiring the first target parameter and data change value of the target channel includes:

[0025] Obtain the first sampled data of the target channel;

[0026] The first sampled data is preprocessed to obtain the first target data and the first filtered data;

[0027] Subtract the first target data from the first filtered data to obtain the data change value of the target channel.

[0028] In the sensing data processing method provided in this application, acquiring the first sampled data of the target channel includes:

[0029] The current capacitance of the target channel is detected by a capacitance sensor;

[0030] The current capacitance is converted to generate the first sampled data.

[0031] In the sensing data processing method provided in this application, the relationship between the current capacitance and the first sampled data is as follows:

[0032]

[0033] Where N is the first sampled data, C x Let K be the current capacitance, and K be a circuit-related constant.

[0034] Secondly, this application provides a sensor data processing device, comprising:

[0035] The parameter acquisition unit is used to acquire the first target parameter and data change value of the target channel, and the second target parameter and first trigger threshold of the reference channel;

[0036] A coefficient determination unit is used to determine the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter;

[0037] A threshold determination unit is used to calculate a second trigger threshold for the target channel based on the sensitivity compensation coefficient and the first trigger threshold.

[0038] A state determination unit is used to compare the second trigger threshold with the data change value and determine the current state of the target channel based on the comparison result.

[0039] Thirdly, this application provides a storage medium storing a plurality of instructions adapted for loading by a processor to execute the sensing data processing method described in any of the preceding claims.

[0040] Fourthly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the sensing data processing method described in any of the preceding claims.

[0041] In summary, the sensing data processing method provided in this application acquires a first target parameter and data change value of the target channel, and a second target parameter and a first trigger threshold of the reference channel. Then, based on the first and second target parameters, it determines the sensitivity compensation coefficient of the target channel. Next, it calculates the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold. Finally, it compares the second trigger threshold with the data change value and determines the current state of the target channel based on the comparison result. This solution can determine the sensitivity compensation coefficient of the target channel using the first and second target parameters, and then compensate the trigger threshold of the target channel based on this sensitivity compensation coefficient and the reference channel to obtain the second trigger threshold, thereby improving the sensing accuracy of the target channel. Attached Figure Description

[0042] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0043] Figure 1 This is a schematic diagram of the sensing and detection system provided in the embodiments of this application.

[0044] Figure 2 This is a flowchart illustrating the sensor data processing method provided in the embodiments of this application.

[0045] Figure 3 This is a schematic diagram of the preprocessing process provided in the embodiments of this application.

[0046] Figure 4 This is a schematic diagram of the charging and discharging process of the capacitor sensor provided in the embodiments of this application.

[0047] Figure 5 This is a schematic diagram comparing the curve differences of the three sensitivity compensation schemes provided in the embodiments of this application.

[0048] Figure 6 This is a schematic diagram showing the parasitic capacitance of each channel provided in the embodiments of this application.

[0049] Figure 7 This is a schematic diagram of the sampling data of each channel and the corresponding data change values ​​provided in the embodiments of this application.

[0050] Figure 8 This is a schematic diagram of the triggering status of each channel in the sensitivity non-compensation scheme provided in the embodiments of this application.

[0051] Figure 9This is a schematic diagram of the triggering status of each channel in the sensitivity full compensation scheme provided in the embodiments of this application.

[0052] Figure 10 This is a schematic diagram of the triggering status of each channel in the sensitivity approximation compensation scheme provided in the embodiments of this application.

[0053] Figure 11 This is a schematic diagram of the sensor data processing device provided in the embodiments of this application.

[0054] Figure 12 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0055] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.

[0056] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, components, features, and elements with the same names in different embodiments of this application may have the same meaning or different meanings, the specific meaning of which must be determined by its interpretation in that specific embodiment or further in conjunction with the context of that specific embodiment.

[0057] It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to limit this application.

[0058] In the following description, the use of suffixes such as "module," "part," or "unit" to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, "module," "part," or "unit" may be used interchangeably.

[0059] In the description of this application, it should be noted that the terms "upper," "lower," "left," "right," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application. In addition, terms such as "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0060] This application provides a sensor data processing method, apparatus, storage medium, and electronic device. Specifically, the sensor data processing apparatus can be integrated into an electronic device, which can be a server or a terminal, etc. The terminal can include mobile phones, wearable smart devices, tablet computers, laptops, and personal computers (PCs), etc. The server can be a single server or a server cluster composed of multiple servers, and can be a physical server or a virtual server.

[0061] Please see Figure 1 , Figure 1 This is a schematic diagram of the structure of the sensing and detection system provided in an embodiment of this application. The sensing and detection system may include a sensing module 10 and a processing chip 20, which are communicatively connected.

[0062] The sensing module 10 can be used to identify sensing actions (such as touch and voice) and generate corresponding parameters; the processing chip 20 can be used to collect the parameters generated by the sensing module 10, obtain sampled data through data conversion, and determine the current state of the sensing module 10 based on the sampled data.

[0063] In some embodiments, the processing chip 20 may include a front-end sampling module 21, a data processing module 22, and a status processing module 23 connected in sequence. The front-end sampling module 21 collects parameters generated by the sensing module 10, converts the data to obtain sampled data N, and sends the sampled data N to the data processing module 22. The data processing module 22 processes the sampled data N to obtain the data change value DIFF of the sensing module, and sends the data change value DIFF to the status determination module 23. The status determination module 23 compares the data change value DIFF with a trigger threshold TH, and determines the current status (Status) of the sensing module 10 based on the comparison result.

[0064] Understandably, all other things being equal, the sensing sensitivity of the sensing module 10 depends on the trigger threshold TH.

[0065] In some embodiments, the sensing module 10 may include multiple sensing channels and corresponding reference channels. It should be noted that CH ref For the connection interface of the reference channel, CH1~CH n For the connection interface of channels 1 to n, N1 to N n The sampled data are for channels 1 to N, DIFF1 to DIFF2. n The data change values ​​for channels 1 to n, Status1 to Status n This represents the current state of channels 1 through n.

[0066] The technical solutions shown in this application will be described in detail below through specific embodiments. It should be noted that the order of description of the following embodiments is not intended to limit the priority of the embodiments.

[0067] Please see Figure 2 , Figure 2 This is a schematic flowchart of the sensor data processing method provided in an embodiment of this application. This sensor data processing method can be implemented using the aforementioned electronic device, and the specific sensor data processing method can be as follows:

[0068] 101. Obtain the first target parameter and data change value of the target channel, and the second target parameter and first trigger threshold of the reference channel.

[0069] Wherein, the first target parameter is the first sampled data, and the second target parameter is the second sampled data; or, the first target parameter is the first baseline data, and the second target parameter is the second baseline data.

[0070] In some embodiments, when the first target parameter is the first sampled data, the step "obtaining the first target parameter and data change value of the target channel" may include: obtaining the first target parameter of the target channel; preprocessing the first target data to obtain the first baseline data and the first filtered data; subtracting the first baseline data from the first filtered data to obtain the data change value of the target channel.

[0071] When the first target parameter is the first baseline data, obtaining the first target parameter and data change value of the target channel may include: obtaining the first sampled data of the target channel; preprocessing the first sampled data to obtain the first target data and the first filtered data; subtracting the first target data from the first filtered data to obtain the data change value of the target channel.

[0072] In some embodiments, the step "acquiring the first sampled data of the target channel" may include: detecting the current capacitance of the target channel using a capacitance sensor; performing data conversion on the current capacitance to generate the first sampled data.

[0073] In the specific implementation process, such as Figure 3 As shown, the preprocessing involves sequential filtering and baseline tracking. For example, filtering the first sampled data yields the first filtered data; baseline tracking is then performed on the filtered data to obtain the first baseline data. Similarly, filtering the second sampled data yields the second filtered data; baseline tracking is then performed on the filtered data to obtain the second baseline data.

[0074] It should be noted that, Figure 3 N in n For the sampled data of channel n; USEFUL n BL is the filtered data for channel n. n Baseline data for channel n; DIFF n DIFF represents the data change value of channel n. n =BL n -USEFUL n .

[0075] Both the filtering process and baseline tracking can be implemented using techniques known in the art, and will not be described in detail in the embodiments of this application.

[0076] It is understood that the first trigger threshold is the trigger threshold when the current state of the reference channel is triggered. In this embodiment, the sensing detection system has multiple sensing channels, and the target channel can be any one of the multiple sensing channels. It should be noted that each sensing channel has a corresponding reference channel. In specific implementation, the reference channel is not used for sensing and identification.

[0077] 102. Determine the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter.

[0078] The following description uses the detection principle of a capacitive sensor and touch as an example to illustrate the sensing action. It is understandable that the charging and discharging speed of a capacitor is related to its size. Based on this characteristic, the capacitive sensor can be used to detect touch and thus determine whether a touch has occurred.

[0079] In some embodiments, it can be as follows Figure 4 As shown, assume the highest charging voltage is U. h The minimum discharge voltage is U l When charging to U h Immediately discharge when the discharge reaches U l Immediately charge the sensor; at this time, the sensor voltage remains constant at U. h and U lIf the sensor oscillates between points, and the sampling oscillation duration is set to T, then the number of oscillations N within this time T corresponds one-to-one with the sensor capacitance value. Therefore, the state of the sensor can be determined by observing the change in the value of N.

[0080] Based on the detection principle of capacitance sensors, the charging and discharging process of a capacitor can be implemented using various different schemes (assuming the capacitance of the measured channel is C). x If the resistance of the charge / discharge switch is R, then the time constant for charging / discharging is τ = R·C. x ).

[0081] For example, in an RC oscillator design, a fixed voltage is used to charge and discharge the capacitor; the charging voltage is VDD, and the discharging voltage is 0. Therefore,

[0082] The voltage expression for the charging process is:

[0083]

[0084] The voltage expression for the discharge process is:

[0085]

[0086] The expressions for charging time t1 and discharging time t2 are as follows:

[0087]

[0088] If the detection time is T, then the expression for the number of charge / discharge cycles N within the detection time is as follows:

[0089]

[0090] Now, let the expression for the constant K1 be as follows:

[0091]

[0092] From the above, the relationship between the sampled data N and the capacitance can be obtained as follows:

[0093]

[0094] For example, if a constant current source is used to charge and discharge a capacitor (where I is the current of the constant current source), then...

[0095] The voltage expression for the charging process is as follows:

[0096]

[0097] The voltage expression for the discharge process is as follows:

[0098]

[0099] The expressions for charging time t1 and discharging time t2 are as follows:

[0100]

[0101] If the detection time is T, then the number of charge / discharge cycles N within the detection time is represented as follows:

[0102]

[0103] Now, let the expression for the constant K2 be as follows:

[0104]

[0105] From the above, the relationship between the sampled data N and the capacitance can be obtained as follows:

[0106]

[0107] The comparison between the two schemes is shown in the table below:

[0108]

[0109]

[0110] Therefore, it can be deduced that regardless of the charging and discharging scheme used, the relationship between the sampled data N and the capacitance can be obtained:

[0111]

[0112] Where K is a circuit-related constant within the same system, and C... X Let N be the capacitance parameter detected by the sensor, and N be the sampled data generated by converting the capacitance detected by the capacitance sensor according to the detection principle. Based on the detection principle of the capacitance sensor, its sensitivity can be derived as follows:

[0113] The equality sign on both sides of the above expression applies to C. x By taking the derivative, we can obtain the result when the capacitance changes by ΔC. x When the data change value ΔN is, the expression is:

[0114]

[0115] Assuming the touch threshold is TH, then the touch condition is: With the touch threshold TH fixed, the constant is: Whether this is recognized as a touch depends on the square of the parasitic capacitance. The change in capacitance ΔC caused by touch x The influence of these two variables. At this point,

[0116]

[0117] As can be seen from the above formula, the data change value ΔN is related to the square of the sensor detection parameter. The sensitivity of this sensor is inversely proportional to its own parameters. Therefore, the sensitivity of this sensor is greatly affected by its own parameters, and when the sensor has multiple detection channels, its sensitivity varies considerably.

[0118] Therefore, the capacitance change ΔC caused by touch x When fixed, the parasitic capacitance C x The larger, The smaller the value, the harder it is to achieve touch conditions, and the lower the sensitivity; conversely, the larger the value, the higher the parasitic capacitance C. x The smaller, The larger the size, the easier it is to achieve touch conditions, and the higher the sensitivity.

[0119] In the embodiments of this application, due to factors such as wiring, the parasitic capacitance C of each channel is... x1 ~C xn The sensitivity of each channel may vary, leading to problems such as misidentification and slow response during application.

[0120] Based on this, the embodiments of this application adjust the trigger threshold of each channel by using a sensitivity compensation coefficient, thereby compensating for the sensitivity of each channel and bringing the sensitivity of each channel to the same or similar level to overcome the above-mentioned problems. The specific derivation process of this sensitivity compensation coefficient is as follows:

[0121] As can be seen from the above embodiments, the sampling data N and the capacitance C x The relationship is as follows:

[0122]

[0123] The change in data ΔN and the capacitance C x The relationship is as follows:

[0124]

[0125] At this point, C in ΔN x Following the formula substitution method, replacing the expression with N yields the following expression:

[0126]

[0127] The above expression applies to all channels. It should be noted that the capacitance change caused by the same touch action is essentially the same across all channels, and is independent of the parasitic capacitance of each channel, i.e., ΔC. X1 =ΔC X2 =ΔC XnTherefore, assuming all channels have the same capacitance change value, the relationship between the data change value ΔN and the sampled data N is as follows:

[0128]

[0129] However, considering that the sampled data is constantly changing, the ratio of the data change value ΔN to the sampled data N may fluctuate, resulting in uncertainty. To provide a stable ratio reference, this application introduces a reference channel. This reference channel is not used for touch recognition, and its capacitance value does not change with touch during application; it is only affected by environmental changes. Therefore, the ratio between the sampled data of each channel and the sampled data of the reference channel is as follows:

[0130]

[0131] Where, ΔN n The capacitance change value of the nth channel is ΔC Xn The change in the corresponding sampled value, ΔN ref The capacitance change value of the reference channel is ΔC Xn The change in the corresponding sampled value at that time.

[0132] Therefore, based on the proportional relationship between the sampling data and the sampling change value between each channel and the reference channel, the proportional value can be converted into the sensitivity compensation coefficient of each channel, and the trigger threshold of each channel can be adjusted to compensate for the sensitivity of each channel, so that the sensitivity of each channel is at the same or close level.

[0133] That is, in the embodiments of this application, the sensitivity compensation coefficient can be a complete sensitivity compensation coefficient or a near-complete sensitivity compensation coefficient. It can be understood that when the trigger threshold of each channel is adjusted to compensate for the sensitivity of each channel so that the sensitivity of each channel is at the same level, the sensitivity compensation coefficient is a complete sensitivity compensation coefficient; when the trigger threshold of each channel is adjusted to compensate for the sensitivity of each channel so that the sensitivity of each channel is at a similar level, the sensitivity compensation coefficient is a near-complete sensitivity compensation coefficient.

[0134] Specifically, a sensitivity compensation coefficient can be introduced for the nth channel by utilizing the sampling data of each channel, the proportional relationship of the sampling data changes, and a reference channel. Therefore, based on this sensitivity compensation coefficient and the trigger threshold TH of the corresponding reference channel, the sensitivity compensation coefficient can be used to determine the trigger threshold. refn The trigger threshold of the nth channel is calculated to achieve the effect of sensitivity compensation.

[0135] That is, when the sensitivity compensation coefficient is the full sensitivity compensation coefficient, the step "determine the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter" may include:

[0136] Obtain the first squared value of the first objective parameter and the second squared value of the second objective parameter;

[0137] The ratio of the first squared value to the second squared value is used as the sensitivity compensation coefficient for the target channel.

[0138] With a fixed reference channel, sensitivity The influence of two data points is the capacitance change ΔC caused by the nth channel sensor being touched. xn The trigger threshold TH of the reference channel corresponding to the nth channel sensor refn If the ΔC of each channel xn and TH refn If the sensitivity of each channel is identical, then the sensitivity remains consistent, and the sensitivity is independent of parasitic capacitance, achieving the best sensitivity compensation effect. Therefore, this scheme is a complete sensitivity compensation scheme.

[0139] However, while the full sensitivity compensation scheme achieves excellent compensation results, its compensation coefficients are quite complex and consume significant resources in practical applications. Therefore, this application also provides a sensitivity approximation compensation scheme. Compared to the full sensitivity compensation scheme, this scheme is easier to implement and can achieve a certain level of sensitivity compensation.

[0140] Specifically, the sensitivity compensation coefficient can be set to... Based on this sensitivity compensation coefficient and the reference channel trigger threshold TH corresponding to the nth channel. refn The trigger threshold of the nth channel is approximated by compensation, thus achieving the effect of approximate sensitivity compensation.

[0141] That is, when the sensitivity compensation coefficient is an approximate sensitivity compensation coefficient, the step "determine the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter" may include:

[0142] The ratio of the first target parameter to the second target parameter is used as the sensitivity compensation coefficient of the target channel.

[0143] With a fixed reference channel, sensitivity The influence of three data points is the capacitance change ΔC caused by the nth channel sensor being touched. xn The parasitic capacitance C of the nth channel xn The trigger threshold TH of the reference channel corresponding to the nth channel refnIf the ΔC of each channel xn and TH refn If they are the same, then the sensitivity of each channel is the same as C. xn Inversely proportional, although sensitivity is still affected by parasitic capacitance, it is a significant improvement compared to the uncompensated sensitivity scheme.

[0144] In some embodiments, the trigger threshold TH for each reference channel can be adjusted according to actual needs. refn Adjustments can be made to further refine the sensitivity of each channel based on the same or similar sensitivity, in order to meet the user's controllable sensitivity requirements for different channels.

[0145] 103. Calculate the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold.

[0146] The second trigger threshold is the trigger threshold when the current state of the target channel is triggered.

[0147] In the embodiments of this application, the specific expressions for the sensitivity-uncompensated scheme, the sensitivity-fully compensated scheme, and the sensitivity-approximately compensated scheme are shown in the following table:

[0148]

[0149]

[0150] Among them, TH n This represents the trigger threshold for the nth channel; TH refn This represents the trigger threshold of the reference channel corresponding to the nth channel; This is the sensitivity expression; The conditions for touch detection by the channel are used for sensitivity characteristic analysis. The remaining variables in the table above are explained in the above embodiments and will not be repeated here.

[0151] Based on the above, the step "calculate the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold" can be specifically defined as multiplying the sensitivity compensation coefficient by the first trigger threshold to obtain the second trigger threshold of the target channel.

[0152] Please see Figure 5 , Figure 5 This is a schematic diagram comparing the curve differences of the three sensitivity compensation schemes mentioned above. Where the horizontal axis x represents... The y-axis represents the sensitivity compensation coefficient. In the figure, "A" represents the no-sensitivity-compensation scheme, "B" represents the fully-compensated sensitivity scheme, and "C" represents the approximate-compensated sensitivity scheme. As can be seen from the above examples, the fully-compensated sensitivity scheme is the most perfect compensation scheme; therefore, the closer the sensitivity compensation scheme is to this scheme, the better its effect.

[0153] exist Figure 5 In the first quadrant, the approximate sensitivity compensation scheme is significantly closer to the complete sensitivity compensation scheme. Furthermore, the three schemes intersect at coordinate (1, 1), where the compensation coefficient for all three schemes is 1, resulting in identical sensitivity across all channels. That is, N n =N ref Near this coordinate, the sensitivity full compensation scheme and the sensitivity approximation compensation scheme are quite similar; the closer to this point, the smaller the compensation difference. Therefore, in the practical application of the sensitivity approximation compensation scheme, the parasitic capacitance of the reference channel can be set to be close to the average value of the parasitic capacitances of all other channels, resulting in better sensitivity compensation.

[0154] In the specific implementation process, since the sensitivity compensation coefficients are all derived from the reference channel sampling data N ref and the sampled value N of the nth channel n The data is composed of proportional relationships, and the sampled values ​​are constantly changing, which may cause the trigger threshold to fluctuate, resulting in uncertainty. The baseline data BL... n It only tracks slow environmental changes, the data is relatively stable and close to the initial baseline data, and the trigger threshold is more stable.

[0155] Therefore, in some embodiments, N in the sensitivity compensation coefficient of the above embodiments can be adjusted according to actual needs. n Change to BL n , will N ref Change to BL ref At this point, the specific expressions for the sensitivity-uncompensated scheme, the sensitivity-fully compensated scheme, and the sensitivity-approximately compensated scheme can be shown in the following table:

[0156]

[0157]

[0158] The variables in the table above are explained in other embodiments, and will not be repeated here.

[0159] In some embodiments, the trigger threshold TH for each reference channel can be adjusted according to actual needs. refn Adjustments can be made to further refine the sensitivity of each channel based on the same or similar sensitivity, in order to meet the user's controllable sensitivity requirements for different channels.

[0160] Therefore, the step "calculate the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold" may include: adjusting the first trigger threshold according to a preset strategy; calculating the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the adjusted first trigger threshold to meet the user's sensitivity requirements for the target channel.

[0161] Adjusting the first trigger threshold according to a preset strategy involves increasing or decreasing the first trigger threshold of the target channel based on the user's actual sensitivity requirements. This allows for fine-tuning of the sensitivity of each channel while maintaining or approximating the same sensitivity, thereby meeting the user's sensitivity needs for different channels.

[0162] 104. Compare the second trigger threshold with the data change value, and determine the current state of the target channel based on the comparison result.

[0163] Specifically, when the data change value is greater than or equal to the second trigger threshold, the current state of the target channel can be determined to be triggered; when the data change value is less than the second trigger threshold, the current state of the target channel can be determined to be untriggered.

[0164] Please see Figures 6-10 , Figures 6-10 This can intuitively demonstrate the function of the sensitivity compensation scheme provided in the embodiments of this application.

[0165] like Figure 6 As shown, CH ref CH1 to CH5 are the reference channels, and their parasitic capacitances are C, C, C, and C, respectively. ref and C X1 ~C X5 The height of the rectangle represents the size of the parasitic capacitance; the parasitic capacitance C of the CH3 channel... X3 Maximum, parasitic capacitance C of CH5 channel X5 Minimum parasitic capacitance C of the reference channel ref Parasitic capacitance C of CH2 X2 Approaching (with C) X1 ~C X5 The average value is also close to that of the average value.

[0166] Figure 7 The left side shows the sampling data for each channel at a sampling time of T. According to the sampling principle, the sampling data N3 for channel CH3 is the smallest, the sampling data N5 for channel CH5 is the largest, and the sampling data N for the reference channel is the largest. ref The sampling data N2 is close to that of CH2 (and C). X1 ~C X5 The average values ​​of the sampled data N1 to N5 are also close. Figure 7 The right side shows the capacitance change values ​​for each channel, all of which are ΔC.X The corresponding data change values ​​DIFF1 to DIFF5 are generated. According to the sampling principle, for the same capacitance change value, the channel with a larger parasitic capacitance corresponds to a smaller data change value, and the channel with a smaller parasitic capacitance corresponds to a larger data change value.

[0167] Figure 8 This diagram illustrates the triggering behavior of each channel in a non-compensated sensitivity scheme, assuming the triggering threshold TH of the reference channel for each channel. refn The values ​​are the same, i.e., TH1 = TH2 = TH3 = TH4 = TH5. The data change values ​​of each channel are compared with the trigger threshold. Due to the difference in parasitic capacitance, the capacitance change value of each channel is ΔC. X At that time, only CH1, CH2 and CH5 with relatively small parasitic capacitance were recognized as triggers, while CH3 and CH4 were not recognized as triggers, thus demonstrating the difference in sensitivity.

[0168] Figure 9 This diagram illustrates the triggering status of each channel in a complete sensitivity compensation scheme, assuming the triggering threshold TH of the reference channel for each channel. refn The same. By compensating for the trigger threshold of each channel, the capacitance change value of each channel is ΔC. X When this happens, it will be recognized as a trigger, and the sensitivity of each channel will be compensated to the same level.

[0169] Figure 10 This diagram illustrates the triggering status of each channel in the sensitivity approximation compensation scheme, assuming the triggering threshold TH of the reference channel corresponding to each channel. refn The same. By compensating for the trigger threshold of each channel, the capacitance change value of each channel is ΔC. X At that time, the data change value of each channel is closer to the trigger threshold. Compared with the uncompensated sensitivity scheme, channel CH4 is identified as triggered, while channel CH3, although identified as not triggered, has a capacitance change value that is closer to ΔC. x If the value is slightly larger, it may also be identified as a trigger, and the sensitivity of each channel is compensated to a relatively close level.

[0170] In summary, the sensing data processing method provided in this application involves acquiring the first target parameter and data change value of the target channel, and the second target parameter and first trigger threshold of the reference channel. Then, based on the first and second target parameters, a sensitivity compensation coefficient for the target channel is determined. Next, a second trigger threshold for the target channel is calculated based on the sensitivity compensation coefficient and the first trigger threshold. Finally, the second trigger threshold is compared with the data change value, and the current state of the target channel is determined based on the comparison result. This solution can determine the sensitivity compensation coefficient of the target channel using the first and second target parameters, and then compensate the trigger threshold of the target channel based on this sensitivity compensation coefficient and the first trigger threshold of the reference channel to obtain the second trigger threshold, thereby improving the sensing accuracy of the target channel. Furthermore, this solution can also adjust the first trigger threshold of the reference channel corresponding to each channel according to actual needs, thereby allowing further adjustment of the sensitivity of each channel on the basis of the same sensitivity to meet the user's controllable sensitivity requirements for different channels.

[0171] To facilitate better implementation of the sensor data processing method provided in the embodiments of this application, the embodiments of this application also provide a sensor data processing device. The meanings of the terms used are the same as in the sensor data processing method described above, and specific implementation details can be found in the descriptions in the method embodiments.

[0172] Please see Figure 11 , Figure 11 This is a schematic diagram of the structure of a sensor data processing device provided in an embodiment of this application. The sensor data processing device may include a parameter acquisition unit 201, a coefficient determination unit 202, a threshold determination unit 203, and a state determination unit 204.

[0173] The parameter acquisition unit 201 is used to acquire the first target parameter and data change value of the target channel, and the second target parameter and first trigger threshold of the reference channel;

[0174] The coefficient determination unit 202 is used to determine the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter;

[0175] The threshold determination unit 203 is used to calculate the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold;

[0176] The state determination unit 204 is used to compare the second trigger threshold with the data change value and determine the current state of the target channel based on the comparison result.

[0177] For specific implementation methods of each of the above units, please refer to the embodiments of the above-described sensing data processing method, which will not be repeated here.

[0178] In practical implementation, the sensing data processing device can determine the sensitivity compensation coefficient of the target channel through the first target parameter and the second target parameter, and then compensate the trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold of the reference channel to obtain the second trigger threshold, thereby improving the sensing accuracy of the target channel.

[0179] This application also provides an electronic device in which the sensing data processing device of this application can be integrated, such as... Figure 12 As shown, it illustrates a structural schematic diagram of the electronic device 300 involved in an embodiment of this application. Specifically:

[0180] The electronic device 300 may include components such as a processor 301 with one or more processing cores, a memory 302 with one or more computer-readable storage media, a power supply 303, and an input unit 304. Those skilled in the art will understand that... Figure 12 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:

[0181] The processor 301 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines, and performs various functions and processes data by running or executing software programs and / or modules stored in the memory 302, and by calling data stored in the memory 302, thereby providing overall monitoring of the electronic device. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 301.

[0182] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0183] The electronic device also includes a power supply 303 that supplies power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 303 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0184] The electronic device may further include an input unit 304, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, in one embodiment, the input unit 304 may include a touch-sensitive surface and other input devices. The touch-sensitive surface, also known as a touch display or touchpad, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch-sensitive surface) and drive corresponding connected devices according to a pre-set program. Optionally, the touch-sensitive surface may include both a touch detection device and a touch controller.

[0185] Although not shown, the electronic device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device loads the executable files corresponding to the processes of one or more applications into the memory 302 according to the following instructions, and the processor 301 runs the applications stored in the memory 302 to realize various functions, as follows:

[0186] Obtain the first target parameter and data change value of the target channel, and the second target parameter and first trigger threshold of the reference channel;

[0187] The sensitivity compensation coefficient of the target channel is determined based on the first target parameter and the second target parameter;

[0188] Calculate the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold;

[0189] The second trigger threshold is compared with the data change value, and the current state of the target channel is determined based on the comparison result.

[0190] In summary, in the electronic device 300 provided in this application embodiment, the sensitivity compensation coefficient of the target channel can be determined by the first target parameter and the second target parameter. Then, the trigger threshold of the target channel is compensated based on the sensitivity compensation coefficient and the first trigger threshold of the reference channel to obtain the second trigger threshold, thereby improving the sensing accuracy of the target channel.

[0191] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the detailed description of the sensing data processing method above, which will not be repeated here.

[0192] It should be noted that, for the sensing data processing method in the embodiments of this application, those skilled in the art will understand that all or part of the process of the sensing data processing method in the embodiments of this application can be implemented by a computer program controlling the relevant hardware. The computer program can be stored in a computer-readable storage medium, such as the memory of a terminal, and executed by at least one processor in the terminal. During the execution process, it can include the process of the embodiments of the sensing data processing method.

[0193] For the sensor data processing device of this application embodiment, its functional modules can be integrated into a processing chip, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0194] Therefore, embodiments of this application provide a storage medium storing multiple instructions that can be loaded by a processor to execute steps in any of the sensor data processing methods provided in this application. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), etc.

[0195] The foregoing has provided a detailed description of the sensing data processing method, apparatus, storage medium, and electronic device provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the core ideas of this application. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A sensor data processing method, characterized in that, include: Obtain the first target parameter and data change value of the target channel, and the second target parameter and first trigger threshold of the reference channel; The first target parameter is the first sampled data or the first baseline data; The sensitivity compensation coefficient of the target channel is determined based on the first target parameter and the second target parameter; Calculate the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold; The second trigger threshold is compared with the data change value, and the current state of the target channel is determined based on the comparison result.

2. The sensor data processing method as described in claim 1, characterized in that, The sensitivity compensation coefficient is either a full sensitivity compensation coefficient or an approximate sensitivity compensation coefficient.

3. The sensor data processing method as described in claim 2, characterized in that, When the sensitivity compensation coefficient is a full sensitivity compensation coefficient, determining the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter includes: Obtain the first squared value of the first target parameter and the second squared value of the second target parameter; The ratio of the first squared value to the second squared value is used as the sensitivity compensation coefficient of the target channel.

4. The sensor data processing method as described in claim 2, characterized in that, When the sensitivity compensation coefficient is an approximate sensitivity compensation coefficient, determining the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter includes: The ratio of the first target parameter to the second target parameter is used as the sensitivity compensation coefficient of the target channel.

5. The sensor data processing method according to any one of claims 1-4, characterized in that, The step of calculating the second trigger threshold of the target channel based on the sensitivity compensation coefficient and the first trigger threshold includes: The first trigger threshold is adjusted according to a preset strategy; The second trigger threshold of the target channel is calculated based on the sensitivity compensation coefficient and the adjusted first trigger threshold to meet the user's sensitivity requirements for the target channel.

6. The sensor data processing method according to any one of claims 1-4, characterized in that, When the first target parameter is the first sampled data, the second target parameter is the second sampled data; or, when the first target parameter is the first baseline data, the second target parameter is the second baseline data.

7. The sensor data processing method as described in claim 6, characterized in that, When the first target parameter is the first sampled data, the acquisition of the first target parameter and data change value of the target channel includes: Obtain the first target parameter of the target channel; The first target parameters are preprocessed to obtain the first baseline data and the first filtered data; Subtracting the first baseline data from the first filtered data yields the data change value of the target channel.

8. The sensor data processing method as described in claim 6, characterized in that, When the first target parameter is the first baseline data, the acquisition of the first target parameter and data change value of the target channel includes: Obtain the first sampled data of the target channel; The first sampled data is preprocessed to obtain the first target parameter and the first filtered data; Subtract the first target parameter from the first filtered data to obtain the data change value of the target channel.

9. The sensor data processing method as described in claim 8, characterized in that, The acquisition of the first sampled data of the target channel includes: The current capacitance of the target channel is detected by a capacitance sensor; The current capacitance is converted to generate the first sampled data.

10. The sensor data processing method as described in claim 9, characterized in that, The relationship between the current capacitance and the first sampled data is as follows: Where N is the first sampled data, Let K be the current capacitance, and K be a circuit-related constant.

11. A sensor data processing device, characterized in that, include: The parameter acquisition unit is used to acquire the first target parameter and data change value of the target channel, and the second target parameter and first trigger threshold of the reference channel; The first target parameter is the first sampled data or the first baseline data; A coefficient determination unit is used to determine the sensitivity compensation coefficient of the target channel based on the first target parameter and the second target parameter; A threshold determination unit is used to calculate a second trigger threshold for the target channel based on the sensitivity compensation coefficient and the first trigger threshold. A state determination unit is used to compare the second trigger threshold with the data change value and determine the current state of the target channel based on the comparison result.

12. A storage medium, characterized in that, The storage medium stores a plurality of instructions, which are adapted for loading by a processor to execute the sensor data processing method according to any one of claims 1 to 10.

13. An electronic device, characterized in that, The system includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the sensor data processing method as described in any one of claims 1 to 10.