CN113342186A - Stylus and method for realizing eraser function - Google Patents

Stylus and method for realizing eraser function Download PDF

Info

Publication number
CN113342186A
CN113342186A CN202010136951.7A CN202010136951A CN113342186A CN 113342186 A CN113342186 A CN 113342186A CN 202010136951 A CN202010136951 A CN 202010136951A CN 113342186 A CN113342186 A CN 113342186A
Authority
CN
China
Prior art keywords
touch screen
electrode
signal
preset signal
condition
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
CN202010136951.7A
Other languages
Chinese (zh)
Other versions
CN113342186B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010136951.7A priority Critical patent/CN113342186B/en
Publication of CN113342186A publication Critical patent/CN113342186A/en
Application granted granted Critical
Publication of CN113342186B publication Critical patent/CN113342186B/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
    • 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
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The application provides a stylus pen and a method for realizing an eraser function, wherein two ends of the stylus pen are respectively a writing end and an erasing end, and electrodes are respectively arranged at the two ends of the stylus pen, so that whether the erasing end is close to a touch screen or not and the writing end is far away from the touch screen can be determined by judging whether signals received by the two electrodes meet certain conditions or not. And when the erasing end is close to the touch screen and the writing end is far away from the touch screen, the touch screen can enter an eraser mode by sending a control signal to the touch screen, so that the eraser function of the erasing end is realized. The handwriting pen does not need to trigger the eraser function by keys, and does not need to determine whether the handwriting pen is turned over by a sensor to determine whether the eraser function is triggered, so that the structure is simpler.

Description

