US-12625576-B2 - Touch system control methods and electronic device
Abstract
This application provides a touch system control method and an electronic device. The method includes: in an active mode, controlling, by a touch chip, a touch panel to perform two-dimensional data scanning at a first frequency to obtain first scanned data; sending, by the touch chip, the first scanned data to a host at the first frequency; when the host determines, according to the first scanned data, that no valid touch signal is detected, switching, by the host, to an async idle mode, where in the async idle mode, the touch chip controls the touch panel to perform two-dimensional data scanning at the first frequency to obtain second scanned data, and sends the second scanned data to the host at a second frequency; the second frequency is less than the first frequency.
Inventors
- Guangxu ZHAO
- Juncheng TIAN
- Shuaifei Ji
- Yue DING
Assignees
- HONOR DEVICE CO., LTD.
Dates
- Publication Date
- 20260512
- Application Date
- 20230905
- Priority Date
- 20221011
Claims (15)
- 1 . A touch system control method, applied to an electronic device, wherein the electronic device comprises a touch chip, a touch panel, and a host; and the method comprises: in an active mode, controlling, by the touch chip, the touch panel to perform two-dimensional data scanning at a first frequency to obtain first scanned data, wherein the first scanned data is used for detecting a touch position; sending, by the touch chip, the first scanned data to the host at the first frequency; when the host determines, according to the first scanned data, that no valid touch signal is detected, switching, by the host, to an async idle mode, and sending a first command for switching to the async idle mode to the touch chip; and switching, by the touch chip, to the async idle mode according to the first command, wherein in the async idle mode, the touch chip controls the touch panel to perform two-dimensional data scanning at the first frequency to obtain second scanned data, and sends the second scanned data to the host at a second frequency; the second frequency is less than the first frequency; and the second scanned data is used for detecting the touch position.
- 2 . The method according to claim 1 , wherein after the switching, by the host, to an async idle mode, the method further comprises: sending, by the host, a first notification to the touch chip, wherein the first notification is used for instructing, when the touch chip detects no valid conductor signal within first time after receiving the first notification, the touch chip to switch to an idle mode after the first time.
- 3 . The method according to claim 2 , wherein the method further comprises: in the async idle mode, when the touch chip detects no valid conductor signal within the first time after receiving the first notification, switching, by the touch chip, to the idle mode; and in the idle mode, controlling, by the touch chip, the touch panel to perform low-power scanning at the first frequency to obtain third scanned data, and sending the third scanned data to the host at the second frequency, wherein the third scanned data is used for detecting whether there is a conductor approaching a screen.
- 4 . The method according to claim 3 , wherein after the switching, by the touch chip, to the idle mode, the method further comprises: in the idle mode, when the touch chip detects a valid conductor signal, switching, by the touch chip, to the active mode, and sending fourth scanned data acquired in the active mode and an active mode identifier to the host, wherein the fourth scanned data is used for detecting the touch position; and switching, by the host, to the active mode according to the active mode identifier, and determining the touch position according to the fourth scanned data.
- 5 . The method according to claim 2 , wherein the method further comprises: in the async idle mode, when the touch chip detects a valid conductor signal within the first time after receiving the first notification, switching, by the touch chip, to the active mode, and sending fourth scanned data acquired in the active mode and an active mode identifier to the host, wherein the fourth scanned data is used for detecting the touch position; and switching, by the host, to the active mode according to the active mode identifier, and determining the touch position according to the fourth scanned data.
- 6 . The method according to claim 3 , wherein the low-power scanning is self-capacitance scanning or mutual-capacitance scanning.
- 7 . The method according to claim 1 , wherein the first frequency is 120 HZ or 240 HZ, and the second frequency is 1 HZ.
- 8 . An electronic device, comprising: a touch chip, a touch panel, and a host, wherein the touch chip is configured to: in an active mode, control the touch panel to perform two-dimensional data scanning at a first frequency to obtain first scanned data, wherein the first scanned data is used for detecting a touch position; send the first scanned data to the host at the first frequency; receive a first command sent by the host for switching to an async idle mode, wherein the first command is sent when the host determines, according to the first scanned data, that no valid touch signal is detected and the touch chip switches to the async idle mode; and switch to the async idle mode according to the first command, wherein in the async idle mode, the touch chip controls the touch panel to perform two-dimensional data scanning at the first frequency to obtain second scanned data, and sends the second scanned data to the host at a second frequency; the second frequency is less than the first frequency; and the second scanned data is used for detecting the touch position.
- 9 . The electronic device according to claim 8 , wherein after the sending, by the touch chip, the first scanned data to the host at the first frequency, the touch chip is further configured to: receive a first notification sent by the host, wherein the first notification is used for instructing, when the touch chip detects no valid conductor signal within first time after receiving the first notification, the touch chip to switch to an idle mode after the first time.
- 10 . The electronic device according to claim 9 , wherein the touch chip is further configured to: in the async idle mode, when the touch chip detects no valid conductor signal within the first time after receiving the first notification, switch to the idle mode; and in the idle mode, control the touch panel to perform low-power scanning at the first frequency to obtain third scanned data, and send the third scanned data to the host at the second frequency, wherein the third scanned data is used for detecting whether there is a conductor approaching a screen.
- 11 . The electronic device according to claim 10 , wherein after the switching, by the touch chip, to the idle mode, the touch chip is further configured to: in the idle mode, when the touch chip detects a valid conductor signal, switch to the active mode, and send fourth scanned data acquired in the active mode and an active mode identifier to the host, wherein the fourth scanned data is used for detecting the touch position to cause the host to switch to the active mode according to the active mode identifier and determine the touch position according to the fourth scanned data.
- 12 . The electronic device according to claim 9 , wherein the touch chip is further configured to: in the async idle mode, when the touch chip detects a valid conductor signal within the first time after receiving the first notification, switch to the active mode, and send fourth scanned data acquired in the active mode and an active mode identifier to the host, wherein the fourth scanned data is used for detecting the touch position to cause the host to switch to the active mode according to the active mode identifier and determine the touch position according to the fourth scanned data.
- 13 . An electronic device, comprising: a touch chip, a touch panel, and a host, wherein the host executed by a processor is configured to: in an active mode, receive first scanned data sent by the touch chip, wherein the first scanned data is scanned data obtained by the touch chip controlling, in the active mode, the touch panel to perform two-dimensional data scanning at a first frequency, and the first scanned data is used for detecting a touch position; determine according to the first scanned data, whether a valid touch signal is detected; when no valid touch signal is detected, switch to an async idle mode; and send to the touch chip, a first command for switching to the async idle mode to cause the touch chip to switch to the async idle mode according to the first command, wherein in the async idle mode, the touch chip controls the touch panel to perform two-dimensional data scanning at the first frequency to obtain second scanned data, and sends the second scanned data to the host at a second frequency; the second frequency is less than the first frequency; and the second scanned data is used for detecting the touch position.
- 14 . The electronic device according to claim 13 , wherein after the switching, by the host, to an async idle mode, the host is further configured to: send a first notification to the touch chip, wherein the first notification is used for instructing, when the touch chip detects no valid conductor signal within first time after receiving the first notification, the touch chip to switch to an idle mode after the first time.
- 15 . The electronic device according to claim 14 , wherein the host is further configured to: receive fourth scanned data and an active mode identifier sent by the touch chip, wherein the fourth scanned data and the active mode identifier are sent when the touch chip detects a valid conductor signal in the idle mode and the touch chip switches to the active mode; and switch to the active mode according to the active mode identifier, and determining the touch position according to the fourth scanned data.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS This application is a national stage of International Application No. PCT/CN2023/116947, filed on Sep. 5, 2023, which claims priority to Chinese Patent Application No. 202211239886.6, filed on Oct. 11, 2022, both of which are incorporated herein by reference in their entireties. TECHNICAL FIELD This application relates to the field of terminal devices, and particularly relates to a touch system control methods and an electronic device. BACKGROUND At present, touch is a main way for human-computer interactions in an electronic device. A user inputs information to the electronic device by performing a touch operation on a display screen of the electronic device. A touch system in the electronic device is frequently used. Therefore, power consumption of the touch system has a significant impact on the overall power consumption of the electronic device, and also has a significant impact on the standby time of the electronic device. SUMMARY In order to solve the above technical problems, this application provides a touch system control method and an electronic device. When no valid touch signal is detected, an original scanning frequency of a touch chip in the electronic device is kept, a data reporting frequency is reduced, and a data processing frequency of a host is reduced to reduce the power consumption of the host, thereby reducing the overall power consumption of the electronic device. According to a first aspect, this application provides a touch system control method. The method is applied to an electronic device. The electronic device includes a touch chip, a touch panel, and a host. The method includes: in an active mode, controlling, by a touch chip, a touch panel to perform two-dimensional data scanning at a first frequency to obtain first scanned data, where the first scanned data is used for detecting a touch position; sending, by the touch chip, the first scanned data to the host at the first frequency; when the host determines, according to the first scanned data, that no valid touch signal is detected on a screen of the electronic device, switching, by the host, to an async idle mode and sending a first command for switching to the async idle mode to the touch chip; and switching, by the touch chip, to the async idle mode according to the first command, where in the async idle mode, the touch chip controls the touch panel to perform two-dimensional data scanning at the first frequency to obtain second scanned data, and sends the second scanned data to the host at a second frequency; the second frequency is less than the first frequency; and the second scanned data is used for detecting the touch position In this way, when no valid touch signal is detected, an original scanning frequency of the touch chip in the electronic device is kept, a data reporting frequency is reduced, and a data processing frequency of the host is reduced to reduce the power consumption of the host, thereby reducing the overall power consumption of the electronic device. According to the first aspect, after the switching, by the host, to an async idle mode, the method further includes: sending, by the host, a first notification to the touch chip, where the first notification is used for instructing, when the touch chip detects no valid conductor signal within first time after receiving the first notification, the touch chip to switch to an idle mode after the first time. According to the first aspect, the method further includes: in the async idle mode, when the touch chip detects no valid conductor signal within the first time after the receiving the first notification, switching, by the touch chip, to the idle mode; and in the idle mode, controlling, by the touch chip, the touch panel to perform low-power scanning at the first frequency to obtain third scanned data, and sending the third scanned data to the host at the second frequency, where the third scanned data is used for detecting whether there is a conductor approaching the screen. According to the first aspect, after the switching, by the touch chip, to the idle mode, the method further includes: in the idle mode, when the touch chip detects a valid conductor signal, switching, by the touch chip, to the active mode, and sending fourth scanned data acquired in the active mode and an active mode identifier to the host, where the fourth scanned data is used for detecting the touch position; and switching, by the host, to the active mode according to the active mode identifier, and determining the touch position according to the fourth scanned data. According to the first aspect, the method further includes: in the async idle mode, when the touch chip detects a valid conductor signal within the first time after receiving the first notification, switching, by the touch chip, to the active mode, and sending fourth scanned data acquired in the active mode and an active mode identifier to the host, where the fourth scanned data