CN112987976A - Touch pen, handwriting display method and device thereof, and terminal equipment - Google Patents

Touch pen, handwriting display method and device thereof, and terminal equipment Download PDF

Info

Publication number
CN112987976A
CN112987976A CN202110398065.6A CN202110398065A CN112987976A CN 112987976 A CN112987976 A CN 112987976A CN 202110398065 A CN202110398065 A CN 202110398065A CN 112987976 A CN112987976 A CN 112987976A
Authority
CN
China
Prior art keywords
touch pen
handwriting
time information
terminal equipment
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110398065.6A
Other languages
Chinese (zh)
Other versions
CN112987976B (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.)
Shenzhen Qianfenyi Intelligent Technology Co Ltd
Original Assignee
Shenzhen Qianfenyi Intelligent Technology 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 Shenzhen Qianfenyi Intelligent Technology Co Ltd filed Critical Shenzhen Qianfenyi Intelligent Technology Co Ltd
Priority to CN202110398065.6A priority Critical patent/CN112987976B/en
Publication of CN112987976A publication Critical patent/CN112987976A/en
Application granted granted Critical
Publication of CN112987976B publication Critical patent/CN112987976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/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/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

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)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The application discloses touch pen and display method, device and terminal equipment of writing of touch pen, the method is applied to touch pen, terminal equipment with the touch pen passes through the bluetooth and establishes connection, the touch pen includes pressure sensor, the display method of writing of touch pen includes: the terminal equipment receives a coded signal sent by the touch pen through Bluetooth, wherein the coded signal is a signal obtained by coding pressure information acquired by a pressure sensor through the touch pen; meanwhile, acquiring coordinate information of a touch position when the touch pen touches a display interface of the terminal equipment; and combining the coding signal and the coordinate information to obtain the writing handwriting of the touch pen, and displaying the writing handwriting on a display interface of the terminal equipment. The technical problem that the handwriting of the user cannot be restored truest by the current terminal equipment is solved, and the writing experience of the user is improved.

Description

