Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The screen data processing method provided by the embodiment of the application is described in detail through specific embodiments and application scenes thereof with reference to the accompanying drawings.
First, a detailed description is given of a process of sampling a touch event of a screen, and capacitive touch is to detect a finger by detecting a change of capacitance of self-mutual capacitance caused by the finger touch. When a finger touches, the self-mutual capacitance value changes, capacitance sensing data (namely Rawdata) obtained by column and row scanning sampling of the touch IC changes, the touch point coordinates are obtained by detecting Rawdata variation quantity calculation, and then the coordinate data is reported to the terminal IC through SPI/I2C, which is the whole flow of touch event sampling.
After the touch IC acquires Rawdata through scanning sampling, reference data (Baseline) is established, the touch IC establishes Baseline with one frame Rawdata with no touch event and high full-screen data flatness, capacitance difference data (diffdata) of each frame data is obtained by subtracting Baseline from Rawdata acquired through scanning of each frame, and diffdata is subjected to a series of filtering, gravity center and smoothing algorithms to acquire actual coordinates of a touch point. As shown in fig. 1 (a), diffdata data acquired during a single-finger touch are shown, and when a touch event occurs, the touch area envelope (the area of the dashed box) can be clearly captured in the diffdata plane (i.e., one frame of difference data is obtained). It should be noted that, after the reference data is established, the reference data is not unchanged, because the frequency, the ambient temperature, and the like of the touch scanning are changed, and the change of Rawdata is caused, so that the Baseline needs to be updated slowly and dynamically along with the change trend of Rawdata in order to ensure that the touch cannot be wrongly reported.
Secondly, based on the whole flow of the touch event sampling, the processing effect of the existing touch screen algorithm is poor in the face of some complex scenes at present. For example, the high-low temperature environment is switched, the capacitance value is changed along with the temperature change, and the capacitance touch IC detects the finger by detecting the self-mutual capacitance value change caused by the finger touch, so the temperature change can cause the signal quantity detected by the IC, namely Rawdata to change, in particular to a self-capacitance scanning mode, the self-capacitance scanning is to detect the finger by detecting the capacitance value change of the sensor to the ground coupling capacitance, and the influence of the temperature is larger. The IC scan samples Rawdata are smaller in low temperature mode and Rawdata are larger in high temperature mode, and the lower the temperature is, the smaller the temperature is Rawdata, and the higher the temperature is, the larger the Rawdata is.
Since a change in temperature will bring Rawdata to a change, and a change in Rawdata will cause Baseline to be in a dynamic update state, this brings two problems, namely, rawdata change caused by a change in temperature is faster than update of reference data (Baseline), and because Baseline will not be updated by touch IC when touch occurs, if the ambient temperature changes greatly at this time, rawdata plane (i.e. a frame of capacitance sensing data) will deviate greatly from Baseline plane (i.e. a frame of reference data):
The following list two data changes in the temperature switching scenario:
1) When the electronic device is switched from a low-temperature environment to a high-temperature environment, rawdata is increased as a whole, if the Baseline plane is updated slowly or stopped, the numerical value of the Rawdata plane is increased as a whole relative to the numerical value of the Baseline plane, and the numerical value of the Rawdata plane is represented as a positive value in most of the area diffdata, as shown in (b) of fig. 1, diffdata of data acquired during low-temperature switching and high-temperature touchless is displayed, and if diffdata of the touchless area exceeds a point reporting threshold, a false point reporting is displayed, so that user experience is reduced;
2) When the electronic device is switched from a high-temperature environment to a low-temperature environment, rawdata is reduced as a whole, the numerical value of the Rawdata plane is reduced as a whole relative to the numerical value of the Baseline plane, and the numerical value of the Rawdata plane is reduced as a large part of area diffdata is negative, as shown in (c) of fig. 1, diffdata data acquired when the electronic device is not touched at a high temperature of Wen Qie, the negative value appearing in the touch area counteracts the sensing amount generated by a finger, and when the sensing amount of the finger is lower than the point-reporting threshold value, the touch screen is not functional, is insensitive to clicking, and reduces user experience.
In the related art, aiming at the problems of false alarm of a touch screen, no function, insensitive clicking and the like caused by the switching of high temperature and low temperature, some common optimization methods at present are as follows:
1) The reference data is stronger when the finger touches, the abnormal lifting value of the non-touch area diffdata is removed, then the reference data is updated again after the hand is lifted, the Baseline comprising the finger touch sensing quantity is restored to the Baseline in the five-touch state, but diffdata is obtained by subtracting the Baseline according to Rawdata, so that the coordinate report point is not calculated by the touch IC when the reference data is updated, the reference data is stronger when the finger touches, the problems of leakage point and disconnection are caused, and the user experience is affected;
2) And detecting the lifting rate (or the descending rate) of the full screen diffdata after temperature switching, increasing the updating speed of Baseline according to the change of Rawdata, and enabling the updating speed of Baseline to be quickly adapted to the change of Rawdata caused by temperature change when a user lifts his hands or is idle without touching. However, the method has the following two problems that on one hand, when the full screen diffdata is detected to be lifted, the updating speed of the Baseline is increased, the real-time performance is poor, if the user always uses the touch screen terminal after the temperature is returned, the Baseline stops updating, the use of the user is easily affected by false report points, on the other hand, when the temperature is returned, the lifted data characteristic of the full screen diffdata is similar to that of the full screen large-area palm pressing, the two states are easily confused, when the current state is confirmed to be the large-area pressing state by mistake, the touch screen triggers the large-area inhibition, the touch screen is nonfunctional, and the user experience is poor;
3) After the electronic equipment Host monitors temperature information, the touch control IC is informed in real time through the SPI/I2C, the IC detects high-low temperature environment change information and carries out related algorithm pretreatment, and the treatment has two defects, namely, on one hand, the main control detection temperature of the electronic equipment is internal temperature, and the main control detection temperature is different from the capacitance temperature of a touch screen node to some extent, so that the software realization effect is possibly poor, and on the other hand, the addition of the main control and touch control IC interaction information can improve hardware power consumption and software development cost and is not easy to realize the whole machine delivery effect.
The application provides a method for optimizing a high-low temperature switching touch effect according to the temperature sensitivity difference of node capacitances of different areas of a touch screen. The method and the device have the advantages that the sensitivity difference of the touch screen capacitance node to the temperature difference change is analyzed based on the external structure of the electronic equipment, the environmental temperature is detected according to the difference of the data acquired Rawdata by the nodes in different areas caused by the temperature difference change, when the temperature change of the touch screen environment occurs, the data processing is performed by detecting the base plane change rapid switching related algorithm of the reference data, the problems of false alarm, no function, insensitivity and the like are avoided, and the user experience is improved.
The method for detecting the ambient temperature of the touch screen is described below with reference to specific application scenarios:
Taking the electronic device as an example of a mobile phone with a single-sided horn hole at the bottom of the full screen, the external appearance diagram of the mobile phone is shown in fig. 2 (a). Because the electronic equipment is provided with the USB port, the loudspeaker, the earphone hole and the microphone hole, compared with a top area (a camera area), the contact area of the bottom area of the touch screen and air is larger, the influence of temperature change is larger, and particularly, the sensitivity to the temperature change is highest in a lower right corner area.
Because the capacitance value of the node capacitor is checked when the touch screen module of the electronic equipment leaves the factory, the capacitance value of the far-near end node is not greatly different in normal temperature environment, and the flatness of the Rawdata matrix acquired by touch IC scanning is higher. As can be seen from fig. 2 (b), the overall difference between the data of the Baseline data in the rectangular frame 21a and the Baseline data in the rectangular frame 22a is small, that is, the overall difference between the capacitance values of the upper right corner region and the lower right corner region of the screen is small.
When the touch screen is switched from a high temperature environment to a low temperature environment, the temperature of the bottom area of the touch screen is reduced more quickly than that of the top area, the node capacitance is greatly influenced by the temperature, and the node Rawdata of the bottom area of the touch IC scanning acquisition is smaller. In fig. 2 (C), which is a schematic diagram of the detected node Baseline data in a low temperature (15 ℃ below zero) environment and without touch input on the screen of the electronic device, it can be seen from fig. 2 (C) that the overall difference between the Baseline data in the rectangular frame 21b and the Baseline data in the rectangular frame 22b is large, that is, the overall difference between the capacitance values of the upper right corner area and the lower right corner area of the screen is large.
When switching from low temperature to high temperature environment, the temperature of the bottom area of the touch screen will rise faster than the top area, and the bottom area node Rawdata of the touch IC scan collection will be larger. In fig. 2 (d) is a schematic diagram of the detected node Baseline data in a high temperature (50 ℃) environment, and in a case where the screen of the electronic device has no touch input, as can be seen from fig. 2 (d), the overall difference between the Baseline data in the rectangular frame 21C and the Baseline data in the rectangular frame 22C is large, that is, the overall difference between the capacitance values of the upper right corner area and the lower right corner area of the screen is large.
It should be noted that, the touch chip (i.e., the touch ic) may scan each node of the screen by means of a row scan or a column scan, obtain capacitance sensing data (Rawdata) of each node of the screen, and further determine the reference value (Baseline). That is, the arrangement manner of the data in fig. 2 is consistent with the arrangement order of the nodes in the screen of the electronic device, and the area where the data is located in fig. 2 has a corresponding relationship with the screen area. For example, the area where the rectangular frame 21a in fig. 2 is located corresponds to the upper right corner area of the screen.
It should be noted that, since the Baseline data is determined based on Rawdata data acquired by touch IC scanning, the Baseline data may reflect the data characteristics of the corresponding Rawdata data.
According to the experimental data, 1) the reason why the false alarm point is easy to switch from the low-temperature environment to the high-temperature environment is that the value of Baseline in the bottom area of the screen is smaller in the low-temperature environment, the capacitance temperature return of the node in the bottom area is faster after the temperature returns to the high temperature, the value of Rawdata in the bottom area of the screen rises rapidly, the value of diffdata in the bottom area of the screen increases to be positive, at this time, if the touch screen is in a touch state for a longer time, baseline is always in a non-update state or in a slow update state, the fact that the value of diffdata in a non-touch area rises excessively high to reach the alarm point threshold value may occur, so the key of the processing comprises two points:
i. When the whole reduction of the value of the Baseline plane in the bottom area of the screen is detected in a low-temperature environment, increasing the Baseline updating speed in advance, and ensuring that the Baseline updating speed does not lag the speed of change of Rawdata caused by temperature when the low-temperature cutting high-temperature is free of touch;
and ii, increasing a Noise threshold, and filtering out data lifting caused by temperature change by adopting a row-column average filtering algorithm to avoid false alarm points caused by node data sudden increase to a point-reporting threshold in a bottom area diffdata.
2) The reason why the switching from the high temperature environment to the low temperature environment is easy to be nonfunctional and low in sensitivity is that the value of the Baseline plane of the bottom area is larger in the high temperature environment, the node capacitance of the bottom area is cooled faster after the high temperature returns to the low temperature, the value of the bottom area of the Rawdata plane is quickly reduced, a negative value appears in the bottom area of the plane diffdata, at this time, if the touch screen is in a use or touch state for a long time, the Baseline is always in a non-updated state or a slower updated state, a negative value of a larger area may appear in diffdata, and the sensitivity is affected, and the processing method comprises two points:
i. Switching at the same low temperature, and increasing the updating speed of Baseline;
And ii, reducing the reporting threshold, avoiding the problems of non-function of a touch screen, insensitive click of a scribing and the like caused by weakening of finger sensing quantity, and recovering the reporting threshold after the flatness of the Baseline plane with stable temperature is recovered.
The embodiment of the application provides a screen parameter adjusting method which can be applied to electronic equipment, and fig. 3 shows a flow chart of the screen parameter adjusting method provided by the embodiment of the application. As shown in fig. 3, the screen parameter adjustment method provided by the embodiment of the present application may include the following steps 201 to 203:
step 201, first reference data of a screen is acquired.
The screen comprises N areas, the first reference data comprise first touch response reference values corresponding to the areas, and N is a positive integer.
In the embodiment of the present application, the first reference data may be one frame of reference data of a screen.
In an embodiment of the present application, the one frame of first reference data includes at least one data. Illustratively, in the case where the screen includes m×n nodes, the first reference data includes m×n node data.
Optionally, in the embodiment of the present application, the first detection data may be Baseline data, where the Baseline data is used to obtain capacitance difference data (diffdata) by making a difference with currently acquired third detection data (Rawdata) when the screen currently receives the touch input.
For example, the screen parameter adjustment means may acquire one frame of third detection data of the screen after acquiring the first reference data of the screen.
It should be noted that, the capacitance difference data is used to determine the coordinates of the touch point of the touch input.
Optionally, in an embodiment of the present application, the first touch response reference value is a value of the first reference data.
For example, the N areas include an area 1 in the lower right corner of the screen and an area 2 in the upper right corner. The first touch response reference value of the area 1 is the touch response reference value of the area at the lower right corner of the screen, and the first touch response reference value of the area 2 is the touch response reference value of the area at the upper right corner of the screen.
Because of the structure of the electronic device, the capacitance sensing data of the screen area in the lower right corner is more susceptible to the influence of the outside environment temperature difference than the capacitance sensing data of the screen area in the upper right corner, and therefore, the outside temperature difference can be judged based on the sensing data of the two areas.
Optionally, in an embodiment of the present application, after acquiring a frame of first reference data of a screen, the screen parameter adjustment device may establish a Baseline matrix corresponding to the first reference data, so as to calculate or process the reference data through the Baseline matrix.
For example, the Baseline matrix may also be referred to as a Baseline plane, which may be a rectangular plane, where reference data in the plane corresponds to reference data of an entire area of the screen one by one, and is used to characterize the overall fluctuation condition of one frame of reference data of the screen.
For example, the screen parameter adjustment device may acquire the reference data of the upper right corner region of the Baseline plane to obtain the reference data of the upper right corner region of the screen.
Step 202, acquiring second reference data of the screen in the case that the first predetermined condition is met.
The second reference data comprises a second touch response reference value corresponding to each region.
The first reference data is reference data acquired at a first time, and the second reference data is reference data acquired at a second time, wherein the second time is later than the first time.
In the embodiment of the application, the first predetermined condition includes that the capacitance sensing value in one frame of the third detection data fluctuates, that is, the capacitance sensing value changes as a whole.
For example, the screen parameter adjusting apparatus may obtain the difference data diffdata based on the third detection data and the first reference data after acquiring the third detection data, and determine whether the value of the third detection data fluctuates by detecting the amount of change of diffdata. Further, if the value diffdata changes, the value characterizing the third test data changes. For example, if the entire diffdata data tends to 0, the value indicating the third detection data does not fluctuate, and if the entire diffdata data is large, the value indicating the third detection data fluctuates.
In the embodiment of the present application, the second reference data may be updated second reference data of one frame, and the first reference data may be, for example, currently acquired data updated to the first reference data.
Illustratively, the screen parameter adjustment may acquire the second reference data of the screen at any time (i.e., a second time) after the first reference data of the screen is acquired. Since the reference data of the screen may be slowly updated, the second reference data acquired at the second time may be different from the first reference data acquired previously, i.e., the second reference data acquired at the second time may be the updated first reference data.
It should be noted that, after obtaining a frame of first reference data of the screen, under the condition that the user performs touch input, the screen parameter adjustment device may obtain current capacitance sensing data (i.e. Rawdata), and if the value of the obtained current capacitance sensing data is abnormally raised or lowered due to external factors such as temperature, the current reference data (i.e. Baseline) will also be changed accordingly, so as to offset the abnormal value of the capacitance sensing data, so as to obtain a report point with relatively accurate touch input.
Optionally, in an embodiment of the present application, after acquiring the current capacitance sensing data of the screen, the screen parameter adjustment device may establish a Rawdata matrix corresponding to Rawdata, so as to calculate or process the capacitance sensing data through the Rawdata matrix.
Note that, the Rawdata matrix may also be referred to as Rawdata plane.
Optionally, in the embodiment of the present application, the screen parameter adjusting device may acquire the updated one frame of second reference data when detecting that the current capacitance sensing data (i.e. Rawdata) fluctuates.
The screen parameter adjusting device obtains the current Baseline plane under the condition that fluctuation of the data of the current Rawdata plane is detected.
Step 203, adjusting target parameters of the screen based on the variation between the first touch response reference value and the second touch response reference value corresponding to each region.
The target parameters comprise at least one of the update rate of the reference data, a noise threshold value and a response threshold value, wherein the response threshold value can be a point reporting threshold value of a screen.
Optionally, in an embodiment of the present application, the N regions may include a first region and a second region;
Illustratively, the step 203 may include the following steps 203 a-203 c:
In step 203a, the screen parameter adjusting device obtains a first variation between a first touch response reference value of the first area and a second touch response reference value of the first area, and a second variation between the first touch response reference value of the second area and the second touch response reference value.
Step 203b, the screen parameter adjusting device determines a first value according to the first variation and the second variation.
Step 203c, the screen parameter adjusting device adjusts the target parameters of the screen according to the first value.
The first and second regions may be symmetric regions on the screen, for example. For example, the first region is an upper right corner region of the screen, the second region is a lower right corner region of the screen, and for another example, the first region is an upper half region of the screen, and the second region is a lower half region of the screen.
The first variation may be a difference between a first touch response reference value and a second touch response reference value corresponding to the first area, and the second variation may be a difference between the first touch response reference value and the second touch response reference value corresponding to the second area.
The first value may be a ratio between the first variation and the second variation.
For example, the screen parameter adjustment means may adjust the target parameter of the screen based on the ratio between the amounts of change corresponding to each of the above-described regions.
Further alternatively, in an embodiment of the present application, the step 203c may include the following steps 203c1 and 203c2:
In step 203c1, the screen parameter adjusting device determines an adjustment strategy according to the target value range where the first value is located.
Step 203c2, the screen parameter adjusting device adjusts the target parameters of the screen based on the adjustment strategy.
For example, the screen parameter adjusting device may determine a target value range in which the ratio is located in at least one preset value range, and then adjust the target parameter of the screen. Further, a preset value range corresponds to an adjustment strategy.
In a specific implementation, the screen parameter adjusting device may determine a first difference value between a first touch response reference value and a second touch response reference value of the first area, determine a second difference value between the first touch response reference value and the second touch response reference value of the second area, calculate a ratio of the first difference value to the second difference value, determine a numerical range in which the ratio is located, and finally, adjust a target parameter of the screen pertinently according to an adjustment policy corresponding to the numerical range in which the ratio is located.
Further alternatively, in an embodiment of the present application, the step 203c1 may include the following step 204a or step 204b:
step 204a, determining the adjustment strategy as the first adjustment strategy when the first value is within the first value range.
The first adjustment strategy comprises the steps of adjusting the updating rate of the reference data of the screen to be a first updating rate, and adjusting the noise threshold to be a first noise threshold, wherein the first updating rate is larger than the updating rate before adjustment, and the first noise threshold is larger than the noise threshold before adjustment.
Step 204b, determining the adjustment strategy as a second adjustment strategy when the first value is within the second value range.
The second adjustment strategy comprises the steps of adjusting the updating rate of the reference data of the screen to be a second updating rate, and adjusting the response threshold to be a first response threshold, wherein the first response threshold is smaller than the response threshold before adjustment.
For example, the screen parameter adjustment device may determine the adjustment policy according to a range of values in which the first value is located, and magnitudes of the first variation and the second variation.
Illustratively, the first range of values and the second range of values may be [ phi ], in +++), the first amount of change (i.e., the first difference) may be represented by ar 1, the second variation (i.e., the second difference) may be represented by Δr2 and the first value (i.e., the ratio) may be represented by Δr1/. DELTA.r2.
The following is a strategy for adjusting the target parameters of the screen according to the range of values in which the first value is located and the magnitudes of the first variation and the second variation:
1) When DeltaR 1/DeltaR2 is in the range of [ -phi, phi ], the temperature difference representing the current environment is smaller, and Baseline is slowly updated along with Rawdata change trend;
2) When DeltaR 1/DeltaR2 is in [ phi, + ] interval and DeltaR 1 is less than 0 and DeltaR 2 is less than 0, the current environment temperature is represented to be reduced, in order to avoid low-temperature switching to a high Wen Chuxian touch screen false jump point, the updating rate of reference data is improved, the Noise threshold is improved, and a mean value filtering algorithm is adopted to carry out data filtering;
3) When DeltaR 1/DeltaR2 is in [ phi, + ] interval and DeltaR 1>0, deltaR 2>0, the current environment temperature is characterized as rising, in order to avoid high-to-low temperature switching, the touch screen is nonfunctional and low in sensitivity, the speed of Baseline updating is improved, and the reporting threshold is reduced;
4) If neither DeltaR 1 nor DeltaR 2 satisfies (1) (2) (3), the flow is considered to be abnormal, the first reference data is acquired again, and a Baseline plane is established.
In the screen parameter adjustment method provided by the embodiment of the application, a screen parameter adjustment device acquires first frame reference data of a screen, wherein the screen comprises N areas, the first reference data comprises a first touch response reference value corresponding to each area, N is a positive integer, and under the condition that a first preset condition is met, updated second frame reference data of the screen is acquired, the second reference data comprises a second touch response reference value corresponding to each area, and then, based on the change amount between the first touch response reference value and the second touch response reference value corresponding to each area, target parameters of the screen are adjusted, wherein the target parameters comprise at least one of update rate of the reference data, noise threshold and reporting point threshold. According to the method, when the current environment temperature is identified as low temperature, the Baseline updating speed is increased in advance, so that the Baseline speed at low temperature and high temperature can catch up with the Rawdata changing speed brought by the temperature, the Noise threshold is increased, so that the filtering algorithm can filter diffdata abnormal lifting data when the Baseline is cut at low temperature, when the current environment temperature is identified as high temperature, the Baseline updating speed is increased in advance, the reporting threshold is reduced, and therefore the sensitivity of a screen is improved.
Optionally, in the embodiment of the present application, the target parameter includes an update rate of reference data of the screen.
Illustratively, after the target parameters of the screen are adjusted in the step 203, the method for adjusting the screen parameters according to the embodiment of the present application further includes the following step A1:
and A1, updating the reference data of the screen according to the adjusted updating rate.
For example, the screen parameter adjustment means may update the reference data of the screen at the first update rate in the case where the first numerical value is in the first numerical value range, or update the reference data of the screen at the second update rate in the case where the first numerical value is in the second numerical value range. Because the first updating rate and the second updating rate are both larger than the updating rate before updating, the updating rate of the reference data of the screen can be increased in advance under the condition that larger temperature switching occurs currently, so that the problem that the screen is insensitive or nonfunctional due to subsequent temperature switching is avoided.
For example, when the current environment temperature is identified as low temperature, the Baseline updating speed is increased in advance to ensure that the low temperature and high temperature Baseline speed can catch up with the Rawdata changing speed brought by the temperature, and when the current environment temperature is identified as high temperature, the Baseline updating speed is increased in advance and the point reporting threshold is reduced, so that the sensitivity and the touch screen accuracy of the screen in a high Wen Qiedi temperature scene are ensured.
Optionally, in an embodiment of the present application, the step 201 may include the following step 201a:
step 201a, acquiring N frames of first detection data of a screen.
The first reference data of one frame is first detection data of one frame, which is acquired under the condition that touch input of a user is not received in the first detection data of N frames.
For example, after the touch IC is powered on or wakes up by sleep, a plurality of frames of first detection data (Rawdata) are scanned, and when a frame Rawdata is detected to be relatively stable and no touch occurs, the frame Rawdata is determined as first reference data (Baseline), and a Baseline plane is established with the frame Rawdata having the higher flatness.
Optionally, in the embodiment of the present application, after the step 201, the method for adjusting a screen parameter provided in the embodiment of the present application further includes the following steps B1 to B3:
And step B1, acquiring a frame of third detection data of the screen.
And step B2, determining a target difference value between the capacitance sensing value in the third detection data of the frame and the touch response reference value in the currently acquired detection data of the frame.
And step B3, determining whether touch input is received on the screen or not based on the target difference value.
The third detection data comprises capacitance sensing values in a screen.
For example, after the Baseline plane is established, the screen parameter adjusting device may scan the screen node through the touch IC to obtain the third detection data of the screen.
The one-frame detection data includes, for example, currently acquired reference data (Baseline).
Illustratively, the target difference is used to characterize the amount of change in capacitive data of the screen.
For example, the screen parameter adjusting apparatus may determine whether or not a touch input is currently received based on the above-described target difference value. For example, if the target difference is greater than the reporting threshold, it is determined that the touch input is currently received.
Further alternatively, in an embodiment of the present application, the step B3 may include the following step C1:
And step C1, under the condition that the screen receives the touch input, responding to the touch input, and determining the coordinates of a touch point corresponding to the touch input according to the target difference value.
For example, the screen parameter processing device may calculate the target difference value through a touch algorithm to obtain coordinates of a touch point corresponding to the touch input, and report the coordinates.
Further alternatively, in an embodiment of the present application, the step 202 may include the following step 202a:
Step 202a, if the value of the third detection data is detected to fluctuate under the condition that the screen does not receive the touch input, acquiring updated one frame of second reference data of the screen.
The determination means of the screen parameter may determine whether the value of the currently sampled third detection data fluctuates by means of capacitance difference data (diffdata).
Illustratively, the capacitance difference data is determined based on the third detection data and the updated Baseline data (Baseline).
It should be noted that, if the screen does not receive the touch input, the capacitance sensing value (Rawdata) of the currently detected screen is basically consistent with the reference value (Baseline), that is, the difference between the capacitance sensing value and the reference value tends to 0 (i.e., 0 plane), and when the ambient temperature is suddenly changed (e.g., the environment enters the environment of 5 ℃ from the environment of 25 ℃), the currently acquired capacitance sensing value is affected, and in this case, the difference between the capacitance sensing value and the reference value is larger, the currently acquired capacitance sensing value is considered to generate data fluctuation.
The following is an example of an implementation step of the screen parameter adjustment method provided by the embodiment of the present application, and fig. 4 is a flowchart of a processing method of screen parameters provided by the embodiment of the present application:
Taking reference data (first reference data, second reference data) as Baseline, and detection data (first detection data, third detection data) as Rawdata as an example.
Step1, after the touch IC is powered on or wakes up in a dormancy mode, scanning to obtain a plurality of frames Rawdata, and when Rawdata is detected to be stable and no touch occurs, establishing an initial Baseline plane by one frame Rawdata with higher flatness;
Step2, calculating the mean value R10 of the Baseline of the N nodes in the lower right corner region M of the initial Baseline plane, calculating the mean value R20 of the Baseline of the upper right corner symmetric region, taking a touch module of 18Tx x 32Rx as an example, wherein M is a row number preferable 5,N and 9 is a column number preferable 9;
step3, after an initial Baseline plane is established, scanning by the touch IC to obtain Rawdata, calculating current diffdata data, and obtaining a diffdata plane through filtering;
Setp4, detecting whether a plane diffdata is touched, calculating touch coordinates through a series of algorithms if the plane diffdata is touched, reporting points, judging whether Rawdata sampled in Step3 is changed or not through the plane diffdata if the plane is not touched, namely, judging whether data offset exists or not, returning to the Setp3 to start the next frame Rawdata for sampling if the plane is not changed, and entering Step5 if the plane is not touched;
Step5, after detecting that the data of the current Rawdata plane changes, acquiring the current Baseline plane, calculating the mean value R11 of Baseline of N nodes in the right lower corner region M of the current Baseline plane and the mean value R21 of Baseline in the right upper corner symmetric region M of the current Baseline plane, calculating the difference DeltaR1=R11-R10 between the mean value of the right lower corner region of the current Baseline plane and the mean value of the right lower corner region of the initial Baseline plane, and calculating the difference DeltaR2=R21-R20 between the mean value of the right upper corner region of the current Baseline plane and the mean value of the right upper corner region of the initial Baseline plane;
Step6, judging the relation between the ratio DeltaR 1/DeltaR2 of the difference DeltaR 1 and the difference DeltaR 2 and a preset threshold value phi, and then entering different processing flows:
1) When DeltaR 1/DeltaR2 is in the range of [ -phi, phi ], the characteristic is that although Rawdata has data offset with the Baseline plane, the offset degree is smaller, namely the current environment temperature difference is smaller, and Baseline is updated slowly along with the Rawdata change trend;
2) When DeltaR 1/DeltaR2 is in [ phi, + ] interval and DeltaR 1 is less than 0 and DeltaR 2 is less than 0, the current environment temperature is represented to be reduced, in order to avoid low-temperature switching to a high Wen Chuxian touch screen false jump point, the speed of Baseline updating is improved, the Noise threshold is improved, and a mean value filtering algorithm is adopted for data filtering;
3) When DeltaR 1/DeltaR2 is in [ phi, + ] interval and DeltaR 1>0, deltaR 2>0, the current environment temperature is considered to be raised, so that the screen touch nonfunctional and low sensitivity are avoided when the high-temperature switch is to the low temperature, the speed of Baseline updating is improved, and the reporting threshold is reduced;
4) If neither ΔR1/ΔR2satisfies (1) (2) (3), then the currently acquired Baseline is considered to be wrong, and the process returns to Step1 to acquire Rawdata to establish Baseline.
It should be noted that, considering that the full-screen capacitance node of the touch capacitive screen has a distance between the far end and the near end, the value of Φ may be 5, and after the processing is finished, the next frame Rawdata is started by returning to Setp 3.
It should be noted that, in the screen parameter adjustment method provided in the embodiment of the present application, the execution body may be a screen parameter adjustment device, or a control module in the screen parameter adjustment device for executing the screen parameter adjustment method. In the embodiment of the application, a method for executing screen parameter adjustment by a screen parameter adjustment device is taken as an example, and the screen parameter adjustment device provided by the embodiment of the application is described.
The embodiment of the application provides a screen parameter adjusting device, as shown in fig. 5, wherein the screen parameter adjusting device 600 comprises an acquisition module 601 and an adjusting module 602, the acquisition module 601 is used for acquiring first reference data of a screen, the screen comprises N areas, the first reference data comprises a first touch response reference value corresponding to each area, N is a positive integer, the acquisition module 601 is also used for acquiring second reference data of the screen when a first preset condition is met, the second reference data comprises a second touch response reference value corresponding to each area, the adjusting module 602 is used for adjusting a target parameter of the screen based on the change amount between the first touch response reference value corresponding to each area and the second touch response reference value acquired by the acquisition module, the first reference data is reference data acquired at a first time, the second reference data is reference data acquired at a second time, the second time is later than the first time, and the target parameter comprises at least one threshold value and the threshold value is updated according to the threshold value.
Optionally, in the embodiment of the application, the N areas comprise a first area and a second area, the device further comprises a determining module, the acquiring module is further used for acquiring a first variation between a first touch response reference value of the first area and a second variation between the first touch response reference value and the second touch response reference value of the second area, the determining module is used for determining a first value according to the first variation and the second variation acquired by the acquiring module, and the adjusting module is specifically used for adjusting the target parameter of the screen according to the first value determined by the determining module.
Optionally, in an embodiment of the present application, the determining module is further configured to determine an adjustment policy according to a target value range where the first value determined by the determining module is located;
The adjusting module is specifically configured to adjust the target parameter of the screen based on the adjustment policy determined by the determining module.
Optionally, in the embodiment of the application, the determining module is specifically configured to determine that the adjustment policy is a first adjustment policy when the first value is in a first value range, where the first adjustment policy includes adjusting an update rate of reference data of a screen to be a first update rate and adjusting the noise threshold to be a first noise threshold, where the first update rate is greater than an update rate before adjustment and the first noise threshold is greater than a noise threshold before adjustment, and the determining module is specifically configured to determine that the adjustment policy is a second adjustment policy when the first value is in a second value range, where the second adjustment policy includes adjusting the update rate of reference data of the screen to be a second update rate and adjusting the response threshold to be a first response threshold, and where the first response threshold is less than a response threshold before adjustment.
Optionally, in the embodiment of the application, the target parameter comprises an updating rate of the reference data of the screen, and the device further comprises an updating module after the target parameter of the screen is adjusted, wherein the updating module is used for updating the reference data of the screen according to the updating rate adjusted by the adjusting module.
In the screen parameter adjusting device provided by the embodiment of the application, first reference data of a screen is obtained, the screen comprises N areas, the first reference data comprises a first touch response reference value corresponding to each area, N is a positive integer, and under the condition that a first preset condition is met, second reference data of the screen is obtained, the second reference data comprises a second touch response reference value corresponding to each area, then, based on the change amount between the first touch response reference value and the second touch response reference value corresponding to each area, target parameters of the screen are adjusted, and the target parameters comprise at least one of update rate of the reference data, noise threshold and response threshold. According to the method, the screen parameter adjusting device can adjust the updating speed, the noise threshold value, the response threshold value and the like of the reference data of the screen according to the difference of the detection data collected in different areas, so that when the temperature change occurs in the touch screen environment, the data processing is performed by detecting the change of the touch response reference value and rapidly switching the related algorithm, the problems of false alarm, no function, insensitivity and the like are avoided, and the user experience is improved.
The screen parameter adjusting device in the embodiment of the application can be a device, and can also be a component, an integrated circuit or a chip in the terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc., and the non-mobile electronic device may be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a Television (TV), a teller machine, a self-service machine, etc., and the embodiments of the present application are not limited in particular.
The screen parameter adjusting device in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The screen parameter adjusting device provided by the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to fig. 4, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 6, an embodiment of the present application further provides an electronic device 700, including a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and capable of running on the processor 701, where the program or the instruction implements each process of the above-mentioned embodiment of the screen parameter adjustment method when executed by the processor 701, and the process can achieve the same technical effects, and for avoiding repetition, a description is omitted herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to, a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further include a power source (e.g., a battery) for powering the various components, and that the power source may be logically coupled to the processor 110 via a power management system to perform functions such as managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The processor 110 is configured to obtain first reference data of a screen, where the screen includes N areas, the first reference data includes a first touch response reference value corresponding to each area, N is a positive integer, the processor 110 is further configured to obtain second reference data of the screen when a first predetermined condition is met, the second reference data includes a second touch response reference value corresponding to each area, the processor 110 is configured to adjust a target parameter of the screen based on a change amount between the first touch response reference value and the second touch response reference value corresponding to each area obtained by the obtaining module, the first reference data is reference data obtained at a first time, the second reference data is reference data obtained at a second time, and the second time is later than the first time, and the target parameter includes at least one of an update rate of reference data, a noise threshold, and a response threshold.
Optionally, in the embodiment of the present application, the N areas include a first area and a second area, the processor 110 is further configured to obtain a first variation between a first touch response reference value of the first area and a second touch response reference value of the first area, and a second variation between the first touch response reference value and the second touch response reference value of the second area, the processor 110 is configured to determine a first value according to the obtained first variation and the second variation, and the adjustment module is specifically configured to adjust a target parameter of the screen according to the first value determined by the determination module.
Optionally, in the embodiment of the present application, the processor 110 is further configured to determine an adjustment policy according to a target value range where the first value is located, and the processor 110 is specifically configured to adjust a target parameter of the screen based on the adjustment policy determined by the determining module.
Optionally, in the embodiment of the present application, the processor 110 is specifically configured to determine that the adjustment policy is a first adjustment policy when the first value is in a first value range, where the first adjustment policy includes adjusting an update rate of reference data of a screen to be a first update rate and adjusting the noise threshold to be a first noise threshold, where the first update rate is greater than an update rate before adjustment, and where the first noise threshold is greater than a noise threshold before adjustment, and the processor 110 is specifically configured to determine that the adjustment policy is a second adjustment policy when the first value is in a second value range, where the second adjustment policy includes adjusting the update rate of reference data of the screen to be a second update rate and adjusting the response threshold to be a first response threshold, where the first response threshold is less than a response threshold before adjustment.
Optionally, in the embodiment of the present application, the target parameter includes an update rate of reference data of a screen, and the processor 110 is configured to update the reference data of the screen according to the update rate adjusted by the adjustment module after the adjustment of the target parameter of the screen.
In the electronic device provided by the embodiment of the application, first reference data of a screen is acquired by the electronic device, the screen comprises N areas, the first reference data comprises a first touch response reference value corresponding to each area, N is a positive integer, and under the condition that a first preset condition is met, second reference data of the screen is acquired, the second reference data comprises a second touch response reference value corresponding to each area, then, based on the change amount between the first touch response reference value and the second touch response reference value corresponding to each area, target parameters of the screen are adjusted, and the target parameters comprise at least one of update rate of the reference data, noise threshold and response threshold. According to the method, the electronic equipment can adjust the updating rate, the noise threshold, the response threshold and the like of the reference data of the screen according to the difference of the detection data collected in different areas, so that when the temperature change occurs in the touch screen environment, the data processing is performed by detecting the change of the touch response reference value and rapidly switching the related algorithm, the problems of false alarm, no function, insensitivity and the like are avoided, and the user experience is improved.
It should be appreciated that in embodiments of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, the graphics processor 1041 processing image data of still pictures or video obtained by an image capturing device (e.g. a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor that primarily handles operating systems, user interfaces, applications, etc., with a modem processor that primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the application also provides a readable storage medium, on which a program or an instruction is stored, which when executed by a processor, implements each process of the above-mentioned screen parameter adjustment method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the description is omitted here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, which comprises a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is used for running programs or instructions to realize the processes of the screen parameter adjustment method embodiment, and the same technical effects can be achieved, so that repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a nonvolatile storage medium, which is executed by at least one processor to implement the respective processes of the above-described screen parameter adjustment method embodiments, and achieve the same technical effects.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.