CN115494984A - Capacitance pen pressure grade calculation method, terminal device and readable storage medium - Google Patents

Capacitance pen pressure grade calculation method, terminal device and readable storage medium Download PDF

Info

Publication number
CN115494984A
CN115494984A CN202211064663.0A CN202211064663A CN115494984A CN 115494984 A CN115494984 A CN 115494984A CN 202211064663 A CN202211064663 A CN 202211064663A CN 115494984 A CN115494984 A CN 115494984A
Authority
CN
China
Prior art keywords
pressure
pen
value
reference value
capacitive
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.)
Pending
Application number
CN202211064663.0A
Other languages
Chinese (zh)
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.)
Maxeye Smart Technologies Co ltd
Original Assignee
Maxeye Smart Technologies 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 Maxeye Smart Technologies Co ltd filed Critical Maxeye Smart Technologies Co ltd
Priority to CN202211064663.0A priority Critical patent/CN115494984A/en
Publication of CN115494984A publication Critical patent/CN115494984A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/044Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
    • G06F3/0441Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means using active external devices, e.g. active pens, for receiving changes in electrical potential transmitted by the digitiser, e.g. tablet driving signals
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for
    • G01D21/02Measuring two or more variables by means not covered by a single other subclass

Landscapes

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

Abstract

The application discloses a capacitive pen pressure grade calculation method, terminal equipment and a computer readable storage medium, wherein the method comprises the following steps: updating the pressure reference value of the capacitive pen according to the refill pressure and temperature value detected at the refill of the capacitive pen; acquiring the minimum pressure value, the maximum pressure value and the pressure grade number of the capacitance pen; and determining the real-time pressure grade of the capacitance pen according to the pen core pressure, the pressure reference value, the minimum pressure value, the maximum pressure value and the pressure grade number. The problem of because of the inaccurate pressure benchmark value leads to pressure level calculation result inaccurate, and then make the electric capacity pen appear "leaking" is solved. The effect of improving the 'ink discharging' precision of the capacitance pen is achieved.

Description

