Touch screen control method and device and storage medium
By judging that the touch screen is in multiple modes and turning off the compensation function of the suspended mode, the touch performance problem in the suspended mode is solved, improving control flexibility and user experience.
Patent Information
- Application Number
- CN202311820046.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-26
- Publication Date
- 2025-06-27
AI Technical Summary
The touch screen cannot accurately identify the touch position and number of fingers of the touch operation in the floating mode, resulting in performance problems such as coordinate jitter and point-blindness. The existing methods are inflexible and the user experience is poor.
By determining whether the touch screen is in multiple modes, including the suspension mode, turn off the suspension compensation function corresponding to the suspension mode to improve control flexibility.
Improves the flexibility of control of the touch screen, avoids the side effects caused by the suspension compensation function in multi-mode, and improves the user experience.
Smart Images

Figure CN120215737A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch control technology, and particularly to a control method and device for a touch screen, and a storage medium. Background Art
[0002] When the touch screen is in the floating mode, the touch screen cannot accurately identify the touch position and the number of fingers of the touch operation performed by the user, or performance problems such as coordinate jitter and point disappearance occur. Currently, when it is detected that the floating mode is entered, the touch screen can be controlled to perform a floating compensation operation to mitigate the impact of the floating mode on the touch performance of the touch screen.
[0003] However, the above method has the problem of inflexibility and poor user experience. Summary of the Invention
[0004] This application provides a control method and device for a touch screen, and a storage medium, which improve the control flexibility of the touch screen and have good user experience.
[0005] In a first aspect, a control method for a touch screen is provided, including: determining whether the touch screen is in multiple modes, the multiple modes including a floating mode, where the floating mode is used to indicate that a capacitance data peak is detected at a non-central position in a touch area of the touch screen; and closing a floating compensation function corresponding to the floating mode when it is determined that the touch screen is in the multiple modes.
[0006] In this application, when it is determined by judgment that the touch screen is in multiple modes including the floating mode, the floating compensation function corresponding to the floating mode can be closed, and the floating mode is used to indicate that a capacitance data peak is detected at a non-central position in the touch area of the touch screen. In other words, this application improves the control flexibility of the touch screen, avoids side effects caused by performing the floating compensation function in the above multi-modes including the floating mode, and has good user experience.
[0007] In a second aspect, a control device for a touch screen is provided, including: a judgment module and a processing module. The judgment module is used to determine whether the touch screen is in multiple modes, the multiple modes including a floating mode, where the floating mode is used to indicate that a capacitance data peak is detected at a non-central position in a touch area of the touch screen; and the processing module is used to close the floating compensation function corresponding to the floating mode when it is determined that the touch screen is in the multiple modes.
[0008] In a third aspect, another control method for a touch screen is provided, including a processor, the processor being coupled to a memory and being configured to execute instructions in the memory to implement the method in any possible implementation manner of the first aspect. Optionally, the electronic device further includes a memory. Optionally, the electronic device further includes a communication interface, and the processor is coupled to the communication interface.
[0009] In a fourth aspect, a processor is provided, including: an input circuit, an output circuit, and a processing circuit. The processing circuit is configured to receive a signal through the input circuit and transmit the signal through the output circuit, so that the processor executes the method in any one of the possible implementation manners in the first aspect above.
[0010] In a specific implementation process, the above-mentioned processor may be a chip, the input circuit may be an input pin, the output circuit may be an output pin, and the processing circuit may be transistors, gate circuits, flip-flops, and various logic circuits, etc. The input signal received by the input circuit may be received and input by, for example, but not limited to, a receiver, and the signal output by the output circuit may be output to, for example, but not limited to, a transmitter and transmitted by the transmitter, and the input circuit and the output circuit may be the same circuit, which is used as the input circuit and the output circuit at different times respectively. The embodiments of the present application do not limit the specific implementation manners of the processor and various circuits.
[0011] In a fifth aspect, a processing device is provided, including a processor and a memory. The processor is configured to read instructions stored in the memory, and may receive a signal through a receiver and transmit a signal through a transmitter to execute the method in any one of the possible implementation manners in the first aspect above.
[0012] Optionally, the processor is one or more, and the memory is one or more.
[0013] Optionally, the memory may be integrated with the processor, or the memory and the processor are separately arranged.
[0014] In a specific implementation process, the memory may be a non-transitory memory, such as a read only memory (ROM), which may be integrated with the processor on the same chip or may be separately arranged on different chips. The embodiments of the present application do not limit the type of the memory and the setting manner of the memory and the processor.
[0015] It should be understood that the relevant data interaction process, such as sending an indication message, may be a process of outputting an indication message from the processor, and receiving capability information may be a process of the processor receiving input capability information. Specifically, the data output by the processing may be output to the transmitter, and the input data received by the processor may come from the receiver. Among them, the transmitter and the receiver may be collectively referred to as a transceiver.
[0016] The processing device in the fifth aspect above can be a chip, and the processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor that is implemented by reading software code stored in a memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.
[0017] In a sixth aspect, a computer program product is provided. The computer program product includes: a computer program (which can also be referred to as code or instructions). When the computer program is run, it causes the computer to execute the method in any one of the possible implementation manners in the first aspect above.
[0018] In a seventh aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (which can also be referred to as code or instructions). When it runs on a computer, it causes the computer to execute the method in any one of the possible implementation manners in the first aspect above. Description of the Drawings
[0019] Figure 1 is a schematic diagram of a touch screen provided by an embodiment of the present application;
[0020] Figure 2 is a schematic diagram of another touch screen provided by an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of the system architecture of an electronic device provided by an embodiment of the present application;
[0022] Figure 4 is a schematic flowchart of a control method for a touch screen provided by an embodiment of the present application;
[0023] Figure 5 is a schematic flowchart of a first specific example of the control method for a touch screen provided by an embodiment of the present application;
[0024] Figure 6 is a schematic flowchart of a second specific example of the control method for a touch screen provided by an embodiment of the present application;
[0025] Figure 7 is a schematic flowchart of a third specific example of the control method for a touch screen provided by an embodiment of the present application;
[0026] Figure 8 is a schematic flowchart of a fourth specific example of the control method for a touch screen provided by an embodiment of the present application;
[0027] Figure 9 is a schematic flowchart of a fifth specific example of the control method for a touch screen provided by an embodiment of the present application;
[0028] Figure 10 is a schematic diagram of an electronic device provided by an embodiment of the present application;
[0029] Figure 11 is a schematic block diagram of a control device for a touch screen provided by an embodiment of the present application;
[0030] Figure 12 is a schematic block diagram of another control device for a touch screen provided by an embodiment of the present application. Detailed implementation manners
[0031] The technical solutions in the present application will be described below with reference to the accompanying drawings.
[0032] Figure 1 is a schematic diagram of a touch screen in a non-floating mode provided by the present application. As Figure 1 described, the touch screen may be composed of signal transmission channels. As Figure 1 shown, the signal transmission channels may include a signal receiving channel (RX) and a signal sending channel (TX). By collecting the capacitance data of the above signal transmission channels, the control function of the touch screen can be realized. As Figure 1 shown, the touch area corresponding to the user's touch operation in the non-floating mode is displayed. Among them, the touch data corresponding to the middle area of the touch area is greater than the touch data corresponding to the non-middle area, and the peak value of the touch data appears in the middle area.
[0033] It should be understood that when the touch screen is in the floating mode, the touch screen cannot accurately identify the touch position and the number of fingers of the touch operation performed by the user, or performance problems such as coordinate jitter and point disappearance may occur.
[0034] Figure 2 is a schematic diagram of a touch screen in a floating mode provided by the present application. Similarly, the touch screen may be composed of signal transmission channels, and the signal transmission channels may include a signal receiving channel (RX) and a signal sending channel (TX). By collecting the capacitance data of the above signal transmission channels, the control function of the touch screen can be realized. As Figure 2 shown, the touch area corresponding to the user's touch operation in the floating mode is displayed. Among them, the touch data corresponding to the middle area of the touch area is less than the touch data corresponding to the non-middle area, and the peak value of the touch data appears in the non-middle area.
[0035] Currently, when it is detected that the floating mode is entered, the touch screen can be controlled to perform a floating compensation operation to mitigate the influence of the floating mode on the touch performance of the touch screen.
[0036] However, the above method has the problem of inflexibility and poor user experience.
[0037] Exemplarily, when the touch screen is in a suspended state and a waterproof state, suspension compensation may cause problems of compensation errors, thereby causing side effects such as random jump points, resulting in a poor user experience. Or, when the touch screen is in a suspended state and a noisy state, due to noise interference, the suspension compensation may go wrong, and then cause side effects and a poor user experience.
[0038] It should be understood that the capacitance data of a finger is much larger than that of water. Therefore, the waterproof mode of the touch screen can be determined by identifying smaller capacitance data. In addition, the capacitance data of water has positive and negative values, while the capacitance data of a finger is all positive.
[0039] It should also be understood that if the noise data scanned on the touch screen is greater than or equal to a preset noise threshold and this noise data lasts for more than a preset frame number threshold, the touch screen enters the noise mode.
[0040] In view of this, the embodiments of the present application provide a control method and device for a touch screen, and a storage medium. When it is determined that the touch screen is in multiple modes including a suspended mode, the suspension compensation function corresponding to the suspended mode can be turned off. The suspended mode is used to indicate that a capacitance data peak is detected at a non - central position in the touch area of the touch screen. In other words, the present application improves the control flexibility of the touch screen, avoids side effects caused by executing the suspension compensation function in the above - mentioned multiple modes including the suspended mode, and has a good user experience.
[0041] It should be understood that the control method of the touch screen provided by the present application can be executed by an electronic device with specific touch - screen control functions.
[0042] The electronic device involved in the embodiments of the present application may be a mobile phone, a watch, a laptop computer, a palm computer, a mobile internet device (MID), a wearable device, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, a personal digital assistant (PDA), etc. The embodiments of the present application do not limit this.
[0043] Exemplarily, Figure 3 FIG. is a schematic diagram of the system architecture of an electronic device provided by an embodiment of the present application.
[0044] As Figure 3 shown, the electronic device includes a processor 310, a transceiver 320, and a display unit 370. Among them, the display unit 370 may include a display screen.
[0045] Optionally, the electronic device may further include a memory 330. The processor 310, the transceiver 320, and the memory 330 may communicate with each other through an internal connection path to transfer data. The memory 330 is used to store a computer program, and the processor 310 is used to call and run the computer program from the memory 330.
[0046] The above-mentioned processor 310 and the memory 330 may be integrated into a processing device. More commonly, they are independent components. The processor 310 is used to execute the program code stored in the memory 330 to implement the above functions. Specifically, the memory 330 may also be integrated in the processor 310, or independent of the processor 310.
[0047] In addition, in order to make the functions of the electronic device more complete, the electronic device may further include one or more of an input unit 360, an audio circuit 380, and a sensor 301, etc.
[0048] Optionally, the above-mentioned electronic device may further include a power supply 350 for supplying power to various devices or circuits in the electronic device.
[0049] It can be understood that Figure 3 The operations and / or functions of the various modules in the electronic device shown are respectively for implementing the corresponding processes in the following method embodiments. For details, please refer to the descriptions in the following method embodiments. To avoid repetition, detailed descriptions are appropriately omitted here.
[0050] It can be understood that Figure 3 The processor 310 in the electronic device shown may include one or more processing units. For example, the processor 310 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0051] A memory may also be provided in the processor 310 for storing instructions and data. In some embodiments, the memory in the processor 310 is a cache memory. This memory can save the instructions or data that the processor 310 has just used or recycled. If the processor 310 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 310, and thus improves the efficiency of the system.
[0052] It can be understood that Figure 3 The power supply 350 shown is used to supply power to the processor 310, the memory 330, the display unit 370, the input unit 360, the transceiver 320, etc.
[0053] The transceiver 320 can provide wireless communication solutions applied to electronic devices, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The transceiver 320 can be one or more devices integrating at least one communication processing module.
[0054] The display unit 370 is used to display images, videos, etc. The display unit 370 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc.
[0055] The memory 330 can be used to store computer-executable program code, and the executable program code includes instructions. The memory 330 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function, etc. The data storage area can store data created during the use of the electronic device, etc. In addition, the memory 330 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 310 executes various functional applications and data processing of the electronic device by running the instructions stored in the memory 330 and / or the instructions stored in the memory provided in the processor.
[0056] The electronic device can implement audio functions through the audio circuit 380, an application processor, etc. For example, music playback, recording, etc.
[0057] The technical solutions in the present application will be described below with reference to the accompanying drawings.
[0058] For the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish identical or similar items with basically the same functions and effects. Those skilled in the art can understand that terms such as "first" and "second" do not limit the quantity and execution order, and "first", "second", etc. do not necessarily mean different.
[0059] It should be noted that in the present application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplarily" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplarily" or "for example" is intended to present relevant concepts in a specific manner.
[0060] In addition, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item)" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, and c can represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.
[0061] In order to make the purpose and technical solutions of the present application clearer and more intuitive, the control method, device, and storage medium of the touch screen provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0062] Figure 4 is a schematic flowchart of a control method 400 for a touch screen provided by an embodiment of the present application. As Figure 4 shown, the method 400 may include the following steps:
[0063] S401, the electronic device determines whether the touch screen is in multiple modes, and the multiple modes include a floating mode, and the floating mode is used to indicate that a capacitance data peak is detected at a non - central position of the touch area of the touch screen.
[0064] It should be understood that, in addition to the multiple modes shown above including the floating mode, a preset mode may also be included. Among them, the preset mode may be preset or may be set based on user operations, and the present application does not limit this.
[0065] In a possible implementation manner, the electronic device may first perform an operation of determining whether the touch screen is in the above-mentioned preset mode, and in the case of determining that the touch screen is in the preset mode, determine whether the touch screen is also in the floating mode shown above.
[0066] In another possible implementation manner, the electronic device may also first perform an operation of determining whether the touch screen is in the floating mode, and in the case of determining that the touch screen is in the floating mode, determine whether the touch screen is also in the preset mode shown above.
[0067] It should be understood that the electronic device can determine whether it is in the above multiple modes by determining whether the above touch screen meets the floating mode conditions and the preset mode conditions.
[0068] It should also be understood that the floating mode conditions and the preset mode conditions shown above can be used to indicate the relevant data thresholds of the touch screen in each of the above modes.
[0069] S402, in the case of determining that the above touch screen is in the above multiple modes, the electronic device turns off the floating compensation function corresponding to the floating mode.
[0070] In the present application, the electronic device can, through judgment, determine that when the touch screen is in multiple modes including the floating mode, turn off the floating compensation function corresponding to the floating mode. The floating mode is used to indicate that a capacitance data peak is detected at a non - central position in the touch area of the touch screen. In other words, the present application improves the control flexibility of the touch screen, avoids the side effects caused by performing the floating compensation function in the above multi - modes including the floating mode, and has a good user experience.
[0071] It should be understood that the preset mode included in the above multiple modes may be a waterproof mode, a noise mode, etc., and the present application does not limit this.
[0072] Below, taking the preset mode as the waterproof mode as an example, in combination with Figure 5 and Figure 6 a detailed description of the control method of the touch screen provided by the present application will be given.
[0073] Figure 5 is a schematic flowchart of a control method 500 of a touch screen provided by an embodiment of the present application. As Figure 5 shown, the method 500 may include the following steps:
[0074] S501, the electronic device collects the capacitance data of the touch screen, and the capacitance data includes self-capacitance data and mutual-capacitance data.
[0075] It should be understood that the electronic device can collect the capacitance data of the touch screen in real time, or can also collect the capacitance data of the touch display screen periodically. This application does not make any limitations in this regard.
[0076] S502, the electronic device determines whether the above capacitance data meets the waterproof mode condition, and the waterproof mode condition is used to indicate the capacitance threshold and frame number threshold corresponding to the above capacitance data in the waterproof mode.
[0077] S503, when the above capacitance data meets the waterproof mode condition, the electronic device determines that the touch screen is in the waterproof mode.
[0078] Exemplarily, the electronic device can determine that the capacitance data meets the above waterproof mode condition, and then determine that the touch screen is in the waterproof mode when the above capacitance data is the capacitance data that continuously meets the above capacitance threshold within the frame number threshold.
[0079] S504, the electronic device determines whether the above capacitance data meets the floating mode condition, and the floating mode condition is used to indicate the capacitance threshold, channel number threshold and frame number threshold corresponding to the above capacitance data in the floating mode.
[0080] S505, when the capacitance data meets the floating mode condition, the electronic device determines that the touch screen is in the floating mode.
[0081] Exemplarily, the electronic device determines that the capacitance data meets the above floating mode condition, and then determines that the above touch screen is in the floating mode when the above capacitance data continuously meets the above capacitance threshold within the above frame number threshold and the capacitance data within the above channel number threshold. Or, the electronic device can determine that the capacitance data does not meet the floating mode condition, and then determine that the touch screen is not in the floating mode when the above capacitance data does not continuously meet the above capacitance threshold within the above frame number threshold and the capacitance data within the above channel number threshold.
[0082] S506, the electronic device turns off the floating compensation function corresponding to the above floating mode.
[0083] Optionally, following the above S502, the electronic device can also execute S507. When the above capacitance data does not meet the waterproof mode condition, the electronic device determines that the touch screen is not in the waterproof mode. And when then executing the above S504 and S505, the electronic device can also execute S508 to execute the floating compensation function corresponding to the floating mode.
[0084] Exemplarily, when the capacitance data of the electronic device is not the capacitance data that continuously satisfies the capacitance threshold within the above frame number threshold, the electronic device may determine that the capacitance data does not meet the waterproof mode condition, and further determine that the touch screen is not in the waterproof mode. In addition, the electronic device may implement the above floating compensation function through an existing multi-finger floating compensation method, such as using the difference of self-capacitance data to supplement mutual-capacitance data. Alternatively, the electronic device may also implement the above floating compensation function through other methods, which are not limited in this application.
[0085] It should be understood that in addition to the above Figure 5 shown order of mode determination, the electronic device may also perform the operation of mode determination through other orders, as described below Figure 6 .
[0086] Figure 6 FIG. 600 is a schematic flowchart of a control method for a touch screen provided by an embodiment of the present application. As Figure 6 shown, the method 600 may include the following steps:
[0087] S601, the electronic device acquires capacitance data of the touch screen, and the capacitance data includes self-capacitance data and mutual-capacitance data.
[0088] It should be understood that the electronic device may acquire the capacitance data of the touch screen in real time, or may also acquire the capacitance data of the touch display screen periodically, which is not limited in this application.
[0089] S602, the electronic device determines whether the capacitance data meets the floating mode condition, and the floating mode condition is used to indicate the capacitance threshold, channel number threshold, and frame number threshold corresponding to the capacitance data in the floating mode.
[0090] S603, when the capacitance data meets the floating mode condition, the electronic device determines that the touch screen is in the floating mode.
[0091] Exemplarily, when the capacitance data continuously satisfies the capacitance threshold within the above frame number threshold and is the capacitance data within the above channel number threshold, the electronic device determines that the capacitance data meets the above floating mode condition, and further determines that the above touch screen is in the floating mode. Alternatively, when the capacitance data is not the capacitance data that continuously satisfies the capacitance threshold within the above frame number threshold and is the capacitance data within the above channel number threshold, the electronic device determines that the capacitance data does not meet the floating mode condition, and further determines that the touch screen is not in the floating mode.
[0092] S604, the electronic device determines whether the capacitance data meets the waterproof mode condition, and the waterproof mode condition is used to indicate the capacitance threshold and frame number threshold corresponding to the capacitance data in the waterproof mode.
[0093] S605. When the above capacitance data meets the waterproof mode condition, the electronic device determines that the touch screen is in the waterproof mode.
[0094] Exemplarily, when the above capacitance data is the capacitance data that continuously meets the above capacitance threshold within the number of frames threshold, the electronic device determines that the capacitance data meets the above waterproof mode condition, and further determines that the touch screen is in the waterproof mode.
[0095] S606. The electronic device turns off the suspension compensation function corresponding to the above suspension mode.
[0096] Optionally, following the above S604, the electronic device may further execute S607 and S608.
[0097] S607. When the above capacitance data does not meet the waterproof mode condition, the electronic device determines that the touch screen is not in the waterproof mode.
[0098] Exemplarily, when the above capacitance data is not the capacitance data that continuously meets the above capacitance threshold within the number of frames threshold, the electronic device determines that the above capacitance data does not meet the waterproof mode condition, and further determines that the touch screen is not in the waterproof mode.
[0099] S608. Execute the suspension compensation function corresponding to the suspension mode.
[0100] It should be understood that the electronic device can implement the above suspension compensation function through existing multi-finger suspension compensation methods, such as using the difference of self-capacitance data to supplement mutual-capacitance data. Or, the electronic device can also implement the above suspension compensation function through other methods, which are not limited in this application.
[0101] Next, taking the preset mode as the noise mode as an example, in combination with Figure 7 and Figure 8 a detailed description of the touch screen control method provided in this application will be given.
[0102] Figure 7 is a schematic flowchart of a touch screen control method 700 provided in an embodiment of this application. As Figure 7 shown, the method 700 may include the following steps:
[0103] S701. The electronic device collects the noise data of the touch screen.
[0104] It should be understood that the electronic device can collect the noise data of the touch screen in real time, or can also collect the noise data of the touch display periodically, which is not limited in this application.
[0105] S702, the electronic device determines whether the above noise data meets the noise mode condition, where the noise mode condition is used to indicate the noise threshold and frame number threshold corresponding to the above capacitance data in the noise mode.
[0106] S703, when the above noise data meets the noise mode condition, the electronic device determines that the touch screen is in the noise mode.
[0107] Exemplarily, the electronic device can determine that the noise data meets the above noise mode condition and then determine that the touch screen is in the noise mode when the above noise data is noise data that continuously meets the above noise threshold within the frame number threshold.
[0108] S704, the electronic device collects the capacitance data of the touch screen and determines whether the above capacitance data meets the hovering mode condition. The capacitance data includes self-capacitance data and mutual-capacitance data, and the hovering mode condition is used to indicate the capacitance threshold, channel number threshold, and frame number threshold corresponding to the above capacitance data in the hovering mode.
[0109] S705, when the capacitance data meets the hovering mode condition, the electronic device determines that the touch screen is in the hovering mode.
[0110] Exemplarily, the electronic device determines that the capacitance data meets the above hovering mode condition and then determines that the above touch screen is in the hovering mode when the above capacitance data continuously meets the above capacitance threshold within the above frame number threshold and the capacitance data within the above channel number threshold. Or, the electronic device can determine that the capacitance data does not meet the hovering mode condition and then determine that the touch screen is not in the hovering mode when the above capacitance data does not continuously meet the above capacitance threshold within the above frame number threshold and the capacitance data within the above channel number threshold.
[0111] S706, the electronic device turns off the hovering compensation function corresponding to the above hovering mode.
[0112] Optionally, following the above S702, the electronic device can also execute S707. When the above noise data does not meet the noise mode condition, the electronic device determines that the touch screen is not in the noise mode. And when then executing the above S704 and S705, the electronic device can also execute S708 to execute the hovering compensation function corresponding to the hovering mode.
[0113] Exemplarily, when the above noise data is not the noise data that continuously satisfies the above noise threshold within the above frame number threshold, the electronic device may determine that the above noise data does not meet the waterproof mode condition, and further determine that the touch screen is not in the noise mode. In addition, the electronic device may implement the above floating compensation function through an existing multi-finger floating compensation method, such as using the difference of self-capacitance data to supplement mutual-capacitance data. Alternatively, the electronic device may also implement the above floating compensation function through other methods, which are not limited in this application.
[0114] It should be understood that in addition to the above Figure 7 shown order of mode determination, the electronic device may also perform the operation of mode determination through other orders, as described below. Figure 8 of.
[0115] Figure 8 is a schematic flowchart of a control method 800 for a touch screen provided by an embodiment of the present application. As Figure 8 shown, the method 800 may include the following steps:
[0116] S801, the electronic device collects capacitance data of the touch screen, and the capacitance data includes self-capacitance data and mutual-capacitance data.
[0117] It should be understood that the electronic device may collect the capacitance data of the touch screen in real time, or may also collect the capacitance data of the touch display periodically, which is not limited in this application.
[0118] S802, the electronic device determines whether the above capacitance data meets the floating mode condition, and the floating mode condition is used to indicate the capacitance threshold, channel number threshold, and frame number threshold corresponding to the above capacitance data in the floating mode.
[0119] S803, when the capacitance data meets the floating mode condition, the electronic device determines that the touch screen is in the floating mode.
[0120] Exemplarily, when the above capacitance data continuously satisfies the above capacitance threshold within the above frame number threshold and the capacitance data within the above channel number threshold, the electronic device determines that the capacitance data meets the above floating mode condition, and further determines that the above touch screen is in the floating mode. Alternatively, when the above capacitance data is not the capacitance data that continuously satisfies the above capacitance threshold within the above frame number threshold and the capacitance data within the above channel number threshold, the electronic device determines that the capacitance data does not meet the floating mode condition, and further determines that the touch screen is not in the floating mode.
[0121] S804, the electronic device collects and determines whether the noise data of the touch screen meets the noise mode condition, and the noise mode condition is used to indicate the noise threshold and frame number threshold corresponding to the above noise data in the noise mode.
[0122] S805. When the above noise data meets the noise mode condition, the electronic device determines that the touch screen is in the noise mode.
[0123] Exemplarily, when the above noise data is noise data that continuously meets the above noise threshold within the frame number threshold, the electronic device determines that the noise data meets the above noise mode condition, and further determines that the touch screen is in the noise mode.
[0124] S806. The electronic device turns off the suspension compensation function corresponding to the above suspension mode.
[0125] Optionally, following S804 above, the electronic device may further execute S807 and S808.
[0126] S807. When the above noise data does not meet the noise mode condition, the electronic device determines that the touch screen is not in the noise mode.
[0127] Exemplarily, when the above noise data is not noise data that continuously meets the above noise threshold within the frame number threshold, the electronic device determines that the above capacitance data does not meet the noise mode condition, and further determines that the touch screen is not in the noise mode.
[0128] S808. Execute the suspension compensation function corresponding to the suspension mode.
[0129] It should be understood that the electronic device can implement the above suspension compensation function through existing multi-finger suspension compensation methods, such as using the difference of self-capacitance data to supplement mutual-capacitance data. Or, the electronic device can also implement the above suspension compensation function through other methods, which are not limited in this application.
[0130] Optionally, to further improve the control accuracy of the touch screen, the electronic device in this application may also turn off the suspension compensation function corresponding to the suspension mode when it determines that the touch screen is in the suspension mode and the noise mode of the preset noise level.
[0131] Figure 9 It is a schematic flowchart of a control method 900 for a touch screen provided by an embodiment of this application. As Figure 9 shown, the method 900 may include the following steps:
[0132] S901. The electronic device determines that the touch screen is in the suspension mode and the noise mode.
[0133] It should be understood that the electronic device can determine whether the touch screen is in the corresponding multiple modes based on the suspension mode condition and the noise mode condition. For specific details, reference can be made to the above description of Figure 7 or Figure 8 . To avoid repetition, it will not be elaborated here.
[0134] S902. The electronic device determines the noise level corresponding to the noise data of the touch screen. The larger the noise data, the higher the noise level corresponding to the noise data.
[0135] It should be understood that the electronic device can determine the size of the noise data of the touch screen based on multiple different noise thresholds, and then determine the corresponding noise level.
[0136] Exemplarily, the multiple different noise thresholds may include a first noise threshold, a second noise threshold, and a third noise threshold, and the first noise threshold is greater than the second noise threshold, and the second noise threshold is greater than the third noise threshold. When the noise data of the touch screen is greater than or equal to the first noise threshold, the electronic device can determine that the noise level corresponding to the noise data is the first noise level. When the noise data of the touch screen is greater than or equal to the second noise threshold and less than the first noise threshold, the electronic device can determine that the noise level corresponding to the noise data is the second noise level. Or, when the noise data of the touch screen is greater than or equal to the third noise threshold and less than the second noise threshold, the electronic device can determine that the noise level corresponding to the noise data is the third noise level. Among them, the first noise level is higher than the second noise level, and the second noise level is higher than the third noise level. The third noise threshold may be the noise threshold corresponding to the lower limit of the noise data when the touch screen is in the noise mode.
[0137] S903. The electronic device determines whether the noise level corresponding to the noise data of the touch screen is a preset noise level.
[0138] It should be understood that the preset noise level can be preset or determined based on the user's setting operation, and the present application does not limit this.
[0139] S904. When it is determined that the noise level corresponding to the noise data is the preset noise level, the electronic device turns off the suspension compensation function corresponding to the suspension mode.
[0140] Exemplarily, when the above noise level includes multiple noise levels, the preset noise level may be the highest noise level among the multiple noise levels. For example, when the above noise level specifically includes a first noise level, a second noise level, and a third noise level, and the first noise level is higher than the second noise level, and the second noise level is higher than the third noise level, the preset noise level may be the first noise level. When the electronic device determines that the noise level corresponding to the noise data of the touch screen is the first noise level, the electronic device can turn off the above suspension compensation function.
[0141] It should be understood that the preset noise levels shown above are merely exemplary. In addition, when the above noise levels specifically include a first noise level, a second noise level, and a third noise level, the preset noise level can also be the first noise level and the second noise level, and this application does not make any limitations in this regard.
[0142] Optionally, following the above S903, when the electronic device determines that the noise level corresponding to the above noise data is not the preset noise level, it can execute S905 to execute the suspension compensation function corresponding to the above suspension mode.
[0143] It should be understood that the electronic device can use existing multi-finger suspension compensation methods, such as using the difference in self-capacitance data to supplement mutual-capacitance data, to implement the above suspension compensation function. Alternatively, the electronic device can also use other methods to implement the above suspension compensation function, and this application does not make any limitations in this regard.
[0144] Optionally, when it is determined that the above touch screen is updated from the suspension mode and the preset mode (such as the waterproof mode or the noise mode) to only the suspension mode, the electronic device can also turn on the suspension compensation function corresponding to the suspension mode and execute the suspension compensation function.
[0145] Figure 10 The following is a schematic diagram of the electronic device 1000 provided by this application. As Figure 10 shown, the electronic device 1000 can include a touch control system 1001 and a control system 1002. Among them, the touch control system 1001 includes the touch display screen in the above embodiments, or can also include a memory and a processor, and this application does not make any limitations in this regard.
[0146] It should be understood that the electronic device can communicate through the touch control system 1001 and the control system 1002 to implement the control method of the touch screen provided by this application. As Figure 10 shown, the touch control system 1001 in the electronic device can trigger an interrupt signal through the INT pin, so that the control system 1002 can obtain the data in the touch control system 1001; alternatively, the electronic device can also set the touch control system 1001 (such as multiple modes in the above embodiments) through the control system 1002 via an inter-integrated circuit (I2C) / serial peripheral interface (SPI).
[0147] It should be understood that the above embodiments can also be coupled to each other, and this application does not make any limitations in this regard. And the magnitudes of the sequence numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of this application.
[0148] In the above context, in combination with Figures 1 to 10 , the control method of the touch screen according to the embodiments of the present application is described in detail. Next, in combination with Figures 11 to 12 , the control device of the touch screen according to the embodiments of the present application will be described in detail.
[0149] Figure 11 Fig. shows a control device 1100 of a touch screen provided by an embodiment of the present application. The control device 1100 of the touch screen includes: a judgment module 1101 and a processing module 1102.
[0150] Among them, the judgment module 1101 is configured to: judge whether the touch screen is in multiple modes, and the multiple modes include a floating mode, and the floating mode is used to indicate that a capacitance data peak is detected at a non-central position of the touch area of the touch screen; the processing module 1102 is configured to: when it is determined that the touch screen is in the above multiple modes, turn off the floating compensation function corresponding to the floating mode.
[0151] Optionally, the above multiple modes further include a preset mode. The judgment module 1101 is configured to: when the touch screen is in the above preset mode, judge whether the touch screen is in the floating mode; when the touch screen is in the floating mode, determine that the touch screen is in the multiple modes.
[0152] Optionally, the above preset mode is a waterproof mode. The processing module 1102 is configured to: collect capacitance data of the touch screen, and the capacitance data includes self-capacitance data and mutual-capacitance data; the judgment module 1101 is configured to: judge whether the capacitance data meets the waterproof mode condition, and the waterproof mode condition is used to indicate the capacitance threshold and frame number threshold corresponding to the capacitance data in the waterproof mode; when it is determined that the capacitance data meets the above waterproof mode condition, the touch screen is in the waterproof mode.
[0153] Optionally, the preset mode is the noise mode. The processing module 1102 is configured to: collect noise data of the touch screen; the judgment module 1101 is configured to: judge whether the noise data meets the noise mode condition, and the noise mode condition is used to indicate the noise threshold and frame number threshold corresponding to the noise data in the noise mode; when the noise data meets the noise mode condition, the touch screen is in the noise mode.
[0154] Optionally, the judgment module 1101 is configured to: judge whether the capacitance data of the touch screen meets the floating mode condition, and the capacitance data includes self-capacitance data and mutual-capacitance data, and the floating mode condition is used to indicate the capacitance threshold, channel number threshold and frame number threshold corresponding to the capacitance data in the floating mode; when the capacitance data meets the floating mode condition, the touch screen is in the floating mode.
[0155] Optionally, the preset mode is a noise mode, and the determination module 1101 is configured to: determine the noise level corresponding to the noise data of the touch screen, where the greater the noise data, the higher the noise level corresponding to the noise data; and determine whether the touch screen is in a floating mode when it is determined that the noise level is a preset noise level.
[0156] Optionally, the processing module 1102 is configured to: when it is determined that the touch screen is only in the floating mode, enable the floating compensation function corresponding to the floating mode.
[0157] It should be understood that the control device 1100 of the touch screen is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group of processors, etc.) for executing one or more software or firmware programs, a memory, a combined logic circuit, and / or other suitable components that support the described functions. In an alternative example, those skilled in the art can understand that the control device 1100 of the touch screen may specifically be the electronic device in the above embodiments, or the functions of the electronic device in the above embodiments may be integrated in the control device 1100 of the touch screen. The control device 1100 of the touch screen may be used to execute the respective processes and / or steps corresponding to the electronic device in the above method embodiments. To avoid repetition, details are not described herein again.
[0158] The control device 1100 of the touch screen has the function of implementing the corresponding steps executed by the electronic device in the above method; the above function may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0159] In the embodiments of the present application, Figure 11 the control device 1100 of the touch screen may also be a chip or a chip system, for example: a system on chip (SoC).
[0160] Figure 12 FIG. shows another control device 1200 of a touch screen provided in an embodiment of the present application. The control device 1200 of the touch screen includes: a processor 1201, a memory 1202, a communication interface 1203, and a bus 1204. Among them, the memory 1202 is used to store instructions, and the processor 1201 is used to execute the instructions stored in the memory 1202. The processor 1201, the memory 1202, and the communication interface 1203 are communicatively connected to each other through the bus 1204.
[0161] Among them, the processor 1201 is configured to: determine whether the touch screen is in multiple modes, the multiple modes including a floating mode, where the floating mode is used to indicate that a capacitance data peak is detected at a non - central position in the touch area of the touch screen; and, when it is determined that the touch screen is in the above - mentioned multiple modes, turn off the floating compensation function corresponding to the floating mode.
[0162] It should be understood that the control device 1200 of the touch screen may specifically be the electronic device in the above - mentioned embodiments, or the functions of the electronic device in the above - mentioned embodiments may be integrated in the control device 1200 of the touch screen, and the control device 1200 of the touch screen may be configured to execute each step and / or process corresponding to the electronic device in the above - method embodiments.
[0163] Optionally, the memory 1202 may include a read - only memory and a random - access memory, and provide instructions and data to the processor 1201. A part of the memory 1202 may also include a non - volatile random - access memory. For example, the memory 1202 may also store information about the device type. The processor 1201 may be configured to execute the instructions stored in the memory, and when the processor executes the instructions, the processor 1201 may execute each step and / or process corresponding to the electronic device in the above - method embodiments.
[0164] It should be understood that in the embodiments of the present application, the processor may be a central processing unit (CPU), and the processor may also be other general - purpose processors, digital signal processors (DSPs), application - specific integrated circuits (ASICs), field - programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general - purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0165] In the implementation process, each step of the above - mentioned method may be completed by the integrated logic circuit in the hardware of the processor or the instructions in software form. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed by the hardware processor, or executed by a combination of the hardware and software modules in the processor. The software module may be located in a mature storage medium in the art such as a random - access memory, flash memory, read - only memory, programmable read - only memory or electrically erasable programmable memory, register, etc. This storage medium is located in the memory, and the processor executes the instructions in the memory and combines its hardware to complete the steps of the above - mentioned method. To avoid repetition, it will not be described in detail here.
[0166] Those of ordinary skill in the art will realize that the units and algorithm steps of each example described in connection with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0167] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, devices, and units described above can refer to the corresponding processes in the foregoing method embodiments, and will not be elaborated herein.
[0168] In several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces, and the indirect couplings or communication connections of the devices or units can be in electrical, mechanical, or other forms.
[0169] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they can be located in one place, or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0170] In addition, the functional units in each embodiment of this application can be integrated in one processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.
[0171] When the above-mentioned functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of this application. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical discs.
[0172] As described above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed by this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.
Claims
1. A control method for a touch screen, characterized in that, including: determine whether the touch screen is in multiple modes, the multiple modes including a suspension mode for indicating that a peak value of capacitance data is detected at a non - central position of a touch area of the touch screen; when it is determined that the touch screen is in the multiple modes, turn off a suspension compensation function corresponding to the suspension mode.
2. The method according to claim 1, wherein The multiple modes further include a preset mode, and determining whether the touch screen is in multiple modes includes: when the touch screen is in the preset mode, determine whether the touch screen is in the suspension mode; when the touch screen is in the suspension mode, determine that the touch screen is in the multiple modes.
3. The method according to claim 2, characterized in that The preset mode is a waterproof mode. Before the touch screen is in the preset mode, the method further includes: collect capacitance data of the touch screen, the capacitance data including self - capacitance data and mutual - capacitance data; determine whether the capacitance data meets waterproof mode conditions, the waterproof mode conditions being used to indicate a capacitance threshold and a frame number threshold corresponding to the capacitance data in the waterproof mode; the touch screen being in the preset mode includes: when it is determined that the capacitance data meets the waterproof mode conditions, the touch screen is in the waterproof mode.
4. The method according to claim 2, wherein The preset mode is a noise mode. Before the touch screen is in the preset mode, the method further includes: collect noise data of the touch screen; determine whether the noise data meets noise mode conditions, the noise mode conditions being used to indicate a noise threshold and a frame number threshold corresponding to the noise data in the noise mode; the touch screen being in the preset mode includes: when the noise data meets the noise mode conditions, the touch screen is in the noise mode.
5. The method according to claim 2, wherein Before the touch screen is in the suspension mode, the method further includes: determine whether the capacitance data of the touch screen meets suspension mode conditions, the capacitance data including self - capacitance data and mutual - capacitance data, the suspension mode conditions being used to indicate a capacitance threshold, a channel number threshold and a frame number threshold corresponding to the capacitance data in the suspension mode; the touch screen being in the suspension mode includes: when the capacitance data meets the suspension mode conditions, the touch screen is in the suspension mode.
6. The method according to claim 2, wherein The preset mode is a noise mode. Before determining whether the touch screen is in the suspension mode, the method further includes: determine a noise level corresponding to the noise data of the touch screen, the greater the noise data, the higher the noise level corresponding to the noise data; determining whether the touch screen is in the suspension mode includes: when it is determined that the noise level is a preset noise level, determine whether the touch screen is in the suspension mode.
7. The method according to claim 1, characterized in that, After turning off the suspension compensation function corresponding to the suspension mode when it is determined that the touch screen is in the multiple modes, the method further includes: when it is determined that the touch screen is only in the suspension mode, turn on the suspension compensation function corresponding to the suspension mode.
8. A control device for a touch screen, characterized in that, including: A judgment module, configured to judge whether the touch screen is in multiple modes, where the multiple modes include a floating mode, and the floating mode is used to indicate that a peak value of capacitance data is detected at a non-central position of the touch control area of the touch screen; A processing module, configured to turn off the floating compensation function corresponding to the floating mode when it is determined that the touch screen is in the multiple modes.
9. A control device for a touch screen, characterized in that, It includes a processor and a memory, where the memory is used to store code instructions; the processor is used to run the code instructions to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, For storing a computer program, the computer program includes instructions for implementing the method according to any one of claims 1 to 7.