Screen scanning method and device and electronic equipment

By adjusting the scanning frequency in electronic devices according to the touch area, especially increasing the frequency in the edge area to collect more frame data, the delay problem caused by edge touch is solved and the accuracy and performance of screen scanning are improved.

CN120704553APending Publication Date: 2025-09-26VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510879268.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-27
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

In the prior art, electronic devices require more frames of screen data when edge touches occur to ensure the accuracy and smoothness of edge false touch judgments, but this results in a strong user perception of delay and low screen scanning performance.

Method used

When touch input is detected, regular frequency scanning is used. If the touch area is at the edge, the frequency is increased to collect multiple frames of data. Based on this data, the scanning frequency is adjusted to obtain more frame data in a short time, reduce delay perception and improve scanning accuracy.

Benefits of technology

By increasing the scanning frequency to obtain more frame data in a shorter time, the user's perception of delay is reduced, and more frame data is used to accurately adjust the scanning frequency, thereby improving the screen scanning performance of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120704553A_ABST
    Figure CN120704553A_ABST
Patent Text Reader

Abstract

The invention discloses a screen scanning method and device and electronic equipment, and belongs to the technical field of electronics. The method comprises the following steps: under the condition that touch input on a screen of the electronic equipment is detected, scanning the screen by adopting a first frequency; if the area corresponding to the touch input is the edge area of the screen, continuously scanning the screen by adopting a second frequency to obtain M frames of screen data, the second frequency being greater than the first frequency, and M being a positive integer; and adjusting the scanning frequency of the screen based on the M frames of screen data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and specifically relates to a screen scanning method, device and electronic equipment. Background Art

[0002] Currently, electronic devices (such as mobile phones) basically use capacitive screens. When a user touches the screen, the capacitance of the corresponding position on the screen will change. The collected capacitance change can be mapped to pixel-level coordinates and reported to the system, so that the mobile phone can respond to the user's operation according to the user's touch position on the screen.

[0003] Usually, when the user touches the edge of the screen, the mobile phone can determine whether it is a false touch on the edge based on the characteristics of the previous few frames of screen data of this touch. If it is a false touch on the edge, the pixel-level coordinates will not be reported; if it is not a false touch on the edge, the pixel-level coordinates will be reported, and the coordinates will be smoothed using the previous few frames of screen data. The screen data is multiple frames of data from touching the edge of the screen to reporting the coordinates.

[0004] However, when the user touches the edge, the electronic device needs more frames of screen data to obtain enough coordinate points to ensure the accuracy of edge false touch judgment and smooth processing of coordinates. But if the number of screen data frames is large, the user will have a strong perception of delay. Therefore, the performance of screen scanning of electronic devices in related technologies is relatively low. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide a screen scanning method, device and electronic device, which can improve the flexibility of electronic devices in screen scanning.

[0006] In a first aspect, an embodiment of the present application provides a screen scanning method, which includes: when a touch input to the screen of an electronic device is detected, scanning the screen at a first frequency; if the area corresponding to the touch input is an edge area of ​​the screen, continuing to scan the screen at a second frequency to obtain M frames of screen data, where the second frequency is greater than the first frequency, and M is a positive integer; and adjusting the scanning frequency of the screen based on the M frames of screen data.

[0007] In a second aspect, an embodiment of the present application provides a screen scanning device, which includes: a scanning module and an adjustment module; the scanning module is used to scan the screen at a first frequency when a touch input to the screen of the electronic device is detected; the scanning module is also used to continue scanning the screen at a second frequency if the area corresponding to the touch input is the edge area of ​​the screen, to obtain M frames of screen data, where the second frequency is greater than the first frequency, and M is a positive integer; the adjustment module is used to adjust the scanning frequency of the screen based on the M frames of screen data obtained by the scanning module.

[0008] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the programs or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect.

[0011] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the method described in the first aspect.

[0012] In an embodiment of the present application, when a touch input is detected on the screen of an electronic device, the screen is scanned at a first frequency; if the area corresponding to the touch input is an edge area of ​​the screen, the screen is continued to be scanned at a second frequency to obtain M frames of screen data, wherein the second frequency is greater than the first frequency; and based on the M frames of screen data, the scanning frequency of the screen is adjusted. Through this solution, when a user is detected touching the screen, the screen can be scanned at a regular frequency, and then when it is determined that the area of ​​the screen touched by the user is an edge area, the screen can be continued to be scanned at a higher frequency to obtain more frames of screen data in a short time. That is, this solution shortens the time it takes to scan and obtain screen data by increasing the scanning frequency, thereby reducing the user's perceived delay. Moreover, since more frames of screen data are obtained in a short time, using more frames of screen data enables the screen to be scanned at a more accurate scanning frequency, thereby improving the performance of the electronic device in scanning the screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is one of the flow charts of the screen scanning method provided in the embodiment of the present application;

[0014] Figure 2A This is one of the waveform diagrams of the common active scanning mode provided in the embodiment of the present application;

[0015] Figure 2B This is the second waveform diagram of the common active scanning mode provided in the embodiment of the present application;

[0016] Figure 3is a waveform diagram of the high-frequency active scanning method provided in an embodiment of the present application;

[0017] Figure 4 This is a schematic diagram of the edge area of ​​a mobile phone screen provided in an embodiment of the present application;

[0018] Figure 5 This is the second flow chart of the screen scanning method provided in the embodiment of the present application;

[0019] Figure 6 This is the third flow chart of the screen scanning method provided in the embodiment of the present application;

[0020] Figure 7 This is the fourth flow chart of the screen scanning method provided in an embodiment of the present application;

[0021] Figure 8 is a waveform diagram of the idle scanning mode provided in an embodiment of the present application;

[0022] Figure 9 This is the fifth flow chart of the screen scanning method provided in the embodiment of the present application;

[0023] Figure 10 This is the sixth flow chart of the screen scanning method provided in the embodiment of the present application;

[0024] Figure 11 is a schematic diagram of a screen scanning device provided in an embodiment of the present application;

[0025] Figure 12 is a structural diagram of an electronic device provided in an embodiment of the present application;

