Touch screen control method and electronic device

By storing disabled frequencies in electronic devices and disabling reporting frequencies that are the same as ripple interference frequencies, the problem of misjudgment when scanning touch screens by electronic devices is solved, thus improving the user experience.

CN120255712BActive Publication Date: 2026-06-26HONOR DEVICE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2023-12-26
Publication Date
2026-06-26

Smart Images

  • Figure CN120255712B_ABST
    Figure CN120255712B_ABST
Patent Text Reader

Abstract

A touch screen control method and an electronic device. In the method, when selecting a report frequency for scanning the touch screen, the electronic device first disables a disabled frequency in the report frequency, and then uses a report frequency other than the disabled frequency to scan. The technical solution provided by the present application can avoid the interference of the ripple with the same frequency as the disabled frequency in the process of scanning the touch screen of the electronic device, so that the scanning result is more accurate, and the error of the electronic device in judging the touch operation is smaller.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal and communication technology, and in particular to touch screen control methods and electronic devices. Background Technology

[0002] Touchscreens are widely used in electronic devices, allowing users to interact with them by inputting touch signals. The electronic device then detects this input by scanning the touchscreen. However, electronic devices typically experience ripple interference during operation. If the scanning frequency used by the electronic device to scan the touchscreen matches the ripple interference frequency, misinterpretation of touch signals can occur. For example, even without user interaction, ripple interference might cause the electronic device to mistakenly identify touch input, resulting in a poor user experience.

[0003] Therefore, how to reduce the misinterpretation of touch signals by electronic devices is an urgent problem to be solved. Summary of the Invention

[0004] This application provides a touch screen control method and an electronic device that can prevent abnormal touch operation responses of electronic devices when the user is not touching the screen, thereby improving the user experience.

[0005] In a first aspect, this application provides a touch screen control method, the method comprising: the touch screen being in a lit state; when a first reporting frequency and a first disable frequency are the same, the electronic device disables the first reporting frequency when scanning the touch screen, the electronic device storing M reporting frequencies and N disable frequencies, the M reporting frequencies being the frequency at which the electronic device scans the touch screen, the M reporting frequencies including the first reporting frequency, and the N disable frequencies including the first disable frequency; when the first reporting frequency and the first disable frequency are different, the electronic device using the first reporting frequency to scan the touch screen.

[0006] By implementing the above embodiments, users can avoid scanning the touchscreen with poor reporting frequency during touchscreen use, thereby preventing the electronic device from misinterpreting touch operations and ensuring the user experience.

[0007] In conjunction with the first aspect, in some embodiments, after the touch screen is in a lit state, the method further includes: the electronic device determining whether the first disable frequency and the first reporting frequency are the same.

[0008] In conjunction with the first aspect, in some embodiments, before the electronic device determines whether the first disabled frequency and the first reporting frequency are the same, the method further includes: the electronic device setting N disabled frequencies and storing the N disabled frequencies in a first storage space.

[0009] By implementing the above embodiments, each electronic device can set its own disable frequency according to the specific components within that device, rather than setting the disable frequency according to the parameters of the sample device. Therefore, each electronic device can more effectively avoid its unique ripple interference by setting its own disable frequency, reducing the likelihood of the electronic device misinterpreting touch input when there is no user input, thus ensuring a better user experience.

[0010] In conjunction with the first aspect, in some embodiments, the electronic device sets N disabled frequencies, specifically including: the electronic device scans the touch screen using a first frequency to obtain capacitance noise; when the capacitance noise is greater than a judgment threshold, the electronic device sets the first frequency as a disabled frequency and stores the first frequency in the first storage space.

[0011] By implementing the above embodiments, users can disable reporting frequencies with capacitance noise exceeding the judgment threshold when using electronic devices, thereby avoiding misjudgments of touch operations and improving the user experience.

[0012] In conjunction with the first aspect, in some embodiments, when N equals 0, the method further includes: writing a null value into the first storage space.

[0013] In conjunction with the first aspect, in some embodiments, after the electronic device disables the first reporting frequency when scanning the touch screen, the method further includes: the electronic device confirming that the second reporting frequency is different from the first disabled frequency, the M reporting frequencies including the second reporting frequency; and the electronic device using the second reporting frequency to scan the touch screen.

[0014] By implementing the above embodiments, even when some reporting frequencies are disabled, the electronic device can still use other reporting frequencies to scan the touch screen and detect the user's touch operations, thus improving the user experience.

[0015] In conjunction with the first aspect, in some embodiments, after the electronic device scans the touch screen using the first reporting frequency, the method further includes: when the touch screen is turned on again after being turned off, if the third reporting frequency is different from the second disable frequency, the electronic device scans the touch screen using the third reporting frequency, wherein the M reporting frequencies include the third reporting frequency and the N disable frequencies include the second disable frequency.

[0016] By implementing the above embodiments, during the user's use of the electronic device, the electronic device can scan the touch screen using different reporting frequencies, which improves the randomness of the reporting frequency, avoids interference from specific frequencies, and enhances the user experience.

[0017] In conjunction with the first aspect, in some embodiments, before the electronic device determines whether the first disabled frequency and the first reporting frequency are the same, the method further includes: the electronic device reading the first disabled frequency from a first storage space.

[0018] In conjunction with the first aspect, in some embodiments, the electronic device obtains the first disabled frequency from the first storage space, specifically including: when the first storage space is in the motherboard of the electronic device, after the electronic device is powered on, the electronic device calls the processor to read the first disabled frequency from the motherboard and stores the first disabled frequency in the touch integrated circuit; when the first storage space is in the touch integrated circuit, the electronic device obtains the first disabled frequency from the touch integrated circuit.

[0019] In conjunction with the first aspect, in some embodiments, the first frequency is one of the M reporting frequencies, or the first frequency is one of the ripple interference frequencies of the touch screen power supply circuit of the electronic device.

[0020] In a second aspect, embodiments of this application provide an electronic device comprising: one or more processors and a memory; the memory is coupled to the one or more processors and is used to store computer program code, the computer program code including computer instructions, wherein the one or more processors invoke the computer instructions to cause the electronic device to perform the method implemented in the first aspect.

[0021] Thirdly, embodiments of this application provide a computer-readable storage medium including instructions that, when executed on an electronic device, cause the electronic device to perform the method as implemented in the first aspect.

[0022] Fourthly, embodiments of this application provide a chip system applied to an electronic device. The chip system includes one or more processors, which are used to invoke computer instructions to cause the electronic device to perform the method as implemented in the first aspect.

[0023] Fifthly, embodiments of this application provide a computer program product containing instructions that, when run on an electronic device, cause the electronic device to perform the method as implemented in the first aspect.

[0024] It is understood that the electronic device provided in the second aspect, the computer storage medium provided in the third aspect, the chip system provided in the fourth aspect, and the computer program product provided in the fifth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, other beneficial effects that can be achieved can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description

[0025] Figure 1This is a schematic diagram of the capacitor arrangement in a touchscreen provided in an embodiment of this application;

[0026] Figure 2 This is a schematic diagram illustrating the capacitance change at some electrode junctions when a touchscreen is touched, provided in an embodiment of this application.

[0027] Figure 3 This is a schematic diagram of the process of scanning a touch screen with an electronic device according to an embodiment of this application;

[0028] Figure 4 This is a flowchart illustrating a touchscreen control method provided in an embodiment of this application;

[0029] Figure 5 This is a schematic diagram of a process for setting a disabled frequency in an electronic device according to an embodiment of this application;

[0030] Figure 6 This is a flowchart illustrating another process for confirming and disabling frequencies in an electronic device, as provided in an embodiment of this application.

[0031] Figure 7 This is a possible structural schematic diagram of an exemplary electronic device 700 provided in the embodiments of this application;

[0032] Figure 8 This is a schematic diagram illustrating the process of an electronic device reading a disabled frequency from a motherboard, as provided in an embodiment of this application.

[0033] Figure 9 This is a software structure block diagram of the electronic device 100 provided in the embodiments of this application;

[0034] Figure 10 This is a schematic diagram of the hardware structure of the electronic device 100 provided in the embodiments of this application. Detailed Implementation

[0035] The terminology used in the following embodiments of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include the plural expressions as well, unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used in this application refers to and includes any or all possible combinations of one or more of the listed items.

[0036] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0037] In this embodiment, the electronic device may include a touchscreen. The touchscreen can be used to display an interactive user interface, detect user touch operations, and refresh the user interface based on the user's touch operations. In this embodiment, the touchscreen may also be referred to as a touch screen, a touchscreen display, a display screen, etc., and is not limited thereto.

[0038] In some embodiments, the touchscreen can be a mutual capacitance screen. A mutual capacitance screen has horizontal and vertical electrodes fabricated on the glass surface using nano-indium tin oxide (ITO). Capacitors are formed at the intersections of these two sets of electrodes, meaning the two sets of electrodes constitute the two poles of a capacitor. When a finger touches the mutual capacitance screen, it affects the coupling between the two electrodes near the touch point, thereby changing the capacitance value between them. The touchscreen can scan the capacitance values ​​and determine whether there has been a user touch operation by using the capacitance values ​​at multiple electrode intersections.

[0039] In some embodiments, the two sets of electrodes in the mutual capacitance screen can be designated as a transmitting electrode (TX) and a receiving electrode (RX). The transmitting electrode can be used to emit an excitation signal. The receiving electrode is used to receive the excitation signal emitted by the transmitting electrode. When the lateral electrode is the transmitting electrode, the longitudinal electrode is the receiving electrode. When the longitudinal electrode is the transmitting electrode, the lateral electrode is the receiving electrode. The transmitting electrode can also be referred to as a driving electrode.

[0040] In one possible implementation, as the touchscreen scans the capacitance values ​​across its entire two-dimensional plane, the vertical electrodes can sequentially emit excitation signals, while all the horizontal electrodes simultaneously receive signals. The electronic device can then detect the capacitance values ​​at all intersections of the horizontal and vertical electrodes.

[0041] It should be understood that, optionally, in another possible implementation, when the touchscreen scans the capacitance value of the entire two-dimensional plane of the touchscreen, the horizontal electrodes in the touchscreen sequentially emit excitation signals, while all the vertical electrodes simultaneously receive signals.

[0042] For reference Figure 1 , Figure 1 An exemplary schematic diagram of the structure of a mutual capacitance screen is shown.

[0043] like Figure 1As shown, a touchscreen can include horizontal electrodes and vertical electrodes. The following explanation uses the vertical electrode as the transmitting electrode as an example. Figure 1 The longitudinal electrodes can sequentially emit excitation signals, while the transverse electrodes simultaneously receive the signals. In this way, the electronic device can obtain the capacitance values ​​at all intersections of the transverse and longitudinal electrodes.

[0044] When a user touches a touchscreen, the capacitance values ​​at the intersection points on the touchscreen change accordingly. Electronic devices can calculate the coordinates of each touch point based on these capacitance changes and then respond to the touch operation.

