CN109710091B - Angle information processing method and device and touch sensing system - Google Patents

Angle information processing method and device and touch sensing system Download PDF

Info

Publication number
CN109710091B
CN109710091B CN201811362215.2A CN201811362215A CN109710091B CN 109710091 B CN109710091 B CN 109710091B CN 201811362215 A CN201811362215 A CN 201811362215A CN 109710091 B CN109710091 B CN 109710091B
Authority
CN
China
Prior art keywords
gear
current
electronic pen
angle
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.)
Active
Application number
CN201811362215.2A
Other languages
Chinese (zh)
Other versions
CN109710091A (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.)
Hanvon Manufacturer Co ltd
Original Assignee
Hanwang 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 Hanwang Technology Co Ltd filed Critical Hanwang Technology Co Ltd
Priority to CN201811362215.2A priority Critical patent/CN109710091B/en
Publication of CN109710091A publication Critical patent/CN109710091A/en
Application granted granted Critical
Publication of CN109710091B publication Critical patent/CN109710091B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses an angle information processing method, an angle information processing device and a touch sensing system, wherein the method comprises the following steps: acquiring a current inclination angle of the electronic pen relative to a set reference direction; obtaining a current inclination gear of the electronic pen according to the current inclination angle; generating gear information containing the current inclined gear; and sending the gear information to an induction device of the electronic pen. According to the electronic pen, the current inclined gear is sent to the sensing device of the electronic pen, so that the sensing device executes the operation and processing matched with the current inclined gear, the data transmission amount and the data processing amount can be effectively reduced, the response speed of executing the matched operation through angle detection is improved, and the user experience is improved.

Description

Angle information processing method and device and touch sensing system
Technical Field
The present invention relates to the field of electronic pen technologies, and in particular, to an angle information processing method, an electronic pen, a sensing device, and a touch sensing system.
Background
With the development of touch technology, a brand-new original handwriting input era is entered at present, a user can realize signature of the original handwriting, character recording of the original handwriting and the like by writing on a sensing device by using an electronic pen, the application range of electronic writing is greatly expanded, a touch sensing system for realizing original handwriting is gradually recognized and accepted by consumers, and the application field is wider and wider.
At present, some application environments require that the electronic pen can detect the tilt angle of the electronic pen itself, and transmit the detected tilt angle to the sensing device of the electronic pen in real time, and the sensing device provides the real-time tilt angle of the electronic pen for the upper application, so that the upper application performs application processing according to the real-time tilt angle of the electronic pen, for example, the drawing application identifies a drawing manipulation according to the real-time tilt angle of the electronic pen. Here, the electronic pen transmits the detected tilt angle to the sensing device in real time, which greatly increases the data transmission amount between the electronic pen and the sensing device, resulting in an increase in power consumption of the electronic pen; more importantly, the sensing device processes and responds to the real-time inclination angle, so that the response speed of the sensing device and the upper application is seriously influenced, and the user experience is further influenced. Therefore, it is necessary to provide a new technical solution for processing angle information to reduce the data processing amount of the sensing device.
Disclosure of Invention
An object of the embodiments of the present invention is to provide a new technical solution for processing angle information.
According to a first aspect of the present invention, there is provided an angle information processing method, implemented by an electronic pen, comprising:
Acquiring a current inclination angle of the electronic pen relative to a set reference direction;
obtaining a current inclination gear of the electronic pen according to the current inclination angle;
generating gear information containing the current inclined gear;
and sending the gear information to an induction device of the electronic pen.
Optionally, the method further comprises:
after obtaining a current inclined gear of the electronic pen, detecting whether the current inclined gear changes relative to a last inclined gear obtained;
and when the current inclined gear changes relative to the last inclined gear, executing the step of generating the gear information containing the current inclined gear.
Optionally, the step of generating gear information including the current inclined gear includes:
and generating gear information containing the variation of the current inclined gear.
Optionally, the obtaining of the current inclination angle of the electronic pen with respect to the set reference direction includes: respectively acquiring a current inclination angle of the electronic pen inclined relative to each of at least two set reference directions;
the step of obtaining the current tilt gear of the electronic pen according to the current tilt angle comprises the following steps: and respectively obtaining the current inclination sub-gear of the current inclination angle corresponding to each reference direction to form the current inclination gear of the electronic pen.
Optionally, the step of obtaining the current tilt gear of the electronic pen according to the current tilt angle includes:
acquiring mapping data representing a mapping relation between the inclination angle and the inclination gear;
and obtaining a current inclined gear mapped on the current inclined angle according to the mapping data and the current inclined angle.
Optionally, the method further comprises:
detecting whether an angle detection function is started or not;
and when the angle detection function is started, the step of obtaining the current inclination angle of the electronic pen inclined relative to the set reference direction is executed again.
Optionally, the step of sending the gear information to a sensing device of the electronic pen includes:
carrying out digital coding on the gear information to obtain corresponding digital coding information;
and controlling a signal generating circuit of the electronic pen to switch between on and off according to the digital coding signal so as to generate a changed sensing signal for the sensing device to receive, wherein the changed sensing signal is set to represent the gear information.
According to a second aspect of the present invention, there is also provided an angle information processing method implemented by a sensing device of an electronic pen, including:
Acquiring gear information sent by the electronic pen, wherein the gear information comprises a current inclined gear of the electronic pen, and the current inclined gear represents a current inclined angle of the electronic pen inclined relative to a set reference direction;
acquiring task items corresponding to the current inclined gear;
and executing the task item.
Optionally, the task item includes a location correction item, and the executing the task item includes:
detecting the current position coordinates of the pen point of the electronic pen as detection position coordinates;
acquiring a correction vector corresponding to the current inclined gear, wherein the correction vector comprises a correction numerical value and a correction direction;
and obtaining the actual position coordinate of the pen point according to the detection position coordinate and the correction vector.
Optionally, the current tilt gears include a current tilt gear corresponding to a vertical reference direction and a current tilt gear corresponding to a horizontal reference direction;
the step of obtaining the correction vector corresponding to the current inclined gear comprises the following steps:
obtaining the correction value according to the current inclined gear division corresponding to the vertical reference direction;
and obtaining the correction direction according to the current inclined gear division corresponding to the horizontal reference direction.
Optionally, the task item includes a function setting matching item, and the step of executing the task item includes:
detecting whether matched function setting exists or not according to the current inclined gear;
and when the matched function setting exists, executing the operation corresponding to the matched function setting.
Optionally, the method further comprises:
providing a setting entry in response to an operation of performing matching setting;
acquiring setting content input through the setting entrance, wherein the setting content represents a matching relation between a tilt gear and function setting;
and adding the setting content in a database.
According to a third aspect of the present invention, there is also provided an electronic pen, comprising:
the angle acquisition module is used for acquiring the current inclination angle of the electronic pen relative to the set reference direction;
the gear determining module is used for obtaining the current inclined gear of the electronic pen according to the current inclined angle;
the information generation module is used for generating gear information containing the current inclined gear; and the number of the first and second groups,
and the sending processing module is used for sending the gear information to the induction device of the electronic pen.
According to a fourth aspect of the present invention, there is also provided an electronic pen comprising a memory for storing instructions for controlling the processor to operate to perform the angle information processing method according to the first aspect of the present invention, and a processor.
According to a fifth aspect of the present invention, there is also provided an induction device comprising:
the information acquisition module is used for acquiring gear information sent by the electronic pen, wherein the gear information comprises a current inclined gear of the electronic pen, and the current inclined gear represents a current inclined angle of the electronic pen inclined relative to a set reference direction;
the task acquisition module is used for acquiring task items corresponding to the current inclined gear; and the number of the first and second groups,
and the task execution module is used for executing the task items.
According to a sixth aspect of the present invention, there is also provided a sensing device comprising a memory and a processor, the memory being configured to store instructions for controlling the processor to operate so as to perform the angle information processing method according to the second aspect of the present invention.
According to a seventh aspect of the present invention, there is also provided a touch sensing system comprising the electronic pen according to the third or fourth aspect of the present invention, and the sensing device according to the fifth or sixth aspect of the present invention.
The method has the beneficial effects that the current tilt gear of the electronic pen is determined based on the current tilt angle of the electronic pen, so that gear information containing the current tilt gear of the electronic pen is generated, and the gear information is sent to the induction device of the electronic pen, so that the information transmission is realized. In this case, since the current tilt gear of the electronic pen is determined according to the current tilt angle of the electronic pen and then transmitted to the sensing device of the electronic pen, the sensing device of the electronic pen can perform operation and processing matched with the current tilt gear, and thus user experience is improved.
Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic structural diagram of a touch sensing system according to an embodiment of the invention;
fig. 2a is a schematic block diagram of the hardware structure of an electronic pen according to a first embodiment of the present invention;
Fig. 2b is a schematic block diagram of the hardware structure of an electronic pen according to a second embodiment of the present invention;
fig. 3 is a schematic block diagram of a hardware configuration of an induction device according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of an angle information processing method according to a first embodiment of the present invention;
fig. 5 is a schematic flowchart of an angle information processing method according to a second embodiment of the present invention;
fig. 6 is a schematic flowchart of an angle information processing method according to a third embodiment of the present invention;
fig. 7 is a schematic flowchart of an angle information processing method according to an example of the present invention;
FIG. 8 is a schematic block diagram of an electronic pen according to a first embodiment of the present invention;
FIG. 9 is a schematic block diagram of an electronic pen according to a second embodiment of the present invention;
FIG. 10 is a schematic block diagram of an inductive device according to a first embodiment of the present invention;
fig. 11 is a schematic and functional block diagram of an induction device according to a second embodiment of the present invention.
Detailed Description
Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< System embodiment >
Fig. 1 is a schematic structural diagram of a touch sensing system 100 according to an embodiment of the invention.
Referring to fig. 1, a touch sensing system 100 according to an embodiment of the present invention includes an electronic pen 1000 and a sensing device 2000, and the electronic pen 1000 and the sensing device 2000 establish a communication connection through a signal generating circuit of the electronic pen 1000 and a signal receiving circuit of the sensing device 2000.
In one example, the electronic pen 1000 may be an electromagnetic pen. For example, the electronic pen is an active electromagnetic pen, the active electromagnetic pen may be an electronic pen having a power supply device for supplying power, or the electronic pen may be connected to the electromagnetic screen by a wire to allow the electromagnetic screen to supply power to the electronic pen.
In this example, the induction device 2000 may be an electromagnetic induction device. As shown in fig. 1, the electromagnetic induction device may include a glass panel 2010, a liquid crystal screen 2020, and an electromagnetic plate 2030, wherein the electromagnetic plate 2030 has the above-described signal receiving circuit.
In another example, the electronic pen 1000 may be another type of electronic pen such as a capacitive pen, but is not limited thereto, and the sensing device has a sensing structure corresponding to the type of the electronic pen 1000.
In this embodiment, the basic working principle of the touch sensing system 100 is as follows: the electronic pen 1000 obtains a current tilt gear of the electronic pen according to the obtained current tilt angle in the operation process, generates gear information including the current tilt gear of the electronic pen, and finally sends the gear information through the signal generation circuit. In the sensing range of the signal, the signal receiving circuit of the sensing device can receive the gear information including the current inclined gear, and execute the task items corresponding to the gear information according to the rule agreed by both communication parties, such as but not limited to correction of the pen point position of the electronic pen, switching of the operating mode of the electronic pen, drawing effect processing, and the like.
Fig. 2a is a schematic block diagram of the hardware structure of an electronic pen 1000 according to an embodiment of the present invention.
According to fig. 2a, the electronic pen 1000 of this embodiment may at least comprise a processor 1012, a signal generating circuit 1010, a power supply unit 1020 and an angle measuring unit 1030.
The angle measuring device 1030 is configured to detect a current tilt angle of the electronic pen 1000 with respect to a set reference direction, and provide the detected current tilt angle to the processor 1012.
In one example, the angle measurement device 1030 can be an acceleration sensor. For example, the angle measuring device 1030 is a three-axis acceleration sensor, and the current tilt angle of the electronic pen with respect to each of three reference directions orthogonal to each other, which may constitute a cartesian coordinate system, may be obtained according to the angle measuring device 1030, wherein one of the reference directions may be a vertical reference direction.
In another example, angle measuring device 1030 may also be a dedicated tilt sensor. Any device capable of measuring the tilt angle, such as a gyroscope, may be used, and is not limited herein.
The processor 1012 is configured to obtain a current tilt angle provided by the angle measurement device 1030, and obtain a current tilt gear of the electronic pen according to the current tilt angle, so as to generate gear information including the current tilt gear.
The signal generating circuit 1010 is configured to send gear information including a current tilt gear generated by the processor 1012 to the sensing device 2000 under the control of the processor 1012.
In the case where the electronic pen is an electromagnetic pen, the signal generation circuit 1010 is an electromagnetic signal generation circuit, and for example, the signal generation circuit 1010 is a circuit that emits a sinusoidal electromagnetic wave by self-oscillation.
In one example, processor 1012 generates a varying electromagnetic signal by controlling the turning on and off of signal generating circuit 1010 to represent the gear position information by the varying electromagnetic signal.
Fig. 2b is a schematic block diagram of the hardware structure of the electronic pen 1000 according to another embodiment of the present invention.
As shown in fig. 2b, the electronic pen 1000 may comprise one or more memories 1011 and one or more processors 1012.
The memory 1011 may include, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, or the like.
The processor 1012 may be a mobile version processor, or may be a single chip microcomputer or the like.
The memory 1011 is used for storing instructions for controlling the processor 1012 to operate so as to execute the angle information processing method according to an embodiment of the present invention, and those skilled in the art can design the instructions according to the technical solutions disclosed in the present invention. How the instructions control the operation of the processor is well known in the art, and embodiments of the present invention are not described in detail herein.
Fig. 3 is a schematic block diagram of a hardware structure of the sensing device 2000 according to an embodiment of the present invention.
As shown in fig. 3, the sensing device 2000 may include one or more memories 2011 and one or more processors 2012.
The memory 2011 may include, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like.
The processor 2012 may be a mobile version processor, a single chip microcomputer, or the like.
The memory 2011 is configured to store instructions for controlling the processor 2012 to operate so as to execute the angle information processing method according to another embodiment of the present invention, and a person skilled in the art may design the instructions according to the technical solutions disclosed in the present invention. How the instructions control the operation of the processor is well known in the art, and embodiments of the present invention are not described in detail herein.
< method example >
Fig. 4 is a schematic flowchart of an angle information processing method according to an embodiment of the present invention.
Referring to fig. 4, the angle information processing method of the present embodiment is implemented by the electronic pen 1000, and may include the steps of:
in step S2100, the electronic pen 1000 obtains a current tilt angle at which the electronic pen 1000 is tilted with respect to a set reference direction.
In this embodiment, the set reference direction is an absolute direction. In practical applications, a desired reference direction may be set according to application needs, and here, one reference direction may be set, or at least two reference directions may be set.
In one example, one reference direction set is a vertical reference direction.
In this example, the electronic pen 1000 may obtain only a current tilt angle at which the electronic pen 1000 is tilted with respect to a vertical reference direction, and obtain a current tilt position of the electronic pen 1000 based on the current tilt angle.
In one example, the electronic pen sets at least two reference directions, which may include a vertical reference direction and at least one horizontal reference direction, for example, sets three reference directions, which are respectively a vertical reference direction Z and two horizontal reference directions X, Y, the three reference directions being orthogonal to each other to constitute a cartesian coordinate system.
In this example, the electronic pen 1000 may respectively obtain current tilt gears mapped to the current tilt angle corresponding to each of the at least two reference directions, and obtain the current tilt gear of the electronic pen 1000 according to the current tilt gears.
In the present embodiment, the electronic pen 1000 may detect the current tilt angle of the electronic pen 1000 with respect to a set reference direction by providing an angle measuring device 1030, which is, for example, an acceleration sensor.
For example, the acceleration sensor may be a three-axis acceleration sensor with which a current tilt angle of the electronic pen 1000 with respect to one or more of the vertical reference direction Z, the horizontal reference direction X, and the horizontal reference direction Y is detected.
In step S2200, the electronic pen 1000 obtains a current tilt gear of the electronic pen 1000 according to the current tilt angle.
In this embodiment, any manner may be adopted to set the inclined gear, as long as according to the agreement of the transmitting and receiving parties, the task item corresponding to the current inclined gear can be executed according to the obtained current inclined gear.
In one example, the obtaining, by the electronic pen 1000 in step S2200, a current tilt gear of the electronic pen 1000 according to the current tilt angle may include:
in step S2211, the electronic pen 1000 acquires mapping data indicating a mapping relationship between the tilt angle and the tilt gear.
The mapping data may be a look-up table, a mapping function, or the like, and is not limited herein.
In one example, one reference direction or at least two reference directions may be set, and the electronic pen stores mapping data corresponding to the reference directions one by one, that is, mapping data corresponding to each reference direction, wherein each mapping data reflects the mapping relationship between the inclination angle of the corresponding reference direction and the inclination indexing position of the corresponding reference direction.
In this example, taking the vertical reference direction as an example, the mapping data may be such that the tilt sub-steps are set according to the tilt angle range of the vertical reference direction, different tilt angle ranges corresponding to different tilt sub-steps, for example, the current tilt angle θ of the vertical reference directionZTheta is more than or equal to 60 degreesZWithin the range of not more than 90 degrees, corresponding to a vertical first gear, the current inclination angle thetaZTheta is more than or equal to 30 DEGZLess than 60 degrees, corresponding to a vertical second gear and the current inclination angle thetaZTheta is more than or equal to 0 DEGZAnd in the range of less than 30 degrees, the gear corresponds to a vertical third gear.
In this example, still taking the vertical reference direction as an example, on the basis of setting the tilt gear according to the tilt angle range of the vertical reference direction, the corresponding tilt gear may be set individually for some special tilt angles. For example, when the electronic pen 1000 is horizontally placed, its current tilt angle θ with respect to the vertical reference direction ZIs 90 deg., at this time, the current inclination angle theta can beZ90 ° for one gear, e.g. the vertical lowest gear; and the current inclination angle thetaZAt thetaZThe range < 90 ° corresponds to another gear or gears.
In this example, still taking the vertical reference direction as an example, the mapping data may be to incline the current tilt angle θZAs an independent variable, the vertical gear PZMapping function P as a dependent variableZ=F(θZ)。
In one example, the electronic pen sets at least two reference directions, for example, the at least two reference directions include a vertical reference direction and at least one horizontal reference direction, and the electronic pen stores mapping data reflecting the correspondence between the tilt angles of all the reference directions and the tilt gear of the electronic pen 1000.
In this example, for example, the reference directions include a vertical reference direction Z and a horizontal reference direction Y, and the mapping data may be based on the range of inclination angles in the two reference directionsAnd (4) setting inclined gears, wherein different inclination angle ranges correspond to different inclined gears. For example, the current inclination angle θ of the vertical reference directionZAnd the current inclination angle theta of the horizontal reference directionYTheta is respectively more than or equal to 60 degreesZ≤90°,45°≤θYThe range of less than or equal to 135 degrees corresponds to the first gear of the right hand; current tilt angle θ ZAnd the current inclination angle thetaYTheta is respectively more than or equal to 60 degreesZ<=90°,-135°≤θYNot more than-45 degrees corresponding to the first gear of the left hand; current tilt angle θZAnd the current tilt angle thetaYAre respectively more than or equal to theta at 30 degreesZ<60°,45°≤θYNot more than 135 degrees corresponding to the second gear of the right hand; current tilt angle θZAnd the current tilt angle thetaYAre respectively more than or equal to theta at 30 degreesZ<60°,-135°≤θYNot more than-45 degrees corresponding to the second gear of the left hand; current tilt angle θZAnd the current inclination angle thetaYTheta is respectively more than or equal to 0 degreeZ<30°,45°≤θYIs less than or equal to 135 degrees and corresponds to the third gear of the right hand; current tilt angle θZAnd the current tilt angle thetaYTheta is respectively more than or equal to 0 degreeZ<30°,-135°≤θYIs less than or equal to minus 45 degrees and corresponds to the third gear of the left hand.
In this example, too, the corresponding tilt gear position may be set individually for a particular tilt angle. For example, when the electronic pen 1000 is horizontally placed, its current tilt angle θ with respect to the vertical reference directionZIs 90 deg., at this time, the current inclination angle theta can beZIs 90 DEG, the current inclination angle thetaYOne gear, for example, the vertically lowest gear, is assigned to any angle.
In this example, still taking the example that the at least two reference directions include the vertical reference direction Z and the horizontal reference direction Y, the mapping data may be such that the current tilt angle θ is inclined byZAnd the current inclination angle thetaYA mapping function P, which is an independent variable and has the tilt position P of the electronic pen 1000 as a dependent variable, is F (θ) ZY)。
In step S2212, the electronic pen 1000 obtains a current tilt gear mapped to the current tilt angle according to the mapping data and the current tilt angle.
In an example, the electronic pen 1000 may obtain a tilt angle range to which the current tilt angle belongs, and use a tilt gear corresponding to the tilt angle range to which the current tilt angle belongs as the current tilt gear of the electronic pen 1000.
In an example, the electronic pen 1000 may also compare a magnitude relationship between the current tilt angle and a specific tilt angle to obtain a comparison result, and determine the current tilt gear of the electronic pen 1000 according to the comparison result. The specific inclination angle is, for example, 90 ° inclined with respect to the vertical reference direction, but may be other inclination angles, and is not limited herein.
In one example, only one reference direction, for example, a vertical reference direction, is set, so the mapping data reflects a mapping relationship between the tilt angle of the reference direction and the tilt tap position of the reference direction, and the current tilt tap position determined according to the mapping data and the current tilt angle is the current tilt tap position of the electronic pen 1000.
In one example, at least two reference directions are set, wherein the at least two reference directions include at least two directions of a vertical reference direction Z, a horizontal reference direction X, and a horizontal reference direction Y.
In this example, in step S2200, obtaining the current tilt gear of the electronic pen 1000 according to the current tilt angle may further include: the current tilt gear of the current tilt angle mapped to each of the at least two reference directions is obtained, and the current tilt gear of the electronic pen 1000 is formed.
For example, the current tilt angle of the electronic pen 1000 may be expressed as: thetat=(θXYZ) At this time, the current tilt gear of the electronic pen 1000 may be expressed as: pt=(PX,PY,PZ) Wherein, thetaXYZRespectively represents the current tilt angles, P, of the electronic pen 1000 at time t with respect to the horizontal reference direction X, the horizontal reference direction Y, and the vertical reference direction ZX,PY,PZRespectively show an electronic pen 1000the time t is mapped to the current tilt tap position of the current tilt angle corresponding to each reference direction, and t is a timestamp corresponding to the current tilt angle of the electronic pen 1000.
For another example, the current tilt angle of the electronic pen 1000 may also be expressed as: thetat=(θXZ) At this time, the current tilt gear of the electronic pen 1000 may be expressed as: pt=(PX,PZ)。
For another example, the current tilt angle of the electronic pen 1000 may also be expressed as: thetat=(θYZ) At this time, the current tilt gear of the electronic pen 1000 may be expressed as: p t=(PY,PZ)。
In this example, in step S2200, the obtaining, by the electronic pen 1000 according to the current tilt angle, the current tilt gear of the electronic pen 1000 may further include: the current tilt gear mapped to the current tilt angles corresponding to all the reference directions is obtained, that is, the current tilt gear of the electronic pen 1000 is obtained.
This may be the case, as in the above example, where the electronic pen stores mapping data reflecting the correspondence between the tilt angles of all reference directions and the tilt gear positions of the electronic pen 1000.
This may also be the case, as in the above example, where the server stores a mapping function representing the tilt angles of all reference directions and the tilt gear of the electronic pen 1000, e.g. Pt=F(PX,PY,PZ) The current tilt angle of the electronic pen 1000 is obtained in accordance with the mapping function and the current tilt angles of all the reference directions.
In step S2300, the electronic pen 1000 generates gear information including a current tilt gear.
In one example, the gear information may be generated each time the current tilt gear of the electronic pen 1000 is obtained, for transmission to the sensing device 2000.
In an example, after obtaining the current tilt gear of the electronic pen 1000, it may be detected whether the current tilt gear changes from the last tilt gear obtained, and when the current tilt gear changes from the last tilt gear, the gear information including the current tilt gear is generated, so as to reduce data processing amount of both communication parties and improve response speed.
In this example, for the case where only one reference direction is provided, the current tilt tap position of the reference direction is the current tilt tap position of the electronic pen 1000, and if the current tilt tap position changes from the previous tilt tap position, the current tilt tap position of the electronic pen 1000 changes from the previous tilt tap position of the electronic pen 1000.
In this example, for the case where the current tilt range of the electronic pen 1000 is constituted by the current tilt ranges of the plurality of reference directions, for example, the current tilt range Pt=(PX,PY,PZ) Last inclined gear Pt-1=(PX,PY,PZ) Here, as long as PX,PY,PZAny value of the two values is changed, which results in the current inclined gear PtRelative last inclined gear Pt-1A change occurs.
In this example, the current tilt range for the stylus 1000 is mapped by the mapping function P ═ F (P)X,PY,PZ) In the determined case, the current tilt gear is denoted as Pt=F(PX,PY,PZ) The last tilting step is denoted as Pt-1=F(PX,PY,PZ) If P istRelative Pt-1If the value of (2) is changed, the current tilt position of the electronic pen 1000 is changed relative to the previous tilt position of the electronic pen 1000.
In one example, generating the gear information including the current tilt gear may further include: gear information including the amount of change in the current tilt gear is generated.
For example, the current tilt gear is Pt=(PX,PY,PZ) The last inclined gear is Pt-1=(PX,PY,PZ) Comparing the current tilting step with the last tilting step if only P existsZIf a change occurs, the gear information generated may include only the current inclinationP that has changed in the oblique gearZAt this time, the sensing device 2000 will determine the P of the previous inclined gear according to the agreement between both partiesX,PYP as the current tilt gearX,PY
According to this example, the data transmission amount and the data processing amount can be further reduced to further improve the response speed.
In one example, the current tilt position of the electronic pen 1000 includes only one numerical value, e.g., has only one reference direction; as another example, the current tilt gear of the stylus 1000 is denoted as Pt=F(PX,PY,PZ) In this example, the shift position information may contain only the current tilt shift position without additionally containing information about the reference direction.
In one example, the current tilt gear of the electronic pen 1000 is composed of current tilt gears of a plurality of reference directions, for example, the current tilt gear is represented as Pt=(PX,PY,PZ) The gear information may further include a reference direction corresponding to each current tilting gear.
In one example, the current tilt gear of the electronic pen 1000 is composed of current tilt gears of a plurality of reference directions, for example, the current tilt gear is represented as P t=(PX,PY,PZ) For this reason, the gear information may be obtained by setting a transmission sequence of each current inclined gear, so that the sensing device 2000 determines the reference direction corresponding to each obtained current inclined gear according to a convention between the two parties, and it is not necessary to include the reference direction corresponding to each current inclined gear in the gear information.
In step S2400, the electronic pen 1000 sends the gear information to the sensing device 2000 of the electronic pen 1000.
In an example, the step S2400 of transmitting the gear information to the sensing device 2000 of the electronic pen 1000 by the electronic pen 1000 may further include the steps of:
in step S2410, the electronic pen 1000 digitally encodes the gear information to obtain corresponding digitally encoded information.
The digital code is a code using binary numbers 0 and 1, and the digital code information may be composed of binary numbers 0 and 1.
In this example, any digital encoding method may be adopted as long as the shift information can be decoded and obtained according to the agreement of both the transmitter and the receiver. Such as, but not limited to, non-return-to-zero encoding, manchester encoding, or differential manchester encoding.
For example, the electronic pen 1000 may obtain a current tilt angle of the electronic pen 1000 with respect to a set reference direction according to a scanning cycle, and obtain a current tilt gear of the electronic pen 1000 according to the current tilt angle every one scanning cycle, generate gear information, and digitally encode the gear information.
For another example, the electronic pen 1000 may obtain a current tilt angle of the electronic pen 1000 with respect to a set reference direction according to a scanning cycle, and obtain a current tilt gear of the electronic pen 1000 according to the current tilt angle every scanning cycle, but only when it is detected that the current tilt gear changes from a previous tilt gear, the gear information is generated and digitally encoded.
In step S2420, the electronic pen 1000 controls the signal generating circuit of the electronic pen 1000 to switch between on and off according to the digital coding signal, so as to generate a varying sensing signal for the sensing device 2000 to receive.
The electronic pen 1000 may include a signal generating circuit 1010, and the processor 1012 of the electronic pen 1000 may control the signal generating circuit 1010 to generate a changing sensing signal according to the digital coding signal, where the sensing signal is configured to represent gear information, which may be understood as that the changing sensing signal carries the gear information, and after receiving the changing sensing signal, the sensing device 2000 may decode the changing sensing signal according to a communication protocol agreed by both the transceiver and the transmitter to obtain the gear information.
In this example, since the shift information includes the current tilt shift of the electronic pen 1000, the sensing device 2000 may execute the task corresponding to the current tilt shift after receiving the changed sensing signal.
In this example, the electronic pen 1000 may be configured with a switching circuit connected to the signal generating circuit 1010, and the switching circuit may gate-connect the first switch or the second switch under the action of the gate control signal. After the electronic pen 1000 digitally encodes the gear information and obtains a corresponding digital encoded signal, the electronic pen 1000 may use the digital encoded signal as a gating control signal to control the gating connection of the switching circuit, and further control the signal generating circuit 1010 to switch between on and off.
For example, the switching circuit is controlled to gate the first switch when the digital code signal is 0, and to gate the second switch when the digital code signal is 1.
For another example, when the first switch is gated on, the signal generation circuit 1010 is turned on, and the signal generation circuit 1010 generates a resonance signal of a fixed frequency, and when the second switch is gated on, the signal generation circuit 1010 is turned off, and at this time, the signal generation circuit 1010 generates a low level signal.
According to the steps S2410 to S2420, the signal generating circuit 1010 is controlled to generate the changed sensing signal based on the digital coding signal, so as to transmit the information. Because the digital signal has the characteristic of strong anti-interference performance compared with the analog signal, the anti-interference performance of the electronic pen 1000 can be obviously improved, which is beneficial to ensuring that the pen pressure of the electronic pen 1000 presents stable linear change and improving the writing experience.
According to the method of the present embodiment, the current tilt gear of the electronic pen 1000 is determined based on the current tilt angle of the electronic pen 1000, so as to generate gear information including the current tilt gear of the electronic pen 1000, and the gear information is sent to the sensing device 2000 of the electronic pen 1000, thereby implementing information transmission. Here, since the embodiment of the present invention determines the current tilt gear of the electronic pen 1000 according to the current tilt angle of the electronic pen 1000 and then transmits the current tilt gear to the sensing device 2000 of the electronic pen 1000, the sensing device 2000 of the electronic pen 1000 may perform operations and processes matched with the current tilt gear, thereby improving user experience.
For the method of this embodiment, the electronic pen 1000 determines the current tilt gear based on the current tilt angle and sends the current tilt gear to the sensing device 2000, which effectively reduces the data processing amount of the electronic pen 1000 and the sensing device 2000, reduces the data amount that the electronic pen 1000 needs to send to the sensing device 2000, further reduces the error rate, and improves the response speed of implementing corresponding functional operation through angle detection, thereby improving user experience.
Fig. 5 is a schematic flowchart of an angle information processing method according to another embodiment of the present invention, which is also implemented by the electronic pen 1000.
Referring to fig. 5, the angle information processing method of the present embodiment may further include:
in step S3100, the electronic pen 1000 detects whether the angle detection function is turned on.
For example, the electronic pen 1000 may provide an angle detection function and a non-angle detection function.
In step S3200, when the angle detection function is activated, the electronic pen 1000 further performs the step of obtaining the current tilt angle of the electronic pen 1000 with respect to the set reference direction.
Accordingly, when the angle detection function is not turned on, the electronic pen transmits only information for locating the pen tip position and pen tip pressure information to the sensing device 2000, and does not transmit the position information.
As can be seen from steps S3100 to S3200, in this example, when the on-angle detection function is detected, the step of acquiring the current tilt angle of the electronic pen 1000 with respect to the set reference direction is performed, so that a plurality of function modes are supported, and thus, the operator can flexibly select a desired function mode.
Fig. 6 is a schematic flowchart of an angle information processing method according to another embodiment of the present invention.
Referring to fig. 6, the angle information processing method of the present embodiment is implemented by the sensing device 2000, and may include the steps of:
in step S4100, the sensing device 2000 acquires the gear information sent by the electronic pen 1000.
The shift information includes a current tilt shift of the electronic pen 1000, and the current tilt shift indicates a current tilt angle at which the electronic pen 1000 is tilted with respect to a set reference direction.
In this embodiment, the sensing device 2000 may be configured with a signal receiving circuit to receive the changed sensing signal sent by the electronic pen 1000, and decode the received changed sensing signal to obtain and respond to the gear information sent by the electronic pen 1000.
In step S4200, the sensing device 2000 obtains a task item corresponding to the current tilt gear.
The task item may include at least one of a position correction item and a function setting matching item.
The above position correction items are used to compensate and correct the position of the electronic pen 1000 when the electronic pen 1000 is tilted. Here, since the position where the sensing signal of the sensing device 2000 is strongest is located near the coil at the front end of the electronic pen 1000, not the pen tip, the sensing device 2000 actually performs positioning according to the coil position rather than the actual pen tip position for detecting the position of the electronic pen 1000, and therefore, when the electronic pen 1000 is vertically and obliquely inclined by a certain angle, the sensing device 2000 obtains a detection value of the pen tip position according to the coil positioning, and a deviation occurs from an actual value of the pen tip position.
The sensing device 2000 may preset a corresponding relationship between the function setting and the current tilt gear of the electronic pen 1000, and the user may trigger the corresponding function implementation by operating the electronic pen 1000 according to the corresponding relationship.
For example, when the electronic pen 1000 is horizontal (the lowest vertical gear), a function of switching to a low power consumption mode is corresponding to the electronic pen 1000; for another example, when the electronic pen 1000 is inverted (vertical inverted gear), an eraser function is correspondingly performed; for another example, when the pen point of the electronic pen 1000 is downward (vertical position, for example, including the vertical first gear to the vertical third gear), the normal writing function is performed.
In an example, after acquiring the gear information sent by the electronic pen 1000, the sensing device 2000 may first detect whether to turn on the authority to execute the task item according to the gear information, for example, the authority is turned on, and then execute the step S4200.
In this example, the user may select to turn the right on or off via the sensing device 2000.
In step S4300, the sensing device 2000 executes the task item acquired in step S4200.
In one example, the task item may include the above location fix item.
In this example, the sensing device 2000 executing the task item according to the current tilt gear in step S4300 may further include:
In step S4311, the sensing device 2000 detects the current position coordinates of the pen tip of the electronic pen 1000 as the detected position coordinates.
In step S4312, the sensing device 2000 obtains a correction vector corresponding to the current tilt gear.
The correction vector includes a correction value and a correction direction.
The current tilt gear stage includes a current tilt gear stage corresponding to the vertical reference direction and a current tilt gear stage corresponding to the horizontal reference direction, and may be, for example, a current tilt gear stage corresponding to the horizontal reference direction X and the horizontal reference direction Y.
In this example, the step S4312 may further include the steps of:
and S4312-1, acquiring a correction value according to the current inclined gear division corresponding to the vertical reference direction.
And S4312-2, acquiring a correction direction according to the current inclined gear division corresponding to the horizontal reference direction.
In another example, the above correction direction may be a preset fixed direction, and the fixed correction direction information may be determined according to left-hand use or right-hand use information provided by the user, for example, when the user uses the electronic pen 1000 to write normally with the right hand, the inclination angle with respect to the horizontal reference direction Y is usually about 135 °. In this further example, it may be that the correction value of the current tilt position is obtained according to step S4312-1, and the preset fixed direction is taken as the correction direction of the current tilt position.
In step S4313, the sensing device 2000 obtains the actual position coordinates of the pen tip 1000 based on the detected position coordinates and the correction vector.
In step S4313, the actual position coordinates of the pen tip, that is, the correction length corresponding to the correction value, are obtained by moving the correction value in the correction direction by the correction amount from the detected position coordinates of the pen tip as the start point.
According to steps S4311 to S4313, the example sensing device 2000 corrects the current position coordinates of the electronic pen 1000 according to the correction vector corresponding to the current tilt gear to obtain the actual position coordinates of the pen tip, thereby improving the writing accuracy.
In one example, the task item may also include the above function setting matching item.
In this example, the sensing device 2000 performing the task item according to the current tilt gear in step S4300 may further include:
step S4321, detecting whether matched function setting exists according to the current inclined gear.
In step S4322, when there is a matching function setting, an operation corresponding to the matching function setting is performed.
For example, the current tilt gear of the electronic pen 1000 indicates that the current tilt angle from the vertical reference direction is 90 °, and the function setting matched therewith includes setting the sensing device 2000 to enter the low power consumption mode.
For another example, the current tilt range of the electronic pen 1000 is a vertically inverted range indicating that the current tilt angle of the electronic pen 1000 from the vertical reference direction is 90 ° < θZLess than or equal to 180 degrees, or the vertical inverted gear represents the current inclination angle of the electronic pen 1000 to the vertical reference direction of 150 degrees less than or equal to thetaZLess than or equal to 180 degrees, and the matched function setting comprises the function of starting the eraser.
For another example, the current tilt gear of the electronic pen 1000 is a positive vertical third gear, which represents the electronic pen 1000 andcurrent tilt angle 0 ° < θ in vertical reference directionZAnd (3) less than 30 degrees, and the matched function setting comprises the step of informing the painting application to start the painting function and the like.
According to steps S4321 to S4322, the example sensing device 2000 executes a corresponding matched function setting when there is a function setting matched with the current tilt gear, thereby improving the writing experience.
According to the method of the embodiment, it may acquire the gear information including the current tilt gear of the electronic pen 1000 and execute the task item matching the current tilt gear. Here, since the current tilt gear of the electronic pen 1000 is determined according to the current tilt angle of the electronic pen 1000 in the embodiment of the present invention, the sensing device 2000 may perform an operation and a process matched with the current tilt gear, thereby improving user experience.
In one embodiment, the angle information processing method of the present invention may further include:
in step S5100, the sensing device 2000 provides a setting entry in response to an operation of performing matching setting.
The setting entry may be an input box, a drop-down list, a voice input, etc., for example, a designer may input a gear and a corresponding function through the input box; for another example, a designer may select a gear and a corresponding function through a drop-down list; also for example, the designer may voice-input the gear and corresponding function.
In step S5200, the sensing device 2000 acquires the setting contents input through the setting entry.
For example, the input range is "vertical lowest range", and the input corresponding function is "the electronic pen 1000 is switched to the low power consumption mode".
For another example, the input gear is a "vertical upside down gear", and the input corresponding function is an "eraser function".
In step S5300, the electronic pen 1000 adds the setting contents in the database.
According to the steps S5100-S5300, the example provides a man-machine interaction interface to support a designer to match the function setting matched with the current inclined gear according to the current actual requirement, so that customized design is realized.
< example >
Fig. 7 is a schematic flowchart of an interaction process between the electronic pen 1000 and the sensing device 2000 according to an embodiment of the present invention.
As shown in fig. 1 and fig. 7, the interaction process of the present embodiment may include the following steps:
in step S6110, the electronic pen 1000 detects whether the angle detection function is activated.
In step S6120, when the electronic pen 1000 starts the angle detection function, the current tilt angle of the electronic pen 1000 with respect to the set reference direction is obtained.
In step S6130, the electronic pen 1000 obtains a current tilt gear of the electronic pen 1000 according to the current tilt angle.
In step S6140, the electronic pen 1000 generates gear information including the current tilt gear.
In step S6150, the electronic pen 1000 sends the gear information to the sensing device 2000.
In step S6210, the sensing device 2000 obtains the gear information including the current tilt gear sent by the electronic pen 1000.
In step S6220, the sensing device 2000 obtains the task item corresponding to the current tilt angle.
In step S6230, the sensing device 2000 executes the acquired task item.
< electronic Pen embodiment >
Fig. 8 is a schematic functional block diagram of an electronic pen 1000 according to an embodiment of the present invention.
As shown in fig. 8, the electronic pen 1000 according to the embodiment of the present invention may include an angle acquisition module 1100, a gear determination module 1200, an information generation module 1300, and a transmission processing module 1400.
The angle acquiring module 1100 is configured to acquire a current tilt angle of the electronic pen 1000 with respect to a set reference direction.
The angle obtaining module 1100 may obtain a current tilt angle of the electronic pen 1000 with respect to a set reference direction from an angle measuring device 1030 of the electronic pen 1000, wherein the electronic pen 1000 detects the current tilt angle of the electronic pen 1000 with respect to the set reference direction through the angle measuring device 1030.
The gear determining module 1200 is configured to obtain a current tilt gear of the electronic pen 1000 according to the current tilt angle.
The information generating module 1300 is configured to generate gear information including a current tilt gear.
The sending processing module 1400 is configured to send the gear information to the sensing device 2000 of the electronic pen 1000.
The sending processing module 1400 is configured to control the signal generating circuit 1010 of the electronic pen 1000 to send the gear information to the sensing device 2000 of the electronic pen 1000.
In one embodiment, referring to fig. 9, the electronic pen 1000 may further include a detection module 1500. The detecting module 1500 is configured to detect whether a current tilt gear of the electronic pen 1000 changes after the gear determining module 1200 obtains the current tilt gear, and notify the information generating module 1300 of generating gear information when the current tilt gear changes, where the generated gear information includes the current tilt gear.
In one embodiment, the angle obtaining module 1100 is configured to obtain a current tilt angle of the electronic pen relative to each of at least two reference directions.
The gear determining module 1200 is further configured to obtain a current tilt gear mapped to a current tilt angle corresponding to each of at least two reference directions, respectively, to form a current tilt gear of the electronic pen 1000.
In one embodiment, the angle obtaining module 1100 is further configured to obtain mapping data representing a mapping relationship between a tilt angle and a tilt gear, and obtain a current tilt gear mapped to the current tilt angle according to the mapping data and the current tilt angle.
In one embodiment, the electronic pen 1000 may further include a switch detection module (not shown in the figure) configured to detect whether the angle detection function is turned on, and notify the angle acquisition module 1100 to acquire a current tilt angle of the electronic pen 1000 with respect to a set reference direction when the angle detection function is detected to be turned on.
In one embodiment, the sending processing module 1400 is configured to digitally encode the gear information to obtain corresponding digitally encoded information; according to the digital code signal, the signal generating circuit 1010 of the electronic pen 1000 is controlled to switch between on and off to generate a varying sensing signal for the sensing device 2000 to receive. The varying sense signal is configured to characterize the gear information.
In one embodiment, the above modules may be implemented by the processor 1012 of the electronic pen.
< sensing device embodiment >
Fig. 10 is a schematic block diagram of an inductive device 2000 according to an embodiment of the invention.
Referring to fig. 10, the sensing apparatus 2000 according to the embodiment of the present invention may include an information acquiring module 2100, a task acquiring module 2200, and a task performing module 2300.
The information obtaining module 2100 is configured to obtain gear information sent by the electronic pen 1000.
The information acquiring module 2100 may acquire the gear information transmitted by the electronic pen 1000 from a signal receiving circuit of the sensing device 2000, wherein the sensing device 2000 receives the gear information transmitted by the electronic pen 1000 through the signal receiving circuit.
The shift information includes a current tilt shift of the electronic pen 1000, and the current tilt shift indicates a current tilt angle at which the electronic pen 1000 is tilted with respect to a set reference direction.
The task obtaining module 2200 is configured to obtain a task item corresponding to the current tilt gear.
The task execution module 2300 is configured to execute the task item acquired by the task acquisition module 2200.
In one embodiment, the task item includes a location correction item, and referring to fig. 11, the sensing device 2000 may further include a detection module 2400.
The detection module 2400 is configured to detect a current position coordinate of a pen tip of the electronic pen 1000 as a detection position coordinate.
The task obtaining module 2200 is configured to obtain a correction vector corresponding to the current tilt gear. The correction vector may include a correction value and a correction direction.
The task obtaining module 2200 is further configured to obtain an actual position coordinate of the pen tip according to the detected position coordinate and the correction vector.
In one embodiment, the current tilt gear includes a current tilt gear corresponding to a vertical reference direction and a current tilt gear corresponding to a horizontal reference direction.
The task obtaining module 2200 is configured to obtain a correction value according to the current tilt gear division corresponding to the vertical reference direction; and obtaining the correction direction according to the current inclined gear division corresponding to the horizontal reference direction.
In one embodiment, the detection module 2400 is configured to detect whether a matching function setting exists based on a current tilt gear.
The task execution module 2300 is configured to, when there is a matching function setting, perform an operation corresponding to the matching function setting.
In one embodiment, the sensing device 2000 may further include a portal providing module and a content adding module (not shown).
The setting entry providing module is used for providing a setting entry in response to the operation of matching the setting.
The task obtaining module is used for obtaining the setting content input through the setting entrance. The setting content indicates a matching relationship between the current tilt gear and the function setting. The content adding module is used for adding the setting content in the database.
The present invention may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied therewith for causing a processor to implement various aspects of the present invention.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as punch cards or in-groove raised structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present invention may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present invention are implemented by personalizing an electronic circuit, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA), with state information of computer-readable program instructions, which can execute the computer-readable program instructions.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, 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/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
While embodiments of the present invention have been described above, the above description is illustrative, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the invention is defined by the appended claims.

Claims (16)

1. An angle information processing method implemented by an electronic pen, comprising:
acquiring a current inclination angle of the electronic pen relative to a set reference direction;
obtaining a current inclination gear of the electronic pen according to the current inclination angle;
generating gear information containing the current inclined gear;
sending the gear information to a sensing device of the electronic pen to execute task items corresponding to the current inclined gear,
wherein the task item includes a position correction item, and the step of executing the task item corresponding to the current tilt gear includes:
Detecting the current position coordinates of the pen point of the electronic pen as detection position coordinates;
acquiring a correction vector corresponding to the current inclined gear, wherein the correction vector comprises a correction numerical value and a correction direction;
and obtaining the actual position coordinate of the pen point according to the detection position coordinate and the correction vector.
2. The method of claim 1, wherein the method further comprises:
after obtaining a current inclined gear of the electronic pen, detecting whether the current inclined gear changes relative to a last inclined gear obtained;
and when the current inclined gear changes relative to the last inclined gear, executing the step of generating the gear information containing the current inclined gear.
3. The method of claim 2, wherein the step of generating gear information containing the current tilt gear comprises:
and generating gear information containing the variation of the current inclined gear.
4. The method according to claim 1, wherein the obtaining of the current tilt angle of the electronic pen relative to the set reference direction comprises: respectively acquiring a current inclination angle of the electronic pen inclined relative to each of at least two set reference directions;
The step of obtaining the current inclined gear of the electronic pen according to the current inclined angle comprises the following steps:
and respectively obtaining the current inclination sub-gear of the current inclination angle corresponding to each reference direction to form the current inclination gear of the electronic pen.
5. The method of claim 1, wherein the step of obtaining a current tilt gear of the electronic pen from the current tilt angle comprises:
acquiring mapping data representing a mapping relation between the inclination angle and the inclination gear;
and obtaining a current inclined gear mapped on the current inclined angle according to the mapping data and the current inclined angle.
6. The method of any of claims 1 to 5, wherein the method further comprises:
detecting whether an angle detection function is started or not;
and when the angle detection function is started, the step of obtaining the current inclination angle of the electronic pen inclined relative to the set reference direction is executed again.
7. The method of claim 1, wherein the step of transmitting the gear information to a sensing device of the electronic pen comprises:
carrying out digital coding on the gear information to obtain corresponding digital coding information;
And controlling a signal generating circuit of the electronic pen to switch between on and off according to the digital coding information so as to generate a changed sensing signal for the sensing device to receive, wherein the changed sensing signal is set to represent the gear information.
8. An angle information processing method implemented by a sensing device of an electronic pen, comprising:
acquiring gear information sent by the electronic pen, wherein the gear information comprises a current inclined gear of the electronic pen, and the current inclined gear represents a current inclined angle of the electronic pen inclined relative to a set reference direction;
acquiring task items corresponding to the current inclined gear;
the execution of the task item is carried out,
wherein the task item includes a location correction item, and the step of executing the task item includes:
detecting the current position coordinates of the pen point of the electronic pen as detection position coordinates;
acquiring a correction vector corresponding to the current inclined gear, wherein the correction vector comprises a correction numerical value and a correction direction;
and obtaining the actual position coordinate of the pen point according to the detection position coordinate and the correction vector.
9. The method of claim 8, wherein the current tilt range includes a current tilt range corresponding to a vertical reference direction and a current tilt range corresponding to a horizontal reference direction;
the step of obtaining the correction vector corresponding to the current inclined gear comprises the following steps:
acquiring the correction value according to the current inclined gear division corresponding to the vertical reference direction;
and obtaining the correction direction according to the current inclined gear division corresponding to the horizontal reference direction.
10. The method of claim 8, wherein the task item includes a function setting match item, the executing the task item comprising:
detecting whether matched function setting exists or not according to the current inclined gear;
and when the matched function setting exists, executing the operation corresponding to the matched function setting.
11. The method of claim 10, wherein the method further comprises:
providing a setting entry in response to an operation of performing matching setting;
acquiring setting content input through the setting entrance, wherein the setting content represents a matching relation between a tilt gear and function setting;
And adding the setting content in a database.
12. An electronic pen, comprising:
the angle acquisition module is used for acquiring the current inclination angle of the electronic pen relative to the set reference direction;
the gear determining module is used for obtaining the current inclined gear of the electronic pen according to the current inclined angle;
the information generation module is used for generating gear information containing the current inclined gear; and (c) a second step of,
a sending processing module for sending the gear information to a sensing device of the electronic pen to execute task items corresponding to the current inclined gear,
wherein the task item includes a position correction item, and the step of executing the task item corresponding to the current tilt gear includes:
detecting the current position coordinates of the pen point of the electronic pen as detection position coordinates;
acquiring a correction vector corresponding to the current inclined gear, wherein the correction vector comprises a correction numerical value and a correction direction;
and obtaining the actual position coordinate of the pen point according to the detection position coordinate and the correction vector.
13. An electronic pen comprising a memory and a processor, the memory for storing instructions for controlling the processor to operate to perform the angle information processing method according to any one of claims 1 to 7.
14. An inductive device, comprising:
the electronic pen comprises an information acquisition module, a storage module and a display module, wherein the information acquisition module is used for acquiring gear information sent by the electronic pen, the gear information comprises a current inclined gear of the electronic pen, and the current inclined gear represents a current inclined angle of the electronic pen inclined relative to a set reference direction;
the task acquisition module is used for acquiring task items corresponding to the current inclined gear;
the task execution module is used for executing the task items; and
a detection module for detecting the current position coordinates of the pen tip of the electronic pen as detection position coordinates,
wherein the task item includes a location correction item, and the task acquisition module is further configured to:
acquiring a correction vector corresponding to the current inclined gear, wherein the correction vector comprises a correction numerical value and a correction direction;
and obtaining the actual position coordinate of the pen point according to the detection position coordinate and the correction vector.
15. A sensing device comprising a memory and a processor, the memory for storing instructions for controlling the processor to operate to perform the angle information processing method according to any one of claims 8-11.
16. A touch sensing system comprising the electronic pen of claim 12 or 13 and the sensing device of claim 14 or 15.
CN201811362215.2A 2018-11-15 2018-11-15 Angle information processing method and device and touch sensing system Active CN109710091B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811362215.2A CN109710091B (en) 2018-11-15 2018-11-15 Angle information processing method and device and touch sensing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811362215.2A CN109710091B (en) 2018-11-15 2018-11-15 Angle information processing method and device and touch sensing system

