Touch screen waterproof mode control method and device, terminal equipment and storage medium
Patent Information
- Application Number
- CN202311800349.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-25
- Publication Date
- 2026-09-08
- Estimated Expiration
- 2043-12-25
AI Technical Summary
[0004]在上述相关技术中,一些干扰因素会影响触摸屏的电容,从而导致防水检测结果与实际不符,容易导致终端设备误进入防水模式
[0018] By obtaining touch interference information, the corresponding waterproof strategy for the touchscreen is determined, and the terminal device is then determined to enter waterproof mode based on the waterproof strategy. This reduces the probability of the terminal device mistakenly entering waterproof mode due to the significant impact of interference factors on the capacitance data of the touchscreen.
Smart Images

Figure CN117784963B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch recognition technology, and in particular to a control method, device, terminal equipment, and storage medium for a waterproof touchscreen mode. Background Technology
[0002] A touchscreen, also known as a touch panel, is a sensor-based liquid crystal display device that receives signals through the touch of a touch object (such as a finger).
[0003] In related technologies, for touchscreens made using capacitive technology, the capacitance data generated by a finger touching the touchscreen is generally much greater than the capacitance data generated by water touching the touchscreen. Based on this rule, when the waterproof mode is enabled, if the detected capacitance data is small, it can be assumed that the touchscreen is in contact with water.
[0004] In the aforementioned technologies, some interference factors can affect the capacitance of the touchscreen, resulting in waterproof test results that do not match reality, which can easily cause terminal devices to mistakenly enter waterproof mode. Summary of the Invention
[0005] This application provides a method, apparatus, terminal device, and storage medium for controlling a waterproof mode on a touchscreen, which can reduce the probability of a terminal device accidentally entering waterproof mode. The technical solution is as follows:
[0006] According to one aspect of the embodiments of this application, a method for controlling a waterproof mode of a touchscreen is provided, the method comprising:
[0007] The touch interference information of a terminal device with a touch screen and the capacitance data of the touch screen are obtained. The touch interference information is used to indicate the interference factors that affect the capacitance data of the touch screen.
[0008] Based on the touch interference information, a waterproof strategy corresponding to the touch screen is determined. The waterproof strategy is used to indicate the threshold value of the capacitance data corresponding to the touch screen entering the waterproof mode. The waterproof mode is used to detect whether the object in contact with the surface of the touch screen is a liquid.
[0009] Based on the threshold value of the capacitance data corresponding to the touchscreen entering the waterproof mode and the capacitance data of the touchscreen, it is determined whether the touchscreen has entered the waterproof mode.
[0010] According to one aspect of the embodiments of this application, a control device for a waterproof mode of a touch screen is provided, the device comprising:
[0011] The information acquisition module is used to acquire touch interference information of a terminal device with a touch screen, as well as the capacitance data of the touch screen. The touch interference information is used to indicate interference factors that affect the capacitance data of the touch screen.
[0012] The strategy determination module is used to determine the waterproof strategy corresponding to the touch screen based on the touch interference information. The waterproof strategy is used to indicate the threshold of the capacitance data corresponding to the touch screen entering the waterproof mode. The waterproof mode is used to detect whether the object in contact with the surface of the touch screen is a liquid.
[0013] The mode determination module is used to determine whether the touchscreen has entered the waterproof mode based on the threshold value of the capacitance data corresponding to the touchscreen entering the waterproof mode and the capacitance data of the touchscreen.
[0014] According to one aspect of the embodiments of this application, a terminal device is provided. The computer device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the above-described control method for a waterproof touchscreen mode.
[0015] According to one aspect of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, the computer program being loaded and executed by a processor to implement the above-described control method for a waterproof touchscreen mode.
[0016] According to one aspect of the embodiments of this application, a computer program product is provided, which is loaded and executed by a processor to implement the control method of the above-described touchscreen waterproof mode.
[0017] The technical solutions provided in this application embodiment may have the following beneficial effects:
[0018] By obtaining touch interference information, the corresponding waterproof strategy for the touchscreen is determined, and the terminal device is then determined to enter waterproof mode based on the waterproof strategy. This reduces the probability of the terminal device mistakenly entering waterproof mode due to the significant impact of interference factors on the capacitance data of the touchscreen.
[0019] In addition, by reducing the probability of objects entering the waterproof mode, the accuracy of the touchscreen waterproof test results is also improved.
[0020] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a schematic diagram of an implementation environment provided in one embodiment of this application;
[0023] Figure 2 This is a flowchart of a control method for a waterproof touchscreen mode provided in one embodiment of this application;
[0024] Figure 3 This is a schematic diagram of capacitance data provided in one embodiment of this application;
[0025] Figure 4 This is a block diagram of a terminal device provided in one embodiment of this application;
[0026] Figure 5 This is a block diagram of a terminal device provided in another embodiment of this application;
[0027] Figure 6 This is a block diagram of a control device for a waterproof touchscreen mode according to an embodiment of this application;
[0028] Figure 7 This is a block diagram of a terminal device provided in another embodiment of this application. Detailed Implementation
[0029] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of methods consistent with some aspects of this application as detailed in the appended claims.
[0030] Please refer to Figure 1 This illustration shows a schematic diagram of an implementation environment provided in one embodiment of this application, which can be implemented as a control system for a waterproof touchscreen mode. Figure 1 As shown, the system 10 may include: terminal device 11.
[0031] The terminal device 11 includes a touchscreen 12. A touchscreen, also known as a touch display, is used to identify user touch operations through touch detection (such as mutual capacitance detection and / or self-capacitance detection). The terminal device 11 may have only one or more touchscreens 12. Touchscreens 12 are made using capacitive technology and are therefore also called capacitive touchscreens. Capacitive touchscreens include self-capacitive touchscreens and mutual-capacitive touchscreens; this application embodiment does not specifically limit this. A terminal device refers to an electronic device with data computing, processing, and storage capabilities. A terminal device can be any device with a touchscreen waterproof mode control function, such as a smartphone, tablet, wearable device, intelligent robot, or PC (Personal Computer). The terminal device 11 can identify user operations on the touchscreen 12 by monitoring / acquiring the capacitance data of the touchscreen 12. In the method provided in this application embodiment, the executing entity for each step can be the terminal device 11.
[0032] The technical solution of this application will be described and illustrated below through several embodiments.
[0033] Please refer to Figure 2 This document illustrates a flowchart of a control method for a waterproof touchscreen mode according to an embodiment of this application. In this embodiment, the method is primarily illustrated by its application in the terminal device described above. The method may include the following steps (210-230):
[0034] Step 210: Obtain touch interference information of the terminal device with a touch screen, as well as the capacitance data of the touch screen. The touch interference information is used to indicate interference factors that affect the capacitance data of the touch screen.
[0035] In some embodiments, the terminal device can collect capacitance data of the touchscreen. This capacitance data may be the touchscreen's self-capacitance data, its mutual capacitance data, or both. In some embodiments, besides the object touching the touchscreen, other interference factors may also affect the touchscreen's capacitance data. The information related to these interference factors can be referred to as touch interference information.
[0036] Step 220: Determine the waterproof strategy corresponding to the touch screen based on the touch interference information. The waterproof strategy is used to indicate the threshold of the capacitance data corresponding to the touch screen entering the waterproof mode. The waterproof mode is used to detect whether the object touching the surface of the touch screen is a liquid.
[0037] In some embodiments, based on touch interference information, the degree of influence of interference factors on the capacitance data of the touchscreen can be roughly determined. Therefore, the threshold value of the capacitance data corresponding to the touchscreen entering waterproof mode can be determined based on the touch interference information, i.e., the corresponding waterproof strategy of the touchscreen can be determined. In some embodiments, the threshold value of the capacitance data may include a self-capacitance threshold and a mutual capacitance threshold. The self-capacitance threshold refers to the threshold value of the self-capacitance data, and the mutual capacitance threshold refers to the threshold value of the mutual capacitance data.
[0038] In some embodiments, the waterproofing strategy includes: within a first consecutive number of frames, the self-capacity data of a first preset number of channels is greater than or equal to a self-capacity threshold, and the mutual capacity data of a second preset number of channels is greater than or equal to a mutual capacity threshold. In some embodiments, for different waterproofing strategies, one or more of the following thresholds may differ: the first consecutive number of frames, the first preset number, the self-capacity threshold, the second preset number, and the mutual capacity threshold. In some embodiments, there are three waterproofing strategies: waterproofing strategy 1, waterproofing strategy 2, and waterproofing strategy 3. Waterproofing strategy 1 is: within consecutive a1 frames, the self-capacity data of b1 channels is greater than or equal to c1, and the mutual capacity data of d1 channels is greater than or equal to e1; waterproofing strategy 2 is: within consecutive a2 frames, the self-capacity data of b2 channels is greater than or equal to c2, and the mutual capacity data of d2 channels is greater than or equal to e2; waterproofing strategy 3 is: within consecutive a3 frames, the self-capacity data of b3 channels is greater than or equal to c3, and the mutual capacity data of d3 channels is greater than or equal to e3. In some embodiments, the higher the threshold values included in a waterproofing strategy, the higher the level of the waterproofing strategy. In some embodiments, a3 > a2 > a1, b3 > b2 > b1, c3 > c2 > c1, d3 > d2 > d1, e3 > e2 > e1. Therefore, the level of waterproof strategy 2 is higher than that of waterproof strategy 1; and the level of waterproof strategy 3 is higher than that of waterproof strategy 2. For example, waterproof strategy 1 is: within 10 consecutive frames, the self-capacitance data of 3 channels is greater than or equal to 200, and the mutual capacitance data of 3 channels is greater than or equal to 1000; waterproof strategy 2 is: within 20 consecutive frames, the self-capacitance data of 4 channels is greater than or equal to 500, and the mutual capacitance data of 4 channels is greater than or equal to 1200; waterproof strategy 3 is: within 30 consecutive frames, the self-capacitance data of 4 channels is greater than or equal to 600, and the mutual capacitance data of 4 channels is greater than or equal to 1300. If the capacitive data of the touchscreen is detected to meet the waterproof strategy, the terminal device can enter the waterproof mode. Of course, the specific values of a3, a2, a1, b3, b2, b1, c3, c2, c1, d3, d2, d1, e3, e2, and e1 can be set by relevant technical personnel according to the actual situation, and this application embodiment does not make specific limitations in this regard.
[0039] In some embodiments, when the interference factors have a significant impact on the capacitance data, the first consecutive frame count, the first preset quantity, the self-capacitance threshold, the second preset quantity, and the mutual capacitance threshold can be set to a higher value; when the interference factors have a minor impact on the capacitance data, the first consecutive frame count, the first preset quantity, the self-capacitance threshold, the second preset quantity, and the mutual capacitance threshold can be set to a higher value.
[0040] Step 230: Based on the threshold value of the capacitance data corresponding to the touchscreen entering waterproof mode and the capacitance data of the touchscreen, determine whether the touchscreen has entered waterproof mode.
[0041] In some embodiments, the touchscreen is a display screen for finger touch control. The capacitance data (whether self-capacitance or mutual capacitance) generated when a finger touches the touchscreen should be less than the capacitance data generated when a liquid (such as water, coffee, or beverages in daily life) touches the touchscreen. Therefore, if the number of channels with capacitance data less than the aforementioned threshold within a first preset number of frames satisfies the waterproofing strategy, it is considered that liquid has touched the touchscreen. Afterward, the touchscreen will not respond to liquid contact; for example, if a control exists at the location where the liquid touches the touchscreen, that control will not be triggered. If the touchscreen's capacitance data does not satisfy the waterproofing strategy, it is considered that no liquid has touched the touchscreen, and the waterproofing mode is not entered.
[0042] In some embodiments, such as Figure 3 As shown, if the mutual capacitance and self-capacity data corresponding to region 13 are significantly higher than those of the surrounding region, it indicates that a finger touch has been detected in region 13; if the mutual capacitance and self-capacity data corresponding to region 14 are significantly higher than those of the surrounding region but much lower than those caused by a finger touch, it indicates that liquid (such as water) has been detected in contact with region 14. In some embodiments, such as Figure 3 As shown, the mutual capacitance data (WsT) of the touchscreen is received through the excitation transmission signal channel (which can be represented as TX), and the self-capacitance data (WsR) of the touchscreen is received through the receiving channel (which can be represented as RX).
[0043] In summary, the technical solution provided in this application determines the waterproof strategy corresponding to the touch screen by obtaining the touch interference information, and determines whether the terminal device enters the waterproof mode based on the waterproof strategy, thereby reducing the probability of the terminal device mistakenly entering the waterproof mode due to the significant impact of interference factors on the capacitance data of the touch screen.
[0044] In addition, by reducing the probability of objects entering the waterproof mode, the accuracy of the touchscreen waterproof test results is also improved.
[0045] In some possible implementations, interference factors include charging interference, and touch interference information includes charging information of the terminal device, which indicates whether the terminal device is in a charging state and the charging power of the terminal device in the charging state. In some embodiments, step 220 above may include: when the terminal device is in a charging state, determining the waterproof strategy corresponding to the touch screen based on the charging power of the terminal device in the charging state.
[0046] In some embodiments, the terminal device can be charged via wired charging or wireless charging. In some embodiments, such as... Figure 4 As shown, the touchscreen system 15, which houses the touchscreen, triggers an interrupt signal via the INT pin to obtain data, such as capacitance data, from the touchscreen system 15 through the terminal system 16. The terminal system 16 configures the touchscreen system 15 via the 2C SPI interface. The touchscreen system 15 has its own memory and processor. During charging, the terminal device experiences power transfer, which affects the touchscreen's capacitance data (including self-capacitance and mutual capacitance data). If the waterproofing strategy used in the non-charging state is still employed during charging, the touchscreen is susceptible to charging-related effects, resulting in localized capacitance data that is slightly higher than the surrounding area but much smaller than the capacitance data of the finger. In such cases, the non-charging state waterproofing strategy requires entering waterproof mode, even though the touchscreen is not actually in contact with water, leading to misjudgment and affecting the user's operation and experience. Therefore, one or more thresholds of the waterproofing strategy in the charging state should be higher than the corresponding thresholds in the non-charging state. For example, if the non-charging state waterproofing strategy is waterproofing strategy 1 as described above, then the charging state waterproofing strategy can be waterproofing strategy 2 and / or waterproofing strategy 3 as described above.
[0047] In some embodiments, even when the terminal device is charging, different charging powers have significantly different effects on the touchscreen capacitive data. Generally, the higher the charging power, the greater the impact on the touchscreen capacitive data, i.e., the greater the fluctuation in capacitive data. Therefore, a corresponding waterproofing strategy can be determined according to different charging powers. In some embodiments, the higher the charging power, the higher the corresponding thresholds should be, and the higher the level of the corresponding waterproofing strategy should be. In some embodiments, the waterproofing strategies corresponding to the terminal device in a non-charging state, a wired charging state with a charging power of 50W, and a wired charging state with a charging power of 80W can be shown in Table 1 below.
[0048] Table 1
[0049]
[0050] In some embodiments, the method may further include the following steps:
[0051] 1. Obtain the first waterproof strategy, which is the waterproof strategy corresponding to when the terminal device is in a non-charging state or the charging power is zero;
[0052] 2. When the terminal device is not charging or the charging power is zero, determine whether the touch screen enters waterproof mode based on the first waterproof strategy and the capacitance data of the touch screen.
[0053] In some embodiments, if the terminal device is in a non-charging state or the charging power is zero, it means that no current is currently being transmitted from the outside to the terminal device; that is, the capacitive data of the touchscreen will not be affected by charging. Therefore, the first waterproofing strategy can be determined as the current waterproofing strategy. In some embodiments, the first waterproofing strategy can be the waterproofing strategy 1 described above.
[0054] In some embodiments, the method may further include the following steps:
[0055] 1. Obtain device information of the charging equipment that charges the terminal device at multiple time points;
[0056] 2. If the device information obtained at the second time point among multiple time points is different from the device information obtained at the first time point among multiple time points, query the waterproofing strategy corresponding to the device information obtained at the second time point. The second time point and the first time point are two adjacent time points among multiple time points, and the second time point is after the first time point.
[0057] 3. Based on the waterproofing strategy corresponding to the device information obtained at the second time point and the capacitance data of the touch screen, determine whether the touch screen has entered waterproof mode.
[0058] In some embodiments, the charging service of the terminal device can periodically detect the charging device to obtain its device information. In some embodiments, the charging service uses an interrupted polling method to detect the charging device. The device information includes the type of the charging device and the charging power supported by the charging device. In some embodiments, if the device information of the charging device changes, it can be determined by querying Table 1 whether the device information at the second time point exists in Table 1. If it does not exist, the waterproofing strategy at the first time point is still used; if it exists, the waterproofing strategy corresponding to the device information at the second time point is determined as the current waterproofing strategy, and the waterproofing strategy corresponding to the device information at the second time point is informed to the touch screen.
[0059] In some embodiments, the waterproof mode of the touchscreen is disabled when the terminal device is charging and the charging power of the terminal device is greater than zero.
[0060] In the above implementation, by improving the level of waterproofing strategy, the impact of charging on capacitor data and waterproofing detection is reduced, thereby reducing the probability that the terminal device will mistakenly enter waterproofing mode due to charging.
[0061] In some possible implementations, interference factors include Near Field Communication (NFC) interference, and touch interference information includes NFC status information. The NFC status information includes at least one of NFC operating status information, NFC transmission power, NFC driving voltage, and NFC driving current. The NFC operating status information is used to indicate whether the NFC is in an operating state or a non-operating state. In some embodiments, step 220 may further include: determining the waterproofing strategy corresponding to the touchscreen based on the NFC status information.
[0062] In some embodiments, devices using NFC technology (such as terminal devices and access control devices) can exchange data when they are close to each other, which is an evolution of contactless radio frequency identification and interconnection technologies.
[0063] In some embodiments, such as Figure 5 As shown, this implementation relies on the touchscreen system 15, the terminal system 16, and the NFC module 17. Among them:
[0064] Touchscreen System 15: Touchscreen System 15 is a minimal system consisting of a microcontroller-type CPU (Central Processing Unit), RAM (Random Access Memory), and a power supply.
[0065] Terminal System 16: A system consisting of a high-performance CPU, RAM, ROM, and other devices.
[0066] NFC Module 17: A minimal system consisting of a microcontroller-type CPU, RAM memory, and power supply.
[0067] The touchscreen system 15 and the NFC module 17 are both sensors within the terminal system 16.
[0068] In some embodiments, determining the waterproofing strategy corresponding to the touchscreen based on NFC status information may include the following steps:
[0069] 1. Determine the power level of NFC transmission power. The power level is positively correlated with the NFC transmission power.
[0070] 2. If the NFC transmission power level is at the first power level, determine the waterproof strategy corresponding to the touch screen as the second waterproof strategy;
[0071] 3. If the NFC transmission power level is at the second power level, the corresponding waterproofing strategy for the touchscreen is determined to be the third waterproofing strategy.
[0072] Among them, the second power level is higher than the first power level, and the threshold value of the capacitor data corresponding to the third waterproofing strategy is greater than the threshold value of the capacitor data corresponding to the second waterproofing strategy.
[0073] In some embodiments, a higher level of waterproofing strategy is adopted when the NFC transmission power is higher. Table 2 below shows the waterproofing strategies for different NFC transmission powers / driving voltages / driving currents, command flags, and touchscreen entry into waterproof mode.
[0074] Table 2
[0075]
[0076] In some embodiments, the second instruction described above may be to disable the waterproof mode.
[0077] In some embodiments, the touchscreen's waterproof mode is disabled when NFC is active.
[0078] In some embodiments, when NFC is active, the touchscreen's waterproof mode is disabled (i.e., waterproof detection is not performed), and the waterproof strategy is determined to be waterproof strategy 2 as described above. In some embodiments, when NFC is not active, the waterproof strategy is determined to be waterproof strategy 1 as described above.
[0079] In some embodiments, the terminal device includes an NFC coil, and upon receiving an induced electrical signal from the NFC coil, it is determined that the NFC is in an active state. Due to electromagnetic induction, when the NFC coil senses a magnetic field, it generates a current, i.e., generates an electrical signal, thus determining that the NFC is in an active state.
[0080] In some embodiments, the terminal device includes an NFC coil, and upon detecting an NFC coil emission signal, it is determined that the NFC is in an active state. In some embodiments, if the NFC service discovers that the NFC chip in the NFC module actively controls the coil to emit a signal, it is determined that the NFC is in an active state.
[0081] In some embodiments, the method may further include the following steps:
[0082] 1. Obtain the changed NFC status information when the NFC status information changes;
[0083] 2. Update the waterproofing strategy corresponding to the touchscreen based on the changed NFC status information to obtain the updated waterproofing strategy.
[0084] In some embodiments, the status information of NFC is acquired periodically. If the status information of NFC changes and is different from the previously acquired status information, such as a change in at least one of the following: NFC operating status information, NFC transmission power, NFC driving voltage, and NFC driving current, then the waterproofing strategy corresponding to the touch screen needs to be updated according to the changed NFC status information to obtain the updated waterproofing strategy; and whether to enter the waterproofing mode is determined according to the updated waterproofing strategy.
[0085] In the above implementation, by improving the waterproof strategy level while NFC is in working state, the impact of NFC radio frequency interference on capacitance data and waterproof detection is reduced, thereby reducing the probability that the terminal device will mistakenly enter waterproof mode due to NFC radio frequency interference.
[0086] In some possible implementations, the interfering factor includes noise, and the touch interference information includes the noise value. In some embodiments, step 220 above may further include the following steps:
[0087] 1. When the noise level is greater than or equal to the first threshold, determine the noise level. The noise level is positively correlated with the noise level.
[0088] 2. Determine the appropriate waterproofing strategy for the touchscreen based on the noise level.
[0089] In some embodiments, noise refers to the noise signal (also known as a noise signal) detected during the scanning of capacitance data. In some embodiments, the hardware module uses an independent channel for scanning, meaning this channel is not connected to the ITO (Indium Tin Oxide) sensing material, and finger pressure does not affect its capacitance data. When noise interference is present, the noise can be collected independently. Within the existing channels, the TX channel is not coded and does not send a signal; the RX channel is scanned separately as the noise signal. In some embodiments, the higher the noise value, the higher the noise level.
[0090] In some embodiments, noise can be categorized into different levels based on its magnitude. For example, noise levels can be classified into three categories: strong, medium, and weak.
[0091] If the noise level is greater than the second threshold, it is judged as a strong noise mode; if it is greater than the third threshold but less than the second threshold, it is judged as a medium noise mode; if it is greater than the fourth threshold but less than the third threshold, it is judged as a weak noise mode.
[0092] Wherein: the second threshold is greater than the third threshold, and the third threshold is greater than the fourth threshold. In some embodiments, the first threshold is the same as the fourth threshold.
[0093] In some embodiments, the waterproofing strategy level corresponding to the strong noise mode is higher than that corresponding to the medium noise mode; the waterproofing strategy level corresponding to the medium noise mode is higher than that corresponding to the weak noise mode.
[0094] In some embodiments, when the noise value is less than a first threshold, the waterproofing strategy corresponding to the touchscreen is determined to be a fourth waterproofing strategy; wherein the threshold value of the capacitance data corresponding to the fourth waterproofing strategy is less than the threshold value of the capacitance data corresponding to the case where the noise value is greater than or equal to the first threshold. That is, the level of the waterproofing strategy corresponding to the weak noise mode is higher than the level of the waterproofing strategy corresponding to the case where there is no noise. In some embodiments, if the noise value is lower than the first threshold and the number of consecutive frames reaches a fifth threshold, then the noise can be considered to be absent.
[0095] In some embodiments, the threshold value of the capacitance data corresponding to the touchscreen entering waterproof mode is positively correlated with the noise level. That is, the higher the noise level, the higher the threshold value of the capacitance data corresponding to the touchscreen entering waterproof mode.
[0096] In the above implementation, by increasing the waterproof strategy level as the noise level increases in noise mode, the impact of noise on capacitance data and waterproof detection is reduced, thereby reducing the probability that the terminal device will mistakenly enter waterproof mode due to noise interference.
[0097] The following are embodiments of the apparatus described in this application, which can be used to execute the embodiments of the method described in this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method described in this application.
[0098] Please refer to Figure 6 This diagram illustrates a block diagram of a control device for a waterproof touchscreen mode according to an embodiment of this application. The device has the functionality to implement the aforementioned control method example for a waterproof touchscreen mode. This functionality can be implemented in hardware or by hardware executing corresponding software. The device can be the terminal device described above, or it can be installed on a terminal device. The device 600 may include: an information acquisition module 610, a strategy determination module 620, and a mode determination module 630.
[0099] The information acquisition module 610 is used to acquire touch interference information of a terminal device with a touch screen, as well as the capacitance data of the touch screen. The touch interference information is used to indicate interference factors that affect the capacitance data of the touch screen.
[0100] The strategy determination module 620 is used to determine the waterproof strategy corresponding to the touch screen based on the touch interference information. The waterproof strategy is used to indicate the threshold of the capacitance data corresponding to the touch screen entering the waterproof mode. The waterproof mode is used to detect whether the object in contact with the surface of the touch screen is a liquid.
[0101] The mode determination module 630 is used to determine whether the touch screen has entered the waterproof mode based on the threshold value of the capacitance data corresponding to the touch screen entering the waterproof mode and the capacitance data of the touch screen.
[0102] In some embodiments, the device further includes: the interference factor includes charging interference, the touch interference information includes charging information of the terminal device, the charging information being used to indicate whether the terminal device is in a charging state, and the charging power of the terminal device in the charging state; the strategy determination module 620 is used to determine the waterproof strategy corresponding to the touch screen based on the charging power of the terminal device in the charging state when the terminal device is in the charging state.
[0103] In some embodiments, the apparatus further includes a policy acquisition module.
[0104] The strategy acquisition module is used to acquire a first waterproof strategy, which is the waterproof strategy corresponding to when the terminal device is in a non-charging state or the charging power is zero.
[0105] The mode determination module 630 is further configured to determine whether the touch screen enters the waterproof mode based on the first waterproof strategy and the capacitance data of the touch screen when the terminal device is in the non-charging state or the charging power is zero.
[0106] In some embodiments, the apparatus further includes a strategy query module.
[0107] The information acquisition module 610 is also used to acquire device information of the charging device that charges the terminal device at multiple time points.
[0108] The strategy query module is used to query the waterproofing strategy corresponding to the device information obtained at the second time point among the plurality of time points when the device information obtained at the second time point is different from the device information obtained at the first time point among the plurality of time points. The second time point and the first time point are two adjacent time points among the plurality of time points, and the second time point is after the first time point.
[0109] The mode determination module 630 is further configured to determine whether the touchscreen enters the waterproof mode based on the waterproof strategy corresponding to the device information obtained at the second time point and the capacitance data of the touchscreen.
[0110] In some embodiments, when the terminal device is in the charging state and the charging power of the terminal device is greater than zero, the waterproof mode of the touch screen is disabled.
[0111] In some embodiments, the interference factors include near-field communication (NFC) interference, the touch interference information includes the NFC status information, the NFC status information includes at least one of the NFC operating status information, the NFC transmission power, the NFC driving voltage, and the NFC driving current, and the NFC operating status information is used to indicate whether the NFC is in an operating state or a non-operating state; the strategy determination module 620 is further used to determine the waterproof strategy corresponding to the touch screen based on the NFC status information.
[0112] In some embodiments, the strategy determination module 620 is configured to:
[0113] The power level of the NFC transmission power is determined, and the power level is positively correlated with the NFC transmission power;
[0114] If the power level of the NFC transmission power is at the first power level, the waterproof strategy corresponding to the touch screen is determined to be the second waterproof strategy.
[0115] If the power level of the NFC transmission power is at the second power level, the waterproof strategy corresponding to the touch screen is determined to be the third waterproof strategy.
[0116] Wherein, the second power level is higher than the first power level, and the threshold value of the capacitance data corresponding to the third waterproofing strategy is greater than the threshold value of the capacitance data corresponding to the second waterproofing strategy.
[0117] In some embodiments, when the NFC is in the operating state, the waterproof mode of the touchscreen is disabled.
[0118] In some embodiments, the terminal device includes an NFC coil. The device further includes a status determination module.
[0119] The state determination module is used to determine that the NFC is in the working state when the induced electrical signal of the NFC coil is obtained.
[0120] The state determination module is further configured to determine that the NFC is in the working state when the NFC coil emission signal is detected.
[0121] In some embodiments, the apparatus further includes a policy update module.
[0122] The information acquisition module 610 is further configured to acquire the changed status information of the NFC when the status information of the NFC changes.
[0123] The strategy update module is used to update the waterproof strategy corresponding to the touch screen based on the changed state information of the NFC, so as to obtain the updated waterproof strategy.
[0124] In some embodiments, the interference factor includes noise, and the touch interference information includes the value of the noise; the strategy determination module 620 is further configured to:
[0125] If the noise value is greater than or equal to a first threshold, the noise level is determined, and the noise level is positively correlated with the noise value.
[0126] Based on the noise level, determine the corresponding waterproofing strategy for the touchscreen.
[0127] In some embodiments, the threshold value of the capacitance data corresponding to the touchscreen entering the waterproof mode is positively correlated with the noise level.
[0128] In some embodiments, the strategy determination module 620 is further configured to determine the waterproof strategy corresponding to the touch screen as a fourth waterproof strategy when the value of the noise is less than the first threshold; wherein the threshold value of the capacitance data corresponding to the fourth waterproof strategy is less than the threshold value of the capacitance data when the value of the noise is greater than or equal to the first threshold.
[0129] In summary, the technical solution provided in this application determines the waterproof strategy corresponding to the touch screen by obtaining the touch interference information, and determines whether the terminal device enters the waterproof mode based on the waterproof strategy, thereby reducing the probability of the terminal device mistakenly entering the waterproof mode due to the significant impact of interference factors on the capacitance data of the touch screen.
[0130] It should be noted that the apparatus provided in the above embodiments is only illustrated by the division of the above functional modules when implementing its functions. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0131] Please refer to Figure 7This diagram illustrates a structural block diagram of a terminal device 700 provided in one embodiment of this application. The terminal device 700 can be an electronic device such as a smartphone, tablet computer, game console, e-book reader, multimedia playback device, wearable device, or PC. This terminal device is used to implement the control method for the touchscreen waterproof mode provided in the above embodiment. The terminal device can be... Figure 1 Terminal device 11 in the implementation environment shown. Specifically:
[0132] Typically, terminal device 700 includes a processor 701 and a memory 702.
[0133] Processor 701 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 701 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 701 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 701 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 701 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0134] The memory 702 may include one or more computer-readable storage media, which may be non-transitory. The memory 702 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 702 is used to store a computer program and is configured to be executed by one or more processors to implement the above-described control method for the waterproof touchscreen mode.
[0135] In some embodiments, the terminal device 700 may also optionally include a peripheral device interface 703 and at least one peripheral device. The processor 701, memory 702, and peripheral device interface 703 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 703 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of a radio frequency circuit 704, a display screen 705 (i.e., a touchscreen), an audio circuit 706, and a power supply 707.
[0136] Those skilled in the art will understand that Figure 7 The structure shown does not constitute a limitation on the terminal device 700, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0137] In an exemplary embodiment, a computer-readable storage medium is also provided, wherein a computer program is stored therein, which, when executed by a processor, implements the above-described control method for a waterproof touchscreen mode.
[0138] In an exemplary embodiment, a computer program product is also provided, which is loaded and executed by a processor to implement the control method for the above-described touchscreen waterproof mode.
[0139] It should be understood that "multiple" as used in this article refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0140] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A control method for a waterproof mode on a touchscreen, characterized in that, The method includes: The system acquires touch interference information of a terminal device with a touchscreen and capacitance data of the touchscreen. The touch interference information is used to indicate interference factors that affect the capacitance data of the touchscreen. The interference factors include charging interference. The touch interference information includes charging information of the terminal device. The charging information is used to indicate whether the terminal device is in a charging state and the charging power of the terminal device in the charging state. When the terminal device is in the charging state, a waterproof strategy corresponding to the touch screen is determined based on the charging power of the terminal device in the charging state. The waterproof strategy is used to indicate the threshold of the capacitance data corresponding to the touch screen entering the waterproof mode. The waterproof mode is used to detect whether the object in contact with the surface of the touch screen is a liquid. Based on the threshold value of the capacitance data corresponding to the touchscreen entering the waterproof mode and the capacitance data of the touchscreen, it is determined whether the touchscreen has entered the waterproof mode.
2. The method according to claim 1, characterized in that, The method further includes: Obtain a first waterproof strategy, wherein the first waterproof strategy is the waterproof strategy corresponding to when the terminal device is in a non-charging state or the charging power is zero; When the terminal device is in the non-charging state or the charging power is zero, based on the first waterproof strategy and the capacitance data of the touch screen, it is determined whether the touch screen enters the waterproof mode.
3. The method according to claim 1, characterized in that, The method further includes: At multiple time points, device information of the charging device that charges the terminal device is obtained respectively. If the device information obtained at the second time point among the plurality of time points is different from the device information obtained at the first time point among the plurality of time points, the waterproofing strategy corresponding to the device information obtained at the second time point is queried. The second time point and the first time point are two adjacent time points among the plurality of time points, and the second time point is after the first time point. Based on the waterproofing strategy corresponding to the device information obtained at the second time point and the capacitance data of the touch screen, it is determined whether the touch screen enters the waterproofing mode.
4. The method according to claim 1, characterized in that, When the terminal device is in the charging state and the charging power of the terminal device is greater than zero, the waterproof mode of the touch screen is disabled.
5. The method according to claim 1, characterized in that, The interference factors include near-field communication (NFC) interference, and the touch interference information includes the status information of the NFC. The status information of the NFC includes at least one of the following: the working status information of the NFC, the transmission power of the NFC, the driving voltage of the NFC, and the driving current of the NFC. The working status information of the NFC is used to indicate whether the NFC is in a working state or a non-working state. The step of determining the waterproofing strategy corresponding to the touchscreen based on the touch interference information includes: The waterproofing strategy corresponding to the touchscreen is determined based on the NFC status information.
6. The method according to claim 5, characterized in that, The step of determining the waterproofing strategy corresponding to the touchscreen based on the NFC status information includes: The power level of the NFC transmission power is determined, and the power level is positively correlated with the NFC transmission power; If the power level of the NFC transmission power is at the first power level, the waterproof strategy corresponding to the touch screen is determined to be the second waterproof strategy. If the power level of the NFC transmission power is at the second power level, the waterproof strategy corresponding to the touch screen is determined to be the third waterproof strategy. Wherein, the second power level is higher than the first power level, and the threshold value of the capacitance data corresponding to the third waterproofing strategy is greater than the threshold value of the capacitance data corresponding to the second waterproofing strategy.
7. The method according to claim 5, characterized in that, When the NFC is in the working state, the waterproof mode of the touchscreen is disabled.
8. The method according to claim 5, characterized in that, The terminal device includes an NFC coil, and the method further includes: If the induced electrical signal of the NFC coil is received, it is determined that the NFC is in the working state; or, If the NFC coil emits a signal, it is determined that the NFC is in the operating state.
9. The method according to claim 5, characterized in that, The method further includes: If the NFC state information changes, obtain the changed NFC state information; The waterproofing strategy corresponding to the touchscreen is updated based on the changed NFC status information to obtain the updated waterproofing strategy.
10. The method according to claim 1, characterized in that, The interference factors include noise, and the touch interference information includes the numerical value of the noise. The step of determining the waterproofing strategy corresponding to the touchscreen based on the touch interference information includes: If the noise value is greater than or equal to a first threshold, the noise level is determined, and the noise level is positively correlated with the noise value. Based on the noise level, determine the corresponding waterproofing strategy for the touchscreen.
11. The method according to claim 10, characterized in that, The threshold value of the capacitance data corresponding to the touchscreen entering the waterproof mode is positively correlated with the noise level.
12. The method according to claim 10, characterized in that, The method further includes: If the noise value is less than the first threshold, the waterproofing strategy corresponding to the touch screen is determined to be the fourth waterproofing strategy. The threshold value of the capacitance data corresponding to the fourth waterproofing strategy is less than the threshold value of the capacitance data when the noise value is greater than or equal to the first threshold value.
13. A control device for a waterproof touchscreen mode, characterized in that, The device includes: An information acquisition module is used to acquire touch interference information of a terminal device with a touch screen, and capacitance data of the touch screen. The touch interference information is used to indicate interference factors that affect the capacitance data of the touch screen. The interference factors include charging interference. The touch interference information includes charging information of the terminal device. The charging information is used to indicate whether the terminal device is in a charging state and the charging power of the terminal device in the charging state. The strategy determination module is used to determine the waterproof strategy corresponding to the touch screen based on the charging power of the terminal device in the charging state when the terminal device is in the charging state. The waterproof strategy is used to indicate the threshold value of the capacitance data corresponding to the touch screen entering the waterproof mode. The waterproof mode is used to detect whether the object in contact with the surface of the touch screen is a liquid. The mode determination module is used to determine whether the touchscreen has entered the waterproof mode based on the threshold value of the capacitance data corresponding to the touchscreen entering the waterproof mode and the capacitance data of the touchscreen.
14. A terminal device, characterized in that, The terminal device includes a processor and a memory, the memory storing a computer program, which is loaded and executed by the processor to implement the control method for the waterproof touchscreen mode according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which is loaded and executed by a processor to implement the control method for the waterproof mode of the touch screen according to any one of claims 1 to 12.
16. A computer program product, characterized in that, The computer program product is loaded and executed by a processor to implement the control method for the waterproof mode of the touch screen as described in any one of claims 1 to 12.
Citation Information
Patent Citations
Touch operation method and mobile terminal
CN106681627A
Multi-mode operation method for capacitive touch panel
US10824270B1