Capacitance pen pressure grade calculation method, terminal device and readable storage medium
Technical Field
The application relates to the technical field of capacitive pens, in particular to a capacitive pen pressure level calculation method, terminal equipment and a computer readable storage medium.
Background
In the using process of the capacitance pen, the pressure grade is determined through the pressure sensed by the pen point of the capacitance pen, and the capacitance pen is determined to be in a writing state and the thickness of the written handwriting is determined according to the pressure grade. Therefore, the pressure level calculation rule of the capacitance pen is very important.
A pressure reference value exists in the pressure grade calculation of the capacitance pen, the more accurate the pressure reference value is, the more accurate the calculated pressure grade is, and further the ink output quantity of the capacitance pen is more stable. In the conventional capacitive pen pressure grade calculation process, the pressure reference value is constant and unchangeable. When a user replaces the pen core or drags the pen core outwards, the capacitance pen can leak water due to the fact that the pressure reference value is constant, namely handwriting can still appear on the capacitance screen. Therefore, in the calculation process of the pressure grade of the capacitive pen, how to more accurately determine the pressure reference value of the capacitive pen, so that the capacitive pen is not subjected to water leakage and is also very important.
Disclosure of Invention
By providing the capacitive pen pressure level calculation method, the terminal device and the computer readable storage medium, the embodiment of the application solves the problem that the capacitive pen pressure level is inaccurate due to inaccurate pressure reference value of the capacitive pen, and further the capacitive pen has a water leakage phenomenon. The effect of improving the 'ink discharging' precision of the capacitance pen is realized.
The embodiment of the application provides a capacitive pen pressure grade calculation method, which comprises the following steps:
updating the pressure reference value of the capacitive pen according to the refill pressure and temperature value detected at the refill of the capacitive pen;
acquiring the minimum pressure value, the maximum pressure value and the pressure grade number of the capacitance pen;
and determining the real-time pressure grade of the capacitance pen according to the pen core pressure, the pressure reference value, the minimum pressure value, the maximum pressure value and the pressure grade number.
Optionally, the step of updating the pressure reference value of the capacitive pen according to the pressure and temperature values of the capacitive pen refill detected at the capacitive pen refill comprises:
when the capacitance pen is in a normal writing state and the temperature value is equal to a preset temperature, judging whether the pressure of the pen core is greater than the minimum pressure value;
if the pen core pressure is larger than the minimum pressure value, determining that the pressure reference value is 0;
and if the pen core pressure is smaller than or equal to the minimum pressure value and the duration is greater than or equal to a first preset time, determining that the pressure reference value is equal to the pen core pressure.
Optionally, before the step of determining whether the refill pressure is greater than the minimum pressure value when the capacitive pen is in a normal writing state and the temperature value is equal to a preset temperature, the method includes:
receiving uplink data and uplink time associated with the uplink data;
and if the uplink time is within a second preset time and the uplink data are not matched, determining that the capacitive pen is in a normal writing state.
Optionally, after the step of determining that the pressure reference value is equal to the cartridge pressure if the cartridge pressure is less than or equal to the minimum pressure value and the duration is greater than or equal to a first preset time, the method includes:
if the pen core pressure is smaller than or equal to the minimum pressure value, determining that the real-time pressure level is equal to 0;
and determining the writing state of the capacitance pen according to the real-time pressure level.
Optionally, the step of updating the pressure reference value of the capacitive pen according to the pressure and temperature values of the pen core detected at the pen core of the capacitive pen further includes:
after the refill is disconnected with the pressure sensor, if the refill is detected to be reconnected with the pressure sensor again, acquiring the pressure of the refill;
and if the refill pressure is more than twice of the minimum pressure value, determining the refill pressure when the pressure reference value is equal to twice of the minimum pressure value.
Optionally, after the step of determining the refill pressure when the pressure reference value is equal to twice the minimum pressure value if the refill pressure is greater than twice the minimum pressure value, the method includes:
and when the pen core pressure is detected to be 0, updating the pressure reference value to be 0.
Optionally, the step of updating the pressure reference value of the capacitive pen according to the pen core pressure and temperature value detected at the pen core of the capacitive pen further includes:
if the temperature is equal to the preset temperature, determining that the initial reference value is equal to 0;
if the temperature is lower than the preset minimum temperature, determining that the pressure reference value is equal to the difference between the initial reference value and a first compensation value;
and if the temperature is higher than the preset maximum temperature, determining that the pressure reference value is equal to the sum of the initial reference value and a second compensation value.
Optionally, before the step of updating the pressure reference value of the capacitive pen according to the pressure and temperature values of the pen core detected at the capacitive pen core, the method includes:
detecting the test pressure grades of the pen core corresponding to different temperatures under the same pressure;
if the test pressure level is different from the pressure level corresponding to the preset temperature, debugging the initial reference value;
and if the test pressure grade is detected to be equal to the pressure grade corresponding to the preset temperature, determining a debugging value as a compensation value, and storing the compensation value, the test temperature and the pressure grade in a correlation manner.
In addition, in order to achieve the above object, an embodiment of the present invention further provides a terminal device, which includes a memory, a processor, and a capacitive pen pressure level calculation program stored on the memory and executable on the processor, where the processor implements the method when executing the capacitive pen pressure level calculation program.
In addition, to achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a capacitive pen pressure level calculation program is stored, and when the capacitive pen pressure level calculation program is executed by a processor, the method is implemented.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
be applied to the electric capacity pen, dispose temperature sensor and pressure sensor on the electric capacity pen, temperature sensor is used for detecting the temperature of refill department, and pressure sensor is used for detecting the pressure that the refill received. Firstly, detecting the pressure and temperature value of the refill at the refill, and updating the pressure reference value of the capacitance pen according to the pressure and temperature value of the refill; and then acquiring the minimum pressure value, the maximum pressure value and the pressure grade of the capacitive pen, and calculating the real-time pressure grade of the capacitive pen according to the pen core pressure, the pressure reference value, the minimum pressure value, the maximum pressure value and the pressure grade. The pressure reference value is updated by detecting the pressure and the temperature value of the pen core in real time, so that the real-time pressure grade obtained by calculation is more accurate, and the effect of preventing the capacitive pen from water leakage is achieved.
Drawings
FIG. 1 is a schematic flow chart of a capacitive pen frame interpolation method according to a first embodiment of the present application;
FIG. 2 is a schematic flowchart illustrating a second embodiment of a capacitive pen frame interpolation method according to the present application;
fig. 3 is a schematic flowchart of a third embodiment of a capacitive pen frame interpolation method of the present application;
FIG. 4 is a schematic flowchart of a fourth embodiment of a capacitive pen frame interpolation method according to the present application;
fig. 5 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
Detailed Description
The pressure level of the capacitive pen can determine the writing state of the capacitive pen and the thickness of the written handwriting. And a pressure reference value exists in the calculation of the pressure grade, the pressure reference value is an important factor for determining the pressure grade, and if the pressure reference value is not accurate, the calculated pressure grade is often not accurate, so that the phenomenon of 'ink discharge' of the capacitance pen is unstable, and 'water leakage' occurs. According to the method, the pressure reference value of the capacitive pen is updated according to the pressure and temperature values of the pen core detected at the pen core of the capacitive pen; acquiring the minimum pressure value, the maximum pressure value and the pressure grade number of the capacitance pen; and determining the real-time pressure grade of the capacitance pen according to the pen core pressure, the pressure reference value, the minimum pressure value, the maximum pressure value and the pressure grade number. The pressure reference value is updated through the pen core pressure and the temperature value at the pen core, so that more accurate pressure grade is calculated, and the effect of preventing the capacitive pen from water leakage is achieved.
In order to better understand the above technical solutions, exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Example one
Referring to fig. 1, the present embodiment provides a method for calculating a pressure level of a capacitive pen, including the following steps:
step S10: updating the pressure reference value of the capacitance pen according to the pen core pressure and temperature value detected at the pen core of the capacitance pen;
in this embodiment, the capacitive pen is configured with a temperature sensor and a pressure sensor, the temperature sensor is used for detecting the temperature at the pen core of the capacitive pen, and the pressure sensor is used for detecting the pressure applied to the pen core, that is, the pressure applied to the pen tip. The pressure reference value is an important factor for calculating the pressure grade, and the pressure reference value of the capacitance pen is updated through the pen core pressure and the temperature value. If the pressure reference value is a constant value, the pressure grades calculated by the same pen core pressure are the same under different temperatures. Due to the characteristics of the capacitance pen, the sensitivity of the capacitance pen is low at low temperature and the capacitance pen is easy to break and touch; under high temperature, the sensitivity of the capacitance pen is higher, and water leakage is easy to occur, so that the writing stability of the capacitance pen can be improved by adjusting the pressure reference value of the capacitance pen under different pressures and different temperatures.
As an alternative, the pressure reference value varies with the pressure to which the cartridge is actually subjected. When the pressure of the refill is larger than a preset minimum pressure value, namely the pressure of the refill of the capacitive pen is larger than the minimum pressure value at which the capacitive pen can start writing, the pressure reference value is updated to 0, the capacitive pen is in a normal writing state at the moment, the pressure grade can be directly determined according to the pressure actually detected by the refill, and normal writing can be realized. When the pressure of the pen core is smaller than or equal to the preset minimum pressure value, the pressure reference value is updated to the pressure of the pen core, the calculation result of the pressure grade at the moment is controlled to be smaller than 0, namely when the pressure of the pen core is controlled to be smaller than the preset minimum pressure value, ink does not flow out even if the pen core is under pressure, and unnecessary loss caused by continuous ink flowing out of the capacitive pen is prevented.
Illustratively, at normal temperature, when the stress of the refill of the capacitance pen is greater than a preset minimum pressure value, the refill pressure is equal to the actual pressure, and the pressure reference value is updated to 0; and when the stress of the pen core is greater than 0 and less than or equal to the preset minimum pressure value, and the duration is greater than or equal to the preset duration, the pen core pressure is equal to the actually received pressure, and the pressure reference value is updated to the pen core pressure. Preventing the capacitive pen from continuing to "bleed" even under light pressure.
As another alternative mode, the refill of the capacitance pen can be replaced, when the pen point of the capacitance pen is seriously abraded, if the capacitance pen is continuously used, the touch screen can be scratched, and meanwhile, the writing stability of the capacitance pen can be reduced. Therefore, when the capacitive pen is worn to a certain degree, the pen core needs to be replaced. Or when the contact of the pen core is poor, the pen core can be dragged to adjust the position of the pen core and the pen. In the process of dragging the pen core outwards, pressure can be applied to the pen point, if the capacitive pen is still connected with the capacitive screen at the moment, the capacitive pen can misjudge that the capacitive pen is still writing at the moment and continues to generate ink because the pen point is still under the pressure. Therefore, when the refill is replaced or dragged outwards, the 'ink output' condition of the capacitive pen needs to be changed. The pressure level can be changed by changing the pressure reference value, and the ink output condition of the capacitance pen is improved.
Illustratively, a first end of the capacitive pen refill is in contact with the pressure sensor, and the other end is for contact with the capacitive screen. When a user replaces the pen core, the first end of the pen core is disconnected with the pressure sensor, the fact that the user replaces the pen core or drags the pen core outwards is determined, and at the moment, the updating method of the pressure reference value needs to be changed. When the pressure of the pen core is detected to be more than twice of the preset minimum pressure and the duration time exceeds the preset duration time, updating the pressure reference value to a value corresponding to twice of the preset minimum pressure; then, the cartridge pressure is continuously detected, and when the cartridge pressure is detected to be 0, the pressure reference value is updated to 0. That is, after the refill is replaced, if the change of the refill pressure is detected to be larger than the two times of the preset minimum pressure value, the capacitive pen is converted into the normal writing state. The writing can be carried out without setting the capacitance pen under the condition of twice preset minimum pressure value.
Optionally, a button is arranged on the pen body of the capacitive pen, pressing the button indicates that the pen core needs to be replaced, and when the updating method of the pressure reference value is switched to a preset minimum pressure which is more than two times, the pressure reference value is updated, and the capacitive pen can only discharge water.
Optionally, a timer may be further disposed on the capacitive pen, and configured to detect a duration when the refill pressure of the capacitive pen is less than or equal to the preset minimum pressure and the refill pressure is greater than twice the preset minimum pressure. The pressure reference value is updated only when the duration is greater than or equal to a preset duration. Instead of updating the pressure reference value only when the fact that the pressure of the pen core is smaller than or equal to the preset minimum pressure and the pressure of the pen core is larger than twice of the preset minimum pressure is monitored, the stability of the pressure reference value is improved.
Step S20: acquiring the minimum pressure value, the maximum pressure value and the pressure grade number of the capacitance pen;
in this embodiment, the minimum pressed value refers to a lowest working threshold of the capacitive pen, and the capacitive pen can start writing only when the refill pressure of the capacitive pen is greater than the minimum pressed value. The minimum working threshold of the capacitive pen with different models is different, and the embodiment is not limited herein. The maximum pressure value refers to the highest working threshold value of the capacitance pen, when the pen core pressure is larger than the maximum pressure value, the handwriting thickness of the capacitance pen is equal to the handwriting thickness of the maximum pressure value, and therefore the handwriting thickness of the capacitance pen is an upper limit value. The pressure grade number refers to the highest pressure grade of the capacitance pen, and the highest pressure grades of different capacitance pens are different, which is not limited herein.
Step S30: and determining the real-time pressure grade of the capacitance pen according to the pen core pressure, the pressure reference value, the minimum pressure value, the maximum pressure value and the pressure grade number.
In the embodiment, the pen core pressure P, the pressure reference value B and the minimum pressure value P are used min Maximum value of pressure P max And the number of pressure steps L max The real-time pressure level L of the capacitive stylus can be determined.
As an optional implementation mode, the minimum pressure value P of capacitance pens in different models min Maximum value of pressure P max And the number of pressure steps L max Is determined.
Illustratively, the minimum pressed value P of the capacitance pen min Set to 8g, maximum compression value P max Set to 350g, pressure order L max Is set to 4095. The real-time pressure level L is then:
Figure BDA0003827817670000061
the minimum pressure level of the capacitive pen is 0, and if the real-time pressure level L obtained through calculation is smaller than 0, the real-time pressure level of the capacitive pen is automatically updated to 0, namely water does not flow out.
In the embodiment, the pressure reference value of the capacitive pen is updated according to the pressure and temperature values of the capacitive pen refill; acquiring the minimum pressure value, the maximum pressure value and the pressure grade number of the capacitance pen; and determining the real-time pressure grade of the capacitance pen according to the pen core pressure, the pressure reference value, the minimum pressure value, the maximum pressure value and the pressure grade number. The pressure reference value is updated through the pen core pressure and the temperature value at the pen core, so that more accurate pressure grade is calculated, and the effect of preventing the capacitive pen from water leakage is achieved.
Example two
Referring to fig. 2, another embodiment of the present application is proposed based on the above-described embodiment. The step of updating the pressure reference value of the capacitive pen according to the pressure and temperature values of the capacitive pen refill comprises the following steps:
step S11: when the capacitance pen is in a normal writing state and the temperature value is equal to a preset temperature, judging whether the pressure of the pen core is greater than the minimum pressure value;
step S12: if the pen core pressure is larger than the minimum pressure value, determining that the pressure reference value is 0;
step S13: and if the pen core pressure is smaller than or equal to the minimum pressure value and the duration is greater than or equal to a first preset time, determining that the pressure reference value is equal to the pen core pressure.
In this embodiment, the capacitive pen is in a positive value update state, where the positive value update state is that the pressure of the pen core of the capacitive pen is always increased, the pressure is increased from 0, and the change amplitude is smaller than twice of the minimum pressure value. And when the pressure of the pen core is less than or equal to the minimum pressure value and the maintaining time exceeds the first preset time, updating the pressure reference value of the capacitive pen, and further controlling the capacitive pen not to continue to discharge water.
As an alternative embodiment, it may be determined that the capacitive pen is in the normal writing state according to the uplink data received by the capacitive pen and the receiving time of the uplink data. The uplink data refers to a signal sent to the capacitive pen by the capacitive screen in the working process of the capacitive pen, the uplink data may include information such as the electric quantity of the capacitive pen and the working state of the capacitive pen, and in this embodiment, only the uplink data containing the writing signal is detected. And when the uplink data contains a writing signal, acquiring the receiving time of the frame of uplink data, and if the receiving time is within a second preset time range, preliminarily judging that the capacitive pen is in a normal writing state.
Illustratively, what corresponds to the uplink data is downlink data that the capacitive pen sends to the capacitive screen, and the capacitive pen responds according to the content of the uplink data to generate the downlink data. And the uplink belongs to and is stored in association with the corresponding downlink data. If the capacitive pen receives the uplink data and the uplink data are within a second preset time range, whether the uplink data are paired or not needs to be detected, and if the uplink data are not paired, that is, the downlink data are not generated, it is determined that the capacitive pen is still in a normal writing state.
As another alternative, when the cartridge pressure is less than or equal to the minimum pressure value and the duration is greater than or equal to the first preset time, the real-time pressure level is updated to 0. And when the pressure level of the capacitive pen is 0, determining that the capacitive pen does not discharge ink.
For example, a capacitive pen may determine the amount of ink output at different pressure levels based on a pressure-ink response curve. And after the real-time pressure grade is obtained through calculation, matching the real-time pressure grade with the ink amount in the pressure-ink response curve to determine the ink output amount of the capacitance pen.
In this embodiment, when the capacitive pen is updated for a positive value, if it is detected that the pen core is at the preset temperature and the pressure of the pen core is greater than the minimum pressure value, the pressure reference value is determined to be 0, and the real-time pressure level obtained through calculation is greater than 0, that is, the capacitive pen can normally discharge ink. And when the pen core pressure is smaller than or equal to the minimum pressure value and the duration is larger than or equal to the first preset time, determining that the pressure reference value is equal to the pen core pressure, so that the real-time pressure level is not larger than 0, and the capacitive pen does not discharge ink. By the mode, the capacitive pen is ensured not to discharge ink due to mistaken touch, so that the phenomenon of water leakage is avoided.
EXAMPLE III
Referring to fig. 3, another embodiment of the present application is proposed based on the above-described embodiment. The step of updating the pressure reference value of the capacitance pen according to the pen core pressure and temperature value detected by the pen core of the capacitance pen comprises the following steps:
step S14: after the refill is disconnected with the pressure sensor, if the refill is detected to be reconnected with the pressure sensor again, acquiring the pressure of the refill;
step S15: and if the refill pressure is more than twice of the minimum pressure value, determining the refill pressure when the pressure reference value is equal to twice of the minimum pressure value.
In this embodiment, the capacitive pen is in a negative update state, i.e. the pressure of the refill of the capacitive pen changes from being stressed to being unstressed suddenly, for example, the capacitive pen is suddenly disconnected from the pressure sensor.
As an optional implementation manner, a first end of the refill of the capacitive pen is in contact with the pressure sensor, the first end is used for being in contact with the capacitive screen, when the second end is in contact with the capacitive screen and the capacitive screen is pressed, the pressure sensor is pressed by the first end, the pressure sensor converts the pressure into an electric signal, and the electric signal enables the capacitive pen to send corresponding downlink data.
As another alternative, when it is detected that the first end of the cartridge is disconnected from the pressure sensor, it indicates that the user is dragging the cartridge at that time. And continuously monitoring the connection state of the refill and the pressure sensor, starting to monitor the refill pressure if the refill is detected to be connected with the pressure sensor again, and updating the pressure reference value to the refill pressure corresponding to the double minimum pressure value if the refill pressure is detected to be more than the double of the minimum pressure value. And then, continuously monitoring the pressure of the pen core, and updating the pressure reference value to be 0 when the pressure of the pen core is suddenly reduced and the reduction amplitude is more than twice of the minimum pressure value.
Illustratively, the minimum pressure value is set to be 8g, and if the pressure of the pen core is detected to be greater than 16g after the first end of the pen core is disconnected from the pressure sensor, the pressure reference value is updated to be a corresponding real-time pressure value when the pressure is 16 g. And then, continuously monitoring the pen core pressure, and updating the pressure reference value to 0 when the pen core pressure is reduced to 0. The capacitive stylus returns to a positive update state.
In this embodiment, the refill can be changed to the electric capacity pen, and when refill wearing and tearing were serious or the refill damaged, removable refill, in order to prevent that the refill from changing the in-process, the electric capacity pen continues to go out black, improves pressure reference value for pressure grade is 0, prevents to pull the refill in-process, and the electric capacity pen "leaks.
Example four
Referring to fig. 3, another embodiment of the present application is proposed based on the above-described embodiment. The step of updating the pressure reference value of the capacitive pen according to the pressure and temperature values of the capacitive pen refill comprises the following steps:
step S16: if the temperature is equal to the preset temperature, determining that the initial reference value is equal to 0;
step S17: if the temperature is lower than the preset minimum temperature, determining that the pressure reference value is equal to the difference between the initial reference value and a first compensation value;
step S18: and if the temperature is higher than the preset maximum temperature, determining that the pressure reference value is equal to the sum of the initial reference value and a second compensation value.
In the present embodiment, the initial reference value refers to a pressure reference value of the capacitance pen at normal temperature. Because the writing state of the capacitance pen can be influenced by the temperature, compensation values of pressure reference values at different temperatures need to be set, the influence of the temperature on the capacitance pen is reduced, and the writing stability of the capacitance pen is improved. The pressure sensor converts pressure signals into electrical signals after sensing pressure, and the values of the electrical signals converted by the pressure sensor are different when the same pressure is at different temperatures.
As an alternative embodiment, the pressure level of the capacitance pen can be adjusted for different temperatures and with the same pressure. And taking the pressure grade detected by the capacitance pen in a preset temperature range as a theoretical pressure grade. And when the pressure is lower than the preset temperature range and higher than the preset temperature range, compensating the pressure reference value of the capacitance pen, and adjusting the pressure grade of the capacitance pen until the pressure grade is equal to the theoretical pressure grade or the difference value is within an allowable error range. And storing the compensation value and the corresponding pressure and temperature association.
Illustratively, the temperature test range is set to be-10 ℃ to 55 ℃, the preset temperature is set to be 25 ℃, and the pressure levels at different refill pressures at 25 ℃ are all recorded as theoretical pressure levels. When the temperature is lower than 25 ℃, the pressure value converted by the pressure sensor is larger than the pressure value converted at the preset temperature, namely the pressure reference value is larger than the conventional reference value, so that a certain compensation value needs to be subtracted to adjust the pressure level. And when the temperature is higher than 25 ℃, the pressure value converted by the pressure sensor is smaller than the pressure value converted at the preset temperature, that is, the pressure reference value is lower than the conventional reference value, so that the pressure reference value needs to be compensated, and the pressure grade needs to be adjusted.
In this embodiment, the compensation value of the pressure reference value at different temperatures is adjusted, so that the pressure levels of the same pressure are consistent at different temperatures. The problem that ink can be discharged only by using a capacitance pen with larger pressure at low temperature and the problem that the capacitance pen is easy to discharge ink excessively at high temperature are solved. That is, at different temperatures, the user does not need to change the writing habit of the user, and the capacitance pen can also keep a stable ink output state. Meanwhile, the abrasion degree of the capacitance pen point at low temperature can be reduced.
EXAMPLE five
In the embodiment of the application, a pressure grade calculation device for a capacitive pen is provided.
Referring to fig. 5, fig. 5 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 5, the control terminal may include: a processor 1001, such as a CPU, a network interface 1003, a memory 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The network interface 1003 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1004 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1004 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 5, the memory 1004, which is a kind of computer storage medium, may include therein an operating system, a network communication module, and a capacitive pen pressure level calculation program.
In the hardware configuration of the capacitive pen pressure level calculation device shown in fig. 5, the processor 1001 may call the capacitive pen pressure level calculation program stored in the memory 1004 and perform the following operations:
updating the pressure reference value of the capacitance pen according to the pen core pressure and temperature value detected at the pen core of the capacitance pen;
acquiring the minimum pressure value, the maximum pressure value and the pressure grade number of the capacitance pen;
and determining the real-time pressure grade of the capacitance pen according to the pen core pressure, the pressure reference value, the minimum pressure value, the maximum pressure value and the pressure grade number.
Alternatively, the processor 1001 may call a capacitive pen pressure level calculation program stored in the memory 1004, and further perform the following operations:
when the capacitance pen is in a normal writing state and the temperature value is equal to a preset temperature, judging whether the pressure of the pen core is greater than the minimum pressure value;
if the pen core pressure is larger than the minimum pressure value, determining that the pressure reference value is 0;
and if the pen core pressure is smaller than or equal to the minimum pressure value and the duration is greater than or equal to a first preset time, determining that the pressure reference value is equal to the pen core pressure.
Alternatively, the processor 1001 may call a capacitive pen pressure level calculation program stored in the memory 1004, and further perform the following operations:
receiving uplink data and uplink time associated with the uplink data;
and if the uplink time is within a second preset time and the uplink data are not matched, determining that the capacitive pen is in a normal writing state.
Alternatively, the processor 1001 may call a capacitive pen pressure level calculation program stored in the memory 1004, and further perform the following operations:
if the pen core pressure is smaller than or equal to the minimum pressure value, determining that the real-time pressure level is equal to 0;
and determining the writing state of the capacitance pen according to the real-time pressure level.
Alternatively, the processor 1001 may call a capacitive pen pressure level calculation program stored in the memory 1004, and further perform the following operations:
after the refill is disconnected with the pressure sensor, if the refill is detected to be reconnected with the pressure sensor again, acquiring the pressure of the refill;
and if the refill pressure is more than twice of the minimum pressure value, determining the refill pressure when the pressure reference value is equal to twice of the minimum pressure value.
Alternatively, the processor 1001 may call a capacitive pen pressure level calculation program stored in the memory 1004, and further perform the following operations:
and when the pen core pressure is detected to be 0, updating the pressure reference value to be 0.
Alternatively, the processor 1001 may call a capacitive pen pressure level calculation program stored in the memory 1004, and further perform the following operations:
if the temperature is equal to the preset temperature, determining that an initial reference value is equal to 0;
if the temperature is lower than the preset minimum temperature, determining that the pressure reference value is equal to the difference between the initial reference value and a first compensation value;
and if the temperature is higher than the preset maximum temperature, determining that the pressure reference value is equal to the sum of the initial reference value and a second compensation value.
Alternatively, the processor 1001 may call a capacitive pen pressure level calculation program stored in the memory 1004, and further perform the following operations:
detecting the test pressure grades corresponding to different temperatures of the pen core under the same pressure;
if the test pressure level is different from the pressure level corresponding to the preset temperature, debugging the initial reference value;
and if the test pressure grade is detected to be equal to the pressure grade corresponding to the preset temperature, determining a debugging value as a compensation value, and storing the compensation value, the test temperature and the pressure grade in a correlation manner.
In addition, in order to achieve the above object, an embodiment of the present invention further provides a terminal device, which includes a memory, a processor, and a capacitive pen pressure level calculation program stored in the memory and executable on the processor, where when the processor executes the capacitive pen pressure level calculation program, the capacitive pen pressure level calculation method is implemented.
In addition, to achieve the above object, an embodiment of the present invention further provides a computer-readable storage medium, where a capacitive pen pressure level calculation program is stored on the computer-readable storage medium, and when the capacitive pen pressure level calculation program is executed by a processor, the capacitive pen pressure level calculation method is implemented as described above.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A pressure grade calculation method of a capacitive pen is applied to the capacitive pen, wherein a pressure sensor and a temperature sensor are arranged on the capacitive pen, and the method comprises the following steps:
updating the pressure reference value of the capacitance pen according to the pen core pressure and temperature value detected at the pen core of the capacitance pen;
acquiring the minimum pressure value, the maximum pressure value and the pressure grade number of the capacitance pen;
and determining the real-time pressure grade of the capacitance pen according to the pen core pressure, the pressure reference value, the minimum pressure value, the maximum pressure value and the pressure grade number.
2. The capacitive pen pressure level calculation method according to claim 1, wherein the step of updating the pressure reference value of the capacitive pen according to the pen core pressure and temperature value detected at the capacitive pen core comprises:
when the capacitance pen is in a normal writing state and the temperature value is equal to a preset temperature, judging whether the pressure of the pen core is larger than the minimum pressure value or not;
if the pen core pressure is larger than the minimum pressure value, determining that the pressure reference value is 0;
and if the pen core pressure is smaller than or equal to the minimum pressure value and the duration is greater than or equal to a first preset time, determining that the pressure reference value is equal to the pen core pressure.
3. The capacitive pen pressure level calculation method according to claim 2, wherein before the step of determining whether the pen core pressure is greater than the minimum pressure value when the capacitive pen is in a normal writing state and the temperature value is equal to a preset temperature, the method comprises:
receiving uplink data and uplink time associated with the uplink data;
and if the uplink time is within a second preset time and the uplink data are not matched, determining that the capacitive pen is in a normal writing state.
4. The capacitive pen pressure level calculation method according to claim 2, wherein the step of determining that the pressure reference value is equal to the pen core pressure if the pen core pressure is less than or equal to the minimum pressure value and the duration is greater than or equal to a first preset time comprises, after the step of determining that the pen core pressure is equal to the pressure reference value:
if the pen core pressure is smaller than or equal to the minimum pressure value, determining that the real-time pressure level is equal to 0;
and determining the writing state of the capacitance pen according to the real-time pressure level.
5. The capacitive pen pressure level calculation method according to claim 1, wherein the step of updating the pressure reference value of the capacitive pen according to the pen core pressure and temperature value detected at the capacitive pen core further comprises:
after the refill is disconnected with the pressure sensor, if the refill is detected to be reconnected with the pressure sensor again, acquiring the pressure of the refill;
and if the refill pressure is more than twice of the minimum pressure value, determining the refill pressure when the pressure reference value is equal to twice of the minimum pressure value.
6. The capacitive pen pressure rating calculation method of claim 5, wherein said step of determining said pen core pressure at which said pressure reference value equals twice said minimum pressure value if said pen core pressure is greater than twice said minimum pressure value is followed by the step of:
and when the pen core pressure is detected to be 0, updating the pressure reference value to be 0.
7. The capacitive pen pressure level calculation method according to claim 1, wherein the step of updating the pressure reference value of the capacitive pen according to the pen core pressure and temperature value detected at the capacitive pen core further comprises:
if the temperature is equal to the preset temperature, determining that the initial reference value is equal to 0;
if the temperature is lower than the preset minimum temperature, determining that the pressure reference value is equal to the difference between the initial reference value and a first compensation value;
and if the temperature is higher than the preset maximum temperature, determining that the pressure reference value is equal to the sum of the initial reference value and a second compensation value.
8. The capacitive pen pressure level calculation method according to claim 7, wherein the step of updating the pressure reference value of the capacitive pen according to the pen core pressure and temperature values detected at the capacitive pen core is preceded by the step of:
detecting the test pressure grades corresponding to different temperatures of the pen core under the same pressure;
if the test pressure level is different from the pressure level corresponding to the preset temperature, debugging the initial reference value;
and if the test pressure grade is detected to be equal to the pressure grade corresponding to the preset temperature, determining a debugging value as a compensation value, and storing the compensation value, the test temperature and the pressure grade in a correlation manner.
9. A terminal device comprising a memory, a processor, and a capacitive pen pressure level calculation program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1-8 when executing the capacitive pen pressure level calculation program.
10. A computer-readable storage medium, wherein a capacitive pen pressure level calculation program is stored on the computer-readable storage medium, and when executed by a processor, implements the method of any one of claims 1-8.
CN202211064663.0A 2022-09-01 2022-09-01 Capacitance pen pressure grade calculation method, terminal device and readable storage medium Pending CN115494984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211064663.0A CN115494984A (en) 2022-09-01 2022-09-01 Capacitance pen pressure grade calculation method, terminal device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211064663.0A CN115494984A (en) 2022-09-01 2022-09-01 Capacitance pen pressure grade calculation method, terminal device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115494984A true CN115494984A (en) 2022-12-20

