Temperature detection method, device and equipment of touch screen and storage medium

By obtaining the capacitance parameters of the target frame, the current temperature mode of the touch screen is determined, which solves the problem of low temperature detection accuracy of the touch screen under the influence of the entire machine temperature, and achieves higher detection accuracy.

CN120213258APending Publication Date: 2025-06-27GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311833703.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-27
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In the prior art, the temperature of the entire machine of the electronic device is greatly affected by other components, resulting in a low temperature detection accuracy of the touch screen.

Method used

By obtaining the capacitance parameters of the target frame, determine the current temperature mode of the touch screen to avoid the influence of the entire machine temperature.

Benefits of technology

The detection accuracy of touch screen temperature is improved and the impact of other components on touch screen temperature is overcome.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120213258A_ABST
    Figure CN120213258A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a temperature detection method and device for a touch screen, equipment and a storage medium. The temperature detection method for the touch screen can comprise the steps that capacitance parameters of a target frame are obtained; wherein the target frame comprises the current frame and / or continuous multiple frames before the current frame; determining a current temperature mode of the touch screen according to the capacitance parameter of the target frame; wherein the current temperature mode is used for representing the current temperature of the touch screen. By implementing the method, the detection precision of the temperature of the touch screen can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of electronic devices, and in particular, to a method, device, equipment, and storage medium for temperature detection of a touch screen. Background Art

[0002] In practice, it is found that in high-temperature or low-temperature environments, the touch screen of an electronic device often has problems such as decreased sensitivity and slow response. Detecting the temperature of the touch screen of an electronic device can help manufacturers or users understand the performance of the touch screen at different temperatures, so that manufacturers or users can better select and use electronic devices.

[0003] Currently, the method of detecting the temperature of the touch screen of an electronic device is usually to use a temperature sensor to detect the overall temperature of the electronic device and use the overall temperature as the temperature of the touch screen. In practice, it is found that the overall temperature of the electronic device is usually also affected by the temperatures of other components such as the battery and motherboard of the electronic device, resulting in a large deviation between the actual temperature of the touch screen and the overall temperature. Summary of the Invention

[0004] Embodiments of this application provide a method, device, equipment, and storage medium for temperature detection of a touch screen, which can improve the detection accuracy of the touch screen temperature.

[0005] In a first aspect of the embodiments of this application, a method for temperature detection of a touch screen is provided. The method includes:

[0006] Obtain the capacitance parameter of a target frame; wherein, the target frame includes the current frame and / or multiple consecutive frames before the current frame;

[0007] Determine the current temperature mode of the touch screen according to the capacitance parameter of the target frame; wherein, the current temperature mode is used to characterize the level of the current temperature of the touch screen.

[0008] In a second aspect of the embodiments of this application, a device for temperature detection of a touch screen is provided, including:

[0009] A capacitance parameter acquisition unit, configured to obtain the capacitance parameter of a target frame; wherein, the target frame includes the current frame and / or multiple consecutive frames before the current frame;

[0010] A temperature mode determination unit, configured to determine the current temperature mode of the touch screen according to the capacitance parameter of the target frame; wherein, the current temperature mode is used to characterize the level of the current temperature of the touch screen.

[0011] In a third aspect of the embodiments of this application, an electronic device is provided, including:

[0012] A memory storing executable program code;

[0013] and a processor coupled to the memory;

[0014] The processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method described in the first aspect of the embodiments of the present application.

[0015] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, on which executable program code is stored. When the executable program code is executed by a processor, the method described in the first aspect of the embodiments of the present application is implemented.

[0016] The fifth aspect of the embodiments of the present application discloses a computer program product. When the computer program product runs on a computer, the computer is caused to execute the method described in the first aspect of the embodiments of the present application.

[0017] The sixth aspect of the embodiments of the present application discloses an application publishing platform, which is used to publish a computer program product. When the computer program product runs on a computer, the computer is caused to execute the method described in the first aspect of the embodiments of the present application.

[0018] As can be seen from the above technical solutions, the embodiments of the present application have the following advantages:

[0019] In the embodiments of the present application, capacitance parameters of a target frame are obtained; wherein, the target frame includes the current frame and / or multiple consecutive frames before the current frame; according to the capacitance parameters of the target frame, a current temperature mode of the touch screen is determined; wherein, the current temperature mode is used to characterize the level of the current temperature of the touch screen.

[0020] By implementing this method, the current temperature mode of the touch screen is determined according to the capacitance parameters of the target frame, overcoming the influence of other components of the electronic device on the temperature of the touch screen, and thus facilitating the improvement of the detection accuracy of the temperature of the touch screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments and the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained according to these drawings.

[0022] Figure 1 is a schematic diagram of a scenario of the temperature detection method of the touch screen disclosed in the embodiments of the present application;

[0023] Figure 2 is a flowchart of the temperature detection method of the touch screen disclosed in the embodiments of the present application;

[0024] Figure 3It is a diagram showing the relationship between the mutual capacitance value of any channel node disclosed in the embodiments of the present application and the temperature of the touch screen;

[0025] Figure 4 It is another flowchart of the temperature detection method for the touch screen disclosed in the embodiments of the present application;

[0026] Figure 5 It is yet another flowchart of the temperature detection method for the touch screen disclosed in the embodiments of the present application;

[0027] Figure 6 It is yet another flowchart of the temperature detection method for the touch screen disclosed in the embodiments of the present application;

[0028] Figure 7 It is yet another flowchart of the temperature detection method for the touch screen disclosed in the embodiments of the present application;

[0029] Figure 8 It is a structural diagram of a temperature detection device for the touch screen disclosed in the embodiments of the present application;

[0030] Figure 9 It is a structural diagram of an electronic device disclosed in the embodiments of the present application. Detailed implementation manners

[0031] The embodiments of the present application provide a temperature detection method, device, equipment and storage medium for a touch screen, which can improve the detection accuracy of the touch screen temperature.

[0032] In order to enable those skilled in the art to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all should belong to the scope protected by the present application.

[0033] It should be noted that in the present application, words such as "exemplarily" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplarily" or "for example" in the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, the use of words such as "exemplarily" or "for example" is intended to present relevant concepts in a specific manner.

[0034] "At least one" means one or more, and "a plurality" means two or more. "And / or" describes the relationship between associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or a similar expression refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c can represent: a, or b, or c, or a and b, or a and c, or b and c, or a, b, and c, where a, b, and c can be single or multiple.