[0026] Figure 13 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0028] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0029] The terms "at least one" and "at least one of" in this application refer to any one, any two, or a combination of more than two of the objects included. For example, at least one of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c", and "a, b, and c", where a, b, and c can be single or multiple. Similarly, "at least two" means two or more, and its meaning is similar to "at least one".

[0030] The following explains some concepts and terms involved in the screen scanning method, device and electronic device provided in the embodiments of the present application.

[0031] Screen scanning: It is the process of refreshing the image line by line or point by point on the display. Each complete refresh of the entire screen generates a frame.

[0032] Scanning frequency: refers to the touch scanning frequency, that is, the number of times the capacitive sensing controller integrated circuit (IC) detects touch signals per second, and its unit is Hertz (Hz).

[0033] Active scanning: refers to the scanning method that can obtain the capacitance change of each pixel area.

[0034] Idle scanning: refers to a scanning method that can only determine whether there is a touch.

[0035] For example, when the electronic device is in the screen-on state, there are two scanning modes: active scanning and idle scanning, and the scanning period can be adjusted. Among them, active scanning can obtain the capacitance change of each node or pixel area, while idle scanning can only determine whether there is a touch.

[0036] Edge area: The edge area is generally the edge suppression area, which refers to the rectangular area around the screen except the top. On a screen with a resolution of 1440x1920, the width of each rectangular area is usually 50 pixels.

[0037] The screen scanning method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0038] At present, the touch screen interaction function mainly reports the specific pixel-level coordinates of the touch position to the system based on the position of the human hand touching. Currently, smartphones basically use capacitive screens. When a finger touches the screen, the capacitance of the corresponding touch position will change. The captured capacitance change is mapped to pixel-level coordinates through the center of gravity algorithm. Due to the curved screen or narrow frame, accidental touches may occur when holding the phone, which is inconsistent with user expectations. For example, the capacitance at the base of the user's hand will change, but it is an accidental touch behavior, and the reporting point needs to be suppressed; it is necessary to determine whether it is an accidental touch based on the data features of the first few frames of contact with the screen. Even if it is a real user behavior, clicking or sliding on the edge requires multiple frames of data for smoothing to avoid jitter of edge operations.

[0039] Current touch algorithms determine touch presence and calculate the touch location coordinates based on changes in the touchscreen sensor's capacitance. Edge touches often occur when the screen is held. These false touches require characterization based on the previous few frames of the touch, and if so, they must be suppressed. This delay typically results in delayed reporting of edge touches. Using these delayed frames for edge suppression and reporting can cause users to experience a delayed response, with the user experiencing a disconnected feel. Furthermore, due to the lack of edge sensors, smoothing edges often requires more points. More frames translate to a closer match to the user's intended target, resulting in more accurate false edge detection. However, delaying reporting by too many frames increases the user's perceived delay. Directly increasing the touchscreen's scan cycle frequency can exponentially increase power consumption.

[0040] The embodiments of the present application can be applied to scenarios where a user touches a screen of an electronic device, for example, to a scenario where a user touches a screen of an electronic device and detects whether the touch is an accidental touch.

[0041] For example, when the screen of the electronic device is in a bright screen state, the electronic device can detect whether the user touches the screen, and detect whether the touched area is an edge area and whether it is a false touch.

[0042] The embodiments of the present application provide a screen scanning method, device, and electronic device. When a touch input is detected on the screen of the electronic device, the screen is scanned at a first frequency. If the area corresponding to the touch input is the edge area of ​​the screen, the screen is scanned at a second frequency to obtain M frames of screen data, wherein the second frequency is greater than the first frequency. The scanning frequency of the screen is adjusted based on the M frames of screen data. In this way, when a user touches the screen, a regular frequency can be used to scan the screen. Then, when it is determined that the area of ​​the screen touched by the user is the edge area, a higher frequency can be used to continue scanning the screen to obtain more frames of screen data in a short time. That is, this solution shortens the time it takes to scan and obtain screen data by increasing the scanning frequency, thereby reducing the user's perceived delay. Moreover, since more frames of screen data are obtained in a short time, using more frames of screen data enables the screen to be scanned at a more accurate scanning frequency, thereby improving the screen scanning performance of the electronic device.

[0043] The screen scanning method provided in the embodiment of the present application may be executed by a screen scanning device, which may be an electronic device, or a functional module or functional entity in the electronic device. The technical solution provided in the embodiment of the present application is described below using an electronic device as an example.

[0044] Figure 1 A flow chart of a screen scanning method provided by an embodiment of the present application is shown. Figure 1 As shown, the screen scanning method provided in the embodiment of the present application may include the following steps 201 to 203.

[0045] Step 201: When a touch input to a screen of an electronic device is detected, the electronic device scans the screen using a first frequency.

[0046] In an embodiment of the present application, when the electronic device is in a screen-on state, the electronic device can detect the screen in real time to determine whether there is user touch input on the screen. After detecting user touch input on the screen, the electronic device can use a first frequency to scan the screen.

[0047] In an embodiment of the present application, the screen of the electronic device may be a capacitive screen, also known as a capacitive touch screen, which is a screen that detects touch input based on the principle of capacitive coupling. It detects the electric field changes caused by the human body touching the screen through a capacitive sensing matrix, thereby calculating the touch coordinates and realizing touch interaction function.

[0048] Optionally, in the embodiment of the present application, the capacitive screen may be a flat screen, a curved screen, or a folding screen, or other possible screens, which are not specifically limited in the embodiment of the present application.

[0049] In an embodiment of the present application, an electronic device can detect whether a touch input is applied to a capacitive screen through a capacitive sensing matrix in a capacitive screen. Specifically, a capacitive sensing controller IC in the capacitive sensing matrix can detect whether a capacitance value decreases based on changes in the electric field of a transmitter (TX) / receiver (RX) electrode array. If the capacitance value decreases, it is considered that a touch is present on the screen.

[0050] Optionally, in the embodiments of the present application, the touch input may include, but is not limited to, a user touching the screen with a touch device such as a finger or a stylus, for example, a specific gesture input by the user, or other feasible input. The specific input may be determined based on actual usage requirements and is not limited in the embodiments of the present application.

[0051] Optionally, in an embodiment of the present application, the above-mentioned specific gesture can be any one of a single-click gesture, a sliding gesture, a drag gesture, a pressure recognition gesture, a long press gesture, an area change gesture, a double-press gesture, and a double-click gesture.

[0052] Optionally, in an embodiment of the present application, the above-mentioned click input can be a single-click input, a double-click input, or any number of click inputs, etc., and can also be a long press input or a short press input.

[0053] In the embodiment of the present application, the first frequency may be a frequency in a normal active scanning mode (also referred to as a bright screen normal active scanning mode). That is, scanning the screen using the first frequency may be scanning the screen using a normal active scanning mode. For example, a typical value of the frequency in the normal active scanning mode may be approximately 130 Hz. Of course, the frequency in the normal active scanning mode may also be other values, which may be set according to actual usage requirements and are not limited in the embodiment of the present application.

[0054] It should be noted that the scanning method can also be called the scanning and coding method.

[0055] For example, Figure 2A As shown, in the normal active scanning mode, the scanning frequency is about 130Hz. Figure 2A Shows the screen coupling waveform of the normal active scanning mode.

[0056] For example, Figure 2B As shown, in the normal active scanning mode, the scanning frequency is about 130Hz. Figure 2B The coding waveform of each cycle in the normal active scanning mode is shown.

[0057] In the embodiments of the present application, the electronic device can scan the screen using the capacitive screen's electrode array (typically a matrix of interleaved rows and columns). The driving row electrodes (TX) transmit high-frequency pulse signals row by row, and the receiving column electrodes (RX) detect the signal strength of each column electrode and record the change in mutual capacitance. Typically, the electronic device can scan the screen using either progressive scanning or interlaced scanning.

[0058] Step 202: If the area corresponding to the touch input is an edge area of ​​the screen, the electronic device continues to scan the screen using the second frequency to obtain M frames of screen data.

[0059] In the embodiment of the present application, the second frequency is greater than the first frequency, and M is a positive integer.

[0060] In the embodiment of the present application, the second frequency may be a frequency in a high-frequency active scanning mode (also referred to as a bright-screen high-frequency active scanning mode). That is, scanning the screen using the second frequency may be performed using a high-frequency active scanning mode. For example, a typical value of the frequency in the high-frequency active scanning mode may be approximately 300 Hz. Of course, the frequency in the high-frequency active scanning mode may also be other values, which may be set based on actual usage requirements and are not limited in the embodiment of the present application.

[0061] For example, Figure 3 As shown, in the high-frequency active scanning mode, the scanning frequency is about 300Hz. Figure 3 Shows the screen coupling waveform of the high-frequency active scanning mode.

[0062] Optionally, in an embodiment of the present application, after the above step 201, the screen scanning method provided in the embodiment of the present application further includes the following step 204.

[0063] Step 204: The electronic device determines whether the area corresponding to the touch input is an edge area based on the N frames of screen data obtained by scanning at the first frequency.

[0064] Wherein, N is a positive integer.

[0065] For example, a conventional value of N may be 16. Of course, N may also be other values, which may be set according to actual use requirements and are not limited in the embodiments of the present application.

[0066] In an embodiment of the present application, the screen data may include a capacitance change. After obtaining the capacitance change, the electronic device may use a centroid algorithm to convert the capacitance change into a screen coordinate value, which may also be referred to as a pixel-level coordinate value. The screen coordinate value may determine the current touch position, thereby determining whether the touch position is an edge area, that is, whether it is an edge suppression area. It should be noted that the screen data may refer to the above-mentioned M frames of screen data, or may refer to the above-mentioned N frames of screen data.

[0067] It should be noted that the area corresponding to the touch input in the embodiment of the present application refers to: the touch area when touching the screen, for example, the touch area or contact area of ​​the user's finger on the screen when the user's finger touches the screen.

[0068] Optionally, in an embodiment of the present application, the edge area may be a default pixel area of ​​the electronic device system, or may be a user-defined pixel area.

[0069] For example, the width of the edge region may be 50 pixels. Of course, the width of the edge region may also be other numbers of pixels, which may be determined based on the screen size of the electronic device or actual usage requirements, and is not limited in this embodiment of the present application.

[0070] For example, take a mobile phone as an example. Figure 4 As shown, the edge area of ​​the mobile phone screen includes area 10, area 11 and area 12, where area 10 can be called the left edge area, area 11 can be called the right edge area, and area 12 can be called the bottom edge area. The width of area 10, area 11 and area 12 is 50 pixels.

[0071] Optionally, in an embodiment of the present application, the screen data may further include timing and synchronization information and metadata, etc.

[0072] Among them, the timing and synchronization information may include at least one of the following: timestamp, that is, the capture time of each frame (nanosecond accuracy), which is used to analyze the smoothness or delay of dynamic images; frame rate (FPS), that is, the scanning frequency (such as 60Hz, 120Hz), which determines the number of frames captured per second. Synchronization signals include VSync (vertical synchronization) and HSync (horizontal synchronization). VSync is used to mark the start of the frame to prevent screen tearing, and HSync is used to mark the start of each line scan. Metadata may include at least one of the following: device parameters, environmental data, system status, etc.

[0073] Optionally, in an embodiment of the present application, the electronic device can also scan the screen in an idle scanning mode to determine whether the area corresponding to the touch input is an edge area. Specifically, when a touch input to the screen of the electronic device is detected, the electronic device can determine whether it is an edge channel starting value. If it is not an edge channel starting value, it is considered that there is no user touch input in the edge area, and it can be switched to a normal active scanning mode. If it is an edge channel starting value, that is, the edge channel exceeds a threshold, then it is considered that the touch position is located in the edge area, and it can be switched to a high-frequency active scanning mode. In this way, by optimizing the touch screen scanning strategy, a high-frequency scan is performed when the edge channel sensor sensing amount (that is, the edge channel) exceeds the threshold, more frames are collected in a shorter time, the sense of delay in the response when the user clicks the edge is reduced, more frames are used to judge the edge false touch feature, and the recognition rate of the edge false touch feature judgment is improved.

[0074] It should be noted that, for the explanation of the idle scanning mode, please refer to the description in the following embodiments, which will not be repeated here.

