CN117971071A - Capacitive pen lifting detection method and device, touch pen and storage medium - Google Patents

Capacitive pen lifting detection method and device, touch pen and storage medium Download PDF

Info

Publication number
CN117971071A
CN117971071A CN202311837835.8A CN202311837835A CN117971071A CN 117971071 A CN117971071 A CN 117971071A CN 202311837835 A CN202311837835 A CN 202311837835A CN 117971071 A CN117971071 A CN 117971071A
Authority
CN
China
Prior art keywords
pen
capacitance
capacitive
state
capacitive pen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311837835.8A
Other languages
Chinese (zh)
Inventor
请求不公布姓名
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maxeye Smart Technologies Co ltd
Original Assignee
Maxeye Smart Technologies Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maxeye Smart Technologies Co ltd filed Critical Maxeye Smart Technologies Co ltd
Priority to CN202311837835.8A priority Critical patent/CN117971071A/en
Publication of CN117971071A publication Critical patent/CN117971071A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0346Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

The present invention relates to the field of touch pens, and in particular, to a method and apparatus for detecting a capacitance pen, a touch pen, and a storage medium. The capacitance value change of the capacitance pen is detected; detecting whether the capacitance pen moves or not through a gyroscope; and when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves, the capacitance pen is considered to be in a pen lifting state. The invention combines two indexes of capacitance and physical movement, thereby remarkably improving the detection accuracy, avoiding misjudgment of the capacitance pen as an active state when the capacitance pen should not be active, and having important significance for improving the energy efficiency of the capacitance pen and prolonging the service life of the battery.

Description

