Passive stylus, method and apparatus for identifying a stylus, and electronic device
By incorporating multiple resonant circuits and switching devices into the passive stylus, and utilizing time-division multiple frequency signals and unreceived feedback frequencies, the problem of low recognition accuracy of passive styluses is solved, enabling accurate differentiation and recognition of styluses.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GUANGZHOU SHIYUAN ELECTRONICS CO LTD
- Filing Date
- 2025-01-08
- Publication Date
- 2026-07-10
AI Technical Summary
Existing passive styluses have the potential for misidentification, low accuracy, and are unable to effectively distinguish between different styluses.
A resonant device with at least two different resonant states is used. The resonant frequency of the resonant circuit is switched by a switching device, so that the touch panel sends multiple frequency signals in a time-division manner. The corresponding stylus is determined by combining the feedback frequency that is not received. Accurate differentiation is achieved by using multiple resonant circuits and a switching device.
The recognition accuracy of passive styluses has been improved by sending multiple frequency signals in a time-division manner and combining them with unreceived feedback frequencies, thus achieving accurate differentiation of styluses and improving recognition accuracy.
Smart Images

Figure CN122363535A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of touch screen technology, and in particular to a passive stylus, a method for recognizing a stylus, a device for recognizing a stylus, an electronic device, a computer-readable storage medium, and a computer program product. Background Technology
[0002] With the development of touchscreen technology, capacitive touchscreens have become increasingly widely used due to their ease of operation and high sensitivity. When a conductor touches the touchscreen, the change in the resulting electric field detects the touch position on the touchscreen, thus enabling human-computer interaction.
[0003] Currently, in the use of capacitive touchscreens, in addition to interacting with the touchscreen using fingers, interaction can also be achieved using capacitive styluses. Most capacitive styluses on the market are active, meaning they require battery power. However, batteries have a limited lifespan, increasing the cost of using the stylus. Charging active styluses also increases inconvenience. Therefore, passive styluses have emerged. These do not require battery power; instead, they passively generate signals based on the signals sent by the touchscreen when the stylus is in contact with the touch panel, and these signals are fed back to the touchscreen. However, current passive styluses can only be distinguished by their touch area, which is prone to misidentification and has low accuracy. Summary of the Invention
[0004] Therefore, it is necessary to provide a passive stylus, a method for identifying a stylus, a device for identifying a stylus, an electronic device, a computer-readable storage medium, and a computer program product to address the aforementioned technical problems, so as to improve the accuracy of identifying passive styluses.
[0005] Firstly, this application provides a passive stylus. The passive stylus includes:
[0006] A stylus tip, and a resonant device connected to the stylus tip, the resonant device having at least two different resonant states, wherein, in any one resonant state, at least one of the multiple operating frequency signals emitted by the touch panel is blocked, and oscillates when the touch panel emits signals of other operating frequencies, so that the touch panel obtains the touch information of the passive stylus.
[0007] The passive stylus based on this embodiment is equipped with a resonant device having at least two different resonant states. In any resonant state, at least one of the multiple operating frequency signals emitted by the touch panel is blocked, and the stylus oscillates when the touch panel emits signals of other operating frequencies. This allows the touch panel to determine the corresponding stylus by sending multiple frequency signals in a time-division manner and combining the frequency of the unreceived feedback touch signal. This achieves accurate stylus differentiation and helps improve the accuracy of stylus recognition.
[0008] In some embodiments, the resonant device includes:
[0009] A resonant circuit is used to oscillate when the frequency emitted by the touch panel is the resonant frequency of the resonant circuit, so that the touch panel can obtain the touch information of the passive stylus;
[0010] A switching device is used to switch the resonant frequency of the resonant circuit.
[0011] Based on this embodiment, the resonant device may include a resonant circuit and a switching device. The switching device can switch the resonant frequency of the resonant circuit, so that the resonant device only oscillates the signal corresponding to the switched resonant frequency, while other frequency signals sent by the touch panel in a time-division manner will not oscillate. Thus, the touch panel can send signals of multiple frequencies in a time-division manner and, in combination with the frequency of the unreceived feedback touch signal, determine the corresponding stylus, thereby achieving accurate stylus differentiation and helping to improve the accuracy of stylus recognition.
[0012] In some embodiments, the resonant device includes:
[0013] At least two resonant circuits are connected in parallel, each with a different resonant frequency. One of the resonant circuits is used to block the signal emitted by the touch panel at the resonant frequency of the resonant circuit. The other resonant circuits are used to oscillate when the frequency emitted by the touch panel is the resonant frequency of the resonant circuit, so that the touch panel can obtain the touch information of the passive stylus.
[0014] The passive stylus based on this embodiment has multiple resonant circuits with different resonant frequencies. One of the resonant circuits is used to block signals emitted by the touch panel at the resonant frequency of the resonant circuit. That is, when the touch panel emits a signal at this frequency, the resonant circuit blocks the signal and does not provide feedback to the touch panel. The other resonant circuits, when they receive signals emitted by the touch panel at the resonant frequency of the resonant circuit, will oscillate to enable the touch panel to obtain touch information. Thus, the touch panel can send signals of multiple frequencies in a time-division manner and combine them with the frequencies of the unreceived feedback touch signals to determine the corresponding stylus, achieving accurate stylus differentiation and helping to improve the accuracy of stylus recognition.
[0015] In some embodiments, the passive stylus further includes a switching device connected to each of the resonant circuits;
[0016] The switching device is used to adjust the frequency of a resonant circuit that blocks signals emitted by the touch panel based on the received operation.
[0017] Based on this embodiment, the passive stylus can adjust the resonant circuit used to block the frequency of signals emitted by the touch panel through a switching device. Thus, the same model of passive stylus can be adjusted by the switching device so that different passive styluses have different resonant circuits used to block the frequency of signals emitted by the touch panel. Different passive styluses block signals of different frequencies emitted by the touch panel, thereby enabling the identification of different styluses.
[0018] In some embodiments, the switching device is configured to adjust the connection state between each of the resonant circuits and the stylus tip based on the received operation, so as to adjust the resonant circuit for blocking the frequency of the signal emitted by the touch panel.
[0019] Based on this embodiment, the switching device can adjust the connection state between each resonant circuit and the stylus tip, thereby enabling each resonant circuit and the stylus tip to have different connection states. For example, the resonant circuit corresponding to a certain resonant frequency can be disconnected from the stylus tip. This allows the resonant circuit used to block the frequency of the signal emitted by the touch panel to be adjusted accordingly, improving the convenience of adjustment.
[0020] In some embodiments, the switching device includes a switching switch with multiple gears, each gear corresponding to a resonant circuit / resonant frequency, and the resonant circuit corresponding to the gear blocks the signal emitted by the touch panel at the resonant frequency of the resonant circuit.
[0021] Based on this embodiment, the switching device includes a switching switch, and each position of the switching switch corresponds to a resonant circuit / resonant frequency. Thus, by switching the position of the switching switch, different styluses can be easily implemented.
[0022] In some embodiments, the switch includes a rotary switch or a push-button switch.
[0023] Based on this embodiment, the switch can be a rotary switch or a push-button switch, thus enabling the switch to be switched in different ways, improving the convenience of implementing the switch.
[0024] In some embodiments, the resonant circuit includes a capacitor and an inductor connected in parallel; the capacitance value of the capacitor and / or the inductance value of the inductor of each resonant circuit are different, so that the resonant frequency of each resonant circuit is different.
[0025] Based on this embodiment, different values can be set for the capacitor and / or the inductor of each resonant circuit, thereby making the resonant frequency of each resonant circuit different, which is convenient and easy.
[0026] Secondly, this application also provides a method for identifying a stylus, wherein the method includes:
[0027] The control touch panel performs time-division scanning at at least two different scanning frequencies to send signals at at least two different scanning frequencies outward in a time-division manner;
[0028] Receive the oscillation signal generated by the passive stylus under the action of the signal, and determine the frequency of the received oscillation signal;
[0029] The identified stylus is determined based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals.
[0030] The method for identifying styluses based on this embodiment involves a touch panel performing time-division scanning at at least two different scanning frequencies, and receiving the frequency of the oscillation signal fed back by the passive stylus when it sends a signal. Then, by combining a first number of multiple scanning frequencies of the time-division scanning with the number of frequencies of the received oscillation signals, i.e., whether the corresponding oscillation signal is received for each scanning frequency, the identified stylus is determined. This allows for accurate differentiation of styluses and helps improve the accuracy of stylus identification.
[0031] In some embodiments, determining the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals includes:
[0032] When the first quantity is greater than the second quantity, the stylus corresponding to the scanning frequency that exceeds the frequency of the received oscillation signal is identified as the recognized stylus.
[0033] The method for identifying styluses based on this embodiment indicates that if a first number of scanning frequencies is greater than a second number of frequencies of received oscillation signals, then one of the signals of different scanning frequencies transmitted in a time-division manner is blocked. Therefore, the stylus corresponding to the blocked scanning frequency is identified as the stylus, thereby improving the accuracy of stylus identification.
[0034] In some embodiments, determining the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals includes:
[0035] When the first quantity is equal to the second quantity, the identified stylus is determined to be a touch finger.
[0036] According to the method for identifying styluses based on this embodiment, when the first number of scanning frequencies is equal to the second number of frequencies of the received oscillation signals, it indicates that the styluse oscillated and responded to signals of different scanning frequencies emitted in a time-division manner, and no signal of any scanning frequency was blocked. In this case, it may be caused by finger touch, so it can be directly determined that the identified stylus is the touching finger.
[0037] Thirdly, this application also provides a device for recognizing a stylus, the device comprising:
[0038] The scanning module is used to control the touch panel to perform time-division scanning at at least two different scanning frequencies to send signals of at least two different scanning frequencies outward in a time-division manner; and to receive the oscillation signal generated by the passive stylus under the action of the signals, and to determine the frequency of the received oscillation signal.
[0039] The identification module is used to determine the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals.
[0040] Fourthly, this application also provides an electronic device, including a touch panel, a memory, and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in any of the embodiments above.
[0041] Fifthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the method described in any of the embodiments above.
[0042] Sixthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the methods described in any of the embodiments above.
[0043] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description
[0044] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiments below. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:
[0045] Figure 1 This is a diagram illustrating the application environment of the solutions in the embodiments of this application;
[0046] Figure 2 This is a schematic diagram of the equivalent circuit of a passive stylus in one embodiment;
[0047] Figure 3 This is a schematic diagram of the equivalent circuit of a passive stylus in another embodiment;
[0048] Figure 4 This is a flowchart illustrating a method for recognizing a stylus in one embodiment;
[0049] Figure 5 This is a flowchart illustrating a method for recognizing a stylus in another embodiment;
[0050] Figure 6 This is a flowchart illustrating a method for recognizing a stylus in another embodiment;
[0051] Figure 7 This is a structural block diagram of a device for recognizing a stylus in one embodiment;
[0052] Figure 8 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0054] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.
[0056] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.
[0057] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0058] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0059] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).
[0060] Currently, when using a passive stylus for touch control and needing to distinguish between different passive styluses, the main method is by differentiating the size of the stylus tip. This is achieved by utilizing the differences in the detected area signal to differentiate between different data, thus enabling the identification of different passive styluses. To distinguish between different passive styluses based on their area signal, the stylus tip and end are typically designed to be of different sizes, thereby enabling the identification of the tip and end's ID.
[0061] However, this method of recognizing different styluses by using area differentiation does not fundamentally change the characteristics of stylus and finger signals. It merely defines the different sizes of the different areas. When there is finger touching, it is easy to confuse the recognition of different touching fingers, resulting in inaccurate recognition of different styluses.
[0062] Research has shown that touch panels can transmit signals at different scanning frequencies in a time-sharing manner. Two or more oscillation circuits can be set up on the passive stylus. By designing the state of the passive stylus, one of the touch panel's scanning frequencies is blocked. That is, the passive stylus does not oscillate and provide feedback at that scanning frequency, preventing the touch panel from receiving the blocked oscillation feedback signal. In the case of finger touch, since the finger is essentially a conductor, if the oscillation feedback signal at one scanning frequency is not received, the finger touch scenario can be ruled out. Therefore, different passive styluses can be distinguished based on the blocked scanning frequencies, thus achieving accurate differentiation between them.
[0063] The solutions in this application embodiment can be applied to, for example... Figure 1 In the application environment shown, the touch panel 100 can transmit signals at different scanning frequencies in a time-division multiplexing manner, alternating and cycling. Taking two scanning frequencies f1 and f2 as an example, signals at frequencies f1 and f2 can be transmitted alternately. A user can contact the touch panel 100 with a passive stylus 200. The passive stylus 200 blocks the signal at one of the scanning frequencies emitted by the touch panel 100, while oscillating the signals at other frequencies. The touch panel 100 receives the oscillation signals from the passive stylus 200 and distinguishes different passive styluses 200 based on the frequencies at which the corresponding oscillation signals are not received. The number of scanning frequencies of the touch panel 100 in a time-division multiplexing manner can also be two or more. Correspondingly, the passive stylus 200 can also be equipped with multiple different oscillation circuits, and the frequency of the oscillation circuits is the same as the scanning frequency of the touch panel 100.
[0064] Accordingly, some embodiments of this application provide a passive stylus. The passive stylus includes:
[0065] A stylus tip, and a resonant device connected to the stylus tip, the resonant device having at least two different resonant states, wherein, in any one resonant state, at least one of the multiple operating frequency signals emitted by the touch panel is blocked, and oscillates when the touch panel emits signals of other operating frequencies, so that the touch panel obtains the touch information of the passive stylus.
[0066] The passive stylus based on this embodiment is equipped with a resonant device having at least two different resonant states. In any resonant state, at least one of the multiple operating frequency signals emitted by the touch panel is blocked, and the stylus oscillates when the touch panel emits signals of other operating frequencies. This allows the touch panel to determine the corresponding stylus by sending multiple frequency signals in a time-division manner and combining the frequency of the unreceived feedback touch signal. This achieves accurate stylus differentiation and helps improve the accuracy of stylus recognition.
[0067] The specific implementation of the resonant device is not limited, as long as it enables the passive stylus to oscillate only a portion of the multiple operating frequency signals sent by the touch panel in a time-division manner. Several examples are given below.
[0068] In some embodiments, the resonant device includes:
[0069] A resonant circuit is used to oscillate when the frequency emitted by the touch panel is the resonant frequency of the resonant circuit, so that the touch panel can obtain the touch information of the passive stylus;
[0070] A switching device is used to switch the resonant frequency of the resonant circuit.
[0071] In this case, the equivalent circuit diagram of a passive stylus is as follows: Figure 2 As shown, it includes the equivalent resistance R of the stylus without a circuit, and the inductor L and capacitor C in the resonant circuit. The equivalent resistance R, inductor L and capacitor C are connected in parallel. By adjusting the value of at least one of the inductor L and capacitor C, the resonant frequency of the resonant circuit can be set to the corresponding frequency.
[0072] In this configuration, the touch panel can operate alternately at frequencies f1 and f2. For two passive styluses, the resonant frequency of the resonant circuit is set to f1 for one stylus via a switching device, and to f2 for the other. When the touch panel is operating, the first passive stylus oscillates only at the f1 frequency and not at f2, effectively isolating the f2 frequency. Therefore, the ID of this passive stylus can be set to the ID corresponding to frequency f2. Similarly, the second passive stylus oscillates only at the f2 frequency and not at f1, effectively isolating the f1 frequency. This allows the ID of this passive stylus to be set to the ID corresponding to frequency f1. This enables two IDs for the passive styluses, and the different passive styluses can be distinguished by the isolated frequencies.
[0073] Based on this embodiment, the resonant device may include a resonant circuit and a switching device. The switching device can switch the resonant frequency of the resonant circuit, so that the resonant device only oscillates the signal corresponding to the switched resonant frequency, while other frequency signals sent by the touch panel in a time-division manner will not oscillate. Thus, the touch panel can send signals of multiple frequencies in a time-division manner and, in combination with the frequency of the unreceived feedback touch signal, determine the corresponding stylus, thereby achieving accurate stylus differentiation and helping to improve the accuracy of stylus recognition.
[0074] In other embodiments, the resonant device includes:
[0075] At least two resonant circuits are connected in parallel, each with a different resonant frequency. One of the resonant circuits is used to block the signal emitted by the touch panel at the resonant frequency of the resonant circuit. The other resonant circuits are used to oscillate when the frequency emitted by the touch panel is the resonant frequency of the resonant circuit, so that the touch panel can obtain the touch information of the passive stylus.
[0076] Taking a passive stylus pen that includes two resonant circuits as an example, it can include a first resonant circuit and a second resonant circuit, and the corresponding schematic diagram is as follows: Figure 3 As shown, the stylus tip 201 of the passive stylus can be connected to the first resonant circuit 203 and the second resonant circuit. The first resonant circuit 203 and the second resonant circuit can be disposed inside the main body structure 202 of the passive stylus.
[0077] In this embodiment, the resonant frequency of the first resonant circuit 203 is a first frequency, and the resonant frequency of the second resonant circuit is a second frequency, wherein the first frequency and the second frequency are different. Based on this embodiment, the passive stylus can recognize two passive styluses.
[0078] For example, in one of the passive styluses, its first resonant circuit 203 is used to block signals emitted by the touch panel at a first frequency, while the second resonant circuit is used to oscillate when the touch panel emits signals at the second frequency, so that the touch panel can obtain the touch information of the passive stylus. The method by which the first resonant circuit 203 blocks signals emitted by the touch panel at the first frequency is not limited; for example, when the touch panel 200 sends signals at the first frequency, the first resonant circuit will not oscillate.
[0079] For another passive stylus, its first resonant circuit 203 is used to oscillate when the frequency emitted by the touch panel is a first frequency, so that the touch panel can obtain the touch information of the passive stylus. The second resonant circuit is used to block signals emitted by the touch panel at a second frequency. The method by which the second resonant circuit blocks signals emitted by the touch panel at the second frequency is not limited; for example, when the touch panel 200 sends a signal at the second frequency, the second resonant circuit will not oscillate.
[0080] The passive stylus based on this embodiment has multiple resonant circuits with different resonant frequencies. One of the resonant circuits is used to block signals emitted by the touch panel at the resonant frequency of the resonant circuit. That is, when the touch panel emits a signal at this frequency, the resonant circuit blocks the signal and does not provide feedback to the touch panel. The other resonant circuits, when they receive signals emitted by the touch panel at the resonant frequency of the resonant circuit, will oscillate to enable the touch panel to obtain touch information. Thus, the touch panel can send signals of multiple frequencies in a time-division manner and combine them with the frequencies of the unreceived feedback touch signals to determine the corresponding stylus, achieving accurate stylus differentiation and helping to improve the accuracy of stylus recognition.
[0081] In some embodiments, the passive stylus further includes a switching device connected to each of the resonant circuits;
[0082] The switching device is used to adjust the frequency of a resonant circuit that blocks signals emitted by the touch panel based on the received operation.
[0083] The switching device can be implemented in any way, as long as it can adjust which frequency of signal emitted by the touch panel is blocked by the passive stylus.
[0084] Based on this embodiment, the passive stylus can adjust the resonant circuit used to block the frequency of signals emitted by the touch panel through a switching device. Thus, the same model of passive stylus can be adjusted by the switching device so that different passive styluses have different resonant circuits used to block the frequency of signals emitted by the touch panel. Different passive styluses block signals of different frequencies emitted by the touch panel, thereby enabling the identification of different styluses.
[0085] In some embodiments, the switching device is used to adjust the connection state between each of the resonant circuits and the stylus tip based on the received operation, so as to adjust the resonant circuit for blocking the frequency of the signal emitted by the touch panel.
[0086] The switching device can adjust the connection status between each resonant circuit and the stylus tip in any way. For example, based on the received operation, it can adjust the connection status between the corresponding resonant circuit and the stylus tip from connected to unconnected.
[0087] Taking a passive stylus with two resonant circuits as an example, assuming that in the current state the stylus tip is connected to the first resonant circuit and not connected to the second resonant circuit, a switching device can be used to switch the stylus tip from the first resonant circuit to the second resonant circuit. Thus, for two passive styluses, one stylus tip is set to be connected to the first resonant circuit and not to the second resonant circuit via the switching device, while the other stylus tip is set to be connected to the second resonant circuit and not to the first resonant circuit via the switching device. This allows for two different IDs for the passive styluses, and the different passive styluses can be distinguished by the blocked frequencies.
[0088] Taking a passive stylus with three or more resonant circuits as an example, for three passive styluses, the first passive stylus is configured to have its stylus tip disconnected from the first resonant circuit and connected to the second and third resonant circuits via a switching device. The second passive stylus is configured to have its stylus tip disconnected from the second resonant circuit and connected to the first and third resonant circuits via a switching device. The third passive stylus is configured to have its stylus tip disconnected from the third resonant circuit and connected to the first and second resonant circuits via a switching device. This allows for the creation of three ID passive styluses, and the different passive styluses can be distinguished by the blocked frequencies.
[0089] Based on this embodiment, the switching device can adjust the connection state between each resonant circuit and the stylus tip, thereby enabling each resonant circuit and the stylus tip to have different connection states. For example, the resonant circuit corresponding to a certain resonant frequency can be disconnected from the stylus tip. This allows the resonant circuit used to block the frequency of the signal emitted by the touch panel to be adjusted accordingly, improving the convenience of adjustment.
[0090] The specific implementation of the switching device is not limited. In some embodiments, the switching device includes a switch with multiple positions, each position corresponding to a resonant circuit / resonant frequency. The resonant circuit corresponding to each position blocks the signal emitted by the touch panel at the resonant frequency of that circuit. That is, when the switch is switched to the resonant circuit / or resonant frequency corresponding to that position, the signal at that resonant frequency emitted by the touch panel is blocked, thereby making one position of the switch correspond to one ID of a passive stylus.
[0091] Based on this embodiment, the switching device includes a switching switch, and each position of the switching switch corresponds to a resonant circuit / resonant frequency. Thus, by switching the position of the switching switch, styluses with different IDs can be easily implemented.
[0092] The specific form of the toggle switch is not limited; for example, it can be a rotary switch, a push-button switch, or multiple different buttons on a passive stylus. If the toggle switch includes multiple different buttons, each button can correspond to a specific resonant circuit / resonant frequency. The specific shape of the toggle switch is not limited; for example, it can be circular (e.g., ...). Figure 2 , Figure 3 (as shown in 204), a square, or any other possible shape, etc.
[0093] Based on this embodiment, the switch can be a rotary switch or a push-button switch, thus enabling the switch to be switched in different ways, improving the convenience of implementing the switch.
[0094] The specific implementation of a resonant circuit can include a capacitor and an inductor connected in parallel; for example... Figure 3 The inductor L and capacitor C shown are different in each of the resonant circuits, so that the resonant frequencies of each resonant circuit are different.
[0095] Based on this embodiment, different values can be set for the capacitor and / or the inductor of each resonant circuit, thereby making the resonant frequency of each resonant circuit different, which is convenient and easy.
[0096] Based on the passive stylus described above, this application embodiment also provides a method for identifying the stylus, which can be executed by a processor corresponding to the touch panel 200, wherein, referring to Figure 4 As shown, the method includes:
[0097] Step S401: Control the touch panel to perform time-division scanning at at least two different scanning frequencies to send signals of at least two different scanning frequencies outward in a time-division manner.
[0098] Time-division scanning of a touch panel using different scanning frequencies means that the touch panel scans periodically at different scanning frequencies. For example, if the touch panel's operating frequencies include f1 and f2, it can continuously scan at frequencies f1, f2, f1, f2... Similarly, if the touch panel's operating frequencies include f1, f2, and f3, it can continuously scan at frequencies f1, f2, f3, f1, f2, f3...
[0099] Step S402: Receive the oscillation signal generated by the passive stylus under the action of the signal, and determine the frequency of the received oscillation signal.
[0100] When a passive stylus touches the touch panel, the touch panel performs time-division scanning at different operating frequencies. Therefore, when the oscillation frequency of the oscillation circuit connected to the stylus tip of the passive stylus is the same, oscillation is generated under the influence of the signal emitted by the touch panel. The touch panel can receive the oscillation information generated by this oscillation and determine the frequency of the received oscillation signal. If the oscillation frequency of the signal emitted by the touch panel is the frequency of the oscillation circuit of the passive stylus not connected to the stylus tip, then the signal is blocked, no oscillation signal is generated, and the touch panel will not receive an oscillation signal at that frequency.
[0101] Step S403: Based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals, determine the identified stylus.
[0102] The method for identifying styluses based on this embodiment involves a touch panel performing time-division scanning at at least two different scanning frequencies, and receiving the frequency of the oscillation signal fed back by the passive stylus when it sends a signal. Then, by combining a first number of multiple scanning frequencies of the time-division scanning with the number of frequencies of the received oscillation signals, i.e., whether the corresponding oscillation signal is received for each scanning frequency, the identified stylus is determined. This allows for accurate differentiation of styluses and helps improve the accuracy of stylus identification.
[0103] The method for determining the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals is not limited. Several of these methods are illustrated below.
[0104] In some embodiments, reference Figure 5 As shown, step S403 above, which determines the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals, may include:
[0105] Step S4031: When the first quantity is greater than the second quantity, the stylus corresponding to the scanning frequency that exceeds the frequency of the received oscillation signal in the scanning frequency is identified as the recognized stylus.
[0106] The method of identifying the stylus corresponding to the scanning frequency that exceeds the frequency of the received oscillation signal is not limited. For example, the excess scanning frequency can be used as the stylus's ID.
[0107] Taking the example where each passive stylus blocks only one oscillation frequency signal, assuming the touch panel performs time-division scanning at operating frequencies f1 and f2, and for a touch at a certain location, only the oscillation signal at frequency f1 is received, but not the oscillation signal at frequency f2, it means that the operating frequency f2 is blocked by the passive stylus. Therefore, the ID corresponding to operating frequency f2 is used as the stylus ID for that location. Similarly, for a touch at a certain location, if only the oscillation signal at frequency f2 is received, but not the oscillation signal at frequency f1, it means that the operating frequency f1 is blocked by the passive stylus. Therefore, the ID corresponding to operating frequency f1 is used as the stylus ID for that location. This principle continues when the touch panel has three or more operating frequencies for time-division scanning.
[0108] Taking the example that each passive stylus can block signals at more than two oscillation frequencies, assuming the touch panel performs time-division scanning at operating frequencies f1, f2, f3, and f4, and for a touch at a certain location, only oscillation signals at frequencies f1, f2, and f3 are received, but not at frequency f4, it means that operating frequency f4 is blocked by the passive stylus. Therefore, the ID corresponding to operating frequency f4 is used as the stylus ID for that location. Similarly, for a touch at a certain location, if only oscillation signals at frequencies f1 and f2 are received, but not at frequencies f3 and f4, it means that operating frequencies f3 and f4 are blocked by the passive stylus. In this case, the ID corresponding to operating frequencies f3 and f4 is used as the stylus ID for that location. Other frequencies follow the same principle.
[0109] The method for identifying styluses based on this embodiment indicates that, if a first number of scanning frequencies is greater than a second number of frequencies of received oscillation signals, at least one of the signals of different scanning frequencies transmitted in a time-division manner is blocked. Therefore, the stylus corresponding to the blocked scanning frequency can be identified as the stylus, thereby improving the accuracy of stylus identification.
[0110] In some embodiments, reference Figure 6 As shown, step S403 above, which determines the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals, includes:
[0111] Step S4032: When the first quantity is equal to the second quantity, determine that the identified stylus is a touch finger.
[0112] According to the method for identifying styluses based on this embodiment, when the first number of scanning frequencies is equal to the second number of frequencies of the received oscillation signals, it indicates that the styluse oscillated and responded to signals of different scanning frequencies emitted in a time-division manner, and no signal of any scanning frequency was blocked. In this case, it may be caused by finger touch, so it can be directly determined that the identified stylus is the touching finger.
[0113] Based on the embodiments described above, the following examples illustrate the points.
[0114] In one specific example, each passive stylus is equipped with a resonant circuit and a corresponding switching device, which can switch the operating frequency of the resonant circuit. The touch panel can operate alternately at operating frequencies f1 and f2 in a time-division manner. For two passive styluses, the resonant frequency of the resonant circuit is set to f1 for the first passive stylus through the switching device, and the resonant frequency of the resonant circuit is set to f2 for the second passive stylus through the switching device.
[0115] When the touch panel is working, the first passive stylus oscillates only at the operating frequency f1, and not at the frequency f2, thus isolating the f2 frequency. This means that when the touch panel operates in a time-sharing manner between f1 and f2, it only receives the oscillation signal of the first passive stylus at frequency f1, allowing the ID of that passive stylus to be set to the ID corresponding to frequency f2. Similarly, the second passive stylus oscillates only at the operating frequency f2, and not at the frequency f1, again isolating the f1 frequency. This means that when the touch panel operates in a time-sharing manner between f1 and f2, it only receives the oscillation signal of the second passive stylus at frequency f2, allowing the ID of that passive stylus to be set to the ID corresponding to frequency f1. If the touch panel receives signals at both frequencies f1 and f2 simultaneously, it indicates that the touch was generated by a finger, and the stylus ID can be set to the ID corresponding to the finger. This allows for the differentiation between the IDs of the two passive styluses and the multiple IDs of a finger.
[0116] In some specific examples, the passive stylus includes a first resonant circuit and a second resonant circuit. The touch panel can operate alternately at working frequencies f1 and f2, with the resonant frequencies of the first and second resonant circuits being f1 and f2, respectively. For two passive styluses, the first resonant circuit of the first passive stylus is switched to be connected to the stylus tip, while the second resonant circuit is switched to be disconnected from the stylus tip. The first resonant circuit of the second passive stylus is switched to be connected to the stylus tip, while the second resonant circuit is switched to be connected to the stylus tip.
[0117] When the touch panel is working, the first passive stylus oscillates only at frequency f1 (first resonant circuit), while the second resonant circuit does not oscillate at frequency f2. This effectively blocks the frequency f2, ensuring that when the touch panel operates alternately at f1 and f2, the first passive stylus only receives the oscillation signal at frequency f1, allowing its ID to be set to the ID corresponding to frequency f2. Similarly, the second passive stylus oscillates only at frequency f2 (second resonant circuit), while the first resonant circuit does not oscillate at frequency f1, again blocking the f1 frequency. If the touch panel receives signals at both frequencies f1 and f2, it indicates a finger touch, and the stylus's ID can be set to the finger's ID, thus distinguishing between the IDs of the two passive styluses and multiple IDs for a finger.
[0118] It is understandable that, with touch panels operating at more frequencies for time-division scanning, the specific principles can be the same as described above, and will not be elaborated upon here.
[0119] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0120] Based on the same inventive concept, this application also provides a stylus recognition device for implementing the stylus recognition method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations of one or more stylus recognition device embodiments provided below can be found in the limitations of the stylus recognition method described above, and will not be repeated here.
[0121] In one embodiment, such as Figure 7 As shown, a device for recognizing a stylus is provided, comprising: a scanning module 701 and a recognition module 702, wherein:
[0122] The scanning module 701 is used to control the touch panel to perform time-division scanning at at least two different scanning frequencies to send signals of at least two different scanning frequencies outward in a time-division manner; receive the oscillation signal generated by the passive stylus under the action of the signal, and determine the frequency of the received oscillation signal;
[0123] The identification module 702 is used to determine the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals.
[0124] In some embodiments, the identification module 702 is configured to identify the stylus corresponding to the scanning frequency that exceeds the frequency of the received oscillation signal in the scanning frequency range when the first quantity is greater than the second quantity.
[0125] In some embodiments, the identification module 702 is configured to determine that the identified stylus is a touch finger when the first quantity is equal to the second quantity.
[0126] The various modules in the aforementioned stylus recognition device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0127] In one embodiment, an electronic device is provided, the internal structure of which can be shown as follows: Figure 8 As shown, the electronic device includes a processor, memory, communication interface, display screen (touch panel), and input device connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a method for recognizing a stylus. The display screen can be an LCD screen or an e-ink screen. The input device can be a touch layer covering the display screen, buttons, a trackball, or a touchpad mounted on the computer device casing, or an external keyboard, touchpad, or mouse.
[0128] Those skilled in the art will understand that Figure 8The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0129] Accordingly, this application also provides an electronic device, including a touch panel, a memory, and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in any of the embodiments above.
[0130] This application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, implements the steps of the method described in any of the embodiments above.
[0131] This application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any of the embodiments above.
[0132] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0133] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0134] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A passive stylus, characterized in that, The passive stylus includes: a stylus tip, and a resonant device connected to the stylus tip. The resonant device has at least two different resonant states, wherein, in any one of the multiple operating frequency signals emitted by the touch panel, at least one operating frequency signal is blocked, and the stylus oscillates when the touch panel emits signals of other operating frequencies, so that the touch panel obtains the touch information of the passive stylus.
2. The passive stylus according to claim 1, characterized in that, The resonant device includes: A resonant circuit is used to oscillate when the frequency emitted by the touch panel is the resonant frequency of the resonant circuit, so that the touch panel can obtain the touch information of the passive stylus; A switching device is used to switch the resonant frequency of the resonant circuit.
3. The passive stylus according to claim 1, characterized in that, The resonant device includes at least two resonant circuits connected in parallel, each resonant circuit having a different resonant frequency. One of the resonant circuits is used to block the signal emitted by the touch panel at the resonant frequency of the resonant circuit, while the other resonant circuits are used to oscillate when the frequency emitted by the touch panel is the resonant frequency of the resonant circuit, so that the touch panel obtains the touch information of the passive stylus.
4. The passive stylus according to claim 3, characterized in that, The passive stylus also includes a switching device, which is connected to each of the resonant circuits. The switching device is used to adjust the frequency of a resonant circuit that blocks signals emitted by the touch panel based on the received operation.
5. The passive stylus according to claim 4, characterized in that, The switching device is used to adjust the connection state between each of the resonant circuits and the stylus tip based on the received operation, so as to adjust the resonant circuit used to block the frequency of the signal emitted by the touch panel.
6. The passive stylus according to claim 2, 4, or 5, characterized in that, The switching device includes a switching switch with multiple positions, each position corresponding to a resonant circuit / resonant frequency, and the resonant circuit corresponding to the position blocks the signal emitted by the touch panel at the resonant frequency of the resonant circuit.
7. The passive stylus according to claim 6, characterized in that, The switching switch includes a rotary switch, a push-button switch, or multiple buttons.
8. A method for identifying a stylus, characterized in that, The method includes: The control touch panel performs time-division scanning at at least two different scanning frequencies to send signals at at least two different scanning frequencies outward in a time-division manner; Receive the oscillation signal generated by the passive stylus under the action of the signal, and determine the frequency of the received oscillation signal; The identified stylus is determined based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals.
9. The method according to claim 8, characterized in that, The determination of the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals includes: When the first quantity is greater than the second quantity, the stylus corresponding to the scanning frequency that exceeds the frequency of the received oscillation signal is identified as the recognized stylus.
10. The method according to claim 8 or 9, characterized in that, The determination of the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals includes: When the first quantity is equal to the second quantity, the identified stylus is determined to be a touch finger.
11. A device for recognizing a stylus, characterized in that, The device includes: The scanning module is used to control the touch panel to perform time-division scanning at at least two different scanning frequencies to send signals of at least two different scanning frequencies outward in a time-division manner; and to receive the oscillation signal generated by the passive stylus under the action of the signals, and to determine the frequency of the received oscillation signal. The identification module is used to determine the identified stylus based on a first number of scanning frequencies and a second number of frequencies of the received oscillation signals.
12. An electronic device comprising a touch panel, a memory, and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 8 to 10.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 8 to 10.
14. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 8 to 10.