Touch detection method and device based on temperature and humidity and touch equipment
By obtaining the ambient temperature and humidity in the touch device and performing periodic detection and correction, the problem of false touch detection in high-temperature and high-humidity environments is solved, and the accuracy and reliability of false touch detection of the touch device is improved.
Patent Information
- Application Number
- CN202510010579.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2025-05-02
AI Technical Summary
In the prior art, touch control equipment has poor effect on detecting error touch in high temperature and high humidity environments, and cannot effectively remove the interference of temperature and humidity on touch control, and does not consider touch time fluctuations.
By obtaining the temperature and humidity of the touch device environment, the control device performs periodic detection when it is above the threshold value, corrects the capacitance change of the touch capacitor, and determines the effectiveness of the touch signal based on the corrected change.
Effectively eliminate the impact of environmental factors on touch capacitors, improve the accuracy of false touch detection of touch devices, and ensure the accuracy and reliability of touch operation under various environmental conditions.
Smart Images

Figure CN119916970A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of preventing accidental touches of touch devices, and in particular to a touch detection method and device based on temperature and humidity, a computer-readable storage medium, and a touch device. Background Art
[0002] The control buttons in the prior art mainly include mechanical buttons and touch buttons. Mechanical buttons are mainly converted into electrical signals through the structure of the buttons to identify pressing and releasing operations, while touch buttons use the change in monitoring capacitance to determine the pressing and releasing operations of the buttons.
[0003] Touch buttons are widely used in a variety of touch devices, including but not limited to screens with touch functions, touch buttons of washing machines, etc. The specific principle is to use the human body to provide static electricity. When the user touches the touch display interface, the touch capacitance changes, which is then detected by the touch device, thereby realizing the touch function. However, some touch devices operate in a high temperature and high humidity environment. The size of human body static electricity is affected by temperature and humidity, and the change in touch capacitance is a relatively microscopic physical quantity, which can easily lead to misjudgment.
[0004] In response to the above technical problems, the patent with publication number CN117071243A in the prior art proposes to perform key anti-interference processing based on the time characteristics of the capacitance detection value of the touch key, or to perform key anti-interference processing based on the environmental characteristics of the touch key. The patent with publication number CN114567313A proposes to obtain the first capacitance value of the key at the first moment; obtain the second capacitance value of the key at the second moment, wherein the second moment is the first moment plus a preset first time period; calculate the difference between the second capacitance value and the first capacitance value to obtain the current capacitance difference; when the current capacitance difference is greater than the preset first threshold, determine that the key is touched.
[0005] Based on the above-mentioned public documents, it can be seen that although all of them have proposed solving the problem of false touches based on the capacitance value of the touch button, none of them has achieved real-time and accurate identification of the impact of environmental factors on the touch change amount to solve the problem of false touches, nor has it considered the errors caused by the different touch times themselves, resulting in poor false touch detection effects of touch devices in the prior art. Summary of the invention
[0006] The main purpose of the present application is to provide a touch detection method, device, computer-readable storage medium and touch device based on temperature and humidity, so as to at least solve the problem that the anti-interference processing of the touch device in the prior art cannot remove the interference of temperature and humidity on the touch and does not take into account the time fluctuation of the touch itself, resulting in poor false touch detection effect of the touch device.
[0007] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a touch detection method based on temperature and humidity is provided, including: obtaining the ambient temperature and ambient humidity of the environment in which the touch device is located to obtain a first temperature and a first humidity; when the first temperature and / or the first humidity is greater than the corresponding first threshold, controlling the touch device to perform periodic detection of the temperature and humidity; correcting the capacitance change of the touch capacitor according to the changes in temperature and humidity during the detection process, and determining whether the touch signal is valid based on the corrected capacitance change to eliminate the influence of environmental factors on the touch capacitor; when the touch signal is valid, controlling the touch device to perform corresponding actions according to the touch signal.
[0008] Optionally, the capacitance change of the touch capacitor is corrected according to the changes in temperature and humidity during the detection process, including: retrieving the initial ambient temperature and initial ambient humidity of the detection process from the database to obtain the second temperature and the second humidity, and retrieving the final ambient temperature and final ambient humidity of the detection process from the database to obtain the third temperature and the third humidity; based on the second temperature, the third temperature, the second humidity and the third humidity, the capacitance change of the touch capacitor is corrected to obtain the corrected capacitance change.
[0009] Optionally, the capacitance change of the touch capacitor is corrected based on the second temperature, the third temperature, the second humidity and the third humidity to obtain a corrected capacitance change, including: calculating the difference between the second temperature and the third temperature to obtain the temperature change; calculating the difference between the second humidity and the third humidity to obtain the humidity change; calculating the difference between the third threshold and the temperature change and the humidity change to obtain the corrected capacitance change.
[0010] Optionally, determining whether the touch signal is valid based on the corrected capacitance change includes: retrieving the time consumed by the detection process from a database to obtain a first time duration; calculating the capacitance change rate of the touch capacitance based on the corrected capacitance change amount and the first time duration, and determining the capacitance change rate as a touch effectiveness score; when the touch effectiveness score is greater than a fourth threshold and less than a fifth threshold, determining that the touch signal is a valid signal; and when the touch effectiveness score is greater than or equal to the fifth threshold or less than or equal to the fourth threshold, determining that the touch signal is an invalid signal.
[0011] Optionally, before retrieving the initial ambient temperature and initial ambient humidity of the detection process from the database to obtain the second temperature and the second humidity, and retrieving the final ambient temperature and final ambient humidity of the detection process from the database to obtain the third temperature and the third humidity, the method also includes: an accumulation step, initializing the number of detections, recording the ambient temperature and the ambient humidity when the capacitance change is greater than the second threshold, obtaining the second temperature and the second humidity, and accumulating the number of detections; an initialization step, resetting the number of detections when the capacitance change is less than or equal to the second threshold; repeating the accumulation step or the initialization step at least once in sequence until the capacitance change is greater than the third threshold, recording the ambient temperature and the ambient humidity at the current moment, obtaining the third temperature and the third humidity; storing the second temperature, the second humidity, the third temperature and the third humidity in the database; retrieving the duration consumed by the detection process from the database to obtain the first duration, including: obtaining the number of consecutive repetitions of the accumulation step to obtain the target number, determining the first duration based on the target number and the preset period; and storing the first duration in the database.
[0012] Optionally, before determining that the touch signal is a valid signal or determining that the touch signal is an invalid signal, the method also includes: obtaining a second time length and a third time length, the second time length being the minimum time length consumed for the capacitance change to reach a third threshold when the touch signal is valid, and the third time length being the maximum time length consumed for the capacitance change to reach the third threshold when the touch signal is valid; calculating the ratio of the corrected capacitance change to the second time length to obtain a fifth threshold; calculating the ratio of the corrected capacitance change to the third time length to obtain a fourth threshold.
[0013] Optionally, obtaining the second duration and the third duration includes: obtaining historical touch records of the touch device, wherein the number of samples of touch signals included in the historical touch records is greater than or equal to a sixth threshold; traversing the historical touch records, extracting the duration from the time when the capacitance change is greater than the second threshold to the time when the capacitance change is greater than the third threshold in each sample, and obtaining multiple fourth durations; determining the minimum value of the fourth duration as the second duration, and determining the maximum value of the fourth duration as the third duration.
[0014] According to another aspect of the present application, a touch detection device based on temperature and humidity is provided, and the device includes: a first acquisition unit, used to acquire the ambient temperature and ambient humidity of the environment in which the touch device is located, and obtain a first temperature and a first humidity; a first control unit, used to control the touch device to perform periodic detection of temperature and humidity when the first temperature and / or the first humidity is greater than the corresponding first threshold; a first determination unit, used to correct the capacitance change of the touch capacitor according to the changes in temperature and humidity during the detection process, and determine whether the touch signal is valid based on the corrected capacitance change, so as to eliminate the influence of environmental factors on the touch capacitor; a second control unit, used to control the touch device to perform corresponding actions according to the touch signal when the touch signal is valid.
[0015] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0016] According to another aspect of the present application, a touch device is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the methods described.
[0017] By applying the technical solution of the present application, in the above-mentioned touch detection method based on temperature and humidity, first, the ambient temperature and ambient humidity of the environment in which the touch device is located are obtained to obtain a first temperature and a first humidity; then, when the first temperature and / or the first humidity is greater than the corresponding first threshold value, the touch device is controlled to perform periodic detection of the temperature and humidity; thereafter, the capacitance change of the touch capacitor is corrected according to the changes in temperature and humidity during the detection process, and whether the touch signal is valid is determined based on the corrected capacitance change to eliminate the influence of environmental factors on the touch capacitor; finally, when the touch signal is valid, the touch device is controlled to perform corresponding actions according to the touch signal. The present application is arranged to control the touch device to enter the touch detection mode in an environment with abnormal humidity and temperature, and to correct the change in capacitance by periodically detecting the changes in temperature and humidity during the period when the touch signal exists, and to detect the validity of the touch signal based on the corrected change. The periodic detection is arranged to avoid the accidental error of a single detection, and the signal detection is converted into the time detection by comparing the change, so as to simplify the control logic and improve the detection speed. The method solves the problem in the prior art that the anti-interference processing of the touch device cannot remove the interference of temperature and humidity on the touch and does not take into account the time fluctuation of the touch itself, resulting in poor false touch detection effect of the touch device. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 A hardware structure block diagram of a mobile terminal according to a touch detection method based on temperature and humidity provided in an embodiment of the present application is shown;
[0019] Figure 2 A schematic diagram of a flow chart of a touch detection method based on temperature and humidity provided according to an embodiment of the present application is shown;
[0020] Figure 3 An algorithm flow chart of a touch detection method based on temperature and humidity provided according to an embodiment of the present application is shown;
[0021] Figure 4 A schematic diagram showing the change of capacitance over time during a touch process provided by an embodiment of the present application is shown;
[0022] Figure 5 A structural block diagram of a touch detection device based on temperature and humidity provided according to an embodiment of the present application is shown.
[0023] The above drawings include the following reference numerals:
[0024] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] As introduced in the background technology, the prior art has not achieved real-time and accurate identification of the impact of environmental factors on the touch change amount to solve the problem of false touches, nor has it considered the errors caused by the different touch times themselves, resulting in poor false touch detection effects of the touch devices in the prior art. In order to solve the problem that the anti-interference processing of the touch devices in the prior art cannot remove the interference of temperature and humidity on the touch and does not consider the time fluctuation of the touch itself, resulting in poor false touch detection effects of the touch devices, the embodiments of the present application provide a touch detection method, device, computer-readable storage medium and touch device based on temperature and humidity.
[0029] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0030] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a touch detection method based on temperature and humidity according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the touch detection method based on temperature and humidity in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0032] In this embodiment, a touch detection method based on temperature and humidity is provided that runs on a mobile terminal, a computer terminal or a similar computing device. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0033] Figure 2 FIG. 1 is a flow chart of a touch detection method based on temperature and humidity according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0034] Step S201, obtaining the ambient temperature and ambient humidity of the environment where the touch device is located, and obtaining a first temperature and a first humidity;
[0035] Specifically, in order to prevent environmental factors from affecting the touch operation, the present application is configured to obtain the first temperature and the first humidity by monitoring the temperature and the humidity of the environment surrounding the touch device.
[0036] In a specific implementation, taking the touch panel of a washing machine as an example, since the working environment of the touch panel of a washing machine is usually high in humidity and temperature, when performing touch operations, the temperature and humidity data of the environment are monitored in real time or periodically through the built-in temperature and humidity sensor, and the above data is recorded as the first temperature and the first humidity. For example, on the control panel of the washing machine, when the user approaches or tries to touch a button, the built-in temperature and humidity sensor will start working immediately to capture the temperature and humidity data around the display panel.
[0037] Step S202, when the first temperature and / or the first humidity is greater than the corresponding first threshold, controlling the touch device to perform periodic detection of temperature and humidity;
[0038] Specifically, when it is monitored that the first temperature and / or the first humidity are greater than the corresponding first threshold, it means that the current environmental factors may cause false touches of the touch device. The system starts a periodic temperature and humidity monitoring mechanism to frequently monitor environmental changes to timely capture potential interference factors in environmental factors.
[0039] In a specific implementation, the first threshold is set based on a large amount of experimental data, the device parameters of the device itself, and the use environment, and is used to determine whether the environment has the possibility of affecting the touch operation. For example, in a washing machine, if the detected temperature or humidity exceeds a certain temperature (humidity) above the average value during normal operation of the device, it is considered that the current environment may affect the accuracy of the touch operation, and more frequent detection is initiated.
[0040] Step S203, correcting the capacitance change of the touch capacitor according to the changes in temperature and humidity during the detection process, and determining whether the touch signal is valid based on the corrected capacitance change to eliminate the influence of environmental factors on the touch capacitor;
[0041] Specifically, the system corrects the capacitance change of the touch capacitor based on the periodically detected changes in ambient temperature and humidity. The correction method can be to adjust the sensitivity of capacitance detection by utilizing environmental changes, or to compensate for the capacitance change using an algorithm to eliminate the impact of environmental factors on the touch capacitor, and determine whether the touch signal is valid based on the corrected capacitance change.
[0042] In a specific implementation, since environmental factors affect capacitance change relatively slowly, the present application determines the validity of the touch signal based on whether the capacitance change exceeds a predetermined threshold and based on the rate of change of the corrected capacitance change within a preset time.
[0043] Step S204: when the touch signal is valid, control the touch device to perform a corresponding action according to the touch signal.
[0044] Specifically, after the touch signal is confirmed to be valid, the control system will execute an operation corresponding to the touch signal.
[0045] In a specific implementation, in the scenario of a washing machine, this may mean starting a washing program, adjusting a washing mode, or setting a washing time, etc.
[0046] Through the above embodiments, the present application can ensure that touch operations are accurate even under unfavorable environmental conditions, thereby improving the convenience of user operations and the reliability of the device.
[0047] Through this embodiment, first, the ambient temperature and humidity of the environment in which the touch device is located are obtained to obtain a first temperature and a first humidity; then, when the first temperature and / or the first humidity is greater than the corresponding first threshold, the touch device is controlled to perform periodic detection of the temperature and humidity; then, the capacitance change of the touch capacitor is corrected according to the change of temperature and humidity during the detection process, and the touch signal is determined to be valid based on the corrected capacitance change to eliminate the influence of environmental factors on the touch capacitor; finally, when the touch signal is valid, the touch device is controlled to perform a corresponding action according to the touch signal. The present application is set to control the touch device to enter a touch detection mode in an environment with abnormal humidity and temperature, and to correct the capacitance change by periodically detecting the temperature and humidity changes in the period when the touch signal exists, and to detect the validity of the touch signal based on the corrected change, wherein periodic detection is set to avoid accidental errors in single detection, and the signal detection is converted into time detection by comparing the change, simplifying the control logic and improving the detection speed. This method solves the problem that the anti-interference processing of the touch device in the prior art cannot remove the interference of temperature and humidity on the touch and does not consider the time fluctuation of the touch itself, resulting in poor false touch detection effect of the touch device.
[0048] In order to obtain the corrected capacitance variation, in an optional implementation, the above step S203 includes:
[0049] Step S2031, retrieving the initial ambient temperature and initial ambient humidity of the detection process from the database to obtain the second temperature and the second humidity, and retrieving the final ambient temperature and final ambient humidity of the detection process from the database to obtain the third temperature and the third humidity;
[0050] Specifically, Figure 3As shown, the initial environmental parameters recorded in the periodic detection process are retrieved from the database to obtain the second temperature and the second humidity, that is, at the moment when the user touches the key, that is, when the touch capacitance change D is first detected to be greater than 0 (T1), the system records the ambient temperature W1 and the ambient humidity H1, which marks the beginning of touch detection. The final environmental parameters recorded in the periodic detection process are retrieved from the database to obtain the third humidity and the third temperature, that is, when the touch capacitance change D reaches the preset touch threshold M (T2), the system records the ambient temperature W2 and the ambient humidity H2.
[0051] In the specific implementation, Figure 3 As shown, in order to avoid accidental errors caused by a single detection during the periodic detection process, the present application is also configured to record the number of periodic detections K during the detection process, and when the capacitance change is less than or equal to 0, the number of detections is reset to zero and re-detected. In addition, in order to further improve the accuracy, in an environment with environmental noise interference, the second temperature and second humidity can also be set to the ambient temperature and ambient humidity when the capacitance change D is greater than the noise value (for example, 10) to avoid interference of environmental noise on the detection.
[0052] Step S2032: correcting the capacitance variation of the touch capacitor based on the second temperature, the third temperature, the second humidity, and the third humidity to obtain a corrected capacitance variation.
[0053] Specifically, according to the changes in temperature and humidity during the touch process and in combination with the time t, the original touch capacitance change D is corrected by a software algorithm to obtain a corrected capacitance change.
[0054] In the above embodiments, through the correction mechanism, the present application takes into account the impact of temperature and humidity changes on capacitance changes, thereby achieving more comprehensive anti-interference protection, and aims to evaluate and correct the touch capacitance changes in real time through software algorithms to adapt to the working state of the washing machine in different temperature and humidity environments, reduce misoperation, ensure that the washing machine can operate stably under various environmental conditions, and improve user experience.
[0055] In order to correct the capacitance variation, in an optional implementation, the above step S2032 includes:
[0056] Step S20321, calculating the difference between the second temperature and the third temperature to obtain a temperature change;
[0057] Specifically, the temperature variation during the touch operation is obtained by calculating the difference between two recorded temperatures.
[0058] Step S20322, calculating the difference between the second humidity and the third humidity to obtain the humidity change;
[0059] Specifically, the humidity change during the touch operation is obtained by calculating the difference between two recorded humidity values.
[0060] Step S20323, calculating the difference between the third threshold value and the temperature change and the humidity change to obtain a corrected capacitance change.
[0061] Specifically, in order to correct the impact of environmental changes on touch capacitance, the system sets a third threshold value, which represents the normal range value M of capacitance change under a specific environment. Subsequently, the temperature change and humidity change are compared with the third threshold value to determine the degree of impact of environmental changes on capacitance. Finally, according to this difference, the detection standard of capacitance change is adjusted to obtain the corrected capacitance change.
[0062] In the specific implementation, taking a washing machine as an example, it is assumed that the temperature recorded by the washing machine touch panel at the beginning of a touch operation (at time T1) is 25°C (second temperature W1) and the humidity is 60% (second humidity H1). At the end of the touch operation (at time T2), the system again records a temperature of 27°C (third temperature W2) and a humidity of 65% (third humidity H2). The temperature change w during the touch operation is 2°C, and the humidity change h is 5%.
[0063] The set third threshold represents the expected value of the capacitance change amount reaching the trigger threshold under ideal conditions without changes in ambient temperature and humidity. For example, assuming that the third threshold is the ideal change amount of the capacitance change amount D is 200 pF.
[0064] Corrected capacitance change D'=original capacitance change D-temperature change correction factor w-humidity change correction factor h.
[0065] In order to determine the validity of the touch signal, in an optional implementation, the step S203 further includes:
[0066] Step S2033, retrieve the duration consumed by the detection process from the database to obtain a first duration;
[0067] In one embodiment, if Figure 4 As shown, the horizontal axis is time and the vertical axis is the capacitance change. The time consumed in the detection process can be determined by calculating the time difference between the second temperature and the second humidity and between the third temperature and the third humidity, that is, T2 minus T1, to obtain the total time t of the touch detection, where the response press threshold M is the above-mentioned third threshold.
[0068] It can be understood that this calculation method converts the speed of human hand touch into the time length for the capacitance change from 0 to the touch threshold, which is equivalent to converting the difficult-to-quantify speed detection into time detection, which facilitates system control.
[0069] Step S2034, calculating the capacitance change rate of the touch capacitance according to the corrected capacitance change amount and the first duration, and determining the capacitance change rate as the touch effectiveness score;
[0070] Specifically, the corrected capacitance change D' and the first time duration (i.e., the time t from the start of the detection process to the capacitance change reaching or exceeding the third threshold) are used to calculate the capacitance change rate of the touch capacitance. The capacitance change rate (f) can be expressed as the corrected capacitance change divided by the first time duration, i.e., f = D' / t.
[0071] It is understandable that, considering the influence of temperature and humidity changes, the calculation of the capacitance change rate can more accurately reflect the actual effectiveness of the touch event, rather than simply being based on the size of the capacitance change.
[0072] Step S2035, when the touch validity score is greater than the fourth threshold and less than the fifth threshold, determine that the touch signal is a valid signal; when the touch validity score is greater than or equal to the fifth threshold or less than or equal to the fourth threshold, determine that the touch signal is an invalid signal.
[0073] Specifically, by calculating the capacitance change rate f and comparing it with the preset fourth threshold value f2 and fifth threshold value f1, it can be determined whether the touch signal is valid. If R is greater than the fourth threshold value f2 and less than the fifth threshold value f1, the touch signal is considered valid, because this indicates that the capacitance change rate is within an acceptable range, neither too fast nor too slow, and meets the characteristics of normal touch operation. If R is greater than or equal to the fifth threshold value f1 or less than or equal to the fourth threshold value f2, the touch signal is considered invalid, which may mean environmental interference, false touch or abnormal touch operation.
[0074] In the above embodiments, the present application effectively combines the influence of environmental factors with the real-time change of capacitance change, and realizes accurate judgment of the effectiveness of touch signal by calculating the corrected capacitance change rate f and comparing it with the preset threshold value. It can be understood that compared with the prior art, the technical solution in the present application further considers the speed factor of touch operation on the basis of detecting and correcting the capacitance change, which provides a more rigorous basis for judging the effectiveness of touch signal.
[0075] In order to obtain the parameters used in the above correction process, in one embodiment, before retrieving the initial ambient temperature and initial ambient humidity of the detection process from the database to obtain the second temperature and the second humidity, and retrieving the final ambient temperature and final ambient humidity of the detection process from the database to obtain the third temperature and the third humidity, the above method further includes:
[0076] Step S301, an accumulation step, initializing the number of detections, and when the capacitance change is greater than a second threshold, recording the ambient temperature and ambient humidity, obtaining a second temperature and a second humidity, and accumulating the number of detections;
[0077] Specifically, Figure 3 As shown, before the detection process begins, the preset period T and the number of detections K are initialized first, and the accumulation step is: when the capacitance change D exceeds the second threshold for the first time, the system will record the ambient temperature and humidity at this time as the second temperature and the second humidity, and change the number of detections K to 1. Subsequently, whenever D is greater than the second threshold, K will increase by 1.
[0078] In the specific implementation, the system detects the capacitance change D at a preset period T (behavior frequency). In order to avoid the influence of environmental noise on the detection, a second threshold is set. Only when the capacitance change is greater than this threshold, it is regarded as a possible valid touch (such as Figure 1 As shown, in a noise-free environment, the second threshold is set to 0).
[0079] Step S302, an initialization step, when the capacitance change is less than or equal to the second threshold, resetting the number of detection times;
[0080] Specifically, Figure 3 As shown, if during the detection process, the capacitance change D is less than or equal to the second threshold, the previous detection is a misjudgment caused by temperature and humidity. At this time, the system will reset the number of detections K to 0, clear invalid data, and prepare for the next effective touch detection.
[0081] Step S303, repeating the accumulation step or the initialization step at least once in sequence until the capacitance change is greater than a third threshold, recording the current ambient temperature and ambient humidity, and obtaining a third temperature and a third humidity;
[0082] Specifically, Figure 3 As shown, the above-mentioned accumulation step or initialization step is repeated until D reaches a higher third threshold value, at which time the recorded ambient temperature and humidity become the third temperature and the third humidity.
[0083] Step S304, storing the second temperature, the second humidity, the third temperature and the third humidity in a database;
[0084] Specifically, after the second temperature, the second humidity, the third humidity and the third temperature are obtained, the second temperature, the second humidity, the third temperature and the third humidity are stored in a database so as to correct the capacitance variation later.
[0085] Before retrieving the duration consumed by the detection process from the database to obtain the first duration, the method further includes:
[0086] Step S305, obtaining the number of consecutive repetitions of the accumulation step to obtain a target number, and determining a first duration based on the target number and a preset period;
[0087] Specifically, Figure 3 As shown, the calculation of the first duration is based on the number of times the K value is continuously increased in the accumulation step (target number of times) and the preset period T. For example, if the target number of times is 20 times and the period T is 10 milliseconds, the first duration is 200 milliseconds.
[0088] Step S306: store the first duration in a database.
[0089] Specifically, the calculated first duration will also be stored in the database, and together with the amount of environmental change, will become the basis for subsequent algorithms to determine the effectiveness of the touch.
[0090] In a specific embodiment, taking a washing machine as an example, it is assumed that when the washing machine starts the touch detection process, the ambient temperature and humidity are 22°C and 55%RH respectively, which will be recorded as the initial state. Subsequently, the detector starts to detect the capacitance change D at a period T and initializes the number of detections K.
[0091] Assuming that when the capacitance change D exceeds the second threshold value (for example, set to 5 pF) for the first time, the system records the ambient temperature and humidity at this time as the second temperature and the second humidity, which are assumed to be 23° C. and 56% RH. At the same time, K changes from 0 to 1.
[0092] The system continues to detect, and whenever D remains greater than the second threshold of 5pF, K will continue to accumulate until D reaches the third threshold (for example, set to 200pF). At this time, assuming that the ambient temperature and humidity are 24°C and 57%RH, the system records these two values as the third temperature and the third humidity.
[0093] If during the detection process, the value of D falls below the second threshold, that is, less than or equal to 5pF, the system will reset K to 0, clear the invalid environment record, and restart the detection.
[0094] Environmental change and time consumption record When the capacitance change exceeds the second threshold for the first time and finally exceeds the third threshold, the system will record the second and third environmental changes and store them in the database. At the same time, the system will also record the total time consumed from the first detection of the capacitance change exceeding the second threshold to the third threshold, that is, the first duration.
[0095] In the above embodiment, based on the setting of the second threshold, the present application can effectively distinguish between touch and environmental noise to achieve accurate recording of environmental changes during the touch process, while recording the time consumption of the touch process, so as to subsequently convert the interference of the touch speed into the impact of the deviation in time length. The consideration of the above comprehensive information makes the touch device's anti-mistouch more operational and practical.
[0096] In order to further ensure the accuracy of the fourth threshold and the fifth threshold, in an optional implementation manner, before determining that the touch signal is a valid signal or determining that the touch signal is an invalid signal, the method further includes:
[0097] Step S401, obtaining a second duration and a third duration, wherein the second duration is the minimum duration consumed by the capacitance change to reach the third threshold when the touch signal is valid, and the third duration is the maximum duration consumed by the capacitance change to reach the third threshold when the touch signal is valid;
[0098] Specifically, the second duration and the third duration are obtained. The second duration refers to the shortest time consumed when the capacitance change increases from the initial value to reach the preset third threshold M (i.e., the touch threshold) when the touch signal is valid. The third duration is the longest time consumed to reach the third threshold M under the same conditions. These two time thresholds are the results obtained through statistical analysis based on a large amount of data collection, and represent the fastest and slowest effective touch speeds, respectively.
[0099] Step S402, calculating the ratio of the modified capacitance change to the second time length to obtain a fifth threshold;
[0100] Specifically, the ratio of the modified capacitance change to the second time length is calculated to obtain the fifth threshold value, and the obtained ratio is regarded as the fastest effective touch rate.
[0101] It is understandable that this threshold is mainly used to prevent excessively fast touch operations from being misjudged as invalid or interference signals, ensuring that the system can accurately identify and respond to touch operations even in the case of rapid touch.
[0102] Step S403, calculating the ratio of the modified capacitance change to the third time length to obtain a fourth threshold value.
[0103] Specifically, the ratio of the modified capacitance change to the third time length is calculated to obtain the fourth threshold value, and the obtained ratio represents the slowest effective touch rate.
[0104] It can be understood that this threshold ensures that even when the user's operation is slow, the system will not mistakenly identify a valid touch operation as invalid, thereby avoiding erroneous operations and missed operations.
[0105] Through the above embodiments, the judgment of the validity of the touch signal is not only based on the correction of the capacitance change, but also further considers the relationship between the change and time, that is, the touch rate. Before determining the validity of the touch signal, the system will obtain and calculate two key thresholds, the fifth threshold and the fourth threshold, based on a large amount of experimental data and statistical analysis, to ensure that the fourth threshold and the fifth threshold are dynamically adjusted according to the actual situation of the detection process, thereby improving the applicability of the key thresholds.
[0106] In order to obtain the second duration and the third duration, in an optional implementation, the step S401 includes:
[0107] Step S4011, acquiring historical touch records of the touch device, wherein the number of touch signal samples included in the historical touch records is greater than or equal to a sixth threshold;
[0108] Specifically, the historical touch records of the touch device are obtained, and the number of touch signal samples included in the historical touch records is greater than or equal to the sixth threshold, that is, in order to ensure the accuracy and reliability of the analysis, the system needs to retrieve the historical touch records of the touch device from the database, and these records contain at least the sixth threshold (for example, set to 1000) touch samples. Each sample includes the complete process from the user's first touch to the touch capacitance change exceeding the second threshold for the first time, to the capacitance change further increasing and exceeding the third threshold.
[0109] Step S4012, traversing historical touch records, extracting the duration from when the capacitance change is greater than the second threshold to when the capacitance change is greater than the third threshold in each sample, and obtaining a plurality of fourth durations;
[0110] Specifically, the system will traverse each historical touch sample and analyze the time from when the capacitance change is greater than the second threshold (for example, set to 5pF) to when it finally reaches the third threshold (for example, set to 200pF). This time span is the fourth duration. In 1000 samples, each will generate a fourth duration data for subsequent statistical analysis.
[0111] Step S4013: determine the minimum value of the fourth duration as the second duration, and determine the maximum value of the fourth duration as the third duration.
[0112] Specifically, after collecting all the fourth duration data, the system will calculate the minimum and maximum values of these time data as the second duration and the third duration, respectively. This means that the system will set a time window in the capacitance change detection, and any capacitance change detection result that is less than the second duration or greater than the third duration will be regarded as abnormal, which may be caused by environmental interference or other abnormal factors, rather than valid user touch.
[0113] In the above embodiment, the present application uses the analysis of historical touch records to determine the effective duration range of capacitance change detection, namely the second duration and the third duration. This mechanism helps to more reliably determine the validity of touch signals under high temperature, high humidity or other environmental change conditions.
[0114] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0115] The embodiment of the present application also provides a touch detection device based on temperature and humidity. It should be noted that the touch detection device based on temperature and humidity of the embodiment of the present application can be used to execute the touch detection method based on temperature and humidity provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.
[0116] The following is an introduction to the temperature and humidity based touch detection device provided in the embodiments of the present application.
[0117] Figure 5 is a structural block diagram of a touch detection device based on temperature and humidity according to an embodiment of the present application. Figure 5 As shown, the device comprises:
[0118] A first acquisition unit 10 is used to acquire the ambient temperature and the ambient humidity of the environment where the touch device is located, and obtain a first temperature and a first humidity;
[0119] Specifically, in order to prevent environmental factors from affecting the touch operation, the present application is configured to obtain the first temperature and the first humidity by monitoring the temperature and the humidity of the environment surrounding the touch device.
[0120] In a specific implementation, taking the touch panel of a washing machine as an example, since the working environment of the touch panel of a washing machine is usually high in humidity and temperature, when performing touch operations, the temperature and humidity data of the environment are monitored in real time or periodically through the built-in temperature and humidity sensor, and the above data is recorded as the first temperature and the first humidity. For example, on the control panel of the washing machine, when the user approaches or tries to touch a button, the built-in temperature and humidity sensor will start working immediately to capture the temperature and humidity data around the display panel.
[0121] A first control unit 20, configured to control the touch device to perform periodic detection of temperature and humidity when the first temperature and / or the first humidity is greater than a corresponding first threshold;
[0122] Specifically, when it is monitored that the first temperature and / or the first humidity are greater than the corresponding first threshold, it means that the current environmental factors may cause false touches of the touch device. The system starts a periodic temperature and humidity monitoring mechanism to frequently monitor environmental changes to timely capture potential interference factors in environmental factors.
[0123] In a specific implementation, the first threshold is set based on a large amount of experimental data, the device parameters of the device itself, and the use environment, and is used to determine whether the environment has the possibility of affecting the touch operation. For example, in a washing machine, if the detected temperature or humidity exceeds a certain temperature (humidity) above the average value during normal operation of the device, it is considered that the current environment may affect the accuracy of the touch operation, and more frequent detection is initiated.
[0124] A first determination unit 30, configured to correct a capacitance change of the touch capacitor according to changes in temperature and humidity during the detection process, and determine whether the touch signal is valid based on the corrected capacitance change, so as to eliminate the influence of environmental factors on the touch capacitor;
[0125] Specifically, the system corrects the capacitance change of the touch capacitor based on the periodically detected changes in ambient temperature and humidity. The correction method can be to adjust the sensitivity of capacitance detection by utilizing environmental changes, or to compensate for the capacitance change using an algorithm to eliminate the impact of environmental factors on the touch capacitor, and determine whether the touch signal is valid based on the corrected capacitance change.
[0126] In a specific implementation, since environmental factors affect capacitance change relatively slowly, the present application determines the validity of the touch signal based on whether the capacitance change exceeds a predetermined threshold and based on the rate of change of the corrected capacitance change within a preset time.
[0127] The second control unit 40 is used to control the touch device to perform corresponding actions according to the touch signal when the touch signal is valid.
[0128] Specifically, after the touch signal is confirmed to be valid, the control system will execute an operation corresponding to the touch signal.
[0129] In a specific implementation, in the scenario of a washing machine, this may mean starting a washing program, adjusting a washing mode, or setting a washing time, etc.
[0130] Through the above embodiments, the present application can ensure that touch operations are accurate even under unfavorable environmental conditions, thereby improving the convenience of user operations and the reliability of the device.
[0131] Through this embodiment, the first acquisition unit acquires the ambient temperature and ambient humidity of the environment in which the touch device is located to obtain the first temperature and the first humidity; the first control unit controls the touch device to perform periodic detection of temperature and humidity when the first temperature and / or the first humidity is greater than the corresponding first threshold; the first determination unit corrects the capacitance change of the touch capacitor according to the changes in temperature and humidity during the detection process, and determines whether the touch signal is valid based on the corrected capacitance change to eliminate the influence of environmental factors on the touch capacitor; the second control unit controls the touch device to perform corresponding actions according to the touch signal when the touch signal is valid. The present application is arranged to control the touch device to enter the touch detection mode in an environment with abnormal humidity and temperature, and to correct the change in capacitance by periodically detecting the changes in temperature and humidity during the period when the touch signal exists, and to detect the validity of the touch signal based on the corrected change. The periodic detection is arranged to avoid the accidental error of a single detection, and the signal detection is converted into the time detection by comparing the change, so as to simplify the control logic and improve the detection speed. The method solves the problem in the prior art that the anti-interference processing of the touch device cannot remove the interference of temperature and humidity on the touch and does not take into account the time fluctuation of the touch itself, resulting in poor false touch detection effect of the touch device.
[0132] In order to obtain the corrected capacitance variation, in an optional implementation manner, the first determining unit includes:
[0133] A first acquisition module is used to retrieve the initial ambient temperature and initial ambient humidity of the detection process from the database to obtain the second temperature and the second humidity, and retrieve the final ambient temperature and final ambient humidity of the detection process from the database to obtain the third temperature and the third humidity;
[0134] Specifically, Figure 3 As shown, the initial environmental parameters recorded in the periodic detection process are retrieved from the database to obtain the second temperature and the second humidity, that is, at the moment when the user touches the key, that is, when the touch capacitance change D is first detected to be greater than 0 (T1), the system records the ambient temperature W1 and the ambient humidity H1, which marks the beginning of touch detection. The final environmental parameters recorded in the periodic detection process are retrieved from the database to obtain the third humidity and the third temperature, that is, when the touch capacitance change D reaches the preset touch threshold M (T2), the system records the ambient temperature W2 and the ambient humidity H2.
[0135] In the specific implementation, Figure 3As shown, in order to avoid accidental errors caused by a single detection during the periodic detection process, the present application is also configured to record the number of periodic detections K during the detection process, and when the capacitance change is less than or equal to 0, the number of detections is reset to zero and re-detected. In addition, in order to further improve the accuracy, in an environment with environmental noise interference, the second temperature and second humidity can also be set to the ambient temperature and ambient humidity when the capacitance change D is greater than the noise value (for example, 10) to avoid interference of environmental noise on the detection.
[0136] The first calculation module is used to correct the capacitance change of the touch capacitor based on the second temperature, the third temperature, the second humidity and the third humidity to obtain a corrected capacitance change.
[0137] Specifically, according to the changes in temperature and humidity during the touch process and in combination with the time t, the original touch capacitance change D is corrected by a software algorithm to obtain a corrected capacitance change.
[0138] In the above embodiments, through the correction mechanism, the present application takes into account the impact of temperature and humidity changes on capacitance changes, thereby achieving more comprehensive anti-interference protection, and aims to evaluate and correct the touch capacitance changes in real time through software algorithms to adapt to the working state of the washing machine in different temperature and humidity environments, reduce misoperation, ensure that the washing machine can operate stably under various environmental conditions, and improve user experience.
[0139] In order to correct the capacitance variation, in an optional implementation, the first calculation module includes:
[0140] A first calculation submodule is used to calculate the difference between the second temperature and the third temperature to obtain a temperature change;
[0141] Specifically, the temperature variation during the touch operation is obtained by calculating the difference between two recorded temperatures.
[0142] A second calculation submodule is used to calculate the difference between the second humidity and the third humidity to obtain a humidity change;
[0143] Specifically, the humidity change during the touch operation is obtained by calculating the difference between two recorded humidity values.
[0144] The third calculation submodule is used to calculate the difference between the third threshold value and the temperature change and the humidity change to obtain a corrected capacitance change.
[0145] Specifically, in order to correct the impact of environmental changes on touch capacitance, the system sets a third threshold value, which represents the normal range value M of capacitance change under a specific environment. Subsequently, the temperature change and humidity change are compared with the third threshold value to determine the degree of impact of environmental changes on capacitance. Finally, according to this difference, the detection standard of capacitance change is adjusted to obtain the corrected capacitance change.
[0146] In the specific implementation, taking a washing machine as an example, it is assumed that the temperature recorded by the washing machine touch panel at the beginning of a touch operation (at time T1) is 25°C (second temperature W1) and the humidity is 60% (second humidity H1). At the end of the touch operation (at time T2), the system again records a temperature of 27°C (third temperature W2) and a humidity of 65% (third humidity H2). The temperature change w during the touch operation is 2°C, and the humidity change h is 5%.
[0147] The set third threshold represents the expected value of the capacitance change amount reaching the trigger threshold under ideal conditions without changes in ambient temperature and humidity. For example, assuming that the third threshold is the ideal change amount of the capacitance change amount D is 200 pF.
[0148] Corrected capacitance change D'=original capacitance change D-temperature change correction factor w-humidity change correction factor h.
[0149] In order to determine the validity of the touch signal, in an optional implementation manner, the first determination unit further includes:
[0150] A second acquisition module is used to retrieve the duration consumed by the detection process from a database to obtain a first duration;
[0151] In one embodiment, if Figure 4 As shown, the horizontal axis is time and the vertical axis is the capacitance change. The time consumed in the detection process can be determined by calculating the time difference between the second temperature and the second humidity and between the third temperature and the third humidity, that is, T2 minus T1, to obtain the total time t of the touch detection, where the response press threshold M is the above-mentioned third threshold.
[0152] It can be understood that this calculation method converts the speed of human hand touch into the time length for the capacitance change from 0 to the touch threshold, which is equivalent to converting the difficult-to-quantify speed detection into time detection, which facilitates system control.
[0153] A second calculation module is used to calculate the capacitance change rate of the touch capacitance according to the corrected capacitance change amount and the first duration, and determine the capacitance change rate as a touch effectiveness score;
[0154] Specifically, the corrected capacitance change D' and the first time duration (i.e., the time t from the start of the detection process to the capacitance change reaching or exceeding the third threshold) are used to calculate the capacitance change rate of the touch capacitance. The capacitance change rate (f) can be expressed as the corrected capacitance change divided by the first time duration, i.e., f = D' / t.
[0155] It is understandable that, considering the influence of temperature and humidity changes, the calculation of the capacitance change rate can more accurately reflect the actual effectiveness of the touch event, rather than simply being based on the size of the capacitance change.
[0156] The second determination module is used to determine that the touch signal is a valid signal when the touch validity score is greater than the fourth threshold and less than the fifth threshold, and to determine that the touch signal is an invalid signal when the touch validity score is greater than or equal to the fifth threshold or less than or equal to the fourth threshold.
[0157] Specifically, by calculating the capacitance change rate f and comparing it with the preset fourth threshold value f2 and fifth threshold value f1, it can be determined whether the touch signal is valid. If R is greater than the fourth threshold value f2 and less than the fifth threshold value f1, the touch signal is considered valid, because this indicates that the capacitance change rate is within an acceptable range, neither too fast nor too slow, and meets the characteristics of normal touch operation. If R is greater than or equal to the fifth threshold value f1 or less than or equal to the fourth threshold value f2, the touch signal is considered invalid, which may mean environmental interference, false touch or abnormal touch operation.
[0158] In the above embodiments, the present application effectively combines the influence of environmental factors with the real-time change of capacitance change, and realizes accurate judgment of the effectiveness of touch signal by calculating the corrected capacitance change rate f and comparing it with the preset threshold value. It can be understood that compared with the prior art, the technical solution in the present application further considers the speed factor of touch operation on the basis of detecting and correcting the capacitance change, which provides a more rigorous basis for judging the effectiveness of touch signal.
[0159] In order to obtain the parameters used in the above correction process, in one embodiment, the above device further includes:
[0160] A third control unit is used to retrieve the initial ambient temperature and initial ambient humidity of the detection process from the database to obtain the second temperature and the second humidity, retrieve the final ambient temperature and final ambient humidity of the detection process from the database, and obtain the third temperature and the third humidity, perform an accumulation step, initialize the number of detections, and record the ambient temperature and ambient humidity when the capacitance change is greater than the second threshold value to obtain the second temperature and the second humidity, and accumulate the number of detections;
[0161] Specifically, Figure 3As shown, before the detection process begins, the preset period T and the number of detections K are initialized first, and the accumulation step is: when the capacitance change D exceeds the second threshold for the first time, the system will record the ambient temperature and humidity at this time as the second temperature and the second humidity, and change the number of detections K to 1. Subsequently, whenever D is greater than the second threshold, K will increase by 1.
[0162] In the specific implementation, the system detects the capacitance change D at a preset period T (behavior frequency). In order to avoid the influence of environmental noise on the detection, a second threshold is set. Only when the capacitance change is greater than this threshold, it is regarded as a possible valid touch (such as Figure 1 As shown, in a noise-free environment, the second threshold is set to 0).
[0163] A fourth control unit, configured to execute an initialization step, and reset the number of detection times when the capacitance change is less than or equal to the second threshold value;
[0164] Specifically, Figure 3 As shown, if during the detection process, the capacitance change D is less than or equal to the second threshold, the previous detection is a misjudgment caused by temperature and humidity. At this time, the system will reset the number of detections K to 0, clear invalid data, and prepare for the next effective touch detection.
[0165] a repeating unit, configured to sequentially repeat the accumulation step or the initialization step at least once until the capacitance change is greater than a third threshold, record the ambient temperature and ambient humidity at the current moment, and obtain a third temperature and a third humidity;
[0166] Specifically, Figure 3 As shown, the above-mentioned accumulation step or initialization step is repeated until D reaches a higher third threshold value, at which time the recorded ambient temperature and humidity become the third temperature and the third humidity.
[0167] a first storage unit, for storing the second temperature, the second humidity, the third temperature and the third humidity in a database;
[0168] Specifically, after the second temperature, the second humidity, the third humidity and the third temperature are obtained, the second temperature, the second humidity, the third temperature and the third humidity are stored in a database so as to correct the capacitance variation later.
[0169] A second acquisition unit is used to retrieve the duration consumed by the detection process from the database to obtain the number of times the accumulation step is repeated continuously before obtaining the first duration to obtain a target number of times, and determine the first duration based on the target number of times and a preset period;
[0170] Specifically, Figure 3As shown, the calculation of the first duration is based on the number of times the K value is continuously increased in the accumulation step (target number of times) and the preset period T. For example, if the target number of times is 20 times and the period T is 10 milliseconds, the first duration is 200 milliseconds.
[0171] The second storage unit is used to store the first duration in a database.
[0172] Specifically, the calculated first duration will also be stored in the database, and together with the amount of environmental change, will become the basis for subsequent algorithms to determine the effectiveness of the touch.
[0173] In a specific embodiment, taking a washing machine as an example, it is assumed that when the washing machine starts the touch detection process, the ambient temperature and humidity are 22°C and 55%RH respectively, which will be recorded as the initial state. Subsequently, the detector starts to detect the capacitance change D at a period T and initializes the number of detections K.
[0174] Assuming that when the capacitance change D exceeds the second threshold value (for example, set to 5 pF) for the first time, the system records the ambient temperature and humidity at this time as the second temperature and the second humidity, which are assumed to be 23° C. and 56% RH. At the same time, K changes from 0 to 1.
[0175] The system continues to detect, and whenever D remains greater than the second threshold of 5pF, K will continue to accumulate until D reaches the third threshold (for example, set to 200pF). At this time, assuming that the ambient temperature and humidity are 24°C and 57%RH, the system records these two values as the third temperature and the third humidity.
[0176] If during the detection process, the value of D falls below the second threshold, that is, less than or equal to 5pF, the system will reset K to 0, clear the invalid environment record, and restart the detection.
[0177] Environmental change and time consumption record When the capacitance change exceeds the second threshold for the first time and finally exceeds the third threshold, the system will record the second and third environmental changes and store them in the database. At the same time, the system will also record the total time consumed from the first detection of the capacitance change exceeding the second threshold to the third threshold, that is, the first duration.
[0178] In the above embodiment, based on the setting of the second threshold, the present application can effectively distinguish between touch and environmental noise to achieve accurate recording of environmental changes during the touch process, while recording the time consumption of the touch process, so as to subsequently convert the interference of the touch speed into the impact of the deviation in time length. The consideration of the above comprehensive information makes the touch device's anti-mistouch more operational and practical.
[0179] In order to further ensure the accuracy of the fourth threshold and the fifth threshold, in an optional implementation manner, the above device further includes:
[0180] a third acquisition unit, used to acquire a second duration and a third duration before determining that the touch signal is a valid signal or determining that the touch signal is an invalid signal, wherein the second duration is the minimum duration consumed by the capacitance change to reach the third threshold when the touch signal is valid, and the third duration is the maximum duration consumed by the capacitance change to reach the third threshold when the touch signal is valid;
[0181] Specifically, the second duration and the third duration are obtained. The second duration refers to the shortest time consumed when the capacitance change increases from the initial value to reach the preset third threshold M (i.e., the touch threshold) when the touch signal is valid. The third duration is the longest time consumed to reach the third threshold M under the same conditions. These two time thresholds are the results obtained through statistical analysis based on a large amount of data collection, and represent the fastest and slowest effective touch speeds, respectively.
[0182] A first calculation unit, used for calculating the ratio of the modified capacitance change to the second time length to obtain a fifth threshold value;
[0183] Specifically, the ratio of the modified capacitance change to the second time length is calculated to obtain the fifth threshold value, and the obtained ratio is regarded as the fastest effective touch rate.
[0184] It is understandable that this threshold is mainly used to prevent excessively fast touch operations from being misjudged as invalid or interference signals, ensuring that the system can accurately identify and respond to touch operations even in the case of rapid touch.
[0185] The second calculation unit is used to calculate the ratio of the modified capacitance change to the third time length to obtain a fourth threshold value.
[0186] Specifically, the ratio of the modified capacitance change to the third time length is calculated to obtain the fourth threshold value, and the obtained ratio represents the slowest effective touch rate.
[0187] It can be understood that this threshold ensures that even when the user's operation is slow, the system will not mistakenly identify a valid touch operation as invalid, thereby avoiding erroneous operations and missed operations.
[0188] Through the above embodiments, the judgment of the validity of the touch signal is not only based on the correction of the capacitance change, but also further considers the relationship between the change and time, that is, the touch rate. Before determining the validity of the touch signal, the system will obtain and calculate two key thresholds, the fifth threshold and the fourth threshold, based on a large amount of experimental data and statistical analysis, to ensure that the fourth threshold and the fifth threshold are dynamically adjusted according to the actual situation of the detection process, thereby improving the applicability of the key thresholds.
[0189] In order to obtain the second duration and the third duration, in an optional implementation manner, the first calculation unit includes:
[0190] A third acquisition module, used for acquiring historical touch records of the touch device, wherein the number of touch signal samples included in the historical touch records is greater than or equal to a sixth threshold;
[0191] Specifically, the historical touch records of the touch device are obtained, and the number of touch signal samples included in the historical touch records is greater than or equal to the sixth threshold, that is, in order to ensure the accuracy and reliability of the analysis, the system needs to retrieve the historical touch records of the touch device from the database, and these records contain at least the sixth threshold (for example, set to 1000) touch samples. Each sample includes the complete process from the user's first touch to the touch capacitance change exceeding the second threshold for the first time, to the capacitance change further increasing and exceeding the third threshold.
[0192] A fourth acquisition module is used to traverse the historical touch records, extract the time length from the time when the capacitance change is greater than the second threshold to the time when the capacitance change is greater than the third threshold in each sample, and obtain multiple fourth time lengths;
[0193] Specifically, the system will traverse each historical touch sample and analyze the time from when the capacitance change is greater than the second threshold (for example, set to 5pF) to when it finally reaches the third threshold (for example, set to 200pF). This time span is the fourth duration. In 1000 samples, each will generate a fourth duration data for subsequent statistical analysis.
[0194] The third determining module is used to determine the minimum value of the fourth duration as the second duration, and determine the maximum value of the fourth duration as the third duration.
[0195] Specifically, after collecting all the fourth duration data, the system will calculate the minimum and maximum values of these time data as the second duration and the third duration, respectively. This means that the system will set a time window in the capacitance change detection, and any capacitance change detection result that is less than the second duration or greater than the third duration will be regarded as abnormal, which may be caused by environmental interference or other abnormal factors, rather than valid user touch.
[0196] In the above embodiment, the present application uses the analysis of historical touch records to determine the effective duration range of capacitance change detection, namely the second duration and the third duration. This mechanism helps to more reliably determine the validity of touch signals under high temperature, high humidity or other environmental change conditions.
[0197] The above-mentioned touch detection device based on temperature and humidity includes a processor and a memory. The above-mentioned first acquisition unit, first control unit, first determination unit, and second control unit are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions. The above-mentioned modules are all located in the same processor; or, the above-mentioned modules are located in different processors in any combination.
[0198] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the accuracy of false touch detection of the touch device can be improved by adjusting kernel parameters.
[0199] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0200] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program. When the program is executed, the device where the computer-readable storage medium is located is controlled to execute the touch detection method based on temperature and humidity.
[0201] An embodiment of the present invention provides a processor, and the processor is used to run a program, wherein the touch detection method based on temperature and humidity is executed when the program is running.
[0202] An embodiment of the present invention provides a touch device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the steps of the above-mentioned touch detection method based on temperature and humidity are implemented.
[0203] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program that initializes at least the steps of the above-mentioned touch detection method based on temperature and humidity.
[0204] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0205] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0206] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0207] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0208] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0209] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0210] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0211] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0212] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0213] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0214] 1) The touch detection method based on temperature and humidity of the present application first obtains the ambient temperature and ambient humidity of the environment in which the touch device is located to obtain a first temperature and a first humidity; then, when the first temperature and / or the first humidity is greater than the corresponding first threshold, the touch device is controlled to perform periodic detection of the temperature and humidity; thereafter, the capacitance change of the touch capacitor is corrected according to the changes in temperature and humidity during the detection process, and whether the touch signal is valid is determined based on the corrected capacitance change to eliminate the influence of environmental factors on the touch capacitor; finally, when the touch signal is valid, the touch device is controlled to perform a corresponding action according to the touch signal. The present application is arranged to control the touch device to enter the touch detection mode in an environment with abnormal humidity and temperature, and to correct the change in capacitance by periodically detecting the changes in temperature and humidity during the period when the touch signal exists, and to detect the validity of the touch signal based on the corrected change. The periodic detection is arranged to avoid the accidental error of a single detection, and the signal detection is converted into the time detection by comparing the change, so as to simplify the control logic and improve the detection speed. The method solves the problem in the prior art that the anti-interference processing of the touch device cannot remove the interference of temperature and humidity on the touch and does not take into account the time fluctuation of the touch itself, resulting in poor false touch detection effect of the touch device.
[0215] 2) In the temperature and humidity-based touch detection device of the present application, the first acquisition unit acquires the ambient temperature and ambient humidity of the environment in which the touch device is located to obtain a first temperature and a first humidity; the first control unit controls the touch device to perform periodic detection of temperature and humidity when the first temperature and / or the first humidity is greater than the corresponding first threshold; the first determination unit corrects the capacitance change of the touch capacitor according to the changes in temperature and humidity during the detection process, and determines whether the touch signal is valid based on the corrected capacitance change to eliminate the influence of environmental factors on the touch capacitor; the second control unit controls the touch device to perform corresponding actions according to the touch signal when the touch signal is valid. The present application is arranged to control the touch device to enter the touch detection mode in an environment with abnormal humidity and temperature, and to correct the change in capacitance by periodically detecting the changes in temperature and humidity during the period when the touch signal exists, and to detect the validity of the touch signal based on the corrected change. The periodic detection is arranged to avoid the accidental error of a single detection, and the signal detection is converted into the time detection by comparing the change, so as to simplify the control logic and improve the detection speed. The method solves the problem in the prior art that the anti-interference processing of the touch device cannot remove the interference of temperature and humidity on the touch and does not take into account the time fluctuation of the touch itself, resulting in poor false touch detection effect of the touch device.
[0216] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A touch detection method based on temperature and humidity, characterized in that: include: Acquire the ambient temperature and ambient humidity of the environment where the touch device is located to obtain a first temperature and a first humidity; When the first temperature and / or the first humidity is greater than a corresponding first threshold, controlling the touch control device to perform periodic detection of temperature and humidity; Correcting the capacitance variation of the touch capacitor according to the changes in temperature and humidity during the detection process, and determining whether the touch signal is valid based on the corrected capacitance variation, so as to eliminate the influence of environmental factors on the touch capacitor; When the touch signal is valid, the touch device is controlled to perform a corresponding action according to the touch signal.
2. The method according to claim 1, characterized in that The capacitance change of the touch capacitor is corrected according to the changes in temperature and humidity during the detection process, including: Retrieving the initial ambient temperature and initial ambient humidity of the detection process from the database to obtain a second temperature and a second humidity, and retrieving the final ambient temperature and final ambient humidity of the detection process from the database to obtain a third temperature and a third humidity; The capacitance variation of the touch capacitor is corrected based on the second temperature, the third temperature, the second humidity, and the third humidity to obtain a corrected capacitance variation.
3. The method according to claim 2, characterized in that The method of correcting the capacitance change of the touch capacitor based on the second temperature, the third temperature, the second humidity, and the third humidity to obtain a corrected capacitance change includes: Calculating the difference between the second temperature and the third temperature to obtain a temperature change; Calculating the difference between the second humidity and the third humidity to obtain a humidity change; The difference between the third threshold value and the temperature change and the humidity change is calculated to obtain a corrected capacitance change.
4. The method according to claim 3, characterized in that Determining whether the touch signal is valid based on the corrected capacitance change includes: Retrieving the duration consumed by the detection process from the database to obtain a first duration; Calculating a capacitance change rate of the touch capacitance according to the corrected capacitance change amount and the first duration, and determining the capacitance change rate as a touch effectiveness score; When the touch validity score is greater than the fourth threshold and less than the fifth threshold, the touch signal is determined to be a valid signal; when the touch validity score is greater than or equal to the fifth threshold or less than or equal to the fourth threshold, the touch signal is determined to be an invalid signal.
5. The method according to claim 4, characterized in that Before retrieving the initial ambient temperature and initial ambient humidity of the detection process from the database to obtain the second temperature and the second humidity, and retrieving the final ambient temperature and final ambient humidity of the detection process from the database to obtain the third temperature and the third humidity, the method further includes: an accumulation step, initializing the number of detections, and when the capacitance change is greater than a second threshold, recording the ambient temperature and the ambient humidity, obtaining the second temperature and the second humidity, and accumulating the number of detections; an initialization step, resetting the number of detection times when the capacitance change is less than or equal to the second threshold; Repeat the accumulation step or the initialization step at least once in sequence until the capacitance change is greater than a third threshold, record the ambient temperature and the ambient humidity at the current moment, and obtain the third temperature and the third humidity; storing the second temperature, the second humidity, the third temperature and the third humidity in the database; Before retrieving the duration consumed by the detection process from the database to obtain the first duration, the method further includes: Obtaining the number of times the accumulation step is continuously repeated to obtain a target number, and determining the first duration based on the target number and a preset period; The first duration is stored in the database.
6. The method according to claim 5, characterized in that Before determining that the touch signal is a valid signal or determining that the touch signal is an invalid signal, the method further includes: Acquire a second duration and a third duration, wherein the second duration is the minimum duration consumed for the capacitance change to reach the third threshold when the touch signal is valid, and the third duration is the maximum duration consumed for the capacitance change to reach the third threshold when the touch signal is valid; Calculating a ratio of the modified capacitance change to the second time length to obtain the fifth threshold value; The ratio of the modified capacitance change to the third time length is calculated to obtain the fourth threshold value.
7. The method according to claim 6, characterized in that Get the second duration and the third duration, including: Acquire a historical touch record of the touch device, wherein the number of samples of the touch signal included in the historical touch record is greater than or equal to a sixth threshold; Traversing the historical touch records, extracting the duration from when the capacitance change is greater than the second threshold to when the capacitance change is greater than the third threshold in each of the samples, to obtain a plurality of fourth durations; The minimum value of the fourth duration is determined as the second duration, and the maximum value of the fourth duration is determined as the third duration.
8. A touch detection device based on temperature and humidity, characterized in that: The device comprises: A first acquisition unit, used to acquire the ambient temperature and the ambient humidity of the environment where the touch device is located, and obtain a first temperature and a first humidity; a first control unit, configured to control the touch control device to perform periodic detection of temperature and humidity when the first temperature and / or the first humidity is greater than a corresponding first threshold; a first determining unit, configured to correct a capacitance variation of the touch capacitor according to changes in temperature and humidity during a detection process, and determine whether a touch signal is valid based on the corrected capacitance variation, so as to eliminate the influence of environmental factors on the touch capacitor; The second control unit is used to control the touch device to perform a corresponding action according to the touch signal when the touch signal is valid.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. A touch device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.
Citation Information
Patent Citations
Key touch control method and device and electronic equipment
CN114567313A
Touch key control method, controller and clothes processing equipment
CN117071243A
Cited By
Screen control method and device, control equipment, electronic equipment and storage medium
CN121528133A