Capacitive pen lifting detection method and device, touch pen and storage medium
Technical Field
The present invention relates to the field of touch pens, and in particular, to a method and apparatus for detecting a capacitance pen, a touch pen, and a storage medium.
Background
Today, in the popularity of touch screen technology, capacitive pens are widely used as an accurate input device in the fields of smart phones, tablet computers, touch screen notebook computers, and the like. Unlike conventional passive stylus pens, capacitive pens often contain built-in batteries and electronic components that enable more accurate communication with touch screen devices. To extend battery life, these capacitive pens are typically designed with sleep modes that reduce power consumption when not in use.
However, there is a problem in the current technology that these pens sometimes erroneously switch from a dormant state to an active state when they do not receive an explicit wake-up instruction. This not only results in unnecessary consumption of power, reducing the user experience, but may also cause the capacitive pen to inadvertently malfunction with the paired device.
The foregoing is provided merely for the purpose of facilitating understanding of the technical solutions of the present invention and is not intended to represent an admission that the foregoing is prior art.
Disclosure of Invention
The invention mainly aims to provide a capacitive pen lifting detection method, a capacitive pen lifting detection device, a touch pen and a storage medium, and aims to solve the technical problem that an existing capacitive pen is easy to erroneously transition from a dormant state to an active state under the condition that an explicit wake-up instruction is not received.
In order to achieve the above purpose, the present invention provides a capacitive pen lifting detection method, which includes the following steps:
detecting a capacitance value change of the capacitance pen;
detecting whether the capacitance pen moves or not through a gyroscope;
and when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves, the capacitance pen is considered to be in a pen lifting state.
Optionally, after detecting the change of the capacitance value of the capacitance pen, the method further includes:
starting timing when the capacitance value continuously drops to a reference value;
and when the timing duration reaches the preset duration, the user is considered to have put down the capacitance pen.
Optionally, when the timing duration reaches the preset duration, the step of recognizing that the user has placed the capacitive pen further includes:
judging whether the capacitance pen moves or not through the gyroscope;
when the gyroscope moves, the capacitance pen is determined to be in a working state, and dormancy is not performed.
Optionally, when the timing duration reaches the preset duration, the step of recognizing that the user has placed the capacitive pen further includes:
judging whether the capacitance pen moves or not through the gyroscope;
when the gyroscope does not move, the capacitance value of the capacitance pen is determined to be changed into an interference value;
these interference values are filtered out by automatic calibration and put into a sleep state.
Optionally, the method further comprises:
a magnetic attraction sensing channel is arranged on the magnetic attraction surface of the capacitance pen, and the state of the capacitance pen is judged by using the magnetic attraction sensing channel;
when the state of the capacitance pen is that the capacitance pen is adsorbed on a metal material or a magnet, a capacitance sensing channel of the capacitance pen is closed.
Optionally, when the state of the capacitive pen is that the capacitive pen is adsorbed on a metal material or a magnet, after closing the capacitive sensing channel of the capacitive pen, the method further includes:
when the state of the capacitance pen is that the capacitance pen is not adsorbed on the metal material or the magnet, a capacitance sensing channel of the capacitance pen is started, and the monitoring of the capacitance value of the capacitance pen is recovered.
Optionally, the capacitive pen comprises a multi-section pen body;
And each pen body is provided with a corresponding capacitance sensing channel.
In addition, in order to achieve the above object, the present invention also provides a capacitive pen-holding detection device, including:
the capacitance detection module is used for detecting the capacitance value change of the capacitance pen;
the motion detection module is used for detecting whether the capacitance pen moves or not through a gyroscope;
and the pen lifting detection module is used for recognizing that the capacitance pen is in a pen lifting state when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves.
In addition, in order to achieve the above object, the present invention also proposes a stylus comprising: a memory, a processor and a capacitive pen-up detection program stored on the memory and operable on the processor, the capacitive pen-up detection program being configured to implement the steps of the capacitive pen-up detection method of any one of claims 1 to 7.
In addition, in order to achieve the above object, the present invention further provides a storage medium, on which a capacitive pen-up detection program is stored, which when executed by a processor, implements the steps of the capacitive pen-up detection method as described above.
The capacitance value change of the capacitance pen is detected; detecting whether the capacitance pen moves or not through a gyroscope; and when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves, the capacitance pen is considered to be in a pen lifting state. The invention combines two indexes of capacitance and physical movement, thereby remarkably improving the detection accuracy, avoiding misjudgment of the capacitance pen as an active state when the capacitance pen should not be active, and having important significance for improving the energy efficiency of the capacitance pen and prolonging the service life of the battery.
Drawings
FIG. 1 is a schematic diagram of a capacitive pen-lifting detection device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of a capacitive pen-based pen-lifting detection method according to the present invention;
FIG. 3 is a flowchart of a second embodiment of a capacitive pen-based pen-lifting detection method according to the present invention;
FIG. 4 is a flowchart of a third embodiment of a capacitive pen-based pen-lifting detection method according to the present invention;
FIG. 5 is a block diagram of a first embodiment of a capacitive pen-based pen-lifting detection device according to the present invention;
FIG. 6 is a schematic diagram of a multi-channel capacitive pen according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a capacitive pen-lifting detection device in a hardware operation environment according to an embodiment of the present invention.
As shown in fig. 1, the capacitive pen-up detection device may include: a processor 1001, such as a central processing unit (Central Processing Unit, CPU), a communication bus 1002, a user interface 1003, a network interface 1004, a memory 1005. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a stylus (Display), and the optional user interface 1003 may also include a standard wired interface, a wireless interface, and the wired interface for the user interface 1003 may be a USB interface in the present invention. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a wireless FIdelity (WI-FI) interface). The Memory 1005 may be a high-speed random access Memory (Random Access Memory, RAM) Memory or a stable Memory (NVM), such as a disk Memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is not limiting of a capacitive pen-lift detection device and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a capacitive pen-up detection program may be included in a memory 1005, which is a computer storage medium.
In the capacitive pen-holding detection device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting peripherals; the capacitive pen-lifting detection device invokes a capacitive pen-lifting detection program stored in the memory 1005 through the processor 1001, and executes the capacitive pen-lifting detection method provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the capacitance pen lifting detection method is provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of a capacitive pen-lifting detection method according to the present invention.
In a first embodiment, the capacitive pen-handling detection method includes the steps of:
step S10: detecting a capacitance value change of the capacitance pen;
step S20: detecting whether the capacitance pen moves or not through a gyroscope;
step S30: and when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves, the capacitance pen is considered to be in a pen lifting state.
It should be noted that the execution body of the present embodiment may be a microcontroller (Microcontroller Unit, MCU) or other types of processors integrated inside the capacitive pen. Such a processor is responsible for processing data from sensors inside the capacitive pen, such as capacitive value sensors and gyroscopic sensors. Or other electronic device capable of performing the above functions.
It should be noted that, the interaction between the capacitive pen and the touch screen is realized by detecting the capacitance change. Firstly, the change of the capacitance in the capacitance pen needs to be monitored, and the change can be generated by the contact of the pen point and the touch screen. Meanwhile, a gyroscope built in the capacitance pen can detect whether the pen moves or not. A gyroscope is a device for measuring and maintaining direction and angular velocity, which is used to detect whether a pen is picked up or moved. When the capacitance value changes beyond a preset error threshold and the gyroscope detects that the pen is physically moved, the system can determine that the pen is in a pen lifting state. The error threshold is set to prevent small amplitude capacitance changes (which may be caused by environmental factors, etc.) from falsely triggering pen-up detection.
The embodiment detects the capacitance value change of the capacitance pen; detecting whether the capacitance pen moves or not through a gyroscope; and when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves, the capacitance pen is considered to be in a pen lifting state. Because the embodiment combines two indexes of capacitance and physical movement, the detection accuracy is remarkably improved, so that the capacitive pen is prevented from being misjudged to be in an active state when the capacitive pen is not supposed to be active, and the capacitive pen has important significance in improving the energy efficiency of the capacitive pen and prolonging the service life of a battery of the capacitive pen.
Referring to fig. 3, fig. 3 is a flowchart illustrating a second embodiment of the capacitive pen-lifting detection method according to the present invention, and based on the first embodiment shown in fig. 2, the second embodiment of the capacitive pen-lifting detection method according to the present invention is proposed.
In a second embodiment, after the step S30, the method further includes:
step S40: starting timing when the capacitance value continuously drops to a reference value;
Step S50: and when the timing duration reaches the preset duration, the user is considered to have put down the capacitance pen.
The reference value refers to a set capacitance threshold value, which is used to identify whether the capacitive pen is in contact with or approaches to a certain extent with the touch screen surface. The reference value is a reference point set in advance and indicates a capacitance value that should be detected by the sensor when the capacitive pen is not in contact with the screen. Thus, when the sensor reading of the capacitive pen falls near this reference value, it is considered that there is no or only very slight contact between the pen tip and the screen, which may trigger associated logic, such as a start timer, to determine whether the capacitive pen is in a non-use state. This reference value will typically be lower than the capacitance of the capacitive pen when in contact with the touch screen and will be slightly higher than when not in contact at all (hovering) in order to identify whether the capacitive pen is in a non-use state but still remains within the near field range of the touch screen. If the capacitance reading continues to fall below or equal to this reference value for a period of time and a preset timing condition is reached, the system will determine that the capacitance pen has been lowered.
It should be understood that the above-mentioned preset time period refers to a set time period for continuously counting time to determine whether the user has actually stopped using the capacitive pen after the capacitance value of the capacitive pen has fallen to the reference value. This length of time serves as a decision threshold to avoid misjudging that the user has dropped the capacitive pen due to a brief change in capacitance.
The preset duration is usually set to be a reasonable period of time that can occur after the user puts down the capacitive pen, and needs to be long enough to ensure that the touch screen action is not misjudged due to temporary hand movement or short pen leaving action, but cannot be too long, otherwise, the pen-down detection can be delayed, and the response speed and the user experience of the system are affected. The selection of this duration is often based on statistical analysis of the user's behavior and the actual usage scenario.
For example, if the device detects that the capacitance value of the capacitance pen has fallen below a reference value and has remained for a few seconds (the specific duration may be 1 second, 2 seconds, 5 seconds, etc., depending on the device design and use scenario), the device may consider that the user has put down the capacitance pen and take some action accordingly, such as automatically powering down the capacitance pen to save power, or informing the paired device (e.g., tablet, smartphone) to update the status of the capacitance pen.
Further, when the timing duration reaches the preset duration, the step further includes:
judging whether the capacitance pen moves or not through the gyroscope;
when the gyroscope moves, the capacitance pen is determined to be in a working state, and dormancy is not performed.
It should be noted that, when the time duration reaches the preset time duration and the capacitance value is lower than the reference value (indicating that the capacitive pen is not used), the device may determine whether the capacitive pen is still performing any form of movement through the gyroscope. If the gyroscope detects motion (i.e. detects a rotation or linear movement of the capacitive pen in space), this will indicate that the capacitive pen is actually still in use, even if the capacitance value is temporarily below the reference value. In this case, the system will infer that the user is simply temporarily stopping touching the screen, but still holding and possibly using a capacitive pen. Thus, the device does not enter a sleep state, maintaining the capacitive pen in an operational state in response to possible subsequent input actions by the user.
Correspondingly, when the timing duration reaches the preset duration, the step of recognizing that the user has put down the capacitance pen further comprises:
judging whether the capacitance pen moves or not through the gyroscope;
when the gyroscope does not move, the capacitance value of the capacitance pen is determined to be changed into an interference value;
these interference values are filtered out by automatic calibration and put into a sleep state.
It should be noted that if the gyroscope does not detect any movement, this means that the capacitive pen is stationary and the user has stopped using it. At this time, if variations in capacitance value occur, these variations can be considered to be non-user induced, but rather interference values caused by other external factors or intrinsic noise. The device may take steps to automatically calibrate to filter out these interference values. Changes in capacitance values that are not user manipulated can be identified and ignored by tracking a history of capacitance values and applying software algorithms. After confirming that the change of the capacitance value is interference and the gyroscope does not detect movement, the system finally puts the capacitance pen into a dormant state so as to reduce the power consumption and prolong the battery endurance.
It will be appreciated that such an approach may significantly improve capacitive pen standby time and enhance user experience as it reduces unnecessary activity due to misjudging that the user has put down the capacitive pen. At the same time, the automatic calibration of the disturbance value ensures that the capacitive pen can respond quickly when the user picks up and begins to use.
Referring to fig. 4, fig. 4 is a schematic flow chart of a third embodiment of the capacitive pen lifting detection method according to the present invention, and based on the first embodiment shown in fig. 2, the third embodiment of the capacitive pen lifting detection method according to the present invention is proposed.
In a third embodiment, the method further comprises:
Step S60: a magnetic attraction sensing channel is arranged on the magnetic attraction surface of the capacitance pen, and the state of the capacitance pen is judged by using the magnetic attraction sensing channel;
Step S70: when the state of the capacitance pen is that the capacitance pen is adsorbed on a metal material or a magnet, closing a capacitance sensing channel of the capacitance pen;
It should be noted that, whether the capacitive pen is being stored or adsorbed on a metal object or a magnet is discriminated by adding a magnetic attraction sensing channel on the capacitive pen. Therefore, the state judgment of the capacitance pen can be more accurate, when the capacitance pen is adsorbed on the magnetic surface, the capacitance sensing function of the capacitance pen is automatically closed, and the capacitance pen does not need to interact with compatible equipment, such as a magnetic groove on a frame of a tablet personal computer.
In a specific implementation, the magnetic induction element is integrated at a corresponding position of the capacitive pen, such as a magnetic attraction surface. This magnetic induction channel is able to detect the presence of a magnetic field. When the magnetic attraction sensing channel of the capacitance pen detects a strong enough magnetic force, the capacitance pen can be attached to a metal material or a magnet. After confirming this state (adsorption state) of the capacitance pen, the system automatically closes the capacitance sensing channel of the capacitance pen. This will stop the capacitive pen from signaling to the compatible device, reducing the possibility of erroneous inputs and reducing power consumption.
It will be appreciated that such an automatic closing mechanism not only facilitates the user, but also helps to prevent the device from consuming power when not necessary, thus effectively increasing the endurance of the capacitive pen. Such a design provides significant convenience in use for the capacitive pen and the device with which it is paired, and may also provide some automated functionality, such as automatically unlocking or launching a particular application, depending on the magnetic state if the device is equipped with corresponding management software.
Step S80: when the state of the capacitance pen is that the capacitance pen is not adsorbed on the metal material or the magnet, a capacitance sensing channel of the capacitance pen is started, and the monitoring of the capacitance value of the capacitance pen is recovered.
It should be noted that the magnetic attraction sensing channel in the capacitance pen continuously monitors the existence of the magnetic field. When the absence of the magnetic field is detected, this indicates that the capacitive pen has been removed from the attracted surface. Upon confirming that the capacitive stylus is not attracted to the magnetic surface, the system automatically opens the capacitive sensing channel. With the capacitive sensing channel opened, the capacitive pen can resume monitoring the capacitance value and interact with the compatible device in a normal mode.
It should be appreciated that the capacitive pen can intelligently determine its use status in this manner, thereby optimizing power management. When the user prepares to use the capacitance pen, the device automatically recognizes the operation requirement, restores to the active state, and can perform touch interaction of the screen at any time. This improves the user-friendliness of the capacitive pen and ensures responsiveness and efficiency of the device in use.
In addition, the capacitive sensing channel in this embodiment can also be used to continuously monitor its capacitance value, which reflects the interaction between the pen tip and the touch screen. When the capacitance value detected by the capacitance sensing channel does not conform to the normal operation mode, such as an unexpected surge or abrupt change, it will be identified as abnormal. Once abnormal fluctuation is detected, the system starts an intelligent calibration mechanism to automatically perform checksum adjustment. The system will analyze in real time in an attempt to identify whether the abnormal fluctuations are caused by external disturbances (e.g. electromagnetic interference, signal interference of other devices, etc.) or by contamination of the pen tip (e.g. oil, dust, etc.). Based on the results of the real-time analysis, the system may attempt to eliminate the cause of the abnormal fluctuations. If external interference or abnormal touch is confirmed, the system automatically adjusts the capacitance value, eliminates the interference, and ensures that the output capacitance value reflects the actual operation of the user. Through continuous monitoring and calibration, the capacitive pen can maintain accurate capacitance value and inductive performance, and provides accurate user interaction experience.
Further, in this embodiment, the capacitive pen includes a multi-segment pen body;
And each pen body is provided with a corresponding capacitance sensing channel.
It should be noted that capacitive pens using a multi-segment pen body design and multiple capacitive sensing channels can provide greater flexibility and accuracy.
It should be understood that referring to fig. 6, fig. 6 is a schematic structural diagram of a multi-channel capacitive pen according to the present invention. In fig. 6, the capacitive pen can be divided into three sections, and different capacitive sensing channels are respectively arranged, and the different channels cover the whole pen body basically, so that the user is ensured to have a change of capacitance value when holding the pen. The multichannel holding detection mechanism can sense different positions of the pen held by the user, so that different holding postures are analyzed. The system determines the pen-holding gesture by detecting which capacitive sensing channels have changed and wakes up or activates the capacitive pen accordingly. This process ensures that the capacitive pen can respond accordingly, no matter what way the user is holding, and is ready to execute the user's command.
It can be appreciated that by this design, the capacitive pen has excellent performance in various use environments and user habits, reduces operational restrictions, and enhances user experience.
In addition, the embodiment of the invention also provides a storage medium, wherein a capacitive pen lifting detection program is stored on the storage medium, and the capacitive pen lifting detection program realizes the steps of the capacitive pen lifting detection method when being executed by a processor.
In addition, referring to fig. 5, an embodiment of the present invention further provides a capacitive pen lifting detection device, where the capacitive pen lifting detection device includes:
a capacitance detection module 10 for detecting a capacitance value change of the capacitance pen;
A motion detection module 20 for detecting whether the capacitive pen moves through a gyroscope;
The pen lifting detection module 30 is configured to identify that the capacitive pen is in a pen lifting state when the capacitance change is greater than a preset error threshold and the capacitive pen moves.
The embodiment detects the capacitance value change of the capacitance pen; detecting whether the capacitance pen moves or not through a gyroscope; and when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves, the capacitance pen is considered to be in a pen lifting state. Because the embodiment combines two indexes of capacitance and physical movement, the detection accuracy is remarkably improved, so that the capacitive pen is prevented from being misjudged to be in an active state when the capacitive pen is not supposed to be active, and the capacitive pen has important significance in improving the energy efficiency of the capacitive pen and prolonging the service life of a battery of the capacitive pen.
Other embodiments or specific implementation manners of the capacitive pen lifting detection device of the present invention may refer to the above method embodiments, and are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the terms first, second, third, etc. do not denote any order, but rather the terms first, second, third, etc. are used to interpret the terms as names.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. read only memory mirror (Read Only Memory image, ROM)/random access memory (Random Access Memory, RAM), magnetic disk, optical disk), comprising instructions for causing an end user device (which may be a mobile phone, a computer, a server, an air conditioner, or a network user device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A capacitive pen-lifting detection method, the method comprising:
detecting a capacitance value change of the capacitance pen;
detecting whether the capacitance pen moves or not through a gyroscope;
and when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves, the capacitance pen is considered to be in a pen lifting state.
2. The capacitive pen-up detection method of claim 1, wherein after detecting the change in the capacitance value of the capacitive pen, further comprising:
starting timing when the capacitance value continuously drops to a reference value;
and when the timing duration reaches the preset duration, the user is considered to have put down the capacitance pen.
3. The capacitive pen-up detection method according to claim 2, wherein when the time duration reaches a preset time duration, the method further comprises the steps of:
judging whether the capacitance pen moves or not through the gyroscope;
when the gyroscope moves, the capacitance pen is determined to be in a working state, and dormancy is not performed.
4. The capacitive pen-up detection method according to claim 2, wherein when the time duration reaches a preset time duration, the method further comprises the steps of:
judging whether the capacitance pen moves or not through the gyroscope;
when the gyroscope does not move, the capacitance value of the capacitance pen is determined to be changed into an interference value;
these interference values are filtered out by automatic calibration and put into a sleep state.
5. The capacitive pen-hold detection method of claim 1, further comprising:
a magnetic attraction sensing channel is arranged on the magnetic attraction surface of the capacitance pen, and the state of the capacitance pen is judged by using the magnetic attraction sensing channel;
when the state of the capacitance pen is that the capacitance pen is adsorbed on a metal material or a magnet, a capacitance sensing channel of the capacitance pen is closed.
6. The method for detecting the pen-holding state of a capacitive pen according to claim 5, wherein when the capacitive pen is in a state that the capacitive pen is adsorbed on a metal material or a magnet, the method further comprises, after closing the capacitive sensing channel of the capacitive pen:
when the state of the capacitance pen is that the capacitance pen is not adsorbed on the metal material or the magnet, a capacitance sensing channel of the capacitance pen is started, and the monitoring of the capacitance value of the capacitance pen is recovered.
7. The capacitive pen-up detection method of claim 1, wherein the capacitive pen comprises a multi-segment pen body;
And each pen body is provided with a corresponding capacitance sensing channel.
8. A capacitive pen-handling detection device, the device comprising:
the capacitance detection module is used for detecting the capacitance value change of the capacitance pen;
the motion detection module is used for detecting whether the capacitance pen moves or not through a gyroscope;
and the pen lifting detection module is used for recognizing that the capacitance pen is in a pen lifting state when the capacitance value change is larger than a preset error threshold value and the capacitance pen moves.
9. A stylus, the stylus comprising: a memory, a processor and a capacitive pen-up detection program stored on the memory and operable on the processor, the capacitive pen-up detection program being configured to implement the steps of the capacitive pen-up detection method of any one of claims 1 to 7.
10. A storage medium, wherein a capacitive pen-up detection program is stored on the storage medium, and the capacitive pen-up detection program, when executed by a processor, implements the steps of the capacitive pen-up detection method according to any one of claims 1 to 7.
CN202311837835.8A 2023-12-28 2023-12-28 Capacitive pen lifting detection method and device, touch pen and storage medium Pending CN117971071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311837835.8A CN117971071A (en) 2023-12-28 2023-12-28 Capacitive pen lifting detection method and device, touch pen and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311837835.8A CN117971071A (en) 2023-12-28 2023-12-28 Capacitive pen lifting detection method and device, touch pen and storage medium

Publications (1)

Publication Number Publication Date
CN117971071A true CN117971071A (en) 2024-05-03

Family

ID=90844970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311837835.8A Pending CN117971071A (en) 2023-12-28 2023-12-28 Capacitive pen lifting detection method and device, touch pen and storage medium

Country Status (1)

Country Link
CN (1) CN117971071A (en)

Similar Documents

Publication Publication Date Title
US9116571B2 (en) Method and system of data input for an electronic device equipped with a touch screen
KR102366112B1 (en) Finger tracking
US9513703B2 (en) Gesture-based waking and control system for wearable devices
EP2703945B1 (en) An apparatus and method for waking up a processor
EP2652577B1 (en) Method and apparatus for activating a function of an electronic device
US8464183B2 (en) System and method for distinguishing multimodal commands directed at a machine from ambient human communications
US20160085360A1 (en) Method for controlling state of touch screen, touch screen, and portable touch terminal
US20150058651A1 (en) Method and apparatus for saving battery of portable terminal
CN104007882B (en) High-accuracy screen touch response method and device
US20150149801A1 (en) Complex wakeup gesture framework
KR102652844B1 (en) Method for detecting missing finger and fingerprint detection device
US20080225018A1 (en) Handheld Electronic Processing Apparatus and a Method of Operating the Same
CN102999291A (en) Method for waking up mobile terminal in standby state
CN104603724A (en) Scalable touchscreen processing with realtime role negotiation among asymmetric processing cores
US11614790B2 (en) Electronic pen, method and device for controlling electronic pen, and computer-readable storage medium
CN102968256A (en) Awakening method and system for touch screen hand-holding device after entering dormancy mode
CN104182145A (en) Method and device for preventing faulty operation of touch screen and mobile equipment
US10120497B1 (en) Reducing power consumption in a mobile stylus system
CN108845727B (en) Mutual capacitance type touch screen based awakening method and device
CN104077041A (en) Page turning method, device and terminal
CN114063802B (en) Touch detection method, device, storage medium, microprocessor and touch control device
US20150095678A1 (en) Movement-based state modification
CN117971071A (en) Capacitive pen lifting detection method and device, touch pen and storage medium
CN110958345B (en) Method and device for detecting rear cover of mobile terminal and computer readable storage medium
US11662839B1 (en) Information handling system stylus with power management through acceleration and sound context

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination