Touch screen control method, controller, touch screen, medium and product
By setting the sampling period and capacitance peak detection in the central control screen, electrostatic interference signals are filtered out, and the real touch position is obtained. This solves the problem of insufficient anti-static interference capability of the central control screen in a high electrostatic environment, and improves the sensitivity of the touch screen and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-24
- Publication Date
- 2026-03-24
AI Technical Summary
The existing central control screen has insufficient anti-static interference capability in high static electricity environments, resulting in reduced touch screen sensitivity and affecting the user's operating experience.
By setting a sampling period longer than a preset duration, the peak value of the capacitance wave is detected, electrostatic interference signals are filtered out, the actual touch position is obtained, and a control signal is generated to control the target device.
While enhancing anti-static interference capabilities, we ensure touchscreen sensitivity and provide a good user experience.
Smart Images

Figure CN121722263A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of touch screens, and in particular to a touch screen control method, a touch screen controller, a touch screen, a medium and a product. BACKGROUND
[0002] In the related art, with the wide market of 12.3-inch central control screens, the user group has significantly grown. Due to the large screen characteristics, many users have high requirements for the sensitivity of the screen and expect to achieve the use of the tablet on the market. However, the existing central control screen is mainly for industrial control type air conditioning products, which have very strict requirements for electrostatic protection capability and need to ensure stable operation in an electrostatic environment as high as 16 kilovolts to avoid false triggering. This is different from the tablet of consumer electronics products on the market, which does not have strong electrostatic interference resistance and only needs to ensure that there is no false triggering in an electrostatic environment of 8 kilovolts.
[0003] However, in order to enhance the anti-static interference capability of the central control screen, the sensitivity of the touch screen will be relatively reduced, resulting in slow response of the user operating the screen and causing poor user experience. SUMMARY
[0004] The present application aims to at least solve one of the technical problems existing in the prior art. To this end, the present application provides a touch screen control method, a touch screen controller, a touch screen, a medium and a product, aiming to enhance the anti-static interference capability while ensuring the sensitivity of the touch screen, thereby meeting the use requirements of customers.
[0005] In a first aspect, the embodiments of the present application provide a touch screen control method, comprising: detecting the touch screen based on a sampling period to obtain a detection signal, wherein the sampling period is greater than a preset time length, and the preset time length is the duration during which the amplitude of a capacitance pulse signal generated by electrostatic interference is greater than a preset capacitance threshold value; when the capacitance wave peak values of the detection signals detected in the continuous multiple sampling periods are all greater than the preset capacitance threshold value, obtaining a current trigger position; generating a corresponding control signal according to the current trigger position, and controlling a target household appliance based on the control signal.
[0006] According to some embodiments of the present application, when the capacitance wave peak values of the detection signals detected in the continuous multiple sampling periods are all greater than the preset capacitance threshold value, the current trigger position is obtained, comprising: in the case where the first capacitance wave peak value of the first detection signal detected in the current period is greater than the preset capacitance threshold value, filtering a first touch signal triggered by the first capacitance wave peak value; obtaining a second capacitance peak value of a second detection signal detected in a next sampling period; when the second capacitance peak value is greater than the preset capacitance threshold, obtaining a second touch signal triggered by the second capacitance peak value as the current trigger position.
[0007] According to some embodiments of the present application, after the detection signal is obtained by detecting the touch screen based on the sampling period, the method further comprises: when a first capacitance peak value of a first detection signal detected in a current period is greater than the preset capacitance threshold, filtering a first touch signal triggered by the first capacitance peak value; obtaining a second capacitance peak value of a second detection signal detected in a next sampling period; when the second capacitance peak value is less than the preset capacitance threshold, determining that the first touch signal is a capacitance pulse signal generated by electrostatic interference.
[0008] According to some embodiments of the present application, the method further comprises: when the first capacitance peak value and the second capacitance peak value are both greater than the preset capacitance threshold, determining that the first touch signal is obtained by a user touching the touch screen.
[0009] According to some embodiments of the present application, the determination of the preset capacitance threshold comprises: obtaining a third capacitance peak value triggered by a preset force multiple times; determining the preset capacitance threshold according to multiple third capacitance peak values.
[0010] According to some embodiments of the present application, the determination of the preset capacitance threshold according to multiple third capacitance peak values comprises: determining a reference capacitance peak value according to multiple third capacitance peak values; determining the reference capacitance peak value as the preset capacitance threshold.
[0011] In a second aspect, embodiments of the present application provide a controller, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the control method of the touch screen in the first aspect.
[0012] In a third aspect, embodiments of the present application provide a touch screen comprising the controller in the second aspect.
[0013] In a fourth aspect, embodiments of the present application provide a computer readable storage medium storing computer executable instructions for performing the control method of the touch screen in the first aspect.
[0014] Fifthly, embodiments of this application provide a computer program product, including a computer program or computer instructions, characterized in that the computer program or computer instructions are stored in a computer-readable storage medium, a processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, causing the computer device to perform the touchscreen control method as described in the first aspect above.
[0015] According to the technical solution of the embodiments of this application, it has at least the following beneficial effects: Since this application acquires the current trigger position when the peak value of the capacitance wave of the detection signal detected in multiple consecutive sampling cycles is greater than the preset capacitance threshold, and controls the target home appliance according to the control signal corresponding to the current trigger position, this application can ensure the sensitivity of the touch screen while enhancing the anti-static interference capability, thereby meeting the user needs of customers.
[0016] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0017] The accompanying drawings are used to provide a further understanding of the technical solutions of this application and constitute a part of the specification. They are used together with the embodiments of this application to explain the technical solutions of this application and do not constitute a limitation on the technical solutions of this application.
[0018] Figure 1 This is a flowchart of a touchscreen control method provided in one embodiment of this application; Figure 2 This is a flowchart of a touchscreen control method provided in another embodiment of this application; Figure 3 This is a flowchart of a touchscreen control method provided in another embodiment of this application; Figure 4 This is a flowchart of a touchscreen control method provided in another embodiment of this application; Figure 5 This is a flowchart of a touchscreen control method provided in another embodiment of this application; Figure 6 This is an overall flowchart of a touchscreen control method provided in one embodiment of this application; Figure 7 This is a logical schematic diagram of a touch signal provided in one embodiment of this application; Figure 8 This is a schematic diagram of a controller for performing a touchscreen control method according to an embodiment of this application. Detailed Implementation
[0019] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.
[0020] In the description of this application, it should be understood that the orientation descriptions, such as up, down, front, back, left, right, etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this application.
[0021] In the description of this application, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.
[0022] In the description of this application, unless otherwise expressly defined, terms such as "setup," "installation," and "connection" should be interpreted broadly, and those skilled in the art can reasonably determine the specific meaning of the above terms in this application in conjunction with the specific content of the technical solution.
[0023] In some cases, the widespread adoption of 12.3-inch central control screens has led to a significant increase in their user base. Given their large screen size, many users demand high screen sensitivity, hoping for a user experience comparable to that of tablets. However, existing central control screens are primarily geared towards industrial air conditioning products, which have extremely stringent requirements for electrostatic discharge (ESD) protection. These products must ensure stable operation even under ESD conditions of up to 16 kV to prevent accidental triggering. This differs from consumer electronics tablets, which are not connected to high voltage and have less resistance to ESD interference, requiring only protection against 8 kV ESD for accidental triggering.
[0024] However, in order to enhance the anti-static interference capability of the central control screen, the touch screen sensitivity will be relatively reduced, resulting in a slow response time for user operation and a poor user experience.
[0025] Based on the above, this application proposes a touchscreen control method, controller, touchscreen, medium, and product, aiming to enhance anti-electrostatic interference capability while ensuring touchscreen sensitivity, thereby meeting customer usage needs.
[0026] The various embodiments of the touchscreen control method of this application will be further described below with reference to the accompanying drawings.
[0027] like Figure 1 As shown, Figure 1 This is a flowchart of a touch screen control method provided in one embodiment of this application; the touch screen control method may include, but is not limited to, steps S110, S120 and S130.
[0028] Step S110: Detect the touch screen based on the sampling period to obtain a detection signal, wherein the sampling period is greater than a preset duration, and the preset duration is the duration during which the amplitude of the capacitance pulse signal generated by electrostatic interference is greater than a preset capacitance threshold. Step S120: When the peak value of the capacitance wave of the detection signal detected in multiple consecutive sampling cycles is greater than the preset capacitance threshold, obtain the current trigger position; Step S130: Generate a corresponding control signal based on the current trigger position, and control the target home appliance based on the control signal.
[0029] In one embodiment, this application detects the touch screen based on a preset sampling period to obtain a detection signal. If the peak value of the capacitance wave of the detection signal detected in multiple consecutive sampling periods is greater than the preset capacitance threshold, it indicates that the peak value of the capacitance wave is due to the user touching the touch screen. The current trigger position is then obtained, and the corresponding control signal is obtained based on the current trigger position. The target home appliance is then controlled based on the control signal.
[0030] It is understood that the embodiments of this application will obtain the duration for which the amplitude of the capacitance pulse signal generated by electrostatic interference is greater than the preset capacitance threshold through multiple experiments, thereby determining the preset duration based on the duration, and then determining the adoption period based on the preset duration. In this application, the adoption period is greater than the preset duration.
[0031] It is understood that by setting the sampling period to be longer than a preset duration, this application can avoid the situation where the peak value of the capacitance wave of the detection signal detected in multiple consecutive sampling periods is greater than the preset capacitance threshold, which is triggered by the capacitance pulse signal generated by electrostatic interference, thereby enhancing the anti-electrostatic interference capability of this application.
[0032] It is worth noting that, since this application acquires the current trigger position when the peak value of the detection signal detected in multiple consecutive sampling cycles is greater than the preset capacitance threshold, and controls the target home appliance according to the control signal corresponding to the current trigger position, this application can enhance the anti-static interference capability while ensuring the sensitivity of the touch screen, thereby meeting the user needs of customers.
[0033] It is understood that the target home appliance mentioned above can be an air conditioner, a fan, or a robot vacuum cleaner, and can be selected according to actual needs. This application embodiment does not specifically limit the type of target home appliance.
[0034] In addition, such as Figure 2 As shown, Figure 2 This is a flowchart of a touch screen control method provided in another embodiment of this application; regarding the above step S120, it may include, but is not limited to, steps S210, S220 and S230.
[0035] Step S210: If the peak value of the first capacitance wave of the first detection signal detected in the current cycle is greater than the preset capacitance threshold, filter the first touch signal triggered by the peak value of the first capacitance wave. Step S220: Obtain the peak value of the second capacitance wave of the second detection signal detected in the next sampling period; Step S230: When the peak value of the second capacitor wave is greater than the preset capacitor threshold, obtain the current trigger position based on the second touch signal triggered by the peak value of the second capacitor wave.
[0036] In one embodiment, if the peak value of the first capacitance wave of the first detection signal detected in the current cycle is greater than a preset capacitance threshold, the first touch signal triggered by the peak value of the first capacitance wave is filtered to avoid false triggering due to electrostatic interference. Then, the peak value of the second capacitance wave of the second detection signal in the next sampling cycle is detected. If the peak value of the second capacitance wave is greater than the preset capacitance threshold, the current trigger position is obtained based on the second touch signal triggered by the peak value of the second capacitance wave. Therefore, this application can enhance anti-electrostatic interference capability while ensuring touchscreen sensitivity, thereby meeting customer usage needs.
[0037] Understandably, if the peak capacitance value of the detection signal detected in one sampling period exceeds a preset capacitance threshold, the touch signal triggered by the peak capacitance value will be filtered to avoid false triggering due to electrostatic interference. Furthermore, if the peak capacitance value of the detection signal detected in one sampling period exceeds the preset capacitance threshold, the peak capacitance value of the detection signal in the next sampling period will be detected. If the detected peak capacitance value is still greater than the preset capacitance threshold, it indicates that the peak capacitance value is due to user touch of the touchscreen, thus allowing the current trigger position to be determined. Therefore, this application can enhance anti-electrostatic interference capabilities while ensuring touchscreen sensitivity, thereby meeting customer usage needs.
[0038] It is understandable that if both the first and second peak values of the capacitor waveform are greater than the preset capacitor threshold, it indicates that the first touch signal is obtained by the user touching the touchscreen.
[0039] In addition, such as Figure 3 As shown, Figure 3 This is a flowchart of a touch screen control method provided in another embodiment of this application; after obtaining the detection signal by detecting the touch screen based on the sampling period in step S110 above, steps S310, S320 and S330 may also be included, but are not limited to.
[0040] Step S310: If the peak value of the first capacitance wave of the first detection signal detected in the current cycle is greater than the preset capacitance threshold, filter the first touch signal triggered by the peak value of the first capacitance wave. Step S320: Obtain the peak value of the second capacitance wave of the second detection signal detected in the next sampling period; Step S330: When the peak value of the second capacitor wave is less than the preset capacitor threshold, the first touch signal is determined to be obtained by the capacitor pulse signal generated by electrostatic interference.
[0041] In one embodiment, if the peak value of the first capacitance wave of the first detection signal detected in the current cycle is greater than a preset capacitance threshold, the first touch signal triggered by the peak value of the first capacitance wave will be filtered to avoid false triggering due to electrostatic interference. Then, the second capacitance wave peak value of the second detection signal detected in the next sampling cycle will be acquired, and the triggering status of the first touch signal will be determined based on the peak value of the second capacitance wave. If the peak value of the second capacitance wave is less than the preset capacitance threshold, the first touch signal is obtained by the capacitance pulse signal generated by electrostatic interference.
[0042] In addition, such as Figure 4 As shown, Figure 4 This is a flowchart of a touch screen control method provided in another embodiment of this application; the determination of the preset capacitance threshold may include, but is not limited to, steps S410 and S420.
[0043] Step S410: Obtain the peak value of the third capacitor wave triggered multiple times with a preset force; Step S420: Determine the preset capacitance threshold based on multiple third capacitor peak values.
[0044] In one embodiment, the touchscreen is touched multiple times with a preset force to obtain the peak value of the third capacitance wave triggered multiple times with the preset force. Then, the embodiment of this application can determine the preset capacitance threshold based on each third capacitance wave peak.
[0045] For example, if a user touches the touchscreen multiple times with a slight force, this application acquires the peak values of the capacitance waves triggered multiple times, and then determines a preset capacitance threshold based on each peak value.
[0046] In addition, such as Figure 5 As shown, Figure 5 This is a flowchart of a touch screen control method provided in another embodiment of this application; regarding the above step S420, it may include, but is not limited to, steps S510 and S520.
[0047] Step S510: Determine the reference capacitor peak value based on multiple third capacitor peak values; Step S520: Determine the reference capacitance peak value as the preset capacitance threshold.
[0048] It is understood that the reference capacitance peak value can be the average capacitance peak value or the minimum capacitance peak value, and can be set according to actual needs. This application does not specifically limit it.
[0049] It is understood that when the reference capacitance peak value is the minimum capacitance peak value, which can ensure that the user touches the touch screen with a small force, the embodiments of this application can obtain the current trigger position, thereby ensuring the sensitivity of the touch screen.
[0050] Based on the touch screen control methods of the above embodiments, the overall embodiments of the touch screen control methods of this application are presented below.
[0051] like Figure 6 and Figure 7 As shown, Figure 6 This is an overall flowchart of a touchscreen control method provided in one embodiment of this application. Figure 7 This is a logical diagram of a touch signal provided in one embodiment of this application, wherein the specific steps of the overall process are as follows: Step S610: Detect the touch screen based on the sampling period to obtain a detection signal, wherein the sampling period is greater than a preset duration, and the preset duration is the duration during which the amplitude of the capacitance pulse signal generated by electrostatic interference is greater than a preset capacitance threshold. Step S620: If the peak value of the first capacitance wave of the first detection signal detected in the current cycle is greater than the preset capacitance threshold, filter the first touch signal triggered by the peak value of the first capacitance wave. Step S630: Obtain the peak value of the second capacitance wave of the second detection signal detected in the next sampling period; Step S640: Determine the relationship between the peak value of the second capacitor wave and the preset capacitor threshold. If the peak value of the second capacitor wave is less than the preset capacitor threshold, proceed to step S650. If the peak value of the second capacitor wave is greater than the preset capacitor threshold, proceed to step S660. Step S650: Determine that the first touch signal is obtained from the capacitive pulse signal generated by electrostatic interference; Step S660: Determine that the first touch signal is obtained by the user touching the touch screen, and obtain the current trigger position based on the second touch signal triggered by the second capacitive wave peak. Step S670: Generate a corresponding control signal based on the current trigger position, and control the target home appliance based on the control signal.
[0052] Technical Principle: To achieve error-free triggering under 16KV electrostatic interference, the touchscreen of a central control screen device often increases the capacitance threshold Y for triggering interruption. However, this requires increasing the finger contact area to ensure that the peak capacitance wave X exceeds the capacitance threshold Y for the touchscreen to respond normally. When the user's hand pressure is slightly lighter, the contact area is smaller, resulting in the peak capacitance wave X not exceeding the capacitance threshold Y, causing the touchscreen to sometimes not respond, significantly impacting the user's smooth operation experience. To achieve both error-free triggering under high-voltage electrostatic interference and a good smooth operation experience, the following solution is proposed: Assuming the capacitance baseline value fluctuates around 2000 in the non-touch state, and the required capacitance threshold Y for a relatively light touch sensitivity is 4000, then the occasional peak capacitance wave when 16kV electrostatic contact occurs with the touchscreen is 5000. The time T1 for the capacitance pulse signal exceeding 4000 is 10ms, and the determination phase duration is 10ms, therefore the sampling period is greater than 10ms. If the peak value of the first capacitance wave detected in the current cycle is greater than the capacitance threshold Y, the first touch signal triggered by the peak value of the first capacitance wave is filtered out. If the peak value of the second capacitance wave detected in the next sampling cycle is greater than the capacitance threshold Y, the current trigger position is obtained based on the second touch signal triggered by the second capacitance wave peak value, thereby obtaining the corresponding control signal and controlling the target home appliance.
[0053] For example: Regardless of whether it's a human touch or an electrostatic discharge touchscreen, the reported capacitance peak value is detected. If the capacitance peak value exceeds 4000, the first touch signal is filtered out and not reported. This filters out false triggering events caused by sudden capacitance changes due to transient electrostatic interference. If the remaining signal is above 4000 and remains normal, the current trigger position is obtained, and a corresponding control signal is generated based on the current trigger position. The target home appliance is then controlled according to the control signal. Therefore, it is unnecessary to set the capacitance threshold Y to 5000 in order to enhance the 16KV electrostatic interference immunity, as this would require users to press the touchscreen harder to increase the touch area for smooth operation.
[0054] It is worth noting that this application can achieve error-free triggering under 16kV electrostatic interference, while also meeting the user's need for a light and easy operating feel.
[0055] Based on the touch screen control methods of the above embodiments, the following presents various embodiments of the controller, touch screen, computer-readable storage medium, and computer program product of this application.
[0056] like Figure 8 As shown, Figure 8 This is a schematic diagram of a controller for executing a touchscreen control method according to an embodiment of this application. The controller 700 implemented in this application includes: a processor 710, a memory 720, and a computer program stored in the memory 720 and executable on the processor 710, wherein... Figure 8 The example uses a processor 710 and a memory 720.
[0057] The processor 710 and memory 720 can be connected via a bus or other means. Figure 8 Taking the example of a connection between China and Israel via a bus.
[0058] Memory 720, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory 720 may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 720 may optionally include remotely located memories 720 relative to processor 710, which can be connected to controller 700 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0059] Those skilled in the art will understand that Figure 8 The device structure shown does not constitute a limitation on the controller 700 and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0060] exist Figure 8 In the controller 700 shown, the processor 710 can be used to call the control program stored in the memory 720, thereby implementing the touchscreen control method described above. Specifically, the non-transitory software program and instructions required to implement the touchscreen control method of the above embodiment are stored in the memory 720, and when executed by the processor 710, the touchscreen control method of the above embodiment is executed.
[0061] It is worth noting that since the controller 700 of this application embodiment can execute the touch screen control method of any of the above embodiments, the specific implementation and technical effects of the controller 700 of this application embodiment can refer to the specific implementation and technical effects of the touch screen control method of any of the above embodiments.
[0062] Furthermore, one embodiment of this application also provides a touchscreen that includes the controller described in the above embodiment.
[0063] It is worth noting that, since the touch screen of this application embodiment includes the controller of the above embodiments, and the controller of the above embodiments is capable of executing the touch screen control method of any of the above embodiments, the specific implementation method and technical effect of the touch screen of this application embodiment can refer to the specific implementation method and technical effect of the touch screen control method of any of the above embodiments.
[0064] Furthermore, one embodiment of this application also provides a computer-readable storage medium storing computer-executable instructions for performing the aforementioned touchscreen control method. Exemplarily, the above-described method is executed... Figures 1 to 6 The methods and steps in the text.
[0065] It is worth noting that, since the computer-readable storage medium of this application embodiment can execute the touch screen control method of any of the above embodiments, the specific implementation and technical effects of the computer-readable storage medium of this application embodiment can be referred to the specific implementation and technical effects of the touch screen control method of any of the above embodiments.
[0066] Furthermore, one embodiment of this application also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium and executes the computer program or computer instructions, causing the computer device to perform the aforementioned touchscreen control method. Exemplarily, the above-described method is performed... Figures 1 to 6 The methods and steps in the text.
[0067] It is worth noting that, since the computer program product of this application embodiment can execute the touch screen control method of any of the above embodiments, the specific implementation method and technical effect of the computer program product of this application embodiment can refer to the specific implementation method and technical effect of the touch screen control method of any of the above embodiments.
[0068] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium.
[0069] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0070] In the several embodiments provided in this application, it should be understood that the disclosed systems, instruments, and methods can be implemented in other ways. For example, the instrument embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between instruments or units may be electrical, mechanical, or other forms. Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0071] It should also be understood that the various implementation methods provided in this application can be combined arbitrarily to achieve different technical effects.
[0072] The above provides a detailed description of the preferred embodiments of this application. However, this application is not limited to the above-described embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
Claims
1. A control method for a touchscreen, characterized in that, include: The touchscreen is detected based on a sampling period to obtain a detection signal, wherein the sampling period is longer than a preset duration, and the preset duration is the duration during which the amplitude of the capacitance pulse signal generated by electrostatic interference is greater than a preset capacitance threshold. When the peak value of the capacitance wave of the detection signal detected in multiple consecutive sampling periods is greater than the preset capacitance threshold, the current trigger position is obtained; A corresponding control signal is generated based on the current trigger position, and the target home appliance is controlled based on the control signal.
2. The touchscreen control method according to claim 1, characterized in that, The step of obtaining the current trigger position when the peak value of the capacitance wave of the detected signal detected in multiple consecutive sampling periods is greater than the preset capacitance threshold includes: If the peak value of the first capacitance wave of the first detection signal detected in the current cycle is greater than the preset capacitance threshold, the first touch signal triggered by the peak value of the first capacitance wave is filtered out. Obtain the peak value of the second capacitance wave of the second detection signal detected in the next sampling period; When the peak value of the second capacitor wave is greater than the preset capacitor threshold, the current trigger position is obtained based on the second touch signal triggered by the peak value of the second capacitor wave.
3. The touchscreen control method according to claim 1, characterized in that, After obtaining the detection signal by detecting the touchscreen based on the sampling period, the method further includes: If the peak value of the first capacitance wave of the first detection signal detected in the current cycle is greater than the preset capacitance threshold, the first touch signal triggered by the peak value of the first capacitance wave is filtered out. Obtain the peak value of the second capacitance wave of the second detection signal detected in the next sampling period; When the peak value of the second capacitor wave is less than the preset capacitor threshold, the first touch signal is determined to be a capacitor pulse signal generated by electrostatic interference.
4. The touchscreen control method according to claim 2, characterized in that, The method further includes: When both the first capacitor peak value and the second capacitor peak value are greater than the preset capacitor threshold, the first touch signal is determined to be obtained by the user touching the touch screen.
5. The touchscreen control method according to claim 1, characterized in that, The determination of the preset capacitance threshold includes: Obtain the peak value of the third capacitor wave triggered multiple times with a preset force; The preset capacitance threshold is determined based on multiple third capacitance peak values.
6. The touchscreen control method according to claim 5, characterized in that, The step of determining the preset capacitance threshold based on multiple third capacitance peak values includes: The reference capacitance peak value is determined based on multiple third capacitance peak values; The peak value of the reference capacitance wave is determined as the preset capacitance threshold.
7. A controller, characterized in that, include: The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the touchscreen control method as described in any one of claims 1 to 6 when running the computer program.
8. A touchscreen, characterized in that, Includes the controller as described in claim 7.
9. A computer-readable storage medium, characterized in that: The device stores computer-executable instructions for performing the touchscreen control method as described in any one of claims 1 to 6.
10. A computer program product, comprising a computer program or computer instructions, characterized in that, The computer program or the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer program or the computer instructions from the computer-readable storage medium and executes the computer program or the computer instructions, causing the computer device to perform the touchscreen control method as described in any one of claims 1 to 6.