Stylus and method for realizing eraser function
Technical Field
The application relates to the technical field of electronics, in particular to a stylus and a method for achieving an eraser function.
Background
The stylus is an auxiliary device for completing man-machine conversation by simulating a human body (usually fingers) by using a conductor material. The current mainstream handwriting pen adopts an active capacitance pen mode. The eraser function is an extended function of the handwriting pen, and is used for erasing an error part after a writing error and simulating a real eraser to modify and remove.
In the prior art, there are various ways to implement the eraser function of the stylus pen, but the user experience of these ways needs to be further improved. For example, in one approach, a user may switch the writing/erasing function by double-clicking a Touch Panel (TP) integrated in a stylus pen. However, since this method requires integrating a TP film in the stylus, the user may mistakenly touch the eraser function in the pen-holding writing action. In another mode, a real key similar to a key spring is added to the pen cap part to trigger the eraser function. That is, in this method, the user needs to press the eraser button to trigger the eraser function.
Disclosure of Invention
The application provides a stylus and a method for realizing the function of an eraser, which can realize the function of the eraser by turning over the stylus.
In a first aspect, there is provided a stylus comprising: the control unit, and set up writing end and the end of erasing at the stylus pen both ends respectively. The erasing end is integrated with a first electrode, and the first electrode is used for receiving signals sent by a touch screen of the interactive equipment; and the writing end is integrated with a second electrode, and the second electrode is used for receiving signals sent by the touch screen. The control unit is used for controlling the stylus pen to send a first control signal to the touch screen under the condition that a first condition is determined to be met, wherein the first condition is as follows: the N frames of signals continuously received by the first electrode are all the same as the first preset signal, and the N frames of signals received by the second electrode in the time period corresponding to the N frames of signals are not all the same as the first preset signal. The frame format of the first preset signal is the same as that of a signal sent by the touch screen, and the first control signal is used for indicating the touch screen to enter an eraser mode.
The erasing end of the stylus is close to the touch screen, the writing end of the stylus is far away from the touch screen, and the first condition is met. Therefore, according to the stylus pen provided by the application, the erasing end and the writing end are respectively integrated with the electrodes for receiving signals, and whether the signals received by the two electrodes meet a certain condition or not is judged, so that the erasing end is close to the touch screen, and when the writing end is far away from the touch screen, the erasing function of the erasing end is realized. The handwriting pen does not need to trigger the eraser function by a key or determine whether the handwriting pen is turned over by a sensor to determine whether the eraser function is triggered, the structure is simpler, and the physical examination of a user is better.
With reference to the first aspect, in certain implementations of the first aspect, the control unit is further configured to: and controlling the stylus pen to send a second preset signal to the touch screen, wherein the second preset signal is used for erasing writing traces on the touch screen.
When the touch screen enters an eraser mode, namely the erasing end is close to the touch screen and the writing end is far away from the touch screen, the stylus pen sends a second preset signal to the touch screen, so that the touch screen can determine the contact position of the erasing end and the touch screen, and writing marks on the contact position can be erased.
With reference to the first aspect, in certain implementations of the first aspect, the control unit is further configured to: after controlling the stylus pen to send a second preset signal, determining whether a first condition is met; if the first condition is met, controlling the stylus pen to send a second preset signal to the touch screen; and if the first condition is not met, controlling the stylus pen to send a second control signal to the touch screen, wherein the second control signal is used for indicating the touch screen to exit the eraser mode.
Therefore, whether the first condition is met or not is detected before the second preset signal is sent, the erasing end can be close to the touch screen, and when the writing end is far away from the touch screen, the writing trace on the touch screen is erased through the erasing end, so that the erasing function is realized.
With reference to the first aspect, in certain implementations of the first aspect, the first electrode is configured to send a second preset signal to the trigger screen.
With reference to the first aspect, in certain implementations of the first aspect, the erasing end is further integrated with a third electrode, and the third electrode is configured to send a second preset signal to the touch screen.
In a second aspect, a method for implementing an eraser function is provided, which is applied to a stylus pen. The handwriting pen comprises a writing end and an erasing end which are respectively arranged at two ends of the handwriting pen, the erasing end is integrated with a first electrode, the first electrode is used for receiving signals sent by a touch screen of the interaction device, the writing end is integrated with a second electrode, and the second electrode is used for receiving the signals sent by the touch screen. The method comprises the following steps: under the condition that a first condition is determined to be met, sending a first control signal to the touch screen, wherein the first condition is as follows: the N frames of signals continuously received by the first electrode are all the same as the first preset signal, and the N frames of signals received by the second electrode in the time period corresponding to the N frames of signals are not all the same as the first preset signal. The frame format of the first preset signal is the same as that of a signal sent by the touch screen, and the first control signal is used for indicating the touch screen to enter an eraser mode.
With reference to the second aspect, in some implementations of the second aspect, the method may further include: and sending a second preset signal to the touch screen, wherein the second preset signal is used for erasing the writing trace on the touch screen.
With reference to the second aspect, in some implementations of the second aspect, the method may further include: after the second preset signal is sent, determining whether the first condition is met; if the first condition is met, sending a second preset signal to the touch screen; and if the first condition is not met, sending a second control signal to the touch screen, wherein the second control signal is used for indicating the touch screen to exit the eraser mode.
With reference to the second aspect, in some implementations of the second aspect, the sending the second preset signal to the touch screen includes: and sending a second preset signal to the trigger screen through the first electrode.
With reference to the second aspect, in some implementations of the second aspect, the erasing end is further integrated with a third electrode; wherein, send the second preset signal to the touch-sensitive screen, include: and sending a second preset signal to the trigger screen through the third electrode.
In a third aspect, a chip system is provided, which includes one or more processors, and is applied to a stylus pen, where the stylus pen includes a writing end and an erasing end that are respectively disposed at two ends of the stylus pen, the erasing end is integrated with a first electrode, the first electrode is used to receive a signal sent by a touch screen of an interactive device, the writing end is integrated with a second electrode, the second electrode is used to receive a signal sent by the touch screen, and when a program instruction is executed by the one or more processors, the chip system is enabled to perform the following steps: sending a first control signal to the touch screen under the condition that a first condition is determined to be met, wherein the first condition is as follows: the N frames of signals continuously received by the first electrode are all the same as a first preset signal, the N frames of signals received by the second electrode in a time period corresponding to the N frames of signals are not all the same as the first preset signal, wherein N is a positive integer, the frame format of the first preset signal is the same as that of signals sent by the touch screen, and the first control signal is used for indicating the touch screen to enter an eraser mode.
With reference to the third aspect, in some implementations of the third aspect, the chip system further performs the following steps: and sending a second preset signal to the touch screen, wherein the second preset signal is used for erasing the writing trace on the touch screen.
With reference to the third aspect, in some implementations of the third aspect, the chip system further performs the following steps: after the second preset signal is sent, determining whether the first condition is met; if the first condition is met, sending a second preset signal to the touch screen; and if the first condition is not met, sending a second control signal to the touch screen, wherein the second control signal is used for indicating the touch screen to exit the eraser mode.
With reference to the third aspect, in some implementations of the third aspect, the sending the second preset signal to the touch screen includes: and sending a second preset signal to the trigger screen through the first electrode.
With reference to the third aspect, in some implementations of the third aspect, the erasing end is further integrated with a third electrode; wherein, send the second preset signal to the touch-sensitive screen, include: and sending a second preset signal to the trigger screen through the third electrode.
With reference to the third aspect, in some implementations of the third aspect, the sending the second preset signal to the touch screen includes: and sending a second preset signal to the trigger screen through the first electrode.
With reference to the third aspect, in some implementations of the third aspect, the erasing end is further integrated with a third electrode; wherein, send the second preset signal to the touch-sensitive screen, include: and sending a second preset signal to the trigger screen through the third electrode.
In a fourth aspect, the present application provides a stylus pen having a function of implementing the method for implementing an eraser function provided in the second aspect. The functions may be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-described functions.
In a fifth aspect, the present application provides a computer-readable storage medium, comprising computer instructions, which, when run on an electronic device, cause a stylus to perform the method for implementing an eraser function provided in the second aspect.
In a sixth aspect, the present application provides a computer program product, which, when running on a stylus, causes the stylus to perform the method for implementing an eraser function as provided in the second aspect above.
In a seventh aspect, there is provided a system comprising an interactive device and a stylus according to any of the preceding aspects.
Drawings
FIG. 1 is a schematic diagram of a system provided herein.
Fig. 2 is a schematic structural diagram of a stylus provided in the present application.
FIG. 3 is a schematic flow chart of a method for implementing an eraser function in accordance with the stylus provided herein.
Fig. 4 is a schematic diagram of content written on a touch screen.
Fig. 5 is a schematic diagram of implementing the erase function.
FIG. 6 is a timing diagram illustrating a method for implementing an eraser function with a stylus according to the present application.
FIG. 7 is a schematic flow chart of a method for implementing the eraser function provided herein.
Fig. 8 is another structural schematic diagram of the stylus provided in the present application.
Detailed Description
The technical solution in the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a schematic diagram of a system provided by the present application. As shown in FIG. 1, the system includes an interactive device 10 and a stylus 20.
The interactive device 10 may be, for example, a mobile phone, a tablet computer, a wearable device, an in-vehicle device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and other electronic devices.
The interactive device 10 may include a touch screen (TP) 11, which may also be referred to as a touch panel. The touch screen may perform various operations such as transmitting signals, receiving signals, and the like. It is to be understood that the interaction device may also comprise other units or modules, such as a speaker, a microphone, a light sensor, etc. if the interaction device is a smartphone.
Stylus 20 may be an active capacitance pen, but is not limited in this application. Stylus 20 includes a writing end 21 and an erasing end 22 disposed at both ends of stylus 20, respectively. The writing end 21 may be a nib portion and the erasing end 22 may be a cap portion.
After the interactive device 10 and the stylus pen 20 are connected, for example, after the two are connected by bluetooth pairing, the user can use the writing end 21 to write on the touch screen 11, and use the erasing end 22 to erase the writing trace on the touch screen 11. Stylus 20 is described in detail below with reference to fig. 2.
Fig. 2 shows a schematic diagram of the internal structure of stylus 20. Referring to fig. 2, the stylus pen 20 is provided with a first electrode 221, a first receiving unit 241, a first transmitting unit 242, a second electrode 211, a second receiving unit 251, a second transmitting unit 252, and a control unit 231.
The first electrode 221 may be integrated at the erase terminal 22. The second electrode 211 may be integrated in the writing tip 21. The first electrode 221 and the second electrode 211 may both receive a signal transmitted by the touch screen 11.
The first receiving unit 241 is configured to decode the signal received by the first electrode 221, and send the resulting decoded signal to the control unit 231. Illustratively, the first receiving unit 241 may include a sampling module, an amplifying module, and a comparing module. The sampling module is configured to sample a signal received by the first electrode 221 based on a preset sampling frequency, the amplifying module is configured to amplify the sampled signal by using a preset amplification factor, and the amplified signal is input to the comparing module. The comparison module outputs a high level or low level signal, i.e., outputs "0" or "1" to the control unit 231 by comparing the input signal with a reference signal (i.e., a first preset signal hereinafter).
Similarly, the second receiving unit 251 is configured to decode the signal received by the second electrode 211 and send the resulting decoded signal to the control unit 231. The process of decoding the signal by the second receiving unit 251 is similar to the process of decoding the signal by the first receiving unit 241, and is not described in detail here.
If the N frame signals continuously input to the control unit 231 by the first receiving unit 241 are all the same as the first preset signal, and the N frame signals continuously input to the control unit 231 by the second receiving unit 251 in the time period corresponding to the N frame signals are not all the same as the first preset signal, the control unit 231 may control the stylus pen 20 to send a first control signal to the touch screen 11, where the first control signal is used to instruct the touch screen 11 to enter the eraser mode. Wherein N is a positive integer.
That is, if the control unit 231 determines that the first condition is satisfied, it controls the stylus pen 20 to transmit the first control signal to the touch screen 11. After the touch screen 11 receives the first control signal, an associated process (or instruction) may be invoked, where the process is used to enable the touch screen 11 to erase the written trace on the contact position between the erasing terminal 22 and the touch screen 11. It will be understood by those skilled in the art that the "touch screen 11 enters the eraser mode" may be understood as the touch screen 11 invoking the above-described process. After the touch screen 11 enters the eraser mode, the touch screen 11 can erase the writing traces on the contact position of the erasing terminal 22 and the touch screen 11.
Wherein the first condition is: the N frames of signals continuously received by the first electrode 221 are all the same as the first preset signal, and the N frames of signals received by the second electrode 211 in the time period corresponding to the N frames of signals are not all the same as the first preset signal. The frame format of the first preset signal is the same as the frame format of the signal transmitted by the touch screen 11. Alternatively, the first preset signal is a signal having a frame format of a signal transmitted by the touch screen 11.
The above process is described by taking the frame format of the signal transmitted by the touch screen as "1110010" as an example. The first electrode 221 inputs the received analog signal to the first receiving unit 241, the first receiving unit 241 decodes the analog signal, and the decoded bit is input to the control unit 231. The control unit 231 takes continuous 8 bits as a frame signal, and compares whether this frame signal is equal to "1110010". Meanwhile, the second electrode 211 also inputs the received analog signal to the second receiving unit 251, the second receiving unit 251 decodes the analog signal, and the decoded bit is input to the control unit 231. The control unit 231 takes continuous 8 bits as a frame signal, and compares whether this frame signal is equal to "1110010". If the control unit 231 determines that the N-frame signals continuously input by the first receiving unit 241 are all equal to "1110010" and the N-frame signals continuously input by the second receiving unit 251 in the time period corresponding to the N-frame signals are not all equal to "1110010", the control unit 231 considers that the erasing terminal 22 is close to the touch screen 11 and the writing terminal 21 is far from the touch screen 11, i.e., the user wishes to invoke the eraser function, so that the control unit 231 can control the stylus pen 20 to transmit the first control signal to the touch screen 11. The touch screen 11 may enter the eraser mode after receiving the first control signal.
Optionally, after the touch screen 11 enters the eraser mode, a specific identifier may be presented on the touch screen 11 to the user, and the user may know that the touch screen enters the eraser mode by seeing the specific identifier. The specific mark may be a specific pattern, a specific character, or the like, which is not limited in this application.
It should be understood that, in the present application, the electrode (e.g., the first electrode 221) receives the same signal as the first preset signal, which means that the frame format of the signal received by the electrode is the same as the frame format of the first preset signal. The N frame signals are not all the same as the first preset signal, which means that at least one frame signal in the N frame signals is not the same as the first preset signal. N may be equal to 1, or an integer greater than 1. In the case where N is greater than 1, it is advantageous to avoid unnecessary switching between switching the eraser function and the writing function due to erroneous judgment.
It should also be understood that, the frame format of the first predetermined signal is merely "1110010" as an example, and the frame format of the first predetermined signal is not specifically limited in the present application.
In addition, if the N frames of signals continuously received by the first electrode 221 are all the same as the first preset signal, and the N frames of signals received by the second electrode 211 in the time period corresponding to the N frames of signals are all the same as the first preset signal, it can be considered that the stylus pen 20 is horizontally placed on the touch screen 11. In this scenario, the user does not write nor erase.
Optionally, stylus 20 may also include an interaction unit 232. Interaction unit 232 may include bluetooth or other modules necessary for stylus 20 to establish a connection with interactive device 10. Taking bluetooth as an example, the interaction unit 241 may be peripheral bluetooth. The switching, configuration, etc. of bluetooth may be controlled by the control unit 231.
Illustratively, the interaction unit 232 may transmit a first control signal.
The functions of the interaction unit 232 may be integrated in the control unit 231, and the functions of the interaction unit 232 and the control unit 231 may also be implemented by separate modules. The control unit 231 may be a Micro Controller Unit (MCU), but the present application is not limited thereto.
To sum up, according to the stylus pen that this application provided, through erasing the end and writing the end and integrating the electrode that is used for the received signal respectively to whether signal through judging two electrode receptions satisfies certain condition, can be erasing the end and be close to the touch-sensitive screen, when writing the end and keeping away from the touch-sensitive screen, realize erasing the eraser function of end. The handwriting pen does not need to trigger the eraser function by a key or determine whether the handwriting pen is turned over by a sensor to determine whether the eraser function is triggered, the structure is simpler, and the physical examination of a user is better.
Next, the operation of the erasing terminal 22 after the eraser function is turned on will be described with reference to fig. 3 and 4.
Referring to fig. 3, after the erasing terminal 22 turns on the eraser function, the control unit 231 may perform the following operations:
and S301, controlling the stylus pen 20 to send a second preset signal to the touch screen 11 so as to erase the writing trace on the touch screen 11 at the position contacted with the erasing end 22.
For example, referring to fig. 4, if the user wants to erase the writing trace located at (a3, b4) on the touch screen 11 after writing the "sky" character on the touch screen 11, the user may turn the stylus 20 over to bring the erasing end 22 into contact with the location (a3, b4), thereby putting the touch screen 11 into the eraser mode. At this time, the stylus pen 20 may transmit a second preset signal to the touch screen 11. And the touch screen 11 judges that the position on the touch screen 11, which receives the second preset signal and has the maximum signal intensity, is (a3, b4), and the trace on the position (a3, b4) is erased. After erasing the writing traces at (a3, b4) and (a2, b4), the content of the writing on the touch screen 11 is as shown in fig. 5.
Alternatively, the second preset signal may be transmitted by the first electrode 221. That is, the first electrode 221 has a receiving and transmitting function, and the receiving and transmitting functions are time-division multiplexed. Alternatively, the erase terminal may be integrated with the third electrode 222. The third electrode 222 may transmit a second preset signal.
Specifically, the control unit 231 may send the second preset signal to the first sending unit 242, the first sending unit 242 encodes the second preset signal and outputs the encoded second preset signal to the first electrode 221 or the third electrode 222, and the first electrode 221 or the third electrode 222 sends the encoded second preset signal.
As to how the first transmitting unit 242 specifically encodes the second preset signal, which is a digital signal, to generate an analog signal that can be transmitted, reference may be made to the prior art.
In addition, in this application, the second preset signal is a signal having a specific frame format, and the frame format of the second preset signal may be the same as or different from the frame format of the first preset signal, which is not limited in this application.
It should be understood that the position coordinates of the touch screen 11 shown in fig. 4 are only an example, and the example should not limit the present application in any way. In addition, a person skilled in the art can know how to determine the contact position between the stylus pen and the touch screen by the touch screen 11 according to the signal sent by the stylus pen according to the prior art, which is not described herein again.
Alternatively, after S301, the control unit 231 may further continue to perform the following operations:
s302, judging whether the first condition is met.
If the first condition is satisfied, S301 is executed. Otherwise, S303 is executed.
And S303, controlling the stylus pen 20 to send a second control signal to the touch screen 11. Wherein the second control signal is used to instruct the touch screen 11 to exit the eraser mode.
That is, after the erasing terminal 22 sends the first control signal and before the stylus pen 20 sends the second preset signal, the control unit 231 may first detect whether the erasing terminal 22 is still in contact with the touch screen 11, and send the second preset signal if the erasing terminal 22 is in contact with the touch screen 11, otherwise send the second control signal. The touch screen 11 may exit the relevant process (or instruction) after receiving the second control signal, and after exiting the process, the touch screen 11 cannot erase the writing trace on the contact position between the erasing terminal 22 and the touch screen 11. It will be understood by those skilled in the art that the "touch screen 11 exiting the eraser mode" may be understood as the touch screen 11 exiting the above-described process.
Illustrated in the timing diagram shown in fig. 6. Referring to fig. 6, the Received (RX) signal corresponds to the aforementioned N-frame signal, which corresponds to a time duration T1. The Transmit (TX) signal corresponds to a second predetermined signal, which corresponds to a time duration T2. Assuming that the control unit 231 determines that the first condition is satisfied within the first time period T1 shown in the figure, it instructs the touch screen 11 to enter the eraser mode. And, during the first time period T2, the control unit 231 may control the stylus pen 20 to send a second preset signal to the touch screen 11 to erase the written trace on the touch screen 11 at the position where the stylus pen contacts the erasing terminal 22. During the second period of time T1, control unit 231 determines whether the first condition is satisfied. If yes, the control unit 231 controls the stylus pen 20 to send a second preset signal to the touch screen 11 within a second time period T2; otherwise, the control unit 231 instructs the touch screen 11 to exit the eraser mode. If the control unit 231 determines that the first condition is satisfied for the second time period T1, it continues to determine whether the first condition is satisfied until the eraser function is no longer used for the third time period T1.
For another example, referring to fig. 5, if the user wishes to erase the writing trace at the position (a2, b4) after erasing the writing trace at the position (a2, b4), the erasing end 22 can be moved from the position (a3, b4) to the position (a2, b 4). After moving to (a2, b4), the stylus pen 20 may transmit a second preset signal to the touch screen 11. And the touch screen 11 judges that the position on the touch screen 11 where the second preset signal is received and the signal intensity is the maximum is (a2, b4), and the trace at the position (a2, b4) is erased.
Therefore, whether the first condition is met or not is detected before the second preset signal is sent, the erasing end can be close to the touch screen, and when the writing end is far away from the touch screen, the writing trace on the touch screen is erased through the erasing end, so that the erasing function is realized.
It should be understood that the transmission of the second control signal is similar to the transmission of the first control signal and is not described in detail herein.
In this application, similar to the erasing function, the control unit 231 may control the stylus pen 20 to transmit a third control signal to the touch screen 11 to implement the writing function when it is determined that the second condition is satisfied. The second condition is: the M frames of signals continuously received by the first electrode 221 are not all the same as the first preset signal, and the M frames of signals received by the second electrode 211 in the time period corresponding to the N frames of signals are all the same as the first preset signal. The second control signal is used to instruct the touch screen 11 to enter the writing mode. M is a positive integer, and the values of M and N can be the same or different.
It should be understood that, after the touch screen 11 receives the second control signal, an associated process (or instruction) may be invoked, which is effective to cause the touch screen 11 to display a writing trace at the contact position of the writing end 21 and the touch screen 11. It will be understood by those skilled in the art that the "touch screen 11 enters the writing mode" may be understood as the touch screen 11 invoking the above-described process.
It should be understood that the transmission of the third control signal is similar to the transmission of the first control signal and is not described in detail herein.
Optionally, after the touch screen 11 enters the writing mode, a specific identifier may be presented on the touch screen 11 to the user, and the user may know that the touch screen enters the writing mode by seeing the specific identifier. The specific mark may be a specific pattern, a specific character, or the like, which is not limited in this application.
Alternatively, after the touch screen 11 enters the writing mode, the control unit 231 may control the stylus pen 20 to send a writing signal to the touch screen 11 to write a trace on the touch screen 11.
Illustratively, the writing signal may be transmitted by the second electrode 211. That is, the second electrode 211 has receiving and transmitting functions, and the receiving and transmitting functions are time-division multiplexed. Alternatively, the writing signal may also be integrated with the fourth electrode 212. The fourth electrode 212 may transmit a writing signal. The writing signal may be a signal having a specific frame format, which may be different from the second preset signal, but is not limited thereto.
Specifically, the control unit 231 may transmit the writing signal to the second transmitting unit 252, encode the writing signal by the second transmitting unit 252, and output the encoded writing signal to the second electrode 211 or the fourth electrode 212, and the second electrode 211 or the fourth electrode 212 transmits the encoded writing signal.
Alternatively, after transmitting the writing signal, the control unit 231 may continuously determine whether the second condition is satisfied. And if the second condition is met, continuing to send the writing signal. Otherwise, the control unit 231 controls the interaction unit 241 to transmit the fourth control signal to the touch screen 11. Wherein the fourth control signal is used to instruct the touch screen 11 to exit the writing mode.
It should be understood that, after the touch screen 11 receives the fourth control signal, the relevant process (or instruction) may be exited, and the process may function to prevent the touch screen 11 from displaying any trace of writing on the contact position of the writing tip 21 and the touch screen 11. It will be understood by those skilled in the art that the "touch screen 11 exits the writing mode" may be understood as the touch screen 11 exiting the above-described process.
Optionally, the electrodes referred to in this application, such as the first electrode 221, the second electrode 211, the third electrode 222 and the fourth electrode 212, are a kind of conductive carrier in the stylus pen, and through the capacitance effect with the interactive device 10, the signals transmitted by the interactive device 10 can be received or transmitted to the interactive device 10. Illustratively, the material of the electrode may be stainless steel or the like.
In summary, the stylus pen provided by the application integrates the functional (transmitting and receiving) electrodes at the erasing end and the writing end respectively, and determines whether the erasing end and the writing end are far away from or close to the touch screen of the interactive device by judging the signals received by the functional electrodes, so that the erasing function can be realized through the erasing end, and the writing function can be realized through the writing end. Moreover, the writing end and the erasing end are respectively arranged at two ends of the handwriting pen, so that the functions of writing and erasing can be respectively realized only by turning over the handwriting pen without operations such as key pressing, and the user experience can be improved.
FIG. 7 is a schematic flow chart of a method for implementing the eraser function provided by the present application. Method 700 may be implemented by stylus 20 described above.
S701, determining whether the first condition is met.
If the first condition is satisfied, executing S702, otherwise, continuing to execute S701.
Reference may be made in particular to the first condition described above.
S702, sending a first control signal to the touch screen to control the trigger screen to enter an eraser mode.
Optionally, the method may further comprise the steps of:
and S703, sending a second preset signal to the touch screen to erase the corresponding writing trace.
S704, whether the first condition is satisfied is determined.
If the first condition is satisfied, jumping to S703. Otherwise, S705 is performed.
S705, sending a second control signal to the touch screen, and indicating the touch screen to exit the eraser mode.
For further details regarding method 700, reference may be made to the above description of stylus 20, which is not repeated here.
Fig. 8 is a schematic structural diagram of an example of a stylus pen provided in the embodiment of the present application, where the stylus pen 80 may be the stylus pen 20 described above. As shown in fig. 8, the stylus pen 80 may include: a first electrode 801, a processing unit 803 and a second electrode 805. Optionally, the stylus may also include a third electrode 802.
The first electrode 801 may correspond to the first electrode 221, and the second electrode 805 may correspond to the second electrode 211.
The processing unit 803 is configured to send a first control signal to the touch screen if it is determined that a first condition is satisfied, where the first condition is: the N frames of signals continuously received by the first electrode 801 are all the same as a first preset signal, and the N frames of signals received by the second electrode 805 in a time period corresponding to the N frames of signals are not all the same as the first preset signal, where N is a positive integer, a frame format of the first preset signal is the same as a frame format of a signal sent by the touch screen, and the first control signal is used to instruct the touch screen to enter an eraser mode.
Optionally, the processing unit 803 is further configured to: and controlling the stylus pen 80 to send a second preset signal to the touch screen, wherein the second preset signal is used for erasing writing traces on the touch screen.
Optionally, after sending the second preset signal, the processing unit 803 is further configured to: determining whether the first condition is satisfied; if the first condition is met, controlling the stylus pen 80 to send the second preset signal to the touch screen; and if the first condition is not met, controlling the stylus pen 80 to send a second control signal to the touch screen, wherein the second control signal is used for indicating the touch screen to exit the eraser mode.
Optionally, the second preset signal may be sent to the trigger screen through the first electrode 801.
Optionally, the second preset signal may be sent to the trigger screen through the third electrode 802.
In one approach, the stylus may also include a storage unit 804. The storage unit 804 may store one or more programs that, when executed by the processing unit 804, cause the stylus 80 to perform the method 700 described above.
Alternatively, the processing unit 804 may be a processor or a controller. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. A processor may also be a combination of computing functions, e.g., a combination of one or more microprocessors, a Digital Signal Processing (DSP) and a microprocessor, or the like. The storage unit 804 may be a memory.
It will be appreciated that stylus 20, in order to perform the above-described functions, includes corresponding hardware and/or software modules that perform the respective functions. The present application is capable of being implemented in hardware or a combination of hardware and computer software in conjunction with the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, with the embodiment described in connection with the particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the present embodiment, the stylus pen 20 may be divided into functional modules according to the above method, for example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware. It should be noted that the division of the modules in this embodiment is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
The present embodiment also provides a computer-readable storage medium, in which computer instructions are stored, and when the computer instructions are executed on an electronic device, the stylus pen is caused to execute the above method steps to implement the method for adjusting the screen brightness in the above embodiments.
The embodiment also provides a computer program product, which when running on a computer, causes the computer to execute the relevant steps described above, so as to implement the method provided by the present application.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; the memory is used for storing computer execution instructions, and when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip can execute the method provided by the application.
The stylus, the computer-readable storage medium, the computer program product, or the chip provided in this embodiment are all used for executing the corresponding method provided above, so that the beneficial effects achieved by the stylus, the computer-readable storage medium, the computer program product, or the chip can refer to the beneficial effects in the corresponding method provided above, and are not described herein again.
Through the description of the above embodiments, those skilled in the art will understand that, for convenience and simplicity of description, only the division of the above functional modules is used as an example, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a module or a unit may be divided into only one logic function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (17)

