WO2023273526A1 - 笔迹绘制方法、装置、电子设备和可读存储介质 - Google Patents
笔迹绘制方法、装置、电子设备和可读存储介质 Download PDFInfo
- Publication number
- WO2023273526A1 WO2023273526A1 PCT/CN2022/087496 CN2022087496W WO2023273526A1 WO 2023273526 A1 WO2023273526 A1 WO 2023273526A1 CN 2022087496 W CN2022087496 W CN 2022087496W WO 2023273526 A1 WO2023273526 A1 WO 2023273526A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- stylus
- threshold
- touch screen
- electronic device
- sensor
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 90
- 241001422033 Thestylus Species 0.000 claims abstract description 533
- 230000008859 change Effects 0.000 claims abstract description 125
- 230000004044 response Effects 0.000 claims abstract description 95
- 238000004590 computer program Methods 0.000 claims description 11
- 230000005540 biological transmission Effects 0.000 abstract description 7
- 230000007547 defect Effects 0.000 abstract description 5
- 238000012545 processing Methods 0.000 description 53
- 238000004891 communication Methods 0.000 description 48
- 238000010586 diagram Methods 0.000 description 33
- 230000008569 process Effects 0.000 description 25
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 25
- 238000007726 management method Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 13
- 230000001939 inductive effect Effects 0.000 description 11
- 238000013507 mapping Methods 0.000 description 11
- 230000000694 effects Effects 0.000 description 10
- 230000020347 spindle assembly Effects 0.000 description 10
- 230000005674 electromagnetic induction Effects 0.000 description 7
- 230000003993 interaction Effects 0.000 description 6
- 230000033001 locomotion Effects 0.000 description 6
- 230000009471 action Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000007423 decrease Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 230000005672 electromagnetic field Effects 0.000 description 3
- 239000000696 magnetic material Substances 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 239000000463 material Substances 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008054 signal transmission Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 238000001179 sorption measurement Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- HBBGRARXTFLTSG-UHFFFAOYSA-N Lithium ion Chemical compound [Li+] HBBGRARXTFLTSG-UHFFFAOYSA-N 0.000 description 1
- 229910018487 Ni—Cr Inorganic materials 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000009530 blood pressure measurement Methods 0.000 description 1
- 239000003990 capacitor Substances 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- VNNRSPGTAMTISX-UHFFFAOYSA-N chromium nickel Chemical compound [Cr].[Ni] VNNRSPGTAMTISX-UHFFFAOYSA-N 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 229910052739 hydrogen Inorganic materials 0.000 description 1
- 239000001257 hydrogen Substances 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 229910001416 lithium ion Inorganic materials 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000010355 oscillation Effects 0.000 description 1
- 238000010422 painting Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0354—Pointing 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/03545—Pens or stylus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
- G06F3/0383—Signal control means within the pointing device
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/04162—Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
- G06F3/0442—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using active external devices, e.g. active pens, for transmitting changes in electrical potential to be received by the digitiser
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction 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/0488—Interaction 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
- G06F3/04883—Interaction 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 for inputting data by handwriting, e.g. gesture or text
Definitions
- the embodiment of the present application relates to terminal technologies, and in particular to a handwriting drawing method, device, electronic equipment and readable storage medium.
- touch technology With the development of touch technology, more and more electronic devices adopt touch mode for human-computer interaction.
- the user can operate the touch screen of the electronic device through the stylus to provide input to the electronic device, and the electronic device performs corresponding operations based on the input of the stylus.
- electronic devices can display the handwriting of the stylus on the touch screen based on the pressure-sensitive signal of the tip of the stylus and the touch (touch panel, TP) signal from the stylus, so as to realize writing, painting etc.
- the response speed of electronic equipment to draw handwriting is slow, the control precision is low, and it is prone to phenomena such as poor writing and ink leakage.
- the embodiments of the present application provide a handwriting drawing method, device, electronic equipment and readable storage medium, which can improve the response speed and control precision of handwriting drawing by the electronic equipment.
- the embodiment of the present application provides a handwriting drawing method.
- the execution subject of the method may be an electronic device, or a chip in the electronic device.
- the following description takes the electronic device as an example for execution.
- the electronic device includes a touch screen, and the touch screen includes a touch sensor TP sensor.
- the first threshold and the second threshold of the capacitance variation of the TP sensor may be preset, and the first threshold and the second threshold are different.
- the electronic device can detect the capacitance change of the TP sensor, and judge whether to execute the operation of drawing handwriting. Wherein, the electronic device performs the operation of drawing handwriting in response to detecting that the capacitance change of the TP sensor is greater than or the first threshold, and stops performing the operation of drawing handwriting in response to detecting that the capacitance change of the TP sensor is less than the second threshold.
- the electronic device because the electronic device is not based on the pressure-sensitive signal of the tip of the stylus, but judges whether to execute the operation of drawing handwriting based on the capacitance change of the TP sensor, it can avoid the time delay of Bluetooth transmission and improve the electronic device.
- the response speed of drawing handwriting can also avoid the problem of low control precision of electronic equipment due to the inherent defect of the pressure sensor at the tip of the stylus.
- the electronic device judges whether to execute the operation of drawing handwriting based on the capacitance change of the TP sensor, it can also truly realize the zero pressure of the stylus, that is, when the user holds the stylus and touches the touch screen lightly or tilts to write , to achieve the purpose of electronic equipment drawing handwriting.
- the embodiment of the present application sets the first threshold for the electronic device to draw handwriting when the stylus is close to the touch screen, and sets the second threshold for the electronic device to stop drawing handwriting when the stylus is away from the touch screen, which can avoid the ping-pong effect of the electronic device when drawing handwriting .
- the first threshold preset in the embodiment of the present application is the threshold value of the capacitance change when the user puts down the pen (that is, the stylus is close to the touch screen), and the second threshold is the value when the user lifts the pen (that is, touches the touch screen).
- the electronic device may perform the operation of drawing handwriting in response to detecting that the stylus is close to the touch screen, and the capacitance change of the TP sensor is greater than or equal to a first threshold;
- the stylus is far away from the touch screen, and the capacitance variation of the TP sensor is less than a second threshold, and the operation of drawing handwriting is stopped, and the first threshold is different from the second threshold.
- the electronic device performing the operation of drawing handwriting can be understood as water coming out of the stylus pen
- the electronic device stopping the operation of drawing handwriting can be understood as water coming out of the stylus pen.
- the first threshold and the second threshold are obtained based on "the capacitance change of the TP sensor when the stylus touches the touch screen", and the first threshold is the TP sensor when the distance between the stylus and the touch screen is the first distance Capacitance variation, the second threshold is the capacitance variation of the TP sensor when the distance between the stylus and the touch screen is the second distance.
- the first distance is 0.2 mm
- the second distance is 0.5 mm.
- the ratio of the first threshold to the "capacitance change of the TP sensor when the stylus touches the touch screen” is the first ratio
- the ratio of the second threshold to the "capacitance change of the TP sensor when the stylus touches the touch screen” is the second ratio.
- the purpose of setting the first threshold and the second threshold differently is to avoid the ping-pong effect of the electronic device performing the operation of drawing handwriting, and it can also be understood that it can prevent the stylus from going back and forth between water outlet and water outlet Toggle to avoid the ping-pong effect of the stylus.
- the first threshold is set to be greater than the second threshold.
- the TP sensor is composed of multiple electrodes. Due to the influence of the electrode manufacturing process, when the stylus touches different positions of the touch screen of the electronic device, the capacitance of the TP sensor changes differently. This will lead to a large difference in the height of the stylus pen coming out of the water and the height of the pen out of the water at different positions of the touch screen, and the user experience is poor.
- the embodiment of the present application can pre-test and obtain the first threshold and the second threshold of each position of the touch screen during the manufacturing stage of the electronic device, and then store the first threshold and the second threshold of each position of the touch screen in the electronic device.
- second threshold That is to say, the first threshold of the stylus at the first position of the touch screen is different from the first threshold of the stylus at the second position of the touch screen.
- Both the first location and the second location are locations on the touch screen.
- the electronic device can self-learn the first threshold and the second threshold of each position of the touch screen, and store the first threshold and the second threshold of each position of the touch screen.
- the electronic device may detect the position of the stylus on the touch screen in response to detecting that the stylus is close to the touch screen, and then query the stylus based on the first position of the stylus on the touch screen.
- the first threshold of the first position in response to the capacitance variation of the TP sensor at the first position being greater than or equal to the first threshold of the first position, the operation of drawing handwriting is performed.
- the electronic device in response to detecting that the stylus is far away from the touch screen, detects the position of the stylus on the touch screen; based on the first position of the stylus on the touch screen, query The second threshold at the first position; in response to the capacitance change of the TP sensor at the first position being less than the second threshold at the first position, stop performing the operation of drawing handwriting.
- the electronic device can use the first threshold and the second threshold at the first position to determine whether to perform the operation of drawing handwriting.
- it can ensure that different positions of the touch screen
- the height of the stylus pen out of the water is the same as that of the pen out of the water, and on the other hand, the control accuracy of the electronic device for drawing handwriting can be improved.
- the electronic device may divide the touch screen into a first area and a second area, the first area includes at least one first location, and the second area includes at least one second location. It should be understood that the size, shape, etc. of the first region and the second region may be the same or different.
- the electronic device may record a first threshold value of the first area in response to the stylus touching the first position, and record a first threshold of the second area in response to detecting that the stylus touches the second position .
- the electronic device may record the second threshold value of the first area in response to the stylus touching the first position, and record the second threshold value of the second area in response to detecting that the stylus touches the second position. the second threshold.
- the electronic device may use the first threshold of the first area as the first threshold of the first location.
- the electronic device may record the third position in response to detecting that the stylus touches the third position.
- the first threshold of the area to which the location belongs, the third location is located outside the first area and the second area, that is, the first location is located outside the area to which the third location belongs.
- the electronic device has self-learned the first threshold of the third area, but has not learned the first thresholds of the first area and the second area.
- the electronic device when the electronic device responds to the first position of the stylus on the touch screen and inquires about the first threshold at the first position, the stored first threshold cannot be found. Therefore, the electronic device may set the preset Set the first threshold as the first threshold of the first position. In an embodiment, if the electronic device cannot find the stored first threshold, the electronic device may also use the first threshold of the location closest to the first location among the stored first thresholds as the first threshold. The first threshold of position.
- the manner of recording the first threshold value of the first area may be: the electronic device responds to detecting that the stylus touches the first position, acquiring the The capacitance change of the TP sensor at the first position; based on the capacitance change and the first ratio of the TP sensor at the first position, the first threshold of the first region is obtained.
- the electronic device can obtain the first position of the first area corresponding to each first position based on the capacitance variation of the TP sensor at each first position and the first ratio.
- Threshold based on the first threshold of the first area corresponding to each first position, the first threshold of the first area is acquired.
- the first threshold value of the first region is acquired based on the first threshold value of the first region corresponding to each first position, such as by adopting an average method or a weighted average method.
- the capacitance change of the TP sensor can be preprocessed to improve the capacitance change of the TP sensor. Accuracy, thereby improving the accuracy of the first threshold and the second threshold.
- the electronic device when it detects that the stylus touches the first position, it may also receive a pressure-sensitive signal and a touch TP signal from the stylus. The electronic device may respond to detecting that the stylus touches the first position, and the number of times of the pressure-sensitive signal is greater than a preset number, the number of reported points of the TP signal is greater than a preset number, and the stylus The angle between the touch screen and the touch screen is within a preset angle range, and the capacitance variation of the TP sensor at the first position is acquired.
- Such a setting can ensure that the stylus stays on the touch screen for a long enough time, so that the electronic device can more accurately obtain the capacitance change of the TP sensor when the stylus touches the position, so as to improve the first threshold and the second threshold of the position. Threshold Accuracy.
- the user may touch the first position, the second position, etc. multiple times.
- the electronic device may obtain the first threshold value of the first position based on the capacitance variation of the TP sensor each time the first position is touched, and then update the first threshold value of the first position.
- the electronic device may use the second threshold in the first area as the second threshold in the first position.
- the electronic device may record the third position in response to detecting that the stylus touches the third position.
- a second threshold of the area to which the location belongs, the third location is outside the first area and the second area.
- the electronic device has self-learned the second threshold in the third area, but has not learned the second thresholds in the first area and the second area.
- the electronic device inquires about the second threshold of the first position in response to the stylus at the first position of the touch screen, the stored second threshold cannot be found. Therefore, the electronic device may use the preset second threshold as the The second threshold for the first position.
- the electronic device may also use the second threshold value of the position closest to the first position among the stored second threshold values as the first threshold value.
- the second threshold for position may also use the second threshold value of the position closest to the first position among the stored second threshold values as the first threshold value.
- the manner of recording the second threshold value of the first area may be: the electronic device responds to detecting that the stylus touches the first position, acquiring the The capacitance change amount of the TP sensor at the first position; based on the capacitance change amount and the second ratio of the TP sensor at the first position, the second threshold value of the first region is obtained.
- the electronic device can obtain the second value of the first area corresponding to each first position based on the capacitance variation of the TP sensor at each first position and the second ratio.
- Threshold based on the second threshold of the first area corresponding to each first position, the second threshold of the first area is acquired.
- the second threshold value of the first region is acquired based on the second threshold value of the first region corresponding to each first position, such as using an average method or a weighted average method.
- the capacitance change of the TP sensor can be preprocessed to improve the capacitance change of the TP sensor. Accuracy, thereby improving the second threshold and the accuracy of the second threshold.
- the electronic device when it detects that the stylus touches the first position, it may also receive a pressure-sensitive signal and a touch TP signal from the stylus. The electronic device may respond to detecting that the stylus touches the first position, and the number of times of the pressure-sensitive signal is greater than a preset number, the number of reported points of the TP signal is greater than a preset number, and the stylus The angle between the touch screen and the touch screen is within a preset angle range, and the capacitance variation of the TP sensor at the first position is acquired.
- Such a setting can ensure that the stylus stays on the touch screen for a long enough time, so that the electronic device can more accurately obtain the capacitance change of the TP sensor when the stylus touches the position, so as to improve the second threshold and the second threshold of the position. Threshold Accuracy.
- the electronic device can obtain the second threshold value of the first position based on the capacitance variation of the TP sensor each time the first position is touched, and then update the second threshold value of the first position.
- the angle between the stylus and the touch screen will affect the capacitance variation of the TP sensor, and then affect the first threshold and the second threshold of the first position.
- the angle between the stylus and the touch screen may be considered.
- the electronic device may obtain a first angle between the stylus and the touch screen, and then record the first angle in the first area.
- the first threshold under the corner Specifically, in response to detecting that the stylus touches the first position, the electronic device may detect that the angle between the stylus and the touch screen is a first angle, and the capacitance of the TP sensor changes. quantity.
- the electronic device can obtain the first threshold value of the first region by the capacitance change amount and the first ratio of the TP sensor at the first position, and record correspondingly with the first included angle at the same time, that is, obtain the first threshold value under the first included angle in the first region.
- first threshold is
- the electronic device can detect that the angle between the stylus and the touch screen is the second angle, and the capacitance of the TP sensor can be detected in response to detecting that the stylus touches the second position. amount of change.
- the electronic device can obtain the first threshold value of the second area by the capacitance change amount and the first ratio of the TP sensor at the second position, and simultaneously record it corresponding to the first included angle, that is, obtain the second included angle in the second area. the first threshold of .
- the electronic device can acquire the angle between the touch pen and the touch screen in response to the first position of the touch pen on the touch screen;
- the included angle between the touch screens is the first included angle, and the first threshold value under the first included angle in the first area is used as the first threshold value under the first included angle at the first position.
- the electronic device may use the preset first threshold value as the first position The first threshold value under the first included angle of .
- the electronic device may use the first threshold value in the first area and the first included angle The first threshold at the included angle with the smallest difference is used as the first threshold at the first included angle at the first position.
- the electronic device may set the distance closest to the first position, and the The first threshold under the angle with the same angle or the minimum difference is used as the first threshold under the first angle at the first position.
- the electronic device when the electronic device self-learns the first threshold and the second threshold of each area of the touch screen, considering the influence of the included angle between the stylus and the touch screen, it can learn the lower and lower values of each included angle in each area of the touch screen.
- the first threshold and the second threshold of the stylus and then when the stylus draws handwriting, the electronic device can query the first threshold under the angle of the stylus based on the position of the stylus on the touch screen and the angle between the stylus and the touch screen.
- the first threshold and the second threshold can further improve the control accuracy of the drawing comparison operation.
- the embodiment of the present application provides a handwriting drawing device.
- the handwriting drawing device may be the electronic device as described in the first aspect above, or a chip in the electronic device.
- the electronic device includes a touch screen, and the touch screen includes Touch sensorTP sensor.
- the handwriting drawing device includes:
- a processing module configured to perform an operation of drawing handwriting in response to detecting that the stylus is close to the touch screen, and the capacitance variation of the TP sensor is greater than or equal to a first threshold, and, in response to detecting that the stylus is detected away from the touch screen, and the capacitance variation of the TP sensor is less than a second threshold, stop performing the operation of drawing handwriting, and the first threshold is different from the second threshold.
- the first threshold is greater than the second threshold.
- the first threshold of the stylus at the first position of the touch screen is different from the first threshold of the stylus at the second position of the touch screen.
- the processing module is specifically configured to, in response to detecting that the stylus is close to the touch screen, detect the position of the stylus on the touch screen; In the first position of the touch screen, query the first threshold of the first position; in response to the capacitance variation of the TP sensor at the first position being greater than or equal to the first threshold of the first position, perform drawing handwriting operation.
- the processing module is specifically configured to, in response to detecting that the stylus is far away from the touch screen, detect the position of the stylus on the touch screen; In the first position of the touch screen, query the second threshold of the first position; in response to the capacitance variation of the TP sensor at the first position being less than the second threshold of the first position, stop performing the process of drawing handwriting operate.
- the touch screen includes a first area and a second area, the first area includes at least one first location, and the second area includes at least one second location.
- the storage module is configured to, in response to detecting that the stylus touches the first position, record the first threshold of the first area, and in response to detecting the touch The pen touches the second location, recording a first threshold for the second area.
- the processing module is specifically configured to use the first threshold of the first region as the first threshold of the first position.
- the storage module is further configured to, in response to detecting that the stylus touches a third position, record a first threshold value of an area to which the third position belongs, and the third position is located in the outside the first area and the second area.
- the processing module is specifically configured to use a preset first threshold as the first threshold of the first position.
- the processing module is specifically configured to, in response to detecting that the stylus touches the first position, acquire the capacitance variation of the TP sensor at the first position; based on the first The capacitance variation of the TP sensor at the position and the first ratio are used to obtain the first threshold of the first region.
- the processing module is specifically configured to obtain the first threshold value of the first region corresponding to each first position based on the capacitance variation of the TP sensor at each first position and the first ratio ; Obtain the first threshold of the first area based on the first threshold of the first area corresponding to each first position.
- the transceiver module is configured to receive a pressure-sensitive signal and a touch TP signal from the stylus.
- a processing module specifically configured to respond to detecting that the stylus touches the first position, and the number of times of the pressure-sensitive signal is greater than a preset number, the number of reported points of the TP signal is greater than a preset number, and the The angle between the stylus and the touch screen is within a preset angle range, and the capacitance variation of the TP sensor at the first position is acquired.
- the storage module is further configured to replace or update the first threshold of the first region.
- the processing module is configured to, in response to detecting that the stylus touches the first position, detect an included angle between the stylus and the touch screen.
- a storage module configured to record a first threshold at the first angle in the first area based on the angle between the stylus and the touch screen being a first angle.
- a processing module further configured to detect an angle between the stylus and the touch screen in response to detecting that the stylus touches the second position;
- a storage module further configured to The included angle with the touch screen is a second included angle, and the first threshold value under the second included angle in the first area is recorded.
- the processing module is further configured to, in response to the first position of the stylus on the touch screen, detect an angle between the stylus and the touch screen; based on the The included angle between the stylus and the touch screen is the first included angle, and the first threshold under the first included angle in the first area is used as the first threshold of the first position.
- an embodiment of the present application provides an electronic device, including a processor and a memory, the memory is used to store code instructions; the processor is used to run code instructions, so that the electronic device can perform any one of the first aspect or the first aspect. method in an implementation.
- an embodiment of the present application provides a handwriting drawing system, including the electronic device described in the third aspect above, and a stylus.
- the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium stores instructions, and when the instructions are executed, the computer executes the computer according to the first aspect or any implementation manner of the first aspect. Methods.
- an embodiment of the present application provides a computer program product, including a computer program.
- the computer program When the computer program is run, the computer executes the method in the first aspect or any implementation manner of the first aspect.
- FIG. 1 is a schematic diagram of a scene applicable to an embodiment of the present application
- FIG. 2A is a schematic structural diagram of a stylus provided in an embodiment of the present application.
- FIG. 2B is a schematic diagram of a partially disassembled structure of the stylus provided in the embodiment of the present application.
- FIG. 3 is a schematic diagram of the interaction between the stylus and the electronic device provided by the embodiment of the present application.
- FIG. 4 is a schematic diagram of the assembly of the stylus and the wireless keyboard provided by the embodiment of the present application.
- FIG. 5A is a schematic diagram of a stylus provided in an embodiment of the present application stored in a storage portion of a wireless keyboard;
- FIG. 5B is a schematic side view of the stylus provided by the embodiment of the present application when it is stored in the storage part of the wireless keyboard;
- FIG. 6 is a schematic diagram of a hardware structure of a stylus provided in an embodiment of the present application.
- FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present application.
- FIG. 8 is a schematic diagram of a hardware structure of a wireless keyboard provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of the interaction between the stylus and the electronic device provided by the embodiment of the present application.
- FIG. 10 is a schematic diagram of another scenario applicable to the embodiment of the present application.
- FIG. 11A is a schematic diagram of changes in the capacitance value of the touch screen
- FIG. 11B is another schematic diagram of changes in the capacitance value of the touch screen.
- FIG. 12 is a schematic diagram of drawing handwriting of a stylus by an existing electronic device
- Fig. 13 is a schematic flow chart of an embodiment of the handwriting drawing method provided by the embodiment of the present application.
- FIG. 14 is a schematic diagram of the capacitance variation of the TP sensor provided by the embodiment of the present application.
- Fig. 15 is a schematic diagram of handwriting drawing provided by the embodiment of the present application.
- Figure 16A is a schematic diagram of the TP sensor provided by the embodiment of the present application.
- Fig. 16B is another schematic diagram of the TP sensor provided by the embodiment of the present application.
- Fig. 17 is a schematic diagram of the height of the stylus at various positions on the touch screen provided by the embodiment of the present application, and the height of the stylus when it is lifted;
- FIG. 18 is a schematic flow diagram of obtaining the first threshold and the second threshold of each position on the touch screen provided by the embodiment of the present application;
- Fig. 19 is a schematic flowchart of another embodiment of the handwriting drawing method provided by the embodiment of the present application.
- FIG. 20 is a schematic structural diagram of a handwriting drawing device provided by an embodiment of the present application.
- FIG. 1 is a schematic diagram of a scene applicable to an embodiment of the present application.
- the scene includes a stylus (stylus) 100 , an electronic device 200 and a wireless keyboard 300 .
- the electronic device 200 is a tablet computer (tablet) as an example for illustration.
- the stylus 100 and the wireless keyboard 300 may provide input to the electronic device 200 , and the electronic device 200 performs an operation in response to the input based on the stylus 100 or the wireless keyboard 300 .
- a touch area can be set on the wireless keyboard 300 , and the stylus 100 can operate the touch area of the wireless keyboard 300 to provide input to the wireless keyboard 300 , and the wireless keyboard 300 can perform an operation in response to the input based on the stylus 100 .
- between the stylus 100 and the electronic device 200, between the stylus 100 and the wireless keyboard 300, and between the electronic device 200 and the wireless keyboard 300, can be interconnected through a communication network to realize wireless communication. signal interaction.
- the communication network can be but not limited to: WI-FI hotspot network, WI-FI point-to-point (peer-to-peer, P2P) network, Bluetooth network, zigbee network or near field communication (near field communication, NFC) network and other short-distance Communications network.
- the stylus 100 can be, but not limited to: an inductive pen and a capacitive pen.
- the electronic device 200 has a touch screen 201.
- the touch screen 201 of the electronic device 200 interacting with the stylus 100 needs to integrate an electromagnetic induction board. Coils are distributed on the electromagnetic induction board, and coils are also integrated in the inductive pen. Based on the principle of electromagnetic induction, within the range of the magnetic field generated by the electromagnetic induction board, as the inductive pen moves, the inductive pen can store electric energy. The inductive pen can transmit the accumulated electric energy to the electromagnetic induction board through the coil in the inductive pen through free oscillation.
- the electromagnetic induction board can scan the coil on the electromagnetic induction board based on the electric energy from the inductive pen, and calculate the position of the inductive pen on the touch screen 201 .
- the touch screen in the electronic device 200 may also be called a touch screen, and the stylus may be called a stylus.
- Capacitive pens can include: passive capacitive pens and active capacitive pens.
- a passive capacitive pen can be called a passive capacitive pen, and an active capacitive pen can be called an active capacitive pen.
- One or more electrodes can be set in the active capacitive pen (for example, inside the pen tip), and the active capacitive pen can transmit signals through the electrodes.
- the stylus 100 is an active capacitive stylus
- an electrode array needs to be integrated on the touch screen 201 of the electronic device 200 interacting with the stylus 100 .
- the electrode array may be a capacitive electrode array.
- the electronic device 200 can receive a signal from the active capacitive stylus through the electrode array, and when receiving the signal, recognize the position of the active capacitive stylus on the touch screen based on the change of the capacitance value on the touch screen 201, and actively The inclination angle of the capacitive pen.
- the stylus used in the embodiment of the present application is an active capacitive stylus, which may be referred to as an active stylus for short.
- FIG. 2A is a schematic structural diagram of a stylus provided by an embodiment of the present application.
- the stylus 100 may include a pen tip 10 , a pen barrel 20 and a back cover 30 .
- the interior of the pen holder 20 is a hollow structure.
- the nib 10 and the back cover 30 are located at both ends of the pen holder 20 respectively.
- the back cover 30 and the pen holder 20 can be plugged or engaged. See description of Figure 2B.
- FIG. 2B is a schematic diagram of a partially disassembled structure of the stylus provided by the embodiment of the present application.
- the stylus 100 further includes a spindle assembly 50 , the spindle assembly 50 is located in the pen holder 20 , and the spindle assembly 50 is slidably disposed in the pen holder 20 .
- the spindle assembly 50 has an external thread 51
- the nib 10 includes a writing end 11 and a connecting end 12 , wherein the connecting end 12 of the pen point 10 has an internal thread (not shown) matching the external thread 51 .
- the connecting end 12 of the nib 10 protrudes into the pen holder 20 and is threadedly connected with the external thread 51 of the spindle assembly 50 .
- the connection between the connecting end 12 of the pen tip 10 and the spindle assembly 50 may also be detachably connected by snap-fitting or the like. Through the detachable connection between the connecting end 12 of the nib 10 and the spindle assembly 50 , the replacement of the nib 10 is realized.
- a pressure-sensitive assembly 60 is provided on the main shaft assembly 50, and a part of the pressure-sensitive assembly 60 is fixedly connected with a fixed structure in the pen holder 20, and a part of the pressure-sensitive assembly 60 is connected to the main shaft assembly 50. Fixed connection.
- the circuit board 70 detects the pressure of the writing end 11 of the nib 10 according to the deformation of the pressure-sensitive component 60, thereby The line thickness of the writing end 11 is controlled according to the pressure of the writing end 11 of the nib 10 .
- the pressure detection of the pen tip 10 includes but not limited to the above methods.
- a pressure sensor can also be provided in the writing end 11 of the pen point 10 so that the pressure of the pen point 10 can be detected by the pressure sensor.
- the stylus 100 further includes a plurality of electrodes, for example, the plurality of electrodes may be the first emitting electrode 41 , the ground electrode 43 and the second emitting electrode 42 .
- the first emitter electrode 41 , the ground electrode 43 and the second emitter electrode 42 are all electrically connected to the circuit board 70 .
- the first emitter electrode 41 can be located in the nib 10 and close to the writing end 11, and the circuit board 70 can be configured as a control board that can provide signals to the first emitter electrode 41 and the second emitter electrode 42 respectively, and the first emitter electrode 41 is used for Transmitting the first signal, when the first emitting electrode 41 is close to the touch screen 201 of the electronic device 200, a coupling capacitance can be formed between the first emitting electrode 41 and the touch screen 201 of the electronic device 200, so that the electronic device 200 can receive first signal.
- the second transmitting electrode 42 is used for transmitting a second signal, and the electronic device 200 can determine the inclination angle of the stylus 100 according to the received second signal.
- the second emitting electrode 42 may be located on the inner wall of the pen holder 20 . In one example, the second emitter electrode 42 may also be located on the spindle assembly 50 .
- the ground electrode 43 can be located between the first emitter electrode 41 and the second emitter electrode 42, or the ground electrode 43 can be located on the outer periphery of the first emitter electrode 41 and the second emitter electrode 42, and the ground electrode 43 is used to reduce the first emitter electrode 43.
- the electrode 41 and the second emitter electrode 42 are coupled to each other.
- the electronic device 200 When the electronic device 200 receives the first signal from the stylus 100 , the capacitance value at the corresponding position of the touch screen 201 will change. Accordingly, the electronic device 200 can determine the position of the stylus 100 (or the tip of the stylus 100 ) on the touch screen 201 based on the change of the capacitance value on the touch screen 201 . In addition, the electronic device 200 may acquire the inclination angle of the stylus 100 by using a double-tip projection method in the inclination detection algorithm. Wherein, the positions of the first emitting electrode 41 and the second emitting electrode 42 in the stylus 100 are different, so when the electronic device 200 receives the first signal and the second signal from the stylus 100, the two signals on the touch screen 201 The capacitance value at each position will change.
- the electronic device 200 can obtain the tilt angle of the stylus 100 according to the distance between the first emitter electrode 41 and the second emitter electrode 42, and the distance between two positions on the touch screen 201 where the capacitance value changes,
- the tilt angle of the stylus 100 For more detailed acquisition of the inclination angle of the stylus 100 , reference may be made to the relevant description of the double-tip projection method in the prior art.
- the stylus 100 further includes: a battery assembly 80 , and the battery assembly 80 is used to provide power to the circuit board 70 .
- the battery pack 80 may include a lithium ion battery, or, the battery pack 80 may include a nickel-chromium battery, an alkaline battery or a nickel-hydrogen battery or the like.
- the battery included in the battery assembly 80 can be a rechargeable battery or a disposable battery, wherein, when the battery included in the battery assembly 80 is a rechargeable battery, the stylus 100 can charge the battery assembly wirelessly. 80 to charge the battery.
- the electronic device 200 can send an uplink to the stylus 100 through the electrode array integrated on the touch screen 201.
- the stylus 100 can receive the uplink signal through the receiving electrodes, and the stylus 100 can transmit the downlink signal through the transmitting electrodes (such as the first transmitting electrode 41 and the second transmitting electrode 42 ).
- the downlink signal includes the above-mentioned first signal and second signal.
- the uplink signal and the downlink signal may be square wave signals.
- the wireless keyboard 300 may include a first part 301 and a second part 302 .
- the wireless keyboard 300 may include: a keyboard body and a keyboard case.
- the first part 301 may be a keyboard case
- the second part 302 is a keyboard body.
- the first part 301 is used to place the electronic device 200
- the second part 302 may be provided with buttons, a touch panel, etc. for user operations.
- the first part 301 and the second part 302 of the wireless keyboard 300 need to be opened, and when the wireless keyboard 300 is not in use, the first part 301 and the second part 302 of the wireless keyboard 300 can be closed.
- the first part 301 and the second part 302 of the wireless keyboard 300 can be rotatably connected.
- the first part 301 and the second part 302 may be connected by a rotating shaft or a hinge, or, in some examples, the first part 301 and the second part 302 may be rotationally connected by a flexible material (such as leather material or cloth material) .
- the first part 301 and the second part 302 can be integrally formed, and the joint between the first part 301 and the second part 302 is thinned, so that the connection between the first part 301 and the second part 302 The connection can be bent.
- the connection manner between the first part 301 and the second part 302 may include but not limited to the above-mentioned several rotational connection manners.
- the first part 301 may include at least two rotatably connected brackets.
- the first part 301 includes a first bracket 301a and a second bracket 301b, which are rotationally connected between the first bracket 301a and the second bracket 301b.
- the first bracket 301a and the second bracket can be used 301b together support the electronic device 200 (refer to FIG. 1 ).
- the first bracket 301 a supports the second bracket 301 b
- the second bracket 301 b supports the electronic device 200 .
- the second bracket 301b is connected to the second part 302 in rotation.
- the wireless keyboard 300 may be provided with a storage portion 303 for storing the stylus 100 .
- the storage portion 303 is a cylindrical cavity, and when stored, the stylus 100 is inserted into the storage cavity along the direction of the arrow in FIG. 4 .
- the second part 302 and the second bracket 301 b are rotationally connected through a connection part 304 , and a receiving part 303 is disposed in the connection part 304 .
- the connecting part 304 may be a rotating shaft.
- FIG. 5A is a schematic diagram of the stylus provided by the embodiment of the present application stored in the storage part of the wireless keyboard
- FIG. 5B is a schematic side view of the stylus provided by the embodiment of the present application stored in the storage part of the wireless keyboard.
- the receiving portion 303 is a circular cavity, and the inner diameter of the receiving portion 303 is larger than the outer diameter of the stylus 100 .
- a magnetic material may be disposed on the inner wall of the storage portion 303 , and a magnetic material may be disposed in the stylus 100 .
- the stylus 100 is attracted in the storage portion 303 by the magnetic adsorption between the magnetic materials.
- the fixing between the stylus 100 and the storage portion 303 includes but is not limited to the use of magnetic adsorption to achieve fixation.
- the stylus 100 and the storage portion 303 can also be fixed by means of engagement .
- a pop-up structure can be set in the storage portion 303, for example, when one end of the stylus 100 is pressed, the pop-up mechanism can drive one end of the stylus 100 to go outward from the storage portion 303. pop up.
- FIG. 6 is a schematic diagram of a hardware structure of a stylus provided by an embodiment of the present application.
- the stylus 100 may have a processor 110 .
- Processor 110 may include storage and processing circuitry to support the operation of stylus 100 .
- Storage and processing circuitry may include storage devices such as non-volatile memory (e.g., flash memory or other electrically programmable read-only memory configured as a solid state drive), volatile memory (e.g., static or dynamic random access memory) Wait.
- Processing circuits in the processor 110 can be used to control the operation of the stylus 100 .
- the processing circuitry may be based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio chips, application specific integrated circuits, and the like.
- the sensors may include pressure sensor 120 .
- the pressure sensor 120 can be disposed on the writing end 11 of the stylus 100 (as shown in FIG. 2B ).
- the pressure sensor 120 can also be set in the barrel 20 of the stylus 100 , so that when one end of the nib 10 of the stylus 100 receives force, the other end of the nib 10 moves to apply force to the pressure sensor 120 .
- the processor 110 can adjust the thickness of the line when writing with the nib 10 of the stylus 100 according to the pressure detected by the pressure sensor 120 .
- the sensors may also include inertial sensors 130 .
- Inertial sensor 130 may include a three-axis accelerometer and a three-axis gyroscope, and/or other components for measuring motion of stylus 100, for example, a three-axis magnetometer may be included in a nine-axis inertial sensor configuration in the sensor.
- the sensors may also include additional sensors such as temperature sensors, ambient light sensors, light-based proximity sensors, contact sensors, magnetic sensors, pressure sensors, and/or other sensors.
- a status indicator 140 such as a light emitting diode and a button 150 may be included in the stylus 100 .
- the status indicator 140 is used to remind the user of the status of the stylus 100 .
- Buttons 150 may include mechanical buttons and non-mechanical buttons, and buttons 150 may be used to collect button press information from a user.
- the stylus 100 may include one or more electrodes 160 (for details, refer to the description in FIG. Located in the nib 10 , reference may be made to the relevant description above.
- the stylus 100 may include a sensing circuit 170 .
- Sensing circuitry 170 can sense capacitive coupling between electrodes 160 and drive lines of a capacitive touch sensor panel that interacts with stylus 100 .
- the sensing circuit 170 may include an amplifier to receive capacitance readings from a capacitive touch sensor panel, a clock to generate a demodulated signal, a phase shifter to generate a phase-shifted demodulated signal, a frequency shifter to use an in-phase demodulation
- a mixer to demodulate capacitance readings using quadrature demodulation frequency components, a mixer to demodulate capacitance readings using quadrature demodulation frequency components, etc.
- the results of the mixer demodulation can be used to determine an amplitude proportional to the capacitance so that the stylus 100 can sense contact with the capacitive touch sensor panel.
- the stylus 100 may include a microphone, a speaker, an audio generator, a vibrator, a camera, a data port and other devices.
- a user can control the operation of the stylus 100 and the electronic device 200 that interacts with the stylus 100 by providing commands with these devices, and receive status information and other output.
- the processor 110 may be used to run software on the stylus 100 that controls the operation of the stylus 100 .
- software running on the processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor the movement of the stylus 100 and other user inputs.
- Software running on the processor 110 can detect user commands and can communicate with the electronic device 200 .
- the stylus 100 may include a wireless module.
- the wireless module is the Bluetooth module 180 as an example for illustration.
- the wireless module can also be a WI-FI hotspot module, a WI-FI point-to-point module, and the like.
- the Bluetooth module 180 may include a radio frequency transceiver, such as a transceiver.
- the Bluetooth module 180 may also include one or more antennas.
- the transceiver may utilize the antenna to transmit and/or receive wireless signals, which may be Bluetooth signals, wireless local area network signals, long-range signals such as cellular phone signals, near field communication signals, or other wireless signals based on the type of wireless module.
- the stylus 100 may further include a charging module 190 , and the charging module 190 may support charging of the stylus 100 and provide power for the stylus 100 .
- the electronic device 200 in the embodiment of the present application may be called user equipment (user equipment, UE), terminal (terminal), etc.
- the electronic device 200 may be a tablet computer (portable android device, PAD), personal digital processing (personal digital assistant, PDA), handheld devices with wireless communication functions, computing devices, vehicle-mounted devices or wearable devices, virtual reality (virtual reality, VR) terminal equipment, augmented reality (augmented reality, AR) terminal equipment, industrial control Wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grid, transportation safety
- a mobile terminal or a fixed terminal with a touch screen such as a wireless terminal in a smart city, a wireless terminal in a smart home, or a wireless terminal in a smart home.
- the form of the terminal device is not specifically limited in the embodiment of the present application.
- FIG. 7 is a schematic diagram of a hardware structure of an electronic device provided by an embodiment of the present application.
- electronic device 200 may include multiple subsystems that cooperate to perform, coordinate or monitor one or more operations or functions of electronic device 202 .
- Electronic device 200 includes processor 210 , input surface 220 , coordination engine 230 , power subsystem 240 , power connector 250 , wireless interface 260 and display 270 .
- the coordination engine 230 can be used to communicate and/or process data with other subsystems of the electronic device 200; communicate and/or trade data with the stylus 100; measure and/or obtain one or more analog or digital output of a sensor, such as a touch sensor; measure and/or obtain the output of one or more sensor nodes of an array of sensor nodes, such as an array of capacitive sensing nodes; receive and locate tip and ring signals from stylus 100 ; positioning the stylus 100 based on the positions of the tip signal crossing area and the ring signal crossing area, etc.
- the coordination engine 230 of the electronic device 200 includes or is otherwise communicatively coupled to a sensor layer underlying or integrated with the input surface 220 .
- Coordination engine 230 utilizes the sensor layer to position stylus 100 on input surface 220 and uses techniques described herein to estimate the angular position of stylus 100 relative to the plane of input surface 220 .
- the input surface 220 may be called a touch screen 201 .
- the sensor layer of the coordination engine 230 of the electronic device 200 is a grid of capacitive sensing nodes arranged in columns and rows. More specifically, the array of column traces is arranged perpendicular to the array of row traces.
- the sensor layer can be separated from other layers of the electronic device, or the sensor layer can be placed directly on another layer, such as but not limited to: display stack layer, force sensor layer, digitizer layer, polarizer layer, battery layer , structural or decorative shell layers, etc.
- the sensor layer can operate in multiple modes. If operating in mutual capacitance mode, the column and row traces form a single capacitive sensing node at each point of overlap (eg, "vertical" mutual capacitance). If operating in self-capacitance mode, the column and row traces form two (vertically aligned) capacitive sensing nodes at each point of overlap. In another embodiment, adjacent column traces and/or adjacent row traces may each form a single capacitive sensing node (eg, a "horizontal" mutual capacitance) if operating in mutual capacitance mode.
- the sensor layer may detect the presence of the tip 10 of the stylus 100 and/or the touch of a user's finger by monitoring changes in capacitance (eg, mutual capacitance or self capacitance) present at each capacitive sensing node.
- coordination engine 230 may be configured to detect tip and ring signals received from stylus 100 through the sensor layer via capacitive coupling.
- the tip signal and/or the ring signal may include specific information and/or data that may be configured to enable the electronic device 200 to recognize the stylus 100 .
- Such information is generally referred to herein as "stylus identity" information.
- This information and/or data may be received by the sensor layer and interpreted, decoded and/or demodulated by the coordination engine 230 .
- the processor 210 may use the stylus identity information to receive input from more than one stylus at the same time.
- coordination engine 230 may be configured to transmit the position and/or angular position of each of the number of stylus detected by coordination engine 230 to processor 210 .
- the coordination engine 230 may also transmit to the processor 210 information related to the relative positions and/or relative angular positions of the plurality of stylus detected by the coordination engine 230 .
- the coordination engine 230 may notify the processor 210 that the detected first stylus is located at a distance from the detected second stylus.
- the end signal and/or the ring signal may also include specific information and/or data for enabling the electronic device 200 to identify a specific user. Such information is generally referred to herein as "user-identifying" information.
- Coordination engine 230 may forward user identity information (if detected and/or recoverable) to processor 210 . If the user identity information cannot be recovered from the tip signal and/or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the user identity information is not available. Processor 210 can utilize user identity information (or the absence of such information) in any suitable manner, including but not limited to: accepting or denying input from a specific user, allowing or denying access to specific functions of the electronic device, and the like. Processor 210 may use user identity information to receive input from more than one user at a time.
- the tip signal and/or ring signal may include specific information and/or data that may be configured to cause the electronic device 200 to recognize a user's or stylus 100's settings or preferences. Such information is generally referred to herein as "stylus settings" information.
- Coordination engine 230 may forward stylus setting information (if detected and/or recoverable) to processor 210 . If the stylus setting information cannot be recovered from the tip signal and/or the ring signal, the coordination engine 230 may optionally indicate to the processor 210 that the stylus setting information is not available.
- the electronic device 200 can use the stylus to set the information (or the absence of the information) in any suitable way, including but not limited to: applying the setting to the electronic device, applying the setting to the program running on the electronic device, changing the The line thickness, color, and pattern presented by the graphics program of the electronic device, changing the settings of the video game operated on the electronic device, etc.
- the processor 210 may be configured to perform, coordinate and/or manage the functions of the electronic device 200 .
- Such functions may include, but are not limited to: communicating and/or transacting data with other subsystems of the electronic device 200, communicating and/or transacting data with the stylus 100, communicating data and/or transacting data via a wireless interface, communicating via a wired
- the interface communicates and/or trades data, facilitates power exchange via wireless (eg, inductive, resonant, etc.) or wired interfaces, receives position and angular position of one or more stylus, and the like.
- Processor 210 may be implemented as any electronic device capable of processing, receiving or sending data or instructions.
- a processor may be a microprocessor, central processing unit, application specific integrated circuit, field programmable gate array, digital signal processor, analog circuit, digital circuit, or a combination of these devices.
- Processors can be single-threaded or multi-threaded.
- Processors can be single-core or multi-core processors.
- processor 210 may be configured to access memory storing instructions.
- the instructions may be configured to cause the processor to perform, coordinate or monitor one or more operations or functions of the electronic device 200 .
- the instructions stored in memory may be configured to control or coordinate the operation of other components of electronic device 200, such as, but not limited to: another processor, analog or digital circuitry, volatile or non-volatile memory modules, displays, speakers, microphones, rotary input devices, buttons or other physical input devices, biometric authentication sensors and/or systems, force or touch input/output components, communication modules (such as wireless interfaces and/or power connectors), and/or Haptic or tactile feedback devices.
- the memory can also store electronic data that can be used by the stylus or the processor.
- memory may store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals, or data, data structures, or databases for various modules, and detect tip signals and/or Or ring signal-related files or configurations, etc.
- the memory can be configured as any type of memory.
- memory may be implemented as random access memory, read only memory, flash memory, removable memory, other types of storage elements, or a combination of such devices.
- the electronic device 200 also includes a power subsystem 240 .
- Power subsystem 240 may include a battery or other power source.
- the power subsystem 240 may be configured to provide power to the electronic device 200 .
- the power subsystem 240 may also be coupled to a power connector 250 .
- Power connector 250 may be any suitable connector or port that may be configured to receive power from an external power source and/or to provide power to an external load.
- power connector 250 may be used to recharge a battery within power subsystem 240 .
- power connector 250 may be used to transfer power stored (or available) within power subsystem 240 to stylus 100 .
- the electronic device 200 also includes a wireless interface 260 to facilitate electronic communication between the electronic device 200 and the stylus 100 .
- the electronic device 200 may be configured to communicate with the stylus 100 via a Bluetooth low energy communication interface or a near field communication interface.
- the communication interface facilitates electronic communication between the electronic device 200 and an external communication network, device or platform.
- Wireless interface 260 may be implemented as one or more of a wireless interface, a Bluetooth interface, a near field communication interface, a magnetic interface, a general purpose serial Bus interface, inductive interface, resonant interface, capacitive coupling interface, Wi-Fi interface, TCP/IP interface, network communication interface, optical interface, acoustic interface or any traditional communication interface.
- the electronic device 200 also includes a display 270 .
- Display 270 may be located behind input surface 220, or may be integrated therewith.
- Display 270 may be communicatively coupled to processor 210 .
- Processor 210 may present information to a user using display 270 .
- processor 210 uses display 270 to present an interface with which a user can interact.
- the user manipulates the stylus 100 to interact with the interface.
- FIG. 8 is a schematic diagram of a hardware structure of a wireless keyboard provided by an embodiment of the present application.
- the wireless keyboard 300 may include a processor 310 , a memory 320 , a charging interface 330 , a charging management module 340 , a wireless charging coil 350 , a battery 360 , a wireless communication module 370 , a touch panel 380 , and a keyboard 390 .
- the processor 310, the memory 320, the charging interface 330, the charging management module 340, the battery 360, the wireless communication module 370, the touch panel 380, the keyboard 390, etc. can all be arranged on the keyboard body of the wireless keyboard 300 (that is, as shown in FIG. 4 shown on the second portion 302).
- the above-mentioned wireless charging coil 350 can be arranged in the connection part 304 (as shown in FIG. 4 ) for movably connecting the keyboard body and the bracket.
- connection part 304 as shown in FIG. 4
- wireless keyboard 300 may include more or fewer components than shown, or combine certain components, or separate certain components, or arrange different components.
- the illustrated components can be realized in hardware, software or a combination of software and hardware.
- the memory 320 can be used to store program codes, such as program codes for wirelessly charging the stylus 100 .
- a Bluetooth address for uniquely identifying the wireless keyboard 300 may also be stored in the memory 320 .
- the memory 320 may also store connection data of electronic devices that have been successfully paired with the wireless keyboard 300 before.
- the connection data may be the Bluetooth address of the electronic device successfully paired with the wireless keyboard 300 .
- the wireless keyboard 300 can be automatically paired with the electronic device without configuring the connection therebetween, such as performing legality verification.
- the above bluetooth address may be a media access control (media access control, MAC) address.
- the processor 310 can be used to execute the above application program codes, and call related modules to realize the functions of the wireless keyboard 300 in the embodiment of the present application.
- the processor 310 may include one or more processing units, and different processing units may be independent devices, or may be integrated in one or more processors 310 .
- the processor 310 may be an integrated control chip, or may be composed of a circuit including various active and/or passive components, and the circuit is configured to execute the functions belonging to the processor 310 described in the embodiments of this application.
- the processor of the wireless keyboard 300 may be a microprocessor.
- the wireless communication module 370 can be used to support the connection between the wireless keyboard 300 and other electronic devices including Bluetooth (bluetooth, BT), global navigation satellite system (global navigation satellite system, GNSS), wireless local area network (wireless local area networks, WLAN) (such as Wireless fidelity (wireless fidelity, Wi-Fi) network), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication data exchange.
- Bluetooth blue, BT
- global navigation satellite system global navigation satellite system
- GNSS global navigation satellite system
- wireless local area network wireless local area networks, WLAN
- frequency modulation frequency modulation
- FM near field communication technology
- NFC near field communication technology
- infrared technology infrared, IR
- the wireless communication module 370 may be a Bluetooth chip.
- the wireless keyboard 300 can be a Bluetooth keyboard.
- the wireless keyboard 300 can pair and establish a wireless connection with the Bluetooth chip of other electronic devices through the Bluetooth chip, so as to realize wireless communication between the wireless keyboard 300 and other electronic devices through the wireless connection.
- the wireless communication module 370 may further include an antenna.
- the wireless communication module 370 receives electromagnetic waves via the antenna, frequency-modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 310 .
- the wireless communication module 370 can also receive the signal to be transmitted from the processor 310, frequency-modulate it, amplify it, and convert it into electromagnetic wave to radiate through the antenna.
- wireless keyboard 300 may support wired charging.
- the charging management module 340 may receive a charging input from a wired charger through the charging interface 330 .
- the wireless keyboard 300 may support forward wireless charging.
- the charging management module 340 can receive wireless charging input through the wireless charging coil 350 of the wireless keyboard 300 .
- the charging management module 340 is connected to the wireless charging coil 350 through a matching circuit.
- the wireless charging coil 350 can be coupled with the wireless charging coil of the above-mentioned wireless charger, and induces the alternating electromagnetic field emitted by the wireless charging coil 350 of the wireless charger to generate an alternating electric signal.
- the alternating electric signal generated by the wireless charging coil 350 is transmitted to the charging management module 340 through the matching circuit, so as to wirelessly charge the battery 360 .
- the charging management module 340 can also provide power for the wireless keyboard 300 while charging the battery 360 .
- the charging management module 340 receives the input of the battery 360 to provide power for the processor 310 , the memory 320 , the external memory and the wireless communication module 370 .
- the charging management module 340 can also be used to monitor parameters such as the battery capacity of the battery 360, the number of battery cycles, and the state of health of the battery (leakage, impedance).
- the charging management module 340 may also be disposed in the processor 310 .
- the wireless keyboard 300 can support reverse wireless charging.
- the charging management module 340 may also receive an input from the charging interface 330 or the battery 360, and convert the DC signal input from the charging interface 330 or the battery 360 into an AC signal.
- the AC signal is transmitted to the wireless charging coil 350 through the matching circuit.
- the wireless charging coil 350 can generate an alternating electromagnetic field upon receiving the alternating current signal.
- the wireless charging coil of other mobile terminals should induce an alternating electromagnetic field, which can be used for wireless charging. That is, the wireless keyboard 300 can also wirelessly charge other mobile terminals.
- the wireless charging coil 350 can be set in the storage portion 303 of the wireless keyboard 300, and the wireless charging coil is set in the barrel 20 of the stylus 100. When the stylus 100 is placed in the storage portion 303, The wireless keyboard 300 can charge the stylus 100 through the wireless charging coil 350 .
- FIG. 8 shows a schematic diagram of the hardware structure of the wireless keyboard 300 by taking the matching circuit integrated in the charging management module 340 as an example.
- the charging interface 330 can be used to provide a wired connection for charging or communication between the wireless keyboard 300 and other electronic devices (such as a wired charger of the wireless keyboard 300 ).
- a touch sensor is integrated in the above-mentioned touch panel 380 .
- the notebook computer can receive user's control commands on the notebook computer through the touch panel 380 and the keyboard 390 .
- the structure shown in the embodiment of the present application does not constitute a specific limitation on the wireless keyboard 300 . It may have more or fewer components than shown in FIG. 8, may combine two or more components, or may have a different configuration of components.
- the casing of the wireless keyboard 300 may also be provided with a storage cavity for storing the stylus 100 .
- the wireless charging coil 350 is disposed in the storage cavity, and is used for charging the stylus 100 wirelessly after the stylus 100 is stored in the storage cavity.
- the outer surface of the wireless keyboard 300 may also include components such as buttons, indicator lights (which can indicate battery status, incoming/outgoing calls, pairing mode, etc.), display screens (which can prompt users for relevant information), and the like.
- the button may be a physical button or a touch button (used in conjunction with a touch sensor), etc., and is used to trigger operations such as powering on, powering off, starting charging, and stopping charging.
- FIG. 9 is a schematic diagram of interaction between a stylus applicable to an embodiment of the present application and an electronic device.
- the stylus 100 includes: a micro-processing unit (micro controller unit, MCU), a first communication module, a charging module, a pressure sensor module, a sending module (transport, TX) and a receiving module (receive, RX).
- the electronic device 200 includes: a touch sensor (TP sensor), a touch processing module and a second communication module.
- TP sensor touch sensor
- the first communication module and the second communication module can also be wireless local area network modules, WI-FI modules, etc. The embodiment does not limit this.
- the stylus and the electronic device can establish a wireless path through the first communication module and the second communication module to exchange wireless signals.
- the touch processing module is connected to the touch sensor and the second communication module respectively.
- An array of electrodes may be included in the touch sensor.
- the touch sensor is used to collect touch data, and the touch data may include: data of a stylus touching the touch screen.
- the touch processing module is used to determine the position of the tip of the stylus and the angle between the stylus and the touch screen (hereinafter referred to as the angle) based on the touch data collected by the touch sensor, referring to the relevant descriptions in FIG. 11A and FIG. 11B .
- the touch processing module can send an uplink signal to the stylus through the electrode array, and the uplink signal is used to instruct the stylus to feedback the downlink signal. Signal.
- the touch processing module can determine the position and included angle of the tip of the stylus based on the downlink signal from the stylus.
- both the uplink signal and the downlink signal may be square wave signals.
- the touch processing module may be a touch IC chip (integrated circuit chip).
- the MCU is respectively connected with the first communication module, the charging module, the pressure sensor module, the sending module, and the receiving module.
- the charging module is used for charging the stylus.
- the pressure sensor module includes: a pressure sensor and a pressure data processing module.
- the pressure sensor is connected with the pressure data processing module, and the pressure data processing module is connected with the MCU.
- the pressure sensor can be arranged at the nib of the stylus, and the pressure sensor is used to collect the pressure of the nib. Exemplarily, when the tip of the stylus touches the touch screen of the electronic device, the pressure sensor can collect the pressure of the tip.
- the data processing module is used to send the pressure of the pen tip to the MCU.
- the MCU may send the pressure of the pen tip to the electronic device based on the first communication module.
- the electronic device can adjust the thickness of the lines written by the stylus on the touch screen based on the pressure received from the tip of the stylus by the second communication module.
- the sending module may include: a first electrode, a second electrode and a sending driving circuit. Both the first electrode and the second electrode are connected to the sending driving circuit, and the sending driving circuit is connected to the MCU.
- the MCU is configured to generate a first pulse width modulation (pulse width modulation, PWM) signal and a second PWM signal, and send the first PWM signal and the second PWM signal to the sending drive circuit.
- the sending drive circuit may drive the first electrode to send the first signal based on the first PWM signal, and drive the second electrode to send the second signal based on the second PWM signal.
- the first electrode may be called TX1
- the second electrode may be called TX2.
- the first signal and the second signal may be called downlink signals or coding signals.
- the downlink signal may be a 40V square wave signal. It should be understood that the uplink signal and downlink signal in the embodiments of the present application are based on the stylus.
- the downlink signal sends an uplink signal to the electronic device.
- the stylus sends a downlink signal and the electronic device sends an uplink signal as an example for illustration.
- the sending driving circuit may include: a high voltage driving signal module and a switch tube.
- the MCU is respectively connected with the high-voltage driving signal module and the switching tube.
- the switch tube is connected to the second electrode, and the high-voltage driving signal module is respectively connected to the first electrode and the second electrode.
- the high-voltage driving signal module is used to provide a high-voltage driving signal, drive the first electrode to send the first signal based on the first PWM signal from the MCU, and drive the second electrode to send the second signal based on the second PWM signal from the MCU.
- the MCU is also used to control the switch tube to switch the second electrode between sending signals and receiving signals, that is, switching the second electrode between TX2 and RX.
- the specific circuit of the switch tube and the control mode of the MCU are not described in detail.
- the MCU can control the switch tube so that the second electrode can be used as TX2, and the second electrode as TX2 is connected to the sending driving circuit, and then the second electrode can send the second signal under the action of the sending driving circuit.
- the MCU can also control the switch tube so that the second electrode is used as RX, and the second electrode used as RX is connected to the receiving module, so that the second electrode can receive the uplink signal from the electronic device. That is to say, the second electrode can be switched between TX2 and RX under the control of the MCU.
- the receiving module includes a decoding circuit.
- the decoding circuit can be connected with the switch tube, and the decoding circuit is also connected with the MCU.
- the second electrode is used for receiving the uplink signal from the electronic device and sending the uplink signal to the decoding circuit.
- the decoding circuit is used to decode the uplink signal and send the decoded uplink signal to the MCU.
- one transmitting electrode TX and one receiving electrode RX may be set in the stylus, which is not limited in this embodiment of the present application.
- a wireless path can be established between the stylus and the electronic device, for example, a Bluetooth path can be established between the stylus and the electronic device.
- the touch sensor in the electronic device includes an electrode array.
- the touch sensor in the electronic device can establish a circuit connection through a capacitor.
- the path between the tip of the stylus and the touch sensor in the electronic device is called a circuit path.
- the touch processing module may control the touch sensor to send an uplink signal through the circuit path. In one embodiment, when the Bluetooth connection between the electronic device and the stylus is successful and the electronic device detects that the stylus is not charged, the touch processing module may control the touch sensor to send an uplink signal through the circuit path. In one embodiment, when the Bluetooth connection between the electronic device and the stylus is successful, and the electronic device detects that the stylus is in a moving state, the touch processing module may control the touch sensor to send an uplink signal through the circuit path. It should be understood that different electronic devices may have different trigger conditions for sending uplink signals. In the following embodiments, "when the electronic device is successfully connected to the stylus via Bluetooth, the touch processing module controls the touch sensor to send uplink signals through the circuit path" as an example Be explained.
- the second electrode can receive the uplink signal from the electronic device based on the circuit path, and send the uplink signal to the decoding circuit.
- the decoding circuit can transmit the decoded uplink signal to the MCU.
- the MCU controls the sending driving circuit to drive the first electrode to send the first signal, and drive the second electrode to send the second signal. That is to say, the stylus can send downlink signals through the circuit path.
- a touch sensor in an electronic device may receive downlink signals based on a circuit path.
- the touch processing module can acquire the position and included angle of the tip of the stylus based on the downlink signal collected by the touch sensor.
- FIG. 11A is a schematic diagram of changes in the capacitance value of the touch screen.
- the touch sensor receives the first signal from the first electrode of the stylus
- the capacitance variation at the corresponding position of the touch screen will change.
- the tip of the stylus is closer to the touch screen
- the capacitance change at the corresponding position of the touch screen is larger.
- peaks are used to represent changes in capacitance variation at corresponding positions on the touch screen, and the electronic device can determine the position of the tip of the stylus based on the capacitance variation on the touch screen.
- the electronic device can obtain the included angle by using the double-tip projection method in the inclination detection algorithm. Referring to FIG.
- the first electrode and the second electrode in the stylus can be arranged at the tip of the stylus, the first electrode is arranged near the tip of the stylus, and the second electrode is far away from the first electrode.
- the tip setting for the nib When the touch sensor receives the first signal from the first electrode of the stylus and the second signal from the second electrode, the capacitance variation at two positions (such as position B and position C) on the touch screen will change, and the electronic device The included angle can be obtained based on the distance between the first electrode and the second electrode, and the distance between two positions on the touch screen.
- black dots represent positions where the stylus touches the touch screen
- black dots represent positions B and C.
- FIG. 12 is a schematic diagram of an existing electronic device drawing handwriting of a stylus.
- a pressure sensor can be installed in the tip of the stylus.
- the data is sent to the electronic device via bluetooth.
- the pressure-sensitive data may include a pressure value.
- the stylus can send a downlink signal to the electronic device, and the electronic device can obtain the position of the stylus on the touch screen through the downlink signal. and the angle between the stylus and the touchscreen.
- the downlink signal may be referred to as a touch panel (TP) signal, and the TP signal is used as an example for illustration below.
- TP touch panel
- the electronic device can display the handwriting of the stylus on the touch screen based on the pressure-sensitive signal of the stylus and the TP signal of the stylus.
- the TP signal will cause the capacitance change of the TP sensor in the electronic device to change, and the electronic device can obtain the pressure value based on the pressure-sensitive signal, if the electronic device detects that the capacitance change of the TP sensor is greater than or equal to the capacitance change threshold , and the pressure value is greater than or equal to the pressure threshold, the electronic device can display handwriting at a corresponding position on the touch screen based on the position of the stylus on the touch screen.
- the stylus cannot discharge water, that is, the electronic device is on the touch screen.
- the handwriting of the stylus does not appear on the screen.
- electronic devices display the handwriting of the stylus according to the "pressure-sensitive signal” and "TP signal", which has a slow response speed and low control precision.
- the pressure-sensitive signal is transmitted through Bluetooth, and Bluetooth transmission has a transmission delay of 10-20ms. If the stylus is still sending pressure-sensitive signals to the electronic device due to the transmission delay when the stylus just leaves the touch screen, and the capacitance change of the TP sensor is still greater than the capacitance change threshold, the electronic device will continue to Display the handwriting of the stylus, which will lead to ink leakage and poor user experience. It should be understood that ink leakage refers to: the stylus still leaks water after it leaves the touch screen, that is, the electronic device still displays the handwriting of the stylus.
- the pressure sensor at the tip of the stylus can be a spring tube pressure sensor, a strain gauge pressure sensor, etc. Because of the inherent defects of the pressure sensor itself, it is impossible to detect a small pressure value, so the pressure threshold is often set to a value greater than 0 , such as 5g. Wherein, g stands for 9.8N/kg. In this way, when the user uses the stylus to write or touch the touch screen lightly, because the pressure value is less than the pressure threshold, the stylus will not emit water, and the electronic device will not display the handwriting of the stylus. In addition, the physical structure of the pressure sensor is easily affected by temperature drift, deformation, etc., resulting in inaccurate pressure measurement.
- the capacitance change of the TP sensor will change, and the closer the stylus is to the touch screen, the greater the capacitance change of the TP sensor. In this way, the capacitance change of the TP sensor can represent the distance between the stylus and the touch screen. If the capacitance change of the TP sensor is used as the judgment factor for the handwriting of the stylus drawn by the electronic device, on the one hand, the inherent defects of the pressure sensor can be avoided. On the other hand, it can also avoid the problem of slow response caused by Bluetooth transmission of pressure-sensitive signals.
- Breaking touch can be understood as: if the capacitance change of TP sensor is greater than or equal to the capacitance change threshold, the stylus will emit water, and the electronic device will display the handwriting of the stylus; if the capacitance change of TP sensor is less than the capacitance change threshold, touch The pen does not come out of water, and the electronic device does not display the handwriting of the stylus. In this way, at the capacitance change threshold, the stylus will switch back and forth between water discharge and discharge, and the electronic device will also switch back and forth between displaying handwriting and not displaying handwriting, resulting in a ping-pong effect.
- the embodiment of the present application provides a handwriting drawing method.
- the electronic device can set the first time for the electronic device to display the handwriting (that is, the stylus emits water) when the stylus pen is drawn (that is, it is close to the touch screen) based on the capacitance change of the TP sensor.
- a capacitance change threshold when the stylus is lifted (that is, away from the touch screen), the second capacitance change threshold is set for the electronic device not to display handwriting (that is, the stylus does not emit water), the first capacitance change threshold and the second capacitance
- the variation thresholds are different.
- the embodiment of the present application not only improves the response speed and control precision of the handwriting drawn by the electronic device, but also avoids the ping-pong effect of the handwriting displayed by the electronic device and the problem of disconnection when the user uses the stylus.
- the first threshold is used to represent the first capacitance change threshold
- the second threshold is used to represent the second capacitance change threshold.
- Fig. 13 is a schematic flow chart of an embodiment of a handwriting drawing method provided in the embodiment of the present application.
- the handwriting drawing method provided by the embodiment of the present application may include:
- the approaching of the stylus to the touch screen of the electronic device can be understood as: the stylus moves towards the direction of approaching the touch screen of the electronic device.
- the electronic device can detect whether the stylus is close to the touch screen of the electronic device based on the capacitance variation of the TP sensor in the electronic device. Because the closer the stylus is to the touch screen, the greater the capacitance change. Therefore, if the electronic device detects that the capacitance change of the TP sensor gradually increases, it is determined that the stylus is close to the touch screen of the electronic device.
- the stylus when the user uses the stylus, the stylus sometimes moves toward the direction close to the touch screen of the electronic device, and sometimes moves toward the direction away from the touch screen of the electronic device.
- the electronic device detects that the capacitance variation of the TP sensor gradually increases within a preset time period, it is determined that the stylus is close to the touch screen of the electronic device. In this way, this embodiment can avoid the problem that the electronic device determines that the stylus is close to the touch screen of the electronic device because the stylus briefly moves toward the touch screen of the electronic device, and then changes the control logic, which can improve the control of the electronic device precision.
- the touch screen of the electronic device may be provided with a sensor for detecting distance, and the sensor is used for acquiring distance data between the stylus and the touch screen. Accordingly, the electronic device can determine the distance between the stylus and the touch screen based on the distance data collected by the sensor, and then detect whether the stylus is close to the touch screen based on the distance between the stylus and the touch screen. Wherein, if the distance between the stylus and the touch screen gradually decreases, the electronic device determines that the stylus is close to the touch screen of the electronic device.
- the sensors may include, but are not limited to: infrared distance sensors, ultrasonic distance sensors, depth sensors, and the like.
- the distance data collected by the infrared sensor may include: the time when the infrared ray is received after being reflected by the stylus, and then the electronic device may be based on the time when the infrared ray is emitted and the time when the infrared ray is received after being reflected by the stylus. time, calculate the distance between the stylus and the touch screen.
- the distance sensor of the ultrasonic pen and the principle of distance detection by the depth sensor reference may be made to related descriptions in the prior art.
- the first threshold is stored in the electronic device, and the first threshold can be understood as: the threshold of water discharge when the stylus is down, or the threshold that triggers the electronic device to draw the handwriting of the stylus when the stylus is down. If the electronic device detects that the stylus is close to the touch screen of the electronic device, and the capacitance variation of the TP sensor in the electronic device is greater than or equal to the first threshold, the operation of drawing handwriting is performed.
- the operation of drawing handwriting by the electronic device can be understood as: the electronic device displays the handwriting at the position based on the position of the stylus on the touch screen. Drawing handwriting may include but not limited to: drawing text, drawing, etc.
- the first threshold may be an empirical value or a predefined value.
- the staff in the development stage of electronic devices, can extract multiple electronic devices, hold the stylus gradually close to the touch screen of each electronic device, and then test to obtain the TP sensor of any distance between the stylus and each touch screen change in capacitance. Based on the user's drawing habit of holding the stylus, the staff can set the first threshold suitable for the user's drawing habit in combination with the capacitance change of the TP sensor obtained during the development stage.
- the capacitance change of the TP sensor is 4500 (touch_sig), and when the distance between the stylus and the touch screen is 0.2 mm, the capacitance change of the TP sensor is 3700 (0.2 mm_sig), when the distance between the stylus and the touch screen is 0.5mm, the capacitance change of the TP sensor is 3200 (0.5mm_sig).
- the first threshold may be 3700.
- the electronic device detects that the stylus is close to the touch screen of the electronic device, and the capacitance change of the TP sensor in the electronic device is greater than or equal to 3700, and the operation of drawing handwriting can be performed.
- the above S1301 may be replaced with: in response to detecting that the capacitance variation of the TP sensor in the electronic device is greater than or equal to the first threshold, perform the operation of drawing handwriting.
- the electronic device does not need to judge the movement direction of the stylus relative to the touch screen (such as approaching the touch screen), but the electronic device can execute The operation of drawing strokes.
- the electronic device can detect whether the stylus is far away from the touch screen of the electronic device based on the capacitance change of the TP sensor. Exemplarily, in one embodiment, if the electronic device detects that the capacitance variation of the TP sensor gradually decreases, it determines that the stylus is far away from the touch screen of the electronic device. Or, in one embodiment, if the electronic device detects that the capacitance variation of the TP sensor gradually decreases within a preset time period, it is determined that the stylus is far away from the touch screen of the electronic device.
- the second threshold can be understood as: the threshold of no water when the stylus is lifted, or the threshold that triggers the electronic device to stop drawing handwriting when the stylus is lifted. If the electronic device detects that the stylus is away from the touch screen of the electronic device, and the capacitance variation of the TP sensor in the electronic device is less than the second threshold, the operation of drawing handwriting is stopped.
- the second threshold is different from the first threshold.
- the second threshold may be 3200.
- the electronic device detects that the stylus is far away from the touch screen of the electronic device, and the capacitance change of the TP sensor in the electronic device is less than 3200, and the operation of drawing handwriting can be stopped.
- the first threshold may be greater than the second threshold, for example, the first threshold 3700 is greater than the second threshold 3200 .
- This setting can be adapted to the user's drawing habits. The specific reasons are as follows:
- the electronic device when the stylus is close to the touch screen, when the stylus is 0.2 mm away from the touch screen, the electronic device performs the operation of drawing handwriting, which can avoid ink leakage from the stylus.
- the user operates the stylus to draw, for example, it is inevitable to lift the pen when writing strokes, but the user still needs to continue writing. If the second threshold is set too large, the electronic device will stop drawing handwriting when the user lifts the pen. .
- the second threshold 3200 is set to be smaller than the first threshold 3700, that is, when the user lifts the pen at a certain distance from the touch screen, the electronic device will stop drawing handwriting, so that it can be adapted to the real needs of the user when the electronic device stops writing.
- the device stops performing handwriting drawing operations, which can adapt to the user's drawing habits and improve user experience.
- the second threshold is not set too small to avoid ink leakage from the stylus.
- the above S1302 may be replaced by: in response to detecting that the capacitance variation of the TP sensor of the electronic device is less than the first threshold, stop performing the operation of drawing handwriting.
- the electronic device does not need to judge the movement direction of the stylus relative to the touch screen (such as away from the touch screen), and the electronic device can stop drawing in response to detecting that the capacitance change of the TP sensor is less than the second threshold. Handwriting operations.
- the electronic device performs the operation of drawing handwriting in response to detecting that the stylus is close to the touch screen of the electronic device, and the capacitance change of the TP sensor in the electronic device is greater than or equal to the first threshold, and in response to detecting that the touch The pen is far away from the touch screen of the electronic device, and the capacitance change of the TP sensor of the electronic device is less than the second threshold, and the operation of drawing handwriting is stopped, and the first threshold and the second threshold are different.
- the electronic device because the electronic device is not based on the pressure-sensitive signal of the tip of the stylus, but judges whether to execute the operation of drawing handwriting based on the capacitance change of the TP sensor, it can avoid the time delay of Bluetooth transmission and improve the drawing speed of the electronic device.
- the response speed of handwriting can also avoid the problem of low control precision of electronic equipment due to the inherent defect of the pressure sensor at the tip of the stylus.
- the electronic device because the electronic device judges whether to execute the operation of drawing handwriting based on the capacitance change of the TP sensor, it can also truly realize the zero pressure of the stylus, that is, when the user holds the stylus and touches the touch screen lightly or tilts to write , to achieve the purpose of electronic equipment drawing handwriting.
- the embodiment of the present application sets the first threshold for the electronic device to draw handwriting when the stylus is close to the touch screen, and sets the second threshold for the electronic device to stop drawing handwriting when the stylus is away from the touch screen, which can avoid the ping-pong effect of the electronic device when drawing handwriting .
- the TP sensor of an electronic device can be regarded as an electrode array.
- the electrode array includes: 32 (TX) ⁇ 48 (RX) electrodes as an example.
- 32(TX) ⁇ 48(RX) can be regarded as the number of channels of the TP sensor. Due to electrode manufacturing reasons, the impedance at each position of the TP sensor is inconsistent, which in turn causes the TP signal of the TP sensor to be inconsistent.
- the inconsistency of TP signals can be understood as: when the stylus touches different positions of the touch screen, the capacitance of the TP sensor changes differently.
- the electronic device judges whether to perform handwriting drawing operation based on the capacitance change of the TP sensor, which depends on the consistency of the TP signal of the TP sensor.
- the distance between the stylus and the touch screen is different, causing the stylus to pen down at different positions of the touch screen
- the height of the water outlet and the pen out of the water There is a big difference between the height of the water outlet and the pen out of the water, and the user experience is poor.
- the water discharge height of the stylus pen and the height of the pen discharge are 0 mm and 0.03 mm, respectively.
- the water-out heights are 0.11mm and 0.33mm respectively.
- the capacitance change of the TP sensor is 4500 (touch_sig), and when the distance between the stylus and the touch screen is 0.2mm, the capacitance change of the TP sensor is 3700 (0.2mm_sig). When the distance between the stylus and the touch screen is 0.5mm, the capacitance change of the TP sensor is 3200 (0.5mm_sig).
- the capacitance variation of the TP sensor is a real measurement value at a certain position in the TP sensor, and accordingly, the electronic device can obtain the first ratio and the second ratio.
- the first ratio is: the ratio of the first threshold to the "capacitance change of the TP sensor when the stylus touches the touch screen”
- the second ratio is: the second threshold and the “capacitance change of the TP sensor when the stylus touches the touch screen” " ratio.
- the first ratio is used to characterize: the ratio of the capacitance change of the TP sensor when the stylus pen comes out of the water and the "capacitance change of the TP sensor when the stylus touches the touch screen", or the capacitance of the TP sensor when the electronic device starts to perform handwriting operations
- the ratio of the variation to the "capacitance variation of the TP sensor when the stylus touches the touch screen is: the ratio of the first threshold to the "capacitance change of the TP sensor when the stylus touches the touch screen"
- the second ratio is used to characterize: the ratio of the capacitance change of the TP sensor when the stylus is lifted out of the water and the "capacitance change of the TP sensor when the stylus touches the touch screen", or the TP sensor when the electronic device stops performing the handwriting operation.
- the first ratio ENTER_NOPRESS_RATIO can be obtained based on the following formula 1
- the second ratio EXIT_NOPRESS_RATIO can be obtained based on the following formula 2:
- the electronic device can self-learn the TP based on the user's historical data.
- the first threshold and the second threshold of each position in the sensor and then adapt to the user's drawing habits to improve user experience.
- the historical data can be understood as: when the user history is drawn with a stylus, the capacitance change of the TP sensor when the stylus touches each position of the touch screen.
- the capacitance change of the TP sensor when the stylus touches each position of the touch screen, and the first ratio and the second ratio self-learning the capacitance of each position in the TP sensor first threshold and second threshold.
- the touch screen may include a first position and a second position, so in this embodiment of the present application, "the first threshold and the second threshold of the first position, and the first threshold of the second position and second threshold" characterizes "the first threshold and the second threshold for each position".
- each position on the TP sensor can be understood as each position on the touch screen
- each area in the TP sensor can be understood as each area on the touch screen:
- the electronic device can divide the TP sensor into N regions according to the number of channels of the TP sensor, and self-learn the first threshold and the second threshold of each region in the N regions, and then the electronic device can be based on the stylus.
- the position on the touch screen, and the first threshold and the second threshold of the area that the position falls into are used to determine whether to execute the handwriting drawing operation.
- N is an integer greater than or equal to 2
- the area of each of the N regions may be the same or different.
- N is equal to the number of electrodes in the TP sensor, for example, N is 32 ⁇ 48.
- the user historically operates the stylus to draw a line from position A to position B on the touch screen, position A falls within the range of electrode a in the TP sensor, and position B falls within the electrode of the TP sensor
- the range of b is described below by taking the electronic device's self-learning of the first threshold and the second threshold at position A and position B as an example.
- the stylus When the stylus touches the position A on the touch screen, the stylus can send a pressure-sensitive signal to the electronic device through Bluetooth. In this way, when the electronic device receives the pressure-sensitive signal, it can determine that the stylus touches the touch screen, and then can send the received pressure signal to the electronic device.
- the capacitance change of the TP sensor when it comes from the pressure-sensitive signal is used as the capacitance change of the TP sensor at position A.
- the electronic device may acquire the first threshold and the second threshold at position A based on the capacitance change of the TP sensor when the stylus touches position A on the touch screen, and the first ratio and the second ratio. Exemplarily, when the stylus touches the position A on the touch screen, the capacitance change of the TP sensor is X, then the first threshold may be 0.822X, and the second threshold may be 0.711X.
- the stylus can always send a pressure-sensitive signal to the electronic device based on the pressure value collected by the pressure sensor.
- the electronic device receives the pressure-sensitive signal, and based on the TP signal from the stylus, it detects that the stylus is located at position B on the touch screen, and then the electronic device can change the capacitance of the TP sensor when receiving the pressure-sensitive signal, As the capacitance change of the TP sensor at position B.
- the electronic device can obtain the first threshold and the second threshold at the position B based on the capacitance change of the TP sensor when the stylus touches the position B on the touch screen, as well as the first ratio and the second ratio, and can refer to the correlation of the above position A illustrate.
- the electronic device can acquire the first threshold and the second threshold of each position on a line from position A to position B.
- the electronic device may store the first threshold and the second threshold of each position on a line from position A to position B.
- the electronic device may store a first mapping relationship, and the first mapping relationship is used to characterize the first threshold and the second threshold at each position of the touch screen.
- the electronic device can continuously The capacitance change of the TP sensor is used to learn and update the first threshold and the second threshold at the position A.
- the electronic device can continuously self-learn and update the first threshold and the second threshold at position A based on the capacitance variation of the TP sensor at position A in multiple historical data, so as to improve the first threshold and the second threshold at position A. Threshold Accuracy.
- the electronic device can continue to operate the stylus based on the user history and touch the touch screen, each position is TP
- the capacitance variation of the sensor is used to update the first mapping relationship stored in the electronic device.
- the electronic device can obtain the capacitance change of the new TP sensor when the stylus touches position A on the touch screen during the process of drawing a line from position A to position C with the stylus, and based on this
- the capacitance change of the new TP sensor as well as the first ratio and the second ratio, to obtain the new first threshold and the new second threshold at position A
- the electronic device may update the first threshold and the second threshold at the position A based on the first threshold and the second threshold at the position A stored in the electronic device, and the new first threshold and the new second threshold at the position A .
- the electronic device may use the average value of the stored first threshold at position A and the new first threshold as the updated first threshold at position A, and use the stored second threshold at position A The average value of the threshold and the new second threshold is used as the updated second threshold of position A.
- the electronic device may adopt a weighted average method, based on the first threshold and the second threshold at the position A stored in the electronic device, and the new first threshold and the new second threshold at the position A, The first and second thresholds at position A are updated.
- the electronic device updates the first threshold and the second threshold at position A.
- the electronic device may replace the first threshold and the second threshold at the position A stored in the electronic device with the new first threshold and the new second threshold of the position A.
- N is less than (32 ⁇ 48), taking N as (32 ⁇ 48)/M as an example, M is an integer smaller than N, and (32 ⁇ 48)/M is an integer greater than 1, M Can be customized.
- the electronic device may divide the TP sensor into four equal-area areas: upper left, upper right, lower left, and lower right.
- the electronic device can use the mean value method or weighted average method to obtain the upper left area first threshold and second threshold. For example, taking the average value method as an example, the electronic device can use the average value of the first threshold values of each position on a line from position A to position B as the first threshold value in the upper left area, and use the line from position A to position B as The average value of the second threshold of each position is used as the second threshold of the upper left area.
- the electronic device can detect that the position of the stylus falls into the target area (such as the upper left area) when the user actually uses the stylus to draw handwriting.
- the electronic device can The threshold and the second threshold are used to determine whether to execute the handwriting drawing operation.
- the electronic device can update the first threshold and second threshold of the upper left area based on position A to position D, and update the first threshold and second threshold of the lower right area based on position D to position C.
- the specific update method Reference may be made to the relevant description in FIG. 16A above.
- the electronic device can acquire the first threshold and the second threshold of each area of the touch screen.
- the electronic device may store a second mapping relationship, and the second mapping relationship is used to characterize the first threshold and the second threshold of each area of the touch screen.
- the touch screen includes a first area and a second area, then in this embodiment of the present application, "the first threshold and the second threshold of the first area, and the first threshold and the second threshold of the second area The second threshold" characterizes "the first threshold and the second threshold of each area".
- the region where each electrode is located is regarded as a region, and the first mapping relationship may also represent the first threshold and the second threshold of each region.
- the electronic device when the electronic device obtains the capacitance change of the TP sensor when the user historically operates the stylus and the stylus touches the position on the touch screen, it may preprocess the obtained capacitance change of the TP sensor to Improve the accuracy of the capacitance change of the TP sensor, thereby improving the accuracy of the first threshold and the second threshold. It should be understood that if the stylus stays at a certain position on the touch screen for a long enough time, the electronic device can accurately obtain the capacitance change of the TP sensor when the stylus touches the position, and if the stylus quickly scans If the electronic device passes a certain position on the touch screen, the accuracy of the capacitance change of the TP sensor at the position acquired by the electronic device is low. Accordingly, referring to FIG. 18, in the embodiment of the present application, the electronic device can obtain the first threshold and the second threshold of each position on the TP sensor in the following manner:
- the first position is used to represent any position on the touch screen.
- the electronic device detecting the first position where the stylus touches the touch screen and obtaining the capacitance variation of the TP sensor reference may be made to the relevant descriptions in the foregoing embodiments.
- S1801 is different from the above-mentioned acquisition of the capacitance change of the TP sensor at a certain position on the touch screen: in the above-mentioned embodiment, as long as the electronic device detects that the stylus touches the first position based on the TP signal, it obtains the TP sensor at the first position The amount of capacitance change, the accuracy is low. In S1801, the electronic device can detect that the stylus stays at the first position for a period of time, and then obtain the capacitance change of the TP sensor at the first position, with high accuracy.
- the way for the electronic device to measure that the stylus stays at the first position for a period of time is: the number of times of the pressure-sensitive signal is greater than the preset number, and the number of reported points of the TP signal is greater than the preset number.
- the stylus when the stylus touches the touch screen, the stylus will always send pressure-sensitive signals to the electronic device, and the number of times of the pressure-sensitive signals is greater than the preset number, which can indicate that the stylus stays at the first position for "two pressure-sensitive signals" time.
- the number of reporting points of the TP signal is related to the signal transmission frequency supported by the stylus.
- the stylus supports a signal transmission frequency of 240Hz or 360Hz. Taking 240Hz as an example, the stylus can send signals to The electronic device sends a reporting point (or can be understood as reporting a point to the electronic device).
- the fact that the number of reporting points of the TP signal is greater than the preset number may indicate that the stylus stays at the first position for a time of "a preset number of reporting points".
- the electronic device may also preprocess the acquired capacitance variation of the TP sensor based on the angle between the stylus and the touch screen, so as to further increase the first threshold and The accuracy of the second threshold.
- the above S1801 can be replaced with S1801A: during the history of the user operating the stylus, in response to detecting that the stylus touches the first position on the touch screen, and the number of times of the pressure-sensitive signal from the stylus More than the preset number of times, the number of reporting points of the TP signal is greater than the preset number, and the angle between the stylus and the touch screen is within the preset angle range, then the capacitance change of the TP sensor at the first position is obtained.
- the preset included angle range is an included angle range adapted to the user's drawing habits.
- the difference between S1801A and the above S1801 is that when the electronic device obtains the capacitance change of the TP sensor at the first position, it also adds the condition that "the angle between the stylus and the touch screen is within the preset angle range".
- the capacitance variation of the TP sensor under the extreme included angle can be deleted, so that the accuracy of the first threshold and the second threshold obtained by the electronic device self-learning is higher , and more suitable for the user's drawing habits.
- FIG. 19 is a schematic flowchart of another embodiment of the handwriting drawing method provided by the embodiment of the present application.
- the handwriting drawing method provided by the embodiment of the present application may include:
- the electronic device detects that the stylus is close to the touch screen of the electronic device in S1901
- the position of the stylus on the touch screen may be understood as: the position of the stylus on the touch screen when the stylus is not in contact with the touch screen.
- the electronic device can store the first threshold and the second threshold at each position (or each area) , the query obtains the first threshold of the first position.
- the electronic device may query the first threshold of the first location in the first mapping relationship.
- the electronic device may obtain the target area (first area) to which the first location belongs, and then use the first threshold and the second threshold of the target area as the first threshold in the second mapping relationship, respectively. The first threshold and the second threshold of the position.
- the electronic device may preset the first threshold, the preset Two thresholds are respectively used as the first threshold and the second threshold of the first position.
- the preset first threshold and the preset second threshold may be empirical values in the embodiment shown in FIG. 13 , for example, the preset first threshold may be 3700, and the preset second threshold may be 3200.
- the electronic device may set the "already The first threshold of the stored location" is used as the first threshold of the first location.
- the electronic device may obtain a first distance between location X and location Y, and a second distance between location X and location Z. If the first distance is smaller than the second distance, the electronic device may use the first threshold of position Y as the first threshold of position X.
- the electronic device executes the operation of drawing handwriting, which can be referred to Relevant descriptions of the above-mentioned embodiments.
- the electronic device can store the second threshold at each position (or each area) on the touch screen, the electronic device can query the second threshold at the second position among the stored second thresholds at each position (or each area).
- the query method of the threshold refer to the related description of querying the first threshold of the first location.
- the second position of the stylus on the touch screen may be the same as or different from the first position of the stylus on the touch screen when the stylus is close to the touch screen.
- the electronic device can stop performing the operation of drawing handwriting after detecting that the capacitance change of the TP sensor at the second position is less than the second threshold value of the second position.
- the electronic device can self-learn the first threshold and the second threshold of each position of the touch screen based on the capacitance change of the TP sensor when the user historically operates the stylus, and the first ratio and the second ratio.
- the electronic device can judge whether to perform the operation of drawing handwriting based on the first threshold and the second threshold of each position of the touch screen, so that the height of the stylus pen coming out of the water and the pen coming out of the pen are consistent, and the accuracy is high.
- the electronic device can learn the first threshold and the second threshold at different angles at the first position, and then when the user actually operates the stylus, the electronic device can The included angle between them is checked for the first threshold and the second threshold under the included angle at the first position to determine whether the electronic device executes the drawing operation, which can improve the control accuracy of the electronic device.
- the electronic device when the electronic device obtains the capacitance variation of the TP sensor where the stylus touches the touch screen, it can also obtain the angle between the stylus and the touch screen, and then The included angle, the first threshold value of the first position (or the first area) and the second threshold value are correspondingly stored. In this way, through continuous self-learning, the electronic device can acquire the included angle of each position (or each area) of the touch screen and the third mapping relationship between the first threshold and the second threshold.
- the electronic device may obtain the first threshold and the second threshold at the first position based on the capacitance variation of the TP sensor at the first position, and the first ratio and the second ratio, and reference may be made to relevant descriptions in the foregoing embodiments.
- the first included angle and the first threshold and the second threshold at the first position are stored correspondingly, so that the first threshold and the second threshold at the first included angle at the first position can be obtained.
- the electronic device may use the method in S1801B-S1802B to obtain the second clip at the first position.
- the first threshold and the second threshold under the angle, and the first threshold and the second threshold under the second angle at the first position are stored.
- the electronic device may update the first threshold and the second threshold at the first angle at the first position by: if the first angle is different from the second angle, the electronic device stores the first position The first threshold and the second threshold at the second included angle. Alternatively, if the first included angle and the second included angle are the same, the electronic device may replace the stored first threshold value and the second threshold value under the first included angle at the first position with "the second included angle at the first position The first threshold and the second threshold under the ", or, the electronic device can adopt the average method or the weighted average method, based on the first threshold and the second threshold under the first angle at the first position, and the second threshold at the first position For the first threshold value and the second threshold value under the included angle, and to update the first threshold value and the second threshold value under the first included angle at the first position, reference may be made to the related descriptions in the foregoing embodiments.
- S1901A In response to detecting that the stylus is close to the touch screen of the electronic device, detect the position of the stylus on the touch screen and the angle between the stylus and the touch screen.
- S1902A Based on the first position of the stylus on the touch screen and the first angle between the stylus and the touch screen, query a first threshold at the first angle at the first position.
- the electronic device may query the first threshold at the first angle at the first position in the third mapping relationship.
- the electronic device may first obtain the first area to which the first position belongs, and then query the first threshold value under the first included angle in the first area. Wherein, if the first threshold value under the first included angle is stored in the first area, the electronic device may use the first threshold value under the first included angle in the first area as the first threshold value under the first included angle at the first position. first threshold.
- the electronic device may use the first threshold The first threshold value and the second threshold value corresponding to the angle with the smallest difference between the first angle at a position and the first angle are used as the first threshold at the first angle at the first position.
- the first threshold value under the first included angle is not stored in the first area, the first threshold value under the included angle closest to the first included angle stored in the first area may be used as the first threshold value.
- the first threshold at the first included angle at the position if the electronic device is in the process of self-learning, if the first threshold and the second threshold under the first angle at the first position are not stored (or not self-learned), the electronic device may use the first threshold The first threshold value and the second threshold value corresponding to the angle with the smallest difference between the first angle at a position and the first angle are used as the first threshold at the first angle at the first position.
- the first threshold value under the first included angle is not stored in the first area, the first threshold value under the included angle closest to the first included angle stored in the first area may be used as the first
- the angle between the stylus and the touch screen is 50 degrees
- the third mapping relationship does not store the first threshold and the second threshold under 50 degrees at the first position, but stores the The first threshold and the second threshold at 70 degrees, and the first threshold and the second threshold at 40 degrees at the first position
- the electronic device can set the first threshold and the second threshold at 40 degrees at the first position, as the first threshold and the second threshold at 50 degrees at the first position, respectively.
- the electronic device may use the preset first threshold as the first threshold at the first included angle at the first position .
- the electronic device may use the first threshold at the first angle at the second position closest to the first position as the first threshold at the first angle at the first position.
- the electronic device may place the second position closest to the first position and the first threshold The first threshold at the included angle with the smallest included angle difference is used as the first threshold at the first included angle at the first position.
- the electronic device Because the first thresholds at different angles at the first position of the electronic device are different, the electronic device detects that the capacitance change of the TP sensor at the first angle at the first position is greater than or equal to that at the first position at the first angle For the first threshold value, the electronic device executes the operation of drawing handwriting, and reference may be made to the relevant description of the foregoing embodiments.
- the second angle between the stylus and the touch screen can be the same as the second angle between the stylus and the touch screen when the stylus is close to the touch screen or different.
- the electronic device can learn the first threshold and the second threshold at different angles at each position, and then when the user actually operates the stylus, the electronic device can The included angle between the electronic device and the touch screen, and the first threshold value and the second threshold value under the included angle at each position are used to determine whether the electronic device performs a drawing operation, which can improve the control accuracy of the electronic device.
- the handwriting drawing device may be the electronic device in the above embodiment.
- the handwriting drawing device 2000 may include: a processing module 2001 , a storage module 2002 , and a transceiver module 2003 .
- the electronic device includes a touch screen, and the touch screen includes a touch sensor TP sensor.
- the processing module 2001 is configured to perform an operation of drawing handwriting in response to detecting that the stylus is close to the touch screen, and the capacitance variation of the TP sensor is greater than or equal to a first threshold, and, in response to detecting the touch The pen is far away from the touch screen, and the capacitance change of the TP sensor is less than a second threshold, and the operation of drawing handwriting is stopped, and the first threshold is different from the second threshold.
- the first threshold is greater than the second threshold.
- the first threshold of the stylus at the first position of the touch screen is different from the first threshold of the stylus at the second position of the touch screen.
- the processing module 2001 is specifically configured to, in response to detecting that the stylus is close to the touch screen, detect the position of the stylus on the touch screen; In the first position of the touch screen, query the first threshold of the first position; in response to the capacitance variation of the TP sensor at the first position being greater than or equal to the first threshold of the first position, perform drawing Handwriting operations.
- the processing module 2001 is specifically configured to, in response to detecting that the stylus is far away from the touch screen, detect the position of the stylus on the touch screen; In the first position of the touch screen, query the second threshold of the first position; in response to the capacitance variation of the TP sensor at the first position being less than the second threshold of the first position, stop drawing handwriting operation.
- the touch screen includes a first area and a second area, the first area includes at least one first location, and the second area includes at least one second location.
- the storage module 2002 is configured to, in response to detecting that the stylus touches the first position, record the first threshold of the first area, and in response to detecting that the stylus touches The pen touches the second position, and records the first threshold of the second area.
- the processing module 2001 is specifically configured to use the first threshold of the first region as the first threshold of the first position.
- the storage module 2002 is further configured to, in response to detecting that the stylus touches the third position, record the first threshold value of the area to which the third position belongs, and the third position is located in the outside the first area and the second area.
- the processing module 2001 is specifically configured to use a preset first threshold as the first threshold of the first position.
- the processing module 2001 is specifically configured to, in response to detecting that the stylus touches the first position, acquire the capacitance variation of the TP sensor at the first position; based on the first position The capacitance change amount and the first ratio of the TP sensor at a position are used to obtain the first threshold value of the first region.
- the processing module 2001 is specifically configured to obtain the first value of the first region corresponding to each first position based on the capacitance variation of the TP sensor at each first position and the first ratio. Threshold: based on the first threshold of the first area corresponding to each first position, the first threshold of the first area is acquired.
- the transceiver module 2003 is configured to receive a pressure-sensitive signal and a touch TP signal from the stylus.
- the processing module 2001 is specifically configured to respond to detecting that the stylus touches the first position, and the number of times of the pressure-sensitive signal is greater than a preset number, the number of reported points of the TP signal is greater than a preset number, and the The angle between the stylus and the touch screen is within a preset angle range, and the capacitance variation of the TP sensor at the first position is obtained.
- the storage module 2002 is further configured to replace or update the first threshold of the first area.
- the processing module 2001 is configured to, in response to detecting that the stylus touches the first position, detect an included angle between the stylus and the touch screen.
- the storage module 2002 is configured to record a first threshold at the first angle in the first area based on the angle between the stylus and the touch screen being a first angle.
- the processing module 2001 is further configured to detect the angle between the stylus and the touch screen in response to detecting that the stylus touches the second position; the storage module 2002 is further configured to The included angle between the control pen and the touch screen is a second included angle, and the first threshold value under the second included angle in the first area is recorded.
- the processing module 2001 is further configured to, in response to the first position of the stylus on the touch screen, detect the angle between the stylus and the touch screen;
- the included angle between the stylus and the touch screen is the first included angle, and the first threshold under the first included angle in the first area is used as the first threshold of the first position.
- the transceiver module 2003 used to receive the pressure-sensitive signal from the stylus may be a communication module in an electronic device, such as Bluetooth or WI-FI.
- the transceiver module 2003 used to receive the touch TP signal from the stylus can be a TP sensor in the electronic device.
- the processor 210 in FIG. 7 can be used to execute the actions performed by the processing module 2001 above, and the wireless interface 260 is used to execute the actions performed by the transceiver module 2003. action.
- the electronics may include a memory (not shown in FIG. 7 ), and the memory is used to perform the actions performed by the above-mentioned storage module 2002 . In this way, the electronic device can execute the handwriting drawing method provided in the above embodiments.
- the embodiment of the present application also provides a handwriting drawing system, which includes an electronic device and a stylus.
- the electronic device can execute the steps shown in the above-mentioned Fig. 13 , Fig. 18 and Fig. 19 to realize the handwriting drawing method provided in the above embodiment.
- the above modules may be one or more integrated circuits configured to implement the above method, for example: one or more application specific integrated circuits (ASIC), or one or more microprocessors device (digital signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), etc.
- ASIC application specific integrated circuits
- DSP digital signal processor
- FPGA field programmable gate array
- the processing element may be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call program codes.
- these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
- SOC system-on-a-chip
- a computer program product includes one or more computer instructions.
- Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, e.g. Coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) to another website site, computer, server or data center.
- DSL digital subscriber line
- the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. integrated with one or more available media.
- Available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)).
- plural herein means two or more.
- the term “and/or” in this article is just an association relationship describing associated objects, which means that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist simultaneously, and there exists alone B these three situations.
- the character "/" in this paper generally indicates that the contextual objects are an “or” relationship; in the formula, the character "/" indicates that the contextual objects are a "division" relationship.
Abstract
Description
Claims (18)
- 一种笔迹绘制方法,其特征在于,应用于电子设备,所述电子设备包括触摸屏,所述触摸屏中包括触摸传感器TP sensor,所述方法包括:响应于检测到触控笔靠近所述触摸屏,且所述TP sensor的电容变化量大于或等于第一阈值,执行绘制笔迹的操作;响应于检测到所述触控笔远离所述触摸屏,且所述TP sensor的电容变化量小于第二阈值,停止执行绘制笔迹的操作,所述第一阈值和所述第二阈值不同。
- 根据权利要求1所述的方法,其特征在于,所述第一阈值大于所述第二阈值。
- 根据权利要求1或2所述的方法,其特征在于,所述触控笔在所述触摸屏的第一位置的第一阈值,与所述触控笔在所述触摸屏的第二位置的第一阈值不同。
- 根据权利要求3所述的方法,其特征在于,所述响应于检测到触控笔靠近所述触摸屏,且所述TP sensor的电容变化量大于或等于第一阈值,执行绘制笔迹的操作,包括:响应于检测到所述触控笔靠近所述触摸屏,检测所述触控笔在所述触摸屏的位置;基于所述触控笔在所述触摸屏的所述第一位置,查询所述第一位置的第一阈值;响应于所述第一位置的TP sensor的电容变化量大于或等于所述第一位置的第一阈值,执行绘制笔迹的操作。
- 根据权利要求3所述的方法,其特征在于,所述响应于检测到所述触控笔远离所述触摸屏,且所述TP sensor的电容变化量小于第二阈值,停止执行绘制笔迹的操作,包括:响应于检测到所述触控笔远离所述触摸屏,检测所述触控笔在所述触摸屏的位置;基于所述触控笔在所述触摸屏的所述第一位置,查询所述第一位置的第二阈值;响应于所述第一位置的TP sensor的电容变化量小于所述第一位置的第二阈值,停止执行绘制笔迹的操作。
- 根据权利要求4所述的方法,其特征在于,所述触摸屏包括第一区域和第二区域,所述第一区域包括至少一个所述第一位置,所述第二区域包括至少一个所述第二位置;所述方法还包括:响应于检测到所述触控笔接触所述第一位置,记录所述第一区域的第一阈值;响应于检测到所述触控笔接触所述第二位置,记录所述第二区域的第一阈值。
- 根据权利要求6所述的方法,其特征在于,所述基于所述触控笔在所述触摸屏的第一位置,查询所述第一位置的第一阈值,包括:将所述第一区域的第一阈值作为所述第一位置的第一阈值。
- 根据权利要求4所述的方法,其特征在于,所述方法还包括:响应于检测到所述触控笔接触第三位置,记录所述第三位置所属区域的第一阈值,所述第一位置位于所述第三位置所属区域之外;所述基于所述触控笔在所述触摸屏的第一位置,查询所述第一位置的第一阈值,包括:将预设第一阈值作为所述第一位置的第一阈值。
- 根据权利要求6或7所述的方法,其特征在于,所述响应于检测到所述触控笔接触所述第一位置,记录所述第一区域的第一阈值,包括:响应于检测到所述触控笔接触所述第一位置,获取所述第一位置的TP sensor的电容变化量;基于所述第一位置的TP sensor的电容变化量和第一比例,获取所述第一区域的第一阈值。
- 根据权利要求9所述的方法,其特征在于,所述基于所述第一位置的TP sensor的电容变化量和第一比例,获取所述第一区域的第一阈值,包括:基于每个第一位置的TP sensor的电容变化量和所述第一比例,得到每个第一位置对应的第一区域的第一阈值;基于每个第一位置对应的第一区域的第一阈值,获取所述第一区域的第一阈值。
- 根据权利要求9或10所述的方法,其特征在于,所述检测到所述触控笔接触所述第一位置时,还包括:接收来自所述触控笔的压感信号和触摸TP信号;所述响应于检测到所述触控笔接触所述第一位置,获取所述第一位置的TP sensor的电容变化量,包括:响应于检测到所述触控笔接触所述第一位置,且所述压感信号的次数大于预设次数、所述TP信号的报点数大于预设数量,以及所述触控笔和所述触摸屏之间的夹角位于预设夹角范围内,获取所述第一位置的TP sensor的电容变化量。
- 根据权利要求9-11中任一项所述的方法,其特征在于,所述记录所述触摸屏的第一区域的第一阈值,包括:替换或更新所述第一区域的第一阈值。
- 根据权利要求6所述的方法,其特征在于,所述响应于检测到所述触控笔接触所述第一位置,记录所述第一区域的第一阈值,包括:响应于检测到所述触控笔接触所述第一位置,检测所述触控笔与所述触摸屏之间的夹角;基于所述触控笔与所述触摸屏之间的夹角为第一夹角,记录所述第一区域中第一夹角下的第一阈值。
- 根据权利要求6或13所述的方法,其特征在于,所述响应于检测到所述触控笔接触所述第二位置,记录所述第二区域的第一阈值,包括:响应于检测到所述触控笔接触所述第二位置,检测所述触控笔与所述触摸屏之间的夹角;基于所述触控笔与所述触摸屏之间的夹角为第二夹角,记录所述第一区域中第二夹角下的第一阈值。
- 根据权利要求13所述的方法,其特征在于,所述基于所述触控笔在所述触摸屏的第一位置,查询所述第一位置的第一阈值,包括:响应于所述触控笔在所述触摸屏的第一位置,检测所述触控笔与所述触摸屏之间的夹角;基于所述触控笔与所述触摸屏之间的夹角为所述第一夹角,将所述第一区域中第一夹角下的第一阈值作为所述第一位置的第一阈值。
- 一种电子设备,其特征在于,包括:处理器和存储器;所述存储器存储计算机执行指令;所述处理器执行所述存储器存储的计算机执行指令,使得所述处理器执行如权利要求 1-15中任一项所述的方法。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机程序或指令,当所述计算机程序或指令被运行时,实现如权利要求1-15中任一项所述的方法。
- 一种计算机程序产品,包括计算机程序或指令,其特征在于,所述计算机程序或指令被处理器执行时,实现权利要求1-15中任一项所述的方法。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US18/271,468 US20240053880A1 (en) | 2021-07-02 | 2022-04-18 | Handwriting drawing method and apparatus, electronic device, and readable storage medium |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110753694.6A CN115562560B (zh) | 2021-07-02 | 2021-07-02 | 笔迹绘制方法、装置、电子设备和可读存储介质 |
CN202110753694.6 | 2021-07-02 |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2023273526A1 true WO2023273526A1 (zh) | 2023-01-05 |
WO2023273526A9 WO2023273526A9 (zh) | 2023-09-07 |
Family
ID=84690216
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/087496 WO2023273526A1 (zh) | 2021-07-02 | 2022-04-18 | 笔迹绘制方法、装置、电子设备和可读存储介质 |
Country Status (3)
Country | Link |
---|---|
US (1) | US20240053880A1 (zh) |
CN (1) | CN115562560B (zh) |
WO (1) | WO2023273526A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115938244B (zh) * | 2023-02-20 | 2023-06-02 | 深圳市英唐数码科技有限公司 | 一种适配多笔形的电纸书显示方法、系统和存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102221955A (zh) * | 2010-04-19 | 2011-10-19 | 中兴通讯股份有限公司 | 橡皮擦功能实现方法、移动终端及用于移动终端的触控笔 |
US20130257793A1 (en) * | 2012-03-27 | 2013-10-03 | Adonit Co., Ltd. | Method and system of data input for an electronic device equipped with a touch screen |
CN103927062A (zh) * | 2013-12-24 | 2014-07-16 | 上海中航光电子有限公司 | 电容触摸屏的驱动检测方法、装置和电子设备 |
US20150185923A1 (en) * | 2014-01-02 | 2015-07-02 | Samsung Electronics Co., Ltd. | Method for processing input and electronic device thereof |
CN213338645U (zh) * | 2020-09-29 | 2021-06-01 | 王珏 | 一种电容触控笔 |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150185909A1 (en) * | 2012-07-06 | 2015-07-02 | Freescale Semiconductor, Inc. | Method of sensing a user input to a capacitive touch sensor, a capacitive touch sensor controller, an input device and an apparatus |
JP5974745B2 (ja) * | 2012-09-10 | 2016-08-23 | コニカミノルタ株式会社 | タッチパネル入力装置、タッチ入力方法及びタッチ入力制御プログラム |
KR101439855B1 (ko) * | 2013-01-25 | 2014-09-17 | 주식회사 하이딥 | 터치 스크린 제어 장치 및 그의 제어 방법 |
CN104065792A (zh) * | 2013-03-18 | 2014-09-24 | 中兴通讯股份有限公司 | 终端控制方法、终端控制装置及终端 |
JP6300027B2 (ja) * | 2014-12-04 | 2018-03-28 | アルプス電気株式会社 | 入力装置 |
KR101598412B1 (ko) * | 2015-02-11 | 2016-02-29 | 주식회사 하이딥 | 전극 시트 및 터치 입력 장치 |
CN105933041B (zh) * | 2016-06-28 | 2019-02-15 | 西安电子科技大学 | 基于CoMP的双阈值模式切换方法 |
CN108011659B (zh) * | 2017-10-30 | 2024-02-09 | 歌尔股份有限公司 | 一种无人机通信方法、装置及无人机 |
CN112905035A (zh) * | 2019-12-04 | 2021-06-04 | 北京小米移动软件有限公司 | 触摸屏控制方法及装置、计算机存储介质 |
CN111381729B (zh) * | 2020-03-27 | 2023-04-25 | 深圳市鸿合创新信息技术有限责任公司 | 一种电容式触摸屏的触摸点定位方法及装置 |
-
2021
- 2021-07-02 CN CN202110753694.6A patent/CN115562560B/zh active Active
-
2022
- 2022-04-18 WO PCT/CN2022/087496 patent/WO2023273526A1/zh active Application Filing
- 2022-04-18 US US18/271,468 patent/US20240053880A1/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102221955A (zh) * | 2010-04-19 | 2011-10-19 | 中兴通讯股份有限公司 | 橡皮擦功能实现方法、移动终端及用于移动终端的触控笔 |
US20130257793A1 (en) * | 2012-03-27 | 2013-10-03 | Adonit Co., Ltd. | Method and system of data input for an electronic device equipped with a touch screen |
CN103927062A (zh) * | 2013-12-24 | 2014-07-16 | 上海中航光电子有限公司 | 电容触摸屏的驱动检测方法、装置和电子设备 |
US20150185923A1 (en) * | 2014-01-02 | 2015-07-02 | Samsung Electronics Co., Ltd. | Method for processing input and electronic device thereof |
CN213338645U (zh) * | 2020-09-29 | 2021-06-01 | 王珏 | 一种电容触控笔 |
Also Published As
Publication number | Publication date |
---|---|
US20240053880A1 (en) | 2024-02-15 |
WO2023273526A9 (zh) | 2023-09-07 |
CN115562560B (zh) | 2023-11-21 |
CN115562560A (zh) | 2023-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20240094841A1 (en) | Method Applied to Signal Synchronization System, System, Stylus, and Electronic Device | |
CN116466867B (zh) | 笔迹绘制方法、装置、电子设备和可读存储介质 | |
EP4116804A1 (en) | Stylus pen and electronic device assembly | |
WO2023040602A1 (zh) | 一种电子设备连接方法及电子设备 | |
WO2023273526A1 (zh) | 笔迹绘制方法、装置、电子设备和可读存储介质 | |
WO2023082768A1 (zh) | 功能模式切换方法、电子设备及系统 | |
WO2023134408A9 (zh) | 一种信息传输方法和装置 | |
WO2023020022A1 (zh) | 一种触控笔的连接方法及电子设备 | |
CN116088695B (zh) | 系统升级方法及相关装置 | |
CN116736989A (zh) | 触控笔及其控制方法 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22831357 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 18271468 Country of ref document: US |
|
ENP | Entry into the national phase |
Ref document number: 2022831357 Country of ref document: EP Effective date: 20230712 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22831357 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |