Temperature detection method and device, electronic equipment and storage medium

By collecting its temperature only when the touch screen is active, the sensitivity problem of capacitive touch screen when the temperature changes is solved, and power consumption of electronic devices is saved.

CN119845449APending Publication Date: 2025-04-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311356485.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

When the temperature of the capacitive touch screen changes sharply, the capacitive data is easily changed, resulting in abnormal situations such as insensitive touch, and the terminal system will cause waste of equipment power when collecting the touch screen temperature regularly.

Method used

The temperature is only collected when the touch screen is active, and the status event is reported to the terminal system through the touch system, and the terminal system responds to the acquisition temperature.

Benefits of technology

It effectively saves power consumption of electronic devices and avoids unnecessary temperature acquisition when the user is not operating.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119845449A_ABST
    Figure CN119845449A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a temperature detection method and device, electronic equipment and a storage medium. The method comprises the following steps: starting to collect the temperature of the touch screen in response to the fact that the touch screen is in an active state; according to the method, the temperature of the touch screen is collected only when the touch screen is in the active state, so that the power consumption of the electronic equipment can be saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of touch screen technology, and specifically relates to a temperature detection method, device, electronic device and storage medium. Background Art

[0002] In order to improve the efficiency of human-computer interaction, the device implements human-computer interaction by configuring a touch panel (TP), and the capacitive touch panel is the most widely used type of touch panel at present.

[0003] When the temperature of a capacitive touch screen changes rapidly, the capacitance data is prone to change, which can cause abnormal conditions such as insensitivity of the touch screen. At this time, the terminal system is usually required to obtain the touch screen temperature and transmit the touch screen temperature to the touch control system, so that the touch control system can adjust the sensitivity of the touch screen according to the touch screen temperature. However, the way the relevant terminal system obtains the touch screen temperature will cause a waste of power consumption of the device. Summary of the invention

[0004] In view of the above problems, the present application proposes a temperature detection method, device, electronic device and storage medium to improve the above problems.

[0005] In a first aspect, an embodiment of the present application provides a temperature detection method, which is applied to an electronic device. The method includes: in response to a touch screen being in an active state, starting to collect the temperature of the touch screen.

[0006] In a second aspect, an embodiment of the present application provides a temperature detection method, which is applied to a temperature detection system, wherein the temperature detection system includes a touch control system and a terminal system, and the method includes: the touch control system is used to report a first status event to the terminal system, wherein the first status event indicates that the touch screen is in an active state; and the terminal system is used to start collecting the temperature of the touch screen in response to the first status event.

[0007] In a third aspect, an embodiment of the present application provides a temperature detection device that runs on an electronic device, and the device includes: a temperature acquisition module, which is used to start acquiring the temperature of the touch screen in response to the touch screen being in an active state.

[0008] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the above-mentioned method.

[0009] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is run.

[0010] The embodiments of the present application provide a temperature detection method, device, electronic device and storage medium. The temperature of the touch screen is collected only when the touch screen is in an active state, thereby saving power consumption of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 A flow chart of a temperature detection method proposed in an embodiment of the present application is shown;

[0013] Figure 2 A flow chart of a temperature detection method proposed in another embodiment of the present application is shown;

[0014] Figure 3 A schematic diagram showing another embodiment of the present application in which a target object gradually approaches the touch screen from a preset distance;

[0015] Figure 4 A schematic diagram showing another embodiment of the present application in which a target object gradually moves from a touch screen to a preset distance;

[0016] Figure 5 A flow chart of a temperature detection method proposed in another embodiment of the present application is shown;

[0017] Figure 6 A flow chart of a temperature detection method proposed in another embodiment of the present application is shown;

[0018] Figure 7 A flow chart of a temperature detection method proposed in another embodiment of the present application is shown;

[0019] Figure 8 A flow chart of a temperature detection method proposed in another embodiment of the present application is shown;

[0020] Fig. 9 A schematic diagram of a temperature detection system in another embodiment of the present application is shown;

[0021] Fig.10 A schematic diagram of the process described in step S610 to step S620 in another embodiment of the present application is shown;

[0022] Fig.11 A structural block diagram of a temperature detection device proposed in an embodiment of the present application is shown;

[0023] Fig.12 A structural block diagram of a temperature detection device proposed in an embodiment of the present application is shown;

[0024] Fig.13 A structural block diagram of a temperature detection system proposed in an embodiment of the present application is shown;

[0025] Fig.14 A structural block diagram of an electronic device for executing a temperature detection method according to an embodiment of the present application is shown;

[0026] Fig.15 A storage unit in an embodiment of the present application is shown for storing or carrying a program code for implementing a temperature detection method according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0028] Capacitive touch screen is a touch screen that works based on human body induction current. When a user touches a capacitive touch screen with a finger, it affects the coupling between two electrodes near the touch point, thereby changing the capacitance between the two electrodes. Accordingly, the capacitive touch screen can determine the location of the touch point by detecting the change in capacitance.

[0029] When the temperature of a capacitive touch screen changes dramatically, the capacitance data is prone to change, causing abnormal conditions such as insensitive touch. At this time, the terminal system is usually required to collect the touch screen temperature and transmit the touch screen temperature to the touch control system, so that the touch control system can adjust the sensitivity of the touch screen based on the touch screen temperature.

