[go: up one dir, main page]

CN111380650B - Pressure curve calibration method, device, equipment and readable storage medium - Google Patents

Pressure curve calibration method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN111380650B
CN111380650B CN202010481820.2A CN202010481820A CN111380650B CN 111380650 B CN111380650 B CN 111380650B CN 202010481820 A CN202010481820 A CN 202010481820A CN 111380650 B CN111380650 B CN 111380650B
Authority
CN
China
Prior art keywords
pressure
curve
calibration
parameter
target
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
CN202010481820.2A
Other languages
Chinese (zh)
Other versions
CN111380650A (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 CN202010481820.2A priority Critical patent/CN111380650B/en
Publication of CN111380650A publication Critical patent/CN111380650A/en
Application granted granted Critical
Publication of CN111380650B publication Critical patent/CN111380650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L25/00Testing or calibrating of apparatus for measuring force, torque, work, mechanical power, or mechanical efficiency

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

The invention discloses a pressure curve calibration method, a device, equipment and a readable storage medium, wherein the pressure curve calibration method considers the limitation of the computing capacity of a single chip microcomputer in the existing active pen, and greatly reduces the amount of computation required for calibrating a pressure curve by fitting the logarithmic pressure curve with large original computation amount into a polynomial function; by taking the standard pressure grade as a reference, the target pressure grade closest to the standard pressure grade is selected to calibrate the polynomial function, and then the calibration of the pressure curve corresponding to the polynomial function is completed, so that the single chip microcomputer in the active pen can complete the calibration of the logarithmic pressure curve through simple calculation, and the calibration efficiency of the active pen to the pressure curve is improved.

Description

Pressure curve calibration method, device, equipment and readable storage medium
Technical Field
The invention relates to the technical field of data processing, in particular to a pressure curve calibration method, a pressure curve calibration device, pressure curve calibration equipment and a readable storage medium.
Background
With the rapid development of the active pen technology, various active pens have been widely used in daily life of people, and users can conveniently write on display equipment by using the active pens. The pressure curve of the active pen is generally expressed by a logarithmic function form, the corresponding relation between the pressure applied to the pen point of the active pen and the pressure level output by the active pen to the display device is reflected, and the pressure level is intuitively reflected as the thickness of handwriting. Therefore, the active pen can control the thickness of the handwriting during writing based on the pressure curve according to the pressure applied to the pen point of the active pen by the user. However, because the pressure sensing difference exists between the pens, the user uses different active pens to apply the same force to the active pens for writing, and the pressure sensed by the pen point is different.
In order to solve the problem of pressure sensing difference of the active pen, a calibration process is generally carried out before the active pen is delivered, but the technical problem that the pressure curve is difficult to calibrate by the existing active pen due to overlarge calculation amount of pressure curve calibration calculation in a logarithmic function form for a single chip microcomputer in the existing active pen is solved.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a pressure curve calibration method, and aims to solve the technical problem that the existing active pen is difficult to calibrate a pressure curve.
In order to achieve the above object, the present invention provides a pressure curve calibration method, including:
determining a standard pressure value and a standard pressure grade corresponding to the standard pressure value, and obtaining a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting according to a preset logarithmic pressure curve;
and selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the curve polynomial function based on the target pressure grade.
Optionally, the curve polynomial function includes a fixed parameter and a parameter to be calibrated,
the step of obtaining a plurality of candidate pressure levels according to the standard pressure value and a preset curve polynomial function comprises:
and obtaining a plurality of pressure grades to be selected for calibrating the parameters to be calibrated according to the standard pressure values and the fixed parameters.
Optionally, the step of obtaining a plurality of pressure levels to be selected for calibrating the parameter to be calibrated according to the standard pressure value and the fixed parameter includes:
and acquiring a plurality of parameter polling values of the parameter to be calibrated, and respectively substituting the standard pressure value and the plurality of parameter polling values into a curve polynomial function containing the fixed parameter to obtain a plurality of pressure grades to be selected.
Optionally, the step of selecting a target pressure level closest to the standard pressure level from the multiple candidate pressure levels, and calibrating the curve polynomial function based on the target pressure level includes:
and selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the parameter to be calibrated by using a target calibration parameter corresponding to the target pressure grade selected from the plurality of parameter polling values.
Alternatively, when there are currently a plurality of different sets of standard pressure levels, target pressure levels and target calibration parameters having corresponding relationships,
the step of calibrating the parameter to be calibrated by using the target calibration parameter corresponding to the target pressure level comprises:
obtaining a plurality of pressure grade differences between a plurality of groups of standard pressure grades and target pressure grades, determining a group of standard pressure grade and target pressure grade which generate the minimum difference in the plurality of pressure grade differences, determining a target calibration parameter corresponding to the target pressure grade which generates the minimum difference as a final calibration parameter, and calibrating the curve polynomial function based on the final calibration parameter.
Optionally, the curve polynomial function is
Figure 90418DEST_PATH_IMAGE001
Wherein a is the parameter to be calibrated, b, c and d are the fixed parameters, g represents the standard pressure value, and p represents the pressure grade corresponding to a, b, c, d and g together.
Optionally, after the step of selecting a target pressure level closest to the standard pressure level from the multiple candidate pressure levels and calibrating the curve polynomial function based on the target pressure level, the method further includes:
and when a pressure curve calibration completion instruction is received, controlling a preset indicator lamp to flicker based on the pressure curve calibration completion instruction.
In addition, to achieve the above object, the present invention also provides a pressure curve calibration apparatus, including:
the pressure grade acquisition module is used for determining a standard pressure value and a standard pressure grade corresponding to the standard pressure value, and acquiring a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting a preset logarithmic pressure curve;
and the curve function calibration module is used for selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected and calibrating the curve polynomial function based on the target pressure grade.
Optionally, the pressure level obtaining module includes:
and the candidate grade acquisition unit is used for acquiring a plurality of candidate pressure grades for calibrating the parameter to be calibrated according to the standard pressure value and the fixed parameter.
Optionally, the candidate level obtaining unit is further configured to:
and acquiring a plurality of parameter polling values of the parameter to be calibrated, and respectively substituting the standard pressure value and the plurality of parameter polling values into a curve polynomial function containing the fixed parameter to obtain a plurality of pressure grades to be selected.
Optionally, the curve function calibration module includes:
and the calibration value determining unit is used for selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the parameter to be calibrated by using a target calibration parameter which is selected from the plurality of parameter polling values and corresponds to the target pressure grade.
Optionally, when there are currently a plurality of different sets of standard pressure levels, target pressure levels and target calibration parameters having corresponding relationships, the calibration value determination unit is further configured to:
obtaining a plurality of pressure grade differences between a plurality of groups of standard pressure grades and target pressure grades, determining a group of standard pressure grade and target pressure grade which generate the minimum difference in the plurality of pressure grade differences, determining a target calibration parameter corresponding to the target pressure grade which generates the minimum difference as a final calibration parameter, and calibrating the curve polynomial function based on the final calibration parameter.
Optionally, the pressure curve calibration apparatus further includes:
a formula determination module for said curve polynomial function of
Figure 351635DEST_PATH_IMAGE001
Wherein a is the parameter to be calibrated, b, c and d are the fixed parameters, g represents the standard pressure value, and p represents the pressure grade corresponding to a, b, c, d and g together.
Optionally, the curve function calibration module includes:
and the calibration display unit is used for controlling the preset indicator lamp to flicker based on the pressure curve calibration completion instruction when the pressure curve calibration completion instruction is received.
Further, to achieve the above object, the present invention also provides a pressure curve calibration apparatus including: a memory, a processor and a pressure curve calibration program stored on the memory and executable on the processor, the pressure curve calibration program when executed by the processor implementing the steps of the pressure curve calibration method as described above.
In addition, to achieve the above object, the present invention also provides a computer readable storage medium having a pressure curve calibration program stored thereon, which when executed by a processor implements the steps of the pressure curve calibration method as described above.
The invention provides a pressure curve calibration method, a pressure curve calibration device, pressure curve calibration equipment and a computer readable storage medium. The pressure curve calibration method comprises the steps of determining a standard pressure value and a standard pressure grade corresponding to the standard pressure value, and obtaining a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting a preset logarithmic pressure curve; and selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the curve polynomial function based on the target pressure grade. By the mode, the limitation of the computing capacity of a single chip microcomputer in the existing active pen is considered, and the calculated amount required by calibrating the pressure curve is greatly reduced by fitting the logarithmic pressure curve with large calculated amount into a polynomial function; by using the standard pressure grade as a reference, the target pressure grade closest to the standard pressure grade is selected to calibrate the polynomial function, and further the calibration of the pressure curve corresponding to the polynomial function is completed, so that the single chip microcomputer in the active pen can complete the calibration of the logarithmic pressure curve through simple calculation, the calibration efficiency of the active pen on the pressure curve is improved, and the technical problem that the existing active pen is difficult to calibrate the pressure curve is solved.
Drawings
FIG. 1 is a schematic diagram of a pressure curve calibration apparatus for a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a pressure curve calibration method according to the present invention;
FIG. 3 is a diagram of a logarithmic pressure curve in an embodiment of the pressure curve calibration method of the present invention.
The implementation, functional features and advantages of the objects of the present invention 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 invention and are not intended to limit the invention.
As shown in fig. 1, fig. 1 is a schematic structural diagram of a pressure curve calibration device of a hardware operating environment according to an embodiment of the present invention.
The pressure curve calibration device in the embodiment of the invention can be an active pen, a pressure-sensitive pen and other devices, and is preferably an active pen.
As shown in fig. 1, the pressure curve calibration apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The optional user interface 1003 may 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 (non-volatile memory). The memory 1005 may alternatively be a memory device separate from the processor 1001 described above.
Those skilled in the art will appreciate that the pressure curve calibration device configuration shown in fig. 1 does not constitute a limitation of the pressure curve calibration device and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a type of computer storage medium, may include an operating system, a network communication module, a user interface module, and a pressure curve calibration program therein.
In the pressure curve calibration device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background 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 invoke the pressure curve calibration program stored in the memory 1005 and perform the following operations:
determining a standard pressure value and a standard pressure grade corresponding to the standard pressure value, and obtaining a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting according to a preset logarithmic pressure curve;
and selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the curve polynomial function based on the target pressure grade.
Further, the curve polynomial function includes a fixed parameter and a parameter to be calibrated,
the step of obtaining a plurality of candidate pressure levels according to the standard pressure value and a preset curve polynomial function comprises:
and obtaining a plurality of pressure grades to be selected for calibrating the parameters to be calibrated according to the standard pressure values and the fixed parameters.
Further, the step of obtaining a plurality of pressure levels to be selected for calibrating the parameter to be calibrated according to the standard pressure value and the fixed parameter includes:
and acquiring a plurality of parameter polling values of the parameter to be calibrated, and respectively substituting the standard pressure value and the plurality of parameter polling values into a curve polynomial function containing the fixed parameter to obtain a plurality of pressure grades to be selected.
Further, the step of selecting a target pressure level closest to the standard pressure level from the plurality of candidate pressure levels and calibrating the curve polynomial function based on the target pressure level includes:
and selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the parameter to be calibrated by using a target calibration parameter corresponding to the target pressure grade selected from the plurality of parameter polling values.
Further, when there are a plurality of different sets of standard pressure levels, target pressure levels, and target calibration parameters having corresponding relationships, the step of calibrating the parameter to be calibrated using the target calibration parameter corresponding to the target pressure level includes:
obtaining a plurality of pressure grade differences between a plurality of groups of standard pressure grades and target pressure grades, determining a group of standard pressure grade and target pressure grade which generate the minimum difference in the plurality of pressure grade differences, determining a target calibration parameter corresponding to the target pressure grade which generates the minimum difference as a final calibration parameter, and calibrating the curve polynomial function based on the final calibration parameter.
Further, the curve polynomial function is
Figure 20514DEST_PATH_IMAGE001
Wherein a is the parameter to be calibrated, b, c and d are the fixed parameters, g represents the standard pressure value, and p represents the pressure grade corresponding to a, b, c, d and g together.
Further, after the step of selecting the target pressure level closest to the standard pressure level from the plurality of candidate pressure levels and calibrating the curve polynomial function based on the target pressure level, the processor 1001 may call the pressure curve calibration program stored in the memory 1005, and further perform the following operations:
and when a pressure curve calibration completion instruction is received, controlling a preset indicator lamp to flicker based on the pressure curve calibration completion instruction.
Based on the above hardware structure, various embodiments of the pressure curve calibration method of the present invention are provided.
With the rapid development of the active pen technology, various active pens have been widely used in daily life of people, and users can conveniently write on display equipment by using the active pens. The pressure curve of the active pen is generally expressed by a logarithmic function form, the corresponding relation between the pressure applied to the pen point of the active pen and the pressure level output by the active pen to the display device is reflected, and the pressure level is intuitively reflected as the thickness of handwriting. Therefore, the active pen can control the thickness of the handwriting during writing based on the pressure curve according to the pressure applied to the pen point of the active pen by the user. However, because the pressure sensing difference exists between the pens, the user uses different active pens to apply the same force to the active pens for writing, and the pressure sensed by the pen point is different. In order to solve the problem of pressure sensing difference of the active pen, a calibration process is generally carried out before the active pen is delivered, but the technical problem that the pressure curve is difficult to calibrate by the existing active pen due to overlarge calculation amount of pressure curve calibration calculation in a logarithmic function form for a single chip microcomputer in the existing active pen is solved.
In order to solve the technical problem, the invention provides a pressure curve calibration method, namely, considering the limitation of the computing power of a single chip microcomputer in the existing active pen, the calculation amount required by the calibration of the pressure curve is greatly reduced by fitting the logarithmic pressure curve with large original calculation amount into a polynomial function; by taking the standard pressure grade as a reference, the target pressure grade closest to the standard pressure grade is selected to calibrate the polynomial function, and further the calibration of the pressure curve corresponding to the polynomial function is completed, so that the single chip microcomputer in the active pen can complete the calibration of the logarithmic pressure curve through simple calculation, and the technical problem that the existing active pen is difficult to calibrate the pressure curve is solved. The pressure curve calibration method is applied to a pressure calibration device, preferably an active pen.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a pressure curve calibration method.
A first embodiment of the present invention provides a pressure curve calibration method, including the steps of:
step S10, determining a standard pressure value and a standard pressure grade corresponding to the standard pressure value, and obtaining a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting a preset logarithmic pressure curve;
in this embodiment, the pressure curve calibration device is preferably an active pen, i.e. an active capacitive pen. The capacitive pen is a pen which is made of a conductor material, has a conductive characteristic and is used for touch control of a capacitive screen to complete man-machine conversation operation, and is an auxiliary device for completing man-machine conversation by simulating a human body (usually fingers) through the conductor material. At present, capacitive touch pens in the market are mainly classified into passive capacitive type and active capacitive type, and the tip of the active capacitive touch pen is made of a Polyacetal (POM) material which is high in strength, high in impact resistance and excellent in smoothness, instead of common soft rubber used for common touch pens. According to the characteristics of the POM, the smoothness of the pen point is better, and the smoothness of writing which is not provided by the passive touch pen on the market at present can be realized.
Differences in starting conditions of each active pen, such as voltage differences, sensor differences, assembly structure differences and the like, can cause each pen to have different pressure curves. The same weight 100g is pressed on pens produced in the same batch, and pressure sampling values collected by a single chip microcomputer in the active pen are different. Therefore, the pressure curve needs to be calibrated, so that the corresponding gram weight when the active pen a acquires the sampling value x1 is 100g, and the corresponding gram weight when the active pen B acquires the sampling value x2 is also 100 g. The standard pressure value is a calibration point used for calibrating a curve polynomial function obtained by fitting a logarithmic pressure curve, the standard pressure grade is a pressure grade corresponding to the standard pressure value, the standard pressure value corresponds to the standard pressure grade one by one, and the mapping relation of the standard pressure value and the standard pressure grade is expressed as a standard pressure curve of the active pen. Specifically, as shown in fig. 3, fig. 3 is a logarithmic pressure curve diagram, in which the horizontal axis is the sensed pressure gram weight g of the nib of the active pen, and the vertical axis is the standard pressure level corresponding to the current gram weight of the active pen. The pressure curve calibration equipment can determine the default calibration point and the pressure grade corresponding to the default calibration point as the standard pressure value and the pressure grade, a user can also change the default calibration point, and other calibration points and the pressure grades corresponding to the calibration points are selected from the standard pressure curve as the standard pressure value and the standard pressure curve. In addition, it should be noted that the number of the standard pressure values may be one or more, and this embodiment does not limit this. The preset logarithmic pressure curve is that the standard pressure curve of the active pen is expressed by a logarithmic function. The preset curve polynomial function is a polynomial function obtained by fitting a logarithmic pressure curve in advance, and logarithmic operation is converted into exponential operation. In addition, considering that the operation amount of the excessively high exponential term is still excessively large for the single chip microcomputer in the active pen, some high-order terms can be properly discarded, for example, the highest-order term in the preset curve polynomial function is only taken as a third-order or fourth-order term. Specifically, take an active pen as an example. When the active pen currently receives a pressure curve calibration instruction, determining a pre-stored default calibration point 200g and a corresponding pressure level 2600 as a standard pressure value and a standard pressure level, and bringing the standard pressure value of 200g into a preset curve polynomial function to obtain three pressure levels to be selected, namely 2430, 2500 and 2620.
Step S20, selecting a target pressure level closest to the standard pressure level from the plurality of candidate pressure levels, and calibrating the curve polynomial function based on the target pressure level.
In this embodiment, the number of the standard pressure levels may be one or multiple, and if the number of the standard pressure levels is one, a value closest to the standard pressure level is selected from the candidate pressure levels corresponding to the standard pressure level as the target pressure level; if the number of the standard pressure grades is n (n is more than 1), respectively selecting the target pressure grades from n groups of pressure grades to be selected corresponding to the n standard pressure grades, selecting the n target pressure grades, and selecting the value closest to the corresponding standard pressure grade from the n target pressure grades as the final target pressure grade. Specifically, the setting in the specific real-time example in step S10 is continued. The active pen selects a value 2620 closest to the current 2600 standard pressure level from the 2430, 2500 and 2620 candidate pressure levels as a target pressure level, and calibrates a preset curve polynomial function based on the 2620 target pressure level, so that the active pen pressure curve can be calibrated because the preset curve polynomial function is obtained by fitting a logarithmic pressure curve.
In this embodiment, a plurality of pressure levels to be selected are obtained by determining a standard pressure value and a standard pressure level corresponding to the standard pressure value and according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting a preset logarithmic pressure curve; and selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the curve polynomial function based on the target pressure grade. By the mode, the limitation of the computing capacity of a single chip microcomputer in the existing active pen is considered, and the calculated amount required by calibrating the pressure curve is greatly reduced by fitting the logarithmic pressure curve with large calculated amount into a polynomial function; by taking the standard pressure grade as a reference, the target pressure grade closest to the standard pressure grade is selected to calibrate the polynomial function, and further the calibration of the pressure curve corresponding to the polynomial function is completed, so that the single chip microcomputer in the active pen can complete the calibration of the logarithmic pressure curve through simple calculation, and the technical problem that the existing active pen is difficult to calibrate the pressure curve is solved.
Further, not shown, a second embodiment of the pressure curve calibration method according to the present invention is proposed based on the first embodiment shown in fig. 2, and in this embodiment, the step of obtaining a plurality of candidate pressure levels according to the standard pressure value and a predetermined curve polynomial function includes:
and a step a of obtaining a plurality of pressure grades to be selected for calibrating the parameters to be calibrated according to the standard pressure values and the fixed parameters.
In this embodiment, the predetermined curve polynomial includes a fixed parameter and a parameter to be calibrated. The fixed parameters are parameters with preset values, and the parameters to be calibrated are parameters without preset values and unknown specific values. The process of calibrating the polynomial function is essentially a process of calibrating the curve to be calibrated. Generally, for the convenience of calculation, in the same curve polynomial function, a fixed parameter is set to be plural, and a parameter to be calibrated is set to be one. And the pressure curve calibration equipment obtains a plurality of pressure grades to be selected of the parameter to be calibrated in the curve polynomial according to the current standard pressure value and the fixed parameter in the polynomial.
Further, in this embodiment, step a includes:
and b, acquiring a plurality of parameter polling values of the parameter to be calibrated, and respectively substituting the standard pressure value and the plurality of parameter polling values into a curve polynomial function containing the fixed parameter to obtain a plurality of pressure grades to be selected.
In this embodiment, the polling value is a plurality of values to be selected of the parameter to be calibrated. The pressure curve calibration equipment selects a plurality of polling values, a currently determined standard pressure value is introduced into the polynomial function, then the plurality of polling values are respectively introduced, and a plurality of pressure grades to be selected can be obtained through calculation. In particular, if the curve polynomial function is
Figure 13878DEST_PATH_IMAGE001
A is the parameter to be calibrated, b, c and d are fixed parameters, g is variable and represents the standardThe pressure value p is variable and represents a, b, c, d and the pressure grade corresponding to g together. Assigning a standard pressure value of 200g to g, selecting three polling values of a1, a2 and a3, and substituting a1, a2 and a3 into formulas respectively because b, c and d are fixed parameters and the values are known
Figure 82722DEST_PATH_IMAGE001
Then three candidate pressure grades of p1, p2 and p3 corresponding to a1, a2 and a3 respectively can be obtained.
Further, in the present embodiment, step S20 includes:
and c, selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the parameter to be calibrated by using a target calibration parameter corresponding to the target pressure grade selected from the plurality of parameter polling values.
In this embodiment, the specific setting in step b is that if the standard pressure level corresponding to the current standard pressure value 200g is 2600, p1 is 2400, p2 is 2560, and p3 is 2620, the active pen selects p3 as the target pressure level closest to the standard pressure level 2600, and brings the polling value a3 corresponding to the target pressure level 2620 as the target calibration parameter into the current polynomial function, and writes the polling value a3 into the Flash in the active pen as the fixed value of a.
Further, in this embodiment, the step of calibrating the parameter to be calibrated by using the target calibration parameter corresponding to the target pressure level, which is selected from the plurality of parameter polling values, further includes:
and d, acquiring a plurality of pressure grade differences between a plurality of groups of standard pressure grades and target pressure grades, determining a group of standard pressure grade and target pressure grade which generate the minimum difference in the plurality of pressure grade differences, determining a target calibration parameter corresponding to the target pressure grade which generates the minimum difference as a final calibration parameter, and calibrating the curve polynomial function based on the final calibration parameter.
In this embodiment, it should be noted that, calibration of the pressure curve generally only needs to calibrate one or two points, and the process of a single calibration is described above, so only the case of multiple calibrations is described here. When a plurality of different sets of standard pressure grades, target pressure grades and target calibration parameters with corresponding relations exist at present, one calibration parameter with the highest precision is selected preferentially from the plurality of sets of corresponding target calibration parameters to serve as a final calibration parameter value.
As a specific example, if two calibrations are currently performed, the standard pressure value used in the first calibration is g1, the standard pressure level corresponding to g1 is p1, and the target calibration parameter corresponding to the target pressure level obtained in the first calibration, which is p 1', is a 1; the standard pressure value used in the second calibration is g2, the standard pressure grade corresponding to g2 is p2, and the target calibration parameter corresponding to the target pressure grade obtained in the second calibration, which is p 2', is a 2. In the first calibration, the target pressure level selected by the active pen is p1 ', and the difference between p 1' and p1 is 30; in the second calibration, the target pressure level selected by the active pen is p2 ', the difference between p2 ' and p2 is 15, and after the active pen compares the sizes of 15 and 30, the smaller target calibration parameter a2 corresponding to the difference between p2 ' and p2 being 15 is determined as the final calibration parameter, and is substituted into the curve polynomial function and written into Flash.
Further, in this embodiment, the method further includes:
step e, the curve polynomial function is
Figure 819733DEST_PATH_IMAGE001
Wherein a is the parameter to be calibrated, b, c and d are the fixed parameters, g represents the standard pressure value, and p represents the pressure grade corresponding to a, b, c, d and g together.
In the present embodiment, the curve polynomial function is set to a polynomial in which the highest-order term is a cubic term
Figure 343119DEST_PATH_IMAGE001
Wherein the parameter a to be calibrated is an uncertain value when the calibration is not completed, and can be used for respectively carrying in a plurality of polling valuesAfter the calibration is completed, the values are determined, and the fixed parameters b, c and d are fixed values, which can be flexibly set according to the actual situation of the active pen pressure curve in the fitting process, and this embodiment does not limit this. g is the standard pressure value currently determined to be brought in, and p is the actual pressure grade jointly calculated according to the actual a, b, c, d and g values.
In this embodiment, the purpose of calibrating the pressure curve is achieved by further setting fixed parameters and parameters to be calibrated in the curve polynomial function and calibrating the parameters to be calibrated, so that the calculation amount in the pressure curve calibration process is further reduced, and the calibration efficiency is improved; the accuracy of the calibration result is further improved by preferentially selecting the final calibration parameter closest to the corresponding standard pressure grade in the multiple calibration processes; the highest-order term of the curve polynomial function is limited to be the cubic term, and the number of the parameters to be calibrated is set to be one, so that the calculation process during pressure curve calibration is further simplified, and the calibration efficiency is improved.
Further, not shown, a third embodiment of the pressure curve calibration method of the present invention is proposed based on the first embodiment shown in fig. 2. In this embodiment, after step S20, the method further includes:
and f, when a pressure curve calibration completion instruction is received, controlling a preset indicator lamp to flicker based on the pressure curve calibration completion instruction.
In this embodiment, taking the active pen as an example, it should be noted that in order to enable the semi-finished active pen with the programmed active pen to have the calibration function at the time of factory shipment, two modes, one is the calibration mode and the other is the normal mode, need to be set in the active pen program. For example, when a program is powered on, a single chip in the active pen reads a certain Input/Output (IO) interface, and if the level of the IO interface is high, the calibration mode is entered, and in a normal case, the level of the IO interface is low, so that the high level cannot be monitored when the active pen is powered on, and the normal mode is started by default. After the user starts the calibration mode of the active pen, in order to display the calibration result, some Light-Emitting Diode (LED) lamps may be disposed on the active pen, and when the calibration mode is started and the calibration is successful, the active pen controls the LED lamps to flash according to a preset program, so as to prompt the user that the pressure curve calibration is currently completed.
In this embodiment, further through control pilot lamp scintillation when accomplishing pressure curve calibration for in time remind the user calibration to accomplish, avoid the user overlength time to wait, in time use the terminal or the equipment of application pressure curve calibrating device, thereby promoted user experience.
The invention also provides a pressure curve calibration device.
The pressure curve calibration device includes:
the pressure grade acquisition module is used for determining a standard pressure value and a standard pressure grade corresponding to the standard pressure value, and acquiring a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting a preset logarithmic pressure curve;
and the curve function calibration module is used for selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected and calibrating the curve polynomial function based on the target pressure grade.
The invention also provides a pressure curve calibration device.
The pressure curve calibration device comprises a processor, a memory and a pressure curve calibration program stored on the memory and executable on the processor, wherein the pressure curve calibration program, when executed by the processor, implements the steps of the pressure curve calibration method as described above.
The method implemented when the pressure curve calibration program is executed may refer to various embodiments of the pressure curve calibration method of the present invention, and will not be described herein again.
The invention also provides a computer readable storage medium.
The computer readable storage medium of the present invention has stored thereon a pressure curve calibration program which, when executed by a processor, implements the steps of the pressure curve calibration method as described above.
The method implemented when the pressure curve calibration program is executed may refer to various embodiments of the pressure curve calibration method of the present invention, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on this understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a pressure curve calibration device (e.g., an active pen, a pressure-sensitive pen, etc.) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (7)

1. A pressure curve calibration method, comprising:
determining a standard pressure value and a standard pressure grade corresponding to the standard pressure value, and obtaining a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting according to a preset logarithmic pressure curve;
selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the curve polynomial function based on the target pressure grade;
the curve polynomial function comprises fixed parameters and parameters to be calibrated, and the step of obtaining a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function comprises the following steps:
acquiring a plurality of parameter polling values of the parameter to be calibrated, and respectively substituting the standard pressure value and the plurality of parameter polling values into a curve polynomial function containing the fixed parameter to obtain a plurality of pressure grades to be selected;
the step of selecting a target pressure level closest to the standard pressure level from the plurality of candidate pressure levels and calibrating the curve polynomial function based on the target pressure level comprises:
and selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the parameter to be calibrated by using a target calibration parameter corresponding to the target pressure grade selected from the plurality of parameter polling values.
2. The pressure curve calibration method according to claim 1, wherein when there are currently a plurality of different sets of standard pressure levels, target pressure levels and target calibration parameters having a corresponding relationship,
the step of calibrating the parameter to be calibrated by using the target calibration parameter corresponding to the target pressure level comprises:
obtaining a plurality of pressure grade differences between a plurality of groups of standard pressure grades and target pressure grades, determining a group of standard pressure grade and target pressure grade which generate the minimum difference in the plurality of pressure grade differences, determining a target calibration parameter corresponding to the target pressure grade which generates the minimum difference as a final calibration parameter, and calibrating the curve polynomial function based on the final calibration parameter.
3. A method of calibrating a pressure curve according to claim 1 or 2, wherein said curve polynomial function is
Figure 274197DEST_PATH_IMAGE001
Wherein a is the parameter to be calibrated, b, c and d are the fixed parameters, g represents the standard pressure value, and p represents the pressure grade corresponding to a, b, c, d and g together.
4. The method for calibrating a pressure curve of claim 1, wherein said step of selecting a target pressure level from a plurality of said candidate pressure levels that is closest to said standard pressure level and calibrating said curve polynomial function based on said target pressure level further comprises:
and when a pressure curve calibration completion instruction is received, controlling a preset indicator lamp to flicker based on the pressure curve calibration completion instruction.
5. A pressure curve calibration device, characterized in that it comprises:
the pressure grade acquisition module is used for determining a standard pressure value and a standard pressure grade corresponding to the standard pressure value, and acquiring a plurality of pressure grades to be selected according to the standard pressure value and a preset curve polynomial function, wherein the curve polynomial function is obtained by fitting a preset logarithmic pressure curve;
the curve function calibration module is used for selecting a target pressure grade closest to the standard pressure grade from the multiple pressure grades to be selected and calibrating the curve polynomial function based on the target pressure grade;
the curve polynomial function comprises fixed parameters and parameters to be calibrated, and the pressure grade acquisition module comprises:
the parameter polling unit is used for acquiring a plurality of parameter polling values of the parameter to be calibrated, and respectively substituting the standard pressure value and the plurality of parameter polling values into a curve polynomial function containing the fixed parameter to obtain a plurality of pressure grades to be selected;
the curve function calibration module comprises:
and the target determining unit is used for selecting a target pressure grade closest to the standard pressure grade from the plurality of pressure grades to be selected, and calibrating the parameter to be calibrated by using a target calibration parameter which is selected from the plurality of parameter polling values and corresponds to the target pressure grade.
6. A pressure curve calibration device, characterized in that it comprises: memory, a processor and a pressure curve calibration program stored on the memory and executable on the processor, the pressure curve calibration program when executed by the processor implementing the steps of the pressure curve calibration method according to any one of claims 1 to 4.
7. A computer-readable storage medium, having stored thereon a pressure curve calibration program, which when executed by a processor, carries out the steps of the pressure curve calibration method according to any one of claims 1 to 4.
CN202010481820.2A 2020-06-01 2020-06-01 Pressure curve calibration method, device, equipment and readable storage medium Active CN111380650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010481820.2A CN111380650B (en) 2020-06-01 2020-06-01 Pressure curve calibration method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010481820.2A CN111380650B (en) 2020-06-01 2020-06-01 Pressure curve calibration method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111380650A CN111380650A (en) 2020-07-07
CN111380650B true CN111380650B (en) 2020-09-18

Family

ID=71222067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010481820.2A Active CN111380650B (en) 2020-06-01 2020-06-01 Pressure curve calibration method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111380650B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486345B (en) * 2021-02-02 2021-06-08 深圳市千分一智能技术有限公司 Processing method, device, terminal and storage medium for active pen writing abnormity

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4147807B2 (en) * 2002-04-15 2008-09-10 株式会社日立製作所 Electronic pen with erase function
CN104707267B (en) * 2010-03-31 2018-04-27 三菱电机株式会社 Particle-beam exposure apparatus and particle-beam therapeutic apparatus
JP2013025467A (en) * 2011-07-19 2013-02-04 Hitachi Advanced Digital Inc Approximation operation circuit for logarithmic function
US20140012889A1 (en) * 2012-07-04 2014-01-09 Lisa Fredrickson Construction Methods for Finite Fields with Split-optimal Multipliers
CN103092814B (en) * 2013-01-21 2015-12-09 武汉大学 A kind of general least square adjustment method of measurement data
CN103092421B (en) * 2013-01-28 2018-09-14 苏州瀚瑞微电子有限公司 The modification method of touch panel linear error
US9342162B2 (en) * 2013-01-29 2016-05-17 Lg Electronics Inc. Mobile terminal and controlling method thereof
CN103617148A (en) * 2013-11-27 2014-03-05 桂林聚联科技有限公司 Method for improving OTDR logarithmic computation speed
KR102307692B1 (en) * 2014-11-28 2021-10-05 삼성전자 주식회사 Pen input device, method for correction input coordinate thereof and electronic device for suppoting the same
CN104596900B (en) * 2015-01-05 2017-04-12 暨南大学 Method and system for automatically realizing grain size correction of atmosphere particles
US20170131796A1 (en) * 2015-11-05 2017-05-11 Waltop International Corporation Calibrating methodology of stylus pressure mapping curve for matching microsoft® window 10 standard in mass production
CN105628266B (en) * 2015-12-25 2018-06-26 武汉中航传感技术有限责任公司 The temperature compensation system and method for a kind of pressure sensor
US10303439B2 (en) * 2016-04-26 2019-05-28 International Business Machines Corporation Logarithm and power (exponentiation) computations using modern computer architectures
CN106874958B (en) * 2017-02-28 2019-09-10 中南大学 A kind of data processing method of the system based on economical CPU platform
CN108174114B (en) * 2017-12-08 2020-06-30 上海集成电路研发中心有限公司 Entropy calculation device and entropy calculation method
CN110174213B (en) * 2019-05-29 2020-12-25 上海交通大学 Calibration method of flexible pressure sensing array

Also Published As

Publication number Publication date
CN111380650A (en) 2020-07-07

Similar Documents

Publication Publication Date Title
US11782524B2 (en) Predictive detection of user intent for stylus use
CN102346050B (en) Sensing device and electronic apparatus
CN110851006B (en) Touch pen mode switching method, device and equipment and readable storage medium
CN113646949B (en) Storage battery residual value determining system
WO2009146597A1 (en) Handwriting input processing device and method
CN111124159A (en) Touch reminding method based on stylus, terminal and computer readable storage medium
CN111380650B (en) Pressure curve calibration method, device, equipment and readable storage medium
US20170131796A1 (en) Calibrating methodology of stylus pressure mapping curve for matching microsoft® window 10 standard in mass production
CN111240503A (en) Method and device for converting nib pressure of active pen, active pen and storage medium
CN105739776B (en) A kind of calibration method of pressure value, device and mobile terminal
CN114070753B (en) Transparent transmission equipment testing method and device and computer readable storage medium
US7362315B2 (en) Apparatus and method for digitizer pen calibration
CN107885347B (en) Remote control driving method, device and computer readable storage medium
US10126842B2 (en) Device for writing with character stroke sensing
KR102252779B1 (en) Sensor data smart transceiver and the method thereof
CN113938732A (en) Remote controller command execution method, device, equipment and storage medium
CN117806272B (en) Calibration method and device of electronic control unit, electronic control unit and carrier
CN119127006B (en) Multi-scenario matching control method, system, device and medium for touch screen sensitivity
CN114637571B (en) Method and device for controlling IOS terminal by computer terminal, intelligent terminal and storage medium
JP7390235B2 (en) Waveform measuring instrument and its data transfer method
CN114755741B (en) Zero point calibration method, device, equipment and storage medium for gravity sensor of infusion pump
CN114020164B (en) Stylus control method and device, electronic equipment and storage medium
CN114661189B (en) Coding method and system of capacitance pen, capacitance pen and storage medium
CN117572991A (en) Input interface display method and device, electronic equipment and readable storage medium
CN116627264A (en) Nib pressure calibration method, intelligent pen and touch equipment

Legal Events

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