Search

CN-121996102-A - Control method and device for waterproof mode of touch screen and electronic equipment

CN121996102ACN 121996102 ACN121996102 ACN 121996102ACN-121996102-A

Abstract

The application discloses a control method and device for a waterproof mode of a touch screen and electronic equipment, and relates to the technical field of electronic equipment. The method is applied to electronic equipment, the electronic equipment comprises a capacitive touch screen, the method comprises the steps of responding to a touch event aiming at the capacitive touch screen, obtaining capacitance data of the capacitive touch screen, and if the touch event is determined to meet a preset foreign object touch condition based on the capacitance data, determining an influence factor which causes the touch event to meet the preset foreign object touch condition based on the capacitance data, wherein the influence factor comprises a liquid touch factor or a non-liquid touch factor, and controlling a waterproof mode of the capacitive touch screen based on the influence factor. According to the application, whether the liquid exists on the capacitive touch screen is subjected to multiple detection, so that the situation that a user enters a waterproof mode by mistake or does not enter the waterproof mode by mistake is avoided, the normal operation of the user is influenced, and the touch experience of the user is improved.

Inventors

  • WANG TAO

Assignees

  • 深圳市欢太科技有限公司

Dates

Publication Date
20260508
Application Date
20241105

Claims (15)

  1. 1. A method for controlling a waterproof mode of a touch screen, the method being applied to an electronic device, the electronic device including a capacitive touch screen, the method comprising: Acquiring capacitance data of the capacitive touch screen in response to a touch event for the capacitive touch screen; If the touch event is determined to meet the preset foreign object touch condition based on the capacitance data, determining an influence factor which causes the touch event to meet the preset foreign object touch condition based on the capacitance data, wherein the influence factor comprises a liquid touch factor or a non-liquid touch factor; and controlling the waterproof mode of the capacitive touch screen based on the influence factors.
  2. 2. The method of claim 1, wherein controlling the waterproof mode of the capacitive touch screen based on the influencing factor comprises: if the influence factor is the liquid touch factor, controlling the capacitive touch screen to enter the waterproof mode, or And if the influence factor is the non-liquid touch factor, controlling the capacitive touch screen not to enter the waterproof mode.
  3. 3. The method of claim 1, wherein the capacitance data comprises self capacitance data and mutual capacitance data, the determining, based on the capacitance data, an influencing factor that causes the touch event to satisfy the preset foreign object touch condition comprising: determining a plurality of search foreign object areas from the capacitive touch screen based on the mutual capacitance data, wherein each of the plurality of search foreign object areas includes a plurality of touch nodes; Determining the influence factors corresponding to each foreign object searching area based on mutual capacitance data and self-capacitance data corresponding to each touch node included in each foreign object searching area; and determining influence factors which cause the touch event to meet the preset foreign object touch condition based on the influence factors corresponding to each foreign object searching area.
  4. 4. The method of claim 3, wherein determining the influencing factor corresponding to each foreign object searching area based on mutual capacitance data and self-capacitance data corresponding to each of a plurality of touch nodes included in each foreign object searching area comprises: determining effective touch nodes in the touch nodes included in each foreign object searching area based on mutual capacitance data and self-capacitance data corresponding to the touch nodes included in each foreign object searching area; counting the node number of the effective touch nodes included in each foreign object searching area; And determining the influence factors corresponding to each foreign object searching area based on the node number of the effective touch nodes included in each foreign object searching area.
  5. 5. The method of claim 4, wherein determining the valid touch node of the plurality of touch nodes included in each of the search foreign object regions based on mutual capacitance data and self capacitance data corresponding to each of the plurality of touch nodes included in each of the search foreign object regions, comprises: Determining a touch node with the corresponding mutual capacitance data smaller than a first threshold value from a plurality of touch nodes included in each foreign object searching area as a target touch node; And determining that at least one adjacent self-contained data of the corresponding self-contained transmitting position is smaller than a second threshold value from the target touch nodes, and determining that the target touch node of which the at least one adjacent self-contained data of the corresponding self-contained receiving position is smaller than the second threshold value is the effective touch node.
  6. 6. The method of claim 4, wherein determining the influencing factor corresponding to each foreign object search area based on the number of nodes of the valid touch nodes included in each foreign object search area comprises: determining the influence factors corresponding to the foreign object searching areas, including the effective touch nodes, with the number of nodes larger than a third threshold value as the non-liquid touch factors; And determining the influence factors corresponding to the foreign object searching areas, including the effective touch nodes, of which the number is smaller than or equal to the third threshold, as the liquid touch factors.
  7. 7. The method of claim 3, wherein the determining, based on the influence factors corresponding to the each search foreign object region, an influence factor that causes the touch event to satisfy the preset foreign object touch condition comprises: Determining the corresponding area quantity of the foreign matter area searching for which the influence factors are the liquid touch factors; and determining an influence factor which causes the touch event to meet the preset foreign object touch condition based on the number of areas.
  8. 8. The method of claim 7, wherein determining an influencing factor that causes the touch event to satisfy the preset foreign object touch condition based on the number of regions comprises: If the number of the areas is larger than a fourth threshold value, determining that the influence factor causing the touch event to meet the preset foreign matter touch condition is a liquid touch factor, or And if the number of the areas is smaller than or equal to the fourth threshold value, determining that the influence factor which causes the touch event to meet the preset foreign object touch condition is a non-liquid touch factor.
  9. 9. The method of claim 1, wherein the capacitance data comprises self-capacitance data, the determining, based on the capacitance data, an influencing factor that causes the touch event to satisfy the preset foreign object touch condition comprising: if it is determined, based on the self-capacitance data, that there is self-capacitance data greater than a fifth threshold value at both the self-capacitance transmitting position and the self-capacitance receiving position, then determining an influence factor that causes the touch event to satisfy the preset foreign matter touch condition as the liquid touch factor, or And if the self-capacitance data is determined to be not larger than the fifth threshold value at the self-capacitance transmitting position and the self-capacitance receiving position, determining that the influence factor causing the touch event to meet the preset foreign object touch condition is the non-liquid touch factor.
  10. 10. The method of claim 1, wherein the capacitance data comprises self-capacitance data, the determining, based on the capacitance data, an influencing factor that causes the touch event to satisfy the preset foreign object touch condition comprising: If it is determined, based on the self-capacitance data, that there is self-capacitance data smaller than a sixth threshold value at the self-capacitance transmitting position, then determining an influence factor that causes the touch event to satisfy the preset foreign matter touch condition as the liquid touch factor, or And if the self-capacitance data is determined to be not smaller than a sixth threshold value at the self-capacitance transmitting position based on the self-capacitance data, determining that an influence factor causing the touch event to meet the preset foreign object touch condition is the non-liquid touch factor.
  11. 11. The method of claim 1, wherein the determining, based on the capacitance data, an influencing factor that causes the touch event to satisfy the preset foreign object touch condition comprises: If the touch nodes where the capacitance data with positive values are located are determined to form irregular shapes based on the capacitance data, determining that the influence factor causing the touch event to meet the preset foreign object touch condition is the liquid touch factor, or And if the touch nodes where the corresponding capacitance data with positive values are determined to form a regular shape based on the capacitance data, determining that the influence factors causing the touch event to meet the preset foreign object touch condition are the non-liquid touch factors.
  12. 12. The method of any of claims 1-11, further comprising, prior to the determining, based on the capacitance data, an influencing factor that causes the touch event to satisfy a preset foreign object touch condition if the touch event is determined to satisfy the preset foreign object touch condition based on the capacitance data: if the capacitance data of the touch nodes included in the same receiving flat cable in the touch area corresponding to the touch event is determined to have positive values and negative values, determining that the touch event meets the preset foreign matter touch condition, and/or And if the capacitance data of the touch nodes included in the same driving winding displacement in the touch area corresponding to the touch event are determined to have positive values and negative values, determining that the touch event meets the preset foreign object touch condition.
  13. 13. A control device for a waterproof mode of a touch screen, the control device being applied to an electronic apparatus including a capacitive touch screen, the device comprising: the capacitive data acquisition module is used for responding to a touch event aiming at the capacitive touch screen and acquiring capacitive data of the capacitive touch screen; An influence factor determining module, configured to determine, based on the capacitance data, an influence factor that causes the touch event to satisfy a preset foreign object touch condition if the touch event is determined to satisfy the preset foreign object touch condition based on the capacitance data, where the influence factor includes a liquid touch factor or a non-liquid touch factor; and the waterproof mode control module is used for controlling the waterproof mode of the capacitive touch screen based on the influence factors.
  14. 14. An electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the method of any of claims 1-12.
  15. 15. A computer readable storage medium having stored therein program code which is callable by a processor to perform the method according to any one of claims 1-12.

Description

Control method and device for waterproof mode of touch screen and electronic equipment Technical Field The present application relates to the field of electronic devices, and in particular, to a method and an apparatus for controlling a waterproof mode of a touch screen, and an electronic device. Background With the rapid development of electronic equipment technology, the sensitivity and shock resistance of a touch screen of electronic equipment are improved obviously, but when liquid (such as rainwater) exists on the surface of the touch screen of the electronic equipment, or a user touches the touch screen with a finger which is soaked with water, the touch screen is often mostly a capacitive touch screen, and the liquid can influence the conductive contact between the finger of the user and a capacitive detection element on the surface of the capacitive touch screen on the surface of the touch screen, so that the operation sensitivity of the capacitive touch screen is reduced, and the use experience of the user is influenced. Based on this, the electronic device is generally provided with a waterproof mode for the capacitive touch screen, but at present, the electronic device cannot select a proper time to control the capacitive touch screen to enter the waterproof mode, and there may be a situation that the capacitive touch screen enters the waterproof mode by mistake or does not enter the waterproof mode by mistake, which may affect the normal operation of the user and result in poor touch experience of the user. Disclosure of Invention In view of the above problems, the present application provides a method and an apparatus for controlling a waterproof mode of a touch screen, and an electronic device, so as to solve the above problems. In a first aspect, an embodiment of the application provides a control method of a waterproof mode of a touch screen, which is applied to electronic equipment, wherein the electronic equipment comprises a capacitive touch screen, the method comprises the steps of responding to a touch event aiming at the capacitive touch screen, obtaining capacitance data of the capacitive touch screen, determining an influence factor which causes the touch event to meet a preset foreign object touch condition based on the capacitance data if the touch event is determined to meet the preset foreign object touch condition based on the capacitance data, wherein the influence factor comprises a liquid touch factor or a non-liquid touch factor, and controlling the waterproof mode of the capacitive touch screen based on the influence factor. In a second aspect, an embodiment of the application provides a control device for a waterproof mode of a touch screen, which is applied to electronic equipment, wherein the electronic equipment comprises a capacitive touch screen, the device comprises a capacitive data acquisition module, an influence factor determination module and a waterproof mode control module, wherein the capacitive data acquisition module is used for responding to a touch event aiming at the capacitive touch screen to acquire capacitive data of the capacitive touch screen, the influence factor determination module is used for determining an influence factor which causes the touch event to meet a preset foreign object touch condition based on the capacitive data if the touch event is determined to meet the preset foreign object touch condition based on the capacitive data, the influence factor comprises a liquid touch factor or a non-liquid touch factor, and the waterproof mode control module is used for controlling the waterproof mode of the capacitive touch screen based on the influence factor. In a third aspect, an embodiment of the present application provides an electronic device comprising a memory and a processor, the memory coupled to the processor, the memory storing instructions that when executed by the processor perform the above-described method. In a fourth aspect, embodiments of the present application provide a computer readable storage medium having program code stored therein, the program code being callable by a processor to perform the above method. According to the control method, the control device and the electronic equipment for the waterproof mode of the touch screen, the capacitance data of the capacitive touch screen are obtained in response to the touch event aiming at the capacitive touch screen, if the touch event meets the preset foreign object touch condition based on the capacitance data, the influence factors which cause the touch event to meet the preset foreign object touch condition are determined based on the capacitance data, wherein the influence factors comprise liquid touch factors or non-liquid touch factors, and the waterproof mode of the capacitive touch screen is controlled based on the influence factors, so that whether liquid exists on the capacitive touch screen is subjected to multiple detection, and the situation that the user en