Touch pen, handwriting display method and device thereof, and terminal equipment
Technical Field
The application relates to the technical field of display, in particular to a touch pen, a display method and device of handwriting of the touch pen, and terminal equipment.
Background
With the development of touch technology, more and more terminal devices adopt a touch mode to perform human-computer interaction. The touch display screen can be operated by using a finger or a touch pen.
In the prior art, when the display interface of the terminal device displays the handwriting, the terminal device is not provided with a pressure detection sensor, so that the handwriting can be displayed on the display interface only at the corresponding position according to the handwriting thickness of the touch pen selected by a user when the display device displays the handwriting, the handwriting of the user cannot be truly reflected by a single handwriting thickness adjusting mode, the handwriting thickness of the touch pen needs to be manually adjusted by the user, the operation is troublesome, and the experience of the user is reduced.
Disclosure of Invention
The embodiment of the application provides a touch pen, a display method and device of handwriting of the touch pen, and terminal equipment, and aims to solve the problem that the time required from a user to use the touch pen to click a display interface to draw the handwriting on the display interface is long.
In order to achieve the above object, the present application provides a display method for handwriting of a touch pen on the one hand, which is applied to the touch pen and a terminal device, the terminal device is connected with the touch pen through bluetooth, the touch pen includes a pressure sensor, and the display method for handwriting of the touch pen includes:
the terminal equipment receives a coded signal sent by the touch pen through Bluetooth, wherein the coded signal is a signal obtained by coding pressure information acquired by a pressure sensor through the touch pen; at the same time, the user can select the desired position,
acquiring coordinate information of a touch position when the touch pen touches a display interface of the terminal equipment, wherein the coordinate information is obtained through an excitation signal emitted by the touch pen;
and combining the coding signal and the coordinate information to obtain the writing handwriting of the touch pen, and displaying the writing handwriting on a display interface of the terminal equipment.
Optionally, before the step of obtaining coordinate information of a touch position when the stylus touches the terminal device, the method includes:
collecting an excitation signal sent by the touch pen;
and determining coordinate information of a touch position when the touch pen touches the terminal equipment according to the excitation signal.
Optionally, the step of combining the encoded signal and the coordinate information to obtain the writing trace of the touch pen includes:
acquiring first time information carried by the coded signal, wherein the first time information is time information counted by a first timer of the touch pen when a pen point of the touch pen touches the terminal equipment;
acquiring second time information counted by a second timer of the terminal equipment when a pen point of the touch pen touches the terminal equipment, wherein the second time information and the position information are mapped and stored;
and when the second time information is equal to the first time information, combining the coordinate information of the second time information with the coding signal of the first time information to obtain the handwriting of the touch pen.
Optionally, after the step of acquiring second time information counted by a second timer of the terminal device when the tip of the stylus touches the terminal device, the method includes:
acquiring first time information counted by the first timer and second time information counted by the second timer at the current moment in real time;
comparing the first time information with the second time information;
when the first time information is not equal to the second time information, calibrating the first time information and the second time information to enable the first time information to be equal to the second time information.
Optionally, after the step of obtaining the first time information counted by the first timer and the second time information counted by the second timer at the current time in real time, the method further includes:
determining whether to enter a next cycle when the first time information is equal to the second time information;
and controlling the first timer and the second timer to restart timing when entering the next period.
Optionally, after the step of combining the encoded signal and the coordinate information to obtain the writing trace of the touch pen, displaying the writing trace on a display interface of the terminal device, the method includes:
and when the coordinate information is acquired again to obtain the coded signal, adjusting the handwriting of the touch pen according to the coded signal.
Optionally, before the step of adjusting the writing trace of the touch pen according to the coding signal, the method includes:
performing decoding operation on the obtained coded signal again to obtain first time information and a pressure value of the coded signal;
obtaining coordinate information corresponding to the pressure value according to the first time information;
and when the coordinate information is subjected to matching operation, executing a step of adjusting the handwriting of the touch pen according to the coding signal.
In addition, in order to implement the above embodiment, the present application further provides a display device for writing handwriting by using a touch pen, including:
the receiving module is used for receiving a coded signal sent by the touch pen through Bluetooth by the terminal equipment, wherein the coded signal is a signal obtained by coding pressure information acquired by the pressure sensor through the touch pen;
the acquisition module is used for acquiring coordinate information of a touch position when the touch pen touches a display interface of the terminal equipment, wherein the coordinate information is obtained through an excitation signal emitted by the touch pen;
and the display module is used for combining the coding signal and the coordinate information to obtain the writing handwriting of the touch pen, and displaying the writing handwriting on a display interface of the terminal equipment.
In addition, in order to implement the foregoing embodiment, the present application further provides a touch pen, where the touch pen includes a bluetooth module, a receiving module, a transmitting module, a pressure sensor, a processor, a memory, and a display program of a writing trace of the touch pen stored in the memory and capable of running on the processor, and the display program of the writing trace of the touch pen is executed by the processor to implement the steps of the display method of the writing trace of any one of the above touch pens.
In addition, in order to implement the foregoing embodiment, the present application further provides a terminal device, where a display program of the handwriting of the touch pen is stored on the terminal device, and the display program of the handwriting of the touch pen is executed by the processor to implement the steps of the display method of the handwriting of any one touch pen.
In the application, when the terminal device receives the coding signal sent by the touch pen, the coordinate information of the display interface of the terminal device touched by the touch pen is obtained, and then the writing handwriting of the touch pen on the display interface of the terminal device is obtained according to the coordinate information and the coding signal. The writing handwriting of the touch pen on the terminal equipment is obtained by acquiring the coordinate information generated by the terminal equipment and generating the mode of combining the pressure information at the touch pen end, and the coordinate information for determining the touch pen to touch the display interface of the terminal equipment is not required to be added into the coding signal through the touch pen, so that the writing handwriting of the touch pen displayed on the display interface of the terminal equipment by a user is truly reflected, and the experience of the user is improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application;
FIG. 2 is a schematic flowchart illustrating an embodiment of a method for displaying handwriting of a touch pen according to the present application;
FIG. 3 is a schematic coordinate diagram of a display method of handwriting of a touch pen according to the present application;
FIG. 4 is a schematic flowchart illustrating another embodiment of a method for displaying handwriting of a touch pen according to the present application;
FIG. 5 is a schematic structural diagram of a display method for handwriting by a touch pen according to the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The main solution of the embodiment of the application is as follows: the terminal equipment receives a coded signal sent by the touch pen through Bluetooth, wherein the coded signal is a signal obtained by coding pressure information acquired by a pressure sensor through the touch pen; meanwhile, coordinate information of a touch position when the touch pen touches a display interface of the terminal device is obtained, wherein the coordinate information is obtained through an excitation signal emitted by the touch pen; and combining the coding signal and the coordinate information to obtain the writing handwriting of the touch pen, and displaying the writing handwriting on a display interface of the terminal equipment.
In the prior art, when the display interface of the terminal device displays the handwriting, the terminal device is not provided with a pressure detection sensor, so that the handwriting can be displayed on the display interface only at the corresponding position according to the handwriting thickness of the touch pen selected by a user when the display device displays the handwriting, the handwriting of the user cannot be truly reflected by a single handwriting thickness adjusting mode, the handwriting thickness of the touch pen needs to be manually adjusted by the user, the operation is troublesome, and the experience of the user is reduced.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, a remote controller, an audio circuit, a WiFi module, a detector, and the like. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer and a temperature sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 does not constitute a limitation of the terminal device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer-readable storage medium, may include therein an operating system, a network communication module, a user interface module, and a display program of a stylus writing.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call a display program of the stylus writing handwriting stored in the memory 1005, and perform the following operations:
the terminal equipment receives a coding signal sent by the touch pen, wherein the coding signal is a signal obtained by coding pressure information of a pressure sensor through the touch pen;
acquiring coordinate information of a touch position when the touch pen touches a display interface of the terminal equipment, wherein the coordinate information is obtained through an excitation signal emitted by the touch pen;
and obtaining the writing handwriting of the touch pen according to the coding signal and the coordinate information, and displaying the writing handwriting on a display interface of the terminal equipment.
Referring to fig. 2, fig. 2 is a schematic flowchart of a first embodiment of a method for displaying handwriting of a touch pen according to the present application.
While the embodiments of the present application provide an embodiment of a method for displaying stylus writing, it should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown.
The display method of the handwriting of the touch pen comprises the following steps:
step S10, the terminal equipment receives a coded signal sent by the touch pen through Bluetooth, wherein the coded signal is a signal obtained by coding pressure information acquired by a pressure sensor through the touch pen; at the same time, the user can select the desired position,
the terminal device includes a touch screen computer, a touch screen television, a touch screen mobile phone, a Pad, and the like, which support the touch pen to operate.
In this application, the terminal device may establish a connection with the stylus in a wireless manner, for example, establish a connection with the stylus in a bluetooth transmission manner, so as to receive the encoded signal sent by the stylus. The coded signal is a signal obtained after the pressure information of the pressure sensor is coded by the touch pen, the pressure information is related to the force exertion condition of a user during writing, the thickness of writing handwriting presented in a display interface is represented, and the thickness is sent to the terminal equipment through the Bluetooth equipment.
Therefore, in the application, the coding signal of the coordinate information of the pen point of the touch pen in the display interface of the terminal equipment does not exist in the coding signal transmitted by the touch pen to the terminal equipment with the connection established.
Step S20, obtaining coordinate information of a touch position when the touch pen touches a display interface of the terminal equipment, wherein the coordinate information is obtained through an excitation signal emitted by the touch pen;
the coordinate information is position information corresponding to the coded signal obtained when the terminal equipment receives the coded signal, namely the coded signal and the coordinate information are mapped and stored in a one-to-one corresponding mode.
In the display interface of the terminal equipment, the coordinate information of the touch pen touch on the display interface is determined through the change of the capacitance value of the electrode detected when the touch pen touch on the display interface.
Referring to fig. 3, in the present application, the coordinate information may use a length-width boundary point of a display interface of the terminal device as a coordinate origin, use a length as an x-axis, and use a width as a y-axis to establish a coordinate system, and when it is detected that an electrode in the display interface of the terminal device changes, obtain the coordinate information of the point.
Before the step of obtaining the coordinate information of the touch position when the touch pen touches the terminal device, the method includes:
collecting an excitation signal sent by the touch pen;
and determining coordinate information of a touch position when the touch pen touches the terminal equipment according to the excitation signal.
And the excitation signal is sent to the terminal equipment through a transmitting module of the touch pen. The terminal equipment acquires the excitation signal sent by the touch pen, and then obtains the coordinate when the touch pen touches the display interface of the terminal equipment according to the excitation signal. It can be understood that, in the present application, the code signal is obtained by the touch pen by obtaining the pressure information through the pressure sensor, and the coordinate information is obtained by the terminal device, when displaying, the coordinate information corresponding to different code information is different, and thus, the corresponding handwriting thickness can be displayed at the corresponding position according to the code signal (pressure information).
And step S30, combining the coding signal and the coordinate information to obtain the writing of the touch pen, and displaying the writing on a display interface of the terminal equipment.
And after the coordinate information of the touch pen is acquired, fitting operation is performed on the coordinate information and the coding information to form writing handwriting of the touch pen, and the writing handwriting is displayed on a display interface of the terminal.
Continuing with the embodiment of step S20, in this embodiment, the terminal device may match the acquired encoded signal with the identifier of the coordinate information. For example, the terminal device identifies the coordinate information already displayed on the display interface as 0, identifies the coordinate information not displayed as 1, and when receiving the coding signal, the terminal device acquires the coordinate information currently identified as 1, and fits the coordinate information with the currently acquired coding signal to form the handwriting of the touch pen on the display interface. The terminal equipment can quickly acquire the coordinate information corresponding to the coded signal by establishing the identification, so that the handwriting of a user on the display interface of the terminal equipment by using a touch pen can be displayed in real time in the display interface.
In the application, when the terminal device receives the coding signal sent by the touch pen, the coordinate information of the display interface of the terminal device touched by the touch pen is obtained, and then the writing handwriting of the touch pen on the display interface of the terminal device is obtained according to the coordinate information and the coding signal. The writing handwriting of the touch pen on the terminal equipment is obtained by acquiring the coordinate information generated by the terminal equipment and generating the mode of combining the pressure information at the touch pen end, and the coordinate information for determining the touch pen to touch the display interface of the terminal equipment is not required to be added into the coding signal through the touch pen, so that the writing handwriting of the touch pen displayed on the display interface of the terminal equipment by a user is truly reflected, and the experience of the user is improved.
Further, the application provides still another embodiment of the display method of the handwriting of the touch pen.
The difference between the second embodiment of the display method of the handwriting of the touch pen and the first embodiment of the display method of the handwriting of the touch pen is that the obtaining of the coordinate information of the touch position when the touch pen touches the terminal device comprises:
step S31, acquiring first time information carried by the coded signal, wherein the first time information is time information counted by a first timer of the touch pen when a pen point of the touch pen touches the terminal device;
step S32, acquiring second time information counted by a second timer of the terminal device when the pen point of the touch pen touches the terminal device, wherein the second time information and the position information are stored in a mapping manner;
in step S33, when the second time information is equal to the first time information, it is determined that the coordinate information of the second time information is the coordinate information corresponding to the pressure value of the first time information.
In this embodiment, when the terminal device receives the coding signal, the pressure value when the user uses the touch pen is obtained according to the obtained coding signal, and then the handwriting corresponding to the pressure value is redrawn at the corresponding position.
In this embodiment, because the pressure information is encoded on the touch pen to form an encoded signal, which is sent to the terminal device, when the terminal device receives the encoded signal, it needs to be determined that the currently received encoded signal sent from the touch pen matches the coordinate information obtained in the terminal device, so as to obtain the handwriting of the touch pen on the display interface of the terminal device.
Specifically, the step S30 of the first embodiment is carried out, when the pad receives the coded signal, a decoding operation is performed on the coded signal to obtain a corresponding pressure value of 1.5N, and then the coordinate information of the current identifier 1 is obtained and determined as the target coordinate information corresponding to the pressure value, and then the target coordinate information is determined to be the coordinate information of the touch position when the touch pen touches the display interface of the terminal device. And further displaying the 1.5N handwriting in the display interface.
Further, in the present application, the pressure information may be obtained by a pressure sensor disposed inside the stylus pen. Furthermore, a sensor for monitoring whether the gravity condition of the touch pen changes, such as a gravity sensor, can be installed in the touch pen. And when the position of the touch pen is monitored to be changed, starting the pressure sensor to enter a working state so as to quickly acquire pressure information when a user uses the touch pen to write, and forming writing handwriting. When the touch pen is detected to be in the horizontal state, the pressure sensor is controlled to enter the dormant state, so that energy consumption is saved.
In the present embodiment, a timer is attached to the touch pen to count the pressure data acquired by the pressure sensor. When the pressure information exists on the touch pen, counting first time information of the obtained pressure, and coding the first time information together to form a coding signal and sending the coding signal to the terminal equipment when the pressure information is coded.
It can be understood that, in the application, when the touch pen is used for acting on the display interface of the terminal device, when the touch pen detects that pressure data (a user uses the touch pen to write), a position where the touch pen touches the display interface is generated in the display terminal at the same time, based on the coordinate system established in the previous embodiment, coordinate information of the position is obtained, second time information when the touch pen touches the display interface is counted by using a second timer, and the coordinate information and the second time information are mapped and stored in the preset memory, so that the coordinate information at different times can be quickly obtained.
When the terminal equipment receives the coded signal, decoding operation is carried out on the coded signal, so that first time information and a pressure value are obtained, the first time information and the pressure value are compared with second time information, and when the first time is equal to the second time, the obtained pressure value is determined to be matched with the coordinate information. The accuracy of pressure value and coordinate information matching is improved.
Further, referring to fig. 4, another embodiment of the display method of the writing handwriting of the touch pen of the present application is proposed.
The third embodiment of the display method of the handwriting of the touch pen is different from the first embodiment and the second embodiment of the display method of the handwriting of the touch pen in that after the step of acquiring the second time information counted by the second timer of the terminal device when the pen tip of the touch pen touches the terminal device, the method comprises the following steps:
step S224, acquiring first time information counted by the first timer and second time information counted by the second timer at the current moment in real time;
step S225, comparing the first time information with the second time information;
step S226, when the first time information is not equal to the second time information, calibrating the first time information and the second time information to make the first time information equal to the second time information.
In the application, the terminal device obtains the first time information counted by the first timer in real time, and compares the first time information with the time information of the second timer. If the first time information is not equal to the second time information, calibrating the first time information and the second time information to make the first time information equal to the second time information, specifically, adjusting the first timer alone, or adjusting the second timer, or adjusting the first timer and the second timer simultaneously.
In this embodiment, by calibrating that the first time information of the first timer is equal to the second time information of the second timer, the accuracy of matching the pressure value with the coordinate information is improved.
After the step of obtaining the first time information counted by the first timer and the second time information counted by the second timer at the current moment in real time, the method further includes:
step S227, when the first time information is equal to the second time information, determining whether to enter a next period;
in step S228, when the next period is entered, the first timer and the second timer are controlled to restart timing.
In the application, the first timer and the second timer are periodically counted, whether the next period is entered is judged, the period is that the first timer and the second timer start counting from the current time, after the preset time is reached, the current counted time is cleared, and the counting is restarted. Specifically, the preset time may be set to 300 seconds, and within 300 seconds, when a touch pen touches a display interface of the terminal device, first time information acquired by the first timer is 1 second 04 milliseconds, second information counted by the second timer is 1 second 04 milliseconds, and the first time information is equal to the second time information, the corresponding pressure value and the coordinate information are matched, and a writing trace of the touch pen continuously acquires a coding signal sent by the touch pen, decodes the coding signal, and matches the coding signal with the coordinate information stored in the terminal device. And at the 300s, acquiring that the first time information is 300s by decoding the coded signal, displaying the handwriting on a display interface after the pressure value obtained by decoding is successfully matched with the coordinate information, sending an instruction for clearing the time counted by the first timer to the touch pen and entering the next period, and controlling the second timer to enter the next period when the first timer enters the next period. By enabling the first time information counted by the first timer to be equal to the second time information counted by the second timer, when the time information is used for matching, the accuracy of matching the coordinate information and the pressure value is improved.
Further, based on the previous embodiment, the application provides another embodiment of the display method of the handwriting of the touch pen.
The fourth embodiment of the method for displaying handwriting of the touch pen is different from the first, second and third embodiments of the method for displaying handwriting of the touch pen in that the step of combining the coded signal and the coordinate information to obtain the handwriting of the touch pen and displaying the handwriting on the display interface of the terminal device includes:
and step S40, when the code signal is acquired again from the coordinate information, adjusting the writing handwriting of the touch pen according to the code signal.
In the application, when the coded signals are acquired twice in the same coordinate, it is confirmed that a user needs to adjust the writing handwriting at the position, the decoded pressure value of the coded signal acquired for the first time is compared with the decoded pressure value of the coded signal acquired for the second time, and when the first pressure value is larger than or equal to the second pressure value, the handwriting is controlled to be unchanged; when the first pressure value is smaller than the second pressure value, the handwriting in the coordinate information is adjusted by the second pressure value, and the quick adjustment of the handwriting is realized.
In this embodiment, after displaying the handwriting, before the step of adjusting the handwriting of the touch pen according to the encoded signal in the same place is received, the method includes:
step S01, decoding the re-acquired coded signal to obtain first time information and a pressure value of the coded signal;
step S02, obtaining coordinate information corresponding to the pressure value according to the first time information;
and step S03, when the coordinate information has executed the matching operation, executing the step of adjusting the writing handwriting of the touch pen according to the coding signal.
When the coded signal is obtained, decoding operation is performed on the coded signal, first time information and a pressure value are obtained, then coordinate information corresponding to the pressure value is obtained through the first time information, when the coordinate information is determined to be matched, the coded signal is determined to be the coded signal for adjusting the handwriting of the touch pen, adjustment operation is performed on the handwriting at the position, the handwriting thickness of a user at the position displayed on a display interface of the terminal device can be drawn in real time, and the use feeling of the user is improved.
In addition, referring to fig. 5, fig. 5 is a block diagram of the present application. In order to implement the foregoing embodiments, the present application further provides a display device for displaying handwriting by a touch pen, including:
the receiving module 10 is configured to receive, by a terminal device, a coded signal sent by the touch pen through bluetooth, where the coded signal is a signal obtained by coding pressure information obtained by the touch pen through a pressure sensor;
the acquiring module 20 is configured to acquire coordinate information of a touch position when the touch pen touches a display interface of the terminal device, where the coordinate information is obtained through an excitation signal emitted by the touch pen;
and the display module 30 is configured to combine the encoded signal and the coordinate information to obtain a writing trace of the touch pen, and display the writing trace on a display interface of the terminal device.
In addition, in order to implement the foregoing embodiment, the present application further provides a touch pen, where the touch pen includes a bluetooth module, a receiving module, a transmitting module, a pressure sensor, and the touch pen includes a bluetooth module, a receiving module, a transmitting module, a pressure sensor, a processor, a memory, and a display program of handwriting of the touch pen that is stored in the memory and can be run on the processor, and the display program of handwriting of the touch pen is executed by the processor to implement the steps of the display method of handwriting of any one of the above touch pens.
In addition, in order to implement the foregoing embodiment, the present application further provides a terminal device, where a display program of the handwriting of the stylus is stored on the terminal device, and the display program of the handwriting of the stylus is executed by the processor to implement the steps of the display method of the handwriting of the stylus as described above.
In addition, the application also provides a computer readable storage medium, on which the control program of the home appliance is stored, and when the control program of the home appliance is executed by the processor, the steps of the display method for handwriting of the touch pen are realized.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While alternative embodiments of the present application have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. The display method of the handwriting of the touch pen is characterized by being applied to the touch pen and terminal equipment, the terminal equipment is connected with the touch pen through Bluetooth, the touch pen comprises a pressure sensor, and the display method of the handwriting of the touch pen comprises the following steps:
the terminal equipment receives a coded signal sent by the touch pen through Bluetooth, wherein the coded signal is a signal obtained by coding pressure information acquired by a pressure sensor through the touch pen; at the same time, the user can select the desired position,
acquiring coordinate information of a touch position when the touch pen touches a display interface of the terminal equipment, wherein the coordinate information is obtained through an excitation signal emitted by the touch pen;
and combining the coding signal and the coordinate information to obtain the writing handwriting of the touch pen, and displaying the writing handwriting on a display interface of the terminal equipment.
2. The method for displaying handwriting by the touch pen according to claim 1, wherein the step of obtaining coordinate information of a touch position when the touch pen touches the terminal device comprises:
collecting an excitation signal sent by the touch pen;
and determining coordinate information of a touch position when the touch pen touches the terminal equipment according to the excitation signal.
3. The method for displaying handwriting of touch pen according to claim 1, wherein said step of combining said coded signal and said coordinate information to obtain handwriting of touch pen comprises:
acquiring first time information carried by the coded signal, wherein the first time information is time information counted by a first timer of the touch pen when a pen point of the touch pen touches the terminal equipment;
acquiring second time information counted by a second timer of the terminal equipment when a pen point of the touch pen touches the terminal equipment, wherein the second time information and the position information are mapped and stored;
and when the second time information is equal to the first time information, combining the coordinate information of the second time information with the coding signal of the first time information to obtain the handwriting of the touch pen.
4. A method for displaying handwriting by using a touch pen as claimed in claim 3, wherein said step of obtaining second time information counted by a second timer of the terminal device when the tip of the touch pen touches the terminal device comprises:
acquiring first time information counted by the first timer and second time information counted by the second timer at the current moment in real time;
comparing the first time information with the second time information;
when the first time information is not equal to the second time information, calibrating the first time information and the second time information to enable the first time information to be equal to the second time information.
5. A method for displaying handwriting on a touch pen according to any one of claims 3 to 4, wherein the step of acquiring in real time first time information counted by the first timer and second time information counted by the second timer at the current time further comprises:
determining whether to enter a next cycle when the first time information is equal to the second time information;
and controlling the first timer and the second timer to restart timing when entering the next period.
6. The method for displaying handwriting of touch pen according to claim 1, wherein said combining said coded signal and said coordinate information to obtain handwriting of touch pen, after the step of displaying said handwriting on display interface of said terminal device, comprises:
and when the coordinate information is acquired again to obtain the coded signal, adjusting the handwriting of the touch pen according to the coded signal.
7. The method for displaying handwriting on a touch pen according to claim 6, wherein the step of adjusting the handwriting on the touch pen according to the coded signal is preceded by:
performing decoding operation on the obtained coded signal again to obtain first time information and a pressure value of the coded signal;
obtaining coordinate information corresponding to the pressure value according to the first time information;
and when the coordinate information is subjected to matching operation, executing a step of adjusting the handwriting of the touch pen according to the coding signal.
8. A display device for handwriting by a stylus, comprising:
the receiving module is used for receiving a coded signal sent by the touch pen through Bluetooth by the terminal equipment, wherein the coded signal is a signal obtained by coding pressure information acquired by the pressure sensor through the touch pen;
the acquisition module is used for acquiring coordinate information of a touch position when the touch pen touches a display interface of the terminal equipment, wherein the coordinate information is obtained through an excitation signal emitted by the touch pen;
and the display module is used for combining the coding signal and the coordinate information to obtain the writing handwriting of the touch pen, and displaying the writing handwriting on a display interface of the terminal equipment.
9. A touch pen, characterized in that the touch pen comprises a bluetooth module, a receiving module, a transmitting module, a pressure sensor, a processor, a memory and a display program of writing handwriting of the touch pen stored on the memory and operable on the processor, wherein the display program of writing handwriting of the touch pen realizes the steps of the display method of writing handwriting of the touch pen according to any one of claims 1 to 7 when executed by the processor.
10. A terminal device, characterized in that the terminal device stores a display program of handwriting of a touch pen, and the display program of handwriting of the touch pen is executed by a processor to realize the steps of the display method of handwriting of the touch pen according to any one of claims 1 to 7.
CN202110398065.6A 2021-04-13 2021-04-13 Touch pen, handwriting display method and device thereof, and terminal equipment Active CN112987976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110398065.6A CN112987976B (en) 2021-04-13 2021-04-13 Touch pen, handwriting display method and device thereof, and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110398065.6A CN112987976B (en) 2021-04-13 2021-04-13 Touch pen, handwriting display method and device thereof, and terminal equipment

