WO2013174328A1 - 一种触摸屏扫描频率的调整方法及电子终端 - Google Patents

一种触摸屏扫描频率的调整方法及电子终端 Download PDF

Info

Publication number
WO2013174328A1
WO2013174328A1 PCT/CN2013/079931 CN2013079931W WO2013174328A1 WO 2013174328 A1 WO2013174328 A1 WO 2013174328A1 CN 2013079931 W CN2013079931 W CN 2013079931W WO 2013174328 A1 WO2013174328 A1 WO 2013174328A1
Authority
WO
WIPO (PCT)
Prior art keywords
frequency
switching
charger
touch screen
scanning
Prior art date
Application number
PCT/CN2013/079931
Other languages
English (en)
French (fr)
Inventor
宁金星
李朝晖
王建成
彭科仁
赵战克
刘世伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2013174328A1 publication Critical patent/WO2013174328A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/0418Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
    • G06F3/04184Synchronisation with the driving of the display or the backlighting unit to avoid interferences generated internally

Definitions

  • the present invention relates to the field of electronic terminal technologies, and in particular, to a method for adjusting a scanning frequency of a touch screen and an electronic terminal.
  • Touch screens used in electronic terminals are mainly divided into resistive touch screens and capacitive touch screens.
  • Capacitive touch screens occupy the mainstream market due to their long life and low power consumption.
  • the capacitive touch screen is working, the touch screen is scanned at a certain scanning frequency to obtain the user's touch position, which is usually set by the manufacturer at the factory.
  • An electronic terminal having a touch screen usually has a large power consumption defect, and thus it is necessary to perform charging frequently.
  • a switching charger is a working mechanism of a switching transformer and a PWM (Pulse Width Modulation) control chip, which generates a switching frequency greater than 20K Z (kilohertz), resulting in Its own electromagnetic interference is large, and it is easy to affect other sensitive components.
  • PWM Pulse Width Modulation
  • the switching frequency of the switching charger is the same as the scanning frequency of the capacitive touch screen, the switching frequency and the scanning frequency may cause common mode interference, and the common mode interference may be coupled to the capacitor through the user's finger.
  • the capacitive touch screen may be abnormally reflected, such as being slow, reporting an error, or not responding, and cannot be used normally.
  • the present invention provides a method for adjusting a scanning frequency of a touch screen and an electronic terminal, in order to solve the problem that when an electronic terminal having a capacitive touch screen is charged by a switching charger, the switching frequency of the switching charger is consistent with the scanning frequency of the capacitive touch screen. The problem that the capacitive touch screen is abnormal and cannot be used normally.
  • the present invention provides a method for adjusting a scanning frequency of a touch screen, including: detecting a current scanning frequency of a touch screen of the electronic terminal and a switch of the switching charger when the electronic terminal is currently charging using a switching charger; Whether there is common mode interference in the frequency; when detecting that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference, acquiring the switching charger from the plurality of scanning frequencies stored in advance The switching frequency does not have a first scanning frequency of common mode interference; Adjusting a current scan frequency of the touch screen to the first scan frequency.
  • the step of acquiring, from the plurality of scan frequencies stored in advance, the first scan frequency that does not have common mode interference with the switching frequency of the switch charger comprises: sequentially selecting from a plurality of scan frequencies stored in advance a scanning frequency as a current scanning frequency of the touch screen, and detecting whether a current scanning frequency of the touch screen of the electronic terminal and a switching frequency of the switching charger have common mode interference, and the currently selected not connected to the switching charger
  • the switching frequency has a scanning frequency of common mode interference as the first scanning frequency.
  • the method for adjusting the scanning frequency of the touch screen further includes: when there is common mode interference between all the scanning frequencies stored in advance and the switching frequency of the switching charger, selecting one of the plurality of scanning frequencies stored in advance Scanning the frequency, adjusting the currently selected scanning frequency by using a preset step size, obtaining a new scanning frequency as the current scanning frequency of the touch screen, and detecting the current scanning frequency of the touch screen of the electronic terminal and charging the switch Whether the switching frequency of the device has common mode interference, a new scanning frequency that does not have common mode interference with the switching frequency of the switching charger is used as the first scanning frequency.
  • the step of detecting whether the current scanning frequency of the touch screen of the electronic terminal and the switching frequency of the switch charger have common mode interference comprises: displaying a preset calibration point; determining whether the preset calibration point is located A touch is sensed; when the touch is not sensed by the position of the preset calibration point within a predetermined time, it is determined that the current scan frequency of the touch screen and the switching frequency of the switch charger have common mode interference.
  • the step of detecting whether the scanning frequency of the touch screen of the electronic terminal and the switching frequency of the switching charger have common mode interference comprises: acquiring a switching frequency of the switching charger; determining the switching charger Whether the switching frequency is consistent with the current scanning frequency of the touch screen; when the switching frequency of the switching charger is consistent with the current scanning frequency of the touch screen, determining the current scanning frequency of the touch screen and the switching frequency of the switching charger There is common mode interference.
  • the step of acquiring the switching frequency of the switch charger comprises: detecting a type of the switch charger; determining a switching frequency of the switch charger according to a type of the switch charger.
  • the step of obtaining a first scan frequency that does not have common mode interference with a switching frequency of the switch charger from the plurality of scan frequencies stored in advance comprises: selecting, from among a plurality of scan frequencies stored in advance A scanning frequency that is inconsistent with the acquired switching frequency of the switching charger as the first scanning frequency.
  • the present invention also provides an electronic terminal, comprising: an interference detecting module, configured to detect whether a current scanning frequency of the touch screen of the electronic terminal and a switching frequency of the switching charger are when the electronic terminal is currently charging using the switching charger a common mode interference; the processing module is configured to: when detecting that the current scanning frequency of the touch screen and the switching frequency of the switch charger have common mode interference, acquire the switch from the plurality of scan frequencies stored in advance The switching frequency of the charger does not have a first scanning frequency of common mode interference; and the adjusting module is configured to adjust the current scanning frequency of the touch screen to the first scanning frequency.
  • an interference detecting module configured to detect whether a current scanning frequency of the touch screen of the electronic terminal and a switching frequency of the switching charger are when the electronic terminal is currently charging using the switching charger a common mode interference
  • the processing module is configured to: when detecting that the current scanning frequency of the touch screen and the switching frequency of the switch charger have common mode interference, acquire the switch from the plurality of scan frequencies stored in advance The switching frequency of the charger does not
  • the processing module includes: a first selecting module, configured to sequentially select a scanning frequency from a plurality of scanning frequencies stored in advance as a current scanning frequency of the touch screen, and detect a current scanning of the touch screen of the electronic terminal Whether the frequency has a common mode interference with the switching frequency of the switching charger, and the currently selected scanning frequency that does not have common mode interference with the switching frequency of the switching charger is used as the first scanning frequency.
  • a first selecting module configured to sequentially select a scanning frequency from a plurality of scanning frequencies stored in advance as a current scanning frequency of the touch screen, and detect a current scanning of the touch screen of the electronic terminal Whether the frequency has a common mode interference with the switching frequency of the switching charger, and the currently selected scanning frequency that does not have common mode interference with the switching frequency of the switching charger is used as the first scanning frequency.
  • the processing module further includes: a second selecting module, configured to: when all scanning frequencies stored in advance have common mode interference with a switching frequency of the switching charger, again from a plurality of pre-stored scanning frequencies Selecting a scanning frequency in turn, and adjusting the currently selected scanning frequency by using a preset step size, obtaining a new scanning frequency as the current scanning frequency of the touch screen, and detecting a current scanning frequency of the touch screen of the electronic terminal Whether the switching frequency of the switching charger has common mode interference, and a new scanning frequency that does not have common mode interference with the switching frequency of the switching charger is used as the first scanning frequency.
  • a second selecting module configured to: when all scanning frequencies stored in advance have common mode interference with a switching frequency of the switching charger, again from a plurality of pre-stored scanning frequencies Selecting a scanning frequency in turn, and adjusting the currently selected scanning frequency by using a preset step size, obtaining a new scanning frequency as the current scanning frequency of the touch screen, and detecting a current scanning frequency of the touch screen of the electronic terminal
  • the interference detection module includes: a display module configured to display a preset calibration point; and a touch determination module configured to determine whether the location of the preset calibration point senses a touch, when the preset is within a predetermined time When the position of the calibration point is not sensed, it is determined that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference.
  • the interference detection module includes: an acquisition module configured to acquire a switching frequency of the switch charger; and a determination module configured to determine whether a switching frequency of the switch charger is consistent with a current scanning frequency of the touch screen, When the switching frequency of the switching charger is consistent with the current scanning frequency of the touch screen, it is determined that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference.
  • the obtaining module includes a type detecting module configured to detect a type of the switch charger, and a determining module configured to determine a switching frequency of the switch charger according to a type of the switch charger.
  • the processing module includes: a third selection module, configured to select, from the plurality of scan frequencies pre-stored, a scan frequency that is inconsistent with the acquired switching frequency of the switch charger, as the first scan frequency.
  • the invention has the following beneficial effects: when the switching frequency of the switching charger used by the electronic terminal and the scanning frequency of the touch screen of the electronic terminal generate common mode interference, the scanning of the touch screen of the electronic terminal can be adjusted according to a plurality of scanning frequencies stored in advance The frequency frequency enables the scanning frequency of the touch screen of the electronic terminal to adapt to the switching frequency of various types of switching chargers, so that the electronic terminal can also normally use the touch screen during charging.
  • FIG. 1 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to Embodiment 2 of the present invention
  • 3 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to a third embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to Embodiment 4 of the present invention
  • FIG. 6 is a functional block diagram of an electronic terminal according to an embodiment of the present invention.
  • Embodiment 1 as shown in FIG. 1 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to Embodiment 1 of the present invention.
  • the method is applied to an electronic terminal having a capacitive touch screen, and the electronic terminal may be a mobile phone, a tablet computer, or the like.
  • the method includes the following steps: Step 101: Detect whether the electronic terminal is currently charging using a switch charger, and if yes, perform step 102, otherwise, end.
  • the switch charger is a working mechanism of a switching transformer and a PWM control chip, and generates a switching frequency when operating.
  • Step 102 When the electronic terminal is currently charging with the switch charger, detecting whether the scanning frequency of the touch screen of the electronic terminal and the switching frequency of the switch charger have common mode interference, and if yes, performing step 102, otherwise, ending. When there is common mode interference between the scanning frequency of the touch screen and the switching frequency of the switch charger, the touch screen may exhibit abnormal conditions such as slowness of reporting, reporting errors, or non-response, so that the user cannot use the device normally.
  • Step 103 Acquire, from among a plurality of scan frequencies stored in advance, a first scan frequency that does not have common mode interference with a switching frequency of the switch charger.
  • Step 104 Adjust a current scanning frequency of the touch screen to a first scanning frequency.
  • the touch screen of the electronic terminal may be adjusted according to the plurality of scan frequencies stored in advance.
  • the frequency of the sweeping frequency enables the scanning frequency of the touch screen of the electronic terminal to adapt to the switching frequency of the plurality of types of switching chargers, so that the electronic terminal can also normally use the touch screen during charging.
  • whether the scanning frequency of the touch screen of the electronic terminal and the switching frequency of the switch charger have common mode interference can be detected in various manners.
  • the user interface interacts with the user to confirm whether the touch screen is abnormal (that is, whether the scanning frequency of the touch screen and the switching frequency of the switch charger have common mode interference).
  • multiple preset calibrations can be displayed on the user interface. Point, the user touches the plurality of preset calibration points, and the electronic terminal determines whether the position of the preset calibration point is sensed in the preset time. If the position of the preset calibration point does not sense the touch within the preset time, the touch screen is determined. An abnormality occurs (ie, the scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference).
  • FIG. 2 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to Embodiment 2 of the present invention.
  • the method is applied to an electronic terminal having a capacitive touch screen, and the electronic terminal may be a mobile phone, a tablet computer, or the like.
  • the method includes the following steps: Step 201: Detect whether the electronic terminal is currently charging using a switch charger, and if yes, perform step 202, otherwise, end.
  • Step 202 Display a preset calibration point.
  • the number of preset calibration points is at least one.
  • the accuracy is preferably set to multiple.
  • one calibration point can be displayed at each of the four corners and the center position of the display screen, or the display screen can be divided into several Squares of equal area, each square as a calibration point; and so on.
  • the display screen is overlapped with the touch screen, and the touch screen is disposed above the display screen.
  • Step 203 Determine whether the location of the preset calibration point senses a touch, and if yes, end, otherwise step 204 is performed. There are two cases in which the position of the preset calibration point is not sensed. One is that the user's touch point does not correspond to the position of the calibration point, and the other is that no touch is detected within the preset time.
  • Step 204 Obtain a first scan frequency that does not have common mode interference with a switching frequency of the switch charger from among a plurality of scan frequencies stored in advance.
  • Step 205 Adjust a current scan frequency of the touch screen to a first scan frequency.
  • the switching frequency of the switching charger can be obtained by acquiring the switching frequency of the switching charger. The switching frequency of the charger is compared with the current scanning frequency of the touch screen. When the switching frequency of the switching charger is consistent with the current scanning frequency of the touch screen, it is determined that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference.
  • FIG. 3 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to Embodiment 3 of the present invention. The method is applied to an electronic terminal having a capacitive touch screen, and the electronic terminal may be a mobile phone, a tablet computer, or the like.
  • Step 301 Detect whether the electronic terminal is currently charging using a switch charger, and if yes, perform step 302, otherwise, end.
  • Step 302 Acquire a switching frequency of the switch charger.
  • Step 303 Determine whether the switching frequency of the switch charger is consistent with the current scanning frequency of the touch screen of the electronic terminal. If yes, go to step 304, otherwise, end. If the switching frequency of the switching charger is consistent with the current scanning frequency of the touch screen of the electronic terminal, it is determined that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference.
  • Step 304 Obtain a first scan frequency that does not have common mode interference with a switching frequency of the switch charger from among a plurality of scan frequencies stored in advance.
  • Step 305 Adjust the current scanning frequency of the touch screen to a first scanning frequency.
  • the switching frequency of the switching charger can be determined by detecting the type of the switching charger.
  • the switch charger interface is a USB (Universal Serial BUS) interface as an example.
  • the pin 4 pin of the USB interface is a vacant pin, and the pin 4 pin output of different types of switch chargers can be output.
  • the voltage is set differently.
  • the type of the switch charger can be detected by detecting the voltage on the pin 4 pin of the USB port of the switch charger, and at the same time, different types can be stored in the electronic terminal.
  • the switching charger corresponds to the switching frequency, thereby obtaining the switching frequency of the switching charger according to the type of the detected switching charger.
  • the switching frequency of the switching charger is not excluded by other means.
  • a scanning frequency that does not have common mode interference with a switching frequency of the switching charger may be obtained from a plurality of scanning frequencies pre-stored by the electronic terminal in various manners, for example, pre-stored from the electronic terminal.
  • FIG. 4 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to Embodiment 4 of the present invention. The method is applied to an electronic terminal having a capacitive touch screen, and the electronic terminal may be a mobile phone, a tablet computer, or the like.
  • Step 401 Detect whether the electronic terminal is currently charging using a switch charger, and if yes, perform step 402, otherwise, end.
  • Step 402 Display a preset calibration point, and determine whether the location of the preset calibration point senses a touch, and if yes, end, otherwise step 403 is performed. If the location of the preset calibration point does not sense the touch, it is determined that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference.
  • Step 403 sequentially select a scan frequency from the plurality of scan frequencies stored in advance as the current scan frequency of the touch screen of the electronic terminal.
  • Step 404 Display a preset calibration point, and determine whether the location of the preset calibration point senses a touch, and if so, end, otherwise return to step 403.
  • a scan frequency that is not currently selected may be selected from a plurality of scan frequencies in advance in any manner.
  • a plurality of scan frequencies stored in advance are 80khz, 140 khz, 200 khz, 260 khz and 300khz can be selected starting from the minimum scanning frequency (80khz), or they can be selected from the maximum scanning frequency GOOkhz), or they can be selected at will.
  • Step 406 Adjust a current scan frequency of the touch screen to the currently selected sweep frequency.
  • the manner in which the user interface interacts with the user determines whether the current scanning frequency of the touch screen and the switching frequency of the switch charger have common mode interference, and the current scanning frequency and the switch of the touch screen. Whether there is common mode interference in the switching frequency of the charger, selecting a scanning frequency from the plurality of scanning frequencies stored in advance as the current scanning frequency of the touch screen, and then interacting with the user through the user interface again to determine the current scanning frequency of the touch screen and Whether there is common mode interference at the switching frequency of the switching charger, the above operation is repeated until a scanning frequency that does not have common mode interference with the switching frequency of the switching charger is found from a plurality of scanning frequencies stored in advance.
  • the scan frequency that does not have common mode interference with the switching frequency of the switch charger may be obtained from the plurality of scan frequencies pre-stored by the electronic terminal by other means, for example, when the switch charger is used.
  • the switching frequency is determined to determine whether the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference
  • the switching frequency of the obtained switching charger may be directly selected from the plurality of scanning frequencies stored in advance.
  • the scanning frequency as the current scanning frequency of the touch screen.
  • the stored scanning frequency can be adjusted by an appropriate step size to obtain a new scanning frequency.
  • FIG. 5 is a schematic flowchart of a method for adjusting a scanning frequency of a touch screen according to Embodiment 5 of the present invention.
  • the method is applied to an electronic terminal having a capacitive touch screen, and the electronic terminal may be a mobile phone, a tablet computer, or the like.
  • the method includes the following steps: Step 501: Detect whether the electronic terminal is currently charging using the switch charger. If yes, go to step 502, otherwise, end.
  • Step 502 Display a preset calibration point, and determine whether the location of the preset calibration point senses a touch, and if yes, end, otherwise step 503 is performed.
  • Step 503 Select a scan frequency from the plurality of scan frequencies stored in advance as the current scan frequency of the touch screen.
  • Step 504 Display a preset calibration point, and determine whether the location of the preset calibration point senses a touch, and if yes, end, otherwise step 505 is performed.
  • Step 505 Determine whether a plurality of pre-stored scanning frequencies have been selected. If yes, go to step 506, otherwise, return to step 506.
  • Step 506 Select a scan frequency from the plurality of scan frequencies stored in advance, and adjust the currently selected scan frequency by using a preset step size to obtain a new scan frequency as the current scan frequency of the touch screen.
  • the value of the step size can be set as desired, for example +5khz, or -5khz.
  • Step 507 Display a preset calibration point, and determine whether the location of the preset calibration point senses a touch, and if so, end, otherwise return to step 506.
  • each operation in the above embodiment may be performed by an AP (Application Processor) in the electronic terminal.
  • AP Application Processor
  • the present invention further provides an electronic terminal, including: an interference detecting module, configured to detect a current scanning frequency of the touch screen of the electronic terminal and the switch when the electronic terminal is currently charging using a switch charger Whether there is common mode interference in the switching frequency of the charger;
  • the processing module is configured to: when detecting that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference, obtain a switching frequency from the switching charger from among a plurality of scanning frequencies stored in advance There is no first scanning frequency of common mode interference; the adjusting module is configured to adjust the current scanning frequency of the touch screen to the first scanning frequency.
  • the touch screen of the electronic terminal when the switching frequency of the used switch charger and the frequency of the touch screen of the electronic terminal generate common mode interference, the touch screen of the electronic terminal can be adjusted according to a plurality of scanning frequencies stored in advance.
  • the frequency frequency enables the scanning frequency of the touch screen of the electronic terminal to adapt to the switching frequency of various types of switching chargers, so that the electronic terminal can also normally use the touch screen during charging.
  • the electronic terminal of the embodiment of the present invention can detect whether the scanning frequency of the touch screen and the switching frequency of the switch charger have common mode interference in various manners. For example, when the electronic terminal detects the charging of the switch charger, the user interface is used.
  • How to interact with the user to confirm whether the touch screen is abnormal ie, whether the scanning frequency of the touch screen and the switching frequency of the switch charger have common mode interference.
  • multiple preset calibration points can be displayed on the user interface, and the user touches The plurality of preset calibration points, the electronic terminal determines whether the position of the preset calibration point is sensed in the preset time, and if the position of the preset calibration point does not sense the touch within the preset time, determining that the touch screen is abnormal (ie, the touch screen There is a common mode interference between the scanning frequency and the switching frequency of the switch charger.
  • the interference detection module in the above embodiment may include: a display module configured to display a preset calibration point; and a touch determination module configured to determine whether the location of the preset calibration point senses a touch, when at a predetermined time When the position of the preset calibration point is not sensed, it is determined that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference.
  • the electronic terminal in the embodiment of the present invention may further detect whether the scanning frequency of the touch screen and the switching frequency of the switch charger have common mode interference.
  • the obtained switch may be charged by acquiring the switching frequency of the switch charger.
  • the switching frequency of the device is compared with the current scanning frequency of the touch screen.
  • the switching frequency of the switching charger is consistent with the current scanning frequency of the touch screen, it is determined that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference.
  • Performing an adjustment operation of the scanning frequency of the touch screen when the switching frequency of the switching charger is inconsistent with the current scanning frequency of the touch screen, determining that the current scanning frequency of the touch screen and the switching frequency of the switching charger do not have common mode interference, and the touch screen is not required at this time. Scan frequency adjustment operation.
  • the interference detecting module in the foregoing embodiment may further include: an acquiring module, configured to acquire a switching frequency of the switching charger; and a determining module, configured to determine a switching frequency of the switching charger and a current touch screen Whether the scanning frequency is consistent, when the switching frequency of the switching charger is consistent with the current scanning frequency of the touch screen, it is determined that the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference.
  • the acquiring module may determine a switching frequency of the switching charger by detecting a type of the switching charger.
  • the obtaining module may include: a type detecting module configured to detect a type of the switch charger; and a determining module configured to determine a switching frequency of the switch charger according to a type of the switch charger.
  • a scanning frequency that does not have common mode interference with a switching frequency of the switching charger may be obtained from a plurality of scanning frequencies pre-stored by the electronic terminal in various manners, for example, pre-stored from the electronic terminal.
  • a scanning frequency is selected as the current scanning frequency of the touch screen, and whether the current scanning frequency of the touch screen and the switching frequency of the switching charger have a common mode interference, and the currently selected switching frequency of the switching charger does not exist.
  • the scanning frequency of the common mode interference is used as the current scanning frequency of the touch screen.
  • the processing module in the foregoing embodiment may include: a first selecting module, configured to sequentially select a scanning frequency from a plurality of scanning frequencies stored in advance as a current scanning frequency of the touch screen, and detect the electronic terminal Whether the current scanning frequency of the touch screen and the switching frequency of the switching charger have common mode interference, and the currently selected scanning frequency that does not have common mode interference with the switching frequency of the switching charger is used as the first scanning frequency.
  • the first selection module can detect whether the current scanning frequency of the touch screen of the electronic terminal and the switching frequency of the switch charger exist by means of a user interface interacting with the user (ie, setting a preset calibration point) Common mode interference.
  • the stored scanning frequency can be adjusted by an appropriate step size to obtain a new scanning frequency, and the detection is performed. Whether the new scanning frequency is a scanning frequency that does not have common mode interference with the switching frequency of the switching charger.
  • the processing module in the foregoing embodiment may further include: a second selecting module, configured to re-store from the pre-stored when all the scanning frequencies stored in advance have common mode interference with the switching frequency of the switching charger Selecting a scanning frequency from the plurality of scanning frequencies, and adjusting the currently selected scanning frequency by using a preset step size, obtaining a new scanning frequency as the current scanning frequency of the touch screen, and detecting the current touch screen of the electronic terminal Whether the scanning frequency has a common mode interference with the switching frequency of the switching charger, and a new scanning frequency that does not have common mode interference with the switching frequency of the switching charger is used as the first scanning frequency.
  • a second selecting module configured to re-store from the pre-stored when all the scanning frequencies stored in advance have common mode interference with the switching frequency of the switching charger Selecting a scanning frequency from the plurality of scanning frequencies, and adjusting the currently selected scanning frequency by using a preset step size, obtaining a new scanning frequency as the current scanning frequency of the touch screen, and detecting the current touch screen of
  • the second selection module can also detect the current scanning frequency of the touch screen of the electronic terminal and the switching frequency of the switch charger by means of a user interface interacting with the user (ie, setting a preset calibration point) There is common mode interference.
  • the scan frequency that does not have common mode interference with the switching frequency of the switch charger may be obtained from the plurality of scan frequencies pre-stored by the electronic terminal by other means, for example, when the switch charger is used.
  • the switching frequency of the obtained switching charger can be directly selected from a plurality of scanning frequencies stored in advance. Inconsistent scan frequency, as the current scan frequency of the touch screen.
  • the processing module in the foregoing embodiment may further include: a third selecting module, configured to select, from a plurality of scanning frequencies stored in advance, a scanning frequency that is inconsistent with the acquired switching frequency of the switching charger, As the first scanning frequency.
  • a third selecting module configured to select, from a plurality of scanning frequencies stored in advance, a scanning frequency that is inconsistent with the acquired switching frequency of the switching charger, As the first scanning frequency.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Telephone Function (AREA)

Abstract

本发明提供一种触摸屏扫描频率的调整方法及电子终端,该方法包括:当电子终端当前使用开关充电器进行充电时,检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开关频率是否存在共模干扰;当检测到所述触摸屏当前的扫描频率与所述开关充电器的开关频率存在共模干扰时,从预先存储的多个扫描频率中,获取与所述开关充电器的开关频率不存在共模干扰的第一扫描频率;将所述触摸屏当前的扫描频率调整为所述第一扫描频率。本发明的电子终端触摸屏的扫描频率可以自适应多种类型的开关充电器的开关频率,从而达到在电子终端充电时也可以正常使用触摸屏的目的。

Description

一种触摸屏扫描频率的调整方法及电子终端 技术领域 本发明涉及电子终端技术领域, 尤其涉及一种触摸屏扫描频率的调整方法及电子 终端。 背景技术 电子终端 (如手机、 平板电脑等) 使用的触摸屏主要分为电阻触摸屏和电容触摸 屏, 电容触摸屏由于其寿命长、 功耗低等优势, 占据主流市场。 电容触摸屏工作时, 会以一定的扫描频率对触摸屏进行扫描, 以获取用户的触摸位置, 该扫描频率通常是 由厂商出厂时设置。 具有触摸屏的电子终端通常存在耗电大的缺陷, 因此需要经常进行充电。 目前绝 大多数电子终端使用的是充电器为开关充电器,开关充电器是开关变压器和 PWM (脉 冲宽度调制)控制芯片的工作机制, 其产生的开关频率大于 20K Z (千赫兹), 从而导 致其本身的电磁干扰较大, 容易对别的敏感部件造成影响。 当具有电容触摸屏的电子 终端使用开关充电器充电时, 如果开关充电器的开关频率和电容触摸屏的扫描频率一 致, 开关频率和扫描频率会产生共模干扰, 共模干扰可以通过用户手指耦合到电容触 摸屏上, 导致电容触摸屏出现反映迟钝、 报点错误或者不反应等异常状况, 无法正常 使用。 发明内容 有鉴于此, 本发明提供一种触摸屏扫描频率的调整方法及电子终端, 以解决具有 电容触摸屏的电子终端使用开关充电器充电时, 由于开关充电器的开关频率和电容触 摸屏的扫描频率一致而导致电容触摸屏异常, 无法正常使用的问题。 为解决上述问题, 本发明提供一种触摸屏扫描频率的调整方法, 包括: 当电子终端当前使用开关充电器进行充电时, 检测所述电子终端的触摸屏当前的 扫描频率与所述开关充电器的开关频率是否存在共模干扰; 当检测到所述触摸屏当前的扫描频率与所述开关充电器的开关频率存在共模干扰 时, 从预先存储的多个扫描频率中, 获取与所述开关充电器的开关频率不存在共模干 扰的第一扫描频率; 将所述触摸屏当前的扫描频率调整为所述第一扫描频率。 优选的, 所述从预先存储的多个扫描频率中, 获取与所述开关充电器的开关频率 不存在共模干扰的第一扫描频率的步骤包括: 从预先存储的多个扫描频率中依次选取一扫描频率作为所述触摸屏当前的扫描频 率, 并检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开关频率是否 存在共模干扰, 将当前选取的不与所述开关充电器的开关频率存在共模干扰的扫描频 率作为所述第一扫描频率。 优选的, 所述触摸屏扫描频率的调整方法还包括: 当预先存储的所有扫描频率均与所述开关充电器的开关频率存在共模干扰时, 再 次从预先存储的多个扫描频率中依次选取一扫描频率, 并采用预设步长调整所述当前 选取的扫描频率, 得到一新的扫描频率作为所述触摸屏当前的扫描频率, 并检测所述 电子终端的触摸屏当前的扫描频率与所述开关充电器的开关频率是否存在共模干扰, 将不与所述开关充电器的开关频率存在共模干扰的新的扫描频率作为所述第一扫描频 率。 优选的, 所述检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开 关频率是否存在共模干扰的步骤包括: 显示预设校准点; 判断所述预设校准点所在位置是否感应到触摸; 当在预定时间内所述预设校准点所在位置未感应到触摸时, 判定所述触摸屏当前 的扫描频率与所述开关充电器的开关频率存在共模干扰。 优选的, 所述检测所述电子终端的触摸屏的扫描频率与所述开关充电器的开关频 率是否存在共模干扰的步骤包括: 获取所述开关充电器的开关频率; 判断所述开关充电器的开关频率与所述触摸屏当前的扫描频率是否一致; 当所述开关充电器的开关频率与所述触摸屏当前的扫描频率一致时, 判定所述触 摸屏当前的扫描频率与所述开关充电器的开关频率存在共模干扰。 优选的, 所述获取所述开关充电器的开关频率的步骤包括: 检测所述开关充电器的类型; 根据所述开关充电器的类型, 确定所述开关充电器的开关频率。 优选的, 所述从预先存储的多个扫描频率中, 获取与所述开关充电器的开关频率 不存在共模干扰的第一扫描频率的步骤包括: 从预先存储的多个扫描频率中, 选取与获取到的所述开关充电器的开关频率不一 致的扫描频率, 作为所述第一扫描频率。 本发明还提供一种电子终端, 包括: 干扰检测模块, 设置为当电子终端当前使用开关充电器进行充电时, 检测所述电 子终端的触摸屏当前的扫描频率与所述开关充电器的开关频率是否存在共模干扰; 处理模块, 设置为当检测到所述触摸屏当前的扫描频率与所述开关充电器的开关 频率存在共模干扰时, 从预先存储的多个扫描频率中, 获取与所述开关充电器的开关 频率不存在共模干扰的第一扫描频率; 调整模块, 设置为将所述触摸屏当前的扫描频率调整为所述第一扫描频率。 优选的, 所述处理模块包括: 第一选取模块, 设置为从预先存储的多个扫描频率中依次选取一扫描频率作为所 述触摸屏当前的扫描频率, 并检测所述电子终端的触摸屏当前的扫描频率与所述开关 充电器的开关频率是否存在共模干扰, 将当前选取的不与所述开关充电器的开关频率 存在共模干扰的扫描频率作为所述第一扫描频率。 优选的, 所述处理模块还包括: 第二选取模块, 设置为当预先存储的所有扫描频率均与所述开关充电器的开关频 率存在共模干扰时, 再次从预先存储的多个扫描频率中依次选取一扫描频率, 并采用 预设步长调整所述当前选取的扫描频率, 得到一新的扫描频率作为所述触摸屏当前的 扫描频率, 并检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开关频 率是否存在共模干扰, 将不与所述开关充电器的开关频率存在共模干扰的新的扫描频 率作为所述第一扫描频率。 优选的, 所述干扰检测模块包括: 显示模块, 设置为显示预设校准点; 触摸判断模块, 设置为判断所述预设校准点所在位置是否感应到触摸, 当在预定 时间内所述预设校准点所在位置未感应到触摸时, 判定所述触摸屏当前的扫描频率与 所述开关充电器的开关频率存在共模干扰。 优选的, 所述干扰检测模块包括- 获取模块, 设置为获取所述开关充电器的开关频率; 判断模块, 设置为判断所述开关充电器的开关频率与所述触摸屏当前的扫描频率 是否一致, 当所述开关充电器的开关频率与所述触摸屏当前的扫描频率一致时, 判定 所述触摸屏当前的扫描频率与所述开关充电器的开关频率存在共模干扰。 优选的, 所述获取模块包括- 类型检测模块, 设置为检测所述开关充电器的类型; 确定模块, 设置为根据所述开关充电器的类型,确定所述开关充电器的开关频率。 优选的, 所述处理模块包括: 第三选取模块, 设置为从预先存储的多个扫描频率中, 选取与获取到的所述开关 充电器的开关频率不一致的扫描频率, 作为所述第一扫描频率。 本发明具有以下有益效果: 当电子终端使用的开关充电器的开关频率与电子终端的触摸屏的扫频频率产生共 模干扰时, 可以根据预先存储的多个扫描频率, 调整电子终端的触摸屏的扫频频率, 使得电子终端触摸屏的扫描频率可以自适应多种类型的开关充电器的开关频率, 从而 使得电子终端在充电时也可以正常使用触摸屏的目的。 附图说明 图 1为本发明实施例一的触摸屏扫描频率的调整方法的流程示意图; 图 2为本发明实施例二的触摸屏扫描频率的调整方法的流程示意图; 图 3为本发明实施例三的触摸屏扫描频率的调整方法的流程示意图; 图 4为本发明实施例四的触摸屏扫描频率的调整方法的流程示意图; 图 5为本发明实施例五的触摸屏扫描频率的调整方法的流程示意图; 以及 图 6为本发明实施例的电子终端的一功能框图。 具体实施方式 下面结合附图和实施例, 对本发明的具体实施方式作进一步详细描述。 实施例一: 如图 1所示为本发明实施例一的触摸屏扫描频率的调整方法的流程示意图, 该方 法应用于一具有电容触摸屏的电子终端, 该电子终端可以为手机、 平板电脑等, 该方 法包括以下步骤: 步骤 101, 检测电子终端当前是否使用开关充电器充电, 如果是, 执行步骤 102, 否则, 结束。 该开关充电器是开关变压器和 PWM控制芯片的工作机制, 工作时产生一开关频 率。 步骤 102, 当电子终端当前使用开关充电器充电时, 检测电子终端的触摸屏的扫 描频率与开关充电器的开关频率是否存在共模干扰, 如果是, 执行步骤 102, 否则, 结束。 当触摸屏的扫描频率与开关充电器的开关频率存在共模干扰时, 触摸屏会出现反 映迟钝、 报点错误或者不反应等异常状况, 使得用户无法正常使用。 步骤 103, 从预先存储的多个扫描频率中, 获取与开关充电器的开关频率不存在 共模干扰的第一扫描频率。 电子终端的触摸屏工作时, 会以一定的扫描频率对触摸屏进行扫描, 以获取用户 的触摸位置, 本实施例中, 在电子终端中预先存储多个可用的扫描频率, 当触摸屏的 扫描频率与开关充电器的开关频率存在共模干扰时, 可以从预先存储多个可用的扫描 频率中, 选取与开关充电器的开关频率不存在共模干扰的扫描频率作为触摸屏当前的 扫描频率。 步骤 104, 将触摸屏当前的扫描频率调整为第一扫描频率。 通过上述实施例提供的方法, 当电子终端使用的开关充电器的开关频率与电子终 端的触摸屏的扫频频率产生共模干扰时, 可以根据预先存储的多个扫描频率, 调整电 子终端的触摸屏的扫频频率, 使得电子终端触摸屏的扫描频率可以自适应多种类型的 开关充电器的开关频率, 从而使得电子终端在充电时也可以正常使用触摸屏的目的。 本发明实施例中, 可以通过多种方式检测电子终端的触摸屏的扫描频率与开关充 电器的开关频率是否存在共模干扰, 举例来说, 可以在检测到电子终端使用开关充电 器充电时, 借助用户界面 (UI) 与用户交互的方式, 确认触摸屏是否发生异常 (即触 摸屏的扫描频率与开关充电器的开关频率是否存在共模干扰), 具体的,可以在用户界 面上显示多个预设校准点, 由用户触摸该多个预设校准点, 电子终端判断预设时间内 预设校准点所在位置是否感应到触摸, 如果预设时间内预设校准点所在位置未感应到 触摸, 则判定触摸屏发生异常 (即触摸屏的扫描频率与开关充电器的开关频率存在共 模干扰), 此时需要执行触摸屏的扫描频率的调整操作; 否则判定触摸屏正常, 此时无 需执行触摸屏的扫描频率的调整操作。 实施例二: 如图 2所示为本发明实施例二的触摸屏扫描频率的调整方法的流程示意图, 该方 法应用于一具有电容触摸屏的电子终端, 该电子终端可以为手机、 平板电脑等, 该方 法包括以下步骤: 步骤 201, 检测电子终端当前是否使用开关充电器充电, 如果是, 执行步骤 202, 否则, 结束。 步骤 202, 显示预设校准点。 预设校准点的个数为至少一个, 通常为了准确性最好设置成多个, 例如, 可以在 显示屏的四个角和中心位置上分别显示一个校准点, 或者, 将显示屏划分成若干个等 面积的方格, 每一方格作为一校准点; 等等。 本实施例中, 显示屏与触摸屏重叠设置, 触摸屏设置于显示屏的上方。 步骤 203, 判断所述预设校准点所在位置是否感应到触摸, 如果是, 结束, 否则 执行步骤 204。 预设校准点所在位置未感应到触摸包括两种情况: 一种是用户的触摸点与校准点 的位置不对应, 另一种是在预设时间内没有检测到触摸。 如果预设校准点所在位置是否感应到触摸, 则判定所述触摸屏当前的扫描频率与 所述开关充电器的开关频率存在共模干扰。 步骤 204, 从预先存储的多个扫描频率中, 获取与开关充电器的开关频率不存在 共模干扰的第一扫描频率。 步骤 205, 将触摸屏当前的扫描频率调整为第一扫描频率。 通过上述实施例提供的方法, 可以借助用户界面与用户交互的方式, 简单、 方便 地检测出电子终端的触摸屏的扫描频率与所述开关充电器的开关频率是否存在共模干 扰。 本发明实施例中, 还可以通过其他方式检测电子终端的触摸屏的扫描频率与开关 充电器的开关频率是否存在共模干扰, 举例来说, 可以通过获取开关充电器的开关频 率, 将获取的开关充电器的开关频率与触摸屏当前的扫描频率进行比较, 当开关充电 器的开关频率与触摸屏当前的扫描频率一致时, 判定触摸屏当前的扫描频率与开关充 电器的开关频率存在共模干扰, 此时需要执行触摸屏的扫描频率的调整操作; 当开关 充电器的开关频率与触摸屏当前的扫描频率不一致时, 判定触摸屏当前的扫描频率与 开关充电器的开关频率不存在共模干扰,此时无需执行触摸屏的扫描频率的调整操作。 实施例三: 如图 3所示为本发明实施例三的触摸屏扫描频率的调整方法的流程示意图, 该方 法应用于一具有电容触摸屏的电子终端, 该电子终端可以为手机、 平板电脑等, 该方 法包括以下步骤: 步骤 301, 检测电子终端当前是否使用开关充电器充电, 如果是, 执行步骤 302, 否则, 结束。 步骤 302, 获取所述开关充电器的开关频率。 步骤 303, 判断所述开关充电器的开关频率与电子终端的触摸屏当前的扫描频率 是否一致, 如果是, 执行步骤 304, 否则, 结束。 如果开关充电器的开关频率与电子终端的触摸屏当前的扫描频率一致, 则判定所 述触摸屏当前的扫描频率与所述开关充电器的开关频率存在共模干扰。 步骤 304, 从预先存储的多个扫描频率中, 获取与开关充电器的开关频率不存在 共模干扰的第一扫描频率。 步骤 305, 将触摸屏当前的扫描频率调整为第一扫描频率。 本实施例中, 可以通过检测开关充电器的类型, 来确定开关充电器的开关频率。 以开关充电器接口为 USB (Universal Serial BUS, 通用串行总线)接口为例进行说明, 目前, USB接口的 pin4管脚为空置管脚, 可以将不同类型的开关充电器的 pin4管脚 的输出电压设置为不同, 当电子终端使用开关充电器充电时, 可以通过检测开关充电 器的 USB接口的 pin4管脚上的电压, 来检测开关充电器的类型, 同时, 可以在电子 终端中存储不同类型的开关充电器对应的开关频率, 从而根据检测到的开关充电器的 类型, 获取开关充电器的开关频率。 当然, 本实施例中, 也不排除采用其他方式获取开关充电器的开关频率。 通过上述实施例提供的方法, 可以通过获取开关充电器的开关频率, 简单、 方便 地检测出电子终端的触摸屏的扫描频率与开关充电器的开关频率是否存在共模干扰。 本发明实施例中, 可以通过多种方式从电子终端预先存储的多个扫描频率中, 获 取与开关充电器的开关频率不存在共模干扰的扫描频率, 举例来说, 从电子终端预先 存储的多个扫描频率中, 依次选取一扫描频率作为触摸屏当前的扫描频率, 并检测触 摸屏当前的扫描频率与开关充电器的开关频率是否存在共模干扰, 将当前选取的不与 开关充电器的开关频率存在共模干扰的扫描频率作为触摸屏当前的扫描频率。 实施例四: 如图 4所示为本发明实施例四的触摸屏扫描频率的调整方法的流程示意图, 该方 法应用于一具有电容触摸屏的电子终端, 该电子终端可以为手机、 平板电脑等, 该方 法包括以下步骤: 步骤 401, 检测电子终端当前是否使用开关充电器充电, 如果是, 执行步骤 402, 否则, 结束。 步骤 402, 显示预设校准点, 并判断所述预设校准点所在位置是否感应到触摸, 如果是, 结束, 否则执行步骤 403。 如果预设校准点所在位置未感应到触摸, 则判定所述触摸屏当前的扫描频率与所 述开关充电器的开关频率存在共模干扰。 步骤 403, 从预先存储的多个扫描频率中依次选取一扫描频率作为电子终端的触 摸屏当前的扫描频率。 步骤 404, 显示预设校准点, 并判断所述预设校准点所在位置是否感应到触摸, 如果是, 结束, 否则返回步骤 403。 本实施例中, 可以按照任意方式, 从预先的多个扫描频率中, 选取一当前未被选 取过的扫描频率, 举例来说, 预先存储的多个扫描频率为 80khz、 140 khz 、 200 khz 、 260 khz 以及 300khz, 可以从最小的扫描频率 (80khz) 开始选取, 或者, 也可以从最 大的扫描频率 GOOkhz) 开始选取, 又或者, 也可以随意选取。 步骤 406, 将触摸屏当前的扫描频率调整为所述当前选取的扫频频率。 上述实施例中, 通过用户界面与用户交互的方式 (即设置预设校准点的方式) 判 断触摸屏当前的扫描频率与开关充电器的开关频率是否存在共模干扰, 当触摸屏当前 的扫描频率与开关充电器的开关频率是否存在共模干扰, 从预先存储的多个扫描频率 中依次选取一扫描频率作为触摸屏当前的扫描频率, 然后再次通过用户界面与用户交 互的方式, 判断触摸屏当前的扫描频率与开关充电器的开关频率是否存在共模干扰, 重复执行上述操作, 直至从预先存储的多个扫描频率中, 找出一个不与开关充电器的 开关频率存在共模干扰的扫描频率为止。 本实施例中, 还可以通过其他方式从电子终端预先存储的多个扫描频率中, 获取 与开关充电器的开关频率不存在共模干扰的扫描频率, 举例来说, 当采用获取开关充 电器的开关频率的方式, 来判定触摸屏当前的扫描频率与开关充电器的开关频率是否 存在共模干扰时, 可以从预先存储的多个扫描频率中, 直接选取与获取到的开关充电 器的开关频率不一致的扫描频率, 作为触摸屏当前的扫描频率。 上述实施例四中, 当电子终端中预先存储的所有扫描频率均与开关充电器的开关 频率存在共模干扰时, 可以通过一个适当的步长来调整存储的扫描频率, 得到新的扫 描频率, 检测该新的扫描频率是否为与开关充电器的开关频率不存在共模干扰的扫描 频率。 实施例五: 如图 5所示为本发明实施例五的触摸屏扫描频率的调整方法的流程示意图, 该方 法应用于一具有电容触摸屏的电子终端, 该电子终端可以为手机、 平板电脑等, 该方 法包括以下步骤: 步骤 501, 检测电子终端当前是否使用开关充电器充电, 如果是, 执行步骤 502, 否则, 结束。 步骤 502, 显示预设校准点, 并判断所述预设校准点所在位置是否感应到触摸, 如果是, 结束, 否则执行步骤 503。 如果预设校准点所在位置未感应到触摸, 则判定所述触摸屏当前的扫描频率与所 述开关充电器的开关频率存在共模干扰。 步骤 503, 从预先存储的多个扫描频率中选取一扫描频率作为所述触摸屏当前的 扫描频率。 步骤 504, 显示预设校准点, 并判断所述预设校准点所在位置是否感应到触摸, 如果是, 结束, 否则执行步骤 505。 步骤 505,判断预先存储的多个扫描频率是否均已被选取,如果是,执行步骤 506, 否则, 返回步骤 506。 步骤 506, 再次从预先存储的多个扫描频率中选取一扫描频率, 并采用预设步长 调整当前选取的扫描频率, 得到一新的扫描频率作为所述触摸屏当前的扫描频率。 所述步长的值可以根据需要设置, 例如为 +5khz, 或者 -5khz。 步骤 507, 显示预设校准点, 并判断所述预设校准点所在位置是否感应到触摸, 如果是, 结束, 否则返回步骤 506。 上述实施例中, 可以通过电子终端中的 AP (Application Processor, 应用处理器) 执行上述实施例中的各个操作。 需要说明的, 本发明实施例中, 还可以根据需要, 在检测到停止使用开关充电器 充电时, 将触摸屏当前的扫描频率恢复至调整前的扫频频率。 如图 6所示, 本发明还提供一种电子终端, 包括: 干扰检测模块, 设置为当电子终端当前使用开关充电器进行充电时, 检测所述电 子终端的触摸屏当前的扫描频率与所述开关充电器的开关频率是否存在共模干扰; 处理模块, 设置为当检测到所述触摸屏当前的扫描频率与所述开关充电器的开关 频率存在共模干扰时, 从预先存储的多个扫描频率中, 获取与所述开关充电器的开关 频率不存在共模干扰的第一扫描频率; 调整模块, 设置为将所述触摸屏当前的扫描频率调整为所述第一扫描频率。 通过上述实施例提供的电子终端, 当使用的开关充电器的开关频率与电子终端的 触摸屏的扫频频率产生共模干扰时, 可以根据预先存储的多个扫描频率, 调整电子终 端的触摸屏的扫频频率, 使得电子终端触摸屏的扫描频率可以自适应多种类型的开关 充电器的开关频率, 从而使得电子终端在充电时也可以正常使用触摸屏的目的。 本发明实施例的电子终端可以通过多种方式检测触摸屏的扫描频率与开关充电器 的开关频率是否存在共模干扰, 举例来说, 可以在检测到电子终端使用开关充电器充 电时, 借助用户界面与用户交互的方式, 确认触摸屏是否发生异常 (即触摸屏的扫描 频率与开关充电器的开关频率是否存在共模干扰), 具体的,可以在用户界面上显示多 个预设校准点, 由用户触摸该多个预设校准点, 电子终端判断预设时间内预设校准点 所在位置是否感应到触摸, 如果预设时间内预设校准点所在位置未感应到触摸, 则判 定触摸屏发生异常(即触摸屏的扫描频率与开关充电器的开关频率存在共模干扰),此 时需要执行触摸屏的扫描频率的调整操作; 否则判定触摸屏正常, 此时无需执行触摸 屏的扫描频率的调整操作。 基于上述描述, 上述实施例中的干扰检测模块可以包括: 显示模块, 设置为显示预设校准点; 触摸判断模块, 设置为判断所述预设校准点所在位置是否感应到触摸, 当在预定 时间内所述预设校准点所在位置未感应到触摸时, 判定所述触摸屏当前的扫描频率与 所述开关充电器的开关频率存在共模干扰。 本发明实施例中的电子终端还可以通过其他方式检测触摸屏的扫描频率与开关充 电器的开关频率是否存在共模干扰,举例来说,可以通过获取开关充电器的开关频率, 将获取的开关充电器的开关频率与触摸屏当前的扫描频率进行比较, 当开关充电器的 开关频率与触摸屏当前的扫描频率一致时, 判定触摸屏当前的扫描频率与开关充电器 的开关频率存在共模干扰, 此时需要执行触摸屏的扫描频率的调整操作; 当开关充电 器的开关频率与触摸屏当前的扫描频率不一致时, 判定触摸屏当前的扫描频率与开关 充电器的开关频率不存在共模干扰, 此时无需执行触摸屏的扫描频率的调整操作。 基于上述描述, 上述实施例中的干扰检测模块还可以包括: 获取模块, 设置为获取所述开关充电器的开关频率; 判断模块, 设置为判断所述开关充电器的开关频率与所述触摸屏当前的扫描频率 是否一致, 当所述开关充电器的开关频率与所述触摸屏当前的扫描频率一致时, 判定 所述触摸屏当前的扫描频率与所述开关充电器的开关频率存在共模干扰。 具体的, 所述获取模块可以通过检测所述开关充电器的类型, 来确定所述开关充 电器的开关频率。 即, 所述获取模块可以包括: 类型检测模块, 设置为检测所述开关充电器的类型; 以及 确定模块, 设置为根据所述开关充电器的类型,确定所述开关充电器的开关频率。 本发明实施例中, 可以通过多种方式从电子终端预先存储的多个扫描频率中, 获 取与开关充电器的开关频率不存在共模干扰的扫描频率, 举例来说, 从电子终端预先 存储的多个扫描频率中, 选取一扫描频率作为触摸屏当前的扫描频率, 并检测触摸屏 当前的扫描频率与开关充电器的开关频率是否存在共模干扰, 将当前选取的不与开关 充电器的开关频率存在共模干扰的扫描频率作为触摸屏当前的扫描频率。 基于上述描述, 上述实施例中的处理模块可以包括: 第一选取模块, 设置为从预先存储的多个扫描频率中依次选取一扫描频率作为所 述触摸屏当前的扫描频率, 并检测所述电子终端的触摸屏当前的扫描频率与所述开关 充电器的开关频率是否存在共模干扰, 将当前选取的不与所述开关充电器的开关频率 存在共模干扰的扫描频率作为所述第一扫描频率。 具体的, 所述第一选取模块可以借助用户界面与用户交互的方式 (即设置预设校 准点的凡是) 检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开关频 率是否存在共模干扰。 上述实施例中, 当电子终端中预先存储的所有扫描频率均与开关充电器的开关频 率存在共模干扰时, 可以通过一个适当的步长来调整存储的扫描频率, 得到新的扫描 频率, 检测该新的扫描频率是否为与开关充电器的开关频率不存在共模干扰的扫描频 率。 基于上述描述, 上述实施例中的处理模块还可以包括: 第二选取模块, 设置为当预先存储的所有扫描频率均与所述开关充电器的开关频 率存在共模干扰时, 再次从预先存储的多个扫描频率中依次选取一扫描频率, 并采用 预设步长调整所述当前选取的扫描频率, 得到一新的扫描频率作为所述触摸屏当前的 扫描频率, 并检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开关频 率是否存在共模干扰, 将不与所述开关充电器的开关频率存在共模干扰的新的扫描频 率作为所述第一扫描频率。 具体的, 所述第二选取模块也可以借助用户界面与用户交互的方式 (即设置预设 校准点的凡是) 检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开关 频率是否存在共模干扰。 本实施例中, 还可以通过其他方式从电子终端预先存储的多个扫描频率中, 获取 与开关充电器的开关频率不存在共模干扰的扫描频率, 举例来说, 当采用获取开关充 电器的开关频率的方式, 来判定触摸屏当前的扫描频率与开关充电器的开关频率是否 存在共模干扰时, 可以从从预先存储的多个扫描频率中, 直接选取与获取到的开关充 电器的开关频率不一致的扫描频率, 作为触摸屏当前的扫描频率。 基于上述描述, 上述实施例中的处理模块还可以包括: 第三选取模块, 设置为从预先存储的多个扫描频率中, 选取与获取到的所述开关 充电器的开关频率不一致的扫描频率, 作为所述第一扫描频率。 以上所述仅是本发明的优选实施方式, 应当指出, 对于本技术领域的普通技术人 员来说, 在不脱离本发明原理的前提下, 还可以作出若干改进和润饰, 这些改进和润 饰也应视为本发明的保护范围。

Claims

权 利 要 求 书
1. 一种触摸屏扫描频率的调整方法, 包括:
当电子终端当前使用开关充电器进行充电时, 检测所述电子终端的触摸屏 当前的扫描频率与所述开关充电器的开关频率是否存在共模干扰;
当检测到所述触摸屏当前的扫描频率与所述开关充电器的开关频率存在共 模干扰时, 从预先存储的多个扫描频率中, 获取与所述开关充电器的开关频率 不存在共模干扰的第一扫描频率;
将所述触摸屏当前的扫描频率调整为所述第一扫描频率。
2. 如权利要求 1所述的触摸屏扫描频率的调整方法, 其中, 所述从预先存储的多 个扫描频率中, 获取与所述开关充电器的开关频率不存在共模干扰的第一扫描 频率的步骤包括: 从预先存储的多个扫描频率中依次选取一扫描频率作为所述触摸屏当前的 扫描频率, 并检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的 开关频率是否存在共模干扰, 将当前选取的不与所述开关充电器的开关频率存 在共模干扰的扫描频率作为所述第一扫描频率。
3. 如权利要求 2所述的触摸屏扫描频率的调整方法, 其中, 还包括: 当预先存储的所有扫描频率均与所述开关充电器的开关频率存在共模干扰 时, 再次从预先存储的多个扫描频率中依次选取一扫描频率, 并采用预设步长 调整所述当前选取的扫描频率, 得到一新的扫描频率作为所述触摸屏当前的扫 描频率, 并检测所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开 关频率是否存在共模干扰, 将不与所述开关充电器的开关频率存在共模干扰的 新的扫描频率作为所述第一扫描频率。
4. 如权利要求 1至 3任一项所述的触摸屏扫描频率的调整方法, 其中, 所述检测 所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开关频率是否存在 共模干扰的步骤包括- 显示预设校准点;
判断所述预设校准点所在位置是否感应到触摸; 当在预定时间内所述预设校准点所在位置未感应到触摸时, 判定所述触摸 屏当前的扫描频率与所述开关充电器的开关频率存在共模干扰。
5. 如权利要求 1所述的触摸屏扫描频率的调整方法, 其中, 所述检测所述电子终 端的触摸屏的扫描频率与所述开关充电器的开关频率是否存在共模干扰的步骤 包括:
获取所述开关充电器的开关频率;
判断所述开关充电器的开关频率与所述触摸屏当前的扫描频率是否一致; 当所述开关充电器的开关频率与所述触摸屏当前的扫描频率一致时, 判定 所述触摸屏当前的扫描频率与所述开关充电器的开关频率存在共模干扰。
6. 如权利要求 5所述的触摸屏扫描频率的调整方法, 其中, 所述获取所述开关充 电器的开关频率的步骤包括:
检测所述开关充电器的类型;
根据所述开关充电器的类型, 确定所述开关充电器的开关频率。
7. 如权利要求 5或 6所述的触摸屏扫描频率的调整方法, 其中, 所述从预先存储 的多个扫描频率中, 获取与所述开关充电器的开关频率不存在共模干扰的第一 扫描频率的步骤包括- 从预先存储的多个扫描频率中, 选取与获取到的所述开关充电器的开关频 率不一致的扫描频率, 作为所述第一扫描频率。
8. 一种电子终端, 包括:
干扰检测模块, 设置为当电子终端当前使用开关充电器进行充电时, 检测 所述电子终端的触摸屏当前的扫描频率与所述开关充电器的开关频率是否存在 共模干扰;
处理模块, 设置为当检测到所述触摸屏当前的扫描频率与所述开关充电器 的开关频率存在共模干扰时, 从预先存储的多个扫描频率中, 获取与所述开关 充电器的开关频率不存在共模干扰的第一扫描频率;
调整模块,设置为将所述触摸屏当前的扫描频率调整为所述第一扫描频率。
9. 如权利要求 8所述的电子终端, 其中, 所述处理模块包括: 第一选取模块, 设置为从预先存储的多个扫描频率中依次选取一扫描频率 作为所述触摸屏当前的扫描频率, 并检测所述电子终端的触摸屏当前的扫描频 率与所述开关充电器的开关频率是否存在共模干扰, 将当前选取的不与所述开 关充电器的开关频率存在共模干扰的扫描频率作为所述第一扫描频率。
10. 如权利要求 9所述的电子终端, 其中, 所述处理模块还包括:
第二选取模块, 设置为当预先存储的所有扫描频率均与所述开关充电器的 开关频率存在共模干扰时, 再次从预先存储的多个扫描频率中依次选取一扫描 频率, 并采用预设步长调整所述当前选取的扫描频率, 得到一新的扫描频率作 为所述触摸屏当前的扫描频率, 并检测所述电子终端的触摸屏当前的扫描频率 与所述开关充电器的开关频率是否存在共模干扰, 将不与所述开关充电器的开 关频率存在共模干扰的新的扫描频率作为所述第一扫描频率。
11. 如权利要求 8至 10任一项所述的电子终端, 其中, 所述干扰检测模块包括: 显示模块, 设置为显示预设校准点;
触摸判断模块, 设置为判断所述预设校准点所在位置是否感应到触摸, 当 在预定时间内所述预设校准点所在位置未感应到触摸时, 判定所述触摸屏当前 的扫描频率与所述开关充电器的开关频率存在共模干扰。
12. 如权利要求 8所述的电子终端, 其中, 所述干扰检测模块包括:
获取模块, 设置为获取所述开关充电器的开关频率;
判断模块, 设置为判断所述开关充电器的开关频率与所述触摸屏当前的扫 描频率是否一致, 当所述开关充电器的开关频率与所述触摸屏当前的扫描频率 一致时, 判定所述触摸屏当前的扫描频率与所述开关充电器的开关频率存在共 模干扰。
13. 如权利要求 12所述的电子终端, 其中, 所述获取模块包括: 类型检测模块, 设置为检测所述开关充电器的类型;
确定模块, 设置为根据所述开关充电器的类型, 确定所述开关充电器的开 关频率。
14. 如权利要求 12或 13所述的电子终端, 其中, 所述处理模块包括: 第三选取模块, 设置为从预先存储的多个扫描频率中, 选取与获取到的所 述开关充电器的开关频率不一致的扫描频率, 作为所述第一扫描频率。
PCT/CN2013/079931 2012-08-30 2013-07-23 一种触摸屏扫描频率的调整方法及电子终端 WO2013174328A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210314178.4A CN103677449B (zh) 2012-08-30 2012-08-30 一种触摸屏扫描频率的调整方法及电子终端
CN201210314178.4 2012-08-30