[0075] In this way, the electronic device can use the ordinary active scanning method to scan the screen to determine whether the area corresponding to the touch input is an edge area, and then switch to the high-frequency active scanning method when it is determined to be an edge area. Therefore, while saving the power consumption of the electronic device, it can obtain more frames of screen data in a short time to determine whether the touch is a false touch.

[0076] Step 203: The electronic device adjusts the scanning frequency of the screen based on the M frames of screen data.

[0077] In an embodiment of the present application, the electronic device determines whether the touch input is a false touch based on M frames of screen data, and adjusts the scanning frequency of the screen based on the determination result of whether it is a false touch.

[0078] It should be noted that, for the implementation method of adjusting the scanning frequency of the screen of the electronic device based on the judgment result of whether it is a false touch, please refer to the description in the following embodiments, which will not be repeated here.

[0079] In an embodiment of the present application, the electronic device can use a centroid algorithm to map the capacitance change values ​​in M ​​frames of screen data to pixel-level coordinates, calculate the effective touch area corresponding to each frame of screen data, and finally determine whether the user's touch on the edge area of ​​the screen is an accidental touch by combining the pixel-level coordinates with multi-dimensional features such as the effective touch area size and shape factor. The shape factor is a set of parameters used to quantify the geometric characteristics of the touch area.

[0080] For example, a conventional value of M may be 16. Of course, M may also be other values, which may be set according to actual use requirements and are not limited in the embodiments of the present application.

[0081] Optionally, in the embodiment of the present application, Figure 1 ,like Figure 5 As shown, the above step 203 can be specifically implemented through the following step 203a.

[0082] Step 203a: If, after M frames of screen data are scanned and obtained, the area corresponding to the touch input is still an edge area, the electronic device adjusts the scanning frequency of the screen based on the M frames of screen data.

[0083] In an embodiment of the present application, if after scanning and obtaining M frames of screen data, the area corresponding to the touch input is still an edge area, the electronic device determines whether the touch input is a false touch based on the M frames of screen data, and adjusts the scanning frequency of the screen based on the judgment result of whether it is a false touch.

[0084] It should be noted that, for the implementation method of adjusting the scanning frequency of the screen of the electronic device based on the judgment result of whether it is a false touch, please refer to the description in the following embodiments, which will not be repeated here.

[0085] In the embodiment of the present application, if the touch input is still in the edge suppression area after the high-frequency scanning passes through M frames, the M frames of screen data can be used to determine edge false touches.

[0086] In this way, after obtaining M frames of screen data, the electronic device can again determine whether the area corresponding to the touch input is still the edge area, thereby avoiding the waste of system resources caused by continuing to make false touch judgments when the user touches a position that leaves the edge area after scanning and obtaining M frames of data, and improving the accuracy of edge false touch judgments, so that the judgment of edge false touches of the user's touch input is more in line with the user's intention.

[0087] It can be understood that in the embodiment of the present application, the electronic device determines whether the touch input is a false touch based on M frames of screen data, that is, more frames of screen data obtained in a short period of time. It can more accurately determine whether the user's touch is a false touch behavior, and thus adjust the scanning frequency of the screen based on the judgment result of whether it is a false touch. It can use a more accurate scanning frequency to scan the screen, thereby improving the flexibility and accuracy of the electronic device in scanning the screen, thereby improving the performance of the electronic device in scanning the screen.

[0088] An embodiment of the present application provides a screen scanning method. When it is detected that a user touches the screen, the screen can be scanned at a regular frequency. Then, when it is determined that the area of ​​the screen touched by the user is an edge area, the screen can be continued to be scanned at a higher frequency to obtain more frames of screen data in a short time. That is, this solution shortens the time it takes to scan and obtain screen data by increasing the scanning frequency, thereby reducing the user's perception of delay. Moreover, since more frames of screen data are obtained in a short time, using more frames of screen data can enable the screen to be scanned at a more accurate scanning frequency, thereby improving the screen scanning performance of the electronic device.

[0089] Optionally, the screen scanning method provided in the embodiment of the present application further includes the following step 301.

[0090] Step 301: If, after scanning and obtaining M frames of screen data, the area corresponding to the touch input is a non-edge area of ​​the screen or no touch input is detected on the screen, the electronic device adjusts the scanning frequency of the screen from the second frequency to the first frequency.

[0091] In an embodiment of the present application, if the touch input is not in the edge suppression area after M frames of high-frequency scanning, the scanning frequency of the screen can be adjusted from the second frequency to the first frequency to continue scanning the screen using the first frequency.

[0092] It should be noted that the area corresponding to the touch input is the non-edge area of ​​the screen, which means that the area corresponding to the touch input is other areas of the screen except the edge area. The non-edge area in the embodiment of the present application can also be called a non-edge inhibition area.

[0093] No touch input is detected on the screen means that a touch device such as a user's finger or a stylus has left the screen of the electronic device, that is, there is no touch input on the screen.

[0094] It should be noted that the above step 301 is executed after the above step 202, and the execution relationship between the above step 301 and step 203a is an "or" relationship, that is, when the above step 203a is executed, the above step 301 is not executed, or when the above step 301 is executed, the above step 203a is not executed.

[0095] In this way, after scanning and obtaining M frames of screen data, if the area corresponding to the touch input is a non-edge area, the electronic device can subsequently respond to the user's touch input without having to continue scanning the screen using a high-frequency active scanning method to determine whether it is a false touch. Therefore, the scanning frequency of the screen is reduced to the frequency of the ordinary active scanning method to continue detecting the user's touch input for easy response, which can save power consumption of the electronic device; or, after scanning and obtaining M frames of screen data, if no touch input is detected on the screen, then at this time, there is no need to continue scanning the screen using a high-frequency active scanning method to determine whether it is a false touch, but it can continue to detect whether there is subsequent user touch input. Based on the user's screen usage habits, the user may touch the screen again in a short period of time. Therefore, the scanning frequency of the screen is reduced to the frequency of the ordinary active scanning method for scanning, which can save power consumption of the electronic device.

