Signal scanning method, device, terminal and storage medium
By having the touch chip immediately determine and report the touch event upon completion of the scanning signal, the problems of slow response speed and low sensitivity in the existing technology are solved, and efficient signal scanning and fast response of the touch screen are achieved.
Patent Information
- Application Number
- CN201910364192.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-30
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2039-04-30
AI Technical Summary
In the prior art, the touch screen signal scanning method of the terminal results in a slow response speed and low sensitivity of the processor to the touch signal. This is because the touch chip fails to immediately determine the touch event and report it after scanning the signal, resulting in a long time interval.
The touch chip immediately determines and reports the touch event upon completion of the scan signal, eliminating the limitation of the frame scan cycle and enabling real-time processing of signal scanning, touch event determination, and reporting.
It improves signal scanning efficiency, enhances touchscreen sensitivity and response speed, and shortens the time interval between signal scanning and reporting.
Smart Images

Figure CN111857396B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of terminal technology, and in particular to a signal scanning method, device, terminal and storage medium. Background Art
[0002] At present, the screen of the terminal is generally a touch screen, and the user can operate the terminal by touching the touch screen. The essence of this process is that the terminal scans the signal in the touch screen. When the signal is scanned, the scan signal is calculated to determine the touch event corresponding to the scan signal, and then the touch event is processed to achieve a response to the touch event.
[0003] In the related art, a frame scanning cycle is usually preset, and after a signal is scanned in a current frame scanning cycle, the next frame scanning cycle after the current frame scanning cycle is waited for, and scanning is continued at the start time of the next frame scanning cycle. Summary of the invention
[0004] In order to solve the problems existing in the related art, the present disclosure provides a signal scanning method, device, terminal and storage medium. The technical solution is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a signal scanning method is provided, the method comprising:
[0006] Performing signal scanning on the touch screen of the terminal to obtain a first scanning signal;
[0007] Determining a time when the first scanning signal scanning is completed;
[0008] Based on the scanning completion time, the touch screen continues to scan signals.
[0009] In a possible implementation, the method further includes:
[0010] Based on the scanning completion time, a touch event corresponding to the first scanning signal is determined.
[0011] In another possible implementation, the method further includes:
[0012] Determining a touch event completion time corresponding to the first scanning signal;
[0013] Based on the touch event completion time, the touch event is processed.
[0014] In another possible implementation, the continuing to perform signal scanning on the touch screen based on the scanning completion time includes: continuing to perform signal scanning on the touch screen at the time when the first scanning signal scanning is completed; and / or,
[0015] The determining the touch event corresponding to the first scanning signal based on the scanning completion time includes: determining the touch event corresponding to the first scanning signal at the scanning completion time of the first scanning signal; and / or,
[0016] The processing of the touch event based on the touch event completion time includes: processing the touch event at the touch event completion time corresponding to the first scanning signal.
[0017] In another possible implementation manner, determining the touch event corresponding to the first scanning signal includes:
[0018] extracting a signal feature of the first scanning signal;
[0019] Determining a degree of match between the signal characteristic and a signal characteristic of each specified touch event;
[0020] A touch event corresponding to the first scanning signal is selected from the designated touch events according to a matching degree between the signal feature and a signal feature of each designated touch event.
[0021] In another possible implementation, the method further includes:
[0022] When the first scanning signal is a signal scanned within the first time period when the touch screen receives a touch operation, the step of continuing to scan the touch screen for signals at the moment when the scanning of the first scanning signal is completed is executed, wherein the first time period is an earlier time period within the time period when the touch screen receives a touch operation.
[0023] In another possible implementation, after processing the touch event, the method further includes:
[0024] According to a preset frame scanning cycle, waiting for the start of a first frame scanning cycle, wherein the first frame scanning cycle is a next frame scanning cycle adjacent to the current frame scanning cycle;
[0025] At the beginning of the first frame scanning period, the touch screen continues to be scanned for signals.
[0026] In another possible implementation, within a second time period when the touch screen receives the touch operation, the second time period is later than the first time period, the first time period is an earlier time period when the touch screen receives the touch operation, and the scanning signal obtained within the second time period is a second scanning signal, and the method further includes:
[0027] Waiting for the start of a second frame scanning cycle, wherein the second frame scanning cycle is a next frame scanning cycle adjacent to the first frame scanning cycle determined according to the preset frame scanning cycle; at the start of the second frame scanning cycle, determining a touch event corresponding to the second scanning signal; at the start of a third frame scanning cycle, processing the touch event corresponding to the second scanning signal, wherein the third frame scanning cycle is a next frame scanning cycle adjacent to the second frame scanning cycle determined according to the preset frame scanning cycle; or,
[0028] At the moment when the second scanning signal completes scanning, determining the touch event corresponding to the second scanning signal, and waiting for the start of the second frame scanning cycle; at the beginning of the second frame scanning cycle, processing the touch event corresponding to the second scanning signal; or,
[0029] At the moment when the scanning of the second scanning signal is completed, a touch event corresponding to the second scanning signal is determined; and at the moment when it is determined that the touch event corresponding to the second scanning signal is completed, the touch event corresponding to the second scanning signal is processed.
[0030] According to a second aspect of an embodiment of the present disclosure, a signal scanning device is provided, the device comprising:
[0031] A scanning module, used to perform signal scanning on the touch screen of the terminal to obtain a first scanning signal;
[0032] A determination module, used to determine the time when the first scanning signal scanning is completed;
[0033] The scanning module is further used to continue scanning the touch screen for signals based on the scanning completion time.
[0034] In a possible implementation, the determination module is further configured to determine a touch event corresponding to the first scanning signal based on the scanning completion time.
[0035] In another possible implementation, the device further includes:
[0036] The determination module is further used to determine the completion time of the touch event corresponding to the first scanning signal;
[0037] The processing module is used to process the touch event based on the touch event completion time.
[0038] In another possible implementation, the scanning module is further configured to continue to perform signal scanning on the touch screen when the first scanning signal scanning is completed; and / or,
[0039] The determination module is further configured to determine a touch event corresponding to the first scanning signal when the first scanning signal completes scanning; and / or,
[0040] The processing module is further configured to process the touch event when the touch event corresponding to the first scanning signal is completed.
[0041] In another possible implementation, the determination module is also used to extract signal characteristics of the first scanning signal; determine the degree of matching between the signal characteristics and the signal characteristics of each specified touch event; and select a touch event corresponding to the first scanning signal from the specified touch events based on the degree of matching between the signal characteristics and the signal characteristics of each specified touch event.
[0042] In another possible implementation, the scanning module is also used to continue scanning the touch screen for signals at a moment when the scanning of the first scanning signal is completed, when the first scanning signal is a signal scanned within a first time period when the touch screen receives a touch operation, wherein the first time period is an earlier time period within the time period when the touch screen receives a touch operation.
[0043] In another possible implementation, the scanning module is also used to wait for the start of a first frame scanning cycle according to a preset frame scanning cycle, where the first frame scanning cycle is the next frame scanning cycle adjacent to the current frame scanning cycle; at the start of the first frame scanning cycle, the touch screen continues to perform signal scanning.
[0044] In another possible implementation, within a second time period when the touch screen receives the touch operation, the second time period is later than the first time period, the first time period is an earlier time period when the touch screen receives the touch operation, and the scanning signal obtained within the second time period is a second scanning signal;
[0045] The scanning module is further used to wait for the start of a second frame scanning cycle, where the second frame scanning cycle is a next frame scanning cycle adjacent to the first frame scanning cycle determined according to the preset frame scanning cycle; the determining module is further used to determine the touch event corresponding to the second scanning signal at the start of the second frame scanning cycle; the processing module is further used to process the touch event corresponding to the second scanning signal at the start of a third frame scanning cycle, where the third frame scanning cycle is a next frame scanning cycle adjacent to the second frame scanning cycle determined according to the preset frame scanning cycle; or,
[0046] The determination module is further used to determine the touch event corresponding to the second scan signal at the moment when the second scan signal completes scanning, and wait for the start of the third frame scan cycle; the processing module is further used to process the touch event corresponding to the second scan signal at the start of the third frame scan cycle; or,
[0047] The determination module is further used to determine the touch event corresponding to the second scan signal when the scanning of the second scan signal is completed; the processing module is further used to process the touch event corresponding to the second scan signal when it is determined that the touch event corresponding to the second scan signal is completed.
[0048] According to a third aspect of an embodiment of the present disclosure, a terminal is provided, the terminal including:
[0049] one or more processors;
[0050] volatile or non-volatile memory for storing the one or more processor-executable instructions;
[0051] Wherein, the one or more processors are configured to:
[0052] Performing signal scanning on the touch screen of the terminal to obtain a first scanning signal;
[0053] Determining a time when the first scanning signal scanning is completed;
[0054] Based on the scanning completion time, the touch screen continues to scan signals.
[0055] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When at least one instruction is stored in the computer-readable storage medium, the instruction is loaded and executed by a processor to implement the steps in the signal scanning method described in any one of the first aspects above.
[0056] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0057] The signal scanning method provided by the embodiment of the present disclosure obtains a first scanning signal by performing a signal scanning on the touch screen of the terminal. The time when the scanning of the first scanning signal is completed is determined, and based on the time when the scanning of the first scanning signal is completed, the signal scanning of the touch screen is continued. When the scanning of the first scanning signal is completed, the method quickly starts the next round of scanning based on the scanning completion time, thereby improving the scanning efficiency of the signal scanning and improving the sensitivity of the touch screen.
[0058] In the disclosed embodiment, the method can determine the touch event corresponding to the first scan signal based on the scanning completion time of the first scan signal, and implement the operation of the scan signal immediately at the scanning completion time of the first scan signal. By processing the touch event based on the touch event completion time, the interrupt reporting is implemented immediately after the operation is completed, which effectively improves the response speed of the terminal touch screen.
[0059] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0061] Figure 1 is a schematic diagram of a terminal according to an exemplary embodiment;
[0062] Figure 2 is a flow chart of a signal scanning method according to an exemplary embodiment;
[0063] Figure 3 is a flow chart of a signal scanning method according to an exemplary embodiment;
[0064] Figure 4 is a schematic diagram showing a touch chip performing signal scanning, determining a touch event, and reporting the touch event according to an exemplary embodiment;
[0065] Figure 5 is a schematic diagram showing a touch chip executing signal scanning, determining a touch event, and reporting the touch event according to an exemplary embodiment;
[0066] Figure 6 is a schematic diagram showing a touch chip performing signal scanning, determining a touch event, and reporting the touch event according to an exemplary embodiment;
[0067] Figure 7 is a schematic diagram showing a touch chip performing signal scanning, determining a touch event, and reporting the touch event according to an exemplary embodiment;
[0068] Figure 8 is a structural schematic diagram of a signal scanning device according to an exemplary embodiment;
[0069] Fig. 9 It is a structural block diagram of a terminal according to an exemplary embodiment. DETAILED DESCRIPTION
[0070] In order to make the technical solutions and advantages of the present disclosure more clear, the embodiments of the present disclosure are described in further detail below.
[0071] A signal scanning method provided by the embodiment of the present disclosure is applied to a terminal, see Figure 1 The terminal includes: a touch chip 101, a processor 102, a touch screen 103 and a housing 104. The touch screen 103 is arranged on the upper surface of the housing 104, the touch chip 101 and the processor 102 are arranged in the housing 104, and the touch chip 101 and the processor 102 can be connected wirelessly.
[0072] The touch chip 101 is used to scan signals in the touch screen 103 of the terminal; when a signal is scanned, at the moment of scanning completion, the touch event corresponding to the scan signal is determined, and the touch signal corresponding to the touch event is reported to the processor 102;
[0073] The processor 102 is used for processing the touch event according to the touch signal when receiving the touch signal sent by the touch chip 101, so as to respond to the touch event.
[0074] In the related art, the scanning cycle of each frame is pre-set. When the touch chip 101 scans a signal in the current frame scanning cycle, it does not immediately determine the touch event corresponding to the scanning signal, but waits for the next frame scanning cycle to start. The touch event corresponding to the scanning signal is determined at the beginning of the next frame scanning cycle. Moreover, after determining the touch event corresponding to the scanning signal, the touch signal corresponding to the touch event is not immediately reported, but the touch signal corresponding to the touch event is reported to the processor 102 at the beginning of the next frame scanning cycle. However, in the related art, the time interval from the start of scanning the signal to reporting the touch signal to the processor 102 is relatively long, resulting in a slow response speed of the processor 102 to the touch signal and low sensitivity of the touch screen 103.
[0075] In the embodiment of the present disclosure, the touch chip 101 is no longer limited by the scanning cycle of each frame. When the touch chip 101 scans a signal, at the moment when the signal scanning is completed, the touch screen continues to scan the signal, and immediately starts to determine the touch event corresponding to the scanning signal. At the moment when the touch event is determined to be completed, the touch signal corresponding to the touch event is immediately reported to the processor 102. At the moment when the next scanning signal scanning is completed, the touch screen continues to scan the signal, and at the same time, the touch event corresponding to the next scanning signal is determined. At the moment when the touch event corresponding to the next scanning signal is determined to be completed, the touch signal corresponding to the touch event of the next scanning signal is immediately reported to the processor 102. In this case, the touch chip 101 performs signal scanning, determines the touch event corresponding to the scanning signal, and reports the touch signal corresponding to the touch event to the processor 102 at the fastest speed, thereby reducing the time interval between the touch chip 101 scanning the signal and reporting the touch signal to the processor 102, improving the response speed of the processor 102 to the touch signal, and thus improving the sensitivity of the touch screen 103.
[0076] Figure 2 is a flow chart of a signal scanning method provided by an embodiment of the present disclosure, such as Figure 2 As shown, the method is applied in a terminal and includes the following steps:
[0077] In step S201, a signal scan is performed on the touch screen of the terminal to obtain a first scanning signal.
[0078] In step S202, the first scanning signal scanning completion time is determined.
[0079] In step S203, based on the scanning completion time, the touch screen continues to scan signals.
[0080] In a possible implementation, the method further includes:
[0081] Based on the scanning completion time, the touch event corresponding to the first scanning signal is determined. That is, the touch event is calculated based on the scanning signal.
[0082] In another possible implementation, the method further includes:
[0083] Determine a touch event completion time corresponding to the first scanning signal;
[0084] Based on the touch event completion time, the touch event is processed, wherein the touch event is processed, that is, interrupt reporting is performed based on the calculated touch event.
[0085] In another possible implementation, based on the scanning completion time, continuing to scan the touch screen for signals includes: at the time when the first scanning signal scanning is completed, continuing to scan the touch screen for signals; and / or,
[0086] Determining the touch event corresponding to the first scan signal based on the scan completion time includes: determining the touch event corresponding to the first scan signal at the scan completion time of the first scan signal; and / or,
[0087] Processing the touch event based on the touch event completion time includes: processing the touch event at the touch event completion time corresponding to the first scanning signal.
[0088] Preferably, the touch screen is scanned for signals immediately when the first scan signal scan is completed. Alternatively, the touch screen may be scanned for signals after a first preset time period when the first scan signal scan is completed.
[0089] Preferably, the step of determining the touch event corresponding to the first scan signal is performed immediately when the first scan signal scans. Alternatively, the step of determining the touch event corresponding to the first scan signal may be performed after a second preset time period when the first scan signal scans.
[0090] Preferably, the touch event is processed immediately when the touch event corresponding to the first scan signal is completed. Alternatively, the touch event may be processed after a third preset time period from when the touch event corresponding to the first scan signal is completed.
[0091] In another possible implementation, determining the touch event corresponding to the first scanning signal includes:
[0092] extracting a signal feature of a first scanning signal;
[0093] Determining a degree of match between the signal characteristic and the signal characteristic of each specified touch event;
[0094] A touch event corresponding to the first scanning signal is selected from the designated touch events according to a matching degree between the signal feature and the signal feature of each designated touch event.
[0095] In another possible implementation, the method further includes:
[0096] When the first scanning signal is a signal scanned by the touch screen within the first time period when the touch screen receives a touch operation, the step of continuing to scan the touch screen for signals is executed at the moment when the first scanning signal scan is completed, wherein the first time period is a time period earlier than the time period when the touch screen receives the touch operation.
[0097] In another possible implementation, after processing the touch event, the method further includes:
[0098] According to a preset frame scanning cycle, waiting for the start of a first frame scanning cycle, the first frame scanning cycle being a next frame scanning cycle adjacent to the current frame scanning cycle;
[0099] At the beginning of the first frame scanning period, the touch screen continues to be scanned for signals.
[0100] In another possible implementation, within a second time period when the touch screen receives the touch operation, the second time period is later than the first time period, the first time period is an earlier time period within the time period when the touch screen receives the touch operation, and the scanning signal obtained within the second time period is a second scanning signal, and the method further includes:
[0101] Waiting for the start of a second frame scanning cycle, where the second frame scanning cycle is the next frame scanning cycle adjacent to the first frame scanning cycle determined according to a preset frame scanning cycle; determining a touch event corresponding to the second scanning signal at the start of the second frame scanning cycle; processing a touch event corresponding to the second scanning signal at the start of a third frame scanning cycle, where the third frame scanning cycle is the next frame scanning cycle adjacent to the second frame scanning cycle determined according to a preset frame scanning cycle; or,
[0102] At the moment when the second scanning signal scans and completes, determining the touch event corresponding to the second scanning signal, waiting for the start of the second frame scanning cycle; at the beginning of the second frame scanning cycle, processing the touch event corresponding to the second scanning signal; or,
[0103] At the moment when the second scan signal scans and completes, a touch event corresponding to the second scan signal is determined; and at the moment when the touch event corresponding to the second scan signal is determined to be completed, the touch event corresponding to the second scan signal is processed.
[0104] The signal scanning method provided by the embodiment of the present disclosure obtains a first scanning signal by performing a signal scanning on the touch screen of the terminal. The time when the scanning of the first scanning signal is completed is determined, and based on the time when the scanning of the first scanning signal is completed, the signal scanning of the touch screen is continued. When the scanning of the first scanning signal is completed, the method quickly starts the next round of scanning based on the scanning completion time, thereby improving the scanning efficiency of the signal scanning and improving the sensitivity of the touch screen.
[0105] Figure 3 is a flow chart of a signal scanning method provided by an embodiment of the present disclosure, such as Figure 3 As shown, the method is applied to a touch chip in a terminal and a processor in the terminal, and includes the following steps:
[0106] In step S301, the touch chip performs signal scanning on the touch screen of the terminal to obtain a first scanning signal.
[0107] In this step, the touch chip can scan mutual capacitance sensing signals, self capacitance sensing signals or noise signals when scanning the touch screen of the terminal. Therefore, the first scanning signal includes at least one of the mutual capacitance sensing signals, self capacitance sensing signals and noise signals; accordingly, this step can be implemented by at least one of the following steps, including:
[0108] The touch chip scans the mutual capacitance sensing signal in the touch screen to obtain a first scanning signal;
[0109] The touch chip scans the self-capacitance sensing signal in the touch screen to obtain a first scanning signal;
[0110] The touch chip scans the noise signal in the touch screen to obtain a first scanning signal.
[0111] One point that needs to be explained is that when the touch chip performs signal scanning, the signal scanned when the touch screen receives a touch operation can be used as the first scanning signal. Alternatively, the signal between the signal scanned when the touch screen receives a touch operation and the signal scanned when responding to the touch operation can be used as the first scanning signal, and the signal scanned after responding to the touch operation can be used as the second scanning signal. Alternatively, the signal scanned within a preset number of frames of contact with the touch operation can be used as the first scanning signal, and the signal scanned after the preset number of frames can be used as the second scanning signal. In the embodiment of the present disclosure, the first scanning signal is not specifically limited. In addition, the touch chip can perform signal scanning in the touch screen all the time. When the user's finger does not touch the touch screen, the touch chip cannot scan the signal, that is, the touch screen does not receive the touch operation; when the user's finger touches the touch screen, the touch chip scans the signal, that is, the touch screen receives the touch operation. At this time, the touch chip and the processor execute the signal scanning method provided in the embodiment of the present disclosure.
[0112] In step S302 , the touch control chip determines the time when the first scanning signal scanning is completed.
[0113] The first scanning signal includes at least one of a mutual capacitance induction signal, a self-capacitance induction signal and a noise signal; accordingly, this step can be implemented by at least one of the following steps, including:
[0114] The touch chip scans the mutual capacitance sensing signal in the touch screen, and in the process of scanning the mutual capacitance sensing signal, determines in real time whether the mutual capacitance sensing signal has been scanned. If the mutual capacitance sensing signal has not been scanned, the scanning continues; when the scanning is completed, the scanning completion time of the first scanning signal is obtained.
[0115] The touch chip scans the self-capacitance sensing signal in the touch screen, and in the process of scanning the self-capacitance sensing signal, determines in real time whether the self-capacitance sensing signal is scanned. If the self-capacitance sensing signal is not scanned, the scanning continues; when the scanning is completed, the scanning completion time of the first scanning signal is obtained.
[0116] The touch chip scans the noise signal in the touch screen, and in the process of scanning the noise signal, determines in real time whether the noise signal has been scanned. If the noise signal has not been scanned, the scanning continues; when the scanning is completed, the scanning completion time of the first scanning signal is obtained.
[0117] In step S303, the touch control chip continues to perform signal scanning on the touch screen based on the scanning completion time of the first scanning signal.
[0118] In this step, the touch chip can immediately start scanning the next scanning signal when the scanning of the first scanning signal is completed, thereby shortening the time interval between signal scanning.
[0119] In the related art, the scanning cycle of each frame is pre-set. After the first scanning signal is scanned, the touch chip does not immediately start scanning the next scanning signal, but waits for the next frame scanning cycle to start. The next frame scanning signal is scanned at the beginning of the next frame scanning cycle. This process results in a long time interval between the time when the processor receives the touch signal and the time when the touch chip completes the scanning, which ultimately leads to a slow response speed of the processor to the touch signal.
[0120] In step S304, the touch chip determines a touch event corresponding to the first scan signal based on the scanning completion time of the first scan signal.
[0121] In one possible implementation, the touch chip can immediately determine the touch event corresponding to the first scan signal when the first scan signal is scanned, thereby improving the response speed. In another possible implementation, the touch chip can also wait for a first preset time after the first scan signal is scanned, and determine the touch event corresponding to the first scan signal when the first preset time is reached, thereby reducing power consumption. The first preset time can be set and changed as needed, and is not specifically limited in the embodiments of the present disclosure.
[0122] The step of the touch chip determining the touch event corresponding to the first scanning signal can be implemented by the following steps (1) to (3), including:
[0123] (1) The touch chip extracts signal characteristics of the first scanning signal.
[0124] When the first scanning signal includes a mutual capacitance sensing signal, this step may be: the touch chip may determine a signal distribution, a signal area, a signal shape, a signal amplitude, etc. of the mutual capacitance sensing signal, and compose the signal distribution, signal area, signal shape, signal amplitude, etc. of the mutual capacitance sensing signal into signal characteristics of the mutual capacitance sensing signal.
[0125] When the first scanning signal includes a self-capacitance sensing signal, this step may be: the touch chip determines a signal distribution, a signal area, a signal shape, a signal amplitude, etc. of the self-capacitance sensing signal, and composes the signal distribution, signal area, signal shape, signal amplitude, etc. of the self-capacitance sensing signal into a signal feature of the self-capacitance sensing signal.
[0126] When the first scanning signal includes a noise signal, this step may be: the touch chip determines the signal distribution, signal area, signal shape, signal amplitude, etc. of the noise signal, and combines the signal distribution, signal area, signal shape, signal amplitude, etc. of the noise signal into signal characteristics of the noise signal.
[0127] (2) The touch chip determines the degree of match between the signal feature and the signal feature of each specified touch event.
[0128] The touch chip may pre-store the signal characteristics of multiple specified touch events, which may be any touch event, and are not specifically limited in the embodiments of the present disclosure. For example, the specified touch event may be clicking to enter the application interface, gesture unlocking, etc.
[0129] In this step, the touch chip can determine the matching degree between the signal characteristic of the first scan signal and the signal characteristic of each of the multiple specified touch events according to the signal characteristic of the first scan signal. For the convenience of distinction, the matching degree between the signal characteristic of the first scan signal and the signal characteristic of each of the multiple specified touch events is referred to as the first matching degree.
[0130] In a possible implementation, the touch chip can determine a second matching degree between a signal feature of a mutual capacitance sensing signal in the first scanning signal and a signal feature of a mutual capacitance sensing signal in each specified touch event, a third matching degree between a signal feature of a self capacitance sensing signal in the first scanning signal and a signal feature of a self capacitance sensing signal in each specified touch event, and a fourth matching degree between a signal feature of a noise signal and a signal feature of a noise signal in each specified touch event. The touch chip can perform arithmetic averaging or weighted summation on the second matching degree, the third matching degree, and the fourth matching degree to obtain a plurality of first matching degrees.
[0131] (3) The touch chip selects a touch event corresponding to the first scanning signal from the designated touch events according to the matching degree between the signal feature and the signal feature of each designated touch event.
[0132] In this step, the touch chip can select the one with the largest first matching degree from the multiple first matching degrees obtained in step (2), and use the designated touch event corresponding to the selected largest first matching degree as the touch event corresponding to the first scanning signal.
[0133] One point that needs to be explained is that in the related art, the touch chip does not immediately determine the touch event corresponding to the first scan signal when the first scan signal scans, but waits for the start of the next frame scan cycle, and only determines the touch event corresponding to the first scan signal when the next frame scan cycle starts. This process results in a long time interval between the time when the touch chip determines the touch event corresponding to the scan signal and the time when the scan signal is completed, which ultimately results in a long time interval for the processor to receive the touch signal corresponding to the touch event, and the processor responds slowly to the touch signal. In the embodiment of the present disclosure, the touch chip immediately starts to determine the touch event corresponding to the first scan signal when the first scan signal scans, thereby obtaining the touch event of the first scan signal at the fastest speed, and ultimately shortens the time interval between the touch chip determining the touch event corresponding to the first scan signal and the processor receiving the touch signal corresponding to the touch event, thereby improving the processor's response speed to the touch signal.
[0134] In step S305 , the touch chip determines the touch event completion time corresponding to the first scan signal.
[0135] The first scanning signal includes at least one of a mutual capacitance induction signal, a self-capacitance induction signal and a noise signal; accordingly, this step can be implemented by at least one of the following steps, including:
[0136] The touch chip determines whether the touch event corresponding to the mutual capacitance sensing signal in the touch screen is completed, and when the touch event corresponding to the mutual capacitance sensing signal is not completed, continues to complete the touch event; when the touch event corresponding to the mutual capacitance sensing signal is completed, obtains the touch event completion time corresponding to the first scanning signal.
[0137] The touch chip determines whether a touch event corresponding to a self-capacitance sensing signal in the touch screen is completed, and when the touch event corresponding to the self-capacitance sensing signal is not completed, continues to complete the touch event; when the touch event corresponding to the self-capacitance sensing signal is completed, obtains a touch event completion time corresponding to the first scanning signal.
[0138] The touch chip determines whether the touch event corresponding to the noise signal in the touch screen is completed. When the touch event corresponding to the noise signal is not completed, the touch chip continues to complete the touch event. When the touch event corresponding to the noise signal is completed, the touch event completion time corresponding to the first scanning signal is obtained.
[0139] In step S306, the touch chip reports a touch signal corresponding to the touch event to the processor based on the touch event completion time corresponding to the first scanning signal.
[0140] In the disclosed embodiment, the touch chip can immediately report the touch signal corresponding to the touch event to the processor when it determines that the touch event corresponding to the first scanning signal is completed, thereby reporting the touch signal corresponding to the touch event to the processor at the fastest speed, shortening the time interval between the touch chip determining the touch event corresponding to the first scanning signal and the processor receiving the touch signal corresponding to the touch event, thereby improving the reporting rate.
[0141] In a possible implementation, after determining that the touch event corresponding to the first scanning signal is completed, the touch chip may report a touch signal corresponding to the touch event to the processor at a second preset time interval when the second preset time interval is reached, thereby reducing power consumption.
[0142] The second preset duration can be set and changed as needed, and is not specifically limited in the embodiments of the present disclosure. For example, the second preset duration can be the time interval between the moment when the touch event corresponding to the first scan signal is completed and the moment when the scan of the next scan signal starts. The second preset duration and the first preset duration can be the same or different, and is not specifically limited in the embodiments of the present disclosure.
[0143] In step S307 , the processor receives a touch signal from the touch chip, and processes the touch event according to the touch signal.
[0144] In a possible implementation, the processor receives a touch signal sent by the touch chip, the touch signal carries touch data corresponding to the touch event, and the processor responds to the touch operation corresponding to the touch event according to the touch data corresponding to the touch event carried in the touch signal. For example, the touch operation is to enter a game interface of a certain game.
[0145] In another possible implementation, after the touch chip determines the touch event corresponding to the first scanning signal, it can store the touch data corresponding to the touch event in a designated storage location in the touch chip, and then send a touch signal to the processor. The touch signal carries a location identifier of the designated storage location. The processor receives the touch signal, obtains the location identifier in the touch signal, and obtains the touch data corresponding to the touch event from the storage location corresponding to the location identifier in the touch chip based on the location identifier, thereby responding to the touch operation corresponding to the touch event.
[0146] One thing that needs to be explained is that, in a possible implementation, the touch chip can continue to scan according to the steps in S301-S306 above, and immediately determine the touch event corresponding to the scan signal after the first scan signal is scanned. After determining the touch event corresponding to the first scan signal, immediately report the touch signal corresponding to the touch event to the processor. In this process, signal scanning, touch event determination, and touch signal reporting are all completed at the fastest speed, and the time interval between signal scanning and touch signal reporting is minimized, so that the time interval between the processor processing different touch events is minimized and the response speed is the fastest. See Figure 4 For example, the scanning signal of each frame is the first scanning signal. Figure 4 It can be seen from the figure that there is no frame scanning cycle in this process. When the first scanning signal is scanned, the touch chip immediately starts scanning the next first scanning signal. And immediately starts to determine the touch event corresponding to the first scanning signal. When it is determined that the touch event corresponding to the first scanning signal is completed, the touch signal corresponding to the touch event is immediately reported to the processor.
[0147] However, in this process, since the signal scanning, the determination of the touch event and the reporting of the touch signal are all completed at the fastest speed, the terminal will always work at a higher operating frequency, the power consumption of the terminal is higher, and the working cost is higher. Therefore, in the embodiment of the present disclosure, the touch chip can be set to perform the above steps S301-S306 in the first time period. After reaching the first time period, since the terminal has responded to the touch operation corresponding to the touch event, the terminal is in a stable working state. At this time, the touch chip can perform the process of signal scanning, determining the touch event and reporting the touch signal in any of the following three implementation methods when receiving the next touch operation in the second time period after the first time period, which can reduce the response speed to a certain extent, thereby reducing the power consumption of the terminal and reducing the working cost. Among them, the first time period is the time period before the time period when the touch screen receives the touch operation, the second time period is later than the first time period, and the scanning signal obtained in the second time period is the second scanning signal. The second scanning signal can be a signal scanned in a frame scanning cycle, or a signal scanned in a multi-frame scanning cycle included in the second time period. In the embodiment of the present disclosure, this is not specifically limited.
[0148] In the first implementation, when the first scanning signal is a signal scanned by the touch screen during the second time period of the touch operation, the touch chip waits for the start of the first frame scanning cycle according to the preset frame scanning cycle, and the first frame scanning cycle is the next frame scanning cycle adjacent to the current frame scanning cycle, and the current frame scanning cycle is the frame scanning cycle corresponding to the touch signal corresponding to the touch event reported by the touch chip to the processor. At the start of the first frame scanning cycle, the touch chip continues to scan the touch screen for signals; waits for the start of the second frame scanning cycle, and the second frame scanning cycle is the next frame scanning cycle adjacent to the first frame scanning cycle determined according to the preset frame scanning cycle; determines the touch event corresponding to the second scanning signal at the start of the second frame scanning cycle; and reports the touch signal corresponding to the touch event of the second scanning signal to the processor at the start of the third frame scanning cycle, wherein the third frame scanning cycle is the next frame scanning cycle adjacent to the second frame scanning cycle determined according to the preset frame scanning cycle.
[0149] The specific process of this implementation can be found in Figure 5 For example, the second scanning signal is a signal scanned in the first frame scanning cycle in the second time period, and the signal scanned in the second frame scanning cycle in the second time period can be called the third scanning signal, and so on. Figure 5 It can be seen from the figure that the touch chip scans the second scan signal within the first frame scan cycle, and after the second scan signal is scanned, it waits for the second frame scan cycle to start. At the beginning of the second frame scan cycle, the touch event corresponding to the second scan signal of the first frame is determined, and after the touch event corresponding to the second scan signal of the first frame is determined, it waits for the third frame scan cycle to start. At the beginning of the third frame scan cycle, the touch signal corresponding to the touch event of the first frame is reported to the processor. At the same time, at the beginning of the third frame scan cycle, the touch event corresponding to the third scan signal of the second frame is determined, and after the touch event corresponding to the third scan signal of the second frame is determined, it waits for the fourth frame scan cycle to start. At the beginning of the fourth frame scan cycle, the touch signal corresponding to the touch event of the second frame is reported to the processor. Signal scanning, touch event determination, and touch signal corresponding to the touch event are reported to the processor in this manner.
[0150] In the second implementation, when the first scanning signal is a signal scanned by the touch screen during the second time period when the touch screen receives a touch operation, the touch chip waits for the start of the first frame scanning cycle according to the preset frame scanning cycle. The first frame scanning cycle is the next frame scanning cycle adjacent to the current frame scanning cycle. The current frame scanning cycle is the frame scanning cycle corresponding to the touch signal corresponding to the touch event reported by the touch chip to the processor. At the start of the first frame scanning cycle, the touch chip continues to scan the touch screen for signals and waits for the start of the second frame scanning cycle; at the moment when the second scanning signal is scanned, the touch event corresponding to the second scanning signal is determined, and the start of the third frame scanning cycle is waited. The third frame scanning cycle is the next frame scanning cycle adjacent to the second frame scanning cycle determined according to the preset frame scanning cycle; at the start of the third frame scanning cycle, the touch signal corresponding to the touch event of the second scanning signal is reported to the processor.
[0151] In this implementation, after the touch chip completes scanning the second scanning signal, it immediately determines the touch event corresponding to the second scanning signal, reasonably utilizes the time gap between the second scanning completion moment and the start of the second frame scanning cycle, and reserves sufficient time for determining the touch event corresponding to the second scanning signal, so as to ensure that the touch event has been determined at the start of the third frame scanning cycle, thereby reporting the touch signal corresponding to the touch event to the processor. Compared with steps S301-S306, the power consumption of the terminal is reduced to a certain extent, and the work cost is reduced.
[0152] The specific process of this implementation can be found in Figure 6 .from Figure 6 It can be seen from the figure that the touch chip scans the second scan signal in the first frame scan cycle, and waits for the second frame scan cycle to start after the second scan signal is scanned. When the second scan signal is scanned, the touch event corresponding to the second scan signal of the first frame is immediately determined. After the touch event corresponding to the second scan signal of the first frame is determined, the third frame scan cycle is waited for to start. At the beginning of the third frame scan cycle, the touch signal corresponding to the touch event of the first frame is reported to the processor. At the same time, the third scan signal is scanned in the second frame scan cycle, and after the third scan signal is scanned, the third frame scan cycle is waited for to start. After the third scan signal is scanned, the touch event corresponding to the third scan signal of the second frame is immediately determined. After the touch event corresponding to the third scan signal of the second frame is determined, the fourth frame scan cycle is waited for to start. At the beginning of the fourth frame scan cycle, the touch signal corresponding to the touch event of the fourth frame is reported to the processor. In this way, signal scanning, touch event determination, and touch signal corresponding to touch event reporting to the processor are performed.
[0153] In a third implementation, when the first scanning signal is a signal scanned by the touch screen during the second time period of the touch operation, the touch screen waits for the start of the first frame scanning cycle according to the preset frame scanning cycle, the first frame scanning cycle is the next frame scanning cycle adjacent to the current frame scanning cycle, and the current frame scanning cycle is the frame scanning cycle corresponding to when the touch chip reports the touch signal corresponding to the touch event to the processor. At the moment when the second scanning signal is scanned, the touch event corresponding to the second scanning signal is determined; at the moment when the touch event corresponding to the second scanning signal is determined to be completed, the touch signal corresponding to the touch event of the second scanning signal is reported to the processor.
[0154] In this implementation, the touch chip immediately determines the touch event corresponding to the second scan signal when the second scan signal scans the signal; and immediately reports the touch signal corresponding to the touch event of the second scan signal to the processor when the touch event corresponding to the second scan signal is determined to be completed. Compared with steps S301-S306, the power consumption of the terminal is reduced to a certain extent, and the work cost is reduced.
[0155] The specific process of this implementation can be found in Figure 7 .from Figure 7 It can be seen from the figure that the touch chip scans the second scan signal within the first frame scan cycle, and after the second scan signal is scanned, it waits for the second frame scan cycle to start. When the second scan signal is scanned, the touch event corresponding to the second scan signal of the first frame is immediately determined. After the touch event corresponding to the second scan signal of the first frame is determined, the touch signal corresponding to the touch event of the first frame is immediately reported to the processor. The touch chip scans the third scan signal within the second frame scan cycle, and after the third scan signal is scanned, it waits for the third frame scan cycle to start. When the third scan signal is scanned, the touch event corresponding to the third scan signal of the second frame is immediately determined. After the touch event corresponding to the third scan signal of the second frame is determined, the touch signal corresponding to the touch event of the second frame is immediately reported to the processor. In this way, signal scanning, touch event determination, and touch signal corresponding to the touch event are reported to the processor.
[0156] The first time period is a time period including a specified frame number scanning cycle, and the number of the specified frame number can be set and changed as needed, and is not specifically limited in the embodiment of the present disclosure. For example, the specified frame number can be 4, 5, or 6. The second time period is a time period after the first time period, and when the last frame of the first time period is the current frame, the next frame of the current frame is the first frame of the second time period.
[0157] One point that needs to be explained is that, in the disclosed embodiment, the touch chip can implement signal scanning, determine touch events, and report the touch signal corresponding to the touch event to the processor through two different methods. At the beginning of scanning the signal, the touch chip responds to the touch operation at the fastest speed through the above steps S301-S306. After the response, at least one of the signal scanning, determining the touch event, and reporting the touch signal corresponding to the touch event to the processor can be changed, thereby reducing the power consumption of the terminal and reducing the work cost. For example, when a user enters a game application and performs a touch operation on the touch screen, the user responds to the touch operation of the user entering the game application at the fastest speed by executing the above steps S301-S306. After entering the game application, it can be executed in any of the above three implementation methods. Through this method, while shortening the time for the user to enter the game application, it also ensures the user experience and reduces the power consumption of the terminal.
[0158] In another possible implementation, in the embodiment of the present disclosure, the touch chip can also be set to respond to the touch operation through the above steps S301-S306 when receiving a touch operation, and scan according to a preset frame scanning period when no touch operation is received, thereby reducing the terminal power consumption to a certain extent and reducing the working cost.
[0159] The signal scanning method provided by the embodiment of the present disclosure obtains a first scanning signal by performing a signal scanning on the touch screen of the terminal. The time when the scanning of the first scanning signal is completed is determined, and based on the time when the scanning of the first scanning signal is completed, the signal scanning of the touch screen is continued. When the scanning of the first scanning signal is completed, the method quickly starts the next round of scanning based on the scanning completion time, thereby improving the scanning efficiency of the signal scanning and improving the sensitivity of the touch screen.
[0160] Figure 8 is a block diagram of a signal scanning device according to an exemplary embodiment. Figure 8 , the device comprises:
[0161] The scanning module 801 is used to perform signal scanning on the touch screen of the terminal to obtain a first scanning signal;
[0162] A determination module 802 is used to determine the time when the first scanning signal scanning is completed;
[0163] The scanning module 801 is further used to continue scanning the touch screen for signals based on the scanning completion time.
[0164] In a possible implementation, the determination module 802 is further configured to determine a touch event corresponding to the first scanning signal based on the scanning completion time.
[0165] In another possible implementation, the device further includes:
[0166] The determination module 802 is further used to determine the touch event completion time corresponding to the first scanning signal;
[0167] The processing module is used to process the touch event based on the touch event completion time.
[0168] In another possible implementation, the scanning module 801 is further configured to continue to perform signal scanning on the touch screen when the first scanning signal scanning is completed; and / or,
[0169] The determination module 802 is further configured to determine the touch event corresponding to the first scanning signal at the moment when the first scanning signal scans the signal; and / or,
[0170] The processing module is further used to process the touch event when the touch event corresponding to the first scanning signal is completed.
[0171] In another possible implementation, the determination module 802 is further used to extract the signal characteristics of the first scanning signal; determine the matching degree between the signal characteristics and the signal characteristics of each specified touch event; and select the touch event corresponding to the first scanning signal from the specified touch events based on the matching degree between the signal characteristics and the signal characteristics of each specified touch event.
[0172] In another possible implementation, the scanning module 801 is also used to continue scanning the touch screen at the moment when the first scanning signal is scanned after the first scanning signal is scanned, when the first scanning signal is a signal scanned within the first time period when the touch screen receives the touch operation, wherein the first time period is an earlier time period within the time period when the touch screen receives the touch operation.
[0173] In another possible implementation, the scanning module 801 is also used to wait for the start of the first frame scanning cycle according to a preset frame scanning cycle, where the first frame scanning cycle is the next frame scanning cycle adjacent to the current frame scanning cycle; at the start of the first frame scanning cycle, the touch screen continues to perform signal scanning.
[0174] In another possible implementation, within a second time period when the touch screen receives the touch operation, the second time period is later than the first time period, the first time period is an earlier time period within the time period when the touch screen receives the touch operation, and the scanning signal obtained within the second time period is a second scanning signal;
[0175] The scanning module 801 is further used to wait for the start of a second frame scanning cycle, where the second frame scanning cycle is a next frame scanning cycle adjacent to the first frame scanning cycle determined according to a preset frame scanning cycle; the determination module 802 is further used to determine a touch event corresponding to the second scanning signal at the start of the second frame scanning cycle; the processing module is further used to process the touch event corresponding to the second scanning signal at the start of a third frame scanning cycle, where the third frame scanning cycle is a next frame scanning cycle adjacent to the second frame scanning cycle determined according to a preset frame scanning cycle; or,
[0176] The determination module 802 is further used to determine the touch event corresponding to the second scan signal at the moment when the second scan signal scans and waits for the start of the third frame scan cycle; the processing module is further used to process the touch event corresponding to the second scan signal at the start of the third frame scan cycle; or,
[0177] The determination module 802 is further used to determine the touch event corresponding to the second scan signal when the second scan signal scans the signal; the processing module is further used to process the touch event corresponding to the second scan signal when the touch event corresponding to the second scan signal is determined to be completed.
[0178] The signal scanning device provided by the embodiment of the present disclosure obtains a first scanning signal by performing signal scanning on the touch screen of the terminal. The time when the scanning of the first scanning signal is completed is determined, and based on the time when the scanning of the first scanning signal is completed, the signal scanning of the touch screen is continued. When the scanning of the first scanning signal is completed, the device quickly starts the next round of scanning based on the scanning completion time, thereby improving the scanning efficiency of the signal scanning and improving the sensitivity of the touch screen.
[0179] It should be noted that: the signal scanning device provided in the above embodiment only uses the division of the above functional modules as an example when scanning signals. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the signal scanning device provided in the above embodiment and the signal scanning method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0180] Fig. 9 1 is a block diagram of a terminal 900 according to an exemplary embodiment. For example, the terminal 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0181] Reference Fig. 9The terminal 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0182] The processing component 902 generally controls the overall operation of the terminal 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0183] The memory 904 is configured to store various types of data to support operations at the terminal 900. Examples of such data include instructions for any application or method operating on the terminal 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk, or an optical disk.
[0184] The power component 906 provides power to various components of the terminal 900. The power component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the terminal 900.
[0185] The multimedia component 908 includes a screen that provides an output interface between the terminal 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the terminal 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0186] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the terminal 900 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0187] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0188] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the terminal 900. For example, the sensor assembly 914 can detect the open / closed state of the terminal 900, the relative positioning of the components, such as the display and keypad of the terminal 900, and the sensor assembly 914 can also detect the position change of the terminal 900 or a component of the terminal 900, the presence or absence of contact between the user and the terminal 900, the orientation or acceleration / deceleration of the terminal 900, and the temperature change of the terminal 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0189] The communication component 916 is configured to facilitate the communication between the terminal 900 and other devices in a wired or wireless manner. The terminal 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication.
[0190] In an exemplary embodiment, terminal 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.
[0191] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, and when the instructions are executed by the processor 920 of the terminal 900, the terminal 900 is enabled to perform the operations executed in the touch screen control method in the above embodiment. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0192] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0193] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A signal scanning method, characterized in that: The method is applied in a terminal, and includes: Performing signal scanning on the touch screen of the terminal to obtain a first scanning signal; Determining a time point at which scanning of the first scanning signal is completed; Based on the scanning completion time, continue to scan the touch screen for signals; determining a touch event corresponding to the first scanning signal based on the scanning completion time; determining a touch event completion time corresponding to the first scanning signal; Processing the touch event based on the touch event completion time; According to a preset frame scanning cycle, waiting for the start of a first frame scanning cycle, where the first frame scanning cycle is a next frame scanning cycle adjacent to the current frame scanning cycle; At the beginning of the first frame scanning period, continuing to scan signals on the touch screen; In a second time period in which the touch screen receives the touch operation, the second time period is later than the first time period, the first time period is an earlier time period in which the touch screen receives the touch operation, and the scanning signal obtained in the second time period is a second scanning signal. The method further includes: Waiting for the start of a second frame scanning period, where the second frame scanning period is a next frame scanning period adjacent to the first frame scanning period determined according to the preset frame scanning period; determining a touch event corresponding to the second scanning signal at the start of the second frame scanning period; and processing a touch event corresponding to the second scanning signal at the start of a third frame scanning period, where the third frame scanning period is a next frame scanning period adjacent to the second frame scanning period determined according to the preset frame scanning period; or At the moment when the second scanning signal completes scanning, determining the touch event corresponding to the second scanning signal, waiting for the start of the third frame scanning period; at the beginning of the third frame scanning period, processing the touch event corresponding to the second scanning signal; or, At the moment when the scanning of the second scanning signal is completed, a touch event corresponding to the second scanning signal is determined; and at the moment when the touch event corresponding to the second scanning signal is determined to be completed, the touch event corresponding to the second scanning signal is processed.
2. The method according to claim 1, characterized in that The continuing to perform signal scanning on the touch screen based on the scanning completion time includes: continuing to perform signal scanning on the touch screen at the time when the first scanning signal scanning is completed; and / or, The determining the touch event corresponding to the first scanning signal based on the scanning completion time includes: determining the touch event corresponding to the first scanning signal at the scanning completion time of the first scanning signal; and / or, The processing of the touch event based on the touch event completion time includes: processing the touch event at the touch event completion time corresponding to the first scan signal.
3. The method according to claim 1, characterized in that The determining the touch event corresponding to the first scanning signal includes: extracting a signal feature of the first scanning signal; determining a degree of match between the signal characteristic and a signal characteristic of each specified touch event; A touch event corresponding to the first scan signal is selected from the designated touch events according to a matching degree between the signal feature and a signal feature of each designated touch event.
4. The method according to claim 2, characterized in that The method further comprises: When the first scanning signal is a signal scanned within the first time period when the touch screen receives a touch operation, the step of continuing to scan the signal on the touch screen at the moment when the scanning of the first scanning signal is completed is executed, wherein the first time period is a time period earlier than the time period when the touch screen receives a touch operation.
5. A signal scanning device, characterized in that: The device is applied in a terminal, and includes: A scanning module, configured to perform signal scanning on the touch screen of the terminal to obtain a first scanning signal; a determination module, configured to determine a time when the scanning of the first scanning signal is completed; The scanning module is further configured to continue scanning the touch screen for signals based on the scanning completion time; The determining module is further configured to determine a touch event corresponding to the first scanning signal based on the scanning completion time; The determining module is further configured to determine a completion time of a touch event corresponding to the first scanning signal; a processing module, configured to process the touch event based on a completion time of the touch event; The scanning module is further configured to wait for the start of a first frame scanning period according to a preset frame scanning period, where the first frame scanning period is a next frame scanning period adjacent to the current frame scanning period; and continue to perform signal scanning on the touch screen at the start of the first frame scanning period; In a second time period when the touch screen receives the touch operation, the second time period is later than the first time period, the first time period is an earlier time period of the time period when the touch screen receives the touch operation, and the scanning signal obtained in the second time period is a second scanning signal; The scanning module is further configured to wait for the start of a second frame scanning period, where the second frame scanning period is a next frame scanning period adjacent to the first frame scanning period determined according to the preset frame scanning period; the determining module is further configured to determine a touch event corresponding to the second scanning signal at the start of the second frame scanning period; the processing module is further configured to process the touch event corresponding to the second scanning signal at the start of a third frame scanning period, where the third frame scanning period is a next frame scanning period adjacent to the second frame scanning period determined according to the preset frame scanning period; or, The determining module is further configured to determine the touch event corresponding to the second scanning signal at the moment when the second scanning signal completes scanning, and wait for the start of the third frame scanning period; the processing module is further configured to process the touch event corresponding to the second scanning signal at the start of the third frame scanning period; or The determination module is further used to determine the touch event corresponding to the second scan signal when the scanning of the second scan signal is completed; the processing module is further used to process the touch event corresponding to the second scan signal when the touch event corresponding to the second scan signal is determined to be completed.
6. The device according to claim 5, characterized in that The scanning module is further configured to continue scanning the touch screen for signals when the scanning of the first scanning signal is completed; and / or, The determining module is further configured to determine a touch event corresponding to the first scanning signal when scanning of the first scanning signal is completed; and / or, The processing module is further configured to process the touch event when the touch event corresponding to the first scanning signal is completed.
7. The device according to claim 5, characterized in that The determination module is further used to extract the signal characteristics of the first scanning signal; determine the matching degree between the signal characteristics and the signal characteristics of each specified touch event; and select the touch event corresponding to the first scanning signal from the specified touch events based on the matching degree between the signal characteristics and the signal characteristics of each specified touch event.
8. The device according to claim 6, characterized in that The scanning module is also used to continue signal scanning on the touch screen when the first scanning signal is scanned within a first time period when the touch screen receives a touch operation, wherein the first time period is a time period earlier than the time period when the touch screen receives a touch operation.
9. A terminal, characterized in that: include: one or more processors; volatile or non-volatile memory for storing the one or more processor-executable instructions; The one or more processors are configured to: Performing signal scanning on the touch screen of the terminal to obtain a first scanning signal; Determining a time point at which scanning of the first scanning signal is completed; Based on the scanning completion time, continue to scan the touch screen for signals; determining a touch event corresponding to the first scanning signal based on the scanning completion time; determining a touch event completion time corresponding to the first scanning signal; Processing the touch event based on the touch event completion time; According to a preset frame scanning cycle, waiting for the start of a first frame scanning cycle, where the first frame scanning cycle is a next frame scanning cycle adjacent to the current frame scanning cycle; At the beginning of the first frame scanning period, continuing to scan signals on the touch screen; In a second time period when the touch screen receives the touch operation, the second time period is later than the first time period, the first time period is an earlier time period when the touch screen receives the touch operation, and the scanning signal obtained in the second time period is a second scanning signal. The one or more processors are further configured to: Waiting for the start of a second frame scanning period, where the second frame scanning period is a next frame scanning period adjacent to the first frame scanning period determined according to the preset frame scanning period; determining a touch event corresponding to the second scanning signal at the start of the second frame scanning period; and processing a touch event corresponding to the second scanning signal at the start of a third frame scanning period, where the third frame scanning period is a next frame scanning period adjacent to the second frame scanning period determined according to the preset frame scanning period; or At the moment when the second scanning signal completes scanning, determining the touch event corresponding to the second scanning signal, waiting for the start of the third frame scanning period; at the beginning of the third frame scanning period, processing the touch event corresponding to the second scanning signal; or, At the moment when the scanning of the second scanning signal is completed, a touch event corresponding to the second scanning signal is determined; and at the moment when the touch event corresponding to the second scanning signal is determined to be completed, the touch event corresponding to the second scanning signal is processed.
10. A computer-readable storage medium, wherein at least one instruction is stored in the computer-readable storage medium, and the instruction is loaded and executed by a processor to implement the steps of the signal scanning method according to any one of claims 1 to 4.
