Capacitive touch screen-based ambient temperature detection method, device, apparatus and medium
By obtaining the mapping relationship between the reference capacitance value and the ambient temperature value of the electrode cross node in the capacitive touch screen, and detecting the capacitance change value, the problem of device failure under high temperature environment is solved, and low-cost and high-accuracy temperature detection is achieved.
Patent Information
- Application Number
- CN202210783059.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2042-07-05
AI Technical Summary
In high-temperature environments, the components of capacitive touch screens are prone to failure. Existing technologies that detect temperature by deploying thermistors result in complex structures, high costs, and low detection accuracy.
By obtaining the mapping relationship between the reference capacitance value and the ambient temperature value of the electrode intersection node of the capacitive touch screen, the capacitance change value is detected, the current ambient temperature is calculated, and the need to deploy additional thermistors is avoided.
It reduced costs, improved the accuracy and range of temperature detection, and protected the components of the capacitive touchscreen.
Smart Images

Figure CN117387788B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of touch screen technology, and in particular to an ambient temperature detection method, apparatus, device, and medium based on a capacitive touch screen. Background Technology
[0002] Capacitive touchscreens work by sensing the electrical current of the human body. When a person touches a capacitive touchscreen, it causes a change in capacitance at the touch point. The capacitive touchscreen determines the position of the touch point based on the location of the capacitance change it senses.
[0003] For a product with a capacitive touchscreen and display, high temperatures can easily cause internal components such as the ACF adhesive, film, and LEDs to fail. Furthermore, the heat generated by the CPU and power amplifier, combined with ambient temperature, will further exacerbate component failure, thus affecting the display's performance. Therefore, it is necessary to accurately measure the internal temperature of the display to ensure that protective measures are implemented when the temperature exceeds a set threshold.
[0004] Currently, the internal temperature of a capacitive touchscreen or display is detected by embedding additional thermistors within the screen. However, embedding the thermistors requires bonding them to the touchscreen or display, complicating the internal structure design and wiring, and increasing costs. Furthermore, thermistors can only sample temperatures within a certain distance range, resulting in low detection accuracy. Summary of the Invention
[0005] Therefore, the purpose of this invention is to provide an ambient temperature detection method, apparatus, device, and medium based on a capacitive touchscreen, which can reduce costs and improve the accuracy of ambient temperature detection.
[0006] According to a first aspect of the embodiments of this application, an ambient temperature detection method based on a capacitive touchscreen is provided, comprising the following steps: In response to the power-on reset operation of the capacitive touch screen, the reference capacitance value of each electrode intersection node on the capacitive touch screen is obtained; the electrode intersection node is the intersection position of a plurality of first touch electrodes arranged along a first direction and a plurality of second touch electrodes arranged along a second direction on the capacitive touch screen. Based on the preset mapping relationship between the reference capacitance value and the reference ambient temperature value, the reference ambient temperature value of each electrode intersection node is obtained. Detect the current capacitance value of each electrode intersection node on the capacitive touchscreen; Based on the reference capacitance value of each electrode intersection node and the corresponding current capacitance value, the capacitance change value of each electrode intersection node is obtained. The capacitance change value of each electrode intersection node is compared with a preset threshold to determine whether each electrode intersection node is touched by a hand; for electrode intersection nodes that are touched by a hand, the hand touch area is determined around the electrode intersection node, the hand touch area is removed from the entire area of the capacitive touch screen, and the current ambient temperature value of each electrode intersection node in the remaining area is detected. Based on the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between capacitance change value and ambient temperature change value, the current ambient temperature value of each electrode intersection node is obtained.
[0007] According to a second aspect of the embodiments of this application, an ambient temperature detection device based on a capacitive touchscreen is provided, comprising: A reference capacitance value acquisition module is used to acquire the reference capacitance value of each electrode intersection node on the capacitive touch screen in response to the power-on reset operation of the capacitive touch screen; the electrode intersection node is the intersection position of a plurality of first touch electrodes arranged along a first direction and a plurality of second touch electrodes arranged along a second direction on the capacitive touch screen. The reference ambient temperature value acquisition module is used to obtain the reference ambient temperature value of each electrode intersection node according to the preset mapping relationship between the reference capacitance value and the reference ambient temperature value. The current capacitance value detection module is used to detect the current capacitance value of each electrode intersection node on the capacitive touch screen; The capacitance change value acquisition module is used to obtain the capacitance change value of each electrode intersection node based on the reference capacitance value of each electrode intersection node and the corresponding current capacitance value, and to compare the capacitance change value of each electrode intersection node with a preset threshold to determine whether each electrode intersection node is touched by a hand; for electrode intersection nodes that are touched by a hand, the hand touch area is determined around the electrode intersection node, the hand touch area is removed from the entire area of the capacitive touch screen, and the current ambient temperature value of each electrode intersection node in the remaining area is detected; The current ambient temperature value acquisition module is used to obtain the current ambient temperature value of each of the electrode cross nodes based on the reference ambient temperature value of each of the electrode cross nodes, the corresponding capacitance change value, and the preset mapping relationship between capacitance change value and ambient temperature change value.
[0008] According to a third aspect of the embodiments of this application, a computer device is provided, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and executed as described in any of the preceding embodiments of the capacitive touchscreen-based ambient temperature detection method.
[0009] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, on which a computer program is stored, which, when executed by a processor, implements the ambient temperature detection method based on a capacitive touchscreen as described in any of the preceding claims.
[0010] This application embodiment obtains the reference capacitance value of each electrode intersection node on the capacitive touchscreen in response to a power-on reset operation. The electrode intersection node is the intersection position of a plurality of first touch electrodes arranged along a first direction and a plurality of second touch electrodes arranged along a second direction on the capacitive touchscreen. Based on a preset mapping relationship between the reference capacitance value and the reference ambient temperature value, the reference ambient temperature value of each electrode intersection node is obtained. The current capacitance value of each electrode intersection node on the capacitive touchscreen is detected. Based on the reference capacitance value and the corresponding current capacitance value of each electrode intersection node, the capacitance change value of each electrode intersection node is obtained. Based on the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between the capacitance change value and the ambient temperature change value, the current ambient temperature value of each electrode intersection node is obtained. Compared with the prior art, this application does not require additional thermistors, reducing costs. Simultaneously, this application can detect the ambient temperature of each electrode intersection node of the capacitive touchscreen, expanding the ambient temperature detection range and improving the accuracy of ambient temperature detection.
[0011] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application.
[0012] To better understand and implement this invention, the following detailed description is provided in conjunction with the accompanying drawings. Attached Figure Description
[0013] Figure 1 A schematic flowchart of an environmental temperature detection method based on a capacitive touchscreen provided in one embodiment of this application; Figure 2 This is a schematic diagram illustrating the working principle of a capacitive touchscreen provided in one embodiment of this application; Figure 3 A flowchart illustrating step S50 provided in one embodiment of this application; Figure 4 This is a structural block diagram of an ambient temperature detection device based on a capacitive touchscreen provided in one embodiment of this application; Figure 5 This is a schematic block diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation
[0014] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0015] It should be understood that the described embodiments are merely some, not all, of the embodiments in this application. All other embodiments obtained by those skilled in the art based on the embodiments in this application without inventive effort are within the scope of protection of this application.
[0016] The terminology used in the embodiments of this application is for the purpose of describing particular embodiments only and is not intended to limit the embodiments of this application. The singular forms “a,” “the,” and “the” used in the embodiments of this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0017] In the following description, when referring to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims. In the description of this application, it should be understood that the terms "first," "second," "third," etc., are used only to distinguish similar objects and are not necessarily used to describe a specific order or sequence, nor should they be construed as indicating or implying relative importance. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.
[0018] Furthermore, in the description of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects have an "or" relationship.
[0019] The ambient temperature detection method based on a capacitive touchscreen provided in this embodiment can be executed by an ambient temperature detection device based on a capacitive touchscreen. This device can be implemented through software and / or hardware, and can consist of two or more physical entities, or a single physical entity. The ambient temperature detection device can be any electronic device with data processing software installed, such as a computer, mobile phone, tablet, or in-vehicle electronic touch panel.
[0020] For ease of understanding, the embodiment uses an in-vehicle electronic touch panel as an example to describe the ambient temperature detection device. The in-vehicle electronic touch panel can be an integrated device that uses touch technology to control the content displayed on the screen and achieve human-computer interaction.
[0021] Generally, an in-vehicle electronic touch panel includes a touch screen, a display screen, a touch chip (hereinafter referred to as the touch IC), and a central processing unit (hereinafter referred to as the touch CPU). The CPU and the touch IC are electrically connected via a serial communication interface, and the touch IC is electrically connected to the touch screen. The display screen is used to display images, and the touch screen is covered on top of the display screen to receive user touch operations. The touch screen and the display screen can be bonded and fixed together using double-sided adhesive or optical adhesive. The touch screen can be a capacitive touch screen, a resistive touch screen, or an electromagnetic touch screen. In one embodiment, the user can perform touch operations by touching the screen with a finger or a stylus. Correspondingly, the in-vehicle electronic touch panel detects the touch position and determines a response scheme based on the display content corresponding to the touch position, and then responds to realize the touch function. For example, if the display content corresponding to the touch position is determined to be a control for a certain function, then the response scheme is to execute that function.
[0022] The following description uses a capacitive touchscreen as an example, exemplified by a vehicle-mounted electronic touch panel. A capacitive touchscreen includes a glass substrate and an electrode array disposed on the glass substrate. The electrode array includes overlapping row and column electrodes. Coupling capacitance is formed at the intersections of the row and column electrodes; these two sets of electrodes constitute the two poles of the coupling capacitance. When a finger touches the capacitive touchscreen, it affects the coupling between the two electrodes near the touch point, thereby changing the coupling capacitance between these two electrodes. To detect the coupling capacitance, the touch IC of the vehicle-mounted electronic touch panel controls the electrodes in the row direction to sequentially emit excitation signals, while all electrodes in the column direction simultaneously receive signals. The received signals are returned to the touch IC, where they are converted from analog to digital signals by the touch IC's analog-to-digital converter module. These digital signals are then sent to the CPU via a serial communication interface. The CPU can obtain the coupling capacitance values at the intersections of all row and column electrodes based on the digital signals, i.e., the coupling capacitance of the entire two-dimensional plane of the capacitive touchscreen. Based on the data of the changes in the two-dimensional coupling capacitance of the capacitive touchscreen, the coordinates of each touch point can be calculated.
[0023] Example 1 Please see Figure 1 This is a flowchart illustrating an environmental temperature detection method based on a capacitive touchscreen according to an embodiment of this application. The environmental temperature detection method based on a capacitive touchscreen provided in this embodiment includes the following steps: S10: In response to the power-on reset operation of the capacitive touch screen, obtain the reference capacitance value of each electrode intersection node on the capacitive touch screen; the electrode intersection node is the intersection position of a plurality of first touch electrodes arranged along the first direction and a plurality of second touch electrodes arranged along the second direction on the capacitive touch screen.
[0024] In this embodiment, the capacitive touchscreen is provided with a plurality of first touch electrodes arranged along a first direction and a plurality of second touch electrodes arranged along a second direction. The first and second directions intersect each other perpendicularly, forming a plurality of electrode intersection nodes at the intersection points. The first direction can be a row direction, and the second direction can be a column direction; alternatively, the first direction can be a column direction, and the second direction can be a row direction. This application does not impose any limitation. The row direction is the horizontal direction when facing the capacitive touchscreen, and the column direction is the vertical direction when facing the capacitive touchscreen.
[0025] Please see Figure 2 Taking a 5x5 capacitive touchscreen as an example, TX and RX are the pins of the touch IC package. TX is the transmitter, and RX is the receiver. For a 5x5 capacitive touchscreen, there are 5 transmitters TX and 5 receivers RX. Each transmitter TX is connected to a first touch electrode 101 arranged in the row direction, and each receiver RX is connected to a second touch electrode 102 arranged in the column direction. The 5 first touch electrodes arranged in the row direction and the 5 second touch electrodes arranged in the column direction intersect perpendicularly, forming 25 electrode intersection nodes 103 at the intersection. The signal emitted by the transmitter TX reaches each electrode intersection node through the first touch electrodes arranged in the row direction. The coupling capacitance 104 of each electrode intersection node changes when the signal is transmitted. The receiver RX receives the signal changes of each electrode intersection node through the second touch electrodes arranged in the column direction.
[0026] The reference capacitance value can be the capacitance value of each electrode intersection node detected after the capacitive touch screen is first powered on and reset, when there is no human touch.
[0027] In response to the power-on reset operation of the capacitive touch screen, the touch IC controls the five TX transmitters to send modulated AC signals one by one in sequence. All five RX receivers are in receiving mode. The modulated AC signals sent by the five TX transmitters pass through the coupling capacitor 104 of the electrode cross node, and the corresponding five RX receivers will receive a weak current change. This weak current change is converted into a reference capacitance value of each electrode cross node through the current-to-voltage conversion and analog-to-digital conversion inside the touch IC.
[0028] S20: Based on the preset mapping relationship between the reference capacitance value and the reference ambient temperature value, obtain the reference ambient temperature value of each of the electrode intersection nodes.
[0029] In this embodiment, ambient temperature refers to the surrounding temperature of the capacitive touchscreen, including the temperature of the display screen and the button lights. The display screen and button lights continuously generate heat during operation, and can be considered as a heat source. A temperature sensor, treating the capacitive touchscreen as a heat source, can detect temperature changes in the display screen and button lights.
[0030] The reference ambient temperature value is the ambient temperature value detected at each electrode intersection node after the capacitive touchscreen is first powered on and reset. The preset mapping relationship between the reference capacitance value and the reference ambient temperature value can be stored in the ROM memory of the touch IC in the interactive flat panel.
[0031] In the embodiments of this application, in the preset mapping relationship between reference capacitance value and reference ambient temperature value, one reference capacitance value corresponds to a unique reference ambient temperature value. Based on the obtained reference capacitance values of each electrode intersection node, the reference ambient temperature value of each electrode intersection node can be obtained.
[0032] S30: Detect the current capacitance value of each electrode intersection node on the capacitive touch screen.
[0033] After a capacitive touchscreen is powered on and reset, the surrounding display screen, key lights, and other components will generate heat over time, indicating a change in the ambient temperature. This change in temperature alters the dielectric constant of the capacitor, consequently affecting the capacitance of the touchscreen. Therefore, the current capacitance value at each electrode intersection point on the touchscreen can be detected.
[0034] In this embodiment, the current capacitance value of each electrode intersection node on the capacitive touchscreen can be detected in real time, or the current capacitance value of each electrode intersection node on the capacitive touchscreen can be detected according to a preset period. The detection process of the current capacitance value is the same as the detection process of the reference capacitance value, and will not be described again here.
[0035] S40: Obtain the capacitance change value of each electrode intersection node based on the reference capacitance value of each electrode intersection node and the corresponding current capacitance value.
[0036] In this embodiment, the capacitance value of each electrode intersection node is subtracted from the corresponding reference capacitance value, thus obtaining a capacitance change value equal to the number of electrode intersection nodes. These capacitance change values may be positive, negative, or 0, corresponding to an increase, a decrease, and no change in capacitance, respectively.
[0037] S50: Based on the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between capacitance change value and ambient temperature change value, obtain the current ambient temperature value of each electrode intersection node.
[0038] Since changes in ambient temperature will cause changes in the capacitance value of a capacitive touchscreen, and changes in the capacitance value of a capacitive touchscreen will also reflect changes in ambient temperature, the ambient temperature value can be obtained by measuring the capacitance value of the capacitive touchscreen, and thus the current ambient temperature value can be obtained.
[0039] Specifically, by establishing a mapping relationship between capacitance change and ambient temperature change, and after determining the reference ambient temperature and reference capacitance values, the current ambient temperature value of each electrode intersection node can be obtained based on the capacitance change and the mapping relationship between capacitance change and ambient temperature change.
[0040] In this embodiment, the preset mapping relationship between capacitance change values and ambient temperature change values includes several capacitance change values and several ambient temperature change values, with each capacitance change value corresponding to a unique ambient temperature change value. Therefore, based on the capacitance change values of each electrode intersection node obtained in step S40, the ambient temperature change value of each electrode intersection node can be obtained. Finally, by adding the reference ambient temperature value of each electrode intersection node to the corresponding ambient temperature change value, the current ambient temperature value of each electrode intersection node can be obtained.
[0041] By applying the embodiments of this application, in response to the power-on reset operation of the capacitive touchscreen, the reference capacitance value of each electrode intersection node on the capacitive touchscreen is obtained; the electrode intersection node is the intersection position of a plurality of first touch electrodes arranged along a first direction and a plurality of second touch electrodes arranged along a second direction on the capacitive touchscreen; according to a preset mapping relationship between the reference capacitance value and the reference ambient temperature value, the reference ambient temperature value of each electrode intersection node is obtained; the current capacitance value of each electrode intersection node on the capacitive touchscreen is detected; according to the reference capacitance value of each electrode intersection node and the corresponding current capacitance value, the capacitance change value of each electrode intersection node is obtained; according to the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between the capacitance change value and the ambient temperature change value, the current ambient temperature value of each electrode intersection node is obtained. Compared with the prior art, this application does not require the deployment of additional thermistors, reducing costs. At the same time, this application can perform ambient temperature detection on each electrode intersection node of the capacitive touchscreen, expanding the ambient temperature detection range and improving the accuracy of ambient temperature detection.
[0042] In an optional embodiment, step S201 is included before step S20, as follows: S201: Obtain several capacitance values corresponding to the preset electrode cross nodes of the capacitive touch screen when the capacitive touch screen is at several different ambient temperature values, and establish a mapping relationship between the reference capacitance value and the reference ambient temperature value by matching the several different ambient temperature values and the corresponding capacitance values one by one.
[0043] In this embodiment, the capacitive touchscreen is heated or cooled in a constant temperature chamber to bring it to different ambient temperature values. Since the capacitive touchscreen is placed in the constant temperature chamber, it can be assumed that the ambient temperature values of all electrode intersections are the same. Therefore, the change in capacitance value and ambient temperature value at each electrode intersection is the same. Thus, the relationship between the preset capacitance value and ambient temperature value of the electrode intersection represents the relationship of all electrode intersections. Therefore, it is not necessary to collect the ambient temperature values and corresponding capacitance values of all electrode intersections on the capacitive touchscreen. Instead, a mapping relationship between a reference capacitance value and a reference ambient temperature value can be established by collecting the preset ambient temperature values and corresponding capacitance values of the electrode intersections.
[0044] The preset electrode cross node is one or more electrode cross nodes of the capacitive touchscreen. The preset electrode cross node can be a series of pre-set electrode cross nodes or a series of randomly selected electrode cross nodes.
[0045] A power-on reset operation is performed on the capacitive touchscreen to obtain the capacitance values of the preset electrode cross nodes of the capacitive touchscreen under different ambient temperatures, thereby automatically and quickly establishing a mapping relationship between the reference capacitance value and the reference ambient temperature value. Specifically, the mapping relationship is represented by a mapping table as follows: (T0, C00), (T1, C01), (T2, C02), ..., (Tn, C0n).
[0046] In an optional embodiment, after step S40, steps S401 to S404 are included, as follows: S401: Compare the capacitance change value of each electrode intersection node with a preset threshold to obtain the comparison result.
[0047] Because the capacitance change at electrode intersections caused by human touch and the capacitance change caused by ambient temperature changes are not within the same range—for example, the capacitance change caused by human touch is typically more than three times that caused by ambient temperature changes—it is necessary to determine whether a human hand is touching the capacitive touchscreen to avoid human touch affecting the capacitance change at electrode intersections.
[0048] The preset threshold can be the capacitance change value of multiple electrode intersection nodes when a human hand touches the object, with the largest capacitance change value as the preset threshold, or it can be the average capacitance change value of multiple electrode intersection nodes, with the average value as the preset threshold.
[0049] S402: If the comparison result indicates that there are a preset number of electrode cross nodes whose capacitance change values are greater than the preset threshold, the electrode cross nodes whose capacitance change values are greater than the preset threshold are determined as target electrode cross nodes. The preset quantity can be set when the device with the capacitive touch screen is started. The preset quantity can be a certain proportion of the number of all electrode intersection nodes on the capacitive touch screen, or it can be a fixed value, such as 10 to 15.
[0050] S403: Determine the touch area based on the target electrode intersection node; obtain the capacitance change value and the corresponding reference ambient temperature value of each electrode intersection node outside the touch area; obtain the current ambient temperature value of each electrode intersection node outside the touch area based on the capacitance change value and the corresponding reference ambient temperature value of each electrode intersection node outside the touch area.
[0051] When a human touches a capacitive touchscreen, the touch area is generally the area of contact between the human finger and the capacitive touchscreen. Therefore, the touch area will cover one or more electrode intersection nodes.
[0052] In this embodiment, a geometric region can be defined as the touch area, with the target electrode intersection node as the geometric center. The geometric region can be a rectangular region, a square region, or a circular region. If there are other target electrode intersection nodes at the boundary of the geometric region, other geometric regions are further defined with these other target electrode intersection nodes as the geometric centers, until there are no target electrode intersection nodes at the boundary of the geometric region. The defined one or more geometric regions are then merged to form the final touch area.
[0053] S404: If the comparison result indicates that the capacitance change value of each electrode intersection node is less than the preset threshold, the current ambient temperature value of each electrode intersection node is obtained based on the capacitance change value of each electrode intersection node and the corresponding reference ambient temperature value.
[0054] In this embodiment, the presence of a human hand at each electrode intersection node is determined by comparing the capacitance change value of each electrode intersection node with a preset threshold. For electrode intersection nodes where a human hand is present, a human hand-touched area is defined around the electrode intersection node, and this human hand-touched area is removed from the entire area of the capacitive touchscreen. The current ambient temperature value of each electrode intersection node in the remaining area is then detected, thereby improving the accuracy of ambient temperature detection.
[0055] In an optional embodiment, the step of determining the touch area based on the target electrode intersection node includes steps S405-S407, as follows: S405: Taking the target electrode intersection node as the center, extend a first distance in both the positive and negative directions of the first direction to obtain two first electrode intersection nodes; extend a second distance in both the positive and negative directions of the second direction to obtain two second electrode intersection nodes.
[0056] In this embodiment of the application, taking the first direction as the row direction and the second direction as the column direction as an example, the positive and negative directions of the first direction are the left and right sides of the row direction, and the positive and negative directions of the second direction are the up and down sides of the column direction. The first distance and the second distance are both twice the spacing distance of the electrode intersection nodes.
[0057] S406: Extend the first electrode intersection node and the second electrode intersection node in the second direction and the first direction respectively to obtain four third electrode intersection nodes.
[0058] S407: The rectangular area constructed using the four intersection nodes of the third electrodes as vertices will be used as the touch area.
[0059] In this embodiment, for a target electrode intersection node that is touched by a human hand, two electrode intersection nodes are extended outward along the row and column directions, with the target electrode intersection node as the center, to form a rectangular area of size 5*5. The rectangular area is defined as the touch area of the human hand at the target electrode intersection node, so that the human hand touch area on the entire capacitive touch screen can be automatically and quickly determined.
[0060] In an optional embodiment, please refer to Figure 3 The preset mapping relationship between the capacitance change value and the ambient temperature change value includes a mapping ratio coefficient. Step S50 includes S501~S502, as follows: S501: Multiply the capacitance change value of each electrode intersection node by the mapping ratio coefficient to obtain the ambient temperature change value of each electrode intersection node. S502: The sum of the reference ambient temperature value of each electrode intersection node and the ambient temperature change value of each electrode intersection node is taken as the current ambient temperature value of each electrode intersection node.
[0061] In this embodiment, the mapping ratio can be the ratio of the change in ambient temperature to the corresponding change in capacitance, and the specific calculation formula is as follows:
[0062] in, This is the current ambient temperature value. This is the reference ambient temperature value, and k is the mapping scaling factor. It is the capacitance change value, which allows for the automatic and quick calculation of the current ambient temperature value at each electrode intersection node. In an optional embodiment, before step S50, steps S101 to S103 are included, as follows: S101: Obtain several capacitance values corresponding to the preset electrode cross nodes of the capacitive touch screen when the capacitive touch screen is at several different ambient temperature values.
[0063] In this embodiment, the capacitive touchscreen is heated or cooled in a constant temperature chamber to expose it to several different ambient temperatures. At this temperature, the ambient temperatures at each electrode intersection point are essentially the same. Therefore, instead of collecting the capacitance values of all electrode intersection points on the touchscreen, only a few capacitance values corresponding to preset electrode intersection points can be collected, thereby improving data acquisition efficiency.
[0064] S102: Perform linear fitting on the several different ambient temperature values and their corresponding capacitance values to obtain the slope parameter of the change of ambient temperature value with capacitance value.
[0065] Linear fitting is a method of finding the best-fitting straight line for two or more sets of data using the least squares approach. It is used to handle dependent variables that have a linear relationship with the independent variables. After collecting data multiple times, it was found that changes in ambient temperature cause changes in capacitance, and that capacitance changes linearly with ambient temperature. Therefore, linear fitting can be performed on several ambient temperature values and their corresponding capacitance values to obtain the slope parameter of the change in ambient temperature value with capacitance value.
[0066] S103: Using the slope parameter as a mapping proportionality coefficient, obtain the mapping relationship between the capacitance change value and the ambient temperature change value.
[0067] In this embodiment of the application, by linearly fitting several ambient temperature values and corresponding capacitance values of a preset electrode intersection node, the mapping relationship between capacitance change value and ambient temperature change value can be obtained automatically and quickly.
[0068] In an optional embodiment, after the step of detecting the current capacitance value of each of the electrode intersection nodes on the capacitive touchscreen, step S301 is included, as follows: S301: Periodically detect the current capacitance value of each electrode intersection node on the capacitive touch screen; The step of obtaining the current ambient temperature value of each of the electrode intersection nodes includes step S503, which is as follows: S503: After obtaining the current ambient temperature value of each electrode cross node based on the current capacitance value detected in each cycle, if there is a preset number of electrode cross nodes whose current ambient temperature value is greater than a preset ambient temperature threshold, a preset prompt operation is executed.
[0069] In this embodiment, the current capacitance value of each electrode intersection node on the capacitive touch screen can be detected every 0.5s or 1s, thereby periodically obtaining the current ambient temperature value of each electrode intersection node.
[0070] Preset prompts can include issuing alarm messages to allow users to adjust the display's operating status. For example, this could involve reducing display brightness, stopping the display, or displaying a message indicating that the display temperature is too high. This timely protection of the display extends its lifespan.
[0071] Example 2 The following are embodiments of the apparatus of this application, which can be used to execute the method described in Embodiment 1 of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the method described in Embodiment 1 of this application.
[0072] Please see Figure 4 This document illustrates a structural schematic diagram of an ambient temperature detection device based on a capacitive touchscreen provided in an embodiment of this application. The ambient temperature detection device 7 based on a capacitive touchscreen provided in this embodiment includes: The reference capacitance value acquisition module 71 is used to acquire the reference capacitance value of each electrode intersection node on the capacitive touch screen in response to the power-on reset operation of the capacitive touch screen; the electrode intersection node is the intersection position of a plurality of first touch electrodes arranged along the first direction and a plurality of second touch electrodes arranged along the second direction on the capacitive touch screen. The reference ambient temperature value acquisition module 72 is used to obtain the reference ambient temperature value of each electrode intersection node according to the preset mapping relationship between the reference capacitance value and the reference ambient temperature value. The current capacitance value detection module 73 is used to detect the current capacitance value of each electrode intersection node on the capacitive touch screen; The capacitance change value acquisition module 74 is used to obtain the capacitance change value of each electrode intersection node based on the reference capacitance value of each electrode intersection node and the corresponding current capacitance value. The current ambient temperature value acquisition module 75 is used to obtain the current ambient temperature value of each electrode intersection node based on the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between capacitance change value and ambient temperature change value.
[0073] In one embodiment of this application, the ambient temperature detection device based on a capacitive touchscreen further includes: The mapping relationship establishment module is used to obtain several capacitance values corresponding to the preset electrode cross nodes of the capacitive touch screen when the capacitive touch screen is at several different ambient temperature values, and to establish a mapping relationship between the reference capacitance value and the reference ambient temperature value by matching the several different ambient temperature values and the corresponding capacitance values one by one.
[0074] In one embodiment of this application, the ambient temperature detection device based on a capacitive touchscreen further includes: The comparison result acquisition module is used to compare the capacitance change value of each electrode intersection node with a preset threshold to obtain the comparison result; The target electrode cross node determination module is used to determine the electrode cross node whose capacitance change value is greater than the preset threshold as the target electrode cross node if the comparison result indicates that there are a preset number of electrode cross nodes whose capacitance change value is greater than the preset threshold. The touch area determination module is used to determine the touch area based on the target electrode intersection node; obtain the capacitance change value and the corresponding reference ambient temperature value of each electrode intersection node outside the touch area; and obtain the current ambient temperature value of each electrode intersection node outside the touch area based on the capacitance change value and the corresponding reference ambient temperature value. The current ambient temperature value acquisition module is used to obtain the current ambient temperature value of each electrode intersection node based on the capacitance change value of each electrode intersection node and the corresponding reference ambient temperature value if the comparison result indicates that the capacitance change value of each electrode intersection node is less than the preset threshold.
[0075] In one embodiment of this application, the touch area determination module includes: The first electrode intersection node obtaining unit is used to extend a first distance in both the positive and negative directions of the first direction with the target electrode intersection node as the center to obtain two first electrode intersection nodes; and to extend a second distance in both the positive and negative directions of the second direction to obtain two second electrode intersection nodes. The third electrode intersection node obtaining unit is used to extend and intersect the first electrode intersection node and the second electrode intersection node according to the second direction and the first direction respectively to obtain four third electrode intersection nodes; The touch area acquisition unit is used to take the rectangular area constructed with the four third electrode intersection nodes as vertices as the touch area.
[0076] In one embodiment of this application, the ambient temperature detection device based on a capacitive touchscreen further includes: The capacitance value acquisition module is used to acquire several capacitance values corresponding to the preset electrode cross nodes of the capacitive touch screen when the capacitive touch screen is at several different ambient temperature values. The slope parameter acquisition module is used to linearly fit the several different ambient temperature values and their corresponding capacitance values to obtain the slope parameter of the change of ambient temperature value with capacitance value. The mapping relationship acquisition module is used to obtain the mapping relationship between the capacitance change value and the ambient temperature change value by using the slope parameter as the mapping ratio coefficient.
[0077] In one embodiment of this application, the current ambient temperature value acquisition module includes: An ambient temperature change value acquisition unit is used to multiply the capacitance change value of each of the electrode intersection nodes by the mapping ratio coefficient to obtain the ambient temperature change value of each of the electrode intersection nodes. The current ambient temperature value acquisition unit is used to obtain the sum of the reference ambient temperature value of each electrode intersection node and the ambient temperature change value of each electrode intersection node as the current ambient temperature value of each electrode intersection node.
[0078] By applying the embodiments of this application, in response to the power-on reset operation of the capacitive touchscreen, the reference capacitance value of each electrode intersection node on the capacitive touchscreen is obtained; the electrode intersection node is the intersection position of a plurality of first touch electrodes arranged along a first direction and a plurality of second touch electrodes arranged along a second direction on the capacitive touchscreen; according to a preset mapping relationship between the reference capacitance value and the reference ambient temperature value, the reference ambient temperature value of each electrode intersection node is obtained; the current capacitance value of each electrode intersection node on the capacitive touchscreen is detected; according to the reference capacitance value of each electrode intersection node and the corresponding current capacitance value, the capacitance change value of each electrode intersection node is obtained; according to the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between the capacitance change value and the ambient temperature change value, the current ambient temperature value of each electrode intersection node is obtained. Compared with the prior art, this application does not require the deployment of additional thermistors, reducing costs. At the same time, this application can perform ambient temperature detection on each electrode intersection node of the capacitive touchscreen, expanding the ambient temperature detection range and improving the accuracy of ambient temperature detection.
[0079] Example 3 The following are embodiments of the device described in this application, which can be used to execute the method described in Embodiment 1 of this application. For details not disclosed in the embodiments of the device described in this application, please refer to the method described in Embodiment 1 of this application.
[0080] Please see Figure 5 This application also provides an electronic device 300, which may specifically be a computer, mobile phone, tablet computer, interactive flat panel, etc. In an exemplary embodiment of this application, the electronic device 300 is an interactive flat panel, which may include: at least one processor 301, at least one memory 302, at least one display, at least one network interface 303, user interface 304, and at least one communication bus 305.
[0081] The user interface 304 is primarily used to provide an input interface for the user and to acquire user input data. Optionally, the user interface may also include a standard wired interface or a wireless interface.
[0082] The network interface 303 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface).
[0083] The communication bus 305 is used to enable communication between these components.
[0084] The processor 301 may include one or more processing cores. The processor connects to various parts of the electronic device using various interfaces and lines, and performs various functions and processes data by running or executing instructions, programs, code sets, or instruction sets stored in memory, and by calling data stored in memory. Optionally, the processor may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). The processor may integrate one or a combination of several of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the content required for display; and the modem handles wireless communication. It is understood that the modem may also be implemented as a separate chip without being integrated into the processor.
[0085] The memory 302 may include random access memory (RAM) or read-only memory. Optionally, the memory may include a non-transitory computer-readable storage medium. The memory can be used to store instructions, programs, code, code sets, or instruction sets. The memory may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as touch function, sound playback function, image playback function, etc.), instructions for implementing the above-described method embodiments, etc.; the data storage area may store data involved in the above-described method embodiments, etc. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor. As a computer storage medium, the memory may include an operating system, a network communication module, a user interface module, and operating applications.
[0086] The processor can be used to call the application program for video resolution adjustment method stored in the memory, and specifically execute the method steps of Embodiment 1 shown above. For the specific execution process, please refer to the detailed description shown in Embodiment 1, which will not be repeated here.
[0087] Example 4 This application also provides a computer-readable storage medium storing a computer program thereon, the instructions of which are adapted to be loaded by a processor and executed by the method steps of Embodiment 1 shown above. The specific execution process can be found in the detailed description of the embodiments, and will not be repeated here. The device containing the storage medium can be an electronic device such as a personal computer, laptop computer, smartphone, or tablet computer.
[0088] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The components described as separate parts may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this application according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0089] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0090] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function selected in one or more boxes.
[0091] These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps for the selected function in one or more boxes.
[0092] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0093] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0094] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0095] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0096] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. An ambient temperature detection method based on a capacitive touchscreen, characterized in that, Includes the following steps: In response to the power-on reset operation of the capacitive touch screen, the reference capacitance value of each electrode intersection node on the capacitive touch screen is obtained; the electrode intersection node is the intersection position of a plurality of first touch electrodes arranged along a first direction and a plurality of second touch electrodes arranged along a second direction on the capacitive touch screen. Based on the preset mapping relationship between the reference capacitance value and the reference ambient temperature value, the reference ambient temperature value of each electrode intersection node is obtained. Detect the current capacitance value of each electrode intersection node on the capacitive touchscreen; Based on the reference capacitance value of each electrode intersection node and the corresponding current capacitance value, the capacitance change value of each electrode intersection node is obtained. The capacitance change value of each electrode intersection is compared with a preset threshold to determine whether a human hand has touched each electrode intersection. For electrode intersections where there is hand touch, the hand touch area is determined around the electrode intersection, the hand touch area is removed from the entire area of the capacitive touch screen, and the current ambient temperature value of each electrode intersection in the remaining area is detected. Based on the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between capacitance change value and ambient temperature change value, the current ambient temperature value of each electrode intersection node is obtained.
2. The ambient temperature detection method based on a capacitive touchscreen according to claim 1, characterized in that: The preset mapping relationship between the capacitance change value and the ambient temperature change value includes a mapping ratio coefficient; the step of obtaining the current ambient temperature value of each electrode intersection node based on the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between the capacitance change value and the ambient temperature change value includes: The change in capacitance at each electrode intersection node is multiplied by the mapping ratio coefficient to obtain the change in ambient temperature at each electrode intersection node. The sum of the reference ambient temperature value of each electrode intersection node and the ambient temperature change value of each electrode intersection node is taken as the current ambient temperature value of each electrode intersection node.
3. The ambient temperature detection method based on a capacitive touchscreen according to claim 2, characterized in that: Before the step of obtaining the current ambient temperature value of each electrode intersection node based on the reference ambient temperature value of each electrode intersection node, the corresponding capacitance change value, and the preset mapping relationship between capacitance change value and ambient temperature change value, the following steps are included: Acquire several capacitance values corresponding to the preset electrode intersection nodes of the capacitive touchscreen when the capacitive touchscreen is at several different ambient temperature values; By performing linear fitting on the several different ambient temperature values and their corresponding capacitance values, the slope parameter of the change of ambient temperature value with capacitance value is obtained. The slope parameter is used as a mapping proportionality coefficient to obtain the mapping relationship between the capacitance change value and the ambient temperature change value.
4. The ambient temperature detection method based on a capacitive touchscreen according to claim 1, characterized in that: Before the step of obtaining the reference ambient temperature value of each electrode intersection node based on the preset mapping relationship between the reference capacitance value and the reference ambient temperature value, the following steps are included: When the capacitive touchscreen is at several different ambient temperature values, several capacitance values corresponding to the preset electrode intersection nodes of the capacitive touchscreen are obtained. The several different ambient temperature values and their corresponding capacitance values are matched one-to-one to establish a mapping relationship between the reference capacitance value and the reference ambient temperature value.
5. The ambient temperature detection method based on a capacitive touchscreen according to any one of claims 1 to 4, characterized in that: After the step of obtaining the capacitance change value of each electrode intersection node based on the reference capacitance value of each electrode intersection node and the corresponding current capacitance value, the method further includes: The capacitance change value of each electrode intersection node is compared with a preset threshold to obtain the comparison result; If the comparison result indicates that there are a preset number of electrode cross nodes whose capacitance change values are greater than the preset threshold, the electrode cross nodes whose capacitance change values are greater than the preset threshold are determined as target electrode cross nodes. Based on the target electrode intersection node, determine the touch area; obtain the capacitance change value and the corresponding reference ambient temperature value of each electrode intersection node outside the touch area; based on the capacitance change value and the corresponding reference ambient temperature value of each electrode intersection node outside the touch area, obtain the current ambient temperature value of each electrode intersection node outside the touch area. If the comparison result indicates that the capacitance change value of each electrode intersection node is less than the preset threshold, the current ambient temperature value of each electrode intersection node is obtained based on the capacitance change value of each electrode intersection node and the corresponding reference ambient temperature value.
6. The ambient temperature detection method based on a capacitive touchscreen according to claim 5, characterized in that: The step of determining the touch area based on the target electrode intersection node includes: Centered on the target electrode intersection node, extend a first distance in both the positive and negative directions of the first direction to obtain two first electrode intersection nodes; extend a second distance in both the positive and negative directions of the second direction to obtain two second electrode intersection nodes. The first electrode intersection node and the second electrode intersection node are extended and intersected in the second direction and the first direction, respectively, to obtain four third electrode intersection nodes; The rectangular area constructed using the four intersection nodes of the third electrode as vertices will be used as the touch area.
7. The ambient temperature detection method based on a capacitive touchscreen according to any one of claims 1 to 4, characterized in that: The step of detecting the current capacitance value of each electrode intersection node on the capacitive touchscreen includes: The current capacitance value of each electrode intersection node on the capacitive touch screen is periodically detected; The step of obtaining the current ambient temperature value of each of the electrode intersection nodes includes: After obtaining the current ambient temperature value of each electrode intersection node based on the current capacitance value detected in each cycle, if the current ambient temperature value of a preset number of electrode intersection nodes is greater than a preset ambient temperature threshold, a preset prompt operation is executed.
8. An ambient temperature detection device based on a capacitive touchscreen, characterized in that, include: The reference capacitance value acquisition module is used to acquire the reference capacitance value of each electrode intersection node on the capacitive touch screen in response to the power-on reset operation of the capacitive touch screen. The electrode intersection point is the intersection position of a plurality of first touch electrodes arranged along the first direction and a plurality of second touch electrodes arranged along the second direction on the capacitive touch screen. The reference ambient temperature value acquisition module is used to obtain the reference ambient temperature value of each electrode intersection node according to the preset mapping relationship between the reference capacitance value and the reference ambient temperature value. The current capacitance value detection module is used to detect the current capacitance value of each electrode intersection node on the capacitive touch screen; The capacitance change value acquisition module is used to obtain the capacitance change value of each electrode intersection node based on the reference capacitance value of each electrode intersection node and the corresponding current capacitance value, and to compare the capacitance change value of each electrode intersection node with a preset threshold to determine whether each electrode intersection node has been touched by a human hand. For electrode intersections where there is hand touch, the hand touch area is determined around the electrode intersection, the hand touch area is removed from the entire area of the capacitive touch screen, and the current ambient temperature value of each electrode intersection in the remaining area is detected. The current ambient temperature value acquisition module is used to obtain the current ambient temperature value of each of the electrode cross nodes based on the reference ambient temperature value of each of the electrode cross nodes, the corresponding capacitance change value, and the preset mapping relationship between capacitance change value and ambient temperature change value.
9. A computer device, comprising: A processor, a memory, and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Touch detection circuit, electronic device, and method for detecting environment temperature of touchscreen
CN110337629A
Touch screen temperature detection method, chip and touch-control device
WO2026026051A1