[0096] Optionally, in an embodiment of the present application, if the touch input is not an accidental touch, the electronic device can convert the capacitance change values ​​in the M frames of screen data into pixel-level coordinate values, and pre-process and smooth the pixel-level coordinate values, so that the electronic device can respond to the touch input based on the smoothed pixel-level coordinate values. In this way, when the user slides in the edge area, more frames (M frames of screen data) can be used for pre-processing and smoothing related processing, improving the edge operation effect and enhancing the user experience.

[0097] Optionally, in an embodiment of the present application, if after scanning and obtaining M frames of screen data, the area corresponding to the touch input is an edge area, and the touch input is not a false touch, the electronic device can convert the capacitance change value in the M frames of screen data into a pixel-level coordinate value and report the point normally, and smooth the pixel-level coordinate value, so that the electronic device can respond to the touch input based on the smoothed pixel-level coordinate value.

[0098] In this way, through smoothing, the jitter of edge operations can be avoided, making the reporting and response operations more in line with the user's intention.

[0099] Optionally, in the embodiment of the present application, Figure 1 ,like Figure 6 As shown, the above step 203 can be specifically implemented through the following step 302.

[0100] Step 302: When the electronic device determines that the touch input is a false touch based on the M frames of screen data, it adjusts the scanning frequency of the screen from the second frequency to the third frequency.

[0101] In the embodiment of the present application, the third frequency is lower than the first frequency.

[0102] In the example of the present application, after detecting that the user's touch on the edge area of ​​the screen is an accidental touch, the electronic device can adjust the scanning frequency of the screen from the second frequency to the third frequency to continue scanning the screen using the third frequency.

[0103] In the example of the present application, the third frequency may be a frequency in a low-frequency active scanning mode (also referred to as a bright screen low-frequency active scanning mode), that is, scanning the screen using the third frequency may be performed using a low-frequency active scanning mode. For example, a conventional value of the frequency in the low-frequency active scanning mode may be approximately 60 Hz. Of course, the frequency in the low-frequency active scanning mode may also be other values, which may be set according to actual usage requirements and are not limited in the embodiment of the present application.

[0104] It is understood that if the electronic device determines, based on the M frames of screen data, that the touch input meets the edge false touch characteristics and requires edge suppression, it can switch to a low-frequency active scanning mode to scan the screen. If the screen remains in the edge suppression zone, the low-frequency active scanning mode is maintained to save power.

[0105] In this way, after the electronic device determines that the user's touch operation on the edge area is a false touch, it can continue to detect whether there is subsequent user touch input. Based on the user's screen usage habits, since the current touch input has been determined to be a false touch, the user may not touch the screen again in a short period of time. Therefore, the screen scanning frequency is reduced to the frequency of the low active scanning mode for scanning, which can save power consumption of the electronic device.

[0106] Optionally, in the embodiment of the present application, Figure 6 ,like Figure 7 As shown, after the above step 302, the screen scanning method provided in the embodiment of the present application further includes the following step 303.

[0107] Step 303: If it is detected that there is no touch input on the screen, the electronic device adjusts the scanning frequency of the screen from the third frequency to the fourth frequency.

[0108] In the embodiment of the present application, the fourth frequency is lower than the third frequency.

[0109] In the example of the present application, after detecting that the user's touch on the edge area of ​​the screen is an accidental touch, the electronic device continues to scan the screen using a third frequency. If it is detected that the user's finger or touch device such as a stylus has left the screen of the electronic device, the electronic device can adjust the scanning frequency of the screen from the third frequency to the fourth frequency to continue scanning the screen using the fourth frequency.

[0110] In the embodiment of the present application, the fourth frequency may be a frequency in an idle scanning mode (also referred to as a bright screen idle scanning mode), that is, scanning the screen using the fourth frequency may be performed using an idle scanning mode. For example, a conventional value of the frequency in the idle scanning mode may be approximately 10 Hz to 20 Hz. Of course, the frequency in the idle scanning mode may also be other values, such as approximately 100 Hz, and may be set based on actual usage requirements, and is not limited in the embodiment of the present application.

[0111] For example, Figure 8 As shown, in idle scanning mode, the scanning frequency is about 100Hz. Figure 8 The screen coupling waveform of the idle scanning mode is shown.

[0112] It is understandable that after the electronic device switches to the low-frequency active scanning mode, if it detects that a user's finger or a touch device such as a stylus leaves the screen of the electronic device, it can switch to the idle scanning mode to scan the screen.

[0113] In this way, when the user stops touching the screen, it is possible to switch to a lower frequency scan, that is, to scan using an idle scan mode. The idle scan mode is a local scan, thus saving power consumption of the electronic device.

[0114] Optionally, in the embodiment of the present application, Figure 6 ,like Figure 9 As shown, after the above step 302, the screen scanning method provided in the embodiment of the present application further includes the following step 304.

[0115] Step 304: If it is detected that the touch input moves from the edge area to the non-edge area of ​​the screen, the electronic device adjusts the scanning frequency of the screen from the third frequency to the first frequency.

[0116] In an embodiment of the present application, after detecting that the user's touch operation in the edge area of ​​the screen is an accidental touch, the electronic device continues to scan the screen using a third frequency. If it is detected that the touch input moves from the edge area of ​​the screen to the non-edge area, the electronic device can adjust the scanning frequency of the screen from the third frequency to the first frequency to continue scanning the screen using the first frequency.

[0117] It can be understood that after the electronic device switches to the low-frequency active scanning mode, if it is detected that the touch input moves from the edge area to the non-edge area, that is, the user's finger or touch device such as a stylus slides to the non-edge inhibition area, the electronic device can switch to the normal active scanning mode to scan the screen.

[0118] In this way, when the user touches the non-edge area, the user's touch input is considered not to be a false touch, and the electronic device can increase the scanning frequency of the screen from the frequency under the low-frequency active scanning mode to the frequency under the normal active scanning mode to continue to detect the user's touch input, so that it can quickly respond to the user's operation at the non-edge position of the screen, thereby improving the flexibility of the electronic device in screen scanning.

[0119] It should be noted that in the embodiments of the present application, the electronic device can adaptively configure the scanning mode based on the scanned screen data. The above embodiment configures the active scanning frequency based on whether the screen data is in the edge area and whether the edge suppression effect is satisfied. Of course, more conditions can be used to adaptively configure the scanning frequency or scanning mode, such as noise or application usage scenarios.