1. A stylus, comprising:
the control unit is arranged at the writing end and the erasing end of the handwriting pen respectively;
the erasing end is integrated with a first electrode, and the first electrode is used for receiving signals sent by a touch screen of the interactive equipment;
the writing end is integrated with a second electrode, and the second electrode is used for receiving signals sent by the touch screen;
the control unit is used for controlling the stylus pen to send a first control signal to the touch screen under the condition that a first condition is determined to be met, wherein the first condition is as follows:
the N frames of signals continuously received by the first electrode are all the same as a first preset signal, and the N frames of signals received by the second electrode in a time period corresponding to the N frames of signals are not all the same as the first preset signal,
the frame format of the first preset signal is the same as that of the signal sent by the touch screen, and the first control signal is used for indicating the touch screen to enter an eraser mode.
2. The stylus of claim 1, wherein the control unit is further to:
and controlling the stylus pen to send a second preset signal to the touch screen, wherein the second preset signal is used for erasing writing traces on the touch screen.
3. The stylus of claim 2, wherein the control unit is further configured to:
after controlling the stylus pen to send the second preset signal, determining whether the first condition is met;
if the first condition is met, controlling the stylus pen to send the second preset signal to the touch screen;
and if the first condition is not met, controlling the stylus pen to send a second control signal to the touch screen, wherein the second control signal is used for indicating the touch screen to exit the eraser mode.
4. A stylus according to claim 2 or 3, wherein the first electrode is adapted to send the second predetermined signal to the touch screen.
5. The stylus according to claim 2 or 3, wherein the erasing terminal is further integrated with a third electrode, and the third electrode is configured to transmit the second preset signal to the touch screen.
6. A method for realizing an eraser function is applied to a stylus pen, the stylus pen comprises a writing end and an erasing end which are respectively arranged at two ends of the stylus pen, the erasing end is integrated with a first electrode, the first electrode is used for receiving signals sent by a touch screen of an interactive device, the writing end is integrated with a second electrode, and the second electrode is used for receiving signals sent by the touch screen, and the method comprises the following steps:
under the condition that a first condition is determined to be met, sending a first control signal to the touch screen, wherein the first condition is as follows:
the N frames of signals continuously received by the first electrode are all the same as a first preset signal, and the N frames of signals received by the second electrode in a time period corresponding to the N frames of signals are not all the same as the first preset signal,
the frame format of the first preset signal is the same as that of the signal sent by the touch screen, and the first control signal is used for indicating the touch screen to enter an eraser mode.
7. The method of claim 6, wherein the method further comprises:
and sending a second preset signal to the touch screen, wherein the second preset signal is used for erasing the writing trace on the touch screen.
8. The method of claim 7, wherein the method further comprises:
after the second preset signal is sent, determining whether the first condition is met;
if the first condition is met, sending the second preset signal to the touch screen;
and if the first condition is not met, sending a second control signal to the touch screen, wherein the second control signal is used for indicating the touch screen to exit the eraser mode.
9. The method of claim 7 or 8, wherein said sending a second preset signal to the touch screen comprises:
and sending the second preset signal to the trigger screen through the first electrode.
10. The method of claim 7 or 8, wherein the erasing end is further integrated with a third electrode;
wherein, sending a second preset signal to the touch screen includes:
and sending the second preset signal to the trigger screen through the third electrode.
11. A system comprising an interactive device and a stylus, the interactive device comprising a touch screen, comprising:
a writing end and an erasing end are respectively arranged at two ends of the stylus pen, a first electrode is integrated at the erasing end and used for receiving signals sent by the touch screen, a second electrode is integrated at the writing end and used for receiving signals sent by the touch screen;
under the condition that a first condition is met, the stylus pen sends a first control signal to the touch screen, and the first condition is as follows:
the N frames of signals continuously received by the first electrode are all the same as a first preset signal, and the N frames of signals received by the second electrode in a time period corresponding to the N frames of signals are not all the same as the first preset signal,
the frame format of the first preset signal is the same as that of the signal sent by the touch screen, and the first control signal is used for indicating the touch screen to enter an eraser mode.
12. The system of claim 11, wherein the stylus is further configured to send a second predetermined signal to the touch screen, the second predetermined signal configured to erase a writing trace on the touch screen.
13. The system of claim 12, wherein the stylus, after transmitting the second preset signal, determines whether the first condition is satisfied;
if the first condition is met, the stylus pen sends the second preset signal to the touch screen;
and if the first condition is not met, the stylus pen sends a second control signal to the touch screen, and the second control signal is used for indicating the touch screen to exit the eraser mode.
14. The system of claim 12 or 13, wherein the first electrode is configured to send the second predetermined signal to the trigger screen.
15. The system of claim 12 or 13, wherein the erasing terminal is further integrated with a third electrode, and the third electrode is configured to transmit the second preset signal to the touch screen.
16. A chip system, the chip system includes one or more processors, the chip system is applied to a stylus pen, wherein the stylus pen includes a writing end and an erasing end respectively disposed at two ends of the stylus pen, the erasing end is integrated with a first electrode, the first electrode is used for receiving a signal sent by a touch screen of an interactive device, the writing end is integrated with a second electrode, the second electrode is used for receiving the signal sent by the touch screen, when a program instruction is executed by the one or more processors, the chip system is enabled to execute the following steps:
sending a first control signal to the touch screen under the condition that a first condition is determined to be met, wherein the first condition is that:
the N frames of signals continuously received by the first electrode are all the same as a first preset signal, and the N frames of signals received by the second electrode in a time period corresponding to the N frames of signals are not all the same as the first preset signal,
the frame format of the first preset signal is the same as that of the signal sent by the touch screen, and the first control signal is used for indicating the touch screen to enter an eraser mode.
17. The chip system of claim 16, wherein the chip system further performs the steps of:
and sending a second preset signal to the touch screen, wherein the second preset signal is used for erasing the writing trace on the touch screen.
CN202010136951.7A 2020-03-02 2020-03-02 Handwriting pen and method for realizing eraser function Active CN113342186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010136951.7A CN113342186B (en) 2020-03-02 2020-03-02 Handwriting pen and method for realizing eraser function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010136951.7A CN113342186B (en) 2020-03-02 2020-03-02 Handwriting pen and method for realizing eraser function

