CN114356121B - Active pen use discriminating method and apparatus, active pen and computer storage medium - Google Patents

Active pen use discriminating method and apparatus, active pen and computer storage medium Download PDF

Info

Publication number
CN114356121B
CN114356121B CN202111487721.6A CN202111487721A CN114356121B CN 114356121 B CN114356121 B CN 114356121B CN 202111487721 A CN202111487721 A CN 202111487721A CN 114356121 B CN114356121 B CN 114356121B
Authority
CN
China
Prior art keywords
active pen
end signal
screen end
preset
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.)
Active
Application number
CN202111487721.6A
Other languages
Chinese (zh)
Other versions
CN114356121A (en
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 CN202111487721.6A priority Critical patent/CN114356121B/en
Publication of CN114356121A publication Critical patent/CN114356121A/en
Application granted granted Critical
Publication of CN114356121B publication Critical patent/CN114356121B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/325Power saving in peripheral device
    • 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/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • 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/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention discloses a method, a device, an active pen and a computer storage medium for judging the use of the active pen, wherein after the active pen is started, the user does not use the intention to enter a first state according to a screen end signal, acceleration and nib pressure, the use intention is continuously judged according to the acceleration in the first state, and a signal detection function is started within a period of time after the specific acceleration is detected, so that the use intention of the active pen can be accurately and not missed at any moment of the user, and the accuracy of the use intention of the active pen is improved; if the screen signal is not detected in the time period, acceleration and nib pressure are not paid attention to in a future period, so that power consumption can be saved as much as possible on the premise of normal functions, the situation that unnecessary power consumption is generated due to continuous transmission of walking external shake to the active pen is reasonably avoided, and the judgment accuracy of the using intention of the active pen is comprehensively improved.

Description

Active pen use discriminating method and apparatus, active pen and computer storage medium
Technical Field
The present invention relates to the field of active pen technologies, and in particular, to an active pen usage determining method and apparatus, an active pen, and a computer readable storage medium.
Background
With the rapid development of active pen technology, active pen products are also increasingly used for people's work and life. The active pen is a low-power consumption consumer electronic, the requirement on power consumption can be severe, and research and development staff often consider a method for saving power consumption as much as possible, so that the aim of standby for a longer time is fulfilled. In order to achieve the purpose that a person works when using the active pen product, the person enters a low-power consumption mode when not using the active pen product, the main stream is to detect acceleration by adopting an accelerometer, when the acceleration is larger than a certain threshold value, the person is regarded as waking up the active pen to start working when using the active pen, and when the acceleration is continuously lower than the certain threshold value and is continuously for a period of time, the person is regarded as not using the active pen, and the active pen enters the low-power consumption mode. The method for judging whether the person is using the active pen by detecting whether the acceleration is larger than a certain threshold value has low accuracy, and it is very difficult to actually judge that the intention of the person is just the acceleration.
For example, in the patent CN111142958A, "active pen sleep wake-up method, apparatus, device and readable storage medium", it is disclosed to use acceleration and/or nib pressure to determine the switch time of the active pen from the sleep mode of turning off the screen signal detection module to the wake-up mode of turning on the screen signal detection module, and then use the screen signal to determine the switch time of the active pen from the wake-up mode to the working mode. Therefore, the existing determination mode of the using intention of the active pen is still inaccurate.
Disclosure of Invention
The invention mainly aims to provide an active pen use judging method, an active pen use judging device, an active pen and a computer readable storage medium, and aims to solve the technical problem of improving the accuracy of judging that a user has an active pen use intention.
In order to achieve the above object, the present invention provides an active pen use discriminating method, including:
judging whether the active pen has specific acceleration or not when the active pen is in a first state of closing a screen end signal detection module, wherein the first state is a state that the active pen continuously does not detect nib pressure, a screen end signal sent by screen equipment and the specific acceleration in a preset first duration;
if yes, continuously starting the screen end signal detection module within a preset second duration after the specific acceleration is detected;
judging whether the active pen detects the screen end signal within the preset second duration based on the screen end signal detection module;
if the screen end signal is not detected, the screen end signal detection module is closed, and the screen end signal detection module is switched to an anti-interference mode which needs to be continuously preset for a third time, wherein the specific acceleration and the nib pressure are disregarded by the active pen in the anti-interference mode.
Optionally, after the step of determining, based on the screen-end signal detection module, whether the active pen detects the screen-end signal within the preset second duration, the method further includes:
and if the screen end signal is detected, switching the active pen to a second state of opening the screen end signal detection module by default.
Optionally, after the step of switching the active pen to the second state of turning on the screen-end signal detection module by default, the method further includes:
judging whether the specific acceleration, the nib pressure and/or the screen end signal are detected within a preset fourth time period after the active pen enters the second state;
and if the active pen detects the screen end signal within the preset fourth time period, but does not detect the nib pressure and the specific acceleration, the second state is maintained.
Optionally, after the step of determining whether the specific acceleration, the nib pressure and/or the screen end signal are detected within a preset fourth time period after the active pen enters the second state, the method further includes:
and if the driving pen does not detect the screen end signal and the pen point pressure within the preset fourth time period, but detects the specific acceleration, the screen end signal detection module is kept on.
Optionally, after the step of determining whether the active pen has a specific acceleration, the method further includes:
if not, judging whether the active pen detects the pen point pressure meeting the preset pressure condition;
if the nib pressure meeting the preset pressure condition is detected, the screen end signal detection module is closed to switch to the first state.
Optionally, the step of determining whether the active pen detects a tip pressure that meets a preset pressure condition includes:
judging whether the active pen detects the nib pressure of which the change amplitude does not exceed a preset amplitude threshold;
if yes, judging that the active pen detects the pen point pressure meeting the preset pressure condition;
if not, judging that the active pen does not detect the nib pressure meeting the preset pressure condition.
Optionally, before the step of determining whether the active pen has a specific acceleration when the active pen is in the first state of closing the screen end signal detection module, the method further includes:
continuously starting the screen end signal detection module within a preset first time period after the active pen is started, and judging whether the screen end signal, specific acceleration and/or pen point pressure are detected by the active pen within the preset first time period;
and if the screen end signal, the specific acceleration and the pen point pressure are not detected, closing the screen end signal detection module to enter the first state.
In addition, in order to achieve the above object, the present invention also provides an active pen use discriminating apparatus, including:
the acceleration judging module is used for judging whether the active pen has specific acceleration or not when the active pen is in a first state of closing the screen end signal detecting module, wherein the first state is a state that the active pen continuously does not detect the nib pressure, the screen end signal sent by the screen equipment and the specific acceleration in a preset first duration;
the signal detection starting module is used for continuously starting the screen end signal detection module within a preset second duration after the specific acceleration is detected if the specific acceleration is detected;
the screen end signal detection module is used for judging whether the active pen detects the screen end signal within the preset second duration based on the screen end signal detection module;
and the signal detection closing module is used for closing the screen end signal detection module if the screen end signal is not detected, and switching to an anti-interference mode which needs to be continuously preset for a third time, wherein the specific acceleration and the nib pressure are disregarded by the active pen in the anti-interference mode.
In addition, to achieve the above object, the present invention also provides an active pen including: the device comprises a memory, a processor and an active pen use judging program which is stored in the memory and can run on the processor, wherein the active pen use judging program realizes the steps of the active pen use judging method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon an active pen use determination program which, when executed by a processor, implements the steps of the active pen use determination method described above.
In addition, to achieve the above object, the present invention also provides a computer program product, including a computer program, which when executed by a processor, implements the steps of the active pen use discriminating method as described above.
According to the invention, after the active pen is started, the user's no-use intention is judged through the screen end signal, the specific acceleration and the pen point pressure together so as to enter the first state, so that the situation of no-use intention can be accurately judged; the use intention is further judged according to the acceleration in the first state, and the screen signal detection function is started within a period of time after the specific acceleration is detected, so that the use intention of the active pen can be accurately and not missed at any moment of a user, and the accuracy of the use intention of the active pen is improved; if the screen signal is not detected in the time period, the acceleration and the nib pressure are not concerned in a future period, so that the power consumption can be saved as much as possible on the premise of normal functions, the situation that the acceleration is continuously detected due to continuous transmission of the external shaking of walking to the active pen and unnecessary power consumption is generated is reasonably avoided, the judgment accuracy of the use intention of the active pen is comprehensively improved, and the technical problem of how to improve the accuracy of judging that the user has the use intention of the active pen is solved.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of an active pen usage determining method according to the present invention;
fig. 3 is a schematic diagram of functional modules of the active pen use discriminating apparatus of 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.
In order to achieve the purpose that a person works when using the active pen product, the person enters a low-power consumption mode when not using the active pen product, the main stream is to detect acceleration by adopting an accelerometer, when the acceleration is larger than a certain threshold value, the person is regarded as waking up the active pen to start working when using the active pen, and when the acceleration is continuously lower than the certain threshold value and is continuously for a period of time, the person is regarded as not using the active pen, and the active pen enters the low-power consumption mode. The method for judging whether the person is using the active pen by detecting whether the acceleration is larger than a certain threshold value has low accuracy, and it is very difficult to actually judge that the intention of the person is just the acceleration.
For example, in the patent CN111142958A, "active pen sleep wake-up method, apparatus, device and readable storage medium", it is disclosed to use acceleration and/or nib pressure to determine the switch time of the active pen from the sleep mode of turning off the screen signal detection module to the wake-up mode of turning on the screen signal detection module, and then use the screen signal to determine the switch time of the active pen from the wake-up mode to the working mode. Therefore, the existing determination mode of the using intention of the active pen is still inaccurate.
In order to solve the above problems, the present invention provides a method for judging the usage of an active pen, in which after the active pen is started, a user's no-usage intention is judged by a screen end signal, a specific acceleration and a pen tip pressure together, so as to enter a first state, so that the situation of no-usage intention can be accurately judged; the use intention is further judged according to the acceleration in the first state, and the screen signal detection function is started within a period of time after the specific acceleration is detected, so that the use intention of the active pen can be accurately and not missed at any moment of a user, and the accuracy of the use intention of the active pen is improved; if the screen signal is not detected in the time period, the acceleration and the nib pressure are not concerned in a future period, so that the power consumption can be saved as much as possible on the premise of normal functions, the situation that the active pen is placed in a knapsack scene, the acceleration is continuously detected due to continuous transmission of the external shaking of walking to the active pen, and unnecessary power consumption is generated is reasonably avoided, and the judgment accuracy of the use intention of the active pen is comprehensively improved.
Referring to fig. 1, fig. 1 is a schematic device structure of a hardware running environment according to an embodiment of the present invention.
As shown in fig. 1, the active pen use discriminating apparatus may include: a processor 1001, such as a CPU, a user interface 1003, a network interface 1004, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an active pen use discriminating program may be included in a memory 1005 as one type of computer storage medium.
In the 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 a client (programmer end) and communicating data with the client; and the processor 1001 may be used to call an active pen use discrimination program stored in the memory 1005 and perform operations in the active pen use discrimination method described below.
Based on the hardware structure, the embodiment of the method for judging the use of the active pen is provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of an active pen usage discriminating method according to the present invention. The active pen use discriminating method comprises the following steps:
step S10, judging whether the active pen has specific acceleration or not when the active pen is in a first state of closing a screen end signal detection module, wherein the first state is a state that the active pen continuously does not detect nib pressure, a screen end signal sent by screen equipment and the specific acceleration in a preset first duration;
in this embodiment, the invention is applied to an active pen, i.e., an active capacitive pen. The capacitive pen is made of conductive materials and used for touch capacitive screens to complete man-machine conversation, and is an auxiliary device for simulating human bodies (usually fingers) to complete man-machine conversation by using conductive materials. The on-screen signal detection module is used for receiving an external signal and analyzing whether the external signal is a signal sent by the on-screen device. If the active pen is continuously started under the condition that the user does not use the active pen for a long time, the power consumption of the active pen can be greatly increased, so that the user needs to accurately judge the use intention of the active pen, the active pen is started only when necessary, and the active pen is closed in the rest time to save the power consumption. The specific acceleration refers to that the acceleration of the active pen exceeds a preset acceleration threshold value, and the threshold value can be flexibly set according to actual conditions. The first state refers to a state in which it is preliminarily determined that the user does not have a high intention to use the active pen, and in the first state, the screen end signal detection module is turned off by default, but the capability of detecting a specific acceleration and a pen point pressure is still provided (the energy consumption of detecting the two items is not high). The preset first time length refers to a time length for fixedly starting the screen end signal detection module after the active pen is started, and the time length can be flexibly set according to actual conditions, but is not suitable to be set too long, and the embodiment is not particularly limited.
Because the user can have one or more of three conditions of pen point pressure, screen signal and acceleration change when using the active pen to write, but can have one or more of the three conditions for various reasons when not using the active pen to write, but the three conditions do not exist simultaneously, when the active pen can not detect any one of the three conditions for a long time, the user can judge that the user does not have the intention to use at the moment, and the signal detection module can be closed first to enter the first state, so that the energy consumption is saved as much as possible. For example, the current scenario is: the user needs to use the active pen but leave the active pen temporarily out of the screen range. At this time, although there is no screen end signal and no nib pressure, there may be acceleration variation, if the user's intention to use in this scene is judged only by the screen end signal and nib pressure, that is, the signal detection module is turned off only by the screen end signal and nib pressure not being detected, misjudgment will occur, so that the user temporarily leaves the screen range of the active pen, and returns the active pen to the screen end for writing.
And after the active pen enters the first state, although the intention judgment can not be preferentially carried out according to the screen end signal, the pilot judgment can be carried out by utilizing the acceleration. The active pen further detects whether the acceleration of the active pen is greater than a preset acceleration threshold in the first state.
Step S20, if yes, continuously starting the screen end signal detection module within a preset second duration after the specific acceleration is detected;
in this embodiment, if it is detected whether the acceleration of the active pen in the first state is greater than the preset acceleration threshold, a wake-up is triggered and signal reception is briefly turned on. The preset second duration refers to a duration for one wake-up, which is generally set to be shorter than the preset first duration, and specifically can be flexibly set according to practical situations.
The short-time wake-up mode needs to be set under the condition of no screen signal and acceleration, so that even if the active pen is in the condition of no screen signal and acceleration, the user still has the use intention of the active pen, for example, the user takes the active pen from elsewhere and prepares to write by using the active pen, at the moment, the active pen does not reach the screen range and has no nib pressure, but the user has the use intention, and therefore, the signal detection can be started briefly at the moment to detect whether the screen signal exists or not.
The condition of using the nib pressure is not considered for judgment because in actual cases there is also such a scene: the user does not use the active pen, but rests it in the barrel. In this scenario, there is no tip signal and acceleration, but there is tip pressure, i.e., there is no user intention in the case of only tip pressure in three conditions, so the signal detection cannot be turned on based on the presence of only tip pressure.
Step S30, judging whether the active pen detects the screen end signal within the preset second duration based on the screen end signal detection module;
and S40, if the screen end signal is not detected, closing the screen end signal detection module, and switching to an anti-interference mode which needs to be continuously preset for a third time, wherein the specific acceleration and the nib pressure are disregarded by the active pen in the anti-interference mode.
In this embodiment, the active pen determines whether the screen end signal can be detected within a preset second duration based on the screen end signal detection module that is currently temporarily turned on. For example, if the second duration is preset to be 1 minute, the active pen triggers a short-time wake-up at nine am, and then it is determined whether a screen end signal is received within one minute from nine am to nine am. If the screen end signal is not received, the user may just replace the active pen for placement in a place, or the active pen is placed in a knapsack at the moment, because the acceleration and the nib pressure are generated when the user walks, and no writing intention exists, the short-time wake-up of this time is finished, the screen end signal detection module is closed at the end of nine points of zero and one minute, and in order to prevent frequent interference shake under the knapsack situation, the anti-interference mode is performed for a period of time after nine points of zero and one minute. In this mode, the active pen is not affected by acceleration and nib pressure, i.e., acceleration and/or nib pressure are detected, nor is signal detection turned on. The preset third period of time may be flexibly set according to practical situations, but is not set too short in consideration of saving power consumption, and is generally set longer than the preset second period of time.
At the end of the primary tamper mode, the active pen may enter the normal first state again, and the process returns to step S10 to continue observing the specific acceleration.
The embodiment provides a method for judging the use of an active pen, which judges that a user does not use an intention through a screen end signal, specific acceleration and nib pressure together after the active pen is started so as to enter a first state, so that the situation of no use intention can be accurately judged; the use intention is further judged according to the acceleration in the first state, and the screen signal detection function is started within a period of time after the specific acceleration is detected, so that the use intention of the active pen can be accurately and not missed at any moment of a user, and the accuracy of the use intention of the active pen is improved; if the screen signal is not detected in the time period, the acceleration and the nib pressure are not concerned in a future period, so that the power consumption can be saved as much as possible on the premise of normal functions, the situation that the acceleration is continuously detected due to continuous transmission of the external shaking of walking to the active pen and unnecessary power consumption is generated is reasonably avoided, the judgment accuracy of the use intention of the active pen is comprehensively improved, and the technical problem of how to improve the accuracy of judging that the user has the use intention of the active pen is solved.
Further, based on the first embodiment shown in fig. 2, a second embodiment of the active pen use discriminating method of the present invention is proposed. In this embodiment, after step S30, the method further includes:
and step A1, if the screen end signal is detected, switching the active pen to a second state of opening the screen end signal detection module by default.
In this embodiment, if the active pen detects the screen end signal in any short-time wake-up mode, it is indicated that the situation that the active pen is placed in the backpack and is disturbed can be eliminated, the user currently picks up the active pen and places the active pen in the screen range, and when the current short-time wake-up mode is released, the active pen is switched to a second state of continuously starting the screen end signal detection module, that is, a normal writing state, so that the user can write by using the active pen normally, and the writing experience of the user cannot be affected.
Further, after step A1, the method further includes:
a2, judging whether the specific acceleration, the nib pressure and/or the screen end signal are detected within a preset fourth time period after the active pen enters the second state;
and step A3, if the active pen detects the screen end signal within the preset fourth time period, but does not detect the nib pressure and the specific acceleration, the second state is maintained.
In this embodiment, the preset fourth duration is a duration for the active pen to fixedly turn on the screen end signal detection module after entering the second state, which is generally set to be longer than the preset second duration, and may be the same as the preset first duration. The following situations may exist due to actual use: the user uses the active pen but hangs it from the on-screen stagnant thinking problem. That is, in the second state, no nib pressure, no specific acceleration, but a screen signal occurs. At this time, the user still has the intention of using, so the signal detection module can not be turned off, but is kept on.
The embodiment is provided with the following steps: in the second state, when the screen signal is detected but the pressure and acceleration change of the pen point are not detected, the rule of using the active pen is still considered, so that the misjudgment condition of using the active pen but suspending the pen on the screen to stop thinking can be avoided, and the judgment accuracy of the using intention is improved.
In addition, as an implementation manner, the preset fifth time period may be continuously started after the preset fourth time period, and if the screen signal is not detected within the preset fifth time period after the preset fifth time period is continuously started, the first state may be switched to so as to save energy consumption.
This processing mode is set because there may be the following cases in actual use: after the user uses the active pen for a period of time, the user stops the active pen, but stands on the screen in the working state. That is, the condition that the pen point pressure is absent for a long time and the pen point pressure is absent after the pen point pressure enters the second state, but the pen point pressure is absent is provided, so that if the acceleration or the pen point pressure cannot be detected within a period of time after the pen point pressure enters the second state, only the pen point signal is provided, the signal detection needs to be kept for a period of time to be started, and if the acceleration or the pen point pressure is still not detected after the time, the fact that the user temporarily does not use the pen point pressure is judged at the moment, and the signal detection module can be temporarily closed to be switched to the first state for saving energy consumption, and then is opened after the acceleration is detected later. If the scene is not identified, the signal detection module is always started under the condition that only the screen signal exists, so that unnecessary energy consumption of the active pen can be increased.
The embodiment is provided with the following steps: when the screen signal is detected but the pressure and acceleration change of the pen point are not detected in the first state, if the rule that the active pen is not used is considered to be long, the misjudgment condition that the active pen is used to be placed on the screen in the working state can be avoided, and the judgment accuracy of the using intention is improved.
Further, after step A1, the method further includes:
and step A4, if the active pen does not detect the screen end signal and the pen point pressure within the preset fourth time period, but detects the specific acceleration, the screen end signal detection module is kept on.
In this embodiment, since during actual use, it may happen that the user needs to use the active pen, but the active pen is temporarily moved out of the screen range. Although the screen end signal is detected previously, the screen end signal is not detected when the pen leaves, the pen point pressure is not detected, and acceleration change possibly exists, so that the user still keeps the use intention under the situation, and the screen end signal detection module needs to be kept on to ensure the normal writing function of the active pen. If the screen end signal detection module is closed at this time, misjudgment occurs, so that the user temporarily leaves the screen range of the active pen and returns the active pen to the screen end for writing, and the writing experience is greatly influenced because the active pen is closed for receiving signals at this time and cannot write normally.
The embodiment is provided with the following steps: when the screen signal is in the second state, if the acceleration exists, the rule of using the active pen is continuously maintained even if the screen signal is not detected, so that the misjudgment condition that the active pen is used but the pen temporarily leaves the screen range can be avoided, and the judgment accuracy of the using intention is improved.
Further, based on the above-described first embodiment, a third embodiment of the active pen use discriminating method of the present invention is proposed. In this embodiment, after step S10, the method further includes:
step B1, if not, judging whether the active pen detects the nib pressure meeting the preset pressure condition;
and step B2, if the nib pressure meeting the preset pressure condition is detected, closing the screen end signal detection module to switch to the first state.
In this embodiment, after the active pen enters the first state, if the specific acceleration is not detected for a long time, even if only the stable pen tip pressure is detected, the active pen can be disregarded, and the specific acceleration is continuously detected while maintaining the first state. There may thus be a scenario: the user does not use the active pen, but rests it in the barrel. In this scenario, there is no tip signal and acceleration, but there is a stable tip pressure, i.e. no user intention to use if there is only tip pressure in the three conditions in the first state, so the signal detection cannot be turned on based on the presence of only tip pressure.
Further, the step of determining in the step B1 whether the active pen detects the nib pressure satisfying the preset pressure condition includes:
step B11, judging whether the active pen detects the nib pressure with the change amplitude not exceeding a preset amplitude threshold;
step B12, if yes, judging that the active pen detects the pen point pressure meeting the preset pressure condition;
and step B13, if not, judging that the active pen does not detect the nib pressure meeting the preset pressure condition.
In this embodiment, the nib pressure satisfying the preset pressure condition refers to a stable nib pressure, and specifically, whether the nib pressure is stable or not can be determined by a preset amplitude threshold. If the variation amplitude between the nib pressures acquired at adjacent sampling moments does not exceed the preset amplitude threshold, the nib pressure is indicated to be stable, otherwise, the nib pressure is not stable. The preset amplitude threshold is generally set to be zero or a value close to zero, and can be flexibly set according to actual conditions.
The embodiment is provided with the following steps: when the screen signal and the acceleration change cannot be detected for a period of time in the first state, if the pen point has pressure but keeps stable, the rule of 'not using an active pen' is considered, so that the misjudgment of the 'pen container situation' can be avoided, and the judgment accuracy of the using intention is improved.
Further, before step S10, the method further includes:
step S01, continuously starting the screen end signal detection module within a preset first time period after the active pen is started, and judging whether the screen end signal, specific acceleration and/or pen point pressure are detected by the active pen within the preset first time period;
and step S02, if the screen end signal, the specific acceleration and the nib pressure are not detected, closing the screen end signal detection module to enter the first state.
In this embodiment, when the user uses the active pen to write, the active pen needs to be started first, so that the possibility that the user has a use intention at the start time of the active pen is high, the start signal detection needs to be fixed within a period of time after the start, and the user may have one or more of three conditions including pen point pressure, screen signal and acceleration change during the use of the active pen, but when the user does not use the active pen to write, the three conditions may have one or more of the three conditions for various reasons, but the three conditions do not exist simultaneously, so that when the active pen cannot detect any one of the three conditions for a continuous period of time, the user can judge that the user does not have the use intention at the moment, and the signal detection module can be turned off first to enter the first state, so that energy consumption is saved as much as possible. For example, the current scenario is: the user needs to use the active pen but leave the active pen temporarily out of the screen range. At this time, although there is no screen end signal and no nib pressure, there may be acceleration variation, if the user's intention to use in this scene is judged only by the screen end signal and nib pressure, that is, the signal detection module is turned off only by the screen end signal and nib pressure not being detected, misjudgment will occur, so that the user temporarily leaves the screen range of the active pen, and returns the active pen to the screen end for writing. Similarly, if the specific acceleration, the pen point pressure and the screen signal are detected within the first time period, the user is indicated to have the use intention, and the second state is kept.
The embodiment is provided with the following steps: the rule of "not using active pen" is considered when the screen signal is not detected and acceleration and pressure change are not generated for a period of time, so that the situation that the active pen is used but the pen temporarily leaves the screen range and is misjudged as "no use intention" can be avoided, the situation that the active pen is not used and is stationary on a desktop "can be identified, and the judgment accuracy of the use intention is improved.
As shown in fig. 3, the present invention further provides an active pen use discriminating apparatus, including:
the acceleration judging module 10 is configured to judge whether the active pen has a specific acceleration when the active pen is in a first state of closing the screen end signal detecting module, where the first state is a state that the active pen continuously does not detect the nib pressure, the screen end signal sent by the screen device, and the specific acceleration within a preset first duration;
the signal detection starting module 20 is configured to continuously start the screen end signal detection module within a preset second duration after the specific acceleration is detected if the specific acceleration is detected;
the screen end signal detection module 30 is configured to determine, based on the screen end signal detection module, whether the active pen detects the screen end signal within the preset second duration;
and the signal detection closing module 40 is configured to close the screen end signal detection module if the screen end signal is not detected, and switch to an anti-interference mode that needs to be continuously preset for a third duration once, where the specific acceleration and the nib pressure are disregarded by the active pen in the anti-interference mode.
Optionally, the active pen use discriminating device further includes:
and the second state switching module is used for switching the active pen to a second state of opening the screen end signal detection module by default if the screen end signal is detected.
Optionally, the active pen use discriminating device further includes:
the fourth time length detection module is used for judging whether the specific acceleration, the nib pressure and/or the screen end signal are detected in a preset fourth time length after the active pen enters the second state;
and the second state maintaining module is used for maintaining the second state if the active pen detects the screen end signal within the preset fourth time period but does not detect the nib pressure and the specific acceleration.
Optionally, the active pen use discriminating device further includes:
and the signal detection and holding module is used for keeping the screen end signal detection module on if the active pen does not detect the screen end signal and the pen point pressure within the preset fourth time period but detects the specific acceleration.
Optionally, the active pen use discriminating device further includes:
the nib pressure detection module is used for judging whether the active pen detects nib pressure meeting the preset pressure condition or not if not;
and the first state switching module is used for closing the screen end signal detection module to switch to the first state if the nib pressure meeting the preset pressure condition is detected.
Optionally, the nib pressure detection module is further configured to:
judging whether the active pen detects the nib pressure of which the change amplitude does not exceed a preset amplitude threshold;
if yes, judging that the active pen detects the pen point pressure meeting the preset pressure condition;
if not, judging that the active pen does not detect the nib pressure meeting the preset pressure condition.
Optionally, the active pen use discriminating device further includes:
the first time length detection module is used for continuously starting the screen end signal detection module within a preset first time length after the active pen is started, and judging whether the screen end signal, the specific acceleration and/or the pen point pressure are detected by the active pen within the preset first time length;
and the first state entering module is used for closing the screen end signal detecting module to enter the first state if the screen end signal, the specific acceleration and the nib pressure are not detected.
The invention also provides an active pen.
The active pen comprises a processor, a memory and an active pen use judging program which is stored in the memory and can run on the processor, wherein the steps of the active pen use judging method are realized when the active pen use judging program is executed by the processor.
The method implemented when the active pen use determination program is executed may refer to various embodiments of the active pen use determination method of the present invention, which are not described herein.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention stores an active pen use determination program which, when executed by a processor, implements the steps of the active pen use determination method described above.
The method implemented when the active pen use determination program is executed may refer to various embodiments of the active pen use determination method according to the present invention, which are not described herein.
The invention also provides a computer program product comprising a computer program which when executed by a processor implements the steps of the active pen use discriminating method as described above.
The method implemented when the computer program is executed may refer to various embodiments of the active pen use determination method of the present invention, which 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.
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. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server or a network 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. The method for judging the use of the active pen is characterized by comprising the following steps of:
judging whether the active pen has specific acceleration or not when the active pen is in a first state of closing a screen end signal detection module, wherein the first state is a state that the active pen continuously does not detect nib pressure, a screen end signal sent by screen equipment and the specific acceleration in a preset first duration;
if yes, continuously starting the screen end signal detection module within a preset second duration after the specific acceleration is detected;
judging whether the active pen detects the screen end signal within the preset second duration based on the screen end signal detection module;
if the screen end signal is not detected, the screen end signal detection module is closed, and the screen end signal detection module is switched to an anti-interference mode which needs to be continuously preset for a third time, wherein the specific acceleration and the nib pressure are disregarded by the active pen in the anti-interference mode.
2. The method for discriminating use of an active pen according to claim 1 wherein said step of determining whether said active pen detects said on-screen signal within said preset second period of time based on said on-screen signal detection module further comprises:
and if the screen end signal is detected, switching the active pen to a second state of opening the screen end signal detection module by default.
3. The method for determining whether the active pen is used according to claim 2, further comprising, after the step of switching the active pen to the second state in which the on-screen signal detection module is turned on by default:
judging whether the specific acceleration, the nib pressure and/or the screen end signal are detected within a preset fourth time period after the active pen enters the second state;
and if the active pen detects the screen end signal within the preset fourth time period, but does not detect the nib pressure and the specific acceleration, the second state is maintained.
4. The method according to claim 2, wherein after the step of determining whether the specific acceleration, the pen tip pressure, and/or the screen end signal are detected within a preset fourth time period from the entry of the active pen into the second state, the method further comprises:
and if the driving pen does not detect the screen end signal and the pen point pressure within the preset fourth time period, but detects the specific acceleration, the screen end signal detection module is kept on.
5. The active pen use determination method according to claim 1, wherein after the step of determining whether the active pen has a specific acceleration, further comprising:
if not, judging whether the active pen detects the pen point pressure meeting the preset pressure condition;
if the nib pressure meeting the preset pressure condition is detected, the screen end signal detection module is closed to switch to the first state.
6. The active pen use determination method according to claim 5, wherein the step of determining whether the active pen detects a tip pressure satisfying a preset pressure condition comprises:
judging whether the active pen detects the nib pressure of which the change amplitude does not exceed a preset amplitude threshold;
if yes, judging that the active pen detects the pen point pressure meeting the preset pressure condition;
if not, judging that the active pen does not detect the nib pressure meeting the preset pressure condition.
7. The method for discriminating use of an active pen according to any one of claims 1-6, wherein before said step of determining whether said active pen has a specific acceleration when said active pen is in a first state in which said on-screen signal detection module is turned off, further comprising:
continuously starting the screen end signal detection module within a preset first time period after the active pen is started, and judging whether the screen end signal, specific acceleration and/or pen point pressure are detected by the active pen within the preset first time period;
and if the screen end signal, the specific acceleration and the pen point pressure are not detected, closing the screen end signal detection module to enter the first state.
8. An active pen use discriminating apparatus, characterized in that the active pen use discriminating apparatus includes:
the acceleration judging module is used for judging whether the active pen has specific acceleration or not when the active pen is in a first state of closing the screen end signal detecting module, wherein the first state is a state that the active pen continuously does not detect the nib pressure, the screen end signal sent by the screen equipment and the specific acceleration in a preset first duration;
the signal detection starting module is used for continuously starting the screen end signal detection module within a preset second duration after the specific acceleration is detected if the specific acceleration is detected;
the screen end signal detection module is used for judging whether the active pen detects the screen end signal within the preset second duration based on the screen end signal detection module;
and the signal detection closing module is used for closing the screen end signal detection module if the screen end signal is not detected, and switching to an anti-interference mode which needs to be continuously preset for a third time, wherein the specific acceleration and the nib pressure are disregarded by the active pen in the anti-interference mode.
9. An active pen, the active pen comprising: a memory, a processor, and an active pen use determination program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the active pen use determination method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein an active pen use determination program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the active pen use determination method according to any one of claims 1 to 7.
CN202111487721.6A 2021-12-06 2021-12-06 Active pen use discriminating method and apparatus, active pen and computer storage medium Active CN114356121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111487721.6A CN114356121B (en) 2021-12-06 2021-12-06 Active pen use discriminating method and apparatus, active pen and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111487721.6A CN114356121B (en) 2021-12-06 2021-12-06 Active pen use discriminating method and apparatus, active pen and computer storage medium

Publications (2)

Publication Number Publication Date
CN114356121A CN114356121A (en) 2022-04-15
CN114356121B true CN114356121B (en) 2023-07-14

Family

ID=81097819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111487721.6A Active CN114356121B (en) 2021-12-06 2021-12-06 Active pen use discriminating method and apparatus, active pen and computer storage medium

Country Status (1)

Country Link
CN (1) CN114356121B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898910A (en) * 2015-05-04 2015-09-09 联想(北京)有限公司 Control method and electronic equipment
CN110007784A (en) * 2019-02-28 2019-07-12 华为技术有限公司 A kind of active stylus calibration method, active stylus and electronic equipment
CN110831114A (en) * 2019-11-14 2020-02-21 深圳传音控股股份有限公司 Connection method with wireless device, terminal and readable storage medium
CN111158512A (en) * 2019-12-30 2020-05-15 深圳市千分一智能技术有限公司 Electronic pen control method, device, equipment and readable storage medium
CN111290665A (en) * 2020-05-12 2020-06-16 深圳市汇顶科技股份有限公司 Pressure detection method and device, active pen, touch chip and electronic equipment
CN111391541A (en) * 2020-06-04 2020-07-10 深圳市千分一智能技术有限公司 Active pen control method and active pen
CN111949146A (en) * 2020-08-13 2020-11-17 深圳传音控股股份有限公司 Shortcut function calling method and device for touch pen, touch pen and storage medium
CN112486345A (en) * 2021-02-02 2021-03-12 深圳市千分一智能技术有限公司 Processing method, device, terminal and storage medium for active pen writing abnormity
CN112558796A (en) * 2021-02-19 2021-03-26 深圳市千分一智能技术有限公司 Electronic pen, control method and device thereof, and computer-readable storage medium
CN215006589U (en) * 2021-08-19 2021-12-03 深圳市千分一智能技术有限公司 Intelligent pen and writing interaction system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6897853B2 (en) * 2000-11-10 2005-05-24 Microsoft Corp. Highlevel active pen matrix
KR20170018963A (en) * 2014-06-27 2017-02-20 쓰리엠 이노베이티브 프로퍼티즈 컴파니 Touch systems stylus and methods

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104898910A (en) * 2015-05-04 2015-09-09 联想(北京)有限公司 Control method and electronic equipment
CN110007784A (en) * 2019-02-28 2019-07-12 华为技术有限公司 A kind of active stylus calibration method, active stylus and electronic equipment
CN110831114A (en) * 2019-11-14 2020-02-21 深圳传音控股股份有限公司 Connection method with wireless device, terminal and readable storage medium
CN111158512A (en) * 2019-12-30 2020-05-15 深圳市千分一智能技术有限公司 Electronic pen control method, device, equipment and readable storage medium
CN111290665A (en) * 2020-05-12 2020-06-16 深圳市汇顶科技股份有限公司 Pressure detection method and device, active pen, touch chip and electronic equipment
CN111391541A (en) * 2020-06-04 2020-07-10 深圳市千分一智能技术有限公司 Active pen control method and active pen
CN111949146A (en) * 2020-08-13 2020-11-17 深圳传音控股股份有限公司 Shortcut function calling method and device for touch pen, touch pen and storage medium
CN112486345A (en) * 2021-02-02 2021-03-12 深圳市千分一智能技术有限公司 Processing method, device, terminal and storage medium for active pen writing abnormity
CN112558796A (en) * 2021-02-19 2021-03-26 深圳市千分一智能技术有限公司 Electronic pen, control method and device thereof, and computer-readable storage medium
CN215006589U (en) * 2021-08-19 2021-12-03 深圳市千分一智能技术有限公司 Intelligent pen and writing interaction system

Also Published As

Publication number Publication date
CN114356121A (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US20210271306A1 (en) Apparatus and method for waking up a processor
US20200133376A1 (en) Electronic device, control method of electronic device, and program
WO2019024642A1 (en) Process control method and apparatus, storage medium, and electronic device
CN107273130B (en) Method, device and terminal for accelerating interface drawing
US20130084922A1 (en) Portable Electronic Device and the Mode Switching Method Thereof
US20160179265A1 (en) Detection Algorithm for an Infrared Proximity Sensor of a Touch Screen Mobile Phone
CN104850214A (en) Method for shortening wakeup time of mobile terminal through prediction of user wakeup intention
CN108521501B (en) Voice input method, mobile terminal and computer readable storage medium
CN108459880A (en) voice assistant awakening method, device, equipment and storage medium
CN108388335B (en) Method for controlling mobile terminal and mobile terminal
US10203744B2 (en) Display apparatus and method for controlling power usage of the display apparatus
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN108076223B (en) Task switching method and device, terminal equipment and storage medium
CN108089935B (en) Application program management method and mobile terminal
CN114356121B (en) Active pen use discriminating method and apparatus, active pen and computer storage medium
CN107404569B (en) System control method, terminal and computer readable storage medium
CN111078097A (en) Method and system for preventing mistaken touch of mobile terminal and mobile terminal
CN108170360B (en) Control method of gesture function and mobile terminal
CN108874111B (en) Battery over-discharge protection control method and mobile terminal
CN113132535B (en) Screen state control method and device, storage medium and mobile terminal
CN112486350B (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN111027406B (en) Picture identification method and device, storage medium and electronic equipment
CN111026259A (en) Control method and device of mobile terminal and storage medium
CN111694419A (en) Sensor control method and electronic device
CN111309133A (en) Power saving control method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant