CN114356121A - Method and device for judging use of active pen, active pen and computer storage medium - Google Patents

Method and device for judging use of active pen, active pen and computer storage medium Download PDF

Info

Publication number
CN114356121A
CN114356121A CN202111487721.6A CN202111487721A CN114356121A CN 114356121 A CN114356121 A CN 114356121A CN 202111487721 A CN202111487721 A CN 202111487721A CN 114356121 A CN114356121 A CN 114356121A
Authority
CN
China
Prior art keywords
active pen
pen
end signal
screen end
preset
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.)
Granted
Application number
CN202111487721.6A
Other languages
Chinese (zh)
Other versions
CN114356121B (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 an active pen use judging method, an active pen use judging device, an active pen and a computer storage medium, wherein the active pen is started, then the active pen jointly judges that a user has no use intention according to a screen end signal, acceleration and pen point pressure so as to enter a first state, 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 specific acceleration is detected, so that the use intention of the active pen at any moment of the user can be accurately and not omitted, 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 pen point pressure are not concerned any more in a future time period, so that power consumption can be saved as far as possible on the premise of normal functions, the situation that unnecessary power consumption is generated due to the fact that the active pen is placed in a backpack scene and is continuously transmitted to the active pen by external shaking of walking is reasonably avoided, and the accuracy of judgment of the use intention of the active pen is comprehensively improved.

Description

Method and device for judging use of active pen, active pen and computer storage medium
Technical Field
The invention relates to the technical field of active pens, in particular to a method and a device for judging use of an active pen, the active pen and a computer readable storage medium.
Background
With the rapid development of the active pen technology, the active pen product is also more and more widely applied to the work and life of people. The active pen is a low-power consumption electronic, the requirement on power consumption can be severe, and research personnel often consider a method for saving power consumption as much as possible to achieve the purpose of standby for a longer time. The current active pen product adopts an accelerometer to detect acceleration in order to achieve the purpose that a person works when the person uses the active pen and enters a low power consumption mode when the person does not use the active pen, the active pen is considered to be awakened to start working when the acceleration is larger than a certain threshold, and the active pen enters the low power consumption mode when the acceleration is continuously lower than the certain threshold and is continuously used for a period of time. The method for judging whether the person uses the active pen by detecting whether the acceleration is greater than a certain threshold value has low accuracy, and it is difficult to actually judge the intention of the person only by the acceleration.
For example, CN111142958A, "active pen sleep wake-up method, apparatus, device, and readable storage medium" discloses that acceleration and/or nib pressure are used to determine the switching timing 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 the screen signal is used to determine the switching timing of the active pen from the wake-up mode to the working mode. Therefore, the existing method for determining the use intention of the active pen is still not accurate enough.
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 determination method, including:
when the active pen is in a first state of closing a screen end signal detection module, judging whether the active pen has specific acceleration, wherein the first state is a state that the active pen enters after pen point pressure, a screen end signal sent by screen equipment and the specific acceleration are continuously not detected within a preset first time length;
if yes, continuously starting the screen end signal detection module within a preset second time length after the specific acceleration is detected;
judging whether the active pen detects the screen end signal within the preset second time length or not 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 mode is switched to an anti-interference mode in which the third time duration needs to be continuously preset for a single time, wherein the active pen does not look at the specific acceleration and the pen point pressure in the anti-interference mode.
Optionally, after the step of determining, by 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 defaulting to start the screen end signal detection module.
Optionally, after the step of switching the active pen to the default second state of turning on the screen end signal detection module, the method further includes:
judging whether the specific acceleration, the pen point pressure and/or the screen end signal are detected within a preset fourth time 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 pen point pressure and the specific acceleration, keeping the second state.
Optionally, after the step of determining whether the active pen detects the specific acceleration, the pen tip pressure, and/or the screen end signal within a preset fourth time period since the active pen enters the second state, the method further includes:
and if the screen end signal and the pen point pressure are not detected by the active pen within the preset fourth time period but the specific acceleration is detected, keeping the screen end signal detection module started.
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 pen point pressure meeting a preset pressure condition or not;
and if the pen point pressure meeting the preset pressure condition is detected, closing the screen end signal detection module to switch to the first state.
Optionally, the step of determining whether the active pen detects a pen tip pressure meeting a preset pressure condition includes:
judging whether the active pen detects pen point pressure of which the change amplitude does not exceed a preset amplitude threshold value;
if so, judging that the active pen detects pen point pressure meeting a preset pressure condition;
if not, the active pen is judged not to detect the pen point 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 length after the active pen is started, and judging whether the active pen detects the screen end signal, the specific acceleration and/or the pen point pressure within the preset first time length;
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, to achieve the above object, the present invention provides an active pen use determination device, 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 enters after pen point pressure, a screen end signal sent by screen equipment and the specific acceleration are continuously not detected within a preset first time length;
the signal detection starting module is used for continuously starting the screen end signal detection module within a preset second time length 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 time length 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 in which a third time length needs to be continuously preset once, wherein the active pen does not look at the specific acceleration and the pen point pressure in the anti-interference mode.
In addition, to achieve the above object, the present invention also provides an active pen, including: the active pen usage judging program is stored on the memory and can run on the processor, and when being executed by the processor, the active pen usage judging program realizes the steps of the active pen usage judging method.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having an active pen usage determination program stored thereon, which when executed by a processor implements the steps of the active pen usage determination method as described above.
In addition, to achieve the above object, the present invention also provides a computer program product comprising a computer program, which when executed by a processor, implements the steps of the active pen usage determination method as described above.
According to the invention, after the active pen is started, the condition that the user does not have the use intention is judged firstly through the screen end signal, the specific acceleration and the pen point pressure so as to enter the first state, so that the condition that the user does not have the 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 at any moment of the user can be accurately and not omitted, and the accuracy of the use intention of the active pen is improved; if no screen signal is detected in the time period, acceleration and pen point pressure are not concerned any more in a future time period, so that power consumption can be saved as far as possible on the premise of normal functions, the situation that the active pen is placed in a backpack scene, and unnecessary power consumption is caused due to the fact that the external shaking of walking is continuously transmitted to the active pen and the acceleration is continuously detected 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 the use intention of the active pen of a user is solved.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a first embodiment of a method for determining the use of an active pen according to the present invention;
FIG. 3 is a functional block diagram of an active pen use determination device according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The current active pen product adopts an accelerometer to detect acceleration in order to achieve the purpose that a person works when the person uses the active pen and enters a low power consumption mode when the person does not use the active pen, the active pen is considered to be awakened to start working when the acceleration is larger than a certain threshold, and the active pen enters the low power consumption mode when the acceleration is continuously lower than the certain threshold and is continuously used for a period of time. The method for judging whether the person uses the active pen by detecting whether the acceleration is greater than a certain threshold value has low accuracy, and it is difficult to actually judge the intention of the person only by the acceleration.
For example, CN111142958A, "active pen sleep wake-up method, apparatus, device, and readable storage medium" discloses that acceleration and/or nib pressure are used to determine the switching timing 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 the screen signal is used to determine the switching timing of the active pen from the wake-up mode to the working mode. Therefore, the existing method for determining the use intention of the active pen is still not accurate enough.
In order to solve the problems, the invention provides a method for judging the use of an active pen, namely, the active pen firstly judges that a user has no use intention through a screen end signal, specific acceleration and pen point pressure after being started so as to enter a first state, so that the condition 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 at any moment of the user can be accurately and not omitted, 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 pen point pressure are not concerned any more in a future time period, so that power consumption can be saved as far as possible on the premise of normal functions, the situation that the active pen is placed in a backpack scene, and unnecessary power consumption is caused due to the fact that the external shaking of walking is continuously transmitted to the active pen and the acceleration is continuously detected, is reasonably avoided, and therefore the accuracy of judgment of the use intention of the active pen is comprehensively improved.
As shown in fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the active pen usage determination device 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 a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also 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 non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and an active pen use discrimination program.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (programmer's end) and performing data communication with the client; and the processor 1001 may be configured to call the active pen use discrimination program stored in the memory 1005 and perform an operation 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 illustrating a method for determining the use of an active pen according to a first embodiment of the present invention. The method for judging the use of the active pen comprises the following steps:
step S10, when the active pen is in a first state of closing the screen end signal detection module, judging whether the active pen has a specific acceleration, wherein the first state is a state that the active pen enters after pen point pressure, a screen end signal sent by screen equipment and the specific acceleration are continuously not detected within a preset first time length;
in this embodiment, the invention is applied to an active pen, which is an active capacitive pen. The capacitive pen is a pen which is made of a conductor material, has a conductive characteristic and is used for touch control of a capacitive screen to complete man-machine conversation operation, and is an auxiliary device for completing man-machine conversation by simulating a human body (usually fingers) through the conductor material. The screen end signal detection module is used for receiving an external signal and analyzing whether the external signal is a signal sent by the screen end equipment. 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 is greatly increased, so that the use intention of the user for the active pen needs to be accurately judged, 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 the acceleration of the active pen exceeding a preset acceleration threshold, and the threshold can be flexibly set according to actual conditions. The first state refers to a state of preliminarily judging that the user has no higher intention of using the active pen, and in the first state, the screen end signal detection module is closed by default, but the capability of detecting specific acceleration and pen point pressure is still provided (the energy consumption for detecting the two items is not high). The preset first duration refers to the duration that the screen end signal detection module needs to be fixedly started after the active pen is started, and specifically, the duration can be flexibly set according to actual conditions, but the duration cannot be set too long, and the embodiment is not specifically limited.
When the active pen is used for writing, one or more of three conditions of pen point pressure, screen signals and acceleration change may exist, and when the active pen is not used for writing, the three conditions may also exist for various reasons, but the three conditions do not exist simultaneously, so that when the active pen does not detect any of the three conditions for a certain period of time, the active pen can judge that the user does not have the intention to use at the moment, and the signal detection module can be turned off to enter the first state first, 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. At this time, although there is no screen end signal and no pen point pressure, there may be acceleration change, if the user's intention is judged only by the screen end signal and the pen point pressure, that is, the signal detection module is closed only by not detecting the screen end signal and the pen point pressure, an erroneous judgment will occur, which results in that the user temporarily leaves the screen range of the active pen and takes it back to the screen end for writing, because the active pen has closed the signal reception and can not write normally, therefore, only when the active pen does not meet the three conditions continuously for a period of time, the first state can be entered.
After the active pen enters the first state, although the intention judgment cannot be performed preferentially according to the screen end signal, the pilot judgment can be performed 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, the screen end signal detection module is continuously started within a preset second time length 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 may be triggered and the signal reception may be turned on briefly. The preset second time length refers to the duration of one-time awakening, and the duration is usually set to be shorter than the preset first time length, and can be flexibly set according to actual conditions.
The reason why the short-time wake-up mode needs to be set under the condition of no screen signal but acceleration is that even if there is no screen end signal but acceleration, the user still may have an intention to use the active pen, for example, the user picks up the active pen from other places to prepare to use the active pen for writing, and at this time, the active pen does not reach the screen range and has no pressure of the pen point, but the user has an intention to use, so that signal detection can be turned on briefly at this time to detect whether there is a screen end signal.
The reason why the judgment is made without considering the condition of using the pen tip pressure is that in actual situations, there is a scene: the user does not use the active pen, but rests it in the pen container. In this scenario, although there is no screen edge signal and acceleration, there is pen tip pressure, i.e., there is only pen tip pressure among the three conditions, and the user has no intention to use, and therefore, signal detection cannot be turned on based on the presence of only pen tip pressure.
Step S30, judging whether the active pen detects the screen end signal within the preset second time length based on the screen end signal detection module;
and step S40, if the screen end signal is not detected, closing the screen end signal detection module, and switching to an anti-interference mode needing to continuously preset a third time at a single time, wherein the active pen does not look at the specific acceleration and the pen point pressure in the anti-interference mode.
In this embodiment, the active pen determines whether the screen end signal can be detected within a preset second time period based on the currently temporarily turned on screen end signal detection module. For example, the preset second time duration is 1 minute, and the active pen is triggered to wake up once at nine am for a short time, and then it is determined whether the screen end signal is received within zero minutes from nine am to nine am. If the screen end signal is not received, the situation shows that the user may place the active pen only in one place, or the active pen is placed in the backpack at the moment, and the short-time awakening is finished because the acceleration and the pen point pressure are generated due to the walking of people and no writing intention exists, the screen end signal detection module is closed when nine points are finished and one zero point is finished, and in order to prevent frequent interference and jitter under the backpack situation, the repentance is performed for a period of time at nine points and one zero point. In this mode, the active pen is not affected by acceleration and tip pressure, i.e. neither acceleration and/or tip pressure is detected, nor signal detection is enabled. The preset third duration can be flexibly set according to actual conditions, but is considered in terms of saving power consumption, is not suitable to be set to be too short, and is generally set to be longer than the preset second duration.
At the end of the one-time tamper-proof mode, the active pen may again enter the normal first state, and also return to step S10 to continue to observe the specific acceleration.
The embodiment provides an active pen use judging method, which is characterized in that after an active pen is started, a screen end signal, specific acceleration and pen point pressure are firstly used for jointly judging that a user has no use intention so as to enter a first state, so that the condition 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 at any moment of the user can be accurately and not omitted, and the accuracy of the use intention of the active pen is improved; if no screen signal is detected in the time period, acceleration and pen point pressure are not concerned any more in a future time period, so that power consumption can be saved as far as possible on the premise of normal functions, the situation that the active pen is placed in a backpack scene, and unnecessary power consumption is caused due to the fact that the external shaking of walking is continuously transmitted to the active pen and the acceleration is continuously detected 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 the use intention of the active pen of a user is solved.
Further, based on the first embodiment shown in fig. 2, a second embodiment of the active pen usage determination method of the present invention is provided. In this embodiment, after step S30, the method further includes:
step A1, if the screen end signal is detected, the active pen is switched to a second state of default opening of the screen end signal detection module.
In this embodiment, if the active pen detects the screen end signal in any one of the short-time wake-up modes, it indicates that the active pen can be excluded from being placed in the backpack and interfered, and the user has currently picked up the active pen and placed in the screen range, and when the current short-time wake-up mode is released, the active pen is switched to the second state of continuously opening the screen end signal detection module, that is, the normal writing state, so that the user normally uses the active pen to write, and the writing experience of the user cannot be influenced.
Further, after the step a1, the method further includes:
step A2, judging whether the specific acceleration, the pen point pressure and/or the screen end signal are detected within a preset fourth time after the active pen enters the second state;
step a3, if the active pen detects the screen end signal within the preset fourth time period, but does not detect the pen tip pressure and the specific acceleration, the second state is maintained.
In this embodiment, the preset fourth duration is a duration for fixedly turning on the screen end signal detection module after the active pen enters the second state, and is usually set to be longer than the preset second duration, which may be the same as the preset first duration. The following may occur due to actual use: the user uses the active pen, but hovers it over the screen to think the problem stagnant. That is, in the second state, the case where there is no pen tip pressure, no specific acceleration, but a screen signal occurs. At this time, the user still has the intention of use, so the signal detection module cannot be turned off, but is kept on.
The embodiment comprises the following steps: when the screen signal is detected but the pen point pressure and acceleration change cannot be detected in the second state, 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 use intention is improved.
In addition, as an implementation manner, the preset fifth duration may be continuously turned on after the preset fourth duration is preset, and if the screen signal is not detected within the time of continuously turning on the preset fifth duration, the state may be switched to the first state to save energy consumption.
This processing manner is provided because the following may occur in actual use: after using the active pen for a period of time, the user stops not using the active pen, but stands still on the screen in the working state. That is, after entering the second state, a long-time no-nib pressure and no acceleration may occur, but there is a screen end signal, so if acceleration or nib pressure is not detected within a period of time after entering the second state, only a screen signal is required, the signal detection needs to be kept on for a period of time, and if acceleration or nib pressure is not detected after a period of time, it is determined that the user has no intention to use at this time. If the scene is not identified, the signal detection module is always started under the condition that only the screen signal exists, and unnecessary energy consumption of the active pen is increased.
The embodiment comprises the following steps: when the screen signal is detected but the pen point pressure and acceleration change cannot be detected in the first state, if the rule lasts for a long time, the active pen is not used, so that the misjudgment condition that the active pen is used and is still on the screen in the working state can be avoided, and the judgment accuracy of the use intention is improved.
Further, after the step a1, the method further includes:
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, keeping the screen end signal detection module on.
In this embodiment, it may happen that the user needs to use the active pen during actual use, but the active pen is temporarily moved out of the screen. Although the screen end signal is detected before, no screen end signal and no pen point pressure exist when the pen leaves, and acceleration change may exist, so that the user still keeps the use intention under the situation and needs to keep the screen end signal detection module to be started to ensure the normal writing function of the active pen. If the screen end signal detection module is closed at the moment, misjudgment can occur, so that the user can temporarily leave the screen range of the active pen and take the active pen back to the screen end for writing, and the writing experience is greatly influenced due to the fact that the active pen is closed and the signal is received, and the situation that normal writing cannot be performed is achieved.
The embodiment comprises the following steps: when the current state is in the second state, if acceleration exists, the rule of 'using the active pen' state is continuously kept even if no screen signal is detected, so that the misjudgment condition that the pen leaves the screen range temporarily when the active pen is used can be avoided, and the judgment accuracy of the use intention is improved.
Further, based on the first embodiment described above, a third embodiment of the active pen use determination 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 pen point pressure meeting a preset pressure condition;
and step B2, if the pen point pressure meeting the preset pressure condition is detected, closing the screen end signal detection module to switch to the first state.
In this embodiment, if the active pen does not detect the specific acceleration for a long time after entering the first state, even if only the stable pen tip pressure is detected, the pen tip pressure can be ignored, the first state is maintained, and the detection of the specific acceleration is continued. There may therefore be a scenario: the user does not use the active pen, but rests it in the pen container. In this scenario, although there is no screen edge signal and no acceleration, there is a stable pen tip pressure, that is, there is no intention of the user in the case where only the pen tip pressure is present among the three conditions in the first state, and therefore, the signal detection cannot be turned on based on the presence of only the pen tip pressure.
Further, the step of determining whether the active pen detects the pen tip pressure satisfying the preset pressure condition in step B1 includes:
step B11, judging whether the active pen detects pen point pressure with a variation amplitude not exceeding a preset amplitude threshold value;
step B12, if yes, judging that the active pen detects pen point pressure meeting a preset pressure condition;
and step B13, if not, judging that the active pen does not detect the pen point pressure meeting the preset pressure condition.
In the present embodiment, the pen tip pressure satisfying the preset pressure condition refers to a stable pen tip pressure, and whether the pen tip pressure is stable or not can be determined by a preset amplitude threshold. If the variation amplitude between the pen point pressures acquired at the adjacent sampling moments does not exceed the preset amplitude threshold value, the pen point pressure is stable, otherwise, the pen point pressure is unstable. The preset amplitude threshold value is generally set to be zero or a value close to zero, and can be flexibly set according to actual conditions.
The embodiment comprises 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 the active pen' is considered, so that the condition of misjudgment of the 'pen container situation' can be avoided, and the judgment accuracy of the use intention is improved.
Further, before step S10, the method further includes:
step S01, the screen end signal detection module is continuously started within a preset first time after the active pen is started, and whether the screen end signal, specific acceleration and/or pen point pressure are detected by the active pen within the preset first time is judged;
step S02, if the screen end signal, the specific acceleration and the pen tip pressure are not detected, the screen end signal detection module is closed to enter the first state.
In this embodiment, since the user needs to start the active pen first when using the active pen to write, the possibility that the user has an intention to use at the time of starting the active pen is very high, the detection of the signal needs to be fixedly started within a period of time after starting the active pen, and the user may have one or more of the three conditions of pen point pressure, screen signal and acceleration change during the use of the active pen, but the three conditions may also 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, so that when the active pen fails to detect any of the three conditions within a period of time, it can be determined that the user does not have the intention to use at this time, and the signal detection module can be turned off first to enter the first state, thereby saving energy consumption 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. At this time, although there is no screen end signal and no pen point pressure, there may be acceleration change, if the user's intention is judged only by the screen end signal and the pen point pressure, that is, the signal detection module is closed only by not detecting the screen end signal and the pen point pressure, an erroneous judgment will occur, which results in that the user temporarily leaves the screen range of the active pen and takes it back to the screen end for writing, because the active pen has closed the signal reception and can not write normally, therefore, only when the active pen does not meet the three conditions continuously for a period of time, the first state can be entered. 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 at this time, and the second state is continuously maintained.
The embodiment comprises the following steps: when the screen signal cannot be detected and no acceleration or pressure change exists for a period of time, the rule of 'not using the active pen' is considered, so that the condition that 'using the active pen but temporarily leaving the screen range' is wrongly judged as 'not using the intention' can be avoided, meanwhile, the situation that 'not using the active pen is still on the desktop' can be identified, and the judgment accuracy of the using intention is improved.
As shown in fig. 3, the present invention also provides an active pen usage determination device, which includes:
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 where the screen end signal detecting module is closed, where the first state is a state where the active pen enters after pen tip pressure, a screen end signal sent by a screen device, and the specific acceleration are not detected continuously within a preset first duration;
the signal detection starting module 20 is configured to, if yes, continuously start the screen end signal detection module within a preset second duration after the specific acceleration is detected;
the screen end signal detection module 30 is configured to determine 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 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 in which a third duration needs to be continuously preset once, wherein the active pen does not look at the specific acceleration and the nib pressure in the anti-interference mode.
Optionally, the active pen usage discriminating device further includes:
and the second state switching module is used for switching the active pen to a second state of defaulting to start the screen end signal detection module if the screen end signal is detected.
Optionally, the active pen usage discriminating device further includes:
the fourth time length detection module is used for judging whether the specific acceleration, the pen point pressure and/or the screen end signal are detected within 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 pen point pressure and the specific acceleration.
Optionally, the active pen usage discriminating device further includes:
and the signal detection and holding module is used for keeping the screen end signal detection module started 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 usage discriminating device further includes:
the nib pressure detection module is used for judging whether the active pen detects nib pressure meeting a preset pressure condition or not if the active pen does not detect nib pressure meeting the preset pressure condition;
and the first state switching module is used for closing the screen end signal detection module to switch to the first state if the pen point pressure meeting the preset pressure condition is detected.
Optionally, the tip pressure detection module is further configured to:
judging whether the active pen detects pen point pressure of which the change amplitude does not exceed a preset amplitude threshold value;
if so, judging that the active pen detects pen point pressure meeting a preset pressure condition;
if not, the active pen is judged not to detect the pen point pressure meeting the preset pressure condition.
Optionally, the active pen usage 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 active pen detects the screen end signal, specific acceleration and/or pen point pressure within the preset first time length;
and the first state entering module is used for closing the screen end signal detection module to enter the first state if the screen end signal, the specific acceleration and the pen point 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 on 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.
The method implemented when the active pen usage determining program is executed may refer to each embodiment of the active pen usage determining method of the present invention, and details thereof are not repeated herein.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention stores an active pen use discrimination program, which when executed by a processor implements the steps of the active pen use discrimination method as described above.
The method implemented when the active pen usage determining program is executed may refer to each embodiment of the active pen usage determining method of the present invention, and details thereof are not repeated 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 usage discrimination method as described above.
The method implemented when the computer program is executed can refer to each embodiment of the active pen usage determination method of the present invention, and details are not repeated 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 an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention essentially or contributing to the prior art can be embodied in the form of a software product, which is stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server or a network device, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An active pen use determination method, comprising:
when the active pen is in a first state of closing a screen end signal detection module, judging whether the active pen has specific acceleration, wherein the first state is a state that the active pen enters after pen point pressure, a screen end signal sent by screen equipment and the specific acceleration are continuously not detected within a preset first time length;
if yes, continuously starting the screen end signal detection module within a preset second time length after the specific acceleration is detected;
judging whether the active pen detects the screen end signal within the preset second time length or not 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 mode is switched to an anti-interference mode in which the third time duration needs to be continuously preset for a single time, wherein the active pen does not look at the specific acceleration and the pen point pressure in the anti-interference mode.
2. The active pen usage determination method according to claim 1, wherein after the step of determining whether the active pen detects the screen end signal within the preset second duration based on the screen end signal detection module, the method further comprises:
and if the screen end signal is detected, switching the active pen to a second state of defaulting to start the screen end signal detection module.
3. The active pen usage determination method of claim 2, wherein 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 comprises:
judging whether the specific acceleration, the pen point pressure and/or the screen end signal are detected within a preset fourth time 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 pen point pressure and the specific acceleration, keeping the second state.
4. The active pen usage determination 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 is detected within a preset fourth time period since the active pen enters the second state, the method further comprises:
and if the screen end signal and the pen point pressure are not detected by the active pen within the preset fourth time period but the specific acceleration is detected, keeping the screen end signal detection module started.
5. The active pen use discrimination method as claimed in 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 pen point pressure meeting a preset pressure condition or not;
and if the pen point pressure meeting the preset pressure condition is detected, closing the screen end signal detection module to switch to the first state.
6. The active pen use discrimination method as claimed in claim 5, wherein the step of determining whether the active pen detects a tip pressure satisfying a preset pressure condition includes:
judging whether the active pen detects pen point pressure of which the change amplitude does not exceed a preset amplitude threshold value;
if so, judging that the active pen detects pen point pressure meeting a preset pressure condition;
if not, the active pen is judged not to detect the pen point pressure meeting the preset pressure condition.
7. The active pen use judging method according to any one of claims 1 to 6, wherein before the step of judging whether the active pen has a specific acceleration when the active pen is in the first state of closing the screen end signal detecting module, the method further comprises:
continuously starting the screen end signal detection module within a preset first time length after the active pen is started, and judging whether the active pen detects the screen end signal, the specific acceleration and/or the pen point pressure within the preset first time length;
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 determination device, comprising:
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 enters after pen point pressure, a screen end signal sent by screen equipment and the specific acceleration are continuously not detected within a preset first time length;
the signal detection starting module is used for continuously starting the screen end signal detection module within a preset second time length 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 time length 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 in which a third time length needs to be continuously preset once, wherein the active pen does not look at the specific acceleration and the pen point pressure in the anti-interference mode.
9. An active pen, comprising: memory, a processor and an active pen usage discrimination program stored on the memory and executable on the processor, the active pen usage discrimination program when executed by the processor implementing the steps of the active pen usage discrimination method as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that an active pen usage discrimination program is stored on the computer-readable storage medium, which when executed by a processor implements the steps of the active pen usage discrimination 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 true CN114356121A (en) 2022-04-15
CN114356121B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707347A (en) * 2023-06-02 2024-03-15 荣耀终端有限公司 Power consumption control method of handwriting pen and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020056575A1 (en) * 2000-11-10 2002-05-16 Keely Leroy B. Highlevel active pen matrix
CN104898910A (en) * 2015-05-04 2015-09-09 联想(北京)有限公司 Control method and electronic equipment
US20170131798A1 (en) * 2014-06-27 2017-05-11 3M Innovative Properties Company Touch systems stylus and methods
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

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020056575A1 (en) * 2000-11-10 2002-05-16 Keely Leroy B. Highlevel active pen matrix
US20170131798A1 (en) * 2014-06-27 2017-05-11 3M Innovative Properties Company Touch systems stylus and methods
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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117707347A (en) * 2023-06-02 2024-03-15 荣耀终端有限公司 Power consumption control method of handwriting pen and electronic equipment

Also Published As

Publication number Publication date
CN114356121B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
US20210271306A1 (en) Apparatus and method for waking up a processor
US9513703B2 (en) Gesture-based waking and control system for wearable devices
CN107273130B (en) Method, device and terminal for accelerating interface drawing
CN107291313B (en) Fingerprint awakening control method and device, storage medium and mobile terminal
WO2019024642A1 (en) Process control method and apparatus, storage medium, and electronic device
CN104284004A (en) Screen unlocking method and mobile terminal
US11614790B2 (en) Electronic pen, method and device for controlling electronic pen, and computer-readable storage medium
CN114320029B (en) Low-power-consumption anti-interference intelligent door lock and awakening method
CN107850974A (en) Identify the method and electronic equipment of mistaken touch operation
CN111103963A (en) Fingerprint module starting method and device, storage medium and terminal
CN108845727B (en) Mutual capacitance type touch screen based awakening method and device
CN111443803B (en) Mode switching method and device, storage medium and mobile terminal
CN114356121A (en) Method and device for judging use of active pen, active pen and computer storage medium
CN110691168B (en) Screen control method and device of mobile terminal and storage medium
CN110956968A (en) Voice wake-up and voice wake-up function triggering method and device, and terminal equipment
CN108111683B (en) Mobile terminal, control method and device of working mode of mobile terminal, and storage medium
CN107526522B (en) Black screen gesture recognition method and device, mobile terminal and storage medium
CN110958345B (en) Method and device for detecting rear cover of mobile terminal and computer readable storage medium
US11372502B2 (en) Capacitive touch device and gesture recognition method thereof, chip and storage medium
CN113323513B (en) Power supply control method of intelligent door lock, intelligent door lock and storage medium
CN110086508B (en) Voltage adjusting method, system, storage medium and mobile terminal
CN111083288B (en) Screen control method and device, terminal equipment and storage medium
US10666789B2 (en) Control method and device for sensors of mobile terminal, storage medium and mobile terminal
CN112486350A (en) Detection method and device for touch screen of mobile terminal, storage medium and mobile terminal
CN112083792A (en) Mobile terminal control method and device and mobile terminal

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