[0030] However, when the terminal system collects the touch screen temperature, it collects the touch screen temperature regularly after the electronic device is in the screen-on state. This solution will cause a burden on the system power consumption of the electronic device. In addition, the regular collection of the touch screen temperature will cause the touch screen temperature to be collected regularly when the user does not operate the touch screen, resulting in a waste of power consumption of the electronic device.

[0031] Therefore, the inventors propose a temperature detection method, device, electronic device, and storage medium in the present application. In response to the touch screen being in an active state, the temperature of the touch screen is collected. Through the above method, the temperature of the touch screen is collected only when the touch screen is in an active state, thereby saving power consumption of the electronic device.

[0032] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0033] See also Figure 1 , a temperature detection method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0034] Step S110: In response to the touch screen being in an active state, start collecting the temperature of the touch screen.

[0035] In the embodiment of the present application, the touch screen refers to a capacitive touch screen. The capacitive sensing function of the capacitive touch screen uses the capacitive sensing principle of the touch screen to determine whether an object touches the touch screen and then reports the state of the object. The object can be a finger or a stylus; the state is mainly divided into pressing, lifting, and moving after pressing. The reported data includes coordinate data and event status.

[0036] It can be known that the capacitive touch screen is mainly composed of a transmitting channel and a receiving channel, wherein the capacitance data collected from the transmitting channel and the receiving channel to the ground is self-capacitance data, and the data collected from the transmitting channel and the receiving channel is mutual capacitance data. Optionally, the capacitive touch screen can be constructed by overlapping two layers of ITO, wherein M transmitting channels and N receiving channels can be set in the capacitive touch screen, and there are M*N mutual capacitances and M+N self-capacitances.

[0037] Currently, mutual capacitance data is used to determine whether an object is in a pressed state, lifted state, or moving state after being pressed; self-capacitance data is used to realize the judgment of other auxiliary functions, such as proximity sensing function.

[0038] In the embodiment of the present application, the point reporting principle of the touch screen is to utilize the capacitive sensing principle of the touch screen. The touch screen recognizes the coordinates of the object by calculating the capacitance difference between the current object touching the touch screen and not touching the touch screen. By calculating the area of ​​the capacitance difference, the peak difference value of the area is found, and it is determined whether it is within a certain preset reporting threshold, thereby sending the reporting point coordinates.

[0039] The touch screen may include multiple working states, specifically, the multiple working states of the touch screen may include active state, idle state, and sleep state, etc. In the active state, a longer scanning cycle and all channels of self-capacitance and mutual-capacitance may be used for data scanning; in the idle state, a smaller scanning cycle or some channels may be used for data scanning; in the sleep state, no event is responded to.

[0040] In the embodiment of the present application, the touch screen is in an active state, which means that the touch screen is collecting a longer scanning cycle and all channels of self-capacitance and mutual-capacitance for data scanning. That is, when the touch screen is in an active state, it can include two characteristics, one characteristic is that the scanning cycle is longer when performing data scanning, and the other characteristic is that data scanning is performed through all channels of self-capacitance and mutual-capacitance.

[0041] Therefore, there are a number of ways to determine whether the touch screen is active.

[0042] As one of the ways, whether the touch screen is in an active state can be determined by detecting the time length of the scanning cycle when the touch screen is currently scanning data. Specifically, if it is detected that the time length of the scanning cycle when the touch screen is currently scanning data is greater than or equal to the preset time length, it can be determined that the touch screen is in an active state; conversely, if it is detected that the time length of the scanning cycle when the touch screen is currently scanning data is less than the preset time length, it can be determined that the touch screen is not in an active state. The preset time length is a preset time length of the scanning cycle that indicates that the touch screen is in an active state.

[0043] As another method, whether the touch screen is in an active state can be determined by detecting the number of channels when the touch screen is currently scanning data. Specifically, if it is detected that the touch screen is currently scanning data through all channels or channels greater than a preset number, it can be determined that the touch screen is in an active state; conversely, if it is detected that the touch screen is currently scanning data through channels less than or equal to a preset number, it can be determined that the touch screen is not in an active state. The preset number can be a preset critical number of channels that indicates that the touch screen is not in an active state.

[0044] Optionally, it is also possible to determine whether the touch screen is in an active state by combining the number of channels and the scanning cycle when the touch screen is currently scanning data. For example, if it is detected that the number of channels currently scanning data on the touch screen is greater than a preset number, and the duration of the scanning cycle when the touch screen is currently scanning data is greater than or equal to the preset duration, it can be determined that the touch screen is in an active state; conversely, if it is detected that the number of channels currently scanning data on the touch screen is less than or equal to the preset number, or the duration of the scanning cycle when the touch screen is currently scanning data is less than the preset duration, it can be determined that the touch screen is not in an active state.

[0045] In the embodiment of the present application, in response to the touch screen being in an active state, it may refer to that the touch screen has just switched to the active state, or it may refer to that the touch screen is already in the active state, which is not specifically limited here.

[0046] The fact that the touch screen has just switched to the active state can be determined by whether a change occurs in the number of scanning channels; or can also be determined by whether a change occurs in the scanning period, which is not specifically limited here.

[0047] As a method, when the touch screen has just switched to the active state, it can be determined by whether the number of scanning channels has changed. Whether the number of scanning channels has changed refers to the change of scanning channels from a small number to a large number. That is, only when it is detected that the number of channels currently performing data scanning on the touch screen changes from a first number to a second number, it can be determined that the touch screen has just switched to the active state; if it is detected that the number of channels currently performing data scanning on the touch screen changes from a second number to a first number, it can be determined that the touch screen has just switched to another state. The first number is less than the second number.

[0048] As another way, when the touch screen has just switched to the active state, it can be determined by whether the scanning cycle has changed. Whether the scanning cycle has changed also refers to the change of the scanning cycle from short to long. That is, only when it is detected that the scanning cycle of the touch screen currently performing data scanning changes from the first cycle to the second cycle, it can be determined that the touch screen has just switched to the active state; if it is detected that the scanning cycle of the touch screen currently performing data scanning changes from the second cycle to the first cycle, it can be determined that the touch screen has just switched to other states. Among them, the first cycle is smaller than the second cycle.

[0049] In an embodiment of the present application, in response to a state detection instruction, if the touch screen is detected to be in an active state, the temperature of the touch screen can be collected. Among them, the state detection instruction can be an instruction triggered by a preset application in the electronic device, or it can be an instruction sent by other electronic devices that have established a communication connection with the electronic device, which is not specifically limited here. Among them, the preset application can be an application that needs to collect the temperature of the touch screen. In an embodiment of the present invention, the electronic device can include but is not limited to mobile phones, mobile tablets, personal digital assistants (Personal Digital Assistant, PDA), multimedia players, e-readers, wearable devices, mobile Internet devices (Mobile Internet Device, MID) and other terminal devices equipped with a touch screen.

[0050] As a method, the temperature of the touch screen can be collected through a temperature collection module. The collected touch screen temperature refers to the external environment temperature of the environment where the touch screen is located. Among them, the temperature collection module can be a temperature sensor set in the electronic device.

[0051] When the touch screen is detected to be in an active state, the temperature acquisition module starts to collect the external ambient temperature of the environment where the touch screen is located. Before collecting the external ambient temperature of the environment where the touch screen is located through the temperature acquisition module, a state event can be reported to the temperature acquisition module. When the temperature acquisition module obtains the state event, it starts to collect the temperature of the touch screen. Among them, the state event is used to indicate that the touch screen is in an active state.

[0052] Optionally, the collected temperature of the touch screen may also refer to the temperature of the touch screen, or may also refer to the temperature of a target object acting on the touch screen, which is not specifically limited herein.

[0053] The present application provides a temperature detection method, which starts collecting the temperature of the touch screen in response to the touch screen being in an active state. Through the above method, the temperature of the touch screen is collected only when the touch screen is in an active state, thereby saving power consumption of the electronic device.

[0054] See also Figure 2 , a temperature detection method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0055] Step S210: When a target object is detected within a preset distance of the touch screen, the touch screen is switched to an active state and the temperature of the touch screen is started to be collected.

[0056] In the embodiment of the present application, the preset distance refers to the sensing range of the touch screen; the target object refers to an object that can perform touch operations on the touch screen, such as a finger or a stylus.

[0057] Detecting a target within a preset distance of the touch screen may refer to the target hovering within the preset distance of the touch screen, or may refer to the target gradually approaching the touch screen from the preset distance, or may refer to the target acting on the touch screen, or may refer to the target gradually moving from the touch screen to the preset distance, without specific limitation herein.

[0058] The target object gradually approaches the touch screen from a preset distance. Figure 3 As shown, in Figure 3 In the target ( Figure 3 The target object can be moved from the touch screen to the preset distance. Figure 4 As shown, in Figure 4 In the target ( Figure 4 Move gradually from the left side of the arrow to the right side of the arrow (with finger in the middle) according to the direction of the arrow (preset distance).

[0059] In the embodiment of the present application, a proximity sensor can be used to detect whether there is an object within a preset distance above the touch screen. If there is, the image of the detected object can be further captured by the camera, and then the captured image of the object can be identified. If the object is determined to be a finger or a preset touch object, the detected object is determined to be a target object. At this time, it can be determined that the target object is about to operate the touch screen, and then the touch screen can be switched to an active state. At this time, the current state of the touch screen can be determined first. If it is determined that the touch screen is currently in another state, the touch screen can be switched to an active state. If it is determined that the touch screen is already in an active state, the state of the touch screen may not be switched.

[0060] The current state of the touch screen can be determined by detecting at least one of the following methods: the length of a scan cycle when the touch screen is currently scanning data, and the number of channels when the touch screen is currently scanning data, which will not be described in detail here.

[0061] As one method, when a target object is detected within a preset distance of the touch screen, the touch screen is switched to an active state and the temperature of the touch screen is started to be collected, including: when a target object is detected within a preset distance of the touch screen, the touch screen is switched from a sleep state or an idle state to an active state, and the temperature of the touch screen is started to be collected.

[0062] In the dormant state, the touch screen does not respond to any event; in the idle state, the touch screen can use a smaller scanning cycle or a partial number of channels to scan data.

[0063] When the touch screen is in an idle state, the touch screen may use a smaller scanning period or a partial number of channels to perform data scanning, wherein the partial number of channels may be a partial number of channels among all the transmitting channels and receiving channels included in the touch screen.

[0064] In the embodiment of the present application, when the touch screen is in an idle state, the number of partial channels for data scanning can be determined in a variety of ways.

[0065] As one of the ways, the number of some channels can be determined according to the function that the current touch screen needs to realize. Specifically, the touch screen can realize multiple functions, each function can correspond to different channels, and then when it is determined that the touch screen is in an idle state, some channels can be determined according to the function that the touch screen is about to realize. Among them, the function that the touch screen is about to realize can be predicted based on the historical operation data of the user operating the touch screen.

[0066] As another method, some channels may be randomly selected according to a preset ratio. Specifically, the ratio of the number of channels for data scanning when the touch screen is in an idle state may be preset, and then when the touch screen is detected to be in an idle state, some channels may be randomly selected from all channels according to the preset ratio.

[0067] Optionally, some channels may be determined by specifying channels. Specifically, the channels for data scanning when the touch screen is in an idle state may be pre-set.

[0068] Optionally, the number of partial channels may be determined according to the type of data to be collected. Specifically, if the type of data to be collected is self-capacitive data, the determined partial channels may be channels for collecting self-capacitive data; if the type of data to be collected is mutual-capacitive data, the determined partial channels may be channels for collecting mutual-capacitive data.

[0069] In the embodiment of the present application, the touch screen being in an idle state may mean that the touch screen has just switched from another state to the idle state, or may also mean that the touch screen is already in the idle state.

[0070] The touch screen being in an idle state refers to the case where the touch screen has just switched from other states to the idle state, which may include two cases where the touch screen has just switched from an active state to an idle state and the touch screen has just switched from a dormant state to an idle state.

[0071] There are several ways to determine whether the touch screen has just switched from an active state to an idle state.

[0072] As a method, whether the touch screen has just switched from the active state to the idle state can be determined by whether the number of scanning channels has changed. Among them, whether the number of scanning channels has changed refers to the change of scanning channels from more to less. That is, only when it is detected that the number of channels currently performing data scanning on the touch screen changes from the second number to the first number, it can be determined that the touch screen has just switched from the active state to the idle state; if it is detected that the number of channels currently performing data scanning on the touch screen changes from the first number to the second number, it can be determined that the touch screen has just switched from other states to the active state. Among them, the first number is less than the second number.

[0073] As another way, whether the touch screen has just switched from the active state to the idle state can be determined by whether a change in the scanning cycle occurs. Among them, whether a change in the scanning cycle occurs also refers to a change in the scanning cycle from long to short. That is, only when it is detected that the scanning cycle of the touch screen currently performing data scanning changes from the second cycle to the first cycle, it can be determined that the touch screen has just switched from the active state to the idle state; if it is detected that the scanning cycle of the touch screen currently performing data scanning changes from the first cycle to the second cycle, it can be determined that the touch screen has just switched from other states to the active state. Among them, the first cycle is smaller than the second cycle.

[0074] Furthermore, it is also possible to determine whether the touch screen has just switched from the sleep state to the idle state in a variety of ways.

[0075] As a method, whether the touch screen has just switched from the dormant state to the idle state can be determined by whether a change in the number of scanning channels occurs. Wherein, whether a change in the number of scanning channels occurs refers to a change in the number of scanning channels from 0 to a preset number. That is, only when it is detected that the number of channels currently performing data scanning on the touch screen changes from 0 to a first number, it can be determined that the touch screen has just switched from the dormant state to the idle state; if it is detected that the number of channels currently performing data scanning on the touch screen changes from 0 to a second number, it can be determined that the touch screen has just switched from the dormant state to the active state. Wherein, the first number is less than the second number.

[0076] As another way, whether the touch screen has just switched from the dormant state to the idle state can be determined by whether a change in the scanning cycle occurs. Among them, whether a change in the scanning cycle occurs also refers to a change from scanning cycle 0 to the first cycle. That is, only when it is detected that the scanning cycle of the touch screen currently performing data scanning changes from 0 to the first cycle, it can be determined that the touch screen has just switched from the dormant state to the idle state; if it is detected that the scanning cycle of the touch screen currently performing data scanning changes from 0 to the second cycle, it can be determined that the touch screen has just switched from the dormant state to the active state. Among them, the first cycle is smaller than the second cycle.

[0077] In the embodiment of the present application, when a target object is detected within a preset distance of the touch screen, the touch screen can be switched from a dormant state or an idle state to an active state, so that the temperature of the touch screen can be collected.

[0078] The present application provides a temperature detection method, when a target object is detected within a preset distance of a touch screen, the touch screen is switched to an active state and the temperature of the touch screen is collected. Through the above method, the temperature of the touch screen is collected only when the touch screen is in an active state, thereby saving power consumption of the electronic device.

[0079] See also Figure 5 , a temperature detection method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0080] Step S310: In response to the touch screen being in an active state, start collecting the temperature of the touch screen.

[0081] As one way, in response to the touch screen being in an active state, starting to collect the temperature of the touch screen includes: when detecting that the electronic device is in a screen-on state, determining that the touch screen is in an active state, and starting to collect the temperature of the touch screen.

[0082] It is known that, usually when the electronic device is in a screen-on state, the initial state of the touch screen is an active state.

[0083] Therefore, in the embodiment of the present application, whether the touch screen is in an active state can also be determined by the state of the electronic device. Specifically, the state of the electronic device may include a screen-on state and a screen-off state. Among them, the electronic device being in a screen-on state may mean that the electronic device has just been in a screen-on state, and the electronic device just being in a screen-on state may mean that the electronic device has just switched from a screen-off state to a screen-on state, or may mean that the electronic device has just been started and is in a screen-on state, which is not specifically limited here.

[0084] When it is detected that the electronic device is just in the screen-on state, it can be determined that the touch screen is in the active state and the temperature of the touch screen starts to be collected.

[0085] When collecting the temperature of the touch screen, the temperature of the touch screen may be obtained by periodically polling the timer.

[0086] Step S320: In response to the touch screen being in an idle state, stop collecting the temperature of the touch screen.

[0087] In an embodiment of the present application, when the touch screen is in an idle state, if the temperature of the touch screen continues to be collected, it will cause a waste of power consumption of the electronic device. Therefore, when the touch screen is in an idle state, the temperature of the touch screen can be stopped from being collected to save power consumption of the electronic device.

[0088] The touch screen being in an idle state may mean that the touch screen has just been in an idle state, or the touch screen has been in an idle state.

[0089] As one way, in response to the touch screen being in an idle state, stopping collecting the temperature of the touch screen includes: when no target object is detected within a preset distance of the touch screen, determining that the touch screen is in an idle state, and stopping collecting the temperature of the touch screen.

[0090] If the target object is not detected within the preset distance of the touch screen, it can be understood that the target object has moved away from the touch screen. When the target object moves away from the touch screen, the touch screen switches to an idle state. At this time, the touch screen switches to an idle state, which means switching from an active state to an idle state.

[0091] In the embodiment of the present application, whether the touch screen switches from the active state to the idle state can be determined by detecting whether the number of scanning channels changes or whether the scanning cycle changes. The specific method can refer to the description of step S210 and will not be repeated here.

[0092] Stopping collecting the temperature of the touch screen may refer to stopping the timer from periodically polling the temperature of the touch screen.

[0093] As another way, the touch screen being in an idle state may also refer to the electronic device switching from a dormant state to an idle state. In the embodiment of the present application, it is also possible to determine whether the touch screen switches from a dormant state to an idle state by detecting whether a change occurs in the number of scanning channels or a change occurs in the scanning cycle. The specific method can refer to the description of step S210 and will not be repeated here.

[0094] Optionally, when the electronic device is in a screen-on state and no target object is detected within a preset distance of the touch screen, it is determined that the touch screen is in an idle state and the temperature of the touch screen is stopped from being collected.

[0095] Specifically, when the electronic device is in a screen-on state and no target object operates the touch screen, the touch screen may also be in an idle state, and at this time, the temperature of the touch screen may be stopped from being collected.

[0096] The electronic device being in the screen-on state and no target object operating the touch screen can be limited to a preset time period. That is, if the electronic device is in the screen-on state and no target object is detected operating the touch screen within the preset time period, it can be determined that the touch screen is in an idle state. At this time, the touch screen can be switched from the active state to the idle state.

[0097] The present application provides a temperature detection method, which starts collecting the temperature of the touch screen in response to the touch screen being in an active state, and stops collecting the temperature of the touch screen in response to the touch screen being in an idle state. Through the above method, the temperature of the touch screen is collected only when the touch screen is in an active state, and the temperature of the touch screen is not collected when the touch screen is in an idle state, thereby saving power consumption of the electronic device.

[0098] See also Figure 6 , a temperature detection method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0099] Step S410: In response to the touch screen being in an active state, start collecting the temperature of the touch screen.

[0100] Step S420: In response to the touch screen being in a dormant state, stop collecting the temperature of the touch screen.

[0101] In the embodiment of the present application, the touch screen being in a dormant state may refer to the touch screen just being in a dormant state or the touch screen having been in a dormant state. Wherein, when the touch screen being in a dormant state refers to the touch screen just being in a dormant state, it may include two situations where the touch screen has just switched from an active state to a dormant state and the touch screen has just switched from an idle state to a dormant state.

[0102] Among them, whether the touch screen has just switched from an active state to a sleep state, or whether the touch screen has just switched from an idle state to a sleep state, can be determined by detecting whether a change occurs in the number of scanning channels or whether a change occurs in the scanning cycle. The specific method can be referred to the description of step S210 and will not be repeated here.

[0103] As one way, in response to the touch screen being in a sleep state, stopping collecting the temperature of the touch screen includes: when detecting that the electronic device is in a screen-off state, determining that the touch screen is in a sleep state, and stopping collecting the temperature of the touch screen.

[0104] Whether the touch screen is in a dormant state can also be determined by the state of the electronic device. When the electronic device is in a screen-off state, it can be determined that the touch screen is in a dormant state, and the temperature of the touch screen is stopped from being collected.

[0105] Since whether the touch screen is in an active state or a dormant state can be determined by the state of the electronic device, whether the touch screen switches from an active state to a dormant state, or whether the touch screen switches from a dormant state to an active state can also be determined by whether the state of the electronic device changes. Specifically, when it is detected that the state of the electronic device switches from a screen-off state to a screen-on state, it can be determined that the touch screen switches from a dormant state to an active state; when it is detected that the state of the electronic device switches from a screen-on state to a screen-off state, it can be determined that the touch screen switches from an active state to a dormant state.

[0106] The present application provides a temperature detection method, which starts collecting the temperature of the touch screen in response to the touch screen being in an active state, and stops collecting the temperature of the touch screen in response to the touch screen being in a dormant state. Through the above method, the temperature of the touch screen is collected only when the touch screen is in an active state, and the temperature of the touch screen is not collected when the touch screen is in a dormant state, thereby saving power consumption of the electronic device.

[0107] See also Figure 7 , a temperature detection method provided in an embodiment of the present application is applied to an electronic device, the method comprising:

[0108] Step S510: In response to the touch screen being in an active state, start collecting the temperature of the touch screen.

[0109] Step S520: updating parameters of a touch control algorithm based on the collected temperature of the touch screen, wherein the touch control algorithm is an algorithm for controlling the touch screen.

[0110] In the embodiment of the present application, the parameters of the touch algorithm can be understood as the parameters for controlling the touch screen, for example, they may include sensitivity, sampling rate, reporting rate, etc. Of course, they may also include other parameters, which will not be listed one by one here.

[0111] The touch screen in the embodiment of the present application is a capacitive touch screen. The touch performance of the capacitive touch screen will be affected by temperature. Therefore, after the temperature of the touch screen is collected, the parameters of the touch algorithm can be adjusted according to the collected temperature of the touch screen, so that the touch screen can work with higher touch performance at the current temperature.

[0112] As a method, if the collected temperature of the touch screen is lower than the first preset temperature, or the collected temperature of the touch screen is higher than the second preset temperature, the parameters of the touch algorithm are updated based on the collected temperature of the touch screen.

[0113] The first preset temperature is the lowest temperature at which the touch screen can work normally, and the second preset temperature is the highest temperature at which the touch screen can work normally.

[0114] When the acquired temperature of the touch screen is not within the temperature range in which the touch screen can work normally, the parameters of the touch algorithm can be adjusted according to the acquired temperature of the touch screen. For example, when the acquired temperature of the touch screen is lower than the first preset temperature, it can be determined that the touch performance of the current touch screen may be lower than the normal touch performance and cannot meet the user's touch requirements. At this time, the parameters of the touch algorithm can be adjusted lower so that the touch algorithm can respond to the user's touch requirements based on lower parameters.

[0115] As another way, if the acquired temperature of the touch screen is higher than or equal to the first preset temperature, and the acquired temperature of the touch screen is lower than or equal to the second preset temperature, the parameters of the touch algorithm are not updated.

[0116] When the collected temperature of the touch screen is higher than or equal to the first preset temperature, and the collected temperature of the touch screen is less than or equal to the second preset temperature, it can be determined that the collected temperature of the touch screen is within the temperature range within which the touch screen can work normally, and then there is no need to adjust the parameters of the touch algorithm.

[0117] The present application provides a temperature detection method, in response to the touch screen being in an active state, starting to collect the temperature of the touch screen, and updating the parameters of the touch algorithm based on the collected temperature. Through the above method, the temperature of the touch screen is collected only when the touch screen is in an active state, thereby saving the power consumption of the electronic device. Furthermore, updating the parameters of the touch algorithm according to the collected temperature of the touch screen can improve the touch performance of the touch screen.

[0118] See also Figure 8 A temperature detection method provided in an embodiment of the present application is applied to a temperature detection system, wherein the temperature detection system includes a touch control system and a terminal system, and the method includes:

[0119] Step S610: the touch control system is used to report a first status event to the terminal system, where the first status event indicates that the touch screen is in an active state.

[0120] In the embodiment of the present application, the temperature detection system includes a touch control system and a terminal system, which can be understood as an electronic device including a touch control system and a terminal system. The touch control system includes a touch screen and an MCU system. The terminal system sets the touch control system through the INT pin or the I2C / SPI interface, such as Fig. 9 shown.

[0121] The touch control system can trigger an interrupt signal through the INT pin so that the terminal system can obtain data in the touch control system.

[0122] In the embodiment of the present application, the touch screen being in an active state can be understood as the touch control system being in an active state.

[0123] When the touch screen is in an active state, the touch control system reports the first state event to the terminal system by means of an interrupt. The interrupt means that the touch control system triggers an interrupt signal through the INT pin, and the first state event is carried in the interrupt signal. Then the terminal system can obtain the flag bit of the first state event through the touch control service. If the flag bit is an active flag bit, the terminal system can determine that the touch screen is in an active state.

[0124] When the target object just contacts the touch screen, the touch screen can switch from the idle state to the active state. The active state is to meet the accurate detection of the object state including pressing, lifting and coordinates.