Publications (2)

Publication Number Publication Date
CN113342186A true CN113342186A (en) 2021-09-03
CN113342186B CN113342186B (en) 2023-07-11

Family

ID=77467228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010136951.7A Active CN113342186B (en) 2020-03-02 2020-03-02 Handwriting pen and method for realizing eraser function

Country Status (1)

Country Link
CN (1) CN113342186B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023193663A1 (en) * 2022-04-06 2023-10-12 华为技术有限公司 Stylus and terminal device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090153525A1 (en) * 2007-12-12 2009-06-18 Mitac International Corp. Touch pen with erasure function
KR101630658B1 (en) * 2015-11-16 2016-06-24 주식회사 트레이스 Digitizer system for implementing a erasing function using gradient of stylus pen
US20170277284A1 (en) * 2016-03-28 2017-09-28 Samsung Electronics Co., Ltd. Stylus pen, electronic apparatus for receiving signal from stylus pen, and control method thereof
CN107632741A (en) * 2017-10-27 2018-01-26 无锡变格新材料科技有限公司 A kind of direct writing system of instinct type touch-control electronic blank
CN208092684U (en) * 2018-05-08 2018-11-13 深圳市德安里科技有限公司 A kind of writing pencil
CN110377170A (en) * 2019-07-18 2019-10-25 汉王科技股份有限公司 A kind of touch-control handwriting pen and its control method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090153525A1 (en) * 2007-12-12 2009-06-18 Mitac International Corp. Touch pen with erasure function
KR101630658B1 (en) * 2015-11-16 2016-06-24 주식회사 트레이스 Digitizer system for implementing a erasing function using gradient of stylus pen
US20170277284A1 (en) * 2016-03-28 2017-09-28 Samsung Electronics Co., Ltd. Stylus pen, electronic apparatus for receiving signal from stylus pen, and control method thereof
CN107632741A (en) * 2017-10-27 2018-01-26 无锡变格新材料科技有限公司 A kind of direct writing system of instinct type touch-control electronic blank
CN208092684U (en) * 2018-05-08 2018-11-13 深圳市德安里科技有限公司 A kind of writing pencil
CN110377170A (en) * 2019-07-18 2019-10-25 汉王科技股份有限公司 A kind of touch-control handwriting pen and its control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023193663A1 (en) * 2022-04-06 2023-10-12 华为技术有限公司 Stylus and terminal device