[0035] Please refer to Figure 1 , Figure 1 which is a scenario diagram of the temperature detection method for the touch screen disclosed in the embodiments of the present application. As Figure 1 shown in the scenario diagram, it includes an electronic device 10.

[0036] Among them, the electronic device 10 may include general handheld screen electronic devices, such as mobile phones, smart phones, portable terminals, terminals, personal digital assistants (PDAs), portable multimedia player (PMP) devices, laptop computers, notebooks, wireless broadband (Wibro) terminals, tablet computers (PCs), smart PCs, point-of-sale (POS) terminals, and in-vehicle computers, etc.

[0037] The electronic device 10 may also include a wearable device. A wearable device is a portable electronic device that can be directly worn on the user's body or integrated into the user's clothes or accessories. A wearable device is not just a hardware device, but can also achieve powerful intelligent functions through software support, data interaction, and cloud server interaction, such as computing functions, positioning functions, and alarm functions, and can also be connected to mobile phones and various terminals. Wearable devices may include, but are not limited to, watch-type devices supported by the wrist (such as watches, wristbands, etc.), shoes-type devices supported by the feet (such as shoes, socks, or other products worn on the legs), glass-type devices supported by the head (such as glasses, helmets, headbands, etc.), and smart clothing, schoolbags, crutches, accessories, and other non-mainstream product forms.

[0038] In practice, it is found that in a high-temperature environment or a low-temperature environment, the touch screen of the electronic device 10 often has problems such as decreased sensitivity and slow response. Therefore, detecting the temperature of the touch screen of the electronic device 10 can help manufacturers or users understand the performance of the touch screen of the electronic device 10 at different temperatures, so that manufacturers or users can better select and use the electronic device 10.

[0039] Currently, the common way to detect the temperature of the touch screen of the electronic device 10 is to use a temperature sensor to detect the overall temperature of the electronic device 10 and regard the overall temperature as the temperature of the touch screen. In practice, it is found that the overall temperature of the electronic device is usually also affected by the temperatures of other components such as the battery and motherboard of the electronic device 10, resulting in a large deviation between the overall temperature and the actual temperature of the touch screen.

[0040] In the technical solution of this application, the current temperature mode of the touch screen can be determined according to the capacitance parameters of the target frame, which overcomes the influence of other components of the electronic device 10 on the touch screen temperature, and thus is beneficial to improving the detection accuracy of the touch screen temperature.

[0041] Among them, the touch screen of the electronic device 10 in the technical solution of this application is a capacitive touch screen. The execution subject of the touch screen temperature detection method in the technical solution of this application can be an electronic device. The technical solution of this application will be described below in conjunction with specific embodiments.

[0042] Please refer to Figure 2 , Figure 2 which is a flowchart of a touch screen temperature detection method disclosed in an embodiment of this application. As Figure 2 shown, the touch screen temperature detection method may include the following steps:

[0043] 201. The electronic device obtains the capacitance parameters of the target frame.

[0044] In the embodiment of this application, the target frame may include the current frame and / or multiple consecutive frames before the current frame. Among them, the current frame refers to a frame collected at the current moment, and multiple consecutive frames before the current frame refer to multiple consecutive frames collected before the current moment.

[0045] Exemplarily, multiple consecutive frames before the current frame may be 50 consecutive frames before the current frame, 60 consecutive frames before the current frame, 70 consecutive frames before the current frame, 80 consecutive frames before the current frame, or 100 consecutive frames before the current frame, etc.

[0046] In some embodiments, the capacitance parameters of the target frame may include the capacitance parameters of multiple channel nodes corresponding to the target frame. Among them, the multiple channel nodes may be all or part of the channel nodes on the touch screen of the electronic device, and the embodiment of this application does not make a limitation.

[0047] In some embodiments, the display screen of the electronic device may be a mutual capacitance screen or a self - capacitance screen, and the embodiments of the present application do not make any limitations in this regard.

[0048] When the display screen of the electronic device is a mutual capacitance screen, the temperature of the touch screen may be related to the mutual capacitance value of the channel nodes. Therefore, the capacitance parameters of the target frame may include the mutual capacitance value and / or the mutual capacitance difference of the target frame.

[0049] When the display screen of the electronic device is a self - capacitance screen, the temperature of the touch screen may be related to the self - capacitance value of the channel nodes. Therefore, the capacitance parameters of the target frame may include the self - capacitance value and / or the self - capacitance difference of the target frame.

[0050] It should be noted that regardless of whether the touch screen of the electronic device is a mutual capacitance screen or a self - capacitance screen, the logic for determining the temperature mode of the touch screen is similar. Therefore, the following embodiments will mainly take the touch screen of the electronic device as a mutual capacitance screen as an example for illustration:

[0051] The reason why the temperature of the touch screen is related to the mutual capacitance value of the channel nodes is that a too large change in temperature usually causes a change in the dielectric constant of the medium, and the change in the dielectric constant affects the mutual capacitance value.

[0052] The specific calculation formula is as follows:

[0053] Among them, C is the mutual capacitance value, with the unit of farad (F), ξ is the dielectric constant of the medium, with the unit of farad per meter (F / m), S is the area of the electrode, with the unit of square meter (m 2 )), and d is the distance between the electrodes, with the unit of m.

[0054] The mutual capacitance value refers to the capacitance formed at the intersection of two sets of electrodes.

[0055] The mutual capacitance difference can be obtained by subtracting the mutual capacitance value from the mutual capacitance reference value. Among them, the determination method of the mutual capacitance reference value can be: after the touch screen is powered on, obtain the average mutual capacitance value of each frame of a continuous preset number of frames, and then average the average mutual capacitance values of each frame to obtain the mutual capacitance reference value.

[0056] In some embodiments, after the touch screen is powered on, it is also possible to detect whether the electronic device is in a stable state, and when the electronic device is in a stable state, obtain the average mutual capacitance value of each frame of a continuous preset number of frames. Among them, the stable state refers to the state where the touch screen of the electronic device is not in contact with any object (such as a finger, a stylus, a water droplet, etc.). By implementing this method, when the electronic device is in a stable state, calculating the mutual capacitance reference value can improve the accuracy of the mutual capacitance reference value.

[0057] Exemplarily, the above-mentioned consecutive preset number of frames can be the first 3 frames, the first 5 frames, the first 7 frames, etc. after the touch screen is powered on.

[0058] Exemplarily, for the relationship between the mutual capacitance value of any channel node and the temperature of the touch screen, reference can be made to the following Figure 3 . As Figure 3 shown, the abscissa of the coordinate axis is the temperature, and the ordinate is the mutual capacitance value. When the temperature change is in the range of 25 - 30, the mutual capacitance value is positively correlated with the temperature of the touch screen.

[0059] 202. The electronic device determines the current temperature mode of the touch screen according to the capacitance parameters of the target frame.

[0060] Among them, the current temperature mode is used to characterize the level of the current temperature of the touch screen.

[0061] The electronic device can preset multiple temperature modes, and the temperature values corresponding to different temperature modes are different.

[0062] Exemplarily, the above-mentioned multiple temperature modes can include a high-temperature mode, a low-temperature mode, and a normal-temperature mode. Among them, the temperature corresponding to the high-temperature mode is higher than the temperature corresponding to the normal-temperature mode, and the temperature corresponding to the normal-temperature mode is higher than the temperature corresponding to the low-temperature mode.

[0063] The electronic device can preset the parameter characteristics corresponding to each of the above-mentioned multiple temperature modes.

[0064] In some embodiments, the electronic device can preset a mapping relation table corresponding to the above-mentioned multiple temperature modes. This mapping relation table is used to indicate the corresponding relationship between the above-mentioned multiple temperature modes and the parameter characteristics. Among them, the mapping relation table includes the mode identifiers of the above-mentioned multiple temperature modes, and the parameter characteristics corresponding to each mode identifier. The mode identifier is used to uniquely identify a temperature mode, and the mode identifier can include but is not limited to at least one of the following: numbers, letters, and special characters.

[0065] The electronic device determines the current temperature mode of the touch screen according to the capacitance parameters of the target frame, which can include:

[0066] The electronic device determines the target parameter characteristic corresponding to the capacitance parameter of the target frame from the multiple parameter characteristics corresponding to the mapping relation table;

[0067] The electronic device determines the temperature mode corresponding to the target parameter characteristic as the current temperature mode of the touch screen.

[0068] In some embodiments, when the target frame includes the current frame, the above parameter features may include first parameter features; when the target frame includes the above-mentioned consecutive multiple frames, the above parameter features may include second parameter features. Among them, the first parameter feature is used to reflect the magnitude of the mutual capacitance value corresponding to the current frame, and the second parameter feature is used to reflect the change of the mutual capacitance value corresponding to the above-mentioned consecutive multiple frames.

[0069] In some embodiments, after step 202, the electronic device may also output the current temperature mode of the electronic device for the user to know. The ways for the electronic device to output the current temperature mode may include: outputting the current temperature mode through the display screen and / or the speaker of the electronic device.

[0070] In some embodiments, the electronic device may also send the above current temperature mode to other devices communicatively connected to the electronic device to output the above current temperature mode on other devices.

[0071] By implementing the above method, the electronic device determines the current temperature mode of the touch screen according to the current frame and / or the capacitance parameters of consecutive multiple frames before the current frame, which can overcome the influence of other components of the electronic device on the temperature of the touch screen, and thus is conducive to improving the detection accuracy of the temperature of the touch screen.

[0072] In the case where the target frame is the current frame, the temperature detection method of the touch screen can refer to the following Figure 4 Please refer to Figure 4 , Figure 4 is another flowchart of the temperature detection method of the touch screen disclosed in the embodiments of the present application. As Figure 4 shown, the temperature detection method of the touch screen may include the following steps:

[0073] 401. The electronic device acquires the capacitance parameters of the current frame.

[0074] Among them, the capacitance parameters of the current frame include the mutual capacitance values and / or mutual capacitance differences of multiple channel nodes corresponding to the current frame.

[0075] 402. The electronic device calculates the average capacitance parameter of the current frame according to the capacitance parameters of the current frame.

[0076] In some embodiments, when the electronic device calculates the average capacitance parameter of the current frame according to the capacitance parameters of the current frame, it may include:

[0077] The electronic device calculates the average mutual capacitance value of the current frame according to the mutual capacitance values of multiple channel nodes corresponding to the current frame;

[0078] and / or,

[0079] The electronic device calculates the average mutual capacitance difference of the current frame based on the mutual capacitance differences of multiple channel nodes corresponding to the current frame.

[0080] It can be understood that the average mutual capacitance value can be obtained by averaging the mutual capacitance values of each of the above-mentioned multiple channel nodes. The average mutual capacitance difference can be obtained by averaging the mutual capacitance differences of each of the above-mentioned multiple channel nodes.

[0081] 403. The electronic device determines the current temperature mode of the touch screen according to the average capacitance parameter of the current frame.

[0082] In some embodiments, the first parameter feature mentioned below step 202 may include an average capacitance parameter range.

[0083] The electronic device determines the current temperature mode of the touch screen according to the average capacitance parameter of the current frame, which may include: the electronic device determines the target average capacitance parameter range in which the average capacitance parameter of the current frame is located from multiple average capacitance parameter ranges corresponding to the mapping relation table; and the electronic device determines the temperature mode corresponding to the target average capacitance parameter range as the current temperature mode of the touch screen.

[0084] In some embodiments, the average capacitance parameter may include an average mutual capacitance value and / or an average mutual capacitance difference. Correspondingly, the average capacitance parameter range includes an average mutual capacitance value range and / or an average mutual capacitance difference range.

[0085] Exemplarily, in the case where the average capacitance parameter includes an average mutual capacitance value and the average capacitance parameter range includes an average mutual capacitance value range, the above-mentioned multiple temperature modes include a high temperature mode, a low temperature mode, and a normal temperature mode. Among them, the average mutual capacitance value range corresponding to the high temperature mode is greater than a first threshold, the average mutual capacitance value range corresponding to the normal temperature mode is greater than a second threshold and less than or equal to the first threshold, and the average mutual capacitance value range corresponding to the low temperature mode is less than or equal to the second threshold. When the average capacitance parameter of the current frame is greater than the first threshold, the high temperature mode is determined as the current temperature mode of the touch screen;; when the average capacitance parameter of the current frame is greater than the second threshold and less than or equal to the first threshold, the normal temperature mode is determined as the current temperature mode of the touch screen; when the average capacitance parameter of the current frame is less than or equal to the second threshold, the low temperature mode is determined as the current temperature mode of the touch screen.

[0086] By implementing the above method, the electronic device determines the magnitude of the mutual capacitance value of the current frame based on the capacitance parameters of the current frame, and then determines the current temperature mode of the touch screen according to the magnitude of the current frame, overcoming the influence of other components of the electronic device on the temperature of the touch screen and improving the detection accuracy of the touch screen temperature. In addition, only using the capacitance parameters of the current frame to determine the temperature mode of the touch screen can reduce the calculation amount and is beneficial to improving the detection efficiency of the touch screen temperature.

[0087] In the case where the target frame is multiple consecutive frames before the current frame, the temperature detection method of the touch screen can refer to the following Figure 5 . Please refer to Figure 5 , Figure 5 which is another flowchart of the temperature detection method of the touch screen disclosed in the embodiments of the present application. As Figure 5 shown, the temperature detection method of the touch screen can include the following steps:

[0088] 501. The electronic device obtains the capacitance parameters of each frame in multiple consecutive frames before the current frame.

[0089] Among them, the capacitance parameters of each frame in the above multiple consecutive frames may include: the mutual capacitance value and / or the mutual capacitance difference of each frame in the above multiple consecutive frames. It should be noted that for the explanation of the mutual capacitance value and / or the mutual capacitance difference of each frame, reference can be made to the explanation of the mutual capacitance value and / or the mutual capacitance difference of the current frame above, which will not be elaborated here.

[0090] 502. The electronic device determines the capacitance change characteristics of the above multiple consecutive frames according to the capacitance parameters of each frame in the above multiple consecutive frames.

[0091] In some embodiments, the capacitance change characteristics of the above multiple consecutive frames may include a linear characteristic and / or a non-linear characteristic, which are not limited in the embodiments of the present application.

[0092] In the case where the capacitance change characteristics of the above multiple consecutive frames include a linear characteristic, the electronic device determines the capacitance change characteristics of the above multiple consecutive frames according to the capacitance parameters of each frame in the above multiple consecutive frames, which may include:

[0093] The electronic device determines the average capacitance parameter of each frame according to the capacitance parameters of each frame in the above multiple consecutive frames;

[0094] The electronic device fits the target curve corresponding to the above multiple consecutive frames according to the average capacitance parameter of each frame and the acquisition time of each frame;

[0095] The electronic device obtains the trend characteristic of the target curve.

[0096] Among them, the trend characteristic can be used to characterize the trend of the curve. The trend characteristic may include but is not limited to any one of the following: an upward trend, a downward trend, and a flat trend.

[0097] In some embodiments, the electronic device fits the target curve corresponding to the above-mentioned consecutive multiple frames according to the average capacitance parameter of each frame and the acquisition time of each frame, which may include: the electronic device fits the target curve corresponding to the above-mentioned consecutive multiple frames according to a preset algorithm, the average capacitance parameter of each frame, and the acquisition time of each frame.

[0098] In some embodiments, the preset algorithm may include but is not limited to at least one of the following: linear regression, ordinary least squares regression, weighted least squares regression, gradient descent method, and maximum likelihood probability, etc.

[0099] Among them, the ordinary least squares regression algorithm is a statistical method for establishing the relationship between independent variables and dependent variables. Its basic idea is to determine the relationship between independent variables and dependent variables by minimizing the sum of squared residuals. Specifically, the ordinary least squares regression determines the relationship between independent variables and dependent variables by solving a system of linear equations, so that the error between the predicted value and the actual value is minimized.

[0100] Weighted least squares regression is a method that improves ordinary least squares regression. It takes into account the weights of the observations, making the errors of important observations more sensitive. Specifically, weighted least squares regression assigns a weight to each observation, then multiplies the weight by the sum of squared residuals, sums them to obtain the weighted sum of squared residuals, and finally determines the relationship between independent variables and dependent variables by minimizing the weighted sum of squared residuals. This method is more effective in dealing with situations where there are outliers or large differences between observations.

[0101] The gradient descent method is a commonly used method for solving optimization problems. It gradually approaches the optimal solution through continuous iteration. Specifically, the gradient descent method calculates the gradient of the objective function (i.e., the rate of change of the function at a certain point) to determine the search direction, and then iterates along this direction until the optimal solution is reached or a certain stopping condition is met. In machine learning, the gradient descent method is widely used in tasks such as training neural networks, support vector machines and other models, and optimizing loss functions. The advantage of the gradient descent method is that it is simple to understand and easy to implement.

[0102] The maximum likelihood probability is a method for estimating parameters. It determines the values of parameters based on the likelihood function of the observed data. Specifically, the maximum likelihood probability determines the estimated value of the parameter by calculating the maximum value of the likelihood function at each parameter value, so that this estimated value can maximize the probability of the observed data appearing. In statistics and machine learning, the maximum likelihood probability is widely used in tasks such as parameter estimation and model selection. Its advantage is that it can handle various types of data, including discrete and continuous data, and can also handle complex models and high-dimensional data.

[0103] When the capacitance parameter of each frame includes the mutual capacitance value of each frame, the average capacitance parameter of each frame includes the average mutual capacitance value of each frame, and the above-mentioned target curve may indicate the change of the average mutual capacitance value of the above-mentioned consecutive multiple frames.

[0104] When the capacitance parameter of each frame includes the mutual capacitance difference of each frame, the average capacitance parameter of each frame includes the average mutual capacitance difference of each frame, and the above-mentioned target curve may indicate the change of the average mutual capacitance difference of the above-mentioned consecutive multiple frames.

[0105] When the capacitance change characteristics of the above-mentioned consecutive multiple frames include non-linear characteristics, for the electronic device to determine the capacitance change characteristics of the above-mentioned consecutive multiple frames according to the capacitance parameter of each frame in the above-mentioned consecutive multiple frames, it may include:

[0106] The electronic device determines the average capacitance parameter of each frame according to the capacitance parameter of each frame in the above-mentioned consecutive multiple frames;

[0107] The electronic device determines the parameter interval corresponding to the above-mentioned consecutive multiple frames according to the average capacitance parameter of each frame.

[0108] Among them, for the electronic device to determine the parameter interval corresponding to the above-mentioned consecutive multiple frames according to the average capacitance parameter of each frame, it may include:

[0109] The electronic device determines the minimum average capacitance parameter and the maximum average capacitance parameter according to the average capacitance parameter of each frame;

[0110] The electronic device determines the parameter interval that simultaneously includes the minimum average capacitance parameter and the maximum average capacitance parameter in the preset parameter interval as the parameter interval corresponding to the above-mentioned consecutive multiple frames.

[0111] It can be understood that when the capacitance parameter of each frame includes the mutual capacitance value of each frame, the average capacitance parameter of each frame includes the average mutual capacitance value of each frame, and the parameter interval corresponding to the above-mentioned consecutive multiple frames refers to the interval where the average mutual capacitance value of the above-mentioned consecutive multiple frames is located. When the capacitance parameter of each frame includes the mutual capacitance difference of each frame, the average capacitance parameter of each frame includes the average mutual capacitance difference of each frame, and the parameter interval corresponding to the above-mentioned consecutive multiple frames refers to the interval where the average mutual capacitance difference of the above-mentioned consecutive multiple frames is located.

[0112] 503. The electronic device determines the current temperature mode of the touch screen according to the capacitance change characteristics.

[0113] Among them, the second parameter feature mentioned in step 202 may include a trend feature and / or a parameter interval.

[0114] In some embodiments, for the electronic device to determine the current temperature mode of the touch screen according to the capacitance change characteristics, it may include but is not limited to the following methods:

[0115] Method 1: When the second parameter feature is a trend feature, the electronic device obtains, from the mapping relation table, a target temperature mode corresponding to the trend feature of the target curve, and determines the target temperature mode as the current temperature mode of the touch screen.

[0116] Method 2: When the second parameter feature is a parameter interval, the electronic device obtains, from the mapping relation table, a target temperature mode corresponding to the parameter interval, and determines the target temperature mode as the current temperature mode of the touch screen.

[0117] Method 3: When the second parameter feature is a parameter interval and a trend feature, the electronic device obtains, from the mapping relation table, a target temperature mode corresponding to both the parameter interval and the trend feature of the target curve, and determines the target temperature mode as the current temperature mode of the touch screen.

[0118] Exemplarily, when the second parameter feature is a trend feature and the target curve indicates the change of the average mutual capacitance value of the above-mentioned consecutive multiple frames, the above-mentioned multiple temperature modes include a high-temperature mode, a low-temperature mode, and a normal-temperature mode. Among them, the trend feature corresponding to the high-temperature mode is an upward trend, the trend feature corresponding to the low-temperature mode is a downward trend, and the trend feature corresponding to the normal-temperature mode is a flat trend. When the trend feature of the target curve is a downward trend, the low-temperature mode is determined as the current temperature mode of the touch screen; and when the trend feature of the target curve is an upward trend, the high-temperature mode is determined as the current temperature mode of the touch screen; and when the trend feature of the target curve is a flat trend, the normal-temperature mode is determined as the current temperature mode of the touch screen.

[0119] By implementing the above method, the electronic device determines the change of the mutual capacitance value of the consecutive multiple frames based on the capacitance parameters of the consecutive multiple frames before the current frame, and then determines the current temperature mode of the touch screen according to the change, overcoming the influence of other components of the electronic device on the temperature of the touch screen and improving the detection accuracy of the temperature of the touch screen. In addition, determining the temperature mode of the touch screen according to the change of the mutual capacitance value of the consecutive multiple frames overcomes the detection accuracy problem that may exist in a single frame and further improves the detection accuracy of the temperature of the touch screen.

[0120] In the case where the target frame is the current frame and the consecutive multiple frames before the current frame, the temperature detection method of the touch screen can be referred to as follows Figure 6 . Please refer to Figure 6 , Figure 6 which is another flowchart of the temperature detection method of the touch screen disclosed in the embodiments of the present application. As Figure 6 shown, the temperature detection method of the touch screen can include the following steps:

[0121] 601. The electronic device acquires the capacitance parameters of the current frame and a series of consecutive frames before the current frame.

[0122] Among them, for the explanation of the capacitance parameters of the current frame, please refer to the description below step 401. For the explanation of the capacitance parameters of the series of consecutive frames, please refer to the description below step 501, which will not be elaborated here.

[0123] 602. The electronic device determines the capacitance change characteristics of the series of consecutive frames according to the capacitance parameters of each frame in the series of consecutive frames.

[0124] Among them, for the explanation of step 602, please refer to the description below the above step 502, which will not be elaborated here.

[0125] 603. The electronic device calculates the average capacitance parameter of the current frame according to the capacitance parameter of the current frame.

[0126] Among them, for the explanation of step 603, please refer to the description below the above step 402, which will not be elaborated here.

[0127] 604. The electronic device determines the current temperature mode of the touch screen according to the capacitance change characteristics and the average capacitance parameter of the current frame.

[0128] In some embodiments, for the electronic device to determine the current temperature mode of the touch screen according to the capacitance change characteristics and the average capacitance parameter of the current frame, it may include:

[0129] The electronic device acquires the target temperature mode that matches the capacitance change characteristics among a preset plurality of temperature modes;

[0130] The electronic device determines whether the average capacitance parameter of the current frame is within the average capacitance parameter range corresponding to the target temperature mode;

[0131] When the average capacitance parameter of the current frame is within the average capacitance parameter range corresponding to the target temperature mode, the electronic device uses the target temperature mode as the current temperature mode of the touch screen.

[0132] Among them, it should be noted that for the method by which the electronic device acquires the target temperature mode that matches the capacitance change characteristics among a preset plurality of temperature modes, please refer to the description below the above step 503, which will not be elaborated here.

[0133] Exemplarily, the above series of consecutive frames refers to 50 consecutive frames before the current frame. The capacitance parameters of the 50 consecutive frames refer to the mutual capacitance values of the 50 consecutive frames. The capacitance parameter of the current frame refers to the mutual capacitance value of the current frame. The first threshold is 10000, and the second threshold is 9000. Among them, for the touch screen temperature detection method in this example, please refer to the following Figure 7 .

[0134] Please refer to Figure 7 , Figure 7 which is another flowchart of the temperature detection method for the touch screen disclosed in the embodiments of the present application. As Figure 7 shown, the temperature detection method for the touch screen may include the following steps:

[0135] 701. The electronic device acquires the mutual capacitance values of the current frame and the 50 consecutive frames before the current frame.