[0045] Figure 2 An exemplary diagram illustrates the change in capacitance at some junction points when a touchscreen is touched.

[0046] like Figure 2 As shown, when the touchscreen is not touched, the capacitance value at the junction is always 'a'. When a touch operation is applied to the touchscreen, the capacitance at the touched location changes to a1, a2, a3, and a4. Taking the junction where the capacitance value changes to a1 as an example, after the electronic device detects the capacitance change, it calculates a1-a to obtain the difference at that junction. When the difference is greater than or equal to a judgment threshold, the electronic device determines that there has been a touch operation at that junction.

[0047] For electronic devices, user touch operations on the touchscreen can occur at any time after the touchscreen is turned on. Therefore, once the touchscreen is on, the electronic device will frequently check the touchscreen's capacitance value.

[0048] Electronic devices can detect changes in capacitance by scanning the touchscreen at a specific frequency. The scanning process can be found below. Figure 3 The description.

[0049] Figure 3 An exemplary schematic diagram illustrates the process of an electronic device scanning a touchscreen.

[0050] S101. The electronic device acquires M reporting frequencies.

[0051] An electronic device can have M preset reporting frequencies, such as reporting frequency 1, reporting frequency 2, ..., reporting frequency M. Generally, electronic devices of the same model have the same M preset reporting frequencies.

[0052] In some instances, M is a positive integer. For example, the value of M can be 3 or 4. This application does not limit the specific value of M.

[0053] S102. The electronic device scans the touch screen using one of the M reporting frequencies according to a preset rule, and obtains the capacitance values ​​of each intersection point in the touch screen.

[0054] Electronic devices can have preset rules. These preset rules can be configured by the electronic device's system or pre-stored by developers before the device leaves the factory. The electronic device uses only one reporting frequency to scan the touchscreen for a period of time; this preset rule defines the rule for selecting the reporting frequency. This preset rule may include, but is not limited to, one of the following rules:

[0055] Preset rule 1: Electronic devices use M reporting frequency points for scanning during polling.

[0056] The electronic device can use M reporting frequencies in a polling manner for scanning. For example, after the electronic device's screen is turned on, it can first use reporting frequency 1 to scan. When the electronic device receives a user operation, it can switch to reporting frequency 2 to scan. After the user operation ends, the electronic device can switch to reporting frequency 3 to scan. This process continues until the electronic device uses reporting frequency M to scan. Then, the electronic device can start scanning again using reporting frequency 1.

[0057] Preset rule 2: The electronic device generates a sequence using a pseudo-random sequence generator. Based on this sequence, the electronic device randomly uses one of M reporting frequencies to scan at different time periods.

[0058] After an electronic device detects that the touchscreen is lit, it can generate a sequence using a pseudo-random sequence generator. This sequence can include M serial numbers, each corresponding to one of the M reporting frequencies. The electronic device can select the reporting frequencies for scanning in the order of the serial numbers in this sequence. For example, after the electronic device's screen is lit, a sequence is generated using the pseudo-random sequence generator. This sequence can be: 3, 6, 1, ..., M. Then the electronic device will use the reporting frequencies in the order of reporting frequency 3, reporting frequency 6, reporting frequency 1, ..., reporting frequency M. The duration of each reporting frequency can be the same or different. The duration of each reporting frequency can be configured by the electronic device's system or preset by the developers before the electronic device leaves the factory.

[0059] S103. The electronic device subtracts the reference value from the capacitance value to obtain the difference at each intersection point.

[0060] The reference value corresponds to the capacitance value of the touchscreen when it is not touched. The difference is obtained by subtracting the reference value from the detected capacitance value, representing the change in capacitance value mentioned above. The reference value is R0, and the value of R0 is not limited in this embodiment.

[0061] An electronic device scans using one of M reporting frequencies (e.g., reporting frequency 1) to obtain the capacitance value of each intersection point on the touchscreen. The electronic device then subtracts this reference value from the capacitance value of each intersection point to obtain the difference between the two points.

[0062] For example, the touchscreen may include an intersection point 1. When the electronic device scans using a reporting frequency 1, it obtains the capacitance value of the intersection point 1. The capacitance value of the intersection point 1 may be R1, and the difference between the intersection points 1 and R0 is (R1-R0).

[0063] It is understood that R1 can be greater than R0, equal to R0, or less than R0. The embodiments of this application do not limit the value of R1.

[0064] S104. The electronic device compares the difference between each intersection point with the judgment threshold. When the difference between an intersection point exceeds the judgment threshold, the electronic device confirms that there is a touch signal at that intersection point.

[0065] If the difference at a junction point is greater than the judgment threshold, that is, the capacitance change at that junction point exceeds the judgment threshold, the electronic device confirms that there is a touch operation at that junction point.

[0066] If the difference at a junction is less than or equal to the judgment threshold, that is, the capacitance change at the junction does not exceed the judgment threshold, the electronic device determines that there is no effective touch operation at the junction.

[0067] For example, when the difference (R1-R0) at intersection point 1 is greater than the judgment threshold, the electronic device can determine that there is a touch operation at intersection point 1. When the difference (R1-R0) at intersection point 1 is less than or equal to the judgment threshold, the electronic device can determine that there is no touch operation at intersection point 1.

[0068] Scanning of a touchscreen by an electronic device can be accomplished by calling a touch integrated circuit (IC). The touch IC continuously scans the touchscreen after it is turned on, detecting the capacitance value of the touchscreen to achieve a timely response to touch operations.

