CN117234364A - Data processing method, device, electronic equipment and storage medium - Google Patents

Data processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117234364A
CN117234364A CN202311220565.6A CN202311220565A CN117234364A CN 117234364 A CN117234364 A CN 117234364A CN 202311220565 A CN202311220565 A CN 202311220565A CN 117234364 A CN117234364 A CN 117234364A
Authority
CN
China
Prior art keywords
capacitance signal
touch
signal
capacitance
average
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311220565.6A
Other languages
Chinese (zh)
Inventor
邓凯
韦明慧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realme Mobile Telecommunications Shenzhen Co Ltd
Original Assignee
Realme Mobile Telecommunications Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realme Mobile Telecommunications Shenzhen Co Ltd filed Critical Realme Mobile Telecommunications Shenzhen Co Ltd
Priority to CN202311220565.6A priority Critical patent/CN117234364A/en
Publication of CN117234364A publication Critical patent/CN117234364A/en
Pending legal-status Critical Current

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The application discloses a data processing method, a data processing device, electronic equipment and a storage medium. The method is applied to the electronic equipment provided with the touch screen. The method comprises the following steps: acquiring an average capacitance signal in a designated touch state; and if the average capacitance signal is different from a preset initial capacitance signal, adjusting a reference touch parameter corresponding to the initial capacitance signal. According to the method, whether the reference of the touch signal of the touch screen is required to be adjusted or not can be judged by comparing the average capacitance signal in the same touch state with the preset initial capacitance signal, so that the electronic equipment can accurately identify the touch signal, and the touch parameters can be adjusted in a self-adaptive mode according to the change of the touch signal, and further the touch experience of a user is improved.

Description