[0125] As a method, the touch control system is further used to report a second state event or a third state event to the terminal system, the second state event represents that the touch screen is in a dormant state, and the third state event represents that the touch screen is in an idle state.

[0126] Similarly, when the touch screen is in a sleep state or an idle state, the touch system can also report the second state event or the third state event to the terminal system through an interrupt, and then the terminal system can obtain the flag bit of the second state event or the third state event through the touch service. If the flag bit of the second state event is a sleep flag bit, or the flag bit of the third state event is an idle flag bit, the terminal system can determine that the touch screen is in a sleep state or an idle state.

[0127] Among them, when the electronic device enters the screen-off state, the touch control system enters the sleep state. When the working state of the MCU system is in the sleep state, the second state event is reported; when the target object is away from the touch screen, the touch control system enters the idle state. When the working state of the MCU system is in the idle state, the third state event is reported.

[0128] Furthermore, the idle state is to reduce the scanning cycle or the number of scanning channels when the target is not pressed, and is responsible for detecting whether there is a target pressing, thereby saving power consumption of the touch screen.

[0129] Step S620: the terminal system is used to start collecting the temperature of the touch screen in response to the first status event.

[0130] As a mode, the terminal system is further configured to stop collecting the temperature of the touch screen in response to the second state event or the third state event.

[0131] When the terminal system obtains the flags of the first state event, the second state event, and the third state event, it can determine whether to collect the temperature of the touch screen according to the obtained flags. Specifically, if the flag obtained by the terminal system is the active flag, it starts collecting the temperature of the touch screen; if the flag obtained by the terminal system is the sleep flag or the idle flag, it stops collecting the temperature of the touch screen.

[0132] In the embodiment of the present application, after the terminal system obtains the temperature of the touch screen, the temperature of the touch screen can be written into the touch control system, so that the touch control system can update the parameters of the touch control algorithm according to the written temperature.

[0133] The process described in step S610 to step S620 can be as follows: Fig.10 As shown, when the target object approaches the touch system, the MCU system switches to the active state and reports the active event (first state event) to notify the terminal system; then the terminal system determines whether it has received the active event (first state event) of the MCU system. If the terminal system receives the first state event of the MCU system, it starts to use a timer to periodically poll to obtain the temperature of the touch screen; if it has not received the event, it will not process it.

[0134] Furthermore, when the target object is away from the touch control system, the touch control system enters an idle state; when the MCU system is in the idle state, a status event (third status event) is reported to notify the terminal system; when the electronic device enters the screen-off state, the touch control system enters the sleep state; when the MCU system is in the sleep state, a status event (second status event) is reported to notify the terminal system; then the terminal system determines whether it has received the idle or sleep status event of the MCU system; if the idle event flag or the sleep event flag is received, the timer is stopped to collect the temperature of the touch screen; if not received, no processing is performed.

[0135] The present application provides a temperature detection method, in which the terminal system collects the temperature of the touch screen only when it determines that the touch screen is in an active state, thereby saving power consumption of the terminal system.

[0136] Please refer to 11. A temperature detection device 700 provided in an embodiment of the present application is operated on an electronic device. The device 700 includes:

[0137] The temperature collection module 710 is used to start collecting the temperature of the touch screen in response to the touch screen being in an active state.

[0138] As a method, the temperature acquisition module 710 is also used to switch the touch screen to an active state and start collecting the temperature of the touch screen when a target object is detected within a preset distance of the touch screen.

[0139] As another embodiment, the temperature acquisition module 710 is also used to switch the touch screen from a dormant state or an idle state to an active state and start to acquire the temperature of the touch screen when a target object is detected within a preset distance of the touch screen.

[0140] Optionally, the temperature acquisition module 710 is further configured to determine that the touch screen is in an active state and start acquiring the temperature of the touch screen when it is detected that the electronic device is in a screen-on state.

[0141] See also Fig.12 , the device 700 further includes:

[0142] The stopping unit 720 is configured to stop collecting the temperature of the touch screen in response to the touch screen being in an idle state.

[0143] As a mode, the stopping unit 720 is specifically configured to determine that the touch screen is in an idle state and stop collecting the temperature of the touch screen when no target object is detected within a preset distance of the touch screen.

[0144] As another way, the stopping unit 720 is further configured to stop collecting the temperature of the touch screen in response to the touch screen being in a dormant state.

[0145] Optionally, the stopping unit 720 is further configured to determine that the touch screen is in a dormant state and stop collecting the temperature of the touch screen when it is detected that the electronic device is in a screen-off state.

[0146] The updating unit 730 is configured to update parameters of a touch control algorithm based on the collected temperature of the touch screen, wherein the touch control algorithm is an algorithm for controlling the touch screen.

[0147] See also Fig.13 , an embodiment of the present application provides a temperature detection system 800, and the temperature detection system includes a touch control system 810 and a terminal system 820.

[0148] The touch control system 810 is used to report a first status event to the terminal system 820, where the first status event indicates that the touch screen is in an active state.

[0149] As a method, the touch control system 810 is further used to report a second state event or a third state event to the terminal system 820, wherein the second state event indicates that the touch screen is in a dormant state, and the third state event indicates that the touch screen is in an idle state.