Publications (2)

Publication Number Publication Date
CN109710091A CN109710091A (en) 2019-05-03
CN109710091B true CN109710091B (en) 2022-06-10

Family

ID=66254824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811362215.2A Active CN109710091B (en) 2018-11-15 2018-11-15 Angle information processing method and device and touch sensing system

Country Status (1)

Country Link
CN (1) CN109710091B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110264795B (en) * 2019-06-20 2020-04-24 北京京师英华教育科技有限公司 Intelligent blackboard system
CN112990185A (en) * 2021-03-15 2021-06-18 读书郎教育科技有限公司 State switching method of scanning pen

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101776962A (en) * 2006-05-12 2010-07-14 深圳市巨龙科教高技术股份有限公司 Electronic pen used for interactive electronic whiteboard
CN102375646A (en) * 2010-08-18 2012-03-14 太瀚科技股份有限公司 Hand input device and angle correcting method thereof
CN104238779A (en) * 2013-06-18 2014-12-24 太瀚科技股份有限公司 Method for detecting inclination angle of electromagnetic pen
CN104345917A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic pen
CN108762533A (en) * 2018-05-30 2018-11-06 京东方科技集团股份有限公司 Electronic pen and inclination person's handwriting regulating system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9766724B2 (en) * 2014-11-03 2017-09-19 Lenovo (Singapore) Pte. Ltd. Orientation dependent stylus button function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101776962A (en) * 2006-05-12 2010-07-14 深圳市巨龙科教高技术股份有限公司 Electronic pen used for interactive electronic whiteboard
CN102375646A (en) * 2010-08-18 2012-03-14 太瀚科技股份有限公司 Hand input device and angle correcting method thereof
CN104238779A (en) * 2013-06-18 2014-12-24 太瀚科技股份有限公司 Method for detecting inclination angle of electromagnetic pen
CN104345917A (en) * 2013-08-09 2015-02-11 联想(北京)有限公司 Information processing method and electronic pen
CN108762533A (en) * 2018-05-30 2018-11-06 京东方科技集团股份有限公司 Electronic pen and inclination person's handwriting regulating system

Also Published As

Publication number Publication date
CN109710091A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
US10649552B2 (en) Input method and electronic device using pen input device
CN108595029B (en) Method, device and equipment for determining inclination angle of capacitive pen and storage medium
EP2708983A2 (en) Method for auto-switching user interface of handheld terminal device and handheld terminal device thereof
CN108362310B (en) Method and device for determining geomagnetic accuracy, storage medium and terminal
US8456436B2 (en) Input device and input method
JP2017532528A (en) Locating system and method for locating
KR20150019352A (en) Method and apparatus for grip recognition in electronic device
JP2015128918A (en) Operation device
US9329686B2 (en) Haptic feedback method, haptic feedback apparatus, electronic device and stylus
EP3349115A1 (en) Human machine interaction method and device for user terminal, and user terminal
US10140002B2 (en) Information processing apparatus, information processing method, and program
CN109710091B (en) Angle information processing method and device and touch sensing system
US20140168066A1 (en) Method and electronic device for controlling data transmission
US20140125636A1 (en) Electronic pen data input system and electronic pen data input method using the same
US20090256725A1 (en) Manual pulse generator
KR20150001130A (en) Method for processing user input and apparatus for the same
EP2660701A1 (en) Method for inputting touch and touch display apparatus
KR20070035236A (en) Apparatus and method for positional recognition in 3-dimension
CN103677376A (en) Information processing method and electronic equipment
TWI498793B (en) Optical touch system and control method
KR101863555B1 (en) Input interface apparatus and method
LU101625B1 (en) Systems and methods for grid-aligned inking
KR101231891B1 (en) Device, system for inputting touch screen using tilt sensor, and method for the same
KR20180068010A (en) Method for input character and apparatus for executing the method
KR102596228B1 (en) Speed Measuring Device and 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
TR01 Transfer of patent right

Effective date of registration: 20230306

Address after: 065200 No. 1, Hanwang Road, Yanjiao Economic and Technological Development Zone, Sanhe City, Langfang City, Hebei Province

Patentee after: HANVON MANUFACTURER Co.,Ltd.

Address before: 100193, No. 5, building 8, No. three northeast Wang Xi Road, Beijing, Haidian District

Patentee before: HANWANG TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right