CN114461129B - Handwriting drawing method and device, electronic equipment and readable storage medium - Google Patents

Handwriting drawing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114461129B
CN114461129B CN202110753711.6A CN202110753711A CN114461129B CN 114461129 B CN114461129 B CN 114461129B CN 202110753711 A CN202110753711 A CN 202110753711A CN 114461129 B CN114461129 B CN 114461129B
Authority
CN
China
Prior art keywords
sensor
stylus
capacitance variation
electronic device
touch screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110753711.6A
Other languages
Chinese (zh)
Other versions
CN114461129A (en
Inventor
李航
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310358218.3A priority Critical patent/CN116466867B/en
Priority to CN202110753711.6A priority patent/CN114461129B/en
Publication of CN114461129A publication Critical patent/CN114461129A/en
Application granted granted Critical
Publication of CN114461129B publication Critical patent/CN114461129B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers
    • G06F3/04162Control or interface arrangements specially adapted for digitisers for exchanging data with external devices, e.g. smart pens, via the digitiser sensing hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • G06F3/0442Digitisers, 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

Landscapes

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

Abstract

The embodiment of the application provides a handwriting drawing method, a handwriting drawing device, electronic equipment and a readable storage medium, wherein the electronic equipment comprises a touch sensor TP sensor and a first sensor, the first sensor is used for detecting whether a touch pen contacts a touch screen, and the method comprises the following steps: responding to the detected signal collected by the first sensor, detecting a first position where a touch pen contacts the touch screen, and acquiring a capacitance variation threshold of a TP sensor at the first position; in response to detecting that the capacitance variation of the TP sensor at the first position is larger than or equal to the capacitance variation threshold of the TP sensor at the first position, executing handwriting drawing operation; and stopping executing the handwriting drawing operation in response to detecting that the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position. The method and the device can improve the response speed and the control precision of the electronic equipment.

Description

Handwriting drawing method and device, electronic equipment and readable storage medium
Technical Field
The embodiment of the application relates to a terminal technology, in particular to a handwriting drawing method and device, electronic equipment and a readable storage medium.
Background
With the development of touch technology, more and more electronic devices adopt a touch mode to perform human-computer interaction. A user may operate a touch screen of the electronic device through a stylus to provide input to the electronic device, and the electronic device performs a corresponding operation based on the input of the stylus.
At present, an electronic device may display handwriting of a stylus pen on a touch screen based on a pressure-sensitive signal of a pen tip of the stylus pen and a Touch (TP) signal from the stylus pen, so as to implement writing, drawing, and the like of the stylus pen on the touch screen. At present, the response speed of handwriting drawing of electronic equipment is low, the control precision is low, and phenomena of unsmooth writing, ink leakage and the like are easy to occur.
Disclosure of Invention
The embodiment of the application provides a handwriting drawing method and device, electronic equipment and a readable storage medium, and the response speed and the control precision of the handwriting drawing of the electronic equipment can be improved.
In a first aspect, an execution subject of the method may be an electronic device or a chip in the electronic device, and the following description takes the execution subject as the electronic device as an example. The electronic equipment comprises a touch sensor TP sensor and a first sensor, wherein the first sensor is used for detecting whether a touch pen contacts a touch screen of the electronic equipment, and the TP sensor is contained in the touch screen.
The handwriting drawing method can comprise the following steps: the electronic equipment responds to the detection that the first sensor collects the signals, and detects the position of the touch pen contacting the touch screen. Because the first sensor is used for detecting whether the stylus touches the touch screen of the electronic device, when the first sensor acquires a signal, the signal indicates that the stylus touches the touch screen. The way for the electronic device to detect the position where the stylus touches the touch screen may be: the electronic equipment acquires the position of the touch pen contacting the touch screen based on the change of the capacitance variation of the TP sensor in the touch screen.
The electronic device detects a first position where a stylus touches the touch screen, and can acquire a capacitance variation threshold of a TP sensor of the first position. The electronic equipment responds to the fact that the capacitance variation of the TP sensor at the first position is larger than or equal to the capacitance variation threshold of the TP sensor at the first position, executes handwriting drawing operation, and responds to the fact that the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position, and stops executing handwriting drawing operation.
It should be understood that the capacitance variation of the TP sensor at the first position may include: the capacitance variation of the TP sensor when the stylus contacts the first position, the capacitance variation of the TP sensor when the stylus does not contact the first position of the touch screen, but the stylus is located at the first position of the touch screen. Therefore, when the electronic device determines that the stylus touches the touch screen, whether to execute handwriting drawing operation is judged based on the capacitance variation of the TP sensor at the first position and the capacitance variation threshold of the TP sensor at the first position.
In the embodiment of the application, because the pressure-sensitive signal or the acceleration signal collected by the touch screen is not used as the judgment condition for judging whether the electronic equipment executes the handwriting drawing operation, but is used as the trigger condition for triggering the electronic equipment to judge whether the electronic equipment executes the handwriting drawing operation based on the capacitance variation of the TP sensor, the pressure-sensitive signal from the touch pen is not required to be transmitted by Bluetooth, and the handwriting drawing response speed of the electronic equipment can be improved. In the embodiment of the application, the pressure threshold and the threshold of the triaxial acceleration can be set to be very small values, and if the pressure threshold is smaller than the pressure threshold in the prior art, the electronic device can respond when detecting a tiny pressure, so that the control accuracy of the electronic device can be improved. In addition, in the embodiment of the application, the user can hold the touch pen to draw the handwriting, when the touch pen contacts the touch screen, the touch pen starts to discharge water, namely, the electronic equipment executes the handwriting drawing operation, so that the user can be better simulated to adopt a real pen to write, and the user experience can be improved.
In a possible implementation manner, in order to avoid interference of external factors and improve detection accuracy, the electronic device may detect a position where the stylus pen contacts the touch screen in response to detecting that the first sensor acquires a signal and a signal value represented by the signal satisfies a preset condition.
The first sensor is a pressure sensor or an acceleration sensor, when the first sensor is the pressure sensor, the signal is a pressure sensing signal, and when the first sensor is the acceleration sensor, the signal is an acceleration signal; the preset conditions are as follows: the pressure value represented by the pressure sensing signal is greater than or equal to a pressure value threshold value, or the acceleration represented by the acceleration signal is greater than or equal to an acceleration threshold value.
That is to say, in response to detecting that the first sensor acquires a signal, and the pressure value acquired by the first sensor is greater than the pressure value threshold, or the acceleration acquired by the first sensor is greater than or equal to the acceleration threshold, the electronic device may detect the position where the stylus touches the touch screen, and further acquire the capacitance variation threshold of the TP sensor at the first position, which may refer to the above description.
In a possible implementation manner, the electronic device further includes a display screen and a middle frame, the display screen is located between the touch screen and the middle frame, the pressure sensor is arranged on the display screen and close to one side of the middle frame, or the pressure sensor is arranged on the middle frame and close to one side of the display screen.
When the first sensor is an acceleration sensor, the acceleration sensor may be disposed on a side of the display screen close to the middle frame, or the pressure sensor may be disposed on a side of the middle frame close to the display screen, or other positions in the electronic device, such as a main board of the electronic device.
The following describes a manner in which the electronic device obtains the threshold value of the capacitance variation of the TP sensor at the first position:
first, the electronic device may detect a first position where the stylus touches the touch screen and a capacitance variation of the TP sensor at the first position in response to detecting that the first sensor collects a signal or a signal value represented by the signal is greater than or equal to a signal value threshold. The electronic device may acquire the capacitance variation threshold of the TP sensor at the first position based on the capacitance variation and the preset ratio of the TP sensor at the first position. For example, the electronic device may take a product of a capacitance variation of the TP sensor at the first location and a preset ratio as the capacitance variation threshold of the TP sensor at the first location. It is to be understood that the preset ratio may be a value greater than 0 and less than 1.
Secondly, the capacitance variation threshold of the TP sensor at least one position of the touch screen is stored in the electronic equipment. It should be understood that, in one embodiment, the electronic device may download the capacitance variation threshold of the TP sensor of the at least one location in advance, or the electronic device may acquire and store the capacitance variation threshold of the TP sensor of the at least one location during the course of drawing handwriting by the stylus operated by the user in history.
Illustratively, in response to detecting a first position where the stylus contacts the touch screen, the electronic device records a capacitance variation threshold of a TP sensor at the first position; in response to detecting that the stylus touches a second position of the touch screen, recording a capacitance variation threshold of the TP sensor at the second position to obtain the capacitance variation threshold of the TP sensor at the at least one position.
The electronic device can acquire the capacitance variation of the TP sensor at a first position in response to detecting that the stylus touches the first position of the touch screen; and acquiring the capacitance variation threshold of the TP sensor of the first position based on the capacitance variation and the preset proportion of the TP sensor of the first position. Similarly, the electronic device may obtain a capacitance variation of the TP sensor at a second position in response to detecting that the stylus touches the second position of the touch screen; and acquiring the capacitance variation threshold of the TP sensor at the second position based on the capacitance variation and the preset proportion of the TP sensor at the second position. In this manner, the electronic device can obtain and store the capacitance variation threshold of the TP sensor for at least one location.
In this implementation, the electronic device may query, in response to the stylus contacting the first location, whether a capacitance variation threshold of the TP sensors of the at least one location includes a capacitance variation of the TP sensors of the first location; if yes, in the capacitance variation threshold value of the TP sensor at the at least one position, the capacitance variation threshold value of the TP sensor at the first position is obtained. Accordingly, the calculation amount of the electronic device can be reduced.
If the capacitance variation threshold of the TP sensor at the first position does not include the capacitance variation of the TP sensor at the first position, the electronic device may obtain the capacitance variation threshold of the TP sensor at the first position based on the capacitance variation of the TP sensor at the first position and a preset ratio.
In a possible implementation manner, if a user holds a stylus to touch a touch screen to draw a handwriting, the stylus is placed on the touch screen of the electronic device, and if the electronic device detects that a capacitance variation of a TP sensor at a position where the stylus is located is greater than or equal to a capacitance variation threshold of the TP sensor at the position, the electronic device may still perform a handwriting drawing operation, but the user does not operate the stylus to draw the handwriting at the position, thereby causing an ink leakage phenomenon.
Therefore, in the embodiment of the present application, the electronic device may detect whether the user holds the stylus pen in response to detecting that the capacitance variation of the TP sensor at the first position is greater than or equal to the capacitance variation threshold of the TP sensor at the first position; and responding to the user holding the touch control pen, and executing handwriting drawing operation. If it is detected that the user does not hold the stylus pen, the handwriting drawing operation may not be performed.
In one embodiment, the stylus may detect whether the user holds the stylus, and then send holding information of the stylus to the electronic device. It should be appreciated that the stylus may send the holding information of the stylus to the electronic device when the holding state of the stylus changes. It should be understood that the grip information may indicate the stylus grip status, which may be either grip or non-grip.
In this way, the electronic device may receive holding information from the stylus pen, and further detect whether the user holds the stylus pen based on the holding information. If the holding information indicates that the stylus is held, the electronic device may determine that the user holds the stylus, and if the holding information indicates that the stylus is not held, the electronic device may determine that the user does not hold the stylus.
In this application embodiment, when the first position of touch-sensitive screen is touched to the stylus, and when electronic equipment detected the TP sensor's of first position the capacitance variation is more than or equal to the threshold value, electronic equipment still need detect whether the user grips the stylus, when the user grips the stylus, can carry out the operation of drawing the handwriting, and then can improve electronic equipment's control accuracy, avoid leaking black phenomenon, improve user experience.
In a second aspect, embodiments of the present application provide a handwriting drawing apparatus, which may be an electronic device as described in the first aspect above, or a chip in an electronic device. The electronic equipment comprises a touch sensor TP sensor and a first sensor, wherein the first sensor is used for detecting whether a touch pen contacts a touch screen of the electronic equipment, and the TP sensor is contained in the touch screen. Wherein the content of the first and second substances,
a processing module to: detecting a position where the stylus touches the touch screen in response to detecting that the first sensor acquires a signal; acquiring a capacitance variation threshold of a TP sensor at a first position based on the first position where the stylus touches the touch screen; in response to detecting that the capacitance variation of the TP sensor at the first position is larger than or equal to the capacitance variation threshold of the TP sensor at the first position, executing handwriting drawing operation; and stopping executing the handwriting drawing operation in response to detecting that the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position.
In a possible implementation manner, the processing module is specifically configured to detect a position where the stylus touches the touch screen in response to detecting that the first sensor acquires a signal and a signal value represented by the signal satisfies a preset condition.
In a possible implementation manner, the first sensor is a pressure sensor or an acceleration sensor, when the first sensor is the pressure sensor, the signal is a pressure sensing signal, and when the first sensor is the acceleration sensor, the signal is an acceleration signal; the preset conditions are as follows: the pressure value represented by the pressure sensing signal is greater than or equal to a pressure value threshold value, or the acceleration represented by the acceleration signal is greater than or equal to an acceleration threshold value.
In a possible implementation manner, the electronic device further includes a display screen and a middle frame, the display screen is located between the touch screen and the middle frame, the pressure sensor is disposed on the display screen and close to one side of the middle frame, or the pressure sensor is disposed on the middle frame and close to one side of the display screen.
In a possible implementation manner, the processing module is specifically configured to detect whether the user holds the stylus in response to detecting that a capacitance variation of the TP sensor at the first position is greater than or equal to a capacitance variation threshold of the TP sensor at the first position; and responding to the user holding the touch control pen, and executing handwriting drawing operation.
In a possible implementation manner, the transceiver module is configured to receive holding information from the stylus, where the holding information indicates whether the stylus is held or not held.
And the processing module is specifically used for detecting whether the user holds the touch pen or not based on the holding information.
In a possible implementation manner, the processing module is specifically configured to, when the stylus touches a first position of the touch screen, obtain a capacitance variation of a TP sensor at the first position; and acquiring the capacitance variation threshold of the TP sensor at the first position based on the capacitance variation and the preset proportion of the TP sensor at the first position.
In a possible implementation manner, a capacitance variation threshold of the TP sensor of at least one position of the touch screen is stored in the electronic device, and the processing module is specifically configured to query whether the capacitance variation threshold of the TP sensor of the at least one position includes the capacitance variation of the TP sensor of the first position; if yes, in the capacitance variation threshold value of the TP sensor at the at least one position, the capacitance variation threshold value of the TP sensor at the first position is obtained.
In a possible implementation manner, the storage module is configured to record a capacitance variation threshold of a TP sensor at a first position of the touch screen in response to detecting that the stylus touches the first position; in response to detecting that the stylus touches a second position of the touch screen, recording a capacitance variation threshold of the TP sensor at the second position to obtain the capacitance variation threshold of the TP sensor at the at least one position.
In a possible implementation manner, the processing module is further configured to, in response to detecting that the stylus touches a first position of the touch screen, obtain a capacitance variation of a TP sensor at the first position; and acquiring the capacitance variation threshold of the TP sensor at the first position based on the capacitance variation and the preset proportion of the TP sensor at the first position so as to record the capacitance variation threshold of the TP sensor at the first position by a storage module.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, where the memory is used to store code instructions; the processor is configured to execute the code instructions to cause the electronic device to perform the method as in the first aspect or any implementation manner of the first aspect.
The electronic equipment further comprises a touch sensor TP sensor and a first sensor, wherein the first sensor is used for detecting whether a touch pen contacts a touch screen of the electronic equipment, and the TP sensor is contained in the touch screen.
In a fourth aspect, an embodiment of the present application provides a handwriting drawing system, including the electronic device as described in the third aspect above, and a stylus.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium storing instructions that, when executed, cause a computer to perform a method as in the first aspect or any implementation manner of the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product, which includes a computer program and when the computer program is run, causes a computer to perform the method as in the first aspect or any implementation manner of the first aspect.
It should be understood that the second aspect to the sixth aspect of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by the aspects and the corresponding possible implementations are similar and will not be described again.
Drawings
Fig. 1 is a schematic view of a scenario applicable to the 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 a stylus provided in the embodiment of the present application;
fig. 3 is a schematic diagram illustrating interaction between a stylus and an electronic device according to an embodiment of the present disclosure;
fig. 4 is an assembly diagram of a stylus and a wireless keyboard according to an embodiment of the present disclosure;
fig. 5A is a schematic view illustrating a stylus pen accommodated in an accommodating portion of a wireless keyboard according to an embodiment of the present disclosure;
fig. 5B is a schematic side view illustrating a stylus pen received in a receiving portion of a wireless keyboard according to an embodiment of the present disclosure;
fig. 6 is a schematic diagram of a hardware structure of a stylus according to an embodiment of the present disclosure;
fig. 7 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 8 is a schematic hardware structure diagram of a wireless keyboard according to an embodiment of the present application;
FIG. 9 is a schematic diagram of interaction between a stylus and an electronic device according to an embodiment of the present disclosure;
FIG. 10 is a schematic diagram of another scenario in which an embodiment of the present application is applicable;
FIG. 11A is a diagram illustrating changes in capacitance values of a touch screen;
FIG. 11B is another diagram illustrating changes in capacitance values of a touch screen;
FIG. 12 is a schematic diagram of a conventional electronic device drawing handwriting of a stylus;
fig. 13A is a schematic structural diagram of an electronic device according to an embodiment of the application;
fig. 13B is another schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 14 is a flowchart illustrating an embodiment of a handwriting drawing method according to an embodiment of the present application;
FIG. 15 is a schematic diagram of handwriting rendering provided by an embodiment of the application;
FIG. 16 is a flowchart illustrating a handwriting drawing method according to another embodiment of the present application;
fig. 17 is a schematic view illustrating a touch film disposed on a stylus according to an embodiment of the present disclosure;
FIG. 18 is another schematic diagram of handwriting rendering provided by an embodiment of the application;
fig. 19 is a schematic structural diagram of a handwriting drawing apparatus according to an embodiment of the present application.
Detailed Description
Fig. 1 is a schematic view of a scene applicable to the embodiment of the present application. Referring to fig. 1, the scene includes a stylus (stylus) 100, an electronic device 200, and a wireless keyboard 300. In fig. 1, the electronic device 200 is illustrated as a tablet computer (tablet). Stylus 100 and wireless keyboard 300 may provide input to electronic device 200, and electronic device 200 performs an operation responsive to the input based on the input of stylus 100 or wireless keyboard 300. A touch area may be provided on wireless keyboard 300, and stylus 100 may operate the touch area of wireless keyboard 300 to provide an input to wireless keyboard 300, and wireless keyboard 300 may perform an operation in response to the input based on the input of stylus 100. In one embodiment, the interaction of wireless signals can be achieved by the interconnection between stylus 100 and electronic device 200, between stylus 100 and wireless keyboard 300, and between electronic device 200 and wireless keyboard 300 through a communication network. The communication network may be, but is not limited to: a Near Field Communication (NFC) network such as a WI-FI hotspot network, a WI-FI peer-to-peer (P2P) network, a bluetooth network, a zigbee network, or a Near Field Communication (NFC) network.
Stylus 100 may be, but is not limited to: inductance pen and electric capacity pen. The electronic device 200 has a touch screen 201, and when the touch pen 100 is an inductive pen, an electromagnetic induction board needs to be integrated on the touch screen 201 of the electronic device 200 interacting with the touch pen 100. The electromagnetic induction board is distributed with coils, and the inductive pen is also integrated with the coils. Based on the electromagnetic induction principle, the inductive pen can accumulate electric energy along with the movement of the inductive pen in the magnetic field range generated by the electromagnetic induction plate. The inductance pen can transmit the accumulated electric energy to the electromagnetic induction plate through free oscillation and a coil in the inductance pen. 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 referred to as a touch screen and the stylus may be referred to as a stylus.
The capacitive stylus may include: passive capacitive pens and active capacitive pens. The passive capacitive stylus may be referred to as a passive capacitive stylus and the active capacitive stylus may be referred to as an active capacitive stylus.
One or more electrodes may be disposed in the active capacitive stylus (e.g., within the tip) through which the active capacitive stylus may transmit signals. When stylus 100 is an active capacitive stylus, an integrated electrode array is required on a touch screen 201 of electronic device 200 interacting with stylus 100. In one embodiment, the electrode array may be a capacitive electrode array. The electronic device 200 may receive a signal from the active capacitive pen through the electrode array, and then identify a position of the active capacitive pen on the touch screen and a tilt angle of the active capacitive pen based on a change in a capacitance value on the touch screen 201 when the signal is received. It should be understood that 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 pen according to an embodiment of the present disclosure. Referring to fig. 2A, the stylus 100 may include a pen tip 10, a pen barrel 20, and a rear cap 30. The inside of the barrel 20 is a hollow structure, the nib 10 and the rear cap 30 are respectively located at two ends of the barrel 20, the rear cap 30 and the barrel 20 can be inserted or engaged, and the matching relationship between the nib 10 and the barrel 20 is described in detail in fig. 2B.
Fig. 2B is a schematic diagram of a partially disassembled structure of a stylus provided in the embodiment of the present application. Referring to fig. 2B, the stylus 100 further includes a spindle assembly 50, the spindle assembly 50 is located in the barrel 20, and the spindle assembly 50 is slidably disposed in the barrel 20. The spindle assembly 50 has an external thread 51 thereon, and the pen tip 10 includes a writing end 11 and a connecting end 12, wherein the connecting end 12 of the pen tip 10 has an internal thread (not shown) cooperating with the external thread 51.
When the spindle assembly 50 is assembled into the cartridge 20, the connection end 12 of the nib 10 protrudes into the cartridge 20 and is threadedly connected with the external thread 51 of the spindle assembly 50. In some other examples, the connection end 12 of the pen tip 10 and the spindle assembly 50 may be detachably connected by a snap fit or the like. Replacement of the nib 10 is achieved by the removable connection between the connecting end 12 of the nib 10 and the spindle assembly 50.
In order to detect the pressure applied to the writing end 11 of the pen tip 10, referring to fig. 2A, a gap 10a is formed between the pen tip 10 and the pen barrel 20, so that when the writing end 11 of the pen tip 10 is applied with an external force, the pen tip 10 can move toward the pen barrel 20, and the movement of the pen tip 10 drives the spindle assembly 50 to move in the pen barrel 20. For detecting the external force, referring to fig. 2B, a pressure sensing assembly 60 is disposed on the main shaft assembly 50, a portion of the pressure sensing assembly 60 is fixedly connected to a fixing structure in the pen holder 20, and a portion of the pressure sensing assembly 60 is fixedly connected to the main shaft assembly 50. Thus, when the main shaft assembly 50 moves along with the pen tip 10, since part of the pressure sensing assembly 60 is fixedly connected with the fixed structure in the pen holder 20, the movement of the main shaft assembly 50 drives the deformation of the pressure sensing assembly 60, the deformation of the pressure sensing assembly 60 is transmitted to the circuit board 70 (for example, the pressure sensing assembly 60 and the circuit board 70 can be electrically connected through a wire or a flexible circuit board), and the circuit board 70 detects the pressure of the writing end 11 of the pen tip 10 according to the deformation of the pressure sensing assembly 60, so as to control the line thickness of the writing end 11 according to the pressure of the writing end 11 of the pen tip 10.
It should be noted that the pressure detection of the pen tip 10 includes, but is not limited to, the above method. For example, a pressure sensor may be provided in writing end 11 of pen tip 10, and the pressure of pen tip 10 may be detected by the pressure sensor.
In this embodiment, referring to fig. 2B, the stylus pen 100 further includes a plurality of electrodes, which may be, for example, a first transmitting electrode 41, a ground electrode 43, and a second transmitting 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 transmitting electrode 41 may be located in the pen tip 10 and near the writing end 11, the circuit board 70 may be configured as a control board that may provide signals to the first transmitting electrode 41 and the second transmitting electrode 42, respectively, the first transmitting electrode 41 is used to transmit a first signal, and when the first transmitting electrode 41 is near the touch screen 201 of the electronic device 200, a coupling capacitance may be formed between the first transmitting electrode 41 and the touch screen 201 of the electronic device 200, so that the electronic device 200 may receive the first signal. The second transmitting electrode 42 is configured to transmit a second signal, and the electronic device 200 can determine the tilt angle of the stylus pen 100 according to the received second signal. In the embodiment of the present application, the second emitter electrode 42 may be located on the inner wall of the barrel 20. In one example, the second emitter electrode 42 may also be located on the spindle assembly 50.
The ground electrode 43 may be located between the first and second emitter electrodes 41 and 42, or the ground electrode 43 may be located at an outer circumference of the first and second emitter electrodes 41 and 42, the ground electrode 43 serving to reduce coupling of the first and second emitter electrodes 41 and 42 to each other.
When the electronic device 200 receives the first signal from the stylus pen 100, the capacitance value at the corresponding position of the touch screen 201 changes. Accordingly, electronic device 200 can determine the location of stylus 100 (or the tip of stylus 100) on touch screen 201 based on changes in capacitance values on touch screen 201. In addition, the electronic device 200 may acquire the tilt angle of the stylus pen 100 by using a dual-tip projection method in the tilt angle detection algorithm. Here, the positions of the first transmitting electrode 41 and the second transmitting electrode 42 in the stylus pen 100 are different, so when the electronic device 200 receives the first signal and the second signal from the stylus pen 100, capacitance values at two positions on the touch screen 201 are changed. The electronic device 200 may obtain the tilt angle of the stylus pen 100 according to the distance between the first transmitting electrode 41 and the second transmitting electrode 42 and the distance between two positions of the touch screen 201 where the capacitance value changes, and for more details, reference may be made to the related description of the dual-tip projection method in the prior art to obtain the tilt angle of the stylus pen 100.
In the embodiment of the present application, referring to fig. 2B, the stylus 100 further includes: a battery assembly 80, the battery assembly 80 being used to provide power to the circuit board 70. The battery assembly 80 may include a lithium ion battery, or the battery assembly 80 may include a nickel-chromium battery, an alkaline battery, a nickel-hydrogen battery, or the like. In one embodiment, the battery of the battery assembly 80 may be a rechargeable battery or a disposable battery, wherein when the battery of the battery assembly 80 is a rechargeable battery, the stylus 100 may charge the battery of the battery assembly 80 by a wireless charging method.
When the stylus 100 is an active capacitive pen, referring to fig. 3, after the electronic device 200 is wirelessly connected to the stylus 100, the electronic device 200 may send an uplink signal to the stylus 100 through an electrode array integrated on the touch screen 201. Stylus 100 may receive the uplink signal through a receive electrode, and stylus 100 transmits the downlink signal through a transmit electrode (e.g., first transmit electrode 41 and second transmit electrode 42). The downlink signal includes the first signal and the second signal described above. When the tip 10 of the stylus 100 contacts the touch screen 201, the capacitance value at the corresponding position of the touch screen 201 changes, and the electronic device 200 can determine the position of the tip 10 of the stylus 100 on the touch screen 201 based on the capacitance value on the touch screen 201. In one embodiment, the upstream and downstream signals may be square wave signals.
In one embodiment, as shown with reference to FIG. 4, wireless keyboard 300 may include a first portion 301 and a second portion 302. Illustratively, wireless keyboard 300 may include: keyboard main part and keyboard cover. The first portion 301 may be a keypad sleeve and the second portion 302 a keypad body. The first portion 301 is used for placing the electronic device 200, and the second portion 302 may be provided with keys, a touch pad, and the like for user operation.
Wherein, when the wireless keyboard 300 is used, 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 used, the first part 301 and the second part 302 of the wireless keyboard 300 can be closed. In one embodiment, the first portion 301 and the second portion 302 of the wireless keyboard 300 are rotatably coupled. For example, the first portion 301 and the second portion 302 may be connected by a hinge or a rotating shaft, or, in some examples, the first portion 301 and the second portion 302 may be rotatably connected by a flexible material (e.g., a leather material or a cloth material). Or, in some examples, the first portion 301 and the second portion 302 may be integrally formed, and the connection between the first portion 301 and the second portion 302 is processed by thinning, so that the connection between the first portion 301 and the second portion 302 may be bent. The connection between the first portion 301 and the second portion 302 may include, but is not limited to, the above-mentioned several rotation connection manners.
Wherein the first portion 301 may comprise at least two pivotally connected brackets. For example, referring to fig. 4, the first portion 301 includes a first bracket 301a and a second bracket 301b, the first bracket 301a and the second bracket 301b are rotatably connected, and the first bracket 301a and the second bracket 301b can be used to support the electronic device 200 together when in use (see fig. 1). Alternatively, the first stand 301a provides support for the second stand 301b, and the second stand 301b supports the electronic device 200. Referring to fig. 4, the second bracket 301b is pivotally connected to the second portion 302.
As shown in fig. 4, the wireless keyboard 300 may be provided with a storage unit 303 for storing the stylus 100 in order to facilitate storage of the stylus 100. Referring to fig. 4, the housing 303 is a cylindrical cavity, and when housed, the stylus pen 100 is inserted into the housing along the direction of the arrow in fig. 4. In this embodiment, referring to fig. 4, the second portion 302 and the second bracket 301b are rotatably connected by a connecting portion 304, and the connecting portion 304 is provided with a receiving portion 303. The connecting portion 304 may be a rotating shaft.
Fig. 5A is a schematic view illustrating a stylus pen accommodated in an accommodating portion of a wireless keyboard according to an embodiment of the present disclosure, and fig. 5B is a schematic side view illustrating the stylus pen accommodated in the accommodating portion of the wireless keyboard according to the embodiment of the present disclosure. Referring to fig. 5B, the receiving portion 303 is a circular cavity, and an inner diameter of the receiving portion 303 is larger than an outer diameter of the stylus 100.
In order to prevent the stylus pen 100 from falling off when being placed in the receiving portion 303, in one embodiment, a magnetic material may be disposed on an inner wall of the receiving portion 303, and the magnetic material may be disposed in the stylus pen 100. The stylus pen 100 is attracted into the housing 303 by magnetic attraction between the magnetic materials. Of course, in some examples, when the stylus pen 100 is fixed to the receiving portion 303, the fixing includes, but is not limited to, using magnetic attraction to achieve the fixing, for example, the stylus pen 100 may also be fixed to the receiving portion 303 by a snap-fit manner.
In order to facilitate the stylus 100 to be taken out of the receiving portion 303, an ejecting mechanism may be disposed in the receiving portion 303, for example, one end of the stylus 100 is pressed, and the ejecting mechanism may drive one end of the stylus 100 to be ejected out of the receiving portion 303.
Fig. 6 is a schematic diagram of a hardware structure of a stylus according to an embodiment of the present disclosure. Referring to fig. 6, a stylus 100 may have a processor 110. Processor 110 may include storage and processing circuitry to support the operation of stylus 100. The 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), and so forth. Processing circuitry in processor 110 may be used to control the operation of 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.
One or more sensors can be included in stylus 100. For example, the sensor may include a pressure sensor 120. Pressure sensor 120 can be disposed at writing end 11 of stylus 100 (as shown in fig. 2B). Of course, the pressure sensor 120 may be disposed in the shaft 20 of the stylus 100, such that when a force is applied to one end of the tip 10 of the stylus 100, the other end of the tip 10 moves to apply a force to the pressure sensor 120. In one embodiment, processor 110 may adjust the line thickness of stylus 100 when writing with tip 10 according to the pressure detected by pressure sensor 120.
The sensors may also include inertial sensors 130. The inertial sensors 130 may include three-axis accelerometers and three-axis gyroscopes, and/or other components for measuring motion of the stylus 100, e.g., acceleration sensors, or three-axis magnetometers may be included in the sensors in a nine-axis inertial sensor configuration. 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 stylus 100. Status indicators 140 are used to alert the user of the status of stylus 100. Buttons 150 may include mechanical and non-mechanical buttons, and buttons 150 may be used to collect button press information from a user.
In the embodiment of the present application, one or more electrodes 160 (refer to the description in fig. 2B specifically) may be included in the stylus 100, where one electrode 160 may be located at the writing end of the stylus 100, and where one electrode 160 may be located in the pen tip 10, which may be referred to the above-mentioned related description.
Sensing circuitry 170 may be included in stylus 100. Sensing circuitry 170 can sense capacitive coupling between electrodes 160 and drive lines of a capacitive touch sensor panel interacting with stylus 100. The sensing circuit 170 can include an amplifier to receive capacitance readings from the capacitive touch sensor panel, a clock to generate a demodulation signal, a phase shifter to generate a phase shifted demodulation signal, a mixer to demodulate the capacitance readings using an in-phase demodulation frequency component, and a mixer to demodulate the capacitance readings using a quadrature demodulation frequency component, among others. The results of the mixer demodulation can be used to determine an amplitude proportional to the capacitance so that stylus 100 can sense contact with the capacitive touch sensor panel.
It is understood that a microphone, speaker, audio generator, vibrator, camera, data port, and other devices may be included in stylus 100, depending on the actual requirements. A user can control the operation of stylus 100 and electronic device 200 interacting with stylus 100 by providing commands with these devices, as well as receive status information and other outputs.
Processor 110 may be used to run software on stylus 100 that controls the operation of stylus 100. During operation of stylus 100, software running on processor 110 may process sensor inputs, button inputs, and inputs from other devices to monitor movement of stylus 100 and other user inputs. Software running on the processor 110 may detect the user command and may communicate with the electronic device 200.
To support wireless communication of stylus 100 with electronic device 200, stylus 100 may include a wireless module. Fig. 6 illustrates an example in which the bluetooth module 180 is a wireless module. The wireless module can also be a WI-FI hotspot module, a WI-FI point-to-point module and the like. Bluetooth module 180 may include a radio frequency transceiver, such as a transceiver. Bluetooth module 180 may also include one or more antennas. The transceiver may transmit and/or receive wireless signals, which may be bluetooth signals, wireless local area network signals, long range signals such as cellular telephone signals, near field communication signals, or other wireless signals, based on the type of wireless module, using the antenna.
Stylus 100 may further include a charging module 190, and charging module 190 may support charging of stylus 100 to provide power to stylus 100.
It should be understood that the electronic device 200 in the embodiment of the present application may be referred to as a User Equipment (UE), a terminal (terminal), and the like, for example, the electronic device 200 may be a tablet computer (PAD), a Personal Digital Assistant (PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device, or a wearable device, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (smart home), and the like. The form of the terminal device is not particularly limited in the embodiment of the present application.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. Referring to fig. 7, 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.
For example, coordination engine 230 may be used to communicate with and/or process data with other subsystems of electronic device 200; communicating and/or transacting data with stylus 100; measuring and/or obtaining the output of one or more analog or digital sensors (such as touch sensors); measuring and/or obtaining an output of one or more sensor nodes of an array of sensor nodes (such as an array of capacitive sensing nodes); receiving and locating tip and ring signals from stylus 100; the stylus pen 100 and the like are positioned based on the positions of the tip signal crossing area and the ring signal crossing area.
Coordination engine 230 of electronic device 200 includes or is otherwise communicatively coupled to a sensor layer located below or integrated with input surface 220. Coordination engine 230 locates stylus 100 on input surface 220 using the sensor layer and estimates the angular position of stylus 100 relative to the plane of input surface 220 using the techniques described herein. In one embodiment, the input surface 220 may be referred to as a touch screen 201.
For example, the sensor layer of coordination engine 230 of electronic device 200 is a grid of capacitive sensing nodes arranged as columns and rows. More specifically, the array of column traces is disposed perpendicular to the array of row traces. The sensor layer may be separate from other layers of the electronic device, or the sensor layer may be disposed directly on another layer, such as, but not limited to: display stack layers, force sensor layers, digitizer layers, polarizer layers, battery layers, structural or decorative outer shell layers, and the like.
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 overlap point (e.g., a "vertical" mutual capacitance). If operating in self-capacitance mode, the column and row traces form two (vertically aligned) capacitive sensing nodes at each overlap point. In another embodiment, adjacent column traces and/or adjacent row traces can each form a single capacitive sensing node (e.g., a "horizontal" mutual capacitance) if operating in a mutual capacitance mode. As described above, 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 (e.g., mutual or self capacitance) present at each capacitive sensing node. In many cases, coordination engine 230 may be configured to detect tip and ring signals received from stylus 100 through the sensor layer via capacitive coupling.
Wherein the tip signal and/or the ring signal can include specific information and/or data that can be configured to cause electronic device 200 to recognize 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. In particular, the coordination engine 230 may be configured to transmit the position and/or angular position of each of the number of styli detected by the coordination engine 230 to the processor 210. In other cases, the coordination engine 230 may also transmit information to the processor 210 regarding the relative positions and/or relative angular positions of the plurality of styli detected by the coordination engine 230. For example, coordination engine 230 may notify processor 210 that a detected first stylus is located a distance from a detected second stylus.
In other cases, the end signal and/or the ring signal may also include specific information and/or data for the electronic device 200 to identify a particular user. Such information is generally referred to herein as "user identity" information.
The coordination engine 230 may forward the user identity information (if detected and/or recoverable) to the 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. The processor 210 can utilize the user identity information (or the absence thereof) in any suitable manner, including but not limited to: accept or reject input from a particular user, allow or reject access to a particular function of the electronic device, and the like. The processor 210 may use the user identity information to receive input from more than one user at the same time.
In still other cases, the tip signal and/or the ring signal can include specific information and/or data that can be configured to cause electronic device 200 to identify settings or preferences of a user or stylus 100. Such information is generally referred to herein as "stylus setting" information.
The coordination engine 230 may forward the stylus setting information (if detected and/or recoverable) to the 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 utilize the stylus to set information (or the absence of such information) in any suitable manner, including but not limited to: applying settings to the electronic device, applying settings to a program running on the electronic device, changing line thickness, color, patterns rendered by a graphics program of the electronic device, changing settings of a video game operating on the electronic device, and so forth.
In general, 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: communicate and/or transact data with other subsystems of electronic device 200, communicate and/or transact data with stylus 100, communicate and/or transact data via a wireless interface, communicate and/or transact data via a wired interface, facilitate power exchange via a wireless (e.g., inductive, resonant, etc.) or wired interface, receive position and angular position of one or more styli, and/or the like.
Processor 210 may be implemented as any electronic device capable of processing, receiving, or transmitting data or instructions. For example, the 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. The processor may be a single threaded or a multi-threaded processor. The processor may be a single core or a multi-core processor.
During use, the processor 210 may be configured to access a memory having stored 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 the memory may be configured to control or coordinate the operation of other components of the electronic device 200, such as, but not limited to: another processor, analog or digital circuitry, a volatile or non-volatile memory module, a display, a speaker, a microphone, a rotary input device, a button or other physical input device, a biometric authentication sensor and/or system, a force or touch input/output component, a communication module (such as a wireless interface and/or a power connector), and/or a haptic or tactile feedback device.
The memory may also store electronic data that may be used by the stylus or the processor. For example, the memory can store electronic data or content (such as media files, documents, and applications), device settings and preferences, timing signals and control signals or data for various modules, data structures or databases, files or configurations related to detecting tip signals and/or ring signals, and the like. The memory may be configured as any type of memory. For example, the 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 configured to provide power to an external load. For example, in some embodiments, power connector 250 may be used to recharge a battery within power subsystem 240. In another embodiment, power connector 250 can be used to transmit power stored (or available) within power subsystem 240 to stylus 100.
Electronic device 200 also includes a wireless interface 260 to facilitate electronic communication between electronic device 200 and stylus 100. In one embodiment, electronic device 200 may be configured to communicate with stylus 100 via a low energy bluetooth communication interface or a near field communication interface. In other examples, the communication interface facilitates electronic communication between the electronic device 200 and an external communication network, device, or platform.
The wireless interface 260 (whether a communication interface between the electronic device 200 and the stylus 100 or another communication interface) may be implemented as one or more wireless interfaces, bluetooth interfaces, near field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitive coupling interfaces, wi-Fi interfaces, TCP/IP interfaces, network communication interfaces, optical interfaces, acoustic interfaces, or any conventional communication interfaces.
The electronic device 200 also includes a display 270. The display 270 may be located behind the input surface 220 or may be integral therewith. The display 270 may be communicatively coupled to the processor 210. The processor 210 may present information to a user using the display 270. In many cases, processor 210 uses display 270 to present an interface with which a user may interact. In many cases, a user manipulates stylus 100 to interact with the interface.
It will be apparent to one skilled in the art that some of the specific details presented above with respect to the electronic device 200 may not be required to practice particular described embodiments or their equivalents. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Some sub-modules may be implemented as software or hardware, where appropriate. Accordingly, it should be understood that the above description is not intended to be exhaustive or to limit the disclosure to the precise form disclosed herein. On the contrary, many modifications and variations are possible in light of the above teaching, as would be apparent to a person of ordinary skill in the art.
Fig. 8 is a schematic hardware structure diagram of a wireless keyboard according to an embodiment of the present application. Referring to fig. 8, 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 pad 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 pad 380, the keyboard 390, etc. may be disposed on the keyboard body (i.e. the second portion 302 shown in fig. 4) of the wireless keyboard 300. The wireless charging coil 350 may be provided in a connecting part 304 (shown in fig. 4) for movably connecting the keyboard main body and the stand. It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the wireless keyboard 300. In other embodiments, wireless keyboard 300 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Memory 320 may be used to store program code, such as program code for wirelessly charging stylus 100, among other things. The memory 320 may also have stored therein a bluetooth address for uniquely identifying the wireless keyboard 300. In addition, the memory 320 may also store connection data with electronic devices that have been successfully paired with the wireless keyboard 300 before. For example, the connection data may be a bluetooth address of an electronic device that has successfully paired with the wireless keyboard 300. Based on the connection data, wireless keyboard 300 is able to automatically pair with the electronic device without having to configure a connection therewith, such as for legitimacy verification and the like. The bluetooth address may be a Media Access Control (MAC) address.
Processor 310 may be configured to execute the application codes and call the relevant modules to implement the functions of wireless keyboard 300 in the embodiments of the present application. For example, a wired charging function, a reverse wireless charging function, a wireless communication function, etc. of the wireless keyboard 300 are implemented. The processor 310 may include one or more processing units, and the different processing units may be independent devices or may be integrated in one or more of the processors 310. The processor 310 may be specifically an integrated control chip, or may be composed of a circuit including various active and/or passive components, and the circuit is configured to perform the functions described in the embodiments of the present application and attributed to the processor 310. Wherein the processor of the wireless keyboard 300 may be a microprocessor.
The wireless communication module 370 may be configured to support data exchange between the wireless keyboard 300 and other electronic devices, including Bluetooth (BT), global Navigation Satellite System (GNSS), wireless Local Area Network (WLAN) (such as wireless fidelity (Wi-Fi) network), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and other wireless communications.
In some embodiments, the wireless communication module 370 may be a bluetooth chip. The wireless keyboard 300 may be a bluetooth keyboard. The wireless keyboard 300 can be paired with bluetooth chips of other electronic devices through the bluetooth chip and establish wireless connection, so as to realize wireless communication between the wireless keyboard 300 and other electronic devices through the wireless connection.
In addition, the wireless communication module 370 may further include an antenna, and the wireless communication module 370 receives an electromagnetic wave via the antenna, frequency-modulates and filters a signal of the electromagnetic wave, and transmits the processed signal to the processor 310. The wireless communication module 370 may also receive signals to be transmitted from the processor 310, frequency modulate them, amplify them, and convert them into electromagnetic waves via the antenna to radiate them out.
In some embodiments, wireless keyboard 300 may support wired charging. Specifically, the charging management module 340 may receive a charging input of the wired charger through the charging interface 330.
In other embodiments, wireless keyboard 300 may support forward wireless charging. The charging management module 340 may receive a wireless charging input through the wireless charging coil 350 of the wireless keyboard 300. Specifically, the charging management module 340 is connected to the wireless charging coil 350 through a matching circuit. The wireless charging coil 350 may be coupled to the wireless charging coil of the wireless charger to induce an alternating electromagnetic field emitted from the wireless charging coil 350 of the wireless charger to generate an alternating electrical signal. The alternating electrical 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 may also supply power to the wireless keyboard 300 while charging the battery 360. The charge management module 340 receives input from the battery 360 and provides power to the processor 310, the memory 320, the external memory, and the wireless communication module 370. The charge management module 340 may also be used to monitor parameters such as battery capacity, battery cycle number, and battery state of health (leakage, impedance) of the battery 360. In some other embodiments, the charging management module 340 may also be disposed in the processor 310.
In other embodiments, wireless keyboard 300 may support reverse wireless charging. Specifically, the charging management module 340 may further receive an input of the charging interface 330 or the battery 360, and convert a dc signal input by 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 ac power signal received by the wireless charging coil 350 may generate an alternating electromagnetic field. The wireless charging coils of other mobile terminals induce the alternating electromagnetic field, and wireless charging can be carried out. That is, the wireless keyboard 300 may also wirelessly charge other mobile terminals. In one embodiment, wireless charging coil 350 may be disposed in receiving portion 303 of wireless keyboard 300, and wireless charging coil is disposed in shaft 20 of stylus 100, and when stylus 100 is placed in receiving portion 303, wireless keyboard 300 may charge stylus 100 through wireless charging coil 350.
It should be noted that the matching circuit may be integrated in the charging management module 340, or the matching circuit may be independent from the charging management module 340, which is not limited in this embodiment of the application. Fig. 8 shows a schematic hardware structure of the wireless keyboard 300 by taking an example that the matching circuit may be integrated in the charging management module 340.
The charging interface 330 may be used to provide a wired connection for charging or communication between the wireless keyboard 300 and other electronic devices (e.g., a wired charger of the wireless keyboard 300).
The touch pad 380 has a touch sensor integrated therein. The notebook computer can receive a control command of the notebook computer from a user through the touch pad 380 and the keyboard 390.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to 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. For example, the housing of the wireless keyboard 300 may further include a receiving cavity for receiving the stylus pen 100. The wireless charging coil 350 is disposed in the accommodating cavity, and is configured to wirelessly charge the stylus pen 100 after the stylus pen 100 is accommodated in the accommodating cavity.
For another example, the wireless keyboard 300 may further include a key, an indicator light (which may indicate the status of power, incoming/outgoing call, pairing mode, etc.), a display screen (which may prompt the user for relevant information), and the like on the outer surface. The key may be a physical key or a touch key (used in cooperation with the touch sensor), and is used for triggering operations such as power on, power off, starting charging, stopping charging, and the like.
It should be understood that the method provided by the embodiment of the present application may also be applied to a scenario that includes the stylus pen 100 and the electronic device 200.
Fig. 9 is a schematic diagram of interaction between a stylus and an electronic device according to an embodiment of the present disclosure. Referring to fig. 9, the stylus 100 includes: a Micro Controller Unit (MCU), a first communication module, a charging module, a pressure sensor module, a transmitting module (TX), and a receiving module (RX). The electronic apparatus 200 includes: a touch sensor (TP sensor), a touch processing module and a second communication module. It should be understood that, in the following embodiments, the first communication module and the second communication module are both bluetooth modules for illustration, and the first communication module and the second communication module may also be a wireless local area network module, a WI-FI module, and the like, which is not limited in this application embodiment. It should be understood that the stylus and the electronic device may establish a wireless path through the first communication module and the second communication module to interact with a wireless signal.
In the electronic equipment, the touch processing module is respectively connected with the touch sensor and the second communication module. An array of electrodes may be included in the touch sensor. A touch sensor for collecting touch data, the touch data may include: data of the touch screen touched by the stylus. And a touch processing module, configured to determine, based on touch data acquired by the touch sensor, a position of a pen tip of the stylus and an angle between the stylus and the touch screen (hereinafter referred to as an angle), as described with reference to fig. 11A and 11B. When the electronic device and the touch pen establish a wireless path in a wireless manner, that is, after the electronic device and the touch pen are wirelessly connected, the touch processing module can send an uplink signal to the touch pen through the electrode array, and the uplink signal is used for indicating the touch pen to feed back a downlink signal. The touch processing module may determine a position of a tip of the stylus and an included angle based on the downlink signal from the stylus. In one embodiment, both the upstream and downstream signals may be square wave signals. In one embodiment, the touch processing module may be an integrated circuit chip (IC chip).
In the touch control pen, the MCU is respectively connected with the first communication module, the charging module, the pressure sensor module, the sending module and the receiving module. It should be understood that the MCU may be understood as the processor shown in fig. 6. And the charging module is used for charging the touch control pen. The pressure sensor module comprises: the pressure sensor and the 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 a pen point of the touch pen, and is used for collecting the pressure of the pen point. For example, when the tip of the stylus contacts the touch screen of the electronic device, the pressure sensor may collect pressure of the tip. And the data processing module is used for sending the pressure of the pen point to the MCU. In one embodiment, the MCU may transmit the pressure of the pen tip to the electronic device based on the first communication module. The electronic device may adjust a thickness of a line written by the stylus on the touch screen based on the second communication module receiving the pressure from the pen tip in the stylus.
The sending module may include: a first electrode, a second electrode and a transmission drive circuit. The first electrode and the second electrode are both connected with a transmission driving circuit, and the transmission driving circuit is connected with the MCU. And an MCU for generating a first Pulse Width Modulation (PWM) signal and a second PWM signal, and transmitting the first PWM signal and the second PWM signal to the transmission driving circuit. The transmission driving circuit may drive the first electrode to transmit the first signal based on the first PWM signal, and drive the second electrode to transmit the second signal based on the second PWM signal. Here, the first electrode may be referred to as TX1, and the second electrode may be referred to as TX2. In one embodiment, the first signal and the second signal may be referred to as downstream signals or as coded signals. In one embodiment, the downstream signal may be a 40V square wave signal. It should be understood that the uplink signal and the downlink signal in the embodiment of the present application are based on the stylus pen, and it is conceivable that, based on the electronic device, the electronic device may send the downlink signal to the stylus pen, and the stylus pen may send the uplink signal to the electronic device based on the downlink signal. In the following embodiments, the case where the stylus transmits the downlink signal and the electronic device transmits the uplink signal is taken as an example for explanation.
Referring to fig. 9, in one embodiment, the transmission driving circuit may include: high-voltage driving signal module and switch tube. The MCU is respectively connected with the high-voltage driving signal module and the switch tube. The switch tube is connected with the second electrode, and the high-voltage driving signal module is respectively connected with the first electrode and the second electrode. And the high-voltage driving signal module is used for providing a high-voltage driving signal, driving the first electrode to transmit a first signal based on a first PWM signal from the MCU, and driving the second electrode to transmit a second signal based on a second PWM signal from the MCU.
In one embodiment, the MCU is further configured to control the switching tube to switch the second electrode between the transmit signal and the receive signal, that is, to switch the second electrode between TX2 and RX. In the embodiment of the present application, details of a specific circuit of the switching tube and a control mode of the MCU are not described. In other words, the MCU may control the switching tube, so that the second electrode may serve as TX2, and the second electrode serving as TX2 is connected to the transmission driving circuit, and further, the second electrode transmits the second signal under the action of the transmission driving circuit. The MCU can also control the switch tube, so that the second electrode is used as RX, the second electrode used as RX is connected with the receiving module, and further the second electrode can receive uplink signals from the electronic equipment. That is, the second electrode may be switched between TX2 and RX under the control of the MCU.
The receiving module comprises a decoding circuit. The decoding circuit can be connected with the switch tube and is also connected with the MCU. And the second electrode is used for receiving an uplink signal from the electronic equipment and sending the uplink signal to the decoding circuit. And the decoding circuit is used for decoding the uplink signal and sending the decoded uplink signal to the MCU.
It should be understood that the structure of the stylus shown in fig. 9 is an example, and in one embodiment, one transmitting electrode TX and one receiving electrode RX may be disposed in the stylus, which is not limited in this embodiment.
Based on the structure shown in fig. 9, the following describes a process of interacting between the electronic device and the stylus pen with reference to fig. 10. Referring to fig. 10, for example, a wireless path may be established between the stylus and the electronic device, such as a bluetooth path may be established between the stylus and the electronic device. Because the tip of the stylus is provided with electrodes, an array of electrodes is included in a touch sensor in an electronic device. An insulating substance (such as air or glass on a touch screen) exists between the pen point of the stylus and the electrode of the touch sensor, so that capacitance is formed between the pen point of the stylus and the electrode of the touch sensor, and the pen point of the stylus and the touch sensor in the electronic device can be connected through a circuit by the capacitance.
In one embodiment, when the electronic device is successfully connected to the stylus via bluetooth, the touch processing module may control the touch sensor to transmit an uplink signal through the circuit path. In one embodiment, when the electronic device is successfully connected to the stylus via bluetooth and the electronic device detects that the stylus is not charged, the touch processing module may control the touch sensor to transmit an uplink signal through the circuit path. In an embodiment, when the electronic device is successfully connected to the stylus via bluetooth, and the electronic device detects that the stylus is in a moving state, the touch processing module may control the touch sensor to transmit an uplink signal through the circuit path. It should be understood that the triggering conditions for sending the uplink signal by different electronic devices may be different, and the following embodiment will be described by taking "when the electronic device is successfully connected with the touch pen via bluetooth, the touch processing module controls the touch sensor to send the uplink signal through the circuit path" as an example.
And the second electrode can receive an uplink signal from the electronic equipment and send the uplink signal to the decoding circuit based on the circuit path. The decoding circuit may transmit the decoded uplink signal to the MCU. And the MCU controls the transmission driving circuit to drive the first electrode to transmit a first signal and drive the second electrode to transmit a second signal based on the decoded uplink signal. That is, the stylus may send a downlink signal through the circuit path. A touch sensor in the electronic device may receive a downstream signal based on the circuit path. The touch processing module can acquire the position and the included angle of a pen point of the touch pen based on the downlink signal acquired by the touch sensor.
Fig. 11A is a schematic diagram illustrating capacitance variation of the touch screen. When the touch sensor receives a first signal from a first electrode of a stylus pen, the capacitance variation at the corresponding position of the touch screen changes. And when the pen point of the touch pen is closer to the touch screen, the capacitance variation at the corresponding position of the touch screen is larger. Referring to fig. 11A, in fig. 11A, the capacitance variation at the corresponding position of the touch screen is represented by a peak, and the electronic device may determine the position of the pen tip of the stylus pen based on the capacitance variation on the touch screen. In addition, the electronic device may obtain the included angle by using a dual-nib projection method in the tilt angle detection algorithm. Referring to fig. 11B, in one embodiment, a first electrode and a second electrode in the stylus pen may be disposed at a tip of the stylus pen, the first electrode being disposed near a tip of the tip, the second electrode being disposed away from the tip of the tip with respect to the first electrode. When the touch sensor receives a first signal from a first electrode of the stylus and a second signal from a second electrode of the stylus, capacitance variation amounts at two positions (e.g., position B and position C) of the touch screen may change, and the electronic device may obtain an included angle based on a distance between the first electrode and the second electrode and a distance between the two positions of the touch screen. FIG. 11A depicts black dots indicating where the stylus touches the touch screen, and FIG. 11B depicts black dots indicating where position B and position C are touching.
Fig. 12 is a schematic diagram of a conventional electronic device for drawing handwriting of a stylus. With reference to the description above in connection with fig. 2B, a pressure sensor may be provided in the tip of the stylus. Referring to fig. 12, when a tip of a stylus contacts a touch screen of an electronic device, a pressure sensor may collect pressure data of the tip and transmit the pressure data to the electronic device through bluetooth. Wherein the pressure data may comprise pressure values. In addition, based on the description related to fig. 10, when the electronic device is successfully connected to the stylus via bluetooth, the stylus may send a downlink signal to the electronic device, and the electronic device may obtain a position of the stylus on the touch screen and an included angle between the stylus and the touch screen via the downlink signal. In one embodiment, the downlink signal may be referred to as a Touch Panel (TP) signal, and the TP signal is used as an example for the following description.
In the prior art, the electronic device may display handwriting of the stylus on the touch screen based on a pressure-sensitive signal of the stylus and a TP signal of the stylus. Specifically, because the TP signal can lead to the capacitance variation of the TP sensor in the electronic device to change, and the electronic device can acquire the pressure value based on the pressure-sensitive signal, if the electronic device detects that the capacitance variation of the TP sensor is greater than or equal to the capacitance variation threshold, and the pressure value is greater than or equal to the pressure threshold, the electronic device can display handwriting at the corresponding position of the touch screen based on the position of the stylus on the touch screen.
If one of the "pressure-sensitive signal" and the "TP signal" is not satisfied (if the capacitance variation of the TP sensor is smaller than the capacitance variation threshold, or the pressure value is smaller than the pressure threshold), the stylus cannot flow out, that is, the electronic device does not display the handwriting of the stylus on the touch screen. At present, the electronic equipment displays the handwriting of a touch pen according to a pressure signal and a TP signal, and has low response speed and low control precision. The specific reason is analyzed as follows:
the pressure sensing signal is transmitted through Bluetooth, and the Bluetooth has transmission delay of 10-20 ms. If when the stylus just left the touch screen, because transmission delay's reason, the stylus still is sending the pressure-sensitive signal to electronic equipment, and the capacitance variation of TP sensor still is greater than the capacitance variation threshold value simultaneously, and then electronic equipment still can continue to show the handwriting of stylus, can lead to the condition of appearing leaking the china ink like this, and user experience is poor. It should be understood that leaking ink refers to: and the stylus still discharges water after leaving the touch screen, namely the electronic equipment still displays the handwriting of the stylus.
In addition, the pressure sensor of the stylus tip may be a spring tube pressure sensor, a strain gauge pressure sensor, or the like. Because the pressure sensor has inherent defects and is easily affected by temperature drift, deformation and the like, the pressure sensor can acquire a small pressure value, such as 1g, even when the pressure sensor does not contact the touch screen. Wherein g represents 9.8N/kg. Thus, if the pressure threshold is set to a small value, such as 1g, false triggering is likely to occur. Therefore, the pressure threshold value is set to a large value, such as 5g or 8g. Therefore, when the user uses the stylus to write obliquely or lightly touch the touch screen, the stylus does not go out of water because the pressure value is smaller than the pressure threshold, and the electronic equipment cannot display the handwriting of the stylus, so that the control precision of the electronic equipment is low.
Based on as above problem, because set up pressure sensor at the nib of stylus among the prior art, the pressure-sensitive signal that comes from the stylus passes through the bluetooth and transmits and can bring the time delay problem for electronic equipment, can add newly in electronic equipment's touch-sensitive screen and put the sensor for whether detect the stylus contact touch-sensitive screen, and then avoid because the time delay problem that the bluetooth transmission caused. In addition, when the electronic device receives a TP signal from a stylus, a capacitance variation of the TP sensor may change, and therefore, in order to improve control accuracy of the electronic device, in the embodiment of the present application, the capacitance variation of the TP sensor is used to determine whether to perform an operation of drawing a handwriting. It should be understood that the three-axis acceleration may include: x-axis acceleration, Y-axis acceleration, and Z-axis acceleration.
Accordingly, the embodiment of the present application provides a handwriting drawing method, which can determine whether a stylus contacts a touch screen (detect a pressure value without detecting a certain pressure value, such as 5 g) through a newly added sensor in an electronic device, and determine whether to execute a handwriting drawing operation based on a capacitance variation of a TP sensor in response to detecting that the stylus contacts the touch screen. So, not only solved because the time delay problem that the bluetooth transmission caused, can also adopt the stylus slope to write or when dabbing the touch-sensitive screen at the user, electronic equipment homoenergetic draws the handwriting, and electronic equipment draws the response speed of handwriting fast, and control accuracy is high, can improve user experience.
Before describing the handwriting drawing method provided by the embodiment of the present application, a structure of the electronic device provided by the embodiment of the present application is described. Referring to fig. 13A, in one embodiment, an electronic device may include: cover Glass (CG), a touch functional layer, a display screen, a middle frame, a sensor and the like. The touch function layer may include the touch sensor as described in the above embodiments, and the display screen may include but is not limited to: liquid Crystal Displays (LCDs), light emitting diode displays (LEDs), and the like. The middle frame can be understood as a frame of the electronic device, and can be used for installing various components in the electronic device, such as a CPU, a card slot and the like. In one embodiment, to distinguish between the newly added sensor and the TP sensor in the electronic device, the sensor may be referred to as a first sensor.
The sensor is used to detect whether there is a contact of an object with the CG of the electronic device, the object may be a stylus, a user's finger, a joint, etc. In one embodiment, the sensor may be a pressure sensor for collecting a pressure-sensitive signal generated by the CG surface deformation caused by the object contacting the CG. In one embodiment, the sensor may be an acceleration sensor, and the sensor may collect an acceleration signal generated by vibration of the electronic device due to the object touching the CG. It should be understood that, taking a pressure sensor as an example, if the pressure sensor can acquire a pressure sensing signal, the electronic device may determine that there is a CG of the object contacting the electronic device, and contacting the CG may be understood as: a touch screen of an electronic device is contacted.
Referring to fig. 13A, the sensor may be disposed on the display screen on a side of the display screen away from the CG. In an embodiment, the sensor can be pasted and arranged on the display screen, and can also be connected with the display screen in a buckling mode. Referring to fig. 13B, the sensor may be disposed on the middle frame and on a side of the middle frame adjacent to the display screen. In one embodiment, the sensor may be adhered to the middle frame or may be connected to the middle frame by a snap, and the arrangement manner of the sensor is not limited in the embodiment of the present application.
In an embodiment, in order to ensure that the pressure sensor can acquire a pressure-sensitive signal generated due to a micro deformation of the CG surface, or ensure that the acceleration sensor can acquire an acceleration signal generated due to a micro vibration, a high-precision pressure sensor or acceleration sensor may be used in the embodiment of the present application. Or, a plurality of pressure sensors can be arranged on one side of the display screen far away from the CG, and a plurality of acceleration sensors can be arranged on one side of the middle frame close to the display screen, so that the accuracy of the sensors for acquiring signals is improved. It is to be understood that fig. 13A is exemplified by providing 2 pressure sensors on the side of the display screen remote from the CG, and fig. 13B is exemplified by providing 2 acceleration sensors on the side of the middle frame close to the display screen.
It should be understood that when the sensor is an acceleration sensor, the acceleration sensor is not limited to being disposed at the position shown in fig. 13A and 13B, and may be disposed at other positions on the main board of the electronic device, for example.
On the basis of the electronic device shown in fig. 13A and 13B, the handwriting drawing method provided by the embodiment of the present application is described below with reference to a specific embodiment. The following several embodiments may be combined with each other and may not be described in detail in some embodiments for the same or similar concepts or processes.
FIG. 14 is a flowchart illustrating an embodiment of a handwriting drawing method according to an embodiment of the present application. Referring to fig. 14, a handwriting drawing method provided by the embodiment of the application may include:
s1401, in response to detecting that the stylus touches a first position of a touch screen of the electronic device, a capacitance variation threshold of the TP sensor at the first position is obtained.
In this embodiment, the electronic device may detect that the stylus touches a touch screen of the electronic device. The electronic device may detect that the stylus touches the touch screen based on a pressure signal collected by the pressure sensor or an acceleration signal collected by the acceleration sensor. It should be understood that the pressure sensing signal includes a pressure value and the acceleration signal includes a three-axis acceleration.
In one embodiment, if the electronic device detects a pressure value collected by the pressure sensor or a three-axis acceleration collected by the acceleration sensor, it is determined that the stylus is in contact with the touch screen.
In one embodiment, to avoid interference from external factors and improve detection accuracy, a pressure threshold and a three-axis acceleration threshold may be set. It should be understood that the pressure threshold and the threshold of the triaxial acceleration in the embodiment of the present application may be set to smaller values as compared with the related art. For example, the pressure threshold in the prior art is set to 5-10g, and the pressure threshold in the embodiment of the present application may be set to 2g, so that the electronic device can realize higher-precision control. If the electronic device detects that the pressure value acquired by the pressure sensor is greater than the pressure threshold value, or the triaxial acceleration acquired by the acceleration sensor is greater than the triaxial acceleration threshold value, it can be determined that the touch pen is in contact with the touch screen.
In this embodiment of the application, when the electronic device detects that the stylus touches the touch screen, the electronic device may detect a position where the stylus touches the touch screen based on a TP signal from the stylus, in this embodiment of the application, the position where the stylus touches the touch screen of the electronic device is used as a first position for description, and the electronic device may refer to the above-mentioned related description in fig. 11A for detecting the position where the stylus touches the touch screen.
It should be understood that the threshold value of the capacitance variation of the TP sensor can be understood as: and triggering the electronic equipment to execute the operation of drawing the handwriting. The threshold value of the capacitance variation of the TP sensor at the first position can be understood as: and triggering the electronic equipment to execute the operation of drawing the handwriting at the first position. It should be understood that the capacitance variation threshold of the TP sensor may be simply referred to as a threshold value as follows.
In one embodiment, the threshold value of the capacitance variation of the TP sensor at the first position is related to "the capacitance variation of the TP sensor when the stylus contacts the first position of the touch screen". In one embodiment, the capacitance variation threshold A1 of the TP sensor at the first position may be obtained by the following formula one:
a1= cxa formula one
A represents the capacitance variation of the TP sensor when the stylus touches the first position of the touch screen, and c is a constant value. Wherein c is a value greater than 0 and less than 1. In one embodiment, c may be referred to as a predetermined ratio, which is a ratio of a capacitance variation threshold of the TP sensor at the first position to a capacitance variation of the TP sensor at the first position.
For example, if the capacitance variation of the TP sensor when the stylus contacts the first position of the touch screen is 4500, c is 0.5, the capacitance variation threshold A1 of the TP sensor at the first position is 2250.
The TP sensor of an electronic device can be viewed as an electrode array, which is made up of a plurality of electrodes. Due to electrode manufacturing reasons, the electrodes in the TP sensors are not uniform, which in turn causes the TP signals of the TP sensors to be non-uniform. The TP signal inconsistency can be understood as: when the stylus touches different positions of the touch screen, the capacitance variation of the TP sensor is different. Therefore, in this embodiment of the application, the electronic device may obtain the capacitance variation threshold of the TP sensor at the first position based on the capacitance variation of the TP sensor at the first position when the stylus touches the first position of the touch screen. It should be understood that the positions on the touch screen are different, and the capacitance variation amount thresholds of the TP sensors are different.
In one embodiment, the manner for the electronic device to obtain the threshold value of the capacitance variation of the TP sensor at the first position may be: when the electronic device detects that the stylus contacts the first position, the capacitance variation threshold of the TP sensor at the first position may be obtained based on the capacitance variation of the TP sensor when the stylus contacts the first position of the touch screen and the above formula one.
After acquiring the capacitance variation threshold of the TP sensor at the first position, the electronic device may store the capacitance variation threshold of the TP sensor at the first position. In other words, a mapping relationship is stored in the electronic device, and the mapping relationship is used for representing the capacitance variation threshold of the TP sensor at each position of the touch screen.
In an embodiment, when the electronic device detects that the stylus is in contact with the first position of the touch screen of the electronic device, whether a capacitance variation threshold of the TP sensor of the first position is stored in the mapping relationship may be queried. And if so, taking the capacitance variation threshold of the TP sensor corresponding to the first position in the mapping relation as the capacitance variation threshold of the TP sensor of the first position. If not, the capacitance variation threshold of the TP sensor at the first position may be obtained based on the capacitance variation of the TP sensor when the stylus touches the first position of the touch screen and the formula i.
And S1402, responding to the fact that the capacitance variation of the TP sensor at the first position is detected to be larger than or equal to the capacitance variation threshold of the TP sensor at the first position, and executing handwriting drawing operation.
Because the closer the stylus is to the touch screen, the larger the capacitance variation of the TP sensor, and when the user holds the stylus and gets closer to the touch screen, the capacitance variation of the TP sensor increases gradually. When the user holds the stylus to contact the first position of the touch screen, because the capacitance variation of the TP sensor at the first position is greater than or equal to the capacitance variation threshold of the TP sensor at the first position, the electronic device may perform an operation of drawing handwriting at the first position. When a user holds the touch pen and keeps away from the touch screen, if the touch pen is detected to be located at the first position of the touch screen and the capacitance variation of the TP sensor at the first position is greater than or equal to the capacitance variation threshold of the TP sensor at the first position, the electronic device can still execute handwriting drawing operation. Wherein, the electronic device executes the operation of drawing handwriting at the first position, which can be understood as: and discharging water from the touch pen.
In one embodiment, the above S1402 may be replaced with: and executing handwriting drawing operation in response to the fact that the capacitance variation of the TP sensor at the first position and the capacitance variation threshold of the TP sensor at the first position meet a first preset relation. Wherein, the first preset relationship may be: the capacitance variation of the TP sensor at the first position is greater than or equal to the capacitance variation threshold of the TP sensor at the first position, or the capacitance variation of the TP sensor at the first position is greater than the capacitance variation threshold of the TP sensor at the first position.
And S1403, in response to detecting that the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position, stopping executing the handwriting drawing operation.
The farther the stylus is from the touch screen, the smaller the capacitance variation of the TP sensor, and after the user has used up the stylus, the user holds the stylus and gradually keeps away from the touch screen, and the capacitance variation of the TP sensor gradually decreases. When a user holds the stylus and keeps away from the touch screen, if the electronic device detects that the stylus is located at the first position of the touch screen and the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position, the electronic device may stop executing the handwriting drawing operation. The stopping of the handwriting drawing operation by the electronic device may be understood as: and stopping the operation of drawing the handwriting by the electronic equipment at the first position, namely stopping the water flowing out of the touch pen.
In one embodiment, S1403 may be replaced with: and executing handwriting drawing operation in response to the fact that the capacitance variation of the TP sensor at the first position and the capacitance variation threshold of the TP sensor at the first position meet a second preset relation. When the first preset relationship is "the capacitance variation of the TP sensor at the first position is greater than the capacitance variation threshold of the TP sensor at the first position", the second preset relationship may be "the capacitance variation of the TP sensor at the first position is less than or equal to the capacitance variation threshold of the TP sensor at the first position".
For example, referring to a in fig. 15, for example, the capacitance variation amount of TP sensor at position a of the touch screen is 4500, and the capacitance variation amount threshold value of TP sensor at position a is 2250. In this way, when the stylus touches a position a of the touch screen of the electronic device, the electronic device may obtain that the capacitance variation threshold of the TP sensor at the position a is 2250, and at this time, the capacitance variation of the TP sensor at the position a is 4500, so the electronic device may start to perform an operation of drawing handwriting. The writing drawn by the electronic device at position a is characterized by a black dot displayed on the touch screen as in a in fig. 15. Referring to fig. 15 b, when the user holds the stylus and lifts the stylus, if the stylus is still located at the position a and the capacitance variation of the TP sensor at the position a is still greater than or equal to the capacitance variation threshold of the TP sensor at the position a, the stylus may still perform the operation of drawing handwriting. The handwriting drawn by the electronic device at position a is characterized as in b in fig. 15 with a larger black dot displayed on the touch screen than in a in fig. 15. Referring to fig. 15 c, when the user holds the stylus pen and continues to lift the stylus pen, if the stylus pen is still located at the position a, but the capacitance variation of the TP sensor at the position a is smaller than the capacitance variation threshold of the TP sensor at the position a, the stylus pen may still stop performing the handwriting drawing operation. The electronic device stops executing the handwriting drawing operation as represented by c in fig. 15 with no black dots displayed on the touch screen. It should be understood that location a is not shown in fig. 15, but it is understood that the location where the stylus makes contact with the touch screen is location a.
The embodiment of the application, can be through the sensor of newly-increased setting among the electronic equipment, judge whether the touch-control pen contacts the touch-sensitive screen, respond to and detect touch-control pen contact touch-sensitive screen, can judge whether carry out the operation of drawing the handwriting based on TP sensor's capacitance variation, therefore, not only solved because the time delay problem that the bluetooth transmission caused, can also adopt the touch-control pen slope to write or when dabbing the touch-sensitive screen at the user, the electronic equipment homoenergetic draws the handwriting, the response speed that electronic equipment drawn the handwriting is fast, and high control accuracy can improve user experience. In the embodiment of the application, because the pressure-sensitive signal or the acceleration signal collected by the touch screen is not used as the judgment condition for judging whether the electronic equipment executes the handwriting drawing operation, but is used as the trigger condition for triggering the electronic equipment to judge whether the handwriting drawing operation is executed based on the capacitance variation of the TP sensor, the pressure-sensitive signal from the touch pen is not required to be transmitted by Bluetooth, and the handwriting drawing response speed of the electronic equipment can be improved. In the embodiment of the application, the pressure threshold and the threshold of the triaxial acceleration can be set to be very small values, and if the pressure threshold is smaller than the pressure threshold in the prior art, the electronic device can respond when detecting a tiny pressure, so that the control accuracy of the electronic device can be improved. In addition, in the embodiment of the application, the user can hold the touch pen to draw the handwriting, when the touch pen contacts the touch screen, the touch pen starts to discharge water, namely the electronic equipment executes the handwriting drawing operation, so that the user can be better simulated to adopt a real pen to write, and the user experience can be improved.
As in the above embodiment, if the user holds the stylus pen and touches the touch screen to draw the handwriting, and then places the stylus pen on the touch screen of the electronic device, if the electronic device detects that the capacitance variation of the TP sensor at the position where the stylus pen is located is greater than or equal to the capacitance variation threshold of the TP sensor at the position, the electronic device may still perform the handwriting drawing operation, but the user does not operate the stylus pen to draw the handwriting at this position, thereby causing ink leakage. Accordingly, according to the handwriting drawing method provided by the embodiment of the application, the electronic device can judge whether the user holds the stylus pen, if the user holds the stylus pen, the fact that the user uses the stylus pen to draw the handwriting is determined, whether the handwriting drawing operation is executed or not can be judged based on the capacitance variation of the TP sensor at the position of the stylus pen, the control accuracy of the electronic device is improved, the ink leakage phenomenon is avoided, and the user experience is improved.
Fig. 16 is a flowchart illustrating another embodiment of a handwriting drawing method according to an embodiment of the present application. Referring to fig. 16, a handwriting drawing method provided by the embodiment of the application may include:
s1601, in response to detecting that a first position where a stylus touches a touch screen of the electronic device, acquiring a capacitance variation threshold of a TP sensor at the first position.
S1602, in response to detecting that the capacitance variation of the TP sensor at the first position is greater than or equal to the capacitance variation threshold of the TP sensor at the first position, detecting whether the user holds the stylus; if so, S1603 is executed, and if not, S1604 is executed.
The electronic device detecting that the capacitance variation of the TP sensor at the first position is greater than or equal to the threshold value may refer to the related description in S1402.
In one embodiment, the stylus may detect whether the user holds the stylus, and then send holding information to the electronic device through bluetooth, where the holding information is used to indicate that the stylus is in a holding state, and the holding state includes holding or not holding. As such, the electronic device may determine whether the user holds the stylus based on the holding information. In one embodiment, to reduce signaling interaction between the stylus and the electronic device, the stylus sends grip information to the electronic device in response to detecting a change in grip state of the stylus.
In one embodiment, referring to fig. 17, a touch film (touch film) is disposed on the body of the stylus pen, and the touch film may be used to detect a touch signal generated by a user touching the body of the stylus pen, similar to a touch sensor. And if the touch pen detects that the touch film collects the touch signal, determining that the user holds the touch pen. And if the touch pen does not detect that the touch film collects the touch signal, determining that the user does not hold the touch pen. It should be understood that fig. 17 is a disassembled schematic view of the pen body of the stylus.
In one embodiment, referring to the related description in fig. 6, an inertial sensor is disposed in the stylus pen, and the inertial sensor may be used to collect motion data of the stylus pen, and accordingly, the stylus pen may obtain the operation state of the stylus pen based on the motion data collected by the inertial sensor. Wherein the motion state may include: stationary or non-stationary. If the stylus detects that the stylus is stationary, the user does not hold the stylus. If the stylus detects that the stylus is not stationary, the user holds the stylus.
In an embodiment, a gyroscope and/or an acceleration sensor are disposed in the stylus, and the stylus may obtain an inclination angle of the stylus through data collected by the gyroscope and/or the acceleration sensor, which may be described with reference to related technologies existing at present. In the embodiment of the application, the inclination angle range when the user uses the stylus pen can be preset, and the inclination angle range can be stored in the stylus pen. The stylus may determine that the user holds the stylus in response to detecting that the tilt angle of the stylus is within the tilt angle range, and may determine that the user does not hold the stylus if the tilt angle of the stylus is outside the tilt angle range. Illustratively, the tilt angle may range from 30 to 65.
In one embodiment, the body of the stylus may be provided with a TP sensor similar to the TP sensor in the touch screen of the electronic device. When the user holds the stylus, the capacitance variation of the TP sensor changes, and when the user does not hold the stylus, the capacitance variation of the TP sensor is an initial value (e.g., 0). Accordingly, the stylus pen may determine whether the user holds the stylus pen based on the capacitance variation of the TP sensor. The method comprises the steps that the stylus responds to the fact that the capacitance variation of the TP sensor of the stylus is detected to be changed, the fact that a user holds the stylus is determined, and the fact that the stylus responds to the capacitance variation of the TP sensor of the stylus as an initial value, the fact that the user does not hold the stylus is determined.
When the stylus determines that the user holds the stylus, holding information can be sent to the electronic device, and the holding information is used for indicating that the holding state of the stylus is holding. Similarly, when the stylus determines that the user does not hold the stylus, holding information may be sent to the electronic device, where the holding information is used to indicate that the holding state of the stylus is not held.
For example, the manner in which the electronic device or the stylus detects whether the user holds the stylus is illustrated as an example, and the manner in which the electronic device or the stylus detects whether the user holds the stylus may be used in combination or separately. It should be understood that, the embodiment of the present application may also use other manners to detect whether the user holds the stylus pen, and the embodiment of the present application does not limit this.
S1603, an operation of drawing handwriting is performed.
And S1604, stopping.
S1605, in response to the fact that the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position, stopping executing the handwriting drawing operation.
In the embodiment of the present application, S1601, S1603, and S1605 may refer to the related descriptions in S1401, S1402, and S1403, which are not described herein again.
Illustratively, referring to a in fig. 18, the stylus is placed on the touch screen of the electronic device, and the capacitance variation of the TP sensor at the position where the stylus is located is greater than or equal to the capacitance variation threshold of the TP sensor at the position, the electronic device does not perform the operation of drawing the handwriting, and as a in fig. 18, the electronic device stops performing the operation of drawing the handwriting as the black dot is not displayed on the touch screen. Referring to b in fig. 18, after the user holds the stylus to contact the touch screen, and the capacitance variation of the TP sensor at the position where the stylus is located is greater than or equal to the capacitance variation threshold of the TP sensor at the position, the electronic device performs an operation of drawing handwriting, as b in fig. 18 represents the handwriting drawn by the electronic device with a black dot on the touch screen. It should be understood that in fig. 18, in order to better compare the user holding the stylus with the user not holding the stylus, the stylus is located at the same position of the touch screen and has the same distance from the touch screen (i.e. the capacitance variation of the TP sensor at the position is the same).
In the embodiment of the application, when the touch pen contacts the first position of the touch screen and the electronic device detects that the capacitance variation of the TP sensor at the first position is greater than or equal to the threshold value, the electronic device still needs to detect whether the user holds the touch pen, and when the user holds the touch pen, the handwriting drawing operation can be executed, so that the control accuracy of the electronic device can be improved, the ink leakage phenomenon is avoided, and the user experience is improved.
The embodiment of the present application provides a handwriting drawing apparatus, which may be an electronic device or a chip in an electronic device as in the above embodiment, with reference to fig. 19. The handwriting drawing apparatus 1900 may include: a processing module 1901, a storage module 1902, and a transceiver module 1903. The electronic equipment comprises a touch sensor TP sensor and a first sensor, wherein the first sensor is used for detecting whether a touch pen contacts a touch screen of the electronic equipment, and the TP sensor is contained in the touch screen.
A processing module 1901 configured to: detecting a position where the stylus touches the touch screen in response to detecting that the first sensor acquires a signal; acquiring a capacitance variation threshold of a TP sensor at a first position based on the first position where the stylus touches the touch screen; in response to detecting that the capacitance variation of the TP sensor at the first position is larger than or equal to the capacitance variation threshold of the TP sensor at the first position, executing handwriting drawing operation; and stopping executing the handwriting drawing operation in response to detecting that the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position.
In a possible implementation manner, the processing module 1901 is specifically configured to detect a position where the stylus touches the touch screen in response to detecting that the first sensor acquires a signal and a signal value represented by the signal satisfies a preset condition.
In a possible implementation manner, the first sensor is a pressure sensor or an acceleration sensor, when the first sensor is the pressure sensor, the signal is a pressure sensing signal, and when the first sensor is the acceleration sensor, the signal is an acceleration signal; the preset conditions are as follows: the pressure value represented by the pressure sensing signal is larger than or equal to a pressure value threshold value, or the acceleration represented by the acceleration signal is larger than or equal to an acceleration threshold value.
In a possible implementation manner, the electronic device further includes a display screen and a middle frame, the display screen is located between the touch screen and the middle frame, the pressure sensor is disposed on the display screen and close to one side of the middle frame, or the pressure sensor is disposed on the middle frame and close to one side of the display screen.
In a possible implementation manner, the processing module 1901 is specifically configured to detect whether the user holds the stylus pen in response to detecting that a capacitance variation of the TP sensor at the first position is greater than or equal to a capacitance variation threshold of the TP sensor at the first position; and responding to the user holding the touch control pen, and executing handwriting drawing operation.
In a possible implementation manner, the transceiver module 1903 is configured to receive holding information from the stylus, where the holding information indicates whether the stylus is held or not held.
The processing module 1901 is specifically configured to detect whether the user holds the stylus pen based on the holding information.
In a possible implementation manner, the processing module 1901 is specifically configured to, when the stylus touches a first position of the touch screen, obtain a capacitance variation of a TP sensor at the first position; and acquiring the capacitance variation threshold of the TP sensor at the first position based on the capacitance variation and the preset proportion of the TP sensor at the first position.
In a possible implementation manner, the electronic device stores a capacitance variation threshold of the TP sensor at least one position of the touch screen, and the processing module 1901 is specifically configured to query whether the capacitance variation threshold of the TP sensor at the at least one position includes the capacitance variation of the TP sensor at the first position; if yes, acquiring the capacitance variation threshold of the TP sensor at the first position from the capacitance variation threshold of the TP sensor at the at least one position.
In a possible implementation manner, the storage module 1902 is configured to, in response to detecting a first location where the stylus touches the touch screen, record a capacitance variation threshold of a TP sensor at the first location; in response to detecting that the stylus touches a second position of the touch screen, recording a capacitance variation threshold of the TP sensor at the second position to obtain the capacitance variation threshold of the TP sensor at the at least one position.
In a possible implementation manner, the processing module 1901 is further configured to, in response to detecting that the stylus touches a first position of the touch screen, obtain a capacitance variation of a TP sensor at the first position; based on the capacitance variation and the preset proportion of the TP sensor at the first position, the capacitance variation threshold of the TP sensor at the first position is obtained for the storage module 1902 to record the capacitance variation threshold of the TP sensor at the first position.
As shown in the hardware structure of the electronic device in fig. 7, in this embodiment of the application, the processor 210 in fig. 7 may be configured to execute the actions executed by the processing module 1901, and the wireless interface 260 is configured to execute the actions executed by the transceiver module 1903. In one embodiment, memory (not shown in FIG. 7) may be electronically included to perform the actions performed by the memory module 1902. In this manner, the electronic device may perform the handwriting drawing method as provided in the above embodiments.
The embodiment of the application further provides a handwriting drawing system, which comprises the electronic equipment and the touch pen. The electronic device may perform the steps shown in fig. 14 and 16 described above to implement the handwriting drawing method provided in the above embodiment.
It should be noted that 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 (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code. As another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
The term "plurality" herein means two or more. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division".
It is to be understood that the terms "first," "second," and the like, in the description of the present application, are used for distinguishing between descriptions and not necessarily for describing a sequential or chronological order, or for indicating or implying a relative importance.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

Claims (9)

1. A method for drawing handwriting, applied to an electronic device including a touch sensor (TP sensor) and a first sensor, the first sensor being used for detecting whether a stylus touches a touch screen of the electronic device, the TP sensor being included in the touch screen, the method comprising:
detecting a position where the stylus touches the touch screen in response to detecting that the first sensor acquires a signal;
based on a first position where the stylus touches the touch screen, acquiring a capacitance variation threshold of a TP sensor at the first position from capacitance variation thresholds of the TP sensor at least one position stored in the electronic equipment;
in response to detecting that the capacitance variation of the TP sensor at the first position is larger than or equal to the capacitance variation threshold of the TP sensor at the first position, executing handwriting drawing operation;
stopping executing handwriting drawing operation in response to detecting that the capacitance variation of the TP sensor at the first position is smaller than the capacitance variation threshold of the TP sensor at the first position;
the method further comprises the following steps:
in response to detecting a first position where the stylus contacts the touch screen, recording a capacitance variation threshold of a TP sensor at the first position;
in response to detecting that the stylus touches a second position of the touch screen, recording a capacitance variation threshold of the TP sensor at the second position to obtain the capacitance variation threshold of the TP sensor at the at least one position.
2. The method of claim 1, wherein detecting the location at which the stylus contacts the touch screen in response to detecting the first sensor acquiring the signal comprises:
and detecting the position of the touch pen contacting the touch screen in response to the fact that the first sensor acquires a signal and the signal value represented by the signal meets a preset condition.
3. The method of claim 2, wherein the first sensor is a pressure sensor or an acceleration sensor, and wherein the signal is a pressure-sensitive signal when the first sensor is the pressure sensor and an acceleration signal when the first sensor is the acceleration sensor;
the preset conditions are as follows: the pressure value represented by the pressure sensing signal is greater than or equal to a pressure value threshold value, or the acceleration represented by the acceleration signal is greater than or equal to an acceleration threshold value.
4. The method of claim 3, wherein the electronic device further comprises a display screen and a middle frame, wherein the display screen is located between the touch screen and the middle frame, and wherein the pressure sensor is disposed on one side of the display screen close to the middle frame, or wherein the pressure sensor is disposed on one side of the middle frame close to the display screen.
5. A method according to any one of claims 1-4, wherein the performing handwriting drawing operations in response to detecting that the capacitance change of the TP sensor at the first location is greater than or equal to the capacitance change threshold of the TP sensor at the first location comprises:
detecting whether a user holds the stylus in response to detecting that the capacitance variation of the TP sensor at the first position is greater than or equal to the capacitance variation threshold of the TP sensor at the first position;
and responding to the user holding the touch control pen, and executing handwriting drawing operation.
6. The method of claim 5, further comprising:
receiving holding information from the stylus, wherein the holding information indicates whether the stylus is held or not held;
the detecting whether the user holds the stylus includes:
detecting whether the user holds the stylus pen based on the holding information.
7. The method of claim 1, wherein recording a threshold amount of capacitance change of the TP sensor at a first location of the touch screen in response to detecting that the stylus is in contact with the first location comprises:
in response to detecting that the stylus touches a first position of the touch screen, acquiring a capacitance variation of a TP sensor at the first position;
and acquiring the capacitance variation threshold of the TP sensor at the first position based on the capacitance variation and the preset proportion of the TP sensor at the first position.
8. An electronic device, comprising: a processor and a memory;
the memory stores computer execution instructions;
the processor executes computer-executable instructions stored by the memory, causing the processor to perform the method of any of claims 1-7.
9. A computer-readable storage medium, in which a computer program or instructions are stored which, when executed, implement the method of any one of claims 1-7.
CN202110753711.6A 2021-07-02 2021-07-02 Handwriting drawing method and device, electronic equipment and readable storage medium Active CN114461129B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202310358218.3A CN116466867B (en) 2021-07-02 2021-07-02 Handwriting drawing method and device, electronic equipment and readable storage medium
CN202110753711.6A CN114461129B (en) 2021-07-02 2021-07-02 Handwriting drawing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110753711.6A CN114461129B (en) 2021-07-02 2021-07-02 Handwriting drawing method and device, electronic equipment and readable storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310358218.3A Division CN116466867B (en) 2021-07-02 2021-07-02 Handwriting drawing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114461129A CN114461129A (en) 2022-05-10
CN114461129B true CN114461129B (en) 2023-04-11

Family

ID=81405392

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202110753711.6A Active CN114461129B (en) 2021-07-02 2021-07-02 Handwriting drawing method and device, electronic equipment and readable storage medium
CN202310358218.3A Active CN116466867B (en) 2021-07-02 2021-07-02 Handwriting drawing method and device, electronic equipment and readable storage medium

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202310358218.3A Active CN116466867B (en) 2021-07-02 2021-07-02 Handwriting drawing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (2) CN114461129B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291754B (en) * 2022-08-05 2023-04-04 深圳市华南英才科技有限公司 Communication control method and system for flat capacitive pen
CN116088698A (en) * 2022-08-09 2023-05-09 荣耀终端有限公司 Touch pen-based use method and device
CN116048289A (en) * 2022-08-25 2023-05-02 荣耀终端有限公司 Water outlet control method of handwriting pen and electronic equipment
CN117991913A (en) * 2022-11-04 2024-05-07 荣耀终端有限公司 Handwriting processing method, terminal equipment and chip system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780755A (en) * 2019-10-25 2020-02-11 京东方科技集团股份有限公司 Stylus, control method thereof, touch device and readable storage medium
CN111124159A (en) * 2019-12-20 2020-05-08 上海传英信息技术有限公司 Touch reminding method based on stylus, terminal and computer readable storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101473490B1 (en) * 2008-05-20 2014-12-24 주식회사 케이티 Method For Guiding Touch Input And Apparatus For Performing The Same
CN202142045U (en) * 2011-06-27 2012-02-08 比亚迪股份有限公司 Touch device and mobile terminal comprising same
KR101401271B1 (en) * 2012-05-02 2014-05-29 주식회사 켐트로닉스 Display apparatus with touch pen
KR20140073827A (en) * 2012-12-07 2014-06-17 엘지디스플레이 주식회사 Touch sensing system and driving method thereof
CN104380231B (en) * 2012-12-20 2017-10-24 英特尔公司 Touch-screen including pressure sensor
US9798397B2 (en) * 2013-04-25 2017-10-24 Sharp Kabushiki Kaisha Touch panel system and electronic device
CN106095174A (en) * 2016-06-12 2016-11-09 苏州芯沃科电子科技有限公司 Electronic whiteboard actively pen and touch input system and driving method
CN109416604A (en) * 2016-07-13 2019-03-01 夏普株式会社 Write input unit
US11340716B2 (en) * 2018-07-06 2022-05-24 Apple Inc. Touch-based input for stylus
KR20210014397A (en) * 2019-07-30 2021-02-09 삼성전자주식회사 Electronic device for identifying gesture by stylus pen and method for operating thereof
CN112905035A (en) * 2019-12-04 2021-06-04 北京小米移动软件有限公司 Touch screen control method and device and computer storage medium
CN111124521A (en) * 2019-12-30 2020-05-08 深圳市千分一智能技术有限公司 Active capacitive stylus early awakening method and device, terminal and storage medium
CN112987976B (en) * 2021-04-13 2023-02-03 深圳市千分一智能技术有限公司 Touch pen, handwriting display method and device thereof, and terminal equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110780755A (en) * 2019-10-25 2020-02-11 京东方科技集团股份有限公司 Stylus, control method thereof, touch device and readable storage medium
CN111124159A (en) * 2019-12-20 2020-05-08 上海传英信息技术有限公司 Touch reminding method based on stylus, terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN116466867A (en) 2023-07-21
CN116466867B (en) 2024-04-09
CN114461129A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
CN113268174B (en) Function control method and system
CN114461129B (en) Handwriting drawing method and device, electronic equipment and readable storage medium
EP4116804B1 (en) Stylus pen and electronic device assembly comprising the stylus pen
CN113821113B (en) Electronic equipment and touch pen interaction method and system and electronic equipment
EP3608761B1 (en) Electronic device and method for displaying affordance for providing charging of battery of external device through display
US20240053880A1 (en) Handwriting drawing method and apparatus, electronic device, and readable storage medium
EP3819748A1 (en) Method for processing input made with stylus pen and electronic device therefor
EP4206885A1 (en) Functional mode switching method, electronic device, and system
CN114461092B (en) Touch pen connection method and electronic equipment
CN115543105B (en) Information transmission method and device
CN115599229A (en) Control method of touch pen and touch pen device
CN116736989A (en) Touch pen and control method thereof

Legal Events

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