[0136] 702. The electronic device determines the average mutual capacitance value of each frame according to the mutual capacitance values of each of the above 50 consecutive frames, and determines the average mutual capacitance value of the current frame according to the mutual capacitance value of the current frame.

[0137] 703. The electronic device fits the target curve corresponding to the 50 consecutive frames according to the linear regression method and the average mutual capacitance value of each of the 50 consecutive frames.

[0138] 704. The electronic device determines the trend feature of the target curve.

[0139] 705. When the trend feature of the target curve is an upward trend, the electronic device determines whether the average mutual capacitance value of the current frame is greater than 10000. If so, step 706 is executed; if not, this process ends.

[0140] 706. The electronic device determines that the current temperature mode of the touch screen is the high temperature mode.

[0141] 707. When the trend feature of the target curve is a flat trend, the electronic device determines whether the average mutual capacitance value of the current frame is greater than 9000 and less than or equal to 10000. If so, step 708 is executed; if not, this process ends.

[0142] 708. The electronic device determines that the current temperature mode of the touch screen is the normal temperature mode.

[0143] 709. When the trend feature of the target curve is a downward trend, the electronic device determines whether the average mutual capacitance value of the current frame is less than or equal to 9000. If so, step 710 is executed; if not, this process ends.

[0144] 710. The electronic device determines that the current temperature mode of the touch screen is the low temperature mode.

[0145] By implementing the above method, the electronic device determines the magnitude of the mutual capacitance value of the current frame according to the capacitance parameters of the current frame, determines the change of the mutual capacitance value of a continuous multi-frame before the current frame according to the capacitance parameters of the continuous multi-frame before the current frame, and comprehensively determines the current temperature mode of the touch screen according to the magnitude of the mutual capacitance value of the current frame and the change of the mutual capacitance value of the continuous multi-frame, providing a multi-dimensional method for determining the current temperature mode of the touch screen, overcoming the influence of other components of the electronic device on the temperature of the touch screen, and improving the detection accuracy of the touch screen temperature.

[0146] Please refer to Figure 8 , Figure 8 which is a structural diagram of a temperature detection device for a touch screen disclosed in an embodiment of the present application. As Figure 8 shown, the temperature detection device for the touch screen may include a capacitance parameter acquisition unit 801 and a temperature mode determination unit 802. Among them:

[0147] The capacitance parameter acquisition unit 801 is configured to acquire the capacitance parameters of the target frame; wherein, the target frame includes the current frame and / or a continuous multi-frame before the current frame;

[0148] The temperature mode determination unit 802 is configured to determine the current temperature mode of the touch screen according to the capacitance parameters of the target frame; wherein, the current temperature mode is used to characterize the high or low of the current temperature of the touch screen.

[0149] In some embodiments, the target frame includes a continuous multi-frame, and the manner in which the temperature mode determination unit 802 determines the current temperature mode of the touch screen according to the capacitance parameters of the target frame may specifically include:

[0150] The temperature mode determination unit 802 is configured to determine the capacitance change characteristics of the continuous multi-frame according to the capacitance parameters of each frame in the continuous multi-frame; and determine the current temperature mode of the touch screen according to the capacitance change characteristics.

[0151] In some embodiments, the target frame includes the current frame, and the manner in which the temperature mode determination unit 802 determines the current temperature mode of the touch screen according to the capacitance parameters of the target frame may specifically include:

[0152] The temperature mode determination unit 802 is configured to calculate the average capacitance parameter of the current frame according to the capacitance parameters of the current frame; and determine the current temperature mode of the touch screen according to the average capacitance parameter of the current frame.

[0153] In some embodiments, for the current frame and the continuous multi-frame, the manner in which the temperature mode determination unit 802 determines the current temperature mode of the touch screen according to the capacitance parameters of the target frame may specifically include:

[0154] A temperature mode determination unit 802, configured to determine a capacitance change characteristic of a continuous multi-frame according to a capacitance parameter of each frame in the continuous multi-frame; calculate an average capacitance parameter of the current frame according to the capacitance parameter of the current frame; and determine a current temperature mode of the touch screen according to the capacitance change characteristic and the average capacitance parameter of the current frame.

[0155] In some embodiments, the manner in which the temperature mode determination unit 802 is configured to determine a capacitance change characteristic of a continuous multi-frame according to a capacitance parameter of each frame in the continuous multi-frame may specifically include:

[0156] A temperature mode determination unit 802, configured to determine an average capacitance parameter of each frame according to a capacitance parameter of each frame in the continuous multi-frame; fit a target curve corresponding to the continuous multi-frame according to the average capacitance parameter of each frame and the acquisition time of each frame; and obtain a trend characteristic of the target curve.

[0157] In some embodiments, the manner in which the temperature mode determination unit 802 is configured to determine a capacitance change characteristic of a continuous multi-frame according to a capacitance parameter of each frame in the continuous multi-frame may specifically include:

[0158] A temperature mode determination unit 802, configured to determine an average capacitance parameter of each frame according to a capacitance parameter of each frame in the continuous multi-frame; and determine a parameter interval corresponding to the continuous multi-frame according to the average capacitance parameter of each frame.

[0159] In some embodiments, the manner in which the temperature mode determination unit 802 is configured to determine a current temperature mode of the touch screen according to the capacitance change characteristic and the average capacitance parameter of the current frame may specifically include:

[0160] A temperature mode determination unit 802, configured to obtain a target temperature mode matching the capacitance change characteristic among a plurality of preset temperature modes; determine whether the average capacitance parameter of the current frame is within an average capacitance parameter interval corresponding to the target temperature mode; and use the target temperature mode as the current temperature mode of the touch screen when the average capacitance parameter of the current frame is within the average capacitance parameter interval corresponding to the target temperature mode.

[0161] In some embodiments, the capacitance parameter includes a mutual capacitance value and / or a mutual capacitance difference.

[0162] Please refer to Figure 9 , Figure 9 which is a structural diagram of an electronic device disclosed in an embodiment of the present application. As Figure 9 shown, the electronic device may include components such as a processor 910, a memory 920, a display unit 930, an input unit 940, a sensor 950, an audio circuit 960, etc.

[0163] Among them, the processor 910 is the control center of the electronic device, connecting various parts of the entire electronic device through various interfaces and circuits. By running or executing software programs and / or modules stored in the memory 920, and by calling the data stored in the memory 920, it executes various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 910 may include one or more processing units; optionally, the processor 910 may integrate an application processor. The application processor mainly processes the operating device, user interface, application programs, etc. Of course, it may also include other processors, which are not listed one by one here.

[0164] The memory 920 can be used to store software programs and modules. The processor 910 executes various functional applications and data processing of the electronic device by running the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area. Among them, the program storage area can store the operating device, application programs required for at least one function (such as the sound playback function, image playback function, etc.); the data storage area can store the data created according to the use of the electronic device (such as audio data, phone book, etc.). In addition, the memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices.

[0165] The display unit 930 can be used to display the information input by the user or the information provided to the user, as well as various menus of the electronic device. The display unit 930 may include a display panel. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc. Further, the touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits it to the processor 910 to determine the type of touch event. Subsequently, the processor 910 provides a corresponding visual output on the display panel according to the type of touch event. Among them, the touch panel and the display panel are not Figure 9 shown above. The touch panel and the display panel can be implemented as two independent components to realize the input and input functions of the electronic device, or the touch panel and the display panel can be integrated to realize the input and output functions of the electronic device.

[0166] The input unit 940 can be used to receive input digital or character information and generate key signal inputs related to the user settings and function controls of the electronic device. Specifically, the input unit 940 can include a touch panel and other input devices. The touch panel, also known as a touch screen, can collect touch operations of the user on or near it (such as operations of the user using a finger, a stylus, or any suitable object or accessory on or near the touch panel), and drive corresponding connection devices according to a preset program. In addition, various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel. In addition to the touch panel, the input unit 940 can also include other input devices. Specifically, the other input devices can include, but are not limited to, one or more of function keys (such as volume control buttons, switch buttons, etc.), trackballs, joysticks, etc.

[0167] The electronic device may further include at least one sensor 950, such as a magnetometer, a gyroscope sensor, a motion sensor, and other sensors. Specifically, the magnetometer is used to determine the orientation of the electronic device, and the gyroscope sensor can be used to determine the motion posture of the electronic device, can be used for anti-shake during shooting, and can also be used for navigation and somatosensory game scenarios. As a kind of motion sensor, the acceleration sensor can detect the magnitude of acceleration in all directions, and can detect the magnitude and direction of gravity when stationary, and can be used for applications that identify the posture of the electronic device, such as horizontal and vertical screen switching, related games, magnetometer posture calibration, etc.; as for other sensors such as a pressure gauge, a barometer, a hygrometer, a thermometer, and an infrared sensor that the electronic device can also be configured with, they will not be elaborated here.

[0168] The audio circuit 960 can include a speaker and a microphone, and can provide an audio interface between the user and the electronic device. The audio circuit 960 can transmit the electrical signal after converting the received audio data to the speaker, and the speaker converts it into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 960 and then converted into audio data, and then the audio data is output to the processor 910 for processing, and then sent to another device such as through the video circuit, or the audio data is output to the memory 920 for further processing.

[0169] Although not shown, the electronic device may further include a power supply and a camera. Optionally, the position of the camera on the electronic device can be front-facing or rear-facing, and the embodiments of the present application do not limit this.

[0170] It can be understood that the structure schematically shown in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown, or combine certain components, or split certain components, or have different component arrangements. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0171] In an embodiment of the present application, the processor 910 further has the following functions:

[0172] Obtain the capacitance parameters of the target frame; wherein, the target frame includes the current frame and / or multiple consecutive frames before the current frame;

[0173] Determine the current temperature mode of the touch screen according to the capacitance parameters of the target frame; wherein, the current temperature mode is used to characterize the level of the current temperature of the touch screen.

[0174] In an embodiment of the present application, the target frame includes multiple consecutive frames, and the processor 910 further has the following functions:

[0175] Determine the capacitance change characteristics of multiple consecutive frames according to the capacitance parameters of each frame in the multiple consecutive frames;

[0176] Determine the current temperature mode of the touch screen according to the capacitance change characteristics.

[0177] In an embodiment of the present application, the target frame includes the current frame, and the processor 910 further has the following functions:

[0178] Calculate the average capacitance parameter of the current frame according to the capacitance parameter of the current frame;

[0179] Determine the current temperature mode of the touch screen according to the average capacitance parameter of the current frame.

[0180] In an embodiment of the present application, the target frame includes the current frame and multiple consecutive frames, and the processor 910 further has the following functions:

[0181] Determine the capacitance change characteristics of multiple consecutive frames according to the capacitance parameters of each frame in the multiple consecutive frames;

[0182] Calculate the average capacitance parameter of the current frame according to the capacitance parameter of the current frame;

[0183] Determine the current temperature mode of the touch screen according to the capacitance change characteristics and the average capacitance parameter of the current frame.

[0184] In an embodiment of the present application, the processor 910 further has the following functions:

[0185] Determine the average capacitance parameter of each frame according to the capacitance parameters of each frame in multiple consecutive frames;

[0186] Fit the target curve corresponding to multiple consecutive frames according to the average capacitance parameter of each frame and the acquisition time of each frame;

[0187] Obtain the trend characteristics of the target curve.

[0188] In an embodiment of the present application, the processor 910 further has the following functions:

[0189] Determine the average capacitance parameter of each frame according to the capacitance parameters of each frame in a series of consecutive frames;

[0190] Determine the parameter interval corresponding to a series of consecutive frames according to the average capacitance parameter of each frame.

[0191] In the embodiment of the present application, the processor 910 further has the following functions:

[0192] Obtain the target temperature mode that matches the capacitance change characteristics among a preset plurality of temperature modes;

[0193] Determine whether the average capacitance parameter of the current frame is within the average capacitance parameter interval corresponding to the target temperature mode;

[0194] When the average capacitance parameter of the current frame is within the average capacitance parameter interval corresponding to the target temperature mode, use the target temperature mode as the current temperature mode of the touch screen.

[0195] In the embodiment of the present application, the processor 910 further has the following functions:

[0196] The capacitance parameter includes a mutual capacitance value and / or a mutual capacitance difference.

[0197] The embodiment of the present application discloses a computer-readable storage medium, on which executable program code is stored. When the executable program code is executed by a processor, the method of the electronic device in the embodiment of the present application is implemented.

[0198] The embodiment of the present application discloses a computer program product. When the computer program product runs on a computer, the computer is enabled to implement the method of the electronic device in the embodiment of the present application.

[0199] The embodiment of the present application discloses an application publishing platform, which is used to publish a computer program product. Among them, when the computer program product runs on a computer, the computer is enabled to implement the method of the electronic device in the embodiment of the present application.

[0200] It should be pointed out here that: the descriptions of the above storage medium and device embodiments are similar to the descriptions of the above method embodiments and have beneficial effects similar to those of the method embodiments. For the technical details not disclosed in the storage medium, storage medium and device embodiments of the present application, please refer to the descriptions of the method embodiments of the present application for understanding.

[0201] It should be understood that the "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, the appearances of "in one embodiment" or "in an embodiment" or "in some embodiments" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics may be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the magnitudes of the serial numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The serial numbers of the embodiments of the present application above are only for description and do not represent the advantages or disadvantages of the embodiments. The descriptions of the above embodiments tend to emphasize the differences between the embodiments. Their similarities or similarities can be referred to each other. For the sake of brevity, they will not be elaborated herein.

[0202] As used herein, the term "and / or" is merely a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, object A and / or object B can represent: object A exists alone, object A and object B exist simultaneously, and object B exists alone.

[0203] It should be noted that in this article, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the element.

[0204] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling or communication connection between the components shown or discussed with each other can be through some interfaces. The indirect coupling or communication connection of the devices or modules can be electrical, mechanical or other forms.

[0205] The modules described above as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules; they may be located in one place or distributed across multiple network elements; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0206] In addition, in each embodiment of the present application, all the functional modules may be integrated in one processing unit, or each module may be a separate unit alone, or two or more modules may be integrated in one unit; the above integrated modules may be implemented in the form of hardware or in the form of a combination of hardware and software functional units.

[0207] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the foregoing storage medium includes: removable storage devices, read-only memory (ROM), magnetic disks, or optical disks and other various media that can store program codes.

[0208] Alternatively, if the above integrated unit of the present application is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present application essentially or the part that contributes to the related technology can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to enable an electronic device to execute all or part of the methods described in various embodiments of the present application. And the foregoing storage medium includes: removable storage devices, ROM, magnetic disks, or optical disks and other various media that can store program codes.

[0209] The methods disclosed in several method embodiments provided by the present application can be arbitrarily combined without conflict to obtain new method embodiments.

[0210] The features disclosed in several product embodiments provided by the present application can be arbitrarily combined without conflict to obtain new product embodiments.

[0211] The features disclosed in several method or device embodiments provided by the present application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0212] As described above, it is only the implementation mode of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art within the technical scope disclosed in this application can easily think of changes or substitutions, which should all be covered within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims described.

Claims

1. A temperature detection method for a touch screen, characterized in that, The method includes: Obtaining capacitance parameters of a target frame; wherein, the target frame includes the current frame and / or multiple consecutive frames before the current frame; Determining a current temperature mode of the touch screen according to the capacitance parameters of the target frame; wherein, the current temperature mode is used to characterize the level of the current temperature of the touch screen.

2. The method according to claim 1, wherein When the target frame includes the multiple consecutive frames, determining the current temperature mode of the touch screen according to the capacitance parameters of the target frame includes: Determining a capacitance change feature of the multiple consecutive frames according to the capacitance parameters of each frame in the multiple consecutive frames; Determining the current temperature mode of the touch screen according to the capacitance change feature.

3. The method according to claim 1, characterized in that, When the target frame includes the current frame, determining the current temperature mode of the touch screen according to the capacitance parameters of the target frame includes: Calculating an average capacitance parameter of the current frame according to the capacitance parameter of the current frame; Determining the current temperature mode of the touch screen according to the average capacitance parameter of the current frame.

4. The method according to claim 1, wherein When the target frame includes the current frame and the multiple consecutive frames, determining the current temperature mode of the touch screen according to the capacitance parameters of the target frame includes: Determining a capacitance change feature of the multiple consecutive frames according to the capacitance parameters of each frame in the multiple consecutive frames; Calculating an average capacitance parameter of the current frame according to the capacitance parameter of the current frame; Determining the current temperature mode of the touch screen according to the capacitance change feature and the average capacitance parameter of the current frame.

5. The method according to claim 2 or 4, characterized in that, Determining the capacitance change feature of the multiple consecutive frames according to the capacitance parameters of each frame in the multiple consecutive frames includes: Determining an average capacitance parameter of each frame according to the capacitance parameters of each frame in the multiple consecutive frames; Fitting a target curve corresponding to the multiple consecutive frames according to the average capacitance parameter of each frame and the acquisition time of each frame; Obtaining a trend feature of the target curve.

6. The method according to claim 2 or 4, characterized in that, Determining the capacitance change feature of the multiple consecutive frames according to the capacitance parameters of each frame in the multiple consecutive frames includes: Determining an average capacitance parameter of each frame according to the capacitance parameters of each frame in the multiple consecutive frames; Determining a parameter interval corresponding to the multiple consecutive frames according to the average capacitance parameter of each frame.

7. The method according to claim 4, wherein Determining the current temperature mode of the touch screen according to the capacitance change feature and the average capacitance parameter of the current frame includes: Obtaining a target temperature mode matching the capacitance change feature from a preset multiple temperature modes; Judging whether the average capacitance parameter of the current frame is within an average capacitance parameter interval corresponding to the target temperature mode; When the average capacitance parameter of the current frame is within the average capacitance parameter interval corresponding to the target temperature mode, using the target temperature mode as the current temperature mode of the touch screen.

8. The method according to any one of claims 1-4, characterized in that, The capacitance parameters include mutual capacitance values and / or mutual capacitance differences.

9. A temperature detection device for a touch screen, characterized in that, It includes: A capacitance parameter acquisition unit, configured to obtain capacitance parameters of a target frame; wherein, the target frame includes the current frame and / or multiple consecutive frames before the current frame; A temperature mode determination unit, configured to determine a current temperature mode of the touch screen according to the capacitance parameters of the target frame; wherein, the current temperature mode is used to characterize the level of the current temperature of the touch screen.

10. An electronic device, characterized in that, It includes: A memory storing executable program code; And a processor coupled to the memory; The processor invokes the executable program code stored in the memory, and when the executable program code is executed by the processor, the processor implements the method according to any one of claims 1-8.

11. A computer-readable storage medium having executable program code stored thereon, characterized in that, When the executable program code is executed by the processor, the method according to any one of claims 1-8 is implemented.