Publications (1)

Publication Number Publication Date
WO2013174328A1 true WO2013174328A1 (zh) 2013-11-28

Family

ID=49623170

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/079931 WO2013174328A1 (zh) 2012-08-30 2013-07-23 一种触摸屏扫描频率的调整方法及电子终端

Country Status (2)

Country Link
CN (1) CN103677449B (zh)
WO (1) WO2013174328A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3454450A4 (en) * 2016-05-26 2019-03-13 Huawei Technologies Co., Ltd. CONTROL METHOD AND CONTROL DEVICE FOR POWER ADAPTER

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105389225A (zh) * 2015-11-25 2016-03-09 小米科技有限责任公司 触摸屏报点的处理方法及装置
CN106921208A (zh) * 2015-12-28 2017-07-04 小米科技有限责任公司 控制充电器充电的方法、装置及充电器
CN105528117B (zh) * 2016-01-28 2019-02-19 青岛海信移动通信技术股份有限公司 一种触摸屏扫描频率的获取方法及装置
CN107562289A (zh) * 2016-06-30 2018-01-09 北京小米移动软件有限公司 充电抗干扰方法及装置
WO2018053700A1 (zh) * 2016-09-21 2018-03-29 华为技术有限公司 一种触摸面板的抗干扰方法及装置
CN108121631B (zh) * 2016-11-28 2021-06-29 北京小米移动软件有限公司 屏幕异常状态提醒方法及装置
CN106845422B (zh) * 2017-01-22 2020-12-22 Oppo广东移动通信有限公司 一种指纹识别模组、指纹识别方法及移动终端
CN109271124A (zh) * 2018-09-27 2019-01-25 联想(北京)有限公司 一种处理方法及电子设备
CN109409067B (zh) * 2018-10-23 2022-03-29 Oppo广东移动通信有限公司 电磁干扰控制方法及相关装置
CN113348500B (zh) * 2019-01-30 2022-10-04 松下知识产权经营株式会社 显示装置的控制装置、显示装置的控制方法及显示系统
CN113093945A (zh) * 2021-04-21 2021-07-09 北京集创北方科技股份有限公司 触摸屏扫描控制装置、方法、芯片、显示面板及电子设备
CN117971074A (zh) * 2024-04-01 2024-05-03 深圳贝特莱电子科技股份有限公司 支持触摸和显示的主控系统、信号时序控制方法及电子烟

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314277A (zh) * 2011-09-30 2012-01-11 惠州Tcl移动通信有限公司 电容式触摸屏的防静电方法及相应的电容式触摸屏
CN102629163A (zh) * 2010-12-13 2012-08-08 三星电子株式会社 控制触摸面板的操作的方法和支持所述方法的便携式终端
CN102841715A (zh) * 2012-08-09 2012-12-26 深圳市汇顶科技有限公司 电容触摸传感器、触控终端及其抗干扰方法和系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101840297B (zh) * 2010-04-07 2012-09-05 敦泰科技(深圳)有限公司 一种电容式触摸屏的触摸检测方法和检测电路

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102629163A (zh) * 2010-12-13 2012-08-08 三星电子株式会社 控制触摸面板的操作的方法和支持所述方法的便携式终端
CN102314277A (zh) * 2011-09-30 2012-01-11 惠州Tcl移动通信有限公司 电容式触摸屏的防静电方法及相应的电容式触摸屏
CN102841715A (zh) * 2012-08-09 2012-12-26 深圳市汇顶科技有限公司 电容触摸传感器、触控终端及其抗干扰方法和系统

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3454450A4 (en) * 2016-05-26 2019-03-13 Huawei Technologies Co., Ltd. CONTROL METHOD AND CONTROL DEVICE FOR POWER ADAPTER
US11126301B2 (en) 2016-05-26 2021-09-21 Honor Device Co., Ltd. Power adapter control method and control apparatus