Publications (2)

Publication Number Publication Date
CN112987976A true CN112987976A (en) 2021-06-18
CN112987976B CN112987976B (en) 2023-02-03

Family

ID=76338367

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110398065.6A Active CN112987976B (en) 2021-04-13 2021-04-13 Touch pen, handwriting display method and device thereof, and terminal equipment

Country Status (1)

Country Link
CN (1) CN112987976B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114035739A (en) * 2021-11-12 2022-02-11 网易(杭州)网络有限公司 Graph drawing method and device, computer-readable storage medium and electronic device
CN114461129A (en) * 2021-07-02 2022-05-10 荣耀终端有限公司 Handwriting drawing method and device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481299A (en) * 2017-06-27 2017-12-15 北京新国人智慧科技股份有限公司 A kind of written handwriting display methods and system, intelligent terminal and intelligent writing system
CN111290665A (en) * 2020-05-12 2020-06-16 深圳市汇顶科技股份有限公司 Pressure detection method and device, active pen, touch chip and electronic equipment
CN112558798A (en) * 2021-02-19 2021-03-26 深圳市千分一智能技术有限公司 Communication method and device of active pen, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107481299A (en) * 2017-06-27 2017-12-15 北京新国人智慧科技股份有限公司 A kind of written handwriting display methods and system, intelligent terminal and intelligent writing system
CN111290665A (en) * 2020-05-12 2020-06-16 深圳市汇顶科技股份有限公司 Pressure detection method and device, active pen, touch chip and electronic equipment
CN112558798A (en) * 2021-02-19 2021-03-26 深圳市千分一智能技术有限公司 Communication method and device of active pen, terminal and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461129A (en) * 2021-07-02 2022-05-10 荣耀终端有限公司 Handwriting drawing method and device, electronic equipment and readable storage medium
CN114035739A (en) * 2021-11-12 2022-02-11 网易(杭州)网络有限公司 Graph drawing method and device, computer-readable storage medium and electronic device
CN114035739B (en) * 2021-11-12 2023-12-29 网易(杭州)网络有限公司 Graph drawing method and device, computer readable storage medium and electronic equipment

Also Published As

Publication number Publication date
CN112987976B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
CN112987976B (en) Touch pen, handwriting display method and device thereof, and terminal equipment
CN106598322B (en) Apparatus and method for obtaining coordinates through touch panel of the apparatus
EP3316123B1 (en) Electronic device and controlling method thereof
CN111290665B (en) Pressure detection method and device, active pen, touch chip and electronic equipment
CN112558796B (en) Electronic pen, control method and device thereof, and computer-readable storage medium
CN111580690B (en) Touch pen mode switching method and device, touch pen and readable storage medium
CN112419693A (en) Device control method, device, display device and computer readable storage medium
CN105575086B (en) Display device, control method and display system
CN107924286B (en) Electronic device and input method of electronic device
CN108984066B (en) Application icon display method and mobile terminal
US10466894B2 (en) Method, device, storage medium and mobile terminal for recognizing an off-screen gesture
CN106776259B (en) Mobile terminal frame rate detection method and device and mobile terminal
CN111492346A (en) Dynamically configurable application control element
EP3614244B1 (en) Touch screen adjustment method, touch chip and electronic terminal
CN107943549B (en) Application processing method and terminal
US20150172868A1 (en) Server and method of transmitting data thereof, and mobile device and sensing method thereof
US20130067278A1 (en) Testing device, switching system and switching method
CN112558797B (en) Active pen, control method and device thereof, and computer-readable storage medium
US9600088B2 (en) Method and apparatus for displaying a pointer on an external display
EP3513269B1 (en) Electronic device comprising electromagnetic interference sensor
CN105677176B (en) Information processing method and electronic equipment
CN103473170A (en) Test system and test method
CN109922380B (en) Video playing method and terminal equipment
CN114547436A (en) Page display method and device, electronic equipment and storage medium
CN111142958A (en) Active pen sleep awakening method, device, equipment and readable storage medium

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