[0069] However, the power supply circuit of the touch IC generates ripple interference at certain frequencies during operation, and different power supply circuits produce ripple interference at different frequencies. This ripple interference also causes changes in the touchscreen capacitance at certain frequencies. Therefore, when electronic devices use the same reporting frequency as the ripple interference, even without any touch operation on the touchscreen, a point will appear where the capacitance change exceeds the judgment threshold. In this case, the difference at this point can be called capacitance noise. Thus, even if the user has not touched the touchscreen, the electronic device will still detect a touch operation, thereby changing the interactive interface displayed on the touchscreen and affecting the user experience.

[0070] For example, when there is no user touch input at intersection point 1, the capacitance value at intersection point 1 should equal the reference value. However, because the electronic device scans using a reporting frequency with the same ripple interference frequency, the scanning result is inaccurate. That is, the capacitance value at intersection point 1 is not equal to the reference value, and the difference between the capacitance value at intersection point 1 and the reference value is greater than the judgment threshold. Thus, even if there is no user touch input at intersection point 1, the electronic device will mistakenly judge that there is a touch operation at intersection point 1 and respond accordingly. For example, the electronic device will refresh the user interface according to the control corresponding to intersection point 1. This will affect the user experience.

[0071] In some possible cases, the frequency band that generates ripple interference in the above content can be 20kHz-200kHz.

[0072] Generally, the M reporting frequencies of an electronic device are determined by the manufacturer based on sample devices of the same model. During the production of the electronic device, the manufacturer can select multiple sample devices and scan them using multiple frequencies. The frequency with the lowest capacitance noise during the scanning of the multiple sample devices is ultimately selected as the reporting frequency. In this way, M reporting frequencies can be selected from multiple frequencies. At the time of shipment, electronic devices of the same model as the multiple sample devices are uniformly configured with the same M reporting frequencies.

[0073] However, due to inconsistencies in the manufacturing of electronic components, different electronic devices of the same model may produce different ripple interferences in certain situations. Even when scanning using the same reporting frequency, different electronic devices may experience different capacitance noise interferences. For example, electronic devices 1 and 2 can both use reporting frequency 1 for scanning. Although electronic devices 1 and 2 are of the same model, due to the inconsistencies in the manufacturing of the aforementioned electronic components, there are still certain differences in the electronic components that make up electronic devices 1 and 2. Therefore, even if the power supply circuit structures of electronic devices 1 and 2 are the same, the frequencies at which their power supply circuits generate ripple interference may differ due to the differences in electronic components. The frequency at which the power supply circuit of electronic device 1 generates ripple interference is the same as reporting frequency 1, while the frequency at which the power supply circuit of electronic device 2 generates ripple interference is different from reporting frequency 1. Thus, when both electronic devices 1 and 2 use reporting frequency 1 for scanning, electronic device 1 will be affected by ripple interference, generating capacitance noise. This may cause some untouched areas on the touchscreen of electronic device 1 to have intersections where the difference exceeds the judgment threshold, leading electronic device 1 to misjudge that there is a valid touch operation at these intersections. Electronic device 2 will not be affected by ripple interference.

[0074] Therefore, even though electronic devices of the same model are configured with M reporting frequencies based on the data of the sample device of that model, when scanning using these M reporting frequencies, the capacitance noise may still exceed the judgment threshold.

[0075] To address the issue of specific frequency ripple interference generated by certain electronic devices, this application proposes a touchscreen control method. In this method, for each electronic device, N frequencies whose capacitance noise exceeds a judgment threshold are set as disabled frequencies. Before scanning the touchscreen using a frequency from M reporting frequencies, if it is confirmed that one or more of the N disabled frequencies exist among the M reporting frequencies, those one or more disabled frequencies are disabled from the M reporting frequencies, and the touchscreen is scanned using other reporting frequencies.

[0076] Figure 4 An exemplary flowchart of a touchscreen control method is shown. Figure 4 As shown in the figure, a touch screen control method provided in this application embodiment may include the following steps:

[0077] S201. The touchscreen is on.

[0078] A touchscreen in an electronic device may include a backlight and a display screen. In response to a screen-on operation, the electronic device adjusts the brightness of the backlight according to the backlight brightness, causing the backlight to emit light and provide a light source for the display screen. The display screen is thus illuminated, and the touchscreen is in a lit state. In this lit state, the touchscreen can display an interactive interface (e.g., a lock screen, desktop, etc.). Therefore, users can normally view the touchscreen display and perform touch operations on it.

[0079] Once the touchscreen is on, the electronic device will begin to select the scanning frequency of the touchscreen according to preset rules.

[0080] S202. The electronic device acquires the reporting frequency 1 and reads the disabled frequency from the disabled frequency storage space.

[0081] The electronic device selects reporting frequency 1 from M reporting frequencies according to preset rules. The electronic device can also select other reporting frequencies from the M reporting frequencies; this explanation only uses reporting frequency 1 as an example. After obtaining reporting frequency 1, the electronic device also reads disabled frequencies from the disabled frequency storage space. The disabled frequency storage space can include N disabled frequencies, where N is a positive integer.

[0082] Alternatively, in one possible implementation, MN is greater than or equal to 3.

[0083] For example, in some possible cases, when M equals 4, the M reporting frequencies may include: reporting frequency 1, reporting frequency 2, reporting frequency 3, and reporting frequency 4. The disabled frequency storage space may include disabled frequency 1. After the electronic device obtains reporting frequency 1, it retrieves disabled frequency 1 from the disabled frequency storage space and executes the following step S203.

[0084] In some other possible cases, when M equals 5, the disabled frequency storage space may include disabled frequency 1 and disabled frequency 2. After acquiring reporting frequency 1, the electronic device may acquire both disabled frequency 1 and disabled frequency 2 together before executing step S203. Alternatively, it may acquire disabled frequency 1 first, execute step S203, acquire disabled frequency 2, and then execute step S203.

[0085] The disabled frequency is set by the electronic device and stored in the disabled frequency storage space.

[0086] In one possible implementation, the disabled frequency storage space is located in the touch integrated circuit (touch IC) of the electronic device. When the electronic device selects the reporting frequency 1 of the scanning touch screen, it also reads the disabled frequency from the touch integrated circuit.

[0087] Alternatively, in another possible implementation, the disabled frequency storage space may also be located in the motherboard of the electronic device.

[0088] When the disabled frequency storage space is located on the motherboard of an electronic device, the process of the electronic device reading the disabled frequency can be referenced below. Figure 8 The description will not be repeated here.

[0089] S203. The electronic device confirms whether the reporting frequency 1 is the same as the disabled frequency.

[0090] The reporting frequency 1 is the same as the disabled frequency, indicating that the frequency at which the power supply circuit of the electronic device generates ripple interference is the same as the reporting frequency 1. When the electronic device uses the reporting frequency 1 for scanning, it will misinterpret touch operations.

[0091] If there are N disabled frequencies, then if reporting frequency 1 is the same as any one of the N disabled frequencies, the electronic device confirms that reporting frequency 1 is the same as a disabled frequency. For example, reporting frequency 1 is the same as disabled frequency 1, or reporting frequency 1 is the same as disabled frequency 2.

[0092] When the reporting frequency 1 is the same as the disabled frequency, the electronic device can perform the following steps S204 and S205.

[0093] If the reporting frequency 1 is different from the disabled frequency, that is, the reporting frequency 1 is different from any of the N disabled frequencies, the electronic device can perform the following step S206.

[0094] S204. Electronic devices are disabled from reporting frequency 1.

[0095] The electronic device disables reporting frequency 1 from the M reporting frequencies. The electronic device selects reporting frequencies according to preset rules. When reporting frequency 1 is selected, it skips reporting frequency 1 and does not use reporting frequency 1 for scanning.

[0096] S205. The electronic device scans using a reporting frequency other than reporting frequency 1.

[0097] After disabling reporting frequency 1, the electronic device selects a new reporting frequency according to preset rules. The new reporting frequency is one of the M reporting frequencies other than reporting frequency 1.

[0098] In some possible cases, the electronic device uses the aforementioned preset rule 1 to select the reporting frequency. After disabling reporting frequency 1, the electronic device polls for reporting frequencies 1, 2, 3, ..., M. During the polling process, if reporting frequency 1 is selected, it skips it and selects reporting frequency 2. Alternatively, after disabling reporting frequency 1, the electronic device does not select reporting frequency 1 during the current polling process. Instead, the electronic device polls for reporting frequencies 2, 3, 4, ..., M.

[0099] In other possible scenarios, the electronic device selects the reporting frequency using the aforementioned preset rule 2. After disabling reporting frequency 1, during the process of selecting the reporting frequency based on the sequence number, if the reporting frequency corresponding to the selected sequence number is reporting frequency 1, the reporting frequency corresponding to the next sequence number in the sequence is selected. Alternatively, after disabling reporting frequency 1, the electronic device will not generate a sequence number corresponding to reporting frequency 1 during the current process of generating the sequence using the pseudo-random sequence generator. Therefore, when selecting the reporting frequency based on the sequence number, reporting frequency 1 will no longer be selected.

[0100] S206. Scan using reporting frequency 1.

[0101] If the reporting frequency 1 is different from the disabled frequency, the electronic device can use the reporting frequency 1 to scan. Alternatively, if the electronic device fails to read the disabled frequency, it can also use the reporting frequency 1 to scan.

[0102] The scanning process for electronic devices can be referred to in the above content. Figure 3 The relevant descriptions will not be repeated here.

[0103] In the above content, the disabled frequencies in the disabled frequency storage space can be N disabled frequencies. These N disabled frequencies can be preset by the electronic device before responding to user touch operations, or they can be set after each power-on, or they can be pre-configured by the developers in the electronic device before it leaves the factory. The process of setting disabled frequencies in an electronic device can be referred to the following... Figure 5 and Figure 6 The description.

[0104] Figure 5 An exemplary diagram illustrates the process of setting a disabled frequency in an electronic device. For example... Figure 5 As shown, setting a disabled frequency for an electronic device may include the following steps:

[0105] S301. The electronic device obtains the frequency of M reporting points of the touch IC.

[0106] S302. Electronic devices are allocated storage space for disabled frequencies.

[0107] S303. The electronic device sequentially uses M reporting frequencies to obtain the capacitance noise set of the touch screen when there is no touch, and uses the reporting frequency used when the capacitance noise set exceeds the judgment threshold as the disabled frequency.

[0108] Electronic devices can allocate a partition in their storage space as a disabled frequency storage space. This storage space can be located on the motherboard of the electronic device or in the touch IC, as described below; details will not be elaborated here.

[0109] In one possible implementation, the electronic device acquires M reporting frequencies preset in its storage, which may include reporting frequency 1, reporting frequency 2, reporting frequency 3, ..., reporting frequency M. When the user is not performing any touch operation, the electronic device first scans the touchscreen using reporting frequency 1 to obtain the capacitance values ​​of multiple intersection points on the touchscreen and calculates the capacitance noise at these intersection points, obtaining capacitance noise set 1. Then, the electronic device scans the touchscreen using reporting frequency 2 to obtain the capacitance values ​​of multiple intersection points on the touchscreen and calculates the capacitance noise at these intersection points, obtaining capacitance noise set 2. Then, sequentially, the electronic device scans the touchscreen using reporting frequencies 3 through M, obtaining capacitance noise sets 3 through M corresponding to reporting frequencies 3 through M, respectively. Among the M reporting frequencies, reporting frequency i is included, and the capacitance noise set corresponding to reporting frequency i is capacitance noise set i. When at least one capacitance noise value in the capacitance noise set i is greater than the judgment threshold, the electronic device confirms that the capacitance noise set i is a capacitance noise set that exceeds the judgment threshold. i is a positive integer greater than or equal to 1 and less than or equal to M.

[0110] The electronic device can identify the capacitance noise sets that exceed a judgment threshold from among the M capacitance noise sets (set 1 to set M). Then, the electronic device can set the reporting frequency corresponding to the capacitance noise set exceeding the judgment threshold as a frequency to be disabled. Finally, the electronic device can set the frequency to be disabled as a disabled frequency.

[0111] An electronic device can set a maximum of N disabled frequencies. When the number of frequencies to be disabled is greater than N, the electronic device selects frequencies to be disabled based on the number of capacitance noise values ​​greater than a judgment threshold contained in their corresponding capacitance noise sets. The electronic device can select the frequencies to be disabled corresponding to the top N capacitance noise sets and set them as disabled frequencies. For example, taking N = 3 and the number of frequencies to be disabled as 4, then if capacitance noise set 1 has 3 capacitance noise values ​​greater than the judgment threshold and capacitance noise set 2 has 4 capacitance noise values ​​greater than the judgment threshold, then capacitance noise set 2 is greater than capacitance noise set 1.

[0112] S304. Write the disabled frequency to the disabled frequency storage space.

[0113] An electronic device can write N disabled frequencies into a disabled frequency storage space.

[0114] Alternatively, in another possible implementation, in the absence of a disabled frequency, the electronic device can write a null value to the disabled frequency storage space. For example, if the electronic device confirms that none of the capacitance noise sets 1 to M exceed the judgment threshold, then the electronic device has not set a disabled frequency. In this case, in the absence of a disabled frequency, the electronic device writes a null value to the disabled frequency storage space.

[0115] It should be understood that when the disabled frequency space is empty, none of the M reporting frequencies are equal to the disabled frequency.

[0116] Figure 6 An exemplary diagram illustrates the process by which an electronic device confirms the disabled frequency.

[0117] S401. Electronic equipment confirmation circuit ripple interference frequency band.

[0118] Generally, the circuit ripple interference frequency band of electronic devices is 20-200kHz.

[0119] S402. Electronic devices are allocated storage space for disabled frequencies.

[0120] Step S402 can be referred to the description in step S302 above, and will not be repeated here.

[0121] S403. The electronic device traverses the circuit ripple interference frequency band, uses the frequency of each band as the scanning frequency to read the capacitance noise of the touch screen when there is no touch, and sets the scanning frequency used when the capacitance noise exceeds the judgment threshold as the disabled frequency.

[0122] Electronic devices can select frequencies in the ripple interference band at certain intervals to scan the touch screen.

[0123] In some possible cases, the interval may include, but is not limited to, 1 kHz, 5 kHz, and 10 kHz. For example, an electronic device may choose 10 kHz as the interval, and 20 kHz, 30 kHz, 40 kHz, ..., 200 kHz as the scanning frequency to scan the touch screen.

[0124] The process of setting a disabled frequency for an electronic device can be referred to the description of step S303 above, and will not be repeated here.

[0125] S404. The electronic device writes the disabled frequency to the disabled frequency storage space.

[0126] An electronic device can write N disabled frequencies into a disabled frequency storage space.

[0127] Alternatively, in another possible implementation, if no frequency is disabled, the electronic device can write a null value to the disabled frequency storage space. Refer to the description of step S304 above; it will not be repeated here.

[0128] It should be understood that the embodiments of this application can be applied to individual electronic devices. For different electronic devices, the disable frequencies set in the embodiments of this application may be the same or different. Specifically, for multiple electronic devices of the same model from the same manufacturer, each of the multiple electronic devices will have its disable frequency set according to the above steps S301-S304 or S401-S404 before leaving the factory. If the components in electronic device 1 differ from those in electronic device 2, then the disable frequencies set for electronic device 1 and electronic device 2 may be different.

[0129] Because each electronic device sets its own disable frequency according to the specific components within the device, rather than according to the parameters in the sample, each device can more effectively avoid interference from ripples by setting its own disable frequency. This reduces the likelihood of the device misinterpreting touch input when there is no user touch input.

[0130] The above Figure 5 and Figure 6 The description states that electronic devices allocate disabled frequency storage space, which can be allocated in different locations. The electronic device can allocate this disabled frequency storage space within the touch IC or on the mainboard of the electronic device. The process by which the electronic device reads the disabled frequency differs depending on the location of the disabled frequency storage space.

[0131] like Figure 7 As shown, Figure 7 An exemplary schematic diagram of an exemplary electronic device 700 provided in an embodiment of this application is shown.

[0132] The electronic device 700 may include a touch unit 701 and a motherboard 705. The touch unit 701 may include, but is not limited to, a touchscreen 702 and a touch IC 703. The touch IC 703 may include a memory 704. The motherboard 705 includes a memory 706 and a processor 707, etc.

[0133] The electronic device can allocate disabled frequency storage space in memory 704 or memory 706.

[0134] When the disabled frequency storage space is allocated in the touch IC 703, the electronic device can directly read the disabled frequency from the disabled frequency storage space in the memory 704 of the touch IC when performing the above step S202. Furthermore, the disabled frequency will not be deleted from the memory 704 after the electronic device 700 is powered off or restored to factory settings.

[0135] For processor 707, please refer to the description of processor 110 below, which will not be repeated here.

[0136] Optionally, the electronic device 700 may further include a communication bus for connecting the various components. It is understood that the various components in the electronic device 700 may also be coupled to each other via other connectors, which may include various interfaces, transmission lines, or buses. In the embodiments of this application, coupling refers to being electrically connected or interconnected, including direct connection or indirect connection via other devices.

[0137] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 700. In other embodiments of this application, the electronic device 700 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0138] When the disabled frequency storage space is allocated in the motherboard 705, the electronic device needs to read the disabled frequency from the memory 706 before executing the above step S202. The specific process can be referred to the following... Figure 8 The description.

[0139] Figure 8 An exemplary schematic diagram illustrates the process by which an electronic device reads a disabled frequency from the motherboard.

[0140] S501. After the electronic device is powered on, the motherboard initializes.

[0141] Electronic device initialization of the motherboard refers to a series of initialization operations performed on various components and interfaces on the motherboard to ensure their proper functioning. This includes memory initialization, which involves testing the memory to ensure its storage function and the integrity of the stored data.

[0142] S502. Electronic devices establish a communication connection between the motherboard and the touch IC.

[0143] S503. The electronic device transmits the disabled frequency stored in the motherboard to the touch IC via a communication connection.

[0144] S504. The touch IC will load the disable frequency into the touch IC memory.

[0145] Taking the aforementioned electronic device 700 as an example, the touch IC and motherboard 705 in electronic device 700 can establish a communication connection via a communication bus or other connectors. Electronic device 700 calls processor 707 to read the disabled frequency from memory 706 of motherboard 705, and then transmits the disabled frequency to memory 704 of touch IC 703 through the communication connection. After electronic device 700 detects that touchscreen 702 is in a lit state, it reads the disabled frequency from memory 704 of touch IC 703. After electronic device 700 is powered off, the disabled frequency is deleted from memory 704. The next time electronic device 700 is powered on, it will again read the disabled frequency from memory 706 of motherboard 705 and transmit it to memory 704.

[0146] The following describes an exemplary electronic device 100 provided in an embodiment of this application.

[0147] Figure 9 This is a schematic diagram of the structure of the electronic device 100 provided in the embodiments of this application.

[0148] The following detailed description uses electronic device 100 as an example. It should be understood that electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have different component configurations. The various components shown in the figures can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.

[0149] Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0150] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0151] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0152] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.

[0153] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0154] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0155] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0156] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface to enable the function of answering phone calls through a Bluetooth headset.

[0157] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0158] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface to enable music playback through Bluetooth headphones.

[0159] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.

[0160] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0161] The SIM interface can be used to communicate with the SIM card interface 195 to transmit data to or read data from the SIM card.

[0162] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0163] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0164] The charging management module 140 is used to receive charging input from the charger. The charger can be a wireless charger or a wired charger.

[0165] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0166] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0167] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0168] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.

[0169] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.

[0170] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0171] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0172] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0173] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microled, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0174] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0175] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and color. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0176] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0177] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0178] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0179] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0180] Internal memory 121 may include one or more random access memory (RAM) and one or more non-volatile memory (NVM).

[0181] Random access memory can include static random-access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM, for example, fifth generation DDR SDRAM is generally called DDR5 SDRAM), etc.

[0182] Non-volatile memory can include disk storage devices and flash memory.

[0183] Flash memory can be classified according to its operating principle, including NOR FLASH, NAND FLASH, 3D NAND FLASH, etc.; according to the level of the storage cell, including single-level cell (SLC), multi-level cell (MLC), triple-level cell (TLC), quad-level cell (QLC), etc.; and according to the storage specification, including universal flash storage (UFS) and embedded multimedia card (eMMC), etc.

[0184] The random access memory can be directly read and written by the processor 110. It can be used to store executable programs (such as machine instructions) of the operating system or other running programs, as well as user and application data.

[0185] Non-volatile memory can also store executable programs and user and application data, and can be pre-loaded into random access memory for direct reading and writing by the processor 110.

[0186] The external memory interface 120 can be used to connect to external non-volatile memory, thereby expanding the storage capacity of the electronic device 100. The external non-volatile memory communicates with the processor 110 through the external memory interface 120 to perform data storage functions. For example, music, video, and other files can be stored in the external non-volatile memory.

[0187] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0188] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0189] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0190] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.

[0191] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0192] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0193] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.

[0194] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.

[0195] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.

[0196] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover using the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.

[0197] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.

[0198] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.

[0199] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 may use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.

[0200] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0201] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can utilize the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.

[0202] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs thermal protection by reducing the performance of a processor located near temperature sensor 180J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.

[0203] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.

[0204] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.

[0205] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0206] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.

[0207] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and detach from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, and other SIM cards. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as calls and data communication.

[0208] Electronic device 100 can also perform the functions of electronic device 700 described above, as can be seen from the above description. Figure 7 The relevant descriptions will not be repeated here.

[0209] Figure 10 This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.

[0210] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the system is divided into four layers, from top to bottom: the application layer, the application framework layer, the runtime and system libraries, and the kernel layer.

[0211] The application layer can include a series of application packages.