Data processing method, device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data processing method, apparatus, electronic device, and storage medium.
Background
Touch panels (Touch panels) have advantages of convenient operation, fast response speed, and space saving, and electronic devices equipped with the Touch panels have been widely used by users. For the electronic equipment provided with the touch panel, a manufacturer can set touch parameters in a test mode before the electronic equipment leaves a factory, so that a user can control the electronic equipment to be used through touch operation later. However, for electronic devices just shipped, the thickness of the shipped film is generally thinner, and when a user uses a film similar to a tempered film or a thicker film, the finger touch signal is weakened, so that the touch signal may not be accurately identified, and the use experience of the user is affected.
Disclosure of Invention
The application provides a data processing method, a data processing device, electronic equipment and a storage medium, so as to improve the problems.
In a first aspect, an embodiment of the present application provides a data processing method, which may be applied to an electronic device configured with a touch screen, where the method includes: acquiring an average capacitance signal in a designated touch state; and if the average capacitance signal is different from a preset initial capacitance signal, adjusting a reference touch parameter corresponding to the initial capacitance signal.
In a second aspect, an embodiment of the present application provides a data processing apparatus that may be operated in an electronic device configured with a touch screen, where the apparatus includes: the capacitance signal acquisition module is used for acquiring an average capacitance signal in a specified touch state; and the capacitance signal processing module is used for adjusting the initial capacitance signal if the average capacitance signal is different from a preset initial capacitance signal.
In a third aspect, the present application provides an electronic device comprising one or more processors and a memory; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of the first aspect described above.
In a fourth aspect, the present application provides a computer readable storage medium having program code stored therein, wherein the method of the first aspect is performed when the program code is run.
The application provides a data processing method, a device, electronic equipment and a storage medium, wherein the method is used for acquiring an average capacitance signal in a specified touch state; and if the average capacitance signal is different from a preset initial capacitance signal, adjusting the initial capacitance signal. Therefore, the method can judge whether the reference of the touch signal of the touch screen needs to be adjusted by comparing the average capacitance signal under the same touch state with the preset initial capacitance signal, so that the electronic equipment can accurately identify the touch signal and adaptively adjust the touch parameters according to the change of the touch signal, and further the touch experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flowchart of a data processing method according to an embodiment of the present application.
Fig. 2 is a flowchart of a data processing method according to another embodiment of the present application.
Fig. 3 is a flowchart of a data processing method according to another embodiment of the present application.
Fig. 4 is a flowchart of a data processing method according to still another embodiment of the present application.
Fig. 5 shows a block diagram of a data processing apparatus according to an embodiment of the present application.
Fig. 6 shows a block diagram of an electronic device according to an embodiment of the present application.
Fig. 7 shows a memory unit for storing or carrying program codes for implementing a data processing method according to an embodiment of the present application.
Detailed Description
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions according to the embodiments of the present application with reference to the accompanying drawings.
Touch screens and touch ICs (integrated circuits) are commonly provided in electronic devices. When a finger of a user generates a trigger signal on the touch screen, the touch IC detects whether the signal strength of the trigger signal reaches a point reporting threshold; if the report threshold is reached, the touch IC reports the trigger event to the processor.
At present, manufacturers of electronic equipment generally take the thickness of a factory film and the quantity of finger signals generated by the finger touch of a public as references, and debug touch report points, disassembly parameters and baseline parameters which are suitable for the current references. However, for electronic devices just shipped, the thickness of the shipped film is generally thinner, and when a user uses a film similar to a tempered film or a thicker film, the finger touch signal is weakened, so that the touch signal may not be accurately identified, and the use experience of the user is affected.
The inventor finds that the average capacitance signal in the appointed touch state can be obtained through long-term research; and if the average capacitance signal is different from a preset initial capacitance signal, adjusting the initial capacitance signal. Therefore, the method can judge whether the reference of the touch signal of the touch screen needs to be adjusted by comparing the average capacitance signal under the same touch state with the preset initial capacitance signal, so that the electronic equipment can accurately identify the touch signal and adaptively adjust the touch parameters according to the change of the touch signal, and further the touch experience of a user is improved.
Therefore, in order to improve the above-mentioned problems, the inventors propose a data processing method, an electronic device, and a computer readable storage medium that can determine whether to adjust a reference of a touch signal of a touch screen by comparing an average capacitance signal in the same touch state with a preset initial capacitance signal, so that the electronic device can accurately identify the touch signal, adaptively adjust touch parameters according to a change of the touch signal, and further improve a touch experience of a user.
In order to facilitate a better understanding of the solutions described in the embodiments of the present application, the following will briefly describe the relevant terms related to the embodiments of the present application.
The reference of the touch signal of the mobile phone screen (which can be understood as the reference signal of the whole screen, a signal of the screen after power-on in a non-pressing state is a capacitance value), and after the finger touches the screen, the reference is subtracted from the data signal of the scanning process, which is the signal actually generated by the finger touch.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of a data processing method according to an embodiment of the present application is shown, and the embodiment provides a data processing method, which can be applied to an electronic device configured with a touch screen, where the electronic device may be a mobile phone, a computer, a tablet or a wearable electronic device, and the type of the specific electronic device may not be limited. The present embodiment mainly describes the condition in which the reference touch parameter of the touch screen is adjusted. The method comprises the following steps:
step S110: and acquiring an average capacitance signal in a specified touch state.
As one way, the user may press the touch screen with a finger to generate a capacitance signal corresponding to the current touch state, each touch state including a process of pressing the finger to lifting. Along with the change of the pressing area of the finger or the difference of the pressing habit, the capacitance signals corresponding to different touch states can be different.
In this embodiment, the designated touch state may be understood as at least two touch states in which a difference between capacitance signals is smaller than a preset threshold. As an implementation manner, the preset threshold may be zero, and in this manner, the values of the capacitance signals corresponding to at least two touch states included in the designated touch state may be the same; as another embodiment, the preset threshold may be any value with a smaller value, and in this manner, the difference between the values of the capacitance signals corresponding to at least two touch states included in the designated touch state is smaller.
The difference between the capacitance signals may be a difference between capacitance signals corresponding to touch states at adjacent times, for example, it is assumed that a user touches a lower touch screen in a first second to serve as a first touch state, then touches a lower touch screen in a second to serve as a second touch state, and then the difference between the capacitance signals is a difference between capacitance signals corresponding to the first touch state and capacitance signals corresponding to the second touch state.
Alternatively, the difference between the capacitance signals may be a difference between capacitance signals corresponding to the touch states at non-adjacent times, for example, it is assumed that the user touches a lower touch screen in the first second as the first touch state, then touches a lower touch screen in the second as the second touch state, then touches a lower touch screen in the third second as the third touch state, and then the difference between the capacitance signals may be a difference between the capacitance signals corresponding to the first touch state and the capacitance signals corresponding to the second touch state, a difference between the capacitance signals corresponding to the first touch state and the capacitance signals corresponding to the third touch state, or a difference between the capacitance signals corresponding to the second touch state and the capacitance signals corresponding to the third touch state. In this way, only the difference value between the capacitance signals corresponding to any two different touch states is required to be smaller than a preset threshold value.
In this embodiment, the capacitance value of the touch signal acting on the touch screen may be detected in real time and reported. In this way, after the designated touch state is determined, average capacitance signals can be obtained by performing average value operation on capacitance signals corresponding to all the touch states in the designated touch state. Along with the change of the pressing area of the finger of the user or the difference of the pressing habits, the designated touch state can be changed, and correspondingly, the average capacitance signal in the designated touch state can also be changed.
Step S120: and if the average capacitance signal is different from a preset initial capacitance signal, adjusting a reference touch parameter corresponding to the initial capacitance signal.
In this embodiment, the preset initial capacitance signal may be understood as a reference of a touch signal configured when the electronic device leaves the factory, and when the touch signal generated by pressing the touch screen with the finger of the user reaches the preset initial capacitance signal, the touch of the user may be accurately identified.
In the actual use process, the touch signal generated by the user's finger pressing the touch screen will change (for example, the touch signal will change due to different finger pressing areas, or the same touch screen will change due to different conductivity of the user pressing the same touch screen, or the touch signal will change due to different pressing habits of the user pressing the same touch screen), so that the electronic device can timely adapt to the capacitance signal difference in different touch states, further improve the touch experience brought to the user, and can detect whether the average capacitance signal is the same as the preset initial capacitance signal at intervals, the specific value of the specific period can be not limited, for example, the specific value can be 4 hours, 8 hours, one week, one month and the like.
Optionally, if it is detected that the average capacitance signal is different from the preset initial capacitance signal, the reference touch parameter corresponding to the initial capacitance signal may be adjusted. In this embodiment, the basic touch parameter may include a baseline parameter and a touch report parameter. By periodically detecting whether the average capacitance signal is the same as the preset initial capacitance signal, the reference touch parameters corresponding to the initial capacitance signal can be timely and accurately adjusted, and further the touch experience of a user is improved.
Alternatively, if the average capacitance signal is detected to be the same as the preset initial capacitance signal, the reference touch parameter may not be adjusted.
According to the data processing method provided by the embodiment, the average capacitance signal in the appointed touch state is obtained; and if the average capacitance signal is different from a preset initial capacitance signal, adjusting the initial capacitance signal. Therefore, the method can judge whether the reference of the touch signal of the touch screen needs to be adjusted by comparing the average capacitance signal under the same touch state with the preset initial capacitance signal, so that the electronic equipment can accurately identify the touch signal and adaptively adjust the touch parameters according to the change of the touch signal, and further the touch experience of a user is improved.
By periodically detecting whether the average capacitance signal is the same as the preset initial capacitance signal, the reference touch parameters corresponding to the initial capacitance signal can be timely and accurately adjusted, and further the touch experience of a user is improved.
Referring to fig. 2, a flowchart of a data processing method according to another embodiment of the present application is shown, and the embodiment provides a data processing method applicable to an electronic device configured with a touch screen. The present embodiment mainly describes how to specifically adjust the reference touch parameter corresponding to the initial capacitance signal. The method comprises the following steps:
step S210: and acquiring an average capacitance signal in a specified touch state.
The specific implementation of step S210 may refer to the related description of step S110 in the foregoing embodiment, which is not described herein.
Step S220: and if the average capacitance signal is different from the preset initial capacitance signal, acquiring a capacitance signal adjustment quantity.
As an implementation manner, if the average capacitance signal is different from the preset initial capacitance signal, the capacitance signal adjustment amount may be obtained to determine the adjustment amount required to adjust the reference control parameter corresponding to the initial capacitance signal.
As an embodiment, the absolute value of the difference between the average capacitance signal and the preset initial capacitance signal may be used as the capacitance signal adjustment amount. For example, assuming that the average capacitance signal is 20F (farad), the preset initial capacitance signal is 25F,20F-25 f= | -5|F =5f, then 5F may be used as the capacitance signal adjustment amount. The capacitance signal values are described here by way of example only, and are not limiting of the present embodiment.
Step S230: and adjusting the initial capacitance signal based on the capacitance signal adjustment amount.
As an embodiment, after the capacitance signal adjustment amount is obtained, the initial capacitance signal may be adjusted directly based on the capacitance signal adjustment amount.
In the process of adjusting the initial capacitance signal based on the capacitance signal adjustment amount, if the average capacitance signal is smaller than a preset initial capacitance signal, the initial capacitance signal can be adjusted by the capacitance signal adjustment amount so as to reduce the sensitivity of the touch screen according to the change adaptability of the capacitance signal, and further, the missing recognition of the touch signal can be avoided; if the average capacitance signal is larger than the preset initial capacitance signal, the initial capacitance signal can be adjusted by an adjustment amount of the capacitance signal, so that the sensitivity of the touch screen can be increased adaptively according to the change of the capacitance signal, and error recognition can be avoided.
According to the data processing method provided by the embodiment, the average capacitance signal in the appointed touch state is obtained; if the average capacitance signal is different from a preset initial capacitance signal, acquiring a capacitance signal adjustment amount; and adjusting the initial capacitance signal based on the capacitance signal adjustment amount. Therefore, the method can judge whether the reference of the touch signal of the touch screen needs to be adjusted by comparing the average capacitance signal under the same touch state with the preset initial capacitance signal, so that the electronic equipment can accurately identify the touch signal and adaptively adjust the touch parameters according to the change of the touch signal, and further the touch experience of a user is improved.
The determined capacitance signal adjustment quantity is used as the adjustment quantity for adjusting the reference control parameter corresponding to the initial capacitance signal, and the initial capacitance signal is adjusted based on the capacitance signal adjustment quantity, so that the reference touch parameter of the touch screen can be timely adjusted according to the change of the capacitance value of the touch signal, the flexibility of reference touch parameter adjustment is improved, and the touch operation experience of a user is improved.
Referring to fig. 3, a flowchart of a data processing method according to another embodiment of the present application is shown, where the data processing method is applicable to an electronic device configured with a touch screen. The present embodiment mainly describes how to acquire an average capacitance signal in a specified touch state. The method comprises the following steps:
step S310: and responding to the touch operation acted on the touch screen within a specified time period, and acquiring a first capacitance signal.
The specific value of the specified time period may not be limited, and for example, the specified time period may be a value of one hour, two hours, four hours, six hours, or eight hours.
The peak value of the capacitance signal corresponding to different touch operations applied to the touch screen within the specified time period may be different, that is, the value of the capacitance signal corresponding to different touch operations may be different. In this way, all capacitance signals corresponding to the touch operation applied to the touch screen within the specified time period can be obtained as the first capacitance signal.
As an embodiment, the first capacitance signal may be a capacitance signal formed after the same user touches an electronic device with a different film thickness (in this way, the film thickness of the electronic device touched by the user is different each time), or the first capacitance signal may be a capacitance signal formed after the different user touches an electronic device with a same film thickness. In this embodiment, the number of times of the electronic devices with the same thickness of the touch film by different users is the same as the number of times of the electronic devices with different thickness of the touch film by the same user, for example, n times may be used, and the specific numerical value of n is not limited.
Step S320: and performing difference on every two adjacent capacitance signals in the first capacitance signals, and taking the two adjacent capacitance signals with the difference value smaller than a specified threshold value as second capacitance signals, wherein the number of the second capacitance signals is smaller than that of the first capacitance signals, and the second capacitance signals comprise a plurality of capacitance signals.
In one embodiment, in order to acquire a capacitance signal in a specified touch state from a first capacitance signal, each two adjacent capacitance signals in the first capacitance signal may be subjected to a difference, and two adjacent capacitance signals with a difference smaller than a specified threshold value are taken as second capacitance signals, wherein the number of the second capacitance signals is smaller than that of the first capacitance signals, and the second capacitance signals comprise a plurality of capacitance signals. It should be noted that, when a difference is made between every two adjacent capacitance signals in the first capacitance signal, and two adjacent capacitance signals with a difference smaller than a specified threshold value are used as the second capacitance signal, the repeated capacitance signals are removed.
For example, in a specific embodiment, it is assumed that the first capacitance signal includes a capacitance signal a, a capacitance signal B, a capacitance signal C, a capacitance signal D, a capacitance signal E, and a capacitance signal F, and each two adjacent capacitance signals in the first capacitance signal are subjected to a difference to obtain a capacitance signal a-capacitance signal B, a capacitance signal B-capacitance signal C, a capacitance signal C-capacitance signal D, a capacitance signal D-capacitance signal E, and a capacitance signal E-capacitance signal F, and if the difference between the capacitance signal a-capacitance signal B, the difference between the capacitance signal B-capacitance signal C, and the capacitance signal E-capacitance signal F is smaller than a specified threshold, the capacitance signal a, the capacitance signal B, the capacitance signal C, the capacitance signal E, and the capacitance signal F may be used as the second capacitance signal (i.e., the capacitance signal B may not be repeated as the second capacitance signal).
In some embodiments, the number of the second capacitance signals may be equal to the number of the first capacitance signals, in which case the first capacitance signals and the second capacitance signals each include a plurality of capacitance signals.
The capacitance change between adjacent capacitance signals of the second capacitance signal is smaller, so that the second capacitance signal can be used as the capacitance signal in the appointed touch state.
Step S330: and acquiring a capacitance signal average value of the second capacitance signal, and taking the capacitance signal average value as an average capacitance signal in the appointed touch state.
Further, in order to improve accuracy of data processing (i.e. adjusting the reference touch parameter), average operation may be performed on a plurality of capacitance signals in the second capacitance signal, so as to obtain a capacitance signal average value of the second capacitance signal, and then the capacitance signal average value is used as an average capacitance signal in a specified touch state.
Step S340: and if the average capacitance signal is different from a preset initial capacitance signal, adjusting a reference touch parameter corresponding to the initial capacitance signal.
The specific implementation of step S340 may refer to the descriptions related to step S120, step S220 and step S230 in the foregoing embodiments, which are not repeated herein.
According to the data processing method provided by the embodiment, a first capacitance signal is obtained by responding to touch operation acted on the touch screen within a specified time period; making a difference between every two adjacent capacitance signals in the first capacitance signals, and taking the two adjacent capacitance signals with the difference value smaller than a specified threshold value as second capacitance signals; and acquiring a capacitance signal average value of the second capacitance signal, and taking the capacitance signal average value as an average capacitance signal in the appointed touch state. Therefore, the method can judge whether the reference of the touch signal of the touch screen needs to be adjusted by comparing the average capacitance signal under the same touch state with the preset initial capacitance signal, so that the electronic equipment can accurately identify the touch signal and adaptively adjust the touch parameters according to the change of the touch signal, and further the touch experience of a user is improved.
The capacitance signals meeting the requirement of small capacitance value change are screened from all capacitance signals corresponding to touch operation on the touch screen within a specified time period to serve as capacitance signals in a specified touch state, and then the average value of the capacitance signals in the specified touch state is obtained to serve as average capacitance signals in the specified touch state, so that accuracy and reliability of average capacitance signal acquisition are improved, and further reliability of data processing is improved.
Referring to fig. 4, a flowchart of a data processing method according to still another embodiment of the present application is shown, where the data processing method is applicable to an electronic device configured with a touch screen. The present embodiment mainly describes which reference touch parameters are adjusted. The method comprises the following steps:
step S410: and acquiring an average capacitance signal in a specified touch state.
The specific implementation of step S410 may refer to the descriptions related to step S110, step S310, step S320, and step S330 in the foregoing embodiments, which are not described herein.
Step S420: and if the average capacitance signal is different from a preset initial capacitance signal, adjusting a reference touch parameter corresponding to the initial capacitance signal.
The specific implementation of step S420 may refer to the descriptions related to step S120 and step S230 in the foregoing embodiments, which are not described herein.
Step S430: and if the average capacitance signal is different from a preset initial capacitance signal, adjusting the reporting point threshold of the initial capacitance signal.
The report threshold can be understood as the sensitivity of the touch screen, the slow response of the touch screen is caused by the low sensitivity, and misoperation is easily caused by the high sensitivity.
In order to improve the sensitivity or touch tracking performance of the touch screen, the point reporting threshold of the initial capacitance signal can be adjusted under the condition that the average capacitance signal is different from the preset initial capacitance signal, the specifically adjusted amplitude is matched with the amplitude of the reference touch parameter corresponding to the initial capacitance signal (that is, there is a correlation between the point reporting threshold and the reference capacitance signal, the adjustment amount of the reference capacitance signal is determined, the corresponding amount of the point reporting threshold can be adjusted adaptively, the adjustment amount of the point reporting threshold needs to meet the relevant industry standard, and the adjusted point reporting threshold can be used normally), which is not repeated herein.
As an implementation manner, when it is determined that the average capacitance signal is different from the preset initial capacitance signal, a touch operation type in a specified touch state may also be obtained; acquiring a touch area corresponding to the touch operation type; if the touch area is not matched with the preset area, at least one of the touch point and the touch disassembly point of the initial capacitance signal can be adjusted.
The touch operation types include single-finger touch, double-finger touch, multi-finger touch and the like, and the touch areas corresponding to different touch operation types are different, for example, the touch area of the three-finger touch operation is larger than the touch area of the double-finger touch operation, and the touch area of the double-finger touch operation is larger than the touch area of the single-finger touch operation. In some other embodiments, the touch operation type may also be a space-apart touch.
The touch point may be understood as a touch point when the touch positions of multiple fingers are connected together, if the touch area of one finger is relatively large, but the capacitance signal in the touch area is continuous, the touch area is used as a touch point. Touch split points can be understood as splitting two fingers into two touch points if the touch points of the two fingers are close together, but the capacitance signals in the close touch area are discontinuous.
As an implementation manner, touch areas corresponding to different touch operation types (for convenience of description, the touch areas may be referred to as preset areas) may be preconfigured, and when a touch operation acting on the touch screen is detected, the type of the touch operation may be obtained, and then a current touch area may be obtained, and whether the current touch area is consistent with the preset area may be determined. Optionally, if it is determined that the current touch area is inconsistent with the preset area, the touch point, the touch disassembly point, or both the touch point and the touch disassembly point of the initial capacitance signal may be adjusted, so that the reference touch parameter of the initial capacitance signal is adjusted on the whole, and the intelligence of reference touch parameter adjustment is improved.
As an embodiment, in the case that it is determined that the average capacitance signal is different from the preset initial capacitance signal, the database for storing the initial touch parameters of the touch screen may also be updated. The initial touch parameters in the database are updated, so that the situation that the electronic equipment cannot accurately respond to touch signals applied to the touch screen due to abnormality can be avoided, and the parameters can be obtained from the updated database to respond in time.
According to the data processing method provided by the embodiment, the average capacitance signal in the appointed touch state is obtained; if the average capacitance signal is different from a preset initial capacitance signal, adjusting the initial capacitance signal; and if the average capacitance signal is different from a preset initial capacitance signal, adjusting the reporting point threshold of the initial capacitance signal. Therefore, the method can judge whether the reference of the touch signal of the touch screen needs to be adjusted by comparing the average capacitance signal under the same touch state with the preset initial capacitance signal, so that the electronic equipment can accurately identify the touch signal and adaptively adjust the touch parameters according to the change of the touch signal, and further the touch experience of a user is improved.
Meanwhile, parameters such as a reporting point threshold, a touch point and a touch disassembly point of the initial capacitance signal are synchronously adjusted, so that the reference touch parameters of the initial capacitance signal can be integrally adjusted, and the intelligence of reference touch parameter adjustment is improved.
Referring to fig. 5, a block diagram of a data processing apparatus according to an embodiment of the present application is provided, and the embodiment provides a data processing apparatus 500 capable of operating on an electronic device configured with a touch screen, where the apparatus 500 includes a capacitance signal obtaining module 510 and a capacitance signal processing module 520:
the capacitance signal obtaining module 510 is configured to obtain an average capacitance signal in a specified touch state.
As an implementation manner, the capacitance signal obtaining module 510 may be configured to obtain the first capacitance signal in response to a touch operation applied to the touch screen within a specified period of time; making a difference between every two adjacent capacitance signals in the first capacitance signals, and taking the two adjacent capacitance signals with the difference value smaller than a specified threshold value as second capacitance signals, wherein the number of the second capacitance signals is smaller than that of the first capacitance signals, and the second capacitance signals comprise a plurality of capacitance signals; and acquiring a capacitance signal average value of the second capacitance signal, and taking the capacitance signal average value as an average capacitance signal in the appointed touch state.
The capacitance signal processing module 520 is configured to adjust the initial capacitance signal if the average capacitance signal is different from a preset initial capacitance signal.
As an embodiment, the capacitance signal processing module 520 may be configured to obtain the capacitance signal adjustment amount if the average capacitance signal is different from the preset initial capacitance signal; and adjusting the initial capacitance signal based on the capacitance signal adjustment amount.
Wherein the adjusting the initial capacitance signal based on the capacitance signal adjustment amount may include: if the average capacitance signal is smaller than a preset initial capacitance signal, the initial capacitance signal is adjusted by the capacitance signal adjustment amount; and if the average capacitance signal is larger than a preset initial capacitance signal, adjusting the initial capacitance signal by the capacitance signal adjustment amount.
Optionally, the apparatus 500 may further include a reference touch parameter adjustment module, configured to adjust the reporting threshold of the initial capacitance signal if the average capacitance signal is different from the preset initial capacitance signal, that is, the reference touch parameter includes the reporting threshold of the initial capacitance signal.
As an implementation manner, the reference touch parameter adjustment module may be further configured to obtain a touch operation type in a specified touch state; acquiring a touch area corresponding to the touch operation type; and if the touch area is not matched with the preset area, adjusting at least one of the touch point and the touch disassembly point of the initial capacitance signal.
As an implementation manner, the reference touch parameter adjustment module may be further configured to update a database for storing initial touch parameters of the touch screen.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus and modules described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
In several embodiments provided by the present application, the coupling of the modules to each other may be electrical, mechanical, or other.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
Referring to fig. 6, based on the above-mentioned data processing method and apparatus, an embodiment of the present application further provides an electronic device 100 capable of executing the above-mentioned data processing method. The electronic device 100 includes a memory 102 and one or more (only one is shown) processors 104 coupled to each other, with communication lines connecting the memory 102 and the processors 104. The memory 102 stores therein a program that can execute the contents of the foregoing embodiments, and the processor 104 can execute the program stored in the memory 102.
Wherein the processor 104 may include one or more processing cores. The processor 104 utilizes various interfaces and lines to connect various portions of the overall electronic device 100, perform various functions of the electronic device 100, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 102, and invoking data stored in the memory 102. Alternatively, the processor 104 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 104 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 104 and may be implemented solely by a single communication chip.
The Memory 102 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Memory 102 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 102 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the foregoing embodiments, etc. The storage data area may also store data created by the electronic device 100 in use (e.g., phonebook, audiovisual data, chat log data), and the like.
Referring to fig. 7, a block diagram of a computer readable storage medium according to an embodiment of the application is shown. The computer readable medium 600 has stored therein program code which can be invoked by a processor to perform the methods described in the method embodiments described above.
The computer readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 comprises a non-volatile computer readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 600 has storage space for program code 610 that performs any of the method steps described above. The program code can be read from or written to one or more computer program products. Program code 610 may be compressed, for example, in a suitable form.
In summary, the embodiments of the present application provide a data processing method, apparatus, electronic device, and storage medium, where the method is applied to an electronic device configured with a touch screen, and the method obtains an average capacitance signal in a specified touch state; and if the average capacitance signal is different from a preset initial capacitance signal, adjusting the initial capacitance signal. Therefore, the method can judge whether the reference of the touch signal of the touch screen needs to be adjusted by comparing the average capacitance signal under the same touch state with the preset initial capacitance signal, so that the electronic equipment can accurately identify the touch signal and adaptively adjust the touch parameters according to the change of the touch signal, and further the touch experience of a user is improved.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be appreciated by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not drive the essence of the corresponding technical solutions to depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A data processing method, applied to an electronic device configured with a touch screen, the method comprising:
acquiring an average capacitance signal in a designated touch state;
and if the average capacitance signal is different from a preset initial capacitance signal, adjusting a reference touch parameter corresponding to the initial capacitance signal.
2. The method of claim 1, wherein adjusting the initial capacitance signal if the average capacitance signal is different from a preset initial capacitance signal comprises:
if the average capacitance signal is different from a preset initial capacitance signal, acquiring a capacitance signal adjustment amount;
and adjusting the initial capacitance signal based on the capacitance signal adjustment amount.
3. The method of claim 2, wherein said adjusting the initial capacitance signal based on the capacitance signal adjustment amount comprises:
if the average capacitance signal is smaller than a preset initial capacitance signal, the initial capacitance signal is adjusted by the capacitance signal adjustment amount;
and if the average capacitance signal is larger than a preset initial capacitance signal, adjusting the initial capacitance signal by the capacitance signal adjustment amount.
4. The method of claim 1, wherein the obtaining the average capacitance signal in the specified touch state comprises:
responding to touch operation acted on the touch screen within a specified time period, and acquiring a first capacitance signal;
making a difference between every two adjacent capacitance signals in the first capacitance signals, and taking the two adjacent capacitance signals with the difference value smaller than a specified threshold value as second capacitance signals, wherein the number of the second capacitance signals is smaller than that of the first capacitance signals, and the second capacitance signals comprise a plurality of capacitance signals;
and acquiring a capacitance signal average value of the second capacitance signal, and taking the capacitance signal average value as an average capacitance signal in the appointed touch state.
5. The method according to claim 1, wherein the method further comprises:
and if the average capacitance signal is different from a preset initial capacitance signal, adjusting the reporting point threshold of the initial capacitance signal.
6. The method according to claim 1, wherein the method further comprises:
acquiring a touch operation type in a designated touch state;
acquiring a touch area corresponding to the touch operation type;
and if the touch area is not matched with the preset area, adjusting at least one of the touch point and the touch disassembly point of the initial capacitance signal.
7. The method according to any one of claims 1-6, further comprising:
and updating a database for storing the initial touch parameters of the touch screen.
8. A data processing apparatus operable with an electronic device configured with a touch screen, the apparatus comprising:
the capacitance signal acquisition module is used for acquiring an average capacitance signal in a specified touch state;
and the capacitance signal processing module is used for adjusting the initial capacitance signal if the average capacitance signal is different from a preset initial capacitance signal.
9. An electronic device comprising one or more processors and memory;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods of any of claims 1-7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a program code, wherein the program code, when being executed by a processor, performs the method of any of claims 1-7.
CN202311220565.6A 2023-09-20 2023-09-20 Data processing method, device, electronic equipment and storage medium Pending CN117234364A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311220565.6A CN117234364A (en) 2023-09-20 2023-09-20 Data processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311220565.6A CN117234364A (en) 2023-09-20 2023-09-20 Data processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117234364A true CN117234364A (en) 2023-12-15