[0120] Optionally, in an embodiment of the present application, in certain circumstances, such as when in charging state or when a Wireless Fidelity (WiFi) signal exists in the current environment, a noise signal may be generated, interfering with screen scanning. In this case, the electronic device may adjust the scanning frequency of the screen. The adjusted scanning frequency is different from the frequency corresponding to the noise signal, thereby avoiding interference that may cause inaccurate screen data to be obtained by scanning.

[0121] Optionally, the screen scanning method provided in the embodiment of the present application further includes the following step 305.

[0122] Step 305: If the area corresponding to the touch input is a non-edge area of ​​the screen and the current application usage scenario of the screen is a specific type of application, the electronic device continues to scan the screen using the second frequency.

[0123] In the embodiment of the present application, the above-mentioned specific type of application can be a default application of the electronic device system, or can be an application pre-set by the user.

[0124] Optionally, in the embodiment of the present application, the above-mentioned specific type of application may include at least one of the following: game application, video application, web application, etc. The specific type may be determined according to actual use requirements and is not limited in the embodiment of the present application.

[0125] Optionally, in an embodiment of the present application, if the area corresponding to the touch input is a non-edge area of ​​the screen and the current application usage scenario of the screen is a specific type of application, such as the user is playing games through an electronic device, the electronic device can map the capacitance changes in the scanned screen data into pixel-level coordinate values, and detect the behavioral characteristics of the user's touch input based on the obtained pixel-level coordinate values. If the user's touch input meets characteristics such as high-frequency clicks, long presses and slides, or multi-finger collaboration, the electronic device can continue to scan the screen using a high-frequency active scanning method.

[0126] It should be noted that the above-mentioned step 305 is executed after the above-mentioned step 201, and the execution relationship between the above-mentioned step 305 and the steps 202-203 is an "or" relationship, that is, when the above-mentioned steps 202 and 203 are executed, the above-mentioned step 305 is not executed, or when the above-mentioned step 305 is executed, the above-mentioned steps 202 and 203 are not executed.

[0127] In this way, the scanning frequency of the screen can be flexibly changed according to different usage scenarios, ensuring the picture display effect without wasting the system resources of the electronic device.

[0128] Optionally, in an embodiment of the present application, when the screen is off and the gesture function is not enabled, the capacitive sensing controller IC is powered off and does not perform scanning. When the screen is off and the touch screen gesture function is enabled, when no finger is touching the touch screen, the touch screen is in gesture idle scanning; when a finger touches a non-edge position and causes the sensing amount to change by more than a threshold, the electronic device can switch to gesture active scanning. After the finger is released or if it is not recognized as a gesture within 2 seconds, the electronic device immediately switches to gesture idle scanning. If the finger is pressed for 2 seconds and is recognized as a non-gesture, the electronic device also immediately enters gesture idle scanning. If the finger touches the edge area, the gesture idle scanning is maintained.

[0129] Optionally, in an embodiment of the present application, when the touch screen gesture function is turned off when the screen is turned off, the electronic device can turn off touch screen scanning.

[0130] The following is an illustrative example of the implementation process of the screen scanning method provided in the embodiment of the present application through a specific implementation method.

[0131] This embodiment is based on the optimization of the scanning strategy before the touch position coordinate calculation related to the capacitive touch screen, such as Figure 10 As shown, the specific steps are as follows: step 21 to step 30.

[0132] Step 21: When the screen of the electronic device is on but no finger is touching it, the capacitive sensing controller IC of the electronic device is in the idle scanning state.

[0133] Step 22: The electronic device determines whether there is a finger touch.

[0134] If yes, execute step 23 below; if no, execute step 21 above.

[0135] Step 23: The electronic device uses normal active scanning with the screen on.

[0136] It is understandable that when a finger touches the electronic device, the electronic device can switch to normal active scanning with the bright screen.

[0137] Step 24: The electronic device determines whether the touch position is located in the edge area.

[0138] If so, execute the following step 25; if not, execute the above steps 23 and 22 and their subsequent steps, that is, if the touch position is in the non-edge area, the electronic device continues to maintain the normal active scanning of the bright screen, and then continues to determine whether there is a finger touch, and immediately switches to the idle scanning of the bright screen after the finger leaves (that is, execute the above step 21).

[0139] Step 25: The electronic device switches to bright screen high-frequency active scanning.

[0140] It is understandable that if the touch position is located in the edge area, the electronic device can switch to bright screen high-frequency active scanning.

[0141] In this way, there are more frames of screen data at the same time, more frames can be used to determine the current touch state, and whether it is currently in the edge suppression state can be more accurately determined. More information can be used to smooth and optimize the currently reported coordinates, which is closer to the user's operation intention.

[0142] It should be noted that after several frames, the screen is switched back to normal active scanning, or when the coordinate position is calculated to leave the edge area, the screen is switched back to normal active scanning. That is, after several frames or when the coordinate position is calculated to leave the edge area, the above steps 23 and 22 and their subsequent steps are executed.

[0143] Step 26: The electronic device again determines whether the touch position is located in the edge area.

[0144] If yes, execute step 27 below; if no, execute step 23 above.

[0145] Step 27: The electronic device determines whether the touch is an accidental touch.

[0146] If yes, execute the following step 28; if no, execute the above steps 23 and 22 and their subsequent steps.

[0147] It is understood that if the touch position is determined to be in the edge area, the electronic device can continue to determine whether the touch input by the user's finger on the screen is an accidental touch. If it is an accidental touch, the electronic device switches from the bright screen high-frequency active scan to the bright screen low-frequency active scan. If it is not an accidental touch, the electronic device switches from the bright screen high-frequency active scan to the bright screen normal active scan.

[0148] Step 28: The electronic device uses a bright screen low-frequency active scan.

[0149] It can be understood that after switching back to the normal active scan with the bright screen, if the pixel-level coordinate value of the touch position is still within the edge area, and the screen data obtained based on the high-frequency active scan of the bright screen determines that the touch input meets the edge suppression feature, then the screen is switched to the low-frequency active scan with the bright screen. If the touch input does not meet the edge suppression feature, the screen is immediately switched back to the normal active scan with the bright screen.