Also Published As

Publication number Publication date
CN103677449B (zh) 2016-12-21
CN103677449A (zh) 2014-03-26

Similar Documents

Publication Publication Date Title
WO2013174328A1 (zh) 一种触摸屏扫描频率的调整方法及电子终端
CN103677452B (zh) 一种电容式触摸屏的校准方法和电容式触摸装置
JP5669850B2 (ja) 静電容量式タッチセンサデバイス設定システムおよび方法
US8395594B2 (en) Touch button false activation suppression
CN107980156B (zh) 柔性显示屏、柔性显示屏的弯折检测方法及装置
CN104808847B (zh) 触摸屏检测的抗干扰方法、装置和触摸传感器、触控终端
US20130106759A1 (en) Narrow-Band Touch Detection
JP2011013996A (ja) タッチパネル及びディスプレイパネル用のドライバ回路
EP2525277A2 (en) Apparatus, and associated method, for testing a touch sensing device
CN104881174A (zh) 一种动态调整触摸屏灵敏度的方法及装置
US20130169583A1 (en) Controller and method for controlling a capacitive touch screen or the like
WO2014205934A1 (zh) 触摸屏校准处理方法、装置、触摸屏及终端
CN103885647A (zh) 触摸屏装置的自适应修复方法及触摸屏装置
CN102236481B (zh) 电容式触控板的接近侦测方法及其应用
CN107291293B (zh) 触摸屏的触摸扫描方法
CN107357473B (zh) 电容屏触控调试方法
WO2018149141A1 (zh) 触摸屏抗电源干扰能力的检测方法及系统
TWI425404B (zh) 電容式觸控板的接近偵測方法及利用電容式觸控板的接近偵測之控制方法
US10254897B2 (en) Touch sensitive processing apparatus, electronic system and method thereof for detecting defects of touch panel
CN102243554A (zh) 决定触控面板的触碰检测方式的控制方法及控制电路
JP2005535029A (ja) データ処理装置のコンフィギュレーション・データの取得
KR101651411B1 (ko) Tx 반 파형을 이용한 터치 패널의 단락 검출 방법
CN104536606B (zh) 一种检测触摸屏的方法及装置
CN109407867A (zh) 触控检测系统及其检测方法、触控装置
TWI462002B (zh) Signal processor, touch judgment device and touch judgment method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13794648

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13794648

Country of ref document: EP

Kind code of ref document: A1