Family

ID=89092567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311220565.6A Pending CN117234364A (en) 2023-09-20 2023-09-20 Data processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117234364A (en)

Similar Documents

Publication Publication Date Title
CN108021259B (en) False touch prevention method and electronic equipment
WO2017107086A1 (en) Touch gesture detection assessment
CN101963873B (en) Method for setting and calibrating capacitive-type touch panel capacitance base value
CN107294522A (en) Response method, device, storage medium and electronic equipment based on touch key-press
CN107506073B (en) Touch screen detection method and device, mobile terminal and computer readable storage medium
CN108363507B (en) Touch screen dead zone compensation method and device, electronic equipment and storage medium
CN111596802B (en) Touch screen calibration method and device and computer readable storage medium
CN107203313B (en) Method for adjusting desktop display object, mobile terminal and computer readable storage medium
CN111985391B (en) Method and device for detecting protective film, mobile terminal and storage medium
CN106909250A (en) A kind of processing method of touch operation, device and mobile terminal
CN103870193A (en) Information processing method and electronic equipment
CN106502461A (en) The method of touch screen state, device and mobile terminal before reduction electrostatic reset
CN107562262B (en) Method for responding touch operation, terminal and computer readable storage medium
CN113126815A (en) Key response control method and device, terminal equipment and storage medium
CN116483246A (en) Input control method and device, electronic equipment and storage medium
US20140223328A1 (en) Apparatus and method for automatically controlling display screen density
CN108801321B (en) Sensor calibration method, electronic device and computer-readable storage medium
CN106980402B (en) Method and device for judging reset calibration and terminal
CN108984097B (en) Touch operation method and device, storage medium and electronic equipment
CN108604142B (en) Touch screen device operation method and touch screen device
CN110570830B (en) Equipment adjusting method and device, storage medium and electronic equipment
CN106445698B (en) Method and device for acquiring step counting data
CN117234364A (en) Data processing method, device, electronic equipment and storage medium
CN107943536B (en) Method and device for adjusting threshold, storage medium and electronic equipment
US9912796B2 (en) Apparatus and method for correcting an input number

Legal Events

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