[0150] The terminal system 820 is configured to start collecting the temperature of the touch screen in response to the first status event.

[0151] As a mode, the terminal system 820 is further configured to stop collecting the temperature of the touch screen in response to the second state event or the third state event.

[0152] It should be noted that the device embodiment in the present application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment and will not be repeated here.

[0153] The following will be combined Fig.14 An electronic device provided by the present application is described.

[0154] See also Fig.14 Based on the above temperature detection method and device, the embodiment of the present application also provides another electronic device 900 that can execute the above temperature detection method. The electronic device 900 includes one or more (only one is shown in the figure) processors 902, a memory 904 and a network module 906 that are coupled to each other. Among them, the memory 904 stores a program that can execute the content of the above embodiment, and the processor 902 can execute the program stored in the memory 904.

[0155] Among them, the processor 902 may include one or more processing cores. The processor 902 uses various interfaces and lines to connect various parts of the entire electronic device 900, and executes various functions and processes data of the electronic device 900 by running or executing instructions, programs, code sets or instruction sets stored in the memory 904, and calling data stored in the memory 904. Optionally, the processor 902 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 902 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 902, but may be implemented separately through a communication chip.

[0156] The memory 904 may include a random access memory (RAM) or a read-only memory (ROM). The memory 904 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 904 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 implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 900 during use.

[0157] The network module 906 is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, such as communicating with electronic devices. The network module 906 may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, etc. The network module 906 may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. For example, the network module 906 may exchange information with a base station.

[0158] Please refer to Fig.15 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 1000 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0159] The computer readable storage medium 1000 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 1000 includes a non-transitory computer-readable storage medium. The computer readable storage medium 1000 has storage space for program code 1100 that executes any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 1100 can be compressed, for example, in an appropriate form.

[0160] The present application provides a temperature detection method, device, electronic device and storage medium, which start collecting the temperature of the touch screen in response to the touch screen being in an active state. Through the above method, the temperature of the touch screen is collected only when the touch screen is in an active state, thereby saving power consumption of the electronic device.

[0161] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

Claims

1. A temperature detection method, characterized in that: Applied to electronic equipment, the method comprises: In response to the touch screen being in an active state, starting to collect the temperature of the touch screen.

2. The method according to claim 1, characterized in that In response to the touch screen being in an active state, starting to collect the temperature of the touch screen includes: When a target object is detected within a preset distance of the touch screen, the touch screen is switched to an active state and the temperature of the touch screen is started to be collected.

3. The method according to claim 2, characterized in that When a target object is detected within a preset distance of the touch screen, the touch screen is switched to an active state and the temperature of the touch screen is started to be collected, including: When a target object is detected within a preset distance of the touch screen, the touch screen is switched from a dormant state or an idle state to an active state, and the temperature of the touch screen is started to be collected.

4. The method according to claim 1, characterized in that: In response to the touch screen being in an active state, starting to collect the temperature of the touch screen includes: When it is detected that the electronic device is in a screen-on state, it is determined that the touch screen is in an active state, and the temperature of the touch screen is started to be collected.

5. The method according to claim 1, characterized in that The method further comprises: In response to the touch screen being in an idle state, the temperature of the touch screen is stopped from being collected.

6. The method according to claim 5, characterized in that In response to the touch screen being in an idle state, stopping collecting the temperature of the touch screen includes: When no target object is detected within a preset distance of the touch screen, it is determined that the touch screen is in an idle state, and the temperature of the touch screen is stopped from being collected.

7. The method according to claim 1, characterized in that The method further comprises: In response to the touch screen being in a dormant state, the temperature of the touch screen is stopped from being collected.

8. The method according to claim 7, characterized in that In response to the touch screen being in a dormant state, stopping collecting the temperature of the touch screen includes: When it is detected that the electronic device is in a screen-off state, it is determined that the touch screen is in a dormant state, and the temperature of the touch screen is stopped from being collected.

9. The method according to claim 1, characterized in that: The method further comprises: Based on the collected temperature of the touch screen, parameters of a touch control algorithm are updated, wherein the touch control algorithm is an algorithm for controlling the touch screen.

10. A temperature detection method, characterized in that: Applied to a temperature detection system, the temperature detection system includes a touch control system and a terminal system, and the method includes: The touch control system is used to report a first state event to the terminal system, where the first state event indicates that the touch screen is in an active state; The terminal system is used for starting to collect the temperature of the touch screen in response to the first status event.

11. The method according to claim 10, characterized in that The touch control system is further used to report a second state event or a third state event to the terminal system, wherein the second state event indicates that the touch screen is in a dormant state, and the third state event indicates that the touch screen is in an idle state; The terminal system is further configured to stop collecting the temperature of the touch screen in response to the second state event or the third state event.

12. A temperature detection device, characterized in that: Running on an electronic device, the device comprises: The temperature collection module is used to start collecting the temperature of the touch screen in response to the touch screen being in an active state.

13. An electronic device, characterized in that: The method comprises one or more processors; one or more programs are stored in the memory and configured so that the one or more processors execute the method according to any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, wherein when the program code is executed by a processor, the method according to any one of claims 1 to 10 is executed.