Disclosure of Invention
The embodiment of the application provides a signal detection method, a signal detection device and a touch chip, which can give consideration to the function of an active pen and the finger operation experience of a user on a touch screen.
In a first aspect, a method for detecting a signal is provided, where an active pen and/or a finger above a touch screen is provided with a connector for fixing the active pen, and a detection circuit is provided on the connector, and the method includes: determining whether the active pen is fixed on the touch screen according to the signal output by the detection circuit; and if the active pen is fixed on the touch screen, switching a detection mode of the touch screen to a first detection mode, wherein the first detection mode is only used for detecting the finger.
In one possible implementation, the connection is a plug-in connection for embedding the active pen, or the connection is an adsorption connection for adsorbing the active pen.
In one possible implementation, the method further includes: and if the active pen is not fixed on the touch screen, switching a detection mode of the touch screen to a second detection mode, wherein the second detection mode is used for detecting the active pen and detecting the finger.
In a possible implementation, the second detection mode is used to alternately detect the active pen and the finger in one detection period.
In one possible implementation, the method further includes: and if the touch screen successfully detects the active pen according to the second detection mode, switching the detection mode of the touch screen to a third detection mode, wherein the third detection mode is only used for detecting the active pen.
In one possible implementation, the method further includes: and if the touch screen does not successfully detect the active pen within the preset time according to the third detection mode, switching the detection mode of the touch screen to the second detection mode.
In a second aspect, a signal detection device is provided, for detecting an active pen and/or a finger above a touch screen, a connector for fixing the active pen is provided on the touch screen, and a detection circuit is provided on the connector, the device includes:
the processing module is used for determining whether the active pen is fixed on the touch screen or not according to the signal output by the detection circuit;
and the control module is used for switching the detection mode of the touch screen to a first detection mode when the processing module determines that the active pen is fixed on the touch screen, wherein the first detection mode is only used for detecting the finger.
In one possible implementation, the connection is a plug-in connection for embedding the active pen, or the connection is an adsorption connection for adsorbing the active pen.
In one possible implementation, the control module is further configured to: and when the processing module determines that the active pen is not fixed on the touch screen, switching a detection mode of the touch screen to a second detection mode, wherein the second detection mode is used for detecting the active pen and detecting the finger.
In a possible implementation, the second detection mode is used to alternately detect the active pen and the finger in one detection period.
In one possible implementation, the control module is further configured to: and if the touch screen successfully detects the active pen according to the second detection mode, switching the detection mode of the touch screen to a third detection mode, wherein the third detection mode is only used for detecting the active pen.
In one possible implementation, the control module is further configured to: and if the touch screen does not successfully detect the active pen within the preset time according to the third detection mode, switching the detection mode of the touch screen to the second detection mode.
In a third aspect, a touch chip is provided, comprising the apparatus of the second aspect or any possible implementation manner of the second aspect.
Based on the technical scheme, whether the active pen is fixed on the touch screen or not is determined through a detection circuit on a connecting piece between the touch screen and the active pen. When the active pen is fixed on the touch screen, the user is indicated not to use the active pen, so that the detection mode of the touch screen is switched to a first detection mode, namely, only the finger above the touch screen is detected, and the point reporting rate of the finger coordinates is improved; when the active pen is not fixed on the touch screen, the user generally wants to write with the active pen, so that the detection mode of the touch screen is switched to the second detection mode, that is, the active pen and the finger need to be detected simultaneously. Therefore, the function of the active pen and the finger operation experience of the user on the touch screen can be considered.
Detailed Description
The technical solutions in the present application will be described below with reference to the accompanying drawings.
When the active pen is in actual use, two kinds of information of the nib coordinate and nib pressure are required to be transmitted to the screen end, and the screen end displays handwriting of the active pen according to the nib coordinate and nib pressure. For example, as shown in fig. 1, a certain number of transverse and longitudinal detection electrodes are distributed on thetouch screen 200, and a code printing signal output by a tip electrode of theactive pen 100 acts on a certain position of thetouch screen 200, so that the transverse detection electrode and the longitudinal detection electrode corresponding to the position generate corresponding detection signals, and thus, the two-dimensional position coordinate of theactive pen 100 on thetouch screen 200 can be calculated according to the detection signals. The nib electrode is also connected with a pressure sensor. The pressure sensor is used for detecting the pressure of theactive pen 100 on thetouch screen 200, so that theactive pen 100 can sense the change of the writing force of a user, and thetouch screen 200 can change the thickness of handwriting according to the change of the writing force, thereby achieving excellent user effect experience.
The active pen and the touch screen are two independent systems, and the two systems can be matched for use only by communication and interaction according to an active pen protocol. For general active pen protocols, such as microsoft active pen protocol (Microsoft Pen Protocol, MPP) protocol, universal stylus alliance (Universal Stylus Initiative, USI) protocol, etc., a touch screen is required to detect whether an active pen is in proximity in real time. Because the touch screen does not know when the user will write with the active pen, additional time can only be added to detect in real time whether the code signal output by the active pen is present or not on the basis of detecting the touch of the finger, even if the user does not use the active pen. The process of detecting the active pen may take 1-3ms of time in each detection cycle. This takes up time for the touch screen to detect a finger touch. Under the condition that the active pen is not used, the point reporting rate of the finger coordinates can be seriously affected.
Therefore, the method for detecting the signals can be used for combining the function of the active pen and the finger operation experience of the user on the touch screen.
Fig. 2 is a schematic flow chart of a method of signal detection of an embodiment of the present application. Themethod 200 depicted in fig. 2 may be performed, for example, by a touch chip, a touch controller, or a processor internal to an electronic device.
Themethod 200 is used for detecting an active pen and/or a finger above a touch screen, wherein a connector for fixing the active pen is arranged on the touch screen, and a detection circuit is arranged on the connector.
As shown in fig. 2,method 200 includes some or all of the following steps.
In 210, it is determined whether the active pen is fixed on the touch screen based on the signal output from the detection circuit.
If it is determined that the active pen is fixed on the touch screen, then 220 is performed; if it is determined that the active pen is not fixed on the touch screen, then 230 is performed.
In 220, the detection mode of the touch screen is switched to a first detection mode.
Wherein the first detection mode is only used for detecting the finger.
In 230, the detection mode of the touch screen is switched to a second detection mode.
The second detection mode is used for detecting the active pen and detecting the finger.
For example, the second detection mode is used to alternately detect the active pen and the finger in one detection period.
In this embodiment, it is determined whether the active pen is fixed to the touch screen by a detection circuit on the connection between the touch screen and the active pen. When the active pen is fixed on the touch screen, the user is indicated not to use the active pen, so that the detection mode of the touch screen is switched to a first detection mode, namely, only the finger above the touch screen is detected, and the point reporting rate of the finger coordinates is improved; when the active pen is not fixed on the touch screen, the user generally wants to write with the active pen, so that the detection mode of the touch screen is switched to the second detection mode, that is, the active pen and the finger need to be detected simultaneously. Therefore, the function of the active pen and the finger operation experience of the user on the touch screen can be considered.
The connecting piece arranged on the touch screen can be a plug-in connecting piece used for being embedded into the active pen, or an adsorption connecting piece used for adsorbing the active pen.
The detection circuit may be, for example, a switching circuit, such as a contact switch on an embedded connector, or a contact detection switch on a housing suction connector. The switching circuit may output a switching signal to the touch screen and the active pen, for example, when the switching signal is high, it indicates that the active pen is fixed on the touch screen, and when the switching signal is low, it indicates that the active pen is not fixed on the touch screen.
In this embodiment of the present application, the touch screen detects the active pen, which may refer to the touch screen detecting a code signal output by the active pen, so as to determine information such as a position coordinate of a pen point of the active pen. When the touch screen detects information such as the coordinate position of the pen point of the active pen, a code printing signal is output by the pen point electrode of the active pen, a coupling capacitance is generated between the pen point of the active pen and the detection electrode in the touch screen, and the code printing signal is coupled to the detection electrode in the touch screen through the coupling capacitance, so that the pen point coordinate of the active pen is determined by the detection signal output by the detection electrode.
The coded signal may also be referred to as a drive signal, an excitation signal, etc., which is an electrical signal emitted by the nib electrode of the active pen for determining the position of the nib of the active pen.
In the embodiment of the application, the touch screen detects the finger, and can detect the touch of the finger, so that corresponding touch operation is realized. When the touch screen detects the touch of the finger, the finger does not emit signals, and the touch screen can determine the information such as the touch position of the finger according to the change condition of the coupling capacitance between the finger and the detection electrode. Thus, the touch screen detects the finger and the active pen needs to use different detection modes for detection.
Fig. 3 shows a detection timing of a first detection mode of the touch screen. As shown in fig. 3, the first detection mode is a detection mode that detects only a finger. In each detection period T1, the touch screen detects only the touch of the finger.
Fig. 4 shows a detection timing of a second detection mode of the touch screen. As shown in fig. 4, the second detection mode is a detection mode for simultaneously detecting the active pen and the finger. In addition to detecting a normal finger touch, additional time is required to detect the code signal output by the active pen during each detection period T2 to determine whether the active pen is near the touch screen. The active pen detection time of 1-3ms is generally required to be increased in each period T2, so that the period T2 is longer than the period T1 in fig. 3, the frequency of finger touch detection is affected to a certain extent, and the point reporting rate of the finger coordinates is reduced.
The detection of the active pen and the finger shown in fig. 4 is alternately performed in one detection period T2, and in practical applications, the detection of the active pen and the finger may have other timings, which is not limited herein.
Fig. 5 is a schematic diagram based on one possible implementation of fig. 2. As shown in fig. 6, when the signal output by the detection circuit on the connection element between the active pen and the touch screen indicates that the active pen is fixed on the touch screen, it indicates that the user does not use the active pen, so that only the touch of the finger is detected in each period T1 by adopting the first detection mode shown in fig. 3, thereby improving the point reporting rate of the finger detection to the highest performance.
When the signal output by the detection circuit indicates that the active pen leaves the touch screen, the user possibly wants to write on the touch screen by using the active pen, so that the touch screen adopts a second detection mode shown in fig. 4, and detects the code printing signal output by the active pen and the touch of the finger in each period T2, thereby taking the use of the active pen and the touch detection of the finger into consideration.
In one implementation, the method 300 may further include: and if the touch screen successfully detects the active pen according to the second detection mode, switching the detection mode of the touch screen to a third detection mode. Wherein the third detection mode is only used for detecting the active pen.
In one implementation, the method 300 may further include: and if the touch screen does not successfully detect the active pen within the preset time according to the third detection mode, switching the detection mode of the touch screen to the second detection mode.
For example, as shown in fig. 6, in 320, after the detection mode of the touch screen is switched to the second detection mode, if the touch screen successfully detects the code printing signal output by the active pen according to the second detection mode, the detection mode of the touch screen is switched to the third detection mode, that is, only the detection mode of the active pen is detected, so that the usability of the active pen is improved. And when the touch screen does not detect the coding signal output by the active pen within the preset time, switching the detection mode of the touch screen from the third detection mode to the second detection mode after timeout.
Under the condition that the active pen is fixed on the touch screen, the detection mode of the touch screen is a first detection mode; in the case that the active pen is not fixed on the touch screen, the detection mode of the touch screen may be one of the second detection mode or the third detection mode.
For example, as shown in fig. 7, when the active pen is detected to be inserted into the touch screen, the user does not use the active pen, and the detection mode of the touch screen is a first detection mode, namely, only the touch of the finger is detected; when the active pen is detected to be pulled out from the touch screen, a user possibly wants to write by using the active pen, and the detection mode of the touch screen is switched to a second detection mode, namely, the code printing signal output by the active pen and the touch of a finger are detected simultaneously; when the touch screen successfully detects the code printing signal output by the active pen by using the second detection mode, the user is informed of writing by using the active pen, and the detection mode of the touch screen is switched to a third detection mode, namely only the code printing signal output by the active pen is detected; when the third detection mode is used for detecting no code printing signal output by the active pen for a certain period of time, the user possibly does not use the active pen, the detection mode of the touch screen is switched back to the second detection mode until the fact that the active pen is inserted into the touch screen is detected again, and the detection mode of the touch screen is switched to the first detection mode.
In the embodiment of the application, the touch screen is provided with the connecting piece for fixing the active pen, and the signal output by the detection circuit on the connecting piece can be transmitted to the screen end to control the touch screen to switch the detection mode; the signal output by the detection circuit can also be transmitted to the pen end, so that the active pen enters a working state or a dormant state according to the signal. For example, when the active pen determines that the touch screen is inserted according to the signal output by the detection circuit, the active pen enters a dormant state to reduce power consumption; when the active pen determines that the touch screen is pulled out according to the signal output by the detection circuit, the active pen enters a working state, such as starting to output a coding signal, detecting the pressure of a pen point and the like, so that the function of the active pen is realized.
The application also provides a device for detecting the signals. The device is used for detecting an active pen and/or a finger above the touch screen, a connecting piece used for fixing the active pen is arranged on the touch screen, and a detection circuit is arranged on the connecting piece. In particular, the device may perform any of the possible methods of fig. 2 to 7 described above. As shown in fig. 8, the apparatus 800 includes:
theprocessing module 810 is configured to determine whether the active pen is fixed on the touch screen according to the signal output by the detection circuit;
acontrol module 820 for:
when theprocessing module 810 determines that the active pen is fixed on the touch screen, switching a detection mode of the touch screen to a first detection mode, wherein the first detection mode is only used for detecting the finger;
when theprocessing module 810 determines that the active pen is not fixed on the touch screen, the detection mode of the touch screen is switched to a second detection mode, wherein the second detection mode is used for detecting the active pen and detecting the finger.
In one implementation, the connection is a plug connection for embedding the active pen, or the connection is an adsorption connection for adsorbing the active pen.
In one implementation, the second detection mode is used to alternately detect the active pen and the finger in one detection period.
In one implementation, thecontrol module 820 is further configured to: and if the touch screen successfully detects the active pen according to the second detection mode, switching the detection mode of the touch screen to a third detection mode, wherein the third detection mode is only used for detecting the active pen.
In one implementation, thecontrol module 820 is further configured to: and if the touch screen does not successfully detect the active pen within the preset time according to the third detection mode, switching the detection mode of the touch screen to the second detection mode.
The application also provides a device for pressure detection. The apparatus includes a memory for storing instructions and a processor for reading the instructions stored in the memory and performing the methods described in any of the embodiments of the present application in accordance with the instructions.
The application also provides an active pen which can perform the operations performed by the active pen in the foregoing method embodiments.
The present application also provides a touch chip, which may include the signal detection apparatus 800 shown in fig. 8.
The present application also provides an electronic device, which may include the apparatus 800 for signal detection shown in fig. 8 and the touch screen in any embodiment of the present application.
The application also provides a signal detection system, which comprises the electronic equipment and the active pen in the embodiment of the application.
It should be noted that, on the premise of no conflict, the embodiments described in the present application and/or the technical features in the embodiments may be arbitrarily combined with each other, and the technical solutions obtained after the combination should also fall into the protection scope of the present application.
The system, apparatus and method disclosed in the embodiments of the present application may be implemented in other manners. For example, some features of the method embodiments described above may be omitted or not performed. The above-described apparatus embodiments are merely illustrative, and the division of units is merely one logical function division, and there may be another division manner in actual implementation, and a plurality of units or components may be combined or may be integrated into another system. In addition, the coupling between the elements or the coupling between the elements may be direct or indirect, including electrical, mechanical, or other forms of connection.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working processes and technical effects of the apparatus and device described above may refer to corresponding processes and technical effects in the foregoing method embodiments, which are not described in detail herein.
It should be understood that the specific examples in the embodiments of the present application are only for helping those skilled in the art to better understand the embodiments of the present application, and not limit the scope of the embodiments of the present application, and those skilled in the art may make various improvements and modifications based on the above embodiments, and these improvements or modifications fall within the protection scope of the present application.
The foregoing is merely specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily think about changes or substitutions within the technical scope of the present application, and the changes and substitutions are intended to be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.