[0150] Step 29: The electronic device determines whether there is a finger touch.

[0151] If yes, execute step 30 below; if no, execute step 21 above.

[0152] It can be understood that after executing the above step 28 or step 23, if the finger is released, the electronic device can switch back to idle scanning with the screen on.

[0153] Step 30: The electronic device determines whether the touch position is in a non-edge area.

[0154] If yes, then execute the above step 23 and step 22 and their subsequent steps; if no, then execute the above step 28.

[0155] In an embodiment of the present application, the effect of a user touching the screen at the edge is improved without consuming a large amount of power. By sensing the user's operation and adaptively adjusting the scanning frequency, when it is detected that the user begins to touch the edge, it is adjusted to high-frequency scanning, which can obtain more frame data in a shorter time. That is, when touching the edge, more information can be obtained in a short time, and the user's operation intention can be more accurately judged to determine whether it is edge suppression, thereby improving the accuracy of edge suppression recognition and reducing the edge operation delay. After determining that the edge is accidentally touched through multiple frames of data, it can switch to low-frequency scanning, or switch to normal active scanning when sliding out of the edge position, avoiding being in high-frequency active scanning all the time and consuming more power.

[0156] Each of the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or any two or more of them can be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of this application do not limit this.

[0157] The screen scanning method provided in the embodiment of the present application can be executed by a screen scanning device. In the embodiment of the present application, the screen scanning device provided in the embodiment of the present application is described by taking the screen scanning method executed by the screen scanning device as an example.

[0158] Figure 11 FIG. 1 shows a possible structural diagram of a screen scanning device involved in some embodiments of the present application. Figure 11 As shown, the screen scanning device 70 may include: a scanning module 71 and an adjustment module 72.

[0159] Among them, the scanning module 71 is used to scan the screen at a first frequency when a touch input to the screen of the electronic device is detected; the scanning module 71 is also used to continue scanning the screen at a second frequency if the area corresponding to the touch input is the edge area of ​​the screen, to obtain M frames of screen data, where the second frequency is greater than the first frequency, and M is a positive integer; the adjustment module 72 is used to adjust the scanning frequency of the screen based on the M frames of screen data obtained by the scanning module 71.

[0160] In a possible implementation, the adjustment module 72 is specifically configured to adjust the scanning frequency of the screen based on the M frames of screen data if the area corresponding to the touch input is still an edge area after M frames of screen data are scanned.

[0161] In one possible implementation, the adjustment module 72 is further used to adjust the scanning frequency of the screen from the second frequency to the first frequency if, after scanning and obtaining M frames of screen data, the area corresponding to the touch input is a non-edge area of ​​the screen or no touch input is detected on the screen.

[0162] In a possible implementation, the adjustment module 72 is specifically configured to adjust the scanning frequency of the screen from the second frequency to a third frequency less than the first frequency when determining that the touch input is a false touch based on M frames of screen data.

[0163] In one possible implementation, the adjustment module 72 is further configured to adjust the scanning frequency of the screen from the third frequency to a fourth frequency after adjusting the scanning frequency of the screen from the second frequency to the third frequency, if it is detected that there is no touch input on the screen, and the fourth frequency is less than the third frequency.

[0164] In one possible implementation, the above-mentioned adjustment module 72 is also used to adjust the scanning frequency of the screen from the third frequency to the first frequency after adjusting the scanning frequency of the screen from the second frequency to the third frequency, if it is detected that the touch input moves from the edge area to the non-edge area of ​​the screen.

[0165] In a possible implementation, the adjustment module 72 is further configured to determine whether the area corresponding to the touch input is an edge area based on N frames of screen data obtained by scanning at the first frequency, where N is a positive integer.

[0166] In a possible implementation, the scanning module 71 is further configured to continue scanning the screen at a second frequency if the area corresponding to the touch input is a non-edge area of ​​the screen and the current application usage scenario of the screen is a specific type of application.

[0167] A screen scanning device is provided in an embodiment of the present application. When it is detected that a user touches the screen, the screen scanning device can scan the screen at a regular frequency. Then, when it is determined that the area of ​​the screen touched by the user is an edge area, the screen scanning device can continue to scan the screen at a higher frequency to obtain more frames of screen data in a short time. That is, this solution shortens the time it takes to scan and obtain screen data by increasing the scanning frequency, thereby reducing the user's perception of delay. Moreover, since more frames of screen data are obtained in a short time, using more frames of screen data can enable the screen to be scanned at a more accurate scanning frequency, thereby improving the performance of the screen scanning device in scanning the screen.

[0168] The screen scanning device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or a device other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a personal digital assistant (PDA), etc., and can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., and the embodiment of the present application does not specifically limit it.

[0169] The screen scanning device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0170] The screen scanning device provided in the embodiment of the present application can implement each process implemented in the above-mentioned screen scanning method embodiment. To avoid repetition, they will not be described here.

[0171] Alternatively, as Figure 12As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, wherein the memory 702 stores a program or instruction that can be run on the processor 701. When the program or instruction is executed by the processor 701, the various steps of the above-mentioned screen scanning method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0172] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0173] Figure 13 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.

[0174] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101 , a network module 102 , an audio output unit 103 , an input unit 104 , a sensor 105 , a display unit 106 , a user input unit 107 , an interface unit 108 , a memory 109 , and a processor 110 .

[0175] Those skilled in the art will understand that the electronic device 100 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 13 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.

[0176] The processor 110 is configured to scan the screen using a first frequency when a touch input to the screen of the electronic device is detected;

[0177] The processor 110 is further configured to, if the area corresponding to the touch input is an edge area of ​​the screen, continue scanning the screen at a second frequency to obtain M frames of screen data, where the second frequency is greater than the first frequency, and M is a positive integer;

[0178] The processor 110 is further configured to adjust the scanning frequency of the screen based on the M frames of screen data.

[0179] In a possible implementation, the processor 110 is specifically configured to adjust the scanning frequency of the screen based on the M frames of screen data if, after M frames of screen data are scanned and obtained, the area corresponding to the touch input is still an edge area.

[0180] In one possible implementation, the processor 110 is further configured to adjust the scanning frequency of the screen from the second frequency to the first frequency if, after scanning and obtaining M frames of screen data, the area corresponding to the touch input is a non-edge area of ​​the screen or no touch input is detected on the screen.

[0181] In a possible implementation, the processor 110 is specifically configured to adjust the scanning frequency of the screen from the second frequency to a third frequency less than the first frequency when determining that the touch input is a false touch based on M frames of screen data.

[0182] In one possible implementation, the processor 110 is further configured to, after adjusting the scanning frequency of the screen from the second frequency to the third frequency, adjust the scanning frequency of the screen from the third frequency to a fourth frequency if it is detected that there is no touch input on the screen, and the fourth frequency is less than the third frequency.

[0183] In one possible implementation, the processor 110 is further configured to, after adjusting the scanning frequency of the screen from the second frequency to the third frequency, adjust the scanning frequency of the screen from the third frequency to the first frequency if it is detected that the touch input moves from the edge area to the non-edge area of ​​the screen.

[0184] In a possible implementation, the processor 110 is further configured to determine whether the area corresponding to the touch input is an edge area based on N frames of screen data obtained by scanning at the first frequency, where N is a positive integer.

[0185] In a possible implementation, the processor 110 is further configured to continue scanning the screen at a second frequency if the area corresponding to the touch input is a non-edge area of ​​the screen and the current application usage scenario of the screen is a specific type of application.

[0186] An embodiment of the present application provides an electronic device. When it is detected that a user touches the screen, the electronic device can scan the screen at a regular frequency. Then, when it is determined that the area of ​​the screen touched by the user is an edge area, the electronic device can continue to scan the screen at a higher frequency to obtain more frames of screen data in a short time. That is, this solution shortens the time it takes to scan and obtain screen data by increasing the scanning frequency, thereby reducing the user's perception of delay. Moreover, since more frames of screen data are obtained in a short time, using more frames of screen data can enable the screen to be scanned at a more accurate scanning frequency, thereby improving the performance of the electronic device in scanning the screen.

[0187] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here. The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, it will not be repeated here.

[0188] It should be understood that in an embodiment of the present application, the input unit 104 may include a graphics processing unit (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and at least one of other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here.

[0189] The memory 109 can be used to store software programs and various data. The memory 109 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, applications or instructions required for at least one function (such as a sound playback function, an image playback function, etc.). In addition, the memory 109 may include a volatile memory or a non-volatile memory, or the memory x09 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (DRRAM). The memory 109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0190] Processor 110 may include one or more processing units. Optionally, processor 110 integrates an application processor and a modem processor. The application processor primarily handles operations related to the operating system, user interface, and application programs, while the modem processor primarily processes wireless communication signals, such as a baseband processor. It is understood that the modem processor may not be integrated into processor 110.

[0191] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned screen scanning method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0192] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0193] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned screen scanning method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0194] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0195] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned screen scanning method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0196] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0197] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

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

Claims

1. A screen scanning method, characterized in that: The method comprises: When a touch input to a screen of an electronic device is detected, scanning the screen using a first frequency; If the area corresponding to the touch input is an edge area of ​​the screen, the screen is continuously scanned using a second frequency to obtain M frames of screen data, where the second frequency is greater than the first frequency, and M is a positive integer; Based on the M frames of screen data, a scanning frequency of the screen is adjusted.

2. The method according to claim 1, characterized in that The adjusting the scanning frequency of the screen based on the M frames of screen data includes: If, after the M frames of screen data are scanned and obtained, the area corresponding to the touch input is still the edge area, the scanning frequency of the screen is adjusted based on the M frames of screen data.

3. The method according to claim 1, characterized in that The adjusting the scanning frequency of the screen based on the M frames of screen data includes: If it is determined based on the M frames of screen data that the touch input is a false touch, the scanning frequency of the screen is adjusted from the second frequency to a third frequency, where the third frequency is lower than the first frequency.

4. The method according to claim 3, characterized in that After adjusting the scanning frequency of the screen from the second frequency to a third frequency, the method further includes: If it is detected that there is no touch input on the screen, the scanning frequency of the screen is adjusted from the third frequency to a fourth frequency, where the fourth frequency is lower than the third frequency.

5. The method according to claim 3, characterized in that After adjusting the scanning frequency of the screen from the second frequency to a third frequency, the method further includes: If it is detected that the touch input moves from the edge area to the non-edge area of ​​the screen, the scanning frequency of the screen is adjusted from the third frequency to the first frequency.

6. A screen scanning device, characterized in that: The device comprises: a scanning module and an adjustment module; The scanning module is configured to scan the screen of the electronic device using a first frequency when a touch input to the screen of the electronic device is detected; The scanning module is further configured to, if the area corresponding to the touch input is an edge area of ​​the screen, continue scanning the screen at a second frequency to obtain M frames of screen data, where the second frequency is greater than the first frequency, and M is a positive integer; The adjustment module is used to adjust the scanning frequency of the screen based on the M frames of screen data obtained by the scanning module.

7. The device according to claim 6, characterized in that The adjustment module is specifically configured to adjust the scanning frequency of the screen based on the M frames of screen data if, after scanning and obtaining the M frames of screen data, the area corresponding to the touch input is still the edge area.

8. The device according to claim 6, characterized in that The adjustment module is specifically configured to adjust the scanning frequency of the screen from the second frequency to a third frequency less than the first frequency when it is determined that the touch input is a false touch based on the M frames of screen data.

9. The device according to claim 8, characterized in that The adjustment module is further configured to, after adjusting the scanning frequency of the screen from the second frequency to the third frequency, adjust the scanning frequency of the screen from the third frequency to a fourth frequency if it is detected that no touch input is present on the screen, wherein the fourth frequency is less than the third frequency.

10. The device according to claim 8, characterized in that The adjustment module is further used to adjust the scanning frequency of the screen from the third frequency to the first frequency after adjusting the scanning frequency of the screen from the second frequency to the third frequency if it is detected that the touch input moves from the edge area to the non-edge area of ​​the screen.

11. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the screen scanning method according to any one of claims 1 to 5 are implemented.