[0212] like Figure 10 As shown, the application package may include applications (also known as apps) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0213] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0214] like Figure 10 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0215] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0216] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0217] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0218] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0219] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0220] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog-style notifications on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0221] The runtime consists of the core libraries and the virtual machine. The runtime is responsible for system scheduling and management.

[0222] The core library consists of two parts: one part is the functionalities that the programming language (e.g., Java) needs to call, and the other part is the system's core library.

[0223] The application layer and application framework layer run in a virtual machine. The virtual machine executes the programming files (e.g., .jave files) of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0224] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0225] The Surface Manager is used to manage the display subsystem and provides the fusion of two-dimensional (2D) and three-dimensional (3D) layers for multiple applications.

[0226] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0227] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0228] A 2D graphics engine is a graphics engine for 2D drawing.

[0229] The kernel layer is the layer between hardware and software. The kernel layer includes at least the display driver, camera driver, audio driver, sensor driver, and virtual card driver.

[0230] The following example, using a scene of capturing a photograph, illustrates the workflow of the software and hardware of the electronic device 100.

[0231] When touch sensor 180K receives a touch operation, a corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, etc.). The raw input event is stored in the kernel layer. The application framework layer retrieves the raw input event from the kernel layer and identifies the control corresponding to the input event. Taking a touch click as an example, where the corresponding control is the camera application icon, the camera application calls the application framework layer's interface to launch the camera application, and then calls the kernel layer to launch the camera driver, capturing still images or videos through camera 193.

[0232] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

[0233] As used in the above embodiments, depending on the context, the term "when..." can be interpreted as meaning "if...", "after...", "in response to determining...", or "in response to detecting...". Similarly, depending on the context, the phrase "when determining..." or "if (the stated condition or event) is interpreted as meaning "if determining...", "in response to determining...", "when (the stated condition or event) is detected", or "in response to detecting (the stated condition or event)".

[0234] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive), etc.

[0235] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM or random access memory (RAM), magnetic disks, or optical disks.

Claims

1. A touchscreen control method, characterized in that, The method is applied to an electronic device, the electronic device including a touch screen, and the method includes: The touchscreen is in the on state; When the first reporting frequency and the first disabling frequency are the same, the electronic device disables the first reporting frequency when scanning the touch screen. The electronic device stores M reporting frequencies and N disabling frequencies. The M reporting frequencies are the frequencies at which the electronic device scans the touch screen. The M reporting frequencies include the first reporting frequency, and the N disabling frequencies include the first disabling frequency. The N disabling frequencies stored in the electronic device will not be deleted after the electronic device is powered off or restored to factory settings. The N disabling frequencies are determined by detecting the frequency response characteristics of the hardware circuit in the electronic device in a static, non-touch state after the electronic device is assembled, during touch function initialization, or during factory testing. When the first reporting frequency and the first disable frequency are different, the electronic device scans the touch screen using the first reporting frequency.

2. The method according to claim 1, characterized in that, After the touchscreen is in the on state, the method further includes: The electronic device determines whether the first disabled frequency and the first reporting frequency are the same.

3. The method according to claim 2, characterized in that, Before the electronic device determines whether the first disabled frequency and the first reporting frequency are the same, the method further includes: The electronic device is configured with N disabled frequencies and the N disabled frequencies are stored in a first storage space.

4. The method according to claim 3, characterized in that, The electronic device is configured with N disabled frequencies, specifically including: The electronic device scans the touchscreen using a first frequency to obtain capacitance noise; If the capacitance noise is greater than the judgment threshold, the electronic device sets the first frequency as a disabled frequency and stores the first frequency in the first storage space.

5. The method according to claim 4, characterized in that, When N equals 0, the method further includes: Write an empty value into the first storage space.

6. The method according to claim 5, characterized in that, After the electronic device disables the first reporting frequency when scanning the touch screen, the method further includes: The electronic device confirms that the second reporting frequency is different from the first disabled frequency, and the M reporting frequencies include the second reporting frequency; The electronic device scans the touchscreen using the second reporting frequency.

7. The method according to claim 6, characterized in that, After the electronic device scans the touchscreen using the first reporting frequency, the method further includes: When the touchscreen is turned on again after being turned off, if the third reporting frequency and the second disable frequency are different, the electronic device scans the touchscreen using the third reporting frequency. The M reporting frequencies include the third reporting frequency, and the N disable frequencies include the second disable frequency.

8. The method according to claim 7, characterized in that, Before the electronic device determines whether the first disabled frequency and the first reporting frequency are the same, the method further includes: The electronic device reads the first disabled frequency from the first storage space.

9. The method according to claim 8, characterized in that, The electronic device obtains the first disabled frequency from the first storage space, specifically including: When the first storage space is in the motherboard of the electronic device, after the electronic device is powered on, the electronic device calls the processor to read the first disabled frequency from the motherboard and stores the first disabled frequency in the touch integrated circuit. When the first storage space is in the touch integrated circuit, the electronic device obtains the first disabled frequency from the touch integrated circuit.

10. The method according to any one of claims 4-9, characterized in that, The first frequency is one of the M reporting frequencies, or the first frequency is one of the ripple interference frequency bands of the touch screen power supply circuit of the electronic device.

11. An electronic device, characterized in that, include: One or more processors and a memory; the memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1-10.

12. A computer-readable storage medium comprising computer instructions, characterized in that, When the computer instructions are executed on an electronic device, the electronic device causes the electronic device to perform the method as described in any one of claims 1-10.

13. A chip system applied to an electronic device, characterized in that, The chip system includes one or more processors, which are configured to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1-10.