Family

ID=84467670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211064663.0A Pending CN115494984A (en) 2022-09-01 2022-09-01 Capacitance pen pressure grade calculation method, terminal device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115494984A (en)

Similar Documents

Publication Publication Date Title
CN105654923B (en) A kind of back light brightness regulating method and user terminal
CN107193515A (en) Animation shows monitoring method, device and its equipment of fluency
CN111596802B (en) Touch screen calibration method and device and computer readable storage medium
CN111868686B (en) Method for exporting application program and export equipment using the same
CN113238905B (en) Screen jumpiness detection method and device
CN110221897A (en) Adjusting method, device, terminal device and the medium of character boundary
US10728297B2 (en) Streaming media play mode determination method and apparatus
CN114138098A (en) Power consumption adjusting method and device, storage device and readable storage medium
CN113268162A (en) Screen replacement detection method and device
CN101626275A (en) Method and device for detecting system fault
CN115494984A (en) Capacitance pen pressure grade calculation method, terminal device and readable storage medium
KR20160146150A (en) System and method for protecting privacy
US10809957B2 (en) Control method and apparatus for display screen
TWI554887B (en) System and method for charging an electronic device
CN111813632A (en) CPU power consumption test method, test device, test equipment and storage medium
CN112486345B (en) Processing method, device, terminal and storage medium for active pen writing abnormity
US11291062B2 (en) Information processing apparatus and non-transitory computer readable medium
CN113329222B (en) Camera function detection method and device
US20200132734A1 (en) Detection circuit and detection method for on-the-go device, and terminal
CN112506366A (en) Processing method, terminal and storage medium for active pen writing abnormity
CN113032232B (en) Correlation method, correlation device and equipment for performance detection of equipment
CN111459346B (en) Capacitive touch device and gesture recognition method, chip and storage medium thereof
CN112289364A (en) eMMC quality detection and repair method, device and storage medium thereof
CN113220648A (en) Audio function detection method and device
CN111307375B (en) Method, device and equipment for judging cigarette leakage detector rejection function

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