Also Published As

Publication number Publication date
CN113342186B (en) 2023-07-11

Similar Documents

Publication Publication Date Title
US10579127B2 (en) Apparatus for driving a touch pad and a portable terminal having the same
EP3239804B1 (en) Control of an electronic device including display and keyboard moveable relative to the display
CN107613131B (en) Application program disturbance-free method, mobile terminal and computer-readable storage medium
CN109828688B (en) Screen damage processing method, mobile terminal and computer readable storage medium
US8149224B1 (en) Computing system with detachable touch screen device
CN106101453A (en) A kind of method controlling screen and terminal
EP3336679A1 (en) Method and terminal for preventing unintentional triggering of a touch key and storage medium
CN103040220A (en) Touch-screen mobile phone case
KR20130089486A (en) Method and apparatus for key inputting in a portable terminal
US10990216B2 (en) Method for adjustment touch screen, touch chip, and electronic terminal
KR20140044585A (en) Method and apparatus for using a portable terminal
CN113342186B (en) Handwriting pen and method for realizing eraser function
CN108920052B (en) Page display control method and related product
TWI671662B (en) Stylus pen and mobile system using the same
KR102554159B1 (en) Mobile terminal and control method
WO2018039914A1 (en) Method for copying data, and user terminal
CN106775406A (en) A kind of false-touch prevention control method of mobile terminal touch screen, device and mobile terminal
CN108664206A (en) Information processing method, device, storage medium and electronic equipment
CN106020673B (en) Control method and electronic equipment
CN111355991B (en) Video playing method and device, storage medium and mobile terminal
CN108513015B (en) Call method and mobile terminal
CN112486354A (en) Touch method of electronic equipment, information transmission method and device of touch component
CA2817318C (en) Graphical display with optical pen input
CN108965576A (en) Call processing method, device, storage medium and electronic equipment
CN111506191B (en) 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